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.ec7d92...

454 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([[188,3,5,6,7,8,9,10,16,17,18],{"+NIl":function(We,Ce,I){(function(ae){ae(I("VrN/"))})(function(ae){"use strict";ae.defineMode("stex",function(V,M){"use strict";function p(u,a){u.cmdState.push(a)}function E(u){return u.cmdState.length>0?u.cmdState[u.cmdState.length-1]:null}function C(u){var a=u.cmdState.pop();a&&a.closeBracket()}function b(u){for(var a=u.cmdState,A=a.length-1;A>=0;A--){var d=a[A];if(d.name=="DEFAULT")continue;return d}return{styleIdentifier:function(){return null}}}function f(u,a,A){return function(){this.name=u,this.bracketNo=0,this.style=a,this.styles=A,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var l={};l.importmodule=f("importmodule","tag",["string","builtin"]),l.documentclass=f("documentclass","tag",["","atom"]),l.usepackage=f("usepackage","tag",["atom"]),l.begin=f("begin","tag",["atom"]),l.end=f("end","tag",["atom"]),l.label=f("label","tag",["atom"]),l.ref=f("ref","tag",["atom"]),l.eqref=f("eqref","tag",["atom"]),l.cite=f("cite","tag",["atom"]),l.bibitem=f("bibitem","tag",["atom"]),l.Bibitem=f("Bibitem","tag",["atom"]),l.RBibitem=f("RBibitem","tag",["atom"]),l.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function r(u,a){u.f=a}function n(u,a){var A;if(u.match(/^\\[a-zA-Z@]+/)){var d=u.current().slice(1);return A=l.hasOwnProperty(d)?l[d]:l.DEFAULT,A=new A,p(a,A),r(a,s),A.style}if(u.match(/^\\[$&%#{}_]/))return"tag";if(u.match(/^\\[,;!\/\\]/))return"tag";if(u.match("\\["))return r(a,function(h,y){return e(h,y,"\\]")}),"keyword";if(u.match("\\("))return r(a,function(h,y){return e(h,y,"\\)")}),"keyword";if(u.match("$$"))return r(a,function(h,y){return e(h,y,"$$")}),"keyword";if(u.match("$"))return r(a,function(h,y){return e(h,y,"$")}),"keyword";var i=u.next();if(i=="%")return u.skipToEnd(),"comment";if(i=="}"||i=="]"){if(A=E(a),A)A.closeBracket(i),r(a,s);else return"error";return"bracket"}else return i=="{"||i=="["?(A=l.DEFAULT,A=new A,p(a,A),"bracket"):/\d/.test(i)?(u.eatWhile(/[\w.%]/),"atom"):(u.eatWhile(/[\w\-_]/),A=b(a),A.name=="begin"&&(A.argument=u.current()),A.styleIdentifier())}function e(u,a,A){if(u.eatSpace())return null;if(A&&u.match(A))return r(a,n),"keyword";if(u.match(/^\\[a-zA-Z@]+/))return"tag";if(u.match(/^[a-zA-Z]+/))return"variable-2";if(u.match(/^\\[$&%#{}_]/))return"tag";if(u.match(/^\\[,;!\/]/))return"tag";if(u.match(/^[\^_&]/))return"tag";if(u.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(u.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var d=u.next();return d=="{"||d=="}"||d=="["||d=="]"||d=="("||d==")"?"bracket":d=="%"?(u.skipToEnd(),"comment"):"error"}function s(u,a){var A=u.peek(),d;return A=="{"||A=="["?(d=E(a),d.openBracket(A),u.eat(A),r(a,n),"bracket"):/[ \t\r]/.test(A)?(u.eat(A),null):(r(a,n),C(a),n(u,a))}return{startState:function(){var u=M.inMathMode?function(a,A){return e(a,A)}:n;return{cmdState:[],f:u}},copyState:function(u){return{cmdState:u.cmdState.slice(),f:u.f}},token:function(u,a){return a.f(u,a)},blankLine:function(u){u.f=n,u.cmdState.length=0},lineComment:"%"}}),ae.defineMIME("text/x-stex","stex"),ae.defineMIME("text/x-latex","stex")})},"/GNS":function(We,Ce,I){We.exports=I.p+"static/search1.c4136dd4.png"},"06Qe":function(We,Ce,I){var ae=I("ItGF"),V="urn:schemas-microsoft-com:vml",M=typeof window=="undefined"?null:window,p=!1,E=M&&M.document;function C(l){return b(l)}var b;if(E&&!ae.canvasSupported)try{!E.namespaces.zrvml&&E.namespaces.add("zrvml",V),b=function(l){return E.createElement("<zrvml:"+l+' class="zrvml">')}}catch(l){b=function(r){return E.createElement("<"+r+' xmlns="'+V+'" class="zrvml">')}}function f(){if(p||!E)return;p=!0;var l=E.styleSheets;l.length<31?E.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):l[0].addRule(".zrvml","behavior:url(#default#VML)")}Ce.doc=E,Ce.createNode=C,Ce.initVML=f},"07cG":function(We,Ce,I){We.exports={ldsRing:"ldsRing___2F8W7",idsRingWrapper:"idsRingWrapper___fC2cF",ldsring:"ldsring___3A88y"}},"0s+r":function(We,Ce,I){var ae=I("bYtY"),V=I("QBsz"),M=I("y23F"),p=I("H6uX"),E=I("YH21"),C=I("C0SR"),b="silent";function f(A,d,i){return{type:A,event:i,target:d.target,topTarget:d.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:l}}function l(){E.stop(this.event)}function r(){}r.prototype.dispose=function(){};var n=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=function(A,d,i,h){p.call(this),this.storage=A,this.painter=d,this.painterRoot=h,i=i||new r,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,M.call(this),this.setHandlerProxy(i)};e.prototype={constructor:e,setHandlerProxy:function(A){this.proxy&&this.proxy.dispose(),A&&(ae.each(n,function(d){A.on&&A.on(d,this[d],this)},this),A.handler=this),this.proxy=A},mousemove:function(A){var d=A.zrX,i=A.zrY,h=u(this,d,i),y=this._hovered,v=y.target;v&&!v.__zr&&(y=this.findHover(y.x,y.y),v=y.target);var x=this._hovered=h?{x:d,y:i}:this.findHover(d,i),S=x.target,B=this.proxy;B.setCursor&&B.setCursor(S?S.cursor:"default"),v&&S!==v&&this.dispatchToElement(y,"mouseout",A),this.dispatchToElement(x,"mousemove",A),S&&S!==v&&this.dispatchToElement(x,"mouseover",A)},mouseout:function(A){var d=A.zrEventControl,i=A.zrIsToLocalDOM;d!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",A),d!=="no_globalout"&&(!i&&this.trigger("globalout",{type:"globalout",event:A}))},resize:function(A){this._hovered={}},dispatch:function(A,d){var i=this[A];i&&i.call(this,d)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(A){var d=this.proxy;d.setCursor&&d.setCursor(A)},dispatchToElement:function(A,d,i){A=A||{};var h=A.target;if(h&&h.silent)return;for(var y="on"+d,v=f(d,A,i);h&&!(h[y]&&(v.cancelBubble=h[y].call(h,v)),h.trigger(d,v),h=h.parent,v.cancelBubble););v.cancelBubble||(this.trigger(d,v),this.painter&&this.painter.eachOtherLayer(function(x){typeof x[y]=="function"&&x[y].call(x,v),x.trigger&&x.trigger(d,v)}))},findHover:function(A,d,i){for(var h=this.storage.getDisplayList(),y={x:A,y:d},v=h.length-1;v>=0;v--){var x;if(h[v]!==i&&!h[v].ignore&&(x=s(h[v],A,d))&&(!y.topTarget&&(y.topTarget=h[v]),x!==b)){y.target=h[v];break}}return y},processGesture:function(A,d){this._gestureMgr||(this._gestureMgr=new C);var i=this._gestureMgr;d==="start"&&i.clear();var h=i.recognize(A,this.findHover(A.zrX,A.zrY,null).target,this.proxy.dom);if(d==="end"&&i.clear(),h){var y=h.type;A.gestureEvent=y,this.dispatchToElement({target:h.target},y,h.event)}}},ae.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(A){e.prototype[A]=function(d){var i=d.zrX,h=d.zrY,y=u(this,i,h),v,x;if((A!=="mouseup"||!y)&&(v=this.findHover(i,h),x=v.target),A==="mousedown")this._downEl=x,this._downPoint=[d.zrX,d.zrY],this._upEl=x;else if(A==="mouseup")this._upEl=x;else if(A==="click"){if(this._downEl!==this._upEl||!this._downPoint||V.dist(this._downPoint,[d.zrX,d.zrY])>4)return;this._downPoint=null}this.dispatchToElement(v,A,d)}});function s(A,d,i){if(A[A.rectHover?"rectContain":"contain"](d,i)){for(var h=A,y;h;){if(h.clipPath&&!h.clipPath.contain(d,i))return!1;h.silent&&(y=!0),h=h.parent}return y?b:!0}return!1}function u(A,d,i){var h=A.painter;return d<0||d>h.getWidth()||i<0||i>h.getHeight()}ae.mixin(e,p),ae.mixin(e,M);var a=e;We.exports=a},"19Vz":function(We,Ce,I){(function(ae){ae(I("VrN/"))})(function(ae){ae.defineOption("placeholder","",function(f,l,r){var n=r&&r!=ae.Init;if(l&&!n)f.on("blur",E),f.on("change",C),f.on("swapDoc",C),ae.on(f.getInputField(),"compositionupdate",f.state.placeholderCompose=function(){p(f)}),C(f);else if(!l&&n){f.off("blur",E),f.off("change",C),f.off("swapDoc",C),ae.off(f.getInputField(),"compositionupdate",f.state.placeholderCompose),V(f);var e=f.getWrapperElement();e.className=e.className.replace(" CodeMirror-empty","")}l&&!f.hasFocus()&&E(f)});function V(f){f.state.placeholder&&(f.state.placeholder.parentNode.removeChild(f.state.placeholder),f.state.placeholder=null)}function M(f){V(f);var l=f.state.placeholder=document.createElement("pre");l.style.cssText="height: 0; overflow: visible",l.style.direction=f.getOption("direction"),l.className="CodeMirror-placeholder CodeMirror-line-like";var r=f.getOption("placeholder");typeof r=="string"&&(r=document.createTextNode(r)),l.appendChild(r),f.display.lineSpace.insertBefore(l,f.display.lineSpace.firstChild)}function p(f){setTimeout(function(){var l=!1,r=f.getInputField();r.nodeName=="TEXTAREA"?l=!r.value:f.lineCount()==1&&(l=!/[^\u200b]/.test(r.querySelector(".CodeMirror-line").textContent)),l?M(f):V(f)},20)}function E(f){b(f)&&M(f)}function C(f){var l=f.getWrapperElement(),r=b(f);l.className=l.className.replace(" CodeMirror-empty","")+(r?" CodeMirror-empty":""),r?M(f):V(f)}function b(f){return f.lineCount()===1&&f.getLine(0)===""}})},"1Jh7":function(We,Ce,I){var ae=I("y+Vt"),V=I("T6xi"),M=ae.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(p,E){V.buildPath(p,E,!1)}});We.exports=M},"1MYJ":function(We,Ce,I){var ae=I("y+Vt"),V=ae.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var M=this.__dirtyPath,p=this.shape.paths,E=0;E<p.length;E++)M=M||p[E].__dirtyPath;this.__dirtyPath=M,this.__dirty=this.__dirty||M},beforeBrush:function(){this._updatePathDirty();for(var M=this.shape.paths||[],p=this.getGlobalScale(),E=0;E<M.length;E++)M[E].path||M[E].createPathProxy(),M[E].path.setScale(p[0],p[1],M[E].segmentIgnoreThreshold)},buildPath:function(M,p){for(var E=p.paths||[],C=0;C<E.length;C++)E[C].buildPath(M,E[C].shape,!0)},afterBrush:function(){for(var M=this.shape.paths||[],p=0;p<M.length;p++)M[p].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),ae.prototype.getBoundingRect.call(this)}});We.exports=V},"1RvN":function(We,Ce){var I=function(){this.head=null,this.tail=null,this._len=0},ae=I.prototype;ae.insert=function(C){var b=new V(C);return this.insertEntry(b),b},ae.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++},ae.remove=function(C){var b=C.prev,f=C.next;b?b.next=f:this.head=f,f?f.prev=b:this.tail=b,C.next=C.prev=null,this._len--},ae.len=function(){return this._len},ae.clear=function(){this.head=this.tail=null,this._len=0};var V=function(C){this.value=C,this.next,this.prev},M=function(C){this._list=new I,this._map={},this._maxSize=C||10,this._lastRemovedEntry=null},p=M.prototype;p.put=function(C,b){var f=this._list,l=this._map,r=null;if(l[C]==null){var n=f.len(),e=this._lastRemovedEntry;if(n>=this._maxSize&&n>0){var s=f.head;f.remove(s),delete l[s.key],r=s.value,this._lastRemovedEntry=s}e?e.value=b:e=new V(b),e.key=C,f.insertEntry(e),l[C]=e}return r},p.get=function(C){var b=this._map[C],f=this._list;if(b!=null)return b!==f.tail&&(f.remove(b),f.insertEntry(b)),b.value},p.clear=function(){this._list.clear(),this._map={}};var E=M;We.exports=E},"1ZF9":function(We,Ce,I){We.exports=I.p+"static/Authorize.cc9c212f.png"},"1bdT":function(We,Ce,I){var ae=I("3gBT"),V=I("H6uX"),M=I("DN4a"),p=I("vWvF"),E=I("bYtY"),C=function(f){M.call(this,f),V.call(this,f),p.call(this,f),this.id=f.id||ae()};C.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(f,l){switch(this.draggable){case"horizontal":l=0;break;case"vertical":f=0;break}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=f,r[5]+=l,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(f,l){},attrKV:function(f,l){if(f==="position"||f==="scale"||f==="origin"){if(l){var r=this[f];r||(r=this[f]=[]),r[0]=l[0],r[1]=l[1]}}else this[f]=l},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(f,l){if(typeof f=="string")this.attrKV(f,l);else if(E.isObject(f))for(var r in f)f.hasOwnProperty(r)&&this.attrKV(r,f[r]);return this.dirty(!1),this},setClipPath:function(f){var l=this.__zr;l&&f.addSelfToZr(l),this.clipPath&&this.clipPath!==f&&this.removeClipPath(),this.clipPath=f,f.__zr=l,f.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var f=this.clipPath;f&&(f.__zr&&f.removeSelfFromZr(f.__zr),f.__zr=null,f.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(f){this.__zr=f;var l=this.animators;if(l)for(var r=0;r<l.length;r++)f.animation.addAnimator(l[r]);this.clipPath&&this.clipPath.addSelfToZr(f)},removeSelfFromZr:function(f){this.__zr=null;var l=this.animators;if(l)for(var r=0;r<l.length;r++)f.animation.removeAnimator(l[r]);this.clipPath&&this.clipPath.removeSelfFromZr(f)}},E.mixin(C,p),E.mixin(C,M),E.mixin(C,V);var b=C;We.exports=b},"1eCo":function(We,Ce,I){(function(ae){ae(I("VrN/"))})(function(ae){"use strict";var V={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};ae.defineMode("xml",function(p,E){var C=p.indentUnit,b={},f=E.htmlMode?V:M;for(var l in f)b[l]=f[l];for(var l in E)b[l]=E[l];var r,n;function e(_,D){function T(U){return D.tokenize=U,U(_,D)}var O=_.next();if(O=="<")return _.eat("!")?_.eat("[")?_.match("CDATA[")?T(a("atom","]]>")):null:_.match("--")?T(a("comment","-->")):_.match("DOCTYPE",!0,!0)?(_.eatWhile(/[\w\._\-]/),T(A(1))):null:_.eat("?")?(_.eatWhile(/[\w\._\-]/),D.tokenize=a("meta","?>"),"meta"):(r=_.eat("/")?"closeTag":"openTag",D.tokenize=s,"tag bracket");if(O=="&"){var R;return _.eat("#")?_.eat("x")?R=_.eatWhile(/[a-fA-F\d]/)&&_.eat(";"):R=_.eatWhile(/[\d]/)&&_.eat(";"):R=_.eatWhile(/[\w\.\-:]/)&&_.eat(";"),R?"atom":"error"}else return _.eatWhile(/[^&<]/),null}e.isInText=!0;function s(_,D){var T=_.next();if(T==">"||T=="/"&&_.eat(">"))return D.tokenize=e,r=T==">"?"endTag":"selfcloseTag","tag bracket";if(T=="=")return r="equals",null;if(T=="<"){D.tokenize=e,D.state=y,D.tagName=D.tagStart=null;var O=D.tokenize(_,D);return O?O+" tag error":"tag error"}else return/[\'\"]/.test(T)?(D.tokenize=u(T),D.stringStartCol=_.column(),D.tokenize(_,D)):(_.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function u(_){var D=function(T,O){for(;!T.eol();)if(T.next()==_){O.tokenize=s;break}return"string"};return D.isInAttribute=!0,D}function a(_,D){return function(T,O){for(;!T.eol();){if(T.match(D)){O.tokenize=e;break}T.next()}return _}}function A(_){return function(D,T){for(var O;(O=D.next())!=null;){if(O=="<")return T.tokenize=A(_+1),T.tokenize(D,T);if(O==">")if(_==1){T.tokenize=e;break}else return T.tokenize=A(_-1),T.tokenize(D,T)}return"meta"}}function d(_,D,T){this.prev=_.context,this.tagName=D,this.indent=_.indented,this.startOfLine=T,(b.doNotIndent.hasOwnProperty(D)||_.context&&_.context.noIndent)&&(this.noIndent=!0)}function i(_){_.context&&(_.context=_.context.prev)}function h(_,D){for(var T;;){if(!_.context)return;if(T=_.context.tagName,!b.contextGrabbers.hasOwnProperty(T)||!b.contextGrabbers[T].hasOwnProperty(D))return;i(_)}}function y(_,D,T){return _=="openTag"?(T.tagStart=D.column(),v):_=="closeTag"?x:y}function v(_,D,T){return _=="word"?(T.tagName=D.current(),n="tag",w):b.allowMissingTagName&&_=="endTag"?(n="tag bracket",w(_,D,T)):(n="error",v)}function x(_,D,T){if(_=="word"){var O=D.current();return T.context&&T.context.tagName!=O&&b.implicitlyClosed.hasOwnProperty(T.context.tagName)&&i(T),T.context&&T.context.tagName==O||b.matchClosing===!1?(n="tag",S):(n="tag error",B)}else return b.allowMissingTagName&&_=="endTag"?(n="tag bracket",S(_,D,T)):(n="error",B)}function S(_,D,T){return _!="endTag"?(n="error",S):(i(T),y)}function B(_,D,T){return n="error",S(_,D,T)}function w(_,D,T){if(_=="word")return n="attribute",m;if(_=="endTag"||_=="selfcloseTag"){var O=T.tagName,R=T.tagStart;return T.tagName=T.tagStart=null,_=="selfcloseTag"||b.autoSelfClosers.hasOwnProperty(O)?h(T,O):(h(T,O),T.context=new d(T,O,R==T.indented)),y}return n="error",w}function m(_,D,T){return _=="equals"?c:(b.allowMissing||(n="error"),w(_,D,T))}function c(_,D,T){return _=="string"?o:_=="word"&&b.allowUnquoted?(n="string",w):(n="error",w(_,D,T))}function o(_,D,T){return _=="string"?o:w(_,D,T)}return{startState:function(_){var D={tokenize:e,state:y,indented:_||0,tagName:null,tagStart:null,context:null};return _!=null&&(D.baseIndent=_),D},token:function(_,D){if(!D.tagName&&_.sol()&&(D.indented=_.indentation()),_.eatSpace())return null;r=null;var T=D.tokenize(_,D);return(T||r)&&T!="comment"&&(n=null,D.state=D.state(r||T,_,D),n&&(T=n=="error"?T+" error":n)),T},indent:function(_,D,T){var O=_.context;if(_.tokenize.isInAttribute)return _.tagStart==_.indented?_.stringStartCol+1:_.indented+C;if(O&&O.noIndent)return ae.Pass;if(_.tokenize!=s&&_.tokenize!=e)return T?T.match(/^(\s*)/)[0].length:0;if(_.tagName)return b.multilineTagIndentPastTag!==!1?_.tagStart+_.tagName.length+2:_.tagStart+C*(b.multilineTagIndentFactor||1);if(b.alignCDATA&&/<!\[CDATA\[/.test(D))return 0;var R=D&&/^<(\/)?([\w_:\.-]*)/.exec(D);if(R&&R[1])for(;O;)if(O.tagName==R[2]){O=O.prev;break}else if(b.implicitlyClosed.hasOwnProperty(O.tagName))O=O.prev;else break;else if(R)for(;O;){var U=b.contextGrabbers[O.tagName];if(U&&U.hasOwnProperty(R[2]))O=O.prev;else break}for(;O&&O.prev&&!O.startOfLine;)O=O.prev;return O?O.indent+C:_.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:b.htmlMode?"html":"xml",helperType:b.htmlMode?"html":"xml",skipAttribute:function(_){_.state==c&&(_.state=w)},xmlCurrentTag:function(_){return _.tagName?{name:_.tagName,close:_.type=="closeTag"}:null},xmlCurrentContext:function(_){for(var D=[],T=_.context;T;T=T.prev)T.tagName&&D.push(T.tagName);return D.reverse()}}}),ae.defineMIME("text/xml","xml"),ae.defineMIME("application/xml","xml"),ae.mimeModes.hasOwnProperty("text/html")||ae.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(We,Ce,I){"use strict";I.d(Ce,"d",function(){return ce}),I.d(Ce,"b",function(){return At}),I.d(Ce,"c",function(){return Nt}),I.d(Ce,"a",function(){return jt});var ae=I("VTBJ"),V=I("1OyB"),M=I("vuIU"),p=I("JX7q"),E=I("Ji7U"),C=I("LK+K"),b=I("q1tI"),f=I("I8Z2"),l=I("BGR+"),r=I("wx14"),n=I("rePB"),e=I("4IlW"),s=I("2GS6"),u=I("Gytx"),a=I.n(u),A=I("TSYQ"),d=I.n(A),i=I("U8pU"),h=I("ODXe"),y=/iPhone/i,v=/iPod/i,x=/iPad/i,S=/\bAndroid(?:.+)Mobile\b/i,B=/Android/i,w=/\bAndroid(?:.+)SD4930UR\b/i,m=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,c=/Windows Phone/i,o=/\bWindows(?:.+)ARM\b/i,_=/BlackBerry/i,D=/BB10/i,T=/Opera Mini/i,O=/\b(CriOS|Chrome)(?:.+)Mobile/i,R=/Mobile(?:.+)Firefox\b/i;function U(Lt,St){return Lt.test(St)}function F(Lt){var St=Lt||(typeof navigator!="undefined"?navigator.userAgent:""),dt=St.split("[FBAN");if(typeof dt[1]!="undefined"){var yt=dt,Fe=Object(h.a)(yt,1);St=Fe[0]}if(dt=St.split("Twitter"),typeof dt[1]!="undefined"){var et=dt,Ot=Object(h.a)(et,1);St=Ot[0]}var Et={apple:{phone:U(y,St)&&!U(c,St),ipod:U(v,St),tablet:!U(y,St)&&U(x,St)&&!U(c,St),device:(U(y,St)||U(v,St)||U(x,St))&&!U(c,St)},amazon:{phone:U(w,St),tablet:!U(w,St)&&U(m,St),device:U(w,St)||U(m,St)},android:{phone:!U(c,St)&&U(w,St)||!U(c,St)&&U(S,St),tablet:!U(c,St)&&!U(w,St)&&!U(S,St)&&(U(m,St)||U(B,St)),device:!U(c,St)&&(U(w,St)||U(m,St)||U(S,St)||U(B,St))||U(/\bokhttp\b/i,St)},windows:{phone:U(c,St),tablet:U(o,St),device:U(c,St)||U(o,St)},other:{blackberry:U(_,St),blackberry10:U(D,St),opera:U(T,St),firefox:U(R,St),chrome:U(O,St),device:U(_,St)||U(D,St)||U(T,St)||U(R,St)||U(O,St)},any:null,phone:null,tablet:null};return Et.any=Et.apple.device||Et.android.device||Et.windows.device||Et.other.device,Et.phone=Et.apple.phone||Et.android.phone||Et.windows.phone,Et.tablet=Et.apple.tablet||Et.android.tablet||Et.windows.tablet,Et}var Y=Object(ae.a)(Object(ae.a)({},F()),{},{isMobile:F}),k=Y;function K(){}function z(Lt,St,dt){var yt=St||"";return Lt.key||"".concat(yt,"item_").concat(dt)}function j(Lt){return"".concat(Lt,"-menu-")}function Q(Lt,St){var dt=-1;b.Children.forEach(Lt,function(yt){dt+=1,yt&&yt.type&&yt.type.isMenuItemGroup?b.Children.forEach(yt.props.children,function(Fe){dt+=1,St(Fe,dt)}):St(yt,dt)})}function X(Lt,St,dt){if(!Lt||dt.find)return;b.Children.forEach(Lt,function(yt){if(yt){var Fe=yt.type;if(!Fe||!(Fe.isSubMenu||Fe.isMenuItem||Fe.isMenuItemGroup))return;St.indexOf(yt.key)!==-1?dt.find=!0:yt.props.children&&X(yt.props.children,St,dt)}})}var te=["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"],oe=function(St){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,yt=St&&typeof St.getBoundingClientRect=="function"&&St.getBoundingClientRect().width;if(yt){if(dt){var Fe=getComputedStyle(St),et=Fe.marginLeft,Ot=Fe.marginRight;yt+=+et.replace("px","")+ +Ot.replace("px","")}yt=+yt.toFixed(6)}return yt||0},fe=function(St,dt,yt){St&&Object(i.a)(St.style)==="object"&&(St.style[dt]=yt)},le=function(){return k.any},we=I("KQm4"),Ae=I("Ff2n"),be=I("i8i4"),me=I("bdgK"),he=I("uciX"),ie=I("8XRh"),pe={adjustX:1,adjustY:1},ye={topLeft:{points:["bl","tl"],overflow:pe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:pe,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:pe,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:pe,offset:[4,0]}},de={topLeft:{points:["bl","tl"],overflow:pe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:pe,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:pe,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:pe,offset:[4,0]}},Me=ye,ke=0,Ue={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},re=function(St,dt,yt){var Fe=j(dt),et=St.getState();St.setState({defaultActiveFirst:Object(ae.a)(Object(ae.a)({},et.defaultActiveFirst),{},Object(n.a)({},Fe,yt))})},N=function(Lt){Object(E.a)(dt,Lt);var St=Object(C.a)(dt);function dt(yt){var Fe;Object(V.a)(this,dt),Fe=St.call(this,yt),Fe.onDestroy=function(bt){Fe.props.onDestroy(bt)},Fe.onKeyDown=function(bt){var Gt=bt.keyCode,un=Fe.menuInstance,jn=Fe.props,Bn=jn.isOpen,Nr=jn.store;if(Gt===e.a.ENTER)return Fe.onTitleClick(bt),re(Nr,Fe.props.eventKey,!0),!0;if(Gt===e.a.RIGHT)return Bn?un.onKeyDown(bt):(Fe.triggerOpenChange(!0),re(Nr,Fe.props.eventKey,!0)),!0;if(Gt===e.a.LEFT){var zr;if(Bn)zr=un.onKeyDown(bt);else return;return zr||(Fe.triggerOpenChange(!1),zr=!0),zr}return Bn&&(Gt===e.a.UP||Gt===e.a.DOWN)?un.onKeyDown(bt):void 0},Fe.onOpenChange=function(bt){Fe.props.onOpenChange(bt)},Fe.onPopupVisibleChange=function(bt){Fe.triggerOpenChange(bt,bt?"mouseenter":"mouseleave")},Fe.onMouseEnter=function(bt){var Gt=Fe.props,un=Gt.eventKey,jn=Gt.onMouseEnter,Bn=Gt.store;re(Bn,Fe.props.eventKey,!1),jn({key:un,domEvent:bt})},Fe.onMouseLeave=function(bt){var Gt=Fe.props,un=Gt.parentMenu,jn=Gt.eventKey,Bn=Gt.onMouseLeave;un.subMenuInstance=Object(p.a)(Fe),Bn({key:jn,domEvent:bt})},Fe.onTitleMouseEnter=function(bt){var Gt=Fe.props,un=Gt.eventKey,jn=Gt.onItemHover,Bn=Gt.onTitleMouseEnter;jn({key:un,hover:!0}),Bn({key:un,domEvent:bt})},Fe.onTitleMouseLeave=function(bt){var Gt=Fe.props,un=Gt.parentMenu,jn=Gt.eventKey,Bn=Gt.onItemHover,Nr=Gt.onTitleMouseLeave;un.subMenuInstance=Object(p.a)(Fe),Bn({key:jn,hover:!1}),Nr({key:jn,domEvent:bt})},Fe.onTitleClick=function(bt){var Gt=Object(p.a)(Fe),un=Gt.props;if(un.onTitleClick({key:un.eventKey,domEvent:bt}),un.triggerSubMenuAction==="hover")return;Fe.triggerOpenChange(!un.isOpen,"click"),re(un.store,Fe.props.eventKey,!1)},Fe.onSubMenuClick=function(bt){typeof Fe.props.onClick=="function"&&Fe.props.onClick(Fe.addKeyPath(bt))},Fe.onSelect=function(bt){Fe.props.onSelect(bt)},Fe.onDeselect=function(bt){Fe.props.onDeselect(bt)},Fe.getPrefixCls=function(){return"".concat(Fe.props.rootPrefixCls,"-submenu")},Fe.getActiveClassName=function(){return"".concat(Fe.getPrefixCls(),"-active")},Fe.getDisabledClassName=function(){return"".concat(Fe.getPrefixCls(),"-disabled")},Fe.getSelectedClassName=function(){return"".concat(Fe.getPrefixCls(),"-selected")},Fe.getOpenClassName=function(){return"".concat(Fe.props.rootPrefixCls,"-submenu-open")},Fe.saveMenuInstance=function(bt){Fe.menuInstance=bt},Fe.addKeyPath=function(bt){return Object(ae.a)(Object(ae.a)({},bt),{},{keyPath:(bt.keyPath||[]).concat(Fe.props.eventKey)})},Fe.triggerOpenChange=function(bt,Gt){var un=Fe.props.eventKey,jn=function(){Fe.onOpenChange({key:un,item:Object(p.a)(Fe),trigger:Gt,open:bt})};Gt==="mouseenter"?Fe.mouseenterTimeout=setTimeout(function(){jn()},0):jn()},Fe.isChildrenSelected=function(){var bt={find:!1};return X(Fe.props.children,Fe.props.selectedKeys,bt),bt.find},Fe.isOpen=function(){return Fe.props.openKeys.indexOf(Fe.props.eventKey)!==-1},Fe.adjustWidth=function(){if(!Fe.subMenuTitle||!Fe.menuInstance)return;var bt=be.findDOMNode(Fe.menuInstance);if(bt.offsetWidth>=Fe.subMenuTitle.offsetWidth)return;bt.style.minWidth="".concat(Fe.subMenuTitle.offsetWidth,"px")},Fe.saveSubMenuTitle=function(bt){Fe.subMenuTitle=bt},Fe.getBaseProps=function(){var bt=Object(p.a)(Fe),Gt=bt.props;return{mode:Gt.mode==="horizontal"?"vertical":Gt.mode,visible:Fe.props.isOpen,level:Gt.level+1,inlineIndent:Gt.inlineIndent,focusable:!1,onClick:Fe.onSubMenuClick,onSelect:Fe.onSelect,onDeselect:Fe.onDeselect,onDestroy:Fe.onDestroy,selectedKeys:Gt.selectedKeys,eventKey:"".concat(Gt.eventKey,"-menu-"),openKeys:Gt.openKeys,motion:Gt.motion,onOpenChange:Fe.onOpenChange,subMenuOpenDelay:Gt.subMenuOpenDelay,parentMenu:Object(p.a)(Fe),subMenuCloseDelay:Gt.subMenuCloseDelay,forceSubMenuRender:Gt.forceSubMenuRender,triggerSubMenuAction:Gt.triggerSubMenuAction,builtinPlacements:Gt.builtinPlacements,defaultActiveFirst:Gt.store.getState().defaultActiveFirst[j(Gt.eventKey)],multiple:Gt.multiple,prefixCls:Gt.rootPrefixCls,id:Fe.internalMenuId,manualRef:Fe.saveMenuInstance,itemIcon:Gt.itemIcon,expandIcon:Gt.expandIcon,direction:Gt.direction}},Fe.getMotion=function(bt,Gt){var un=Object(p.a)(Fe),jn=un.haveRendered,Bn=Fe.props,Nr=Bn.motion,zr=Bn.rootPrefixCls,_r=Object(ae.a)(Object(ae.a)({},Nr),{},{leavedClassName:"".concat(zr,"-hidden"),removeOnLeave:!1,motionAppear:jn||!Gt||bt!=="inline"});return _r};var et=yt.store,Ot=yt.eventKey,Et=et.getState(),Ut=Et.defaultActiveFirst;Fe.isRootMenu=!1;var Wt=!1;return Ut&&(Wt=Ut[Ot]),re(et,Ot,Wt),Fe}return Object(M.a)(dt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Fe=this,et=this.props,Ot=et.mode,Et=et.parentMenu,Ut=et.manualRef;if(Ut&&Ut(this),Ot!=="horizontal"||!Et.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Fe.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Fe=this.props,et=Fe.onDestroy,Ot=Fe.eventKey;et&&et(Ot),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Fe){var et=this,Ot=this.getBaseProps(),Et=this.getMotion(Ot.mode,Ot.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Ot.visible||Ot.forceSubMenuRender,!this.haveOpened)return b.createElement("div",null);var Ut=Ot.direction;return b.createElement(ie.default,Object.assign({visible:Ot.visible},Et),function(Wt){var bt=Wt.className,Gt=Wt.style,un=d()("".concat(Ot.prefixCls,"-sub"),bt,Object(n.a)({},"".concat(Ot.prefixCls,"-rtl"),Ut==="rtl"));return b.createElement(rt,Object.assign({},Ot,{id:et.internalMenuId,className:un,style:Gt}),Fe)})}},{key:"render",value:function(){var Fe,et=Object(ae.a)({},this.props),Ot=et.isOpen,Et=this.getPrefixCls(),Ut=et.mode==="inline",Wt=d()(Et,"".concat(Et,"-").concat(et.mode),(Fe={},Object(n.a)(Fe,et.className,!!et.className),Object(n.a)(Fe,this.getOpenClassName(),Ot),Object(n.a)(Fe,this.getActiveClassName(),et.active||Ot&&!Ut),Object(n.a)(Fe,this.getDisabledClassName(),et.disabled),Object(n.a)(Fe,this.getSelectedClassName(),this.isChildrenSelected()),Fe));this.internalMenuId||(et.eventKey?this.internalMenuId="".concat(et.eventKey,"$Menu"):(ke+=1,this.internalMenuId="$__$".concat(ke,"$Menu")));var bt={},Gt={},un={};et.disabled||(bt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Gt={onClick:this.onTitleClick},un={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var jn={},Bn=et.direction;Ut&&(Bn==="rtl"?jn.paddingRight=et.inlineIndent*et.level:jn.paddingLeft=et.inlineIndent*et.level);var Nr={};this.props.isOpen&&(Nr={"aria-owns":this.internalMenuId});var zr=null;et.mode!=="horizontal"&&(zr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(zr=b.createElement(this.props.expandIcon,Object(ae.a)({},this.props))));var _r=b.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:jn,className:"".concat(Et,"-title"),role:"button"},un,Gt,{"aria-expanded":Ot},Nr,{"aria-haspopup":"true",title:typeof et.title=="string"?et.title:void 0}),et.title,zr||b.createElement("i",{className:"".concat(Et,"-arrow")})),Rn=this.renderChildren(et.children),ea=et.parentMenu.isRootMenu?et.parentMenu.props.getPopupContainer:function(Vt){return Vt.parentNode},Aa=Ue[et.mode],pa=et.popupOffset?{offset:et.popupOffset}:{},Kr=et.mode==="inline"?"":et.popupClassName;Kr+=Bn==="rtl"?" ".concat(Et,"-rtl"):"";var Ea=et.disabled,Za=et.triggerSubMenuAction,fi=et.subMenuOpenDelay,Re=et.forceSubMenuRender,Qe=et.subMenuCloseDelay,it=et.builtinPlacements;te.forEach(function(Vt){return delete et[Vt]}),delete et.onClick;var Tt=Bn==="rtl"?Object.assign({},de,it):Object.assign({},ye,it);return delete et.direction,b.createElement("li",Object.assign({},et,bt,{className:Wt,role:"menuitem"}),Ut&&_r,Ut&&Rn,!Ut&&b.createElement(he.a,{prefixCls:Et,popupClassName:d()("".concat(Et,"-popup"),Kr),getPopupContainer:ea,builtinPlacements:Tt,popupPlacement:Aa,popupVisible:Ot,popupAlign:pa,popup:Rn,action:Ea?[]:[Za],mouseEnterDelay:fi,mouseLeaveDelay:Qe,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Re},_r))}}]),dt}(b.Component);N.defaultProps={onMouseEnter:K,onMouseLeave:K,onTitleMouseEnter:K,onTitleMouseLeave:K,onTitleClick:K,manualRef:K,mode:"vertical",title:""};var W=Object(f.b)(function(Lt,St){var dt=Lt.openKeys,yt=Lt.activeKey,Fe=Lt.selectedKeys,et=St.eventKey,Ot=St.subMenuKey;return{isOpen:dt.indexOf(et)>-1,active:yt[Ot]===et,selectedKeys:Fe}})(N);W.isSubMenu=!0;var ce=W,ne="menuitem-overflowed",ue=.5,De=function(Lt){Object(E.a)(dt,Lt);var St=Object(C.a)(dt);function dt(){var yt;return Object(V.a)(this,dt),yt=St.apply(this,arguments),yt.resizeObserver=null,yt.mutationObserver=null,yt.originalTotalWidth=0,yt.overflowedItems=[],yt.menuItemSizes=[],yt.cancelFrameId=null,yt.state={lastVisibleIndex:void 0},yt.getMenuItemNodes=function(){var Fe=yt.props.prefixCls,et=be.findDOMNode(Object(p.a)(yt));return et?[].slice.call(et.children).filter(function(Ot){return Ot.className.split(" ").indexOf("".concat(Fe,"-overflowed-submenu"))<0}):[]},yt.getOverflowedSubMenuItem=function(Fe,et,Ot){var Et=yt.props,Ut=Et.overflowedIndicator,Wt=Et.level,bt=Et.mode,Gt=Et.prefixCls,un=Et.theme;if(Wt!==1||bt!=="horizontal")return null;var jn=yt.props.children[0],Bn=jn.props,Nr=Bn.children,zr=Bn.title,_r=Bn.style,Rn=Object(Ae.a)(Bn,["children","title","style"]),ea=Object(ae.a)({},_r),Aa="".concat(Fe,"-overflowed-indicator"),pa="".concat(Fe,"-overflowed-indicator");et.length===0&&Ot!==!0?ea=Object(ae.a)(Object(ae.a)({},ea),{},{display:"none"}):Ot&&(ea=Object(ae.a)(Object(ae.a)({},ea),{},{visibility:"hidden",position:"absolute"}),Aa="".concat(Aa,"-placeholder"),pa="".concat(pa,"-placeholder"));var Kr=un?"".concat(Gt,"-").concat(un):"",Ea={};return te.forEach(function(Za){Rn[Za]!==void 0&&(Ea[Za]=Rn[Za])}),b.createElement(ce,Object.assign({title:Ut,className:"".concat(Gt,"-overflowed-submenu"),popupClassName:Kr},Ea,{key:Aa,eventKey:pa,disabled:!1,style:ea}),et)},yt.setChildrenWidthAndResize=function(){if(yt.props.mode!=="horizontal")return;var Fe=be.findDOMNode(Object(p.a)(yt));if(!Fe)return;var et=Fe.children;if(!et||et.length===0)return;var Ot=Fe.children[et.length-1];fe(Ot,"display","inline-block");var Et=yt.getMenuItemNodes(),Ut=Et.filter(function(Wt){return Wt.className.split(" ").indexOf(ne)>=0});Ut.forEach(function(Wt){fe(Wt,"display","inline-block")}),yt.menuItemSizes=Et.map(function(Wt){return oe(Wt,!0)}),Ut.forEach(function(Wt){fe(Wt,"display","none")}),yt.overflowedIndicatorWidth=oe(Fe.children[Fe.children.length-1],!0),yt.originalTotalWidth=yt.menuItemSizes.reduce(function(Wt,bt){return Wt+bt},0),yt.handleResize(),fe(Ot,"display","none")},yt.handleResize=function(){if(yt.props.mode!=="horizontal")return;var Fe=be.findDOMNode(Object(p.a)(yt));if(!Fe)return;var et=oe(Fe);yt.overflowedItems=[];var Ot=0,Et;yt.originalTotalWidth>et+ue&&(Et=-1,yt.menuItemSizes.forEach(function(Ut){Ot+=Ut,Ot+yt.overflowedIndicatorWidth<=et&&(Et+=1)})),yt.setState({lastVisibleIndex:Et})},yt}return Object(M.a)(dt,[{key:"componentDidMount",value:function(){var Fe=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var et=be.findDOMNode(this);if(!et)return;this.resizeObserver=new me.default(function(Ot){Ot.forEach(function(){var Et=Fe.cancelFrameId;cancelAnimationFrame(Et),Fe.cancelFrameId=requestAnimationFrame(Fe.setChildrenWidthAndResize)})}),[].slice.call(et.children).concat(et).forEach(function(Ot){Fe.resizeObserver.observe(Ot)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Fe.resizeObserver.disconnect(),[].slice.call(et.children).concat(et).forEach(function(Ot){Fe.resizeObserver.observe(Ot)}),Fe.setChildrenWidthAndResize()}),this.mutationObserver.observe(et,{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(Fe){var et=this,Ot=this.state.lastVisibleIndex;return(Fe||[]).reduce(function(Et,Ut,Wt){var bt=Ut;if(et.props.mode==="horizontal"){var Gt=et.getOverflowedSubMenuItem(Ut.props.eventKey,[]);Ot!==void 0&&et.props.className.indexOf("".concat(et.props.prefixCls,"-root"))!==-1&&(Wt>Ot&&(bt=b.cloneElement(Ut,{style:{display:"none"},eventKey:"".concat(Ut.props.eventKey,"-hidden"),className:"".concat(ne)})),Wt===Ot+1&&(et.overflowedItems=Fe.slice(Ot+1).map(function(jn){return b.cloneElement(jn,{key:jn.props.eventKey,mode:"vertical-left"})}),Gt=et.getOverflowedSubMenuItem(Ut.props.eventKey,et.overflowedItems)));var un=[].concat(Object(we.a)(Et),[Gt,bt]);return Wt===Fe.length-1&&un.push(et.getOverflowedSubMenuItem(Ut.props.eventKey,[],!0)),un}return[].concat(Object(we.a)(Et),[bt])},[])}},{key:"render",value:function(){var Fe=this.props,et=Fe.visible,Ot=Fe.prefixCls,Et=Fe.overflowedIndicator,Ut=Fe.mode,Wt=Fe.level,bt=Fe.tag,Gt=Fe.children,un=Fe.theme,jn=Object(Ae.a)(Fe,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Bn=bt;return b.createElement(Bn,Object.assign({},jn),this.renderChildren(Gt))}}]),dt}(b.Component);De.defaultProps={tag:"div",className:""};var ze=De;function wt(Lt){return Lt.length?Lt.every(function(St){return!!St.props.disabled}):!0}function He(Lt,St,dt){var yt=Lt.getState();Lt.setState({activeKey:Object(ae.a)(Object(ae.a)({},yt.activeKey),{},Object(n.a)({},St,dt))})}function Xe(Lt){return Lt.eventKey||"0-menu-"}function gt(Lt,St){var dt=St,yt=Lt.children,Fe=Lt.eventKey;if(dt){var et;if(Q(yt,function(Ot,Et){Ot&&Ot.props&&!Ot.props.disabled&&dt===z(Ot,Fe,Et)&&(et=!0)}),et)return dt}return dt=null,Lt.defaultActiveFirst&&Q(yt,function(Ot,Et){!dt&&Ot&&!Ot.props.disabled&&(dt=z(Ot,Fe,Et))}),dt}function _t(Lt){if(Lt){var St=this.instanceArray.indexOf(Lt);St!==-1?this.instanceArray[St]=Lt:this.instanceArray.push(Lt)}}var ct=function(Lt){Object(E.a)(dt,Lt);var St=Object(C.a)(dt);function dt(yt){var Fe;return Object(V.a)(this,dt),Fe=St.call(this,yt),Fe.onKeyDown=function(et,Ot){var Et=et.keyCode,Ut;if(Fe.getFlatInstanceArray().forEach(function(bt){bt&&bt.props.active&&bt.onKeyDown&&(Ut=bt.onKeyDown(et))}),Ut)return 1;var Wt=null;return(Et===e.a.UP||Et===e.a.DOWN)&&(Wt=Fe.step(Et===e.a.UP?-1:1)),Wt?(et.preventDefault(),He(Fe.props.store,Xe(Fe.props),Wt.props.eventKey),typeof Ot=="function"&&Ot(Wt),1):void 0},Fe.onItemHover=function(et){var Ot=et.key,Et=et.hover;He(Fe.props.store,Xe(Fe.props),Et?Ot:null)},Fe.onDeselect=function(et){Fe.props.onDeselect(et)},Fe.onSelect=function(et){Fe.props.onSelect(et)},Fe.onClick=function(et){Fe.props.onClick(et)},Fe.onOpenChange=function(et){Fe.props.onOpenChange(et)},Fe.onDestroy=function(et){Fe.props.onDestroy(et)},Fe.getFlatInstanceArray=function(){return Fe.instanceArray},Fe.step=function(et){var Ot=Fe.getFlatInstanceArray(),Et=Fe.props.store.getState().activeKey[Xe(Fe.props)],Ut=Ot.length;if(!Ut)return null;et<0&&(Ot=Ot.concat().reverse());var Wt=-1;if(Ot.every(function(jn,Bn){return jn&&jn.props.eventKey===Et?(Wt=Bn,!1):!0}),!Fe.props.defaultActiveFirst&&Wt!==-1&&wt(Ot.slice(Wt,Ut-1)))return;var bt=(Wt+1)%Ut,Gt=bt;do{var un=Ot[Gt];if(!un||un.props.disabled)Gt=(Gt+1)%Ut;else return un}while(Gt!==bt);return null},Fe.renderCommonMenuItem=function(et,Ot,Et){var Ut=Fe.props.store.getState(),Wt=Object(p.a)(Fe),bt=Wt.props,Gt=z(et,bt.eventKey,Ot),un=et.props;if(!un||typeof et.type=="string")return et;var jn=Gt===Ut.activeKey,Bn=Object(ae.a)(Object(ae.a)({mode:un.mode||bt.mode,level:bt.level,inlineIndent:bt.inlineIndent,renderMenuItem:Fe.renderMenuItem,rootPrefixCls:bt.prefixCls,index:Ot,parentMenu:bt.parentMenu,manualRef:un.disabled?void 0:Object(s.a)(et.ref,_t.bind(Object(p.a)(Fe))),eventKey:Gt,active:!un.disabled&&jn,multiple:bt.multiple,onClick:function(zr){(un.onClick||K)(zr),Fe.onClick(zr)},onItemHover:Fe.onItemHover,motion:bt.motion,subMenuOpenDelay:bt.subMenuOpenDelay,subMenuCloseDelay:bt.subMenuCloseDelay,forceSubMenuRender:bt.forceSubMenuRender,onOpenChange:Fe.onOpenChange,onDeselect:Fe.onDeselect,onSelect:Fe.onSelect,builtinPlacements:bt.builtinPlacements,itemIcon:un.itemIcon||Fe.props.itemIcon,expandIcon:un.expandIcon||Fe.props.expandIcon},Et),{},{direction:bt.direction});return(bt.mode==="inline"||le())&&(Bn.triggerSubMenuAction="click"),b.cloneElement(et,Bn)},Fe.renderMenuItem=function(et,Ot,Et){if(!et)return null;var Ut=Fe.props.store.getState(),Wt={openKeys:Ut.openKeys,selectedKeys:Ut.selectedKeys,triggerSubMenuAction:Fe.props.triggerSubMenuAction,subMenuKey:Et};return Fe.renderCommonMenuItem(et,Ot,Wt)},yt.store.setState({activeKey:Object(ae.a)(Object(ae.a)({},yt.store.getState().activeKey),{},Object(n.a)({},yt.eventKey,gt(yt,yt.activeKey)))}),Fe.instanceArray=[],Fe}return Object(M.a)(dt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Fe){return this.props.visible||Fe.visible||this.props.className!==Fe.className||!a()(this.props.style,Fe.style)}},{key:"componentDidUpdate",value:function(Fe){var et=this.props,Ot="activeKey"in et?et.activeKey:et.store.getState().activeKey[Xe(et)],Et=gt(et,Ot);if(Et!==Ot)He(et.store,Xe(et),Et);else if("activeKey"in Fe){var Ut=gt(Fe,Fe.activeKey);Et!==Ut&&He(et.store,Xe(et),Et)}}},{key:"render",value:function(){var Fe=this,et=Object(r.a)({},this.props);this.instanceArray=[];var Ot=d()(et.prefixCls,et.className,"".concat(et.prefixCls,"-").concat(et.mode)),Et={className:Ot,role:et.role||"menu"};et.id&&(Et.id=et.id),et.focusable&&(Et.tabIndex=0,Et.onKeyDown=this.onKeyDown);var Ut=et.prefixCls,Wt=et.eventKey,bt=et.visible,Gt=et.level,un=et.mode,jn=et.overflowedIndicator,Bn=et.theme;return te.forEach(function(Nr){return delete et[Nr]}),delete et.onClick,b.createElement(ze,Object.assign({},et,{prefixCls:Ut,mode:un,tag:"ul",level:Gt,theme:Bn,visible:bt,overflowedIndicator:jn},Et),b.Children.map(et.children,function(Nr,zr){return Fe.renderMenuItem(Nr,zr,Wt||"0-menu-")}))}}]),dt}(b.Component);ct.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:K};var lt=Object(f.b)()(ct),rt=lt,Ze=I("Kwbf");function qe(Lt,St,dt){var yt=Lt.prefixCls,Fe=Lt.motion,et=Lt.defaultMotions,Ot=et===void 0?{}:et,Et=Lt.openAnimation,Ut=Lt.openTransitionName,Wt=St.switchingModeFromInline;if(Fe)return Fe;if(Object(i.a)(Et)==="object"&&Et)Object(Ze.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Et=="string")return{motionName:"".concat(yt,"-open-").concat(Et)};if(Ut)return{motionName:Ut};var bt=Ot[dt];return bt||(Wt?null:Ot.other)}var Le=function(Lt){Object(E.a)(dt,Lt);var St=Object(C.a)(dt);function dt(yt){var Fe;Object(V.a)(this,dt),Fe=St.call(this,yt),Fe.inlineOpenKeys=[],Fe.onSelect=function(Et){var Ut=Object(p.a)(Fe),Wt=Ut.props;if(Wt.selectable){var bt=Fe.store.getState(),Gt=bt.selectedKeys,un=Et.key;Wt.multiple?Gt=Gt.concat([un]):Gt=[un],"selectedKeys"in Wt||Fe.store.setState({selectedKeys:Gt}),Wt.onSelect(Object(ae.a)(Object(ae.a)({},Et),{},{selectedKeys:Gt}))}},Fe.onClick=function(Et){var Ut=Fe.getRealMenuMode(),Wt=Object(p.a)(Fe),bt=Wt.store,Gt=Wt.props.onOpenChange;Ut!=="inline"&&!("openKeys"in Fe.props)&&(bt.setState({openKeys:[]}),Gt([])),Fe.props.onClick(Et)},Fe.onKeyDown=function(Et,Ut){Fe.innerMenu.getWrappedInstance().onKeyDown(Et,Ut)},Fe.onOpenChange=function(Et){var Ut=Object(p.a)(Fe),Wt=Ut.props,bt=Fe.store.getState().openKeys.concat(),Gt=!1,un=function(Bn){var Nr=!1;if(Bn.open)Nr=bt.indexOf(Bn.key)===-1,Nr&&bt.push(Bn.key);else{var zr=bt.indexOf(Bn.key);Nr=zr!==-1,Nr&&bt.splice(zr,1)}Gt=Gt||Nr};Array.isArray(Et)?Et.forEach(un):un(Et),Gt&&("openKeys"in Fe.props||Fe.store.setState({openKeys:bt}),Wt.onOpenChange(bt))},Fe.onDeselect=function(Et){var Ut=Object(p.a)(Fe),Wt=Ut.props;if(Wt.selectable){var bt=Fe.store.getState().selectedKeys.concat(),Gt=Et.key,un=bt.indexOf(Gt);un!==-1&&bt.splice(un,1),"selectedKeys"in Wt||Fe.store.setState({selectedKeys:bt}),Wt.onDeselect(Object(ae.a)(Object(ae.a)({},Et),{},{selectedKeys:bt}))}},Fe.onMouseEnter=function(Et){Fe.restoreModeVerticalFromInline();var Ut=Fe.props.onMouseEnter;Ut&&Ut(Et)},Fe.onTransitionEnd=function(Et){var Ut=Et.propertyName==="width"&&Et.target===Et.currentTarget,Wt=Et.target.className,bt=Object.prototype.toString.call(Wt)==="[object SVGAnimatedString]"?Wt.animVal:Wt,Gt=Et.propertyName==="font-size"&&bt.indexOf("anticon")>=0;(Ut||Gt)&&Fe.restoreModeVerticalFromInline()},Fe.setInnerMenu=function(Et){Fe.innerMenu=Et},Fe.isRootMenu=!0;var et=yt.defaultSelectedKeys,Ot=yt.defaultOpenKeys;return"selectedKeys"in yt&&(et=yt.selectedKeys||[]),"openKeys"in yt&&(Ot=yt.openKeys||[]),Fe.store=Object(f.c)({selectedKeys:et,openKeys:Ot,activeKey:{"0-menu-":gt(yt,yt.activeKey)}}),Fe.state={switchingModeFromInline:!1},Fe}return Object(M.a)(dt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Fe){this.updateOpentKeysWhenSwitchMode(Fe),this.updateMiniStore();var et=this.props,Ot=et.siderCollapsed,Et=et.inlineCollapsed,Ut=et.onOpenChange;(!Fe.inlineCollapsed&&Et||!Fe.siderCollapsed&&Ot)&&Ut([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Fe){var et=this.props,Ot=this.store,Et=this.inlineOpenKeys,Ut=Ot.getState(),Wt={};Fe.mode==="inline"&&et.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in et||((et.inlineCollapsed&&!Fe.inlineCollapsed||et.siderCollapsed&&!Fe.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Ut.openKeys.concat(),Wt.openKeys=[]),(!et.inlineCollapsed&&Fe.inlineCollapsed||!et.siderCollapsed&&Fe.siderCollapsed)&&(Wt.openKeys=Et,this.inlineOpenKeys=[])),Object.keys(Wt).length&&Ot.setState(Wt)}},{key:"updateMenuDisplay",value:function(){var Fe=this.props.collapsedWidth,et=this.store,Ot=this.prevOpenKeys,Et=this.getInlineCollapsed()&&(Fe===0||Fe==="0"||Fe==="0px");Et?(this.prevOpenKeys=et.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Ot&&(this.store.setState({openKeys:Ot}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Fe=this.props.mode,et=this.state.switchingModeFromInline,Ot=this.getInlineCollapsed();return et&&Ot?"inline":Ot?"vertical":Fe}},{key:"getInlineCollapsed",value:function(){var Fe=this.props,et=Fe.inlineCollapsed,Ot=Fe.siderCollapsed;return Ot!==void 0?Ot:et}},{key:"restoreModeVerticalFromInline",value:function(){var Fe=this.state.switchingModeFromInline;Fe&&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 Fe=Object(ae.a)({},Object(l.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),et=this.getRealMenuMode();return Fe.className+=" ".concat(Fe.prefixCls,"-root"),Fe.direction==="rtl"&&(Fe.className+=" ".concat(Fe.prefixCls,"-rtl")),Fe=Object(ae.a)(Object(ae.a)({},Fe),{},{mode:et,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:qe(this.props,this.state,et)}),delete Fe.openAnimation,delete Fe.openTransitionName,b.createElement(f.a,{store:this.store},b.createElement(rt,Object.assign({},Fe,{ref:this.setInnerMenu}),this.props.children))}}]),dt}(b.Component);Le.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:b.createElement("span",null,"\xB7\xB7\xB7")};var je=Le,Ne=function(Lt){Object(E.a)(dt,Lt);var St=Object(C.a)(dt);function dt(){var yt;return Object(V.a)(this,dt),yt=St.apply(this,arguments),yt.onKeyDown=function(Fe){var et=Fe.keyCode;return et===e.a.ENTER?(yt.onClick(Fe),!0):void 0},yt.onMouseLeave=function(Fe){var et=yt.props,Ot=et.eventKey,Et=et.onItemHover,Ut=et.onMouseLeave;Et({key:Ot,hover:!1}),Ut({key:Ot,domEvent:Fe})},yt.onMouseEnter=function(Fe){var et=yt.props,Ot=et.eventKey,Et=et.onItemHover,Ut=et.onMouseEnter;Et({key:Ot,hover:!0}),Ut({key:Ot,domEvent:Fe})},yt.onClick=function(Fe){var et=yt.props,Ot=et.eventKey,Et=et.multiple,Ut=et.onClick,Wt=et.onSelect,bt=et.onDeselect,Gt=et.isSelected,un={key:Ot,keyPath:[Ot],item:Object(p.a)(yt),domEvent:Fe};Ut(un),Et?Gt?bt(un):Wt(un):Gt||Wt(un)},yt.saveNode=function(Fe){yt.node=Fe},yt}return Object(M.a)(dt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Fe=this.props;Fe.onDestroy&&Fe.onDestroy(Fe.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 Fe,et=Object(ae.a)({},this.props),Ot=d()(this.getPrefixCls(),et.className,(Fe={},Object(n.a)(Fe,this.getActiveClassName(),!et.disabled&&et.active),Object(n.a)(Fe,this.getSelectedClassName(),et.isSelected),Object(n.a)(Fe,this.getDisabledClassName(),et.disabled),Fe)),Et=Object(ae.a)(Object(ae.a)({},et.attribute),{},{title:typeof et.title=="string"?et.title:void 0,className:Ot,role:et.role||"menuitem","aria-disabled":et.disabled});et.role==="option"?Et=Object(ae.a)(Object(ae.a)({},Et),{},{role:"option","aria-selected":et.isSelected}):(et.role===null||et.role==="none")&&(Et.role="none");var Ut={onClick:et.disabled?null:this.onClick,onMouseLeave:et.disabled?null:this.onMouseLeave,onMouseEnter:et.disabled?null:this.onMouseEnter},Wt=Object(ae.a)({},et.style);et.mode==="inline"&&(et.direction==="rtl"?Wt.paddingRight=et.inlineIndent*et.level:Wt.paddingLeft=et.inlineIndent*et.level),te.forEach(function(Gt){return delete et[Gt]}),delete et.direction;var bt=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(bt=b.createElement(this.props.itemIcon,this.props)),b.createElement("li",Object.assign({},Object(l.default)(et,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Et,Ut,{style:Wt,ref:this.saveNode}),et.children,bt)}}]),dt}(b.Component);Ne.isMenuItem=!0,Ne.defaultProps={onSelect:K,onMouseEnter:K,onMouseLeave:K,manualRef:K};var $e=Object(f.b)(function(Lt,St){var dt=Lt.activeKey,yt=Lt.selectedKeys,Fe=St.eventKey,et=St.subMenuKey;return{active:dt[et]===Fe,isSelected:yt.indexOf(Fe)!==-1}})(Ne),At=$e,Bt=function(Lt){Object(E.a)(dt,Lt);var St=Object(C.a)(dt);function dt(){var yt;return Object(V.a)(this,dt),yt=St.apply(this,arguments),yt.renderInnerMenuItem=function(Fe){var et=yt.props,Ot=et.renderMenuItem,Et=et.index;return Ot(Fe,Et,yt.props.subMenuKey)},yt}return Object(M.a)(dt,[{key:"render",value:function(){var Fe=Object(r.a)({},this.props),et=Fe.className,Ot=et===void 0?"":et,Et=Fe.rootPrefixCls,Ut="".concat(Et,"-item-group-title"),Wt="".concat(Et,"-item-group-list"),bt=Fe.title,Gt=Fe.children;return te.forEach(function(un){return delete Fe[un]}),delete Fe.onClick,delete Fe.direction,b.createElement("li",Object.assign({},Fe,{className:"".concat(Ot," ").concat(Et,"-item-group")}),b.createElement("div",{className:Ut,title:typeof bt=="string"?bt:void 0},bt),b.createElement("ul",{className:Wt},b.Children.map(Gt,this.renderInnerMenuItem)))}}]),dt}(b.Component);Bt.isMenuItemGroup=!0,Bt.defaultProps={disabled:!0};var Nt=Bt,It=function(St){var dt=St.className,yt=St.rootPrefixCls,Fe=St.style;return b.createElement("li",{className:"".concat(dt," ").concat(yt,"-item-divider"),style:Fe})};It.defaultProps={disabled:!0,className:"",style:{}};var jt=It,xt=Ce.e=je},"24YM":function(We,Ce,I){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.SensorTabIndex=Ce.SensorClassName=Ce.SizeSensorId=void 0;var ae="size-sensor-id";Ce.SizeSensorId=ae;var V="size-sensor-object";Ce.SensorClassName=V;var M="-1";Ce.SensorTabIndex=M},"2DNl":function(We,Ce,I){var ae=I("IMiH"),V=I("loD1"),M=I("59Ip"),p=I("aKvl"),E=I("n1HI"),C=I("hX1E"),b=C.normalizeRadian,f=I("Sj9i"),l=I("hyiK"),r=ae.CMD,n=Math.PI*2,e=1e-4;function s(S,B){return Math.abs(S-B)<e}var u=[-1,-1,-1],a=[-1,-1];function A(){var S=a[0];a[0]=a[1],a[1]=S}function d(S,B,w,m,c,o,_,D,T,O){if(O>B&&O>m&&O>o&&O>D||O<B&&O<m&&O<o&&O<D)return 0;var R=f.cubicRootAt(B,m,o,D,O,u);if(R===0)return 0;for(var U=0,F=-1,Y,k,K=0;K<R;K++){var z=u[K],j=z===0||z===1?.5:1,Q=f.cubicAt(S,w,c,_,z);if(Q<T)continue;F<0&&(F=f.cubicExtrema(B,m,o,D,a),a[1]<a[0]&&F>1&&A(),Y=f.cubicAt(B,m,o,D,a[0]),F>1&&(k=f.cubicAt(B,m,o,D,a[1]))),F===2?z<a[0]?U+=Y<B?j:-j:z<a[1]?U+=k<Y?j:-j:U+=D<k?j:-j:z<a[0]?U+=Y<B?j:-j:U+=D<Y?j:-j}return U}function i(S,B,w,m,c,o,_,D){if(D>B&&D>m&&D>o||D<B&&D<m&&D<o)return 0;var T=f.quadraticRootAt(B,m,o,D,u);if(T===0)return 0;var O=f.quadraticExtremum(B,m,o);if(O>=0&&O<=1){for(var R=0,U=f.quadraticAt(B,m,o,O),F=0;F<T;F++){var Y=u[F]===0||u[F]===1?.5:1,k=f.quadraticAt(S,w,c,u[F]);if(k<_)continue;u[F]<O?R+=U<B?Y:-Y:R+=o<U?Y:-Y}return R}else{var Y=u[0]===0||u[0]===1?.5:1,k=f.quadraticAt(S,w,c,u[0]);return k<_?0:o<B?Y:-Y}}function h(S,B,w,m,c,o,_,D){if(D-=B,D>w||D<-w)return 0;var T=Math.sqrt(w*w-D*D);u[0]=-T,u[1]=T;var O=Math.abs(m-c);if(O<1e-4)return 0;if(O%n<1e-4){m=0,c=n;var R=o?1:-1;return _>=u[0]+S&&_<=u[1]+S?R:0}if(o){var T=m;m=b(c),c=b(T)}else m=b(m),c=b(c);m>c&&(c+=n);for(var U=0,F=0;F<2;F++){var Y=u[F];if(Y+S>_){var k=Math.atan2(D,Y),R=o?1:-1;k<0&&(k=n+k),(k>=m&&k<=c||k+n>=m&&k+n<=c)&&(k>Math.PI/2&&k<Math.PI*1.5&&(R=-R),U+=R)}}return U}function y(S,B,w,m,c){for(var o=0,_=0,D=0,T=0,O=0,R=0;R<S.length;){var U=S[R++];U===r.M&&R>1&&(w||(o+=l(_,D,T,O,m,c))),R===1&&(_=S[R],D=S[R+1],T=_,O=D);switch(U){case r.M:T=S[R++],O=S[R++],_=T,D=O;break;case r.L:if(w){if(V.containStroke(_,D,S[R],S[R+1],B,m,c))return!0}else o+=l(_,D,S[R],S[R+1],m,c)||0;_=S[R++],D=S[R++];break;case r.C:if(w){if(M.containStroke(_,D,S[R++],S[R++],S[R++],S[R++],S[R],S[R+1],B,m,c))return!0}else o+=d(_,D,S[R++],S[R++],S[R++],S[R++],S[R],S[R+1],m,c)||0;_=S[R++],D=S[R++];break;case r.Q:if(w){if(p.containStroke(_,D,S[R++],S[R++],S[R],S[R+1],B,m,c))return!0}else o+=i(_,D,S[R++],S[R++],S[R],S[R+1],m,c)||0;_=S[R++],D=S[R++];break;case r.A:var F=S[R++],Y=S[R++],k=S[R++],K=S[R++],z=S[R++],j=S[R++];R+=1;var Q=1-S[R++],X=Math.cos(z)*k+F,te=Math.sin(z)*K+Y;R>1?o+=l(_,D,X,te,m,c):(T=X,O=te);var oe=(m-F)*K/k+F;if(w){if(E.containStroke(F,Y,K,z,z+j,Q,B,oe,c))return!0}else o+=h(F,Y,K,z,z+j,Q,oe,c);_=Math.cos(z+j)*k+F,D=Math.sin(z+j)*K+Y;break;case r.R:T=_=S[R++],O=D=S[R++];var fe=S[R++],le=S[R++],X=T+fe,te=O+le;if(w){if(V.containStroke(T,O,X,O,B,m,c)||V.containStroke(X,O,X,te,B,m,c)||V.containStroke(X,te,T,te,B,m,c)||V.containStroke(T,te,T,O,B,m,c))return!0}else o+=l(X,O,X,te,m,c),o+=l(T,te,T,O,m,c);break;case r.Z:if(w){if(V.containStroke(_,D,T,O,B,m,c))return!0}else o+=l(_,D,T,O,m,c);_=T,D=O;break}}return!w&&!s(D,O)&&(o+=l(_,D,T,O,m,c)||0),o!==0}function v(S,B,w){return y(S,0,!1,B,w)}function x(S,B,w,m){return y(S,B,!0,w,m)}Ce.contain=v,Ce.containStroke=x},"2fw6":function(We,Ce,I){var ae=I("y+Vt"),V=ae.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(M,p,E){E&&M.moveTo(p.cx+p.r,p.cy),M.arc(p.cx,p.cy,p.r,0,Math.PI*2,!0)}});We.exports=V},"3C/r":function(We,Ce){var I=function(V,M){this.image=V,this.repeat=M,this.type="pattern"};I.prototype.getCanvasPattern=function(V){return V.createPattern(this.image,this.repeat||"repeat")};var ae=I;We.exports=ae},"3CBa":function(We,Ce,I){var ae=I("hydK"),V=ae.createElement,M=I("bYtY"),p=I("SUKs"),E=I("y+Vt"),C=I("Dagg"),b=I("dqUG"),f=I("DBLp"),l=I("sW+o"),r=I("n6Mw"),n=I("vKoX"),e=I("P47w"),s=e.path,u=e.image,a=e.text;function A(c){return parseInt(c,10)}function d(c){return c instanceof E?s:c instanceof C?u:c instanceof b?a:s}function i(c,o){return o&&c&&o.parentNode!==c}function h(c,o,_){if(i(c,o)&&_){var D=_.nextSibling;D?c.insertBefore(o,D):c.appendChild(o)}}function y(c,o){if(i(c,o)){var _=c.firstChild;_?c.insertBefore(o,_):c.appendChild(o)}}function v(c,o){o&&c&&o.parentNode===c&&c.removeChild(o)}function x(c){return c.__textSvgEl}function S(c){return c.__svgEl}var B=function(c,o,_,D){this.root=c,this.storage=o,this._opts=_=M.extend({},_||{});var T=V("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 O=V("g");T.appendChild(O);var R=V("g");T.appendChild(R),this.gradientManager=new l(D,R),this.clipPathManager=new r(D,R),this.shadowManager=new n(D,R);var U=document.createElement("div");U.style.cssText="overflow:hidden;position:relative",this._svgDom=T,this._svgRoot=R,this._backgroundRoot=O,this._viewport=U,c.appendChild(U),U.appendChild(T),this.resize(_.width,_.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 c=this.getViewportRoot();if(c)return{offsetLeft:c.offsetLeft||0,offsetTop:c.offsetTop||0}},refresh:function(){var c=this.storage.getDisplayList(!0);this._paintList(c)},setBackgroundColor:function(c){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var o=V("rect");o.setAttribute("width",this.getWidth()),o.setAttribute("height",this.getHeight()),o.setAttribute("x",0),o.setAttribute("y",0),o.setAttribute("id",0),o.style.fill=c,this._backgroundRoot.appendChild(o),this._backgroundNode=o},_paintList:function(c){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var o=this._svgRoot,_=this._visibleList,D=c.length,T=[],O;for(O=0;O<D;O++){var R=c[O],U=d(R),F=S(R)||x(R);R.invisible||(R.__dirty&&(U&&U.brush(R),this.clipPathManager.update(R),R.style&&(this.gradientManager.update(R.style.fill),this.gradientManager.update(R.style.stroke),this.shadowManager.update(F,R)),R.__dirty=!1),T.push(R))}var Y=f(_,T),k;for(O=0;O<Y.length;O++){var K=Y[O];if(K.removed)for(var z=0;z<K.count;z++){var R=_[K.indices[z]],F=S(R),j=x(R);v(o,F),v(o,j)}}for(O=0;O<Y.length;O++){var K=Y[O];if(K.added)for(var z=0;z<K.count;z++){var R=T[K.indices[z]],F=S(R),j=x(R);k?h(o,F,k):y(o,F),F?h(o,j,F):k?h(o,j,k):y(o,j),h(o,j,F),k=j||F||k,this.gradientManager.addWithoutUpdate(F||j,R),this.shadowManager.addWithoutUpdate(F||j,R),this.clipPathManager.markUsed(R)}else if(!K.removed)for(var z=0;z<K.count;z++){var R=T[K.indices[z]],F=S(R),j=x(R),F=S(R),j=x(R);this.gradientManager.markUsed(R),this.gradientManager.addWithoutUpdate(F||j,R),this.shadowManager.markUsed(R),this.shadowManager.addWithoutUpdate(F||j,R),this.clipPathManager.markUsed(R),j&&h(o,j,F),k=F||j||k}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=T},_getDefs:function(c){var o=this._svgDom,_=o.getElementsByTagName("defs");if(_.length===0)if(c){var _=o.insertBefore(V("defs"),o.firstChild);return _.contains||(_.contains=function(T){var O=_.children;if(!O)return!1;for(var R=O.length-1;R>=0;--R)if(O[R]===T)return!0;return!1}),_}else return null;else return _[0]},resize:function(c,o){var _=this._viewport;_.style.display="none";var D=this._opts;if(c!=null&&(D.width=c),o!=null&&(D.height=o),c=this._getSize(0),o=this._getSize(1),_.style.display="",this._width!==c||this._height!==o){this._width=c,this._height=o;var T=_.style;T.width=c+"px",T.height=o+"px";var O=this._svgDom;O.setAttribute("width",c),O.setAttribute("height",o)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",c),this._backgroundNode.setAttribute("height",o))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(c){var o=this._opts,_=["width","height"][c],D=["clientWidth","clientHeight"][c],T=["paddingLeft","paddingTop"][c],O=["paddingRight","paddingBottom"][c];if(o[_]!=null&&o[_]!=="auto")return parseFloat(o[_]);var R=this.root,U=document.defaultView.getComputedStyle(R);return(R[D]||A(U[_])||A(R.style[_]))-(A(U[T])||0)-(A(U[O])||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 c=encodeURIComponent(this._svgDom.outerHTML.replace(/></g,`>
\r<`));return"data:image/svg+xml;charset=UTF-8,"+c}};function w(c){return function(){p('In SVG mode painter not support method "'+c+'"')}}M.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(c){B.prototype[c]=w(c)});var m=B;We.exports=m},"3e3G":function(We,Ce,I){var ae=I("bYtY"),V=I("QuXc"),M=function(E,C,b,f,l){this.x=E==null?.5:E,this.y=C==null?.5:C,this.r=b==null?.5:b,this.type="radial",this.global=l||!1,V.call(this,f)};M.prototype={constructor:M},ae.inherits(M,V);var p=M;We.exports=p},"3gBT":function(We,Ce){var I=2311;function ae(){return I++}We.exports=ae},"4fz+":function(We,Ce,I){var ae=I("bYtY"),V=I("1bdT"),M=I("mFDi"),p=function(C){C=C||{},V.call(this,C);for(var b in C)C.hasOwnProperty(b)&&(this[b]=C[b]);this._children=[],this.__storage=null,this.__dirty=!0};p.prototype={constructor:p,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(C){return this._children[C]},childOfName:function(C){for(var b=this._children,f=0;f<b.length;f++)if(b[f].name===C)return b[f]},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,b){if(C&&C!==this&&C.parent!==this&&b&&b.parent===this){var f=this._children,l=f.indexOf(b);l>=0&&(f.splice(l,0,C),this._doAdd(C))}return this},_doAdd:function(C){C.parent&&C.parent.remove(C),C.parent=this;var b=this.__storage,f=this.__zr;b&&b!==C.__storage&&(b.addToStorage(C),C instanceof p&&C.addChildrenToStorage(b)),f&&f.refresh()},remove:function(C){var b=this.__zr,f=this.__storage,l=this._children,r=ae.indexOf(l,C);return r<0?this:(l.splice(r,1),C.parent=null,f&&(f.delFromStorage(C),C instanceof p&&C.delChildrenFromStorage(f)),b&&b.refresh(),this)},removeAll:function(){var C=this._children,b=this.__storage,f,l;for(l=0;l<C.length;l++)f=C[l],b&&(b.delFromStorage(f),f instanceof p&&f.delChildrenFromStorage(b)),f.parent=null;return C.length=0,this},eachChild:function(C,b){for(var f=this._children,l=0;l<f.length;l++){var r=f[l];C.call(b,r,l)}return this},traverse:function(C,b){for(var f=0;f<this._children.length;f++){var l=this._children[f];C.call(b,l),l.type==="group"&&l.traverse(C,b)}return this},addChildrenToStorage:function(C){for(var b=0;b<this._children.length;b++){var f=this._children[b];C.addToStorage(f),f instanceof p&&f.addChildrenToStorage(C)}},delChildrenFromStorage:function(C){for(var b=0;b<this._children.length;b++){var f=this._children[b];C.delFromStorage(f),f instanceof p&&f.delChildrenFromStorage(C)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(C){for(var b=null,f=new M(0,0,0,0),l=C||this._children,r=[],n=0;n<l.length;n++){var e=l[n];if(e.ignore||e.invisible)continue;var s=e.getBoundingRect(),u=e.getLocalTransform(r);u?(f.copy(s),f.applyTransform(u),b=b||f.clone(),b.union(f)):(b=b||s.clone(),b.union(s))}return b||f}},ae.inherits(p,V);var E=p;We.exports=E},"4mN7":function(We,Ce,I){var ae=I("QBsz"),V=I("Sj9i"),M=Math.min,p=Math.max,E=Math.sin,C=Math.cos,b=Math.PI*2,f=ae.create(),l=ae.create(),r=ae.create();function n(i,h,y){if(i.length===0)return;var v=i[0],x=v[0],S=v[0],B=v[1],w=v[1],m;for(m=1;m<i.length;m++)v=i[m],x=M(x,v[0]),S=p(S,v[0]),B=M(B,v[1]),w=p(w,v[1]);h[0]=x,h[1]=B,y[0]=S,y[1]=w}function e(i,h,y,v,x,S){x[0]=M(i,y),x[1]=M(h,v),S[0]=p(i,y),S[1]=p(h,v)}var s=[],u=[];function a(i,h,y,v,x,S,B,w,m,c){var o=V.cubicExtrema,_=V.cubicAt,D,T=o(i,y,x,B,s);for(m[0]=Infinity,m[1]=Infinity,c[0]=-Infinity,c[1]=-Infinity,D=0;D<T;D++){var O=_(i,y,x,B,s[D]);m[0]=M(O,m[0]),c[0]=p(O,c[0])}for(T=o(h,v,S,w,u),D=0;D<T;D++){var R=_(h,v,S,w,u[D]);m[1]=M(R,m[1]),c[1]=p(R,c[1])}m[0]=M(i,m[0]),c[0]=p(i,c[0]),m[0]=M(B,m[0]),c[0]=p(B,c[0]),m[1]=M(h,m[1]),c[1]=p(h,c[1]),m[1]=M(w,m[1]),c[1]=p(w,c[1])}function A(i,h,y,v,x,S,B,w){var m=V.quadraticExtremum,c=V.quadraticAt,o=p(M(m(i,y,x),1),0),_=p(M(m(h,v,S),1),0),D=c(i,y,x,o),T=c(h,v,S,_);B[0]=M(i,x,D),B[1]=M(h,S,T),w[0]=p(i,x,D),w[1]=p(h,S,T)}function d(i,h,y,v,x,S,B,w,m){var c=ae.min,o=ae.max,_=Math.abs(x-S);if(_%b<1e-4&&_>1e-4){w[0]=i-y,w[1]=h-v,m[0]=i+y,m[1]=h+v;return}if(f[0]=C(x)*y+i,f[1]=E(x)*v+h,l[0]=C(S)*y+i,l[1]=E(S)*v+h,c(w,f,l),o(m,f,l),x=x%b,x<0&&(x=x+b),S=S%b,S<0&&(S=S+b),x>S&&!B?S+=b:x<S&&B&&(x+=b),B){var D=S;S=x,x=D}for(var T=0;T<S;T+=Math.PI/2)T>x&&(r[0]=C(T)*y+i,r[1]=E(T)*v+h,c(w,r,w),o(m,r,m))}Ce.fromPoints=n,Ce.fromLine=e,Ce.fromCubic=a,Ce.fromQuadratic=A,Ce.fromArc=d},"4qgm":function(We,Ce){We.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(We,Ce){We.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(We,Ce,I){"use strict";I.d(Ce,"a",function(){return x});var ae=I("+L6B"),V=I("2/Rp"),M=I("2qtc"),p=I("kLXV"),E=I("9og8"),C=I("k1fw"),b=I("miYZ"),f=I("tsqr"),l=I("oBTY"),r=I("tJVT"),n=I("DZo9"),e=I("8z0m"),s=I("WmNS"),u=I.n(s),a=I("q1tI"),A=I.n(a),d=I("m3rI"),i=I("wzkS"),h=I("y5JW"),y=I("LtfV"),v=e.a.Dragger;function x(S){var B=[];return S&&S.length>0&&(B=S.map(function(w){return{uid:w.id,id:w.id,name:w.title+h.c+w.filesize,url:w.url,filesize:w.filesize,status:"done",response:{id:w.id}}})),B}Ce.b=function(S){var B=S.value,w=S.onChange,m=S.action,c=S.className,o=S.maxSize,_=o===void 0?150:o,D=S.title,T=D===void 0?"\u4E0A\u4F20\u9644\u4EF6":D,O=S.showRemoveModal,R=O===void 0?!1:O,U=S.accept,F=U===void 0?"":U,Y=S.additionalText,k=S.isDragger,K=S.number,z=K===void 0?1e3:K,j=S.aloneClear,Q=j===void 0?!1:j,X=S.restrict,te=X===void 0?!0:X,oe=Object(a.useState)(!1),fe=Object(r.a)(oe,2),le=fe[0],we=fe[1],Ae=Object(a.useState)(B||[]),be=Object(r.a)(Ae,2),me=be[0],he=be[1];Object(a.useEffect)(function(){B&&(he(Object(l.a)(B)),z===(B==null?void 0:B.length)&&we(!0))},[B]);var ie=function(){setTimeout(function(){me.pop(),he(Object(l.a)(me))},500)},pe={multiple:!0,disabled:le,accept:F,withCredentials:!0,fileList:me,beforeUpload:function(Me,ke){var Ue=Me.size/1024/1024;return me.concat(ke).length>z?(me.pop(),he(Object(l.a)(me)),f.b.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(z,"\u4E2A\u6587\u4EF6")),Q?Promise.reject():(ie(),!1)):Ue<_?!0:(f.b.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(_,"MB).")),Q?Promise.reject():(ie(),!1))},action:m||"".concat(d.a.API_SERVER,"/api/attachments.json"),onChange:function(Me){var ke=Object(l.a)(Me.fileList);ke.length>=z?we(!0):we(!1),he(Object(l.a)(ke)),ke=ke.map(function(Ue){var re;if(Ue!=null&&(re=Ue.response)!==null&&re!==void 0&&re.id){var N;Ue.url="/api/attachments/".concat(Ue==null||((N=Ue.response)===null||N===void 0)?void 0:N.id)}return Ue.name.indexOf(h.c)===-1&&(Ue.name="".concat(Ue.name).concat(h.c).concat(Object(h.a)(Ue.size))),Object(C.a)({},Ue)}),console.log("info:",Me),w(ke)},onRemove:function(){var de=Object(E.a)(u.a.mark(function ke(Ue){var re;return u.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:if(re=function(){var ce=Object(E.a)(u.a.mark(function ne(){var ue,De;return u.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:if(ue=Ue.response?Ue.response.id:Ue.id,!ue){wt.next=8;break}return wt.next=4,Object(i.d)(Ue.response?Ue.response.id:Ue.uid);case 4:return De=wt.sent,wt.abrupt("return",De);case 8:return wt.abrupt("return",!0);case 9:case"end":return wt.stop()}},ne)}));return function(){return ce.apply(this,arguments)}}(),!R){W.next=5;break}return W.abrupt("return",new Promise(function(ce,ne){p.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:A.a.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var ue=Object(E.a)(u.a.mark(function ze(){var wt;return u.a.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.next=2,re();case 2:wt=Xe.sent,f.b.success("\u5220\u9664\u6210\u529F"),ce(!0);case 5:case"end":return Xe.stop()}},ze)}));function De(){return ue.apply(this,arguments)}return De}(),onCancel:function(){return ce(!1)}})}));case 5:return W.next=7,re();case 7:return W.abrupt("return",W.sent);case 8:case"end":return W.stop()}},ke)}));function Me(ke){return de.apply(this,arguments)}return Me}()};function ye(de){de.preventDefault(),de.stopPropagation()}return A.a.createElement("div",{className:"multi-upload ".concat(c||"")},k&&A.a.createElement(v,pe,A.a.createElement("p",{className:"ant-upload-drag-icon"},A.a.createElement(y.a,null)),A.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",A.a.createElement("br",null),A.a.createElement("span",{style:{display:te?"block":"none"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",_,"MB) ")),Y),!k&&A.a.createElement(e.a,pe,A.a.createElement(V.a,{disabled:le},T),A.a.createElement("span",{onClick:ye,style:{marginLeft:10,color:"#FA6400",display:te?"block":"none"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",_,"MB) ")))}},"55Ip":function(We,Ce,I){"use strict";I.d(Ce,"a",function(){return h}),I.d(Ce,"b",function(){return w});var ae=I("Ty5D"),V=I("dI71"),M=I("q1tI"),p=I.n(M),E=I("YS25"),C=I("17x9"),b=I.n(C),f=I("wx14"),l=I("zLVn"),r=I("9R94"),n=function(c){Object(V.a)(o,c);function o(){for(var D,T=arguments.length,O=new Array(T),R=0;R<T;R++)O[R]=arguments[R];return D=c.call.apply(c,[this].concat(O))||this,D.history=Object(E.a)(D.props),D}var _=o.prototype;return _.render=function(){return p.a.createElement(ae.c,{history:this.history,children:this.props.children})},o}(p.a.Component),e=function(c){Object(V.a)(o,c);function o(){for(var D,T=arguments.length,O=new Array(T),R=0;R<T;R++)O[R]=arguments[R];return D=c.call.apply(c,[this].concat(O))||this,D.history=Object(E.b)(D.props),D}var _=o.prototype;return _.render=function(){return p.a.createElement(ae.c,{history:this.history,children:this.props.children})},o}(p.a.Component),s=function(o,_){return typeof o=="function"?o(_):o},u=function(o,_){return typeof o=="string"?Object(E.c)(o,null,null,_):o},a=function(o){return o},A=p.a.forwardRef;typeof A=="undefined"&&(A=a);function d(c){return!!(c.metaKey||c.altKey||c.ctrlKey||c.shiftKey)}var i=A(function(c,o){var _=c.innerRef,D=c.navigate,T=c.onClick,O=Object(l.a)(c,["innerRef","navigate","onClick"]),R=O.target,U=Object(f.a)({},O,{onClick:function(Y){try{T&&T(Y)}catch(k){throw Y.preventDefault(),k}!Y.defaultPrevented&&Y.button===0&&(!R||R==="_self")&&!d(Y)&&(Y.preventDefault(),D())}});return a!==A?U.ref=o||_:U.ref=_,p.a.createElement("a",U)}),h=A(function(c,o){var _=c.component,D=_===void 0?i:_,T=c.replace,O=c.to,R=c.innerRef,U=Object(l.a)(c,["component","replace","to","innerRef"]);return p.a.createElement(ae.e.Consumer,null,function(F){F||Object(r.a)(!1);var Y=F.history,k=u(s(O,F.location),F.location),K=k?Y.createHref(k):"",z=Object(f.a)({},U,{href:K,navigate:function(){var Q=s(O,F.location),X=T?Y.replace:Y.push;X(Q)}});return a!==A?z.ref=o||R:z.innerRef=R,p.a.createElement(D,z)})});if(!1)var y,v;var x=function(o){return o},S=p.a.forwardRef;typeof S=="undefined"&&(S=x);function B(){for(var c=arguments.length,o=new Array(c),_=0;_<c;_++)o[_]=arguments[_];return o.filter(function(D){return D}).join(" ")}var w=S(function(c,o){var _=c["aria-current"],D=_===void 0?"page":_,T=c.activeClassName,O=T===void 0?"active":T,R=c.activeStyle,U=c.className,F=c.exact,Y=c.isActive,k=c.location,K=c.sensitive,z=c.strict,j=c.style,Q=c.to,X=c.innerRef,te=Object(l.a)(c,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return p.a.createElement(ae.e.Consumer,null,function(oe){oe||Object(r.a)(!1);var fe=k||oe.location,le=u(s(Q,fe),fe),we=le.pathname,Ae=we&&we.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),be=Ae?Object(ae.f)(fe.pathname,{path:Ae,exact:F,sensitive:K,strict:z}):null,me=!!(Y?Y(be,fe):be),he=me?B(U,O):U,ie=me?Object(f.a)({},j,{},R):j,pe=Object(f.a)({"aria-current":me&&D||null,className:he,style:ie,to:le},te);return x!==S?pe.ref=o||X:pe.innerRef=X,p.a.createElement(h,pe)})});if(!1)var m},"59Ip":function(We,Ce,I){var ae=I("Sj9i");function V(M,p,E,C,b,f,l,r,n,e,s){if(n===0)return!1;var u=n;if(s>p+u&&s>C+u&&s>f+u&&s>r+u||s<p-u&&s<C-u&&s<f-u&&s<r-u||e>M+u&&e>E+u&&e>b+u&&e>l+u||e<M-u&&e<E-u&&e<b-u&&e<l-u)return!1;var a=ae.cubicProjectPoint(M,p,E,C,b,f,l,r,e,s,null);return a<=u/2}Ce.containStroke=V},"5D2P":function(We,Ce){We.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(We,Ce,I){"use strict";I.d(Ce,"a",function(){return S});var ae=I("wx14"),V=I("rePB"),M=I("VTBJ"),p=I("1OyB"),E=I("vuIU"),C=I("Ji7U"),b=I("LK+K"),f=I("q1tI"),l=I.n(f),r=I("TSYQ"),n=I.n(r),e=function(w){var m,c="".concat(w.rootPrefixCls,"-item"),o=n()(c,"".concat(c,"-").concat(w.page),(m={},Object(V.a)(m,"".concat(c,"-active"),w.active),Object(V.a)(m,w.className,!!w.className),Object(V.a)(m,"".concat(c,"-disabled"),!w.page),m)),_=function(){w.onClick(w.page)},D=function(O){w.onKeyPress(O,w.onClick,w.page)};return l.a.createElement("li",{title:w.showTitle?w.page:null,className:o,onClick:_,onKeyPress:D,tabIndex:"0"},w.itemRender(w.page,"page",l.a.createElement("a",{rel:"nofollow"},w.page)))},s=e,u={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},a=function(B){Object(C.a)(m,B);var w=Object(b.a)(m);function m(){var c;Object(p.a)(this,m);for(var o=arguments.length,_=new Array(o),D=0;D<o;D++)_[D]=arguments[D];return c=w.call.apply(w,[this].concat(_)),c.state={goInputText:""},c.buildOptionText=function(T){return"".concat(T," ").concat(c.props.locale.items_per_page)},c.changeSize=function(T){c.props.changeSize(Number(T))},c.handleChange=function(T){c.setState({goInputText:T.target.value})},c.handleBlur=function(T){var O=c.props,R=O.goButton,U=O.quickGo,F=O.rootPrefixCls,Y=c.state.goInputText;if(R||Y==="")return;if(T.relatedTarget&&(T.relatedTarget.className.indexOf("".concat(F,"-prev"))>=0||T.relatedTarget.className.indexOf("".concat(F,"-next"))>=0))return;c.setState({goInputText:""}),U(c.getValidValue())},c.go=function(T){var O=c.state.goInputText;if(O==="")return;(T.keyCode===u.ENTER||T.type==="click")&&(c.setState({goInputText:""}),c.props.quickGo(c.getValidValue()))},c}return Object(E.a)(m,[{key:"getValidValue",value:function(){var o=this.state,_=o.goInputText,D=o.current;return!_||isNaN(_)?D:Number(_)}},{key:"getPageSizeOptions",value:function(){var o=this.props,_=o.pageSize,D=o.pageSizeOptions;return D.some(function(T){return T.toString()===_.toString()})?D:D.concat([_.toString()]).sort(function(T,O){var R=isNaN(Number(T))?0:Number(T),U=isNaN(Number(O))?0:Number(O);return R-U})}},{key:"render",value:function(){var o=this,_=this.props,D=_.pageSize,T=_.locale,O=_.rootPrefixCls,R=_.changeSize,U=_.quickGo,F=_.goButton,Y=_.selectComponentClass,k=_.buildOptionText,K=_.selectPrefixCls,z=_.disabled,j=this.state.goInputText,Q="".concat(O,"-options"),X=Y,te=null,oe=null,fe=null;if(!R&&!U)return null;var le=this.getPageSizeOptions();if(R&&X){var we=le.map(function(Ae,be){return l.a.createElement(X.Option,{key:be,value:Ae.toString()},(k||o.buildOptionText)(Ae))});te=l.a.createElement(X,{disabled:z,prefixCls:K,showSearch:!1,className:"".concat(Q,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(D||le[0]).toString(),onChange:this.changeSize,getPopupContainer:function(be){return be.parentNode}},we)}return U&&(F&&(fe=typeof F=="boolean"?l.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:z,className:"".concat(Q,"-quick-jumper-button")},T.jump_to_confirm):l.a.createElement("span",{onClick:this.go,onKeyUp:this.go},F)),oe=l.a.createElement("div",{className:"".concat(Q,"-quick-jumper")},T.jump_to,l.a.createElement("input",{disabled:z,type:"text",value:j,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),T.page,fe)),l.a.createElement("li",{className:"".concat(Q)},te,oe)}}]),m}(l.a.Component);a.defaultProps={pageSizeOptions:["10","20","50","100"]};var A=a,d=I("N2Kk");function i(){}function h(B){return typeof B=="number"&&isFinite(B)&&Math.floor(B)===B}function y(B,w,m){return m}function v(B,w,m){var c=typeof B=="undefined"?w.pageSize:B;return Math.floor((m.total-1)/c)+1}var x=function(B){Object(C.a)(m,B);var w=Object(b.a)(m);function m(c){var o;Object(p.a)(this,m),o=w.call(this,c),o.getJumpPrevPage=function(){return Math.max(1,o.state.current-(o.props.showLessItems?3:5))},o.getJumpNextPage=function(){return Math.min(v(void 0,o.state,o.props),o.state.current+(o.props.showLessItems?3:5))},o.getItemIcon=function(R,U){var F=o.props.prefixCls,Y=R||l.a.createElement("button",{type:"button","aria-label":U,className:"".concat(F,"-item-link")});return typeof R=="function"&&(Y=l.a.createElement(R,Object(M.a)({},o.props))),Y},o.savePaginationNode=function(R){o.paginationNode=R},o.isValid=function(R){return h(R)&&R!==o.state.current},o.shouldDisplayQuickJumper=function(){var R=o.props,U=R.showQuickJumper,F=R.pageSize,Y=R.total;return Y<=F?!1:U},o.handleKeyDown=function(R){(R.keyCode===u.ARROW_UP||R.keyCode===u.ARROW_DOWN)&&R.preventDefault()},o.handleKeyUp=function(R){var U=o.getValidValue(R),F=o.state.currentInputValue;U!==F&&o.setState({currentInputValue:U}),R.keyCode===u.ENTER?o.handleChange(U):R.keyCode===u.ARROW_UP?o.handleChange(U-1):R.keyCode===u.ARROW_DOWN&&o.handleChange(U+1)},o.changePageSize=function(R){var U=o.state.current,F=v(R,o.state,o.props);U=U>F?F:U,F===0&&(U=o.state.current),typeof R=="number"&&("pageSize"in o.props||o.setState({pageSize:R}),"current"in o.props||o.setState({current:U,currentInputValue:U})),o.props.onShowSizeChange(U,R),"onChange"in o.props&&o.props.onChange&&o.props.onChange(U,R)},o.handleChange=function(R){var U=o.props.disabled,F=R;if(o.isValid(F)&&!U){var Y=v(void 0,o.state,o.props);F>Y?F=Y:F<1&&(F=1),"current"in o.props||o.setState({current:F,currentInputValue:F});var k=o.state.pageSize;return o.props.onChange(F,k),F}return o.state.current},o.prev=function(){o.hasPrev()&&o.handleChange(o.state.current-1)},o.next=function(){o.hasNext()&&o.handleChange(o.state.current+1)},o.jumpPrev=function(){o.handleChange(o.getJumpPrevPage())},o.jumpNext=function(){o.handleChange(o.getJumpNextPage())},o.hasPrev=function(){return o.state.current>1},o.hasNext=function(){return o.state.current<v(void 0,o.state,o.props)},o.runIfEnter=function(R,U){if(R.key==="Enter"||R.charCode===13){for(var F=arguments.length,Y=new Array(F>2?F-2:0),k=2;k<F;k++)Y[k-2]=arguments[k];U.apply(void 0,Y)}},o.runIfEnterPrev=function(R){o.runIfEnter(R,o.prev)},o.runIfEnterNext=function(R){o.runIfEnter(R,o.next)},o.runIfEnterJumpPrev=function(R){o.runIfEnter(R,o.jumpPrev)},o.runIfEnterJumpNext=function(R){o.runIfEnter(R,o.jumpNext)},o.handleGoTO=function(R){(R.keyCode===u.ENTER||R.type==="click")&&o.handleChange(o.state.currentInputValue)};var _=c.onChange!==i,D="current"in c;D&&!_&&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=c.defaultCurrent;"current"in c&&(T=c.current);var O=c.defaultPageSize;return"pageSize"in c&&(O=c.pageSize),T=Math.min(T,v(O,void 0,c)),o.state={current:T,currentInputValue:T,pageSize:O},o}return Object(E.a)(m,[{key:"componentDidUpdate",value:function(o,_){var D=this.props.prefixCls;if(_.current!==this.state.current&&this.paginationNode){var T=this.paginationNode.querySelector(".".concat(D,"-item-").concat(_.current));T&&document.activeElement===T&&T.blur()}}},{key:"getValidValue",value:function(o){var _=o.target.value,D=v(void 0,this.state,this.props),T=this.state.currentInputValue,O;return _===""?O=_:isNaN(Number(_))?O=T:_>=D?O=D:O=Number(_),O}},{key:"getShowSizeChanger",value:function(){var o=this.props,_=o.showSizeChanger,D=o.total,T=o.totalBoundaryShowSizeChanger;return typeof _!="undefined"?_:D>T}},{key:"renderPrev",value:function(o){var _=this.props,D=_.prevIcon,T=_.itemRender,O=T(o,"prev",this.getItemIcon(D,"prev page")),R=!this.hasPrev();return Object(f.isValidElement)(O)?Object(f.cloneElement)(O,{disabled:R}):O}},{key:"renderNext",value:function(o){var _=this.props,D=_.nextIcon,T=_.itemRender,O=T(o,"next",this.getItemIcon(D,"next page")),R=!this.hasNext();return Object(f.isValidElement)(O)?Object(f.cloneElement)(O,{disabled:R}):O}},{key:"render",value:function(){var o=this,_=this.props,D=_.prefixCls,T=_.className,O=_.style,R=_.disabled,U=_.hideOnSinglePage,F=_.total,Y=_.locale,k=_.showQuickJumper,K=_.showLessItems,z=_.showTitle,j=_.showTotal,Q=_.simple,X=_.itemRender,te=_.showPrevNextJumpers,oe=_.jumpPrevIcon,fe=_.jumpNextIcon,le=_.selectComponentClass,we=_.selectPrefixCls,Ae=_.pageSizeOptions,be=this.state,me=be.current,he=be.pageSize,ie=be.currentInputValue;if(U===!0&&F<=he)return null;var pe=v(void 0,this.state,this.props),ye=[],de=null,Me=null,ke=null,Ue=null,re=null,N=k&&k.goButton,W=K?1:2,ce=me-1>0?me-1:0,ne=me+1<pe?me+1:pe,ue=Object.keys(this.props).reduce(function(Le,je){return(je.substr(0,5)==="data-"||je.substr(0,5)==="aria-"||je==="role")&&(Le[je]=o.props[je]),Le},{});if(Q)return N&&(typeof N=="boolean"?re=l.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Y.jump_to_confirm):re=l.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},N),re=l.a.createElement("li",{title:z?"".concat(Y.jump_to).concat(me,"/").concat(pe):null,className:"".concat(D,"-simple-pager")},re)),l.a.createElement("ul",Object(ae.a)({className:n()(D,"".concat(D,"-simple"),Object(V.a)({},"".concat(D,"-disabled"),R),T),style:O,ref:this.savePaginationNode},ue),l.a.createElement("li",{title:z?Y.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:n()("".concat(D,"-prev"),Object(V.a)({},"".concat(D,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(ce)),l.a.createElement("li",{title:z?"".concat(me,"/").concat(pe):null,className:"".concat(D,"-simple-pager")},l.a.createElement("input",{type:"text",value:ie,disabled:R,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),l.a.createElement("span",{className:"".concat(D,"-slash")},"/"),pe),l.a.createElement("li",{title:z?Y.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:n()("".concat(D,"-next"),Object(V.a)({},"".concat(D,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(ne)),re);if(pe<=3+W*2){var De={locale:Y,rootPrefixCls:D,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:z,itemRender:X};pe||ye.push(l.a.createElement(s,Object(ae.a)({},De,{key:"noPager",page:pe,className:"".concat(D,"-disabled")})));for(var ze=1;ze<=pe;ze+=1){var wt=me===ze;ye.push(l.a.createElement(s,Object(ae.a)({},De,{key:ze,page:ze,active:wt})))}}else{var He=K?Y.prev_3:Y.prev_5,Xe=K?Y.next_3:Y.next_5;te&&(de=l.a.createElement("li",{title:z?He:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:n()("".concat(D,"-jump-prev"),Object(V.a)({},"".concat(D,"-jump-prev-custom-icon"),!!oe))},X(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(oe,"prev page"))),Me=l.a.createElement("li",{title:z?Xe:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:n()("".concat(D,"-jump-next"),Object(V.a)({},"".concat(D,"-jump-next-custom-icon"),!!fe))},X(this.getJumpNextPage(),"jump-next",this.getItemIcon(fe,"next page")))),Ue=l.a.createElement(s,{locale:Y,last:!0,rootPrefixCls:D,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:pe,page:pe,active:!1,showTitle:z,itemRender:X}),ke=l.a.createElement(s,{locale:Y,rootPrefixCls:D,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:z,itemRender:X});var gt=Math.max(1,me-W),_t=Math.min(me+W,pe);me-1<=W&&(_t=1+W*2),pe-me<=W&&(gt=pe-W*2);for(var ct=gt;ct<=_t;ct+=1){var lt=me===ct;ye.push(l.a.createElement(s,{locale:Y,rootPrefixCls:D,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ct,page:ct,active:lt,showTitle:z,itemRender:X}))}me-1>=W*2&&me!==1+2&&(ye[0]=Object(f.cloneElement)(ye[0],{className:"".concat(D,"-item-after-jump-prev")}),ye.unshift(de)),pe-me>=W*2&&me!==pe-2&&(ye[ye.length-1]=Object(f.cloneElement)(ye[ye.length-1],{className:"".concat(D,"-item-before-jump-next")}),ye.push(Me)),gt!==1&&ye.unshift(ke),_t!==pe&&ye.push(Ue)}var rt=null;j&&(rt=l.a.createElement("li",{className:"".concat(D,"-total-text")},j(F,[F===0?0:(me-1)*he+1,me*he>F?F:me*he])));var Ze=!this.hasPrev()||!pe,qe=!this.hasNext()||!pe;return l.a.createElement("ul",Object(ae.a)({className:n()(D,T,Object(V.a)({},"".concat(D,"-disabled"),R)),style:O,unselectable:"unselectable",ref:this.savePaginationNode},ue),rt,l.a.createElement("li",{title:z?Y.prev_page:null,onClick:this.prev,tabIndex:Ze?null:0,onKeyPress:this.runIfEnterPrev,className:n()("".concat(D,"-prev"),Object(V.a)({},"".concat(D,"-disabled"),Ze)),"aria-disabled":Ze},this.renderPrev(ce)),ye,l.a.createElement("li",{title:z?Y.next_page:null,onClick:this.next,tabIndex:qe?null:0,onKeyPress:this.runIfEnterNext,className:n()("".concat(D,"-next"),Object(V.a)({},"".concat(D,"-disabled"),qe)),"aria-disabled":qe},this.renderNext(ne)),l.a.createElement(A,{disabled:R,locale:Y,rootPrefixCls:D,selectComponentClass:le,selectPrefixCls:we,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:me,pageSize:he,pageSizeOptions:Ae,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:N}))}}],[{key:"getDerivedStateFromProps",value:function(o,_){var D={};if("current"in o&&(D.current=o.current,o.current!==_.current&&(D.currentInputValue=D.current)),"pageSize"in o&&o.pageSize!==_.pageSize){var T=_.current,O=v(o.pageSize,_,o);T=T>O?O:T,"current"in o||(D.current=T,D.currentInputValue=T),D.pageSize=o.pageSize}return D}}]),m}(l.a.Component);x.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:i,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:i,locale:d.a,style:{},itemRender:y,totalBoundaryShowSizeChanger:50};var S=x},"6GrX":function(We,Ce,I){var ae=I("mFDi"),V=I("Xnb7"),M=I("bYtY"),p=M.getContext,E=M.extend,C=M.retrieve2,b=M.retrieve3,f=M.trim,l={},r=0,n=5e3,e=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,s="12px sans-serif",u={};function a(U,F){u[U]=F}function A(U,F){F=F||s;var Y=U+":"+F;if(l[Y])return l[Y];for(var k=(U+"").split(`
`),K=0,z=0,j=k.length;z<j;z++)K=Math.max(_(k[z],F).width,K);return r>n&&(r=0,l={}),r++,l[Y]=K,K}function d(U,F,Y,k,K,z,j,Q){return j?h(U,F,Y,k,K,z,j,Q):i(U,F,Y,k,K,z,Q)}function i(U,F,Y,k,K,z,j){var Q=D(U,F,K,z,j),X=A(U,F);K&&(X+=K[1]+K[3]);var te=Q.outerHeight,oe=y(0,X,Y),fe=v(0,te,k),le=new ae(oe,fe,X,te);return le.lineHeight=Q.lineHeight,le}function h(U,F,Y,k,K,z,j,Q){var X=T(U,{rich:j,truncate:Q,font:F,textAlign:Y,textPadding:K,textLineHeight:z}),te=X.outerWidth,oe=X.outerHeight,fe=y(0,te,Y),le=v(0,oe,k);return new ae(fe,le,te,oe)}function y(U,F,Y){return Y==="right"?U-=F:Y==="center"&&(U-=F/2),U}function v(U,F,Y){return Y==="middle"?U-=F/2:Y==="bottom"&&(U-=F),U}function x(U,F,Y){var k=F.textPosition,K=F.textDistance,z=Y.x,j=Y.y;K=K||0;var Q=Y.height,X=Y.width,te=Q/2,oe="left",fe="top";switch(k){case"left":z-=K,j+=te,oe="right",fe="middle";break;case"right":z+=K+X,j+=te,fe="middle";break;case"top":z+=X/2,j-=K,oe="center",fe="bottom";break;case"bottom":z+=X/2,j+=Q+K,oe="center";break;case"inside":z+=X/2,j+=te,oe="center",fe="middle";break;case"insideLeft":z+=K,j+=te,fe="middle";break;case"insideRight":z+=X-K,j+=te,oe="right",fe="middle";break;case"insideTop":z+=X/2,j+=K,oe="center";break;case"insideBottom":z+=X/2,j+=Q-K,oe="center",fe="bottom";break;case"insideTopLeft":z+=K,j+=K;break;case"insideTopRight":z+=X-K,j+=K,oe="right";break;case"insideBottomLeft":z+=K,j+=Q-K,fe="bottom";break;case"insideBottomRight":z+=X-K,j+=Q-K,oe="right",fe="bottom";break}return U=U||{},U.x=z,U.y=j,U.textAlign=oe,U.textVerticalAlign=fe,U}function S(U,F,Y){var k={textPosition:U,textDistance:Y};return x({},k,F)}function B(U,F,Y,k,K){if(!F)return"";var z=(U+"").split(`
`);K=w(F,Y,k,K);for(var j=0,Q=z.length;j<Q;j++)z[j]=m(z[j],K);return z.join(`
`)}function w(U,F,Y,k){k=E({},k),k.font=F;var Y=C(Y,"...");k.maxIterations=C(k.maxIterations,2);var K=k.minChar=C(k.minChar,0);k.cnCharWidth=A("\u56FD",F);var z=k.ascCharWidth=A("a",F);k.placeholder=C(k.placeholder,"");for(var j=U=Math.max(0,U-1),Q=0;Q<K&&j>=z;Q++)j-=z;var X=A(Y,F);return X>j&&(Y="",X=0),j=U-X,k.ellipsis=Y,k.ellipsisWidth=X,k.contentWidth=j,k.containerWidth=U,k}function m(U,F){var Y=F.containerWidth,k=F.font,K=F.contentWidth;if(!Y)return"";var z=A(U,k);if(z<=Y)return U;for(var j=0;;j++){if(z<=K||j>=F.maxIterations){U+=F.ellipsis;break}var Q=j===0?c(U,K,F.ascCharWidth,F.cnCharWidth):z>0?Math.floor(U.length*K/z):0;U=U.substr(0,Q),z=A(U,k)}return U===""&&(U=F.placeholder),U}function c(U,F,Y,k){for(var K=0,z=0,j=U.length;z<j&&K<F;z++){var Q=U.charCodeAt(z);K+=0<=Q&&Q<=127?Y:k}return z}function o(U){return A("\u56FD",U)}function _(U,F){return u.measureText(U,F)}u.measureText=function(U,F){var Y=p();return Y.font=F||s,Y.measureText(U)};function D(U,F,Y,k,K){U!=null&&(U+="");var z=C(k,o(F)),j=U?U.split(`
`):[],Q=j.length*z,X=Q,te=!0;if(Y&&(X+=Y[0]+Y[2]),U&&K){te=!1;var oe=K.outerHeight,fe=K.outerWidth;if(oe!=null&&X>oe)U="",j=[];else if(fe!=null)for(var le=w(fe-(Y?Y[1]+Y[3]:0),F,K.ellipsis,{minChar:K.minChar,placeholder:K.placeholder}),we=0,Ae=j.length;we<Ae;we++)j[we]=m(j[we],le)}return{lines:j,height:Q,outerHeight:X,lineHeight:z,canCacheByTextString:te}}function T(U,F){var Y={lines:[],width:0,height:0};if(U!=null&&(U+=""),!U)return Y;for(var k=e.lastIndex=0,K;(K=e.exec(U))!=null;){var z=K.index;z>k&&O(Y,U.substring(k,z)),O(Y,K[2],K[1]),k=e.lastIndex}k<U.length&&O(Y,U.substring(k,U.length));var j=Y.lines,Q=0,X=0,te=[],oe=F.textPadding,fe=F.truncate,le=fe&&fe.outerWidth,we=fe&&fe.outerHeight;oe&&(le!=null&&(le-=oe[1]+oe[3]),we!=null&&(we-=oe[0]+oe[2]));for(var Ae=0;Ae<j.length;Ae++){for(var be=j[Ae],me=0,he=0,ie=0;ie<be.tokens.length;ie++){var pe=be.tokens[ie],ye=pe.styleName&&F.rich[pe.styleName]||{},de=pe.textPadding=ye.textPadding,Me=pe.font=ye.font||F.font,ke=pe.textHeight=C(ye.textHeight,o(Me));if(de&&(ke+=de[0]+de[2]),pe.height=ke,pe.lineHeight=b(ye.textLineHeight,F.textLineHeight,ke),pe.textAlign=ye&&ye.textAlign||F.textAlign,pe.textVerticalAlign=ye&&ye.textVerticalAlign||"middle",we!=null&&Q+pe.lineHeight>we)return{lines:[],width:0,height:0};pe.textWidth=A(pe.text,Me);var Ue=ye.textWidth,re=Ue==null||Ue==="auto";if(typeof Ue=="string"&&Ue.charAt(Ue.length-1)==="%")pe.percentWidth=Ue,te.push(pe),Ue=0;else{if(re){Ue=pe.textWidth;var N=ye.textBackgroundColor,W=N&&N.image;W&&(W=V.findExistImage(W),V.isImageReady(W)&&(Ue=Math.max(Ue,W.width*ke/W.height)))}var ce=de?de[1]+de[3]:0;Ue+=ce;var ne=le!=null?le-he:null;ne!=null&&ne<Ue&&(!re||ne<ce?(pe.text="",pe.textWidth=Ue=0):(pe.text=B(pe.text,ne-ce,Me,fe.ellipsis,{minChar:fe.minChar}),pe.textWidth=A(pe.text,Me),Ue=pe.textWidth+ce))}he+=pe.width=Ue,ye&&(me=Math.max(me,pe.lineHeight))}be.width=he,be.lineHeight=me,Q+=me,X=Math.max(X,he)}Y.outerWidth=Y.width=C(F.textWidth,X),Y.outerHeight=Y.height=C(F.textHeight,Q),oe&&(Y.outerWidth+=oe[1]+oe[3],Y.outerHeight+=oe[0]+oe[2]);for(var Ae=0;Ae<te.length;Ae++){var pe=te[Ae],ue=pe.percentWidth;pe.width=parseInt(ue,10)/100*X}return Y}function O(U,F,Y){for(var k=F==="",K=F.split(`
`),z=U.lines,j=0;j<K.length;j++){var Q=K[j],X={styleName:Y,text:Q,isLineHolder:!Q&&!k};if(j)z.push({tokens:[X]});else{var te=(z[z.length-1]||(z[0]={tokens:[]})).tokens,oe=te.length;oe===1&&te[0].isLineHolder?te[0]=X:(Q||!oe||k)&&te.push(X)}}}function R(U){var F=(U.fontSize||U.fontFamily)&&[U.fontStyle,U.fontWeight,(U.fontSize||12)+"px",U.fontFamily||"sans-serif"].join(" ");return F&&f(F)||U.textFont||U.font}Ce.DEFAULT_FONT=s,Ce.$override=a,Ce.getWidth=A,Ce.getBoundingRect=d,Ce.adjustTextX=y,Ce.adjustTextY=v,Ce.calculateTextPosition=x,Ce.adjustTextPositionOnRect=S,Ce.truncateText=B,Ce.getLineHeight=o,Ce.measureText=_,Ce.parsePlainText=D,Ce.parseRichText=T,Ce.makeFont=R},"6RRn":function(We,Ce,I){"use strict";var ae=I("wCXF"),V=I("n6Qo");I.d(Ce,"b",function(){return V.a});var M=I("IBYe"),p=I("6eGT"),E=I("hW8S");I.d(Ce,"a",function(){return E.a}),Ce.c=ae.b},"6eGT":function(We,Ce,I){"use strict";function ae(V){return null}Ce.a=ae},"6fms":function(We,Ce,I){var ae=I("SUKs"),V=I("06Qe"),M=I("bYtY"),p=M.each;function E(l){return parseInt(l,10)}function C(l,r){V.initVML(),this.root=l,this.storage=r;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;",l.appendChild(n),this._vmlRoot=e,this._vmlViewport=n,this.resize();var s=r.delFromStorage,u=r.addToStorage;r.delFromStorage=function(a){s.call(r,a),a&&(a.onRemove&&a.onRemove(e))},r.addToStorage=function(a){a.onAdd&&a.onAdd(e),u.call(r,a)},this._firstPaint=!0}C.prototype={constructor:C,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var l=this.getViewportRoot();if(l)return{offsetLeft:l.offsetLeft||0,offsetTop:l.offsetTop||0}},refresh:function(){var l=this.storage.getDisplayList(!0,!0);this._paintList(l)},_paintList:function(l){for(var r=this._vmlRoot,n=0;n<l.length;n++){var e=l[n];e.invisible||e.ignore?(e.__alreadyNotVisible||e.onRemove(r),e.__alreadyNotVisible=!0):(e.__alreadyNotVisible&&e.onAdd(r),e.__alreadyNotVisible=!1,e.__dirty&&(e.beforeBrush&&e.beforeBrush(),(e.brushVML||e.brush).call(e,r),e.afterBrush&&e.afterBrush())),e.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(r),this._firstPaint=!1)},resize:function(l,r){var l=l==null?this._getWidth():l,r=r==null?this._getHeight():r;if(this._width!==l||this._height!==r){this._width=l,this._height=r;var n=this._vmlViewport.style;n.width=l+"px",n.height=r+"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 l=this.root,r=l.currentStyle;return(l.clientWidth||E(r.width))-E(r.paddingLeft)-E(r.paddingRight)|0},_getHeight:function(){var l=this.root,r=l.currentStyle;return(l.clientHeight||E(r.height))-E(r.paddingTop)-E(r.paddingBottom)|0}};function b(l){return function(){ae('In IE8.0 VML mode painter not support method "'+l+'"')}}p(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(l){C.prototype[l]=b(l)});var f=C;We.exports=f},"7Cbv":function(We,Ce,I){"use strict";var ae=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),V=new Uint8Array(16);function M(){if(!ae)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ae(V)}var p=/^(?:[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 E(s){return typeof s=="string"&&p.test(s)}for(var C=E,b=[],f=0;f<256;++f)b.push((f+256).toString(16).substr(1));function l(s){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=(b[s[u+0]]+b[s[u+1]]+b[s[u+2]]+b[s[u+3]]+"-"+b[s[u+4]]+b[s[u+5]]+"-"+b[s[u+6]]+b[s[u+7]]+"-"+b[s[u+8]]+b[s[u+9]]+"-"+b[s[u+10]]+b[s[u+11]]+b[s[u+12]]+b[s[u+13]]+b[s[u+14]]+b[s[u+15]]).toLowerCase();if(!C(a))throw TypeError("Stringified UUID is invalid");return a}var r=l;function n(s,u,a){s=s||{};var A=s.random||(s.rng||M)();if(A[6]=A[6]&15|64,A[8]=A[8]&63|128,u){a=a||0;for(var d=0;d<16;++d)u[a+d]=A[d];return u}return r(A)}var e=Ce.a=n},"7SHv":function(We,Ce,I){var ae=I("LPTA"),V=ae.devicePixelRatio,M=I("bYtY"),p=I("SUKs"),E=I("mFDi"),C=I("BPZU"),b=I("Xmg4"),f=I("mLcG"),l=I("Dagg"),r=I("ItGF"),n=1e5,e=314159,s=.01,u=.001;function a(w){return parseInt(w,10)}function A(w){return w?w.__builtin__?!0:!(typeof w.resize!="function"||typeof w.refresh!="function"):!1}var d=new E(0,0,0,0),i=new E(0,0,0,0);function h(w,m,c){return d.copy(w.getBoundingRect()),w.transform&&d.applyTransform(w.transform),i.width=m,i.height=c,!d.intersect(i)}function y(w,m){if(w===m)return!1;if(!w||!m||w.length!==m.length)return!0;for(var c=0;c<w.length;c++)if(w[c]!==m[c])return!0;return!1}function v(w,m){for(var c=0;c<w.length;c++){var o=w[c];o.setTransform(m),m.beginPath(),o.buildPath(m,o.shape),m.clip(),o.restoreTransform(m)}}function x(w,m){var c=document.createElement("div");return c.style.cssText=["position:relative","width:"+w+"px","height:"+m+"px","padding:0","margin:0","border-width:0"].join(";")+";",c}var S=function(w,m,c){this.type="canvas";var o=!w.nodeName||w.nodeName.toUpperCase()==="CANVAS";this._opts=c=M.extend({},c||{}),this.dpr=c.devicePixelRatio||V,this._singleCanvas=o,this.root=w;var _=w.style;_&&(_["-webkit-tap-highlight-color"]="transparent",_["-webkit-user-select"]=_["user-select"]=_["-webkit-touch-callout"]="none",w.innerHTML=""),this.storage=m;var D=this._zlevelList=[],T=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,o){var R=w.width,U=w.height;c.width!=null&&(R=c.width),c.height!=null&&(U=c.height),this.dpr=c.devicePixelRatio||1,w.width=R*this.dpr,w.height=U*this.dpr,this._width=R,this._height=U;var F=new b(w,this,this.dpr);F.__builtin__=!0,F.initContext(),T[e]=F,F.zlevel=e,D.push(e),this._domRoot=w}else{this._width=this._getSize(0),this._height=this._getSize(1);var O=this._domRoot=x(this._width,this._height);w.appendChild(O)}this._hoverlayer=null,this._hoverElements=[]};S.prototype={constructor:S,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var w=this.getViewportRoot();if(w)return{offsetLeft:w.offsetLeft||0,offsetTop:w.offsetTop||0}},refresh:function(w){var m=this.storage.getDisplayList(!0),c=this._zlevelList;this._redrawId=Math.random(),this._paintList(m,w,this._redrawId);for(var o=0;o<c.length;o++){var _=c[o],D=this._layers[_];if(!D.__builtin__&&D.refresh){var T=o===0?this._backgroundColor:null;D.refresh(T)}}return this.refreshHover(),this},addHover:function(w,m){if(w.__hoverMir)return;var c=new w.constructor({style:w.style,shape:w.shape,z:w.z,z2:w.z2,silent:w.silent});return c.__from=w,w.__hoverMir=c,m&&c.setStyle(m),this._hoverElements.push(c),c},removeHover:function(w){var m=w.__hoverMir,c=this._hoverElements,o=M.indexOf(c,m);o>=0&&c.splice(o,1),w.__hoverMir=null},clearHover:function(w){for(var m=this._hoverElements,c=0;c<m.length;c++){var o=m[c].__from;o&&(o.__hoverMir=null)}m.length=0},refreshHover:function(){var w=this._hoverElements,m=w.length,c=this._hoverlayer;if(c&&c.clear(),!m)return;C(w,this.storage.displayableSortFunc),c||(c=this._hoverlayer=this.getLayer(n));var o={};c.ctx.save();for(var _=0;_<m;){var D=w[_],T=D.__from;if(!(T&&T.__zr)){w.splice(_,1),T.__hoverMir=null,m--;continue}_++,T.invisible||(D.transform=T.transform,D.invTransform=T.invTransform,D.__clipPaths=T.__clipPaths,this._doPaintEl(D,c,!0,o))}c.ctx.restore()},getHoverLayer:function(){return this.getLayer(n)},_paintList:function(w,m,c){if(this._redrawId!==c)return;m=m||!1,this._updateLayerStatus(w);var o=this._doPaintList(w,m);if(this._needsManuallyCompositing&&this._compositeManually(),!o){var _=this;f(function(){_._paintList(w,m,c)})}},_compositeManually:function(){var w=this.getLayer(e).ctx,m=this._domRoot.width,c=this._domRoot.height;w.clearRect(0,0,m,c),this.eachBuiltinLayer(function(o){o.virtual&&w.drawImage(o.dom,0,0,m,c)})},_doPaintList:function(w,m){for(var c=[],o=0;o<this._zlevelList.length;o++){var _=this._zlevelList[o],D=this._layers[_];D.__builtin__&&D!==this._hoverlayer&&(D.__dirty||m)&&c.push(D)}for(var T=!0,O=0;O<c.length;O++){var D=c[O],R=D.ctx,U={};R.save();var F=m?D.__startIndex:D.__drawIndex,Y=!m&&D.incremental&&Date.now,k=Y&&Date.now(),K=D.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(D.__startIndex===D.__endIndex)D.clear(!1,K);else if(F===D.__startIndex){var z=w[F];(!z.incremental||!z.notClear||m)&&D.clear(!1,K)}F===-1&&(console.error("For some unknown reason. drawIndex is -1"),F=D.__startIndex);for(var j=F;j<D.__endIndex;j++){var Q=w[j];if(this._doPaintEl(Q,D,m,U),Q.__dirty=Q.__dirtyText=!1,Y){var X=Date.now()-k;if(X>15)break}}D.__drawIndex=j,D.__drawIndex<D.__endIndex&&(T=!1),U.prevElClipPaths&&R.restore(),R.restore()}return r.wxa&&M.each(this._layers,function(te){te&&te.ctx&&te.ctx.draw&&te.ctx.draw()}),T},_doPaintEl:function(w,m,c,o){var _=m.ctx,D=w.transform;if((m.__dirty||c)&&!w.invisible&&w.style.opacity!==0&&!(D&&!D[0]&&!D[3])&&!(w.culling&&h(w,this._width,this._height))){var T=w.__clipPaths,O=o.prevElClipPaths;(!O||y(T,O))&&(O&&(_.restore(),o.prevElClipPaths=null,o.prevEl=null),T&&(_.save(),v(T,_),o.prevElClipPaths=T)),w.beforeBrush&&w.beforeBrush(_),w.brush(_,o.prevEl||null),o.prevEl=w,w.afterBrush&&w.afterBrush(_)}},getLayer:function(w,m){this._singleCanvas&&!this._needsManuallyCompositing&&(w=e);var c=this._layers[w];return c||(c=new b("zr_"+w,this,this.dpr),c.zlevel=w,c.__builtin__=!0,this._layerConfig[w]?M.merge(c,this._layerConfig[w],!0):this._layerConfig[w-s]&&M.merge(c,this._layerConfig[w-s],!0),m&&(c.virtual=m),this.insertLayer(w,c),c.initContext()),c},insertLayer:function(w,m){var c=this._layers,o=this._zlevelList,_=o.length,D=null,T=-1,O=this._domRoot;if(c[w]){p("ZLevel "+w+" has been used already");return}if(!A(m)){p("Layer of zlevel "+w+" is not valid");return}if(_>0&&w>o[0]){for(T=0;T<_-1&&!(o[T]<w&&o[T+1]>w);T++);D=c[o[T]]}if(o.splice(T+1,0,w),c[w]=m,!m.virtual)if(D){var R=D.dom;R.nextSibling?O.insertBefore(m.dom,R.nextSibling):O.appendChild(m.dom)}else O.firstChild?O.insertBefore(m.dom,O.firstChild):O.appendChild(m.dom)},eachLayer:function(w,m){var c=this._zlevelList,o,_;for(_=0;_<c.length;_++)o=c[_],w.call(m,this._layers[o],o)},eachBuiltinLayer:function(w,m){var c=this._zlevelList,o,_,D;for(D=0;D<c.length;D++)_=c[D],o=this._layers[_],o.__builtin__&&w.call(m,o,_)},eachOtherLayer:function(w,m){var c=this._zlevelList,o,_,D;for(D=0;D<c.length;D++)_=c[D],o=this._layers[_],o.__builtin__||w.call(m,o,_)},getLayers:function(){return this._layers},_updateLayerStatus:function(w){this.eachBuiltinLayer(function(U,F){U.__dirty=U.__used=!1});function m(U){_&&(_.__endIndex!==U&&(_.__dirty=!0),_.__endIndex=U)}if(this._singleCanvas)for(var c=1;c<w.length;c++){var o=w[c];if(o.zlevel!==w[c-1].zlevel||o.incremental){this._needsManuallyCompositing=!0;break}}for(var _=null,D=0,T,c=0;c<w.length;c++){var o=w[c],O=o.zlevel,R;T!==O&&(T=O,D=0),o.incremental?(R=this.getLayer(O+u,this._needsManuallyCompositing),R.incremental=!0,D=1):R=this.getLayer(O+(D>0?s:0),this._needsManuallyCompositing),R.__builtin__||p("ZLevel "+O+" has been used by unkown layer "+R.id),R!==_&&(R.__used=!0,R.__startIndex!==c&&(R.__dirty=!0),R.__startIndex=c,R.incremental?R.__drawIndex=-1:R.__drawIndex=c,m(c),_=R),o.__dirty&&(R.__dirty=!0,R.incremental&&R.__drawIndex<0&&(R.__drawIndex=c))}m(c),this.eachBuiltinLayer(function(U,F){!U.__used&&U.getElementCount()>0&&(U.__dirty=!0,U.__startIndex=U.__endIndex=U.__drawIndex=0),U.__dirty&&U.__drawIndex<0&&(U.__drawIndex=U.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(w){w.clear()},setBackgroundColor:function(w){this._backgroundColor=w},configLayer:function(w,m){if(m){var c=this._layerConfig;c[w]?M.merge(c[w],m,!0):c[w]=m;for(var o=0;o<this._zlevelList.length;o++){var _=this._zlevelList[o];if(_===w||_===w+s){var D=this._layers[_];M.merge(D,c[w],!0)}}}},delLayer:function(w){var m=this._layers,c=this._zlevelList,o=m[w];if(!o)return;o.dom.parentNode.removeChild(o.dom),delete m[w],c.splice(M.indexOf(c,w),1)},resize:function(w,m){if(this._domRoot.style){var c=this._domRoot;c.style.display="none";var o=this._opts;if(w!=null&&(o.width=w),m!=null&&(o.height=m),w=this._getSize(0),m=this._getSize(1),c.style.display="",this._width!==w||m!==this._height){c.style.width=w+"px",c.style.height=m+"px";for(var _ in this._layers)this._layers.hasOwnProperty(_)&&this._layers[_].resize(w,m);M.each(this._progressiveLayers,function(D){D.resize(w,m)}),this.refresh(!0)}this._width=w,this._height=m}else{if(w==null||m==null)return;this._width=w,this._height=m,this.getLayer(e).resize(w,m)}return this},clearLayer:function(w){var m=this._layers[w];m&&m.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(w){if(w=w||{},this._singleCanvas&&!this._compositeManually)return this._layers[e].dom;var m=new b("image",this,w.pixelRatio||this.dpr);if(m.initContext(),m.clear(!1,w.backgroundColor||this._backgroundColor),w.pixelRatio<=this.dpr){this.refresh();var c=m.dom.width,o=m.dom.height,_=m.ctx;this.eachLayer(function(U){U.__builtin__?_.drawImage(U.dom,0,0,c,o):U.renderToCanvas&&(m.ctx.save(),U.renderToCanvas(m.ctx),m.ctx.restore())})}else for(var D={},T=this.storage.getDisplayList(!0),O=0;O<T.length;O++){var R=T[O];this._doPaintEl(R,m,!0,D)}return m.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(w){var m=this._opts,c=["width","height"][w],o=["clientWidth","clientHeight"][w],_=["paddingLeft","paddingTop"][w],D=["paddingRight","paddingBottom"][w];if(m[c]!=null&&m[c]!=="auto")return parseFloat(m[c]);var T=this.root,O=document.defaultView.getComputedStyle(T);return(T[o]||a(O[c])||a(T.style[c]))-(a(O[_])||0)-(a(O[D])||0)|0},pathToImage:function(w,m){m=m||this.dpr;var c=document.createElement("canvas"),o=c.getContext("2d"),_=w.getBoundingRect(),D=w.style,T=D.shadowBlur*m,O=D.shadowOffsetX*m,R=D.shadowOffsetY*m,U=D.hasStroke()?D.lineWidth:0,F=Math.max(U/2,-O+T),Y=Math.max(U/2,O+T),k=Math.max(U/2,-R+T),K=Math.max(U/2,R+T),z=_.width+F+Y,j=_.height+k+K;c.width=z*m,c.height=j*m,o.scale(m,m),o.clearRect(0,0,z,j),o.dpr=m;var Q={position:w.position,rotation:w.rotation,scale:w.scale};w.position=[F-_.x,k-_.y],w.rotation=0,w.scale=[1,1],w.updateTransform(),w&&w.brush(o);var X=l,te=new X({style:{x:0,y:0,image:c}});return Q.position!=null&&(te.position=w.position=Q.position),Q.rotation!=null&&(te.rotation=w.rotation=Q.rotation),Q.scale!=null&&(te.scale=w.scale=Q.scale),te}};var B=S;We.exports=B},"7ZXX":function(We,Ce,I){We.exports=I.p+"static/err.6e7c5817.png"},"7ahc":function(We,Ce,I){"use strict";I.d(Ce,"a",function(){return v});var ae=I("k1fw"),V=I("0Owb"),M=I("+L6B"),p=I("2/Rp"),E=I("y8nQ"),C=I("Vl3Y"),b=I("tJVT"),f=I("OaEy"),l=I("2fM7"),r=I("q1tI"),n=I.n(r),e=I("VrN/"),s=I.n(e),u=I("p77/"),a=I.n(u),A=I("c5Ni"),d=I.n(A),i=l.a.Option,h={labelCol:{span:4},wrapperCol:{span:20}},y={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"]};Ce.b=function(x){var S=x.callback,B=x.onCancel,w=Object(r.useState)("python"),m=Object(b.a)(w,2),c=m[0],o=m[1];function _(T){o(y[T][1])}function D(T){S(T)}return n.a.createElement(C.a,Object(V.a)({},h,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:D}),n.a.createElement(C.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},n.a.createElement(l.a,{onChange:_},Object.keys(y).map(function(T){return n.a.createElement(i,{key:T,value:T},y[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(v,{mode:c})),n.a.createElement("div",{className:"flex-container flex-end"},n.a.createElement(p.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),n.a.createElement(p.a,{type:"ghost",onClick:B},"\u53D6\u6D88")))};function v(x){var S=x.value,B=x.onChange,w=x.mode,m=x.options,c=m===void 0?{}:m,o=Object(r.useRef)(),_=Object(r.useState)(),D=Object(b.a)(_,2),T=D[0],O=D[1];return Object(r.useEffect)(function(){if(T){function R(U){var F=U.getValue();B&&B(F)}return T.on("change",R),function(){T.off("change",R)}}},[T,B]),Object(r.useEffect)(function(){T&&T.setOption("mode",w)},[T,w]),Object(r.useEffect)(function(){T&&((S!==T.getValue()||S==="")&&setTimeout(function(){T.setValue(S||" ")},300))},[T,S]),Object(r.useEffect)(function(){if(o.current&&!T){var R=s.a.fromTextArea(o.current,Object(ae.a)({mode:w,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},c));O(R)}},[o.current,T]),n.a.createElement("div",{className:"my-codemirror-container"},n.a.createElement("textarea",{ref:o}))}},"7ixt":function(We,Ce,I){"use strict";I.d(Ce,"a",function(){return M});var ae={adjustX:1,adjustY:1},V=[0,0],M={left:{points:["cr","cl"],overflow:ae,offset:[-4,0],targetOffset:V},right:{points:["cl","cr"],overflow:ae,offset:[4,0],targetOffset:V},top:{points:["bc","tc"],overflow:ae,offset:[0,-4],targetOffset:V},bottom:{points:["tc","bc"],overflow:ae,offset:[0,4],targetOffset:V},topLeft:{points:["bl","tl"],overflow:ae,offset:[0,-4],targetOffset:V},leftTop:{points:["tr","tl"],overflow:ae,offset:[-4,0],targetOffset:V},topRight:{points:["br","tr"],overflow:ae,offset:[0,-4],targetOffset:V},rightTop:{points:["tl","tr"],overflow:ae,offset:[4,0],targetOffset:V},bottomRight:{points:["tr","br"],overflow:ae,offset:[0,4],targetOffset:V},rightBottom:{points:["bl","br"],overflow:ae,offset:[4,0],targetOffset:V},bottomLeft:{points:["tl","bl"],overflow:ae,offset:[0,4],targetOffset:V},leftBottom:{points:["br","bl"],overflow:ae,offset:[-4,0],targetOffset:V}},p=M},"7oTu":function(We,Ce,I){var ae=I("IMiH"),V=I("QBsz"),M=V.applyTransform,p=ae.CMD,E=[[],[],[]],C=Math.sqrt,b=Math.atan2;function f(l,r){var n=l.data,e,s,u,a,A,d,i=p.M,h=p.C,y=p.L,v=p.R,x=p.A,S=p.Q;for(u=0,a=0;u<n.length;){e=n[u++],a=u,s=0;switch(e){case i:s=1;break;case y:s=1;break;case h:s=3;break;case S:s=2;break;case x:var B=r[4],w=r[5],m=C(r[0]*r[0]+r[1]*r[1]),c=C(r[2]*r[2]+r[3]*r[3]),o=b(-r[1]/c,r[0]/m);n[u]*=m,n[u++]+=B,n[u]*=c,n[u++]+=w,n[u++]*=m,n[u++]*=c,n[u++]+=o,n[u++]+=o,u+=2,a=u;break;case v:d[0]=n[u++],d[1]=n[u++],M(d,d,r),n[a++]=d[0],n[a++]=d[1],d[0]+=n[u++],d[1]+=n[u++],M(d,d,r),n[a++]=d[0],n[a++]=d[1]}for(A=0;A<s;A++){var d=E[A];d[0]=n[u++],d[1]=n[u++],M(d,d,r),n[a++]=d[0],n[a++]=d[1]}}}We.exports=f},"7v3h":function(We,Ce,I){We.exports=I.p+"static/empty2.dd73f390.png"},"8/bI":function(We,Ce,I){We.exports=I.p+"static/empty.8918e228.png"},"815F":function(We,Ce,I){"use strict";I.d(Ce,"e",function(){return b}),I.d(Ce,"c",function(){return l}),I.d(Ce,"d",function(){return r}),I.d(Ce,"a",function(){return e}),I.d(Ce,"f",function(){return s}),I.d(Ce,"b",function(){return u});var ae=I("KQm4"),V=I("VTBJ"),M=I("Ff2n"),p=I("Zm9Q"),E=I("Kwbf"),C=I("OZM5");function b(a,A){return a!=null?a:A}function f(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],A=new Map;function d(i){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(i||[]).forEach(function(y){var v=y.key,x=y.children;Object(E.a)(v!=null,"Tree node must have a certain key: [".concat(h).concat(v,"]"));var S=String(v);Object(E.a)(!A.has(S)||v===null||v===void 0,"Same 'key' exist in the Tree: ".concat(S)),A.set(S,!0),d(x,"".concat(h).concat(S," > "))})}d(a)}function l(a){function A(d){var i=Object(p.a)(d);return i.map(function(h){if(!Object(C.i)(h))return Object(E.a)(!h,"Tree/TreeNode can only accept TreeNode as children."),null;var y=h.key,v=h.props,x=v.children,S=Object(M.a)(v,["children"]),B=Object(V.a)({key:y},S),w=A(x);return w.length&&(B.children=w),B}).filter(function(h){return h})}return A(a)}function r(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],d=new Set(A===!0?[]:A),i=[];function h(y){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return y.map(function(x,S){var B=Object(C.h)(v?v.pos:"0",S),w=b(x.key,B),m=Object(V.a)(Object(V.a)({},x),{},{parent:v,pos:B,children:null,data:x,isStart:[].concat(Object(ae.a)(v?v.isStart:[]),[S===0]),isEnd:[].concat(Object(ae.a)(v?v.isEnd:[]),[S===y.length-1])});return i.push(m),A===!0||d.has(w)?m.children=h(x.children||[],m):m.children=[],m})}return h(a),i}function n(a,A,d){var i;d?typeof d=="string"?i=function(v){return v[d]}:typeof d=="function"&&(i=function(v){return d(v)}):i=function(v,x){return b(v.key,x)};function h(y,v,x){var S=y?y.children:a,B=y?Object(C.h)(x.pos,v):"0";if(y){var w=i(y,B),m={node:y,index:v,pos:B,key:w,parentPos:x.node?x.pos:null,level:x.level+1};A(m)}S&&S.forEach(function(c,o){h(c,o,{node:y,pos:B,level:x?x.level+1:-1})})}h(null)}function e(a){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=A.initWrapper,i=A.processEntity,h=A.onProcessFinished,y=arguments.length>2?arguments[2]:void 0,v={},x={},S={posEntities:v,keyEntities:x};return d&&(S=d(S)||S),n(a,function(B){var w=B.node,m=B.index,c=B.pos,o=B.key,_=B.parentPos,D=B.level,T={node:w,index:m,key:o,pos:c,level:D},O=b(o,c);v[c]=T,x[O]=T,T.parent=v[_],T.parent&&(T.parent.children=T.parent.children||[],T.parent.children.push(T)),i&&i(T,S)},y),h&&h(S),S}function s(a,A){var d=A.expandedKeys,i=A.selectedKeys,h=A.loadedKeys,y=A.loadingKeys,v=A.checkedKeys,x=A.halfCheckedKeys,S=A.dragOverNodeKey,B=A.dropPosition,w=A.keyEntities,m=w[a],c={eventKey:a,expanded:d.indexOf(a)!==-1,selected:i.indexOf(a)!==-1,loaded:h.indexOf(a)!==-1,loading:y.indexOf(a)!==-1,checked:v.indexOf(a)!==-1,halfChecked:x.indexOf(a)!==-1,pos:String(m?m.pos:""),dragOver:S===a&&B===0,dragOverGapTop:S===a&&B===-1,dragOverGapBottom:S===a&&B===1};return c}function u(a){var A=a.data,d=a.expanded,i=a.selected,h=a.checked,y=a.loaded,v=a.loading,x=a.halfChecked,S=a.dragOver,B=a.dragOverGapTop,w=a.dragOverGapBottom,m=a.pos,c=a.active,o=Object(V.a)(Object(V.a)({},A),{},{expanded:d,selected:i,checked:h,loaded:y,loading:v,halfChecked:x,dragOver:S,dragOverGapTop:B,dragOverGapBottom:w,pos:m,active:c});return"props"in o||Object.defineProperty(o,"props",{get:function(){return Object(E.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),a}}),o}},"8Bcu":function(We,Ce,I){We.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(We,Ce,I){(function(ae){ae(I("VrN/"))})(function(ae){"use strict";ae.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 V=0;V<ae.modeInfo.length;V++){var M=ae.modeInfo[V];M.mimes&&(M.mime=M.mimes[0])}ae.findModeByMIME=function(p){p=p.toLowerCase();for(var E=0;E<ae.modeInfo.length;E++){var C=ae.modeInfo[E];if(C.mime==p)return C;if(C.mimes){for(var b=0;b<C.mimes.length;b++)if(C.mimes[b]==p)return C}}if(/\+xml$/.test(p))return ae.findModeByMIME("application/xml");if(/\+json$/.test(p))return ae.findModeByMIME("application/json")},ae.findModeByExtension=function(p){p=p.toLowerCase();for(var E=0;E<ae.modeInfo.length;E++){var C=ae.modeInfo[E];if(C.ext){for(var b=0;b<C.ext.length;b++)if(C.ext[b]==p)return C}}},ae.findModeByFileName=function(p){for(var E=0;E<ae.modeInfo.length;E++){var C=ae.modeInfo[E];if(C.file&&C.file.test(p))return C}var b=p.lastIndexOf("."),f=b>-1&&p.substring(b+1,p.length);if(f)return ae.findModeByExtension(f)},ae.findModeByName=function(p){p=p.toLowerCase();for(var E=0;E<ae.modeInfo.length;E++){var C=ae.modeInfo[E];if(C.name.toLowerCase()==p)return C;if(C.alias){for(var b=0;b<C.alias.length;b++)if(C.alias[b].toLowerCase()==p)return C}}}})},"8XDt":function(We,Ce,I){I("qH13");var ae=I("aX58"),V=ae.registerPainter,M=I("6fms");V("vml",M)},"8hTe":function(We,Ce,I){We.exports={button:"button___1wy9m"}},"8mKB":function(We,Ce,I){"use strict";var ae=I("rePB"),V=I("1OyB"),M=I("vuIU"),p=I("Ji7U"),E=I("md7G"),C=I("foSv"),b=I("q1tI"),f=I.n(b),l=I("m+aA"),r=I("TSYQ"),n=I.n(r),e=I("4IlW");function s(c){var o=c.pageXOffset,_="scrollLeft";if(typeof o!="number"){var D=c.document;o=D.documentElement[_],typeof o!="number"&&(o=D.body[_])}return o}function u(c){var o,_,D=c.ownerDocument,T=D.body,O=D&&D.documentElement,R=c.getBoundingClientRect();return o=R.left,_=R.top,o-=O.clientLeft||T.clientLeft||0,_-=O.clientTop||T.clientTop||0,{left:o,top:_}}function a(c){var o=u(c),_=c.ownerDocument,D=_.defaultView||_.parentWindow;return o.left+=s(D),o.left}function A(c){var o=d();return function(){var D=Object(C.a)(c),T;if(o){var O=Object(C.a)(this).constructor;T=Reflect.construct(D,arguments,O)}else T=D.apply(this,arguments);return Object(E.a)(this,T)}}function d(){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(c){return!1}}var i=function(c){Object(p.a)(_,c);var o=A(_);function _(){var D;return Object(V.a)(this,_),D=o.apply(this,arguments),D.onHover=function(T){var O=D.props,R=O.onHover,U=O.index;R(T,U)},D.onClick=function(T){var O=D.props,R=O.onClick,U=O.index;R(T,U)},D.onKeyDown=function(T){var O=D.props,R=O.onClick,U=O.index;T.keyCode===13&&R(T,U)},D}return Object(M.a)(_,[{key:"getClassName",value:function(){var T=this.props,O=T.prefixCls,R=T.index,U=T.value,F=T.allowHalf,Y=T.focused,k=R+1,K=O;return U===0&&R===0&&Y?K+=" ".concat(O,"-focused"):F&&U+.5>=k&&U<k?(K+=" ".concat(O,"-half ").concat(O,"-active"),Y&&(K+=" ".concat(O,"-focused"))):(K+=k<=U?" ".concat(O,"-full"):" ".concat(O,"-zero"),k===U&&Y&&(K+=" ".concat(O,"-focused"))),K}},{key:"render",value:function(){var T=this.onHover,O=this.onClick,R=this.onKeyDown,U=this.props,F=U.disabled,Y=U.prefixCls,k=U.character,K=U.characterRender,z=U.index,j=U.count,Q=U.value,X=typeof k=="function"?k(this.props):k,te=f.a.createElement("li",{className:this.getClassName()},f.a.createElement("div",{onClick:F?null:O,onKeyDown:F?null:R,onMouseMove:F?null:T,role:"radio","aria-checked":Q>z?"true":"false","aria-posinset":z+1,"aria-setsize":j,tabIndex:F?-1:0},f.a.createElement("div",{className:"".concat(Y,"-first")},X),f.a.createElement("div",{className:"".concat(Y,"-second")},X)));return K&&(te=K(te,this.props)),te}}]),_}(f.a.Component);function h(c,o){var _=Object.keys(c);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(c);o&&(D=D.filter(function(T){return Object.getOwnPropertyDescriptor(c,T).enumerable})),_.push.apply(_,D)}return _}function y(c){for(var o=1;o<arguments.length;o++){var _=arguments[o]!=null?arguments[o]:{};o%2?h(Object(_),!0).forEach(function(D){Object(ae.a)(c,D,_[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(_)):h(Object(_)).forEach(function(D){Object.defineProperty(c,D,Object.getOwnPropertyDescriptor(_,D))})}return c}function v(c){var o=x();return function(){var D=Object(C.a)(c),T;if(o){var O=Object(C.a)(this).constructor;T=Reflect.construct(D,arguments,O)}else T=D.apply(this,arguments);return Object(E.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(c){return!1}}function S(){}var B=function(c){Object(p.a)(_,c);var o=v(_);function _(D){var T;Object(V.a)(this,_),T=o.call(this,D),T.onHover=function(R,U){var F=T.props.onHoverChange,Y=T.getStarValue(U,R.pageX),k=T.state.cleanedValue;Y!==k&&T.setState({hoverValue:Y,cleanedValue:null}),F(Y)},T.onMouseLeave=function(){var R=T.props.onHoverChange;T.setState({hoverValue:void 0,cleanedValue:null}),R(void 0)},T.onClick=function(R,U){var F=T.props.allowClear,Y=T.state.value,k=T.getStarValue(U,R.pageX),K=!1;F&&(K=k===Y),T.onMouseLeave(),T.changeValue(K?0:k),T.setState({cleanedValue:K?k:null})},T.onFocus=function(){var R=T.props.onFocus;T.setState({focused:!0}),R&&R()},T.onBlur=function(){var R=T.props.onBlur;T.setState({focused:!1}),R&&R()},T.onKeyDown=function(R){var U=R.keyCode,F=T.props,Y=F.count,k=F.allowHalf,K=F.onKeyDown,z=F.direction,j=z==="rtl",Q=T.state.value;U===e.a.RIGHT&&Q<Y&&!j?(k?Q+=.5:Q+=1,T.changeValue(Q),R.preventDefault()):U===e.a.LEFT&&Q>0&&!j||U===e.a.RIGHT&&Q>0&&j?(k?Q-=.5:Q-=1,T.changeValue(Q),R.preventDefault()):U===e.a.LEFT&&Q<Y&&j&&(k?Q+=.5:Q+=1,T.changeValue(Q),R.preventDefault()),K&&K(R)},T.saveRef=function(R){return function(U){T.stars[R]=U}},T.saveRate=function(R){T.rate=R};var O=D.value;return O===void 0&&(O=D.defaultValue),T.stars={},T.state={value:O,focused:!1,cleanedValue:null},T}return Object(M.a)(_,[{key:"componentDidMount",value:function(){var T=this.props,O=T.autoFocus,R=T.disabled;O&&!R&&this.focus()}},{key:"getStarDOM",value:function(T){return Object(l.a)(this.stars[T])}},{key:"getStarValue",value:function(T,O){var R=this.props,U=R.allowHalf,F=R.direction,Y=F==="rtl",k=T+1;if(U){var K=this.getStarDOM(T),z=a(K),j=K.clientWidth;(Y&&O-z>j/2||!Y&&O-z<j/2)&&(k-=.5)}return k}},{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 O=this.props.onChange;"value"in this.props||this.setState({value:T}),O(T)}},{key:"render",value:function(){for(var T=this.props,O=T.count,R=T.allowHalf,U=T.style,F=T.prefixCls,Y=T.disabled,k=T.className,K=T.character,z=T.characterRender,j=T.tabIndex,Q=T.direction,X=this.state,te=X.value,oe=X.hoverValue,fe=X.focused,le=[],we=Y?"".concat(F,"-disabled"):"",Ae=0;Ae<O;Ae+=1)le.push(f.a.createElement(i,{ref:this.saveRef(Ae),index:Ae,count:O,disabled:Y,prefixCls:"".concat(F,"-star"),allowHalf:R,value:oe===void 0?te:oe,onClick:this.onClick,onHover:this.onHover,key:Ae,character:K,characterRender:z,focused:fe}));var be=n()(F,we,k,Object(ae.a)({},"".concat(F,"-rtl"),Q==="rtl"));return f.a.createElement("ul",{className:be,style:U,onMouseLeave:Y?null:this.onMouseLeave,tabIndex:Y?-1:j,onFocus:Y?null:this.onFocus,onBlur:Y?null:this.onBlur,onKeyDown:Y?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},le)}}],[{key:"getDerivedStateFromProps",value:function(T,O){return"value"in T&&T.value!==void 0?y(y({},O),{},{value:T.value}):O}}]),_}(f.a.Component);B.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:S,character:"\u2605",onHoverChange:S,tabIndex:0,direction:"ltr"};var w=B,m=Ce.a=w},"9Bee":function(We,Ce,I){"use strict";var ae=I("DYRE"),V=I("zeV3"),M=I("+L6B"),p=I("2/Rp"),E=I("k1fw"),C=I("9og8"),b=I("tJVT"),f=I("WmNS"),l=I.n(f),r=I("q1tI"),n=I.n(r),e=I("vg9a"),s=I("DlQD"),u=I.n(s),a=I("rUJ1");function A(ve,G){var Z=ve.match(/^(\s+)(?:```)/);if(Z===null)return G;var ge=Z[1];return G.split(`
`).map(function(Se){var Ee=Se.match(/^\s+/);if(Ee===null)return Se;var ft=Object(b.a)(Ee,1),Kt=ft[0];return Kt.length>=ge.length?Se.slice(ge.length):Se}).join(`
`)}var d=[],i=["<ul>"],h=new u.a.Renderer,y=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function v(){d.length=0,i=["<ul>"]}var x={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function S(ve,G,Z,ge){if(G>=ve.length||ve[G].level<=Z)return G;var Se=ve[G];ge.push("<li><a href='#"+Se.anchor+"'>"+Se.text+"</a>"),G++;var Ee=[];return G=S(ve,G,Se.level,Ee),Ee.length>0&&(ge.push("<ul>"),Ee.forEach(function(ft){ge.push(ft)}),ge.push("</ul>")),ge.push("</li>"),G=S(ve,G,Z,ge),G}function B(){return S(d,0,0,i),i.push("</ul>"),i.join("")}var w={heading:function(G){var Z=y.exec(G);if(Z)return{type:"heading",raw:Z[0],depth:Z[1].length,text:Z[2]}},fences:function(G){var Z=this.rules.block.fences.exec(G);if(Z){var ge=Z[0],Se=A(ge,Z[3]||""),Ee=Z[2]?Z[2].trim():Z[2];if(["latex","katex","math"].indexOf(Ee)>=0){var ft=o(),Kt=Se;Se=ft,_[ft]={type:"block",expression:Kt}}return{type:"code",raw:ge,lang:Ee,text:Se}}}},m=/(?:\${2})([^\n`]+?)(?:\${2})/gi,c=0,o=function(){return"__special_katext_id_".concat(c++,"__")},_={};function D(){return _}function T(){c=0,_={}}function O(ve){return ve=ve.replace(m,function(G,Z){var ge=o();return _[ge]={type:"inline",expression:Z},ge}),ve}var R=h.listitem;h.listitem=function(ve){return R(O(ve))};var U=h.paragraph;h.paragraph=function(ve){return U(O(ve))};var F=h.tablecell;h.tablecell=function(ve,G){return F(O(ve),G)},h.code=function(ve,G,Z){var ge=(G||"").match(/\S*/)[0];return ge?["latex","katex","math"].indexOf(ge)>=0?"<p class='editormd-tex'>".concat(ve,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(G,'">').concat(Z?ve:Object(a.escape)(ve,!0),`</code></pre>
`):'<pre class="prettyprint linenums"><code>'+(Z?ve:Object(a.escape)(ve,!0))+"</code></pre>"},h.heading=function(ve,G,Z){var ge=this.options.headerPrefix+Z.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return d.push({anchor:ge,level:G,text:ve}),"<h"+G+' id="'+ge+'">'+ve+"</h"+G+">"},u.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),u.a.use({tokenizer:w,renderer:h});var Y=u.a,k=I("SJMd"),K=I("ulZh"),z=I.n(K),j=I("m3rI"),Q=I("Oy/b"),X=I("p5ED"),te=I("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 oe=function(ve,G){return(oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Z,ge){Z.__proto__=ge}||function(Z,ge){for(var Se in ge)Object.prototype.hasOwnProperty.call(ge,Se)&&(Z[Se]=ge[Se])})(ve,G)};function fe(ve,G){function Z(){this.constructor=ve}oe(ve,G),ve.prototype=G===null?Object.create(G):(Z.prototype=G.prototype,new Z)}function le(ve,G,Z,ge){return new(Z||(Z=Promise))(function(Se,Ee){function ft(mn){try{Rt(ge.next(mn))}catch(Yt){Ee(Yt)}}function Kt(mn){try{Rt(ge.throw(mn))}catch(Yt){Ee(Yt)}}function Rt(mn){var Yt;mn.done?Se(mn.value):(Yt=mn.value,Yt instanceof Z?Yt:new Z(function(Jn){Jn(Yt)})).then(ft,Kt)}Rt((ge=ge.apply(ve,G||[])).next())})}function we(ve,G){var Z,ge,Se,Ee,ft={label:0,sent:function(){if(1&Se[0])throw Se[1];return Se[1]},trys:[],ops:[]};return Ee={next:Kt(0),throw:Kt(1),return:Kt(2)},typeof Symbol=="function"&&(Ee[Symbol.iterator]=function(){return this}),Ee;function Kt(Rt){return function(mn){return function(Yt){if(Z)throw new TypeError("Generator is already executing.");for(;ft;)try{if(Z=1,ge&&(Se=2&Yt[0]?ge.return:Yt[0]?ge.throw||((Se=ge.return)&&Se.call(ge),0):ge.next)&&!(Se=Se.call(ge,Yt[1])).done)return Se;switch(ge=0,Se&&(Yt=[2&Yt[0],Se.value]),Yt[0]){case 0:case 1:Se=Yt;break;case 4:return ft.label++,{value:Yt[1],done:!1};case 5:ft.label++,ge=Yt[1],Yt=[0];continue;case 7:Yt=ft.ops.pop(),ft.trys.pop();continue;default:if(!(Se=ft.trys,(Se=Se.length>0&&Se[Se.length-1])||Yt[0]!==6&&Yt[0]!==2)){ft=0;continue}if(Yt[0]===3&&(!Se||Yt[1]>Se[0]&&Yt[1]<Se[3])){ft.label=Yt[1];break}if(Yt[0]===6&&ft.label<Se[1]){ft.label=Se[1],Se=Yt;break}if(Se&&ft.label<Se[2]){ft.label=Se[2],ft.ops.push(Yt);break}Se[2]&&ft.ops.pop(),ft.trys.pop();continue}Yt=G.call(ve,ft)}catch(Jn){Yt=[6,Jn],ge=0}finally{Z=Se=0}if(5&Yt[0])throw Yt[1];return{value:Yt[0]?Yt[1]:void 0,done:!0}}([Rt,mn])}}}function Ae(){for(var ve=0,G=0,Z=arguments.length;G<Z;G++)ve+=arguments[G].length;var ge=Array(ve),Se=0;for(G=0;G<Z;G++)for(var Ee=arguments[G],ft=0,Kt=Ee.length;ft<Kt;ft++,Se++)ge[Se]=Ee[ft];return ge}var be=function(){function ve(){}return ve.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ve.setAttributes=function(G,Z){for(var ge=0,Se=Z;ge<Se.length;ge++){var Ee=Se[ge],ft=Ee[0],Kt=Ee[1];G.setAttribute(ft,Kt)}},ve.createRect=function(G,Z,ge){var Se=document.createElementNS("http://www.w3.org/2000/svg","rect");return Se.setAttribute("width",G.toString()),Se.setAttribute("height",Z.toString()),ge&&ve.setAttributes(Se,ge),Se},ve.createLine=function(G,Z,ge,Se,Ee){var ft=document.createElementNS("http://www.w3.org/2000/svg","line");return ft.setAttribute("x1",G.toString()),ft.setAttribute("y1",Z.toString()),ft.setAttribute("x2",ge.toString()),ft.setAttribute("y2",Se.toString()),Ee&&ve.setAttributes(ft,Ee),ft},ve.createPolygon=function(G,Z){var ge=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ge.setAttribute("points",G),Z&&ve.setAttributes(ge,Z),ge},ve.createCircle=function(G,Z){var ge=document.createElementNS("http://www.w3.org/2000/svg","circle");return ge.setAttribute("cx",(G/2).toString()),ge.setAttribute("cy",(G/2).toString()),ge.setAttribute("r",G.toString()),Z&&ve.setAttributes(ge,Z),ge},ve.createEllipse=function(G,Z,ge){var Se=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Se.setAttribute("cx",(G/2).toString()),Se.setAttribute("cy",(Z/2).toString()),Se.setAttribute("rx",(G/2).toString()),Se.setAttribute("ry",(Z/2).toString()),ge&&ve.setAttributes(Se,ge),Se},ve.createGroup=function(G){var Z=document.createElementNS("http://www.w3.org/2000/svg","g");return G&&ve.setAttributes(Z,G),Z},ve.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ve.createMarker=function(G,Z,ge,Se,Ee,ft,Kt){var Rt=document.createElementNS("http://www.w3.org/2000/svg","marker");return ve.setAttributes(Rt,[["id",G],["orient",Z],["markerWidth",ge.toString()],["markerHeight",Se.toString()],["refX",Ee.toString()],["refY",ft.toString()]]),Rt.appendChild(Kt),Rt},ve.createText=function(G){var Z=document.createElementNS("http://www.w3.org/2000/svg","text");return Z.setAttribute("x","0"),Z.setAttribute("y","0"),G&&ve.setAttributes(Z,G),Z},ve.createTSpan=function(G,Z){var ge=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ge.textContent=G,Z&&ve.setAttributes(ge,Z),ge},ve.createImage=function(G){var Z=document.createElementNS("http://www.w3.org/2000/svg","image");return G&&ve.setAttributes(Z,G),Z},ve.createPoint=function(G,Z){var ge=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ge.x=G,ge.y=Z,ge},ve.createPath=function(G,Z){var ge=document.createElementNS("http://www.w3.org/2000/svg","path");return ge.setAttribute("d",G),Z&&ve.setAttributes(ge,Z),ge},ve}(),me=function(){function ve(){}return ve.addKey=function(G){ve.key=G},Object.defineProperty(ve,"isLicensed",{get:function(){return!!ve.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ve.key)},enumerable:!1,configurable:!0}),ve}(),he=function(){function ve(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ve.prototype.rasterize=function(G,Z,ge){var Se=this;return new Promise(function(Ee){var ft=ge!==void 0?ge:document.createElement("canvas");G===null&&(Se.markersOnly=!0,Se.naturalSize=!1);var Kt=document.createElementNS("http://www.w3.org/2000/svg","svg");Kt.setAttribute("xmlns","http://www.w3.org/2000/svg"),Kt.setAttribute("width",Z.width.baseVal.valueAsString),Kt.setAttribute("height",Z.height.baseVal.valueAsString),Kt.setAttribute("viewBox","0 0 "+Z.viewBox.baseVal.width.toString()+" "+Z.viewBox.baseVal.height.toString()),Kt.innerHTML=Z.innerHTML,Se.naturalSize===!0?(Kt.width.baseVal.value=G.naturalWidth,Kt.height.baseVal.value=G.naturalHeight):Se.width!==void 0&&Se.height!==void 0&&(Kt.width.baseVal.value=Se.width,Kt.height.baseVal.value=Se.height),ft.width=Kt.width.baseVal.value,ft.height=Kt.height.baseVal.value;var Rt=Kt.outerHTML,mn=ft.getContext("2d");Se.markersOnly!==!0&&mn.drawImage(G,0,0,ft.width,ft.height);var Yt=window.URL,Jn=new Image(ft.width,ft.height);Jn.setAttribute("crossOrigin","anonymous");var Hn=new Blob([Rt],{type:"image/svg+xml"}),$n=Yt.createObjectURL(Hn);Jn.onload=function(){mn.drawImage(Jn,0,0),Yt.revokeObjectURL($n);var wr=ft.toDataURL(Se.imageType,Se.imageQuality);Ee(wr)},Jn.src=$n})},ve}(),ie=function(){},pe=function(){function ve(G){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+G+"_"}return Object.defineProperty(ve.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ve.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(ve.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ve.prototype.addClass=function(G){return this.styleSheet===void 0&&this.addStyleSheet(),G.name=""+this.classNamePrefix+G.localName,this.classes.push(G),this.styleSheet.sheet.insertRule("."+G.name+" {"+G.style+"}",this.styleSheet.sheet.cssRules.length),G},ve.prototype.addRule=function(G){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(G),this.styleSheet.sheet.insertRule(G.selector+" {"+G.style+"}",this.styleSheet.sheet.cssRules.length)},ve.prototype.addStyleSheet=function(){var G;this.styleSheet=document.createElement("style"),((G=this.styleSheetRoot)!==null&&G!==void 0?G:document.head).appendChild(this.styleSheet),this.addRule(new ye("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new ye("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new ye("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new de("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new de("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},ve.prototype.removeStyleSheet=function(){var G;this.styleSheet&&(((G=this.styleSheetRoot)!==null&&G!==void 0?G:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ve}(),ye=function(ve,G){this.selector=ve,this.style=G},de=function(ve,G){this.localName=ve,this.style=G},Me=function(){function ve(G,Z,ge,Se,Ee){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=G,this.displayMode=Z,this.markerItems=ge,this.uiStyleSettings=Se,this.styles=Ee,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ve.prototype.show=function(G){var Z=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=G,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var ge=document.createElement("div");ge.className=this.toolbarBlockStyleClass.name,ge.style.whiteSpace="nowrap",this.uiContainer.appendChild(ge),this.addActionButton(ge,'<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(ge,'<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(ge,'<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(ge,'<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(ge,'<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(ge,'<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(ge,'<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(ge,'<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(Ee){var ft=document.createElement("div");ft.className=""+Z.toolbarButtonStyleClass.name,ft.setAttribute("data-type-name",Ee.typeName),ft.innerHTML=Ee.icon,ft.addEventListener("click",function(){Z.markerToolbarButtonClicked(ft,Ee)}),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 Se=document.createElement("div");Se.className=this.toolbarBlockStyleClass.name,Se.style.whiteSpace="nowrap",Se.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Se),this.addActionButton(Se,'<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(Se,'<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()},ve.prototype.addButtonClickListener=function(G){this.buttonClickListeners.push(G)},ve.prototype.removeButtonClickListener=function(G){this.buttonClickListeners.indexOf(G)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(G),1)},ve.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ve.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var G=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<G||Z===G&&this.markerButtons.length-1===G?this.markerButtonBlock.appendChild(this.markerButtons[Z]):(Z===G&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[Z]))}},ve.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")},ve.prototype.resetButtonStyles=function(){var G=this;this.buttons.forEach(function(Z){Z.className=Z.className.replace(G.uiStyleSettings.toolbarButtonStyleColorsClassName?G.uiStyleSettings.toolbarButtonStyleColorsClassName:G.toolbarButtonStyleColorsClass.name,"").trim(),Z.className=Z.className.replace(G.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?G.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:G.toolbarActiveButtonStyleColorsClass.name,"").trim(),Z.className+=" "+(G.uiStyleSettings.toolbarButtonStyleColorsClassName?G.uiStyleSettings.toolbarButtonStyleColorsClassName:G.toolbarButtonStyleColorsClass.name)})},ve.prototype.addActionButton=function(G,Z,ge){var Se=this,Ee=document.createElement("div");switch(Ee.className=""+this.toolbarButtonStyleClass.name,Ee.innerHTML=Z,Ee.setAttribute("data-action",ge),Ee.addEventListener("click",function(){Se.actionToolbarButtonClicked(Ee,ge)}),ge){case"select":Ee.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Ee.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Ee.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Ee.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Ee.style.fill=this.uiStyleSettings.closeButtonColor}G.appendChild(Ee),this.buttons.push(Ee)},ve.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new de("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 de("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new de("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new de("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 de("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var G=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new de("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*G)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*G)+`px;
padding: `+G+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new de("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new de("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new ye("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new ye("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},ve.prototype.markerToolbarButtonClicked=function(G,Z){this.setActiveButton(G),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ge){return ge("marker",Z)}),this.markerButtonOverflowBlock.style.display="none"},ve.prototype.actionToolbarButtonClicked=function(G,Z){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ge){return ge("action",Z)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ve.prototype.setActiveButton=function(G){this.resetButtonStyles(),G.className=G.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),G.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ve.prototype.setActiveMarkerButton=function(G){var Z=this.markerButtons.find(function(ge){return ge.getAttribute("data-type-name")===G});Z&&this.setActiveButton(Z)},ve.prototype.setCurrentMarker=function(G){var Z=this;this.currentMarker=G,this.buttons.filter(function(ge){return/delete|notes/.test(ge.getAttribute("data-action"))}).forEach(function(ge){Z.currentMarker===void 0?(ge.style.fillOpacity="0.4",ge.style.pointerEvents="none"):(ge.style.fillOpacity="1",ge.style.pointerEvents="all")})},ve}(),ke=function(){function ve(G,Z,ge,Se){this.panels=[],this.panelButtons=[],this.markerjsContainer=G,this.displayMode=Z,this.uiStyleSettings=ge,this.styles=Se,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ve.prototype.addStyles=function(){var G;this.toolboxStyleClass=this.styles.addClass(new de("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 de("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var Z=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new de("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new de("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new de("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 de("toolbox-panel-row_colors",`
background-color: `+((G=this.uiStyleSettings.toolboxBackgroundColor)!==null&&G!==void 0?G:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new de("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 de("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new de("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new ye("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new ye("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},ve.prototype.show=function(G){var Z;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=G,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Z=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Z!==void 0?Z:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ve.prototype.setPanelButtons=function(G){var Z,ge,Se=this;this.panels=G,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+" "+((ge=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ge!==void 0?ge:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Ee){var ft;Ee.uiStyleSettings=Se.uiStyleSettings;var Kt=document.createElement("div");Kt.className=Se.toolboxButtonStyleClass.name+" "+((ft=Se.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ft!==void 0?ft:Se.toolboxButtonStyleColorsClass.name),Kt.innerHTML=Ee.icon,Kt.title=Ee.title,Kt.addEventListener("click",function(){Se.panelButtonClick(Ee)}),Se.panelButtons.push(Kt),Se.buttonRow.appendChild(Kt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ve.prototype.panelButtonClick=function(G){var Z=this,ge=-1;if(G!==this.activePanel){ge=this.panels.indexOf(G),this.panelRow.innerHTML="";var Se=G.getUi();Se.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Se),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=G}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(Ee,ft){var Kt,Rt;Ee.className=Z.toolboxButtonStyleClass.name+" "+(ft===ge?""+((Kt=Z.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Kt!==void 0?Kt:Z.toolboxActiveButtonStyleColorsClass.name):""+((Rt=Z.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Rt!==void 0?Rt:Z.toolboxButtonStyleColorsClass.name))})},ve}(),Ue=function(ve,G){this.title=ve,this.icon=G},re=function(ve){function G(Z,ge,Se,Ee){var ft=ve.call(this,Z,Ee||'<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=ge,ft.currentColor=Se,ft.setCurrentColor=ft.setCurrentColor.bind(ft),ft.getColorBox=ft.getColorBox.bind(ft),ft}return fe(G,ve),G.prototype.getUi=function(){var Z=this,ge=document.createElement("div");return ge.style.overflow="hidden",ge.style.whiteSpace="nowrap",this.colors.forEach(function(Se){var Ee=Z.getColorBox(Se);ge.appendChild(Ee),Z.colorBoxes.push(Ee)}),ge},G.prototype.getColorBox=function(Z){var ge=this,Se=this.uiStyleSettings.toolbarHeight/4,Ee=this.uiStyleSettings.toolbarHeight-Se,ft=document.createElement("div");ft.style.display="inline-block",ft.style.boxSizing="content-box",ft.style.width=Ee-2+"px",ft.style.height=Ee-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=(Ee+2)/2+"px",ft.style.borderColor=Z===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ft.addEventListener("click",function(){ge.setCurrentColor(Z,ft)});var Kt=document.createElement("div");return Kt.style.display="inline-block",Kt.style.width=Ee-2+"px",Kt.style.height=Ee-2+"px",Kt.style.backgroundColor=Z,Kt.style.borderRadius=Ee/2+"px",Z==="transparent"&&(Kt.style.fill=this.uiStyleSettings.toolboxAccentColor,Kt.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(Kt),ft},G.prototype.setCurrentColor=function(Z,ge){var Se=this;this.currentColor=Z,this.colorBoxes.forEach(function(Ee){Ee.style.borderColor=Ee===ge?Se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Z)},G}(Ue),N=function(){function ve(G,Z,ge){this._state="new",this._isSelected=!1,this._container=G,this._overlayContainer=Z,this.globalSettings=ge,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ve.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ve.prototype.ownsTarget=function(G){return!1},Object.defineProperty(ve.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ve.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ve.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ve.prototype.pointerDown=function(G,Z){},ve.prototype.dblClick=function(G,Z){},ve.prototype.manipulate=function(G){},ve.prototype.pointerUp=function(G){this.stateChanged()},ve.prototype.dispose=function(){},ve.prototype.addMarkerVisualToContainer=function(G){this.container.childNodes.length>0?this.container.insertBefore(G,this.container.childNodes[0]):this.container.appendChild(G)},ve.prototype.getState=function(){return{typeName:ve.typeName,state:this.state,notes:this.notes}},ve.prototype.restoreState=function(G){this._state=G.state,this.notes=G.notes},ve.prototype.scale=function(G,Z){},ve.prototype.colorChanged=function(G){this.onColorChanged&&this.onColorChanged(G),this.stateChanged()},ve.prototype.fillColorChanged=function(G){this.onFillColorChanged&&this.onFillColorChanged(G),this.stateChanged()},ve.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var G=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),G.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(G)&&this.onStateChanged(this)}},ve.typeName="MarkerBase",ve}(),W=function(){function ve(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ve.prototype.findGripByVisual=function(G){return this.topLeft.ownsTarget(G)?this.topLeft:this.topCenter.ownsTarget(G)?this.topCenter:this.topRight.ownsTarget(G)?this.topRight:this.centerLeft.ownsTarget(G)?this.centerLeft:this.centerRight.ownsTarget(G)?this.centerRight:this.bottomLeft.ownsTarget(G)?this.bottomLeft:this.bottomCenter.ownsTarget(G)?this.bottomCenter:this.bottomRight.ownsTarget(G)?this.bottomRight:void 0},ve}(),ce=function(){function ve(){this.GRIP_SIZE=10,this.visual=be.createGroup(),this.visual.appendChild(be.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(be.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ve.prototype.ownsTarget=function(G){return G===this.visual||G===this.visual.childNodes[0]||G===this.visual.childNodes[1]},ve}(),ne=function(){function ve(){}return ve.toITransformMatrix=function(G){return{a:G.a,b:G.b,c:G.c,d:G.d,e:G.e,f:G.f}},ve.toSVGMatrix=function(G,Z){return G.a=Z.a,G.b=Z.b,G.c=Z.c,G.d=Z.d,G.e=Z.e,G.f=Z.f,G},ve}(),ue=function(ve){function G(Z,ge,Se){var Ee=ve.call(this,Z,ge,Se)||this;return Ee.left=0,Ee.top=0,Ee.width=0,Ee.height=0,Ee.defaultSize={x:50,y:20},Ee.offsetX=0,Ee.offsetY=0,Ee.rotationAngle=0,Ee.CB_DISTANCE=10,Ee._suppressMarkerCreateEvent=!1,Ee.container.transform.baseVal.appendItem(be.createTransform()),Ee.setupControlBox(),Ee}return fe(G,ve),Object.defineProperty(G.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"visual",{get:function(){return this._visual},set:function(Z){this._visual=Z;var ge=be.createTransform();this._visual.transform.baseVal.appendItem(ge)},enumerable:!1,configurable:!0}),G.prototype.ownsTarget=function(Z){return!!ve.prototype.ownsTarget.call(this,Z)||!!(this.controlGrips.findGripByVisual(Z)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Z))},G.prototype.pointerDown=function(Z,ge){ve.prototype.pointerDown.call(this,Z,ge),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 Se=this.unrotatePoint(Z);if(this.manipulationStartX=Se.x,this.manipulationStartY=Se.y,this.offsetX=Se.x-this.left,this.offsetY=Se.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ge),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ge)){this.activeGrip=this.rotatorGrip;var Ee=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Ee.x-this.width/2,this.top=Ee.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"},G.prototype.pointerUp=function(Z){var ge=this.state;ve.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",ge==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},G.prototype.moveVisual=function(Z){this.visual.style.transform="translate("+Z.x+"px, "+Z.y+"px)"},G.prototype.manipulate=function(Z){var ge=this.unrotatePoint(Z);this.state==="creating"?this.resize(Z):this.state==="move"?(this.left=this.manipulationStartLeft+(ge.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ge.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ge):this.state==="rotate"&&this.rotate(Z)},G.prototype.resize=function(Z){var ge=this.manipulationStartLeft,Se=this.manipulationStartWidth,Ee=this.manipulationStartTop,ft=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ge=this.manipulationStartLeft+Z.x-this.manipulationStartX,Se=this.manipulationStartWidth+this.manipulationStartLeft-ge;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Se=this.manipulationStartWidth+Z.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Ee=this.manipulationStartTop+Z.y-this.manipulationStartY,ft=this.manipulationStartHeight+this.manipulationStartTop-Ee;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ft=this.manipulationStartHeight+Z.y-this.manipulationStartY}Se>=0?(this.left=ge,this.width=Se):(this.left=ge+Se,this.width=-Se),ft>=0?(this.top=Ee,this.height=ft):(this.top=Ee+ft,this.height=-ft),this.setSize()},G.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},G.prototype.rotate=function(Z){if(Math.abs(Z.x-this.centerX)>.1){var ge=Math.sign(Z.x-this.centerX);this.rotationAngle=180*Math.atan((Z.y-this.centerY)/(Z.x-this.centerX))/Math.PI+90*ge,this.applyRotation()}},G.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)},G.prototype.rotatePoint=function(Z){if(this.rotationAngle===0)return Z;var ge=this.container.getCTM(),Se=be.createPoint(Z.x,Z.y);return{x:(Se=Se.matrixTransform(ge)).x,y:Se.y}},G.prototype.unrotatePoint=function(Z){if(this.rotationAngle===0)return Z;var ge=this.container.getCTM();ge=ge.inverse();var Se=be.createPoint(Z.x,Z.y);return{x:(Se=Se.matrixTransform(ge)).x,y:Se.y}},G.prototype.select=function(){ve.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},G.prototype.deselect=function(){ve.prototype.deselect.call(this),this.controlBox.style.display="none"},G.prototype.setupControlBox=function(){this.controlBox=be.createGroup();var Z=be.createTransform();Z.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Z),this.container.appendChild(this.controlBox),this.controlRect=be.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=be.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"},G.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()},G.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()},G.prototype.createGrip=function(){var Z=new ce;return Z.visual.transform.baseVal.appendItem(be.createTransform()),this.controlBox.appendChild(Z.visual),Z},G.prototype.positionGrips=function(){var Z=this.controlGrips.topLeft.GRIP_SIZE,ge=-Z/2,Se=ge,Ee=(this.width+this.CB_DISTANCE)/2-Z/2,ft=(this.height+this.CB_DISTANCE)/2-Z/2,Kt=this.height+this.CB_DISTANCE-Z/2,Rt=this.width+this.CB_DISTANCE-Z/2;this.positionGrip(this.controlGrips.topLeft.visual,ge,Se),this.positionGrip(this.controlGrips.topCenter.visual,Ee,Se),this.positionGrip(this.controlGrips.topRight.visual,Rt,Se),this.positionGrip(this.controlGrips.centerLeft.visual,ge,ft),this.positionGrip(this.controlGrips.centerRight.visual,Rt,ft),this.positionGrip(this.controlGrips.bottomLeft.visual,ge,Kt),this.positionGrip(this.controlGrips.bottomCenter.visual,Ee,Kt),this.positionGrip(this.controlGrips.bottomRight.visual,Rt,Kt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Ee,Se-3*this.CB_DISTANCE)},G.prototype.positionGrip=function(Z,ge,Se){var Ee=Z.transform.baseVal.getItem(0);Ee.setTranslate(ge,Se),Z.transform.baseVal.replaceItem(Ee,0)},G.prototype.hideControlBox=function(){this.controlBox.style.display="none"},G.prototype.showControlBox=function(){this.controlBox.style.display=""},G.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ne.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ne.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ve.prototype.getState.call(this))},G.prototype.restoreState=function(Z){ve.prototype.restoreState.call(this,Z);var ge=Z;this.left=ge.left,this.top=ge.top,this.width=ge.width,this.height=ge.height,this.rotationAngle=ge.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ne.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ge.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ne.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ge.containerTransformMatrix))},G.prototype.scale=function(Z,ge){ve.prototype.scale.call(this,Z,ge);var Se=this.rotatePoint({x:this.left,y:this.top}),Ee=this.unrotatePoint({x:Se.x*Z,y:Se.y*ge});this.left=Ee.x,this.top=Ee.y,this.width=this.width*Z,this.height=this.height*ge,this.adjustControlBox()},G}(N),De=function(ve){function G(Z,ge,Se){var Ee=ve.call(this,Z,ge,Se)||this;return Ee.fillColor="transparent",Ee.strokeColor="transparent",Ee.strokeWidth=0,Ee.strokeDasharray="",Ee.opacity=1,Ee.setStrokeColor=Ee.setStrokeColor.bind(Ee),Ee.setFillColor=Ee.setFillColor.bind(Ee),Ee.setStrokeWidth=Ee.setStrokeWidth.bind(Ee),Ee.setStrokeDasharray=Ee.setStrokeDasharray.bind(Ee),Ee.createVisual=Ee.createVisual.bind(Ee),Ee}return fe(G,ve),G.prototype.ownsTarget=function(Z){return!(!ve.prototype.ownsTarget.call(this,Z)&&Z!==this.visual)},G.prototype.createVisual=function(){this.visual=be.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)},G.prototype.pointerDown=function(Z,ge){ve.prototype.pointerDown.call(this,Z,ge),this.state==="new"&&(this.createVisual(),this.moveVisual(Z),this._state="creating")},G.prototype.manipulate=function(Z){ve.prototype.manipulate.call(this,Z)},G.prototype.resize=function(Z){ve.prototype.resize.call(this,Z),this.setSize()},G.prototype.setSize=function(){ve.prototype.setSize.call(this),be.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},G.prototype.pointerUp=function(Z){ve.prototype.pointerUp.call(this,Z),this.setSize()},G.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.visual&&be.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Z),this.stateChanged()},G.prototype.setFillColor=function(Z){this.fillColor=Z,this.visual&&be.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},G.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.visual&&be.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},G.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.visual&&be.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},G.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ve.prototype.getState.call(this))},G.prototype.restoreState=function(Z){var ge=Z;this.fillColor=ge.fillColor,this.strokeColor=ge.strokeColor,this.strokeWidth=ge.strokeWidth,this.strokeDasharray=ge.strokeDasharray,this.opacity=ge.opacity,this.createVisual(),ve.prototype.restoreState.call(this,Z),this.setSize()},G.prototype.scale=function(Z,ge){ve.prototype.scale.call(this,Z,ge),this.setSize()},G.title="Rectangle marker",G}(ue),ze=function(ve){function G(Z,ge,Se,Ee){var ft=ve.call(this,Z,Ee||'<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=ge,ft.currentWidth=Se,ft.setCurrentWidth=ft.setCurrentWidth.bind(ft),ft}return fe(G,ve),G.prototype.getUi=function(){var Z=this,ge=document.createElement("div");return ge.style.display="flex",ge.style.overflow="hidden",ge.style.flexGrow="2",this.widths.forEach(function(Se){var Ee=document.createElement("div");Ee.style.display="flex",Ee.style.flexGrow="2",Ee.style.alignItems="center",Ee.style.justifyContent="space-between",Ee.style.padding="5px",Ee.style.borderWidth="2px",Ee.style.borderStyle="solid",Ee.style.borderColor=Se===Z.currentWidth?Z.uiStyleSettings.toolboxAccentColor:"transparent",Ee.addEventListener("click",function(){Z.setCurrentWidth(Se,Ee)}),ge.appendChild(Ee);var ft=document.createElement("div");ft.innerText=Se.toString(),ft.style.marginRight="5px",Ee.appendChild(ft);var Kt=document.createElement("div");Kt.style.minHeight="20px",Kt.style.flexGrow="2",Kt.style.display="flex",Kt.style.alignItems="center";var Rt=document.createElement("hr");Rt.style.minWidth="20px",Rt.style.border="0px",Rt.style.borderTop=Se+"px solid "+Z.uiStyleSettings.toolboxColor,Rt.style.flexGrow="2",Kt.appendChild(Rt),Ee.appendChild(Kt),Z.widthBoxes.push(Ee)}),ge},G.prototype.setCurrentWidth=function(Z,ge){var Se=this;this.currentWidth=Z,this.widthBoxes.forEach(function(Ee){Ee.style.borderColor=Ee===ge?Se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},G}(Ue),wt=function(ve){function G(Z,ge,Se,Ee){var ft=ve.call(this,Z,Ee||'<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=ge,ft.currentStyle=Se,ft.setCurrentStyle=ft.setCurrentStyle.bind(ft),ft}return fe(G,ve),G.prototype.getUi=function(){var Z=this,ge=document.createElement("div");return ge.style.display="flex",ge.style.overflow="hidden",ge.style.flexGrow="2",this.styles.forEach(function(Se){var Ee=document.createElement("div");Ee.style.display="flex",Ee.style.alignItems="center",Ee.style.justifyContent="space-between",Ee.style.padding="5px",Ee.style.borderWidth="2px",Ee.style.borderStyle="solid",Ee.style.overflow="hidden",Ee.style.maxWidth=100/Z.styles.length-5+"%",Ee.style.borderColor=Se===Z.currentStyle?Z.uiStyleSettings.toolboxAccentColor:"transparent",Ee.addEventListener("click",function(){Z.setCurrentStyle(Se,Ee)}),ge.appendChild(Ee);var ft=document.createElement("div");ft.style.minHeight="20px",ft.style.flexGrow="2",ft.style.overflow="hidden";var Kt=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+Z.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Se!==""?'stroke-dasharray="'+Se+'"':"")+` />
</svg>`;ft.innerHTML=Kt,Ee.appendChild(ft),Z.styleBoxes.push(Ee)}),ge},G.prototype.setCurrentStyle=function(Z,ge){var Se=this;this.currentStyle=Z,this.styleBoxes.forEach(function(Ee){Ee.style.borderColor=Ee===ge?Se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},G}(Ue),He=function(ve){function G(Z,ge,Se){var Ee=ve.call(this,Z,ge,Se)||this;return Ee.strokeColor=Se.defaultColor,Ee.strokeWidth=Se.defaultStrokeWidth,Ee.strokeDasharray=Se.defaultStrokeDasharray,Ee.strokePanel=new re("Line color",Se.defaultColorSet,Se.defaultColor),Ee.strokePanel.onColorChanged=Ee.setStrokeColor,Ee.strokeWidthPanel=new ze("Line width",Se.defaultStrokeWidths,Se.defaultStrokeWidth),Ee.strokeWidthPanel.onWidthChanged=Ee.setStrokeWidth,Ee.strokeStylePanel=new wt("Line style",Se.defaultStrokeDasharrays,Se.defaultStrokeDasharray),Ee.strokeStylePanel.onStyleChanged=Ee.setStrokeDasharray,Ee}return fe(G,ve),Object.defineProperty(G.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),G.prototype.getState=function(){var Z=ve.prototype.getState.call(this);return Z.typeName=G.typeName,Z},G.typeName="FrameMarker",G.title="Frame marker",G.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',G}(De),Xe=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},gt=function(ve){function G(Z,ge,Se){var Ee=ve.call(this,Z,ge,Se)||this;return Ee.x1=0,Ee.y1=0,Ee.x2=0,Ee.y2=0,Ee.defaultLength=50,Ee.manipulationStartX=0,Ee.manipulationStartY=0,Ee.manipulationStartX1=0,Ee.manipulationStartY1=0,Ee.manipulationStartX2=0,Ee.manipulationStartY2=0,Ee.setupControlBox(),Ee}return fe(G,ve),G.prototype.ownsTarget=function(Z){return!!ve.prototype.ownsTarget.call(this,Z)||!(!this.grip1.ownsTarget(Z)&&!this.grip2.ownsTarget(Z))},G.prototype.pointerDown=function(Z,ge){ve.prototype.pointerDown.call(this,Z,ge),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(ge)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ge)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},G.prototype.pointerUp=function(Z){var ge=this.state;ve.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",ge==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},G.prototype.adjustVisual=function(){},G.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)},G.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()},G.prototype.select=function(){ve.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},G.prototype.deselect=function(){ve.prototype.deselect.call(this),this.controlBox.style.display="none"},G.prototype.setupControlBox=function(){this.controlBox=be.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},G.prototype.adjustControlBox=function(){this.positionGrips()},G.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},G.prototype.createGrip=function(){var Z=new ce;return Z.visual.transform.baseVal.appendItem(be.createTransform()),this.controlBox.appendChild(Z.visual),Z},G.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)},G.prototype.positionGrip=function(Z,ge,Se){var Ee=Z.transform.baseVal.getItem(0);Ee.setTranslate(ge,Se),Z.transform.baseVal.replaceItem(Ee,0)},G.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ve.prototype.getState.call(this))},G.prototype.restoreState=function(Z){ve.prototype.restoreState.call(this,Z);var ge=Z;this.x1=ge.x1,this.y1=ge.y1,this.x2=ge.x2,this.y2=ge.y2},G.prototype.scale=function(Z,ge){ve.prototype.scale.call(this,Z,ge),this.x1=this.x1*Z,this.y1=this.y1*ge,this.x2=this.x2*Z,this.y2=this.y2*ge,this.adjustVisual(),this.adjustControlBox()},G}(N),_t=function(ve){function G(Z,ge,Se){var Ee=ve.call(this,Z,ge,Se)||this;return Ee.strokeColor="transparent",Ee.strokeWidth=0,Ee.strokeDasharray="",Ee.setStrokeColor=Ee.setStrokeColor.bind(Ee),Ee.setStrokeWidth=Ee.setStrokeWidth.bind(Ee),Ee.setStrokeDasharray=Ee.setStrokeDasharray.bind(Ee),Ee.strokeColor=Se.defaultColor,Ee.strokeWidth=Se.defaultStrokeWidth,Ee.strokeDasharray=Se.defaultStrokeDasharray,Ee.strokePanel=new re("Line color",Se.defaultColorSet,Se.defaultColor),Ee.strokePanel.onColorChanged=Ee.setStrokeColor,Ee.strokeWidthPanel=new ze("Line width",Se.defaultStrokeWidths,Se.defaultStrokeWidth),Ee.strokeWidthPanel.onWidthChanged=Ee.setStrokeWidth,Ee.strokeStylePanel=new wt("Line style",Se.defaultStrokeDasharrays,Se.defaultStrokeDasharray),Ee.strokeStylePanel.onStyleChanged=Ee.setStrokeDasharray,Ee}return fe(G,ve),G.prototype.ownsTarget=function(Z){return!(!ve.prototype.ownsTarget.call(this,Z)&&Z!==this.visual&&Z!==this.selectorLine&&Z!==this.visibleLine)},G.prototype.createVisual=function(){this.visual=be.createGroup(),this.selectorLine=be.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=be.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)},G.prototype.pointerDown=function(Z,ge){ve.prototype.pointerDown.call(this,Z,ge),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},G.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()),be.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),be.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),be.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},G.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.adjustVisual(),this.colorChanged(Z)},G.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.adjustVisual()},G.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.adjustVisual(),this.stateChanged()},Object.defineProperty(G.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),G.prototype.getState=function(){var Z=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ve.prototype.getState.call(this));return Z.typeName=G.typeName,Z},G.prototype.restoreState=function(Z){ve.prototype.restoreState.call(this,Z);var ge=Z;this.strokeColor=ge.strokeColor,this.strokeWidth=ge.strokeWidth,this.strokeDasharray=ge.strokeDasharray,this.createVisual(),this.adjustVisual()},G.typeName="LineMarker",G.title="Line marker",G.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',G}(gt),ct=function(ve){function G(Z,ge,Se,Ee){var ft=ve.call(this,Z,Ee||'<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=ge,ft.currentFont=Se,ft.setCurrentFont=ft.setCurrentFont.bind(ft),ft}return fe(G,ve),G.prototype.getUi=function(){var Z=this,ge=document.createElement("div");return ge.style.overflow="hidden",ge.style.flexGrow="2",this.fonts.forEach(function(Se){var Ee=document.createElement("div");Ee.style.display="inline-block",Ee.style.alignItems="center",Ee.style.justifyContent="space-between",Ee.style.padding="5px",Ee.style.borderWidth="2px",Ee.style.borderStyle="solid",Ee.style.overflow="hidden",Ee.style.maxWidth=100/Z.fonts.length-5+"%",Ee.style.borderColor=Se===Z.currentFont?Z.uiStyleSettings.toolboxAccentColor:"transparent",Ee.addEventListener("click",function(){Z.setCurrentFont(Se,Ee)}),ge.appendChild(Ee);var ft=document.createElement("div");ft.style.display="flex",ft.style.minHeight="20px",ft.style.flexGrow="2",ft.style.fontFamily=Se,ft.style.overflow="hidden";var Kt=document.createElement("div");Kt.style.whiteSpace="nowrap",Kt.style.overflow="hidden",Kt.style.textOverflow="ellipsis",Kt.innerHTML="The quick brown fox jumps over the lazy dog",ft.appendChild(Kt),Ee.appendChild(ft),Z.fontBoxes.push(Ee)}),ge},G.prototype.setCurrentFont=function(Z,ge){var Se=this;this.currentFont=Z,this.fontBoxes.forEach(function(Ee){Ee.style.borderColor=Ee===ge?Se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},G}(Ue),lt=function(ve){function G(Z,ge,Se){var Ee=ve.call(this,Z,ge,Se)||this;return Ee.color="transparent",Ee.padding=5,Ee.DEFAULT_TEXT="your text here",Ee.text=Ee.DEFAULT_TEXT,Ee.isMoved=!1,Ee.color=Se.defaultColor,Ee.fontFamily=Se.defaultFontFamily,Ee.defaultSize={x:100,y:30},Ee.setColor=Ee.setColor.bind(Ee),Ee.setFont=Ee.setFont.bind(Ee),Ee.renderText=Ee.renderText.bind(Ee),Ee.sizeText=Ee.sizeText.bind(Ee),Ee.textEditDivClicked=Ee.textEditDivClicked.bind(Ee),Ee.showTextEditor=Ee.showTextEditor.bind(Ee),Ee.setSize=Ee.setSize.bind(Ee),Ee.positionTextEditor=Ee.positionTextEditor.bind(Ee),Ee.colorPanel=new re("Color",Se.defaultColorSet,Se.defaultColor),Ee.colorPanel.onColorChanged=Ee.setColor,Ee.fontFamilyPanel=new ct("Font",Se.defaultFontFamilies,Se.defaultFontFamily),Ee.fontFamilyPanel.onFontChanged=Ee.setFont,Ee}return fe(G,ve),G.prototype.ownsTarget=function(Z){if(ve.prototype.ownsTarget.call(this,Z)||Z===this.visual||Z===this.textElement||Z===this.bgRectangle)return!0;var ge=!1;return this.textElement.childNodes.forEach(function(Se){Se===Z&&(ge=!0)}),ge},G.prototype.createVisual=function(){this.visual=be.createGroup(),this.bgRectangle=be.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=be.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(be.createTransform()),this.textElement.transform.baseVal.appendItem(be.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},G.prototype.pointerDown=function(Z,ge){ve.prototype.pointerDown.call(this,Z,ge),this.isMoved=!1,this.pointerDownPoint=Z,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Z),this._state="creating")},G.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(ge){Z.textElement.appendChild(be.createTSpan(ge.trim()===""?" ":ge.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},G.prototype.getTextScale=function(){var Z=this.textElement.getBBox(),ge=1;if(Z.width>0&&Z.height>0){var Se=(1*this.width-this.width*this.padding*2/100)/Z.width,Ee=(1*this.height-this.height*this.padding*2/100)/Z.height;ge=Math.min(Se,Ee)}return ge},G.prototype.getTextPosition=function(Z){var ge=this.textElement.getBBox(),Se=0,Ee=0;return ge.width>0&&ge.height>0&&(Se=(this.width-ge.width*Z)/2,Ee=this.height/2-ge.height*Z/2),{x:Se,y:Ee}},G.prototype.sizeText=function(){var Z=this.textElement.getBBox(),ge=this.getTextScale(),Se=this.getTextPosition(ge);Se.y-=Z.y*ge,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Se.x+"px, "+Se.y+"px) scale("+ge+", "+ge+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Se.x,Se.y),this.textElement.transform.baseVal.getItem(1).setScale(ge,ge))},G.prototype.manipulate=function(Z){ve.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)},G.prototype.resize=function(Z){ve.prototype.resize.call(this,Z),this.isMoved=!0,this.setSize(),this.sizeText()},G.prototype.setSize=function(){ve.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(be.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),be.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},G.prototype.pointerUp=function(Z){var ge=this.state;ge==="creating"&&(this._suppressMarkerCreateEvent=!0),ve.prototype.pointerUp.call(this,Z),this.setSize(),(ge==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},G.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(ge){ge.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ge=Number.parseFloat(Z.textEditor.style.fontSize);Z.textEditor.clientWidth>=Number.parseInt(Z.textEditor.style.maxWidth)&&ge>.9;)ge-=.1,Z.textEditor.style.fontSize=Math.max(ge,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ge){ge.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ge){if(ge.clipboardData){var Se=ge.clipboardData.getData("text"),Ee=window.getSelection();if(!Ee.rangeCount)return!1;Ee.deleteFromDocument(),Ee.getRangeAt(0).insertNode(document.createTextNode(Se)),ge.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")},G.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Z=this.getTextScale(),ge=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Se=this.textElement.getBBox(),Ee={x:Se.width*Z,y:Se.height*Z};ge.x-=Ee.x/2,ge.y-=Ee.y/2,this.textEditor.style.top=ge.y+"px",this.textEditor.style.left=ge.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ge.x+"px",this.textEditor.style.fontSize=Math.max(16*Z,12)+"px",this.textElement.style.display="none"}},G.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()},G.prototype.select=function(){ve.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},G.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ve.prototype.deselect.call(this)},G.prototype.dblClick=function(Z,ge){ve.prototype.dblClick.call(this,Z,ge),this.showTextEditor()},G.prototype.setColor=function(Z){this.textElement&&be.setAttributes(this.textElement,[["fill",Z]]),this.color=Z,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Z)},G.prototype.setFont=function(Z){this.textElement&&be.setAttributes(this.textElement,[["font-family",Z]]),this.fontFamily=Z,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},G.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},G.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(G.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),G.prototype.getState=function(){var Z=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ve.prototype.getState.call(this));return Z.typeName=G.typeName,Z},G.prototype.restoreState=function(Z){var ge=Z;this.color=ge.color,this.fontFamily=ge.fontFamily,this.padding=ge.padding,this.text=ge.text,this.createVisual(),ve.prototype.restoreState.call(this,Z),this.setSize()},G.prototype.scale=function(Z,ge){ve.prototype.scale.call(this,Z,ge),this.setSize(),this.sizeText(),this.positionTextEditor()},G.typeName="TextMarker",G.title="Text marker",G.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>',G}(ue),rt=function(ve){function G(Z,ge,Se){var Ee=ve.call(this,Z,ge,Se)||this;return Ee.color="transparent",Ee.lineWidth=3,Ee.drawing=!1,Ee.pixelRatio=1,Ee.color=Se.defaultColor,Ee.lineWidth=Se.defaultStrokeWidth,Ee.pixelRatio=Se.freehandPixelRatio,Ee.setColor=Ee.setColor.bind(Ee),Ee.addCanvas=Ee.addCanvas.bind(Ee),Ee.finishCreation=Ee.finishCreation.bind(Ee),Ee.setLineWidth=Ee.setLineWidth.bind(Ee),Ee.colorPanel=new re("Color",Se.defaultColorSet,Se.defaultColor),Ee.colorPanel.onColorChanged=Ee.setColor,Ee.lineWidthPanel=new ze("Line width",Se.defaultStrokeWidths,Se.defaultStrokeWidth),Ee.lineWidthPanel.onWidthChanged=Ee.setLineWidth,Ee}return fe(G,ve),G.prototype.ownsTarget=function(Z){return!(!ve.prototype.ownsTarget.call(this,Z)&&Z!==this.visual&&Z!==this.drawingImage)},G.prototype.createVisual=function(){this.visual=be.createGroup(),this.drawingImage=be.createImage(),this.visual.appendChild(this.drawingImage);var Z=be.createTransform();this.visual.transform.baseVal.appendItem(Z),this.addMarkerVisualToContainer(this.visual)},G.prototype.pointerDown=function(Z,ge){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):ve.prototype.pointerDown.call(this,Z,ge)},G.prototype.manipulate=function(Z){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Z.x,Z.y),this.canvasContext.stroke()):ve.prototype.manipulate.call(this,Z)},G.prototype.resize=function(Z){ve.prototype.resize.call(this,Z),be.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),be.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},G.prototype.pointerUp=function(Z){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ve.prototype.pointerUp.call(this,Z)},G.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)},G.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ve.prototype.select.call(this)},G.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ve.prototype.deselect.call(this)},G.prototype.finishCreation=function(){for(var Z=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ge=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Se=ge[0],Ee=ge[1],ft=ge[2],Kt=ge[3],Rt=!1,mn=0;mn<this.canvasElement.height;mn++)for(var Yt=0;Yt<this.canvasElement.width;Yt++)Z.data[mn*this.canvasElement.width*4+4*Yt+3]>0&&(Rt=!0,mn<Ee&&(Ee=mn),Yt<Se&&(Se=Yt),mn>Kt&&(Kt=mn),Yt>ft&&(ft=Yt));if(Rt){this.left=Se/this.pixelRatio,this.top=Ee/this.pixelRatio,this.width=(ft-Se)/this.pixelRatio,this.height=(Kt-Ee)/this.pixelRatio;var Jn=document.createElement("canvas");Jn.width=ft-Se,Jn.height=Kt-Ee,Jn.getContext("2d").putImageData(this.canvasContext.getImageData(Se,Ee,ft-Se,Kt-Ee),0,0),this.drawingImgUrl=Jn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},G.prototype.setDrawingImage=function(){be.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),be.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},G.prototype.setColor=function(Z){this.color=Z,this.colorChanged(Z)},G.prototype.setLineWidth=function(Z){this.lineWidth=Z},Object.defineProperty(G.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),G.prototype.getState=function(){var Z=Object.assign({drawingImgUrl:this.drawingImgUrl},ve.prototype.getState.call(this));return Z.typeName=G.typeName,Z},G.prototype.restoreState=function(Z){this.createVisual(),ve.prototype.restoreState.call(this,Z),this.drawingImgUrl=Z.drawingImgUrl,this.setDrawingImage()},G.prototype.scale=function(Z,ge){ve.prototype.scale.call(this,Z,ge),this.setDrawingImage()},G.typeName="FreehandMarker",G.title="Freehand marker",G.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>',G}(ue),Ze=function(ve){function G(Z,ge,Se){var Ee=ve.call(this,Z,Se||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Ee.typeBoxes=[],Ee.currentType=ge,Ee.setCurrentType=Ee.setCurrentType.bind(Ee),Ee}return fe(G,ve),G.prototype.getUi=function(){var Z=this,ge=document.createElement("div");ge.style.display="flex",ge.style.overflow="hidden",ge.style.flexGrow="2";for(var Se=function(Kt){var Rt="both";switch(Kt){case 0:Rt="both";break;case 1:Rt="start";break;case 2:Rt="end";break;case 3:Rt="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=Rt===Ee.currentType?Ee.uiStyleSettings.toolboxAccentColor:"transparent",mn.addEventListener("click",function(){Z.setCurrentType(Rt,mn)}),ge.appendChild(mn),Rt==="both"||Rt==="start"){var Yt=document.createElement("div");Yt.style.display="flex",Yt.style.alignItems="center",Yt.style.minHeight="20px",Yt.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="`+(Ee.uiStyleSettings!==void 0?Ee.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Yt.style.marginLeft="5px",mn.appendChild(Yt)}var Jn=document.createElement("div");Jn.style.display="flex",Jn.style.alignItems="center",Jn.style.minHeight="20px",Jn.style.flexGrow="2";var Hn=document.createElement("hr");if(Hn.style.minWidth="20px",Hn.style.border="0px",Hn.style.borderTop="3px solid "+(Ee.uiStyleSettings!==void 0?Ee.uiStyleSettings.toolboxColor:"#eeeeee"),Hn.style.flexGrow="2",Jn.appendChild(Hn),mn.appendChild(Jn),Rt==="both"||Rt==="end"){var $n=document.createElement("div");$n.style.display="flex",$n.style.alignItems="center",$n.style.minHeight="20px",$n.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="`+(Ee.uiStyleSettings!==void 0?Ee.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,$n.style.marginRight="5px",mn.appendChild($n)}Ee.typeBoxes.push(mn)},Ee=this,ft=0;ft<4;ft++)Se(ft);return ge},G.prototype.setCurrentType=function(Z,ge){var Se=this;this.currentType=Z,this.typeBoxes.forEach(function(Ee){Ee.style.borderColor=Ee===ge?Se.uiStyleSettings!==void 0?Se.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},G}(Ue),qe=function(ve){function G(Z,ge,Se){var Ee=ve.call(this,Z,ge,Se)||this;return Ee.arrowType="end",Ee.arrowBaseHeight=10,Ee.arrowBaseWidth=10,Ee.getArrowPoints=Ee.getArrowPoints.bind(Ee),Ee.setArrowType=Ee.setArrowType.bind(Ee),Ee.arrowTypePanel=new Ze("Arrow type","end"),Ee.arrowTypePanel.onArrowTypeChanged=Ee.setArrowType,Ee}return fe(G,ve),G.prototype.ownsTarget=function(Z){return!(!ve.prototype.ownsTarget.call(this,Z)&&Z!==this.arrow1&&Z!==this.arrow2)},G.prototype.getArrowPoints=function(Z,ge){var Se=this.arrowBaseWidth+2*this.strokeWidth,Ee=this.arrowBaseHeight+2*this.strokeWidth;return Z-Se/2+","+(ge+Ee/2)+" "+Z+","+(ge-Ee/2)+" "+(Z+Se/2)+","+(ge+Ee/2)},G.prototype.createTips=function(){this.arrow1=be.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(be.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=be.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(be.createTransform()),this.visual.appendChild(this.arrow2)},G.prototype.pointerDown=function(Z,ge){ve.prototype.pointerDown.call(this,Z,ge),this.state==="creating"&&this.createTips()},G.prototype.adjustVisual=function(){if(ve.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",be.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),be.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),ge=this.arrow1.transform.baseVal.getItem(0);ge.setRotate(Z,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ge,0);var Se=this.arrow2.transform.baseVal.getItem(0);Se.setRotate(Z+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Se,0)}},G.prototype.setArrowType=function(Z){this.arrowType=Z,this.adjustVisual(),this.stateChanged()},Object.defineProperty(G.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),G.prototype.getState=function(){var Z=Object.assign({arrowType:this.arrowType},ve.prototype.getState.call(this));return Z.typeName=G.typeName,Z},G.prototype.restoreState=function(Z){ve.prototype.restoreState.call(this,Z);var ge=Z;this.arrowType=ge.arrowType,this.createTips(),this.adjustVisual()},G.typeName="ArrowMarker",G.title="Arrow marker",G.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',G}(_t),Le=function(ve){function G(Z,ge,Se){var Ee=ve.call(this,Z,ge,Se)||this;return Ee.fillColor=Se.defaultFillColor,Ee.strokeWidth=0,Ee.fillPanel=new re("Color",Se.defaultColorSet,Se.defaultFillColor),Ee.fillPanel.onColorChanged=Ee.setFillColor,Ee}return fe(G,ve),Object.defineProperty(G.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),G.prototype.getState=function(){var Z=ve.prototype.getState.call(this);return Z.typeName=G.typeName,Z},G.typeName="CoverMarker",G.title="Cover marker",G.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',G}(De),je=function(ve){function G(Z,ge,Se,Ee){var ft=ve.call(this,Z,Ee||'<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=ge,ft.currentOpacity=Se,ft.setCurrentOpacity=ft.setCurrentOpacity.bind(ft),ft}return fe(G,ve),G.prototype.getUi=function(){var Z=this,ge=document.createElement("div");return ge.style.display="flex",ge.style.overflow="hidden",ge.style.flexGrow="2",ge.style.justifyContent="space-between",this.opacities.forEach(function(Se){var Ee=document.createElement("div");Ee.style.display="flex",Ee.style.alignItems="center",Ee.style.justifyContent="center",Ee.style.padding="5px",Ee.style.borderWidth="2px",Ee.style.borderStyle="solid",Ee.style.borderColor=Se===Z.currentOpacity?Z.uiStyleSettings.toolboxAccentColor:"transparent",Ee.addEventListener("click",function(){Z.setCurrentOpacity(Se,Ee)}),ge.appendChild(Ee);var ft=document.createElement("div");ft.innerText=100*Se+"%",Ee.appendChild(ft),Z.opacityBoxes.push(Ee)}),ge},G.prototype.setCurrentOpacity=function(Z,ge){var Se=this;this.currentOpacity=Z,this.opacityBoxes.forEach(function(Ee){Ee.style.borderColor=Ee===ge?Se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},G}(Ue),Ne=function(ve){function G(Z,ge,Se){var Ee=ve.call(this,Z,ge,Se)||this;return Ee.setOpacity=Ee.setOpacity.bind(Ee),Ee.fillColor=Se.defaultHighlightColor,Ee.strokeWidth=0,Ee.opacity=Se.defaultHighlightOpacity,Ee.fillPanel=new re("Color",Se.defaultColorSet,Ee.fillColor),Ee.fillPanel.onColorChanged=Ee.setFillColor,Ee.opacityPanel=new je("Opacity",Se.defaultOpacitySteps,Ee.opacity),Ee.opacityPanel.onOpacityChanged=Ee.setOpacity,Ee}return fe(G,ve),G.prototype.setOpacity=function(Z){this.opacity=Z,this.visual&&be.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(G.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),G.prototype.getState=function(){var Z=ve.prototype.getState.call(this);return Z.typeName=G.typeName,Z},G.typeName="HighlightMarker",G.title="Highlight marker",G.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>',G}(Le),$e='<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>',At=function(ve){function G(Z,ge,Se){var Ee=ve.call(this,Z,ge,Se)||this;return Ee.bgColor="transparent",Ee.tipPosition={x:0,y:0},Ee.tipBase1Position={x:0,y:0},Ee.tipBase2Position={x:0,y:0},Ee.tipMoving=!1,Ee.color=Se.defaultStrokeColor,Ee.bgColor=Se.defaultFillColor,Ee.fontFamily=Se.defaultFontFamily,Ee.defaultSize={x:100,y:30},Ee.setBgColor=Ee.setBgColor.bind(Ee),Ee.getTipPoints=Ee.getTipPoints.bind(Ee),Ee.positionTip=Ee.positionTip.bind(Ee),Ee.setTipPoints=Ee.setTipPoints.bind(Ee),Ee.colorPanel=new re("Text color",Se.defaultColorSet,Ee.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>'),Ee.colorPanel.onColorChanged=Ee.setColor,Ee.bgColorPanel=new re("Fill color",Se.defaultColorSet,Ee.bgColor,$e),Ee.bgColorPanel.onColorChanged=Ee.setBgColor,Ee.fontFamilyPanel=new ct("Font",Se.defaultFontFamilies,Se.defaultFontFamily),Ee.fontFamilyPanel.onFontChanged=Ee.setFont,Ee.tipGrip=new ce,Ee.tipGrip.visual.transform.baseVal.appendItem(be.createTransform()),Ee.controlBox.appendChild(Ee.tipGrip.visual),Ee}return fe(G,ve),G.prototype.ownsTarget=function(Z){return ve.prototype.ownsTarget.call(this,Z)||this.tipGrip.ownsTarget(Z)||this.tip===Z},G.prototype.createTip=function(){be.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=be.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},G.prototype.pointerDown=function(Z,ge){this.state==="new"&&ve.prototype.pointerDown.call(this,Z,ge),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ge)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ve.prototype.pointerDown.call(this,Z,ge)},G.prototype.pointerUp=function(Z){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ve.prototype.pointerUp.call(this,Z);else{var ge=this.state==="creating";ve.prototype.pointerUp.call(this,Z),this.setTipPoints(ge),this.positionTip()}},G.prototype.manipulate=function(Z){if(this.tipMoving){var ge=this.unrotatePoint(Z);this.tipPosition={x:ge.x-this.manipulationStartLeft,y:ge.y-this.manipulationStartTop},this.positionTip()}else ve.prototype.manipulate.call(this,Z)},G.prototype.setBgColor=function(Z){this.bgRectangle&&this.tip&&(be.setAttributes(this.bgRectangle,[["fill",Z]]),be.setAttributes(this.tip,[["fill",Z]])),this.bgColor=Z,this.fillColorChanged(Z)},G.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},G.prototype.setTipPoints=function(Z){Z===void 0&&(Z=!1);var ge=Math.min(this.height/2,15),Se=this.height/5;Z&&(this.tipPosition={x:ge+Se/2,y:this.height+20});var Ee=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Ee<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Se=this.width/5,ge=Math.min(this.width/2,15),this.tipBase1Position={x:ge,y:0},this.tipBase2Position={x:ge+Se,y:0}):(this.tipBase1Position={x:0,y:ge},this.tipBase2Position={x:0,y:ge+Se}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Ee<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Se=this.width/5,ge=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ge-Se,y:0},this.tipBase2Position={x:this.width-ge,y:0}):(this.tipBase1Position={x:this.width,y:ge},this.tipBase2Position={x:this.width,y:ge+Se}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Ee<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Se=this.width/5,ge=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ge-Se,y:this.height},this.tipBase2Position={x:this.width-ge,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-ge-Se},this.tipBase2Position={x:this.width,y:this.height-ge}):Ee<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Se=this.width/5,ge=Math.min(this.width/2,15),this.tipBase1Position={x:ge,y:this.height},this.tipBase2Position={x:ge+Se,y:this.height}):(this.tipBase1Position={x:0,y:this.height-ge},this.tipBase2Position={x:0,y:this.height-ge-Se})},G.prototype.resize=function(Z){ve.prototype.resize.call(this,Z),this.positionTip()},G.prototype.positionTip=function(){be.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(G.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),G.prototype.select=function(){this.positionTip(),ve.prototype.select.call(this)},G.prototype.getState=function(){var Z=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ve.prototype.getState.call(this));return Z.typeName=G.typeName,Z},G.prototype.restoreState=function(Z){var ge=Z;this.bgColor=ge.bgColor,this.tipPosition=ge.tipPosition,ve.prototype.restoreState.call(this,Z),this.createTip(),this.setTipPoints()},G.prototype.scale=function(Z,ge){ve.prototype.scale.call(this,Z,ge),this.tipPosition={x:this.tipPosition.x*Z,y:this.tipPosition.y*ge},this.positionTip()},G.typeName="CalloutMarker",G.title="Callout marker",G.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>',G}(lt),Bt=function(ve){function G(Z,ge,Se){var Ee=ve.call(this,Z,ge,Se)||this;return Ee.fillColor="transparent",Ee.strokeColor="transparent",Ee.strokeWidth=0,Ee.strokeDasharray="",Ee.opacity=1,Ee.strokeColor=Se.defaultColor,Ee.strokeWidth=Se.defaultStrokeWidth,Ee.strokeDasharray=Se.defaultStrokeDasharray,Ee.fillColor=Se.defaultFillColor,Ee.setStrokeColor=Ee.setStrokeColor.bind(Ee),Ee.setFillColor=Ee.setFillColor.bind(Ee),Ee.setStrokeWidth=Ee.setStrokeWidth.bind(Ee),Ee.setStrokeDasharray=Ee.setStrokeDasharray.bind(Ee),Ee.setOpacity=Ee.setOpacity.bind(Ee),Ee.createVisual=Ee.createVisual.bind(Ee),Ee.strokePanel=new re("Line color",Ae(Se.defaultColorSet,["transparent"]),Se.defaultColor),Ee.strokePanel.onColorChanged=Ee.setStrokeColor,Ee.fillPanel=new re("Fill color",Ae(Se.defaultColorSet,["transparent"]),Ee.fillColor,$e),Ee.fillPanel.onColorChanged=Ee.setFillColor,Ee.strokeWidthPanel=new ze("Line width",Se.defaultStrokeWidths,Se.defaultStrokeWidth),Ee.strokeWidthPanel.onWidthChanged=Ee.setStrokeWidth,Ee.strokeStylePanel=new wt("Line style",Se.defaultStrokeDasharrays,Se.defaultStrokeDasharray),Ee.strokeStylePanel.onStyleChanged=Ee.setStrokeDasharray,Ee.opacityPanel=new je("Opacity",Se.defaultOpacitySteps,Ee.opacity),Ee.opacityPanel.onOpacityChanged=Ee.setOpacity,Ee}return fe(G,ve),G.prototype.ownsTarget=function(Z){return!(!ve.prototype.ownsTarget.call(this,Z)&&Z!==this.visual)},G.prototype.createVisual=function(){this.visual=be.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)},G.prototype.pointerDown=function(Z,ge){ve.prototype.pointerDown.call(this,Z,ge),this.state==="new"&&(this.createVisual(),this.moveVisual(Z),this._state="creating")},G.prototype.manipulate=function(Z){ve.prototype.manipulate.call(this,Z)},G.prototype.resize=function(Z){ve.prototype.resize.call(this,Z),this.setSize()},G.prototype.setSize=function(){ve.prototype.setSize.call(this),be.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},G.prototype.pointerUp=function(Z){ve.prototype.pointerUp.call(this,Z),this.setSize()},G.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.visual&&be.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Z),this.stateChanged()},G.prototype.setFillColor=function(Z){this.fillColor=Z,this.visual&&be.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(Z),this.stateChanged()},G.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.visual&&be.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},G.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.visual&&be.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},G.prototype.setOpacity=function(Z){this.opacity=Z,this.visual&&be.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(G.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),G.prototype.getState=function(){var Z=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ve.prototype.getState.call(this));return Z.typeName=G.typeName,Z},G.prototype.restoreState=function(Z){var ge=Z;this.fillColor=ge.fillColor,this.strokeColor=ge.strokeColor,this.strokeWidth=ge.strokeWidth,this.strokeDasharray=ge.strokeDasharray,this.opacity=ge.opacity,this.createVisual(),ve.prototype.restoreState.call(this,Z),this.setSize()},G.prototype.scale=function(Z,ge){ve.prototype.scale.call(this,Z,ge),this.setSize()},G.typeName="EllipseMarker",G.title="Ellipse marker",G.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>',G}(ue),Nt=function(ve){function G(Z,ge,Se){return ve.call(this,Z,ge,Se)||this}return fe(G,ve),Object.defineProperty(G.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),G.prototype.ownsTarget=function(Z){return!(!ve.prototype.ownsTarget.call(this,Z)&&Z!==this.tip1&&Z!==this.tip2)},G.prototype.createTips=function(){this.tip1=be.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(be.createTransform()),this.visual.appendChild(this.tip1),this.tip2=be.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(be.createTransform()),this.visual.appendChild(this.tip2)},G.prototype.pointerDown=function(Z,ge){ve.prototype.pointerDown.call(this,Z,ge),this.state==="creating"&&this.createTips()},G.prototype.adjustVisual=function(){if(ve.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(be.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()]]),be.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),ge=this.tip1.transform.baseVal.getItem(0);ge.setRotate(Z,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ge,0);var Se=this.tip2.transform.baseVal.getItem(0);Se.setRotate(Z+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Se,0)}},Object.defineProperty(G.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),G.prototype.getState=function(){var Z=ve.prototype.getState.call(this);return Z.typeName=G.typeName,Z},G.prototype.restoreState=function(Z){ve.prototype.restoreState.call(this,Z),this.createTips(),this.adjustVisual()},G.typeName="MeasurementMarker",G.title="Measurement marker",G.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>',G}(_t),It=function(ve){function G(Z,ge,Se){var Ee=ve.call(this,Z,ge,Se)||this;return Ee.strokePanel.colors=Se.defaultColorSet,Ee.fillColor="transparent",Ee}return fe(G,ve),Object.defineProperty(G.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),G.prototype.getState=function(){var Z=ve.prototype.getState.call(this);return Z.typeName=G.typeName,Z},G.typeName="EllipseFrameMarker",G.title="Ellipse frame marker",G.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>',G}(Bt),jt=function(){function ve(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ve.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ve.prototype.addUndoStep=function(G){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(G)||(this.undoStack.push(G),JSON.stringify(this.lastRedoStep)!==JSON.stringify(G)&&this.redoStack.splice(0,this.redoStack.length))},ve.prototype.replaceLastUndoStep=function(G){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=G)},ve.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ve.prototype.undo=function(){if(this.undoStack.length>1){var G=this.undoStack.pop();return G!==void 0&&this.redoStack.push(G),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ve.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ve}(),xt=function(ve){function G(Z,ge,Se){var Ee=ve.call(this,Z,ge,Se)||this;return Ee.strokeColor="transparent",Ee.strokeWidth=0,Ee.strokeDasharray="",Ee.curveX=0,Ee.curveY=0,Ee.manipulationStartCurveX=0,Ee.manipulationStartCurveY=0,Ee.setStrokeColor=Ee.setStrokeColor.bind(Ee),Ee.setStrokeWidth=Ee.setStrokeWidth.bind(Ee),Ee.setStrokeDasharray=Ee.setStrokeDasharray.bind(Ee),Ee.positionGrips=Ee.positionGrips.bind(Ee),Ee.addControlGrips=Ee.addControlGrips.bind(Ee),Ee.adjustVisual=Ee.adjustVisual.bind(Ee),Ee.setupControlBox=Ee.setupControlBox.bind(Ee),Ee.resize=Ee.resize.bind(Ee),Ee.strokeColor=Se.defaultColor,Ee.strokeWidth=Se.defaultStrokeWidth,Ee.strokeDasharray=Se.defaultStrokeDasharray,Ee.strokePanel=new re("Line color",Se.defaultColorSet,Se.defaultColor),Ee.strokePanel.onColorChanged=Ee.setStrokeColor,Ee.strokeWidthPanel=new ze("Line width",Se.defaultStrokeWidths,Se.defaultStrokeWidth),Ee.strokeWidthPanel.onWidthChanged=Ee.setStrokeWidth,Ee.strokeStylePanel=new wt("Line style",Se.defaultStrokeDasharrays,Se.defaultStrokeDasharray),Ee.strokeStylePanel.onStyleChanged=Ee.setStrokeDasharray,Ee}return fe(G,ve),G.prototype.ownsTarget=function(Z){return!(!ve.prototype.ownsTarget.call(this,Z)&&Z!==this.visual&&Z!==this.selectorCurve&&Z!==this.visibleCurve&&!this.curveGrip.ownsTarget(Z))},G.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},G.prototype.createVisual=function(){this.visual=be.createGroup(),this.selectorCurve=be.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=be.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)},G.prototype.pointerDown=function(Z,ge){ve.prototype.pointerDown.call(this,Z,ge),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(ge)&&(this.activeGrip=this.curveGrip,this._state="resize")},G.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),be.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),be.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),be.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},G.prototype.setupControlBox=function(){ve.prototype.setupControlBox.call(this),this.curveControlLine1=be.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=be.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)},G.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ve.prototype.addControlGrips.call(this)},G.prototype.positionGrips=function(){ve.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()))},G.prototype.manipulate=function(Z){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+Z.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+Z.y-this.manipulationStartY),ve.prototype.manipulate.call(this,Z)},G.prototype.resize=function(Z){this.activeGrip===this.curveGrip&&(this.curveX=Z.x,this.curveY=Z.y),ve.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)},G.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.adjustVisual(),this.colorChanged(Z)},G.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.adjustVisual()},G.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.adjustVisual()},G.prototype.scale=function(Z,ge){this.curveX=this.curveX*Z,this.curveY=this.curveY*ge,ve.prototype.scale.call(this,Z,ge)},Object.defineProperty(G.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),G.prototype.getState=function(){var Z=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ve.prototype.getState.call(this));return Z.typeName=G.typeName,Z},G.prototype.restoreState=function(Z){ve.prototype.restoreState.call(this,Z);var ge=Z;this.strokeColor=ge.strokeColor,this.strokeWidth=ge.strokeWidth,this.strokeDasharray=ge.strokeDasharray,this.curveX=ge.curveX,this.curveY=ge.curveY,this.createVisual(),this.adjustVisual()},G.typeName="CurveMarker",G.title="Curve marker",G.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>',G}(gt),Lt=function(){function ve(G,Z){Z===void 0&&(Z=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=G,this.cancelable=Z}return Object.defineProperty(ve.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ve.prototype.preventDefault=function(){this._defaultPrevented=!0},ve}(),St=function(ve){function G(Z,ge,Se){var Ee=ve.call(this,Z,!1)||this;return Ee.dataUrl=ge,Ee.state=Se,Ee}return fe(G,ve),G}(Lt),dt=function(ve){function G(Z,ge,Se){Se===void 0&&(Se=!1);var Ee=ve.call(this,Z,Se)||this;return Ee.marker=ge,Ee}return fe(G,ve),G}(Lt),yt=function(){function ve(){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 ve.prototype.addEventListener=function(G,Z){this[G].push(Z)},ve.prototype.removeEventListener=function(G,Z){var ge=this[G].indexOf(Z);ge>-1&&this[G].splice(ge,1)},ve}(),Fe=function(){function ve(G){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Xe,this._isOpen=!1,this.undoRedoManager=new jt,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 yt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ve.instanceCounter++,this.styles=new pe(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=G,this.targetRoot=document.body,this.width=G.clientWidth,this.height=G.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(ve.prototype,"ALL_MARKER_TYPES",{get:function(){return[He,rt,qe,lt,It,Bt,Ne,At,Nt,Le,_t,xt]},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[He,rt,qe,lt,Bt,Ne,At]},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"BASIC_MARKER_TYPES",{get:function(){return[He,rt,qe,lt,Ne]},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(G){var Z=this;this._availableMarkerTypes.splice(0),G.forEach(function(ge){if(typeof ge=="string"){var Se=Z.ALL_MARKER_TYPES.find(function(Ee){return Ee.typeName===ge});Se!==void 0&&Z._availableMarkerTypes.push(Se)}else Z._availableMarkerTypes.push(ge)})},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(G){this._zoomLevel=G,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(ve.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ve.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),me.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ve.prototype.show=function(){var G=this;this.styles.styleSheetRoot===void 0&&ie.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ie.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(Z){return Z(new Lt(G))})},ve.prototype.render=function(){return le(this,void 0,void 0,function(){var G;return we(this,function(Z){switch(Z.label){case 0:return this.setCurrentMarker(),(G=new he).naturalSize=this.renderAtNaturalSize,G.imageType=this.renderImageType,G.imageQuality=this.renderImageQuality,G.markersOnly=this.renderMarkersOnly,G.width=this.renderWidth,G.height=this.renderHeight,[4,G.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Z.sent(),[4,G.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Z.sent()]}})})},ve.prototype.close=function(G){var Z=this;if(G===void 0&&(G=!1),this.isOpen){var ge=!1;G||this.eventListeners.beforeclose.forEach(function(Se){var Ee=new Lt(Z,!0);Se(Ee),Ee.defaultPrevented&&(ge=!0)}),ge||(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(Se){return Se(new Lt(Z))}),this.detachEvents(),this._isOpen=!1)}},ve.prototype.addMarkersToToolbar=function(){for(var G,Z=[],ge=0;ge<arguments.length;ge++)Z[ge]=arguments[ge];(G=this._availableMarkerTypes).push.apply(G,Z)},ve.prototype.addRenderEventListener=function(G){this.addEventListener("render",function(Z){G(Z.dataUrl,Z.state)})},ve.prototype.removeRenderEventListener=function(G){},ve.prototype.addCloseEventListener=function(G){this.addEventListener("close",function(){G()})},ve.prototype.removeCloseEventListener=function(G){},ve.prototype.setupResizeObserver=function(){var G=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){G.resize(G.target.clientWidth,G.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return G.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ve.prototype.onPopupTargetResize=function(){var G=1*this.target.clientWidth/this.target.clientHeight,Z=this.editorCanvas.clientWidth/G>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*G:this.editorCanvas.clientWidth,ge=Z<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/G;this.resize(Z,ge)},ve.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ve.prototype.resize=function(G,Z){this._isResizing=!0;var ge=G/this.imageWidth,Se=Z/this.imageHeight;this.imageWidth=Math.round(G),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(ge,Se),this._isResizing=!1},ve.prototype.scaleMarkers=function(G,Z){var ge,Se=this;this._currentMarker&&this._currentMarker instanceof lt?this._currentMarker.scale(G,Z):(ge=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Ee){Ee!==Se._currentMarker&&Ee.scale(G,Z)}),ge!==void 0&&this.setCurrentMarker(ge)},ve.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"},ve.prototype.setTopLeft=function(){var G=this.editingTarget.getBoundingClientRect(),Z=this.editorCanvas.getBoundingClientRect();this.left=G.left-Z.left,this.top=G.top-Z.top},ve.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)},ve.prototype.addDefs=function(){for(var G,Z=[],ge=0;ge<arguments.length;ge++)Z[ge]=arguments[ge];this.defs=be.createDefs(),this.addDefsToImage(),(G=this.defs).append.apply(G,Z)},ve.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ve.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)},ve.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ve.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ve.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)},ve.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ve.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)},ve.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 G=document.createElement("a");G.href="https://markerjs.com/",G.target="_blank",G.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>',G.title="Powered by marker.js",G.style.display="grid",G.style.alignItems="center",G.style.justifyItems="center",G.style.padding="3px",G.style.width="20px",G.style.height="20px",this.logoUI.appendChild(G),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ve.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")},ve.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"},ve.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ve.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 G=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=G+"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 Me(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 ke(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ve.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ve.prototype.removeMarker=function(G){this.markerImage.removeChild(G.container),this.markers.indexOf(G)>-1&&this.markers.splice(this.markers.indexOf(G),1),G.dispose()},ve.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())},ve.prototype.toolbarButtonClicked=function(G,Z){if(G==="marker"&&Z!==void 0)this.createNewMarker(Z);else if(G==="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()}},ve.prototype.deleteSelectedMarker=function(){var G=this;if(this._currentMarker!==void 0){var Z=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Se){var Ee=new dt(G,G._currentMarker,!0);Se(Ee),Ee.defaultPrevented&&(Z=!0)}),!Z){var ge=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(Se){return Se(new dt(G,ge))})}}},ve.prototype.clear=function(){var G=this,Z=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ft){var Kt=new dt(G,void 0,!0);ft(Kt),Kt.defaultPrevented&&(Z=!0)}),!Z)){this.setCurrentMarker();for(var ge=function(ft){var Kt=Se.markers[ft];Se.setCurrentMarker(Se.markers[ft]),Se._currentMarker.dispose(),Se.markerImage.removeChild(Se._currentMarker.container),Se.markers.splice(Se.markers.indexOf(Se._currentMarker),1),Se.eventListeners.markerdelete.forEach(function(Rt){return Rt(new dt(G,Kt))})},Se=this,Ee=this.markers.length-1;Ee>=0;Ee--)ge(Ee);this.addUndoStep()}},Object.defineProperty(ve.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ve.prototype.showNotesEditor=function(){var G;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=(G=this._currentMarker.notes)!==null&&G!==void 0?G:"",this.overlayContainer.appendChild(this.notesArea))},ve.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)},ve.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ve.prototype.addUndoStep=function(){var G=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Z=this.getState(),ge=this.undoRedoManager.getLastUndoStep();if(!ge||ge.width===Z.width&&ge.height===Z.height){var Se=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Z),Se<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Ee){return Ee(new Lt(G))})}else this.undoRedoManager.replaceLastUndoStep(Z),this.eventListeners.statechange.forEach(function(Ee){return Ee(new Lt(G))})}},ve.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ve.prototype.undoStep=function(){var G=this,Z=this.undoRedoManager.undo();Z!==void 0&&(this.restoreState(Z),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ge){return ge(new Lt(G))}))},ve.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ve.prototype.redoStep=function(){var G=this,Z=this.undoRedoManager.redo();Z!==void 0&&(this.restoreState(Z),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ge){return ge(new Lt(G))}))},ve.prototype.stepZoom=function(){var G=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=G<this.zoomSteps.length-1?this.zoomSteps[G+1]:this.zoomSteps[0]},ve.prototype.panTo=function(G){this.contentDiv.scrollBy({left:this.prevPanPoint.x-G.x,top:this.prevPanPoint.y-G.y}),this.prevPanPoint=G},ve.prototype.startRenderAndClose=function(){return le(this,void 0,void 0,function(){var G,Z,ge=this;return we(this,function(Se){switch(Se.label){case 0:return[4,this.render()];case 1:return G=Se.sent(),Z=this.getState(),this.eventListeners.render.forEach(function(Ee){return Ee(new St(ge,G,Z))}),this.close(!0),[2]}})})},ve.prototype.getState=function(G){G===!0&&this.setCurrentMarker();var Z={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(ge){return Z.markers.push(ge.getState())}),Z},ve.prototype.restoreState=function(G){var Z=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);G.markers.forEach(function(ge){var Se=Z._availableMarkerTypes.find(function(ft){return ft.typeName===ge.typeName});if(Se!==void 0){var Ee=Z.addNewMarker(Se);Ee.restoreState(ge),Z.markers.push(Ee)}}),G.width&&G.height&&(G.width!==this.imageWidth||G.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/G.width,this.imageHeight/G.height),this.eventListeners.restorestate.forEach(function(ge){return ge(new Lt(Z))})},ve.prototype.addNewMarker=function(G){var Z=be.createGroup();return this.markerImage.appendChild(Z),new G(Z,this.overlayContainer,this.settings)},ve.prototype.createNewMarker=function(G){var Z,ge=this;(Z=typeof G=="string"?this._availableMarkerTypes.find(function(Se){return Se.typeName===G}):G)&&(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(Se){return Se(new dt(ge,ge._currentMarker))}))},ve.prototype.markerCreated=function(G){var Z=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(G),this.setCurrentMarker(G),G instanceof rt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(rt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(ge){return ge(new dt(Z,Z._currentMarker))})},ve.prototype.colorChanged=function(G){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=G,this.settings.defaultStrokeColor=G)},ve.prototype.fillColorChanged=function(G){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=G)},ve.prototype.markerStateChanged=function(G){var Z=this;this.eventListeners.markerchange.forEach(function(ge){return ge(new dt(Z,G))})},ve.prototype.setCurrentMarker=function(G){var Z=this;this._currentMarker!==G&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(ge){return ge(new dt(Z,Z._currentMarker))})),this._currentMarker=G,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(ge){return ge(new dt(Z,Z._currentMarker))}))},ve.prototype.onPointerDown=function(G){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||G.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(ge){return ge.ownsTarget(G.target)});Z!==void 0?(this.setCurrentMarker(Z),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(G.clientX,G.clientY),G.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:G.clientX,y:G.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(G.clientX,G.clientY))},ve.prototype.onDblClick=function(G){if(this._isFocused||this.focus(),this.mode==="select"){var Z=this.markers.find(function(ge){return ge.ownsTarget(G.target)});Z!==void 0&&Z!==this._currentMarker&&this.setCurrentMarker(Z),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(G.clientX,G.clientY),G.target):this.setCurrentMarker()}},ve.prototype.onPointerMove=function(G){this.touchPoints!==1&&G.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||G.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(G.clientX,G.clientY)):this.zoomLevel>1&&this.panTo({x:G.clientX,y:G.clientY}))},ve.prototype.onPointerUp=function(G){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(G.clientX,G.clientY)),this.isDragging=!1,this.addUndoStep()},ve.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ve.prototype.onKeyUp=function(G){this._currentMarker===void 0||this.notesArea!==void 0||G.key!=="Delete"&&G.key!=="Backspace"||this.deleteSelectedMarker()},ve.prototype.clientToLocalCoordinates=function(G,Z){var ge=this.markerImage.getBoundingClientRect();return{x:(G-ge.left)/this.zoomLevel,y:(Z-ge.top)/this.zoomLevel}},ve.prototype.onWindowResize=function(){this.positionUI()},ve.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var G=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=G+"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()},ve.prototype.addLicenseKey=function(G){me.addKey(G)},ve.prototype.addEventListener=function(G,Z){this.eventListeners.addEventListener(G,Z)},ve.prototype.removeEventListener=function(G,Z){this.eventListeners.removeEventListener(G,Z)},ve.prototype.renderState=function(G){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(G),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ve.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ve.prototype.focus=function(){var G=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 Lt(G))}))},ve.prototype.blur=function(){var G=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Z){return Z(new Lt(G))}))},ve.instanceCounter=0,ve}();/* **********************************
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 et=function(ve,G){return(et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Z,ge){Z.__proto__=ge}||function(Z,ge){for(var Se in ge)Object.prototype.hasOwnProperty.call(ge,Se)&&(Z[Se]=ge[Se])})(ve,G)};function Ot(ve,G){if(typeof G!="function"&&G!==null)throw new TypeError("Class extends value "+String(G)+" is not a constructor or null");function Z(){this.constructor=ve}et(ve,G),ve.prototype=G===null?Object.create(G):(Z.prototype=G.prototype,new Z)}function Et(ve,G,Z,ge){return new(Z||(Z=Promise))(function(Se,Ee){function ft(mn){try{Rt(ge.next(mn))}catch(Yt){Ee(Yt)}}function Kt(mn){try{Rt(ge.throw(mn))}catch(Yt){Ee(Yt)}}function Rt(mn){var Yt;mn.done?Se(mn.value):(Yt=mn.value,Yt instanceof Z?Yt:new Z(function(Jn){Jn(Yt)})).then(ft,Kt)}Rt((ge=ge.apply(ve,G||[])).next())})}function Ut(ve,G){var Z,ge,Se,Ee,ft={label:0,sent:function(){if(1&Se[0])throw Se[1];return Se[1]},trys:[],ops:[]};return Ee={next:Kt(0),throw:Kt(1),return:Kt(2)},typeof Symbol=="function"&&(Ee[Symbol.iterator]=function(){return this}),Ee;function Kt(Rt){return function(mn){return function(Yt){if(Z)throw new TypeError("Generator is already executing.");for(;ft;)try{if(Z=1,ge&&(Se=2&Yt[0]?ge.return:Yt[0]?ge.throw||((Se=ge.return)&&Se.call(ge),0):ge.next)&&!(Se=Se.call(ge,Yt[1])).done)return Se;switch(ge=0,Se&&(Yt=[2&Yt[0],Se.value]),Yt[0]){case 0:case 1:Se=Yt;break;case 4:return ft.label++,{value:Yt[1],done:!1};case 5:ft.label++,ge=Yt[1],Yt=[0];continue;case 7:Yt=ft.ops.pop(),ft.trys.pop();continue;default:if(!(Se=ft.trys,(Se=Se.length>0&&Se[Se.length-1])||Yt[0]!==6&&Yt[0]!==2)){ft=0;continue}if(Yt[0]===3&&(!Se||Yt[1]>Se[0]&&Yt[1]<Se[3])){ft.label=Yt[1];break}if(Yt[0]===6&&ft.label<Se[1]){ft.label=Se[1],Se=Yt;break}if(Se&&ft.label<Se[2]){ft.label=Se[2],ft.ops.push(Yt);break}Se[2]&&ft.ops.pop(),ft.trys.pop();continue}Yt=G.call(ve,ft)}catch(Jn){Yt=[6,Jn],ge=0}finally{Z=Se=0}if(5&Yt[0])throw Yt[1];return{value:Yt[0]?Yt[1]:void 0,done:!0}}([Rt,mn])}}}var Wt=function(){function ve(){}return ve.addKey=function(G){ve.key=G},Object.defineProperty(ve,"isLicensed",{get:function(){return!!ve.key&&new RegExp(/^CRPR-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ve.key)},enumerable:!1,configurable:!0}),ve}(),bt=function(){function ve(){}return ve.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ve.setAttributes=function(G,Z){for(var ge=0,Se=Z;ge<Se.length;ge++){var Ee=Se[ge],ft=Ee[0],Kt=Ee[1];G.setAttribute(ft,Kt)}},ve.createRect=function(G,Z,ge){var Se=document.createElementNS("http://www.w3.org/2000/svg","rect");return Se.setAttribute("width",G.toString()),Se.setAttribute("height",Z.toString()),ge&&ve.setAttributes(Se,ge),Se},ve.createLine=function(G,Z,ge,Se,Ee){var ft=document.createElementNS("http://www.w3.org/2000/svg","line");return ft.setAttribute("x1",G.toString()),ft.setAttribute("y1",Z.toString()),ft.setAttribute("x2",ge.toString()),ft.setAttribute("y2",Se.toString()),Ee&&ve.setAttributes(ft,Ee),ft},ve.createPolygon=function(G,Z){var ge=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ge.setAttribute("points",G),Z&&ve.setAttributes(ge,Z),ge},ve.createCircle=function(G,Z){var ge=document.createElementNS("http://www.w3.org/2000/svg","circle");return ge.setAttribute("cx",(G/2).toString()),ge.setAttribute("cy",(G/2).toString()),ge.setAttribute("r",G.toString()),Z&&ve.setAttributes(ge,Z),ge},ve.createEllipse=function(G,Z,ge){var Se=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Se.setAttribute("cx",(G/2).toString()),Se.setAttribute("cy",(Z/2).toString()),Se.setAttribute("rx",(G/2).toString()),Se.setAttribute("ry",(Z/2).toString()),ge&&ve.setAttributes(Se,ge),Se},ve.createGroup=function(G){var Z=document.createElementNS("http://www.w3.org/2000/svg","g");return G&&ve.setAttributes(Z,G),Z},ve.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ve.createMarker=function(G,Z,ge,Se,Ee,ft,Kt){var Rt=document.createElementNS("http://www.w3.org/2000/svg","marker");return ve.setAttributes(Rt,[["id",G],["orient",Z],["markerWidth",ge.toString()],["markerHeight",Se.toString()],["refX",Ee.toString()],["refY",ft.toString()]]),Rt.appendChild(Kt),Rt},ve.createText=function(G){var Z=document.createElementNS("http://www.w3.org/2000/svg","text");return Z.setAttribute("x","0"),Z.setAttribute("y","0"),G&&ve.setAttributes(Z,G),Z},ve.createTSpan=function(G,Z){var ge=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ge.textContent=G,Z&&ve.setAttributes(ge,Z),ge},ve.createImage=function(G){var Z=document.createElementNS("http://www.w3.org/2000/svg","image");return G&&ve.setAttributes(Z,G),Z},ve.createPoint=function(G,Z){var ge=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ge.x=G,ge.y=Z,ge},ve.createPath=function(G,Z){var ge=document.createElementNS("http://www.w3.org/2000/svg","path");return ge.setAttribute("d",G),Z&&ve.setAttributes(ge,Z),ge},ve.createElement=function(G,Z){var ge=document.createElementNS("http://www.w3.org/2000/svg",G);return Z&&ve.setAttributes(ge,Z),ge},ve.getHollowRectanglePath=function(G,Z,ge,Se,Ee,ft,Kt,Rt){return"M"+G+","+Z+"V"+(Z+Se)+"H"+(G+ge)+"V"+Z+"H"+Ee+"V"+ft+"H"+(Ee+Kt)+"V"+(ft+Rt)+"H"+Ee+"V"+Z+"Z"},ve}(),Gt=function(){function ve(G){this._classNamePrefixBase="__cropro_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+G+"_"}return Object.defineProperty(ve.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ve.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(ve.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_out"},enumerable:!1,configurable:!0}),ve.prototype.addClass=function(G){return this.styleSheet===void 0&&this.addStyleSheet(),G.name=""+this.classNamePrefix+G.localName,this.classes.push(G),this.styleSheet.sheet.insertRule("."+G.name+" {"+G.style+"}",this.styleSheet.sheet.cssRules.length),G},ve.prototype.addRule=function(G){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(G),this.styleSheet.sheet.insertRule(G.selector+" {"+G.style+"}",this.styleSheet.sheet.cssRules.length)},ve.prototype.addStyleSheet=function(){var G;this.styleSheet=document.createElement("style"),((G=this.styleSheetRoot)!==null&&G!==void 0?G:document.head).appendChild(this.styleSheet),this.addRule(new un("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new un("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new un("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new jn("_fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new jn("_fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},ve.prototype.removeStyleSheet=function(){var G;this.styleSheet&&(((G=this.styleSheetRoot)!==null&&G!==void 0?G:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ve}(),un=function(ve,G){this.selector=ve,this.style=G},jn=function(ve,G){this.localName=ve,this.style=G},Bn=function(){function ve(){this.blocks=[],this.display=""}return ve.prototype.addButtonBlock=function(G){G.className=this.blockClassName,G.buttonClassName=this.buttonClassName,G.buttonColorsClassName=this.buttonColorsClassName,G.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(G)},ve.prototype.addElementBlock=function(G){G.className===void 0&&(G.className=this.blockClassName),this.blocks.push(G)},ve.prototype.getUI=function(){var G=document.createElement("div");return G.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,G.style.display=this.display,this.blocks.forEach(function(Z){return G.appendChild(Z.getUI())}),G},ve}(),Nr=function(){function ve(){}return ve.prototype.getUI=function(){var G=document.createElement("div");if(G.className=this.className,this.minWidth!==void 0&&(G.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":G.style.justifyContent="flex-start";break;case"center":G.style.justifyContent="center";break;case"end":G.style.justifyContent="flex-end"}return G.style.whiteSpace="nowrap",G},ve}(),zr=function(ve){function G(){var Z=ve!==null&&ve.apply(this,arguments)||this;return Z.buttons=[],Z}return Ot(G,ve),G.prototype.addButton=function(Z){Z.className=this.buttonClassName,Z.colorsClassName=this.buttonColorsClassName,Z.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(Z)},G.prototype.getUI=function(){var Z=ve.prototype.getUI.call(this);return this.buttons.forEach(function(ge){return Z.appendChild(ge.getUI())}),Z},G}(Nr),_r=function(){function ve(G,Z){this._isActive=!1,this._isHidden=!1,this._icon=G,this.title=Z,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(ve.prototype,"icon",{get:function(){return this._icon},set:function(G){this._icon=G,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"isActive",{get:function(){return this._isActive},set:function(G){this._isActive=G,this.adjustClassName()},enumerable:!1,configurable:!0}),ve.prototype.getUI=function(){var G=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 G.onClick()}),this.uiContainer.appendChild(this.buttonContainer),this.uiContainer.style.display=this._isHidden?"none":"inline-block",this.uiContainer},ve.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,"")))},ve.prototype.hide=function(){this._isHidden=!0},ve}(),Rn=function(ve){function G(){var Z=ve!==null&&ve.apply(this,arguments)||this;return Z.elements=[],Z}return Ot(G,ve),G.prototype.addElement=function(Z){this.elements.push(Z)},G.prototype.getUI=function(){var Z=ve.prototype.getUI.call(this);return this.elements.forEach(function(ge){return Z.appendChild(ge)}),Z},G}(Nr),ea=function(){function ve(G,Z){this.horizontal=G,this.vertical=Z}return Object.defineProperty(ve.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),ve.prototype.getVerticalLength=function(G){return G/this.ratio},ve.prototype.getHorizontalLength=function(G){return G*this.ratio},ve}(),Aa=function(){function ve(){}return ve.getIcon=function(G,Z){if(G>0&&Z>0){var ge=new ea(G,Z),Se=ge.ratio>=1?20:ge.getHorizontalLength(20),Ee=ge.ratio<1?20:ge.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 Kt=bt.createDefs();ft.appendChild(Kt);var Rt=bt.createElement("clipPath",[["id","text-bg-clip"]]);Kt.appendChild(Rt);var mn=bt.createPath(bt.getHollowRectanglePath((24-Se)/2,(24-Ee)/2,Se,Ee,(24-Se)/2+2,(24-Ee)/2+2,Se-4,Ee-4));ft.appendChild(mn);var Yt=bt.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Yt.appendChild(bt.createTSpan(G+":"+Z)),ft.appendChild(Yt);var Jn=Yt.getBBox();bt.setAttributes(Yt,[["x",((24-Jn.width)/2).toString()],["y",((24-Jn.height)/2-Jn.y).toString()]]);var Hn=bt.createPath(bt.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(Jn.width))/2,(24-Math.ceil(Jn.height))/2,Math.ceil(Jn.width),Math.ceil(Jn.height)));return Rt.appendChild(Hn),bt.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>'},ve}(),pa=function(ve){function G(Z,ge,Se){var Ee=ve.call(this,Z,ge)||this;return Ee.isDropdownOpen=!1,Ee.onClick=Ee.dropdownButtonClicked,Ee.dropdownButtons=Se,Ee}return Ot(G,ve),G.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(ge){ge.className=Z.className,ge.colorsClassName=Z.colorsClassName,Z.dropdownBlock.appendChild(ge.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},G.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},G.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},G.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},G.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},G.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},G}(_r),Kr=function(){function ve(G,Z){this.GRIP_SIZE=10,this.color=G,this.fillColor=Z,this.visual=bt.createGroup(),this.visual.appendChild(bt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(bt.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ve.prototype.ownsTarget=function(G){return G===this.visual||G===this.visual.childNodes[0]||G===this.visual.childNodes[1]},ve.prototype.setCenter=function(G,Z){this.visual.childNodes.forEach(function(ge){return bt.setAttributes(ge,[["cx",G.toString()],["cy",Z.toString()]])})},ve}(),Ea=function(){function ve(G,Z,ge,Se){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=G,this.canvasHeight=Z,this.margin=ge,this.container=Se,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(ve.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(G){this._aspectRatio=G,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(G){this._isGridVisible=G,this.gridContainer&&bt.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(G){this._zoomFactor=G,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),ve.prototype.open=function(){var G=this;this.cropShadeElement=bt.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=bt.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var Z=0;Z<this.numberOfGridLines;Z++)this.horizontalGridLines.push(bt.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]])),this.verticalGridLines.push(bt.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]]));this.horizontalGridLines.forEach(function(ge){return G.gridContainer.appendChild(ge)}),this.verticalGridLines.forEach(function(ge){return G.gridContainer.appendChild(ge)}),this.cropRectElement=bt.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()},ve.prototype.setCropRectangle=function(G){this.cropRect=G;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),bt.setAttributes(this.cropRectElement,[["x",Z.x.toString()],["y",Z.y.toString()],["width",Z.width.toString()],["height",Z.height.toString()]]);var ge=Z.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(Ee,ft){var Kt=Z.y+ge*(ft+1);bt.setAttributes(Ee,[["x1",""+Z.x],["y1",""+Kt],["x2",""+(Z.x+Z.width)],["y2",""+Kt]])});var Se=Z.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(Ee,ft){var Kt=Z.x+Se*(ft+1);bt.setAttributes(Ee,[["x1",""+Kt],["y1",""+Z.y],["x2",""+Kt],["y2",""+(Z.y+Z.height)]])}),bt.setAttributes(this.cropShadeElement,[["d",bt.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},ve.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)},ve.prototype.clientToLocalCoordinates=function(G,Z){var ge=this.container.getBoundingClientRect();return{x:G-ge.left+this.margin,y:Z-ge.top+this.margin}},ve.prototype.onPointerDown=function(G){this.container.setPointerCapture(G.pointerId),this.previousPoint=this.clientToLocalCoordinates(G.clientX,G.clientY),this.cropRectElement===G.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(G.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(G.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(G.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(G.target)&&(this.activeGrip=this.bottomRightGrip)},ve.prototype.onPointerMove=function(G){if(this.isMoving)this.move(this.clientToLocalCoordinates(G.clientX,G.clientY));else if(this.activeGrip){var Z=this.clientToLocalCoordinates(G.clientX,G.clientY);this.resize(Z)}G.preventDefault()},ve.prototype.onPointerUp=function(G){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(G.pointerId)},ve.prototype.move=function(G){var Z=G.x-this.previousPoint.x,ge=G.y-this.previousPoint.y;this.zoomFactor!==1&&(Z=-Z/this.zoomFactor,ge=-ge/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+ge),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=G},ve.prototype.resize=function(G){var Z=Object.assign({},this.cropRect),ge=G.x-this.previousPoint.x,Se=G.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:Z.x+ge<this.margin&&(ge=this.margin-Z.x),Z.x+=ge,Z.width=this.cropRect.x+this.cropRect.width-Z.x;break;case this.bottomRightGrip:case this.topRightGrip:Z.width+ge>this.canvasWidth*this.zoomFactor&&(ge=this.canvasWidth*this.zoomFactor-Z.width),Z.width+=ge}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(ge),Z.height=this.aspectRatio.getVerticalLength(Z.width)):(Z.y+=Se,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+=Se}Z.width<10&&(Z.x=this.cropRect.x,Z.width=10),Z.height<10&&(Z.y=this.cropRect.y,Z.height=10),this.previousPoint=G,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))},ve.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var G=this.cropRect.x+this.cropRect.width/2,Z=this.cropRect.y+this.cropRect.height/2,ge=this.aspectRatio.getHorizontalLength(this.cropRect.height),Se=this.aspectRatio.getVerticalLength(this.cropRect.width);ge/this.canvasWidth<Se/this.canvasHeight?this.cropRect.width=ge:this.cropRect.height=Se,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=G-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)}},ve.prototype.getRescaledRect=function(G,Z,ge,Se,Ee,ft){var Kt=ge/G,Rt=Se/Z;return{x:(Ee.x-ft)*Kt+ft,y:(Ee.y-ft)*Rt+ft,width:Ee.width*Kt,height:Ee.height*Rt}},ve.prototype.scaleCanvas=function(G,Z){var ge=this.getRescaledRect(this.canvasWidth,this.canvasHeight,G,Z,this.cropRect,this.margin);this.canvasWidth=G,this.canvasHeight=Z,this.onCropChange&&this.onCropChange(ge),this.setCropRectangle(ge)},ve}(),Za=function(){function ve(G){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=G,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(ve.prototype,"angle",{get:function(){return this._angle},set:function(G){this._angle=G,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),ve.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},ve.prototype.onPointerDown=function(G){this.controlContainer.setPointerCapture(G.pointerId),this.isDragging=!0,this.previousPoint={x:G.clientX,y:G.clientY}},ve.prototype.onPointerMove=function(G){this.isDragging&&(this.onAngleChange&&this.onAngleChange((G.clientX-this.previousPoint.x)/5),this.previousPoint.x=G.clientX)},ve.prototype.onPointerUp=function(G){this.isDragging&&this.onAngleChange&&this.onAngleChange((G.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(G.pointerId)},ve.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var G=this.angleLabelText.getBBox();bt.setAttributes(this.angleLabelElement,[["x",((this.width-G.width)/2).toString()],["y",(this.height/2).toString()]])}},ve.prototype.positionScaleShape=function(){if(this.scaleShape){var G=this.scaleShape.transform.baseVal.getItem(0);G.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(G,0)}},ve.prototype.getVisual=function(){var G=document.createElementNS("http://www.w3.org/2000/svg","svg");G.setAttribute("xmlns","http://www.w3.org/2000/svg"),G.setAttribute("width",this.width+"px"),G.setAttribute("height",this.height+"px"),G.setAttribute("viewBox","0 0 "+this.width+" "+this.height),G.style.flexShrink="0",document.body.appendChild(G);for(var Z="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,ge=1;ge<=this.width/5+10;ge++){var Se=ge%5==0?this.height/3:this.height/6;Z+="h4v"+-Se+"h1v"+Se}Z+="v1H0Z",this.scaleShape=bt.createPath(Z);var Ee=bt.createTransform();this.scaleShape.transform.baseVal.appendItem(Ee),G.appendChild(this.scaleShape),this.angleLabelElement=bt.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=bt.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var ft=bt.createTSpan("");return ft.innerHTML="&deg;",this.angleLabelElement.appendChild(ft),G.appendChild(this.angleLabelElement),document.body.removeChild(G),G},ve}(),fi=function(){function ve(){this.naturalSize=!1,this.imageType="image/png"}return ve.prototype.rasterize=function(G,Z,ge,Se,Ee,ft,Kt){var Rt=this;return new Promise(function(mn){var Yt=document.createElement("canvas");Yt.width=G.width.baseVal.value-2*Se,Yt.height=G.height.baseVal.value-2*Se;var Jn=1,Hn=1;Rt.naturalSize===!0?(Jn=Z.naturalWidth/(G.width.baseVal.value-2*Se)/ft,Hn=Z.naturalHeight/(G.height.baseVal.value-2*Se)/Kt,Yt.width=Z.naturalWidth/ft,Yt.height=Z.naturalHeight/Kt):Rt.width!==void 0&&Rt.height!==void 0&&(Jn=Rt.width/ge.width,Hn=Rt.height/ge.height,Yt.width*=Jn,Yt.height*=Hn);var $n=Yt.getContext("2d");$n.translate(Yt.width/2,Yt.height/2),$n.rotate(Ee*Math.PI/180),$n.scale(ft,Kt),$n.translate(-Yt.width/2,-Yt.height/2),$n.drawImage(Z,0,0,Yt.width,Yt.height);var wr=document.createElement("canvas");wr.width=ge.width*Jn,wr.height=ge.height*Hn,wr.getContext("2d").putImageData($n.getImageData((ge.x-Se)*Jn,(ge.y-Se)*Hn,ge.width*Jn,ge.height*Hn),0,0),mn(wr.toDataURL(Rt.imageType,Rt.imageQuality))})},ve}(),Re=function(){function ve(G){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=ve.instanceCounter++,this.styles=new Gt(this.instanceNo),this.target=G,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(ve.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(G){this._zoomToCropEnabled=G,G?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(G){this._isGridVisible=G,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"gridLines",{get:function(){return this._gridLines},set:function(G){this._gridLines=G,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(G){this._rotationAngle=G,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"aspectRatio",{get:function(){var G;return(G=this._aspectRatio)!==null&&G!==void 0?G:this.aspectRatios[0]},set:function(G){this._aspectRatio=G},enumerable:!1,configurable:!0}),ve.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},ve.prototype.show=function(){this.showUI(),this.open()},ve.prototype.close=function(G){G===void 0&&(G=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),G||this.closeEventListeners.forEach(function(Z){return Z()}),this._isOpen=!1)},ve.prototype.addRenderEventListener=function(G){this.renderEventListeners.push(G)},ve.prototype.removeRenderEventListener=function(G){this.renderEventListeners.indexOf(G)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(G),1)},ve.prototype.addCloseEventListener=function(G){this.closeEventListeners.push(G)},ve.prototype.removeCloseEventListener=function(G){this.closeEventListeners.indexOf(G)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(G),1)},ve.prototype.setupResizeObserver=function(){var G=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){G.resize(G.target.clientWidth,G.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))},ve.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var G=1*this.target.clientWidth/this.target.clientHeight,Z=this.contentDiv.clientWidth/G>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*G:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,ge=Z+2*this.CANVAS_MARGIN<this.contentDiv.clientWidth?this.contentDiv.clientHeight-2*this.CANVAS_MARGIN:(this.contentDiv.clientWidth-2*this.CANVAS_MARGIN)/G;this.resize(Z,ge)}},ve.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ve.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",bt.setAttributes(this.editingTarget,[["width",""+this.imageWidth],["height",""+this.imageHeight]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px"},ve.prototype.resize=function(G,Z){this.imageWidth=Math.round(G),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()},ve.prototype.setEditingTarget=function(){var G=document.createElement("canvas");G.width=this.target.naturalWidth,G.height=this.target.naturalHeight,G.getContext("2d").drawImage(this.target,0,0,this.target.naturalWidth,this.target.naturalHeight);var Z=G.toDataURL();bt.setAttributes(this.editingTarget,[["href",Z]]),this.setEditingTargetSize()},ve.prototype.setTopLeft=function(){var G=this.target.getBoundingClientRect(),Z=this.editorCanvas.getBoundingClientRect();this.left=G.left-Z.left-this.CANVAS_MARGIN,this.top=G.top-Z.top-this.CANVAS_MARGIN},ve.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=bt.createDefs(),this.cropImage.appendChild(this.defs),this.editingTarget=bt.createImage([["href",""]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationContainer=bt.createGroup(),this.editingTargetRotationScaleContainer=bt.createGroup(),this.editingTargetRotationScaleContainer.appendChild(this.editingTarget),this.editingTargetRotationContainer.appendChild(this.editingTargetRotationScaleContainer);var G=bt.createTransform();this.editingTargetRotationContainer.transform.baseVal.appendItem(G);var Z=bt.createTransform();this.editingTargetRotationScaleContainer.transform.baseVal.appendItem(Z),this.editingTargetContainer=bt.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)},ve.prototype.positionCropImage=function(){this.cropImageHolder.style.top=this.top+"px",this.cropImageHolder.style.left=this.left+"px"},ve.prototype.initCropLayer=function(){this.cropRect={x:this.CANVAS_MARGIN,y:this.CANVAS_MARGIN,width:this.imageWidth,height:this.imageHeight},this.cropLayerContainer=bt.createGroup(),this.cropImage.appendChild(this.cropLayerContainer),this.cropLayer=new Ea(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()},ve.prototype.zoomToCrop=function(){if(this.cropRect){var G=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=G+"px "+Z+"px",this.editingTargetContainer.style.transform="translate("+(this.imageWidth/2-G+this.CANVAS_MARGIN)+"px,"+(this.imageHeight/2-Z+this.CANVAS_MARGIN)+"px) scale("+this.zoomFactor+")",this.cropLayer.zoomFactor=this.zoomFactor)}},ve.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)},ve.prototype.cropRectChanged=function(G){this.cropRect=G,this.zoomToCropEnabled?this.zoomToCrop():this.cropLayer.zoomFactor=1},ve.prototype.attachEvents=function(){window.addEventListener("resize",this.onWindowResize)},ve.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"},ve.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ve.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 G=this.styles.settings.hideTopToolbar?0:this.toolbarHeight,Z=this.target.offsetTop>G+this.CANVAS_MARGIN?this.target.offsetTop-(G+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},ve.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},ve.prototype.addTopToolbar=function(){var G=this;this.topToolbar=new Bn,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 zr;Z.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(Z);var ge=[];this.aspectRatios.forEach(function(Hn){var $n=new _r(Aa.getIcon(Hn.horizontal,Hn.vertical),Hn.horizontal===0&&Hn.vertical===0?"FREE":Hn.horizontal+":"+Hn.vertical);$n.onClick=function(){return G.ratioButtonClicked(Hn)},ge.push($n)}),this.aspectRatioButton=new pa(Aa.getIcon(0,0),"Aspect ratio",ge),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 Se=new _r('<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");Se.isActive=this.isGridVisible,Se.onClick=function(){G.isGridVisible=!G.isGridVisible,Se.isActive=G.isGridVisible},Z.addButton(Se);var Ee=new _r('<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(Ee.isActive=this.zoomToCropEnabled,Ee.onClick=function(){G.zoomToCropEnabled=!G.zoomToCropEnabled,Ee.isActive=G.zoomToCropEnabled},Z.addButton(Ee),!Wt.isLicensed){var ft=new Rn;this.topToolbar.addElementBlock(ft);var Kt=document.createElement("div");Kt.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var Rt=document.createElement("a");Rt.style.color="currentColor",Rt.href="https://markerjs.com/products/cropro",Rt.target="_blank",Rt.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>',Kt.appendChild(Rt),ft.addElement(Kt)}var mn=new zr;mn.minWidth=3*this.toolbarHeight+"px",mn.contentAlign="end",this.topToolbar.addButtonBlock(mn);var Yt=new _r('<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");Yt.onClick=this.startRenderAndClose,mn.addButton(Yt),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Yt.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var Jn=new _r('<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");Jn.onClick=this.close,mn.addButton(Jn),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(Jn.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},ve.prototype.addBottomToolbar=function(){var G=this;this.bottomToolbar=new Bn,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 zr;Z.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(Z);var ge=new _r('<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");ge.onClick=this.rotateLeftButtonClicked,Z.addButton(ge);var Se=new _r('<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");Se.onClick=this.rotateRightButtonClicked,Z.addButton(Se);var Ee=new Rn;Ee.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(Ee),this.straightener=new Za("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){G.rotateBy(mn),G.straightener.angle=G.rotationAngle},Ee.addElement(this.straightener.getUI());var ft=new zr;ft.minWidth=2*this.toolbarHeight+"px",ft.contentAlign="end",this.bottomToolbar.addButtonBlock(ft);var Kt=new _r('<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");Kt.onClick=this.flipHorizontallyButtonClicked,ft.addButton(Kt);var Rt=new _r('<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");Rt.onClick=this.flipVerticallyButtonClicked,ft.addButton(Rt)},ve.prototype.ratioButtonClicked=function(G){this.aspectRatio=G,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},ve.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Aa.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},ve.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new ea(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},ve.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ve.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},ve.prototype.restoreState=function(G){if(G){var Z=this.cropLayer.getRescaledRect(G.width,G.height,this.imageWidth,this.imageHeight,G.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(Z),this.cropRectChanged(Z),this.flippedHorizontally=G.flippedHorizontally,this.flippedVertically=G.flippedVertically,this.applyFlip(),this.rotationAngle=G.rotationAngle,this.applyRotation()}},ve.prototype.clientToLocalCoordinates=function(G,Z){var ge=this.cropImage.getBoundingClientRect();return{x:G-ge.left,y:Z-ge.top}},ve.prototype.onWindowResize=function(){this.positionUI()},ve.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var G=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=G+"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()},ve.prototype.rotateLeftButtonClicked=function(){var G=this.rotationAngle-90;this.rotationAngle%90!=0&&(G+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(G)},ve.prototype.rotateRightButtonClicked=function(){var G=this.rotationAngle+90;this.rotationAngle%90!=0&&(G-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(G)},ve.prototype.rotateTo=function(G){G=(G=G>180?G-360:G)<=-180?G+360:G,this.rotationAngle=G,this.applyRotation()},ve.prototype.rotateBy=function(G){this.rotateTo((this.rotationAngle+G)%360)},ve.prototype.applyRotation=function(){var G=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 ge=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/ge.width,this.imageHeight/ge.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=G},ve.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},ve.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},ve.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},ve.prototype.startRenderAndClose=function(){return Et(this,void 0,void 0,function(){var G,Z;return Ut(this,function(ge){switch(ge.label){case 0:return[4,this.render()];case 1:return G=ge.sent(),Z=this.getState(),this.renderEventListeners.forEach(function(Se){return Se(G,Z)}),this.close(!0),[2]}})})},ve.prototype.render=function(){return Et(this,void 0,void 0,function(){var G;return Ut(this,function(Z){switch(Z.label){case 0:return(G=new fi).naturalSize=this.renderAtNaturalSize,G.imageType=this.renderImageType,G.imageQuality=this.renderImageQuality,G.width=this.renderWidth,G.height=this.renderHeight,this.unzoomFromCrop(),bt.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,G.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,G.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()]}})})},ve.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new jn("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 jn("toolbar_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarBlockStyleClass=this.styles.addClass(new jn("toolbar-block",`
display: flex;
align-items: center;
box-sizing: content-box;
`));var G=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new jn("toolbar_button",`
display: inline-block;
width: `+(this.toolbarHeight-2*G)+`px;
height: `+(this.toolbarHeight-2*G)+`px;
padding: `+G+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new jn("toolbar_button_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new jn("toolbar_active_button",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
`)),this.styles.addRule(new un("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.toolbarHeight/2+`px;
`)),this.styles.addRule(new un("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new jn("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 jn("toolbar_dropdown_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new jn("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 jn("toolbar_straightener",`
display: flex;
overflow: hidden;
justify-content: center;
height: `+(this.toolbarHeight-2*G)+`px;
padding: `+G+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new jn("toolbar_straightener_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`))},ve.instanceCounter=0,ve}(),Qe=I("8hTe"),it=I.n(Qe),Tt=/<pre[^>]*>/g;function Vt(ve){var G=document.createElement("div");return G.innerHTML=ve,G.childNodes.length===0?"":G.childNodes[0].nodeValue}var rn=Ce.a=function(ve){var G=ve.value,Z=G===void 0?"":G,ge=ve.edit,Se=ge===void 0?!1:ge,Ee=ve.className,ft=ve.showTextOnly,Kt=ve.showLines,Rt=ve.replaces,mn=ve.zoomImg,Yt=ve.hasMask,Jn=ve.style,Hn=Jn===void 0?{}:Jn,$n=ve.stylesPrev,wr=$n===void 0?{}:$n,aa=String(Z),Br=Object(r.useRef)(),ta=Object(r.useRef)(),Sr=Object(r.useState)(""),ma=Object(b.a)(Sr,2),la=ma[0],ja=ma[1],Sa=Object(r.useState)("office"),Ua=Object(b.a)(Sa,2),ka=Ua[0],Ca=Ua[1],Jr=function(){var hr=new Re(ta.current);hr.displayMode="popup",hr.addRenderEventListener(function(){var Yr=Object(C.a)(l.a.mark(function na(La){var ia;return l.a.wrap(function(za){for(;;)switch(za.prev=za.next){case 0:return Br.current.style.display="none",za.next=3,Object(te.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:La}});case 3:ia=za.sent,ia!=null&&ia.id&&Rt(ta.current.getAttribute("src").replace(j.a.API_SERVER,""),"/api/attachments/".concat(ia==null?void 0:ia.id,"?type=").concat(ia.content_type));case 5:case"end":return za.stop()}},na)}));return function(na){return Yr.apply(this,arguments)}}()),hr.show()},Wa=function(){var hr=new Fe(ta.current);hr.settings.displayMode="popup",hr.addEventListener("render",function(){var Yr=Object(C.a)(l.a.mark(function na(La){var ia;return l.a.wrap(function(za){for(;;)switch(za.prev=za.next){case 0:if(Br.current.style.display="none",!ta.current){za.next=6;break}return za.next=4,Object(te.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:La.dataUrl}});case 4:ia=za.sent,ia!=null&&ia.id&&Rt(ta.current.getAttribute("src").replace(j.a.API_SERVER,""),"/api/attachments/".concat(ia==null?void 0:ia.id,"?type=").concat(ia.content_type));case 6:case"end":return za.stop()}},na)}));return function(na){return Yr.apply(this,arguments)}}()),hr.show(),window.markerArea=hr},Ma=Object(r.useMemo)(function(){try{var Xr=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,hr=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Yr=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;aa=aa.replace(Xr,"("+j.a.API_SERVER+"/api/attachments/").replace(hr,'"'+j.a.API_SERVER+"/api/attachments/").replace(Yr,'"'+j.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,`
`),aa=aa.replace(new RegExp("(?<!\\n)\\n(?!\\n)","g"),`
`)}catch(eo){}var na=Y(aa),La=D();if(aa.match(/\[TOC\]/)&&(na=na.replace("<p>[TOC]</p>",B()),v()),na=na.replace(/(__special_katext_id_\d+__)/g,function(eo,za){var Ga=La[za],Qi=Ga.type,wo=Ga.expression;return Object(Q.renderToString)(Vt(wo)||"",{displayMode:Qi==="block",throwOnError:!1,output:"html"})}),na=na.replace(/▁/g,"\u2581\u2581\u2581"),T(),ft){var ia=document.createElement("div");return ia.innerHTML=na,ia.innerText}return setTimeout(function(){return Ai()},500),na},[aa]),Ta=Object(r.useRef)();x.WebkitLineClamp=Kt,Kt&&(Hn=Object(E.a)(Object(E.a)({},Hn),x));function ui(Xr){var hr=Xr.target;if(hr.tagName.toUpperCase()==="IMG"){if(mn){var Yr=hr.getAttribute("src");ja(Yr),Ca("image")}}else if(hr.tagName.toUpperCase()==="A"){var na=hr.getAttribute("href");if(na.indexOf("office")>-1)Xr.preventDefault(),ja(na),Ca("office");else if(na.indexOf("application/pdf")>-1)Xr.preventDefault(),ja(na),Ca("pdf");else if(na.indexOf("type=text")>-1)Xr.preventDefault(),ja(na),Ca("html");else if(na.startsWith("#")){Xr.preventDefault();var La=document.getElementById(na.replace("#",""));La&&La.scrollIntoView(!0)}}}var Ai=function(){var hr,Yr=(hr=Ta.current)===null||hr===void 0?void 0:hr.querySelectorAll("video");Yr==null||Yr.forEach(function(na){if(na.oncontextmenu=function(){return!1},na.src.indexOf(".m3u8")>-1&&!na.canPlayType("application/vnd.apple.mpegurl")){if(z.a.isSupported()){var La=new z.a;La.loadSource(na.src),La.attachMedia(na)}}})};Object(r.useEffect)(function(){if(Ta.current&&Ma&&(Ma.match(Tt)&&window.PR.prettyPrint()),Ta.current)return Ta.current.addEventListener("click",ui),function(){Ta.current.removeEventListener("click",ui),T(),v()}},[Ma,Ta.current,ui]);var Ba=function(hr){if(!Se)return;hr.target.nodeName==="IMG"?(Br.current.style.display="flex",Br.current.style.width=hr.target.clientWidth+"px",Br.current.style.height=hr.target.clientHeight+"px",Br.current.style.top=hr.target.offsetTop+"px",Br.current.style.left=hr.target.offsetLeft+"px",ta.current.src=hr.target.getAttribute("src")):Br.current.style.display="none"};return n.a.createElement("div",{style:{position:"relative"}},n.a.createElement("div",{ref:Ta,style:Object(E.a)({},Hn),className:"".concat(Ee||""," markdown-body ").concat(it.a.mdBody),onMouseOver:Ba,dangerouslySetInnerHTML:{__html:Ma}}),n.a.createElement("div",{ref:Br,className:it.a.button},n.a.createElement(V.a,null,n.a.createElement(p.a,{onClick:function(){return Jr()}},"\u88C1\u526A"),n.a.createElement(p.a,{onClick:function(){return Wa()}},"\u7F16\u8F91"))),n.a.createElement("img",{ref:ta,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),n.a.createElement(X.a,{close:!0,data:la,hasMask:Yt,type:la!=null&&la.length?ka:"",style:Object(E.a)({},wr),onClose:function(){return ja("")}}))}},"9VGf":function(We,Ce,I){"use strict";I.d(Ce,"a",function(){return M});var ae=I("q1tI"),V=I.n(ae);function M(p,E){var C=Object(ae.useRef)();Object(ae.useEffect)(function(){C.current=p}),Object(ae.useEffect)(function(){function b(){C.current()}if(E!==null){var f=setInterval(b,E);return function(){return clearInterval(f)}}},[E])}},"9nDM":function(We,Ce,I){},"A/g1":function(We,Ce){We.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(We,Ce,I){We.exports=I.p+"static/Certificate.80413b23.png"},AZ8Y:function(We,Ce,I){"use strict";I.r(Ce);var ae=I("T2oS"),V=I("W9HT"),M=I("k1fw"),p=I("9og8"),E=I("tJVT"),C=I("PpiC"),b=I("Znn+"),f=I("ZTPi"),l=I("WmNS"),r=I.n(l),n=I("q1tI"),e=I.n(n),s=I("Ty5D"),u=I("9kvl"),a=I("oBTY"),A=I("pC0b"),d=I("GzdX"),i=I("+L6B"),h=I("2/Rp"),y=I("+BJd"),v=I("mr32"),x=I("qVdP"),S=I("jsC+"),B=I("lUTK"),w=I("BvKs"),m=I("5Dmo"),c=I("3S7+"),o=I("7Kak"),_=I("9yH6"),D=I("2qtc"),T=I("kLXV"),O=I("miYZ"),R=I("tsqr"),U=I("0NbB"),F=I("JTSX"),Y=I.n(F),k=I("xKgJ"),K=I("Mgx3"),z=I("ozfa"),j=I("MJZm"),Q=I("sRBo"),X=I("kaz8"),te=I("14J3"),oe=I("BMrR"),fe=I("jCWc"),le=I("kPKH"),we=I("OaEy"),Ae=I("2fM7"),be=I("wd/R"),me=I.n(be),he=I("kNP/"),ie=I.n(he),pe=I("1vsH"),ye=Ae.a.Option,de=function(Ye){var Je=Ye.pathsDetail,Te=Ye.globalSetting,Ve=Ye.loading,Be=Ye.dispatch,at=Object(C.a)(Ye,["pathsDetail","globalSetting","loading","dispatch"]),nt=Object(s.i)(),st=Object(n.useState)(),ot=Object(E.a)(st,2),ht=ot[0],Mt=ot[1],zt=Object(n.useState)([]),Dt=Object(E.a)(zt,2),en=Dt[0],ln=Dt[1],Sn=Object(n.useState)([]),Xt=Object(E.a)(Sn,2),$t=Xt[0],gn=Xt[1],On=Object(n.useState)([]),nn=Object(E.a)(On,2),yn=nn[0],Ln=nn[1],Gn=Object(n.useState)(),an=Object(E.a)(Gn,2),hn=an[0],fn=an[1],Cn=Object(n.useState)(),er=Object(E.a)(Cn,2),cn=er[0],Un=er[1],Dr=Object(n.useState)(!0),cr=Object(E.a)(Dr,2),Tr=cr[0],or=cr[1];Object(n.useEffect)(function(){Je.actionTabs.key==="PathsDetail-SendToClass"&&Qn()},[Je.actionTabs.key]);var kr=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 An=Object(p.a)(r.a.mark(function sn(){var Wn,Xn,xn;return r.a.wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:return Wr.next=2,Object(K.J)({id:nt.pathId});case 2:Wn=Wr.sent,Wn&&(ln((Wn==null?void 0:Wn.courses)||[]),xn=(Xn=Wn.stages)===null||Xn===void 0?void 0:Xn.map(function(Va,Da){var ra;return{title:Va.state_name||"",key:Da,children:(ra=Va.items)===null||ra===void 0?void 0:ra.map(function(gi,ai){var Qa;return Object(M.a)(Object(M.a)({},gi),{},{disabled:gi.is_jupyter,title:kr(gi),key:"".concat(Da,"-").concat(ai),children:(Qa=gi.children)===null||Qa===void 0?void 0:Qa.map(function(no,ro){return Object(M.a)(Object(M.a)({},no),{},{disabled:no.is_jupyter,title:kr(no),key:"".concat(Da,"-").concat(ai,"-").concat(ro)})})})})}}),gn(xn||[]));case 4:case"end":return Wr.stop()}},sn)}));return function(){return An.apply(this,arguments)}}(),Ur=function(sn,Wn){Ln(sn)},$r=function(sn){var Wn=sn.target.checked,Xn=[];$t==null||$t.map(function(xn,Ar){var Wr;Xn.push(Ar),xn==null||((Wr=xn.children)===null||Wr===void 0)||Wr.map(function(Va,Da){var ra;Xn.push("".concat(Ar,"-").concat(Da)),Va==null||((ra=Va.children)===null||ra===void 0)||ra.map(function(gi,ai){Xn.push("".concat(Ar,"-").concat(Da,"-").concat(ai))})})}),Ln(Wn?Xn:[])},Gr=function(){var sn=yn.filter(function(Wr){return typeof Wr=="string"}),Wn=[],Xn=[],xn=[],Ar=[];return $t==null||$t.map(function(Wr,Va){var Da;Wr==null||((Da=Wr.children)===null||Da===void 0)||Da.map(function(ra,gi){var ai;sn.includes("".concat(Va,"-").concat(gi))&&(xn.push(ra.stage_item_id),ra.item_type==="Shixun"?Wn.push(ra.id):ra.item_type==="Attachment"?Ar.push(ra.id):ra.item_type==="VideoItem"&&Xn.push(ra.id)),ra==null||((ai=ra.children)===null||ai===void 0)||ai.map(function(Qa,no){sn.includes("".concat(Va,"-").concat(gi,"-").concat(no))&&(xn.push(Qa.stage_item_id),Qa.item_type==="Shixun"?Wn.push(Qa.id):Qa.item_type==="Attachment"?Ar.push(Qa.id):Qa.item_type==="VideoItem"&&Xn.push(Qa.id))})})}),{shixunIds:Wn,videoItemIds:Xn,stageItemIds:xn,coursewareIds:Ar}},mr=function(){var An=Object(p.a)(r.a.mark(function sn(){var Wn,Xn,xn;return r.a.wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:if(Wn=Gr(),Xn=Wn.stageItemIds,console.log(Xn,"stageItemIds"),ht){Wr.next=5;break}return R.b.info("\u60A8\u8FD8\u672A\u9009\u62E9\u53D1\u9001\u7684\u8BFE\u5802"),Wr.abrupt("return");case 5:if(!(!Fn.length&&!nr.length&&!Kn.length)){Wr.next=8;break}return R.b.info("\u60A8\u8FD8\u672A\u9009\u62E9\u5B9E\u8BAD\u6216\u8005\u89C6\u9891"),Wr.abrupt("return");case 8:return Un(!0),Wr.next=11,Object(K.U)({id:nt.pathId,course_id:ht,stage_item_id:Xn,sync_catelog:Tr?1:0}).catch(function(Va){return Un(!1)});case 11:xn=Wr.sent,Un(!1),Tn(),(xn==null?void 0:xn.status)===1&&T.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},xn.message),onOk:function(){var Da,ra=xn==null||((Da=xn.url.split("/"))===null||Da===void 0)?void 0:Da[2];Object(pe.Q)("/classrooms/".concat(ra,"/shixun_homework"))}});case 15:case"end":return Wr.stop()}},sn)}));return function(){return An.apply(this,arguments)}}(),Tn=function(){Be({type:"pathsDetail/setActionTabs",payload:{}}),Mt(null),Ln([]),fn(null)},tr=Gr(),Mr=tr.shixunIds,Fn=Mr===void 0?[]:Mr,Zn=tr.videoItemIds,nr=Zn===void 0?[]:Zn,Yn=tr.coursewareIds,Kn=Yn===void 0?[]:Yn;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:cn,width:600,onOk:mr,onCancel:Tn},e.a.createElement("div",{className:ie.a.wrap},e.a.createElement("div",{className:"mb10"},e.a.createElement(Ae.a,{placeholder:"\u8BF7\u9009\u62E9\u60A8\u8981\u53D1\u9001\u7684\u8BFE\u5802",defaultOpen:!1,value:ht,style:{width:"100%"},onSelect:function(sn){return Mt(sn)},optionLabelProp:"lable"},en==null?void 0:en.map(function(An,sn){return e.a.createElement(ye,{key:An.course_id,value:An.course_id,lable:An.course_name},e.a.createElement(oe.a,{justify:"space-between"},e.a.createElement(le.a,null,An.course_name),e.a.createElement(le.a,null,me()(An.created_at).format("YYYY-MM-DD HH:mm"),"\xA0")))}))),e.a.createElement("div",{className:ie.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:ie.a.radioWrap},e.a.createElement("div",null,e.a.createElement(X.a,{value:hn,onChange:$r,className:"font14 ml20"},"\u5168\u9009")),!!($t!=null&&$t.length)&&e.a.createElement(j.a,{className:ie.a.tree,checkable:!0,defaultExpandAll:!0,treeData:$t,checkedKeys:yn,onCheck:function(sn,Wn){return Ur(sn,Wn)}})),e.a.createElement("div",{className:ie.a.createMkdir},e.a.createElement(X.a,{checked:Tr,onChange:function(sn){return or(sn.target.checked)},className:"font14"},"\u9009\u4E2D\u7AE0\u8282\u5728\u8BFE\u5802\u4E2D\u540C\u6B65\u751F\u6210\u76EE\u5F55"),!!(Fn.length+nr.length)&&e.a.createElement("span",null,e.a.createElement("span",null,"\u5DF2\u9009\u4E2D\uFF1A"),!!Fn.length&&e.a.createElement(e.a.Fragment,null,e.a.createElement("span",{className:"c-light-primary"},Fn.length," "),e.a.createElement("span",null,"\u4E2A\u5B9E\u8BAD")),!!nr.length&&e.a.createElement(e.a.Fragment,null,e.a.createElement("span",{className:"c-purple-8C1 ml5"},nr.length," "),e.a.createElement("span",null,"\u4E2A\u89C6\u9891")),!!Kn.length&&e.a.createElement(e.a.Fragment,null,e.a.createElement("span",{className:"c-cyan-blue ml5"},Kn.length," "),e.a.createElement("span",null,"\u4E2A\u8BFE\u4EF6"))))))},Me=Object(u.a)(function(Ge){var Ye=Ge.pathsDetail,Je=Ge.loading,Te=Ge.globalSetting;return{pathsDetail:Ye,globalSetting:Te,loading:Je.effects}})(de),ke=I("NLgs"),Ue=I("5NDa"),re=I("5rEg"),N=I("6UJt"),W=I("DFOY"),ce=I("y8nQ"),ne=I("Vl3Y"),ue=I("ErOA"),De=I("OC45"),ze=I.n(De),wt=function(Ye){var Je=Ye.type,Te=Ye.onCancel,Ve=Ye.onOk,Be=ne.a.useForm(),at=Object(E.a)(Be,1),nt=at[0],st=Object(n.useState)(!0),ot=Object(E.a)(st,2),ht=ot[0],Mt=ot[1],zt=Object(n.useState)(!1),Dt=Object(E.a)(zt,2),en=Dt[0],ln=Dt[1],Sn=Object(n.useState)([]),Xt=Object(E.a)(Sn,2),$t=Xt[0],gn=Xt[1];Object(n.useEffect)(function(){On()},[]);var On=function(){var yn=Object(p.a)(r.a.mark(function Ln(){var Gn;return r.a.wrap(function(hn){for(;;)switch(hn.prev=hn.next){case 0:if(!Je){hn.next=7;break}return ln(!0),hn.next=4,Object(ue.a)("/api/disciplines.json",{method:"get",params:{source:Je}});case 4:Gn=hn.sent,gn(Gn.disciplines||[]),ln(!1);case 7:case"end":return hn.stop()}},Ln)}));return function(){return yn.apply(this,arguments)}}(),nn=function(){var Ln=nt.getFieldsValue(),Gn=Ln.sub_discipline_id,an=Ln.discipline_name,hn=Ln.sub_discipline_name;if((!Gn||Gn&&Gn.length===0)&&(!an||!hn))return R.b.warn("\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B"),!1;Ve({user_customize:Gn&&Gn.length===0||!Gn,sub_discipline_id:Gn,discipline_name:an,sub_discipline_name:hn})};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:Te,onOk:nn},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(ne.a,{labelCol:{span:4},labelAlign:"right",form:nt},e.a.createElement(ne.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:$t,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:function(Ln,Gn){return nt.setFieldsValue({sub_discipline_id:Ln})}}),e.a.createElement("div",{className:ze.a.action,onClick:function(){return Mt(!ht)}},e.a.createElement("div",null,"\u81EA\u5B9A\u4E49\u65B9\u5411&\u8BFE\u7A0B"),e.a.createElement("div",null,e.a.createElement("span",null,ht?"\u5C55\u5F00":"\u6536\u8D77"),e.a.createElement("span",null,e.a.createElement("i",{className:"iconfont ".concat(ht?"icon-zhankai2":"icon-shouqi1")}))))),!ht&&e.a.createElement(e.a.Fragment,null,e.a.createElement(ne.a.Item,{label:"\u65B9\u5411",name:"discipline_name"},e.a.createElement(re.a,{placeholder:"\u8BF7\u8F93\u5165\u65B9\u5411",autoComplete:"off"})),e.a.createElement(ne.a.Item,{label:"\u8BFE\u7A0B",name:"sub_discipline_name"},e.a.createElement(re.a,{placeholder:"\u8BF7\u8F93\u5165\u8BFE\u7A0B",autoComplete:"off"})))),en&&e.a.createElement("div",{className:ze.a.spin},e.a.createElement(V.a,null))))},He=wt,Xe=I("9Bee"),gt=I("m3rI"),_t=I("OljG"),ct=I.n(_t),lt=I("MKdu"),rt=I.n(lt),Ze=I("m/50"),qe=I.n(Ze),Le=I("Nddv"),je=I.n(Le),Ne=I("vUf6"),$e=I.n(Ne),At=function(Ye){var Je,Te,Ve,Be,at,nt,st,ot,ht,Mt,zt,Dt,en,ln,Sn,Xt,$t,gn,On,nn,yn,Ln,Gn,an,hn,fn,Cn,er,cn,Un,Dr,cr,Tr,or,kr,Qn,Ur,$r,Gr,mr,Tn,tr,Mr,Fn,Zn,nr,Yn,Kn,An,sn,Wn,Xn,xn,Ar,Wr,Va,Da,ra,gi,ai,Qa,no,ro,Ri,Lo,Po,ao,Li,Ni,So,co,ho,Ki,Pi,Vi,Wi,vo,ji,go,Xa,io,Uo,zi,Ti,fo,es,ts,Yo,Xi,ns,yi,Pa,ci,Na,Yi,yo,Ui,Jo,ko,Zo,Bi,Dn,Ji,vs,rs,da,Lr,di,_a,To,Zi,bo,oo,dn=Ye.pathsDetail,Fo=Ye.user,Ss=Ye.globalSetting,gs=Ye.loading,ei=Ye.dispatch,_n=Object(C.a)(Ye,["pathsDetail","user","globalSetting","loading","dispatch"]),kt=Object(s.i)(),Zt=Object(n.useState)({}),bn=Object(E.a)(Zt,2),Jt=bn[0],qn=bn[1],ir=Object(n.useRef)(1),dr=Object(n.useState)(),Zr=Object(E.a)(dr,2),pn=Zr[0],ii=Zr[1],ki=Object(n.useState)(!1),Ra=Object(E.a)(ki,2),ha=Ra[0],Oi=Ra[1],qi=Object(n.useState)(!1),ti=Object(E.a)(qi,2),Ya=ti[0],pi=ti[1],No=Object(n.useState)({status:!1}),jo=Object(E.a)(No,2),Ho=jo[0],Qo=jo[1],Ts=((Je=dn.detail)===null||Je===void 0?void 0:Je.is_free)||((Te=dn.detail)===null||Te===void 0?void 0:Te.can_learning);Object(n.useEffect)(function(){Qo({status:!1})},[]),Object(n.useEffect)(function(){function Vr(){return vr.apply(this,arguments)}function vr(){return vr=Object(p.a)(r.a.mark(function ua(){var Or,Mn,Pn,En,rr,wn,Rr;return r.a.wrap(function(jr){for(;;)switch(jr.prev=jr.next){case 0:return jr.next=2,ei({type:"pathsDetail/getPathsDetail",payload:{id:kt.pathId}});case 2:Or=jr.sent,Or!=null&&Or.toast&&(Or!=null&&(Mn=Or.toast)!==null&&Mn!==void 0&&Mn.is_open&&((Pn=Or.toast)===null||Pn===void 0?void 0:Pn.open_num)===-1?pi(!0):Or!=null&&(En=Or.toast)!==null&&En!==void 0&&En.is_open&&(Or==null||((rr=Or.toast)===null||rr===void 0)?void 0:rr.open_num)===1?(Rr=JSON.parse(localStorage.getItem("pathsshow"))||[],((wn=Rr.filter(function(Ia){return Ia===(kt==null?void 0:kt.pathId)}))===null||wn===void 0?void 0:wn.length)>0?pi(!1):(pi(!0),Rr.push(kt==null?void 0:kt.pathId),localStorage.setItem("pathsshow",JSON.stringify(Rr)))):pi(!1));case 4:case"end":return jr.stop()}},ua)})),vr.apply(this,arguments)}Vr()},[]),Object(n.useEffect)(function(){var Vr,vr,ua,Or,Mn=(Vr=dn.detail)===null||Vr===void 0||((vr=Vr.courses)===null||vr===void 0)?void 0:vr.length;if(!Mn)return;var Pn;if((ua=dn.detail)!==null&&ua!==void 0&&ua.has_start){var En,rr,wn=(En=dn.detail)===null||En===void 0||((rr=En.courses)===null||rr===void 0)?void 0:rr.findIndex(function(mi){var Ei;return((Ei=mi.course_status)===null||Ei===void 0?void 0:Ei.status)===1});Pn=wn>-1?wn:0}else{var Rr,Er,jr,Ia,Ja,bi=(Rr=dn.detail)===null||Rr===void 0||((Er=Rr.courses)===null||Er===void 0||((jr=Er.map(function(mi){var Ei;return(Ei=mi.course_status)===null||Ei===void 0?void 0:Ei.status}))===null||jr===void 0))?void 0:jr.lastIndexOf(2);Pn=bi>-1?bi:0,bi=(Ia=dn.detail)===null||Ia===void 0||((Ja=Ia.courses)===null||Ja===void 0)?void 0:Ja.findIndex(function(mi){var Ei;return((Ei=mi.course_status)===null||Ei===void 0?void 0:Ei.status)===0}),Pn=bi>-1?bi:Pn}qn(((Or=dn.detail)===null||Or===void 0?void 0:Or.courses[Pn])||{})},[dn.detail]);var hl=function(vr){var ua,Or,Mn=(ua=dn.detail)===null||ua===void 0||((Or=ua.courses)===null||Or===void 0)?void 0:Or.find(function(Pn){return Pn.course_id===vr});qn(Mn||{}),ei({type:"classroomList/setActionTabs",payload:{key:"\u4FEE\u6539\u5F00\u8BFE\u65F6\u95F4",name:vr}})},fl=function(){var Vr=Object(p.a)(r.a.mark(function vr(){var ua;return r.a.wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:return Mn.next=2,Object(K.k)({container_id:kt.pathId,container_type:"Subject"});case 2:ua=Mn.sent,ua.status===0&&(ds(),R.b.success(ua.message));case 4:case"end":return Mn.stop()}},vr)}));return function(){return Vr.apply(this,arguments)}}(),Qs=function(){var Vr=Object(p.a)(r.a.mark(function vr(){var ua;return r.a.wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:return Mn.next=2,Object(K.o)({container_id:kt.pathId,container_type:"Subject"});case 2:ua=Mn.sent,ua.status===0&&(ds(),R.b.success(ua.message));case 4:case"end":return Mn.stop()}},vr)}));return function(){return Vr.apply(this,arguments)}}(),sr=function(){var Vr=Object(p.a)(r.a.mark(function vr(){var ua;return r.a.wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:T.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u8BA4\u5220\u9664",okButtonProps:{danger:!0},cancelText:"\u53D6\u6D88",content:e.a.createElement("div",null,"\u786E\u8BA4\u5C06\u300A",(ua=dn.detail)===null||ua===void 0?void 0:ua.name,"\u300B\u5B9E\u8DF5\u8BFE\u7A0B\u52A0\u5165\u8BFE\u7A0B\u56DE\u6536\u7AD9\u5417?"),onOk:function(){var Pn=Object(p.a)(r.a.mark(function rr(){var wn;return r.a.wrap(function(Er){for(;;)switch(Er.prev=Er.next){case 0:return Er.next=2,Object(K.r)({id:kt.pathId});case 2:wn=Er.sent,wn.status===1&&u.d.push("/paths");case 4:case"end":return Er.stop()}},rr)}));function En(){return Pn.apply(this,arguments)}return En}()});case 1:case"end":return Mn.stop()}},vr)}));return function(){return Vr.apply(this,arguments)}}(),ys=function(){var Vr=Object(p.a)(r.a.mark(function vr(){return r.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 Mn=Object(p.a)(r.a.mark(function En(){var rr;return r.a.wrap(function(Rr){for(;;)switch(Rr.prev=Rr.next){case 0:return Rr.next=2,Object(K.h)({id:kt.pathId});case 2:rr=Rr.sent,(rr==null?void 0:rr.status)===0&&(ds(),R.b.success(rr.message));case 4:case"end":return Rr.stop()}},En)}));function Pn(){return Mn.apply(this,arguments)}return Pn}()});case 1:case"end":return Or.stop()}},vr)}));return function(){return Vr.apply(this,arguments)}}(),Ks=function(){var Vr=Object(p.a)(r.a.mark(function vr(){return r.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:ha},onOk:function(){var Mn=Object(p.a)(r.a.mark(function En(){var rr;return r.a.wrap(function(Rr){for(;;)switch(Rr.prev=Rr.next){case 0:return Oi(!0),Rr.next=3,Object(K.n)({id:kt.pathId});case 3:rr=Rr.sent,(rr==null?void 0:rr.status)===1&&(ds(),R.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F")),Oi(!1);case 6:case"end":return Rr.stop()}},En)}));function Pn(){return Mn.apply(this,arguments)}return Pn}()});case 1:case"end":return Or.stop()}},vr)}));return function(){return Vr.apply(this,arguments)}}(),Bs=function(){dn.detail&&dn.detail.has_sub_discipline?bs({user_customize:!1}):Ao(!0)},Ao=function(vr){Qo({status:vr})},bs=function(vr){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 ua=Object(p.a)(r.a.mark(function Mn(){var Pn,En;return r.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:return Pn={user_customize:vr.user_customize},vr.user_customize?Pn=Object(M.a)(Object(M.a)({},Pn),{},{discipline_name:vr.discipline_name,sub_discipline_name:vr.sub_discipline_name}):vr.sub_discipline_id&&(Pn=Object(M.a)(Object(M.a)({},Pn),{},{sub_discipline_id:vr.sub_discipline_id})),wn.next=4,Object(K.g)(Object(M.a)({id:kt.pathId},Pn));case 4:En=wn.sent,((En==null?void 0:En.status)===0||(En==null?void 0:En.status)===1)&&(ds(),R.b.success("\u516C\u5F00\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u7BA1\u7406\u5458\u7684\u5BA1\u6838"));case 6:case"end":return wn.stop()}},Mn)}));function Or(){return ua.apply(this,arguments)}return Or}()})},Ws=function(){var Vr=Object(p.a)(r.a.mark(function vr(){return r.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 Mn=Object(p.a)(r.a.mark(function En(){var rr;return r.a.wrap(function(Rr){for(;;)switch(Rr.prev=Rr.next){case 0:return Rr.next=2,Object(K.m)({id:kt.pathId});case 2:rr=Rr.sent,(rr==null?void 0:rr.status)===0&&(ds(),R.b.success("\u64A4\u9500\u7533\u8BF7\u516C\u5F00\u6210\u529F"));case 4:case"end":return Rr.stop()}},En)}));function Pn(){return Mn.apply(this,arguments)}return Pn}()});case 1:case"end":return Or.stop()}},vr)}));return function(){return Vr.apply(this,arguments)}}(),Ms=function(){var Vr=Object(p.a)(r.a.mark(function vr(){return r.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(_.a.Group,{defaultValue:1,onChange:function(Pn){return ir.current=Pn.target.value}},e.a.createElement(_.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(_.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 Mn=Object(p.a)(r.a.mark(function En(){return r.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:Object(pe.Q)("/classrooms/news/".concat(kt.pathId,"/newgold/").concat(ir.current));case 1:case"end":return wn.stop()}},En)}));function Pn(){return Mn.apply(this,arguments)}return Pn}()});case 1:case"end":return Or.stop()}},vr)}));return function(){return Vr.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 vr=Object(p.a)(r.a.mark(function Or(){var Mn;return r.a.wrap(function(En){for(;;)switch(En.prev=En.next){case 0:return En.next=2,Object(K.i)({id:kt.pathId});case 2:Mn=En.sent,Mn.status===0&&(ii(!0),R.b.success(Mn.message));case 4:case"end":return En.stop()}},Or)}));function ua(){return vr.apply(this,arguments)}return ua}()})},Hi=function(){if(!Object(ke.e)(ei))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 vr=Object(p.a)(r.a.mark(function Or(){var Mn,Pn;return r.a.wrap(function(rr){for(;;)switch(rr.prev=rr.next){case 0:return rr.next=2,Object(K.P)({id:Jt==null?void 0:Jt.course_id});case 2:Mn=rr.sent,Mn.status===0&&(R.b.success(Mn.message),ei({type:"pathsDetail/getPathsDetail",payload:{id:kt.pathId}}),((Pn=Jt.course_status)===null||Pn===void 0?void 0:Pn.status)===1&&Object(pe.Q)("/classrooms/".concat(Jt==null?void 0:Jt.course_id,"/shixun_homework")));case 4:case"end":return rr.stop()}},Or)}));function ua(){return vr.apply(this,arguments)}return ua}()})},zs=function(){var vr;if((vr=dn.detail)!==null&&vr!==void 0&&vr.need_authorize){Object(ke.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(ke.e)(ei))return;ei({type:"pathsDetail/setActionTabs",payload:{key:"PathsDetail-SendToClass"}})},ds=function(){ei({type:"pathsDetail/getPathsDetail",payload:{id:kt.pathId}}),ei({type:"pathsDetail/getRightData",payload:{id:kt.pathId}})},Ko=!!((Ve=dn.detail)!==null&&Ve!==void 0&&Ve.participant_count)&&!((Be=dn.detail)!==null&&Be!==void 0&&Be.allow_statistics),Ls=((at=dn.detail)===null||at===void 0||((nt=at.courses)===null||nt===void 0)?void 0:nt.findIndex(function(Vr){return(Vr==null?void 0:Vr.course_id)===(Jt==null?void 0:Jt.course_id)}))+1,Wo=Ls===((st=dn.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:Y.a.banner,style:{backgroundImage:dn!=null&&(ht=dn.detail)!==null&&ht!==void 0&&(Mt=ht.attachments)!==null&&Mt!==void 0&&(zt=Mt[0])!==null&&zt!==void 0&&zt.url?"url(".concat(gt.a.API_SERVER+(dn==null||((Dt=dn.detail)===null||Dt===void 0||((en=Dt.attachments)===null||en===void 0||((ln=en[0])===null||ln===void 0)))?void 0:ln.url),")"):"url(".concat(ct.a,")"),marginBottom:(Sn=dn.detail)!==null&&Sn!==void 0&&(Xt=Sn.courses)!==null&&Xt!==void 0&&Xt.length?70:20}},e.a.createElement("aside",{className:Y.a.wrp},e.a.createElement("div",{className:Y.a.operationWrap},!!(($t=dn.detail)!==null&&$t!==void 0&&$t.is_free)&&((gn=dn.detail)===null||gn===void 0?void 0:gn.publish_status)!==0&&(((On=dn.detail)===null||On===void 0?void 0:On.allow_add_member)||!Object(k.m)())&&e.a.createElement(c.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")),((nn=dn.detail)===null||nn===void 0?void 0:nn.allow_statistics)&&((yn=dn.detail)===null||yn===void 0?void 0:yn.public_status)===2&&e.a.createElement("span",{onClick:function(){return u.d.push("/paths/".concat(kt.pathId,"/statistics"))},style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"26px"}},e.a.createElement("img",{src:$e.a,style:{marginRight:"10px"}}),"\u5B66\u4E60\u7EDF\u8BA1"),((Ln=dn.detail)===null||Ln===void 0?void 0:Ln.allow_add_member)&&e.a.createElement(S.a,{overlay:e.a.createElement(w.a,null,((Gn=dn.detail)===null||Gn===void 0?void 0:Gn.courses)&&(((an=dn.detail)===null||an===void 0?void 0:an.is_creator)&&!!((hn=Fo.userInfo)!==null&&hn!==void 0&&hn.professional_certification)||Object(k.o)())&&e.a.createElement(w.a.Item,{style:{textAlign:"center"},onClick:Ms},"\u5F00\u8BFE"),e.a.createElement(w.a.Item,{style:{textAlign:"center"},onClick:Object(p.a)(r.a.mark(function Vr(){var vr,ua;return r.a.wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:return Mn.next=2,Object(K.y)(kt.pathId);case 2:vr=Mn.sent,vr.status===0&&u.d.push("/paths/".concat(vr==null||((ua=vr.data)===null||ua===void 0)?void 0:ua.subject_identifier));case 4:case"end":return Mn.stop()}},Vr)}))},"\u590D\u5236\u8BFE\u7A0B"),((fn=dn.detail)===null||fn===void 0?void 0:fn.allow_statistics)&&e.a.createElement(w.a.Item,{style:{textAlign:"center"},onClick:function(){return u.d.push("/paths/".concat(kt.pathId,"/edit"))}},"\u7F16\u8F91\u8BFE\u7A0B"),((Cn=dn.detail)===null||Cn===void 0?void 0:Cn.allow_add_member)&&((er=dn.detail)===null||er===void 0?void 0:er.publish_status)===0&&e.a.createElement(w.a.Item,{style:{textAlign:"center"},onClick:ys},"\u53D1\u5E03\u8BFE\u7A0B"),((cn=dn.detail)===null||cn===void 0?void 0:cn.allow_statistics)&&((Un=dn.detail)===null||Un===void 0?void 0:Un.publish_status)===2&&((Dr=dn.detail)===null||Dr===void 0?void 0:Dr.public_status)===0&&e.a.createElement(w.a.Item,{style:{textAlign:"center"},onClick:Ks},"\u64A4\u9500\u53D1\u5E03"),((cr=dn.detail)===null||cr===void 0?void 0:cr.allow_statistics)&&((Tr=dn.detail)===null||Tr===void 0?void 0:Tr.publish_status)===2&&((or=dn.detail)===null||or===void 0?void 0:or.public_status)===0&&e.a.createElement(w.a.Item,{style:{textAlign:"center"},onClick:Bs},"\u516C\u5F00\u8BFE\u7A0B"),((kr=dn.detail)===null||kr===void 0?void 0:kr.allow_statistics)&&((Qn=dn.detail)===null||Qn===void 0?void 0:Qn.public_status)===1&&e.a.createElement(w.a.Item,{style:{textAlign:"center"},onClick:Ws},"\u64A4\u9500\u7533\u8BF7\u516C\u5F00"),Object(k.c)()&&((Ur=dn.detail)===null||Ur===void 0?void 0:Ur.allow_statistics)&&(($r=dn.detail)===null||$r===void 0?void 0:$r.public_status)===2&&e.a.createElement(w.a.Item,{style:{textAlign:"center"},onClick:Ws},"\u64A4\u9500\u516C\u5F00"),((Gr=dn.detail)===null||Gr===void 0?void 0:Gr.allow_delete)&&e.a.createElement(w.a.Item,{style:{textAlign:"center"},onClick:sr},"\u5220\u9664\u8BFE\u7A0B"))},e.a.createElement("span",{style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"26px"}},e.a.createElement("img",{src:je.a,style:{marginRight:"10px"}}),"\u8BBE\u7F6E"))),e.a.createElement("p",{className:[Y.a.titleWrap,((mr=dn.detail)===null||mr===void 0||((Tn=mr.name)===null||Tn===void 0)?void 0:Tn.indexOf(`
`))&&Y.a.titleFlexEnd].join(" ")},e.a.createElement("span",{className:Y.a.title},e.a.createElement("strong",null,(tr=dn.detail)===null||tr===void 0||((Mr=tr.name)===null||Mr===void 0)?void 0:Mr.split(`
`)[0]),e.a.createElement("span",{className:"font24"},e.a.createElement("br",null),(Fn=dn.detail)===null||Fn===void 0||((Zn=Fn.name)===null||Zn===void 0)?void 0:Zn.split(`
`).filter(function(Vr,vr){return vr!==0}).join(""))),e.a.createElement("div",null,((nr=dn.detail)===null||nr===void 0?void 0:nr.excellent)&&e.a.createElement(v.a,{className:"".concat(Y.a.openCourseTag," font14"),style:{background:"#44D7B6",border:"1px solid #44D7B6"}},"\u5F00\u653E\u8BFE\u7A0B"),((Yn=dn.detail)===null||Yn===void 0?void 0:Yn.featured)>0&&e.a.createElement("div",null,((Kn=dn.detail)===null||Kn===void 0?void 0:Kn.featured)===1&&e.a.createElement(v.a,{className:"".concat(Y.a.openCourseTag," font14"),style:{background:"#FF8C29",border:"1px solid #FF8C29"}},"\u56FD\u5BB6\u4E00\u6D41"),((An=dn.detail)===null||An===void 0?void 0:An.featured)===2&&e.a.createElement(v.a,{className:"".concat(Y.a.openCourseTag," font14"),style:{background:"#4361F2",border:"1px solid #4361F2"}},"\u519B\u961F\u4E00\u6D41"),((sn=dn.detail)===null||sn===void 0?void 0:sn.featured)===3&&e.a.createElement(v.a,{className:"".concat(Y.a.openCourseTag," font14"),style:{background:"#B38D24",border:"1px solid #B38D24"}},"\u7701\u7EA7\u4E00\u6D41")),((Wn=Fo.userInfo)===null||Wn===void 0?void 0:Wn.login)&&((Xn=dn.detail)===null||Xn===void 0?void 0:Xn.is_collect)&&e.a.createElement(h.a,{className:"".concat(Y.a.button," ").concat(Y.a.buttonTransparent," mr15"),onClick:fl},"\u53D6\u6D88\u6536\u85CF"),((xn=Fo.userInfo)===null||xn===void 0?void 0:xn.login)&&!((Ar=dn.detail)!==null&&Ar!==void 0&&Ar.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:qe.a,style:{marginRight:"10px"}}),e.a.createElement("span",{style:{height:"24px"}},"\u6536\u85CF")),!Object(k.p)()&&e.a.createElement("span",{style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"20px",display:"flex"},className:"mr15",onClick:function(){if(!Object(ke.e)(ei))return}},e.a.createElement("img",{src:qe.a,style:{marginRight:"10px"}}),e.a.createElement("span",{style:{height:"24px"}},"\u6536\u85CF")))),e.a.createElement("div",{className:Y.a.contentWrap},e.a.createElement("div",{className:Y.a.contentLeftWrap},!!((Wr=dn.detail)!==null&&Wr!==void 0&&Wr.stages_count)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,"\u7AE0\u8282"),e.a.createElement("p",{className:"mt3"},(Va=dn.detail)===null||Va===void 0?void 0:Va.stages_count)),!!((Da=dn.detail)!==null&&Da!==void 0&&Da.shixuns_count)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,"\u5355\u5143"),e.a.createElement("p",{className:"mt3"},(ra=dn.detail)===null||ra===void 0?void 0:ra.shixuns_count)),!!((gi=dn.detail)!==null&&gi!==void 0&&gi.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"},(ai=dn.detail)===null||ai===void 0?void 0:ai.challenge_choose_count)),!!((Qa=dn.detail)!==null&&Qa!==void 0&&Qa.challenges_count)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,"\u5B9E\u8DF5\u5173\u5361"),e.a.createElement("p",{className:"mt3"},(no=dn.detail)===null||no===void 0?void 0:no.challenges_count)),!!((ro=dn.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"},(Ri=dn.detail)===null||Ri===void 0?void 0:Ri.videos_count)),!!((Lo=dn.detail)!==null&&Lo!==void 0&&Lo.attachment_count)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,"\u8BFE\u4EF6"),e.a.createElement("p",{className:"mt3"},(Po=dn.detail)===null||Po===void 0?void 0:Po.attachment_count)),((ao=dn.detail)===null||ao===void 0?void 0:ao.publish_status)!==0&&!!((Li=dn.detail)!==null&&Li!==void 0&&Li.subject_score)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,"\u7ECF\u9A8C\u503C"),e.a.createElement("p",{className:"mt3"},(Ni=dn.detail)===null||Ni===void 0?void 0:Ni.subject_score)),((So=dn.detail)===null||So===void 0?void 0:So.publish_status)!==0&&!!((co=dn.detail)!==null&&co!==void 0&&co.member_count)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,(ho=dn.detail)!==null&&ho!==void 0&&ho.excellent?"\u53C2\u4E0E\u4EBA\u6570":"\u5B66\u4E60\u4EBA\u6570"),e.a.createElement("p",{className:"mt3"},(Ki=dn.detail)===null||Ki===void 0?void 0:Ki.member_count)),((Pi=dn.detail)===null||Pi===void 0?void 0:Pi.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(d.a,{allowHalf:!0,value:Object(pe.B)((Vi=dn.detail)===null||Vi===void 0?void 0:Vi.averge_star),disabled:!0,className:Y.a.rating})))),!!((Wi=dn.detail)!==null&&Wi!==void 0&&(vo=Wi.courses)!==null&&vo!==void 0&&vo.length)&&e.a.createElement("aside",{className:Y.a.nav},e.a.createElement("div",{className:Y.a.navLeft},Jt.course_identity<4&&e.a.createElement(c.a,{placement:"bottom",title:"\u7F16\u8F91\u8BFE\u5802"},e.a.createElement("a",{href:"/classrooms/".concat(Jt==null?void 0:Jt.course_id,"/newgolds/settings"),target:"_blank"},e.a.createElement("i",{className:"iconfont icon-bianji1 ".concat(Y.a.navLeftIcon)}))),e.a.createElement(S.a,{overlay:e.a.createElement(w.a,null,(ji=Object(a.a)((Xa=dn.detail)===null||Xa===void 0?void 0:Xa.courses))===null||ji===void 0||((go=ji.reverse())===null||go===void 0)?void 0:go.map(function(Vr,vr){var ua,Or;return e.a.createElement(w.a.Item,{key:Vr.course_id,onClick:function(){return hl(Vr.course_id)}},e.a.createElement("span",{className:"font14"},"\u7B2C",((ua=dn.detail)===null||ua===void 0||((Or=ua.courses)===null||Or===void 0)?void 0:Or.length)-vr,"\u671F"))}))},e.a.createElement("div",null,e.a.createElement("span",{className:"font14 current"},"\u7B2C",e.a.createElement("span",{className:Y.a.colorOrange},Ls),"\u671F"),e.a.createElement(U.a,null))),e.a.createElement("div",{className:Y.a.navContent},e.a.createElement("div",{className:Y.a.contentItem},e.a.createElement("div",{className:Y.a.contentItemTitle},"\u5F00\u8BFE\u65F6\u95F4\uFF1A"),e.a.createElement("div",{className:Y.a.contentItemText},Jt==null?void 0:Jt.start_date)),e.a.createElement("div",{className:Y.a.verticalLine}),e.a.createElement("div",{className:Y.a.contentItem},e.a.createElement("div",{className:Y.a.contentItemTitle},"\u7ED3\u8BFE\u65F6\u95F4\uFF1A"),e.a.createElement("div",{className:Y.a.contentItemText},Jt==null?void 0:Jt.end_date)),e.a.createElement("div",{className:Y.a.verticalLine}),e.a.createElement("div",{className:Y.a.contentItem},e.a.createElement("div",{className:Y.a.contentItemTitle},(io=dn.detail)!==null&&io!==void 0&&io.excellent?"\u53C2\u4E0E\u4EBA\u6570\uFF1A":"\u62A5\u540D\u4EBA\u6570\uFF1A"),e.a.createElement("div",{className:Y.a.contentItemText},Jt==null?void 0:Jt.student_count," \u4EBA")))),e.a.createElement("div",{className:Y.a.navRight,style:{display:"none"}},e.a.createElement("div",{className:Y.a.flexRow},(Jt==null||((Uo=Jt.course_status)===null||Uo===void 0)?void 0:Uo.status)===1&&e.a.createElement("div",{className:"mr20 c-red-ee4"},Jt==null||((zi=Jt.course_status)===null||zi===void 0)?void 0:zi.time),(Jt==null||((Ti=Jt.course_status)===null||Ti===void 0)?void 0:Ti.status)===2&&Jt.course_identity<6&&e.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F"),((fo=Jt.course_status)===null||fo===void 0?void 0:fo.status)===2&&(Jt.course_identity<6?e.a.createElement("a",{className:Y.a.classButton,href:"/classrooms/".concat(Jt==null||((es=Jt.first_category_url)===null||es===void 0||((ts=es.split("/"))===null||ts===void 0))?void 0:ts[2],"/announcement"),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"):e.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F")),((Yo=Jt.course_status)===null||Yo===void 0?void 0:Yo.status)===1&&Jt.course_identity>5&&e.a.createElement("div",{className:Y.a.classButton,onClick:Hi},"\u7ACB\u5373\u52A0\u5165"),((Xi=Jt.course_status)===null||Xi===void 0?void 0:Xi.status)===1&&Jt.course_identity===5&&e.a.createElement("a",{className:Y.a.classButton,href:"/classrooms/".concat(Jt==null||((ns=Jt.first_category_url)===null||ns===void 0||((yi=ns.split("/"))===null||yi===void 0))?void 0:yi[2],"/announcement"),target:"_blank"},"\u7ACB\u5373\u5B66\u4E60"),((Pa=Jt.course_status)===null||Pa===void 0?void 0:Pa.status)===0&&Jt.course_identity>5&&e.a.createElement("div",{className:Y.a.classButton,onClick:Hi},"\u7ACB\u5373\u62A5\u540D"),((ci=Jt.course_status)===null||ci===void 0?void 0:ci.status)===0&&Jt.course_identity===5&&e.a.createElement("div",{className:Y.a.classButton},"\u62A5\u540D\u6210\u529F"),((Jt==null||((Na=Jt.course_status)===null||Na===void 0)?void 0:Na.status)===0||(Jt==null||((Yi=Jt.course_status)===null||Yi===void 0)?void 0:Yi.status)===1)&&Jt.course_identity<5&&e.a.createElement("a",{className:Y.a.classButton,href:"/classrooms/".concat(Jt==null||((yo=Jt.first_category_url)===null||yo===void 0||((Ui=yo.split("/"))===null||Ui===void 0))?void 0:Ui[2],"/announcement"),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"),Ko&&Wo&&((Jo=dn.detail)===null||Jo===void 0?void 0:Jo.has_participate)&&e.a.createElement("span",{className:"".concat(Y.a.classButton," ").concat(Y.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),Ko&&Wo&&!((ko=dn.detail)!==null&&ko!==void 0&&ko.has_participate)&&(pn?e.a.createElement("span",{className:"".concat(Y.a.classButton," ").concat(Y.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):e.a.createElement("span",{className:"".concat(Y.a.classButton," ").concat(Y.a.bg28e),onClick:Es},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D"))),e.a.createElement("div",{className:Y.a.flexRow},Ko&&!!((Zo=dn.detail)!==null&&Zo!==void 0&&(Bi=Zo.courses)!==null&&Bi!==void 0&&Bi.length)&&Wo&&e.a.createElement("span",{className:"mt20"},e.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(Dn=dn.detail)===null||Dn===void 0?void 0:Dn.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"},pn===!0?((Ji=dn.detail)===null||Ji===void 0?void 0:Ji.participant_count)+1:(vs=dn.detail)===null||vs===void 0?void 0:vs.participant_count),"\u4EBA")),Ko&&!((rs=dn.detail)!==null&&rs!==void 0&&(da=rs.courses)!==null&&da!==void 0&&da.length)&&Wo&&e.a.createElement("span",null,!((Lr=dn.detail)!==null&&Lr!==void 0&&Lr.has_participate)&&(pn===!0?e.a.createElement("span",{className:"".concat(Y.a.classButton," ").concat(Y.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):e.a.createElement("a",{className:"".concat(Y.a.classButton," ").concat(Y.a.bg28e),onClick:Es},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D")),((di=dn.detail)===null||di===void 0?void 0:di.has_participate)&&e.a.createElement("span",{className:"".concat(Y.a.classButton," ").concat(Y.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),e.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(_a=dn.detail)===null||_a===void 0?void 0:_a.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"},pn===!0?((To=dn.detail)===null||To===void 0?void 0:To.participant_count)+1:(Zi=dn.detail)===null||Zi===void 0?void 0:Zi.participant_count),"\u4EBA"))))))),e.a.createElement(Me,null),Ho.status&&e.a.createElement(He,{type:"subject",onCancel:function(){return Ao(!1)},onOk:function(vr){Ao(!1),bs(vr)}}),e.a.createElement(T.a,{visible:Ya,title:"\u8BFE\u7A0B\u63D0\u793A",width:593,maskClosable:!1,onCancel:function(){pi(!1)},centered:!0,footer:e.a.createElement("div",null,e.a.createElement(h.a,{type:"primary",onClick:function(){pi(!1)}},"\u6211\u77E5\u9053\u4E86"))},e.a.createElement(Xe.a,{style:{maxHeight:378,overflow:"auto"},value:dn==null||((bo=dn.detail)===null||bo===void 0||((oo=bo.toast)===null||oo===void 0))?void 0:oo.content})))},Bt=Object(u.a)(function(Ge){var Ye=Ge.pathsDetail,Je=Ge.user,Te=Ge.loading,Ve=Ge.globalSetting;return{pathsDetail:Ye,user:Je,globalSetting:Ve,loading:Te.models.index}})(At),Nt=I("MXD1"),It=I("CFYs"),jt=I("8Bcu"),xt=I.n(jt),Lt=I("g9YV"),St=I("wCAj"),dt=I("O3gP"),yt=I("lrIw"),Fe=I("RotF"),et=I.n(Fe),Ot=I("oUNq"),Et=I("lzim"),Ut=I("55Ip"),Wt=function(Ye){var Je=Ye.pathsDetail,Te=Ye.loading,Ve=Ye.dispatch,Be=Ye.onReloadData,at=Be===void 0?function(){}:Be,nt=Object(s.i)(),st=Object(n.useState)([]),ot=Object(E.a)(st,2),ht=ot[0],Mt=ot[1],zt=Object(n.useState)(!0),Dt=Object(E.a)(zt,2),en=Dt[0],ln=Dt[1],Sn=Object(n.useState)(!1),Xt=Object(E.a)(Sn,2),$t=Xt[0],gn=Xt[1],On=ne.a.useForm(),nn=Object(E.a)(On,1),yn=nn[0],Ln=Object(n.useState)([]),Gn=Object(E.a)(Ln,2),an=Gn[0],hn=Gn[1],fn=Object(n.useState)(1),Cn=Object(E.a)(fn,2),er=Cn[0],cn=Cn[1],Un=Object(n.useState)([]),Dr=Object(E.a)(Un,2),cr=Dr[0],Tr=Dr[1],or=Object(n.useState)(!0),kr=Object(E.a)(or,2),Qn=kr[0],Ur=kr[1],$r=Object(n.useState)(!1),Gr=Object(E.a)($r,2),mr=Gr[0],Tn=Gr[1];Object(n.useEffect)(function(){Je.actionTabs.key==="Collaborators-AddCollaborator"&&(Ur(!0),ln(!0),tr())},[Je.actionTabs.key]);var tr=function(){var An=Object(p.a)(r.a.mark(function sn(){var Wn;return r.a.wrap(function(xn){for(;;)switch(xn.prev=xn.next){case 0:return xn.next=2,Ve({type:"classroomList/getSchoolList",payload:{}});case 2:Wn=xn.sent,Mt(Wn.map(function(Ar){return{value:Ar}}));case 4:case"end":return xn.stop()}},sn)}));return function(){return An.apply(this,arguments)}}(),Mr=function(){var sn,Wn;if(!((sn=yn.getFieldValue())!==null&&sn!==void 0&&(Wn=sn.keyword)!==null&&Wn!==void 0&&Wn.trim())){R.b.warn("\u8BF7\u8F93\u5165\u59D3\u540D"),hn([]);return}Ur(!1),ln(!0),gn(!1),cn(1),Tr([]),Zn(!0)},Fn=function(sn){sn=String(sn);var Wn=cr.indexOf(sn);Wn<0?cr.push(sn):cr.splice(Wn,1),Tr(Object(a.a)(cr))},Zn=function(){var An=Object(p.a)(r.a.mark(function sn(){var Wn,Xn,xn,Ar,Wr,Va=arguments;return r.a.wrap(function(ra){for(;;)switch(ra.prev=ra.next){case 0:if(Wn=Va.length>0&&Va[0]!==void 0?Va[0]:!1,!(en&&!$t||Wn)){ra.next=11;break}return Ar=yn.getFieldValue(),gn(!0),cn(Wn?1:er+1),ra.next=7,Object(Ot.wb)({page:Wn?1:er+1,container_id:nt.pathId,container_type:3,school_name:(Ar==null?void 0:Ar.school_name)||null,keyword:(Ar==null||((Xn=Ar.keyword)===null||Xn===void 0)?void 0:Xn.trim())||null});case 7:Wr=ra.sent,hn(Wn?Object(a.a)(Wr.users):[].concat(Object(a.a)(an),Object(a.a)(Wr.users))),gn(!1),((xn=Wr.users)===null||xn===void 0?void 0:xn.length)<10&&ln(!1);case 11:case"end":return ra.stop()}},sn)}));return function(){return An.apply(this,arguments)}}(),nr=function(){var An=Object(p.a)(r.a.mark(function sn(){var Wn;return r.a.wrap(function(xn){for(;;)switch(xn.prev=xn.next){case 0:if(cr!=null&&cr.length){xn.next=4;break}R.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"),xn.next=10;break;case 4:return Tn(!0),xn.next=7,Object(K.e)({id:nt.pathId,user_ids:cr});case 7:Wn=xn.sent,Tn(!1),Wn&&(R.b.success("\u6DFB\u52A0\u6210\u529F"),Yn(),at&&at());case 10:case"end":return xn.stop()}},sn)}));return function(){return An.apply(this,arguments)}}(),Yn=function(){yn.setFieldsValue({keyword:""}),Ve({type:"pathsDetail/setActionTabs",payload:{}})},Kn=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(sn,Wn){return e.a.createElement(X.a,{value:Wn.numid,checked:cr.includes(String(Wn.numid)),disabled:!!sn})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,dataIndex:"username",render:function(sn,Wn){return e.a.createElement(c.a,{placement:"bottom",title:sn},e.a.createElement(Ut.a,{className:"bold c-black",to:"/users/".concat(Wn.login),target:"_blank"},sn||"--"))}},{title:"\u624B\u673A\u53F7",width:100,dataIndex:"phone",ellipsis:!0,render:function(sn){return e.a.createElement(c.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(c.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(c.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(c.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(c.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(c.a,{placement:"bottom",title:sn&&me()(sn).format("YYYY-MM-DD HH:mm")},e.a.createElement("span",null,sn&&me()(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:mr,onOk:nr,onCancel:Yn},e.a.createElement(ne.a,{layout:"inline",form:yn,initialValues:{school_name:"",keyword:""},className:"mt10",onFinish:Mr},e.a.createElement(ne.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(ne.a.Item,{name:"school_name",label:"\u5355\u4F4D\uFF1A"},e.a.createElement(yt.a,{allowClear:!0,defaultOpen:!1,options:ht,style:{width:400},size:"large",placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0",filterOption:function(sn,Wn){return Wn.value.toUpperCase().indexOf(sn.toUpperCase())!==-1}})),e.a.createElement(ne.a.Item,null,e.a.createElement(h.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:Et.B,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(St.a,{pagination:!1,dataSource:[],columns:Kn})),e.a.createElement("div",{style:{maxHeight:260,overflow:"auto"}},e.a.createElement(et.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(sn){Zn()},hasMore:en,useWindow:!1},e.a.createElement(St.a,{loading:$t,showHeader:!1,pagination:!1,dataSource:an,columns:Kn,onRow:function(sn){return{onClick:function(Xn){Xn.currentTarget.querySelector("input").disabled||Fn(Xn.currentTarget.querySelector("input").value)}}}})))))},bt=Object(u.a)(function(Ge){var Ye=Ge.pathsDetail,Je=Ge.loading;return{pathsDetail:Ye,loading:Je}})(Wt),Gt=function(Ye){var Je=Ye.pathsDetail,Te=Ye.loading,Ve=Ye.dispatch,Be=Ye.data,at=Ye.onReloadData,nt=at===void 0?function(){}:at,st=Object(s.i)(),ot=Object(n.useState)(!0),ht=Object(E.a)(ot,2),Mt=ht[0],zt=ht[1],Dt=Object(n.useState)(!1),en=Object(E.a)(Dt,2),ln=en[0],Sn=en[1],Xt=ne.a.useForm(),$t=Object(E.a)(Xt,1),gn=$t[0],On=Object(n.useState)([]),nn=Object(E.a)(On,2),yn=nn[0],Ln=nn[1],Gn=Object(n.useState)(1),an=Object(E.a)(Gn,2),hn=an[0],fn=an[1],Cn=Object(n.useState)([]),er=Object(E.a)(Cn,2),cn=er[0],Un=er[1],Dr=Object(n.useState)(!0),cr=Object(E.a)(Dr,2),Tr=cr[0],or=cr[1],kr=Object(n.useState)(!1),Qn=Object(E.a)(kr,2),Ur=Qn[0],$r=Qn[1];Object(n.useEffect)(function(){Je.actionTabs.key==="Collaborators-AddCourses"&&(or(!0),zt(!0),Gr())},[Je.actionTabs.key]);var Gr=function(){var nr=Object(p.a)(r.a.mark(function Yn(){var Kn;return r.a.wrap(function(sn){for(;;)switch(sn.prev=sn.next){case 0:return sn.next=2,Ve({type:"classroomList/getSchoolList",payload:{}});case 2:Kn=sn.sent;case 3:case"end":return sn.stop()}},Yn)}));return function(){return nr.apply(this,arguments)}}(),mr=function(){or(!1),zt(!0),Sn(!1),fn(1),Un([]),tr(!0)},Tn=function(Yn){Yn=String(Yn);var Kn=cn.indexOf(Yn);Kn<0?cn.push(Yn):cn.splice(Kn,1),Un(Object(a.a)(cn))},tr=function(){var nr=Object(p.a)(r.a.mark(function Yn(){var Kn,An,sn,Wn,Xn,xn=arguments;return r.a.wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:if(Kn=xn.length>0&&xn[0]!==void 0?xn[0]:!1,!(Mt&&!ln||Kn)){Wr.next=11;break}return Wn=gn.getFieldValue(),Sn(!0),fn(Kn?1:hn+1),Wr.next=7,Object(Ot.vb)({page:Kn?1:hn+1,container_id:st.pathId,container_type:3,manager_name:(Wn==null?void 0:Wn.manager_name)||null,course_name:(Wn==null||((An=Wn.course_name)===null||An===void 0)?void 0:An.trim())||null});case 7:Xn=Wr.sent,Ln(Kn?Object(a.a)(Xn.courses):[].concat(Object(a.a)(yn),Object(a.a)(Xn.courses))),Sn(!1),((sn=Xn.courses)===null||sn===void 0?void 0:sn.length)<10&&zt(!1);case 11:case"end":return Wr.stop()}},Yn)}));return function(){return nr.apply(this,arguments)}}(),Mr=function(){var nr=Object(p.a)(r.a.mark(function Yn(){var Kn,An,sn,Wn;return r.a.wrap(function(xn){for(;;)switch(xn.prev=xn.next){case 0:if(cn!=null&&cn.length){xn.next=4;break}R.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u8BFE\u5802"),xn.next=19;break;case 4:if(!(Je.actionTabs.type!=1)){xn.next=10;break}if(!((Je==null||((Kn=Je.Courses)===null||Kn===void 0||((An=Kn.spoc_courses)===null||An===void 0))?void 0:An.length)+(cn==null?void 0:cn.length)>3)){xn.next=8;break}return R.b.warn("\u4E00\u4E2A\u5B9E\u8DF5\u8BFE\u7A0B\u53EA\u80FD\u52A0\u51653\u4E2Aspoc\u8BFE\u5802"),xn.abrupt("return");case 8:xn.next=13;break;case 10:if(!((Be==null||((sn=Be.spoc_courses)===null||sn===void 0)?void 0:sn.length)+(cn==null?void 0:cn.length)>3)){xn.next=13;break}return R.b.warn("\u4E00\u4E2A\u5B9E\u8DF5\u8BFE\u7A0B\u53EA\u80FD\u52A0\u51653\u4E2A\u5386\u53F2\u8BFE\u5802"),xn.abrupt("return");case 13:return $r(!0),xn.next=16,Object(K.b)({id:st.pathId,course_ids:cn,course_type:Je.actionTabs.type});case 16:Wn=xn.sent,$r(!1),Wn&&(R.b.success("\u6DFB\u52A0\u6210\u529F"),Fn(),nt&&nt());case 19:case"end":return xn.stop()}},Yn)}));return function(){return nr.apply(this,arguments)}}(),Fn=function(){gn.setFieldsValue({course_name:"",manager_name:""}),Un([]),Ve({type:"pathsDetail/setActionTabs",payload:{}})},Zn=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(Yn,Kn){return e.a.createElement(X.a,{value:Kn.id,checked:cn.includes(String(Kn.id)),disabled:!!Yn})}},{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"name",width:100,ellipsis:!0,render:function(Yn){return e.a.createElement(c.a,{placement:"bottom",title:Yn},e.a.createElement("span",null,Yn||"--"))}},{title:"\u7BA1\u7406\u8005",width:100,dataIndex:"managers",ellipsis:!0,render:function(Yn){return e.a.createElement(c.a,{placement:"bottom",title:Yn},e.a.createElement("span",null,Yn||"--"))}},{title:"\u8BFE\u5802\u6240\u5728\u5B66\u6821",width:150,dataIndex:"school_name",ellipsis:!0,render:function(Yn){return e.a.createElement(c.a,{placement:"bottom",title:Yn},e.a.createElement("span",null,Yn||"--"))}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",width:140,ellipsis:!0,render:function(Yn){return e.a.createElement(c.a,{placement:"bottom",title:Yn},e.a.createElement("span",null,Yn))}},{title:"\u6210\u5458\u6570\u91CF",dataIndex:"course_members_count",width:80,render:function(Yn){return e.a.createElement(c.a,{placement:"bottom",title:Yn},e.a.createElement("span",null,Yn||"--"))}}];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:Ur,onOk:Mr,onCancel:Fn},e.a.createElement(ne.a,{layout:"inline",form:gn,initialValues:{course_name:"",manager_name:""},className:"mt10",onFinish:mr},e.a.createElement(ne.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(ne.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(ne.a.Item,null,e.a.createElement(h.a,{htmlType:"submit",type:"primary",size:"large"},"\u641C\u7D22"))),Tr&&e.a.createElement("div",{className:"tc font16 c-light-black mt40"},e.a.createElement("img",{src:Et.B,width:"100",alt:""}),e.a.createElement("br",null),"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458"),!Tr&&e.a.createElement("section",null,e.a.createElement("div",{className:"flexd-table-header mt20"},e.a.createElement(St.a,{pagination:!1,dataSource:[],columns:Zn})),e.a.createElement("div",{style:{maxHeight:260,overflow:"auto"}},e.a.createElement(et.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(Yn){tr()},hasMore:Mt,useWindow:!1},e.a.createElement(St.a,{loading:ln,showHeader:!1,pagination:!1,dataSource:yn,columns:Zn,onRow:function(Yn){return{onClick:function(An){An.currentTarget.querySelector("input").disabled||Tn(An.currentTarget.querySelector("input").value)}}}})))))},un=Object(u.a)(function(Ge){var Ye=Ge.pathsDetail,Je=Ge.loading;return{pathsDetail:Ye,loading:Je}})(Gt),jn=I("2BaD"),Bn=I("1n7x"),Nr=I.n(Bn),zr=I("y1J/"),_r=I.n(zr),Rn=I("A2z3"),ea=I.n(Rn),Aa=I("Ye+n"),pa=I.n(Aa),Kr=function(Ye){var Je=Ye.visible,Te=Ye.onOk,Ve=Te===void 0?function(){}:Te,Be=Ye.onCancel,at=Be===void 0?function(){}:Be,nt=Ye.data,st=nt===void 0?{}:nt,ot=Object(n.useRef)();Object(n.useEffect)(function(){return Je?document.body.setAttribute("class",pa.a.bodyHeight):document.body.removeAttribute("class"),function(){document.body.removeAttribute("class")}},[Je]);var ht={"1":"January","2":"February","3":"March","4":"April","5":"May","6":"June","7":"July","8":"August","9":"September","10":"October","11":"November","12":"December"},Mt=function(){var zt=Object(p.a)(r.a.mark(function Dt(){var en,ln,Sn;return r.a.wrap(function($t){for(;;)switch($t.prev=$t.next){case 0:return document.body.scrollIntoView(),en={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}},ln=Nr()().set(en).from(ot.current).toPdf(),$t.next=5,ln.get("pdf");case 5:return ln=$t.sent,$t.next=8,ln.output("bloburl");case 8:Sn=$t.sent,Object(pe.v)("".concat(st.school_name,"-").concat(st.user_name,".pdf"),Sn);case 10:case"end":return $t.stop()}},Dt)}));return function(){return zt.apply(this,arguments)}}();return e.a.createElement(T.a,{visible:Je,title:null,footer:e.a.createElement("div",null,e.a.createElement(h.a,{type:"primary",onClick:Mt},"\u4E0B\u8F7D\u8BC1\u4E66")),style:{background:"transparen",height:"740px"},centered:!0,width:1052,className:pa.a.advertisementModal,maskClosable:!1,closeIcon:e.a.createElement(jn.a,{onClick:at,style:{fontSize:"25px",color:"#fff",marginLeft:"100px"}})},e.a.createElement("div",{ref:ot},e.a.createElement("div",{style:{backgroundImage:"url(".concat(ea.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",me()(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 ",ht[me()(st==null?void 0:st.created_at).format("M")]," ",me()(st==null?void 0:st.created_at).format("DD"),"\uFF0C",me()(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:_r.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")))))},Ea=Kr,Za=I("YJCA"),fi=I("wYyv"),Re=I.n(fi),Qe=I("WPnJ"),it=I.n(Qe),Tt=Object(Za.b)(function(Ge){var Ye,Je,Te,Ve,Be,at,nt,st,ot,ht=Ge.item,Mt=Ge.toIndex,zt=Ge.params,Dt=Ge.isShow,en=Ge.setShow,ln=Ge.dispatch,Sn=Ge.classroomList,Xt=Ge.handleDeleteMember,$t=Ge.pathsDetail;return e.a.createElement("span",{style:{display:"inline-block",width:"33%",padding:"5px",background:"#fff",marginTop:"10px"}},e.a.createElement("div",{className:it.a.directionItemWrap},e.a.createElement(c.a,{color:"#ffffff",placement:"bottom",title:e.a.createElement("div",{className:it.a.teamHeight},e.a.createElement("span",{title:ht==null?void 0:ht.name,style:{fontSize:"14px",color:"#333333",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"80px",overflow:"hidden"}},(ht==null||((Ye=ht.name)===null||Ye===void 0)?void 0:Ye.length)>6?(ht==null||((Je=ht.name)===null||Je===void 0)?void 0:Je.substr(0,6))+"...":(ht==null?void 0:ht.name)||"--"),e.a.createElement("span",{style:{marginLeft:"10px",color:"#999999",fontSize:"12px"}},(ht==null||((Te=ht.school)===null||Te===void 0)?void 0:Te.length)>9?(ht==null||((Ve=ht.school)===null||Ve===void 0)?void 0:Ve.substr(0,9))+"...":ht==null?void 0:ht.school),e.a.createElement("div",{style:{height:"1px",width:"100%",border:"1px solid #f5f5f5",marginTop:"3px",marginBottom:"3px"}}),!(ht!=null&&ht.brief_introduction)&&e.a.createElement("div",{style:{textAlign:"center",marginTop:"20px"}},"\u6682\u65E0\u7B80\u4ECB"),(ht==null?void 0:ht.brief_introduction)&&e.a.createElement("div",{className:it.a.divHeight},ht==null?void 0:ht.brief_introduction))},e.a.createElement("img",{draggable:!1,className:it.a.imgradius,onClick:function(){Object(k.p)()?u.d.push("".concat(ht.user_url)):ln({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})},src:gt.a.API_SERVER+"/images/"+(ht==null?void 0:ht.image_url)}),e.a.createElement("div",null,(ht==null||((Be=ht.name)===null||Be===void 0)?void 0:Be.length)>6?(ht==null||((at=ht.name)===null||at===void 0)?void 0:at.substr(0,6))+"...":(ht==null?void 0:ht.name)||"--",e.a.createElement("br",null),e.a.createElement("span",{style:{color:"#999999"}},(ht==null||((nt=ht.school)===null||nt===void 0)?void 0:nt.length)>6?(ht==null||((st=ht.school)===null||st===void 0)?void 0:st.substr(0,6))+"...":(ht==null?void 0:ht.school)||"--"))),e.a.createElement("br",null),e.a.createElement("span",{className:it.a.groupActionWrap},e.a.createElement("i",{style:{display:!((ot=$t.detail)!==null&&ot!==void 0&&ot.allow_add_member)&&"none"},className:"iconfont icon-shanchu5 mr1 c-red font15 current",onClick:function(On){On.stopPropagation(),Xt(ht.id)}}))))}),Vt=Object(Za.a)(function(Ge){var Ye=Ge.isShow,Je=Ge.setShow,Te=Ge.pathsDetail,Ve=Ge.items,Be=Ge.params,at=Ge.dispatch,nt=Ge.classroomList,st=Ge.handleDeleteMember;return e.a.createElement("div",{className:"task-list-container"},Ve==null?void 0:Ve.map(function(ot,ht){return e.a.createElement(Tt,{key:"".concat(ot.id),isShow:Ye,setShow:Je,dispatch:at,pathsDetail:Te,handleDeleteMember:st,classroomList:nt,toIndex:ht+1,params:Be,index:ht,item:ot})}))}),rn=function(Ye){var Je=Ye.data,Te=Ye.classroomList,Ve=Ye.pathsDetail,Be=Ye.operation,at=Ye.callback,nt=Ye.handleDeleteMember,st=Ye.onCancel,ot=Ye.dispatch,ht=Ye.visible,Mt=ht===void 0?!1:ht,zt=Object(n.useState)(Je),Dt=Object(E.a)(zt,2),en=Dt[0],ln=Dt[1],Sn=Object(s.i)(),Xt=Object(n.useState)(),$t=Object(E.a)(Xt,2),gn=$t[0],On=$t[1],nn=Object(n.useState)(!0),yn=Object(E.a)(nn,2),Ln=yn[0],Gn=yn[1];function an(Cn){var er=Cn.newIndex,cn=Cn.oldIndex;if(!Be)return;hn(Re()(en,cn,er).map(function(Un){return Un==null?void 0:Un.id})),ln(Re()(en,cn,er))}Object(n.useEffect)(function(){ln(Je)},[JSON.stringify(Je)]);function hn(Cn){return fn.apply(this,arguments)}function fn(){return fn=Object(p.a)(r.a.mark(function Cn(er){var cn;return r.a.wrap(function(Dr){for(;;)switch(Dr.prev=Dr.next){case 0:return Dr.next=2,Object(ue.a)("/api/paths/".concat(Sn==null?void 0:Sn.pathId,"/move_subject_members.json"),{method:"post",body:{user_ids:er}});case 2:cn=Dr.sent;case 3:case"end":return Dr.stop()}},Cn)})),fn.apply(this,arguments)}return e.a.createElement("div",{style:{zIndex:9999,width:"100%"},className:"sort-list-panel"},e.a.createElement(Vt,{axis:"xy",helperClass:"dragging-li",isShow:Ln,setShow:Gn,distance:2,dispatch:ot,pathsDetail:Ve,handleDeleteMember:nt,classroomList:Te,params:Sn,items:en,onSortEnd:an}))},ve=Object(u.a)(function(Ge){var Ye=Ge.classroomList,Je=Ge.pathsDetail;return{classroomList:Ye,pathsDetail:Je}})(rn),G=I("lseA"),Z=I.n(G),ge=[2,5,8,11,14],Se=Object(Za.b)(function(Ge){var Ye,Je,Te,Ve,Be=Ge.item,at=Ge.toIndex,nt=Ge.params,st=Ge.dispatch,ot=Ge.classroomList,ht=Ge.handleDeleteMember,Mt=Ge.pathsDetail;return e.a.createElement("span",{onClick:function(){window.open(Be==null?void 0:Be.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:gt.a.API_SERVER+(Be==null?void 0:Be.default_image)}),e.a.createElement("span",{className:Z.a.groupActionWrap},e.a.createElement(c.a,{title:Be.name},e.a.createElement("span",{style:{fontSize:"18px",color:"#ffffff"}},((Ye=Be.name)===null||Ye===void 0?void 0:Ye.length)>7?e.a.createElement("span",null,(Je=Be.name)===null||Je===void 0?void 0:Je.substring(0,7),e.a.createElement("br",null)," ",(Te=Be.name)===null||Te===void 0?void 0:Te.substring(7,14),(Be==null?void 0:Be.name.length)>14&&"..."):Be.name)))),e.a.createElement("div",{className:Z.a.bottomdiv},e.a.createElement(c.a,{title:"\u8BBF\u95EE\u6570\uFF1A".concat(Be==null?void 0:Be.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)"}},Be==null?void 0:Be.visits))),e.a.createElement(c.a,{title:"\u8BFE\u5802\u6210\u5458\u6570\uFF1A".concat(Be==null?void 0:Be.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)"}}," ",Be==null?void 0:Be.course_members_count))),e.a.createElement(c.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",Be==null?void 0:Be.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)"}}," ",Be==null?void 0:Be.tasks_count))),e.a.createElement(c.a,{title:"\u5220\u9664",placement:"bottom"},e.a.createElement("span",null,e.a.createElement("i",{style:{color:"#bbbbbb",display:!(Mt!=null&&(Ve=Mt.detail)!==null&&Ve!==void 0&&Ve.allow_add_member)&&"none"},className:"iconfont icon-lajitong1 mr3 font15 current",onClick:function(Dt){Dt.stopPropagation(),ht(Be.id)}})))))}),Ee=Object(Za.a)(function(Ge){var Ye=Ge.items,Je=Ge.params,Te=Ge.dispatch,Ve=Ge.classroomList,Be=Ge.handleDeleteMember,at=Ge.pathsDetail;return e.a.createElement("div",{className:"task-list-container"},Ye==null?void 0:Ye.map(function(nt,st){return e.a.createElement(Se,{key:"".concat(nt.id),dispatch:Te,pathsDetail:at,handleDeleteMember:Be,classroomList:Ve,toIndex:st+1,params:Je,index:st,item:nt})}))}),ft=function(Ye){var Je=Ye.data,Te=Ye.classroomList,Ve=Ye.pathsDetail,Be=Ye.callback,at=Ye.handleDeleteMember,nt=Ye.onCancel,st=Ye.dispatch,ot=Ye.visible,ht=ot===void 0?!1:ot,Mt=Object(n.useState)(Je),zt=Object(E.a)(Mt,2),Dt=zt[0],en=zt[1],ln=Object(s.i)(),Sn=Object(n.useState)(),Xt=Object(E.a)(Sn,2),$t=Xt[0],gn=Xt[1];function On(Ln){var Gn=Ln.newIndex,an=Ln.oldIndex;nn(Re()(Dt,an,Gn).map(function(hn){return hn==null?void 0:hn.id})),en(Re()(Dt,an,Gn))}Object(n.useEffect)(function(){en(Je)},[JSON.stringify(Je)]);function nn(Ln){return yn.apply(this,arguments)}function yn(){return yn=Object(p.a)(r.a.mark(function Ln(Gn){var an;return r.a.wrap(function(fn){for(;;)switch(fn.prev=fn.next){case 0:return fn.next=2,Object(ue.a)("/api/paths/".concat(ln==null?void 0:ln.pathId,"/spoc_courses/move_position.json"),{method:"post",body:{ids:Gn}});case 2:an=fn.sent;case 3:case"end":return fn.stop()}},Ln)})),yn.apply(this,arguments)}return e.a.createElement("div",{style:{zIndex:9999,width:"100%"},className:"sort-list-panel"},e.a.createElement(Ee,{axis:"y",helperClass:"dragging-li",pathsDetail:Ve,distance:2,dispatch:st,handleDeleteMember:at,classroomList:Te,params:ln,items:Dt,onSortEnd:On}))},Kt=Object(u.a)(function(Ge){var Ye=Ge.classroomList,Je=Ge.pathsDetail;return{classroomList:Ye,pathsDetail:Je}})(ft),Rt=I("V0Rq"),mn=I("HBuW"),Yt=I("W6us"),Jn=I.n(Yt),Hn=I("CnIC"),$n=I.n(Hn),wr=I("LZjx"),aa=I.n(wr),Br=I("dhSg"),ta=I("cVA7"),Sr=I.n(ta),ma=I("h6EL");function la(Ge){var Ye=function(at,nt){if(at.localName===nt)return at;for(var st=0,ot=at;ot=ot.parentNode;st++){if(ot.localName===nt)return ot;if(ot==document.documentElement)return!1}},Je=Ge.target,Te=Ye(Je,"a");if(console.log([Te],Te==null?void 0:Te.href,44),Te!=null&&Te.href)return;if(Je.tagName.toUpperCase()==="IMG"){var Ve=Je.src||Je.getAttribute("src");Ve&&Ve.indexOf("/images/avatars/User")===-1&&(Ge.stopPropagation(),Ge.preventDefault(),Br.a.publish("preview-image",Ve))}}var ja=function(Ye){var Je,Te,Ve,Be,at,nt,st,ot,ht,Mt,zt,Dt,en,ln,Sn,Xt,$t,gn,On,nn,yn,Ln,Gn,an,hn,fn,Cn,er,cn,Un,Dr,cr,Tr,or,kr,Qn,Ur,$r,Gr,mr,Tn,tr,Mr,Fn,Zn,nr,Yn,Kn,An,sn,Wn,Xn,xn,Ar,Wr,Va,Da,ra,gi,ai,Qa,no,ro,Ri,Lo,Po,ao,Li,Ni,So,co,ho,Ki,Pi,Vi,Wi,vo,ji,go,Xa,io,Uo,zi,Ti,fo,es,ts,Yo,Xi,ns,yi,Pa,ci,Na,Yi,yo,Ui,Jo,ko,Zo,Bi,Dn=Ye.pathsDetail,Ji=Ye.user,vs=Ye.globalSetting,rs=Ye.loading,da=Ye.classroomList,Lr=Ye.dispatch,di=Object(C.a)(Ye,["pathsDetail","user","globalSetting","loading","classroomList","dispatch"]),_a=Object(s.i)(),To=Object(n.useState)(!0),Zi=Object(E.a)(To,2),bo=Zi[0],oo=Zi[1],dn=Object(n.useState)(!1),Fo=Object(E.a)(dn,2),Ss=Fo[0],gs=Fo[1],ei=Object(n.useState)(),_n=Object(E.a)(ei,2),kt=_n[0],Zt=_n[1],bn=Object(n.useState)(),Jt=Object(E.a)(bn,2),qn=Jt[0],ir=Jt[1],dr=Object(n.useState)({}),Zr=Object(E.a)(dr,2),pn=Zr[0],ii=Zr[1],ki=Object(n.useState)(),Ra=Object(E.a)(ki,2),ha=Ra[0],Oi=Ra[1],qi=Object(n.useRef)(),ti=Object(n.useState)(!1),Ya=Object(E.a)(ti,2),pi=Ya[0],No=Ya[1],jo=Object(n.useState)({}),Ho=Object(E.a)(jo,2),Qo=Ho[0],Ts=Ho[1];Object(n.useEffect)(function(){if(qi.current)return qi.current.addEventListener("mousedown",la),function(){qi.current.removeEventListener("mousedown",la)}},[qi.current]);var hl=function(){var Mn=Object(p.a)(r.a.mark(function Pn(){var En;return r.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:if(qn!=null&&qn.trim()){wn.next=3;break}return R.b.warn("\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),wn.abrupt("return");case 3:return wn.next=5,Object(K.ab)({id:_a.pathId,team_title:qn.trim()});case 5:En=wn.sent,Zt(!kt),(En==null?void 0:En.status)===0&&(ir(null),R.b.success(En.message),Lr({type:"pathsDetail/getRightData",payload:{id:_a.pathId}}));case 8:case"end":return wn.stop()}},Pn)}));return function(){return Mn.apply(this,arguments)}}();Object(n.useEffect)(function(){Lr({type:"pathsDetail/getCoureses",payload:{id:_a.pathId}}),fl()},[]);function fl(){return Qs.apply(this,arguments)}function Qs(){return Qs=Object(p.a)(r.a.mark(function Mn(){return r.a.wrap(function(En){for(;;)switch(En.prev=En.next){case 0:return En.t0=Ts,En.next=3,Object(K.z)({id:_a.pathId,course_type:1});case 3:En.t1=En.sent,(0,En.t0)(En.t1);case 5:case"end":return En.stop()}},Mn)})),Qs.apply(this,arguments)}Object(n.useEffect)(function(){var Mn;if(((Mn=da.actionTabs)===null||Mn===void 0?void 0:Mn.key)==="\u4FEE\u6539\u5F00\u8BFE\u65F6\u95F4"){var Pn,En,rr=(Pn=Dn.detail)===null||Pn===void 0||((En=Pn.courses)===null||En===void 0)?void 0:En.find(function(wn){var Rr;return wn.course_id===((Rr=da.actionTabs)===null||Rr===void 0?void 0:Rr.name)});ii(rr||{})}},[da.actionTabs]),Object(n.useEffect)(function(){var Mn,Pn,En;if((Mn=Dn.detail)!==null&&Mn!==void 0&&Mn.has_start){var rr,wn,Rr=(rr=Dn.detail)===null||rr===void 0||((wn=rr.courses)===null||wn===void 0)?void 0:wn.findIndex(function(zo){var po;return parseInt((po=zo.course_status)===null||po===void 0?void 0:po.status)===1});En=Rr>-1?Rr:0}else{var Er,jr,Ia,Ja,bi,mi=(Er=Dn.detail)===null||Er===void 0||((jr=Er.courses)===null||jr===void 0||((Ia=jr.map(function(zo){var po;return parseInt((po=zo.course_status)===null||po===void 0?void 0:po.status)}))===null||Ia===void 0))?void 0:Ia.lastIndexOf(2);En=mi>-1?mi:0,mi=(Ja=Dn.detail)===null||Ja===void 0||((bi=Ja.courses)===null||bi===void 0)?void 0:bi.findIndex(function(zo){var po;return parseInt((po=zo.course_status)===null||po===void 0?void 0:po.status)===0}),En=mi>-1?mi:En}if((Pn=Dn.detail)!==null&&Pn!==void 0&&Pn.courses){var Ei;ii(((Ei=Dn.detail)===null||Ei===void 0?void 0:Ei.courses[En])||{})}},[Dn.detail]);var sr=function(){var Mn=Object(p.a)(r.a.mark(function Pn(En){return r.a.wrap(function(wn){for(;;)switch(wn.prev=wn.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 Rr=Object(p.a)(r.a.mark(function jr(){var Ia,Ja;return r.a.wrap(function(mi){for(;;)switch(mi.prev=mi.next){case 0:return mi.next=2,Object(K.q)({id:_a.pathId,user_id:En});case 2:Ia=mi.sent,(Ia==null?void 0:Ia.status)===1&&(((Ja=Ji.userInfo)===null||Ja===void 0?void 0:Ja.user_id)===En&&(window.location.href=window.location.href),R.b.info(Ia==null?void 0:Ia.message),bs());case 4:case"end":return mi.stop()}},jr)}));function Er(){return Rr.apply(this,arguments)}return Er}()});case 1:case"end":return wn.stop()}},Pn)}));return function(En){return Mn.apply(this,arguments)}}(),ys=function(){var Mn=Object(p.a)(r.a.mark(function Pn(En){return r.a.wrap(function(wn){for(;;)switch(wn.prev=wn.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 Rr=Object(p.a)(r.a.mark(function jr(){var Ia;return r.a.wrap(function(bi){for(;;)switch(bi.prev=bi.next){case 0:return bi.next=2,Object(K.p)({id:_a.pathId,courseid:En});case 2:Ia=bi.sent,(Ia==null?void 0:Ia.status)===0&&(R.b.info("\u5220\u9664\u6210\u529F"),bs());case 4:case"end":return bi.stop()}},jr)}));function Er(){return Rr.apply(this,arguments)}return Er}()});case 1:case"end":return wn.stop()}},Pn)}));return function(En){return Mn.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(p.a)(r.a.mark(function rr(){var wn;return r.a.wrap(function(Er){for(;;)switch(Er.prev=Er.next){case 0:return Er.next=2,Object(K.i)({id:_a.pathId});case 2:wn=Er.sent,wn.status===0&&(Oi(!0),R.b.success(wn.message));case 4:case"end":return Er.stop()}},rr)}));function En(){return Pn.apply(this,arguments)}return En}()})},Bs=function(){Lr({type:"pathsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator"}})},Ao=function(Pn){Lr({type:"pathsDetail/setActionTabs",payload:{key:"Collaborators-AddCourses",type:Pn}})},bs=function(){Lr({type:"pathsDetail/getPathsDetail",payload:{id:_a.pathId}}),Lr({type:"pathsDetail/getRightData",payload:{id:_a.pathId}}),Lr({type:"pathsDetail/getCoureses",payload:{id:_a.pathId}}),fl()},Ws=function(){var Pn;return kt?e.a.createElement("div",{className:xt.a.flexRow},e.a.createElement(re.a,{placeholder:"\u4F8B\u5982\uFF1A\u6559\u5B66\u56E2\u961F",value:qn,onChange:function(rr){return ir(rr.target.value)}}),e.a.createElement(h.a,{className:"ml5",onClick:function(){return Zt(!kt)}},"\u53D6\u6D88"),e.a.createElement(h.a,{className:"ml5",type:"primary",onClick:hl},"\u786E\u5B9A")):e.a.createElement("div",{className:xt.a.directionItemWrap},e.a.createElement("span",{style:{fontSize:"16px",display:"flex",alignItems:"center"}}," ",e.a.createElement("img",{style:{marginRight:"10px"},src:$n.a})," ",(Pn=Dn.rightData)===null||Pn===void 0?void 0:Pn.team_title),e.a.createElement("span",{className:xt.a.groupActionWrap},e.a.createElement("i",{className:"iconfont icon-xiugai mr1 c-light-primary font15 current",onClick:function(){return Zt(!kt)}})))},Ms=function(){var Pn,En,rr=new Image;rr.src=Et.q;var wn=((Pn=Dn.rightData)===null||Pn===void 0||((En=Pn.tags)===null||En===void 0)?void 0:En.map(function(Er,jr){return{name:Er.tag_name,value:jr}}))||[],Rr={backgroundColor:"#fff",tooltip:{pointFormat:"{series.name}</b>"},series:[{type:"wordCloud",sizeRange:[10,30],rotationRange:[-90,90],rotationStep:45,gridSize:2,shape:"pentagon",maskImage:rr,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:wn}]};return Rr},Es=function(){if(!Object(ke.e)(Lr))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(p.a)(r.a.mark(function rr(){var wn,Rr;return r.a.wrap(function(jr){for(;;)switch(jr.prev=jr.next){case 0:return jr.next=2,Object(K.P)({id:pn==null?void 0:pn.course_id});case 2:wn=jr.sent,wn.status===0&&(R.b.success(wn.message),Lr({type:"pathsDetail/getPathsDetail",payload:{id:_a.pathId}}),parseInt((Rr=pn.course_status)===null||Rr===void 0?void 0:Rr.status)===1&&Object(pe.Q)("".concat(pn==null?void 0:pn.first_category_url)));case 4:case"end":return jr.stop()}},rr)}));function En(){return Pn.apply(this,arguments)}return En}()})},Hi=function(){var Mn=Object(p.a)(r.a.mark(function Pn(){var En;return r.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:if(Object(ke.e)(Lr)){wn.next=2;break}return wn.abrupt("return");case 2:return gs(!0),wn.next=5,Object(ue.a)("/api/payments.json",{method:"POST",body:{subject_id:_a.pathId,payment_method:"wechat_qr"}});case 5:En=wn.sent,En!=null&&En.num&&(gs(!1),u.d.push("/order/".concat(_a.pathId,"/pay?order_num=").concat(En==null?void 0:En.num)));case 7:case"end":return wn.stop()}},Pn)}));return function(){return Mn.apply(this,arguments)}}(),zs=function(){var Mn=Object(p.a)(r.a.mark(function Pn(En,rr){var wn;return r.a.wrap(function(Er){for(;;)switch(Er.prev=Er.next){case 0:if(Lr({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!rr){Er.next=7;break}return Er.next=4,Object(mn.C)({id:En});case 4:Er.t0=Er.sent,Er.next=10;break;case 7:return Er.next=9,Object(mn.D)({id:En});case 9:Er.t0=Er.sent;case 10:if(wn=Er.t0,Lr({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(wn!=null&&wn.game_identifier||wn!=null&&wn.identifier)){Er.next=15;break}return Object(pe.Q)(rr?"/tasks/".concat(wn==null?void 0:wn.identifier,"/jupyter"):"/tasks/".concat(wn.game_identifier)),Er.abrupt("return");case 15:(wn==null?void 0:wn.status)===2?Ko(wn==null?void 0:wn.message):(wn==null?void 0:wn.status)===3&&ds(wn==null?void 0:wn.message);case 16:case"end":return Er.stop()}},Pn)}));return function(En,rr){return Mn.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")})},Ko=function Mn(Pn){var En;Pn=(En=Pn)!==null&&En!==void 0&&En.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 rr=Object(p.a)(r.a.mark(function Rr(){var Er,jr;return r.a.wrap(function(Ja){for(;;)switch(Ja.prev=Ja.next){case 0:return Ja.next=2,Object(Rt.S)({url:Pn});case 2:if(Er=Ja.sent,Er){Ja.next=5;break}return Ja.abrupt("return");case 5:return R.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Ja.next=8,Object(mn.D)({id:Er.shixun_identifier});case 8:if(jr=Ja.sent,!(jr!=null&&jr.game_identifier)){Ja.next=12;break}return Object(pe.Q)("/tasks/".concat(jr.game_identifier)),Ja.abrupt("return");case 12:(jr==null?void 0:jr.status)===2?Mn(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 Ja.stop()}},Rr)}));function wn(){return rr.apply(this,arguments)}return wn}()})},Ls=function(){var Pn;if(!Object(ke.e)(Lr))return;var En=[];Dn==null||((Pn=Dn.stageData)===null||Pn===void 0)||Pn.forEach(function(wn){var Rr;if(wn.items&&(Rr=wn.items)!==null&&Rr!==void 0&&Rr.length){var Er;(Er=wn.items)===null||Er===void 0||Er.forEach(function(jr){var Ia;En.push(jr),jr.children&&(Ia=jr.children)!==null&&Ia!==void 0&&Ia.length&&(En=En.concat(jr.children))})}});var rr=En.find(function(wn){return["VideoItem","Attachment","Shixun"].includes(wn.item_type)});if(console.log(rr,"stageParam"),rr.item_type==="VideoItem"){Object(pe.Q)("/video/".concat(rr.id,"?subject_id=").concat(_a.pathId));return}if(rr.item_type==="Attachment"){Object(pe.Q)(rr.url);return}if(rr.item_type==="Shixun"){zs(rr.identifier,rr.is_jupyter);return}},Wo=function(){var Pn,En,rr,wn,Rr=(Pn=Dn.detail)===null||Pn===void 0||((En=Pn.learning_status)===null||En===void 0)?void 0:En[0],Er=(rr=Dn.detail)===null||rr===void 0||((wn=rr.learning_status)===null||wn===void 0)?void 0:wn[1];if(Rr==="can")return e.a.createElement(h.a,{onClick:Ls,type:"primary"},"\u5F00\u59CB\u5B66\u4E60");if(Rr==="disabled"){if(Er==="try"||Er==="unpayed")return e.a.createElement(h.a,{loading:Ss,onClick:Hi,type:"primary"},"\u7ACB\u5373\u8D2D\u4E70");if(Er==="expired")return e.a.createElement(h.a,{disabled:!0,type:"primary"},"\u5DF2\u8FC7\u671F");if(Er==="buyed")return e.a.createElement(h.a,{disabled:!0,type:"primary"},"\u672A\u5F00\u59CB")}},Vr=function(){var Mn=Object(p.a)(r.a.mark(function Pn(){var En,rr,wn,Rr,Er,jr,Ia,Ja,bi,mi,Ei,zo;return r.a.wrap(function(Cs){for(;;)switch(Cs.prev=Cs.next){case 0:if(mi=function(){var el=Object(p.a)(r.a.mark(function as(){var hs;return r.a.wrap(function(nl){for(;;)switch(nl.prev=nl.next){case 0:return nl.next=2,Object(ue.a)("/api/users/".concat(Ji.userInfo.login,"/subjects/request_certificate.json?subject_id=").concat(_a.pathId),{method:"post"});case 2:hs=nl.sent,(hs==null?void 0:hs.status)===0&&(R.b.info("\u63D0\u4EA4\u6210\u529F"),Lr({type:"pathsDetail/getRightData",payload:{id:_a.pathId}}));case 4:case"end":return nl.stop()}},as)}));return function(){return el.apply(this,arguments)}}(),(En=Ji.userInfo)!==null&&En!==void 0&&En.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(pe.Q)("/account/certification")}}),Cs.abrupt("return",!1);case 4:if(!(((rr=Dn.rightData)===null||rr===void 0||((wn=rr.progress)===null||wn===void 0)?void 0:wn.certificated)==="drafted")){Cs.next=6;break}return Cs.abrupt("return",!1);case 6:if(!(((Rr=Dn.rightData)===null||Rr===void 0||((Er=Rr.progress)===null||Er===void 0)?void 0:Er.certificated)==="none"||((jr=Dn.rightData)===null||jr===void 0||((Ia=jr.progress)===null||Ia===void 0)?void 0:Ia.certificated)==="rejected")){Cs.next=9;break}return((Ei=Dn.rightData)===null||Ei===void 0?void 0:Ei.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:mi}):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((zo=Dn.rightData)===null||zo===void 0?void 0:zo.progress.learned,"%\uFF0C\u5EFA\u8BAE\u7533\u8BF7\u540E\u7EE7\u7EED\u8FDB\u884C\u8BFE\u7A0B\u5B66\u4E60"),okText:"\u786E\u5B9A\u7533\u8BF7",onOk:mi}),Cs.abrupt("return",!1);case 9:((Ja=Dn.rightData)===null||Ja===void 0||((bi=Ja.progress)===null||bi===void 0)?void 0:bi.certificated)==="passed"&&No(!0);case 10:case"end":return Cs.stop()}},Pn)}));return function(){return Mn.apply(this,arguments)}}(),vr=!!((Je=Dn.detail)!==null&&Je!==void 0&&Je.participant_count)&&!((Te=Dn.detail)!==null&&Te!==void 0&&Te.allow_statistics),ua=((Ve=Dn.detail)===null||Ve===void 0||((Be=Ve.courses)===null||Be===void 0)?void 0:Be.findIndex(function(Mn){return(Mn==null?void 0:Mn.course_id)===(pn==null?void 0:pn.course_id)}))+1,Or=ua===((at=Dn.detail)===null||at===void 0||((nt=at.courses)===null||nt===void 0)?void 0:nt.length);return e.a.createElement("section",{className:xt.a.rightWrap},((st=Dn.rightData)===null||st===void 0?void 0:st.qrcode_img)&&e.a.createElement("div",{className:xt.a.qrCode},e.a.createElement("img",{src:(ot=Dn.rightData)===null||ot===void 0?void 0:ot.qrcode_img})),((ht=Dn.rightData)===null||ht===void 0?void 0:ht.progress)&&e.a.createElement("div",{className:"".concat(xt.a.card," ").concat(xt.a.cardTop),style:{top:(Mt=Dn.detail)!==null&&Mt!==void 0&&(zt=Mt.courses)!==null&&zt!==void 0&&zt.length?"-140px":"-70px"}},parseInt(pn==null||((Dt=pn.course_status)===null||Dt===void 0)?void 0:Dt.status)===2&&pn.course_identity<6&&e.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F"),parseInt((en=pn.course_status)===null||en===void 0?void 0:en.status)===2&&(pn.course_identity<6?"":e.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F")),e.a.createElement("div",{className:xt.a.flexRow},vr&&!!((ln=Dn.detail)!==null&&ln!==void 0&&(Sn=ln.courses)!==null&&Sn!==void 0&&Sn.length)&&Or&&e.a.createElement("span",{className:"mt20"},e.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(Xt=Dn.detail)===null||Xt===void 0?void 0:Xt.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"},ha===!0?(($t=Dn.detail)===null||$t===void 0?void 0:$t.participant_count)+1:(gn=Dn.detail)===null||gn===void 0?void 0:gn.participant_count),"\u4EBA")),vr&&!((On=Dn.detail)!==null&&On!==void 0&&(nn=On.courses)!==null&&nn!==void 0&&nn.length)&&Or&&e.a.createElement("span",null,!((yn=Dn.detail)!==null&&yn!==void 0&&yn.has_participate)&&(ha===!0?e.a.createElement("span",{className:"".concat(xt.a.classButton," ").concat(xt.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):e.a.createElement("a",{className:"".concat(xt.a.classButton," ").concat(xt.a.bg28e),onClick:Ks},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D")),((Ln=Dn.detail)===null||Ln===void 0?void 0:Ln.has_participate)&&e.a.createElement("span",{className:"".concat(xt.a.classButton," ").concat(xt.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),e.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(Gn=Dn.detail)===null||Gn===void 0?void 0:Gn.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"},ha===!0?((an=Dn.detail)===null||an===void 0?void 0:an.participant_count)+1:(hn=Dn.detail)===null||hn===void 0?void 0:hn.participant_count),"\u4EBA"))),parseInt(pn==null||((fn=pn.course_status)===null||fn===void 0)?void 0:fn.status)===1&&e.a.createElement("div",{className:"mr20 c-red-ee4"},pn==null||((Cn=pn.course_status)===null||Cn===void 0)?void 0:Cn.time),e.a.createElement("p",{style:{display:pn.course_identity<6?"":"none"},className:"mb10 mt10 ".concat(xt.a.flexRowAbout)},e.a.createElement("span",{style:{display:((er=pn.course_status)===null||er===void 0?void 0:er.status)<=1?"":"none"},className:"c-light-green font14"},"\u5DF2\u5B66",(cn=Dn.rightData)===null||cn===void 0?void 0:cn.progress.learned,"%"),e.a.createElement("span",{style:{display:((Un=pn.course_status)===null||Un===void 0?void 0:Un.status)<=1?"":"none"},className:"c-light-black"},"\u5B66\u4E60\u8017\u65F6",Object(pe.Z)((Dr=Dn.rightData)===null||Dr===void 0?void 0:Dr.progress.time)," "),((cr=Dn.rightData)===null||cr===void 0||((Tr=cr.progress)===null||Tr===void 0)?void 0:Tr.certificated)!="disabled"&&e.a.createElement(h.a,{disabled:((or=Dn.rightData)===null||or===void 0||((kr=or.progress)===null||kr===void 0)?void 0:kr.certificated)==="drafted",onClick:Vr},((Qn=Dn.rightData)===null||Qn===void 0||((Ur=Qn.progress)===null||Ur===void 0)?void 0:Ur.certificated)==="none"&&"\u7533\u8BF7\u8BC1\u4E66",(($r=Dn.rightData)===null||$r===void 0||((Gr=$r.progress)===null||Gr===void 0)?void 0:Gr.certificated)==="rejected"&&"\u7533\u8BF7\u8BC1\u4E66",((mr=Dn.rightData)===null||mr===void 0||((Tn=mr.progress)===null||Tn===void 0)?void 0:Tn.certificated)==="drafted"&&"\u5BA1\u6838\u4E2D",((tr=Dn.rightData)===null||tr===void 0||((Mr=tr.progress)===null||Mr===void 0)?void 0:Mr.certificated)==="passed"&&"\u67E5\u770B\u8BC1\u4E66")),e.a.createElement(c.a,{placement:"bottom",title:"\u5B8C\u6210\u8BFE\u7A0B\u540E\u53EF\u83B7\u53D6\u8BC1\u4E66\uFF01",color:"yellow"}," ",e.a.createElement(It.a,{percent:(Fn=Dn.rightData)===null||Fn===void 0?void 0:Fn.progress.learned,showInfo:!1,style:{display:((Zn=pn.course_status)===null||Zn===void 0?void 0:Zn.status)<=1&&pn.course_identity<6?"":"none"},status:"active",strokeColor:{"0%":"#29BD8B","100%":"#29BD8B"}})),parseInt((nr=pn.course_status)===null||nr===void 0?void 0:nr.status)===2&&((Yn=Dn.detail)===null||Yn===void 0?void 0:Yn.allow_add_member)&&e.a.createElement("a",{className:xt.a.classButton,href:"".concat(pn==null?void 0:pn.first_category_url),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"),parseInt((Kn=pn.course_status)===null||Kn===void 0?void 0:Kn.status)===1&&pn.course_identity>5&&e.a.createElement("div",{className:xt.a.classButton,onClick:Es},"\u7ACB\u5373\u52A0\u5165"),parseInt((An=pn.course_status)===null||An===void 0?void 0:An.status)===1&&pn.course_identity===5&&e.a.createElement("a",{className:xt.a.classButton,href:"".concat(pn==null?void 0:pn.first_category_url),target:"_blank"},"\u7ACB\u5373\u5B66\u4E60"),parseInt((sn=pn.course_status)===null||sn===void 0?void 0:sn.status)===0&&pn.course_identity>5&&e.a.createElement("div",{className:xt.a.classButton,onClick:Es},"\u7ACB\u5373\u62A5\u540D"),parseInt((Wn=pn.course_status)===null||Wn===void 0?void 0:Wn.status)===0&&pn.course_identity===5&&e.a.createElement("div",{className:xt.a.classButton},"\u62A5\u540D\u6210\u529F"),(parseInt(pn==null||((Xn=pn.course_status)===null||Xn===void 0)?void 0:Xn.status)===0||parseInt(pn==null||((xn=pn.course_status)===null||xn===void 0)?void 0:xn.status)===1)&&pn.course_identity<5&&e.a.createElement("a",{className:xt.a.classButton,href:"".concat(pn==null?void 0:pn.first_category_url),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"),vr&&Or&&((Ar=Dn.detail)===null||Ar===void 0?void 0:Ar.has_participate)&&e.a.createElement("span",{className:"".concat(xt.a.classButton," ").concat(xt.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),vr&&Or&&!((Wr=Dn.detail)!==null&&Wr!==void 0&&Wr.has_participate)&&(ha?e.a.createElement("span",{className:"".concat(xt.a.classButton," ").concat(xt.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):e.a.createElement("span",{className:"".concat(xt.a.classButton," ").concat(xt.a.bg28e),onClick:Ks},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D")),!((Va=Dn.detail)!==null&&Va!==void 0&&Va.excellent)&&((Da=Dn.detail)===null||Da===void 0?void 0:Da.is_free)!==!0&&e.a.createElement("div",{className:xt.a.price},e.a.createElement("ul",null,e.a.createElement("li",{className:xt.a.li1},!!((ra=Dn.detail)!==null&&ra!==void 0&&ra.origin_price)&&e.a.createElement("div",{className:xt.a.discounts},"\u9650\u65F6\u4F18\u60E0"),e.a.createElement("div",{className:xt.a.realPrice},e.a.createElement("span",null,"\uFFE5"),(gi=Dn.detail)===null||gi===void 0?void 0:gi.price),!!((ai=Dn.detail)!==null&&ai!==void 0&&ai.origin_price)&&e.a.createElement("div",{className:xt.a.lineationPrice},e.a.createElement("span",null,"\uFFE5"),(Qa=Dn.detail)===null||Qa===void 0?void 0:Qa.origin_price)),e.a.createElement("li",{className:xt.a.li2},"\u8BFE\u7A0B\u6709\u6548\u671F\uFF1A",((no=Dn.detail)===null||no===void 0||((ro=no.expiration_type)===null||ro===void 0)?void 0:ro.clazz)==="1"&&"\u6C38\u4E45\u6709\u6548",((Ri=Dn.detail)===null||Ri===void 0||((Lo=Ri.expiration_type)===null||Lo===void 0)?void 0:Lo.clazz)==="2"&&"\u8D2D\u4E70\u540E".concat((Po=Dn.detail)===null||Po===void 0||((ao=Po.expiration_type)===null||ao===void 0||((Li=ao.days)===null||Li===void 0))?void 0:Li[0],"\u5929\u5185\u6709\u6548"),((Ni=Dn.detail)===null||Ni===void 0||((So=Ni.expiration_type)===null||So===void 0)?void 0:So.clazz)==="3"&&"".concat((co=Dn.detail)===null||co===void 0||((ho=co.expiration_type)===null||ho===void 0||((Ki=ho.days)===null||Ki===void 0))?void 0:Ki.join("\u5230")))),Wo()),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:Jn.a})," ",(Pi=Dn.detail)===null||Pi===void 0?void 0:Pi.learning_notes_title)),e.a.createElement("div",{ref:qi},e.a.createElement(Xe.a,{className:"fon16",value:(Vi=Dn.detail)===null||Vi===void 0?void 0:Vi.learning_notes}))),!!((Wi=Dn.rightData)!==null&&Wi!==void 0&&(vo=Wi.members)!==null&&vo!==void 0&&vo.length)&&e.a.createElement("div",{className:"".concat(xt.a.card," pb0"),style:{marginTop:(ji=Dn.detail)!==null&&ji!==void 0&&(go=ji.courses)!==null&&go!==void 0&&go.length?-135:-65}},(Xa=Dn.detail)!==null&&Xa!==void 0&&Xa.allow_add_member?Ws():e.a.createElement("span",{style:{fontSize:"16px",display:"flex",alignItems:"center"}}," ",e.a.createElement("img",{style:{marginRight:"10px"},src:$n.a})," ",(io=Dn.rightData)===null||io===void 0?void 0:io.team_title),e.a.createElement(ve,{data:(Uo=Dn.rightData)===null||Uo===void 0?void 0:Uo.members,operation:(zi=Dn.detail)===null||zi===void 0?void 0:zi.allow_add_member,handleDeleteMember:sr}),((Ti=Dn.detail)===null||Ti===void 0?void 0:Ti.allow_add_member)&&e.a.createElement(oe.a,{gutter:[0,40],justify:"center",align:"middle",className:"bg-white mt0"},e.a.createElement(le.a,{className:"c-blue current",onClick:Bs},"+ \u6DFB\u52A0\u5408\u4F5C\u8005"))),!!((fo=Dn.rightData)!==null&&fo!==void 0&&(es=fo.tags)!==null&&es!==void 0&&es.length)&&((ts=Dn.detail)===null||ts===void 0?void 0:ts.show_tag)&&e.a.createElement("div",{className:xt.a.skillWrap},e.a.createElement("p",{className:"".concat(xt.a.skillTopWrap," font16 mb20")},e.a.createElement("span",null,"\u6280\u80FD\u6807\u7B7E",e.a.createElement("span",{className:"ml5 c-grey-c"},(Yo=Dn.rightData)===null||Yo===void 0||((Xi=Yo.tags)===null||Xi===void 0)?void 0:Xi.length))),e.a.createElement(Sr.a,{option:Ms(),style:{height:370},opts:{renderer:"svg"}})),((ns=Dn.detail)===null||ns===void 0?void 0:ns.show_spoc)===1&&e.a.createElement("div",{className:"".concat(xt.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:aa.a}),"SPOC\u8BFE\u5802"),e.a.createElement(Kt,{data:(yi=Dn.Courses)===null||yi===void 0?void 0:yi.spoc_courses,handleDeleteMember:ys}),((Pa=Dn.detail)===null||Pa===void 0?void 0:Pa.show_spoc)===1&&(Dn==null||((ci=Dn.Courses)===null||ci===void 0||((Na=ci.spoc_courses)===null||Na===void 0))?void 0:Na.length)<3&&((Yi=Dn.detail)===null||Yi===void 0?void 0:Yi.allow_add_member)&&e.a.createElement(oe.a,{gutter:[0,40],justify:"center",align:"middle",className:"bg-white mt0"},e.a.createElement(le.a,{className:"c-blue current",onClick:function(){return Ao()}},"+ \u6DFB\u52A0\u8BFE\u5802"))),((yo=Dn.detail)===null||yo===void 0?void 0:yo.show_history)&&e.a.createElement("div",{className:"".concat(xt.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:aa.a}),"\u5386\u53F2\u8BFE\u5802"),e.a.createElement(Kt,{data:Qo==null?void 0:Qo.spoc_courses,handleDeleteMember:ys}),((Ui=Dn.detail)===null||Ui===void 0?void 0:Ui.show_history)&&(Qo==null||((Jo=Qo.spoc_courses)===null||Jo===void 0)?void 0:Jo.length)<3&&((ko=Dn.detail)===null||ko===void 0?void 0:ko.allow_add_member)&&e.a.createElement(oe.a,{gutter:[0,40],justify:"center",align:"middle",className:"bg-white mt0"},e.a.createElement(le.a,{className:"c-blue current",onClick:function(){return Ao(1)}},"+ \u6DFB\u52A0\u8BFE\u5802"))),e.a.createElement(bt,{onReloadData:bs}),e.a.createElement(un,{onReloadData:bs,data:Qo}),e.a.createElement(Ea,{visible:pi,onCancel:function(){No(!1)},data:((Zo=Dn.rightData)===null||Zo===void 0||((Bi=Zo.progress)===null||Bi===void 0)?void 0:Bi.info)||{}}))},Sa=Object(u.a)(function(Ge){var Ye=Ge.pathsDetail,Je=Ge.user,Te=Ge.loading,Ve=Ge.globalSetting,Be=Ge.classroomList;return{pathsDetail:Ye,user:Je,globalSetting:Ve,loading:Te.models.index,classroomList:Be}})(ja),Ua=I("cWXX"),ka=I("/ezw"),Ca=I("VlDO"),Jr=I.n(Ca),Wa=I("bbsP"),Ma=I("/wGt"),Ta=I("DjyN"),ui=I("NUBc"),Ai=I("/zsF"),Ba=I("PArb"),Xr=I("cCSd"),hr=I.n(Xr),Yr=re.a.Search,na=[{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"}]}],La=function(Ye){var Je,Te=Ye.classroomList,Ve=Ye.loading,Be=Ye.dispatch,at=Ye.cb,nt=Ye.shixunIds,st=nt===void 0?[]:nt,ot=Object(s.i)(),ht=Object(s.h)(),Mt=Te.actionTabs,zt=ne.a.useForm(),Dt=Object(E.a)(zt,1),en=Dt[0],ln=Te.shixunLists,Sn=Object(n.useState)([]),Xt=Object(E.a)(Sn,2),$t=Xt[0],gn=Xt[1],On=Object(n.useState)({page:1,type:"all",diff:0,status:"all",order:"desc",limit:20,sort:"myshixuns_count"}),nn=Object(E.a)(On,2),yn=nn[0],Ln=nn[1];Object(n.useEffect)(function(){Te.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"&&(yn.page=1,Be({type:"classroomList/getShixunLists",payload:Object(M.a)({},yn)}))},[Te.actionTabs.key]),Object(n.useEffect)(function(){return Te.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")}},[Te.actionTabs.key]);var Gn=function(){Be({type:"classroomList/setActionTabs",payload:{}}),Ln({page:1,type:"all",diff:0,status:"all",order:"desc",limit:20,sort:"myshixuns_count"})};return Te.actionTabs.key!=="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"?null:e.a.createElement(Ma.a,{placement:"bottom",height:"100%",closable:!1,visible:Te.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",key:"bottom",className:hr.a.drawer,footer:e.a.createElement("div",{className:"tc"},e.a.createElement(h.a,{size:"large",onClick:function(){Gn(),gn([]),at("\u53D6\u6D88")},style:{marginRight:8}},"\u53D6\u6D88"),e.a.createElement(h.a,{size:"large",onClick:Object(p.a)(r.a.mark(function an(){var hn,fn,Cn,er;return r.a.wrap(function(Un){for(;;)switch(Un.prev=Un.next){case 0:hn=function(cr){var Tr=$t[cr];if(st.includes(Tr)){var or,kr;return R.b.info("\u8BF7\u52FF\u91CD\u590D\u9009\u62E9\uFF1A".concat(ln==null||((or=ln.shixun_list)===null||or===void 0||((kr=or.find(function(Qn){return Qn.id===Tr}))===null||kr===void 0))?void 0:kr.title)),{v:void 0}}},fn=0;case 2:if(!(fn<($t==null?void 0:$t.length))){Un.next=9;break}if(Cn=hn(fn),!(typeof Cn=="object")){Un.next=6;break}return Un.abrupt("return",Cn.v);case 6:fn++,Un.next=2;break;case 9:return Un.next=11,Object(K.T)({id:Te.actionTabs.id,subject_id:Te.actionTabs.subject_id,shixun_ids:Object(a.a)($t)});case 11:er=Un.sent,gn([]),er!=null&&er.shixuns_list&&(Gn(),at(er.shixuns_list));case 14:case"end":return Un.stop()}},an)})),type:"primary"},"\u786E\u5B9A"))},e.a.createElement("section",{className:"tc"},e.a.createElement(Yr,{placeholder:"\u5B9E\u8BAD\u4FE1\u606F/\u9662\u6821\u540D\u79F0/\u521B\u5EFA\u8005",enterButton:"\u641C\u7D22",size:"large",className:hr.a.search,onSearch:function(hn){yn.keyword=hn,yn.page=1,Be({type:"classroomList/getShixunLists",payload:Object(M.a)({},yn)})}})),e.a.createElement("section",{className:"edu-container"},na.map(function(an,hn){var fn;return e.a.createElement("ul",{className:hr.a.menu,key:hn},e.a.createElement("li",null,an.name),an==null||((fn=an.children)===null||fn===void 0)?void 0:fn.map(function(Cn,er){return e.a.createElement("li",{className:yn[an.id]==Cn.id?hr.a.actived:"",onClick:function(){yn[an.id]=Cn.id,Ln(Object(M.a)({},yn)),Be({type:"classroomList/getShixunLists",payload:Object(M.a)({},yn)})}},e.a.createElement("strong",null,Cn.name))}))}),ln==null||((Je=ln.shixun_list)===null||Je===void 0)?void 0:Je.map(function(an,hn){return e.a.createElement("div",{className:hr.a.listItem,key:hn},e.a.createElement(X.a,{checked:$t.includes(an.id),value:an.id,onChange:function(Cn){var er=$t.indexOf(an.id);$t.indexOf(an.id)>-1?gn($t.filter(function(cn){return cn!==an.id})):gn($t.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(k.v)()&&(an==null?void 0:an.mark_status)===1&&e.a.createElement(c.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(k.v)()&&(an==null?void 0:an.mark_status)===2&&e.a.createElement(c.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(k.v)()&&(an==null?void 0:an.mark_status)===3&&e.a.createElement(c.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(fn,Cn){return e.a.createElement("span",{key:Cn,className:"mr30 font12"},"\u7B2C",Cn+1,"\u5173 ",fn," ")})),e.a.createElement(Ba.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(ui.a,{current:yn.page||1,hideOnSinglePage:!0,showSizeChanger:!1,defaultPageSize:20,showQuickJumper:!0,total:ln==null?void 0:ln.shixuns_count,onChange:function(hn){yn.page=hn,Be({type:"classroomList/getShixunLists",payload:Object(M.a)({},yn)})}})))},ia=Object(u.a)(function(Ge){var Ye=Ge.classroomList,Je=Ge.loading;return{classroomList:Ye,loading:Je}})(La),eo=I("Ot1p"),za=I("qdXH"),Ga=I("sBCT"),Qi=I("500L"),wo=I("giR+"),wa=I("fyUT"),Ro=I("dwhp"),Di=I("IxHN"),$o=I("M8RZ"),Fi=I("BdwD"),ls=I("9nDM"),uo=function(Ye){var Je=Ye.user,Te=Ye.onReplyDiscuss,Ve=Ye.dispatch,Be=Ye.id,at=Ye.activeDiscussIndex,nt=Object(n.useState)(""),st=Object(E.a)(nt,2),ot=st[0],ht=st[1];function Mt(en){ht(en)}var zt=Object(s.i)();function Dt(){if(!ot){R.b.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}Te(Be,ot),Ve({type:"pathsDetail/getPathsDetail",payload:{id:zt.pathId}}),ht("")}return e.a.createElement("div",{key:Be,className:"discuss-item-editor",style:{display:at===Be?"block":"none",width:"100%"}},e.a.createElement(eo.a,{miniToolbar:!0,startInit:at===Be,defaultValue:ot,id:Be,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:Mt}),e.a.createElement("a",{onClick:Dt,className:"btn-send"},"\u53D1\u9001"))},Mi=Object(u.a)(function(Ge){var Ye=Ge.shixunsDetail,Je=Ge.loading,Te=Ge.globalSetting;return{shixunsDetail:Ye,globalSetting:Te,loading:Je.models.index}})(uo),Go=function(Ye){var Je=Ye.user,Te=Ye.upDataList,Ve=Ye.page,Be=Ye.getTypeNumber,at=Ye.dispatch,nt=Object(s.i)(),st=function(){var ot=Object(p.a)(r.a.mark(function ht(Mt,zt){var Dt;return r.a.wrap(function(ln){for(;;)switch(ln.prev=ln.next){case 0:return ln.next=2,Object(K.Q)({id:Mt,content:zt});case 2:Dt=ln.sent,(Dt==null?void 0:Dt.status)===0&&Te(1);case 4:case"end":return ln.stop()}},ht)}));return function(Mt,zt){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(gt.a.IMG_SERVER,"/images/").concat(Je.image_url),width:"50"})),e.a.createElement("section",null,e.a.createElement(Mi,{id:nt.pathId,activeDiscussIndex:nt.pathId,onReplyDiscuss:st})))},ps=Object(u.a)(function(Ge){var Ye=Ge.shixunsDetail,Je=Ge.loading,Te=Ge.globalSetting;return{shixunsDetail:Ye,globalSetting:Te,loading:Je.models.index}})(Go),qa=I("fXAG");function to(Ge){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Object(ue.c)("/discusses.json?page=".concat(Ye-1,"&container_identifier=").concat(Ge,"&container_type=Shixun"))}function Vo(Ge,Ye){return Object(ue.f)("/discusses/".concat(Ge,"/top_or_down_discuss.json"),{top:Ye})}function Xo(Ge,Ye){return Object(ue.f)("/discusses/".concat(Ge,"/plus.json"),{container_type:"Discuss",type:Ye?1:0})}function ur(Ge,Ye){return Object(ue.f)("/discusses/".concat(Ge,"/hidden.json"),Ye)}function Fr(Ge,Ye){return Object(ue.f)("/discusses/".concat(Ge,"/reward_code.json"),Ye)}function xr(Ge){return Object(ue.a)("/api/discusses/".concat(Ge,".json"),{method:"delete"})}function oa(Ge,Ye){return Object(ue.f)("/discusses/".concat(Ge,"/reply.json"),{container_type:"Shixun",content:Ye})}function va(Ge){return Object(ue.f)("/discusses.json",Ge)}var xa=I("QcdW"),ca=I("kaH+");function Fa(Ge){var Ye=Ge.data,Je=Ge.index,Te=Ge.adminOrOperator,Ve=Ge.parentDiscussIndex,Be=Ge.shixunIdentifier,at=Ge.isDelete,nt=Ge.user,st=Ge.onSetRewardData,ot=Ge.onSetActionType,ht=Ge.deleteCommentAlert,Mt=Ge.shixunName,zt=Ye.author,Dt=Ye.can_delete,en=Ye.manage,ln=Ye.content,Sn=Ye.hidden,Xt=Ye.id,$t=Ye.reward,gn=Ye.time;function On(){st({id:Xt,index:Je,user_id:zt.user_id,parentDiscussIndex:Ve})}function nn(){ot({id:Xt,index:Je,params:{hidden:Sn?"0":"1",container_identifier:Be},type:"hidden-discuss",parentDiscussIndex:Ve,message:Sn?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}function yn(){if(ht){T.a.info({title:"\u63D0\u793A",content:e.a.createElement("div",{className:"tc"}," ","\u8BE5\u6761\u8BC4\u8BBA\u6765\u81EA\u300A",Mt,"\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:Xt,index:Je,type:"delete-discuss",parentDiscussIndex:Ve,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(zt.login),target:"_blank"},zt.name),e.a.createElement("span",{className:"grey"},gn),$t?e.a.createElement("a",{className:"c-orange gift",title:"\u5DF2\u5956\u52B1\u91D1\u5E01".concat($t)},e.a.createElement("i",{className:"iconfont icon-gift c-orange "}),e.a.createElement("span",null,$t)):null),e.a.createElement("div",{className:"btn-group"},Te?e.a.createElement("a",{onClick:On,title:"\u7ED9TA\u5956\u52B1\u91D1\u5E01"},e.a.createElement("i",{className:"iconfont icon-jiangli"})):null,Te?e.a.createElement("a",{onClick:nn,title:Sn?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},e.a.createElement("i",{className:Sn?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,en?e.a.createElement("a",{onClick:yn,title:"\u5220\u9664"},e.a.createElement("i",{className:"iconfont icon-shanchu"})):null)),e.a.createElement(Xe.a,{className:"discuss-content",value:ln}))}var Si=function(Ge){var Ye=Ge.data,Je=Ge.index,Te=Ge.shixunIdentifier,Ve=Ge.adminOrOperator,Be=Ge.identity,at=Ge.onTopOrDownDiscuss,nt=Ge.onPlusDiscuss,st=Ge.onSetActionType,ot=Ge.onSetRewardData,ht=Ge.user,Mt=Ge.isDelete,zt=Ge.activeDiscussIndex,Dt=Ge.onReplyDiscuss,en=Ge.onSetActiveDiscussIndex,ln=Ye.content,Sn=Ye.children,Xt=Ye.game_url,$t=Ye.hidden,gn=Ye.id,On=Ye.position,nn=Ye.praise_count,yn=Ye.reward,Ln=Ye.sticky,Gn=Ye.time,an=Ye.user_praise,hn=Ye.game_passed,fn=Ye.delete_comment_alert,Cn=Ye.author,er=Ye.shixun_name,cn=Ye.manage;function Un(){en(gn)}function Dr(){at(gn,!Ln,Je)}function cr(){nt(gn,!an,Je)}function Tr(){ot({id:gn,index:Je,user_id:Cn.user_id})}function or(){if(fn){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:gn,index:Je,type:"delete-discuss",message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}function kr(){st({id:gn,index:Je,params:{hidden:$t?"0":"1",container_identifier:Te},type:"hidden-discuss",message:$t?"\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($r){var Gr=$r.target,mr=Gr.nodeName,Tn=Gr.src;mr==="IMG"&&(Br.a.publish("preview-image",Tn),console.log("src:",Tn))};return e.a.createElement("div",{className:"discuss-item-container",key:gn},e.a.createElement("a",{href:"/users/".concat(Cn.login),target:"_blank"},e.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",src:"".concat(gt.a.IMG_SERVER,"/images/").concat(Cn.image_url),width:"50"})),e.a.createElement("section",null,e.a.createElement("div",{className:"discuss-info"},e.a.createElement("a",{href:"/users/".concat(Cn.login),target:"_blank"},Cn.name),e.a.createElement("span",{className:"grey"},Gn),On?e.a.createElement("span",{className:"c-green"}," [\u7B2C",On,"\u5173] "):null,Xt?e.a.createElement("a",{href:Xt,target:"_blank",className:"view-code",title:"\u70B9\u51FB\u67E5\u770BTA\u7684\u4EE3\u7801\u9875\u9762"},"\u67E5\u770B"):null,yn?e.a.createElement("a",{className:"c-orange gift",title:"\u5DF2\u5956\u52B1\u91D1\u5E01".concat(yn)},e.a.createElement("i",{className:"iconfont icon-gift c-orange "}),e.a.createElement("span",null,yn)):null,Be<=5?e.a.createElement("span",{style:{flex:"1",textAlign:"right",color:hn===1?"#29bd8b":""}},hn||hn===0?hn===1?"\u5DF2\u901A\u5173":"\u672A\u901A\u5173":""):null),e.a.createElement("div",{onClick:Qn},e.a.createElement(Xe.a,{className:"discuss-content",value:ln})),Sn&&Sn.length>0?e.a.createElement("div",{className:"reply-discuss-container",onClick:Qn},Sn.map(function(Ur,$r){return e.a.createElement(Fa,{key:Ur.id,data:Ur,index:$r,deleteCommentAlert:fn,shixunName:er,shixunIdentifier:Te,adminOrOperator:Ve,user:ht,isDelete:Mt,onSetRewardData:ot,onSetActionType:st,parentDiscussIndex:Je})})):null,e.a.createElement("div",{className:"btn-group"},Ve?e.a.createElement("a",{onClick:Tr,title:"\u7ED9TA\u5956\u52B1\u91D1\u5E01"},e.a.createElement("i",{className:"iconfont icon-jiangli"})):null,Ve?e.a.createElement("a",{onClick:kr,title:$t?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},e.a.createElement("i",{className:$t?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,cn&&(!Sn||Sn.length==0)&&e.a.createElement("a",{onClick:or,title:"\u5220\u9664"},e.a.createElement("i",{className:"iconfont icon-shanchu"})),e.a.createElement("a",{onClick:Un,title:"\u56DE\u590D"},e.a.createElement("i",{className:"iconfont icon-huifu1"})),e.a.createElement("a",{onClick:cr,className:an?"c-orange":""},e.a.createElement("i",{className:an?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),e.a.createElement("span",null,nn||""))),e.a.createElement(Mi,{id:gn,activeDiscussIndex:zt,onReplyDiscuss:Dt})))},sa={showRewardDialog:!1,data:null,page:1,loading:!1,actionType:null,activeDiscussIndex:null};function Io(Ge,Ye){switch(Ye.type){case qa.Q:return Object(M.a)(Object(M.a)({},Ge),{},{loading:!0});case qa.X:return Object(M.a)(Object(M.a)({},Ge),{},{showRewardDialog:!0});case qa.b:return Object(M.a)(Object(M.a)({},Ge),{},{showRewardDialog:!1});case qa.l:return Object(M.a)(Object(M.a)({},Ge),Ye.payload);case qa.ab:return Object(M.a)(Object(M.a)({},Ge),Ye.payload);case qa.x:return Object(M.a)(Object(M.a)({},Ge),Ye.payload);case qa.z:return Object(M.a)(Object(M.a)({},Ge),Ye.payload);case qa.H:return Object(M.a)(Object(M.a)({},Ge),Ye.payload);case qa.a:return Object(M.a)(Object(M.a)({},Ge),Ye.payload);default:throw new Error}}var br=function(Ge){var Ye=Ge.shixunIdentifier,Je=Ge.identity,Te=Ge.activeIndex,Ve=Ge.user,Be=Ge.isShixunDetail,at=Be===void 0?!1:Be,nt=Ge.isDelete,st=Ge.getTypeNumber,ot=Object(n.useReducer)(Io,sa),ht=Object(E.a)(ot,2),Mt=ht[0],zt=ht[1],Dt=Mt.page,en=Mt.loading,ln=Mt.data,Sn=Mt.actionType,Xt=Mt.showRewardDialog,$t=Mt.activeDiscussIndex,gn=Object(n.useRef)(),On=Object(n.useRef)(),nn=Object(s.i)();function yn(Fn){return Ln.apply(this,arguments)}function Ln(){return Ln=Object(p.a)(r.a.mark(function Fn(Zn){var nr;return r.a.wrap(function(Kn){for(;;)switch(Kn.prev=Kn.next){case 0:if(!en){Kn.next=2;break}return Kn.abrupt("return");case 2:return Kn.prev=2,zt({type:qa.Q}),Kn.next=6,Object(K.D)(Object(M.a)(Object(M.a)({},nn),{},{page:Zn}));case 6:nr=Kn.sent,zt({type:qa.l,payload:{activeDiscussIndex:null,page:Zn,data:nr,loading:!1}}),Kn.next=13;break;case 10:Kn.prev=10,Kn.t0=Kn.catch(2),console.log(Kn.t0);case 13:case"end":return Kn.stop()}},Fn,null,[[2,10]])})),Ln.apply(this,arguments)}function Gn(Fn){document.body.scrollIntoView(),yn(Fn)}function an(Fn,Zn,nr){return hn.apply(this,arguments)}function hn(){return hn=Object(p.a)(r.a.mark(function Fn(Zn,nr,Yn){var Kn;return r.a.wrap(function(sn){for(;;)switch(sn.prev=sn.next){case 0:return sn.prev=0,sn.next=3,Xo(Zn,nr);case 3:Kn=sn.sent,Tn[Yn].user_praise=nr,Tn[Yn].praise_count=Kn.praise_count,zt({type:qa.x,payload:{data:Object(M.a)(Object(M.a)({},ln),{},{comments:Tn})}}),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()}},Fn,null,[[0,9]])})),hn.apply(this,arguments)}function fn(Fn,Zn,nr){return Cn.apply(this,arguments)}function Cn(){return Cn=Object(p.a)(r.a.mark(function Fn(Zn,nr,Yn){return r.a.wrap(function(An){for(;;)switch(An.prev=An.next){case 0:return An.prev=0,An.next=3,Vo(Zn,nr);case 3:Tn[Yn].sticky=nr,zt({type:qa.ab,payload:{data:Object(M.a)(Object(M.a)({},ln),{},{comments:Tn})}}),An.next=10;break;case 7:An.prev=7,An.t0=An.catch(0),console.log(An.t0);case 10:case"end":return An.stop()}},Fn,null,[[0,7]])})),Cn.apply(this,arguments)}function er(){zt({type:qa.z,payload:{actionType:null}})}function cn(){return Un.apply(this,arguments)}function Un(){return Un=Object(p.a)(r.a.mark(function Fn(){var Zn,nr,Yn,Kn,An,sn,Wn,Xn;return r.a.wrap(function(Ar){for(;;)switch(Ar.prev=Ar.next){case 0:if(Zn=Sn.id,nr=Sn.params,Yn=Sn.type,Kn=Sn.index,An=Sn.parentDiscussIndex,!(Yn==="hidden-discuss")){Ar.next=6;break}return Ar.next=4,ur(Zn,nr);case 4:An?Tn[An].children[Kn].hidden=nr.hidden==1:Tn[Kn].hidden=nr.hidden==1,zt({type:qa.z,payload:{actionType:null,data:Object(M.a)(Object(M.a)({},ln),{},{comments:Tn})}});case 6:if(!(Yn==="delete-discuss")){Ar.next=31;break}return Ar.next=9,xr(Zn);case 9:if(!(An||An===0)){Ar.next=22;break}sn=Tn[An].children,Wn=sn.length-1;case 12:if(!(Wn>=0)){Ar.next=19;break}if(!(sn[Wn].id===Zn)){Ar.next=16;break}return sn.splice(Wn,1),Ar.abrupt("break",19);case 16:Wn--,Ar.next=12;break;case 19:Tn[An].children=sn,Ar.next=30;break;case 22:Xn=Tn.length-1;case 23:if(!(Xn>=0)){Ar.next=30;break}if(!(Tn[Xn].id===Zn)){Ar.next=27;break}return Tn.splice(Xn,1),Ar.abrupt("break",30);case 27:Xn--,Ar.next=23;break;case 30:zt({type:qa.z,payload:{actionType:null,data:Object(M.a)(Object(M.a)({},ln),{},{comments:Tn})}});case 31:case"end":return Ar.stop()}},Fn)})),Un.apply(this,arguments)}function Dr(Fn){zt({type:qa.z,payload:{actionType:Fn}})}function cr(){zt({type:qa.b})}function Tr(){return or.apply(this,arguments)}function or(){return or=Object(p.a)(r.a.mark(function Fn(){var Zn,nr,Yn,Kn,An,sn,Wn;return r.a.wrap(function(xn){for(;;)switch(xn.prev=xn.next){case 0:return Zn=gn.current,nr=Zn.id,Yn=Zn.index,Kn=Zn.score,An=Zn.user_id,sn=Zn.parentDiscussIndex,xn.next=3,Fr(nr,{container_type:"Discusses",score:Kn,user_id:An});case 3:Wn=xn.sent,sn?Tn[sn].children[Yn].reward=Wn.code:Tn[Yn].reward=Wn.code,zt({type:qa.H,payload:{showRewardDialog:!1,data:Object(M.a)(Object(M.a)({},ln),{},{comments:Tn})}}),gn.current=null;case 7:case"end":return xn.stop()}},Fn)})),or.apply(this,arguments)}function kr(Fn){gn.current=Fn,zt({type:qa.X})}function Qn(Fn){gn.current.score=Fn}function Ur(Fn,Zn){return $r.apply(this,arguments)}function $r(){return $r=Object(p.a)(r.a.mark(function Fn(Zn,nr){return r.a.wrap(function(Kn){for(;;)switch(Kn.prev=Kn.next){case 0:return Kn.prev=0,Kn.next=3,oa(Zn,nr);case 3:yn(Dt),Kn.next=9;break;case 6:Kn.prev=6,Kn.t0=Kn.catch(0),console.log(Kn.t0);case 9:case"end":return Kn.stop()}},Fn,null,[[0,6]])})),$r.apply(this,arguments)}function Gr(Fn){$t===Fn?zt({type:qa.a,payload:{activeDiscussIndex:null}}):zt({type:qa.a,payload:{activeDiscussIndex:Fn}})}if(Object(n.useEffect)(function(){function Fn(){return Zn.apply(this,arguments)}function Zn(){return Zn=Object(p.a)(r.a.mark(function nr(){return r.a.wrap(function(Kn){for(;;)switch(Kn.prev=Kn.next){case 0:if(!(Te===3&&!ln&&Ye)){Kn.next=3;break}return Kn.next=3,yn(Dt);case 3:case"end":return Kn.stop()}},nr)})),Zn.apply(this,arguments)}Fn()},[nn.pathId]),!ln)return e.a.createElement(V.a,{spinning:!0},e.a.createElement("div",{style:{height:"300px",width:"100%"}}));var mr=ln.disscuss_count,Tn=ln.comments,tr=ln.all,Mr=ln.can_hidden;return e.a.createElement(n.Fragment,null,e.a.createElement("div",{className:"discuss-container",ref:On},mr===0?e.a.createElement(Fi.a,null):null,Object(k.p)()&&e.a.createElement(ps,{getTypeNumber:st,upDataList:yn,page:Dt,user:Ve}),e.a.createElement("aside",{className:"bg-white"},Tn==null?void 0:Tn.map(function(Fn,Zn){return e.a.createElement(Si,{user:Ve,key:Fn.id,data:Fn,index:Zn,identity:Je,onPaginationChange:Gn,shixunIdentifier:Ye,isDelete:nt,onSetActionType:Dr,onTopOrDownDiscuss:fn,adminOrOperator:Mr,onPlusDiscuss:an,onSetRewardData:kr,activeDiscussIndex:$t,onSetActiveDiscussIndex:Gr,onReplyDiscuss:Ur})})),mr>10?e.a.createElement("div",{className:"pagination-container tc"},e.a.createElement(ui.a,{showQuickJumper:!0,showSizeChanger:!1,onChange:Gn,current:Dt,total:mr})):null),e.a.createElement($o.a,null,e.a.createElement(T.a,{centered:!0,title:"\u63D0\u793A",visible:!!Sn,onOk:cn,onCancel:er},e.a.createElement("p",null,Sn?Sn.message:"")),e.a.createElement(T.a,{centered:!0,width:400,title:"\u5956\u52B1\u8BBE\u7F6E",visible:Xt,onCancel:cr,onOk:Tr},e.a.createElement(wa.a,{placeholder:"\u8BF7\u8F93\u5165\u5956\u52B1\u7684\u91D1\u5E01\u6570\u91CF",min:1,onChange:Qn,style:{width:"228px"}}))))},Pr=I("jZGp"),Qr=I("LvDl"),$a=["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"],Mo=function(Ye){var Je,Te,Ve,Be,at,nt=Ye.pathsDetail,st=Ye.user,ot=Ye.globalSetting,ht=Ye.loading,Mt=Ye.dispatch,zt=Object(C.a)(Ye,["pathsDetail","user","globalSetting","loading","dispatch"]),Dt=Object(s.i)(),en=nt.stageData,ln=Object(n.useState)([]),Sn=Object(E.a)(ln,2),Xt=Sn[0],$t=Sn[1],gn=Object(n.useState)(-1),On=Object(E.a)(gn,2),nn=On[0],yn=On[1],Ln=Object(n.useState)(!1),Gn=Object(E.a)(Ln,2),an=Gn[0],hn=Gn[1],fn=Object(n.useState)(!1),Cn=Object(E.a)(fn,2),er=Cn[0],cn=Cn[1],Un=Object(n.useState)(!1),Dr=Object(E.a)(Un,2),cr=Dr[0],Tr=Dr[1],or=Object(n.useState)({name:"",is_jupyter:!1}),kr=Object(E.a)(or,2),Qn=kr[0],Ur=kr[1],$r=ne.a.useForm(),Gr=Object(E.a)($r,1),mr=Gr[0],Tn=ne.a.useForm(),tr=Object(E.a)(Tn,1),Mr=tr[0],Fn=ne.a.useForm(),Zn=Object(E.a)(Fn,1),nr=Zn[0],Yn=ne.a.useForm(),Kn=Object(E.a)(Yn,1),An=Kn[0],sn=Object(n.useState)(!1),Wn=Object(E.a)(sn,2),Xn=Wn[0],xn=Wn[1],Ar=Object(n.useState)([]),Wr=Object(E.a)(Ar,2),Va=Wr[0],Da=Wr[1],ra=Object(n.useState)(!1),gi=Object(E.a)(ra,2),ai=gi[0],Qa=gi[1],no=Object(n.useState)("All"),ro=Object(E.a)(no,2),Ri=ro[0],Lo=ro[1],Po=Object(n.useState)(!1),ao=Object(E.a)(Po,2),Li=ao[0],Ni=ao[1],So=Object(n.useState)(0),co=Object(E.a)(So,2),ho=co[0],Ki=co[1],Pi=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}]),Vi=Object(E.a)(Pi,2),Wi=Vi[0],vo=Vi[1],ji=Object(n.useState)(),go=Object(E.a)(ji,2),Xa=go[0],io=go[1],Uo=Object(n.useState)([]),zi=Object(E.a)(Uo,2),Ti=zi[0],fo=zi[1],es=function(kt){if(kt.key=="Enter"){var Zt=nr.getFieldValue("tag");if(nr.setFieldsValue({tag:""}),!Zt){R.b.info("\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A");return}if(Ti.filter(function(bn){return bn===Zt}).length>0){R.b.info("\u5DF2\u6709\u76F8\u540C\u540D\u79F0\u6807\u7B7E");return}Ti.push(Zt),fo(Object(a.a)(Ti))}},ts=function(kt,Zt){kt.preventDefault(),fo(Object(a.a)(Ti.filter(function(bn){return bn!=Zt})))},Yo=((Je=nt.detail)===null||Je===void 0?void 0:Je.is_free)||((Te=nt.detail)===null||Te===void 0?void 0:Te.can_learning),Xi=function(){var kt=nt.detail,Zt=kt.shixuns_count,bn=Zt===void 0?0:Zt,Jt=kt.videos_count,qn=Jt===void 0?0:Jt,ir=kt.attachment_count,dr=ir===void 0?0:ir,Zr=kt.disscuss_count,pn=Zr===void 0?0:Zr,ii={All:bn+qn+dr,Shixun:bn,VideoItem:qn,Attachment:dr,Discusses:pn},ki=Wi.map(function(Ra){return Object(M.a)(Object(M.a)({},Ra),{},{number:ii[Ra.type]})});vo(ki)};Object(n.useEffect)(function(){Xi()},[nt.detail]),Object(n.useEffect)(function(){Xi(),$t(Object(a.a)(en))},[en]);var ns=function(){var _n=Object(p.a)(r.a.mark(function kt(Zt,bn){var Jt;return r.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:if(Mt({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!bn){ir.next=7;break}return ir.next=4,Object(mn.C)({id:Zt});case 4:ir.t0=ir.sent,ir.next=10;break;case 7:return ir.next=9,Object(mn.D)({id:Zt});case 9:ir.t0=ir.sent;case 10:if(Jt=ir.t0,Mt({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(Jt!=null&&Jt.game_identifier||Jt!=null&&Jt.identifier)){ir.next=15;break}return Object(pe.Q)(bn?"/tasks/".concat(Jt==null?void 0:Jt.identifier,"/jupyter"):"/tasks/".concat(Jt.game_identifier)),ir.abrupt("return");case 15:(Jt==null?void 0:Jt.status)===-3?Object(pe.o)():(Jt==null?void 0:Jt.status)===2?yi(Jt==null?void 0:Jt.message):(Jt==null?void 0:Jt.status)===3&&Pa(Jt==null?void 0:Jt.message);case 16:case"end":return ir.stop()}},kt)}));return function(Zt,bn){return _n.apply(this,arguments)}}(),yi=function _n(kt){var Zt;kt=(Zt=kt)!==null&&Zt!==void 0&&Zt.includes(".json")?kt:"".concat(kt,".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 bn=Object(p.a)(r.a.mark(function qn(){var ir,dr;return r.a.wrap(function(pn){for(;;)switch(pn.prev=pn.next){case 0:return pn.next=2,Object(Rt.S)({url:kt});case 2:if(ir=pn.sent,ir){pn.next=5;break}return pn.abrupt("return");case 5:return R.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),pn.next=8,Object(mn.D)({id:ir.shixun_identifier});case 8:if(dr=pn.sent,!(dr!=null&&dr.game_identifier)){pn.next=12;break}return Object(pe.Q)("/tasks/".concat(dr.game_identifier)),pn.abrupt("return");case 12:(dr==null?void 0:dr.status)===2?_n(dr==null?void 0:dr.message):(dr==null?void 0:dr.status)===3&&Pa(dr==null?void 0:dr.message);case 13:case"end":return pn.stop()}},qn)}));function Jt(){return bn.apply(this,arguments)}return Jt}()})},Pa=function(kt){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",kt,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},ci=function(){if(!bo())return;xn(!0)};Object(n.useEffect)(function(){if(Xn){var _n={shixuns_list:[],attachments_list:[],items:[]};Yi(Xt.length,_n),$t([].concat(Object(a.a)(Xt),[_n]))}},[Xn]);var Na=function(){setTimeout(function(){nn===Xt.length-1&&Xn&&(dn(),$t(Xt.filter(function(kt,Zt){return Zt!==Xt.length-1}))),Bi(),yn(-1)},300)},Yi=function(kt,Zt){if(!bo())return;yn(kt),mr.setFieldsValue({name:Zt.stage_name,description:Zt.stage_description,tagName:Zt.tag&&Zt.tag.name||""})},yo=function(kt){if(setTimeout(function(){document.documentElement.scrollTop=ho},300),kt==="\u53D6\u6D88")return;Xt[nn].items=Xt[nn].items.concat(kt),$t(Object(a.a)(Xt))},Ui=function(){var _n=Object(p.a)(r.a.mark(function kt(Zt){var bn;return r.a.wrap(function(qn){for(;;)switch(qn.prev=qn.next){case 0:return qn.next=2,Object(K.V)(Object(M.a)({},Zt));case 2:return bn=qn.sent,Xt[nn].items=Zt.list,qn.abrupt("return",bn);case 5:case"end":return qn.stop()}},kt)}));return function(Zt){return _n.apply(this,arguments)}}(),Jo=function(kt){Xt[nn].items=Xt[nn].items.concat(Object(M.a)(Object(M.a)({},kt),{},{children:[]})),$t(Object(a.a)(Xt))},ko=function(kt){Xt[nn].items=Xt[nn].items.concat(kt),$t(Object(a.a)(Xt))},Zo=function(){var _n=Object(p.a)(r.a.mark(function kt(Zt){var bn,Jt,qn,ir,dr;return r.a.wrap(function(pn){for(;;)switch(pn.prev=pn.next){case 0:if(Xa){pn.next=8;break}return pn.next=3,Object(K.f)(Object(M.a)({id:Xt[nn].stage_id,subject_id:Dt.pathId},Zt));case 3:return bn=pn.sent,bn.id&&(Qa(!1),Jt=[Object(M.a)({},bn)],Xt[nn].items=Xt[nn].items.concat(Jt),$t(Object(a.a)(Xt))),pn.abrupt("return",bn);case 8:return pn.next=10,Object(K.X)(Object(M.a)(Object(M.a)({id:Xa==null?void 0:Xa.id,subject_id:Dt.pathId},Zt),{},{video_id:(Zt==null?void 0:Zt.video_id)||(Xa==null||((qn=Xa.video_item)===null||qn===void 0)?void 0:qn.video_id),link:(Zt==null?void 0:Zt.link)||(Xa==null||((ir=Xa.video_item)===null||ir===void 0)?void 0:ir.link)}));case 10:return dr=pn.sent,dr&&(R.b.success("\u4FEE\u6539\u6210\u529F"),Qa(!1),Bi()),pn.abrupt("return",dr);case 13:case"end":return pn.stop()}},kt)}));return function(Zt){return _n.apply(this,arguments)}}(),Bi=function(){Mt({type:"pathsDetail/getStageData",payload:{subject_id:Dt.pathId}}),Mt({type:"pathsDetail/getPathsDetail",payload:{id:Dt.pathId}}),Mt({type:"pathsDetail/getRightData",payload:{id:Dt.pathId}}),dn()},Dn=function(){var _n=Object(p.a)(r.a.mark(function kt(Zt,bn){var Jt,qn,ir,dr,Zr,pn,ii,ki,Ra,ha,Oi;return r.a.wrap(function(ti){for(;;)switch(ti.prev=ti.next){case 0:if(!(!(Zt!=null&&Zt.name)||(Zt==null?void 0:Zt.name.replace(/(^\s*)|(\s*$)/g,""))==="")){ti.next=2;break}return ti.abrupt("return",R.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01"));case 2:if(dn(),ir=[],(Jt=Xt[nn].shixuns_list)===null||Jt===void 0||Jt.map(function(Ya){ir.push({type:Ya.item_type,id:Ya.id})}),(qn=Xt[nn].attachments_list)===null||qn===void 0||qn.map(function(Ya){ir.push({type:"Attachment",id:Ya.id})}),dr=Zt.tagName,Zr=Object(C.a)(Zt,["tagName"]),!Xn){ti.next=16;break}return pn=Object(M.a)(Object(M.a)({},Zr),{},{pathId:Dt.pathId,list:ir}),dr&&(pn=Object(M.a)(Object(M.a)({},pn),{},{stage_tag_attributes:{name:dr}})),ti.next=12,Object(K.d)(Object(M.a)({},pn));case 12:ii=ti.sent,ii!=null&&ii.subject_id&&(Xt[nn]=Object(M.a)(Object(M.a)(Object(M.a)({},Xt[nn]),ii),{},{stage_name:pn.name,stage_description:pn.description,tag:pn.stage_tag_attributes}),$t(Object(a.a)(Xt))),ti.next=24;break;case 16:return ki=Array.from(new Set(ir.map(function(Ya){return Ya.type}))),Ra=Object(M.a)(Object(M.a)({},Zr),{},{id:Xt[nn].stage_id,type:Array.from(new Set(ir.map(function(Ya){return Ya.type}))),list:ir}),ha=Xt[nn].tag&&Xt[nn].tag.id||"",Ra=Object(M.a)(Object(M.a)({},Ra),{},{stage_tag_attributes:ha?{id:ha,name:dr}:{name:dr}}),ti.next=22,Object(K.Z)(Object(M.a)({},Ra));case 22:Oi=ti.sent,Oi!=null&&Oi.subject_id&&(Xt[nn]=Object(M.a)(Object(M.a)(Object(M.a)({},Xt[nn]),Oi),{},{stage_name:Ra.name,stage_description:Ra.description,tag:Ra.stage_tag_attributes}),$t(Object(a.a)(Xt)));case 24:return xn(!1),ti.abrupt("return");case 26:case"end":return ti.stop()}},kt)}));return function(Zt,bn){return _n.apply(this,arguments)}}(),Ji=function(kt,Zt,bn){var Jt=Array.from(kt),qn=Jt.splice(Zt,1),ir=Object(E.a)(qn,1),dr=ir[0];return Jt.splice(bn,0,dr),Jt},vs=function(kt,Zt){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(){Xt[nn][Zt||"shixuns_list"].splice(kt,1),R.b.success("\u5220\u9664\u6210\u529F"),$t(Object(a.a)(Xt)),Dn(mr.getFieldsValue(),Zt)}})},rs=function(kt){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 Zt=Object(p.a)(r.a.mark(function Jt(){var qn;return r.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:return dr.next=2,Object(K.t)(kt);case 2:qn=dr.sent,qn.status===0&&(R.b.success("\u5220\u9664\u6210\u529F"),Bi());case 4:case"end":return dr.stop()}},Jt)}));function bn(){return Zt.apply(this,arguments)}return bn}()})},da=function(){var _n=Object(p.a)(r.a.mark(function kt(Zt){var bn,Jt,qn,ir,dr;return r.a.wrap(function(pn){for(;;)switch(pn.prev=pn.next){case 0:if(console.log(Zt),!((Zt==null?void 0:Zt.item_type)==="VideoItem")){pn.next=9;break}return pn.next=4,Object(za.g)({id:Zt==null?void 0:Zt.stage_item_id});case 4:bn=pn.sent,io(bn),(Zt==null?void 0:Zt.item_type)==="VideoItem"?Qa(!0):(fo((bn==null||((Jt=bn.tags)===null||Jt===void 0)?void 0:Jt.map(function(ii){return ii==null?void 0:ii.name}))||[]),nr.setFieldsValue({files:[{uid:bn==null||((qn=bn.attachment)===null||qn===void 0)?void 0:qn.id,name:bn==null?void 0:bn.name,response:{id:bn==null||((ir=bn.attachment)===null||ir===void 0)?void 0:ir.id}}]}),cn(!0)),pn.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:dr,onChange:function(ki){dr=ki.target.value},placeholder:"\u8BF7\u8F93\u5165\u8BFE\u4EF6\u540D\u79F0"}),onOk:function(){var ii=Object(p.a)(r.a.mark(function Ra(){var ha,Oi,qi;return r.a.wrap(function(Ya){for(;;)switch(Ya.prev=Ya.next){case 0:if(dr){Ya.next=3;break}return R.b.info("\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Ya.abrupt("return",Promise.reject());case 3:return Ya.next=5,Object(ue.a)("/api/attachments/".concat(Zt==null?void 0:Zt.id,".json"),{method:"put",body:{name:dr+(Zt==null||((ha=Zt.name)===null||ha===void 0)?void 0:ha.substr(Zt==null||((Oi=Zt.name)===null||Oi===void 0)?void 0:Oi.lastIndexOf(".")))}});case 5:qi=Ya.sent,dr="",Bi();case 8:case"end":return Ya.stop()}},Ra)}));function ki(){return ii.apply(this,arguments)}return ki}()});case 10:case"end":return pn.stop()}},kt)}));return function(Zt){return _n.apply(this,arguments)}}(),Lr=function(kt){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 Zt=Object(p.a)(r.a.mark(function Jt(){var qn;return r.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:return dr.next=2,Object(K.s)({id:kt});case 2:qn=dr.sent,qn.status===1&&(yn(-1),R.b.success("\u5220\u9664\u6210\u529F"),Bi());case 4:case"end":return dr.stop()}},Jt)}));function bn(){return Zt.apply(this,arguments)}return bn}()})},di=function(){Ur({name:"",is_jupyter:!1}),Mr.setFieldsValue({name:"",is_jupyter:!1}),Ni(!1),hn(!1)},_a=function(kt,Zt){var bn;if(!kt.destination)return;var Jt=Ji((bn=Xt[nn])===null||bn===void 0?void 0:bn[Zt||"shixuns_list"],kt.source.index,kt.destination.index);Xt[nn][Zt||"shixuns_list"]=Jt,$t(Object(a.a)(Xt)),Dn(mr.getFieldsValue(),Zt)},To=function(){var _n=Object(p.a)(r.a.mark(function kt(Zt){var bn;return r.a.wrap(function(qn){for(;;)switch(qn.prev=qn.next){case 0:if(bo()){qn.next=2;break}return qn.abrupt("return");case 2:return qn.next=4,Object(K.Y)({id:Zt});case 4:bn=qn.sent,bn.status===1&&Bi();case 6:case"end":return qn.stop()}},kt)}));return function(Zt){return _n.apply(this,arguments)}}(),Zi=function(){var _n=Object(p.a)(r.a.mark(function kt(Zt){var bn;return r.a.wrap(function(qn){for(;;)switch(qn.prev=qn.next){case 0:if(bo()){qn.next=2;break}return qn.abrupt("return");case 2:return qn.next=4,Object(K.v)({id:Zt});case 4:bn=qn.sent,bn.status===1&&Bi();case 6:case"end":return qn.stop()}},kt)}));return function(Zt){return _n.apply(this,arguments)}}(),bo=function(){return nn!==-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 Zt="Edit_".concat(nn),bn=document.getElementById(Zt);bn&&setTimeout(function(){return bn.scrollIntoView({block:"start",behavior:"smooth"})})}}),!1):!0},oo=function(){Dn(mr.getFieldsValue())},dn=function(){xn(!1)},Fo=function(){var kt,Zt,bn,Jt,qn,ir;return((kt=nt.detail)===null||kt===void 0||((Zt=kt.courses)===null||Zt===void 0)?void 0:Zt.length)>0?(bn=nt.detail)===null||bn===void 0?void 0:bn.allow_visit:!(((Jt=st.userInfo)===null||Jt===void 0?void 0:Jt.user_identity)==="\u5B66\u751F"&&(qn=nt.detail)!==null&&qn!==void 0&&qn.allow_visit&&(ir=nt.detail)!==null&&ir!==void 0&&ir.courses)},Ss=function(kt,Zt,bn){var Jt,qn,ir,dr,Zr,pn,ii,ki,Ra,ha,Oi,qi;return Ri!=="All"&&kt.item_type!==Ri?null:e.a.createElement(oe.a,{className:"list-item-row",align:"middle",key:Zt,gutter:[5,10]},e.a.createElement(le.a,null,kt.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(le.a,{flex:1,className:!kt.allow_visit&&!kt.to_be_built&&(kt.shixun_status==="\u6682\u672A\u516C\u5F00"||kt.shixun_status==="\u5DF2\u5220\u9664")?Jr.a.color204:""},!!(nt!=null&&(Jt=nt.detail)!==null&&Jt!==void 0&&Jt.cust_seq)&&e.a.createElement("span",{className:"mr8"},bn+1,"-",Zt+1),kt.name,nn===-1&&kt.complete_status===1&&e.a.createElement("span",{className:Jr.a.completed},e.a.createElement("i",{className:"iconfont icon-duigou1 mr5 font12"}),"\u5DF2\u5B8C\u6210")),e.a.createElement(le.a,null,nn===bn&&e.a.createElement("div",null,e.a.createElement(c.a,{title:"\u5220\u9664"},e.a.createElement("span",{onClick:function(){vs(Zt,"shixuns_list")},className:"iconfont icon-shanchu c-grey-c"}))),(((qn=st.userInfo)===null||qn===void 0?void 0:qn.admin)||((ir=st.userInfo)===null||ir===void 0?void 0:ir.business)||!(!((dr=nt.detail)!==null&&dr!==void 0&&dr.allow_statistics)&&((Zr=st.userInfo)===null||Zr===void 0?void 0:Zr.user_identity)==="\u5B66\u751F"&&(pn=nt.detail)!==null&&pn!==void 0&&pn.allow_visit&&(ii=nt.detail)!==null&&ii!==void 0&&ii.courses))&&nn!==bn&&kt.item_type==="VideoItem"&&e.a.createElement("aside",null,e.a.createElement(h.a,{type:"primary",onClick:function(){var Ya,pi;if(!((Ya=st.userInfo)!==null&&Ya!==void 0&&Ya.admin)&&!((pi=st.userInfo)!==null&&pi!==void 0&&pi.business)&&!kt.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")});kt.link&&Object(za.n)({is_f:1,id:kt.id,point:0,total:0}),Object(pe.Q)(kt.link||"/video/".concat(kt.id,"?subject_id=").concat(Dt.pathId))}},kt.last_point>0?"\u7EE7\u7EED\u5B66\u4E60":"\u5F00\u59CB\u5B66\u4E60")),(((ki=st.userInfo)===null||ki===void 0?void 0:ki.admin)||(kt.allow_visit||kt.to_be_built||kt.shixun_status!=="\u6682\u672A\u516C\u5F00"&&kt.shixun_status!=="\u5DF2\u5220\u9664")&&!(!((Ra=nt.detail)!==null&&Ra!==void 0&&Ra.allow_statistics)&&((ha=st.userInfo)===null||ha===void 0?void 0:ha.user_identity)==="\u5B66\u751F"&&(Oi=nt.detail)!==null&&Oi!==void 0&&Oi.allow_visit&&(qi=nt.detail)!==null&&qi!==void 0&&qi.courses))&&nn!==bn&&kt.item_type==="Shixun"&&e.a.createElement("aside",null,e.a.createElement(Ut.a,{to:"/shixuns/".concat(kt.identifier,"/challenges"),target:"_blank"},"\u67E5\u770B\u8BE6\u60C5"),kt.shixun_status!=="\u6682\u672A\u516C\u5F00"&&e.a.createElement(h.a,{className:"ml20",type:"primary",onClick:function(){if(!Object(ke.e)(Mt,!0))return;ns(kt.identifier,kt.is_jupyter||kt.is_jupyter_lab)}},"\u5F00\u59CB\u5B9E\u6218")),nn===-1&&!kt.allow_visit&&!kt.to_be_built&&kt.shixun_status==="\u6682\u672A\u516C\u5F00"&&e.a.createElement("span",{className:Jr.a.color204},"\u6682\u672A\u516C\u5F00"),nn===-1&&!kt.allow_visit&&!kt.to_be_built&&kt.shixun_status==="\u5DF2\u5220\u9664"&&e.a.createElement("span",{className:Jr.a.color204},"\u5DF2\u5220\u9664"),nn===-1&&kt.item_type==="Shixun"&&!!kt.challenges_count&&e.a.createElement("span",{className:"exper\u02C6iment-number ml5 c-grey-999"},"\u5B9E\u9A8C\u6570 ",kt.challenges_count)))},gs=function(kt){var Zt,bn=[];if(kt.items&&(Zt=kt.items)!==null&&Zt!==void 0&&Zt.length){var Jt;(Jt=kt.items)===null||Jt===void 0||Jt.forEach(function(ir){var dr;bn.push(ir),ir.children&&(dr=ir.children)!==null&&dr!==void 0&&dr.length&&(bn=bn.concat(ir.children))})}var qn=!!bn.find(function(ir){return Object(Qr.isEqual)(ir.learning_status,["can","try"])});return qn?e.a.createElement("aside",{className:Jr.a.learn},"\u514D\u8D39\u8BD5\u5B66"):null},ei=function(kt,Zt){var bn,Jt,qn,ir,dr,Zr;if(Ri!=="All"&&!((bn=kt.stage_tag)!==null&&bn!==void 0&&bn.includes(Ri)))return null;var pn=!1,ii=!1,ki=!1,Ra=!1;if(Ri==="All"){var ha,Oi,qi,ti;pn=(((ha=st.userInfo)===null||ha===void 0?void 0:ha.admin)||((Oi=st.userInfo)===null||Oi===void 0?void 0:Oi.business)||((qi=nt.detail)===null||qi===void 0?void 0:qi.allow_statistics))&&nn===Zt&&!Xn,(ti=nt.detail)!==null&&ti!==void 0&&ti.allow_add_member&&Yo&&nn!==Zt&&(ii=!0,Zt>0&&(ki=!0),Zt<Xt.length-1&&(Ra=!0))}var Ya=function(){var No=0,jo=0,Ho=0;if(ii&&(Ho+=25),ki&&(Ho+=18),Ra&&(Ho+=23.5),pn&&(Ho+=21),Ho&&(Ho+=5),kt.tag){var Qo=document.createElement("canvas").getContext("2d");Qo.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",No=Math.ceil(Qo.measureText(kt.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",jo=Math.ceil(Ts.measureText(kt.stage_name||"\u7B2C".concat(Xt==null?void 0:Xt.length,"\u90E8\u5206")).width),e.a.createElement("div",{className:Jr.a.labelContainer,style:{width:745-Ho}},e.a.createElement("div",{className:"".concat(Jr.a.text),style:{maxWidth:745-Ho-No}},kt.stage_name||"\u7B2C".concat(Xt==null?void 0:Xt.length,"\u90E8\u5206"),gs(kt)),kt.tag&&kt.tag.name&&e.a.createElement("span",{className:Jr.a.tag},kt.tag.name))};return e.a.createElement("section",{key:Zt,className:"bg-white mt20 pt30 pb20"},e.a.createElement("aside",{className:"pl20 pr20"},e.a.createElement(oe.a,{gutter:[5,20],align:"middle"},e.a.createElement(le.a,{flex:1,className:"tl font18 bold c-grey-333"},Ya()),Ri==="All"&&e.a.createElement(le.a,null,pn&&e.a.createElement(c.a,{title:"\u5220\u9664"},e.a.createElement("span",{onClick:function(){Lr(kt.stage_id)},className:"iconfont icon-shanchu c-grey-c"})),((Jt=nt.detail)===null||Jt===void 0?void 0:Jt.allow_add_member)&&Yo&&nn!==Zt&&e.a.createElement("div",null,ki&&e.a.createElement(c.a,{title:"\u5411\u4E0A\u79FB\u52A8"},e.a.createElement("span",{onClick:function(){return To(kt.stage_id)},className:"iconfont icon-xiangshangyi c-light-green font18 current"})),Ra&&e.a.createElement(c.a,{title:"\u5411\u4E0B\u79FB\u52A8"},e.a.createElement("span",{onClick:function(){return Zi(kt.stage_id)},className:"iconfont icon-xiangxiayi c-light-green font18 current ml5"})),e.a.createElement(c.a,{title:"\u7F16\u8F91"},e.a.createElement("span",{onClick:function(){return Yi(Zt,kt)},className:"iconfont icon-bianjidaibeijing c-light-green font20 current ml5"}))))),!!kt.stage_description&&e.a.createElement(oe.a,{gutter:[5,20]},e.a.createElement(le.a,{span:24},e.a.createElement(Xe.a,{value:kt==null?void 0:kt.stage_description})))),nn===Zt&&e.a.createElement("div",{className:"pl20 pr20"},e.a.createElement("aside",null,e.a.createElement(ne.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(Zt+1,"\u9636\u6BB5\u540D\u79F0,\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"),onBlur:oo})),e.a.createElement(ne.a.Item,{name:"description",label:"\u63CF\u8FF0",className:"ml10"},e.a.createElement(eo.a,{defaultValue:kt==null?void 0:kt.stage_description,placeholder:"\u8BF7\u8F93\u5165\u7B2C".concat(Zt+1,"\u9636\u6BB5\u63CF\u8FF0"),height:300,onBlur:oo}))),e.a.createElement("aside",null,e.a.createElement(ne.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(h.a,{size:"large",ghost:!0,type:"primary",onClick:function(){if(!Xt[nn].stage_id)return R.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");if(!Object(ke.e)(Mt))return;Ni(!1),Tr(!0),An.resetFields()}},e.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5 "}),"\u65B0\u5EFA\u5C0F\u8282"),e.a.createElement(h.a,{size:"large",className:"ml20",ghost:!0,type:"primary",onClick:function(){if(!Xt[nn].stage_id)return R.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");if(!Object(ke.e)(Mt))return;if(!Object(ke.c)())return;Ni(!1),hn(!0),Mr.setFieldsValue({name:"",is_jupyter:!1})}},e.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5"}),"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE"),e.a.createElement(h.a,{size:"large",className:"ml20",ghost:!0,type:"primary",onClick:function(){var No;if(!Xt[nn].stage_id)return R.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");Ki(document.documentElement.scrollTop),Mt({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",id:Xt[nn].stage_id,subject_id:Dt.pathId}}),Da(kt==null||((No=kt.shixuns_list)===null||No===void 0)?void 0:No.map(function(jo){return jo.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(h.a,{size:"large",className:" ml20",ghost:!0,type:"primary",onClick:function(){if(!Xt[nn].stage_id)return R.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");io(""),Qa(!0)}},e.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5 "}),"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE")),e.a.createElement(h.a,{size:"large",className:"ml20",ghost:!0,type:"primary",onClick:function(){if(!Xt[nn].stage_id)return R.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");if(!Object(ke.e)(Mt))return;io(""),fo([]),Ni(!1),cn(!0),nr.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(Zt)},"\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:Jr.a.shixuns},e.a.createElement("div",{className:""},!!(kt!=null&&(qn=kt.items)!==null&&qn!==void 0&&qn.length)&&e.a.createElement(Pr.a,{visibleType:Ri,data:Object(a.a)(kt.items),stage_id:kt.stage_id,disabled:!(nn===Zt),deleteStages:rs,editVidoItem:da,updateSort:Ui,index:Zt,cust_seq:!!(nt!=null&&(ir=nt.detail)!==null&&ir!==void 0&&ir.cust_seq),showVideoPlay:((dr=st.userInfo)===null||dr===void 0?void 0:dr.admin)||((Zr=st.userInfo)===null||Zr===void 0?void 0:Zr.business)||Fo()}))),nn===Zt&&e.a.createElement("aside",{className:Jr.a.buttons},e.a.createElement(h.a,{onClick:Na,type:"primary",size:"large",ghost:!0},"\u53D6\u6D88"),e.a.createElement(h.a,{onClick:Object(p.a)(r.a.mark(function pi(){return r.a.wrap(function(jo){for(;;)switch(jo.prev=jo.next){case 0:Na();case 1:case"end":return jo.stop()}},pi)})),size:"large",type:"primary"},"\u4FDD\u5B58")))};return e.a.createElement("section",null,e.a.createElement(ka.a,{active:!0,paragraph:{rows:250},avatar:!0,className:"".concat(ht["pathsDetail/getStageData"]||ht["pathsDetail/getPathsDetail"]?"mt20":""),loading:ht["pathsDetail/getStageData"]||ht["pathsDetail/getPathsDetail"]},e.a.createElement("aside",{className:Jr.a.actionTabs},Wi.map(function(_n,kt){if(Xt!=null&&Xt.some(function(Zt){var bn;return(bn=Zt.stage_tag)===null||bn===void 0?void 0:bn.includes(_n.type)})||_n.type=="All"||_n.type=="Discusses"&&_n.number>0)return e.a.createElement("div",{key:kt,className:_n.type===Ri?Jr.a.tabActive:Jr.a.tab,onClick:function(){nn===-1?(Lo(_n.type),yn(-1)):R.b.warn("\u8BF7\u5148\u53D6\u6D88\u7F16\u8F91\u72B6\u6001")}},e.a.createElement("span",{className:Jr.a.s1},_n.name),e.a.createElement("span",{className:Jr.a.s2},_n.number))})),Ri!=="Discusses"&&e.a.createElement(e.a.Fragment,null,e.a.createElement(ne.a,{form:mr,onFinish:Dn},Xt==null?void 0:Xt.map(function(_n,kt){return e.a.createElement("div",{key:kt},ei(_n,kt))})),((Ve=nt.detail)===null||Ve===void 0?void 0:Ve.allow_statistics)&&Ri==="All"&&!Xn&&e.a.createElement("div",{className:Jr.a.addStage,onClick:ci},e.a.createElement("span",{className:Jr.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"))),Ri==="Discusses"&&e.a.createElement("aside",{className:"mt20"},e.a.createElement(br,{activeIndex:3,isDelete:(Be=nt.detail)===null||Be===void 0?void 0:Be.allow_add_member,shixunIdentifier:11,identity:(at=st.userInfo)===null||at===void 0?void 0:at.role,getTypeNumber:Xi,user:st.userInfo,isShixunDetail:!0})),e.a.createElement(T.a,{centered:!0,title:"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE",visible:an,confirmLoading:Li,destroyOnClose:!0,onOk:Object(p.a)(r.a.mark(function _n(){var kt;return r.a.wrap(function(bn){for(;;)switch(bn.prev=bn.next){case 0:return bn.next=2,Mr.validateFields();case 2:return Ni(!0),bn.next=5,Object(K.S)(Object(M.a)({id:Xt[nn].stage_id,subject_id:Dt.pathId},Qn));case 5:kt=bn.sent,di(),kt.id&&(Mr.resetFields(),R.b.success("\u6DFB\u52A0\u6210\u529F"),yo([kt])),Ni(!1);case 9:case"end":return bn.stop()}},_n)})),onCancel:di},e.a.createElement(ne.a,{form:Mr,onValuesChange:function(kt){Ur(Object(M.a)(Object(M.a)({},Qn),kt))}},e.a.createElement(ne.a.Item,{label:"\u7C7B\u578B",name:"is_jupyter",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7C7B\u578B"}]},e.a.createElement(_.a.Group,null,e.a.createElement(_.a,{defaultChecked:!0,value:!1},"\u5168\u6808\u5B9E\u8DF5\u9879\u76EE"),e.a.createElement(_.a,{value:!0},"Jupyter Notebook\u5B9E\u8DF5\u9879\u76EE"))),e.a.createElement(ne.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:Xa?"\u7F16\u8F91\u6559\u5B66\u8BFE\u4EF6":"\u65B0\u5EFA\u6559\u5B66\u8BFE\u4EF6",visible:er,confirmLoading:Li,destroyOnClose:!0,onOk:Object(p.a)(r.a.mark(function _n(){var kt,Zt,bn,Jt,qn,ir;return r.a.wrap(function(Zr){for(;;)switch(Zr.prev=Zr.next){case 0:return Zr.next=2,nr.validateFields();case 2:return Ni(!0),Zr.next=5,nr.getFieldsValue();case 5:if(kt=Zr.sent,Zt=!1,bn="",kt.files.forEach(function(pn){(!pn.response||!pn.response.id)&&(Zt=!0,bn=pn.name)}),!Zt){Zr.next=11;break}return R.b.error("".concat(bn," \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20")),Zr.abrupt("return");case 11:if(Xa){Zr.next=18;break}return Zr.next=14,Object(K.c)({id:Xt[nn].stage_id,subject_id:Dt.pathId,tags:Ti,attachment_ids:kt.files.map(function(pn){return pn.response.id})});case 14:Jt=Zr.sent,Jt.status===0&&(R.b.success("\u4FEE\u6539\u6210\u529F"),cn(!1),ko(Object(a.a)(Jt.items))),Zr.next=22;break;case 18:return Zr.next=20,Object(K.X)({id:Xa==null?void 0:Xa.id,subject_id:Dt.pathId,tags:Ti,attachment_id:(qn=kt.files.map(function(pn){return pn.response.id}))===null||qn===void 0?void 0:qn[0]});case 20:ir=Zr.sent,ir.status===0&&(R.b.success("\u4FEE\u6539\u6210\u529F"),cn(!1),ko(Object(a.a)(ir.items)));case 22:Ni(!1);case 23:case"end":return Zr.stop()}},_n)})),onCancel:function(){cn(!1),fo([]),io("")}},e.a.createElement(ne.a,{form:nr},e.a.createElement(ne.a.Item,{label:"\u8BFE\u4EF6\u5185\u5BB9",name:"files",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u8BFE\u4EF6\u5185\u5BB9"}]},e.a.createElement(Qi.b,{aloneClear:!0,maxSize:Object(k.v)()?500:100,accept:$a.toString(),number:Xa?1:10})),e.a.createElement(ne.a.Item,{style:{marginLeft:8},label:"\u77E5\u8BC6\u6807\u7B7E",name:"tag"},e.a.createElement(re.a,{onKeyUp:es})),e.a.createElement("div",{className:Jr.a["tagsList-content"]},Ti.map(function(_n,kt){return e.a.createElement(v.a,{key:kt+_n,closable:!0,onClose:function(bn){ts(bn,_n)}},_n)})),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(Ut.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(k.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:cr,confirmLoading:Li,onOk:Object(p.a)(r.a.mark(function _n(){var kt,Zt;return r.a.wrap(function(Jt){for(;;)switch(Jt.prev=Jt.next){case 0:return Jt.next=2,An.validateFields();case 2:return Ni(!0),Jt.next=5,An.getFieldsValue();case 5:return kt=Jt.sent,Jt.next=8,Object(K.a)({id:Xt[nn].stage_id,subject_id:Dt.pathId,name:kt.name});case 8:Zt=Jt.sent,Zt.status===0&&(R.b.success("\u6DFB\u52A0\u6210\u529F"),Tr(!1),Jo(Object(M.a)({},Zt))),Ni(!1);case 11:case"end":return Jt.stop()}},_n)})),onCancel:function(){return Tr(!1)}},e.a.createElement(ne.a,{form:An},e.a.createElement(ne.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(ia,{shixunIds:Va,cb:yo}),e.a.createElement(Ga.a,{visible:ai,editData:Xa,onCancel:function(){return Qa(!1)},onOk:Zo}))},us=Object(u.a)(function(Ge){var Ye=Ge.pathsDetail,Je=Ge.user,Te=Ge.loading,Ve=Ge.globalSetting;return{pathsDetail:Ye,user:Je,globalSetting:Ve,loading:Te.effects}})(Mo),Is=I("uRQ9"),xs=I.n(Is),js=function(Ye){var Je=Ye.user,Te=Object(C.a)(Ye,["user"]),Ve=Object(n.useState)([]),Be=Object(E.a)(Ve,2),at=Be[0],nt=Be[1],st=Object(n.useState)(!0),ot=Object(E.a)(st,2),ht=ot[0],Mt=ot[1],zt=Object(n.useState)(!1),Dt=Object(E.a)(zt,2),en=Dt[0],ln=Dt[1],Sn=Object(n.useState)(!1),Xt=Object(E.a)(Sn,2),$t=Xt[0],gn=Xt[1],On=Object(n.useState)(0),nn=Object(E.a)(On,2),yn=nn[0],Ln=nn[1],Gn=Object(n.useState)({}),an=Object(E.a)(Gn,2),hn=an[0],fn=an[1],Cn=Object(s.i)(),er=Object(n.useState)({page:1,limit:10}),cn=Object(E.a)(er,2),Un=cn[0],Dr=cn[1],cr=[{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(mr,Tn){return e.a.createElement(e.a.Fragment,null,(Tn==null?void 0:Tn.state)==="drafted"&&e.a.createElement("span",null,"\u7533\u8BF7\u4E2D"),(Tn==null?void 0:Tn.state)==="rejected"&&e.a.createElement("span",{style:{color:"#E53333"}},"\u672A\u901A\u8FC7"),(Tn==null?void 0:Tn.state)==="passed"&&e.a.createElement("span",{style:{color:"#2FA34F"}},"\u901A\u8FC7"))}},{title:"\u5B66\u4E60\u8FDB\u5EA6",dataIndex:"process",key:"process",align:"left",render:function(mr){return"".concat(mr,"%")}},{title:"\u5BA1\u6279\u64CD\u4F5C",dataIndex:"action",key:"action",align:"left",render:function(mr,Tn){return e.a.createElement("div",{className:xs.a.actionsBtns},(Tn==null?void 0:Tn.state)==="drafted"&&e.a.createElement("span",{onClick:function(){return Tr(Tn)}},"\u540C\u610F"),(Tn==null?void 0:Tn.state)==="drafted"&&e.a.createElement("span",{onClick:function(){return or(Tn)}},"\u62D2\u7EDD"),(Tn==null?void 0:Tn.state)==="rejected"&&e.a.createElement("span",{onClick:function(){return kr(Tn)}},"\u62D2\u7EDD\u539F\u56E0"),(Tn==null?void 0:Tn.state)==="passed"&&e.a.createElement("span",{onClick:function(){return Qn(Tn)}},"\u67E5\u770B\u8BC1\u4E66"))}}].filter(function(Gr){return $t?!0:Gr.title!=="\u5B66\u4E60\u8FDB\u5EA6"&&Gr.title!=="\u5BA1\u6279\u64CD\u4F5C"});Object(n.useEffect)(function(){Ur(Un)},[Un]);var Tr=function(){var Gr=Object(p.a)(r.a.mark(function mr(Tn){var tr;return r.a.wrap(function(Fn){for(;;)switch(Fn.prev=Fn.next){case 0:return Fn.next=2,Object(ue.a)("/api/paths/".concat(Cn==null?void 0:Cn.pathId,"/process_certificate.json"),{method:"post",body:{certificate_id:Tn==null?void 0:Tn.id,op:"pass"}});case 2:tr=Fn.sent,(tr==null?void 0:tr.status)===0&&Ur(Un);case 4:case"end":return Fn.stop()}},mr)}));return function(Tn){return Gr.apply(this,arguments)}}(),or=function(mr){var Tn="";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(Mr){return Tn=Mr.target.value}}))),okText:"\u786E\u5B9A\u62D2\u7EDD",cancelText:"\u53D6\u6D88",onOk:function(){var tr=Object(p.a)(r.a.mark(function Fn(){var Zn;return r.a.wrap(function(Yn){for(;;)switch(Yn.prev=Yn.next){case 0:if(Tn){Yn.next=3;break}return R.b.warn("\u62D2\u7EDD\u7406\u7531\u4E0D\u80FD\u4E3A\u7A7A"),Yn.abrupt("return",Promise.reject());case 3:return Yn.next=5,Object(ue.a)("/api/paths/".concat(Cn==null?void 0:Cn.pathId,"/process_certificate.json"),{method:"post",body:{certificate_id:mr==null?void 0:mr.id,op:"reject",content:Tn}});case 5:Zn=Yn.sent,(Zn==null?void 0:Zn.status)===0&&Ur(Un);case 7:case"end":return Yn.stop()}},Fn)}));function Mr(){return tr.apply(this,arguments)}return Mr}()})},kr=function(mr){T.a.info({title:"\u62D2\u7EDD\u539F\u56E0",icon:null,className:"custom-modal-divider",centered:!0,width:400,content:e.a.createElement("div",null,mr==null?void 0:mr.content),okText:"\u786E\u5B9A"})},Qn=function(mr){fn((mr==null?void 0:mr.info)||{}),ln(!0)},Ur=function(){var Gr=Object(p.a)(r.a.mark(function mr(Tn){var tr;return r.a.wrap(function(Fn){for(;;)switch(Fn.prev=Fn.next){case 0:return Mt(!0),Fn.next=3,Object(ue.a)("/api/paths/".concat(Cn==null?void 0:Cn.pathId,"/request_certificates.json"),{method:"get",params:Tn});case 3:tr=Fn.sent,tr!=null&&tr.data&&(nt(tr==null?void 0:tr.data),Ln((tr==null?void 0:tr.total_count)||0),gn(tr==null?void 0:tr.is_manage)),Mt(!1);case 6:case"end":return Fn.stop()}},mr)}));return function(Tn){return Gr.apply(this,arguments)}}(),$r=function(mr,Tn){var tr=Object(M.a)(Object(M.a)({},Un),{},{page:mr,limit:Tn});Dr(tr),Ur(tr)};return e.a.createElement("div",{className:xs.a.certificate},e.a.createElement(St.a,{dataSource:at,rowKey:function(mr){return mr.id},columns:cr,loading:ht,pagination:{pageSize:Un.limit,total:yn,current:Un.page,onChange:$r,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"]}}),e.a.createElement(Ea,{visible:en,onCancel:function(){ln(!1),fn({})},data:hn}))},Zs=Object(u.a)(function(Ge){var Ye=Ge.user,Je=Ge.pathsDetail;return{user:Ye,pathsDetail:Je}})(js);me.a.locale("ZH-cn");var cs=f.a.TabPane,dl=function(Ye){var Je=Ye.data,Te=Object(n.useState)("1"),Ve=Object(E.a)(Te,2),Be=Ve[0],at=Ve[1],nt=Object(n.useState)(1),st=Object(E.a)(nt,2),ot=st[0],ht=st[1],Mt=Object(n.useState)(),zt=Object(E.a)(Mt,2),Dt=zt[0],en=zt[1],ln=Object(n.useState)(!0),Sn=Object(E.a)(ln,2),Xt=Sn[0],$t=Sn[1],gn=Object(s.i)();function On(){return nn.apply(this,arguments)}function nn(){return nn=Object(p.a)(r.a.mark(function Ln(){var Gn,an;return r.a.wrap(function(fn){for(;;)switch(fn.prev=fn.next){case 0:return $t(!0),Be==="1"?Gn="/api/paths/".concat(gn.pathId,"/study_ranking_shixuns_passed.json"):Be==="2"?Gn="/api/paths/".concat(gn.pathId,"/study_ranking_videos.json"):Be==="3"?Gn="/api/paths/".concat(gn.pathId,"/study_ranking_pdf_attachments.json"):Be==="4"&&(Gn="/api/paths/".concat(gn.pathId,"/study_ranking_discusses.json")),fn.next=4,Object(ue.a)(Gn,{method:"get",params:{page:ot}});case 4:an=fn.sent,$t(!1),en(an);case 7:case"end":return fn.stop()}},Ln)})),nn.apply(this,arguments)}Object(n.useEffect)(function(){On()},[ot,Be]);var yn=function(){var Gn,an,hn,fn,Cn,er,cn,Un,Dr,cr,Tr,or,kr;return e.a.createElement(e.a.Fragment,null,e.a.createElement(V.a,{spinning:Xt},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"),Be==="1"&&e.a.createElement("span",{style:{flex:"3"}},"\u901A\u8FC7\u5173\u5361\u6570"),Be==="2"&&e.a.createElement("span",{style:{flex:"3"}},"\u7D2F\u8BA1\u5B66\u4E60\u65F6\u957F"),Be==="3"&&e.a.createElement("span",{style:{flex:"3"}},"\u4E0B\u8F7D\u8D44\u6E90\u6B21\u6570"),Be==="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||((Gn=Dt.data_user)===null||Gn===void 0)?void 0:Gn.rank)===0&&(Dt==null||((an=Dt.data_user)===null||an===void 0)?void 0:an.num)===0?"--":(Dt==null||((hn=Dt.data_user)===null||hn===void 0)?void 0:hn.rank)<=100&&(Dt==null||((fn=Dt.data_user)===null||fn===void 0)?void 0:fn.rank)!=0?Dt==null||((Cn=Dt.data_user)===null||Cn===void 0)?void 0:Cn.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),Be==="1"&&e.a.createElement("span",{style:{flex:"3"}},(Dt==null||((cn=Dt.data_user)===null||cn===void 0)?void 0:cn.num)||"--"),Be==="2"&&e.a.createElement("span",{style:{flex:"3"}},Dt!=null&&(Un=Dt.data_user)!==null&&Un!==void 0&&Un.num?Object(pe.Z)(Dt==null||((Dr=Dt.data_user)===null||Dr===void 0)?void 0:Dr.num):"--"),Be==="3"&&e.a.createElement("span",{style:{flex:"3"}},(Dt==null||((cr=Dt.data_user)===null||cr===void 0)?void 0:cr.num)||"--"),Be==="4"&&e.a.createElement("span",{style:{flex:"3"}},(Dt==null||((Tr=Dt.data_user)===null||Tr===void 0)?void 0:Tr.num)||"--")),(Dt==null?void 0:Dt.user_show)&&e.a.createElement(Ba.a,null),(Dt==null||((or=Dt.data)===null||or===void 0)?void 0:or.length)>0?Dt==null||((kr=Dt.data)===null||kr===void 0)?void 0:kr.map(function(Qn,Ur){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),Be==="1"&&e.a.createElement("span",{style:{flex:"3"}},Qn==null?void 0:Qn.num),Be==="2"&&e.a.createElement("span",{style:{flex:"3"}},Object(pe.Z)(Qn==null?void 0:Qn.num)),Be==="3"&&e.a.createElement("span",{style:{flex:"3"}},Qn==null?void 0:Qn.num),Be==="4"&&e.a.createElement("span",{style:{flex:"3"}},Qn==null?void 0:Qn.num))}):e.a.createElement(Fi.a,null),(Dt==null?void 0:Dt.count)>10&&e.a.createElement(ui.a,{current:ot,pageSize:10,showSizeChanger:!1,total:Dt==null?void 0:Dt.count,style:{textAlign:"center",margin:"20px 0px"},onChange:function(Ur){ht(Ur)}})))};return e.a.createElement("div",null,e.a.createElement(f.a,{activeKey:Be,style:{background:"#fff",padding:"0px 20px"},onChange:function(Gn){at(Gn),ht(1)}},e.a.createElement(cs,{tab:"\u901A\u5173\u699C",style:{background:"#fff"},key:"1"},e.a.createElement(yn,null)),e.a.createElement(cs,{tab:"\u89C6\u9891\u5B66\u4E60\u699C",key:"2"},e.a.createElement(yn,null)),e.a.createElement(cs,{tab:"\u4E0B\u8F7D\u8D44\u6E90\u699C",key:"3"},e.a.createElement(yn,null)),e.a.createElement(cs,{tab:"\u4E92\u52A8\u8BA8\u8BBA\u699C",key:"4"},e.a.createElement(yn,null))))},$s=I("XzQ7"),xo=I.n($s),ms=I("ho57"),Ha=I.n(ms),_s=f.a.TabPane;function _o(Ge){var Ye=function(at,nt){if(at.localName===nt)return at;for(var st=0,ot=at;ot=ot.parentNode;st++){if(ot.localName===nt)return ot;if(ot==document.documentElement)return!1}},Je=Ge.target,Te=Ye(Je,"a");if(console.log([Te],Te==null?void 0:Te.href,44),Te!=null&&Te.href)return;if(Je.tagName.toUpperCase()==="IMG"){var Ve=Je.src||Je.getAttribute("src");Ve&&Ve.indexOf("/images/avatars/User")===-1&&(Ge.stopPropagation(),Ge.preventDefault(),Br.a.publish("preview-image",Ve))}}var Hs=function(Ye){var Je,Te,Ve=Ye.pathsDetail,Be=Ye.globalSetting,at=Ye.loading,nt=Ye.dispatch,st=Object(C.a)(Ye,["pathsDetail","globalSetting","loading","dispatch"]),ot=Object(s.i)(),ht=st.location.query,Mt=Object(n.useRef)(),zt=Object(n.useState)("stage"),Dt=Object(E.a)(zt,2),en=Dt[0],ln=Dt[1],Sn=[{name:"\u8BFE\u7A0B\u7AE0\u8282",key:"stage"},{name:"\u6392\u884C\u699C",key:"ranking"},{name:"\u8BC1\u4E66\u7533\u8BF7",key:"certificate"}].filter(function($t){var gn;return(gn=Ve.detail)!==null&&gn!==void 0&&gn.excellent?!0:$t.key!=="certificate"});Object(n.useEffect)(function(){if(Mt.current)return Mt.current.addEventListener("mousedown",_o),function(){Mt.current.removeEventListener("mousedown",_o)}},[Mt.current]),Object(n.useEffect)(function(){if(!ot.pathId)return;Xt()},[ot.pathId]),Object(n.useEffect)(function(){var $t;Object(pe.V)(($t=Ve.detail)===null||$t===void 0?void 0:$t.name)},[Ve]);var Xt=function(){var $t=Object(p.a)(r.a.mark(function gn(){var On;return r.a.wrap(function(yn){for(;;)switch(yn.prev=yn.next){case 0:return yn.next=2,nt({type:"pathsDetail/getPathsDetail",payload:Object(M.a)({id:ot.pathId},ht)});case 2:On=yn.sent,nt({type:"pathsDetail/getRightData",payload:{id:ot.pathId}}),nt({type:"pathsDetail/getStageData",payload:{subject_id:ot.pathId}}),On!=null&&On.id&&ht.token&&(location.href=location.pathname);case 6:case"end":return yn.stop()}},gn)}));return function(){return $t.apply(this,arguments)}}();return e.a.createElement(V.a,{spinning:!1},e.a.createElement("section",{className:xo.a.bg},e.a.createElement(Bt,null),e.a.createElement(ca.a,null),e.a.createElement("section",{style:{marginTop:((Je=Ve.detail)===null||Je===void 0?void 0:Je.excellent)&&"89px"},className:"edu-container mb80 ".concat(xo.a.wrap)},e.a.createElement("aside",{className:xo.a.content},e.a.createElement("div",{className:xo.a.intro},e.a.createElement("div",{className:xo.a.introTitle},e.a.createElement("span",{className:"font16",style:{display:"flex",alignItems:"center"}},e.a.createElement("img",{src:Ha.a,style:{marginRight:"10px"}}),"\u8BFE\u7A0B\u4ECB\u7ECD")),e.a.createElement("div",{ref:Mt},e.a.createElement(Xe.a,{value:(Te=Ve.detail)===null||Te===void 0?void 0:Te.description}))),e.a.createElement(f.a,{className:xo.a.wrapTabs,activeKey:en,onChange:function(gn){return ln(gn)},tabBarGutter:50,tabBarStyle:{height:76}},Sn.map(function($t){return e.a.createElement(_s,{tab:$t.name,key:$t.key})})),en==="stage"&&e.a.createElement(us,null),en==="ranking"&&e.a.createElement(dl,null),en==="certificate"&&e.a.createElement(Zs,null)),e.a.createElement(Sa,null))))},ut=Ce.default=Object(u.a)(function(Ge){var Ye=Ge.pathsDetail,Je=Ge.loading,Te=Ge.globalSetting;return{pathsDetail:Ye,globalSetting:Te,loading:Je}})(Hs)},Aky1:function(We,Ce,I){"use strict";I.d(Ce,"a",function(){return l});var ae=I("ErOA"),V=I("ppsT"),M=I.n(V),p="",E,C="";function b(r){f(r)}function f(r){E=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),r.addFileSuccess&&r.addFileSuccess(e),E.startUpload()},onUploadstarted:function(e){var s=e.file.name;if(e.videoId){var A="/api/users/".concat(p,"/video_auths.json");Object(ae.a)(A,{method:"put",body:{video_id:e.videoId,title:s,file_name:s,virtual_classroom_id:C}}).then(function(d){if(d.status==-1){r.onUploadError&&r.onUploadError(e);return}var i=d.data,h=i.UploadAuth,y=i.UploadAddress,v=i.VideoId;E.setUploadAuthAndAddress(e,h,y)}).catch(function(d){E.deleteFile(E._curIndex),E.nextUpload(),console.log(d)})}else{var u="/api/users/".concat(p,"/video_auths.json"),a="";Object(ae.a)(u,{method:"Post",body:{title:a+s,file_name:a+s,virtual_classroom_id:C}}).then(function(d){if(d){var i=d.data,h=i.UploadAuth,y=i.UploadAddress,v=i.VideoId;E.setUploadAuthAndAddress(e,h,y,v)}}).catch(function(d){E.deleteFile(E._curIndex),E.nextUpload(),console.log(d)}),console.log("\u6587\u4EF6\u5F00\u59CB\u4E0A\u4F20...")}},onUploadSucceed:function(e){r.onUploadSucceed&&r.onUploadSucceed(e),console.log("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F!")},onUploadFailed:function(e,s,u){r.onUploadFailed&&r.onUploadFailed(e),console.log("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25!")},onUploadCanceled:function(e,s,u){console.log("\u6587\u4EF6\u4E0A\u4F20\u5DF2\u6682\u505C!")},onUploadProgress:function(e,s,u){r.onUploadProgress&&r.onUploadProgress(e,s,u);var a=Math.ceil(u*100);console.log("\u6587\u4EF6\u4E0A\u4F20\u4E2D...")},onUploadTokenExpired:function(e){console.log("\u6587\u4EF6\u4E0A\u4F20\u8D85\u65F6!");var s="/api/users/".concat(p,"/video_auths.json");Object(ae.a)(s,{method:"put",body:{video_id:e.videoId}}).then(function(u){var a=u.data,A=a.UploadAuth;E.resumeUploadWithAuth(A)}).catch(function(u){console.log(u)})},onUploadEnd:function(e){r.onUploadEnd&&r.onUploadEnd(e),console.log("onUploadEnd: uploaded all the files")}}),r.gotUploader&&r.gotUploader(E)}function l(r,n,e){r&&(p=r),n&&(C=n),b(e)}},BPZU:function(We,Ce){var I=32,ae=7,V=256;function M(n){for(var e=0;n>=I;)e|=n&1,n>>=1;return n+e}function p(n,e,s,u){var a=e+1;if(a===s)return 1;if(u(n[a++],n[e])<0){for(;a<s&&u(n[a],n[a-1])<0;)a++;E(n,e,a)}else for(;a<s&&u(n[a],n[a-1])>=0;)a++;return a-e}function E(n,e,s){for(s--;e<s;){var u=n[e];n[e++]=n[s],n[s--]=u}}function C(n,e,s,u,a){for(u===e&&u++;u<s;u++){for(var A=n[u],d=e,i=u,h;d<i;)h=d+i>>>1,a(A,n[h])<0?i=h:d=h+1;var y=u-d;switch(y){case 3:n[d+3]=n[d+2];case 2:n[d+2]=n[d+1];case 1:n[d+1]=n[d];break;default:for(;y>0;)n[d+y]=n[d+y-1],y--}n[d]=A}}function b(n,e,s,u,a,A){var d=0,i=0,h=1;if(A(n,e[s+a])>0){for(i=u-a;h<i&&A(n,e[s+a+h])>0;)d=h,h=(h<<1)+1,h<=0&&(h=i);h>i&&(h=i),d+=a,h+=a}else{for(i=a+1;h<i&&A(n,e[s+a-h])<=0;)d=h,h=(h<<1)+1,h<=0&&(h=i);h>i&&(h=i);var y=d;d=a-h,h=a-y}for(d++;d<h;){var v=d+(h-d>>>1);A(n,e[s+v])>0?d=v+1:h=v}return h}function f(n,e,s,u,a,A){var d=0,i=0,h=1;if(A(n,e[s+a])<0){for(i=a+1;h<i&&A(n,e[s+a-h])<0;)d=h,h=(h<<1)+1,h<=0&&(h=i);h>i&&(h=i);var y=d;d=a-h,h=a-y}else{for(i=u-a;h<i&&A(n,e[s+a+h])>=0;)d=h,h=(h<<1)+1,h<=0&&(h=i);h>i&&(h=i),d+=a,h+=a}for(d++;d<h;){var v=d+(h-d>>>1);A(n,e[s+v])<0?h=v:d=v+1}return h}function l(n,e){var s=ae,u=0,a=V,A=0,d,i,h=0;u=n.length,u<2*V&&(a=u>>>1);var y=[];A=u<120?5:u<1542?10:u<119151?19:40,d=[],i=[];function v(c,o){d[h]=c,i[h]=o,h+=1}function x(){for(;h>1;){var c=h-2;if(c>=1&&i[c-1]<=i[c]+i[c+1]||c>=2&&i[c-2]<=i[c]+i[c-1])i[c-1]<i[c+1]&&c--;else if(i[c]>i[c+1])break;B(c)}}function S(){for(;h>1;){var c=h-2;c>0&&i[c-1]<i[c+1]&&c--,B(c)}}function B(c){var o=d[c],_=i[c],D=d[c+1],T=i[c+1];i[c]=_+T,c===h-3&&(d[c+1]=d[c+2],i[c+1]=i[c+2]),h--;var O=f(n[D],n,o,_,0,e);if(o+=O,_-=O,_===0)return;if(T=b(n[o+_-1],n,D,T,T-1,e),T===0)return;_<=T?w(o,_,D,T):m(o,_,D,T)}function w(c,o,_,D){var T=0;for(T=0;T<o;T++)y[T]=n[c+T];var O=0,R=_,U=c;if(n[U++]=n[R++],--D===0){for(T=0;T<o;T++)n[U+T]=y[O+T];return}if(o===1){for(T=0;T<D;T++)n[U+T]=n[R+T];n[U+D]=y[O];return}for(var F=s,Y,k,K;;){Y=0,k=0,K=!1;do if(e(n[R],y[O])<0){if(n[U++]=n[R++],k++,Y=0,--D===0){K=!0;break}}else if(n[U++]=y[O++],Y++,k=0,--o===1){K=!0;break}while((Y|k)<F);if(K)break;do{if(Y=f(n[R],y,O,o,0,e),Y!==0){for(T=0;T<Y;T++)n[U+T]=y[O+T];if(U+=Y,O+=Y,o-=Y,o<=1){K=!0;break}}if(n[U++]=n[R++],--D===0){K=!0;break}if(k=b(y[O],n,R,D,0,e),k!==0){for(T=0;T<k;T++)n[U+T]=n[R+T];if(U+=k,R+=k,D-=k,D===0){K=!0;break}}if(n[U++]=y[O++],--o===1){K=!0;break}F--}while(Y>=ae||k>=ae);if(K)break;F<0&&(F=0),F+=2}if(s=F,s<1&&(s=1),o===1){for(T=0;T<D;T++)n[U+T]=n[R+T];n[U+D]=y[O]}else{if(o===0)throw new Error;for(T=0;T<o;T++)n[U+T]=y[O+T]}}function m(c,o,_,D){var T=0;for(T=0;T<D;T++)y[T]=n[_+T];var O=c+o-1,R=D-1,U=_+D-1,F=0,Y=0;if(n[U--]=n[O--],--o===0){for(F=U-(D-1),T=0;T<D;T++)n[F+T]=y[T];return}if(D===1){for(U-=o,O-=o,Y=U+1,F=O+1,T=o-1;T>=0;T--)n[Y+T]=n[F+T];n[U]=y[R];return}for(var k=s;;){var K=0,z=0,j=!1;do if(e(y[R],n[O])<0){if(n[U--]=n[O--],K++,z=0,--o===0){j=!0;break}}else if(n[U--]=y[R--],z++,K=0,--D===1){j=!0;break}while((K|z)<k);if(j)break;do{if(K=o-f(y[R],n,c,o,o-1,e),K!==0){for(U-=K,O-=K,o-=K,Y=U+1,F=O+1,T=K-1;T>=0;T--)n[Y+T]=n[F+T];if(o===0){j=!0;break}}if(n[U--]=y[R--],--D===1){j=!0;break}if(z=D-b(n[O],y,0,D,D-1,e),z!==0){for(U-=z,R-=z,D-=z,Y=U+1,F=R+1,T=0;T<z;T++)n[Y+T]=y[F+T];if(D<=1){j=!0;break}}if(n[U--]=n[O--],--o===0){j=!0;break}k--}while(K>=ae||z>=ae);if(j)break;k<0&&(k=0),k+=2}if(s=k,s<1&&(s=1),D===1){for(U-=o,O-=o,Y=U+1,F=O+1,T=o-1;T>=0;T--)n[Y+T]=n[F+T];n[U]=y[R]}else{if(D===0)throw new Error;for(F=U-(D-1),T=0;T<D;T++)n[F+T]=y[T]}}this.mergeRuns=x,this.forceMergeRuns=S,this.pushRun=v}function r(n,e,s,u){s||(s=0),u||(u=n.length);var a=u-s;if(a<2)return;var A=0;if(a<I){A=p(n,s,u,e),C(n,s,u,s+A,e);return}var d=new l(n,e),i=M(a);do{if(A=p(n,s,u,e),A<i){var h=a;h>i&&(h=i),C(n,s,s+h,s+A,e),A=h}d.pushRun(s,A),d.mergeRuns(),a-=A,s+=A}while(a!==0);d.forceMergeRuns()}We.exports=r},BU3w:function(We,Ce,I){"use strict";I.d(Ce,"a",function(){return C});var ae=I("MNnm"),V="rc-util-key";function M(b){if(b.attachTo)return b.attachTo;var f=document.querySelector("head");return f||document.body}function p(b){var f,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(ae.a)())return null;var r=document.createElement("style");if((f=l.csp)===null||f===void 0?void 0:f.nonce){var n;r.nonce=(n=l.csp)===null||n===void 0?void 0:n.nonce}r.innerHTML=b;var e=M(l),s=e.firstChild;return l.prepend&&e.prepend?e.prepend(r):l.prepend&&s?e.insertBefore(r,s):e.appendChild(r),r}var E=new Map;function C(b,f){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=M(l);if(!E.has(r)){var n=p("",l),e=n.parentNode;E.set(r,e),e.removeChild(n)}var s=Array.from(E.get(r).children).find(function(i){return i.tagName==="STYLE"&&i[V]===f});if(s){var u,a;if(((u=l.csp)===null||u===void 0?void 0:u.nonce)&&s.nonce!==((a=l.csp)===null||a===void 0?void 0:a.nonce)){var A;s.nonce=(A=l.csp)===null||A===void 0?void 0:A.nonce}return s.innerHTML!==b&&(s.innerHTML=b),s}var d=p(b,l);return d[V]=f,d}},Bd2K:function(We,Ce,I){(function(ae){ae(I("VrN/"),I("osHv"))})(function(ae){ae.defineOption("autoCloseTags",!1,function(l,r,n){if(n!=ae.Init&&n&&l.removeKeyMap("autoCloseTags"),!r)return;var e={name:"autoCloseTags"};(typeof r!="object"||r.whenClosing!==!1)&&(e["'/'"]=function(s){return C(s)}),(typeof r!="object"||r.whenOpening!==!1)&&(e["'>'"]=function(s){return p(s)}),l.addKeyMap(e)});var V=["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 p(l){if(l.getOption("disableInput"))return ae.Pass;for(var r=l.listSelections(),n=[],e=l.getOption("autoCloseTags"),s=0;s<r.length;s++){if(!r[s].empty())return ae.Pass;var u=r[s].head,a=l.getTokenAt(u),A=ae.innerMode(l.getMode(),a.state),d=A.state,i=A.mode.xmlCurrentTag&&A.mode.xmlCurrentTag(d),h=i&&i.name;if(!h)return ae.Pass;var y=A.mode.configuration=="html",v=typeof e=="object"&&e.dontCloseTags||y&&V,x=typeof e=="object"&&e.indentTags||y&&M;a.end>u.ch&&(h=h.slice(0,h.length-a.end+u.ch));var S=h.toLowerCase();if(!h||a.type=="string"&&(a.end!=u.ch||!/[\"\']/.test(a.string.charAt(a.string.length-1))||a.string.length==1)||a.type=="tag"&&i.close||a.string.indexOf("/")==u.ch-a.start-1||v&&b(v,S)>-1||f(l,A.mode.xmlCurrentContext&&A.mode.xmlCurrentContext(d)||[],h,u,!0))return ae.Pass;var B=typeof e=="object"&&e.emptyTags;if(B&&b(B,h)>-1){n[s]={text:"/>",newPos:ae.Pos(u.line,u.ch+2)};continue}var w=x&&b(x,S)>-1;n[s]={indent:w,text:">"+(w?`
`:"")+"</"+h+">",newPos:w?ae.Pos(u.line+1,0):ae.Pos(u.line,u.ch+1)}}for(var m=typeof e=="object"&&e.dontIndentOnAutoClose,s=r.length-1;s>=0;s--){var c=n[s];l.replaceRange(c.text,r[s].head,r[s].anchor,"+insert");var o=l.listSelections().slice(0);o[s]={head:c.newPos,anchor:c.newPos},l.setSelections(o),!m&&c.indent&&(l.indentLine(c.newPos.line,null,!0),l.indentLine(c.newPos.line+1,null,!0))}}function E(l,r){for(var n=l.listSelections(),e=[],s=r?"/":"</",u=l.getOption("autoCloseTags"),a=typeof u=="object"&&u.dontIndentOnSlash,A=0;A<n.length;A++){if(!n[A].empty())return ae.Pass;var d=n[A].head,i=l.getTokenAt(d),h=ae.innerMode(l.getMode(),i.state),y=h.state;if(r&&(i.type=="string"||i.string.charAt(0)!="<"||i.start!=d.ch-1))return ae.Pass;var v,x=h.mode.name!="xml"&&l.getMode().name=="htmlmixed";if(x&&h.mode.name=="javascript")v=s+"script";else if(x&&h.mode.name=="css")v=s+"style";else{var S=h.mode.xmlCurrentContext&&h.mode.xmlCurrentContext(y);if(!S||S.length&&f(l,S,S[S.length-1],d))return ae.Pass;v=s+S[S.length-1]}l.getLine(d.line).charAt(i.end)!=">"&&(v+=">"),e[A]=v}if(l.replaceSelections(e),n=l.listSelections(),!a)for(var A=0;A<n.length;A++)(A==n.length-1||n[A].head.line<n[A+1].head.line)&&l.indentLine(n[A].head.line)}function C(l){return l.getOption("disableInput")?ae.Pass:E(l,!0)}ae.commands.closeTag=function(l){return E(l)};function b(l,r){if(l.indexOf)return l.indexOf(r);for(var n=0,e=l.length;n<e;++n)if(l[n]==r)return n;return-1}function f(l,r,n,e,s){if(!ae.scanForClosingTag)return!1;var u=Math.min(l.lastLine()+1,e.line+500),a=ae.scanForClosingTag(l,e,null,u);if(!a||a.tag!=n)return!1;for(var A=s?1:0,d=r.length-1;d>=0&&r[d]==n;d--)++A;e=a.to;for(var d=1;d<A;d++){var i=ae.scanForClosingTag(l,e,null,u);if(!i||i.tag!=n)return!1;e=i.to}return!0}})},BdwD:function(We,Ce,I){"use strict";var ae=I("+L6B"),V=I("2/Rp"),M=I("0Owb"),p=I("k1fw"),E=I("q1tI"),C=I.n(E),b=I("FOrL"),f=I.n(b),l=function(n){var e=n.buttonProps,s=e===void 0?{}:e,u=n.styles,a=u===void 0?{}:u,A=n.customText,d=n.ButtonText,i=n.ButtonClick,h=n.Buttonclass,y=n.ButtonTwo;return C.a.createElement("section",{className:"tc animated fadeIn",style:Object(p.a)(Object(p.a)({},{color:"#999",margin:"200px auto"}),a)},C.a.createElement("img",{src:f.a}),C.a.createElement("p",{className:"mt20 font14"},A||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),d&&C.a.createElement(V.a,Object(M.a)({className:h,onClick:i},s),d),y&&y)};Ce.a=l},BjJ7:function(We,Ce,I){"use strict";I.d(Ce,"d",function(){return V}),I.d(Ce,"c",function(){return M}),I.d(Ce,"e",function(){return p}),I.d(Ce,"b",function(){return E}),I.d(Ce,"a",function(){return b});var ae=I("m3rI");function V(f){var l=!0;if(f.length>0){for(var r=0;r<f.length;r++)if(f[r].compile_success==0||!f[r].compile_success){l=!1;break}}else l=!1;return l}function M(f){for(var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=[],n=0;n<f.length;n++){var e=f[n],s=l?"".concat(l,"/").concat(e.name):"".concat(e.name);r.push({title:e.name,isLeaf:!(e.type==="tree"),key:s})}return r}function p(f,l,r){for(var n=0;n<f.length;n++){var e=f[n];if(e.key===l){e.children=r;break}e.children&&p(e.children,l,r)}return f}function E(f,l,r){var n;return function(){var e=this,s=arguments,u=function(){n=null,r||f.apply(e,s)},a=r&&!n;clearTimeout(n),n=setTimeout(u,l),a&&f.apply(e,s)}}var C=!0,b=ae.a.API_SERVER},BlVb:function(We,Ce,I){var ae=I("hyiK"),V=1e-8;function M(E,C){return Math.abs(E-C)<V}function p(E,C,b){var f=0,l=E[0];if(!l)return!1;for(var r=1;r<E.length;r++){var n=E[r];f+=ae(l[0],l[1],n[0],n[1],C,b),l=n}var e=E[0];return(!M(l[0],e[0])||!M(l[1],e[1]))&&(f+=ae(l[0],l[1],e[0],e[1],C,b)),f!==0}Ce.contain=p},Bq2U:function(We,Ce,I){var ae=I("RDYZ"),V=I("Qe9p"),M=I("bYtY"),p=M.isArrayLike,E=Array.prototype.slice;function C(v,x){return v[x]}function b(v,x,S){v[x]=S}function f(v,x,S){return(x-v)*S+v}function l(v,x,S){return S>.5?x:v}function r(v,x,S,B,w){var m=v.length;if(w===1)for(var c=0;c<m;c++)B[c]=f(v[c],x[c],S);else for(var o=m&&v[0].length,c=0;c<m;c++)for(var _=0;_<o;_++)B[c][_]=f(v[c][_],x[c][_],S)}function n(v,x,S){var B=v.length,w=x.length;if(B!==w){var m=B>w;if(m)v.length=w;else for(var c=B;c<w;c++)v.push(S===1?x[c]:E.call(x[c]))}for(var o=v[0]&&v[0].length,c=0;c<v.length;c++)if(S===1)isNaN(v[c])&&(v[c]=x[c]);else for(var _=0;_<o;_++)isNaN(v[c][_])&&(v[c][_]=x[c][_])}function e(v,x,S){if(v===x)return!0;var B=v.length;if(B!==x.length)return!1;if(S===1){for(var w=0;w<B;w++)if(v[w]!==x[w])return!1}else for(var m=v[0].length,w=0;w<B;w++)for(var c=0;c<m;c++)if(v[w][c]!==x[w][c])return!1;return!0}function s(v,x,S,B,w,m,c,o,_){var D=v.length;if(_===1)for(var T=0;T<D;T++)o[T]=u(v[T],x[T],S[T],B[T],w,m,c);else for(var O=v[0].length,T=0;T<D;T++)for(var R=0;R<O;R++)o[T][R]=u(v[T][R],x[T][R],S[T][R],B[T][R],w,m,c)}function u(v,x,S,B,w,m,c){var o=(S-v)*.5,_=(B-x)*.5;return(2*(x-S)+o+_)*c+(-3*(x-S)-2*o-_)*m+o*w+x}function a(v){if(p(v)){var x=v.length;if(p(v[0])){for(var S=[],B=0;B<x;B++)S.push(E.call(v[B]));return S}return E.call(v)}return v}function A(v){return v[0]=Math.floor(v[0]),v[1]=Math.floor(v[1]),v[2]=Math.floor(v[2]),"rgba("+v.join(",")+")"}function d(v){var x=v[v.length-1].value;return p(x&&x[0])?2:1}function i(v,x,S,B,w,m){var c=v._getter,o=v._setter,_=x==="spline",D=B.length;if(!D)return;var T=B[0].value,O=p(T),R=!1,U=!1,F=O?d(B):0,Y;B.sort(function(Me,ke){return Me.time-ke.time}),Y=B[D-1].time;for(var k=[],K=[],z=B[0].value,j=!0,Q=0;Q<D;Q++){k.push(B[Q].time/Y);var X=B[Q].value;if(O&&e(X,z,F)||!O&&X===z||(j=!1),z=X,typeof X=="string"){var te=V.parse(X);te?(X=te,R=!0):U=!0}K.push(X)}if(!m&&j)return;for(var oe=K[D-1],Q=0;Q<D-1;Q++)O?n(K[Q],oe,F):isNaN(K[Q])&&!isNaN(oe)&&!U&&!R&&(K[Q]=oe);O&&n(c(v._target,w),oe,F);var fe=0,le=0,we,Ae,be,me,he,ie;if(R)var pe=[0,0,0,0];var ye=function(Me,ke){var Ue;if(ke<0)Ue=0;else if(ke<le){for(we=Math.min(fe+1,D-1),Ue=we;Ue>=0&&!(k[Ue]<=ke);Ue--);Ue=Math.min(Ue,D-2)}else{for(Ue=fe;Ue<D&&!(k[Ue]>ke);Ue++);Ue=Math.min(Ue-1,D-2)}fe=Ue,le=ke;var re=k[Ue+1]-k[Ue];if(re===0)return;if(Ae=(ke-k[Ue])/re,_)if(me=K[Ue],be=K[Ue===0?Ue:Ue-1],he=K[Ue>D-2?D-1:Ue+1],ie=K[Ue>D-3?D-1:Ue+2],O)s(be,me,he,ie,Ae,Ae*Ae,Ae*Ae*Ae,c(Me,w),F);else{var N;if(R)N=s(be,me,he,ie,Ae,Ae*Ae,Ae*Ae*Ae,pe,1),N=A(pe);else{if(U)return l(me,he,Ae);N=u(be,me,he,ie,Ae,Ae*Ae,Ae*Ae*Ae)}o(Me,w,N)}else if(O)r(K[Ue],K[Ue+1],Ae,c(Me,w),F);else{var N;if(R)r(K[Ue],K[Ue+1],Ae,pe,1),N=A(pe);else{if(U)return l(K[Ue],K[Ue+1],Ae);N=f(K[Ue],K[Ue+1],Ae)}o(Me,w,N)}},de=new ae({target:v._target,life:Y,loop:v._loop,delay:v._delay,onframe:ye,ondestroy:S});return x&&x!=="spline"&&(de.easing=x),de}var h=function(v,x,S,B){this._tracks={},this._target=v,this._loop=x||!1,this._getter=S||C,this._setter=B||b,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};h.prototype={when:function(v,x){var S=this._tracks;for(var B in x){if(!x.hasOwnProperty(B))continue;if(!S[B]){S[B]=[];var w=this._getter(this._target,B);if(w==null)continue;v!==0&&S[B].push({time:0,value:a(w)})}S[B].push({time:v,value:x[B]})}return this},during:function(v){return this._onframeList.push(v),this},pause:function(){for(var v=0;v<this._clipList.length;v++)this._clipList[v].pause();this._paused=!0},resume:function(){for(var v=0;v<this._clipList.length;v++)this._clipList[v].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var v=this._doneList,x=v.length,S=0;S<x;S++)v[S].call(this)},start:function(v,x){var S=this,B=0,w=function(){B--,B||S._doneCallback()},m;for(var c in this._tracks){if(!this._tracks.hasOwnProperty(c))continue;var o=i(this,v,w,this._tracks[c],c,x);o&&(this._clipList.push(o),B++,this.animation&&this.animation.addClip(o),m=o)}if(m){var _=m.onframe;m.onframe=function(D,T){_(D,T);for(var O=0;O<S._onframeList.length;O++)S._onframeList[O](D,T)}}return B||this._doneCallback(),this},stop:function(v){for(var x=this._clipList,S=this.animation,B=0;B<x.length;B++){var w=x[B];v&&w.onframe(this._target,1),S&&S.removeClip(w)}x.length=0},delay:function(v){return this._delay=v,this},done:function(v){return v&&this._doneList.push(v),this},getClips:function(){return this._clipList}};var y=h;We.exports=y},"C+DQ":function(We,Ce,I){},C0SR:function(We,Ce,I){var ae=I("YH21"),V=function(){this._track=[]};V.prototype={constructor:V,recognize:function(b,f,l){return this._doTrack(b,f,l),this._recognize(b)},clear:function(){return this._track.length=0,this},_doTrack:function(b,f,l){var r=b.touches;if(!r)return;for(var n={points:[],touches:[],target:f,event:b},e=0,s=r.length;e<s;e++){var u=r[e],a=ae.clientToLocal(l,u,{});n.points.push([a.zrX,a.zrY]),n.touches.push(u)}this._track.push(n)},_recognize:function(b){for(var f in E)if(E.hasOwnProperty(f)){var l=E[f](this._track,b);if(l)return l}}};function M(b){var f=b[1][0]-b[0][0],l=b[1][1]-b[0][1];return Math.sqrt(f*f+l*l)}function p(b){return[(b[0][0]+b[1][0])/2,(b[0][1]+b[1][1])/2]}var E={pinch:function(b,f){var l=b.length;if(!l)return;var r=(b[l-1]||{}).points,n=(b[l-2]||{}).points||r;if(n&&n.length>1&&r&&r.length>1){var e=M(r)/M(n);!isFinite(e)&&(e=1),f.pinchScale=e;var s=p(r);return f.pinchX=s[0],f.pinchY=s[1],{type:"pinch",target:b[0].target,event:f}}}},C=V;We.exports=C},CnIC:function(We,Ce){We.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="},D1Df:function(We,Ce,I){"use strict";function ae(O){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ae=function(U){return typeof U}:ae=function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},ae(O)}function V(){return V=Object.assign||function(O){for(var R=1;R<arguments.length;R++){var U=arguments[R];for(var F in U)Object.prototype.hasOwnProperty.call(U,F)&&(O[F]=U[F])}return O},V.apply(this,arguments)}function M(O,R){var U=Object.keys(O);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(O);R&&(F=F.filter(function(Y){return Object.getOwnPropertyDescriptor(O,Y).enumerable})),U.push.apply(U,F)}return U}function p(O){for(var R=1;R<arguments.length;R++){var U=arguments[R]!=null?arguments[R]:{};R%2?M(U,!0).forEach(function(F){a(O,F,U[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(O,Object.getOwnPropertyDescriptors(U)):M(U).forEach(function(F){Object.defineProperty(O,F,Object.getOwnPropertyDescriptor(U,F))})}return O}function E(O,R){if(O==null)return{};var U=C(O,R),F,Y;if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(O);for(Y=0;Y<k.length;Y++){if(F=k[Y],R.indexOf(F)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(O,F))continue;U[F]=O[F]}}return U}function C(O,R){if(O==null)return{};var U={},F=Object.keys(O),Y,k;for(k=0;k<F.length;k++){if(Y=F[k],R.indexOf(Y)>=0)continue;U[Y]=O[Y]}return U}function b(O,R){if(!(O instanceof R))throw new TypeError("Cannot call a class as a function")}function f(O,R){for(var U=0;U<R.length;U++){var F=R[U];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(O,F.key,F)}}function l(O,R,U){return R&&f(O.prototype,R),U&&f(O,U),O}function r(O,R){return R&&(ae(R)==="object"||typeof R=="function")?R:e(O)}function n(O){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(U){return U.__proto__||Object.getPrototypeOf(U)},n(O)}function e(O){if(O===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}function s(O,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(R&&R.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),R&&u(O,R)}function u(O,R){return u=Object.setPrototypeOf||function(F,Y){return F.__proto__=Y,F},u(O,R)}function a(O,R,U){return R in O?Object.defineProperty(O,R,{value:U,enumerable:!0,configurable:!0,writable:!0}):O[R]=U,O}var A=I("q1tI"),d=I("17x9"),i=I("H38U"),h=I("aRTE");function y(O){for(var R="",U=0;U<O.length;U++){var F=O.charCodeAt(U);F<128?R+=String.fromCharCode(F):F<2048?(R+=String.fromCharCode(192|F>>6),R+=String.fromCharCode(128|F&63)):F<55296||F>=57344?(R+=String.fromCharCode(224|F>>12),R+=String.fromCharCode(128|F>>6&63),R+=String.fromCharCode(128|F&63)):(U++,F=65536+((F&1023)<<10|O.charCodeAt(U)&1023),R+=String.fromCharCode(240|F>>18),R+=String.fromCharCode(128|F>>12&63),R+=String.fromCharCode(128|F>>6&63),R+=String.fromCharCode(128|F&63))}return R}var v={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1},x={},S=4,B=.1;function w(O){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,U=[];return O.forEach(function(F,Y){var k=null;F.forEach(function(K,z){if(!K&&k!==null){U.push("M".concat(k+R," ").concat(Y+R,"h").concat(z-k,"v1H").concat(k+R,"z")),k=null;return}if(z===F.length-1){if(!K)return;k===null?U.push("M".concat(z+R,",").concat(Y+R," h1v1H").concat(z+R,"z")):U.push("M".concat(k+R,",").concat(Y+R," h").concat(z+1-k,"v1H").concat(k+R,"z"));return}K&&k===null&&(k=z)})}),U.join("")}function m(O,R){return O.slice().map(function(U,F){return F<R.y||F>=R.y+R.h?U:U.map(function(Y,k){return k<R.x||k>=R.x+R.w?Y:!1})})}function c(O,R){var U=O.imageSettings,F=O.size,Y=O.includeMargin;if(U==null)return null;var k=Y?S:0,K=R.length+k*2,z=Math.floor(F*B),j=K/F,Q=(U.width||z)*j,X=(U.height||z)*j,te=U.x==null?R.length/2-Q/2:U.x*j,oe=U.y==null?R.length/2-X/2:U.y*j,fe=null;if(U.excavate){var le=Math.floor(te),we=Math.floor(oe),Ae=Math.ceil(Q+te-le),be=Math.ceil(X+oe-we);fe={x:le,y:we,w:Ae,h:be}}return{x:te,y:oe,h:X,w:Q,excavation:fe}}var o=function(){try{new Path2D().addPath(new Path2D)}catch(O){return!1}return!0}(),_=function(O){s(R,O);function R(){var U,F;b(this,R);for(var Y=arguments.length,k=new Array(Y),K=0;K<Y;K++)k[K]=arguments[K];return F=r(this,(U=n(R)).call.apply(U,[this].concat(k))),a(e(F),"_canvas",void 0),a(e(F),"_image",void 0),a(e(F),"state",{imgLoaded:!1}),a(e(F),"handleImageLoad",function(){F.setState({imgLoaded:!0})}),F}return l(R,[{key:"componentDidMount",value:function(){this.update()}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){var F=this.props,Y=F.value,k=F.size,K=F.level,z=F.bgColor,j=F.fgColor,Q=F.includeMargin,X=F.imageSettings,te=new i(-1,h[K]);if(te.addData(y(Y)),te.make(),this._canvas!=null){var oe=this._canvas,fe=oe.getContext("2d");if(!fe)return;var le=te.modules;if(le===null)return;var we=Q?S:0,Ae=le.length+we*2,be=c(this.props,le);X!=null&&be!=null&&(be.excavation!=null&&(le=m(le,be.excavation)));var me=window.devicePixelRatio||1;oe.height=oe.width=k*me;var he=k/Ae*me;fe.scale(he,he),fe.fillStyle=z,fe.fillRect(0,0,Ae,Ae),fe.fillStyle=j,o?fe.fill(new Path2D(w(le,we))):le.forEach(function(ie,pe){ie.forEach(function(ye,de){ye&&fe.fillRect(de+we,pe+we,1,1)})}),this.state.imgLoaded&&this._image&&be!=null&&fe.drawImage(this._image,be.x+we,be.y+we,be.w,be.h)}}},{key:"render",value:function(){var F=this,Y=this.props,k=Y.value,K=Y.size,z=Y.level,j=Y.bgColor,Q=Y.fgColor,X=Y.style,te=Y.includeMargin,oe=Y.imageSettings,fe=E(Y,["value","size","level","bgColor","fgColor","style","includeMargin","imageSettings"]),le=p({height:K,width:K},X),we=null,Ae=oe&&oe.src;return oe!=null&&Ae!=null&&(we=A.createElement("img",{src:Ae,style:{display:"none"},onLoad:this.handleImageLoad,ref:function(me){return F._image=me}})),A.createElement(A.Fragment,null,A.createElement("canvas",V({style:le,height:K,width:K,ref:function(me){return F._canvas=me}},fe)),we)}}]),R}(A.PureComponent);a(_,"defaultProps",v);var D=function(O){s(R,O);function R(){return b(this,R),r(this,n(R).apply(this,arguments))}return l(R,[{key:"render",value:function(){var F=this.props,Y=F.value,k=F.size,K=F.level,z=F.bgColor,j=F.fgColor,Q=F.includeMargin,X=F.imageSettings,te=E(F,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),oe=new i(-1,h[K]);oe.addData(y(Y)),oe.make();var fe=oe.modules;if(fe===null)return null;var le=Q?S:0,we=fe.length+le*2,Ae=c(this.props,fe),be=null;X!=null&&Ae!=null&&(Ae.excavation!=null&&(fe=m(fe,Ae.excavation)),be=A.createElement("image",{xlinkHref:X.src,height:Ae.h,width:Ae.w,x:Ae.x+le,y:Ae.y+le,preserveAspectRatio:"none"}));var me=w(fe,le);return A.createElement("svg",V({shapeRendering:"crispEdges",height:k,width:k,viewBox:"0 0 ".concat(we," ").concat(we)},te),A.createElement("path",{fill:z,d:"M0,0 h".concat(we,"v").concat(we,"H0z")}),A.createElement("path",{fill:j,d:me}),be)}}]),R}(A.PureComponent);a(D,"defaultProps",v);var T=function(R){var U=R.renderAs,F=E(R,["renderAs"]),Y=U==="svg"?D:_;return A.createElement(Y,F)};T.defaultProps=p({renderAs:"canvas"},v),We.exports=T},DBLp:function(We,Ce){function I(){}I.prototype={diff:function(E,C,b){b||(b=function(h,y){return h===y}),this.equals=b;var f=this;E=E.slice(),C=C.slice();var l=C.length,r=E.length,n=1,e=l+r,s=[{newPos:-1,components:[]}],u=this.extractCommon(s[0],C,E,0);if(s[0].newPos+1>=l&&u+1>=r){for(var a=[],A=0;A<C.length;A++)a.push(A);return[{indices:a,count:C.length}]}function d(){for(var h=-1*n;h<=n;h+=2){var y,v=s[h-1],x=s[h+1],S=(x?x.newPos:0)-h;v&&(s[h-1]=void 0);var B=v&&v.newPos+1<l,w=x&&0<=S&&S<r;if(!B&&!w){s[h]=void 0;continue}if(!B||w&&v.newPos<x.newPos?(y=V(x),f.pushComponent(y.components,void 0,!0)):(y=v,y.newPos++,f.pushComponent(y.components,!0,void 0)),S=f.extractCommon(y,C,E,h),y.newPos+1>=l&&S+1>=r)return ae(f,y.components,C,E);s[h]=y}n++}for(;n<=e;){var i=d();if(i)return i}},pushComponent:function(E,C,b){var f=E[E.length-1];f&&f.added===C&&f.removed===b?E[E.length-1]={count:f.count+1,added:C,removed:b}:E.push({count:1,added:C,removed:b})},extractCommon:function(E,C,b,f){for(var l=C.length,r=b.length,n=E.newPos,e=n-f,s=0;n+1<l&&e+1<r&&this.equals(C[n+1],b[e+1]);)n++,e++,s++;return s&&E.components.push({count:s}),E.newPos=n,e},tokenize:function(E){return E.slice()},join:function(E){return E.slice()}};function ae(E,C,b,f){for(var l=0,r=C.length,n=0,e=0;l<r;l++){var s=C[l];if(s.removed){for(var u=[],a=e;a<e+s.count;a++)u.push(a);s.indices=u,e+=s.count}else{for(var u=[],a=n;a<n+s.count;a++)u.push(a);s.indices=u,n+=s.count,s.added||(e+=s.count)}}return C}function V(E){return{newPos:E.newPos,components:E.components.slice(0)}}var M=new I;function p(E,C,b){return M.diff(E,C,b)}We.exports=p},DN4a:function(We,Ce,I){var ae=I("Fofx"),V=I("QBsz"),M=ae.identity,p=5e-5;function E(e){return e>p||e<-p}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},b=C.prototype;b.transform=null,b.needLocalTransform=function(){return E(this.rotation)||E(this.position[0])||E(this.position[1])||E(this.scale[0]-1)||E(this.scale[1]-1)};var f=[];b.updateTransform=function(){var e=this.parent,s=e&&e.transform,u=this.needLocalTransform(),a=this.transform;if(!(u||s)){a&&M(a);return}a=a||ae.create(),u?this.getLocalTransform(a):M(a),s&&(u?ae.mul(a,e.transform,a):ae.copy(a,e.transform)),this.transform=a;var A=this.globalScaleRatio;if(A!=null&&A!==1){this.getGlobalScale(f);var d=f[0]<0?-1:1,i=f[1]<0?-1:1,h=((f[0]-d)*A+d)/f[0]||0,y=((f[1]-i)*A+i)/f[1]||0;a[0]*=h,a[1]*=h,a[2]*=y,a[3]*=y}this.invTransform=this.invTransform||ae.create(),ae.invert(this.invTransform,a)},b.getLocalTransform=function(e){return C.getLocalTransform(this,e)},b.setTransform=function(e){var s=this.transform,u=e.dpr||1;s?e.setTransform(u*s[0],u*s[1],u*s[2],u*s[3],u*s[4],u*s[5]):e.setTransform(u,0,0,u,0,0)},b.restoreTransform=function(e){var s=e.dpr||1;e.setTransform(s,0,0,s,0,0)};var l=[],r=ae.create();b.setLocalTransform=function(e){if(!e)return;var s=e[0]*e[0]+e[1]*e[1],u=e[2]*e[2]+e[3]*e[3],a=this.position,A=this.scale;E(s-1)&&(s=Math.sqrt(s)),E(u-1)&&(u=Math.sqrt(u)),e[0]<0&&(s=-s),e[3]<0&&(u=-u),a[0]=e[4],a[1]=e[5],A[0]=s,A[1]=u,this.rotation=Math.atan2(-e[1]/u,e[0]/s)},b.decomposeTransform=function(){if(!this.transform)return;var e=this.parent,s=this.transform;e&&e.transform&&(ae.mul(l,e.invTransform,s),s=l);var u=this.origin;u&&(u[0]||u[1])&&(r[4]=u[0],r[5]=u[1],ae.mul(l,s,r),l[4]-=u[0],l[5]-=u[1],s=l),this.setLocalTransform(s)},b.getGlobalScale=function(e){var s=this.transform;return e=e||[],s?(e[0]=Math.sqrt(s[0]*s[0]+s[1]*s[1]),e[1]=Math.sqrt(s[2]*s[2]+s[3]*s[3]),s[0]<0&&(e[0]=-e[0]),s[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},b.transformCoordToLocal=function(e,s){var u=[e,s],a=this.invTransform;return a&&V.applyTransform(u,u,a),u},b.transformCoordToGlobal=function(e,s){var u=[e,s],a=this.transform;return a&&V.applyTransform(u,u,a),u},C.getLocalTransform=function(e,s){s=s||[],M(s);var u=e.origin,a=e.scale||[1,1],A=e.rotation||0,d=e.position||[0,0];return u&&(s[4]-=u[0],s[5]-=u[1]),ae.scale(s,s,a),A&&ae.rotate(s,s,A),u&&(s[4]+=u[0],s[5]+=u[1]),s[4]+=d[0],s[5]+=d[1],s};var n=C;We.exports=n},Dagg:function(We,Ce,I){var ae=I("Gev7"),V=I("mFDi"),M=I("bYtY"),p=I("Xnb7");function E(b){ae.call(this,b)}E.prototype={constructor:E,type:"image",brush:function(b,f){var l=this.style,r=l.image;l.bind(b,this,f);var n=this._image=p.createOrUpdateImage(r,this._image,this,this.onload);if(!n||!p.isImageReady(n))return;var e=l.x||0,s=l.y||0,u=l.width,a=l.height,A=n.width/n.height;if(u==null&&a!=null?u=a*A:a==null&&u!=null?a=u/A:u==null&&a==null&&(u=n.width,a=n.height),this.setTransform(b),l.sWidth&&l.sHeight){var d=l.sx||0,i=l.sy||0;b.drawImage(n,d,i,l.sWidth,l.sHeight,e,s,u,a)}else if(l.sx&&l.sy){var d=l.sx,i=l.sy,h=u-d,y=a-i;b.drawImage(n,d,i,h,y,e,s,u,a)}else b.drawImage(n,e,s,u,a);l.text!=null&&(this.restoreTransform(b),this.drawRectText(b,this.getBoundingRect()))},getBoundingRect:function(){var b=this.style;return this._rect||(this._rect=new V(b.x||0,b.y||0,b.width||0,b.height||0)),this._rect}},M.inherits(E,ae);var C=E;We.exports=C},DlQD:function(We,Ce,I){(function(ae,V){We.exports=V()})(this,function(){"use strict";function ae(rt,Ze){for(var qe=0;qe<Ze.length;qe++){var Le=Ze[qe];Le.enumerable=Le.enumerable||!1,Le.configurable=!0,"value"in Le&&(Le.writable=!0),Object.defineProperty(rt,Le.key,Le)}}function V(rt,Ze,qe){return Ze&&ae(rt.prototype,Ze),qe&&ae(rt,qe),rt}function M(rt,Ze){if(!rt)return;if(typeof rt=="string")return p(rt,Ze);var qe=Object.prototype.toString.call(rt).slice(8,-1);if(qe==="Object"&&rt.constructor&&(qe=rt.constructor.name),qe==="Map"||qe==="Set")return Array.from(rt);if(qe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(qe))return p(rt,Ze)}function p(rt,Ze){(Ze==null||Ze>rt.length)&&(Ze=rt.length);for(var qe=0,Le=new Array(Ze);qe<Ze;qe++)Le[qe]=rt[qe];return Le}function E(rt,Ze){var qe;if(typeof Symbol=="undefined"||rt[Symbol.iterator]==null){if(Array.isArray(rt)||(qe=M(rt))||Ze&&rt&&typeof rt.length=="number"){qe&&(rt=qe);var Le=0;return function(){return Le>=rt.length?{done:!0}:{done:!1,value:rt[Le++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return qe=rt[Symbol.iterator](),qe.next.bind(qe)}function C(rt,Ze){return Ze={exports:{}},rt(Ze,Ze.exports),Ze.exports}var b=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 qe(Le){rt.exports.defaults=Le}rt.exports={defaults:Ze(),getDefaults:Ze,changeDefaults:qe}}),f=b.defaults,l=b.getDefaults,r=b.changeDefaults,n=/[&<>"']/,e=/[&<>"']/g,s=/[<>"']|&(?!#?\w+;)/,u=/[<>"']|&(?!#?\w+;)/g,a={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},A=function(Ze){return a[Ze]};function d(rt,Ze){if(Ze){if(n.test(rt))return rt.replace(e,A)}else if(s.test(rt))return rt.replace(u,A);return rt}var i=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function h(rt){return rt.replace(i,function(Ze,qe){return qe=qe.toLowerCase(),qe==="colon"?":":qe.charAt(0)==="#"?qe.charAt(1)==="x"?String.fromCharCode(parseInt(qe.substring(2),16)):String.fromCharCode(+qe.substring(1)):""})}var y=/(^|[^\[])\^/g;function v(rt,Ze){rt=rt.source||rt,Ze=Ze||"";var qe={replace:function(je,Ne){return Ne=Ne.source||Ne,Ne=Ne.replace(y,"$1"),rt=rt.replace(je,Ne),qe},getRegex:function(){return new RegExp(rt,Ze)}};return qe}var x=/[^\w:]/g,S=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function B(rt,Ze,qe){if(rt){var Le;try{Le=decodeURIComponent(h(qe)).replace(x,"").toLowerCase()}catch(je){return null}if(Le.indexOf("javascript:")===0||Le.indexOf("vbscript:")===0||Le.indexOf("data:")===0)return null}Ze&&!S.test(qe)&&(qe=_(Ze,qe));try{qe=encodeURI(qe).replace(/%25/g,"%")}catch(je){return null}return qe}var w={},m=/^[^:]+:\/*[^/]*$/,c=/^([^:]+:)[\s\S]*$/,o=/^([^:]+:\/*[^/]*)[\s\S]*$/;function _(rt,Ze){w[" "+rt]||(m.test(rt)?w[" "+rt]=rt+"/":w[" "+rt]=R(rt,"/",!0)),rt=w[" "+rt];var qe=rt.indexOf(":")===-1;return Ze.substring(0,2)==="//"?qe?Ze:rt.replace(c,"$1")+Ze:Ze.charAt(0)==="/"?qe?Ze:rt.replace(o,"$1")+Ze:rt+Ze}var D={exec:function(){}};function T(rt){for(var Ze=1,qe,Le;Ze<arguments.length;Ze++){qe=arguments[Ze];for(Le in qe)Object.prototype.hasOwnProperty.call(qe,Le)&&(rt[Le]=qe[Le])}return rt}function O(rt,Ze){var qe=rt.replace(/\|/g,function(Ne,$e,At){for(var Bt=!1,Nt=$e;--Nt>=0&&At[Nt]==="\\";)Bt=!Bt;return Bt?"|":" |"}),Le=qe.split(/ \|/),je=0;if(Le.length>Ze)Le.splice(Ze);else for(;Le.length<Ze;)Le.push("");for(;je<Le.length;je++)Le[je]=Le[je].trim().replace(/\\\|/g,"|");return Le}function R(rt,Ze,qe){var Le=rt.length;if(Le===0)return"";for(var je=0;je<Le;){var Ne=rt.charAt(Le-je-1);if(Ne===Ze&&!qe)je++;else if(Ne!==Ze&&qe)je++;else break}return rt.substr(0,Le-je)}function U(rt,Ze){if(rt.indexOf(Ze[1])===-1)return-1;for(var qe=rt.length,Le=0,je=0;je<qe;je++)if(rt[je]==="\\")je++;else if(rt[je]===Ze[0])Le++;else if(rt[je]===Ze[1]&&(Le--,Le<0))return je;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 Y={escape:d,unescape:h,edit:v,cleanUrl:B,resolveUrl:_,noopTest:D,merge:T,splitCells:O,rtrim:R,findClosingBracket:U,checkSanitizeDeprecation:F},k=b.defaults,K=Y.rtrim,z=Y.splitCells,j=Y.escape,Q=Y.findClosingBracket;function X(rt,Ze,qe){var Le=Ze.href,je=Ze.title?j(Ze.title):null,Ne=rt[1].replace(/\\([\[\]])/g,"$1");return rt[0].charAt(0)!=="!"?{type:"link",raw:qe,href:Le,title:je,text:Ne}:{type:"image",raw:qe,href:Le,title:je,text:j(Ne)}}function te(rt,Ze){var qe=rt.match(/^(\s+)(?:```)/);if(qe===null)return Ze;var Le=qe[1];return Ze.split(`
`).map(function(je){var Ne=je.match(/^\s+/);if(Ne===null)return je;var $e=Ne[0];return $e.length>=Le.length?je.slice(Le.length):je}).join(`
`)}var oe=function(){function rt(qe){this.options=qe||k}var Ze=rt.prototype;return Ze.space=function(Le){var je=this.rules.block.newline.exec(Le);if(je)return je[0].length>1?{type:"space",raw:je[0]}:{raw:`
`}},Ze.code=function(Le,je){var Ne=this.rules.block.code.exec(Le);if(Ne){var $e=je[je.length-1];if($e&&$e.type==="paragraph")return{raw:Ne[0],text:Ne[0].trimRight()};var At=Ne[0].replace(/^ {4}/gm,"");return{type:"code",raw:Ne[0],codeBlockStyle:"indented",text:this.options.pedantic?At:K(At,`
`)}}},Ze.fences=function(Le){var je=this.rules.block.fences.exec(Le);if(je){var Ne=je[0],$e=te(Ne,je[3]||"");return{type:"code",raw:Ne,lang:je[2]?je[2].trim():je[2],text:$e}}},Ze.heading=function(Le){var je=this.rules.block.heading.exec(Le);if(je)return{type:"heading",raw:je[0],depth:je[1].length,text:je[2]}},Ze.nptable=function(Le){var je=this.rules.block.nptable.exec(Le);if(je){var Ne={type:"table",header:z(je[1].replace(/^ *| *\| *$/g,"")),align:je[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:je[3]?je[3].replace(/\n$/,"").split(`
`):[],raw:je[0]};if(Ne.header.length===Ne.align.length){var $e=Ne.align.length,At;for(At=0;At<$e;At++)/^ *-+: *$/.test(Ne.align[At])?Ne.align[At]="right":/^ *:-+: *$/.test(Ne.align[At])?Ne.align[At]="center":/^ *:-+ *$/.test(Ne.align[At])?Ne.align[At]="left":Ne.align[At]=null;for($e=Ne.cells.length,At=0;At<$e;At++)Ne.cells[At]=z(Ne.cells[At],Ne.header.length);return Ne}}},Ze.hr=function(Le){var je=this.rules.block.hr.exec(Le);if(je)return{type:"hr",raw:je[0]}},Ze.blockquote=function(Le){var je=this.rules.block.blockquote.exec(Le);if(je){var Ne=je[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:je[0],text:Ne}}},Ze.list=function(Le){var je=this.rules.block.list.exec(Le);if(je){for(var Ne=je[0],$e=je[2],At=$e.length>1,Bt=$e[$e.length-1]===")",Nt={type:"list",raw:Ne,ordered:At,start:At?+$e.slice(0,-1):"",loose:!1,items:[]},It=je[0].match(this.rules.block.item),jt=!1,xt,Lt,St,dt,yt,Fe,et,Ot=It.length,Et=0;Et<Ot;Et++)xt=It[Et],Ne=xt,Lt=xt.length,xt=xt.replace(/^ *([*+-]|\d+[.)]) */,""),~xt.indexOf(`
`)&&(Lt-=xt.length,xt=this.options.pedantic?xt.replace(/^ {1,4}/gm,""):xt.replace(new RegExp("^ {1,"+Lt+"}","gm"),"")),Et!==Ot-1&&(St=this.rules.block.bullet.exec(It[Et+1])[0],(At?St.length===1||!Bt&&St[St.length-1]===")":St.length>1||this.options.smartLists&&St!==$e)&&(dt=It.slice(Et+1).join(`
`),Nt.raw=Nt.raw.substring(0,Nt.raw.length-dt.length),Et=Ot-1)),yt=jt||/\n\n(?!\s*$)/.test(xt),Et!==Ot-1&&(jt=xt.charAt(xt.length-1)===`
`,yt||(yt=jt)),yt&&(Nt.loose=!0),Fe=/^\[[ xX]\] /.test(xt),et=void 0,Fe&&(et=xt[1]!==" ",xt=xt.replace(/^\[[ xX]\] +/,"")),Nt.items.push({type:"list_item",raw:Ne,task:Fe,checked:et,loose:yt,text:xt});return Nt}},Ze.html=function(Le){var je=this.rules.block.html.exec(Le);if(je)return{type:this.options.sanitize?"paragraph":"html",raw:je[0],pre:!this.options.sanitizer&&(je[1]==="pre"||je[1]==="script"||je[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(je[0]):j(je[0]):je[0]}},Ze.def=function(Le){var je=this.rules.block.def.exec(Le);if(je){je[3]&&(je[3]=je[3].substring(1,je[3].length-1));var Ne=je[1].toLowerCase().replace(/\s+/g," ");return{tag:Ne,raw:je[0],href:je[2],title:je[3]}}},Ze.table=function(Le){var je=this.rules.block.table.exec(Le);if(je){var Ne={type:"table",header:z(je[1].replace(/^ *| *\| *$/g,"")),align:je[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:je[3]?je[3].replace(/\n$/,"").split(`
`):[]};if(Ne.header.length===Ne.align.length){Ne.raw=je[0];var $e=Ne.align.length,At;for(At=0;At<$e;At++)/^ *-+: *$/.test(Ne.align[At])?Ne.align[At]="right":/^ *:-+: *$/.test(Ne.align[At])?Ne.align[At]="center":/^ *:-+ *$/.test(Ne.align[At])?Ne.align[At]="left":Ne.align[At]=null;for($e=Ne.cells.length,At=0;At<$e;At++)Ne.cells[At]=z(Ne.cells[At].replace(/^ *\| *| *\| *$/g,""),Ne.header.length);return Ne}}},Ze.lheading=function(Le){var je=this.rules.block.lheading.exec(Le);if(je)return{type:"heading",raw:je[0],depth:je[2].charAt(0)==="="?1:2,text:je[1]}},Ze.paragraph=function(Le){var je=this.rules.block.paragraph.exec(Le);if(je)return{type:"paragraph",raw:je[0],text:je[1].charAt(je[1].length-1)===`
`?je[1].slice(0,-1):je[1]}},Ze.text=function(Le,je){var Ne=this.rules.block.text.exec(Le);if(Ne){var $e=je[je.length-1];return $e&&$e.type==="text"?{raw:Ne[0],text:Ne[0]}:{type:"text",raw:Ne[0],text:Ne[0]}}},Ze.escape=function(Le){var je=this.rules.inline.escape.exec(Le);if(je)return{type:"escape",raw:je[0],text:j(je[1])}},Ze.tag=function(Le,je,Ne){var $e=this.rules.inline.tag.exec(Le);if($e)return!je&&/^<a /i.test($e[0])?je=!0:je&&/^<\/a>/i.test($e[0])&&(je=!1),!Ne&&/^<(pre|code|kbd|script)(\s|>)/i.test($e[0])?Ne=!0:Ne&&/^<\/(pre|code|kbd|script)(\s|>)/i.test($e[0])&&(Ne=!1),{type:this.options.sanitize?"text":"html",raw:$e[0],inLink:je,inRawBlock:Ne,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer($e[0]):j($e[0]):$e[0]}},Ze.link=function(Le){var je=this.rules.inline.link.exec(Le);if(je){var Ne=Q(je[2],"()");if(Ne>-1){var $e=je[0].indexOf("!")===0?5:4,At=$e+je[1].length+Ne;je[2]=je[2].substring(0,Ne),je[0]=je[0].substring(0,At).trim(),je[3]=""}var Bt=je[2],Nt="";if(this.options.pedantic){var It=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Bt);It?(Bt=It[1],Nt=It[3]):Nt=""}else Nt=je[3]?je[3].slice(1,-1):"";Bt=Bt.trim().replace(/^<([\s\S]*)>$/,"$1");var jt=X(je,{href:Bt&&Bt.replace(this.rules.inline._escapes,"$1"),title:Nt&&Nt.replace(this.rules.inline._escapes,"$1")},je[0]);return jt}},Ze.reflink=function(Le,je){var Ne;if((Ne=this.rules.inline.reflink.exec(Le))||(Ne=this.rules.inline.nolink.exec(Le))){var $e=(Ne[2]||Ne[1]).replace(/\s+/g," ");if($e=je[$e.toLowerCase()],!$e||!$e.href){var At=Ne[0].charAt(0);return{type:"text",raw:At,text:At}}var Bt=X(Ne,$e,Ne[0]);return Bt}},Ze.strong=function(Le,je,Ne){Ne===void 0&&(Ne="");var $e=this.rules.inline.strong.start.exec(Le);if($e&&(!$e[1]||$e[1]&&(Ne===""||this.rules.inline.punctuation.exec(Ne)))){je=je.slice(-1*Le.length);var At=$e[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;At.lastIndex=0;for(var Bt;($e=At.exec(je))!=null;)if(Bt=this.rules.inline.strong.middle.exec(je.slice(0,$e.index+3)),Bt)return{type:"strong",raw:Le.slice(0,Bt[0].length),text:Le.slice(2,Bt[0].length-2)}}},Ze.em=function(Le,je,Ne){Ne===void 0&&(Ne="");var $e=this.rules.inline.em.start.exec(Le);if($e&&(!$e[1]||$e[1]&&(Ne===""||this.rules.inline.punctuation.exec(Ne)))){je=je.slice(-1*Le.length);var At=$e[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;At.lastIndex=0;for(var Bt;($e=At.exec(je))!=null;)if(Bt=this.rules.inline.em.middle.exec(je.slice(0,$e.index+2)),Bt)return{type:"em",raw:Le.slice(0,Bt[0].length),text:Le.slice(1,Bt[0].length-1)}}},Ze.codespan=function(Le){var je=this.rules.inline.code.exec(Le);if(je){var Ne=je[2].replace(/\n/g," "),$e=/[^ ]/.test(Ne),At=Ne.startsWith(" ")&&Ne.endsWith(" ");return $e&&At&&(Ne=Ne.substring(1,Ne.length-1)),Ne=j(Ne,!0),{type:"codespan",raw:je[0],text:Ne}}},Ze.br=function(Le){var je=this.rules.inline.br.exec(Le);if(je)return{type:"br",raw:je[0]}},Ze.del=function(Le){var je=this.rules.inline.del.exec(Le);if(je)return{type:"del",raw:je[0],text:je[1]}},Ze.autolink=function(Le,je){var Ne=this.rules.inline.autolink.exec(Le);if(Ne){var $e,At;return Ne[2]==="@"?($e=j(this.options.mangle?je(Ne[1]):Ne[1]),At="mailto:"+$e):($e=j(Ne[1]),At=$e),{type:"link",raw:Ne[0],text:$e,href:At,tokens:[{type:"text",raw:$e,text:$e}]}}},Ze.url=function(Le,je){var Ne;if(Ne=this.rules.inline.url.exec(Le)){var $e,At;if(Ne[2]==="@")$e=j(this.options.mangle?je(Ne[0]):Ne[0]),At="mailto:"+$e;else{var Bt;do Bt=Ne[0],Ne[0]=this.rules.inline._backpedal.exec(Ne[0])[0];while(Bt!==Ne[0]);$e=j(Ne[0]),Ne[1]==="www."?At="http://"+$e:At=$e}return{type:"link",raw:Ne[0],text:$e,href:At,tokens:[{type:"text",raw:$e,text:$e}]}}},Ze.inlineText=function(Le,je,Ne){var $e=this.rules.inline.text.exec(Le);if($e){var At;return je?At=this.options.sanitize?this.options.sanitizer?this.options.sanitizer($e[0]):j($e[0]):$e[0]:At=j(this.options.smartypants?Ne($e[0]):$e[0]),{type:"text",raw:$e[0],text:At}}},rt}(),fe=Y.noopTest,le=Y.edit,we=Y.merge,Ae={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:fe,table:fe,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};Ae._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Ae._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Ae.def=le(Ae.def).replace("label",Ae._label).replace("title",Ae._title).getRegex(),Ae.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ae.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,Ae.item=le(Ae.item,"gm").replace(/bull/g,Ae.bullet).getRegex(),Ae.list=le(Ae.list).replace(/bull/g,Ae.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ae.def.source+")").getRegex(),Ae._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",Ae._comment=/<!--(?!-?>)[\s\S]*?-->/,Ae.html=le(Ae.html,"i").replace("comment",Ae._comment).replace("tag",Ae._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ae.paragraph=le(Ae._paragraph).replace("hr",Ae.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",Ae._tag).getRegex(),Ae.blockquote=le(Ae.blockquote).replace("paragraph",Ae.paragraph).getRegex(),Ae.normal=we({},Ae),Ae.gfm=we({},Ae.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*|$)"}),Ae.gfm.nptable=le(Ae.gfm.nptable).replace("hr",Ae.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",Ae._tag).getRegex(),Ae.gfm.table=le(Ae.gfm.table).replace("hr",Ae.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",Ae._tag).getRegex(),Ae.pedantic=we({},Ae.normal,{html:le(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ae._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:fe,paragraph:le(Ae.normal._paragraph).replace("hr",Ae.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Ae.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var be={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:fe,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:fe,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};be._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",be.punctuation=le(be.punctuation).replace(/punctuation/g,be._punctuation).getRegex(),be._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",be._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",be.em.start=le(be.em.start).replace(/punctuation/g,be._punctuation).getRegex(),be.em.middle=le(be.em.middle).replace(/punctuation/g,be._punctuation).replace(/overlapSkip/g,be._overlapSkip).getRegex(),be.em.endAst=le(be.em.endAst,"g").replace(/punctuation/g,be._punctuation).getRegex(),be.em.endUnd=le(be.em.endUnd,"g").replace(/punctuation/g,be._punctuation).getRegex(),be.strong.start=le(be.strong.start).replace(/punctuation/g,be._punctuation).getRegex(),be.strong.middle=le(be.strong.middle).replace(/punctuation/g,be._punctuation).replace(/blockSkip/g,be._blockSkip).getRegex(),be.strong.endAst=le(be.strong.endAst,"g").replace(/punctuation/g,be._punctuation).getRegex(),be.strong.endUnd=le(be.strong.endUnd,"g").replace(/punctuation/g,be._punctuation).getRegex(),be.blockSkip=le(be._blockSkip,"g").getRegex(),be.overlapSkip=le(be._overlapSkip,"g").getRegex(),be._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,be._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,be._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])?)+(?![-_])/,be.autolink=le(be.autolink).replace("scheme",be._scheme).replace("email",be._email).getRegex(),be._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,be.tag=le(be.tag).replace("comment",Ae._comment).replace("attribute",be._attribute).getRegex(),be._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,be._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,be._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,be.link=le(be.link).replace("label",be._label).replace("href",be._href).replace("title",be._title).getRegex(),be.reflink=le(be.reflink).replace("label",be._label).getRegex(),be.reflinkSearch=le(be.reflinkSearch,"g").replace("reflink",be.reflink).replace("nolink",be.nolink).getRegex(),be.normal=we({},be),be.pedantic=we({},be.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:le(/^!?\[(label)\]\((.*?)\)/).replace("label",be._label).getRegex(),reflink:le(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",be._label).getRegex()}),be.gfm=we({},be.normal,{escape:le(be.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.!#$%&'*+\/=?_`{\|}~-]+@))/}),be.gfm.url=le(be.gfm.url,"i").replace("email",be.gfm._extended_email).getRegex(),be.breaks=we({},be.gfm,{br:le(be.br).replace("{2,}","*").getRegex(),text:le(be.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var me={block:Ae,inline:be},he=b.defaults,ie=me.block,pe=me.inline;function ye(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 de(rt){var Ze="",qe,Le,je=rt.length;for(qe=0;qe<je;qe++)Le=rt.charCodeAt(qe),Math.random()>.5&&(Le="x"+Le.toString(16)),Ze+="&#"+Le+";";return Ze}var Me=function(){function rt(qe){this.tokens=[],this.tokens.links=Object.create(null),this.options=qe||he,this.options.tokenizer=this.options.tokenizer||new oe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Le={block:ie.normal,inline:pe.normal};this.options.pedantic?(Le.block=ie.pedantic,Le.inline=pe.pedantic):this.options.gfm&&(Le.block=ie.gfm,this.options.breaks?Le.inline=pe.breaks:Le.inline=pe.gfm),this.tokenizer.rules=Le}rt.lex=function(Le,je){var Ne=new rt(je);return Ne.lex(Le)};var Ze=rt.prototype;return Ze.lex=function(Le){return Le=Le.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(Le,this.tokens,!0),this.inline(this.tokens),this.tokens},Ze.blockTokens=function(Le,je,Ne){je===void 0&&(je=[]),Ne===void 0&&(Ne=!0),Le=Le.replace(/^ +$/gm,"");for(var $e,At,Bt,Nt;Le;){if($e=this.tokenizer.space(Le)){Le=Le.substring($e.raw.length),$e.type&&je.push($e);continue}if($e=this.tokenizer.code(Le,je)){Le=Le.substring($e.raw.length),$e.type?je.push($e):(Nt=je[je.length-1],Nt.raw+=`
`+$e.raw,Nt.text+=`
`+$e.text);continue}if($e=this.tokenizer.fences(Le)){Le=Le.substring($e.raw.length),je.push($e);continue}if($e=this.tokenizer.heading(Le)){Le=Le.substring($e.raw.length),je.push($e);continue}if($e=this.tokenizer.nptable(Le)){Le=Le.substring($e.raw.length),je.push($e);continue}if($e=this.tokenizer.hr(Le)){Le=Le.substring($e.raw.length),je.push($e);continue}if($e=this.tokenizer.blockquote(Le)){Le=Le.substring($e.raw.length),$e.tokens=this.blockTokens($e.text,[],Ne),je.push($e);continue}if($e=this.tokenizer.list(Le)){for(Le=Le.substring($e.raw.length),Bt=$e.items.length,At=0;At<Bt;At++)$e.items[At].tokens=this.blockTokens($e.items[At].text,[],!1);je.push($e);continue}if($e=this.tokenizer.html(Le)){Le=Le.substring($e.raw.length),je.push($e);continue}if(Ne&&($e=this.tokenizer.def(Le))){Le=Le.substring($e.raw.length),this.tokens.links[$e.tag]||(this.tokens.links[$e.tag]={href:$e.href,title:$e.title});continue}if($e=this.tokenizer.table(Le)){Le=Le.substring($e.raw.length),je.push($e);continue}if($e=this.tokenizer.lheading(Le)){Le=Le.substring($e.raw.length),je.push($e);continue}if(Ne&&($e=this.tokenizer.paragraph(Le))){Le=Le.substring($e.raw.length),je.push($e);continue}if($e=this.tokenizer.text(Le,je)){Le=Le.substring($e.raw.length),$e.type?je.push($e):(Nt=je[je.length-1],Nt.raw+=`
`+$e.raw,Nt.text+=`
`+$e.text);continue}if(Le){var It="Infinite loop on byte: "+Le.charCodeAt(0);if(this.options.silent){console.error(It);break}else throw new Error(It)}}return je},Ze.inline=function(Le){var je,Ne,$e,At,Bt,Nt,It=Le.length;for(je=0;je<It;je++){Nt=Le[je];switch(Nt.type){case"paragraph":case"text":case"heading":{Nt.tokens=[],this.inlineTokens(Nt.text,Nt.tokens);break}case"table":{for(Nt.tokens={header:[],cells:[]},At=Nt.header.length,Ne=0;Ne<At;Ne++)Nt.tokens.header[Ne]=[],this.inlineTokens(Nt.header[Ne],Nt.tokens.header[Ne]);for(At=Nt.cells.length,Ne=0;Ne<At;Ne++)for(Bt=Nt.cells[Ne],Nt.tokens.cells[Ne]=[],$e=0;$e<Bt.length;$e++)Nt.tokens.cells[Ne][$e]=[],this.inlineTokens(Bt[$e],Nt.tokens.cells[Ne][$e]);break}case"blockquote":{this.inline(Nt.tokens);break}case"list":{for(At=Nt.items.length,Ne=0;Ne<At;Ne++)this.inline(Nt.items[Ne].tokens);break}}}return Le},Ze.inlineTokens=function(Le,je,Ne,$e,At){je===void 0&&(je=[]),Ne===void 0&&(Ne=!1),$e===void 0&&($e=!1),At===void 0&&(At="");var Bt,Nt=Le,It;if(this.tokens.links){var jt=Object.keys(this.tokens.links);if(jt.length>0)for(;(It=this.tokenizer.rules.inline.reflinkSearch.exec(Nt))!=null;)jt.includes(It[0].slice(It[0].lastIndexOf("[")+1,-1))&&(Nt=Nt.slice(0,It.index)+"["+"a".repeat(It[0].length-2)+"]"+Nt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(It=this.tokenizer.rules.inline.blockSkip.exec(Nt))!=null;)Nt=Nt.slice(0,It.index)+"["+"a".repeat(It[0].length-2)+"]"+Nt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Le;){if(Bt=this.tokenizer.escape(Le)){Le=Le.substring(Bt.raw.length),je.push(Bt);continue}if(Bt=this.tokenizer.tag(Le,Ne,$e)){Le=Le.substring(Bt.raw.length),Ne=Bt.inLink,$e=Bt.inRawBlock,je.push(Bt);continue}if(Bt=this.tokenizer.link(Le)){Le=Le.substring(Bt.raw.length),Bt.type==="link"&&(Bt.tokens=this.inlineTokens(Bt.text,[],!0,$e)),je.push(Bt);continue}if(Bt=this.tokenizer.reflink(Le,this.tokens.links)){Le=Le.substring(Bt.raw.length),Bt.type==="link"&&(Bt.tokens=this.inlineTokens(Bt.text,[],!0,$e)),je.push(Bt);continue}if(Bt=this.tokenizer.strong(Le,Nt,At)){Le=Le.substring(Bt.raw.length),Bt.tokens=this.inlineTokens(Bt.text,[],Ne,$e),je.push(Bt);continue}if(Bt=this.tokenizer.em(Le,Nt,At)){Le=Le.substring(Bt.raw.length),Bt.tokens=this.inlineTokens(Bt.text,[],Ne,$e),je.push(Bt);continue}if(Bt=this.tokenizer.codespan(Le)){Le=Le.substring(Bt.raw.length),je.push(Bt);continue}if(Bt=this.tokenizer.br(Le)){Le=Le.substring(Bt.raw.length),je.push(Bt);continue}if(Bt=this.tokenizer.del(Le)){Le=Le.substring(Bt.raw.length),Bt.tokens=this.inlineTokens(Bt.text,[],Ne,$e),je.push(Bt);continue}if(Bt=this.tokenizer.autolink(Le,de)){Le=Le.substring(Bt.raw.length),je.push(Bt);continue}if(!Ne&&(Bt=this.tokenizer.url(Le,de))){Le=Le.substring(Bt.raw.length),je.push(Bt);continue}if(Bt=this.tokenizer.inlineText(Le,$e,ye)){Le=Le.substring(Bt.raw.length),At=Bt.raw.slice(-1),je.push(Bt);continue}if(Le){var xt="Infinite loop on byte: "+Le.charCodeAt(0);if(this.options.silent){console.error(xt);break}else throw new Error(xt)}}return je},V(rt,null,[{key:"rules",get:function(){return{block:ie,inline:pe}}}]),rt}(),ke=b.defaults,Ue=Y.cleanUrl,re=Y.escape,N=function(){function rt(qe){this.options=qe||ke}var Ze=rt.prototype;return Ze.code=function(Le,je,Ne){var $e=(je||"").match(/\S*/)[0];if(this.options.highlight){var At=this.options.highlight(Le,$e);At!=null&&At!==Le&&(Ne=!0,Le=At)}return $e?'<pre><code class="'+this.options.langPrefix+re($e,!0)+'">'+(Ne?Le:re(Le,!0))+`</code></pre>
`:"<pre><code>"+(Ne?Le:re(Le,!0))+`</code></pre>
`},Ze.blockquote=function(Le){return`<blockquote>
`+Le+`</blockquote>
`},Ze.html=function(Le){return Le},Ze.heading=function(Le,je,Ne,$e){return this.options.headerIds?"<h"+je+' id="'+this.options.headerPrefix+$e.slug(Ne)+'">'+Le+"</h"+je+`>
`:"<h"+je+">"+Le+"</h"+je+`>
`},Ze.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},Ze.list=function(Le,je,Ne){var $e=je?"ol":"ul",At=je&&Ne!==1?' start="'+Ne+'"':"";return"<"+$e+At+`>
`+Le+"</"+$e+`>
`},Ze.listitem=function(Le){return"<li>"+Le+`</li>
`},Ze.checkbox=function(Le){return"<input "+(Le?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Ze.paragraph=function(Le){return"<p>"+Le+`</p>
`},Ze.table=function(Le,je){return je&&(je="<tbody>"+je+"</tbody>"),`<table>
<thead>
`+Le+`</thead>
`+je+`</table>
`},Ze.tablerow=function(Le){return`<tr>
`+Le+`</tr>
`},Ze.tablecell=function(Le,je){var Ne=je.header?"th":"td",$e=je.align?"<"+Ne+' align="'+je.align+'">':"<"+Ne+">";return $e+Le+"</"+Ne+`>
`},Ze.strong=function(Le){return"<strong>"+Le+"</strong>"},Ze.em=function(Le){return"<em>"+Le+"</em>"},Ze.codespan=function(Le){return"<code>"+Le+"</code>"},Ze.br=function(){return this.options.xhtml?"<br/>":"<br>"},Ze.del=function(Le){return"<del>"+Le+"</del>"},Ze.link=function(Le,je,Ne){if(Le=Ue(this.options.sanitize,this.options.baseUrl,Le),Le===null)return Ne;var $e='<a href="'+re(Le)+'"';return je&&($e+=' title="'+je+'"'),$e+=">"+Ne+"</a>",$e},Ze.image=function(Le,je,Ne){if(Le=Ue(this.options.sanitize,this.options.baseUrl,Le),Le===null)return Ne;var $e='<img src="'+Le+'" alt="'+Ne+'"';return je&&($e+=' title="'+je+'"'),$e+=this.options.xhtml?"/>":">",$e},Ze.text=function(Le){return Le},rt}(),W=function(){function rt(){}var Ze=rt.prototype;return Ze.strong=function(Le){return Le},Ze.em=function(Le){return Le},Ze.codespan=function(Le){return Le},Ze.del=function(Le){return Le},Ze.html=function(Le){return Le},Ze.text=function(Le){return Le},Ze.link=function(Le,je,Ne){return""+Ne},Ze.image=function(Le,je,Ne){return""+Ne},Ze.br=function(){return""},rt}(),ce=function(){function rt(){this.seen={}}var Ze=rt.prototype;return Ze.slug=function(Le){var je=Le.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(je)){var Ne=je;do this.seen[Ne]++,je=Ne+"-"+this.seen[Ne];while(this.seen.hasOwnProperty(je))}return this.seen[je]=0,je},rt}(),ne=b.defaults,ue=Y.unescape,De=function(){function rt(qe){this.options=qe||ne,this.options.renderer=this.options.renderer||new N,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new W,this.slugger=new ce}rt.parse=function(Le,je){var Ne=new rt(je);return Ne.parse(Le)};var Ze=rt.prototype;return Ze.parse=function(Le,je){je===void 0&&(je=!0);var Ne="",$e,At,Bt,Nt,It,jt,xt,Lt,St,dt,yt,Fe,et,Ot,Et,Ut,Wt,bt,Gt=Le.length;for($e=0;$e<Gt;$e++){dt=Le[$e];switch(dt.type){case"space":continue;case"hr":{Ne+=this.renderer.hr();continue}case"heading":{Ne+=this.renderer.heading(this.parseInline(dt.tokens),dt.depth,ue(this.parseInline(dt.tokens,this.textRenderer)),this.slugger);continue}case"code":{Ne+=this.renderer.code(dt.text,dt.lang,dt.escaped);continue}case"table":{for(Lt="",xt="",Nt=dt.header.length,At=0;At<Nt;At++)xt+=this.renderer.tablecell(this.parseInline(dt.tokens.header[At]),{header:!0,align:dt.align[At]});for(Lt+=this.renderer.tablerow(xt),St="",Nt=dt.cells.length,At=0;At<Nt;At++){for(jt=dt.tokens.cells[At],xt="",It=jt.length,Bt=0;Bt<It;Bt++)xt+=this.renderer.tablecell(this.parseInline(jt[Bt]),{header:!1,align:dt.align[Bt]});St+=this.renderer.tablerow(xt)}Ne+=this.renderer.table(Lt,St);continue}case"blockquote":{St=this.parse(dt.tokens),Ne+=this.renderer.blockquote(St);continue}case"list":{for(yt=dt.ordered,Fe=dt.start,et=dt.loose,Nt=dt.items.length,St="",At=0;At<Nt;At++)Et=dt.items[At],Ut=Et.checked,Wt=Et.task,Ot="",Et.task&&(bt=this.renderer.checkbox(Ut),et?Et.tokens.length>0&&Et.tokens[0].type==="text"?(Et.tokens[0].text=bt+" "+Et.tokens[0].text,Et.tokens[0].tokens&&Et.tokens[0].tokens.length>0&&Et.tokens[0].tokens[0].type==="text"&&(Et.tokens[0].tokens[0].text=bt+" "+Et.tokens[0].tokens[0].text)):Et.tokens.unshift({type:"text",text:bt}):Ot+=bt),Ot+=this.parse(Et.tokens,et),St+=this.renderer.listitem(Ot,Wt,Ut);Ne+=this.renderer.list(St,yt,Fe);continue}case"html":{Ne+=this.renderer.html(dt.text);continue}case"paragraph":{Ne+=this.renderer.paragraph(this.parseInline(dt.tokens));continue}case"text":{for(St=dt.tokens?this.parseInline(dt.tokens):dt.text;$e+1<Gt&&Le[$e+1].type==="text";)dt=Le[++$e],St+=`
`+(dt.tokens?this.parseInline(dt.tokens):dt.text);Ne+=je?this.renderer.paragraph(St):St;continue}default:{var un='Token with "'+dt.type+'" type was not found.';if(this.options.silent){console.error(un);return}else throw new Error(un)}}}return Ne},Ze.parseInline=function(Le,je){je=je||this.renderer;var Ne="",$e,At,Bt=Le.length;for($e=0;$e<Bt;$e++){At=Le[$e];switch(At.type){case"escape":{Ne+=je.text(At.text);break}case"html":{Ne+=je.html(At.text);break}case"link":{Ne+=je.link(At.href,At.title,this.parseInline(At.tokens,je));break}case"image":{Ne+=je.image(At.href,At.title,At.text);break}case"strong":{Ne+=je.strong(this.parseInline(At.tokens,je));break}case"em":{Ne+=je.em(this.parseInline(At.tokens,je));break}case"codespan":{Ne+=je.codespan(At.text);break}case"br":{Ne+=je.br();break}case"del":{Ne+=je.del(this.parseInline(At.tokens,je));break}case"text":{Ne+=je.text(At.text);break}default:{var Nt='Token with "'+At.type+'" type was not found.';if(this.options.silent){console.error(Nt);return}else throw new Error(Nt)}}}return Ne},rt}(),ze=Y.merge,wt=Y.checkSanitizeDeprecation,He=Y.escape,Xe=b.getDefaults,gt=b.changeDefaults,_t=b.defaults;function ct(rt,Ze,qe){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"&&(qe=Ze,Ze=null),Ze=ze({},ct.defaults,Ze||{}),wt(Ze),qe){var Le=Ze.highlight,je;try{je=Me.lex(rt,Ze)}catch(Bt){return qe(Bt)}var Ne=function(Nt){var It;if(!Nt)try{It=De.parse(je,Ze)}catch(jt){Nt=jt}return Ze.highlight=Le,Nt?qe(Nt):qe(null,It)};if(!Le||Le.length<3)return Ne();if(delete Ze.highlight,!je.length)return Ne();var $e=0;ct.walkTokens(je,function(Bt){Bt.type==="code"&&($e++,setTimeout(function(){Le(Bt.text,Bt.lang,function(Nt,It){if(Nt)return Ne(Nt);It!=null&&It!==Bt.text&&(Bt.text=It,Bt.escaped=!0),$e--,$e===0&&Ne()})},0))}),$e===0&&Ne();return}try{var At=Me.lex(rt,Ze);return Ze.walkTokens&&ct.walkTokens(At,Ze.walkTokens),De.parse(At,Ze)}catch(Bt){if(Bt.message+=`
Please report this to https://github.com/markedjs/marked.`,Ze.silent)return"<p>An error occurred:</p><pre>"+He(Bt.message+"",!0)+"</pre>";throw Bt}}ct.options=ct.setOptions=function(rt){return ze(ct.defaults,rt),gt(ct.defaults),ct},ct.getDefaults=Xe,ct.defaults=_t,ct.use=function(rt){var Ze=ze({},rt);if(rt.renderer&&function(){var Le=ct.defaults.renderer||new N,je=function(At){var Bt=Le[At];Le[At]=function(){for(var Nt=arguments.length,It=new Array(Nt),jt=0;jt<Nt;jt++)It[jt]=arguments[jt];var xt=rt.renderer[At].apply(Le,It);return xt===!1&&(xt=Bt.apply(Le,It)),xt}};for(var Ne in rt.renderer)je(Ne);Ze.renderer=Le}(),rt.tokenizer&&function(){var Le=ct.defaults.tokenizer||new oe,je=function(At){var Bt=Le[At];Le[At]=function(){for(var Nt=arguments.length,It=new Array(Nt),jt=0;jt<Nt;jt++)It[jt]=arguments[jt];var xt=rt.tokenizer[At].apply(Le,It);return xt===!1&&(xt=Bt.apply(Le,It)),xt}};for(var Ne in rt.tokenizer)je(Ne);Ze.tokenizer=Le}(),rt.walkTokens){var qe=ct.defaults.walkTokens;Ze.walkTokens=function(Le){rt.walkTokens(Le),qe&&qe(Le)}}ct.setOptions(Ze)},ct.walkTokens=function(rt,Ze){for(var qe=E(rt),Le;!(Le=qe()).done;){var je=Le.value;Ze(je);switch(je.type){case"table":{for(var Ne=E(je.tokens.header),$e;!($e=Ne()).done;){var At=$e.value;ct.walkTokens(At,Ze)}for(var Bt=E(je.tokens.cells),Nt;!(Nt=Bt()).done;)for(var It=Nt.value,jt=E(It),xt;!(xt=jt()).done;){var Lt=xt.value;ct.walkTokens(Lt,Ze)}break}case"list":{ct.walkTokens(je.items,Ze);break}default:je.tokens&&ct.walkTokens(je.tokens,Ze)}}},ct.Parser=De,ct.parser=De.parse,ct.Renderer=N,ct.TextRenderer=W,ct.Lexer=Me,ct.lexer=Me.lex,ct.Tokenizer=oe,ct.Slugger=ce,ct.parse=ct;var lt=ct;return lt})},Dols:function(We,Ce,I){We.exports={tree:"tree___22OZV",learn:"learn___ky8Lf",name:"name___2Aqg-",sign:"sign___1WxvA"}},E7E6:function(We,Ce){We.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(We,Ce,I){(function(ae){ae(I("VrN/"))})(function(ae){var V={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},M=ae.Pos;ae.defineOption("autoCloseBrackets",!1,function(a,A,d){d&&d!=ae.Init&&(a.removeKeyMap(E),a.state.closeBrackets=null),A&&(C(p(A,"pairs")),a.state.closeBrackets=A,a.addKeyMap(E))});function p(a,A){return A=="pairs"&&typeof a=="string"?a:typeof a=="object"&&a[A]!=null?a[A]:V[A]}var E={Backspace:l,Enter:r};function C(a){for(var A=0;A<a.length;A++){var d=a.charAt(A),i="'"+d+"'";E[i]||(E[i]=b(d))}}C(V.pairs+"`");function b(a){return function(A){return e(A,a)}}function f(a){var A=a.state.closeBrackets;if(!A||A.override)return A;var d=a.getModeAt(a.getCursor());return d.closeBrackets||A}function l(a){var A=f(a);if(!A||a.getOption("disableInput"))return ae.Pass;for(var d=p(A,"pairs"),i=a.listSelections(),h=0;h<i.length;h++){if(!i[h].empty())return ae.Pass;var y=s(a,i[h].head);if(!y||d.indexOf(y)%2!=0)return ae.Pass}for(var h=i.length-1;h>=0;h--){var v=i[h].head;a.replaceRange("",M(v.line,v.ch-1),M(v.line,v.ch+1),"+delete")}}function r(a){var A=f(a),d=A&&p(A,"explode");if(!d||a.getOption("disableInput"))return ae.Pass;for(var i=a.listSelections(),h=0;h<i.length;h++){if(!i[h].empty())return ae.Pass;var y=s(a,i[h].head);if(!y||d.indexOf(y)%2!=0)return ae.Pass}a.operation(function(){var v=a.lineSeparator()||`
`;a.replaceSelection(v+v,null),a.execCommand("goCharLeft"),i=a.listSelections();for(var x=0;x<i.length;x++){var S=i[x].head.line;a.indentLine(S,null,!0),a.indentLine(S+1,null,!0)}})}function n(a){var A=ae.cmpPos(a.anchor,a.head)>0;return{anchor:new M(a.anchor.line,a.anchor.ch+(A?-1:1)),head:new M(a.head.line,a.head.ch+(A?1:-1))}}function e(a,A){var d=f(a);if(!d||a.getOption("disableInput"))return ae.Pass;var i=p(d,"pairs"),h=i.indexOf(A);if(h==-1)return ae.Pass;for(var y=p(d,"closeBefore"),v=p(d,"triples"),x=i.charAt(h+1)==A,S=a.listSelections(),B=h%2==0,w,m=0;m<S.length;m++){var c=S[m],o=c.head,_,D=a.getRange(o,M(o.line,o.ch+1));if(B&&!c.empty())_="surround";else if((x||!B)&&D==A)x&&u(a,o)?_="both":v.indexOf(A)>=0&&a.getRange(o,M(o.line,o.ch+3))==A+A+A?_="skipThree":_="skip";else if(x&&o.ch>1&&v.indexOf(A)>=0&&a.getRange(M(o.line,o.ch-2),o)==A+A){if(o.ch>2&&/\bstring/.test(a.getTokenTypeAt(M(o.line,o.ch-2))))return ae.Pass;_="addFour"}else if(x){var T=o.ch==0?" ":a.getRange(M(o.line,o.ch-1),o);if(!ae.isWordChar(D)&&T!=A&&!ae.isWordChar(T))_="both";else return ae.Pass}else if(B&&(D.length===0||/\s/.test(D)||y.indexOf(D)>-1))_="both";else return ae.Pass;if(!w)w=_;else if(w!=_)return ae.Pass}var O=h%2?i.charAt(h-1):A,R=h%2?A:i.charAt(h+1);a.operation(function(){if(w=="skip")a.execCommand("goCharRight");else if(w=="skipThree")for(var U=0;U<3;U++)a.execCommand("goCharRight");else if(w=="surround"){for(var F=a.getSelections(),U=0;U<F.length;U++)F[U]=O+F[U]+R;a.replaceSelections(F,"around"),F=a.listSelections().slice();for(var U=0;U<F.length;U++)F[U]=n(F[U]);a.setSelections(F)}else w=="both"?(a.replaceSelection(O+R,null),a.triggerElectric(O+R),a.execCommand("goCharLeft")):w=="addFour"&&(a.replaceSelection(O+O+O+O,"before"),a.execCommand("goCharRight"))})}function s(a,A){var d=a.getRange(M(A.line,A.ch-1),M(A.line,A.ch+1));return d.length==2?d:null}function u(a,A){var d=a.getTokenAt(M(A.line,A.ch+1));return/\bstring/.test(d.type)&&d.start==A.ch&&(A.ch==0||!/\bstring/.test(a.getTokenTypeAt(A)))}})},FOrL:function(We,Ce,I){We.exports=I.p+"static/nodata.a6b3f948.png"},FPkq:function(We,Ce,I){We.exports=I.p+"static/qrCode.dd0fe9b2.png"},Fofx:function(We,Ce){var I=typeof Float32Array=="undefined"?Array:Float32Array;function ae(){var r=new I(6);return V(r),r}function V(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function M(r,n){return r[0]=n[0],r[1]=n[1],r[2]=n[2],r[3]=n[3],r[4]=n[4],r[5]=n[5],r}function p(r,n,e){var s=n[0]*e[0]+n[2]*e[1],u=n[1]*e[0]+n[3]*e[1],a=n[0]*e[2]+n[2]*e[3],A=n[1]*e[2]+n[3]*e[3],d=n[0]*e[4]+n[2]*e[5]+n[4],i=n[1]*e[4]+n[3]*e[5]+n[5];return r[0]=s,r[1]=u,r[2]=a,r[3]=A,r[4]=d,r[5]=i,r}function E(r,n,e){return r[0]=n[0],r[1]=n[1],r[2]=n[2],r[3]=n[3],r[4]=n[4]+e[0],r[5]=n[5]+e[1],r}function C(r,n,e){var s=n[0],u=n[2],a=n[4],A=n[1],d=n[3],i=n[5],h=Math.sin(e),y=Math.cos(e);return r[0]=s*y+A*h,r[1]=-s*h+A*y,r[2]=u*y+d*h,r[3]=-u*h+y*d,r[4]=y*a+h*i,r[5]=y*i-h*a,r}function b(r,n,e){var s=e[0],u=e[1];return r[0]=n[0]*s,r[1]=n[1]*u,r[2]=n[2]*s,r[3]=n[3]*u,r[4]=n[4]*s,r[5]=n[5]*u,r}function f(r,n){var e=n[0],s=n[2],u=n[4],a=n[1],A=n[3],d=n[5],i=e*A-a*s;return i?(i=1/i,r[0]=A*i,r[1]=-a*i,r[2]=-s*i,r[3]=e*i,r[4]=(s*d-A*u)*i,r[5]=(a*u-e*d)*i,r):null}function l(r){var n=ae();return M(n,r),n}Ce.create=ae,Ce.identity=V,Ce.copy=M,Ce.mul=p,Ce.translate=E,Ce.rotate=C,Ce.scale=b,Ce.invert=f,Ce.clone=l},FxDU:function(We,Ce,I){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.createSensor=void 0;var ae=I("QO+J"),V=I("j5sG"),M=typeof ResizeObserver!="undefined"?V.createSensor:ae.createSensor;Ce.createSensor=M},GABl:function(We,Ce){We.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(We,Ce,I){var ae=I("bYtY"),V=I("K2GJ"),M=I("1bdT"),p=I("ni6a");function E(b){b=b||{},M.call(this,b);for(var f in b)b.hasOwnProperty(f)&&f!=="style"&&(this[f]=b[f]);this.style=new V(b.style,this),this._rect=null,this.__clipPaths=null}E.prototype={constructor:E,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(b){},afterBrush:function(b){},brush:function(b,f){},getBoundingRect:function(){},contain:function(b,f){return this.rectContain(b,f)},traverse:function(b,f){b.call(f,this)},rectContain:function(b,f){var l=this.transformCoordToLocal(b,f),r=this.getBoundingRect();return r.contain(l[0],l[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(b){return this.animate("style",b)},attrKV:function(b,f){b!=="style"?M.prototype.attrKV.call(this,b,f):this.style.set(f)},setStyle:function(b,f){return this.style.set(b,f),this.dirty(!1),this},useStyle:function(b){return this.style=new V(b,this),this.dirty(!1),this},calculateTextPosition:null},ae.inherits(E,M),ae.mixin(E,p);var C=E;We.exports=C},GfqC:function(We,Ce,I){"use strict";var ae=I("q1tI"),V=I.n(ae),M=I("TSYQ"),p=I.n(M);function E(Y,k){var K="cannot "+Y.method+" "+Y.action+" "+k.status+"'",z=new Error(K);return z.status=k.status,z.method=Y.method,z.url=Y.action,z}function C(Y){var k=Y.responseText||Y.response;if(!k)return k;try{return JSON.parse(k)}catch(K){return k}}function b(Y){var k=new XMLHttpRequest;Y.onProgress&&k.upload&&(k.upload.onprogress=function(Q){Q.total>0&&(Q.percent=Q.loaded/Q.total*100),Y.onProgress(Q)});var K=new FormData;Y.data&&Object.keys(Y.data).forEach(function(j){var Q=Y.data[j];if(Array.isArray(Q)){Q.forEach(function(X){K.append(j+"[]",X)});return}K.append(j,Y.data[j])}),Y.file instanceof Blob?K.append(Y.filename,Y.file,Y.file.name):K.append(Y.filename,Y.file),k.onerror=function(Q){Y.onError(Q)},k.onload=function(){return k.status<200||k.status>=300?Y.onError(E(Y,k),C(k)):Y.onSuccess(C(k),k)},k.open(Y.method,Y.action,!0),Y.withCredentials&&"withCredentials"in k&&(k.withCredentials=!0);var z=Y.headers||{};return z["X-Requested-With"]!==null&&k.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(z).forEach(function(j){z[j]!==null&&k.setRequestHeader(j,z[j])}),k.send(K),{abort:function(){k.abort()}}}var f=+new Date,l=0;function r(){return"rc-upload-"+f+"-"+ ++l}function n(Y,k){return Y.indexOf(k,Y.length-k.length)!==-1}var e=function(Y,k){if(Y&&k){var K=Array.isArray(k)?k:k.split(","),z=Y.name||"",j=Y.type||"",Q=j.replace(/\/.*$/,"");return K.some(function(X){var te=X.trim();return te.charAt(0)==="."?n(z.toLowerCase(),te.toLowerCase()):/\/\*$/.test(te)?Q===te.replace(/\/.*$/,""):j===te})}return!0};function s(Y,k){var K=Y.createReader(),z=[];function j(){K.readEntries(function(Q){var X=Array.prototype.slice.apply(Q);z=z.concat(X);var te=!X.length;te?k(z):j()})}j()}var u=function(k,K,z){var j=function Q(X,te){te=te||"",X.isFile?X.file(function(oe){z(oe)&&(X.fullPath&&!oe.webkitRelativePath&&(Object.defineProperties(oe,{webkitRelativePath:{writable:!0}}),oe.webkitRelativePath=X.fullPath.replace(/^\//,""),Object.defineProperties(oe,{webkitRelativePath:{writable:!1}})),K([oe]))}):X.isDirectory&&s(X,function(oe){oe.forEach(function(fe){Q(fe,""+te+X.name+"/")})})};k.forEach(function(Q){j(Q.webkitGetAsEntry())})},a=u,A=Object.assign||function(Y){for(var k=1;k<arguments.length;k++){var K=arguments[k];for(var z in K)Object.prototype.hasOwnProperty.call(K,z)&&(Y[z]=K[z])}return Y},d=function(){function Y(k,K){var z=[],j=!0,Q=!1,X=void 0;try{for(var te=k[Symbol.iterator](),oe;!(j=(oe=te.next()).done)&&!(z.push(oe.value),K&&z.length===K);j=!0);}catch(fe){Q=!0,X=fe}finally{try{!j&&te.return&&te.return()}finally{if(Q)throw X}}return z}return function(k,K){if(Array.isArray(k))return k;if(Symbol.iterator in Object(k))return Y(k,K);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function Y(k,K){for(var z=0;z<K.length;z++){var j=K[z];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(k,j.key,j)}}return function(k,K,z){return K&&Y(k.prototype,K),z&&Y(k,z),k}}();function h(Y,k,K){return k in Y?Object.defineProperty(Y,k,{value:K,enumerable:!0,configurable:!0,writable:!0}):Y[k]=K,Y}function y(Y,k){var K={};for(var z in Y){if(k.indexOf(z)>=0)continue;if(!Object.prototype.hasOwnProperty.call(Y,z))continue;K[z]=Y[z]}return K}function v(Y,k){if(!(Y instanceof k))throw new TypeError("Cannot call a class as a function")}function x(Y,k){if(!Y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:Y}function S(Y,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);Y.prototype=Object.create(k&&k.prototype,{constructor:{value:Y,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(Y,k):Y.__proto__=k)}var B=function(k){return Object.keys(k).reduce(function(K,z){return(z.substr(0,5)==="data-"||z.substr(0,5)==="aria-"||z==="role")&&(K[z]=k[z]),K},{})},w=function(Y){S(k,Y);function k(){var K,z,j,Q;v(this,k);for(var X=arguments.length,te=Array(X),oe=0;oe<X;oe++)te[oe]=arguments[oe];return Q=(z=(j=x(this,(K=k.__proto__||Object.getPrototypeOf(k)).call.apply(K,[this].concat(te))),j),j.state={uid:r()},j.reqs={},j.onChange=function(fe){var le=fe.target.files;j.uploadFiles(le),j.reset()},j.onClick=function(fe){var le=j.fileInput;if(!le)return;var we=j.props,Ae=we.children,be=we.onClick;Ae&&Ae.type==="button"&&(le.parentNode.focus(),le.parentNode.querySelector("button").blur()),le.click(),be&&be(fe)},j.onKeyDown=function(fe){fe.key==="Enter"&&j.onClick()},j.onFileDrop=function(fe){var le=j.props.multiple;if(fe.preventDefault(),fe.type==="dragover")return;if(j.props.directory)a(Array.prototype.slice.call(fe.dataTransfer.items),j.uploadFiles,function(Ae){return e(Ae,j.props.accept)});else{var we=Array.prototype.slice.call(fe.dataTransfer.files).filter(function(Ae){return e(Ae,j.props.accept)});le===!1&&(we=we.slice(0,1)),j.uploadFiles(we)}},j.uploadFiles=function(fe){var le=Array.prototype.slice.call(fe);le.map(function(we){return we.uid=r(),we}).forEach(function(we){j.upload(we,le)})},j.saveFileInput=function(fe){j.fileInput=fe},z),x(j,Q)}return i(k,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(z,j){var Q=this,X=this.props;if(!X.beforeUpload)return setTimeout(function(){return Q.post(z)},0);var te=X.beforeUpload(z,j);te&&te.then?te.then(function(oe){var fe=Object.prototype.toString.call(oe);return fe==="[object File]"||fe==="[object Blob]"?Q.post(oe):Q.post(z)}).catch(function(oe){console.log(oe)}):te!==!1&&setTimeout(function(){return Q.post(z)},0);return}},{key:"post",value:function(z){var j=this;if(!this._isMounted)return;var Q=this.props,X=Q.onStart,te=Q.onProgress,oe=Q.transformFile,fe=oe===void 0?function(le){return le}:oe;new Promise(function(le){var we=Q.action;return typeof we=="function"&&(we=we(z)),le(we)}).then(function(le){var we=z.uid,Ae=Q.customRequest||b,be=Promise.resolve(fe(z)).then(function(me){var he=Q.data;return typeof he=="function"&&(he=he(me)),Promise.all([me,he])}).catch(function(me){console.error(me)});be.then(function(me){var he=d(me,2),ie=he[0],pe=he[1],ye={action:le,filename:Q.name,data:pe,file:ie,headers:Q.headers,withCredentials:Q.withCredentials,method:Q.method||"post",onProgress:te?function(de){te(de,z)}:null,onSuccess:function(Me,ke){delete j.reqs[we],Q.onSuccess(Me,z,ke)},onError:function(Me,ke){delete j.reqs[we],Q.onError(Me,ke,z)}};X(z),j.reqs[we]=Ae(ye)})})}},{key:"reset",value:function(){this.setState({uid:r()})}},{key:"abort",value:function(z){var j=this.reqs;if(z){var Q=z;z&&z.uid&&(Q=z.uid),j[Q]&&j[Q].abort&&j[Q].abort(),delete j[Q]}else Object.keys(j).forEach(function(X){j[X]&&j[X].abort&&j[X].abort(),delete j[X]})}},{key:"render",value:function(){var z,j=this.props,Q=j.component,X=j.prefixCls,te=j.className,oe=j.disabled,fe=j.id,le=j.style,we=j.multiple,Ae=j.accept,be=j.children,me=j.directory,he=j.openFileDialogOnClick,ie=j.onMouseEnter,pe=j.onMouseLeave,ye=y(j,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),de=p()((z={},h(z,X,!0),h(z,X+"-disabled",oe),h(z,te,te),z)),Me=oe?{}:{onClick:he?this.onClick:function(){},onKeyDown:he?this.onKeyDown:function(){},onMouseEnter:ie,onMouseLeave:pe,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return V.a.createElement(Q,A({},Me,{className:de,role:"button",style:le}),V.a.createElement("input",A({},B(ye),{id:fe,type:"file",ref:this.saveFileInput,onClick:function(Ue){return Ue.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Ae,directory:me?"directory":null,webkitdirectory:me?"webkitdirectory":null,multiple:we,onChange:this.onChange})),be)}}]),k}(ae.Component),m=w,c=Object.assign||function(Y){for(var k=1;k<arguments.length;k++){var K=arguments[k];for(var z in K)Object.prototype.hasOwnProperty.call(K,z)&&(Y[z]=K[z])}return Y},o=function(){function Y(k,K){for(var z=0;z<K.length;z++){var j=K[z];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(k,j.key,j)}}return function(k,K,z){return K&&Y(k.prototype,K),z&&Y(k,z),k}}();function _(Y,k){if(!(Y instanceof k))throw new TypeError("Cannot call a class as a function")}function D(Y,k){if(!Y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:Y}function T(Y,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);Y.prototype=Object.create(k&&k.prototype,{constructor:{value:Y,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(Y,k):Y.__proto__=k)}function O(){}var R=function(Y){T(k,Y);function k(){var K,z,j,Q;_(this,k);for(var X=arguments.length,te=Array(X),oe=0;oe<X;oe++)te[oe]=arguments[oe];return Q=(z=(j=D(this,(K=k.__proto__||Object.getPrototypeOf(k)).call.apply(K,[this].concat(te))),j),j.saveUploader=function(fe){j.uploader=fe},z),D(j,Q)}return o(k,[{key:"abort",value:function(z){this.uploader.abort(z)}},{key:"render",value:function(){return V.a.createElement(m,c({},this.props,{ref:this.saveUploader}))}}]),k}(ae.Component);R.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:O,onError:O,onSuccess:O,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var U=R,F=Ce.a=U},Gytx:function(We,Ce){We.exports=function(ae,V,M,p){var E=M?M.call(p,ae,V):void 0;if(E!==void 0)return!!E;if(ae===V)return!0;if(typeof ae!="object"||!ae||typeof V!="object"||!V)return!1;var C=Object.keys(ae),b=Object.keys(V);if(C.length!==b.length)return!1;for(var f=Object.prototype.hasOwnProperty.bind(V),l=0;l<C.length;l++){var r=C[l];if(!f(r))return!1;var n=ae[r],e=V[r];if(E=M?M.call(p,n,e,r):void 0,E===!1||E===void 0&&n!==e)return!1}return!0}},H38U:function(We,Ce,I){var ae=I("f4xo"),V=I("rcnY"),M=I("wU8J"),p=I("Iq15"),E=I("dWSS");function C(f,l){this.typeNumber=f,this.errorCorrectLevel=l,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var b=C.prototype;b.addData=function(f){var l=new ae(f);this.dataList.push(l),this.dataCache=null},b.isDark=function(f,l){if(f<0||this.moduleCount<=f||l<0||this.moduleCount<=l)throw new Error(f+","+l);return this.modules[f][l]},b.getModuleCount=function(){return this.moduleCount},b.make=function(){if(this.typeNumber<1){var f=1;for(f=1;f<40;f++){for(var l=V.getRSBlocks(f,this.errorCorrectLevel),r=new M,n=0,e=0;e<l.length;e++)n+=l[e].dataCount;for(var e=0;e<this.dataList.length;e++){var s=this.dataList[e];r.put(s.mode,4),r.put(s.getLength(),p.getLengthInBits(s.mode,f)),s.write(r)}if(r.getLengthInBits()<=n*8)break}this.typeNumber=f}this.makeImpl(!1,this.getBestMaskPattern())},b.makeImpl=function(f,l){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++)this.modules[r][n]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(f,l),this.typeNumber>=7&&this.setupTypeNumber(f),this.dataCache==null&&(this.dataCache=C.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,l)},b.setupPositionProbePattern=function(f,l){for(var r=-1;r<=7;r++){if(f+r<=-1||this.moduleCount<=f+r)continue;for(var n=-1;n<=7;n++){if(l+n<=-1||this.moduleCount<=l+n)continue;0<=r&&r<=6&&(n==0||n==6)||0<=n&&n<=6&&(r==0||r==6)||2<=r&&r<=4&&2<=n&&n<=4?this.modules[f+r][l+n]=!0:this.modules[f+r][l+n]=!1}}},b.getBestMaskPattern=function(){for(var f=0,l=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=p.getLostPoint(this);(r==0||f>n)&&(f=n,l=r)}return l},b.createMovieClip=function(f,l,r){var n=f.createEmptyMovieClip(l,r),e=1;this.make();for(var s=0;s<this.modules.length;s++)for(var u=s*e,a=0;a<this.modules[s].length;a++){var A=a*e,d=this.modules[s][a];d&&(n.beginFill(0,100),n.moveTo(A,u),n.lineTo(A+e,u),n.lineTo(A+e,u+e),n.lineTo(A,u+e),n.endFill())}return n},b.setupTimingPattern=function(){for(var f=8;f<this.moduleCount-8;f++){if(this.modules[f][6]!=null)continue;this.modules[f][6]=f%2==0}for(var l=8;l<this.moduleCount-8;l++){if(this.modules[6][l]!=null)continue;this.modules[6][l]=l%2==0}},b.setupPositionAdjustPattern=function(){for(var f=p.getPatternPosition(this.typeNumber),l=0;l<f.length;l++)for(var r=0;r<f.length;r++){var n=f[l],e=f[r];if(this.modules[n][e]!=null)continue;for(var s=-2;s<=2;s++)for(var u=-2;u<=2;u++)s==-2||s==2||u==-2||u==2||s==0&&u==0?this.modules[n+s][e+u]=!0:this.modules[n+s][e+u]=!1}},b.setupTypeNumber=function(f){for(var l=p.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var n=!f&&(l>>r&1)==1;this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(var r=0;r<18;r++){var n=!f&&(l>>r&1)==1;this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},b.setupTypeInfo=function(f,l){for(var r=this.errorCorrectLevel<<3|l,n=p.getBCHTypeInfo(r),e=0;e<15;e++){var s=!f&&(n>>e&1)==1;e<6?this.modules[e][8]=s:e<8?this.modules[e+1][8]=s:this.modules[this.moduleCount-15+e][8]=s}for(var e=0;e<15;e++){var s=!f&&(n>>e&1)==1;e<8?this.modules[8][this.moduleCount-e-1]=s:e<9?this.modules[8][15-e-1+1]=s:this.modules[8][15-e-1]=s}this.modules[this.moduleCount-8][8]=!f},b.mapData=function(f,l){for(var r=-1,n=this.moduleCount-1,e=7,s=0,u=this.moduleCount-1;u>0;u-=2)for(u==6&&u--;;){for(var a=0;a<2;a++)if(this.modules[n][u-a]==null){var A=!1;s<f.length&&(A=(f[s]>>>e&1)==1);var d=p.getMask(l,n,u-a);d&&(A=!A),this.modules[n][u-a]=A,e--,e==-1&&(s++,e=7)}if(n+=r,n<0||this.moduleCount<=n){n-=r,r=-r;break}}},C.PAD0=236,C.PAD1=17,C.createData=function(f,l,r){for(var n=V.getRSBlocks(f,l),e=new M,s=0;s<r.length;s++){var u=r[s];e.put(u.mode,4),e.put(u.getLength(),p.getLengthInBits(u.mode,f)),u.write(e)}for(var a=0,s=0;s<n.length;s++)a+=n[s].dataCount;if(e.getLengthInBits()>a*8)throw new Error("code length overflow. ("+e.getLengthInBits()+">"+a*8+")");for(e.getLengthInBits()+4<=a*8&&e.put(0,4);e.getLengthInBits()%8!=0;)e.putBit(!1);for(;!(e.getLengthInBits()>=a*8);){if(e.put(C.PAD0,8),e.getLengthInBits()>=a*8)break;e.put(C.PAD1,8)}return C.createBytes(e,n)},C.createBytes=function(f,l){for(var r=0,n=0,e=0,s=new Array(l.length),u=new Array(l.length),a=0;a<l.length;a++){var A=l[a].dataCount,d=l[a].totalCount-A;n=Math.max(n,A),e=Math.max(e,d),s[a]=new Array(A);for(var i=0;i<s[a].length;i++)s[a][i]=255&f.buffer[i+r];r+=A;var h=p.getErrorCorrectPolynomial(d),y=new E(s[a],h.getLength()-1),v=y.mod(h);u[a]=new Array(h.getLength()-1);for(var i=0;i<u[a].length;i++){var x=i+v.getLength()-u[a].length;u[a][i]=x>=0?v.get(x):0}}for(var S=0,i=0;i<l.length;i++)S+=l[i].totalCount;for(var B=new Array(S),w=0,i=0;i<n;i++)for(var a=0;a<l.length;a++)i<s[a].length&&(B[w++]=s[a][i]);for(var i=0;i<e;i++)for(var a=0;a<l.length;a++)i<u[a].length&&(B[w++]=u[a][i]);return B},We.exports=C},H6uX:function(We,Ce){var I=Array.prototype.slice,ae=function(E){this._$handlers={},this._$eventProcessor=E};ae.prototype={constructor:ae,one:function(E,C,b,f){return M(this,E,C,b,f,!0)},on:function(E,C,b,f){return M(this,E,C,b,f,!1)},isSilent:function(E){var C=this._$handlers;return!C[E]||!C[E].length},off:function(E,C){var b=this._$handlers;if(!E)return this._$handlers={},this;if(C){if(b[E]){for(var f=[],l=0,r=b[E].length;l<r;l++)b[E][l].h!==C&&f.push(b[E][l]);b[E]=f}b[E]&&b[E].length===0&&delete b[E]}else delete b[E];return this},trigger:function(E){var C=this._$handlers[E],b=this._$eventProcessor;if(C){var f=arguments,l=f.length;l>3&&(f=I.call(f,1));for(var r=C.length,n=0;n<r;){var e=C[n];if(b&&b.filter&&e.query!=null&&!b.filter(E,e.query)){n++;continue}switch(l){case 1:e.h.call(e.ctx);break;case 2:e.h.call(e.ctx,f[1]);break;case 3:e.h.call(e.ctx,f[1],f[2]);break;default:e.h.apply(e.ctx,f);break}e.one?(C.splice(n,1),r--):n++}}return b&&b.afterTrigger&&b.afterTrigger(E),this},triggerWithContext:function(E){var C=this._$handlers[E],b=this._$eventProcessor;if(C){var f=arguments,l=f.length;l>4&&(f=I.call(f,1,f.length-1));for(var r=f[f.length-1],n=C.length,e=0;e<n;){var s=C[e];if(b&&b.filter&&s.query!=null&&!b.filter(E,s.query)){e++;continue}switch(l){case 1:s.h.call(r);break;case 2:s.h.call(r,f[1]);break;case 3:s.h.call(r,f[1],f[2]);break;default:s.h.apply(r,f);break}s.one?(C.splice(e,1),n--):e++}}return b&&b.afterTrigger&&b.afterTrigger(E),this}};function V(E,C){var b=E._$eventProcessor;return C!=null&&b&&b.normalizeQuery&&(C=b.normalizeQuery(C)),C}function M(E,C,b,f,l,r){var n=E._$handlers;if(typeof b=="function"&&(l=f,f=b,b=null),!f||!C)return E;b=V(E,b),n[C]||(n[C]=[]);for(var e=0;e<n[C].length;e++)if(n[C][e].h===f)return E;var s={h:f,one:r,query:b,ctx:l||E,callAtLast:f.zrEventfulCallAtLast},u=n[C].length-1,a=n[C][u];return a&&a.callAtLast?n[C].splice(u,0,s):n[C].push(s),E}var p=ae;We.exports=p},HmJG:function(We,Ce,I){},HpTS:function(We,Ce,I){We.exports=I.p+"static/small_program.f74069ec.png"},I8Z2:function(We,Ce,I){"use strict";I.d(Ce,"a",function(){return p}),I.d(Ce,"b",function(){return s}),I.d(Ce,"c",function(){return a});var ae=I("q1tI"),V=function(){var A=function(d,i){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var v in y)y.hasOwnProperty(v)&&(h[v]=y[v])},A(d,i)};return function(d,i){A(d,i);function h(){this.constructor=d}d.prototype=i===null?Object.create(i):(h.prototype=i.prototype,new h)}}(),M=ae.createContext(null),p=function(A){V(d,A);function d(){return A!==null&&A.apply(this,arguments)||this}return d.prototype.render=function(){return ae.createElement(M.Provider,{value:this.props.store},this.props.children)},d}(ae.Component),E=I("Gytx"),C=I.n(E),b=I("2mql"),f=I.n(b),l=function(){var A=function(d,i){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var v in y)y.hasOwnProperty(v)&&(h[v]=y[v])},A(d,i)};return function(d,i){A(d,i);function h(){this.constructor=d}d.prototype=i===null?Object.create(i):(h.prototype=i.prototype,new h)}}(),r=function(){return r=Object.assign||function(A){for(var d,i=1,h=arguments.length;i<h;i++){d=arguments[i];for(var y in d)Object.prototype.hasOwnProperty.call(d,y)&&(A[y]=d[y])}return A},r.apply(this,arguments)};function n(A){return A.displayName||A.name||"Component"}var e=function(){return{}};function s(A,d){d===void 0&&(d={});var i=!!A,h=A||e;return function(v){var x=function(B){l(w,B);function w(m,c){var o=B.call(this,m,c)||this;return o.unsubscribe=null,o.handleChange=function(){if(!o.unsubscribe)return;var _=h(o.store.getState(),o.props);o.setState({subscribed:_})},o.store=o.context,o.state={subscribed:h(o.store.getState(),m),store:o.store,props:m},o}return w.getDerivedStateFromProps=function(m,c){return A&&A.length===2&&m!==c.props?{subscribed:h(c.store.getState(),m),props:m}:{props:m}},w.prototype.componentDidMount=function(){this.trySubscribe()},w.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},w.prototype.shouldComponentUpdate=function(m,c){return!C()(this.props,m)||!C()(this.state.subscribed,c.subscribed)},w.prototype.trySubscribe=function(){i&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},w.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},w.prototype.render=function(){var m=r(r(r({},this.props),this.state.subscribed),{store:this.store});return ae.createElement(v,r({},m,{ref:this.props.miniStoreForwardedRef}))},w.displayName="Connect("+n(v)+")",w.contextType=M,w}(ae.Component);if(d.forwardRef){var S=ae.forwardRef(function(B,w){return ae.createElement(x,r({},B,{miniStoreForwardedRef:w}))});return f()(S,v)}return f()(x,v)}}var u=function(){return u=Object.assign||function(A){for(var d,i=1,h=arguments.length;i<h;i++){d=arguments[i];for(var y in d)Object.prototype.hasOwnProperty.call(d,y)&&(A[y]=d[y])}return A},u.apply(this,arguments)};function a(A){var d=A,i=[];function h(x){d=u(u({},d),x);for(var S=0;S<i.length;S++)i[S]()}function y(){return d}function v(x){return i.push(x),function(){var B=i.indexOf(x);i.splice(B,1)}}return{setState:h,getState:y,subscribe:v}}},IBYe:function(We,Ce,I){"use strict";function ae(V){return null}Ce.a=ae},IMiH:function(We,Ce,I){var ae=I("Sj9i"),V=I("QBsz"),M=I("4mN7"),p=I("mFDi"),E=I("LPTA"),C=E.devicePixelRatio,b={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},f=[],l=[],r=[],n=[],e=Math.min,s=Math.max,u=Math.cos,a=Math.sin,A=Math.sqrt,d=Math.abs,i=typeof Float32Array!="undefined",h=function(v){this._saveData=!(v||!1),this._saveData&&(this.data=[]),this._ctx=null};h.prototype={constructor:h,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(v,x,S){S=S||0,this._ux=d(S/C/v)||0,this._uy=d(S/C/x)||0},getContext:function(){return this._ctx},beginPath:function(v){return this._ctx=v,v&&v.beginPath(),v&&(this.dpr=v.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(v,x){return this.addData(b.M,v,x),this._ctx&&this._ctx.moveTo(v,x),this._x0=v,this._y0=x,this._xi=v,this._yi=x,this},lineTo:function(v,x){var S=d(v-this._xi)>this._ux||d(x-this._yi)>this._uy||this._len<5;return this.addData(b.L,v,x),this._ctx&&S&&(this._needsDash()?this._dashedLineTo(v,x):this._ctx.lineTo(v,x)),S&&(this._xi=v,this._yi=x),this},bezierCurveTo:function(v,x,S,B,w,m){return this.addData(b.C,v,x,S,B,w,m),this._ctx&&(this._needsDash()?this._dashedBezierTo(v,x,S,B,w,m):this._ctx.bezierCurveTo(v,x,S,B,w,m)),this._xi=w,this._yi=m,this},quadraticCurveTo:function(v,x,S,B){return this.addData(b.Q,v,x,S,B),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(v,x,S,B):this._ctx.quadraticCurveTo(v,x,S,B)),this._xi=S,this._yi=B,this},arc:function(v,x,S,B,w,m){return this.addData(b.A,v,x,S,S,B,w-B,0,m?0:1),this._ctx&&this._ctx.arc(v,x,S,B,w,m),this._xi=u(w)*S+v,this._yi=a(w)*S+x,this},arcTo:function(v,x,S,B,w){return this._ctx&&this._ctx.arcTo(v,x,S,B,w),this},rect:function(v,x,S,B){return this._ctx&&this._ctx.rect(v,x,S,B),this.addData(b.R,v,x,S,B),this},closePath:function(){this.addData(b.Z);var v=this._ctx,x=this._x0,S=this._y0;return v&&(this._needsDash()&&this._dashedLineTo(x,S),v.closePath()),this._xi=x,this._yi=S,this},fill:function(v){v&&v.fill(),this.toStatic()},stroke:function(v){v&&v.stroke(),this.toStatic()},setLineDash:function(v){if(v instanceof Array){this._lineDash=v,this._dashIdx=0;for(var x=0,S=0;S<v.length;S++)x+=v[S];this._dashSum=x}return this},setLineDashOffset:function(v){return this._dashOffset=v,this},len:function(){return this._len},setData:function(v){var x=v.length;!(this.data&&this.data.length===x)&&i&&(this.data=new Float32Array(x));for(var S=0;S<x;S++)this.data[S]=v[S];this._len=x},appendPath:function(v){v instanceof Array||(v=[v]);for(var x=v.length,S=0,B=this._len,w=0;w<x;w++)S+=v[w].len();i&&this.data instanceof Float32Array&&(this.data=new Float32Array(B+S));for(var w=0;w<x;w++)for(var m=v[w].data,c=0;c<m.length;c++)this.data[B++]=m[c];this._len=B},addData:function(v){if(!this._saveData)return;var x=this.data;this._len+arguments.length>x.length&&(this._expandData(),x=this.data);for(var S=0;S<arguments.length;S++)x[this._len++]=arguments[S];this._prevCmd=v},_expandData:function(){if(!(this.data instanceof Array)){for(var v=[],x=0;x<this._len;x++)v[x]=this.data[x];this.data=v}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(v,x){var S=this._dashSum,B=this._dashOffset,w=this._lineDash,m=this._ctx,c=this._xi,o=this._yi,_=v-c,D=x-o,T=A(_*_+D*D),O=c,R=o,U,F=w.length,Y;for(_/=T,D/=T,B<0&&(B=S+B),B%=S,O-=B*_,R-=B*D;_>0&&O<=v||_<0&&O>=v||_===0&&(D>0&&R<=x||D<0&&R>=x);){if(Y=this._dashIdx,U=w[Y],O+=_*U,R+=D*U,this._dashIdx=(Y+1)%F,_>0&&O<c||_<0&&O>c||D>0&&R<o||D<0&&R>o)continue;m[Y%2?"moveTo":"lineTo"](_>=0?e(O,v):s(O,v),D>=0?e(R,x):s(R,x))}_=O-v,D=R-x,this._dashOffset=-A(_*_+D*D)},_dashedBezierTo:function(v,x,S,B,w,m){var c=this._dashSum,o=this._dashOffset,_=this._lineDash,D=this._ctx,T=this._xi,O=this._yi,R,U,F,Y=ae.cubicAt,k=0,K=this._dashIdx,z=_.length,j,Q,X=0;for(o<0&&(o=c+o),o%=c,R=0;R<1;R+=.1)U=Y(T,v,S,w,R+.1)-Y(T,v,S,w,R),F=Y(O,x,B,m,R+.1)-Y(O,x,B,m,R),k+=A(U*U+F*F);for(;K<z&&!(X+=_[K],X>o);K++);for(R=(X-o)/k;R<=1;)j=Y(T,v,S,w,R),Q=Y(O,x,B,m,R),K%2?D.moveTo(j,Q):D.lineTo(j,Q),R+=_[K]/k,K=(K+1)%z;K%2!==0&&D.lineTo(w,m),U=w-j,F=m-Q,this._dashOffset=-A(U*U+F*F)},_dashedQuadraticTo:function(v,x,S,B){var w=S,m=B;S=(S+2*v)/3,B=(B+2*x)/3,v=(this._xi+2*v)/3,x=(this._yi+2*x)/3,this._dashedBezierTo(v,x,S,B,w,m)},toStatic:function(){var v=this.data;v instanceof Array&&(v.length=this._len,i&&(this.data=new Float32Array(v)))},getBoundingRect:function(){f[0]=f[1]=r[0]=r[1]=Number.MAX_VALUE,l[0]=l[1]=n[0]=n[1]=-Number.MAX_VALUE;for(var v=this.data,x=0,S=0,B=0,w=0,m=0;m<v.length;){var c=v[m++];m===1&&(x=v[m],S=v[m+1],B=x,w=S);switch(c){case b.M:B=v[m++],w=v[m++],x=B,S=w,r[0]=B,r[1]=w,n[0]=B,n[1]=w;break;case b.L:M.fromLine(x,S,v[m],v[m+1],r,n),x=v[m++],S=v[m++];break;case b.C:M.fromCubic(x,S,v[m++],v[m++],v[m++],v[m++],v[m],v[m+1],r,n),x=v[m++],S=v[m++];break;case b.Q:M.fromQuadratic(x,S,v[m++],v[m++],v[m],v[m+1],r,n),x=v[m++],S=v[m++];break;case b.A:var o=v[m++],_=v[m++],D=v[m++],T=v[m++],O=v[m++],R=v[m++]+O;m+=1;var U=1-v[m++];m===1&&(B=u(O)*D+o,w=a(O)*T+_),M.fromArc(o,_,D,T,O,R,U,r,n),x=u(R)*D+o,S=a(R)*T+_;break;case b.R:B=x=v[m++],w=S=v[m++];var F=v[m++],Y=v[m++];M.fromLine(B,w,B+F,w+Y,r,n);break;case b.Z:x=B,S=w;break}V.min(f,f,r),V.max(l,l,n)}return m===0&&(f[0]=f[1]=l[0]=l[1]=0),new p(f[0],f[1],l[0]-f[0],l[1]-f[1])},rebuildPath:function(v){for(var x=this.data,S,B,w,m,c,o,_=this._ux,D=this._uy,T=this._len,O=0;O<T;){var R=x[O++];O===1&&(w=x[O],m=x[O+1],S=w,B=m);switch(R){case b.M:S=w=x[O++],B=m=x[O++],v.moveTo(w,m);break;case b.L:c=x[O++],o=x[O++],(d(c-w)>_||d(o-m)>D||O===T-1)&&(v.lineTo(c,o),w=c,m=o);break;case b.C:v.bezierCurveTo(x[O++],x[O++],x[O++],x[O++],x[O++],x[O++]),w=x[O-2],m=x[O-1];break;case b.Q:v.quadraticCurveTo(x[O++],x[O++],x[O++],x[O++]),w=x[O-2],m=x[O-1];break;case b.A:var U=x[O++],F=x[O++],Y=x[O++],k=x[O++],K=x[O++],z=x[O++],j=x[O++],Q=x[O++],X=Y>k?Y:k,te=Y>k?1:Y/k,oe=Y>k?k/Y:1,fe=Math.abs(Y-k)>.001,le=K+z;fe?(v.translate(U,F),v.rotate(j),v.scale(te,oe),v.arc(0,0,X,K,le,1-Q),v.scale(1/te,1/oe),v.rotate(-j),v.translate(-U,-F)):v.arc(U,F,X,K,le,1-Q),O===1&&(S=u(K)*Y+U,B=a(K)*k+F),w=u(le)*Y+U,m=a(le)*k+F;break;case b.R:S=w=x[O],B=m=x[O+1],v.rect(x[O++],x[O++],x[O++],x[O++]);break;case b.Z:v.closePath(),w=S,m=B}}}},h.CMD=b;var y=h;We.exports=y},Iq15:function(We,Ce,I){var ae=I("nVVt"),V=I("dWSS"),M=I("dQei"),p={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},E={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,G18:1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,G15_MASK:1<<14|1<<12|1<<10|1<<4|1<<1,getBCHTypeInfo:function(C){for(var b=C<<10;E.getBCHDigit(b)-E.getBCHDigit(E.G15)>=0;)b^=E.G15<<E.getBCHDigit(b)-E.getBCHDigit(E.G15);return(C<<10|b)^E.G15_MASK},getBCHTypeNumber:function(C){for(var b=C<<12;E.getBCHDigit(b)-E.getBCHDigit(E.G18)>=0;)b^=E.G18<<E.getBCHDigit(b)-E.getBCHDigit(E.G18);return C<<12|b},getBCHDigit:function(C){for(var b=0;C!=0;)b++,C>>>=1;return b},getPatternPosition:function(C){return E.PATTERN_POSITION_TABLE[C-1]},getMask:function(C,b,f){switch(C){case p.PATTERN000:return(b+f)%2==0;case p.PATTERN001:return b%2==0;case p.PATTERN010:return f%3==0;case p.PATTERN011:return(b+f)%3==0;case p.PATTERN100:return(Math.floor(b/2)+Math.floor(f/3))%2==0;case p.PATTERN101:return b*f%2+b*f%3==0;case p.PATTERN110:return(b*f%2+b*f%3)%2==0;case p.PATTERN111:return(b*f%3+(b+f)%2)%2==0;default:throw new Error("bad maskPattern:"+C)}},getErrorCorrectPolynomial:function(C){for(var b=new V([1],0),f=0;f<C;f++)b=b.multiply(new V([1,M.gexp(f)],0));return b},getLengthInBits:function(C,b){if(1<=b&&b<10)switch(C){case ae.MODE_NUMBER:return 10;case ae.MODE_ALPHA_NUM:return 9;case ae.MODE_8BIT_BYTE:return 8;case ae.MODE_KANJI:return 8;default:throw new Error("mode:"+C)}else if(b<27)switch(C){case ae.MODE_NUMBER:return 12;case ae.MODE_ALPHA_NUM:return 11;case ae.MODE_8BIT_BYTE:return 16;case ae.MODE_KANJI:return 10;default:throw new Error("mode:"+C)}else if(b<41)switch(C){case ae.MODE_NUMBER:return 14;case ae.MODE_ALPHA_NUM:return 13;case ae.MODE_8BIT_BYTE:return 16;case ae.MODE_KANJI:return 12;default:throw new Error("mode:"+C)}else throw new Error("type:"+b)},getLostPoint:function(C){for(var b=C.getModuleCount(),f=0,l=0;l<b;l++)for(var r=0;r<b;r++){for(var n=0,e=C.isDark(l,r),s=-1;s<=1;s++){if(l+s<0||b<=l+s)continue;for(var u=-1;u<=1;u++){if(r+u<0||b<=r+u)continue;if(s==0&&u==0)continue;e==C.isDark(l+s,r+u)&&n++}}n>5&&(f+=3+n-5)}for(var l=0;l<b-1;l++)for(var r=0;r<b-1;r++){var a=0;C.isDark(l,r)&&a++,C.isDark(l+1,r)&&a++,C.isDark(l,r+1)&&a++,C.isDark(l+1,r+1)&&a++,(a==0||a==4)&&(f+=3)}for(var l=0;l<b;l++)for(var r=0;r<b-6;r++)C.isDark(l,r)&&!C.isDark(l,r+1)&&C.isDark(l,r+2)&&C.isDark(l,r+3)&&C.isDark(l,r+4)&&!C.isDark(l,r+5)&&C.isDark(l,r+6)&&(f+=40);for(var r=0;r<b;r++)for(var l=0;l<b-6;l++)C.isDark(l,r)&&!C.isDark(l+1,r)&&C.isDark(l+2,r)&&C.isDark(l+3,r)&&C.isDark(l+4,r)&&!C.isDark(l+5,r)&&C.isDark(l+6,r)&&(f+=40);for(var A=0,r=0;r<b;r++)for(var l=0;l<b;l++)C.isDark(l,r)&&A++;var d=Math.abs(100*A/b/b-50)/5;return f+=d*10,f}};We.exports=E},ItGF:function(We,Ce){var I={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?I={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?I={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?I={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:I=V(navigator.userAgent);var ae=I;function V(M){var p={},E={},C=M.match(/Firefox\/([\d.]+)/),b=M.match(/MSIE\s([\d.]+)/)||M.match(/Trident\/.+?rv:(([\d.]+))/),f=M.match(/Edge\/([\d.]+)/),l=/micromessenger/i.test(M);return C&&(E.firefox=!0,E.version=C[1]),b&&(E.ie=!0,E.version=b[1]),f&&(E.edge=!0,E.version=f[1]),l&&(E.weChat=!0),{browser:E,os:p,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!E.ie&&!E.edge,pointerEventsSupported:"onpointerdown"in window&&(E.edge||E.ie&&E.version>=11),domSupported:typeof document!="undefined"}}We.exports=ae},IxHN:function(We,Ce,I){"use strict";var ae=I("q1tI"),V=I.n(ae),M=I("07cG"),p=I.n(M);Ce.a=function(E){var C=E.message,b=E.className,f=E.children,l=E.style,r=l===void 0?{}:l;return V.a.createElement("div",{className:"".concat(p.a.idsRingWrapper," ").concat(b)},V.a.createElement("div",{className:p.a.ldsRing},V.a.createElement("div",null),V.a.createElement("div",null),V.a.createElement("div",null),V.a.createElement("div",null)),C?V.a.createElement("p",{style:r},C):null,f)}},JTSX:function(We,Ce,I){We.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(We,Ce,I){We.exports=I.p+"static/charpter-white.5fa14f93.svg"},JeFH:function(We,Ce){We.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(We,Ce,I){We.exports=I.p+"static/qrcode.54870d9b.png"},K2GJ:function(We,Ce,I){var ae=I("fW2E"),V=I("gut8"),M=V.ContextCachedBy,p=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],E=function(e){this.extendFrom(e,!1)};function C(e,s,u){var a=s.x==null?0:s.x,A=s.x2==null?1:s.x2,d=s.y==null?0:s.y,i=s.y2==null?0:s.y2;s.global||(a=a*u.width+u.x,A=A*u.width+u.x,d=d*u.height+u.y,i=i*u.height+u.y),a=isNaN(a)?0:a,A=isNaN(A)?1:A,d=isNaN(d)?0:d,i=isNaN(i)?0:i;var h=e.createLinearGradient(a,d,A,i);return h}function b(e,s,u){var a=u.width,A=u.height,d=Math.min(a,A),i=s.x==null?.5:s.x,h=s.y==null?.5:s.y,y=s.r==null?.5:s.r;s.global||(i=i*a+u.x,h=h*A+u.y,y=y*d);var v=e.createRadialGradient(i,h,0,i,h,y);return v}E.prototype={constructor:E,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,s,u){var a=this,A=u&&u.style,d=!A||e.__attrCachedBy!==M.STYLE_BIND;e.__attrCachedBy=M.STYLE_BIND;for(var i=0;i<p.length;i++){var h=p[i],y=h[0];(d||a[y]!==A[y])&&(e[y]=ae(e,y,a[y]||h[1]))}if((d||a.fill!==A.fill)&&(e.fillStyle=a.fill),(d||a.stroke!==A.stroke)&&(e.strokeStyle=a.stroke),(d||a.opacity!==A.opacity)&&(e.globalAlpha=a.opacity==null?1:a.opacity),(d||a.blend!==A.blend)&&(e.globalCompositeOperation=a.blend||"source-over"),this.hasStroke()){var v=a.lineWidth;e.lineWidth=v/(this.strokeNoScale&&s&&s.getLineScale?s.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,s){if(e)for(var u in e)e.hasOwnProperty(u)&&(s===!0||(s===!1?!this.hasOwnProperty(u):e[u]!=null))&&(this[u]=e[u])},set:function(e,s){typeof e=="string"?this[e]=s:this.extendFrom(e,!0)},clone:function(){var e=new this.constructor;return e.extendFrom(this,!0),e},getGradient:function(e,s,u){for(var a=s.type==="radial"?b:C,A=a(e,s,u),d=s.colorStops,i=0;i<d.length;i++)A.addColorStop(d[i].offset,d[i].color);return A}};for(var f=E.prototype,l=0;l<p.length;l++){var r=p[l];r[0]in f||(f[r[0]]=r[1])}E.getGradient=f.getGradient;var n=E;We.exports=n},LPTA:function(We,Ce){var I=1;typeof window!="undefined"&&(I=Math.max(window.devicePixelRatio||1,1));var ae=0,V=I;Ce.debugMode=ae,Ce.devicePixelRatio=V},LSTS:function(We,Ce,I){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});var ae=function(){function e(s,u){for(var a=0;a<u.length;a++){var A=u[a];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(s,A.key,A)}}return function(s,u,a){return u&&e(s.prototype,u),a&&e(s,a),s}}(),V=I("q1tI"),M=C(V),p=I("17x9"),E=C(p);function C(e){return e&&e.__esModule?e:{default:e}}function b(e,s){var u={};for(var a in e){if(s.indexOf(a)>=0)continue;if(!Object.prototype.hasOwnProperty.call(e,a))continue;u[a]=e[a]}return u}function f(e,s){if(!(e instanceof s))throw new TypeError("Cannot call a class as a function")}function l(e,s){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:e}function r(e,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);e.prototype=Object.create(s&&s.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(e,s):e.__proto__=s)}var n=function(e){r(s,e);function s(u){f(this,s);var a=l(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,u));return a.scrollListener=a.scrollListener.bind(a),a.eventListenerOptions=a.eventListenerOptions.bind(a),a.mousewheelListener=a.mousewheelListener.bind(a),a}return ae(s,[{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 a=this.getParentElement(this.scrollComponent);a.scrollTop=a.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var a=!1,A={get passive(){a=!0}};try{document.addEventListener("test",null,A),document.removeEventListener("test",null,A)}catch(d){}return a}},{key:"eventListenerOptions",value:function(){var a=this.props.useCapture;return this.isPassiveSupported()&&(a={useCapture:this.props.useCapture,passive:!0}),a}},{key:"setDefaultLoader",value:function(a){this.defaultLoader=a}},{key:"detachMousewheelListener",value:function(){var a=window;this.props.useWindow===!1&&(a=this.scrollComponent.parentNode),a.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var a=window;this.props.useWindow===!1&&(a=this.getParentElement(this.scrollComponent)),a.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),a.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(a){var A=this.props.getScrollParent&&this.props.getScrollParent();return A!=null?A:a&&a.parentNode}},{key:"filterProps",value:function(a){return a}},{key:"attachScrollListener",value:function(){var a=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!a)return;var A=window;this.props.useWindow===!1&&(A=a),A.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),A.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),A.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(a){a.deltaY===1&&!this.isPassiveSupported()&&a.preventDefault()}},{key:"scrollListener",value:function(){var a=this.scrollComponent,A=window,d=this.getParentElement(a),i=void 0;if(this.props.useWindow){var h=document.documentElement||document.body.parentNode||document.body,y=A.pageYOffset!==void 0?A.pageYOffset:h.scrollTop;this.props.isReverse?i=y:i=this.calculateOffset(a,y)}else this.props.isReverse?i=d.scrollTop:i=a.scrollHeight-d.scrollTop-d.clientHeight;i<Number(this.props.threshold)&&a&&a.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=d.scrollHeight,this.beforeScrollTop=d.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(a,A){return a?this.calculateTopPosition(a)+(a.offsetHeight-A-window.innerHeight):0}},{key:"calculateTopPosition",value:function(a){return a?a.offsetTop+this.calculateTopPosition(a.offsetParent):0}},{key:"render",value:function(){var a=this,A=this.filterProps(this.props),d=A.children,i=A.element,h=A.hasMore,y=A.initialLoad,v=A.isReverse,x=A.loader,S=A.loadMore,B=A.pageStart,w=A.ref,m=A.threshold,c=A.useCapture,o=A.useWindow,_=A.getScrollParent,D=b(A,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);D.ref=function(O){a.scrollComponent=O,w&&w(O)};var T=[d];return h&&(x?v?T.unshift(x):T.push(x):this.defaultLoader&&(v?T.unshift(this.defaultLoader):T.push(this.defaultLoader))),M.default.createElement(i,D,T)}}]),s}(V.Component);n.propTypes={children:E.default.node.isRequired,element:E.default.node,hasMore:E.default.bool,initialLoad:E.default.bool,isReverse:E.default.bool,loader:E.default.node,loadMore:E.default.func.isRequired,pageStart:E.default.number,ref:E.default.func,getScrollParent:E.default.func,threshold:E.default.number,useCapture:E.default.bool,useWindow:E.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},Ce.default=n,We.exports=Ce.default},LZjx:function(We,Ce){We.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(We,Ce,I){"use strict";I.d(Ce,"b",function(){return y}),I.d(Ce,"a",function(){return x});var ae=I("1OyB"),V=I("vuIU"),M=I("Ji7U"),p=I("LK+K"),E=I("q1tI"),C=I("rePB"),b=I("Ff2n"),f=I("ODXe"),l=I("4IlW"),r=I("bX4T"),n=I("YrtM"),e=I("TSYQ"),s=I.n(e),u=I("+nKL"),a=I("8OUc"),A=function(z,j){var Q=z.prefixCls,X=z.id,te=z.flattenOptions,oe=z.childrenAsData,fe=z.values,le=z.searchValue,we=z.multiple,Ae=z.defaultActiveFirstOption,be=z.height,me=z.itemHeight,he=z.notFoundContent,ie=z.open,pe=z.menuItemSelectedIcon,ye=z.virtual,de=z.onSelect,Me=z.onToggleOpen,ke=z.onActiveValue,Ue=z.onScroll,re=z.onMouseEnter,N="".concat(Q,"-item"),W=Object(n.a)(function(){return te},[ie,te],function(lt,rt){return rt[0]&&lt[1]!==rt[1]}),ce=E.useRef(null),ne=function(rt){rt.preventDefault()},ue=function(rt){ce.current&&ce.current.scrollTo({index:rt})},De=function(rt){for(var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,qe=W.length,Le=0;Le<qe;Le+=1){var je=(rt+Le*Ze+qe)%qe,Ne=W[je],$e=Ne.group,At=Ne.data;if(!$e&&!At.disabled)return je}return-1},ze=E.useState(function(){return De(0)}),wt=Object(f.a)(ze,2),He=wt[0],Xe=wt[1],gt=function(rt){Xe(rt);var Ze=W[rt];if(!Ze){ke(null,-1);return}ke(Ze.data.value,rt)};E.useEffect(function(){gt(Ae!==!1?De(0):-1)},[W.length,le]),E.useEffect(function(){var lt=setTimeout(function(){if(!we&&ie&&fe.size===1){var rt=Array.from(fe)[0],Ze=W.findIndex(function(qe){var Le=qe.data;return Le.value===rt});gt(Ze),ue(Ze)}});return function(){return clearTimeout(lt)}},[ie]);var _t=function(rt){rt!==void 0&&de(rt,{selected:!fe.has(rt)}),we||Me(!1)};if(E.useImperativeHandle(j,function(){return{onKeyDown:function(rt){var Ze=rt.which;switch(Ze){case l.a.UP:case l.a.DOWN:{var qe=0;if(Ze===l.a.UP?qe=-1:Ze===l.a.DOWN&&(qe=1),qe!==0){var Le=De(He+qe,qe);ue(Le),gt(Le)}break}case l.a.ENTER:{var je=W[He];je&&!je.data.disabled?_t(je.data.value):_t(void 0),ie&&rt.preventDefault();break}case l.a.ESC:Me(!1)}},onKeyUp:function(){},scrollTo:function(rt){ue(rt)}}}),W.length===0)return E.createElement("div",{role:"listbox",id:"".concat(X,"_list"),className:"".concat(N,"-empty"),onMouseDown:ne},he);function ct(lt){var rt=W[lt];if(!rt)return null;var Ze=rt.data||{},qe=Ze.value,Le=Ze.label,je=Ze.children,Ne=Object(r.a)(Ze,!0),$e=oe?je:Le;return rt?E.createElement("div",Object.assign({"aria-label":typeof $e=="string"?$e:null},Ne,{key:lt,role:"option",id:"".concat(X,"_list_").concat(lt),"aria-selected":fe.has(qe)}),qe):null}return E.createElement(E.Fragment,null,E.createElement("div",{role:"listbox",id:"".concat(X,"_list"),style:{height:0,width:0,overflow:"hidden"}},ct(He-1),ct(He),ct(He+1)),E.createElement(u.a,{itemKey:"key",ref:ce,data:W,height:be,itemHeight:me,fullHeight:!1,onMouseDown:ne,onScroll:Ue,virtual:ye,onMouseEnter:re},function(lt,rt){var Ze,qe=lt.group,Le=lt.groupOption,je=lt.data,Ne=je.label,$e=je.key;if(qe)return E.createElement("div",{className:s()(N,"".concat(N,"-group"))},Ne!==void 0?Ne:$e);var At=je.disabled,Bt=je.value,Nt=je.title,It=je.children,jt=je.style,xt=je.className,Lt=Object(b.a)(je,["disabled","value","title","children","style","className"]),St=fe.has(Bt),dt="".concat(N,"-option"),yt=s()(N,dt,xt,(Ze={},Object(C.a)(Ze,"".concat(dt,"-grouped"),Le),Object(C.a)(Ze,"".concat(dt,"-active"),He===rt&&!At),Object(C.a)(Ze,"".concat(dt,"-disabled"),At),Object(C.a)(Ze,"".concat(dt,"-selected"),St),Ze)),Fe=oe?It:Ne,et=!pe||typeof pe=="function"||St;return E.createElement("div",Object.assign({},Lt,{"aria-selected":St,className:yt,title:Nt,onMouseMove:function(){if(He===rt||At)return;gt(rt)},onClick:function(){At||_t(Bt)},style:jt}),E.createElement("div",{className:"".concat(dt,"-content")},Fe||Bt),E.isValidElement(pe)||St,et&&E.createElement(a.a,{className:"".concat(N,"-option-state"),customizeIcon:pe,customizeIconProps:{isSelected:St}},St?"\u2713":null))}))},d=E.forwardRef(A);d.displayName="OptionList";var i=d,h=function(){return null};h.isSelectOption=!0;var y=h,v=function(){return null};v.isSelectOptGroup=!0;var x=v,S=I("VTBJ"),B=I("Zm9Q");function w(K){var z=K.key,j=K.props,Q=j.children,X=j.value,te=Object(b.a)(j,["children","value"]);return Object(S.a)({key:z,value:X!==void 0?X:z,children:Q},te)}function m(K){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(B.a)(K).map(function(j,Q){if(!E.isValidElement(j)||!j.type)return null;var X=j.type.isSelectOptGroup,te=j.key,oe=j.props,fe=oe.children,le=Object(b.a)(oe,["children"]);return z||!X?w(j):Object(S.a)(Object(S.a)({key:"__RC_SELECT_GRP__".concat(te===null?Q:te,"__"),label:te},le),{},{options:m(fe)})}).filter(function(j){return j})}var c=I("2Qr1"),o=I("qNPg"),_=I("U8pU"),D=I("Kwbf"),T=I("WKfj");function O(K){var z=K.mode,j=K.options,Q=K.children,X=K.backfill,te=K.allowClear,oe=K.placeholder,fe=K.getInputElement,le=K.showSearch,we=K.onSearch,Ae=K.defaultOpen,be=K.autoFocus,me=K.labelInValue,he=K.value,ie=K.inputValue,pe=K.optionLabelProp,ye=z==="multiple"||z==="tags",de=le!==void 0?le:ye||z==="combobox",Me=j||m(Q);if(Object(D.a)(z!=="tags"||Me.every(function(N){return!N.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),z==="tags"||z==="combobox"){var ke=Me.some(function(N){return N.options?N.options.some(function(W){return typeof("value"in W?W.value:W.key)=="number"}):typeof("value"in N?N.value:N.key)=="number"});Object(D.a)(!ke,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(D.a)(z!=="combobox"||!pe,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(D.a)(z==="combobox"||!X,"`backfill` only works with `combobox` mode."),Object(D.a)(z==="combobox"||!fe,"`getInputElement` only work with `combobox` mode."),Object(D.b)(z!=="combobox"||!fe||!te||!oe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),we&&!de&&z!=="combobox"&&z!=="tags"&&Object(D.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(D.b)(!Ae||be,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),he!=null){var Ue=Object(T.d)(he);Object(D.a)(!me||Ue.every(function(N){return Object(_.a)(N)==="object"&&("key"in N||"value"in N)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(D.a)(!ye||Array.isArray(he),"`value` should be array when `mode` is `multiple` or `tags`")}if(Q){var re=null;Object(B.a)(Q).some(function(N){if(!E.isValidElement(N)||!N.type)return!1;var W=N.type;if(W.isSelectOption)return!1;if(W.isSelectOptGroup){var ce=Object(B.a)(N.props.children).every(function(ne){return!E.isValidElement(ne)||!N.type||ne.type.isSelectOption?!0:(re=ne.type,!1)});return!ce}return re=W,!0}),re&&Object(D.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(re.displayName||re.name||re,"`.")),Object(D.a)(ie===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var R=O,U=Object(o.a)({prefixCls:"rc-select",components:{optionList:i},convertChildrenToData:m,flattenOptions:c.d,getLabeledValue:c.e,filterOptions:c.b,isValueDisabled:c.g,findValueOption:c.c,warningProps:R,fillOptionsWithMissingValue:c.a}),F=function(K){Object(M.a)(j,K);var z=Object(p.a)(j);function j(){var Q;return Object(ae.a)(this,j),Q=z.apply(this,arguments),Q.selectRef=E.createRef(),Q.focus=function(){Q.selectRef.current.focus()},Q.blur=function(){Q.selectRef.current.blur()},Q}return Object(V.a)(j,[{key:"render",value:function(){return E.createElement(U,Object.assign({ref:this.selectRef},this.props))}}]),j}(E.Component);F.Option=y,F.OptGroup=x;var Y=F,k=Ce.c=Y},M8RZ:function(We,Ce,I){"use strict";I.d(Ce,"a",function(){return l});var ae=I("fWQN"),V=I("mtLc"),M=I("yKVA"),p=I("879j"),E=I("q1tI"),C=I.n(E),b=I("i8i4"),f=I.n(b),l=function(r){Object(M.a)(e,r);var n=Object(p.a)(e);function e(s){var u;Object(ae.a)(this,e),u=n.call(this,s);var a=window.document;return u.node=a.createElement("div"),a.body.appendChild(u.node),u}return Object(V.a)(e,[{key:"render",value:function(){var u=this.props.children;return Object(b.createPortal)(u,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),e}(C.a.Component)},MEGo:function(We,Ce,I){var ae=I("4fz+"),V=I("Dagg"),M=I("dqUG"),p=I("2fw6"),E=I("x6Kt"),C=I("rmlV"),b=I("yxFR"),f=I("y+Vt"),l=I("h7HQ"),r=I("1Jh7"),n=I("SKnc"),e=I("K2GJ"),s=I("Fofx"),u=I("NC18"),a=u.createFromString,A=I("bYtY"),d=A.isString,i=A.extend,h=A.defaults,y=A.trim,v=A.each,x=/[\s,]+/;function S(j){if(d(j)){var Q=new DOMParser;j=Q.parseFromString(j,"text/xml")}for(j.nodeType===9&&(j=j.firstChild);j.nodeName.toLowerCase()!=="svg"||j.nodeType!==1;)j=j.nextSibling;return j}function B(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}B.prototype.parse=function(j,Q){Q=Q||{};var X=S(j);if(!X)throw new Error("Illegal svg");var te=new ae;this._root=te;var oe=X.getAttribute("viewBox")||"",fe=parseFloat(X.getAttribute("width")||Q.width),le=parseFloat(X.getAttribute("height")||Q.height);isNaN(fe)&&(fe=null),isNaN(le)&&(le=null),T(X,te,null,!0);for(var we=X.firstChild;we;)this._parseNode(we,te),we=we.nextSibling;var Ae,be;if(oe){var me=y(oe).split(x);me.length>=4&&(Ae={x:parseFloat(me[0]||0),y:parseFloat(me[1]||0),width:parseFloat(me[2]),height:parseFloat(me[3])})}if(Ae&&fe!=null&&le!=null&&(be=K(Ae,fe,le),!Q.ignoreViewBox)){var he=te;te=new ae,te.add(he),he.scale=be.scale.slice(),he.position=be.position.slice()}return!Q.ignoreRootClip&&fe!=null&&le!=null&&te.setClipPath(new E({shape:{x:0,y:0,width:fe,height:le}})),{root:te,width:fe,height:le,viewBoxRect:Ae,viewBoxTransform:be}},B.prototype._parseNode=function(j,Q){var X=j.nodeName.toLowerCase();X==="defs"?this._isDefine=!0:X==="text"&&(this._isText=!0);var te;if(this._isDefine){var oe=m[X];if(oe){var fe=oe.call(this,j),le=j.getAttribute("id");le&&(this._defs[le]=fe)}}else{var oe=w[X];oe&&(te=oe.call(this,j,Q),Q.add(te))}for(var we=j.firstChild;we;)we.nodeType===1&&this._parseNode(we,te),we.nodeType===3&&this._isText&&this._parseText(we,te),we=we.nextSibling;X==="defs"?this._isDefine=!1:X==="text"&&(this._isText=!1)},B.prototype._parseText=function(j,Q){if(j.nodeType===1){var X=j.getAttribute("dx")||0,te=j.getAttribute("dy")||0;this._textX+=parseFloat(X),this._textY+=parseFloat(te)}var oe=new M({style:{text:j.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});o(Q,oe),T(j,oe,this._defs);var fe=oe.style.fontSize;fe&&fe<9&&(oe.style.fontSize=9,oe.scale=oe.scale||[1,1],oe.scale[0]*=fe/9,oe.scale[1]*=fe/9);var le=oe.getBoundingRect();return this._textX+=le.width,Q.add(oe),oe};var w={g:function(j,Q){var X=new ae;return o(Q,X),T(j,X,this._defs),X},rect:function(j,Q){var X=new E;return o(Q,X),T(j,X,this._defs),X.setShape({x:parseFloat(j.getAttribute("x")||0),y:parseFloat(j.getAttribute("y")||0),width:parseFloat(j.getAttribute("width")||0),height:parseFloat(j.getAttribute("height")||0)}),X},circle:function(j,Q){var X=new p;return o(Q,X),T(j,X,this._defs),X.setShape({cx:parseFloat(j.getAttribute("cx")||0),cy:parseFloat(j.getAttribute("cy")||0),r:parseFloat(j.getAttribute("r")||0)}),X},line:function(j,Q){var X=new b;return o(Q,X),T(j,X,this._defs),X.setShape({x1:parseFloat(j.getAttribute("x1")||0),y1:parseFloat(j.getAttribute("y1")||0),x2:parseFloat(j.getAttribute("x2")||0),y2:parseFloat(j.getAttribute("y2")||0)}),X},ellipse:function(j,Q){var X=new C;return o(Q,X),T(j,X,this._defs),X.setShape({cx:parseFloat(j.getAttribute("cx")||0),cy:parseFloat(j.getAttribute("cy")||0),rx:parseFloat(j.getAttribute("rx")||0),ry:parseFloat(j.getAttribute("ry")||0)}),X},polygon:function(j,Q){var X=j.getAttribute("points");X&&(X=_(X));var te=new l({shape:{points:X||[]}});return o(Q,te),T(j,te,this._defs),te},polyline:function(j,Q){var X=new f;o(Q,X),T(j,X,this._defs);var te=j.getAttribute("points");te&&(te=_(te));var oe=new r({shape:{points:te||[]}});return oe},image:function(j,Q){var X=new V;return o(Q,X),T(j,X,this._defs),X.setStyle({image:j.getAttribute("xlink:href"),x:j.getAttribute("x"),y:j.getAttribute("y"),width:j.getAttribute("width"),height:j.getAttribute("height")}),X},text:function(j,Q){var X=j.getAttribute("x")||0,te=j.getAttribute("y")||0,oe=j.getAttribute("dx")||0,fe=j.getAttribute("dy")||0;this._textX=parseFloat(X)+parseFloat(oe),this._textY=parseFloat(te)+parseFloat(fe);var le=new ae;return o(Q,le),T(j,le,this._defs),le},tspan:function(j,Q){var X=j.getAttribute("x"),te=j.getAttribute("y");X!=null&&(this._textX=parseFloat(X)),te!=null&&(this._textY=parseFloat(te));var oe=j.getAttribute("dx")||0,fe=j.getAttribute("dy")||0,le=new ae;return o(Q,le),T(j,le,this._defs),this._textX+=oe,this._textY+=fe,le},path:function(j,Q){var X=j.getAttribute("d")||"",te=a(X);return o(Q,te),T(j,te,this._defs),te}},m={lineargradient:function(j){var Q=parseInt(j.getAttribute("x1")||0,10),X=parseInt(j.getAttribute("y1")||0,10),te=parseInt(j.getAttribute("x2")||10,10),oe=parseInt(j.getAttribute("y2")||0,10),fe=new n(Q,X,te,oe);return c(j,fe),fe},radialgradient:function(j){}};function c(j,Q){for(var X=j.firstChild;X;){if(X.nodeType===1){var te=X.getAttribute("offset");te.indexOf("%")>0?te=parseInt(te,10)/100:te?te=parseFloat(te):te=0;var oe=X.getAttribute("stop-color")||"#000000";Q.addColorStop(te,oe)}X=X.nextSibling}}function o(j,Q){j&&j.__inheritedStyle&&(Q.__inheritedStyle||(Q.__inheritedStyle={}),h(Q.__inheritedStyle,j.__inheritedStyle))}function _(j){for(var Q=y(j).split(x),X=[],te=0;te<Q.length;te+=2){var oe=parseFloat(Q[te]),fe=parseFloat(Q[te+1]);X.push([oe,fe])}return X}var D={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(j,Q,X,te){var oe=Q.__inheritedStyle||{},fe=Q.type==="text";if(j.nodeType===1&&(F(j,Q),i(oe,k(j)),!te)){for(var le in D)if(D.hasOwnProperty(le)){var we=j.getAttribute(le);we!=null&&(oe[D[le]]=we)}}var Ae=fe?"textFill":"fill",be=fe?"textStroke":"stroke";Q.style=Q.style||new e;var me=Q.style;oe.fill!=null&&me.set(Ae,R(oe.fill,X)),oe.stroke!=null&&me.set(be,R(oe.stroke,X)),v(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(he){var ie=he==="lineWidth"&&fe?"textStrokeWidth":he;oe[he]!=null&&me.set(ie,parseFloat(oe[he]))}),(!oe.textBaseline||oe.textBaseline==="auto")&&(oe.textBaseline="alphabetic"),oe.textBaseline==="alphabetic"&&(oe.textBaseline="bottom"),oe.textAlign==="start"&&(oe.textAlign="left"),oe.textAlign==="end"&&(oe.textAlign="right"),v(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(he){oe[he]!=null&&me.set(he,oe[he])}),oe.lineDash&&(Q.style.lineDash=y(oe.lineDash).split(x)),me[be]&&me[be]!=="none"&&(Q[be]=!0),Q.__inheritedStyle=oe}var O=/url\(\s*#(.*?)\)/;function R(j,Q){var X=Q&&j&&j.match(O);if(X){var te=y(X[1]),oe=Q[te];return oe}return j}var U=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function F(j,Q){var X=j.getAttribute("transform");if(X){X=X.replace(/,/g," ");var te=null,oe=[];X.replace(U,function(Ae,be,me){oe.push(be,me)});for(var fe=oe.length-1;fe>0;fe-=2){var le=oe[fe],we=oe[fe-1];te=te||s.create();switch(we){case"translate":le=y(le).split(x),s.translate(te,te,[parseFloat(le[0]),parseFloat(le[1]||0)]);break;case"scale":le=y(le).split(x),s.scale(te,te,[parseFloat(le[0]),parseFloat(le[1]||le[0])]);break;case"rotate":le=y(le).split(x),s.rotate(te,te,parseFloat(le[0]));break;case"skew":le=y(le).split(x),console.warn("Skew transform is not supported yet");break;case"matrix":var le=y(le).split(x);te[0]=parseFloat(le[0]),te[1]=parseFloat(le[1]),te[2]=parseFloat(le[2]),te[3]=parseFloat(le[3]),te[4]=parseFloat(le[4]),te[5]=parseFloat(le[5]);break}}Q.setLocalTransform(te)}}var Y=/([^\s:;]+)\s*:\s*([^:;]+)/g;function k(j){var Q=j.getAttribute("style"),X={};if(!Q)return X;var te={};Y.lastIndex=0;for(var oe;(oe=Y.exec(Q))!=null;)te[oe[1]]=oe[2];for(var fe in D)D.hasOwnProperty(fe)&&te[fe]!=null&&(X[D[fe]]=te[fe]);return X}function K(j,Q,X){var te=Q/j.width,oe=X/j.height,fe=Math.min(te,oe),le=[fe,fe],we=[-(j.x+j.width/2)*fe+Q/2,-(j.y+j.height/2)*fe+X/2];return{scale:le,position:we}}function z(j,Q){var X=new B;return X.parse(j,Q)}Ce.parseXML=S,Ce.makeViewBoxTransform=K,Ce.parseSVG=z},MKOG:function(We,Ce,I){var ae=I("bYtY"),V=I("YH21"),M=V.Dispatcher,p=I("mLcG"),E=I("Bq2U"),C=function(f){f=f||{},this.stage=f.stage||{},this.onframe=f.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(f){this._clips.push(f)},addAnimator:function(f){f.animation=this;for(var l=f.getClips(),r=0;r<l.length;r++)this.addClip(l[r])},removeClip:function(f){var l=ae.indexOf(this._clips,f);l>=0&&this._clips.splice(l,1)},removeAnimator:function(f){for(var l=f.getClips(),r=0;r<l.length;r++)this.removeClip(l[r]);f.animation=null},_update:function(){for(var f=new Date().getTime()-this._pausedTime,l=f-this._time,r=this._clips,n=r.length,e=[],s=[],u=0;u<n;u++){var a=r[u],A=a.step(f,l);A&&(e.push(A),s.push(a))}for(var u=0;u<n;)r[u]._needsRemove?(r[u]=r[n-1],r.pop(),n--):u++;n=e.length;for(var u=0;u<n;u++)s[u].fire(e[u]);this._time=f,this.onframe(l),this.trigger("frame",l),this.stage.update&&this.stage.update()},_startLoop:function(){var f=this;this._running=!0;function l(){f._running&&(p(l),!f._paused&&f._update())}p(l)},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(f,l){l=l||{};var r=new E(f,l.loop,l.getter,l.setter);return this.addAnimator(r),r}},ae.mixin(C,M);var b=C;We.exports=b},MKdu:function(We,Ce,I){We.exports=I.p+"static/fsz.c0b87223.svg"},NC18:function(We,Ce,I){var ae=I("y+Vt"),V=I("IMiH"),M=I("7oTu"),p=Math.sqrt,E=Math.sin,C=Math.cos,b=Math.PI,f=function(h){return Math.sqrt(h[0]*h[0]+h[1]*h[1])},l=function(h,y){return(h[0]*y[0]+h[1]*y[1])/(f(h)*f(y))},r=function(h,y){return(h[0]*y[1]<h[1]*y[0]?-1:1)*Math.acos(l(h,y))};function n(h,y,v,x,S,B,w,m,c,o,_){var D=c*(b/180),T=C(D)*(h-v)/2+E(D)*(y-x)/2,O=-1*E(D)*(h-v)/2+C(D)*(y-x)/2,R=T*T/(w*w)+O*O/(m*m);R>1&&(w*=p(R),m*=p(R));var U=(S===B?-1:1)*p((w*w*(m*m)-w*w*(O*O)-m*m*(T*T))/(w*w*(O*O)+m*m*(T*T)))||0,F=U*w*O/m,Y=U*-m*T/w,k=(h+v)/2+C(D)*F-E(D)*Y,K=(y+x)/2+E(D)*F+C(D)*Y,z=r([1,0],[(T-F)/w,(O-Y)/m]),j=[(T-F)/w,(O-Y)/m],Q=[(-1*T-F)/w,(-1*O-Y)/m],X=r(j,Q);l(j,Q)<=-1&&(X=b),l(j,Q)>=1&&(X=0),B===0&&X>0&&(X=X-2*b),B===1&&X<0&&(X=X+2*b),_.addData(o,k,K,w,m,z,X,D,B)}var e=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,s=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function u(h){if(!h)return new V;for(var y=0,v=0,x=y,S=v,B,w=new V,m=V.CMD,c=h.match(e),o=0;o<c.length;o++){for(var _=c[o],D=_.charAt(0),T,O=_.match(s)||[],R=O.length,U=0;U<R;U++)O[U]=parseFloat(O[U]);for(var F=0;F<R;){var Y,k,K,z,j,Q,X,te=y,oe=v;switch(D){case"l":y+=O[F++],v+=O[F++],T=m.L,w.addData(T,y,v);break;case"L":y=O[F++],v=O[F++],T=m.L,w.addData(T,y,v);break;case"m":y+=O[F++],v+=O[F++],T=m.M,w.addData(T,y,v),x=y,S=v,D="l";break;case"M":y=O[F++],v=O[F++],T=m.M,w.addData(T,y,v),x=y,S=v,D="L";break;case"h":y+=O[F++],T=m.L,w.addData(T,y,v);break;case"H":y=O[F++],T=m.L,w.addData(T,y,v);break;case"v":v+=O[F++],T=m.L,w.addData(T,y,v);break;case"V":v=O[F++],T=m.L,w.addData(T,y,v);break;case"C":T=m.C,w.addData(T,O[F++],O[F++],O[F++],O[F++],O[F++],O[F++]),y=O[F-2],v=O[F-1];break;case"c":T=m.C,w.addData(T,O[F++]+y,O[F++]+v,O[F++]+y,O[F++]+v,O[F++]+y,O[F++]+v),y+=O[F-2],v+=O[F-1];break;case"S":Y=y,k=v;var fe=w.len(),le=w.data;B===m.C&&(Y+=y-le[fe-4],k+=v-le[fe-3]),T=m.C,te=O[F++],oe=O[F++],y=O[F++],v=O[F++],w.addData(T,Y,k,te,oe,y,v);break;case"s":Y=y,k=v;var fe=w.len(),le=w.data;B===m.C&&(Y+=y-le[fe-4],k+=v-le[fe-3]),T=m.C,te=y+O[F++],oe=v+O[F++],y+=O[F++],v+=O[F++],w.addData(T,Y,k,te,oe,y,v);break;case"Q":te=O[F++],oe=O[F++],y=O[F++],v=O[F++],T=m.Q,w.addData(T,te,oe,y,v);break;case"q":te=O[F++]+y,oe=O[F++]+v,y+=O[F++],v+=O[F++],T=m.Q,w.addData(T,te,oe,y,v);break;case"T":Y=y,k=v;var fe=w.len(),le=w.data;B===m.Q&&(Y+=y-le[fe-4],k+=v-le[fe-3]),y=O[F++],v=O[F++],T=m.Q,w.addData(T,Y,k,y,v);break;case"t":Y=y,k=v;var fe=w.len(),le=w.data;B===m.Q&&(Y+=y-le[fe-4],k+=v-le[fe-3]),y+=O[F++],v+=O[F++],T=m.Q,w.addData(T,Y,k,y,v);break;case"A":K=O[F++],z=O[F++],j=O[F++],Q=O[F++],X=O[F++],te=y,oe=v,y=O[F++],v=O[F++],T=m.A,n(te,oe,y,v,Q,X,K,z,j,T,w);break;case"a":K=O[F++],z=O[F++],j=O[F++],Q=O[F++],X=O[F++],te=y,oe=v,y+=O[F++],v+=O[F++],T=m.A,n(te,oe,y,v,Q,X,K,z,j,T,w);break}}(D==="z"||D==="Z")&&(T=m.Z,w.addData(T),y=x,v=S),B=T}return w.toStatic(),w}function a(h,y){var v=u(h);return y=y||{},y.buildPath=function(x){if(x.setData){x.setData(v.data);var S=x.getContext();S&&x.rebuildPath(S)}else{var S=x;v.rebuildPath(S)}},y.applyTransform=function(x){M(v,x),this.dirty(!0)},y}function A(h,y){return new ae(a(h,y))}function d(h,y){return ae.extend(a(h,y))}function i(h,y){for(var v=[],x=h.length,S=0;S<x;S++){var B=h[S];B.path||B.createPathProxy(),B.__dirtyPath&&B.buildPath(B.path,B.shape,!0),v.push(B.path)}var w=new ae(y);return w.createPathProxy(),w.buildPath=function(m){m.appendPath(v);var c=m.getContext();c&&m.rebuildPath(c)},w}Ce.createFromString=A,Ce.extendFromString=d,Ce.mergePath=i},NLgs:function(We,Ce,I){"use strict";I.d(Ce,"e",function(){return v}),I.d(Ce,"f",function(){return x}),I.d(Ce,"d",function(){return B}),I.d(Ce,"c",function(){return w}),I.d(Ce,"a",function(){return m}),I.d(Ce,"b",function(){return c});var ae=I("miYZ"),V=I("tsqr"),M=I("9og8"),p=I("2qtc"),E=I("kLXV"),C=I("WmNS"),b=I.n(C),f=I("q1tI"),l=I.n(f),r=I("9kvl"),n=I("xKgJ"),e=I("1vsH"),s=I("RCxd"),u=I("mOS8"),a=I.n(u),A=I("1ZF9"),d=I.n(A),i=I("WdTA"),h=I.n(i),y=I("m3rI"),v=function(_){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!!(x(_)&&S(D))},x=function(_){return Object(n.p)()?!0:(_({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},S=function(){var _,D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,T=Object(r.c)()._store.getState(),O=T.user;return(_=O.userInfo)!==null&&_!==void 0&&_.profile_completed?!0:(E.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:D?"\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(){r.d.push("/account/profile/edit")}}),!1)},B=function(){var _,D=Object(r.c)()._store.getState(),T=D.user;return(_=T.userInfo)!==null&&_!==void 0&&_.professional_certification?!0:(E.a.confirm({title:"\u63D0\u793A",centered:!0,content:l.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.Q)("/account/certification")}}),!1)},w=function(){return Object(n.a)()?!0:(E.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:l.a.createElement("div",{className:"tc",style:{marginLeft:-38}},l.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u626B\u7801\u52A0\u7FA4@\u7FA4\u7BA1\u7406\u5458\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650\u54E6\uFF01"),l.a.createElement("img",{src:Object(n.t)()?h.a:"".concat(y.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1)},m=function(_,D){return _?!0:(E.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:l.a.createElement("div",null,l.a.createElement("p",null,D||"\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"),l.a.createElement("div",{style:{marginLeft:"110px"}},l.a.createElement("img",{src:d.a,width:200}),l.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(e.Q)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},c=function(_){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",T=Object(r.c)()._store.getState(),O=T.shixunsDetail.detail;return(O==null?void 0:O.public)===2||(O==null?void 0:O.public)===1||(O==null?void 0:O.shixun_status)===3?(E.a.info({centered:!0,icon:l.a.createElement(s.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:l.a.createElement("div",{className:"tc",style:{marginLeft:-38}},l.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},l.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(O==null?void 0:O.public)===2?"\u5DF2\u516C\u5F00":(O==null?void 0:O.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",D,"\u3002"),l.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),l.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:a.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(O==null?void 0:O.shixun_status)===2?(E.a.confirm({centered:!0,icon:l.a.createElement(s.a,null),title:"\u63D0\u793A",content:l.a.createElement("div",null,l.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",D,"\u3002"),l.a.createElement("br",null),l.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(){E.a.confirm({width:440,centered:!0,icon:l.a.createElement(s.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 U=Object(M.a)(b.a.mark(function Y(){var k;return b.a.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return z.next=2,_({type:"shixunsDetail/cancelRelease",payload:{id:O==null?void 0:O.identifier}});case 2:k=z.sent,k.status!==401&&(V.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),_({type:"shixunsDetail/getShixunsDetail",payload:{id:O==null?void 0:O.identifier}}),_({type:"practiceSetting/getCommonData",payload:{id:O==null?void 0:O.identifier}}));case 4:case"end":return z.stop()}},Y)}));function F(){return U.apply(this,arguments)}return F}()})}}),!0):!1}},Nddv:function(We,Ce,I){We.exports=I.p+"static/sz.d6b17ad9.svg"},Nmxd:function(We,Ce){We.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(We,Ce,I){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.default=void 0;var ae=function(M){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,E=null;return function(){for(var C=this,b=arguments.length,f=new Array(b),l=0;l<b;l++)f[l]=arguments[l];clearTimeout(E),E=setTimeout(function(){M.apply(C,f)},p)}};Ce.default=ae},NvD2:function(We,Ce,I){"use strict";I.d(Ce,"a",function(){return C});var ae=I("Kwbf");function V(b,f){var l=new Set;return b.forEach(function(r){f.has(r)||l.add(r)}),l}function M(b){var f=b||{},l=f.disabled,r=f.disableCheckbox,n=f.checkable;return!!(l||r)||n===!1}function p(b,f,l,r){for(var n=new Set(b),e=new Set,s=0;s<=l;s+=1){var u=f.get(s)||new Set;u.forEach(function(i){var h=i.key,y=i.node,v=i.children,x=v===void 0?[]:v;n.has(h)&&!r(y)&&x.filter(function(S){return!r(S.node)}).forEach(function(S){n.add(S.key)})})}for(var a=new Set,A=l;A>=0;A-=1){var d=f.get(A)||new Set;d.forEach(function(i){var h=i.parent,y=i.node;if(r(y)||!i.parent||a.has(i.parent.key))return;if(r(i.parent.node)){a.add(h.key);return}var v=!0,x=!1;(h.children||[]).filter(function(S){return!r(S.node)}).forEach(function(S){var B=S.key,w=n.has(B);v&&!w&&(v=!1),!x&&(w||e.has(B))&&(x=!0)}),v&&n.add(h.key),x&&e.add(h.key),a.add(h.key)})}return{checkedKeys:Array.from(n),halfCheckedKeys:Array.from(V(e,n))}}function E(b,f,l,r,n){for(var e=new Set(b),s=new Set(f),u=0;u<=r;u+=1){var a=l.get(u)||new Set;a.forEach(function(h){var y=h.key,v=h.node,x=h.children,S=x===void 0?[]:x;!e.has(y)&&!s.has(y)&&!n(v)&&S.filter(function(B){return!n(B.node)}).forEach(function(B){e.delete(B.key)})})}s=new Set;for(var A=new Set,d=r;d>=0;d-=1){var i=l.get(d)||new Set;i.forEach(function(h){var y=h.parent,v=h.node;if(n(v)||!h.parent||A.has(h.parent.key))return;if(n(h.parent.node)){A.add(y.key);return}var x=!0,S=!1;(y.children||[]).filter(function(B){return!n(B.node)}).forEach(function(B){var w=B.key,m=e.has(w);x&&!m&&(x=!1),!S&&(m||s.has(w))&&(S=!0)}),x||e.delete(y.key),S&&s.add(y.key),A.add(y.key)})}return{checkedKeys:Array.from(e),halfCheckedKeys:Array.from(V(s,e))}}function C(b,f,l,r){var n=[],e;r?e=r:e=M;var s=new Set(b.filter(function(d){var i=!!l[d];return i||n.push(d),i})),u=new Map,a=0;Object.keys(l).forEach(function(d){var i=l[d],h=i.level,y=u.get(h);y||(y=new Set,u.set(h,y)),y.add(i),a=Math.max(a,h)}),Object(ae.a)(!n.length,"Tree missing follow keys: ".concat(n.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var A;return f===!0?A=p(s,u,a,e):A=E(s,f.halfCheckedKeys,u,a,e),A}},OC45:function(We,Ce,I){We.exports={applyPublicContainer:"applyPublicContainer___3sK8L",applyPublicContent:"applyPublicContent___3Hye1",spin:"spin___3-Uh7",tips:"tips___3d-sF",action:"action___3Uny2"}},OLES:function(We,Ce,I){"use strict";var ae=I("U8pU"),V=I("VTBJ"),M=I("Ff2n"),p=I("q1tI"),E=I("uciX"),C=I("7ixt"),b=function(s){var u=s.overlay,a=s.prefixCls,A=s.id,d=s.overlayInnerStyle;return p.createElement("div",{className:"".concat(a,"-inner"),id:A,role:"tooltip",style:d},typeof u=="function"?u():u)},f=b,l=function(s,u){var a=s.overlayClassName,A=s.trigger,d=A===void 0?["hover"]:A,i=s.mouseEnterDelay,h=i===void 0?0:i,y=s.mouseLeaveDelay,v=y===void 0?.1:y,x=s.overlayStyle,S=s.prefixCls,B=S===void 0?"rc-tooltip":S,w=s.children,m=s.onVisibleChange,c=s.afterVisibleChange,o=s.transitionName,_=s.animation,D=s.placement,T=D===void 0?"right":D,O=s.align,R=O===void 0?{}:O,U=s.destroyTooltipOnHide,F=U===void 0?!1:U,Y=s.defaultVisible,k=s.getTooltipContainer,K=s.overlayInnerStyle,z=Object(M.a)(s,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),j=Object(p.useRef)(null);Object(p.useImperativeHandle)(u,function(){return j.current});var Q=Object(V.a)({},z);"visible"in s&&(Q.popupVisible=s.visible);var X=function(){var we=s.arrowContent,Ae=we===void 0?null:we,be=s.overlay,me=s.id;return[p.createElement("div",{className:"".concat(B,"-arrow"),key:"arrow"},Ae),p.createElement(f,{key:"content",prefixCls:B,id:me,overlay:be,overlayInnerStyle:K})]},te=!1,oe=!1;if(typeof F=="boolean")te=F;else if(F&&Object(ae.a)(F)==="object"){var fe=F.keepParent;te=fe===!0,oe=fe===!1}return p.createElement(E.a,Object.assign({popupClassName:a,prefixCls:B,popup:X,action:d,builtinPlacements:C.a,popupPlacement:T,ref:j,popupAlign:R,getPopupContainer:k,onPopupVisibleChange:m,afterPopupVisibleChange:c,popupTransitionName:o,popupAnimation:_,defaultPopupVisible:Y,destroyPopupOnHide:te,autoDestroy:oe,mouseLeaveDelay:v,popupStyle:x,mouseEnterDelay:h},Q),w)},r=Object(p.forwardRef)(l),n=Ce.a=r},OS9S:function(We,Ce,I){var ae=I("bYtY"),V=ae.inherits,M=I("Gev7"),p=I("mFDi");function E(f){M.call(this,f),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}E.prototype.incremental=!0,E.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},E.prototype.addDisplayable=function(f,l){l?this._temporaryDisplayables.push(f):this._displayables.push(f),this.dirty()},E.prototype.addDisplayables=function(f,l){l=l||!1;for(var r=0;r<f.length;r++)this.addDisplayable(f[r],l)},E.prototype.eachPendingDisplayable=function(f){for(var l=this._cursor;l<this._displayables.length;l++)f&&f(this._displayables[l]);for(var l=0;l<this._temporaryDisplayables.length;l++)f&&f(this._temporaryDisplayables[l])},E.prototype.update=function(){this.updateTransform();for(var f=this._cursor;f<this._displayables.length;f++){var l=this._displayables[f];l.parent=this,l.update(),l.parent=null}for(var f=0;f<this._temporaryDisplayables.length;f++){var l=this._temporaryDisplayables[f];l.parent=this,l.update(),l.parent=null}},E.prototype.brush=function(f,l){for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.beforeBrush&&n.beforeBrush(f),n.brush(f,r===this._cursor?null:this._displayables[r-1]),n.afterBrush&&n.afterBrush(f)}this._cursor=r;for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.beforeBrush&&n.beforeBrush(f),n.brush(f,r===0?null:this._temporaryDisplayables[r-1]),n.afterBrush&&n.afterBrush(f)}this._temporaryDisplayables=[],this.notClear=!0};var C=[];E.prototype.getBoundingRect=function(){if(!this._rect){for(var f=new p(Infinity,Infinity,-Infinity,-Infinity),l=0;l<this._displayables.length;l++){var r=this._displayables[l],n=r.getBoundingRect().clone();r.needLocalTransform()&&n.applyTransform(r.getLocalTransform(C)),f.union(n)}this._rect=f}return this._rect},E.prototype.contain=function(f,l){var r=this.transformCoordToLocal(f,l),n=this.getBoundingRect();if(n.contain(r[0],r[1]))for(var e=0;e<this._displayables.length;e++){var s=this._displayables[e];if(s.contain(f,l))return!0}return!1},V(E,M);var b=E;We.exports=b},OZM5:function(We,Ce,I){"use strict";I.d(Ce,"b",function(){return r}),I.d(Ce,"a",function(){return n}),I.d(Ce,"k",function(){return e}),I.d(Ce,"h",function(){return s}),I.d(Ce,"i",function(){return u}),I.d(Ce,"g",function(){return a}),I.d(Ce,"c",function(){return A}),I.d(Ce,"d",function(){return d}),I.d(Ce,"j",function(){return y}),I.d(Ce,"e",function(){return v}),I.d(Ce,"f",function(){return x});var ae=I("KQm4"),V=I("U8pU"),M=I("Ff2n"),p=I("q1tI"),E=I.n(p),C=I("Kwbf"),b=I("WaYH"),f=.25,l=2;function r(S,B){var w=S.slice(),m=w.indexOf(B);return m>=0&&w.splice(m,1),w}function n(S,B){var w=S.slice();return w.indexOf(B)===-1&&w.push(B),w}function e(S){return S.split("-")}function s(S,B){return"".concat(S,"-").concat(B)}function u(S){return S&&S.type&&S.type.isTreeNode}function a(S,B){var w=[S],m=B[S];function c(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(_){var D=_.key,T=_.children;w.push(D),c(T)})}return c(m.children),w}function A(S,B){var w=S.clientY,m=B.selectHandle.getBoundingClientRect(),c=m.top,o=m.bottom,_=m.height,D=Math.max(_*f,l);return w<=c+D?-1:w>=o-D?1:0}function d(S,B){if(!S)return;var w=B.multiple;return w?S.slice():S.length?[S[0]]:S}var i=function(B){return B};function h(S,B){if(!S)return[];var w=B||{},m=w.processProps,c=m===void 0?i:m,o=Array.isArray(S)?S:[S];return o.map(function(_){var D=_.children,T=Object(M.a)(_,["children"]),O=h(D,B);return E.a.createElement(b.a,Object.assign({},c(T)),O)})}function y(S){if(!S)return null;var B;if(Array.isArray(S))B={checkedKeys:S,halfCheckedKeys:void 0};else if(Object(V.a)(S)==="object")B={checkedKeys:S.checked||void 0,halfCheckedKeys:S.halfChecked||void 0};else return Object(C.a)(!1,"`checkedKeys` is not an array or an object"),null;return B}function v(S,B){var w=new Set;function m(c){if(w.has(c))return;var o=B[c];if(!o)return;w.add(c);var _=o.parent,D=o.node;if(D.disabled)return;_&&m(_.key)}return(S||[]).forEach(function(c){m(c)}),Object(ae.a)(w)}function x(S){var B={};return Object.keys(S).forEach(function(w){(w.startsWith("data-")||w.startsWith("aria-"))&&(B[w]=S[w])}),B}},Ohmc:function(We,Ce,I){We.exports=I.p+"static/certificate.fc32dc1b.jpg"},OljG:function(We,Ce,I){We.exports=I.p+"static/banner.4c45dd73.png"},Ot1p:function(We,Ce,I){"use strict";var ae=I("2qtc"),V=I("kLXV"),M=I("rAM+"),p=I("miYZ"),E=I("tsqr"),C=I("9og8"),b=I("tJVT"),f=I("jrin"),l=I("WmNS"),r=I.n(l),n=I("q1tI"),e=I.n(n),s=I("VrN/"),u=I.n(s),a=I("bdgK"),A=I("p77/"),d=I("Bd2K"),i=I("ELLl"),h=I("19Vz"),y=I("lZu9"),v=I("+NIl"),x=I("kSUc"),S=I("9Bee"),B=function(xt){var Lt=xt.value,St=Lt===void 0?"":Lt,dt=xt.className,yt=xt.showTextOnly,Fe=xt.showLines,et=xt.style,Ot=et===void 0?{}:et,Et=Object(n.useMemo)(function(){return""},[St]);return e.a.createElement(e.a.Fragment,null,e.a.createElement("div",{dangerouslySetInnerHTML:{__html:Et}}))},w=I("Q9mQ"),m=I("diRs"),c=I("0Owb"),o=I("dejd"),_=I("C+DQ"),D=I("D1Df"),T=I.n(D),O=I("1vsH"),R=I("m3rI"),U=[{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 F(xt){var Lt=xt.onActionCallback,St=xt.title,dt=xt.icon,yt=xt.actionName,Fe=xt.className,et=Fe===void 0?"":Fe,Ot=xt.children;function Et(){Lt(yt)}return e.a.createElement("a",{title:St,className:et,onClick:Et},e.a.createElement("i",{className:"md-iconfont ".concat(dt)}),Ot)}var Y=function(xt){var Lt=xt.watch,St=xt.showNullButton,dt=xt.onActionCallback,yt=xt.fullScreen,Fe=xt.insertTemp,et=xt.hidetoolBar,Ot=xt.uuid,Et=xt.setOpenPhones,Ut=Object(O.E)("_educoder_session_login"),Wt=Object(O.E)("_educoder_session"),bt=[].concat(U,[{title:"".concat(Lt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(Lt?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return e.a.createElement("ul",{className:"markdown-toolbar-container"},!et&&bt.map(function(Gt,un){return e.a.createElement("li",{key:un},Gt.actionName?e.a.createElement(F,Object(c.a)({},Gt,{onActionCallback:dt})):e.a.createElement("span",{className:"v-line"}))}),St?e.a.createElement("li",null,e.a.createElement(F,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:dt},e.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Fe&&e.a.createElement("li",null,e.a.createElement(F,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Fe),onActionCallback:dt},e.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),e.a.createElement("li",null,e.a.createElement(m.a,{title:"\u6253\u5F00\u624B\u673A\u626B\u4E00\u626B",content:e.a.createElement("div",null,e.a.createElement("span",{style:{display:"none"}},"test----",location.origin+"/upload.html?_educoder_session_login="+Ut+"&_educoder_session="+Wt+"&key="+Ot+"&api="+encodeURIComponent(R.a.API_SERVER)),e.a.createElement(T.a,{size:150,fgColor:"#000",value:location.origin+"/upload.html?_educoder_session_login="+Ut+"&_educoder_session="+Wt+"&key="+Ot+"&api="+encodeURIComponent(R.a.API_SERVER)}))},e.a.createElement("span",{className:"fill-tip",onMouseOver:function(){return Et(!0)}},"\u624B\u673A\u4E0A\u4F20\u6587\u4EF6"))),e.a.createElement("li",{className:"btn-full-screen"},e.a.createElement(F,{icon:"".concat(yt?"icon-shrink":"icon-enlarge"),title:yt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:dt})))},k=I("M8RZ"),K=I("+L6B"),z=I("2/Rp"),j=I("y8nQ"),Q=I("Vl3Y"),X=I("5NDa"),te=I("5rEg"),oe={labelCol:{span:4},wrapperCol:{span:20}},fe=function(xt){var Lt=xt.callback,St=xt.onCancel;function dt(yt){Lt(yt)}return e.a.createElement(Q.a,Object(c.a)({},oe,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:dt}),e.a.createElement(Q.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},e.a.createElement(te.a,null)),e.a.createElement(Q.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},e.a.createElement(te.a,null)),e.a.createElement("div",{className:"flex-container flex-end"},e.a.createElement(z.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),e.a.createElement(z.a,{type:"ghost",onClick:St},"\u53D6\u6D88")))},le=I("7ahc"),we=I("k1fw"),Ae=I("HmJG"),be=I("BjJ7"),me=Q.a.useForm,he={width:280,marginRight:10},ie={labelCol:{span:5},wrapperCol:{span:19}},pe=function(xt){var Lt=xt.callback,St=xt.onCancel,dt=me(),yt=Object(b.a)(dt,1),Fe=yt[0],et=Object(n.useRef)();function Ot(Wt){Lt(Object(we.a)(Object(we.a)({},Wt),{},{name:et.current}))}function Et(Wt,bt){Fe.setFieldsValue({src:"/api/attachments/".concat(Wt.id,"?type=").concat(Wt.content_type),type:bt.type})}function Ut(Wt){var bt=Wt.target.files[0];et.current=bt.name,de(bt,Et)}return e.a.createElement(Q.a,Object(c.a)({form:Fe},ie,{className:"upload-image-panel",onFinish:Ot}),e.a.createElement(Q.a.Item,{label:"\u6587\u4EF6\u5730\u5740",required:!0},e.a.createElement("div",{className:"flex-container"},e.a.createElement(Q.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},e.a.createElement(te.a,{style:he})),e.a.createElement(ye,{onFileChange:Ut}))),e.a.createElement(Q.a.Item,{label:"\u6587\u4EF6\u63CF\u8FF0",name:"alt"},e.a.createElement(te.a,{style:{width:264}})),e.a.createElement(Q.a.Item,{style:{textAlign:"right"}},e.a.createElement(z.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),e.a.createElement(z.a,{type:"ghost",onClick:St},"\u53D6\u6D88")))};function ye(xt){var Lt=xt.onFileChange;return e.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",e.a.createElement("input",{type:"file",onChange:Lt}))}function de(xt,Lt){if(!xt)throw new String("\u6CA1\u6709\u6587\u4EF6");var St=new FormData;St.append("editormd-image-file",xt),St.append("file_param_name","editormd-image-file"),St.append("byxhr","true");var dt=new window.XMLHttpRequest;dt.withCredentials=!0,dt.addEventListener("load",function(yt){Lt(JSON.parse(yt.target.responseText),xt)},!1),dt.addEventListener("error",function(yt){console.error(yt)},!1),dt.open("POST","".concat(be.a,"/api/attachments.json")),dt.send(St)}var Me=I("giR+"),ke=I("fyUT"),Ue=I("7Kak"),re=I("9yH6"),N=re.a.Group,W={margin:"0 8px"},ce=function(xt){var Lt=xt.callback,St=xt.onCancel;function dt(yt){Lt(yt)}return e.a.createElement(Q.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:dt},e.a.createElement("div",{className:"flex-container"},e.a.createElement("span",{style:W},"\u5355\u5143\u683C\u6570\uFF1A"),e.a.createElement("span",{style:W},"\u884C\u6570"),e.a.createElement(Q.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},e.a.createElement(ke.a,null)),e.a.createElement("span",{style:W},"\u5217\u6570"),e.a.createElement(Q.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},e.a.createElement(ke.a,null))),e.a.createElement("div",{className:"flex-container",style:{marginTop:12}},e.a.createElement("span",{style:W},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),e.a.createElement(Q.a.Item,{name:"align"},e.a.createElement(N,null,e.a.createElement(re.a,{value:"default"},e.a.createElement("i",{className:"fa fa-align-justify"})),e.a.createElement(re.a,{value:"left"},e.a.createElement("i",{className:"fa fa-align-left"})),e.a.createElement(re.a,{value:"center"},e.a.createElement("i",{className:"fa fa-align-center"})),e.a.createElement(re.a,{value:"right"},e.a.createElement("i",{className:"fa fa-align-right"}))))),e.a.createElement("div",{className:"flex-container flex-end"},e.a.createElement(z.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),e.a.createElement(z.a,{type:"ghost",onClick:St},"\u53D6\u6D88")))},ne=I("ErOA"),ue=I("7Cbv"),De="link",ze="upload-image",wt="code-block",He="add-table",Xe="------------",gt={default:Xe,left:":".concat(Xe),center:":".concat(Xe,":"),right:"".concat(Xe,":")},_t=I("9VGf"),ct,lt;function rt(){}var Ze=0,qe=1e4,Le="\u2581",je=`
**\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 Ne(xt){return/^\d+$/.test(xt)?"".concat(xt,"px"):xt}var $e=navigator.platform.toUpperCase().indexOf("MAC")>=0,At=$e?"Cmd":"Ctrl",Bt=["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"],Nt=(ct={},Object(f.a)(ct,At+"-B","bold"),Object(f.a)(ct,At+"-I","italic"),ct),It=(lt={},Object(f.a)(lt,De,"\u6DFB\u52A0\u94FE\u63A5"),Object(f.a)(lt,wt,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(f.a)(lt,ze,"\u6DFB\u52A0\u6587\u4EF6"),Object(f.a)(lt,He,"\u6DFB\u52A0\u8868\u683C"),lt),jt=Ce.a=function(xt){var Lt=xt.defaultValue,St=Lt===void 0?"":Lt,dt=xt.onChange,yt=xt.width,Fe=yt===void 0?"100%":yt,et=xt.height,Ot=et===void 0?400:et,Et=xt.miniToolbar,Ut=Et===void 0?!1:Et,Wt=xt.isFocus,bt=Wt===void 0?!1:Wt,Gt=xt.watch,un=xt.insertTemp,jn=xt.mode,Bn=jn===void 0?"markdown":jn,Nr=xt.id,zr=Nr===void 0?"markdown-editor-id":Nr,_r=xt.showResizeBar,Rn=_r===void 0?!1:_r,ea=xt.noStorage,Aa=ea===void 0?!1:ea,pa=xt.showNullButton,Kr=pa===void 0?!1:pa,Ea=xt.hidetoolBar,Za=Ea===void 0?!1:Ea,fi=xt.fullScreen,Re=fi===void 0?!1:fi,Qe=xt.onBlur,it=xt.onCMBeforeChange,Tt=xt.onFullScreen,Vt=xt.className,rn=Vt===void 0?"":Vt,ve=xt.disablePaste,G=ve===void 0?!1:ve,Z=xt.placeholder,ge=Z===void 0?"":Z,Se=xt.values,Ee=Se===void 0?"":Se,ft=Object(n.useState)(null),Kt=Object(b.a)(ft,2),Rt=Kt[0],mn=Kt[1],Yt=Object(n.useState)(St),Jn=Object(b.a)(Yt,2),Hn=Jn[0],$n=Jn[1],wr=Object(n.useState)(Gt),aa=Object(b.a)(wr,2),Br=aa[0],ta=aa[1],Sr=Object(n.useState)(Re),ma=Object(b.a)(Sr,2),la=ma[0],ja=ma[1],Sa=Object(n.useState)(""),Ua=Object(b.a)(Sa,2),ka=Ua[0],Ca=Ua[1],Jr=Object(n.useState)(0),Wa=Object(b.a)(Jr,2),Ma=Wa[0],Ta=Wa[1],ui=Object(n.useState)(Ot),Ai=Object(b.a)(ui,2),Ba=Ai[0],Xr=Ai[1],hr=Object(n.useState)(!1),Yr=Object(b.a)(hr,2),na=Yr[0],La=Yr[1],ia=Object(n.useRef)(Object(ue.a)()),eo=Object(n.useRef)(!1),za=Object(n.useRef)(),Ga=Object(n.useRef)(),Qi=Object(n.useRef)(),wo=Object(n.useRef)(),wa=Object(n.useRef)(),Ro=function(){var ur=Object(C.a)(r.a.mark(function Fr(){var xr,oa;return r.a.wrap(function(xa){for(;;)switch(xa.prev=xa.next){case 0:return xa.next=2,Object(ne.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ia.current}});case 2:oa=xa.sent,oa!=null&&(xr=oa.attachments)!==null&&xr!==void 0&&xr.length&&(console.log("cm:",Rt,Ga),oa.attachments.map(function(ca){ca.content_type.indexOf("image")>-1?Rt.replaceSelection("![,](/api/attachments/".concat(ca.id,"?type=").concat(ca.content_type,")")):ca.content_type.indexOf("video")>-1?Rt.replaceSelection('<video width="100%" controls src="'.concat(R.a.API_SERVER,"/api/attachments/").concat(data.id,'"></video>')):ca.content_type.indexOf("pdf")>-1?Rt.replaceSelection('<a href="'.concat(R.a.API_SERVER,"/api/attachments/").concat(ca.id,"?type=").concat(ca.content_type,'&disposition=inline" target="_blank">').concat(ca.name,"</a>")):Rt.replaceSelection("[".concat(ca.name,"](").concat(R.a.API_SERVER,"/api/attachments/").concat(ca.id,"?type=").concat(ca.content_type,")"))}));case 4:case"end":return xa.stop()}},Fr)}));return function(){return ur.apply(this,arguments)}}();Object(n.useEffect)(function(){$n(Ee),Rt==null||Rt.setValue(Ee)},[Ee]),Object(n.useEffect)(function(){Tt==null||Tt(la)},[la]),Object(n.useEffect)(function(){if(Ga.current){var ur=u.a.fromTextArea(Ga.current,{mode:Bn,lineNumbers:!Ut,lineWrapping:!0,value:St,autoCloseTags:!0,autoCloseBrackets:!0});bt&&ur.focus();function Fr(xr,oa){if(G){oa.preventDefault();return}var va=oa.clipboardData;if(va){var xa=va.types.toString(),ca=va.items;if(xa==="Files"||va.types.indexOf("Files")>-1){if(oa.preventDefault(),Bn=="stex")return;try{var Fa,Si=ca[1];((Fa=ca[0])===null||Fa===void 0?void 0:Fa.kind)==="file"&&(Si=ca[0]);var sa=Si.getAsFile(),Io=sa.name.split(".").pop();de(sa,function(br){if(br.id){var Pr,Qr,$a;(sa==null||((Pr=sa.type)===null||Pr===void 0)?void 0:Pr.indexOf("image"))>-1?ur.replaceSelection("![,](/api/attachments/".concat(br.id,"?type=").concat(br.content_type,")")):(sa==null||((Qr=sa.type)===null||Qr===void 0)?void 0:Qr.indexOf("video"))>-1?ur.replaceSelection('<video width="100%" controls src="'.concat(R.a.API_SERVER,"/api/attachments/").concat(br.id,'"></video>')):(sa==null||(($a=sa.type)===null||$a===void 0)?void 0:$a.indexOf("pdf"))>-1?ur.replaceSelection('<a href="'.concat(R.a.API_SERVER,"/api/attachments/").concat(br.id,"?type=").concat(sa.type,'&disposition=inline" target="_blank">').concat(sa.name,"</a>")):Bt.includes(Io)?ur.replaceSelection('<a href="'.concat(R.a.API_SERVER,"/api/attachments/").concat(br.id,'?type=office&disposition=inline" target="_blank">').concat(sa.name,"</a>")):ur.replaceSelection("[".concat(sa.name,"](").concat(R.a.API_SERVER,"/api/attachments/").concat(br.id,"?type=").concat(br.content_type,")"))}else(br==null?void 0:br.status)===401&&(document.location.href="/user/login")})}catch(br){E.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return ur.on("paste",Fr),ur.on("dragleave",function(xr,oa){Qi.current.classList.remove("mouse-hover-md")}),ur.on("dragover",function(xr,oa){Qi.current.classList.add("mouse-hover-md")}),ur.on("drop",function(xr,oa){Qi.current.classList.add("mouse-hover-md");var va;if(va=oa.dataTransfer.files,va.length>0){oa.preventDefault(),oa.stopPropagation();for(var xa=function(Si){var sa=va[Si],Io=sa.name.split(".").pop();de(sa,function(br){if(br.id){var Pr,Qr,$a;(sa==null||((Pr=sa.type)===null||Pr===void 0)?void 0:Pr.indexOf("image"))>-1?ur.replaceSelection("![,](/api/attachments/".concat(br.id,"?type=").concat(br.content_type,")")):(sa==null||((Qr=sa.type)===null||Qr===void 0)?void 0:Qr.indexOf("video"))>-1?ur.replaceSelection('<video width="100%" controls src="'.concat(R.a.API_SERVER,"/api/attachments/").concat(br.id,'"></video>')):(sa==null||(($a=sa.type)===null||$a===void 0)?void 0:$a.indexOf("pdf"))>-1?ur.replaceSelection('<a href="'.concat(R.a.API_SERVER,"/api/attachments/").concat(br.id,"?type=").concat(sa.type,'&disposition=inline" target="_blank">').concat(sa.name,"</a>")):Bt.includes(Io)?ur.replaceSelection('<a href="'.concat(R.a.API_SERVER,"/api/attachments/").concat(br.id,'?type=office&disposition=inline" target="_blank">').concat(sa.name,"</a>")):ur.replaceSelection("[".concat(sa.name,"](").concat(R.a.API_SERVER,"/api/attachments/").concat(br.id,"?type=").concat(br.content_type,")"))}else(br==null?void 0:br.status)===401&&(document.location.href="/user/login")})},ca=0;ca<va.length;ca++)xa(ca)}}),mn(ur),function(){ur.off("paste",Fr)}}},[]);var Di=Object(n.useCallback)(function(){if(Qi.current)try{}catch(ur){console.log(ur,"---- to set md editor body height")}},[Ba,Qi,la]);Object(n.useEffect)(function(){function ur(){var xr=new a.default(function(oa){var va=Object(M.a)(oa),xa;try{for(va.s();!(xa=va.n()).done;){var ca=xa.value;(ca.target.offsetHeight>0||ca.target.offsetWidth>0)&&(Di(),Rt.setSize("100%","100%"),Rt.refresh())}}catch(Fa){va.e(Fa)}finally{va.f()}});return xr.observe(Ga.current.parentElement),xr}if(Rt){var Fr=ur();return function(){Fr.unobserve(Ga.current.parentElement)}}},[Rt,Di]),Object(n.useEffect)(function(){if(Rt){for(var ur=[],Fr=function(){var ca=oa[xr];va=Object(b.a)(ca,2);var Fa=va[0],Si=va[1],sa=Object(f.a)({},Fa,function(){$o(Si)});ur.push(sa),Rt.addKeyMap(sa)},xr=0,oa=Object.entries(Nt);xr<oa.length;xr++){var va;Fr()}return za.current=setInterval(function(){eo.current&&Ro()},4e3),function(){clearInterval(za.current);var xa=Object(M.a)(ur),ca;try{for(xa.s();!(ca=xa.n()).done;){var Fa=ca.value;Rt.removeKeyMap(Fa)}}catch(Si){xa.e(Si)}finally{xa.f()}}}},[Rt]),Object(n.useEffect)(function(){Re!==la&&ja(Re)},[Re]),Object(_t.a)(function(){if(!Aa&&Ma>0){var ur=new Date().getTime(),Fr=window.sessionStorage.getItem(zr);ur>=Ma+qe&&(!Fr||Fr!==Hn)&&(window.sessionStorage.setItem(zr,Hn),La(!0))}},qe),Object(n.useEffect)(function(){ta(Gt)},[Rt,Gt]),Object(n.useEffect)(function(){Rt&&(bt&&Rt.focus())},[Rt,bt]),Object(n.useEffect)(function(){if(Br&&Rt){var ur=Rt.getScrollerElement();function Fr(xr){var oa=xr.target;if(wa.current){var va=oa.scrollTop/oa.scrollHeight;wa.current.scrollTop=wa.current.scrollHeight*va}}return ur.addEventListener("scroll",Fr),function(){ur.removeEventListener("scroll",Fr)}}},[Rt,Br]),Object(n.useEffect)(function(){if(Rt&&it){function ur(Fr,xr){it(Fr,xr)}return Rt.on("beforeChange",ur),function(){Rt.off("beforeChange",ur)}}},[Rt,it]),Object(n.useEffect)(function(){if(Rt&&Qe){function ur(){Qe(Rt.getValue())}return Rt.on("blur",ur),function(){Rt.off("blur",ur)}}},[Rt,Qe]),Object(n.useEffect)(function(){if(Rt){function ur(Fr){var xr=Fr.getValue();$n(xr),Ta(new Date().getTime()),Fr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),dt&&dt(xr)}return Rt.on("change",ur),function(){Rt.off("change",ur)}}},[Rt,dt]),Object(n.useEffect)(function(){Rt&&(St==null?(Rt.setValue(""),$n("")):St!==Rt.getValue()&&(Rt.setValue(St),$n(St),Rt.setCursor(Rt.lineCount(),0)))},[Rt,St]);var $o=Object(n.useCallback)(function(ur){var Fr=Rt.getCursor(),xr=Rt.getSelection(),oa=xr.split(`
`);switch(ur){case"bold":return Rt.replaceSelection("**"+xr+"**"),xr===""&&Rt.setCursor(Fr.line,Fr.ch+2),Rt.focus();case"italic":return Rt.replaceSelection("*"+xr+"*"),xr===""&&Rt.setCursor(Fr.line,Fr.ch+1),Rt.focus();case"code":return Rt.replaceSelection("`"+xr+"`"),xr===""&&Rt.setCursor(Fr.line,Fr.ch+1),Rt.focus();case"inline-latex":return Rt.replaceSelection("`$$"+xr+"$$`"),xr===""&&Rt.setCursor(Fr.line,Fr.ch+3),Rt.focus();case"latex":return Rt.replaceSelection("```latex\n"+xr+"\n```"),Rt.setCursor(Fr.line+1,xr.length+1),Rt.focus();case"line-break":return Rt.replaceSelection(`<br/>
`),Rt.focus();case"list-ul":return xr===""?Rt.replaceSelection("- "+xr):Rt.replaceSelection(oa.map(function(va){return va===""?"":"- ".concat(va)}).join(`
`)),Rt.focus();case"list-ol":return xr===""?Rt.replaceSelection("1. "+xr):Rt.replaceSelection(oa.map(function(va,xa){return va===""?"":"".concat(xa+1,". ").concat(va)}).join(`
`)),Rt.focus();case"add-null-ch":return xr===""&&Rt.setCursor(Fr.line,Fr.ch+1),Rt.replaceSelection(Le),Rt.focus();case"inster-template-1":return xr===""&&Rt.setCursor(Fr.line,Fr.ch),Rt.replaceSelection(je),Rt.focus();case"eraser":return Rt.setValue(""),Rt.focus();case"trigger-watch":return ta(!Br),Rt.focus();case"trigger-full-screen":return ja(!la),Rt.focus();case De:Ca(De);return;case wt:Ca(wt);return;case ze:Ca(ze);return;case He:Ca(He);return;default:throw new Error}},[Rt,Br,la]),Fi=Object(n.useCallback)(function(ur){Ca("");switch(ka){case De:var Fr=ur.title,xr=ur.link;return Rt.replaceSelection("[".concat(Fr,"](").concat(xr,")")),Rt.focus();case wt:var oa=ur.language,va=ur.content;return Rt.replaceSelection(["```"+oa,va,"```"].join(`
`)),Rt.focus();case ze:var xa=ur.src,ca=ur.alt,Fa=ur.name;return xa.indexOf("type=image")>-1?Rt.replaceSelection("![ ".concat(ca||""," ]( ").concat(xa,' "').concat(ca||"",'" )')):xa.indexOf("type=application/pdf")>-1?Rt.replaceSelection('<a href="'.concat(xa,'&disposition=inline" target="_blank">').concat(Fa,"</a>")):Rt.replaceSelection('<a href="'.concat(xa,'" target="_blank">').concat(Fa,"</a>")),Rt.focus();case He:for(var Si=ur.row,sa=ur.col,Io=ur.align,br=`
`,Pr=0;Pr<Si;Pr++){for(var Qr=[],$a=[],Mo=0;Mo<sa;Mo++)Pr===1&&$a.push(gt[Io]),Qr.push(" ");Pr===1&&(br+="| ".concat($a.join(" | "),` |
`)),br+="| ".concat(Qr.join(sa===1?"":" | "),` |
`)}return Rt.replaceSelection(br+`
`),Rt.focus();default:throw new Error}},[Rt,ka]),ls=Object(n.useMemo)(function(){switch(ka){case De:return e.a.createElement(fe,{callback:Fi,onCancel:uo});case wt:return e.a.createElement(le.b,{callback:Fi,onCancel:uo});case ze:return e.a.createElement(pe,{callback:Fi,onCancel:uo});case He:return e.a.createElement(ce,{callback:Fi,onCancel:uo});default:return null}},[ka]);function uo(){Ca("")}Object(n.useEffect)(function(){if(wo.current){var ur=wo.current,Fr=!1,xr=0;function oa(ca){Fr=!0,xr=ca.pageY}function va(){Fr=!1}function xa(ca){if(Fr){var Fa=ca.pageY-xr;Fa<0&&(Fa=0),Fa>300&&(Fa=300);var Si=Ot+Fa+"px";Xr(Si)}}return ur.addEventListener("mousedown",oa),document.addEventListener("mousemove",xa),document.addEventListener("mouseup",va),function(){ur.removeEventListener("mousedown",oa),document.removeEventListener("mousemove",xa),document.removeEventListener("mouseup",va)}}},[Rt,wo]),Object(n.useEffect)(function(){Xr(Ot)},[Ot]);var Mi=Ne(Fe),Go=Ne(Ba),ps={width:Mi,height:Go},qa=Object(n.useMemo)(function(){if(Ma){var ur=new Date(Ma),Fr=ur.getHours(),xr=ur.getMinutes(),oa=ur.getSeconds();return Fr=Fr<10?"0"+Fr:Fr,xr=xr<10?"0"+xr:xr,oa=oa<10?"0"+oa:oa,"".concat(Fr,":").concat(xr,":").concat(oa)}return 0},[Ma]);function to(){window.sessionStorage.removeItem(zr),La(!1),Ta(0)}function Vo(){La(!1),Ta(0),Rt.setValue(window.sessionStorage.getItem(zr))}function Xo(ur,Fr){var xr=Rt.getValue();xr=xr.replace(ur,Fr),$n(xr),Rt==null||Rt.setValue(xr)}return e.a.createElement(n.Fragment,null,e.a.createElement("div",{className:"markdown-editor-wrapper",ref:Qi},e.a.createElement("div",{className:"markdown-editor-container ".concat(rn," ").concat(Br?"on-preview":""," ").concat(Ut?"mini":""," ").concat(la?"full-screen":""),style:ps},e.a.createElement(Y,{insertTemp:un,watch:Br,fullScreen:la,showNullButton:Kr,onActionCallback:$o,hidetoolBar:Za,uuid:ia.current,setOpenPhones:function(){eo.current=!0}}),e.a.createElement("div",{className:"markdown-editor-body"},e.a.createElement("div",{className:"codemirror-container"},e.a.createElement("textarea",{ref:Ga,placeholder:ge})),Br?e.a.createElement("div",{ref:wa,className:"preview-container"},Bn==="stex"&&e.a.createElement(B,{value:Hn}),Bn!=="stex"&&e.a.createElement(S.a,{edit:!0,value:Hn,replaces:Xo})):null))),Rn?e.a.createElement("a",{ref:wo,className:"editor-resize"}):null,e.a.createElement(k.a,null,It[ka]?e.a.createElement(V.a,{centered:!0,title:It[ka],visible:!0,onCancel:uo,footer:null},ls):null))}},P47w:function(We,Ce,I){var ae=I("hydK"),V=ae.createElement,M=I("IMiH"),p=I("mFDi"),E=I("Fofx"),C=I("6GrX"),b=I("pzxd"),f=I("dqUG"),l=M.CMD,r=Array.prototype.join,n="none",e=Math.round,s=Math.sin,u=Math.cos,a=Math.PI,A=Math.PI*2,d=180/a,i=1e-4;function h(j){return e(j*1e4)/1e4}function y(j){return j<i&&j>-i}function v(j,Q){var X=Q?j.textFill:j.fill;return X!=null&&X!==n}function x(j,Q){var X=Q?j.textStroke:j.stroke;return X!=null&&X!==n}function S(j,Q){Q&&B(j,"transform","matrix("+r.call(Q,",")+")")}function B(j,Q,X){(!X||X.type!=="linear"&&X.type!=="radial")&&j.setAttribute(Q,X)}function w(j,Q,X){j.setAttributeNS("http://www.w3.org/1999/xlink",Q,X)}function m(j,Q,X,te){if(v(Q,X)){var oe=X?Q.textFill:Q.fill;oe=oe==="transparent"?n:oe,B(j,"fill",oe),B(j,"fill-opacity",Q.fillOpacity!=null?Q.fillOpacity*Q.opacity:Q.opacity)}else B(j,"fill",n);if(x(Q,X)){var fe=X?Q.textStroke:Q.stroke;fe=fe==="transparent"?n:fe,B(j,"stroke",fe);var le=X?Q.textStrokeWidth:Q.lineWidth,we=!X&&Q.strokeNoScale?te.getLineScale():1;B(j,"stroke-width",le/we),B(j,"paint-order",X?"stroke":"fill"),B(j,"stroke-opacity",Q.strokeOpacity!=null?Q.strokeOpacity:Q.opacity);var Ae=Q.lineDash;Ae?(B(j,"stroke-dasharray",Q.lineDash.join(",")),B(j,"stroke-dashoffset",e(Q.lineDashOffset||0))):B(j,"stroke-dasharray",""),Q.lineCap&&B(j,"stroke-linecap",Q.lineCap),Q.lineJoin&&B(j,"stroke-linejoin",Q.lineJoin),Q.miterLimit&&B(j,"stroke-miterlimit",Q.miterLimit)}else B(j,"stroke",n)}function c(j){for(var Q=[],X=j.data,te=j.len(),oe=0;oe<te;){var fe=X[oe++],le="",we=0;switch(fe){case l.M:le="M",we=2;break;case l.L:le="L",we=2;break;case l.Q:le="Q",we=4;break;case l.C:le="C",we=6;break;case l.A:var Ae=X[oe++],be=X[oe++],me=X[oe++],he=X[oe++],ie=X[oe++],pe=X[oe++],ye=X[oe++],de=X[oe++],Me=Math.abs(pe),ke=y(Me-A)||(de?pe>=A:-pe>=A),Ue=pe>0?pe%A:pe%A+A,re=!1;ke?re=!0:y(Me)?re=!1:re=Ue>=a===!!de;var N=h(Ae+me*u(ie)),W=h(be+he*s(ie));ke&&(de?pe=A-1e-4:pe=-A+1e-4,re=!0,oe===9&&Q.push("M",N,W));var ce=h(Ae+me*u(ie+pe)),ne=h(be+he*s(ie+pe));Q.push("A",h(me),h(he),e(ye*d),+re,+de,ce,ne);break;case l.Z:le="Z";break;case l.R:var ce=h(X[oe++]),ne=h(X[oe++]),ue=h(X[oe++]),De=h(X[oe++]);Q.push("M",ce,ne,"L",ce+ue,ne,"L",ce+ue,ne+De,"L",ce,ne+De,"L",ce,ne);break}le&&Q.push(le);for(var ze=0;ze<we;ze++)Q.push(h(X[oe++]))}return Q.join(" ")}var o={};o.brush=function(j){var Q=j.style,X=j.__svgEl;X||(X=V("path"),j.__svgEl=X),j.path||j.createPathProxy();var te=j.path;if(j.__dirtyPath){te.beginPath(),te.subPixelOptimize=!1,j.buildPath(te,j.shape),j.__dirtyPath=!1;var oe=c(te);oe.indexOf("NaN")<0&&B(X,"d",oe)}m(X,Q,!1,j),S(X,j.transform),Q.text!=null?F(j,j.getBoundingRect()):z(j)};var _={};_.brush=function(j){var Q=j.style,X=Q.image;if(X instanceof HTMLImageElement){var te=X.src;X=te}if(!X)return;var oe=Q.x||0,fe=Q.y||0,le=Q.width,we=Q.height,Ae=j.__svgEl;Ae||(Ae=V("image"),j.__svgEl=Ae),X!==j.__imageSrc&&(w(Ae,"href",X),j.__imageSrc=X),B(Ae,"width",le),B(Ae,"height",we),B(Ae,"x",oe),B(Ae,"y",fe),S(Ae,j.transform),Q.text!=null?F(j,j.getBoundingRect()):z(j)};var D={},T=new p,O={},R=[],U={left:"start",right:"end",center:"middle",middle:"middle"},F=function(j,Q){var X=j.style,te=j.transform,oe=j instanceof f||X.transformText;j.__dirty&&b.normalizeTextStyle(X,!0);var fe=X.text;if(fe!=null&&(fe+=""),!b.needDrawText(fe,X))return;fe==null&&(fe=""),!oe&&te&&(T.copy(Q),T.applyTransform(te),Q=T);var le=j.__textSvgEl;le||(le=V("text"),j.__textSvgEl=le);var we=le.style,Ae=X.font||C.DEFAULT_FONT,be=le.__computedFont;Ae!==le.__styleFont&&(we.font=le.__styleFont=Ae,be=le.__computedFont=we.font);var me=X.textPadding,he=X.textLineHeight,ie=j.__textCotentBlock;(!ie||j.__dirtyText)&&(ie=j.__textCotentBlock=C.parsePlainText(fe,be,me,he,X.truncate));var pe=ie.outerHeight,ye=ie.lineHeight;b.getBoxPosition(O,j,X,Q);var de=O.baseX,Me=O.baseY,ke=O.textAlign||"left",Ue=O.textVerticalAlign;Y(le,oe,te,X,Q,de,Me);var re=C.adjustTextY(Me,pe,Ue),N=de,W=re;me&&(N=k(de,ke,me),W+=me[0]),W+=ye/2,m(le,X,!0,j);var ce=ie.canCacheByTextString,ne=j.__tspanList||(j.__tspanList=[]),ue=ne.length;if(ce&&j.__canCacheByTextString&&j.__text===fe){if(j.__dirtyText&&ue)for(var De=0;De<ue;++De)K(ne[De],ke,N,W+De*ye)}else{j.__text=fe,j.__canCacheByTextString=ce;for(var ze=ie.lines,wt=ze.length,De=0;De<wt;De++){var He=ne[De],Xe=ze[De];He?He.__zrText!==Xe&&(He.innerHTML="",He.appendChild(document.createTextNode(Xe))):(He=ne[De]=V("tspan"),le.appendChild(He),He.appendChild(document.createTextNode(Xe))),K(He,ke,N,W+De*ye)}if(ue>wt){for(;De<ue;De++)le.removeChild(ne[De]);ne.length=wt}}};function Y(j,Q,X,te,oe,fe,le){E.identity(R),Q&&X&&E.copy(R,X);var we=te.textRotation;if(oe&&we){var Ae=te.textOrigin;Ae==="center"?(fe=oe.width/2+oe.x,le=oe.height/2+oe.y):Ae&&(fe=Ae[0]+oe.x,le=Ae[1]+oe.y),R[4]-=fe,R[5]-=le,E.rotate(R,R,we),R[4]+=fe,R[5]+=le}S(j,R)}function k(j,Q,X){return Q==="right"?j-X[1]:Q==="center"?j+X[3]/2-X[1]/2:j+X[3]}function K(j,Q,X,te){B(j,"dominant-baseline","middle"),B(j,"text-anchor",U[Q]),B(j,"x",X),B(j,"y",te)}function z(j){j&&j.__textSvgEl&&(j.__textSvgEl.parentNode&&j.__textSvgEl.parentNode.removeChild(j.__textSvgEl),j.__textSvgEl=null,j.__tspanList=[],j.__text=null)}D.drawRectText=F,D.brush=function(j){var Q=j.style;Q.text!=null?F(j,!1):z(j)},Ce.path=o,Ce.image=_,Ce.text=D},P4Qj:function(We,Ce,I){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.removeSensor=Ce.getSensor=void 0;var ae=p(I("chpo")),V=I("FxDU"),M=I("24YM");function p(f){return f&&f.__esModule?f:{default:f}}var E={},C=function(l){var r=l.getAttribute(M.SizeSensorId);if(r&&E[r])return E[r];var n=(0,ae.default)();l.setAttribute(M.SizeSensorId,n);var e=(0,V.createSensor)(l);return E[n]=e,e};Ce.getSensor=C;var b=function(l){var r=l.element.getAttribute(M.SizeSensorId);l.element.removeAttribute(M.SizeSensorId),l.destroy(),r&&E[r]&&delete E[r]};Ce.removeSensor=b},QBsz:function(We,Ce){var I=typeof Float32Array=="undefined"?Array:Float32Array;function ae(m,c){var o=new I(2);return m==null&&(m=0),c==null&&(c=0),o[0]=m,o[1]=c,o}function V(m,c){return m[0]=c[0],m[1]=c[1],m}function M(m){var c=new I(2);return c[0]=m[0],c[1]=m[1],c}function p(m,c,o){return m[0]=c,m[1]=o,m}function E(m,c,o){return m[0]=c[0]+o[0],m[1]=c[1]+o[1],m}function C(m,c,o,_){return m[0]=c[0]+o[0]*_,m[1]=c[1]+o[1]*_,m}function b(m,c,o){return m[0]=c[0]-o[0],m[1]=c[1]-o[1],m}function f(m){return Math.sqrt(r(m))}var l=f;function r(m){return m[0]*m[0]+m[1]*m[1]}var n=r;function e(m,c,o){return m[0]=c[0]*o[0],m[1]=c[1]*o[1],m}function s(m,c,o){return m[0]=c[0]/o[0],m[1]=c[1]/o[1],m}function u(m,c){return m[0]*c[0]+m[1]*c[1]}function a(m,c,o){return m[0]=c[0]*o,m[1]=c[1]*o,m}function A(m,c){var o=f(c);return o===0?(m[0]=0,m[1]=0):(m[0]=c[0]/o,m[1]=c[1]/o),m}function d(m,c){return Math.sqrt((m[0]-c[0])*(m[0]-c[0])+(m[1]-c[1])*(m[1]-c[1]))}var i=d;function h(m,c){return(m[0]-c[0])*(m[0]-c[0])+(m[1]-c[1])*(m[1]-c[1])}var y=h;function v(m,c){return m[0]=-c[0],m[1]=-c[1],m}function x(m,c,o,_){return m[0]=c[0]+_*(o[0]-c[0]),m[1]=c[1]+_*(o[1]-c[1]),m}function S(m,c,o){var _=c[0],D=c[1];return m[0]=o[0]*_+o[2]*D+o[4],m[1]=o[1]*_+o[3]*D+o[5],m}function B(m,c,o){return m[0]=Math.min(c[0],o[0]),m[1]=Math.min(c[1],o[1]),m}function w(m,c,o){return m[0]=Math.max(c[0],o[0]),m[1]=Math.max(c[1],o[1]),m}Ce.create=ae,Ce.copy=V,Ce.clone=M,Ce.set=p,Ce.add=E,Ce.scaleAndAdd=C,Ce.sub=b,Ce.len=f,Ce.length=l,Ce.lenSquare=r,Ce.lengthSquare=n,Ce.mul=e,Ce.div=s,Ce.dot=u,Ce.scale=a,Ce.normalize=A,Ce.distance=d,Ce.dist=i,Ce.distanceSquare=h,Ce.distSquare=y,Ce.negate=v,Ce.lerp=x,Ce.applyTransform=S,Ce.min=B,Ce.max=w},"QO+J":function(We,Ce,I){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.createSensor=void 0;var ae=M(I("NohK")),V=I("24YM");function M(E){return E&&E.__esModule?E:{default:E}}var p=function(C){var b=void 0,f=[],l=function(){getComputedStyle(C).position==="static"&&(C.style.position="relative");var a=document.createElement("object");return a.onload=function(){a.contentDocument.defaultView.addEventListener("resize",r),r()},a.style.display="block",a.style.position="absolute",a.style.top="0",a.style.left="0",a.style.height="100%",a.style.width="100%",a.style.overflow="hidden",a.style.pointerEvents="none",a.style.zIndex="-1",a.style.opacity="0",a.setAttribute("class",V.SensorClassName),a.setAttribute("tabindex",V.SensorTabIndex),a.type="text/html",C.appendChild(a),a.data="about:blank",a},r=(0,ae.default)(function(){f.forEach(function(u){u(C)})}),n=function(a){b||(b=l()),f.indexOf(a)===-1&&f.push(a)},e=function(){b&&b.parentNode&&(b.contentDocument&&b.contentDocument.defaultView.removeEventListener("resize",r),b.parentNode.removeChild(b),b=void 0,f=[])},s=function(a){var A=f.indexOf(a);A!==-1&&f.splice(A,1),f.length===0&&b&&e()};return{element:C,bind:n,destroy:e,unbind:s}};Ce.createSensor=p},QcdW:function(We,Ce,I){},Qe9p:function(We,Ce,I){var ae=I("1RvN"),V={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(c){return c=Math.round(c),c<0?0:c>255?255:c}function p(c){return c=Math.round(c),c<0?0:c>360?360:c}function E(c){return c<0?0:c>1?1:c}function C(c){return c.length&&c.charAt(c.length-1)==="%"?M(parseFloat(c)/100*255):M(parseInt(c,10))}function b(c){return c.length&&c.charAt(c.length-1)==="%"?E(parseFloat(c)/100):E(parseFloat(c))}function f(c,o,_){return _<0?_+=1:_>1&&(_-=1),_*6<1?c+(o-c)*_*6:_*2<1?o:_*3<2?c+(o-c)*(2/3-_)*6:c}function l(c,o,_){return c+(o-c)*_}function r(c,o,_,D,T){return c[0]=o,c[1]=_,c[2]=D,c[3]=T,c}function n(c,o){return c[0]=o[0],c[1]=o[1],c[2]=o[2],c[3]=o[3],c}var e=new ae(20),s=null;function u(c,o){s&&n(s,o),s=e.put(c,s||o.slice())}function a(c,o){if(!c)return;o=o||[];var _=e.get(c);if(_)return n(o,_);c=c+"";var D=c.replace(/ /g,"").toLowerCase();if(D in V)return n(o,V[D]),u(c,o),o;if(D.charAt(0)==="#"){if(D.length===4){var T=parseInt(D.substr(1),16);if(!(T>=0&&T<=4095)){r(o,0,0,0,1);return}return r(o,(T&3840)>>4|(T&3840)>>8,T&240|(T&240)>>4,T&15|(T&15)<<4,1),u(c,o),o}else if(D.length===7){var T=parseInt(D.substr(1),16);if(!(T>=0&&T<=16777215)){r(o,0,0,0,1);return}return r(o,(T&16711680)>>16,(T&65280)>>8,T&255,1),u(c,o),o}return}var O=D.indexOf("("),R=D.indexOf(")");if(O!==-1&&R+1===D.length){var U=D.substr(0,O),F=D.substr(O+1,R-(O+1)).split(","),Y=1;switch(U){case"rgba":if(F.length!==4){r(o,0,0,0,1);return}Y=b(F.pop());case"rgb":if(F.length!==3){r(o,0,0,0,1);return}return r(o,C(F[0]),C(F[1]),C(F[2]),Y),u(c,o),o;case"hsla":if(F.length!==4){r(o,0,0,0,1);return}return F[3]=b(F[3]),A(F,o),u(c,o),o;case"hsl":if(F.length!==3){r(o,0,0,0,1);return}return A(F,o),u(c,o),o;default:return}}r(o,0,0,0,1);return}function A(c,o){var _=(parseFloat(c[0])%360+360)%360/360,D=b(c[1]),T=b(c[2]),O=T<=.5?T*(D+1):T+D-T*D,R=T*2-O;return o=o||[],r(o,M(f(R,O,_+1/3)*255),M(f(R,O,_)*255),M(f(R,O,_-1/3)*255),1),c.length===4&&(o[3]=c[3]),o}function d(c){if(!c)return;var o=c[0]/255,_=c[1]/255,D=c[2]/255,T=Math.min(o,_,D),O=Math.max(o,_,D),R=O-T,U=(O+T)/2,F,Y;if(R===0)F=0,Y=0;else{U<.5?Y=R/(O+T):Y=R/(2-O-T);var k=((O-o)/6+R/2)/R,K=((O-_)/6+R/2)/R,z=((O-D)/6+R/2)/R;o===O?F=z-K:_===O?F=1/3+k-z:D===O&&(F=2/3+K-k),F<0&&(F+=1),F>1&&(F-=1)}var j=[F*360,Y,U];return c[3]!=null&&j.push(c[3]),j}function i(c,o){var _=a(c);if(_){for(var D=0;D<3;D++)o<0?_[D]=_[D]*(1-o)|0:_[D]=(255-_[D])*o+_[D]|0,_[D]>255?_[D]=255:c[D]<0&&(_[D]=0);return m(_,_.length===4?"rgba":"rgb")}}function h(c){var o=a(c);if(o)return((1<<24)+(o[0]<<16)+(o[1]<<8)+ +o[2]).toString(16).slice(1)}function y(c,o,_){if(!(o&&o.length)||!(c>=0&&c<=1))return;_=_||[];var D=c*(o.length-1),T=Math.floor(D),O=Math.ceil(D),R=o[T],U=o[O],F=D-T;return _[0]=M(l(R[0],U[0],F)),_[1]=M(l(R[1],U[1],F)),_[2]=M(l(R[2],U[2],F)),_[3]=E(l(R[3],U[3],F)),_}var v=y;function x(c,o,_){if(!(o&&o.length)||!(c>=0&&c<=1))return;var D=c*(o.length-1),T=Math.floor(D),O=Math.ceil(D),R=a(o[T]),U=a(o[O]),F=D-T,Y=m([M(l(R[0],U[0],F)),M(l(R[1],U[1],F)),M(l(R[2],U[2],F)),E(l(R[3],U[3],F))],"rgba");return _?{color:Y,leftIndex:T,rightIndex:O,value:D}:Y}var S=x;function B(c,o,_,D){if(c=a(c),c)return c=d(c),o!=null&&(c[0]=p(o)),_!=null&&(c[1]=b(_)),D!=null&&(c[2]=b(D)),m(A(c),"rgba")}function w(c,o){if(c=a(c),c&&o!=null)return c[3]=E(o),m(c,"rgba")}function m(c,o){if(!c||!c.length)return;var _=c[0]+","+c[1]+","+c[2];return(o==="rgba"||o==="hsva"||o==="hsla")&&(_+=","+c[3]),o+"("+_+")"}Ce.parse=a,Ce.lift=i,Ce.toHex=h,Ce.fastLerp=y,Ce.fastMapToColor=v,Ce.lerp=x,Ce.mapToColor=S,Ce.modifyHSL=B,Ce.modifyAlpha=w,Ce.stringify=m},QuXc:function(We,Ce){var I=function(V){this.colorStops=V||[]};I.prototype={constructor:I,addColorStop:function(V,M){this.colorStops.push({offset:V,color:M})}};var ae=I;We.exports=ae},RDYZ:function(We,Ce,I){var ae=I("dMvE");function V(p){this._target=p.target,this._life=p.life||1e3,this._delay=p.delay||0,this._initialized=!1,this.loop=p.loop==null?!1:p.loop,this.gap=p.gap||0,this.easing=p.easing||"Linear",this.onframe=p.onframe,this.ondestroy=p.ondestroy,this.onrestart=p.onrestart,this._pausedTime=0,this._paused=!1}V.prototype={constructor:V,step:function(p,E){if(this._initialized||(this._startTime=p+this._delay,this._initialized=!0),this._paused){this._pausedTime+=E;return}var C=(p-this._startTime-this._pausedTime)/this._life;if(C<0)return;C=Math.min(C,1);var b=this.easing,f=typeof b=="string"?ae[b]:b,l=typeof f=="function"?f(C):C;return this.fire("frame",l),C===1?this.loop?(this.restart(p),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(p){var E=(p-this._startTime-this._pausedTime)%this._life;this._startTime=p-E+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(p,E){p="on"+p,this[p]&&this[p](this._target,E)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var M=V;We.exports=M},RMFE:function(We,Ce){We.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(We,Ce,I){var ae=I("y+Vt"),V=ae.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(M,p){var E=p.cx,C=p.cy,b=Math.PI*2;M.moveTo(E+p.r,C),M.arc(E,C,p.r,0,b,!1),M.moveTo(E+p.r0,C),M.arc(E,C,p.r0,0,b,!0)}});We.exports=V},RotF:function(We,Ce,I){We.exports=I("LSTS")},RxwV:function(We,Ce,I){"use strict";var ae=I("q1tI"),V=I("uciX"),M=I("2W6z"),p=I.n(M),E=I("4IlW"),C=I("uK0f"),b=I.n(C);function f(le,we){if(le===we)return!0;if(!le||!we)return!1;var Ae=le.length;if(we.length!==Ae)return!1;for(var be=0;be<Ae;be++)if(le[be]!==we[be])return!1;return!0}function l(le){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l=function(Ae){return typeof Ae}:l=function(Ae){return Ae&&typeof Symbol=="function"&&Ae.constructor===Symbol&&Ae!==Symbol.prototype?"symbol":typeof Ae},l(le)}function r(le,we){if(!(le instanceof we))throw new TypeError("Cannot call a class as a function")}function n(le,we){for(var Ae=0;Ae<we.length;Ae++){var be=we[Ae];be.enumerable=be.enumerable||!1,be.configurable=!0,"value"in be&&(be.writable=!0),Object.defineProperty(le,be.key,be)}}function e(le,we,Ae){return we&&n(le.prototype,we),Ae&&n(le,Ae),le}function s(le,we){if(typeof we!="function"&&we!==null)throw new TypeError("Super expression must either be null or a function");le.prototype=Object.create(we&&we.prototype,{constructor:{value:le,writable:!0,configurable:!0}}),we&&u(le,we)}function u(le,we){return u=Object.setPrototypeOf||function(be,me){return be.__proto__=me,be},u(le,we)}function a(le){var we=i();return function(){var Ae=h(le),be;if(we){var me=h(this).constructor;be=Reflect.construct(Ae,arguments,me)}else be=Ae.apply(this,arguments);return A(this,be)}}function A(le,we){return we&&(l(we)==="object"||typeof we=="function")?we:d(le)}function d(le){if(le===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return le}function i(){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(le){return!1}}function h(le){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(Ae){return Ae.__proto__||Object.getPrototypeOf(Ae)},h(le)}var y=function(){var le=function(we){s(be,we);var Ae=a(be);function be(){var me;return r(this,be),me=Ae.apply(this,arguments),me.menuItems={},me.saveMenuItem=function(he){return function(ie){me.menuItems[he]=ie}},me}return e(be,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(he){!he.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"getFieldName",value:function(he){var ie=this.props,pe=ie.fieldNames,ye=ie.defaultFieldNames;return pe[he]||ye[he]}},{key:"getOption",value:function(he,ie){var pe=this.props,ye=pe.prefixCls,de=pe.expandTrigger,Me=pe.expandIcon,ke=pe.loadingIcon,Ue=this.props.onSelect.bind(this,he,ie),re=this.props.onItemDoubleClick.bind(this,he,ie),N={onClick:Ue,onDoubleClick:re},W="".concat(ye,"-menu-item"),ce=null,ne=he[this.getFieldName("children")]&&he[this.getFieldName("children")].length>0;(ne||he.isLeaf===!1)&&(W+=" ".concat(ye,"-menu-item-expand"),he.loading||(ce=ae.createElement("span",{className:"".concat(ye,"-menu-item-expand-icon")},Me))),de==="hover"&&(ne||he.isLeaf===!1)&&(N={onMouseEnter:this.delayOnSelect.bind(this,Ue),onMouseLeave:this.delayOnSelect.bind(this),onClick:Ue}),this.isActiveOption(he,ie)&&(W+=" ".concat(ye,"-menu-item-active"),N.ref=this.saveMenuItem(ie)),he.disabled&&(W+=" ".concat(ye,"-menu-item-disabled"));var ue=null;he.loading&&(W+=" ".concat(ye,"-menu-item-loading"),ue=ke||null);var De="";return"title"in he?De=he.title:typeof he[this.getFieldName("label")]=="string"&&(De=he[this.getFieldName("label")]),ae.createElement("li",Object.assign({key:he[this.getFieldName("value")],className:W,title:De},N,{role:"menuitem",onMouseDown:function(wt){return wt.preventDefault()}}),he[this.getFieldName("label")],ce,ue)}},{key:"getActiveOptions",value:function(he){var ie=this,pe=this.props.options,ye=he||this.props.activeValue;return b()(pe,function(de,Me){return de[ie.getFieldName("value")]===ye[Me]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var he=this,ie=this.props.options,pe=this.getActiveOptions().map(function(ye){return ye[he.getFieldName("children")]}).filter(function(ye){return!!ye});return pe.unshift(ie),pe}},{key:"delayOnSelect",value:function(he){for(var ie=this,pe=arguments.length,ye=new Array(pe>1?pe-1:0),de=1;de<pe;de++)ye[de-1]=arguments[de];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof he=="function"&&(this.delayTimer=window.setTimeout(function(){he(ye),ie.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var he=this.getShowOptions().length,ie=0;ie<he;ie++){var pe=this.menuItems[ie];pe&&pe.parentElement&&(pe.parentElement.scrollTop=pe.offsetTop)}}},{key:"isActiveOption",value:function(he,ie){var pe=this.props.activeValue,ye=pe===void 0?[]:pe;return ye[ie]===he[this.getFieldName("value")]}},{key:"render",value:function(){var he=this,ie=this.props,pe=ie.prefixCls,ye=ie.dropdownMenuColumnStyle;return ae.createElement("div",null,this.getShowOptions().map(function(de,Me){return ae.createElement("ul",{className:"".concat(pe,"-menu"),key:Me,style:ye},de.map(function(ke){return he.getOption(ke,Me)}))}))}}]),be}(ae.Component);return le.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},le}(),v=y,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}}},S=x;function B(le){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?B=function(Ae){return typeof Ae}:B=function(Ae){return Ae&&typeof Symbol=="function"&&Ae.constructor===Symbol&&Ae!==Symbol.prototype?"symbol":typeof Ae},B(le)}function w(le,we){if(le==null)return{};var Ae=m(le,we),be,me;if(Object.getOwnPropertySymbols){var he=Object.getOwnPropertySymbols(le);for(me=0;me<he.length;me++){if(be=he[me],we.indexOf(be)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(le,be))continue;Ae[be]=le[be]}}return Ae}function m(le,we){if(le==null)return{};var Ae={},be=Object.keys(le),me,he;for(he=0;he<be.length;he++){if(me=be[he],we.indexOf(me)>=0)continue;Ae[me]=le[me]}return Ae}function c(le){return T(le)||D(le)||_(le)||o()}function o(){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 _(le,we){if(!le)return;if(typeof le=="string")return O(le,we);var Ae=Object.prototype.toString.call(le).slice(8,-1);if(Ae==="Object"&&le.constructor&&(Ae=le.constructor.name),Ae==="Map"||Ae==="Set")return Array.from(le);if(Ae==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ae))return O(le,we)}function D(le){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(le))return Array.from(le)}function T(le){if(Array.isArray(le))return O(le)}function O(le,we){(we==null||we>le.length)&&(we=le.length);for(var Ae=0,be=new Array(we);Ae<we;Ae++)be[Ae]=le[Ae];return be}function R(le,we){if(!(le instanceof we))throw new TypeError("Cannot call a class as a function")}function U(le,we){for(var Ae=0;Ae<we.length;Ae++){var be=we[Ae];be.enumerable=be.enumerable||!1,be.configurable=!0,"value"in be&&(be.writable=!0),Object.defineProperty(le,be.key,be)}}function F(le,we,Ae){return we&&U(le.prototype,we),Ae&&U(le,Ae),le}function Y(le,we){if(typeof we!="function"&&we!==null)throw new TypeError("Super expression must either be null or a function");le.prototype=Object.create(we&&we.prototype,{constructor:{value:le,writable:!0,configurable:!0}}),we&&k(le,we)}function k(le,we){return k=Object.setPrototypeOf||function(be,me){return be.__proto__=me,be},k(le,we)}function K(le){var we=Q();return function(){var Ae=X(le),be;if(we){var me=X(this).constructor;be=Reflect.construct(Ae,arguments,me)}else be=Ae.apply(this,arguments);return z(this,be)}}function z(le,we){return we&&(B(we)==="object"||typeof we=="function")?we:j(le)}function j(le){if(le===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return le}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(le){return!1}}function X(le){return X=Object.setPrototypeOf?Object.getPrototypeOf:function(Ae){return Ae.__proto__||Object.getPrototypeOf(Ae)},X(le)}var te=function(){var le=function(we){Y(be,we);var Ae=K(be);function be(me){var he;R(this,be),he=Ae.call(this,me),he.setPopupVisible=function(pe){var ye=he.state.value;"popupVisible"in he.props||he.setState({popupVisible:pe}),pe&&!he.state.popupVisible&&he.setState({activeValue:ye}),he.props.onPopupVisibleChange(pe)},he.handleChange=function(pe,ye,de){var Me=ye.visible;(de.type!=="keydown"||de.keyCode===E.a.ENTER)&&(he.props.onChange(pe.map(function(ke){return ke[he.getFieldName("value")]}),pe),he.setPopupVisible(Me))},he.handlePopupVisibleChange=function(pe){he.setPopupVisible(pe)},he.handleMenuSelect=function(pe,ye,de){var Me=he.trigger.getRootDomNode();Me&&Me.focus&&Me.focus();var ke=he.props,Ue=ke.changeOnSelect,re=ke.loadData,N=ke.expandTrigger;if(!pe||pe.disabled)return;var W=he.state.activeValue;W=W.slice(0,ye+1),W[ye]=pe[he.getFieldName("value")];var ce=he.getActiveOptions(W);if(pe.isLeaf===!1&&!pe[he.getFieldName("children")]&&re){Ue&&he.handleChange(ce,{visible:!0},de),he.setState({activeValue:W}),re(ce);return}var ne={};!pe[he.getFieldName("children")]||!pe[he.getFieldName("children")].length?(he.handleChange(ce,{visible:!1},de),ne.value=W):Ue&&(de.type==="click"||de.type==="keydown")&&(N==="hover"?he.handleChange(ce,{visible:!1},de):he.handleChange(ce,{visible:!0},de),ne.value=W),ne.activeValue=W,("value"in he.props||de.type==="keydown"&&de.keyCode!==E.a.ENTER)&&delete ne.value,he.setState(ne)},he.handleItemDoubleClick=function(){var pe=he.props.changeOnSelect;pe&&he.setPopupVisible(!1)},he.handleKeyDown=function(pe){var ye=he.props.children;if(ye&&ye.props.onKeyDown){ye.props.onKeyDown(pe);return}var de=c(he.state.activeValue),Me=de.length-1<0?0:de.length-1,ke=he.getCurrentLevelOptions(),Ue=ke.map(function(ce){return ce[he.getFieldName("value")]}).indexOf(de[Me]);if(pe.keyCode!==E.a.DOWN&&pe.keyCode!==E.a.UP&&pe.keyCode!==E.a.LEFT&&pe.keyCode!==E.a.RIGHT&&pe.keyCode!==E.a.ENTER&&pe.keyCode!==E.a.SPACE&&pe.keyCode!==E.a.BACKSPACE&&pe.keyCode!==E.a.ESC&&pe.keyCode!==E.a.TAB)return;if(!he.state.popupVisible&&pe.keyCode!==E.a.BACKSPACE&&pe.keyCode!==E.a.LEFT&&pe.keyCode!==E.a.RIGHT&&pe.keyCode!==E.a.ESC&&pe.keyCode!==E.a.TAB){he.setPopupVisible(!0);return}if(pe.keyCode===E.a.DOWN||pe.keyCode===E.a.UP){pe.preventDefault();var re=Ue;re!==-1?pe.keyCode===E.a.DOWN?(re+=1,re=re>=ke.length?0:re):(re-=1,re=re<0?ke.length-1:re):re=0,de[Me]=ke[re][he.getFieldName("value")]}else if(pe.keyCode===E.a.LEFT||pe.keyCode===E.a.BACKSPACE)pe.preventDefault(),de.splice(de.length-1,1);else if(pe.keyCode===E.a.RIGHT)pe.preventDefault(),ke[Ue]&&ke[Ue][he.getFieldName("children")]&&de.push(ke[Ue][he.getFieldName("children")][0][he.getFieldName("value")]);else if(pe.keyCode===E.a.ESC||pe.keyCode===E.a.TAB){he.setPopupVisible(!1);return}(!de||de.length===0)&&he.setPopupVisible(!1);var N=he.getActiveOptions(de),W=N[N.length-1];he.handleMenuSelect(W,N.length-1,pe),he.props.onKeyDown&&he.props.onKeyDown(pe)},he.saveTrigger=function(pe){he.trigger=pe};var ie=[];return"value"in me?ie=me.value||[]:"defaultValue"in me&&(ie=me.defaultValue||[]),p()(!("filedNames"in me),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),he.state={popupVisible:me.popupVisible,activeValue:ie,value:ie,prevProps:me},he.defaultFieldNames={label:"label",value:"value",children:"children"},he}return F(be,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(he){var ie=this.defaultFieldNames,pe=this.props,ye=pe.fieldNames,de=pe.filedNames;return"filedNames"in this.props?de[he]||ie[he]:ye[he]||ie[he]}},{key:"getFieldNames",value:function(){var he=this.props,ie=he.fieldNames,pe=he.filedNames;return"filedNames"in this.props?pe:ie}},{key:"getCurrentLevelOptions",value:function(){var he=this,ie=this.props.options,pe=ie===void 0?[]:ie,ye=this.state.activeValue,de=ye===void 0?[]:ye,Me=b()(pe,function(ke,Ue){return ke[he.getFieldName("value")]===de[Ue]},{childrenKeyName:this.getFieldName("children")});return Me[Me.length-2]?Me[Me.length-2][this.getFieldName("children")]:c(pe).filter(function(ke){return!ke.disabled})}},{key:"getActiveOptions",value:function(he){var ie=this;return b()(this.props.options||[],function(pe,ye){return pe[ie.getFieldName("value")]===he[ye]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var he=this.props,ie=he.prefixCls,pe=he.transitionName,ye=he.popupClassName,de=he.options,Me=de===void 0?[]:de,ke=he.disabled,Ue=he.builtinPlacements,re=he.popupPlacement,N=he.children,W=he.dropdownRender,ce=w(he,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),ne=ae.createElement("div",null),ue="";Me&&Me.length>0?ne=ae.createElement(v,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):ue=" ".concat(ie,"-menus-empty");var De=ne;return W&&(De=W(ne)),ae.createElement(V.a,Object.assign({ref:this.saveTrigger},ce,{popupPlacement:re,builtinPlacements:Ue,popupTransitionName:pe,action:ke?[]:["click"],popupVisible:ke?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(ie,"-menus"),popupClassName:ye+ue,popup:De}),ae.cloneElement(N,{onKeyDown:this.handleKeyDown,tabIndex:ke?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(he,ie){var pe=ie.prevProps,ye=pe===void 0?{}:pe,de={prevProps:he};return"value"in he&&!f(ye.value,he.value)&&(de.value=he.value||[],"loadData"in he||(de.activeValue=he.value||[])),"popupVisible"in he&&(de.popupVisible=he.popupVisible),de}}]),be}(ae.Component);return le.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:S,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},le}(),oe=te,fe=Ce.a=oe},"SA+Z":function(We,Ce,I){var ae=I("wTVA"),V=I("EbDI"),M=I("ZhPi"),p=I("wkBT");function E(C){return ae(C)||V(C)||M(C)||p()}We.exports=E,We.exports.__esModule=!0,We.exports.default=We.exports},SJMd:function(We,Ce){/**
* @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 I,ae,V,M=!1,p,E;window.PR_SHOULD_USE_CONTINUATION=!0;var C,b;(function(){var f=window,l=["break,continue,do,else,for,if,return,while"],r=[l,"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=[r,"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"],s=[n,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],u=[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"],a="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",A=[n,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],d="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",i=[l,"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"],h=[l,"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"],y=[l,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],v=[e,u,s,A,d,i,h,y],x=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,S="str",B="kwd",w="com",m="typ",c="lit",o="pun",_="pln",D="tag",T="dec",O="src",R="atn",U="atv",F="nocode",Y="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function k(de){for(var Me=0,ke=!1,Ue=!1,re=0,N=de.length;re<N;++re){var W=de[re];if(W.ignoreCase)Ue=!0;else if(/[a-z]/i.test(W.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){ke=!0,Ue=!1;break}}var ce={b:8,t:9,n:10,v:11,f:12,r:13};function ne(He){var Xe=He.charCodeAt(0);if(Xe!==92)return Xe;var gt=He.charAt(1);return Xe=ce[gt],Xe||("0"<=gt&&gt<="7"?parseInt(He.substring(1),8):gt==="u"||gt==="x"?parseInt(He.substring(2),16):He.charCodeAt(1))}function ue(He){if(He<32)return(He<16?"\\x0":"\\x")+He.toString(16);var Xe=String.fromCharCode(He);return Xe==="\\"||Xe==="-"||Xe==="]"||Xe==="^"?"\\"+Xe:Xe}function De(He){var Xe=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")),gt=[],_t=Xe[0]==="^",ct=["["];_t&&ct.push("^");for(var lt=_t?1:0,rt=Xe.length;lt<rt;++lt){var Ze=Xe[lt];if(/\\[bdsw]/i.test(Ze))ct.push(Ze);else{var qe=ne(Ze),Le;lt+2<rt&&Xe[lt+1]==="-"?(Le=ne(Xe[lt+2]),lt+=2):Le=qe,gt.push([qe,Le]),Le<65||qe>122||(Le<65||qe>90||gt.push([Math.max(65,qe)|32,Math.min(Le,90)|32]),Le<97||qe>122||gt.push([Math.max(97,qe)&~32,Math.min(Le,122)&~32]))}}gt.sort(function(At,Bt){return At[0]-Bt[0]||Bt[1]-At[1]});for(var je=[],Ne=[],lt=0;lt<gt.length;++lt){var $e=gt[lt];$e[0]<=Ne[1]+1?Ne[1]=Math.max(Ne[1],$e[1]):je.push(Ne=$e)}for(var lt=0;lt<je.length;++lt){var $e=je[lt];ct.push(ue($e[0])),$e[1]>$e[0]&&($e[1]+1>$e[0]&&ct.push("-"),ct.push(ue($e[1])))}return ct.push("]"),ct.join("")}function ze(He){for(var Xe=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")),gt=Xe.length,_t=[],ct=0,lt=0;ct<gt;++ct){var rt=Xe[ct];if(rt==="(")++lt;else if(rt.charAt(0)==="\\"){var Ze=+rt.substring(1);Ze&&(Ze<=lt?_t[Ze]=-1:Xe[ct]=ue(Ze))}}for(var ct=1;ct<_t.length;++ct)_t[ct]===-1&&(_t[ct]=++Me);for(var ct=0,lt=0;ct<gt;++ct){var rt=Xe[ct];if(rt==="(")++lt,_t[lt]||(Xe[ct]="(?:");else if(rt.charAt(0)==="\\"){var Ze=+rt.substring(1);Ze&&Ze<=lt&&(Xe[ct]="\\"+_t[Ze])}}for(var ct=0;ct<gt;++ct)Xe[ct]==="^"&&Xe[ct+1]!=="^"&&(Xe[ct]="");if(He.ignoreCase&&ke)for(var ct=0;ct<gt;++ct){var rt=Xe[ct],qe=rt.charAt(0);rt.length>=2&&qe==="["?Xe[ct]=De(rt):qe!=="\\"&&(Xe[ct]=rt.replace(/[a-zA-Z]/g,function(Ne){var $e=Ne.charCodeAt(0);return"["+String.fromCharCode($e&~32,$e|32)+"]"}))}return Xe.join("")}for(var wt=[],re=0,N=de.length;re<N;++re){var W=de[re];if(W.global||W.multiline)throw new Error(""+W);wt.push("(?:"+ze(W)+")")}return new RegExp(wt.join("|"),Ue?"gi":"g")}function K(de,Me){var ke=/(?:^|\s)nocode(?:\s|$)/,Ue=[],re=0,N=[],W=0;function ce(ne){var ue=ne.nodeType;if(ue==1){if(ke.test(ne.className))return;for(var De=ne.firstChild;De;De=De.nextSibling)ce(De);var ze=ne.nodeName.toLowerCase();(ze==="br"||ze==="li")&&(Ue[W]=`
`,N[W<<1]=re++,N[W++<<1|1]=ne)}else if(ue==3||ue==4){var wt=ne.nodeValue;wt.length&&(Me?wt=wt.replace(/\r\n?/g,`
`):wt=wt.replace(/[ \t\r\n]+/g," "),Ue[W]=wt,N[W<<1]=re,re+=wt.length,N[W++<<1|1]=ne)}}return ce(de),{sourceCode:Ue.join("").replace(/\n$/,""),spans:N}}function z(de,Me,ke,Ue,re){if(!ke)return;var N={sourceNode:de,pre:1,langExtension:null,numberLines:null,sourceCode:ke,spans:null,basePos:Me,decorations:null};Ue(N),re.push.apply(re,N.decorations)}var j=/\S/;function Q(de){for(var Me=void 0,ke=de.firstChild;ke;ke=ke.nextSibling){var Ue=ke.nodeType;Me=Ue===1?Me?de:ke:Ue===3&&j.test(ke.nodeValue)?de:Me}return Me===de?void 0:Me}function X(de,Me){var ke={},Ue;(function(){for(var W=de.concat(Me),ce=[],ne={},ue=0,De=W.length;ue<De;++ue){var ze=W[ue],wt=ze[3];if(wt)for(var He=wt.length;--He>=0;)ke[wt.charAt(He)]=ze;var Xe=ze[1],gt=""+Xe;ne.hasOwnProperty(gt)||(ce.push(Xe),ne[gt]=null)}ce.push(/[\0-\uffff]/),Ue=k(ce)})();var re=Me.length,N=function(W){for(var ce=W.sourceCode,ne=W.basePos,ue=W.sourceNode,De=[ne,_],ze=0,wt=ce.match(Ue)||[],He={},Xe=0,gt=wt.length;Xe<gt;++Xe){var _t=wt[Xe],ct=He[_t],lt=void 0,rt;if(typeof ct=="string")rt=!1;else{var Ze=ke[_t.charAt(0)];if(Ze)lt=_t.match(Ze[1]),ct=Ze[0];else{for(var qe=0;qe<re;++qe)if(Ze=Me[qe],lt=_t.match(Ze[1]),lt){ct=Ze[0];break}lt||(ct=_)}rt=ct.length>=5&&ct.substring(0,5)==="lang-",rt&&!(lt&&typeof lt[1]=="string")&&(rt=!1,ct=O),rt||(He[_t]=ct)}var Le=ze;if(ze+=_t.length,!rt)De.push(ne+Le,ct);else{var je=lt[1],Ne=_t.indexOf(je),$e=Ne+je.length;lt[2]&&($e=_t.length-lt[2].length,Ne=$e-je.length);var At=ct.substring(5);z(ue,ne+Le,_t.substring(0,Ne),N,De),z(ue,ne+Le+Ne,je,be(At,je),De),z(ue,ne+Le+$e,_t.substring($e),N,De)}}W.decorations=De};return N}function te(de){var Me=[],ke=[];de.tripleQuotedStrings?Me.push([S,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):de.multiLineStrings?Me.push([S,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Me.push([S,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),de.verbatimStrings&&ke.push([S,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Ue=de.hashComments;Ue&&(de.cStyleComments?(Ue>1?Me.push([w,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Me.push([w,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),ke.push([S,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Me.push([w,/^#[^\r\n]*/,null,"#"])),de.cStyleComments&&(ke.push([w,/^\/\/[^\r\n]*/,null]),ke.push([w,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var re=de.regexLiterals;if(re){var N=re>1?"":`
\r`,W=N?".":"[\\S\\s]",ce="/(?=[^/*"+N+"])(?:[^/\\x5B\\x5C"+N+"]|\\x5C"+W+"|\\x5B(?:[^\\x5C\\x5D"+N+"]|\\x5C"+W+")*(?:\\x5D|$))+/";ke.push(["lang-regex",RegExp("^"+Y+"("+ce+")")])}var ne=de.types;ne&&ke.push([m,ne]);var ue=(""+de.keywords).replace(/^ | $/g,"");ue.length&&ke.push([B,new RegExp("^(?:"+ue.replace(/[\s,]+/g,"|")+")\\b"),null]),Me.push([_,/^\s+/,null,` \r
\xA0`]);var De="^.[^\\s\\w.$@'\"`/\\\\]*";return de.regexLiterals&&(De+="(?!s*/)"),ke.push([c,/^@[a-z_$][a-z_$@0-9]*/i,null],[m,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[_,/^[a-z_$][a-z_$@0-9]*/i,null],[c,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[_,/^\\[\s\S]?/,null],[o,new RegExp(De),null]),X(Me,ke)}var oe=te({keywords:v,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function fe(de,Me,ke){for(var Ue=/(?:^|\s)nocode(?:\s|$)/,re=/\r\n?|\n/,N=de.ownerDocument,W=N.createElement("li");de.firstChild;)W.appendChild(de.firstChild);var ce=[W];function ne(Xe){var gt=Xe.nodeType;if(gt==1&&!Ue.test(Xe.className))if(Xe.nodeName==="br")ue(Xe),Xe.parentNode&&Xe.parentNode.removeChild(Xe);else for(var _t=Xe.firstChild;_t;_t=_t.nextSibling)ne(_t);else if((gt==3||gt==4)&&ke){var ct=Xe.nodeValue,lt=ct.match(re);if(lt){var rt=ct.substring(0,lt.index);Xe.nodeValue=rt;var Ze=ct.substring(lt.index+lt[0].length);if(Ze){var qe=Xe.parentNode;qe.insertBefore(N.createTextNode(Ze),Xe.nextSibling)}ue(Xe),rt||Xe.parentNode.removeChild(Xe)}}}function ue(Xe){for(;!Xe.nextSibling;)if(Xe=Xe.parentNode,!Xe)return;function gt(lt,rt){var Ze=rt?lt.cloneNode(!1):lt,qe=lt.parentNode;if(qe){var Le=gt(qe,1),je=lt.nextSibling;Le.appendChild(Ze);for(var Ne=je;Ne;Ne=je)je=Ne.nextSibling,Le.appendChild(Ne)}return Ze}for(var _t=gt(Xe.nextSibling,0),ct;(ct=_t.parentNode)&&ct.nodeType===1;)_t=ct;ce.push(_t)}for(var De=0;De<ce.length;++De)ne(ce[De]);Me===(Me|0)&&ce[0].setAttribute("value",Me);var ze=N.createElement("ol");ze.className="linenums";for(var wt=Math.max(0,Me-1|0)||0,De=0,He=ce.length;De<He;++De)W=ce[De],W.className="L"+(De+wt)%10,W.firstChild||W.appendChild(N.createTextNode("\xA0")),ze.appendChild(W);de.appendChild(ze)}function le(de){var Me=/\bMSIE\s(\d+)/.exec(navigator.userAgent);Me=Me&&+Me[1]<=8;var ke=/\n/g,Ue=de.sourceCode,re=Ue.length,N=0,W=de.spans,ce=W.length,ne=0,ue=de.decorations,De=ue.length,ze=0;ue[De]=re;var wt,He;for(He=wt=0;He<De;)ue[He]!==ue[He+2]?(ue[wt++]=ue[He++],ue[wt++]=ue[He++]):He+=2;for(De=wt,He=wt=0;He<De;){for(var Xe=ue[He],gt=ue[He+1],_t=He+2;_t+2<=De&&ue[_t+1]===gt;)_t+=2;ue[wt++]=Xe,ue[wt++]=gt,He=_t}De=ue.length=wt;var ct=de.sourceNode,lt="";ct&&(lt=ct.style.display,ct.style.display="none");try{for(var rt=null;ne<ce;){var Ze=W[ne],qe=W[ne+2]||re,Le=ue[ze+2]||re,_t=Math.min(qe,Le),je=W[ne+1],Ne;if(je.nodeType!==1&&(Ne=Ue.substring(N,_t))){Me&&(Ne=Ne.replace(ke,"\r")),je.nodeValue=Ne;var $e=je.ownerDocument,At=$e.createElement("span");At.className=ue[ze+1];var Bt=je.parentNode;Bt.replaceChild(At,je),At.appendChild(je),N<qe&&(W[ne+1]=je=$e.createTextNode(Ue.substring(_t,qe)),Bt.insertBefore(je,At.nextSibling))}N=_t,N>=qe&&(ne+=2),N>=Le&&(ze+=2)}}finally{ct&&(ct.style.display=lt)}}var we={};function Ae(de,Me){for(var ke=Me.length;--ke>=0;){var Ue=Me[ke];we.hasOwnProperty(Ue)?f.console&&console.warn("cannot override language handler %s",Ue):we[Ue]=de}}function be(de,Me){return de&&we.hasOwnProperty(de)||(de=/^\s*</.test(Me)?"default-markup":"default-code"),we[de]}Ae(oe,["default-code"]),Ae(X([],[[_,/^[^<?]+/],[T,/^<!\w[^>]*(?:>|$)/],[w,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[o,/^(?:<[%?]|[%?]>)/],["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"]),Ae(X([[_,/^[\s]+/,null,` \r
`],[U,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[D,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[R,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[o,/^[=<>\/]+/],["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"]),Ae(X([],[[U,/^[\s\S]+/]]),["uq.val"]),Ae(te({keywords:e,hashComments:!0,cStyleComments:!0,types:x}),["c","cc","cpp","cxx","cyc","m"]),Ae(te({keywords:"null,true,false"}),["json"]),Ae(te({keywords:u,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:x}),["cs"]),Ae(te({keywords:s,cStyleComments:!0}),["java"]),Ae(te({keywords:y,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Ae(te({keywords:i,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Ae(te({keywords:d,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Ae(te({keywords:h,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Ae(te({keywords:A,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Ae(te({keywords:a,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Ae(X([],[[S,/^[\s\S]+/]]),["regex"]);function me(de){var Me=de.langExtension;try{var ke=K(de.sourceNode,de.pre),Ue=ke.sourceCode;de.sourceCode=Ue,de.spans=ke.spans,de.basePos=0,be(Me,Ue)(de),le(de)}catch(re){f.console&&console.log(re&&re.stack||re)}}function he(de,Me,ke){var Ue=ke||!1,re=Me||null,N=document.createElement("div");N.innerHTML="<pre>"+de+"</pre>",N=N.firstChild,Ue&&fe(N,Ue,!0);var W={langExtension:re,numberLines:Ue,sourceNode:N,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return me(W),N.innerHTML}function ie(de,Me){var ke=Me||document.body,Ue=ke.ownerDocument||document;function re(Ze){return ke.getElementsByTagName(Ze)}for(var N=[re("pre"),re("code"),re("xmp")],W=[],ce=0;ce<N.length;++ce)for(var ne=0,ue=N[ce].length;ne<ue;++ne)W.push(N[ce][ne]);N=null;var De=Date;De.now||(De={now:function(){return+new Date}});var ze=0,wt=/\blang(?:uage)?-([\w.]+)(?!\S)/,He=/\bprettyprint\b/,Xe=/\bprettyprinted\b/,gt=/pre|xmp/i,_t=/^code$/i,ct=/^(?:pre|code|xmp)$/i,lt={};function rt(){for(var Ze=f.PR_SHOULD_USE_CONTINUATION?De.now()+250:Infinity;ze<W.length&&De.now()<Ze;ze++){for(var qe=W[ze],Le=lt,je=qe;je=je.previousSibling;){var Ne=je.nodeType,$e=(Ne===7||Ne===8)&&je.nodeValue;if($e?!/^\??prettify\b/.test($e):Ne!==3||/\S/.test(je.nodeValue))break;if($e){Le={},$e.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Ot,Et,Ut){Le[Et]=Ut});break}}var At=qe.className;if((Le!==lt||He.test(At))&&!Xe.test(At)){for(var Bt=!1,Nt=qe.parentNode;Nt;Nt=Nt.parentNode){var It=Nt.tagName;if(ct.test(It)&&Nt.className&&He.test(Nt.className)){Bt=!0;break}}if(!Bt){qe.className+=" prettyprinted";var jt=Le.lang;if(!jt){jt=At.match(wt);var xt;!jt&&(xt=Q(qe))&&_t.test(xt.tagName)&&(jt=xt.className.match(wt)),jt&&(jt=jt[1])}var Lt;if(gt.test(qe.tagName))Lt=1;else{var St=qe.currentStyle,dt=Ue.defaultView,yt=St?St.whiteSpace:dt&&dt.getComputedStyle?dt.getComputedStyle(qe,null).getPropertyValue("white-space"):0;Lt=yt&&yt.substring(0,3)==="pre"}var Fe=Le.linenums;(Fe=Fe==="true"||+Fe)||(Fe=At.match(/\blinenums\b(?::(\d+))?/),Fe=Fe?Fe[1]&&Fe[1].length?+Fe[1]:!0:!1),Fe&&fe(qe,Fe,Lt);var et={langExtension:jt,sourceNode:qe,numberLines:Fe,pre:Lt,sourceCode:null,basePos:null,spans:null,decorations:null};me(et)}}}ze<W.length?f.setTimeout(rt,250):typeof de=="function"&&de()}rt()}var pe=f.PR={createSimpleLexer:X,registerLangHandler:Ae,sourceDecorator:te,PR_ATTRIB_NAME:R,PR_ATTRIB_VALUE:U,PR_COMMENT:w,PR_DECLARATION:T,PR_KEYWORD:B,PR_LITERAL:c,PR_NOCODE:F,PR_PLAIN:_,PR_PUNCTUATION:o,PR_SOURCE:O,PR_STRING:S,PR_TAG:D,PR_TYPE:m,prettyPrintOne:M?f.prettyPrintOne=he:C=he,prettyPrint:b=M?f.prettyPrint=ie:b=ie},ye=f.define;typeof ye=="function"&&ye.amd&&ye("google-code-prettify",[],function(){return pe})})()},SKnc:function(We,Ce,I){var ae=I("bYtY"),V=I("QuXc"),M=function(E,C,b,f,l,r){this.x=E==null?0:E,this.y=C==null?0:C,this.x2=b==null?1:b,this.y2=f==null?0:f,this.type="linear",this.global=r||!1,V.call(this,l)};M.prototype={constructor:M},ae.inherits(M,V);var p=M;We.exports=p},SMhR:function(We,Ce){We.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(We,Ce,I){var ae=I("LPTA"),V=ae.debugMode,M=function(){};V===1&&(M=console.error);var p=M;We.exports=p},Sj9i:function(We,Ce,I){var ae=I("QBsz"),V=ae.create,M=ae.distSquare,p=Math.pow,E=Math.sqrt,C=1e-8,b=1e-4,f=E(3),l=1/3,r=V(),n=V(),e=V();function s(c){return c>-C&&c<C}function u(c){return c>C||c<-C}function a(c,o,_,D,T){var O=1-T;return O*O*(O*c+3*T*o)+T*T*(T*D+3*O*_)}function A(c,o,_,D,T){var O=1-T;return 3*(((o-c)*O+2*(_-o)*T)*O+(D-_)*T*T)}function d(c,o,_,D,T,O){var R=D+3*(o-_)-c,U=3*(_-o*2+c),F=3*(o-c),Y=c-T,k=U*U-3*R*F,K=U*F-9*R*Y,z=F*F-3*U*Y,j=0;if(s(k)&&s(K))if(s(U))O[0]=0;else{var Q=-F/U;Q>=0&&Q<=1&&(O[j++]=Q)}else{var X=K*K-4*k*z;if(s(X)){var te=K/k,Q=-U/R+te,oe=-te/2;Q>=0&&Q<=1&&(O[j++]=Q),oe>=0&&oe<=1&&(O[j++]=oe)}else if(X>0){var fe=E(X),le=k*U+1.5*R*(-K+fe),we=k*U+1.5*R*(-K-fe);le<0?le=-p(-le,l):le=p(le,l),we<0?we=-p(-we,l):we=p(we,l);var Q=(-U-(le+we))/(3*R);Q>=0&&Q<=1&&(O[j++]=Q)}else{var Ae=(2*k*U-3*R*K)/(2*E(k*k*k)),be=Math.acos(Ae)/3,me=E(k),he=Math.cos(be),Q=(-U-2*me*he)/(3*R),oe=(-U+me*(he+f*Math.sin(be)))/(3*R),ie=(-U+me*(he-f*Math.sin(be)))/(3*R);Q>=0&&Q<=1&&(O[j++]=Q),oe>=0&&oe<=1&&(O[j++]=oe),ie>=0&&ie<=1&&(O[j++]=ie)}}return j}function i(c,o,_,D,T){var O=6*_-12*o+6*c,R=9*o+3*D-3*c-9*_,U=3*o-3*c,F=0;if(s(R)){if(u(O)){var Y=-U/O;Y>=0&&Y<=1&&(T[F++]=Y)}}else{var k=O*O-4*R*U;if(s(k))T[0]=-O/(2*R);else if(k>0){var K=E(k),Y=(-O+K)/(2*R),z=(-O-K)/(2*R);Y>=0&&Y<=1&&(T[F++]=Y),z>=0&&z<=1&&(T[F++]=z)}}return F}function h(c,o,_,D,T,O){var R=(o-c)*T+c,U=(_-o)*T+o,F=(D-_)*T+_,Y=(U-R)*T+R,k=(F-U)*T+U,K=(k-Y)*T+Y;O[0]=c,O[1]=R,O[2]=Y,O[3]=K,O[4]=K,O[5]=k,O[6]=F,O[7]=D}function y(c,o,_,D,T,O,R,U,F,Y,k){var K,z=.005,j=Infinity,Q,X,te,oe;r[0]=F,r[1]=Y;for(var fe=0;fe<1;fe+=.05)n[0]=a(c,_,T,R,fe),n[1]=a(o,D,O,U,fe),te=M(r,n),te<j&&(K=fe,j=te);j=Infinity;for(var le=0;le<32&&!(z<b);le++)Q=K-z,X=K+z,n[0]=a(c,_,T,R,Q),n[1]=a(o,D,O,U,Q),te=M(n,r),Q>=0&&te<j?(K=Q,j=te):(e[0]=a(c,_,T,R,X),e[1]=a(o,D,O,U,X),oe=M(e,r),X<=1&&oe<j?(K=X,j=oe):z*=.5);return k&&(k[0]=a(c,_,T,R,K),k[1]=a(o,D,O,U,K)),E(j)}function v(c,o,_,D){var T=1-D;return T*(T*c+2*D*o)+D*D*_}function x(c,o,_,D){return 2*((1-D)*(o-c)+D*(_-o))}function S(c,o,_,D,T){var O=c-2*o+_,R=2*(o-c),U=c-D,F=0;if(s(O)){if(u(R)){var Y=-U/R;Y>=0&&Y<=1&&(T[F++]=Y)}}else{var k=R*R-4*O*U;if(s(k)){var Y=-R/(2*O);Y>=0&&Y<=1&&(T[F++]=Y)}else if(k>0){var K=E(k),Y=(-R+K)/(2*O),z=(-R-K)/(2*O);Y>=0&&Y<=1&&(T[F++]=Y),z>=0&&z<=1&&(T[F++]=z)}}return F}function B(c,o,_){var D=c+_-2*o;return D===0?.5:(c-o)/D}function w(c,o,_,D,T){var O=(o-c)*D+c,R=(_-o)*D+o,U=(R-O)*D+O;T[0]=c,T[1]=O,T[2]=U,T[3]=U,T[4]=R,T[5]=_}function m(c,o,_,D,T,O,R,U,F){var Y,k=.005,K=Infinity;r[0]=R,r[1]=U;for(var z=0;z<1;z+=.05){n[0]=v(c,_,T,z),n[1]=v(o,D,O,z);var j=M(r,n);j<K&&(Y=z,K=j)}K=Infinity;for(var Q=0;Q<32&&!(k<b);Q++){var X=Y-k,te=Y+k;n[0]=v(c,_,T,X),n[1]=v(o,D,O,X);var j=M(n,r);if(X>=0&&j<K)Y=X,K=j;else{e[0]=v(c,_,T,te),e[1]=v(o,D,O,te);var oe=M(e,r);te<=1&&oe<K?(Y=te,K=oe):k*=.5}}return F&&(F[0]=v(c,_,T,Y),F[1]=v(o,D,O,Y)),E(K)}Ce.cubicAt=a,Ce.cubicDerivativeAt=A,Ce.cubicRootAt=d,Ce.cubicExtrema=i,Ce.cubicSubdivide=h,Ce.cubicProjectPoint=y,Ce.quadraticAt=v,Ce.quadraticDerivativeAt=x,Ce.quadraticRootAt=S,Ce.quadraticExtremum=B,Ce.quadraticSubdivide=w,Ce.quadraticProjectPoint=m},SqI9:function(We,Ce,I){var ae=I("y+Vt"),V=I("iXp4"),M=ae.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},brush:V(ae.prototype.brush),buildPath:function(p,E){var C=E.cx,b=E.cy,f=Math.max(E.r0||0,0),l=Math.max(E.r,0),r=E.startAngle,n=E.endAngle,e=E.clockwise,s=Math.cos(r),u=Math.sin(r);p.moveTo(s*f+C,u*f+b),p.lineTo(s*l+C,u*l+b),p.arc(C,b,l,r,n,!e),p.lineTo(Math.cos(n)*f+C,Math.sin(n)*f+b),f!==0&&p.arc(C,b,f,n,r,e),p.closePath()}});We.exports=M},SrGk:function(We,Ce,I){var ae=I("hydK"),V=ae.createElement,M=I("bYtY"),p=I("y+Vt"),E=I("Dagg"),C=I("dqUG"),b=I("P47w"),f=b.path,l=b.image,r=b.text,n="0",e="1";function s(a,A,d,i,h){this._zrId=a,this._svgRoot=A,this._tagNames=typeof d=="string"?[d]:d,this._markLabel=i,this._domName=h||"_dom",this.nextId=0}s.prototype.createElement=V,s.prototype.getDefs=function(a){var A=this._svgRoot,d=this._svgRoot.getElementsByTagName("defs");return d.length===0?a?(d=A.insertBefore(this.createElement("defs"),A.firstChild),d.contains||(d.contains=function(i){var h=d.children;if(!h)return!1;for(var y=h.length-1;y>=0;--y)if(h[y]===i)return!0;return!1}),d):null:d[0]},s.prototype.update=function(a,A){if(!a)return;var d=this.getDefs(!1);if(a[this._domName]&&d.contains(a[this._domName]))typeof A=="function"&&A(a);else{var i=this.add(a);i&&(a[this._domName]=i)}},s.prototype.addDom=function(a){var A=this.getDefs(!0);A.appendChild(a)},s.prototype.removeDom=function(a){var A=this.getDefs(!1);A&&a[this._domName]&&(A.removeChild(a[this._domName]),a[this._domName]=null)},s.prototype.getDoms=function(){var a=this.getDefs(!1);if(!a)return[];var A=[];return M.each(this._tagNames,function(d){var i=a.getElementsByTagName(d);A=A.concat([].slice.call(i))}),A},s.prototype.markAllUnused=function(){var a=this.getDoms(),A=this;M.each(a,function(d){d[A._markLabel]=n})},s.prototype.markUsed=function(a){a&&(a[this._markLabel]=e)},s.prototype.removeUnused=function(){var a=this.getDefs(!1);if(!a)return;var A=this.getDoms(),d=this;M.each(A,function(i){i[d._markLabel]!==e&&a.removeChild(i)})},s.prototype.getSvgProxy=function(a){return a instanceof p?f:a instanceof E?l:a instanceof C?r:f},s.prototype.getTextSvgElement=function(a){return a.__textSvgEl},s.prototype.getSvgElement=function(a){return a.__svgEl};var u=s;We.exports=u},T6xi:function(We,Ce,I){var ae=I("YgsL"),V=I("nCxF");function M(p,E,C){var b=E.points,f=E.smooth;if(b&&b.length>=2){if(f&&f!=="spline"){var l=V(b,f,C,E.smoothConstraint);p.moveTo(b[0][0],b[0][1]);for(var r=b.length,n=0;n<(C?r:r-1);n++){var e=l[n*2],s=l[n*2+1],u=b[(n+1)%r];p.bezierCurveTo(e[0],e[1],s[0],s[1],u[0],u[1])}}else{f==="spline"&&(b=ae(b,C)),p.moveTo(b[0][0],b[0][1]);for(var n=1,a=b.length;n<a;n++)p.lineTo(b[n][0],b[n][1])}C&&p.closePath()}}Ce.buildPath=M},TGq3:function(We,Ce,I){We.exports=I.p+"static/lockclose.365036e8.svg"},UZu5:function(We,Ce,I){},VlDO:function(We,Ce,I){We.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(We,Ce){function I(ae,V){var M=V.x,p=V.y,E=V.width,C=V.height,b=V.r,f,l,r,n;E<0&&(M=M+E,E=-E),C<0&&(p=p+C,C=-C),typeof b=="number"?f=l=r=n=b:b instanceof Array?b.length===1?f=l=r=n=b[0]:b.length===2?(f=r=b[0],l=n=b[1]):b.length===3?(f=b[0],l=n=b[1],r=b[2]):(f=b[0],l=b[1],r=b[2],n=b[3]):f=l=r=n=0;var e;f+l>E&&(e=f+l,f*=E/e,l*=E/e),r+n>E&&(e=r+n,r*=E/e,n*=E/e),l+r>C&&(e=l+r,l*=C/e,r*=C/e),f+n>C&&(e=f+n,f*=C/e,n*=C/e),ae.moveTo(M+f,p),ae.lineTo(M+E-l,p),l!==0&&ae.arc(M+E-l,p+l,l,-Math.PI/2,0),ae.lineTo(M+E,p+C-r),r!==0&&ae.arc(M+E-r,p+C-r,r,0,Math.PI/2),ae.lineTo(M+n,p+C),n!==0&&ae.arc(M+n,p+C-n,n,Math.PI/2,Math.PI),ae.lineTo(M,p+f),f!==0&&ae.arc(M+f,p+f,f,Math.PI,Math.PI*1.5)}Ce.buildPath=I},"VrN/":function(We,Ce,I){(function(ae,V){We.exports=V()})(this,function(){"use strict";var ae=navigator.userAgent,V=navigator.platform,M=/gecko\/\d/i.test(ae),p=/MSIE \d/.test(ae),E=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ae),C=/Edge\/(\d+)/.exec(ae),b=p||E||C,f=b&&(p?document.documentMode||6:+(C||E)[1]),l=!C&&/WebKit\//.test(ae),r=l&&/Qt\/\d+\.\d+/.test(ae),n=!C&&/Chrome\//.test(ae),e=/Opera\//.test(ae),s=/Apple Computer/.test(navigator.vendor),u=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(ae),a=/PhantomJS/.test(ae),A=!C&&/AppleWebKit/.test(ae)&&/Mobile\/\w+/.test(ae),d=/Android/.test(ae),i=A||d||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(ae),h=A||/Mac/.test(V),y=/\bCrOS\b/.test(ae),v=/win/i.test(V),x=e&&ae.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(e=!1,l=!0);var S=h&&(r||e&&(x==null||x<12.11)),B=M||b&&f>=9;function w(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var m=function(t,g){var P=t.className,L=w(g).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 c(t){for(var g=t.childNodes.length;g>0;--g)t.removeChild(t.firstChild);return t}function o(t,g){return c(t).appendChild(g)}function _(t,g,P,L){var H=document.createElement(t);if(P&&(H.className=P),L&&(H.style.cssText=L),typeof g=="string")H.appendChild(document.createTextNode(g));else if(g)for(var se=0;se<g.length;++se)H.appendChild(g[se]);return H}function D(t,g,P,L){var H=_(t,g,P,L);return H.setAttribute("role","presentation"),H}var T;document.createRange?T=function(t,g,P,L){var H=document.createRange();return H.setEnd(L||t,P),H.setStart(t,g),H}:T=function(t,g,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",g),L};function O(t,g){if(g.nodeType==3&&(g=g.parentNode),t.contains)return t.contains(g);do if(g.nodeType==11&&(g=g.host),g==t)return!0;while(g=g.parentNode)}function R(){var t;try{t=document.activeElement}catch(g){t=document.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function U(t,g){var P=t.className;w(g).test(P)||(t.className+=(P?" ":"")+g)}function F(t,g){for(var P=t.split(" "),L=0;L<P.length;L++)P[L]&&!w(P[L]).test(g)&&(g+=" "+P[L]);return g}var Y=function(t){t.select()};A?Y=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:b&&(Y=function(t){try{t.select()}catch(g){}});function k(t){var g=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,g)}}function K(t,g,P){g||(g={});for(var L in t)t.hasOwnProperty(L)&&(P!==!1||!g.hasOwnProperty(L))&&(g[L]=t[L]);return g}function z(t,g,P,L,H){g==null&&(g=t.search(/[^\s\u00a0]/),g==-1&&(g=t.length));for(var se=L||0,xe=H||0;;){var Oe=t.indexOf(" ",se);if(Oe<0||Oe>=g)return xe+(g-se);xe+=Oe-se,xe+=P-xe%P,se=Oe+1}}var j=function(){this.id=null,this.f=null,this.time=0,this.handler=k(this.onTimeout,this)};j.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},j.prototype.set=function(t,g){this.f=g;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,g){for(var P=0;P<t.length;++P)if(t[P]==g)return P;return-1}var X=50,te={toString:function(){return"CodeMirror.Pass"}},oe={scroll:!1},fe={origin:"*mouse"},le={origin:"+move"};function we(t,g,P){for(var L=0,H=0;;){var se=t.indexOf(" ",L);se==-1&&(se=t.length);var xe=se-L;if(se==t.length||H+xe>=g)return L+Math.min(xe,g-H);if(H+=se-L,H+=P-H%P,L=se+1,H>=g)return L}}var Ae=[""];function be(t){for(;Ae.length<=t;)Ae.push(me(Ae)+" ");return Ae[t]}function me(t){return t[t.length-1]}function he(t,g){for(var P=[],L=0;L<t.length;L++)P[L]=g(t[L],L);return P}function ie(t,g,P){for(var L=0,H=P(g);L<t.length&&P(t[L])<=H;)L++;t.splice(L,0,g)}function pe(){}function ye(t,g){var P;return Object.create?P=Object.create(t):(pe.prototype=t,P=new pe),g&&K(g,P),P}var de=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Me(t){return/\w/.test(t)||t>"\x80"&&(t.toUpperCase()!=t.toLowerCase()||de.test(t))}function ke(t,g){return g?g.source.indexOf("\\w")>-1&&Me(t)?!0:g.test(t):Me(t)}function Ue(t){for(var g in t)if(t.hasOwnProperty(g)&&t[g])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 N(t){return t.charCodeAt(0)>=768&&re.test(t)}function W(t,g,P){for(;(P<0?g>0:g<t.length)&&N(t.charAt(g));)g+=P;return g}function ce(t,g,P){for(var L=g>P?-1:1;;){if(g==P)return g;var H=(g+P)/2,se=L<0?Math.ceil(H):Math.floor(H);if(se==g)return t(se)?g:P;t(se)?P=se:g=se+L}}function ne(t,g,P,L){if(!t)return L(g,P,"ltr",0);for(var H=!1,se=0;se<t.length;++se){var xe=t[se];(xe.from<P&&xe.to>g||g==P&&xe.to==g)&&(L(Math.max(xe.from,g),Math.min(xe.to,P),xe.level==1?"rtl":"ltr",se),H=!0)}H||L(g,P,"ltr")}var ue=null;function De(t,g,P){var L;ue=null;for(var H=0;H<t.length;++H){var se=t[H];if(se.from<g&&se.to>g)return H;se.to==g&&(se.from!=se.to&&P=="before"?L=H:ue=H),se.from==g&&(se.from!=se.to&&P!="before"?L=H:ue=H)}return L!=null?L:ue}var ze=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",g="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function P(Ke){return Ke<=247?t.charAt(Ke):1424<=Ke&&Ke<=1524?"R":1536<=Ke&&Ke<=1785?g.charAt(Ke-1536):1774<=Ke&&Ke<=2220?"r":8192<=Ke&&Ke<=8203?"w":Ke==8204?"b":"L"}var L=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,H=/[stwN]/,se=/[LRr]/,xe=/[Lb1n]/,Oe=/[1n]/;function Ie(Ke,vt,Ct){this.level=Ke,this.from=vt,this.to=Ct}return function(Ke,vt){var Ct=vt=="ltr"?"L":"R";if(Ke.length==0||vt=="ltr"&&!L.test(Ke))return!1;for(var Ht=Ke.length,Ft=[],on=0;on<Ht;++on)Ft.push(P(Ke.charCodeAt(on)));for(var vn=0,In=Ct;vn<Ht;++vn){var zn=Ft[vn];zn=="m"?Ft[vn]=In:In=zn}for(var ar=0,Vn=Ct;ar<Ht;++ar){var fr=Ft[ar];fr=="1"&&Vn=="r"?Ft[ar]="n":se.test(fr)&&(Vn=fr,fr=="r"&&(Ft[ar]="R"))}for(var Hr=1,Ir=Ft[0];Hr<Ht-1;++Hr){var fa=Ft[Hr];fa=="+"&&Ir=="1"&&Ft[Hr+1]=="1"?Ft[Hr]="1":fa==","&&Ir==Ft[Hr+1]&&(Ir=="1"||Ir=="n")&&(Ft[Hr]=Ir),Ir=fa}for(var hi=0;hi<Ht;++hi){var so=Ft[hi];if(so==",")Ft[hi]="N";else if(so=="%"){var Ii=void 0;for(Ii=hi+1;Ii<Ht&&Ft[Ii]=="%";++Ii);for(var qo=hi&&Ft[hi-1]=="!"||Ii<Ht&&Ft[Ii]=="1"?"1":"N",Eo=hi;Eo<Ii;++Eo)Ft[Eo]=qo;hi=Ii-1}}for(var Gi=0,Co=Ct;Gi<Ht;++Gi){var mo=Ft[Gi];Co=="L"&&mo=="1"?Ft[Gi]="L":se.test(mo)&&(Co=mo)}for(var Nn=0;Nn<Ht;++Nn)if(H.test(Ft[Nn])){var wi=void 0;for(wi=Nn+1;wi<Ht&&H.test(Ft[wi]);++wi);for(var xi=(Nn?Ft[Nn-1]:Ct)=="L",_i=(wi<Ht?Ft[wi]:Ct)=="L",ml=xi==_i?xi?"L":"R":Ct,Oa=Nn;Oa<wi;++Oa)Ft[Oa]=ml;Nn=wi-1}for(var ga=[],os,lo=0;lo<Ht;)if(xe.test(Ft[lo])){var vl=lo;for(++lo;lo<Ht&&xe.test(Ft[lo]);++lo);ga.push(new Ie(0,vl,lo))}else{var Ns=lo,Ds=ga.length,sl=vt=="rtl"?1:0;for(++lo;lo<Ht&&Ft[lo]!="L";++lo);for(var Oo=Ns;Oo<lo;)if(Oe.test(Ft[Oo])){Ns<Oo&&(ga.splice(Ds,0,new Ie(1,Ns,Oo)),Ds+=sl);var ll=Oo;for(++Oo;Oo<lo&&Oe.test(Ft[Oo]);++Oo);ga.splice(Ds,0,new Ie(2,ll,Oo)),Ds+=sl,Ns=Oo}else++Oo;Ns<lo&&ga.splice(Ds,0,new Ie(1,Ns,lo))}return vt=="ltr"&&(ga[0].level==1&&(os=Ke.match(/^\s+/))&&(ga[0].from=os[0].length,ga.unshift(new Ie(0,0,os[0].length))),me(ga).level==1&&(os=Ke.match(/\s+$/))&&(me(ga).to-=os[0].length,ga.push(new Ie(0,Ht-os[0].length,Ht)))),vt=="rtl"?ga.reverse():ga}}();function wt(t,g){var P=t.order;return P==null&&(P=t.order=ze(t.text,g)),P}var He=[],Xe=function(t,g,P){if(t.addEventListener)t.addEventListener(g,P,!1);else if(t.attachEvent)t.attachEvent("on"+g,P);else{var L=t._handlers||(t._handlers={});L[g]=(L[g]||He).concat(P)}};function gt(t,g){return t._handlers&&t._handlers[g]||He}function _t(t,g,P){if(t.removeEventListener)t.removeEventListener(g,P,!1);else if(t.detachEvent)t.detachEvent("on"+g,P);else{var L=t._handlers,H=L&&L[g];if(H){var se=Q(H,P);se>-1&&(L[g]=H.slice(0,se).concat(H.slice(se+1)))}}}function ct(t,g){var P=gt(t,g);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,g,P){return typeof g=="string"&&(g={type:g,preventDefault:function(){this.defaultPrevented=!0}}),ct(t,P||g.type,t,g),Ne(g)||g.codemirrorIgnore}function rt(t){var g=t._handlers&&t._handlers.cursorActivity;if(!g)return;for(var P=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),L=0;L<g.length;++L)Q(P,g[L])==-1&&P.push(g[L])}function Ze(t,g){return gt(t,g).length>0}function qe(t){t.prototype.on=function(g,P){Xe(this,g,P)},t.prototype.off=function(g,P){_t(this,g,P)}}function Le(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function je(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function Ne(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function $e(t){Le(t),je(t)}function At(t){return t.target||t.srcElement}function Bt(t){var g=t.which;return g==null&&(t.button&1?g=1:t.button&2?g=3:t.button&4&&(g=2)),h&&t.ctrlKey&&g==1&&(g=3),g}var Nt=function(){if(b&&f<9)return!1;var t=_("div");return"draggable"in t||"dragDrop"in t}(),It;function jt(t){if(It==null){var g=_("span","\u200B");o(t,_("span",[g,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(It=g.offsetWidth<=1&&g.offsetHeight>2&&!(b&&f<8))}var P=It?_("span","\u200B"):_("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return P.setAttribute("cm-text",""),P}var xt;function Lt(t){if(xt!=null)return xt;var g=o(t,document.createTextNode("A\u062EA")),P=T(g,0,1).getBoundingClientRect(),L=T(g,1,2).getBoundingClientRect();return c(t),!P||P.left==P.right?!1:xt=L.right-P.right<3}var St=`
b`.split(/\n/).length!=3?function(t){for(var g=0,P=[],L=t.length;g<=L;){var H=t.indexOf(`
`,g);H==-1&&(H=t.length);var se=t.slice(g,t.charAt(H-1)=="\r"?H-1:H),xe=se.indexOf("\r");xe!=-1?(P.push(se.slice(0,xe)),g+=xe+1):(P.push(se),g=H+1)}return P}:function(t){return t.split(/\r\n?|\n/)},dt=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(g){return!1}}:function(t){var g;try{g=t.ownerDocument.selection.createRange()}catch(P){}return!g||g.parentElement()!=t?!1:g.compareEndPoints("StartToEnd",g)!=0},yt=function(){var t=_("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),Fe=null;function et(t){if(Fe!=null)return Fe;var g=o(t,_("span","x")),P=g.getBoundingClientRect(),L=T(g,0,1).getBoundingClientRect();return Fe=Math.abs(P.left-L.left)>1}var Ot={},Et={};function Ut(t,g){arguments.length>2&&(g.dependencies=Array.prototype.slice.call(arguments,2)),Ot[t]=g}function Wt(t,g){Et[t]=g}function bt(t){if(typeof t=="string"&&Et.hasOwnProperty(t))t=Et[t];else if(t&&typeof t.name=="string"&&Et.hasOwnProperty(t.name)){var g=Et[t.name];typeof g=="string"&&(g={name:g}),t=ye(g,t),t.name=g.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return bt("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return bt("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function Gt(t,g){g=bt(g);var P=Ot[g.name];if(!P)return Gt(t,"text/plain");var L=P(t,g);if(un.hasOwnProperty(g.name)){var H=un[g.name];for(var se in H){if(!H.hasOwnProperty(se))continue;L.hasOwnProperty(se)&&(L["_"+se]=L[se]),L[se]=H[se]}}if(L.name=g.name,g.helperType&&(L.helperType=g.helperType),g.modeProps)for(var xe in g.modeProps)L[xe]=g.modeProps[xe];return L}var un={};function jn(t,g){var P=un.hasOwnProperty(t)?un[t]:un[t]={};K(g,P)}function Bn(t,g){if(g===!0)return g;if(t.copyState)return t.copyState(g);var P={};for(var L in g){var H=g[L];H instanceof Array&&(H=H.concat([])),P[L]=H}return P}function Nr(t,g){for(var P;t.innerMode&&!(P=t.innerMode(g),!P||P.mode==t);)g=P.state,t=P.mode;return P||{mode:t,state:g}}function zr(t,g,P){return t.startState?t.startState(g,P):!0}var _r=function(t,g,P){this.pos=this.start=0,this.string=t,this.tabSize=g||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=P};_r.prototype.eol=function(){return this.pos>=this.string.length},_r.prototype.sol=function(){return this.pos==this.lineStart},_r.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},_r.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},_r.prototype.eat=function(t){var g=this.string.charAt(this.pos),P;if(typeof t=="string"?P=g==t:P=g&&(t.test?t.test(g):t(g)),P)return++this.pos,g},_r.prototype.eatWhile=function(t){for(var g=this.pos;this.eat(t););return this.pos>g},_r.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},_r.prototype.skipToEnd=function(){this.pos=this.string.length},_r.prototype.skipTo=function(t){var g=this.string.indexOf(t,this.pos);if(g>-1)return this.pos=g,!0},_r.prototype.backUp=function(t){this.pos-=t},_r.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=z(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?z(this.string,this.lineStart,this.tabSize):0)},_r.prototype.indentation=function(){return z(this.string,null,this.tabSize)-(this.lineStart?z(this.string,this.lineStart,this.tabSize):0)},_r.prototype.match=function(t,g,P){if(typeof t=="string"){var L=function(xe){return P?xe.toLowerCase():xe},H=this.string.substr(this.pos,t.length);if(L(H)==L(t))return g!==!1&&(this.pos+=t.length),!0}else{var se=this.string.slice(this.pos).match(t);return se&&se.index>0?null:(se&&g!==!1&&(this.pos+=se[0].length),se)}},_r.prototype.current=function(){return this.string.slice(this.start,this.pos)},_r.prototype.hideFirstChars=function(t,g){this.lineStart+=t;try{return g()}finally{this.lineStart-=t}},_r.prototype.lookAhead=function(t){var g=this.lineOracle;return g&&g.lookAhead(t)},_r.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function Rn(t,g){if(g-=t.first,g<0||g>=t.size)throw new Error("There is no line "+(g+t.first)+" in the document.");for(var P=t;!P.lines;)for(var L=0;;++L){var H=P.children[L],se=H.chunkSize();if(g<se){P=H;break}g-=se}return P.lines[g]}function ea(t,g,P){var L=[],H=g.line;return t.iter(g.line,P.line+1,function(se){var xe=se.text;H==P.line&&(xe=xe.slice(0,P.ch)),H==g.line&&(xe=xe.slice(g.ch)),L.push(xe),++H}),L}function Aa(t,g,P){var L=[];return t.iter(g,P,function(H){L.push(H.text)}),L}function pa(t,g){var P=g-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 g=t.parent,P=Q(g.lines,t),L=g.parent;L;g=L,L=L.parent)for(var H=0;!(L.children[H]==g);++H)P+=L.children[H].chunkSize();return P+g.first}function Ea(t,g){var P=t.first;e:do{for(var L=0;L<t.children.length;++L){var H=t.children[L],se=H.height;if(g<se){t=H;continue e}g-=se,P+=H.chunkSize()}return P}while(!t.lines);for(var xe=0;xe<t.lines.length;++xe){var Oe=t.lines[xe],Ie=Oe.height;if(g<Ie)break;g-=Ie}return P+xe}function Za(t,g){return g>=t.first&&g<t.first+t.size}function fi(t,g){return String(t.lineNumberFormatter(g+t.firstLineNumber))}function Re(t,g,P){if(P===void 0&&(P=null),!(this instanceof Re))return new Re(t,g,P);this.line=t,this.ch=g,this.sticky=P}function Qe(t,g){return t.line-g.line||t.ch-g.ch}function it(t,g){return t.sticky==g.sticky&&Qe(t,g)==0}function Tt(t){return Re(t.line,t.ch)}function Vt(t,g){return Qe(t,g)<0?g:t}function rn(t,g){return Qe(t,g)<0?t:g}function ve(t,g){return Math.max(t.first,Math.min(g,t.first+t.size-1))}function G(t,g){if(g.line<t.first)return Re(t.first,0);var P=t.first+t.size-1;return g.line>P?Re(P,Rn(t,P).text.length):Z(g,Rn(t,g.line).text.length)}function Z(t,g){var P=t.ch;return P==null||P>g?Re(t.line,g):P<0?Re(t.line,0):t}function ge(t,g){for(var P=[],L=0;L<g.length;L++)P[L]=G(t,g[L]);return P}var Se=function(t,g){this.state=t,this.lookAhead=g},Ee=function(t,g,P,L){this.state=g,this.doc=t,this.line=P,this.maxLookAhead=L||0,this.baseTokens=null,this.baseTokenPos=1};Ee.prototype.lookAhead=function(t){var g=this.doc.getLine(this.line+t);return g!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),g},Ee.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var g=this.baseTokens[this.baseTokenPos+1];return{type:g&&g.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},Ee.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ee.fromSaved=function(t,g,P){return g instanceof Se?new Ee(t,Bn(t.mode,g.state),P,g.lookAhead):new Ee(t,Bn(t.mode,g),P)},Ee.prototype.save=function(t){var g=t!==!1?Bn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Se(g,this.maxLookAhead):g};function ft(t,g,P,L){var H=[t.state.modeGen],se={};aa(t,g.text,t.doc.mode,P,function(Ke,vt){return H.push(Ke,vt)},se,L);for(var xe=P.state,Oe=function(Ke){P.baseTokens=H;var vt=t.state.overlays[Ke],Ct=1,Ht=0;P.state=!0,aa(t,g.text,vt.mode,P,function(Ft,on){for(var vn=Ct;Ht<Ft;){var In=H[Ct];In>Ft&&H.splice(Ct,1,Ft,H[Ct+1],In),Ct+=2,Ht=Math.min(Ft,In)}if(!on)return;if(vt.opaque)H.splice(vn,Ct-vn,Ft,"overlay "+on),Ct=vn+2;else for(;vn<Ct;vn+=2){var zn=H[vn+1];H[vn+1]=(zn?zn+" ":"")+"overlay "+on}},se),P.state=xe,P.baseTokens=null,P.baseTokenPos=1},Ie=0;Ie<t.state.overlays.length;++Ie)Oe(Ie);return{styles:H,classes:se.bgClass||se.textClass?se:null}}function Kt(t,g,P){if(!g.styles||g.styles[0]!=t.state.modeGen){var L=Rt(t,Kr(g)),H=g.text.length>t.options.maxHighlightLength&&Bn(t.doc.mode,L.state),se=ft(t,g,L);H&&(L.state=H),g.stateAfter=L.save(!H),g.styles=se.styles,se.classes?g.styleClasses=se.classes:g.styleClasses&&(g.styleClasses=null),P===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return g.styles}function Rt(t,g,P){var L=t.doc,H=t.display;if(!L.mode.startState)return new Ee(L,!0,g);var se=Br(t,g,P),xe=se>L.first&&Rn(L,se-1).stateAfter,Oe=xe?Ee.fromSaved(L,xe,se):new Ee(L,zr(L.mode),se);return L.iter(se,g,function(Ie){mn(t,Ie.text,Oe);var Ke=Oe.line;Ie.stateAfter=Ke==g-1||Ke%5==0||Ke>=H.viewFrom&&Ke<H.viewTo?Oe.save():null,Oe.nextLine()}),P&&(L.modeFrontier=Oe.line),Oe}function mn(t,g,P,L){var H=t.doc.mode,se=new _r(g,t.options.tabSize,P);for(se.start=se.pos=L||0,g==""&&Yt(H,P.state);!se.eol();)Jn(H,se,P.state),se.start=se.pos}function Yt(t,g){if(t.blankLine)return t.blankLine(g);if(!t.innerMode)return;var P=Nr(t,g);if(P.mode.blankLine)return P.mode.blankLine(P.state)}function Jn(t,g,P,L){for(var H=0;H<10;H++){L&&(L[0]=Nr(t,P).mode);var se=t.token(g,P);if(g.pos>g.start)return se}throw new Error("Mode "+t.name+" failed to advance stream.")}var Hn=function(t,g,P){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=g||null,this.state=P};function $n(t,g,P,L){var H=t.doc,se=H.mode,xe;g=G(H,g);var Oe=Rn(H,g.line),Ie=Rt(t,g.line,P),Ke=new _r(Oe.text,t.options.tabSize,Ie),vt;for(L&&(vt=[]);(L||Ke.pos<g.ch)&&!Ke.eol();)Ke.start=Ke.pos,xe=Jn(se,Ke,Ie.state),L&&vt.push(new Hn(Ke,xe,Bn(H.mode,Ie.state)));return L?vt:new Hn(Ke,xe,Ie.state)}function wr(t,g){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";g[L]==null?g[L]=P[2]:new RegExp("(?:^|\\s)"+P[2]+"(?:$|\\s)").test(g[L])||(g[L]+=" "+P[2])}return t}function aa(t,g,P,L,H,se,xe){var Oe=P.flattenSpans;Oe==null&&(Oe=t.options.flattenSpans);var Ie=0,Ke=null,vt=new _r(g,t.options.tabSize,L),Ct,Ht=t.options.addModeClass&&[null];for(g==""&&wr(Yt(P,L.state),se);!vt.eol();){if(vt.pos>t.options.maxHighlightLength?(Oe=!1,xe&&mn(t,g,L,vt.pos),vt.pos=g.length,Ct=null):Ct=wr(Jn(P,vt,L.state,Ht),se),Ht){var Ft=Ht[0].name;Ft&&(Ct="m-"+(Ct?Ft+" "+Ct:Ft))}if(!Oe||Ke!=Ct){for(;Ie<vt.start;)Ie=Math.min(vt.start,Ie+5e3),H(Ie,Ke);Ke=Ct}vt.start=vt.pos}for(;Ie<vt.pos;){var on=Math.min(vt.pos,Ie+5e3);H(on,Ke),Ie=on}}function Br(t,g,P){for(var L,H,se=t.doc,xe=P?-1:g-(t.doc.mode.innerMode?1e3:100),Oe=g;Oe>xe;--Oe){if(Oe<=se.first)return se.first;var Ie=Rn(se,Oe-1),Ke=Ie.stateAfter;if(Ke&&(!P||Oe+(Ke instanceof Se?Ke.lookAhead:0)<=se.modeFrontier))return Oe;var vt=z(Ie.text,null,t.options.tabSize);(H==null||L>vt)&&(H=Oe-1,L=vt)}return H}function ta(t,g){if(t.modeFrontier=Math.min(t.modeFrontier,g),t.highlightFrontier<g-10)return;for(var P=t.first,L=g-1;L>P;L--){var H=Rn(t,L).stateAfter;if(H&&(!(H instanceof Se)||L+H.lookAhead<g)){P=L+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,P)}var Sr=!1,ma=!1;function la(){Sr=!0}function ja(){ma=!0}function Sa(t,g,P){this.marker=t,this.from=g,this.to=P}function Ua(t,g){if(t)for(var P=0;P<t.length;++P){var L=t[P];if(L.marker==g)return L}}function ka(t,g){for(var P,L=0;L<t.length;++L)t[L]!=g&&(P||(P=[])).push(t[L]);return P}function Ca(t,g){t.markedSpans=t.markedSpans?t.markedSpans.concat([g]):[g],g.marker.attachLine(t)}function Jr(t,g,P){var L;if(t)for(var H=0;H<t.length;++H){var se=t[H],xe=se.marker,Oe=se.from==null||(xe.inclusiveLeft?se.from<=g:se.from<g);if(Oe||se.from==g&&xe.type=="bookmark"&&(!P||!se.marker.insertLeft)){var Ie=se.to==null||(xe.inclusiveRight?se.to>=g:se.to>g);(L||(L=[])).push(new Sa(xe,se.from,Ie?null:se.to))}}return L}function Wa(t,g,P){var L;if(t)for(var H=0;H<t.length;++H){var se=t[H],xe=se.marker,Oe=se.to==null||(xe.inclusiveRight?se.to>=g:se.to>g);if(Oe||se.from==g&&xe.type=="bookmark"&&(!P||se.marker.insertLeft)){var Ie=se.from==null||(xe.inclusiveLeft?se.from<=g:se.from<g);(L||(L=[])).push(new Sa(xe,Ie?null:se.from-g,se.to==null?null:se.to-g))}}return L}function Ma(t,g){if(g.full)return null;var P=Za(t,g.from.line)&&Rn(t,g.from.line).markedSpans,L=Za(t,g.to.line)&&Rn(t,g.to.line).markedSpans;if(!P&&!L)return null;var H=g.from.ch,se=g.to.ch,xe=Qe(g.from,g.to)==0,Oe=Jr(P,H,xe),Ie=Wa(L,se,xe),Ke=g.text.length==1,vt=me(g.text).length+(Ke?H:0);if(Oe)for(var Ct=0;Ct<Oe.length;++Ct){var Ht=Oe[Ct];if(Ht.to==null){var Ft=Ua(Ie,Ht.marker);Ft?Ke&&(Ht.to=Ft.to==null?null:Ft.to+vt):Ht.to=H}}if(Ie)for(var on=0;on<Ie.length;++on){var vn=Ie[on];if(vn.to!=null&&(vn.to+=vt),vn.from==null){var In=Ua(Oe,vn.marker);In||(vn.from=vt,Ke&&(Oe||(Oe=[])).push(vn))}else vn.from+=vt,Ke&&(Oe||(Oe=[])).push(vn)}Oe&&(Oe=Ta(Oe)),Ie&&Ie!=Oe&&(Ie=Ta(Ie));var zn=[Oe];if(!Ke){var ar=g.text.length-2,Vn;if(ar>0&&Oe)for(var fr=0;fr<Oe.length;++fr)Oe[fr].to==null&&(Vn||(Vn=[])).push(new Sa(Oe[fr].marker,null,null));for(var Hr=0;Hr<ar;++Hr)zn.push(Vn);zn.push(Ie)}return zn}function Ta(t){for(var g=0;g<t.length;++g){var P=t[g];P.from!=null&&P.from==P.to&&P.marker.clearWhenEmpty!==!1&&t.splice(g--,1)}return t.length?t:null}function ui(t,g,P){var L=null;if(t.iter(g.line,P.line+1,function(Ft){if(Ft.markedSpans)for(var on=0;on<Ft.markedSpans.length;++on){var vn=Ft.markedSpans[on].marker;vn.readOnly&&(!L||Q(L,vn)==-1)&&(L||(L=[])).push(vn)}}),!L)return null;for(var H=[{from:g,to:P}],se=0;se<L.length;++se)for(var xe=L[se],Oe=xe.find(0),Ie=0;Ie<H.length;++Ie){var Ke=H[Ie];if(Qe(Ke.to,Oe.from)<0||Qe(Ke.from,Oe.to)>0)continue;var vt=[Ie,1],Ct=Qe(Ke.from,Oe.from),Ht=Qe(Ke.to,Oe.to);(Ct<0||!xe.inclusiveLeft&&!Ct)&&vt.push({from:Ke.from,to:Oe.from}),(Ht>0||!xe.inclusiveRight&&!Ht)&&vt.push({from:Oe.to,to:Ke.to}),H.splice.apply(H,vt),Ie+=vt.length-3}return H}function Ai(t){var g=t.markedSpans;if(!g)return;for(var P=0;P<g.length;++P)g[P].marker.detachLine(t);t.markedSpans=null}function Ba(t,g){if(!g)return;for(var P=0;P<g.length;++P)g[P].marker.attachLine(t);t.markedSpans=g}function Xr(t){return t.inclusiveLeft?-1:0}function hr(t){return t.inclusiveRight?1:0}function Yr(t,g){var P=t.lines.length-g.lines.length;if(P!=0)return P;var L=t.find(),H=g.find(),se=Qe(L.from,H.from)||Xr(t)-Xr(g);if(se)return-se;var xe=Qe(L.to,H.to)||hr(t)-hr(g);return xe||g.id-t.id}function na(t,g){var P=ma&&t.markedSpans,L;if(P)for(var H=void 0,se=0;se<P.length;++se)H=P[se],H.marker.collapsed&&(g?H.from:H.to)==null&&(!L||Yr(L,H.marker)<0)&&(L=H.marker);return L}function La(t){return na(t,!0)}function ia(t){return na(t,!1)}function eo(t,g){var P=ma&&t.markedSpans,L;if(P)for(var H=0;H<P.length;++H){var se=P[H];se.marker.collapsed&&(se.from==null||se.from<g)&&(se.to==null||se.to>g)&&(!L||Yr(L,se.marker)<0)&&(L=se.marker)}return L}function za(t,g,P,L,H){var se=Rn(t,g),xe=ma&&se.markedSpans;if(xe)for(var Oe=0;Oe<xe.length;++Oe){var Ie=xe[Oe];if(!Ie.marker.collapsed)continue;var Ke=Ie.marker.find(0),vt=Qe(Ke.from,P)||Xr(Ie.marker)-Xr(H),Ct=Qe(Ke.to,L)||hr(Ie.marker)-hr(H);if(vt>=0&&Ct<=0||vt<=0&&Ct>=0)continue;if(vt<=0&&(Ie.marker.inclusiveRight&&H.inclusiveLeft?Qe(Ke.to,P)>=0:Qe(Ke.to,P)>0)||vt>=0&&(Ie.marker.inclusiveRight&&H.inclusiveLeft?Qe(Ke.from,L)<=0:Qe(Ke.from,L)<0))return!0}}function Ga(t){for(var g;g=La(t);)t=g.find(-1,!0).line;return t}function Qi(t){for(var g;g=ia(t);)t=g.find(1,!0).line;return t}function wo(t){for(var g,P;g=ia(t);)t=g.find(1,!0).line,(P||(P=[])).push(t);return P}function wa(t,g){var P=Rn(t,g),L=Ga(P);return P==L?g:Kr(L)}function Ro(t,g){if(g>t.lastLine())return g;var P=Rn(t,g),L;if(!Di(t,P))return g;for(;L=ia(P);)P=L.find(1,!0).line;return Kr(P)+1}function Di(t,g){var P=ma&&g.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&&$o(t,g,L))return!0}}function $o(t,g,P){if(P.to==null){var L=P.marker.find(1,!0);return $o(t,L.line,Ua(L.line.markedSpans,P.marker))}if(P.marker.inclusiveRight&&P.to==g.text.length)return!0;for(var H=void 0,se=0;se<g.markedSpans.length;++se)if(H=g.markedSpans[se],H.marker.collapsed&&!H.marker.widgetNode&&H.from==P.to&&(H.to==null||H.to!=P.from)&&(H.marker.inclusiveLeft||P.marker.inclusiveRight)&&$o(t,g,H))return!0}function Fi(t){t=Ga(t);for(var g=0,P=t.parent,L=0;L<P.lines.length;++L){var H=P.lines[L];if(H==t)break;g+=H.height}for(var se=P.parent;se;P=se,se=P.parent)for(var xe=0;xe<se.children.length;++xe){var Oe=se.children[xe];if(Oe==P)break;g+=Oe.height}return g}function ls(t){if(t.height==0)return 0;for(var g=t.text.length,P,L=t;P=La(L);){var H=P.find(0,!0);L=H.from.line,g+=H.from.ch-H.to.ch}for(L=t;P=ia(L);){var se=P.find(0,!0);g-=L.text.length-se.from.ch,L=se.to.line,g+=L.text.length-se.to.ch}return g}function uo(t){var g=t.display,P=t.doc;g.maxLine=Rn(P,P.first),g.maxLineLength=ls(g.maxLine),g.maxLineChanged=!0,P.iter(function(L){var H=ls(L);H>g.maxLineLength&&(g.maxLineLength=H,g.maxLine=L)})}var Mi=function(t,g,P){this.text=t,Ba(this,g),this.height=P?P(this):1};Mi.prototype.lineNo=function(){return Kr(this)},qe(Mi);function Go(t,g,P,L){t.text=g,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),Ai(t),Ba(t,P);var H=L?L(t):1;H!=t.height&&pa(t,H)}function ps(t){t.parent=null,Ai(t)}var qa={},to={};function Vo(t,g){if(!t||/^\s*$/.test(t))return null;var P=g.addModeClass?to:qa;return P[t]||(P[t]=t.replace(/\S+/g,"cm-$&"))}function Xo(t,g){var P=D("span",null,null,l?"padding-right: .1px":null),L={pre:D("pre",[P],"CodeMirror-line"),content:P,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};g.measure={};for(var H=0;H<=(g.rest?g.rest.length:0);H++){var se=H?g.rest[H-1]:g.line,xe=void 0;L.pos=0,L.addToken=Fr,Lt(t.display.measure)&&(xe=wt(se,t.doc.direction))&&(L.addToken=oa(L.addToken,xe)),L.map=[];var Oe=g!=t.display.externalMeasured&&Kr(se);xa(se,L,Kt(t,se,Oe)),se.styleClasses&&(se.styleClasses.bgClass&&(L.bgClass=F(se.styleClasses.bgClass,L.bgClass||"")),se.styleClasses.textClass&&(L.textClass=F(se.styleClasses.textClass,L.textClass||""))),L.map.length==0&&L.map.push(0,0,L.content.appendChild(jt(t.display.measure))),H==0?(g.measure.map=L.map,g.measure.cache={}):((g.measure.maps||(g.measure.maps=[])).push(L.map),(g.measure.caches||(g.measure.caches=[])).push({}))}if(l){var Ie=L.content.lastChild;(/\bcm-tab\b/.test(Ie.className)||Ie.querySelector&&Ie.querySelector(".cm-tab"))&&(L.content.className="cm-tab-wrap-hack")}return ct(t,"renderLine",t,g.line,L.pre),L.pre.className&&(L.textClass=F(L.pre.className,L.textClass||"")),L}function ur(t){var g=_("span","\u2022","cm-invalidchar");return g.title="\\u"+t.charCodeAt(0).toString(16),g.setAttribute("aria-label",g.title),g}function Fr(t,g,P,L,H,se,xe){if(!g)return;var Oe=t.splitSpaces?xr(g,t.trailingSpace):g,Ie=t.cm.state.specialChars,Ke=!1,vt;if(!Ie.test(g))t.col+=g.length,vt=document.createTextNode(Oe),t.map.push(t.pos,t.pos+g.length,vt),b&&f<9&&(Ke=!0),t.pos+=g.length;else{vt=document.createDocumentFragment();for(var Ct=0;;){Ie.lastIndex=Ct;var Ht=Ie.exec(g),Ft=Ht?Ht.index-Ct:g.length-Ct;if(Ft){var on=document.createTextNode(Oe.slice(Ct,Ct+Ft));b&&f<9?vt.appendChild(_("span",[on])):vt.appendChild(on),t.map.push(t.pos,t.pos+Ft,on),t.col+=Ft,t.pos+=Ft}if(!Ht)break;Ct+=Ft+1;var vn=void 0;if(Ht[0]==" "){var In=t.cm.options.tabSize,zn=In-t.col%In;vn=vt.appendChild(_("span",be(zn),"cm-tab")),vn.setAttribute("role","presentation"),vn.setAttribute("cm-text"," "),t.col+=zn}else Ht[0]=="\r"||Ht[0]==`
`?(vn=vt.appendChild(_("span",Ht[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),vn.setAttribute("cm-text",Ht[0]),t.col+=1):(vn=t.cm.options.specialCharPlaceholder(Ht[0]),vn.setAttribute("cm-text",Ht[0]),b&&f<9?vt.appendChild(_("span",[vn])):vt.appendChild(vn),t.col+=1);t.map.push(t.pos,t.pos+1,vn),t.pos++}}if(t.trailingSpace=Oe.charCodeAt(g.length-1)==32,P||L||H||Ke||se||xe){var ar=P||"";L&&(ar+=L),H&&(ar+=H);var Vn=_("span",[vt],ar,se);if(xe)for(var fr in xe)xe.hasOwnProperty(fr)&&fr!="style"&&fr!="class"&&Vn.setAttribute(fr,xe[fr]);return t.content.appendChild(Vn)}t.content.appendChild(vt)}function xr(t,g){if(t.length>1&&!/ /.test(t))return t;for(var P=g,L="",H=0;H<t.length;H++){var se=t.charAt(H);se==" "&&P&&(H==t.length-1||t.charCodeAt(H+1)==32)&&(se="\xA0"),L+=se,P=se==" "}return L}function oa(t,g){return function(P,L,H,se,xe,Oe,Ie){H=H?H+" cm-force-border":"cm-force-border";for(var Ke=P.pos,vt=Ke+L.length;;){for(var Ct=void 0,Ht=0;Ht<g.length&&!(Ct=g[Ht],Ct.to>Ke&&Ct.from<=Ke);Ht++);if(Ct.to>=vt)return t(P,L,H,se,xe,Oe,Ie);t(P,L.slice(0,Ct.to-Ke),H,se,null,Oe,Ie),se=null,L=L.slice(Ct.to-Ke),Ke=Ct.to}}}function va(t,g,P,L){var H=!L&&P.widgetNode;H&&t.map.push(t.pos,t.pos+g,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+=g,t.trailingSpace=!1}function xa(t,g,P){var L=t.markedSpans,H=t.text,se=0;if(!L){for(var xe=1;xe<P.length;xe+=2)g.addToken(g,H.slice(se,se=P[xe]),Vo(P[xe+1],g.cm.options));return}for(var Oe=H.length,Ie=0,Ke=1,vt="",Ct,Ht,Ft=0,on,vn,In,zn,ar;;){if(Ft==Ie){on=vn=In=Ht="",ar=null,zn=null,Ft=Infinity;for(var Vn=[],fr=void 0,Hr=0;Hr<L.length;++Hr){var Ir=L[Hr],fa=Ir.marker;if(fa.type=="bookmark"&&Ir.from==Ie&&fa.widgetNode)Vn.push(fa);else if(Ir.from<=Ie&&(Ir.to==null||Ir.to>Ie||fa.collapsed&&Ir.to==Ie&&Ir.from==Ie)){if(Ir.to!=null&&Ir.to!=Ie&&Ft>Ir.to&&(Ft=Ir.to,vn=""),fa.className&&(on+=" "+fa.className),fa.css&&(Ht=(Ht?Ht+";":"")+fa.css),fa.startStyle&&Ir.from==Ie&&(In+=" "+fa.startStyle),fa.endStyle&&Ir.to==Ft&&(fr||(fr=[])).push(fa.endStyle,Ir.to),fa.title&&((ar||(ar={})).title=fa.title),fa.attributes)for(var hi in fa.attributes)(ar||(ar={}))[hi]=fa.attributes[hi];fa.collapsed&&(!zn||Yr(zn.marker,fa)<0)&&(zn=Ir)}else Ir.from>Ie&&Ft>Ir.from&&(Ft=Ir.from)}if(fr)for(var so=0;so<fr.length;so+=2)fr[so+1]==Ft&&(vn+=" "+fr[so]);if(!zn||zn.from==Ie)for(var Ii=0;Ii<Vn.length;++Ii)va(g,0,Vn[Ii]);if(zn&&(zn.from||0)==Ie){if(va(g,(zn.to==null?Oe+1:zn.to)-Ie,zn.marker,zn.from==null),zn.to==null)return;zn.to==Ie&&(zn=!1)}}if(Ie>=Oe)break;for(var qo=Math.min(Oe,Ft);;){if(vt){var Eo=Ie+vt.length;if(!zn){var Gi=Eo>qo?vt.slice(0,qo-Ie):vt;g.addToken(g,Gi,Ct?Ct+on:on,In,Ie+Gi.length==Ft?vn:"",Ht,ar)}if(Eo>=qo){vt=vt.slice(qo-Ie),Ie=qo;break}Ie=Eo,In=""}vt=H.slice(se,se=P[Ke++]),Ct=Vo(P[Ke++],g.cm.options)}}}function ca(t,g,P){this.line=g,this.rest=wo(g),this.size=this.rest?Kr(me(this.rest))-P+1:1,this.node=this.text=null,this.hidden=Di(t,g)}function Fa(t,g,P){for(var L=[],H,se=g;se<P;se=H){var xe=new ca(t.doc,Rn(t.doc,se),se);H=se+xe.size,L.push(xe)}return L}var Si=null;function sa(t){Si?Si.ops.push(t):t.ownsGroup=Si={ops:[t],delayedCallbacks:[]}}function Io(t){var g=t.delayedCallbacks,P=0;do{for(;P<g.length;P++)g[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<g.length)}function br(t,g){var P=t.ownsGroup;if(!P)return;try{Io(P)}finally{Si=null,g(P)}}var Pr=null;function Qr(t,g){var P=gt(t,g);if(!P.length)return;var L=Array.prototype.slice.call(arguments,2),H;Si?H=Si.delayedCallbacks:Pr?H=Pr:(H=Pr=[],setTimeout($a,0));for(var se=function(Oe){H.push(function(){return P[Oe].apply(null,L)})},xe=0;xe<P.length;++xe)se(xe)}function $a(){var t=Pr;Pr=null;for(var g=0;g<t.length;++g)t[g]()}function Mo(t,g,P,L){for(var H=0;H<g.changes.length;H++){var se=g.changes[H];se=="text"?js(t,g):se=="gutter"?cs(t,g,P,L):se=="class"?Zs(t,g):se=="widget"&&dl(t,g,L)}g.changes=null}function us(t){return t.node==t.text&&(t.node=_("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),b&&f<8&&(t.node.style.zIndex=2)),t.node}function Is(t,g){var P=g.bgClass?g.bgClass+" "+(g.line.bgClass||""):g.line.bgClass;if(P&&(P+=" CodeMirror-linebackground"),g.background)P?g.background.className=P:(g.background.parentNode.removeChild(g.background),g.background=null);else if(P){var L=us(g);g.background=L.insertBefore(_("div",null,P),L.firstChild),t.display.input.setUneditable(g.background)}}function xs(t,g){var P=t.display.externalMeasured;return P&&P.line==g.line?(t.display.externalMeasured=null,g.measure=P.measure,P.built):Xo(t,g)}function js(t,g){var P=g.text.className,L=xs(t,g);g.text==g.node&&(g.node=L.pre),g.text.parentNode.replaceChild(L.pre,g.text),g.text=L.pre,L.bgClass!=g.bgClass||L.textClass!=g.textClass?(g.bgClass=L.bgClass,g.textClass=L.textClass,Zs(t,g)):P&&(g.text.className=P)}function Zs(t,g){Is(t,g),g.line.wrapClass?us(g).className=g.line.wrapClass:g.node!=g.text&&(g.node.className="");var P=g.textClass?g.textClass+" "+(g.line.textClass||""):g.line.textClass;g.text.className=P||""}function cs(t,g,P,L){if(g.gutter&&(g.node.removeChild(g.gutter),g.gutter=null),g.gutterBackground&&(g.node.removeChild(g.gutterBackground),g.gutterBackground=null),g.line.gutterClass){var H=us(g);g.gutterBackground=_("div",null,"CodeMirror-gutter-background "+g.line.gutterClass,"left: "+(t.options.fixedGutter?L.fixedPos:-L.gutterTotalWidth)+"px; width: "+L.gutterTotalWidth+"px"),t.display.input.setUneditable(g.gutterBackground),H.insertBefore(g.gutterBackground,g.text)}var se=g.line.gutterMarkers;if(t.options.lineNumbers||se){var xe=us(g),Oe=g.gutter=_("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?L.fixedPos:-L.gutterTotalWidth)+"px");if(t.display.input.setUneditable(Oe),xe.insertBefore(Oe,g.text),g.line.gutterClass&&(Oe.className+=" "+g.line.gutterClass),t.options.lineNumbers&&(!se||!se["CodeMirror-linenumbers"])&&(g.lineNumber=Oe.appendChild(_("div",fi(t.options,P),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+L.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),se)for(var Ie=0;Ie<t.display.gutterSpecs.length;++Ie){var Ke=t.display.gutterSpecs[Ie].className,vt=se.hasOwnProperty(Ke)&&se[Ke];vt&&Oe.appendChild(_("div",[vt],"CodeMirror-gutter-elt","left: "+L.gutterLeft[Ke]+"px; width: "+L.gutterWidth[Ke]+"px"))}}}function dl(t,g,P){g.alignable&&(g.alignable=null);for(var L=w("CodeMirror-linewidget"),H=g.node.firstChild,se=void 0;H;H=se)se=H.nextSibling,L.test(H.className)&&g.node.removeChild(H);xo(t,g,P)}function $s(t,g,P,L){var H=xs(t,g);return g.text=g.node=H.pre,H.bgClass&&(g.bgClass=H.bgClass),H.textClass&&(g.textClass=H.textClass),Zs(t,g),cs(t,g,P,L),xo(t,g,L),g.node}function xo(t,g,P){if(ms(t,g.line,g,P,!0),g.rest)for(var L=0;L<g.rest.length;L++)ms(t,g.rest[L],g,P,!1)}function ms(t,g,P,L,H){if(!g.widgets)return;for(var se=us(P),xe=0,Oe=g.widgets;xe<Oe.length;++xe){var Ie=Oe[xe],Ke=_("div",[Ie.node],"CodeMirror-linewidget"+(Ie.className?" "+Ie.className:""));Ie.handleMouseEvents||Ke.setAttribute("cm-ignore-events","true"),Ha(Ie,Ke,P,L),t.display.input.setUneditable(Ke),H&&Ie.above?se.insertBefore(Ke,P.gutter||P.text):se.appendChild(Ke),Qr(Ie,"redraw")}}function Ha(t,g,P,L){if(t.noHScroll){(P.alignable||(P.alignable=[])).push(g);var H=L.wrapperWidth;g.style.left=L.fixedPos+"px",t.coverGutter||(H-=L.gutterTotalWidth,g.style.paddingLeft=L.gutterTotalWidth+"px"),g.style.width=H+"px"}t.coverGutter&&(g.style.zIndex=5,g.style.position="relative",t.noHScroll||(g.style.marginLeft=-L.gutterTotalWidth+"px"))}function _s(t){if(t.height!=null)return t.height;var g=t.doc.cm;if(!g)return 0;if(!O(document.body,t.node)){var P="position: relative;";t.coverGutter&&(P+="margin-left: -"+g.display.gutters.offsetWidth+"px;"),t.noHScroll&&(P+="width: "+g.display.wrapper.clientWidth+"px;"),o(g.display.measure,_("div",[t.node],null,P))}return t.height=t.node.parentNode.offsetHeight}function _o(t,g){for(var P=At(g);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 Ge(t){if(t.cachedPaddingH)return t.cachedPaddingH;var g=o(t.measure,_("pre","x","CodeMirror-line-like")),P=window.getComputedStyle?window.getComputedStyle(g):g.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 X-t.display.nativeBarWidth}function Je(t){return t.display.scroller.clientWidth-Ye(t)-t.display.barWidth}function Te(t){return t.display.scroller.clientHeight-Ye(t)-t.display.barHeight}function Ve(t,g,P){var L=t.options.lineWrapping,H=L&&Je(t);if(!g.measure.heights||L&&g.measure.width!=H){var se=g.measure.heights=[];if(L){g.measure.width=H;for(var xe=g.text.firstChild.getClientRects(),Oe=0;Oe<xe.length-1;Oe++){var Ie=xe[Oe],Ke=xe[Oe+1];Math.abs(Ie.bottom-Ke.bottom)>2&&se.push((Ie.bottom+Ke.top)/2-P.top)}}se.push(P.bottom-P.top)}}function Be(t,g,P){if(t.line==g)return{map:t.measure.map,cache:t.measure.cache};for(var L=0;L<t.rest.length;L++)if(t.rest[L]==g)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,g){g=Ga(g);var P=Kr(g),L=t.display.externalMeasured=new ca(t.doc,g,P);L.lineN=P;var H=L.built=Xo(t,L);return L.text=H.pre,o(t.display.lineMeasure,H.pre),L}function nt(t,g,P,L){return ht(t,ot(t,g),P,L)}function st(t,g){if(g>=t.display.viewFrom&&g<t.display.viewTo)return t.display.view[tr(t,g)];var P=t.display.externalMeasured;if(P&&g>=P.lineN&&g<P.lineN+P.size)return P}function ot(t,g){var P=Kr(g),L=st(t,P);L&&!L.text?L=null:L&&L.changes&&(Mo(t,L,P,Ur(t)),t.curOp.forceUpdate=!0),L||(L=at(t,g));var H=Be(L,g,P);return{line:g,view:L,rect:null,map:H.map,cache:H.cache,before:H.before,hasHeights:!1}}function ht(t,g,P,L,H){g.before&&(P=-1);var se=P+(L||""),xe;return g.cache.hasOwnProperty(se)?xe=g.cache[se]:(g.rect||(g.rect=g.view.text.getBoundingClientRect()),g.hasHeights||(Ve(t,g.view,g.rect),g.hasHeights=!0),xe=en(t,g,P,L),xe.bogus||(g.cache[se]=xe)),{left:xe.left,right:xe.right,top:H?xe.rtop:xe.top,bottom:H?xe.rbottom:xe.bottom}}var Mt={left:0,right:0,top:0,bottom:0};function zt(t,g,P){for(var L,H,se,xe,Oe,Ie,Ke=0;Ke<t.length;Ke+=3)if(Oe=t[Ke],Ie=t[Ke+1],g<Oe?(H=0,se=1,xe="left"):g<Ie?(H=g-Oe,se=H+1):(Ke==t.length-3||g==Ie&&t[Ke+3]>g)&&(se=Ie-Oe,H=se-1,g>=Ie&&(xe="right")),H!=null){if(L=t[Ke+2],Oe==Ie&&P==(L.insertLeft?"left":"right")&&(xe=P),P=="left"&&H==0)for(;Ke&&t[Ke-2]==t[Ke-3]&&t[Ke-1].insertLeft;)L=t[(Ke-=3)+2],xe="left";if(P=="right"&&H==Ie-Oe)for(;Ke<t.length-3&&t[Ke+3]==t[Ke+4]&&!t[Ke+5].insertLeft;)L=t[(Ke+=3)+2],xe="right";break}return{node:L,start:H,end:se,collapse:xe,coverStart:Oe,coverEnd:Ie}}function Dt(t,g){var P=Mt;if(g=="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 en(t,g,P,L){var H=zt(g.map,P,L),se=H.node,xe=H.start,Oe=H.end,Ie=H.collapse,Ke;if(se.nodeType==3){for(var vt=0;vt<4;vt++){for(;xe&&N(g.line.text.charAt(H.coverStart+xe));)--xe;for(;H.coverStart+Oe<H.coverEnd&&N(g.line.text.charAt(H.coverStart+Oe));)++Oe;if(b&&f<9&&xe==0&&Oe==H.coverEnd-H.coverStart?Ke=se.parentNode.getBoundingClientRect():Ke=Dt(T(se,xe,Oe).getClientRects(),L),Ke.left||Ke.right||xe==0)break;Oe=xe,xe=xe-1,Ie="right"}b&&f<11&&(Ke=ln(t.display.measure,Ke))}else{xe>0&&(Ie=L="right");var Ct;t.options.lineWrapping&&(Ct=se.getClientRects()).length>1?Ke=Ct[L=="right"?Ct.length-1:0]:Ke=se.getBoundingClientRect()}if(b&&f<9&&!xe&&(!Ke||!Ke.left&&!Ke.right)){var Ht=se.parentNode.getClientRects()[0];Ht?Ke={left:Ht.left,right:Ht.left+Qn(t.display),top:Ht.top,bottom:Ht.bottom}:Ke=Mt}for(var Ft=Ke.top-g.rect.top,on=Ke.bottom-g.rect.top,vn=(Ft+on)/2,In=g.view.measure.heights,zn=0;zn<In.length-1&&!(vn<In[zn]);zn++);var ar=zn?In[zn-1]:0,Vn=In[zn],fr={left:(Ie=="right"?Ke.right:Ke.left)-g.rect.left,right:(Ie=="left"?Ke.left:Ke.right)-g.rect.left,top:ar,bottom:Vn};return!Ke.left&&!Ke.right&&(fr.bogus=!0),t.options.singleCursorHeightPerLine||(fr.rtop=Ft,fr.rbottom=on),fr}function ln(t,g){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!et(t))return g;var P=screen.logicalXDPI/screen.deviceXDPI,L=screen.logicalYDPI/screen.deviceYDPI;return{left:g.left*P,right:g.right*P,top:g.top*L,bottom:g.bottom*L}}function Sn(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var g=0;g<t.rest.length;g++)t.measure.caches[g]={}}function Xt(t){t.display.externalMeasure=null,c(t.display.lineMeasure);for(var g=0;g<t.display.view.length;g++)Sn(t.display.view[g])}function $t(t){Xt(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function gn(){return n&&d?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function On(){return n&&d?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function nn(t){var g=0;if(t.widgets)for(var P=0;P<t.widgets.length;++P)t.widgets[P].above&&(g+=_s(t.widgets[P]));return g}function yn(t,g,P,L,H){if(!H){var se=nn(g);P.top+=se,P.bottom+=se}if(L=="line")return P;L||(L="local");var xe=Fi(g);if(L=="local"?xe+=Hs(t.display):xe-=t.display.viewOffset,L=="page"||L=="window"){var Oe=t.display.lineSpace.getBoundingClientRect();xe+=Oe.top+(L=="window"?0:On());var Ie=Oe.left+(L=="window"?0:gn());P.left+=Ie,P.right+=Ie}return P.top+=xe,P.bottom+=xe,P}function Ln(t,g,P){if(P=="div")return g;var L=g.left,H=g.top;if(P=="page")L-=gn(),H-=On();else if(P=="local"||!P){var se=t.display.sizer.getBoundingClientRect();L+=se.left,H+=se.top}var xe=t.display.lineSpace.getBoundingClientRect();return{left:L-xe.left,top:H-xe.top}}function Gn(t,g,P,L,H){return L||(L=Rn(t.doc,g.line)),yn(t,L,nt(t,L,g.ch,H),P)}function an(t,g,P,L,H,se){L=L||Rn(t.doc,g.line),H||(H=ot(t,L));function xe(on,vn){var In=ht(t,H,on,vn?"right":"left",se);return vn?In.left=In.right:In.right=In.left,yn(t,L,In,P)}var Oe=wt(L,t.doc.direction),Ie=g.ch,Ke=g.sticky;if(Ie>=L.text.length?(Ie=L.text.length,Ke="before"):Ie<=0&&(Ie=0,Ke="after"),!Oe)return xe(Ke=="before"?Ie-1:Ie,Ke=="before");function vt(on,vn,In){var zn=Oe[vn],ar=zn.level==1;return xe(In?on-1:on,ar!=In)}var Ct=De(Oe,Ie,Ke),Ht=ue,Ft=vt(Ie,Ct,Ke=="before");return Ht!=null&&(Ft.other=vt(Ie,Ht,Ke!="before")),Ft}function hn(t,g){var P=0;g=G(t.doc,g),t.options.lineWrapping||(P=Qn(t.display)*g.ch);var L=Rn(t.doc,g.line),H=Fi(L)+Hs(t.display);return{left:P,right:P,top:H,bottom:H+L.height}}function fn(t,g,P,L,H){var se=Re(t,g,P);return se.xRel=H,L&&(se.outside=L),se}function Cn(t,g,P){var L=t.doc;if(P+=t.display.viewOffset,P<0)return fn(L.first,0,null,-1,-1);var H=Ea(L,P),se=L.first+L.size-1;if(H>se)return fn(L.first+L.size-1,Rn(L,se).text.length,null,1,1);g<0&&(g=0);for(var xe=Rn(L,H);;){var Oe=Dr(t,xe,H,g,P),Ie=eo(xe,Oe.ch+(Oe.xRel>0||Oe.outside>0?1:0));if(!Ie)return Oe;var Ke=Ie.find(1);if(Ke.line==H)return Ke;xe=Rn(L,H=Ke.line)}}function er(t,g,P,L){L-=nn(g);var H=g.text.length,se=ce(function(xe){return ht(t,P,xe-1).bottom<=L},H,0);return H=ce(function(xe){return ht(t,P,xe).top>L},se,H),{begin:se,end:H}}function cn(t,g,P,L){P||(P=ot(t,g));var H=yn(t,g,ht(t,P,L),"line").top;return er(t,g,P,H)}function Un(t,g,P,L){return t.bottom<=P?!1:t.top>P?!0:(L?t.left:t.right)>g}function Dr(t,g,P,L,H){H-=Fi(g);var se=ot(t,g),xe=nn(g),Oe=0,Ie=g.text.length,Ke=!0,vt=wt(g,t.doc.direction);if(vt){var Ct=(t.options.lineWrapping?Tr:cr)(t,g,P,se,vt,L,H);Ke=Ct.level!=1,Oe=Ke?Ct.from:Ct.to-1,Ie=Ke?Ct.to:Ct.from-1}var Ht=null,Ft=null,on=ce(function(Hr){var Ir=ht(t,se,Hr);return Ir.top+=xe,Ir.bottom+=xe,Un(Ir,L,H,!1)?(Ir.top<=H&&Ir.left<=L&&(Ht=Hr,Ft=Ir),!0):!1},Oe,Ie),vn,In,zn=!1;if(Ft){var ar=L-Ft.left<Ft.right-L,Vn=ar==Ke;on=Ht+(Vn?0:1),In=Vn?"after":"before",vn=ar?Ft.left:Ft.right}else{!Ke&&(on==Ie||on==Oe)&&on++,In=on==0?"after":on==g.text.length?"before":ht(t,se,on-(Ke?1:0)).bottom+xe<=H==Ke?"after":"before";var fr=an(t,Re(P,on,In),"line",g,se);vn=fr.left,zn=H<fr.top?-1:H>=fr.bottom?1:0}return on=W(g.text,on,1),fn(P,on,In,zn,L-vn)}function cr(t,g,P,L,H,se,xe){var Oe=ce(function(Ct){var Ht=H[Ct],Ft=Ht.level!=1;return Un(an(t,Re(P,Ft?Ht.to:Ht.from,Ft?"before":"after"),"line",g,L),se,xe,!0)},0,H.length-1),Ie=H[Oe];if(Oe>0){var Ke=Ie.level!=1,vt=an(t,Re(P,Ke?Ie.from:Ie.to,Ke?"after":"before"),"line",g,L);Un(vt,se,xe,!0)&&vt.top>xe&&(Ie=H[Oe-1])}return Ie}function Tr(t,g,P,L,H,se,xe){var Oe=er(t,g,L,xe),Ie=Oe.begin,Ke=Oe.end;/\s/.test(g.text.charAt(Ke-1))&&Ke--;for(var vt=null,Ct=null,Ht=0;Ht<H.length;Ht++){var Ft=H[Ht];if(Ft.from>=Ke||Ft.to<=Ie)continue;var on=Ft.level!=1,vn=ht(t,L,on?Math.min(Ke,Ft.to)-1:Math.max(Ie,Ft.from)).right,In=vn<se?se-vn+1e9:vn-se;(!vt||Ct>In)&&(vt=Ft,Ct=In)}return vt||(vt=H[H.length-1]),vt.from<Ie&&(vt={from:Ie,to:vt.to,level:vt.level}),vt.to>Ke&&(vt={from:vt.from,to:Ke,level:vt.level}),vt}var or;function kr(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(or==null){or=_("pre",null,"CodeMirror-line-like");for(var g=0;g<49;++g)or.appendChild(document.createTextNode("x")),or.appendChild(_("br"));or.appendChild(document.createTextNode("x"))}o(t.measure,or);var P=or.offsetHeight/50;return P>3&&(t.cachedTextHeight=P),c(t.measure),P||1}function Qn(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var g=_("span","xxxxxxxxxx"),P=_("pre",[g],"CodeMirror-line-like");o(t.measure,P);var L=g.getBoundingClientRect(),H=(L.right-L.left)/10;return H>2&&(t.cachedCharWidth=H),H||10}function Ur(t){for(var g=t.display,P={},L={},H=g.gutters.clientLeft,se=g.gutters.firstChild,xe=0;se;se=se.nextSibling,++xe){var Oe=t.display.gutterSpecs[xe].className;P[Oe]=se.offsetLeft+se.clientLeft+H,L[Oe]=se.clientWidth}return{fixedPos:$r(g),gutterTotalWidth:g.gutters.offsetWidth,gutterLeft:P,gutterWidth:L,wrapperWidth:g.wrapper.clientWidth}}function $r(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Gr(t){var g=kr(t.display),P=t.options.lineWrapping,L=P&&Math.max(5,t.display.scroller.clientWidth/Qn(t.display)-3);return function(H){if(Di(t.doc,H))return 0;var se=0;if(H.widgets)for(var xe=0;xe<H.widgets.length;xe++)H.widgets[xe].height&&(se+=H.widgets[xe].height);return P?se+(Math.ceil(H.text.length/L)||1)*g:se+g}}function mr(t){var g=t.doc,P=Gr(t);g.iter(function(L){var H=P(L);H!=L.height&&pa(L,H)})}function Tn(t,g,P,L){var H=t.display;if(!P&&At(g).getAttribute("cm-not-content")=="true")return null;var se,xe,Oe=H.lineSpace.getBoundingClientRect();try{se=g.clientX-Oe.left,xe=g.clientY-Oe.top}catch(Ct){return null}var Ie=Cn(t,se,xe),Ke;if(L&&Ie.xRel>0&&(Ke=Rn(t.doc,Ie.line).text).length==Ie.ch){var vt=z(Ke,Ke.length,t.options.tabSize)-Ke.length;Ie=Re(Ie.line,Math.max(0,Math.round((se-Ge(t.display).left)/Qn(t.display))-vt))}return Ie}function tr(t,g){if(g>=t.display.viewTo)return null;if(g-=t.display.viewFrom,g<0)return null;for(var P=t.display.view,L=0;L<P.length;L++)if(g-=P[L].size,g<0)return L}function Mr(t,g,P,L){g==null&&(g=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>g)&&(H.updateLineNumbers=g),t.curOp.viewChanged=!0,g>=H.viewTo)ma&&wa(t.doc,g)<H.viewTo&&Zn(t);else if(P<=H.viewFrom)ma&&Ro(t.doc,P+L)>H.viewFrom?Zn(t):(H.viewFrom+=L,H.viewTo+=L);else if(g<=H.viewFrom&&P>=H.viewTo)Zn(t);else if(g<=H.viewFrom){var se=nr(t,P,P+L,1);se?(H.view=H.view.slice(se.index),H.viewFrom=se.lineN,H.viewTo+=L):Zn(t)}else if(P>=H.viewTo){var xe=nr(t,g,g,-1);xe?(H.view=H.view.slice(0,xe.index),H.viewTo=xe.lineN):Zn(t)}else{var Oe=nr(t,g,g,-1),Ie=nr(t,P,P+L,1);Oe&&Ie?(H.view=H.view.slice(0,Oe.index).concat(Fa(t,Oe.lineN,Ie.lineN)).concat(H.view.slice(Ie.index)),H.viewTo+=L):Zn(t)}var Ke=H.externalMeasured;Ke&&(P<Ke.lineN?Ke.lineN+=L:g<Ke.lineN+Ke.size&&(H.externalMeasured=null))}function Fn(t,g,P){t.curOp.viewChanged=!0;var L=t.display,H=t.display.externalMeasured;if(H&&g>=H.lineN&&g<H.lineN+H.size&&(L.externalMeasured=null),g<L.viewFrom||g>=L.viewTo)return;var se=L.view[tr(t,g)];if(se.node==null)return;var xe=se.changes||(se.changes=[]);Q(xe,P)==-1&&xe.push(P)}function Zn(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function nr(t,g,P,L){var H=tr(t,g),se,xe=t.display.view;if(!ma||P==t.doc.first+t.doc.size)return{index:H,lineN:P};for(var Oe=t.display.viewFrom,Ie=0;Ie<H;Ie++)Oe+=xe[Ie].size;if(Oe!=g){if(L>0){if(H==xe.length-1)return null;se=Oe+xe[H].size-g,H++}else se=Oe-g;g+=se,P+=se}for(;wa(t.doc,P)!=P;){if(H==(L<0?0:xe.length-1))return null;P+=L*xe[H-(L<0?1:0)].size,H+=L}return{index:H,lineN:P}}function Yn(t,g,P){var L=t.display,H=L.view;H.length==0||g>=L.viewTo||P<=L.viewFrom?(L.view=Fa(t,g,P),L.viewFrom=g):(L.viewFrom>g?L.view=Fa(t,g,L.viewFrom).concat(L.view):L.viewFrom<g&&(L.view=L.view.slice(tr(t,g))),L.viewFrom=g,L.viewTo<P?L.view=L.view.concat(Fa(t,L.viewTo,P)):L.viewTo>P&&(L.view=L.view.slice(0,tr(t,P)))),L.viewTo=P}function Kn(t){for(var g=t.display.view,P=0,L=0;L<g.length;L++){var H=g[L];!H.hidden&&(!H.node||H.changes)&&++P}return P}function An(t){t.display.input.showSelection(t.display.input.prepareSelection())}function sn(t,g){g===void 0&&(g=!0);for(var P=t.doc,L={},H=L.cursors=document.createDocumentFragment(),se=L.selection=document.createDocumentFragment(),xe=0;xe<P.sel.ranges.length;xe++){if(!g&&xe==P.sel.primIndex)continue;var Oe=P.sel.ranges[xe];if(Oe.from().line>=t.display.viewTo||Oe.to().line<t.display.viewFrom)continue;var Ie=Oe.empty();(Ie||t.options.showCursorWhenSelecting)&&Wn(t,Oe.head,H),Ie||xn(t,Oe,se)}return L}function Wn(t,g,P){var L=an(t,g,"div",null,null,!t.options.singleCursorHeightPerLine),H=P.appendChild(_("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 se=P.appendChild(_("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));se.style.display="",se.style.left=L.other.left+"px",se.style.top=L.other.top+"px",se.style.height=(L.other.bottom-L.other.top)*.85+"px"}}function Xn(t,g){return t.top-g.top||t.left-g.left}function xn(t,g,P){var L=t.display,H=t.doc,se=document.createDocumentFragment(),xe=Ge(t.display),Oe=xe.left,Ie=Math.max(L.sizerWidth,Je(t)-L.sizer.offsetLeft)-xe.right,Ke=H.direction=="ltr";function vt(Vn,fr,Hr,Ir){fr<0&&(fr=0),fr=Math.round(fr),Ir=Math.round(Ir),se.appendChild(_("div",null,"CodeMirror-selected","position: absolute; left: "+Vn+`px;
top: `+fr+"px; width: "+(Hr==null?Ie-Vn:Hr)+`px;
height: `+(Ir-fr)+"px"))}function Ct(Vn,fr,Hr){var Ir=Rn(H,Vn),fa=Ir.text.length,hi,so;function Ii(Gi,Co){return Gn(t,Re(Vn,Gi),"div",Ir,Co)}function qo(Gi,Co,mo){var Nn=cn(t,Ir,null,Gi),wi=Co=="ltr"==(mo=="after")?"left":"right",xi=mo=="after"?Nn.begin:Nn.end-(/\s/.test(Ir.text.charAt(Nn.end-1))?2:1);return Ii(xi,wi)[wi]}var Eo=wt(Ir,H.direction);return ne(Eo,fr||0,Hr==null?fa:Hr,function(Gi,Co,mo,Nn){var wi=mo=="ltr",xi=Ii(Gi,wi?"left":"right"),_i=Ii(Co-1,wi?"right":"left"),ml=fr==null&&Gi==0,Oa=Hr==null&&Co==fa,ga=Nn==0,os=!Eo||Nn==Eo.length-1;if(_i.top-xi.top<=3){var lo=(Ke?ml:Oa)&&ga,vl=(Ke?Oa:ml)&&os,Ns=lo?Oe:(wi?xi:_i).left,Ds=vl?Ie:(wi?_i:xi).right;vt(Ns,xi.top,Ds-Ns,xi.bottom)}else{var sl,Oo,ll,Au;wi?(sl=Ke&&ml&&ga?Oe:xi.left,Oo=Ke?Ie:qo(Gi,mo,"before"),ll=Ke?Oe:qo(Co,mo,"after"),Au=Ke&&Oa&&os?Ie:_i.right):(sl=Ke?qo(Gi,mo,"before"):Oe,Oo=!Ke&&ml&&ga?Ie:xi.right,ll=!Ke&&Oa&&os?Oe:_i.left,Au=Ke?qo(Co,mo,"after"):Ie),vt(sl,xi.top,Oo-sl,xi.bottom),xi.bottom<_i.top&&vt(Oe,xi.bottom,null,_i.top),vt(ll,_i.top,Au-ll,_i.bottom)}(!hi||Xn(xi,hi)<0)&&(hi=xi),Xn(_i,hi)<0&&(hi=_i),(!so||Xn(xi,so)<0)&&(so=xi),Xn(_i,so)<0&&(so=_i)}),{start:hi,end:so}}var Ht=g.from(),Ft=g.to();if(Ht.line==Ft.line)Ct(Ht.line,Ht.ch,Ft.ch);else{var on=Rn(H,Ht.line),vn=Rn(H,Ft.line),In=Ga(on)==Ga(vn),zn=Ct(Ht.line,Ht.ch,In?on.text.length+1:null).end,ar=Ct(Ft.line,In?0:null,Ft.ch).start;In&&(zn.top<ar.top-2?(vt(zn.right,zn.top,null,zn.bottom),vt(Oe,ar.top,ar.left,ar.bottom)):vt(zn.right,zn.top,ar.left-zn.right,zn.bottom)),zn.bottom<ar.top&&vt(Oe,zn.bottom,null,ar.top)}P.appendChild(se)}function Ar(t){if(!t.state.focused)return;var g=t.display;clearInterval(g.blinker);var P=!0;g.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?g.blinker=setInterval(function(){t.hasFocus()||ra(t),g.cursorDiv.style.visibility=(P=!P)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(g.cursorDiv.style.visibility="hidden")}function Wr(t){t.state.focused||(t.display.input.focus(),Da(t))}function Va(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,ra(t))},100)}function Da(t,g){if(t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),t.options.readOnly=="nocursor")return;t.state.focused||(ct(t,"focus",t,g),t.state.focused=!0,U(t.display.wrapper,"CodeMirror-focused"),!t.curOp&&t.display.selForContextMenu!=t.doc.sel&&(t.display.input.reset(),l&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),Ar(t)}function ra(t,g){if(t.state.delayingBlurEvent)return;t.state.focused&&(ct(t,"blur",t,g),t.state.focused=!1,m(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150)}function gi(t){for(var g=t.display,P=g.lineDiv.offsetTop,L=0;L<g.view.length;L++){var H=g.view[L],se=t.options.lineWrapping,xe=void 0,Oe=0;if(H.hidden)continue;if(b&&f<8){var Ie=H.node.offsetTop+H.node.offsetHeight;xe=Ie-P,P=Ie}else{var Ke=H.node.getBoundingClientRect();xe=Ke.bottom-Ke.top,!se&&H.text.firstChild&&(Oe=H.text.firstChild.getBoundingClientRect().right-Ke.left-1)}var vt=H.line.height-xe;if((vt>.005||vt<-.005)&&(pa(H.line,xe),ai(H.line),H.rest))for(var Ct=0;Ct<H.rest.length;Ct++)ai(H.rest[Ct]);if(Oe>t.display.sizerWidth){var Ht=Math.ceil(Oe/Qn(t.display));Ht>t.display.maxLineLength&&(t.display.maxLineLength=Ht,t.display.maxLine=H.line,t.display.maxLineChanged=!0)}}}function ai(t){if(t.widgets)for(var g=0;g<t.widgets.length;++g){var P=t.widgets[g],L=P.node.parentNode;L&&(P.height=L.offsetHeight)}}function Qa(t,g,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,se=Ea(g,L),xe=Ea(g,H);if(P&&P.ensure){var Oe=P.ensure.from.line,Ie=P.ensure.to.line;Oe<se?(se=Oe,xe=Ea(g,Fi(Rn(g,Oe))+t.wrapper.clientHeight)):Math.min(Ie,g.lastLine())>=xe&&(se=Ea(g,Fi(Rn(g,Ie))-t.wrapper.clientHeight),xe=Ie)}return{from:se,to:Math.max(xe,se+1)}}function no(t,g){if(lt(t,"scrollCursorIntoView"))return;var P=t.display,L=P.sizer.getBoundingClientRect(),H=null;if(g.top+L.top<0?H=!0:g.bottom+L.top>(window.innerHeight||document.documentElement.clientHeight)&&(H=!1),H!=null&&!a){var se=_("div","\u200B",null,`position: absolute;
top: `+(g.top-P.viewOffset-Hs(t.display))+`px;
height: `+(g.bottom-g.top+Ye(t)+P.barHeight)+`px;
left: `+g.left+"px; width: "+Math.max(2,g.right-g.left)+"px;");t.display.lineSpace.appendChild(se),se.scrollIntoView(H),t.display.lineSpace.removeChild(se)}}function ro(t,g,P,L){L==null&&(L=0);var H;!t.options.lineWrapping&&g==P&&(g=g.ch?Re(g.line,g.sticky=="before"?g.ch-1:g.ch,"after"):g,P=g.sticky=="before"?Re(g.line,g.ch+1,"before"):g);for(var se=0;se<5;se++){var xe=!1,Oe=an(t,g),Ie=!P||P==g?Oe:an(t,P);H={left:Math.min(Oe.left,Ie.left),top:Math.min(Oe.top,Ie.top)-L,right:Math.max(Oe.left,Ie.left),bottom:Math.max(Oe.bottom,Ie.bottom)+L};var Ke=Lo(t,H),vt=t.doc.scrollTop,Ct=t.doc.scrollLeft;if(Ke.scrollTop!=null&&(ho(t,Ke.scrollTop),Math.abs(t.doc.scrollTop-vt)>1&&(xe=!0)),Ke.scrollLeft!=null&&(Pi(t,Ke.scrollLeft),Math.abs(t.doc.scrollLeft-Ct)>1&&(xe=!0)),!xe)break}return H}function Ri(t,g){var P=Lo(t,g);P.scrollTop!=null&&ho(t,P.scrollTop),P.scrollLeft!=null&&Pi(t,P.scrollLeft)}function Lo(t,g){var P=t.display,L=kr(t.display);g.top<0&&(g.top=0);var H=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:P.scroller.scrollTop,se=Te(t),xe={};g.bottom-g.top>se&&(g.bottom=g.top+se);var Oe=t.doc.height+ut(P),Ie=g.top<L,Ke=g.bottom>Oe-L;if(g.top<H)xe.scrollTop=Ie?0:g.top;else if(g.bottom>H+se){var vt=Math.min(g.top,(Ke?Oe:g.bottom)-se);vt!=H&&(xe.scrollTop=vt)}var Ct=t.options.fixedGutter?0:P.gutters.offsetWidth,Ht=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:P.scroller.scrollLeft-Ct,Ft=Je(t)-P.gutters.offsetWidth,on=g.right-g.left>Ft;return on&&(g.right=g.left+Ft),g.left<10?xe.scrollLeft=0:g.left<Ht?xe.scrollLeft=Math.max(0,g.left+Ct-(on?0:10)):g.right>Ft+Ht-3&&(xe.scrollLeft=g.right+(on?0:10)-Ft),xe}function Po(t,g){if(g==null)return;So(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+g}function ao(t){So(t);var g=t.getCursor();t.curOp.scrollToPos={from:g,to:g,margin:t.options.cursorScrollMargin}}function Li(t,g,P){(g!=null||P!=null)&&So(t),g!=null&&(t.curOp.scrollLeft=g),P!=null&&(t.curOp.scrollTop=P)}function Ni(t,g){So(t),t.curOp.scrollToPos=g}function So(t){var g=t.curOp.scrollToPos;if(g){t.curOp.scrollToPos=null;var P=hn(t,g.from),L=hn(t,g.to);co(t,P,L,g.margin)}}function co(t,g,P,L){var H=Lo(t,{left:Math.min(g.left,P.left),top:Math.min(g.top,P.top)-L,right:Math.max(g.right,P.right),bottom:Math.max(g.bottom,P.bottom)+L});Li(t,H.scrollLeft,H.scrollTop)}function ho(t,g){if(Math.abs(t.doc.scrollTop-g)<2)return;M||Ji(t,{top:g}),Ki(t,g,!0),M&&Ji(t),Yi(t,100)}function Ki(t,g,P){if(g=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,g)),t.display.scroller.scrollTop==g&&!P)return;t.doc.scrollTop=g,t.display.scrollbars.setScrollTop(g),t.display.scroller.scrollTop!=g&&(t.display.scroller.scrollTop=g)}function Pi(t,g,P,L){if(g=Math.max(0,Math.min(g,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(P?g==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-g)<2)&&!L)return;t.doc.scrollLeft=g,Lr(t),t.display.scroller.scrollLeft!=g&&(t.display.scroller.scrollLeft=g),t.display.scrollbars.setScrollLeft(g)}function Vi(t){var g=t.display,P=g.gutters.offsetWidth,L=Math.round(t.doc.height+ut(t.display));return{clientHeight:g.scroller.clientHeight,viewHeight:g.wrapper.clientHeight,scrollWidth:g.scroller.scrollWidth,clientWidth:g.scroller.clientWidth,viewWidth:g.wrapper.clientWidth,barLeft:t.options.fixedGutter?P:0,docHeight:L,scrollHeight:L+Ye(t)+g.barHeight,nativeBarWidth:g.nativeBarWidth,gutterWidth:P}}var Wi=function(t,g,P){this.cm=P;var L=this.vert=_("div",[_("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),H=this.horiz=_("div",[_("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");L.tabIndex=H.tabIndex=-1,t(L),t(H),Xe(L,"scroll",function(){L.clientHeight&&g(L.scrollTop,"vertical")}),Xe(H,"scroll",function(){H.clientWidth&&g(H.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,b&&f<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Wi.prototype.update=function(t){var g=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=g?L+"px":"0";var H=t.viewHeight-(g?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(g){this.horiz.style.display="block",this.horiz.style.right=P?L+"px":"0",this.horiz.style.left=t.barLeft+"px";var se=t.viewWidth-t.barLeft-(P?L:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+se)+"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:g?L:0}},Wi.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Wi.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Wi.prototype.zeroWidthHack=function(){var t=h&&!u?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new j,this.disableVert=new j},Wi.prototype.enableZeroWidthBar=function(t,g,P){t.style.pointerEvents="auto";function L(){var H=t.getBoundingClientRect(),se=P=="vert"?document.elementFromPoint(H.right-1,(H.top+H.bottom)/2):document.elementFromPoint((H.right+H.left)/2,H.bottom-1);se!=t?t.style.pointerEvents="none":g.set(1e3,L)}g.set(1e3,L)},Wi.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var vo=function(){};vo.prototype.update=function(){return{bottom:0,right:0}},vo.prototype.setScrollLeft=function(){},vo.prototype.setScrollTop=function(){},vo.prototype.clear=function(){};function ji(t,g){g||(g=Vi(t));var P=t.display.barWidth,L=t.display.barHeight;go(t,g);for(var H=0;H<4&&P!=t.display.barWidth||L!=t.display.barHeight;H++)P!=t.display.barWidth&&t.options.lineWrapping&&gi(t),go(t,Vi(t)),P=t.display.barWidth,L=t.display.barHeight}function go(t,g){var P=t.display,L=P.scrollbars.update(g);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=g.gutterWidth+"px"):P.gutterFiller.style.display=""}var Xa={native:Wi,null:vo};function io(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&m(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Xa[t.options.scrollbarStyle](function(g){t.display.wrapper.insertBefore(g,t.display.scrollbarFiller),Xe(g,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),g.setAttribute("cm-not-content","true")},function(g,P){P=="horizontal"?Pi(t,g):ho(t,g)},t),t.display.scrollbars.addClass&&U(t.display.wrapper,t.display.scrollbars.addClass)}var Uo=0;function zi(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:++Uo},sa(t.curOp)}function Ti(t){var g=t.curOp;g&&br(g,function(P){for(var L=0;L<P.ops.length;L++)P.ops[L].cm.curOp=null;fo(P)})}function fo(t){for(var g=t.ops,P=0;P<g.length;P++)es(g[P]);for(var L=0;L<g.length;L++)ts(g[L]);for(var H=0;H<g.length;H++)Yo(g[H]);for(var se=0;se<g.length;se++)Xi(g[se]);for(var xe=0;xe<g.length;xe++)ns(g[xe])}function es(t){var g=t.cm,P=g.display;Jo(g),t.updateMaxLine&&uo(g),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&&g.options.lineWrapping,t.update=t.mustUpdate&&new Ui(g,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function ts(t){t.updatedDisplay=t.mustUpdate&&Bi(t.cm,t.update)}function Yo(t){var g=t.cm,P=g.display;t.updatedDisplay&&gi(g),t.barMeasure=Vi(g),P.maxLineChanged&&!g.options.lineWrapping&&(t.adjustWidthTo=nt(g,P.maxLine,P.maxLine.text.length).left+3,g.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(P.scroller.clientWidth,P.sizer.offsetLeft+t.adjustWidthTo+Ye(g)+g.display.barWidth),t.maxScrollLeft=Math.max(0,P.sizer.offsetLeft+t.adjustWidthTo-Je(g))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=P.input.prepareSelection())}function Xi(t){var g=t.cm;t.adjustWidthTo!=null&&(g.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<g.doc.scrollLeft&&Pi(g,Math.min(g.display.scroller.scrollLeft,t.maxScrollLeft),!0),g.display.maxLineChanged=!1);var P=t.focus&&t.focus==R();t.preparedSelection&&g.display.input.showSelection(t.preparedSelection,P),(t.updatedDisplay||t.startHeight!=g.doc.height)&&ji(g,t.barMeasure),t.updatedDisplay&&da(g,t.barMeasure),t.selectionChanged&&Ar(g),g.state.focused&&t.updateInput&&g.display.input.reset(t.typing),P&&Wr(t.cm)}function ns(t){var g=t.cm,P=g.display,L=g.doc;if(t.updatedDisplay&&Dn(g,t.update),P.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(P.wheelStartX=P.wheelStartY=null),t.scrollTop!=null&&Ki(g,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&Pi(g,t.scrollLeft,!0,!0),t.scrollToPos){var H=ro(g,G(L,t.scrollToPos.from),G(L,t.scrollToPos.to),t.scrollToPos.margin);no(g,H)}var se=t.maybeHiddenMarkers,xe=t.maybeUnhiddenMarkers;if(se)for(var Oe=0;Oe<se.length;++Oe)se[Oe].lines.length||ct(se[Oe],"hide");if(xe)for(var Ie=0;Ie<xe.length;++Ie)xe[Ie].lines.length&&ct(xe[Ie],"unhide");P.wrapper.offsetHeight&&(L.scrollTop=g.display.scroller.scrollTop),t.changeObjs&&ct(g,"changes",g,t.changeObjs),t.update&&t.update.finish()}function yi(t,g){if(t.curOp)return g();zi(t);try{return g()}finally{Ti(t)}}function Pa(t,g){return function(){if(t.curOp)return g.apply(t,arguments);zi(t);try{return g.apply(t,arguments)}finally{Ti(t)}}}function ci(t){return function(){if(this.curOp)return t.apply(this,arguments);zi(this);try{return t.apply(this,arguments)}finally{Ti(this)}}}function Na(t){return function(){var g=this.cm;if(!g||g.curOp)return t.apply(this,arguments);zi(g);try{return t.apply(this,arguments)}finally{Ti(g)}}}function Yi(t,g){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(g,k(yo,t))}function yo(t){var g=t.doc;if(g.highlightFrontier>=t.display.viewTo)return;var P=+new Date+t.options.workTime,L=Rt(t,g.highlightFrontier),H=[];g.iter(L.line,Math.min(g.first+g.size,t.display.viewTo+500),function(se){if(L.line>=t.display.viewFrom){var xe=se.styles,Oe=se.text.length>t.options.maxHighlightLength?Bn(g.mode,L.state):null,Ie=ft(t,se,L,!0);Oe&&(L.state=Oe),se.styles=Ie.styles;var Ke=se.styleClasses,vt=Ie.classes;vt?se.styleClasses=vt:Ke&&(se.styleClasses=null);for(var Ct=!xe||xe.length!=se.styles.length||Ke!=vt&&(!Ke||!vt||Ke.bgClass!=vt.bgClass||Ke.textClass!=vt.textClass),Ht=0;!Ct&&Ht<xe.length;++Ht)Ct=xe[Ht]!=se.styles[Ht];Ct&&H.push(L.line),se.stateAfter=L.save(),L.nextLine()}else se.text.length<=t.options.maxHighlightLength&&mn(t,se.text,L),se.stateAfter=L.line%5==0?L.save():null,L.nextLine();if(+new Date>P)return Yi(t,t.options.workDelay),!0}),g.highlightFrontier=L.line,g.modeFrontier=Math.max(g.modeFrontier,L.line),H.length&&yi(t,function(){for(var se=0;se<H.length;se++)Fn(t,H[se],"text")})}var Ui=function(t,g,P){var L=t.display;this.viewport=g,this.visible=Qa(L,t.doc,g),this.editorIsHidden=!L.wrapper.offsetWidth,this.wrapperHeight=L.wrapper.clientHeight,this.wrapperWidth=L.wrapper.clientWidth,this.oldDisplayWidth=Je(t),this.force=P,this.dims=Ur(t),this.events=[]};Ui.prototype.signal=function(t,g){Ze(t,g)&&this.events.push(arguments)},Ui.prototype.finish=function(){for(var t=0;t<this.events.length;t++)ct.apply(null,this.events[t])};function Jo(t){var g=t.display;!g.scrollbarsClipped&&g.scroller.offsetWidth&&(g.nativeBarWidth=g.scroller.offsetWidth-g.scroller.clientWidth,g.heightForcer.style.height=Ye(t)+"px",g.sizer.style.marginBottom=-g.nativeBarWidth+"px",g.sizer.style.borderRightWidth=Ye(t)+"px",g.scrollbarsClipped=!0)}function ko(t){if(t.hasFocus())return null;var g=R();if(!g||!O(t.display.lineDiv,g))return null;var P={activeElt:g};if(window.getSelection){var L=window.getSelection();L.anchorNode&&L.extend&&O(t.display.lineDiv,L.anchorNode)&&(P.anchorNode=L.anchorNode,P.anchorOffset=L.anchorOffset,P.focusNode=L.focusNode,P.focusOffset=L.focusOffset)}return P}function Zo(t){if(!t||!t.activeElt||t.activeElt==R())return;if(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&O(document.body,t.anchorNode)&&O(document.body,t.focusNode)){var g=window.getSelection(),P=document.createRange();P.setEnd(t.anchorNode,t.anchorOffset),P.collapse(!1),g.removeAllRanges(),g.addRange(P),g.extend(t.focusNode,t.focusOffset)}}function Bi(t,g){var P=t.display,L=t.doc;if(g.editorIsHidden)return Zn(t),!1;if(!g.force&&g.visible.from>=P.viewFrom&&g.visible.to<=P.viewTo&&(P.updateLineNumbers==null||P.updateLineNumbers>=P.viewTo)&&P.renderedView==P.view&&Kn(t)==0)return!1;di(t)&&(Zn(t),g.dims=Ur(t));var H=L.first+L.size,se=Math.max(g.visible.from-t.options.viewportMargin,L.first),xe=Math.min(H,g.visible.to+t.options.viewportMargin);P.viewFrom<se&&se-P.viewFrom<20&&(se=Math.max(L.first,P.viewFrom)),P.viewTo>xe&&P.viewTo-xe<20&&(xe=Math.min(H,P.viewTo)),ma&&(se=wa(t.doc,se),xe=Ro(t.doc,xe));var Oe=se!=P.viewFrom||xe!=P.viewTo||P.lastWrapHeight!=g.wrapperHeight||P.lastWrapWidth!=g.wrapperWidth;Yn(t,se,xe),P.viewOffset=Fi(Rn(t.doc,P.viewFrom)),t.display.mover.style.top=P.viewOffset+"px";var Ie=Kn(t);if(!Oe&&Ie==0&&!g.force&&P.renderedView==P.view&&(P.updateLineNumbers==null||P.updateLineNumbers>=P.viewTo))return!1;var Ke=ko(t);return Ie>4&&(P.lineDiv.style.display="none"),vs(t,P.updateLineNumbers,g.dims),Ie>4&&(P.lineDiv.style.display=""),P.renderedView=P.view,Zo(Ke),c(P.cursorDiv),c(P.selectionDiv),P.gutters.style.height=P.sizer.style.minHeight=0,Oe&&(P.lastWrapHeight=g.wrapperHeight,P.lastWrapWidth=g.wrapperWidth,Yi(t,400)),P.updateLineNumbers=null,!0}function Dn(t,g){for(var P=g.viewport,L=!0;;L=!1){if(!L||!t.options.lineWrapping||g.oldDisplayWidth==Je(t)){if(P&&P.top!=null&&(P={top:Math.min(t.doc.height+ut(t.display)-Te(t),P.top)}),g.visible=Qa(t.display,t.doc,P),g.visible.from>=t.display.viewFrom&&g.visible.to<=t.display.viewTo)break}else L&&(g.visible=Qa(t.display,t.doc,P));if(!Bi(t,g))break;gi(t);var H=Vi(t);An(t),ji(t,H),da(t,H),g.force=!1}g.signal(t,"update",t),(t.display.viewFrom!=t.display.reportedViewFrom||t.display.viewTo!=t.display.reportedViewTo)&&(g.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function Ji(t,g){var P=new Ui(t,g);if(Bi(t,P)){gi(t),Dn(t,P);var L=Vi(t);An(t),ji(t,L),da(t,L),P.finish()}}function vs(t,g,P){var L=t.display,H=t.options.lineNumbers,se=L.lineDiv,xe=se.firstChild;function Oe(on){var vn=on.nextSibling;return l&&h&&t.display.currentWheelTarget==on?on.style.display="none":on.parentNode.removeChild(on),vn}for(var Ie=L.view,Ke=L.viewFrom,vt=0;vt<Ie.length;vt++){var Ct=Ie[vt];if(!Ct.hidden)if(!Ct.node||Ct.node.parentNode!=se){var Ht=$s(t,Ct,Ke,P);se.insertBefore(Ht,xe)}else{for(;xe!=Ct.node;)xe=Oe(xe);var Ft=H&&g!=null&&g<=Ke&&Ct.lineNumber;Ct.changes&&(Q(Ct.changes,"gutter")>-1&&(Ft=!1),Mo(t,Ct,Ke,P)),Ft&&(c(Ct.lineNumber),Ct.lineNumber.appendChild(document.createTextNode(fi(t.options,Ke)))),xe=Ct.node.nextSibling}Ke+=Ct.size}for(;xe;)xe=Oe(xe)}function rs(t){var g=t.gutters.offsetWidth;t.sizer.style.marginLeft=g+"px"}function da(t,g){t.display.sizer.style.minHeight=g.docHeight+"px",t.display.heightForcer.style.top=g.docHeight+"px",t.display.gutters.style.height=g.docHeight+t.display.barHeight+Ye(t)+"px"}function Lr(t){var g=t.display,P=g.view;if(!g.alignWidgets&&(!g.gutters.firstChild||!t.options.fixedGutter))return;for(var L=$r(g)-g.scroller.scrollLeft+t.doc.scrollLeft,H=g.gutters.offsetWidth,se=L+"px",xe=0;xe<P.length;xe++)if(!P[xe].hidden){t.options.fixedGutter&&(P[xe].gutter&&(P[xe].gutter.style.left=se),P[xe].gutterBackground&&(P[xe].gutterBackground.style.left=se));var Oe=P[xe].alignable;if(Oe)for(var Ie=0;Ie<Oe.length;Ie++)Oe[Ie].style.left=se}t.options.fixedGutter&&(g.gutters.style.left=L+H+"px")}function di(t){if(!t.options.lineNumbers)return!1;var g=t.doc,P=fi(t.options,g.first+g.size-1),L=t.display;if(P.length!=L.lineNumChars){var H=L.measure.appendChild(_("div",[_("div",P)],"CodeMirror-linenumber CodeMirror-gutter-elt")),se=H.firstChild.offsetWidth,xe=H.offsetWidth-se;return L.lineGutter.style.width="",L.lineNumInnerWidth=Math.max(se,L.lineGutter.offsetWidth-xe)+1,L.lineNumWidth=L.lineNumInnerWidth+xe,L.lineNumChars=L.lineNumInnerWidth?P.length:-1,L.lineGutter.style.width=L.lineNumWidth+"px",rs(t.display),!0}return!1}function _a(t,g){for(var P=[],L=!1,H=0;H<t.length;H++){var se=t[H],xe=null;if(typeof se!="string"&&(xe=se.style,se=se.className),se=="CodeMirror-linenumbers")if(g)L=!0;else continue;P.push({className:se,style:xe})}return g&&!L&&P.push({className:"CodeMirror-linenumbers",style:null}),P}function To(t){var g=t.gutters,P=t.gutterSpecs;c(g),t.lineGutter=null;for(var L=0;L<P.length;++L){var H=P[L],se=H.className,xe=H.style,Oe=g.appendChild(_("div",null,"CodeMirror-gutter "+se));xe&&(Oe.style.cssText=xe),se=="CodeMirror-linenumbers"&&(t.lineGutter=Oe,Oe.style.width=(t.lineNumWidth||1)+"px")}g.style.display=P.length?"":"none",rs(t)}function Zi(t){To(t.display),Mr(t),Lr(t)}function bo(t,g,P,L){var H=this;this.input=P,H.scrollbarFiller=_("div",null,"CodeMirror-scrollbar-filler"),H.scrollbarFiller.setAttribute("cm-not-content","true"),H.gutterFiller=_("div",null,"CodeMirror-gutter-filler"),H.gutterFiller.setAttribute("cm-not-content","true"),H.lineDiv=D("div",null,"CodeMirror-code"),H.selectionDiv=_("div",null,null,"position: relative; z-index: 1"),H.cursorDiv=_("div",null,"CodeMirror-cursors"),H.measure=_("div",null,"CodeMirror-measure"),H.lineMeasure=_("div",null,"CodeMirror-measure"),H.lineSpace=D("div",[H.measure,H.lineMeasure,H.selectionDiv,H.cursorDiv,H.lineDiv],null,"position: relative; outline: none");var se=D("div",[H.lineSpace],"CodeMirror-lines");H.mover=_("div",[se],null,"position: relative"),H.sizer=_("div",[H.mover],"CodeMirror-sizer"),H.sizerWidth=null,H.heightForcer=_("div",null,null,"position: absolute; height: "+X+"px; width: 1px;"),H.gutters=_("div",null,"CodeMirror-gutters"),H.lineGutter=null,H.scroller=_("div",[H.sizer,H.heightForcer,H.gutters],"CodeMirror-scroll"),H.scroller.setAttribute("tabIndex","-1"),H.wrapper=_("div",[H.scrollbarFiller,H.gutterFiller,H.scroller],"CodeMirror"),b&&f<8&&(H.gutters.style.zIndex=-1,H.scroller.style.paddingRight=0),!l&&!(M&&i)&&(H.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(H.wrapper):t(H.wrapper)),H.viewFrom=H.viewTo=g.first,H.reportedViewFrom=H.reportedViewTo=g.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=_a(L.gutters,L.lineNumbers),To(H),P.init(H)}var oo=0,dn=null;b?dn=-.53:M?dn=15:n?dn=-.7:s&&(dn=-1/3);function Fo(t){var g=t.wheelDeltaX,P=t.wheelDeltaY;return g==null&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(g=t.detail),P==null&&t.detail&&t.axis==t.VERTICAL_AXIS?P=t.detail:P==null&&(P=t.wheelDelta),{x:g,y:P}}function Ss(t){var g=Fo(t);return g.x*=dn,g.y*=dn,g}function gs(t,g){var P=Fo(g),L=P.x,H=P.y,se=t.display,xe=se.scroller,Oe=xe.scrollWidth>xe.clientWidth,Ie=xe.scrollHeight>xe.clientHeight;if(!(L&&Oe||H&&Ie))return;if(H&&h&&l){e:for(var Ke=g.target,vt=se.view;Ke!=xe;Ke=Ke.parentNode)for(var Ct=0;Ct<vt.length;Ct++)if(vt[Ct].node==Ke){t.display.currentWheelTarget=Ke;break e}}if(L&&!M&&!e&&dn!=null){H&&Ie&&ho(t,Math.max(0,xe.scrollTop+H*dn)),Pi(t,Math.max(0,xe.scrollLeft+L*dn)),(!H||H&&Ie)&&Le(g),se.wheelStartX=null;return}if(H&&dn!=null){var Ht=H*dn,Ft=t.doc.scrollTop,on=Ft+se.wrapper.clientHeight;Ht<0?Ft=Math.max(0,Ft+Ht-50):on=Math.min(t.doc.height,on+Ht+50),Ji(t,{top:Ft,bottom:on})}oo<20&&(se.wheelStartX==null?(se.wheelStartX=xe.scrollLeft,se.wheelStartY=xe.scrollTop,se.wheelDX=L,se.wheelDY=H,setTimeout(function(){if(se.wheelStartX==null)return;var vn=xe.scrollLeft-se.wheelStartX,In=xe.scrollTop-se.wheelStartY,zn=In&&se.wheelDY&&In/se.wheelDY||vn&&se.wheelDX&&vn/se.wheelDX;if(se.wheelStartX=se.wheelStartY=null,!zn)return;dn=(dn*oo+zn)/(oo+1),++oo},200)):(se.wheelDX+=L,se.wheelDY+=H))}var ei=function(t,g){this.ranges=t,this.primIndex=g};ei.prototype.primary=function(){return this.ranges[this.primIndex]},ei.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var g=0;g<this.ranges.length;g++){var P=this.ranges[g],L=t.ranges[g];if(!it(P.anchor,L.anchor)||!it(P.head,L.head))return!1}return!0},ei.prototype.deepCopy=function(){for(var t=[],g=0;g<this.ranges.length;g++)t[g]=new _n(Tt(this.ranges[g].anchor),Tt(this.ranges[g].head));return new ei(t,this.primIndex)},ei.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},ei.prototype.contains=function(t,g){g||(g=t);for(var P=0;P<this.ranges.length;P++){var L=this.ranges[P];if(Qe(g,L.from())>=0&&Qe(t,L.to())<=0)return P}return-1};var _n=function(t,g){this.anchor=t,this.head=g};_n.prototype.from=function(){return rn(this.anchor,this.head)},_n.prototype.to=function(){return Vt(this.anchor,this.head)},_n.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function kt(t,g,P){var L=t&&t.options.selectionsMayTouch,H=g[P];g.sort(function(Ht,Ft){return Qe(Ht.from(),Ft.from())}),P=Q(g,H);for(var se=1;se<g.length;se++){var xe=g[se],Oe=g[se-1],Ie=Qe(Oe.to(),xe.from());if(L&&!xe.empty()?Ie>0:Ie>=0){var Ke=rn(Oe.from(),xe.from()),vt=Vt(Oe.to(),xe.to()),Ct=Oe.empty()?xe.from()==xe.head:Oe.from()==Oe.head;se<=P&&--P,g.splice(--se,2,new _n(Ct?vt:Ke,Ct?Ke:vt))}}return new ei(g,P)}function Zt(t,g){return new ei([new _n(t,g||t)],0)}function bn(t){return t.text?Re(t.from.line+t.text.length-1,me(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function Jt(t,g){if(Qe(t,g.from)<0)return t;if(Qe(t,g.to)<=0)return bn(g);var P=t.line+g.text.length-(g.to.line-g.from.line)-1,L=t.ch;return t.line==g.to.line&&(L+=bn(g).ch-g.to.ch),Re(P,L)}function qn(t,g){for(var P=[],L=0;L<t.sel.ranges.length;L++){var H=t.sel.ranges[L];P.push(new _n(Jt(H.anchor,g),Jt(H.head,g)))}return kt(t.cm,P,t.sel.primIndex)}function ir(t,g,P){return t.line==g.line?Re(P.line,t.ch-g.ch+P.ch):Re(P.line+(t.line-g.line),t.ch)}function dr(t,g,P){for(var L=[],H=Re(t.first,0),se=H,xe=0;xe<g.length;xe++){var Oe=g[xe],Ie=ir(Oe.from,H,se),Ke=ir(bn(Oe),H,se);if(H=Oe.to,se=Ke,P=="around"){var vt=t.sel.ranges[xe],Ct=Qe(vt.head,vt.anchor)<0;L[xe]=new _n(Ct?Ke:Ie,Ct?Ie:Ke)}else L[xe]=new _n(Ie,Ie)}return new ei(L,t.sel.primIndex)}function Zr(t){t.doc.mode=Gt(t.options,t.doc.modeOption),pn(t)}function pn(t){t.doc.iter(function(g){g.stateAfter&&(g.stateAfter=null),g.styles&&(g.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,Yi(t,100),t.state.modeGen++,t.curOp&&Mr(t)}function ii(t,g){return g.from.ch==0&&g.to.ch==0&&me(g.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function ki(t,g,P,L){function H(ar){return P?P[ar]:null}function se(ar,Vn,fr){Go(ar,Vn,fr,L),Qr(ar,"change",ar,g)}function xe(ar,Vn){for(var fr=[],Hr=ar;Hr<Vn;++Hr)fr.push(new Mi(Ke[Hr],H(Hr),L));return fr}var Oe=g.from,Ie=g.to,Ke=g.text,vt=Rn(t,Oe.line),Ct=Rn(t,Ie.line),Ht=me(Ke),Ft=H(Ke.length-1),on=Ie.line-Oe.line;if(g.full)t.insert(0,xe(0,Ke.length)),t.remove(Ke.length,t.size-Ke.length);else if(ii(t,g)){var vn=xe(0,Ke.length-1);se(Ct,Ct.text,Ft),on&&t.remove(Oe.line,on),vn.length&&t.insert(Oe.line,vn)}else if(vt==Ct)if(Ke.length==1)se(vt,vt.text.slice(0,Oe.ch)+Ht+vt.text.slice(Ie.ch),Ft);else{var In=xe(1,Ke.length-1);In.push(new Mi(Ht+vt.text.slice(Ie.ch),Ft,L)),se(vt,vt.text.slice(0,Oe.ch)+Ke[0],H(0)),t.insert(Oe.line+1,In)}else if(Ke.length==1)se(vt,vt.text.slice(0,Oe.ch)+Ke[0]+Ct.text.slice(Ie.ch),H(0)),t.remove(Oe.line+1,on);else{se(vt,vt.text.slice(0,Oe.ch)+Ke[0],H(0)),se(Ct,Ht+Ct.text.slice(Ie.ch),Ft);var zn=xe(1,Ke.length-1);on>1&&t.remove(Oe.line+1,on-1),t.insert(Oe.line+1,zn)}Qr(t,"change",t,g)}function Ra(t,g,P){function L(H,se,xe){if(H.linked)for(var Oe=0;Oe<H.linked.length;++Oe){var Ie=H.linked[Oe];if(Ie.doc==se)continue;var Ke=xe&&Ie.sharedHist;if(P&&!Ke)continue;g(Ie.doc,Ke),L(Ie.doc,H,Ke)}}L(t,null,!0)}function ha(t,g){if(g.cm)throw new Error("This document is already in use.");t.doc=g,g.cm=t,mr(t),Zr(t),Oi(t),t.options.lineWrapping||uo(t),t.options.mode=g.modeOption,Mr(t)}function Oi(t){(t.doc.direction=="rtl"?U:m)(t.display.lineDiv,"CodeMirror-rtl")}function qi(t){yi(t,function(){Oi(t),Mr(t)})}function ti(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 Ya(t,g){var P={from:Tt(g.from),to:bn(g),text:ea(t,g.from,g.to)};return hl(t,P,g.from.line,g.to.line+1),Ra(t,function(L){return hl(L,P,g.from.line,g.to.line+1)},!0),P}function pi(t){for(;t.length;){var g=me(t);if(g.ranges)t.pop();else break}}function No(t,g){if(g)return pi(t.done),me(t.done);if(t.done.length&&!me(t.done).ranges)return me(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),me(t.done)}function jo(t,g,P,L){var H=t.history;H.undone.length=0;var se=+new Date,xe,Oe;if((H.lastOp==L||H.lastOrigin==g.origin&&g.origin&&(g.origin.charAt(0)=="+"&&H.lastModTime>se-(t.cm?t.cm.options.historyEventDelay:500)||g.origin.charAt(0)=="*"))&&(xe=No(H,H.lastOp==L)))Oe=me(xe.changes),Qe(g.from,g.to)==0&&Qe(g.from,Oe.to)==0?Oe.to=bn(g):xe.changes.push(Ya(t,g));else{var Ie=me(H.done);for((!Ie||!Ie.ranges)&&Ts(t.sel,H.done),xe={changes:[Ya(t,g)],generation:H.generation},H.done.push(xe);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=se,H.lastOp=H.lastSelOp=L,H.lastOrigin=H.lastSelOrigin=g.origin,Oe||ct(t,"historyAdded")}function Ho(t,g,P,L){var H=g.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 Qo(t,g,P,L){var H=t.history,se=L&&L.origin;P==H.lastSelOp||se&&H.lastSelOrigin==se&&(H.lastModTime==H.lastSelTime&&H.lastOrigin==se||Ho(t,se,me(H.done),g))?H.done[H.done.length-1]=g:Ts(g,H.done),H.lastSelTime=+new Date,H.lastSelOrigin=se,H.lastSelOp=P,L&&L.clearRedo!==!1&&pi(H.undone)}function Ts(t,g){var P=me(g);P&&P.ranges&&P.equals(t)||g.push(t)}function hl(t,g,P,L){var H=g["spans_"+t.id],se=0;t.iter(Math.max(t.first,P),Math.min(t.first+t.size,L),function(xe){xe.markedSpans&&((H||(H=g["spans_"+t.id]={}))[se]=xe.markedSpans),++se})}function fl(t){if(!t)return null;for(var g,P=0;P<t.length;++P)t[P].marker.explicitlyCleared?g||(g=t.slice(0,P)):g&&g.push(t[P]);return g?g.length?g:null:t}function Qs(t,g){var P=g["spans_"+t.id];if(!P)return null;for(var L=[],H=0;H<g.text.length;++H)L.push(fl(P[H]));return L}function sr(t,g){var P=Qs(t,g),L=Ma(t,g);if(!P)return L;if(!L)return P;for(var H=0;H<P.length;++H){var se=P[H],xe=L[H];if(se&&xe){e:for(var Oe=0;Oe<xe.length;++Oe){for(var Ie=xe[Oe],Ke=0;Ke<se.length;++Ke)if(se[Ke].marker==Ie.marker)continue e;se.push(Ie)}}else xe&&(P[H]=xe)}return P}function ys(t,g,P){for(var L=[],H=0;H<t.length;++H){var se=t[H];if(se.ranges){L.push(P?ei.prototype.deepCopy.call(se):se);continue}var xe=se.changes,Oe=[];L.push({changes:Oe});for(var Ie=0;Ie<xe.length;++Ie){var Ke=xe[Ie],vt=void 0;if(Oe.push({from:Ke.from,to:Ke.to,text:Ke.text}),g)for(var Ct in Ke)(vt=Ct.match(/^spans_(\d+)$/))&&(Q(g,Number(vt[1]))>-1&&(me(Oe)[Ct]=Ke[Ct],delete Ke[Ct]))}}return L}function Ks(t,g,P,L){if(L){var H=t.anchor;if(P){var se=Qe(g,H)<0;se!=Qe(P,H)<0?(H=g,g=P):se!=Qe(g,P)<0&&(g=P)}return new _n(H,g)}else return new _n(P||g,g)}function Bs(t,g,P,L,H){H==null&&(H=t.cm&&(t.cm.display.shift||t.extend)),Hi(t,new ei([Ks(t.sel.primary(),g,P,H)],0),L)}function Ao(t,g,P){for(var L=[],H=t.cm&&(t.cm.display.shift||t.extend),se=0;se<t.sel.ranges.length;se++)L[se]=Ks(t.sel.ranges[se],g[se],null,H);var xe=kt(t.cm,L,t.sel.primIndex);Hi(t,xe,P)}function bs(t,g,P,L){var H=t.sel.ranges.slice(0);H[g]=P,Hi(t,kt(t.cm,H,t.sel.primIndex),L)}function Ws(t,g,P,L){Hi(t,Zt(g,P),L)}function Ms(t,g,P){var L={ranges:g.ranges,update:function(H){this.ranges=[];for(var se=0;se<H.length;se++)this.ranges[se]=new _n(G(t,H[se].anchor),G(t,H[se].head))},origin:P&&P.origin};return ct(t,"beforeSelectionChange",t,L),t.cm&&ct(t.cm,"beforeSelectionChange",t.cm,L),L.ranges!=g.ranges?kt(t.cm,L.ranges,L.ranges.length-1):g}function Es(t,g,P){var L=t.history.done,H=me(L);H&&H.ranges?(L[L.length-1]=g,zs(t,g,P)):Hi(t,g,P)}function Hi(t,g,P){zs(t,g,P),Qo(t,t.sel,t.cm?t.cm.curOp.id:NaN,P)}function zs(t,g,P){(Ze(t,"beforeSelectionChange")||t.cm&&Ze(t.cm,"beforeSelectionChange"))&&(g=Ms(t,g,P));var L=P&&P.bias||(Qe(g.primary().head,t.sel.primary().head)<0?-1:1);ds(t,Ls(t,g,L,!0)),!(P&&P.scroll===!1)&&t.cm&&ao(t.cm)}function ds(t,g){if(g.equals(t.sel))return;t.sel=g,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,rt(t.cm)),Qr(t,"cursorActivity",t)}function Ko(t){ds(t,Ls(t,t.sel,null,!1))}function Ls(t,g,P,L){for(var H,se=0;se<g.ranges.length;se++){var xe=g.ranges[se],Oe=g.ranges.length==t.sel.ranges.length&&t.sel.ranges[se],Ie=Vr(t,xe.anchor,Oe&&Oe.anchor,P,L),Ke=Vr(t,xe.head,Oe&&Oe.head,P,L);(H||Ie!=xe.anchor||Ke!=xe.head)&&(H||(H=g.ranges.slice(0,se)),H[se]=new _n(Ie,Ke))}return H?kt(t.cm,H,g.primIndex):g}function Wo(t,g,P,L,H){var se=Rn(t,g.line);if(se.markedSpans)for(var xe=0;xe<se.markedSpans.length;++xe){var Oe=se.markedSpans[xe],Ie=Oe.marker,Ke="selectLeft"in Ie?!Ie.selectLeft:Ie.inclusiveLeft,vt="selectRight"in Ie?!Ie.selectRight:Ie.inclusiveRight;if((Oe.from==null||(Ke?Oe.from<=g.ch:Oe.from<g.ch))&&(Oe.to==null||(vt?Oe.to>=g.ch:Oe.to>g.ch))){if(H&&(ct(Ie,"beforeCursorEnter"),Ie.explicitlyCleared))if(se.markedSpans){--xe;continue}else break;if(!Ie.atomic)continue;if(P){var Ct=Ie.find(L<0?1:-1),Ht=void 0;if((L<0?vt:Ke)&&(Ct=vr(t,Ct,-L,Ct&&Ct.line==g.line?se:null)),Ct&&Ct.line==g.line&&(Ht=Qe(Ct,P))&&(L<0?Ht<0:Ht>0))return Wo(t,Ct,g,L,H)}var Ft=Ie.find(L<0?-1:1);return(L<0?Ke:vt)&&(Ft=vr(t,Ft,L,Ft.line==g.line?se:null)),Ft?Wo(t,Ft,g,L,H):null}}return g}function Vr(t,g,P,L,H){var se=L||1,xe=Wo(t,g,P,se,H)||!H&&Wo(t,g,P,se,!0)||Wo(t,g,P,-se,H)||!H&&Wo(t,g,P,-se,!0);return xe||(t.cantEdit=!0,Re(t.first,0))}function vr(t,g,P,L){return P<0&&g.ch==0?g.line>t.first?G(t,Re(g.line-1)):null:P>0&&g.ch==(L||Rn(t,g.line)).text.length?g.line<t.first+t.size-1?Re(g.line+1,0):null:new Re(g.line,g.ch+P)}function ua(t){t.setSelection(Re(t.firstLine(),0),Re(t.lastLine()),oe)}function Or(t,g,P){var L={canceled:!1,from:g.from,to:g.to,text:g.text,origin:g.origin,cancel:function(){return L.canceled=!0}};return P&&(L.update=function(H,se,xe,Oe){H&&(L.from=G(t,H)),se&&(L.to=G(t,se)),xe&&(L.text=xe),Oe!==void 0&&(L.origin=Oe)}),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 Mn(t,g,P){if(t.cm){if(!t.cm.curOp)return Pa(t.cm,Mn)(t,g,P);if(t.cm.state.suppressEdits)return}if((Ze(t,"beforeChange")||t.cm&&Ze(t.cm,"beforeChange"))&&(g=Or(t,g,!0),!g))return;var L=Sr&&!P&&ui(t,g.from,g.to);if(L)for(var H=L.length-1;H>=0;--H)Pn(t,{from:L[H].from,to:L[H].to,text:H?[""]:g.text,origin:g.origin});else Pn(t,g)}function Pn(t,g){if(g.text.length==1&&g.text[0]==""&&Qe(g.from,g.to)==0)return;var P=qn(t,g);jo(t,g,P,t.cm?t.cm.curOp.id:NaN),wn(t,g,P,Ma(t,g));var L=[];Ra(t,function(H,se){!se&&Q(L,H.history)==-1&&(Ja(H.history,g),L.push(H.history)),wn(H,g,null,Ma(H,g))})}function En(t,g,P){var L=t.cm&&t.cm.state.suppressEdits;if(L&&!P)return;for(var H=t.history,se,xe=t.sel,Oe=g=="undo"?H.done:H.undone,Ie=g=="undo"?H.undone:H.done,Ke=0;Ke<Oe.length&&!(se=Oe[Ke],P?se.ranges&&!se.equals(t.sel):!se.ranges);Ke++);if(Ke==Oe.length)return;for(H.lastOrigin=H.lastSelOrigin=null;;)if(se=Oe.pop(),se.ranges){if(Ts(se,Ie),P&&!se.equals(t.sel)){Hi(t,se,{clearRedo:!1});return}xe=se}else if(L){Oe.push(se);return}else break;var vt=[];Ts(xe,Ie),Ie.push({changes:vt,generation:H.generation}),H.generation=se.generation||++H.maxGeneration;for(var Ct=Ze(t,"beforeChange")||t.cm&&Ze(t.cm,"beforeChange"),Ht=function(vn){var In=se.changes[vn];if(In.origin=g,Ct&&!Or(t,In,!1))return Oe.length=0,{};vt.push(Ya(t,In));var zn=vn?qn(t,In):me(Oe);wn(t,In,zn,sr(t,In)),!vn&&t.cm&&t.cm.scrollIntoView({from:In.from,to:bn(In)});var ar=[];Ra(t,function(Vn,fr){!fr&&Q(ar,Vn.history)==-1&&(Ja(Vn.history,In),ar.push(Vn.history)),wn(Vn,In,null,sr(Vn,In))})},Ft=se.changes.length-1;Ft>=0;--Ft){var on=Ht(Ft);if(on)return on.v}}function rr(t,g){if(g==0)return;if(t.first+=g,t.sel=new ei(he(t.sel.ranges,function(H){return new _n(Re(H.anchor.line+g,H.anchor.ch),Re(H.head.line+g,H.head.ch))}),t.sel.primIndex),t.cm){Mr(t.cm,t.first,t.first-g,g);for(var P=t.cm.display,L=P.viewFrom;L<P.viewTo;L++)Fn(t.cm,L,"gutter")}}function wn(t,g,P,L){if(t.cm&&!t.cm.curOp)return Pa(t.cm,wn)(t,g,P,L);if(g.to.line<t.first){rr(t,g.text.length-1-(g.to.line-g.from.line));return}if(g.from.line>t.lastLine())return;if(g.from.line<t.first){var H=g.text.length-1-(t.first-g.from.line);rr(t,H),g={from:Re(t.first,0),to:Re(g.to.line+H,g.to.ch),text:[me(g.text)],origin:g.origin}}var se=t.lastLine();g.to.line>se&&(g={from:g.from,to:Re(se,Rn(t,se).text.length),text:[g.text[0]],origin:g.origin}),g.removed=ea(t,g.from,g.to),P||(P=qn(t,g)),t.cm?Rr(t.cm,g,L):ki(t,g,L),zs(t,P,oe),t.cantEdit&&Vr(t,Re(t.firstLine(),0))&&(t.cantEdit=!1)}function Rr(t,g,P){var L=t.doc,H=t.display,se=g.from,xe=g.to,Oe=!1,Ie=se.line;t.options.lineWrapping||(Ie=Kr(Ga(Rn(L,se.line))),L.iter(Ie,xe.line+1,function(Ft){if(Ft==H.maxLine)return Oe=!0,!0})),L.sel.contains(g.from,g.to)>-1&&rt(t),ki(L,g,P,Gr(t)),t.options.lineWrapping||(L.iter(Ie,se.line+g.text.length,function(Ft){var on=ls(Ft);on>H.maxLineLength&&(H.maxLine=Ft,H.maxLineLength=on,H.maxLineChanged=!0,Oe=!1)}),Oe&&(t.curOp.updateMaxLine=!0)),ta(L,se.line),Yi(t,400);var Ke=g.text.length-(xe.line-se.line)-1;g.full?Mr(t):se.line==xe.line&&g.text.length==1&&!ii(t.doc,g)?Fn(t,se.line,"text"):Mr(t,se.line,xe.line+1,Ke);var vt=Ze(t,"changes"),Ct=Ze(t,"change");if(Ct||vt){var Ht={from:se,to:xe,text:g.text,removed:g.removed,origin:g.origin};Ct&&Qr(t,"change",t,Ht),vt&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(Ht)}t.display.selForContextMenu=null}function Er(t,g,P,L,H){var se;L||(L=P),Qe(L,P)<0&&(se=[L,P],P=se[0],L=se[1]),typeof g=="string"&&(g=t.splitLines(g)),Mn(t,{from:P,to:L,text:g,origin:H})}function jr(t,g,P,L){P<t.line?t.line+=L:g<t.line&&(t.line=g,t.ch=0)}function Ia(t,g,P,L){for(var H=0;H<t.length;++H){var se=t[H],xe=!0;if(se.ranges){se.copied||(se=t[H]=se.deepCopy(),se.copied=!0);for(var Oe=0;Oe<se.ranges.length;Oe++)jr(se.ranges[Oe].anchor,g,P,L),jr(se.ranges[Oe].head,g,P,L);continue}for(var Ie=0;Ie<se.changes.length;++Ie){var Ke=se.changes[Ie];if(P<Ke.from.line)Ke.from=Re(Ke.from.line+L,Ke.from.ch),Ke.to=Re(Ke.to.line+L,Ke.to.ch);else if(g<=Ke.to.line){xe=!1;break}}xe||(t.splice(0,H+1),H=0)}}function Ja(t,g){var P=g.from.line,L=g.to.line,H=g.text.length-(L-P)-1;Ia(t.done,P,L,H),Ia(t.undone,P,L,H)}function bi(t,g,P,L){var H=g,se=g;return typeof g=="number"?se=Rn(t,ve(t,g)):H=Kr(g),H==null?null:(L(se,H)&&t.cm&&Fn(t.cm,H,P),se)}function mi(t){this.lines=t,this.parent=null;for(var g=0,P=0;P<t.length;++P)t[P].parent=this,g+=t[P].height;this.height=g}mi.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,g){for(var P=t,L=t+g;P<L;++P){var H=this.lines[P];this.height-=H.height,ps(H),Qr(H,"delete")}this.lines.splice(t,g)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,g,P){this.height+=P,this.lines=this.lines.slice(0,t).concat(g).concat(this.lines.slice(t));for(var L=0;L<g.length;++L)g[L].parent=this},iterN:function(t,g,P){for(var L=t+g;t<L;++t)if(P(this.lines[t]))return!0}};function Ei(t){this.children=t;for(var g=0,P=0,L=0;L<t.length;++L){var H=t[L];g+=H.chunkSize(),P+=H.height,H.parent=this}this.size=g,this.height=P,this.parent=null}Ei.prototype={chunkSize:function(){return this.size},removeInner:function(t,g){this.size-=g;for(var P=0;P<this.children.length;++P){var L=this.children[P],H=L.chunkSize();if(t<H){var se=Math.min(g,H-t),xe=L.height;if(L.removeInner(t,se),this.height-=xe-L.height,H==se&&(this.children.splice(P--,1),L.parent=null),(g-=se)==0)break;t=0}else t-=H}if(this.size-g<25&&(this.children.length>1||!(this.children[0]instanceof mi))){var Oe=[];this.collapse(Oe),this.children=[new mi(Oe)],this.children[0].parent=this}},collapse:function(t){for(var g=0;g<this.children.length;++g)this.children[g].collapse(t)},insertInner:function(t,g,P){this.size+=g.length,this.height+=P;for(var L=0;L<this.children.length;++L){var H=this.children[L],se=H.chunkSize();if(t<=se){if(H.insertInner(t,g,P),H.lines&&H.lines.length>50){for(var xe=H.lines.length%25+25,Oe=xe;Oe<H.lines.length;){var Ie=new mi(H.lines.slice(Oe,Oe+=25));H.height-=Ie.height,this.children.splice(++L,0,Ie),Ie.parent=this}H.lines=H.lines.slice(0,xe),this.maybeSpill()}break}t-=se}},maybeSpill:function(){if(this.children.length<=10)return;var t=this;do{var g=t.children.splice(t.children.length-5,5),P=new Ei(g);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 Ei(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,g,P){for(var L=0;L<this.children.length;++L){var H=this.children[L],se=H.chunkSize();if(t<se){var xe=Math.min(g,se-t);if(H.iterN(t,xe,P))return!0;if((g-=xe)==0)break;t=0}else t-=se}}};var zo=function(t,g,P){if(P)for(var L in P)P.hasOwnProperty(L)&&(this[L]=P[L]);this.doc=t,this.node=g};zo.prototype.clear=function(){var t=this.doc.cm,g=this.line.widgets,P=this.line,L=Kr(P);if(L==null||!g)return;for(var H=0;H<g.length;++H)g[H]==this&&g.splice(H--,1);g.length||(P.widgets=null);var se=_s(this);pa(P,Math.max(0,P.height-se)),t&&(yi(t,function(){po(t,P,-se),Fn(t,L,"widget")}),Qr(t,"lineWidgetCleared",t,this,L))},zo.prototype.changed=function(){var t=this,g=this.height,P=this.doc.cm,L=this.line;this.height=null;var H=_s(this)-g;if(!H)return;Di(this.doc,L)||pa(L,L.height+H),P&&yi(P,function(){P.curOp.forceUpdate=!0,po(P,L,H),Qr(P,"lineWidgetChanged",P,t,Kr(L))})},qe(zo);function po(t,g,P){Fi(g)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&Po(t,P)}function Cs(t,g,P,L){var H=new zo(t,P,L),se=t.cm;return se&&H.noHScroll&&(se.display.alignWidgets=!0),bi(t,g,"widget",function(xe){var Oe=xe.widgets||(xe.widgets=[]);if(H.insertAt==null?Oe.push(H):Oe.splice(Math.min(Oe.length-1,Math.max(0,H.insertAt)),0,H),H.line=xe,se&&!Di(t,xe)){var Ie=Fi(xe)<t.scrollTop;pa(xe,xe.height+_s(H)),Ie&&Po(se,H.height),se.curOp.forceUpdate=!0}return!0}),se&&Qr(se,"lineWidgetAdded",se,H,typeof g=="number"?g:Kr(g)),H}var el=0,as=function(t,g){this.lines=[],this.type=g,this.doc=t,this.id=++el};as.prototype.clear=function(){if(this.explicitlyCleared)return;var t=this.doc.cm,g=t&&!t.curOp;if(g&&zi(t),Ze(this,"clear")){var P=this.find();P&&Qr(this,"clear",P.from,P.to)}for(var L=null,H=null,se=0;se<this.lines.length;++se){var xe=this.lines[se],Oe=Ua(xe.markedSpans,this);t&&!this.collapsed?Fn(t,Kr(xe),"text"):t&&(Oe.to!=null&&(H=Kr(xe)),Oe.from!=null&&(L=Kr(xe))),xe.markedSpans=ka(xe.markedSpans,Oe),Oe.from==null&&this.collapsed&&!Di(this.doc,xe)&&t&&pa(xe,kr(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var Ie=0;Ie<this.lines.length;++Ie){var Ke=Ga(this.lines[Ie]),vt=ls(Ke);vt>t.display.maxLineLength&&(t.display.maxLine=Ke,t.display.maxLineLength=vt,t.display.maxLineChanged=!0)}L!=null&&t&&this.collapsed&&Mr(t,L,H+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Ko(t.doc)),t&&Qr(t,"markerCleared",t,this,L,H),g&&Ti(t),this.parent&&this.parent.clear()},as.prototype.find=function(t,g){t==null&&this.type=="bookmark"&&(t=1);for(var P,L,H=0;H<this.lines.length;++H){var se=this.lines[H],xe=Ua(se.markedSpans,this);if(xe.from!=null&&(P=Re(g?se:Kr(se),xe.from),t==-1))return P;if(xe.to!=null&&(L=Re(g?se:Kr(se),xe.to),t==1))return L}return P&&{from:P,to:L}},as.prototype.changed=function(){var t=this,g=this.find(-1,!0),P=this,L=this.doc.cm;if(!g||!L)return;yi(L,function(){var H=g.line,se=Kr(g.line),xe=st(L,se);if(xe&&(Sn(xe),L.curOp.selectionChanged=L.curOp.forceUpdate=!0),L.curOp.updateMaxLine=!0,!Di(P.doc,H)&&P.height!=null){var Oe=P.height;P.height=null;var Ie=_s(P)-Oe;Ie&&pa(H,H.height+Ie)}Qr(L,"markerChanged",L,t)})},as.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var g=this.doc.cm.curOp;(!g.maybeHiddenMarkers||Q(g.maybeHiddenMarkers,this)==-1)&&(g.maybeUnhiddenMarkers||(g.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},as.prototype.detachLine=function(t){if(this.lines.splice(Q(this.lines,t),1),!this.lines.length&&this.doc.cm){var g=this.doc.cm.curOp;(g.maybeHiddenMarkers||(g.maybeHiddenMarkers=[])).push(this)}},qe(as);function hs(t,g,P,L,H){if(L&&L.shared)return nl(t,g,P,L,H);if(t.cm&&!t.cm.curOp)return Pa(t.cm,hs)(t,g,P,L,H);var se=new as(t,H),xe=Qe(g,P);if(L&&K(L,se,!1),xe>0||xe==0&&se.clearWhenEmpty!==!1)return se;if(se.replacedWith&&(se.collapsed=!0,se.widgetNode=D("span",[se.replacedWith],"CodeMirror-widget"),L.handleMouseEvents||se.widgetNode.setAttribute("cm-ignore-events","true"),L.insertLeft&&(se.widgetNode.insertLeft=!0)),se.collapsed){if(za(t,g.line,g,P,se)||g.line!=P.line&&za(t,P.line,g,P,se))throw new Error("Inserting collapsed marker partially overlapping an existing one");ja()}se.addToHistory&&jo(t,{from:g,to:P,origin:"markText"},t.sel,NaN);var Oe=g.line,Ie=t.cm,Ke;if(t.iter(Oe,P.line+1,function(Ct){Ie&&se.collapsed&&!Ie.options.lineWrapping&&Ga(Ct)==Ie.display.maxLine&&(Ke=!0),se.collapsed&&Oe!=g.line&&pa(Ct,0),Ca(Ct,new Sa(se,Oe==g.line?g.ch:null,Oe==P.line?P.ch:null)),++Oe}),se.collapsed&&t.iter(g.line,P.line+1,function(Ct){Di(t,Ct)&&pa(Ct,0)}),se.clearOnEnter&&Xe(se,"beforeCursorEnter",function(){return se.clear()}),se.readOnly&&(la(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),se.collapsed&&(se.id=++el,se.atomic=!0),Ie){if(Ke&&(Ie.curOp.updateMaxLine=!0),se.collapsed)Mr(Ie,g.line,P.line+1);else if(se.className||se.startStyle||se.endStyle||se.css||se.attributes||se.title)for(var vt=g.line;vt<=P.line;vt++)Fn(Ie,vt,"text");se.atomic&&Ko(Ie.doc),Qr(Ie,"markerAdded",Ie,se)}return se}var tl=function(t,g){this.markers=t,this.primary=g;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();Qr(this,"clear")},tl.prototype.find=function(t,g){return this.primary.find(t,g)},qe(tl);function nl(t,g,P,L,H){L=K(L),L.shared=!1;var se=[hs(t,g,P,L,H)],xe=se[0],Oe=L.widgetNode;return Ra(t,function(Ie){Oe&&(L.widgetNode=Oe.cloneNode(!0)),se.push(hs(Ie,G(Ie,g),G(Ie,P),L,H));for(var Ke=0;Ke<Ie.linked.length;++Ke)if(Ie.linked[Ke].isParent)return;xe=me(se)}),new tl(se,xe)}function Zl(t){return t.findMarks(Re(t.first,0),t.clipPos(Re(t.lastLine())),function(g){return g.parent})}function ql(t,g){for(var P=0;P<g.length;P++){var L=g[P],H=L.find(),se=t.clipPos(H.from),xe=t.clipPos(H.to);if(Qe(se,xe)){var Oe=hs(t,se,xe,L.primary,L.primary.type);L.markers.push(Oe),Oe.parent=L}}}function $l(t){for(var g=function(L){var H=t[L],se=[H.primary.doc];Ra(H.primary.doc,function(Ie){return se.push(Ie)});for(var xe=0;xe<H.markers.length;xe++){var Oe=H.markers[xe];Q(se,Oe.doc)==-1&&(Oe.parent=null,H.markers.splice(xe--,1))}},P=0;P<t.length;P++)g(P)}var mu=0,Bo=function(t,g,P,L,H){if(!(this instanceof Bo))return new Bo(t,g,P,L,H);P==null&&(P=0),Ei.call(this,[new mi([new Mi("",null)])]),this.first=P,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=P;var se=Re(P,0);this.sel=Zt(se),this.history=new ti(null),this.id=++mu,this.modeOption=g,this.lineSep=L,this.direction=H=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),ki(this,{from:se,to:se,text:t}),Hi(this,Zt(se),oe)};Bo.prototype=ye(Ei.prototype,{constructor:Bo,iter:function(t,g,P){P?this.iterN(t-this.first,g-t,P):this.iterN(this.first,this.first+this.size,t)},insert:function(t,g){for(var P=0,L=0;L<g.length;++L)P+=g[L].height;this.insertInner(t-this.first,g,P)},remove:function(t,g){this.removeInner(t-this.first,g)},getValue:function(t){var g=Aa(this,this.first,this.first+this.size);return t===!1?g:g.join(t||this.lineSeparator())},setValue:Na(function(t){var g=Re(this.first,0),P=this.first+this.size-1;Mn(this,{from:g,to:Re(P,Rn(this,P).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Li(this.cm,0,0),Hi(this,Zt(g),oe)}),replaceRange:function(t,g,P,L){g=G(this,g),P=P?G(this,P):g,Er(this,t,g,P,L)},getRange:function(t,g,P){var L=ea(this,G(this,t),G(this,g));return P===!1?L:L.join(P||this.lineSeparator())},getLine:function(t){var g=this.getLineHandle(t);return g&&g.text},getLineHandle:function(t){if(Za(this,t))return Rn(this,t)},getLineNumber:function(t){return Kr(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=Rn(this,t)),Ga(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return G(this,t)},getCursor:function(t){var g=this.sel.primary(),P;return t==null||t=="head"?P=g.head:t=="anchor"?P=g.anchor:t=="end"||t=="to"||t===!1?P=g.to():P=g.from(),P},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Na(function(t,g,P){Ws(this,G(this,typeof t=="number"?Re(t,g||0):t),null,P)}),setSelection:Na(function(t,g,P){Ws(this,G(this,t),G(this,g||t),P)}),extendSelection:Na(function(t,g,P){Bs(this,G(this,t),g&&G(this,g),P)}),extendSelections:Na(function(t,g){Ao(this,ge(this,t),g)}),extendSelectionsBy:Na(function(t,g){var P=he(this.sel.ranges,t);Ao(this,ge(this,P),g)}),setSelections:Na(function(t,g,P){if(!t.length)return;for(var L=[],H=0;H<t.length;H++)L[H]=new _n(G(this,t[H].anchor),G(this,t[H].head));g==null&&(g=Math.min(t.length-1,this.sel.primIndex)),Hi(this,kt(this.cm,L,g),P)}),addSelection:Na(function(t,g,P){var L=this.sel.ranges.slice(0);L.push(new _n(G(this,t),G(this,g||t))),Hi(this,kt(this.cm,L,L.length-1),P)}),getSelection:function(t){for(var g=this.sel.ranges,P,L=0;L<g.length;L++){var H=ea(this,g[L].from(),g[L].to());P=P?P.concat(H):H}return t===!1?P:P.join(t||this.lineSeparator())},getSelections:function(t){for(var g=[],P=this.sel.ranges,L=0;L<P.length;L++){var H=ea(this,P[L].from(),P[L].to());t!==!1&&(H=H.join(t||this.lineSeparator())),g[L]=H}return g},replaceSelection:function(t,g,P){for(var L=[],H=0;H<this.sel.ranges.length;H++)L[H]=t;this.replaceSelections(L,g,P||"+input")},replaceSelections:Na(function(t,g,P){for(var L=[],H=this.sel,se=0;se<H.ranges.length;se++){var xe=H.ranges[se];L[se]={from:xe.from(),to:xe.to(),text:this.splitLines(t[se]),origin:P}}for(var Oe=g&&g!="end"&&dr(this,L,g),Ie=L.length-1;Ie>=0;Ie--)Mn(this,L[Ie]);Oe?Es(this,Oe):this.cm&&ao(this.cm)}),undo:Na(function(){En(this,"undo")}),redo:Na(function(){En(this,"redo")}),undoSelection:Na(function(){En(this,"undo",!0)}),redoSelection:Na(function(){En(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,g=0,P=0,L=0;L<t.done.length;L++)t.done[L].ranges||++g;for(var H=0;H<t.undone.length;H++)t.undone[H].ranges||++P;return{undo:g,redo:P}},clearHistory:function(){var t=this;this.history=new ti(this.history.maxGeneration),Ra(this,function(g){return g.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 g=this.history=new ti(this.history.maxGeneration);g.done=ys(t.done.slice(0),null,!0),g.undone=ys(t.undone.slice(0),null,!0)},setGutterMarker:Na(function(t,g,P){return bi(this,t,"gutter",function(L){var H=L.gutterMarkers||(L.gutterMarkers={});return H[g]=P,!P&&Ue(H)&&(L.gutterMarkers=null),!0})}),clearGutter:Na(function(t){var g=this;this.iter(function(P){P.gutterMarkers&&P.gutterMarkers[t]&&bi(g,P,"gutter",function(){return P.gutterMarkers[t]=null,Ue(P.gutterMarkers)&&(P.gutterMarkers=null),!0})})}),lineInfo:function(t){var g;if(typeof t=="number"){if(!Za(this,t))return null;if(g=t,t=Rn(this,t),!t)return null}else if(g=Kr(t),g==null)return null;return{line:g,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:Na(function(t,g,P){return bi(this,t,g=="gutter"?"gutter":"class",function(L){var H=g=="text"?"textClass":g=="background"?"bgClass":g=="gutter"?"gutterClass":"wrapClass";if(!L[H])L[H]=P;else{if(w(P).test(L[H]))return!1;L[H]+=" "+P}return!0})}),removeLineClass:Na(function(t,g,P){return bi(this,t,g=="gutter"?"gutter":"class",function(L){var H=g=="text"?"textClass":g=="background"?"bgClass":g=="gutter"?"gutterClass":"wrapClass",se=L[H];if(se)if(P==null)L[H]=null;else{var xe=se.match(w(P));if(!xe)return!1;var Oe=xe.index+xe[0].length;L[H]=se.slice(0,xe.index)+(!xe.index||Oe==se.length?"":" ")+se.slice(Oe)||null}else return!1;return!0})}),addLineWidget:Na(function(t,g,P){return Cs(this,t,g,P)}),removeLineWidget:function(t){t.clear()},markText:function(t,g,P){return hs(this,G(this,t),G(this,g),P,P&&P.type||"range")},setBookmark:function(t,g){var P={replacedWith:g&&(g.nodeType==null?g.widget:g),insertLeft:g&&g.insertLeft,clearWhenEmpty:!1,shared:g&&g.shared,handleMouseEvents:g&&g.handleMouseEvents};return t=G(this,t),hs(this,t,t,P,"bookmark")},findMarksAt:function(t){t=G(this,t);var g=[],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)&&g.push(H.marker.parent||H.marker)}return g},findMarks:function(t,g,P){t=G(this,t),g=G(this,g);var L=[],H=t.line;return this.iter(t.line,g.line+1,function(se){var xe=se.markedSpans;if(xe)for(var Oe=0;Oe<xe.length;Oe++){var Ie=xe[Oe];!(Ie.to!=null&&H==t.line&&t.ch>=Ie.to||Ie.from==null&&H!=t.line||Ie.from!=null&&H==g.line&&Ie.from>=g.ch)&&(!P||P(Ie.marker))&&L.push(Ie.marker.parent||Ie.marker)}++H}),L},getAllMarks:function(){var t=[];return this.iter(function(g){var P=g.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 g,P=this.first,L=this.lineSeparator().length;return this.iter(function(H){var se=H.text.length+L;if(se>t)return g=t,!0;t-=se,++P}),G(this,Re(P,g))},indexFromPos:function(t){t=G(this,t);var g=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){g+=L.text.length+P}),g},copy:function(t){var g=new Bo(Aa(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return g.scrollTop=this.scrollTop,g.scrollLeft=this.scrollLeft,g.sel=this.sel,g.extend=!1,t&&(g.history.undoDepth=this.history.undoDepth,g.setHistory(this.getHistory())),g},linkedDoc:function(t){t||(t={});var g=this.first,P=this.first+this.size;t.from!=null&&t.from>g&&(g=t.from),t.to!=null&&t.to<P&&(P=t.to);var L=new Bo(Aa(this,g,P),t.mode||this.modeOption,g,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}],ql(L,Zl(this)),L},unlinkDoc:function(t){if(t instanceof vi&&(t=t.doc),this.linked)for(var g=0;g<this.linked.length;++g){var P=this.linked[g];if(P.doc!=t)continue;this.linked.splice(g,1),t.unlinkDoc(this),$l(Zl(this));break}if(t.history==this.history){var L=[t.id];Ra(t,function(H){return L.push(H.id)},!0),t.history=new ti(null),t.history.done=ys(this.history.done,L),t.history.undone=ys(this.history.undone,L)}},iterLinkedDocs:function(t){Ra(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):St(t)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Na(function(t){if(t!="rtl"&&(t="ltr"),t==this.direction)return;this.direction=t,this.iter(function(g){return g.order=null}),this.cm&&qi(this.cm)})}),Bo.prototype.eachLine=Bo.prototype.iter;var eu=0;function vu(t){var g=this;if(gu(g),lt(g,t)||_o(g.display,t))return;Le(t),b&&(eu=+new Date);var P=Tn(g,t,!0),L=t.dataTransfer.files;if(!P||g.isReadOnly())return;if(L&&L.length&&window.FileReader&&window.File)for(var H=L.length,se=Array(H),xe=0,Oe=function(){++xe==H&&Pa(g,function(){P=G(g.doc,P);var Ft={from:P,to:P,text:g.doc.splitLines(se.filter(function(on){return on!=null}).join(g.doc.lineSeparator())),origin:"paste"};Mn(g.doc,Ft),Es(g.doc,Zt(G(g.doc,P),G(g.doc,bn(Ft))))})()},Ie=function(Ft,on){if(g.options.allowDropFileTypes&&Q(g.options.allowDropFileTypes,Ft.type)==-1){Oe();return}var vn=new FileReader;vn.onerror=function(){return Oe()},vn.onload=function(){var In=vn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(In)){Oe();return}se[on]=In,Oe()},vn.readAsText(Ft)},Ke=0;Ke<L.length;Ke++)Ie(L[Ke],Ke);else{if(g.state.draggingText&&g.doc.sel.contains(P)>-1){g.state.draggingText(t),setTimeout(function(){return g.display.input.focus()},20);return}try{var vt=t.dataTransfer.getData("Text");if(vt){var Ct;if(g.state.draggingText&&!g.state.draggingText.copy&&(Ct=g.listSelections()),zs(g.doc,Zt(P,P)),Ct)for(var Ht=0;Ht<Ct.length;++Ht)Er(g.doc,"",Ct[Ht].anchor,Ct[Ht].head,"drag");g.replaceSelection(vt,"around","paste"),g.display.input.focus()}}catch(Ft){}}}function tu(t,g){if(b&&(!t.state.draggingText||+new Date-eu<100)){$e(g);return}if(lt(t,g)||_o(t.display,g))return;if(g.dataTransfer.setData("Text",t.getSelection()),g.dataTransfer.effectAllowed="copyMove",g.dataTransfer.setDragImage&&!s){var P=_("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),g.dataTransfer.setDragImage(P,0,0),e&&P.parentNode.removeChild(P)}}function Wu(t,g){var P=Tn(t,g);if(!P)return;var L=document.createDocumentFragment();Wn(t,P,L),t.display.dragCursor||(t.display.dragCursor=_("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),o(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 g=document.getElementsByClassName("CodeMirror"),P=[],L=0;L<g.length;L++){var H=g[L].CodeMirror;H&&P.push(H)}P.length&&P[0].operation(function(){for(var se=0;se<P.length;se++)t(P[se])})}var is=!1;function nu(){if(is)return;zu(),is=!0}function zu(){var t;Xe(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,yu(Gu)},100))}),Xe(window,"blur",function(){return yu(ra)})}function Gu(t){var g=t.display;g.cachedCharWidth=g.cachedTextHeight=g.cachedPaddingH=null,g.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 wl=1;wl<=12;wl++)Gs[wl+111]=Gs[wl+63235]="F"+wl;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=h?Ps.macDefault:Ps.pcDefault;function Vu(t){var g=t.split(/-(?!$)/);t=g[g.length-1];for(var P,L,H,se,xe=0;xe<g.length-1;xe++){var Oe=g[xe];if(/^(cmd|meta|m)$/i.test(Oe))se=!0;else if(/^a(lt)?$/i.test(Oe))P=!0;else if(/^(c|ctrl|control)$/i.test(Oe))L=!0;else if(/^s(hift)?$/i.test(Oe))H=!0;else throw new Error("Unrecognized modifier name: "+Oe)}return P&&(t="Alt-"+t),L&&(t="Ctrl-"+t),se&&(t="Cmd-"+t),H&&(t="Shift-"+t),t}function Xu(t){var g={};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=he(P.split(" "),Vu),se=0;se<H.length;se++){var xe=void 0,Oe=void 0;se==H.length-1?(Oe=H.join(" "),xe=L):(Oe=H.slice(0,se+1).join(" "),xe="...");var Ie=g[Oe];if(!Ie)g[Oe]=xe;else if(Ie!=xe)throw new Error("Inconsistent bindings for "+Oe)}delete t[P]}for(var Ke in g)t[Ke]=g[Ke];return t}function rl(t,g,P,L){g=$i(g);var H=g.call?g.call(t,L):g[t];if(H===!1)return"nothing";if(H==="...")return"multi";if(H!=null&&P(H))return"handled";if(g.fallthrough){if(Object.prototype.toString.call(g.fallthrough)!="[object Array]")return rl(t,g.fallthrough,P,L);for(var se=0;se<g.fallthrough.length;se++){var xe=rl(t,g.fallthrough[se],P,L);if(xe)return xe}}}function bu(t){var g=typeof t=="string"?t:Gs[t.keyCode];return g=="Ctrl"||g=="Alt"||g=="Shift"||g=="Mod"}function Fl(t,g,P){var L=t;return g.altKey&&L!="Alt"&&(t="Alt-"+t),(S?g.metaKey:g.ctrlKey)&&L!="Ctrl"&&(t="Ctrl-"+t),(S?g.ctrlKey:g.metaKey)&&L!="Mod"&&(t="Cmd-"+t),!P&&g.shiftKey&&L!="Shift"&&(t="Shift-"+t),t}function ru(t,g){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,g))}function $i(t){return typeof t=="string"?Ps[t]:t}function Os(t,g){for(var P=t.doc.sel.ranges,L=[],H=0;H<P.length;H++){for(var se=g(P[H]);L.length&&Qe(se.from,me(L).to)<=0;){var xe=L.pop();if(Qe(xe.from,se.from)<0){se.from=xe.from;break}}L.push(se)}yi(t,function(){for(var Oe=L.length-1;Oe>=0;Oe--)Er(t.doc,"",L[Oe].from,L[Oe].to,"+delete");ao(t)})}function au(t,g,P){var L=W(t.text,g+P,P);return L<0||L>t.text.length?null:L}function iu(t,g,P){var L=au(t,g.ch,P);return L==null?null:new Re(g.line,L,P<0?"after":"before")}function Nl(t,g,P,L,H){if(t){g.doc.direction=="rtl"&&(H=-H);var se=wt(P,g.doc.direction);if(se){var xe=H<0?me(se):se[0],Oe=H<0==(xe.level==1),Ie=Oe?"after":"before",Ke;if(xe.level>0||g.doc.direction=="rtl"){var vt=ot(g,P);Ke=H<0?P.text.length-1:0;var Ct=ht(g,vt,Ke).top;Ke=ce(function(Ht){return ht(g,vt,Ht).top==Ct},H<0==(xe.level==1)?xe.from:xe.to-1,Ke),Ie=="before"&&(Ke=au(P,Ke,1))}else Ke=H<0?xe.to:xe.from;return new Re(L,Ke,Ie)}}return new Re(L,H<0?P.text.length:0,H<0?"before":"after")}function ou(t,g,P,L){var H=wt(g,t.doc.direction);if(!H)return iu(g,P,L);P.ch>=g.text.length?(P.ch=g.text.length,P.sticky="before"):P.ch<=0&&(P.ch=0,P.sticky="after");var se=De(H,P.ch,P.sticky),xe=H[se];if(t.doc.direction=="ltr"&&xe.level%2==0&&(L>0?xe.to>P.ch:xe.from<P.ch))return iu(g,P,L);var Oe=function(zn,ar){return au(g,zn instanceof Re?zn.ch:zn,ar)},Ie,Ke=function(zn){return t.options.lineWrapping?(Ie=Ie||ot(t,g),cn(t,g,Ie,zn)):{begin:0,end:g.text.length}},vt=Ke(P.sticky=="before"?Oe(P,-1):P.ch);if(t.doc.direction=="rtl"||xe.level==1){var Ct=xe.level==1==L<0,Ht=Oe(P,Ct?1:-1);if(Ht!=null&&(Ct?Ht<=xe.to&&Ht<=vt.end:Ht>=xe.from&&Ht>=vt.begin)){var Ft=Ct?"before":"after";return new Re(P.line,Ht,Ft)}}var on=function(zn,ar,Vn){for(var fr=function(hi,so){return so?new Re(P.line,Oe(hi,1),"before"):new Re(P.line,hi,"after")};zn>=0&&zn<H.length;zn+=ar){var Hr=H[zn],Ir=ar>0==(Hr.level!=1),fa=Ir?Vn.begin:Oe(Vn.end,-1);if(Hr.from<=fa&&fa<Hr.to)return fr(fa,Ir);if(fa=Ir?Hr.from:Oe(Hr.to,-1),Vn.begin<=fa&&fa<Vn.end)return fr(fa,Ir)}},vn=on(se+L,L,vt);if(vn)return vn;var In=L>0?vt.end:Oe(vt.begin,-1);return In!=null&&!(L>0&&In==g.text.length)&&(vn=on(L>0?0:H.length-1,L,Ke(In)),vn)?vn:null}var xl={selectAll:ua,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),oe)},killLine:function(t){return Os(t,function(g){if(g.empty()){var P=Rn(t.doc,g.head.line).text.length;return g.head.ch==P&&g.head.line<t.lastLine()?{from:g.head,to:Re(g.head.line+1,0)}:{from:g.head,to:Re(g.head.line,P)}}else return{from:g.from(),to:g.to()}})},deleteLine:function(t){return Os(t,function(g){return{from:Re(g.from().line,0),to:G(t.doc,Re(g.to().line+1,0))}})},delLineLeft:function(t){return Os(t,function(g){return{from:Re(g.from().line,0),to:g.from()}})},delWrappedLineLeft:function(t){return Os(t,function(g){var P=t.charCoords(g.head,"div").top+5,L=t.coordsChar({left:0,top:P},"div");return{from:L,to:g.from()}})},delWrappedLineRight:function(t){return Os(t,function(g){var P=t.charCoords(g.head,"div").top+5,L=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:P},"div");return{from:g.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(Re(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(Re(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(g){return Eu(t,g.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(g){return Cu(t,g.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(g){return Yu(t,g.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(g){var P=t.cursorCoords(g.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:P},"div")},le)},goLineLeft:function(t){return t.extendSelectionsBy(function(g){var P=t.cursorCoords(g.head,"div").top+5;return t.coordsChar({left:0,top:P},"div")},le)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(g){var P=t.cursorCoords(g.head,"div").top+5,L=t.coordsChar({left:0,top:P},"div");return L.ch<t.getLine(L.line).search(/\S/)?Cu(t,g.head):L},le)},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 g=[],P=t.listSelections(),L=t.options.tabSize,H=0;H<P.length;H++){var se=P[H].from(),xe=z(t.getLine(se.line),se.ch,L);g.push(be(L-xe%L))}t.replaceSelections(g)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return yi(t,function(){for(var g=t.listSelections(),P=[],L=0;L<g.length;L++){if(!g[L].empty())continue;var H=g[L].head,se=Rn(t.doc,H.line).text;if(se){if(H.ch==se.length&&(H=new Re(H.line,H.ch-1)),H.ch>0)H=new Re(H.line,H.ch+1),t.replaceRange(se.charAt(H.ch-1)+se.charAt(H.ch-2),Re(H.line,H.ch-2),H,"+transpose");else if(H.line>t.doc.first){var xe=Rn(t.doc,H.line-1).text;xe&&(H=new Re(H.line,1),t.replaceRange(se.charAt(0)+t.doc.lineSeparator()+xe.charAt(xe.length-1),Re(H.line-1,xe.length-1),H,"+transpose"))}}P.push(new _n(H,H))}t.setSelections(P)})},newlineAndIndent:function(t){return yi(t,function(){for(var g=t.listSelections(),P=g.length-1;P>=0;P--)t.replaceRange(t.doc.lineSeparator(),g[P].anchor,g[P].head,"+input");g=t.listSelections();for(var L=0;L<g.length;L++)t.indentLine(g[L].from().line,null,!0);ao(t)})},openLine:function(t){return t.replaceSelection(`
`,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function Eu(t,g){var P=Rn(t.doc,g),L=Ga(P);return L!=P&&(g=Kr(L)),Nl(!0,t,L,g,1)}function Yu(t,g){var P=Rn(t.doc,g),L=Qi(P);return L!=P&&(g=Kr(L)),Nl(!0,t,P,g,-1)}function Cu(t,g){var P=Eu(t,g.line),L=Rn(t.doc,P.line),H=wt(L,t.doc.direction);if(!H||H[0].level==0){var se=Math.max(P.ch,L.text.search(/\S/)),xe=g.line==P.line&&g.ch<=se&&g.ch;return Re(P.line,xe?0:se,P.sticky)}return P}function jl(t,g,P){if(typeof g=="string"&&(g=xl[g],!g))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=g(t)!=te}finally{t.display.shift=L,t.state.suppressEdits=!1}return H}function Ju(t,g,P){for(var L=0;L<t.state.keyMaps.length;L++){var H=rl(g,t.state.keyMaps[L],P,t);if(H)return H}return t.options.extraKeys&&rl(g,t.options.extraKeys,P,t)||rl(g,t.options.keyMap,P,t)}var Zu=new j;function _l(t,g,P,L){var H=t.state.keySeq;if(H){if(bu(g))return"handled";if(/\'$/.test(g)?t.state.keySeq=null:Zu.set(50,function(){t.state.keySeq==H&&(t.state.keySeq=null,t.display.input.reset())}),su(t,H+" "+g,P,L))return!0}return su(t,g,P,L)}function su(t,g,P,L){var H=Ju(t,g,L);return H=="multi"&&(t.state.keySeq=g),H=="handled"&&Qr(t,"keyHandled",t,g,P),(H=="handled"||H=="multi")&&(Le(P),Ar(t)),!!H}function lu(t,g){var P=ru(g,!0);return P?g.shiftKey&&!t.state.keySeq?_l(t,"Shift-"+P,g,function(L){return jl(t,L,!0)})||_l(t,P,g,function(L){if(typeof L=="string"?/^go[A-Z]/.test(L):L.motion)return jl(t,L)}):_l(t,P,g,function(L){return jl(t,L)}):!1}function wu(t,g,P){return _l(t,"'"+P+"'",g,function(L){return jl(t,L,!0)})}var Hl=null;function Ql(t){var g=this;if(t.target&&t.target!=g.display.input.getField())return;if(g.curOp.focus=R(),lt(g,t))return;b&&f<11&&t.keyCode==27&&(t.returnValue=!1);var P=t.keyCode;g.display.shift=P==16||t.shiftKey;var L=lu(g,t);e&&(Hl=L?P:null,!L&&P==88&&!yt&&(h?t.metaKey:t.ctrlKey)&&g.replaceSelection("",null,"cut")),M&&!h&&!L&&P==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),P==18&&!/\bCodeMirror-crosshair\b/.test(g.display.lineDiv.className)&&qu(g)}function qu(t){var g=t.display.lineDiv;U(g,"CodeMirror-crosshair");function P(L){(L.keyCode==18||!L.altKey)&&(m(g,"CodeMirror-crosshair"),_t(document,"keyup",P),_t(document,"mouseover",P))}Xe(document,"keyup",P),Xe(document,"mouseover",P)}function xu(t){t.keyCode==16&&(this.doc.sel.shift=!1),lt(this,t)}function _u(t){var g=this;if(t.target&&t.target!=g.display.input.getField())return;if(_o(g.display,t)||lt(g,t)||t.ctrlKey&&!t.altKey||h&&t.metaKey)return;var P=t.keyCode,L=t.charCode;if(e&&P==Hl){Hl=null,Le(t);return}if(e&&(!t.which||t.which<10)&&lu(g,t))return;var H=String.fromCharCode(L==null?P:L);if(H=="\b")return;if(wu(g,t,H))return;g.display.input.onKeyPress(t)}var $u=400,Al=function(t,g,P){this.time=t,this.pos=g,this.button=P};Al.prototype.compare=function(t,g,P){return this.time+$u>t&&Qe(g,this.pos)==0&&P==this.button};var Vs,Sl;function Su(t,g){var P=+new Date;return Sl&&Sl.compare(P,t,g)?(Vs=Sl=null,"triple"):Vs&&Vs.compare(P,t,g)?(Sl=new Al(P,t,g),Vs=null,"double"):(Vs=new Al(P,t,g),Sl=null,"single")}function Kl(t){var g=this,P=g.display;if(lt(g,t)||P.activeTouch&&P.input.supportsTouch())return;if(P.input.ensurePolled(),P.shift=t.shiftKey,_o(P,t)){l||(P.scroller.draggable=!1,setTimeout(function(){return P.scroller.draggable=!0},100));return}if(uu(g,t))return;var L=Tn(g,t),H=Bt(t),se=L?Su(L,H):"single";if(window.focus(),H==1&&g.state.selectingText&&g.state.selectingText(t),L&&Tu(g,H,L,se,t))return;H==1?L?Ou(g,L,se,t):At(t)==P.scroller&&Le(t):H==2?(L&&Bs(g.doc,L),setTimeout(function(){return P.input.focus()},20)):H==3&&(B?g.display.input.onContextMenu(t):Va(g))}function Tu(t,g,P,L,H){var se="Click";return L=="double"?se="Double"+se:L=="triple"&&(se="Triple"+se),se=(g==1?"Left":g==2?"Middle":"Right")+se,_l(t,Fl(se,H),H,function(xe){if(typeof xe=="string"&&(xe=xl[xe]),!xe)return!1;var Oe=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),Oe=xe(t,P)!=te}finally{t.state.suppressEdits=!1}return Oe})}function Bu(t,g,P){var L=t.getOption("configureMouse"),H=L?L(t,g,P):{};if(H.unit==null){var se=y?P.shiftKey&&P.metaKey:P.altKey;H.unit=se?"rectangle":g=="single"?"char":g=="double"?"word":"line"}return(H.extend==null||t.doc.extend)&&(H.extend=t.doc.extend||P.shiftKey),H.addNew==null&&(H.addNew=h?P.metaKey:P.ctrlKey),H.moveOnDrag==null&&(H.moveOnDrag=!(h?P.altKey:P.ctrlKey)),H}function Ou(t,g,P,L){b?setTimeout(k(Wr,t),0):t.curOp.focus=R();var H=Bu(t,P,L),se=t.doc.sel,xe;t.options.dragDrop&&Nt&&!t.isReadOnly()&&P=="single"&&(xe=se.contains(g))>-1&&(Qe((xe=se.ranges[xe]).from(),g)<0||g.xRel>0)&&(Qe(xe.to(),g)>0||g.xRel<0)?ec(t,L,g,H):Du(t,L,g,H)}function ec(t,g,P,L){var H=t.display,se=!1,xe=Pa(t,function(Ke){l&&(H.scroller.draggable=!1),t.state.draggingText=!1,_t(H.wrapper.ownerDocument,"mouseup",xe),_t(H.wrapper.ownerDocument,"mousemove",Oe),_t(H.scroller,"dragstart",Ie),_t(H.scroller,"drop",xe),se||(Le(Ke),L.addNew||Bs(t.doc,P,null,null,L.extend),l&&!s||b&&f==9?setTimeout(function(){H.wrapper.ownerDocument.body.focus({preventScroll:!0}),H.input.focus()},20):H.input.focus())}),Oe=function(Ke){se=se||Math.abs(g.clientX-Ke.clientX)+Math.abs(g.clientY-Ke.clientY)>=10},Ie=function(){return se=!0};l&&(H.scroller.draggable=!0),t.state.draggingText=xe,xe.copy=!L.moveOnDrag,H.scroller.dragDrop&&H.scroller.dragDrop(),Xe(H.wrapper.ownerDocument,"mouseup",xe),Xe(H.wrapper.ownerDocument,"mousemove",Oe),Xe(H.scroller,"dragstart",Ie),Xe(H.scroller,"drop",xe),Va(t),setTimeout(function(){return H.input.focus()},20)}function Tl(t,g,P){if(P=="char")return new _n(g,g);if(P=="word")return t.findWordAt(g);if(P=="line")return new _n(Re(g.line,0),G(t.doc,Re(g.line+1,0)));var L=P(t,g);return new _n(L.from,L.to)}function Du(t,g,P,L){var H=t.display,se=t.doc;Le(g);var xe,Oe,Ie=se.sel,Ke=Ie.ranges;if(L.addNew&&!L.extend?(Oe=se.sel.contains(P),Oe>-1?xe=Ke[Oe]:xe=new _n(P,P)):(xe=se.sel.primary(),Oe=se.sel.primIndex),L.unit=="rectangle")L.addNew||(xe=new _n(P,P)),P=Tn(t,g,!0,!0),Oe=-1;else{var vt=Tl(t,P,L.unit);L.extend?xe=Ks(xe,vt.anchor,vt.head,L.extend):xe=vt}L.addNew?Oe==-1?(Oe=Ke.length,Hi(se,kt(t,Ke.concat([xe]),Oe),{scroll:!1,origin:"*mouse"})):Ke.length>1&&Ke[Oe].empty()&&L.unit=="char"&&!L.extend?(Hi(se,kt(t,Ke.slice(0,Oe).concat(Ke.slice(Oe+1)),0),{scroll:!1,origin:"*mouse"}),Ie=se.sel):bs(se,Oe,xe,fe):(Oe=0,Hi(se,new ei([xe],0),fe),Ie=se.sel);var Ct=P;function Ht(Vn){if(Qe(Ct,Vn)==0)return;if(Ct=Vn,L.unit=="rectangle"){for(var fr=[],Hr=t.options.tabSize,Ir=z(Rn(se,P.line).text,P.ch,Hr),fa=z(Rn(se,Vn.line).text,Vn.ch,Hr),hi=Math.min(Ir,fa),so=Math.max(Ir,fa),Ii=Math.min(P.line,Vn.line),qo=Math.min(t.lastLine(),Math.max(P.line,Vn.line));Ii<=qo;Ii++){var Eo=Rn(se,Ii).text,Gi=we(Eo,hi,Hr);hi==so?fr.push(new _n(Re(Ii,Gi),Re(Ii,Gi))):Eo.length>Gi&&fr.push(new _n(Re(Ii,Gi),Re(Ii,we(Eo,so,Hr))))}fr.length||fr.push(new _n(P,P)),Hi(se,kt(t,Ie.ranges.slice(0,Oe).concat(fr),Oe),{origin:"*mouse",scroll:!1}),t.scrollIntoView(Vn)}else{var Co=xe,mo=Tl(t,Vn,L.unit),Nn=Co.anchor,wi;Qe(mo.anchor,Nn)>0?(wi=mo.head,Nn=rn(Co.from(),mo.anchor)):(wi=mo.anchor,Nn=Vt(Co.to(),mo.head));var xi=Ie.ranges.slice(0);xi[Oe]=Ru(t,new _n(G(se,Nn),wi)),Hi(se,kt(t,xi,Oe),fe)}}var Ft=H.wrapper.getBoundingClientRect(),on=0;function vn(Vn){var fr=++on,Hr=Tn(t,Vn,!0,L.unit=="rectangle");if(!Hr)return;if(Qe(Hr,Ct)!=0){t.curOp.focus=R(),Ht(Hr);var Ir=Qa(H,se);(Hr.line>=Ir.to||Hr.line<Ir.from)&&setTimeout(Pa(t,function(){on==fr&&vn(Vn)}),150)}else{var fa=Vn.clientY<Ft.top?-20:Vn.clientY>Ft.bottom?20:0;fa&&setTimeout(Pa(t,function(){if(on!=fr)return;H.scroller.scrollTop+=fa,vn(Vn)}),50)}}function In(Vn){t.state.selectingText=!1,on=Infinity,Vn&&(Le(Vn),H.input.focus()),_t(H.wrapper.ownerDocument,"mousemove",zn),_t(H.wrapper.ownerDocument,"mouseup",ar),se.history.lastSelOrigin=null}var zn=Pa(t,function(Vn){Vn.buttons===0||!Bt(Vn)?In(Vn):vn(Vn)}),ar=Pa(t,In);t.state.selectingText=ar,Xe(H.wrapper.ownerDocument,"mousemove",zn),Xe(H.wrapper.ownerDocument,"mouseup",ar)}function Ru(t,g){var P=g.anchor,L=g.head,H=Rn(t.doc,P.line);if(Qe(P,L)==0&&P.sticky==L.sticky)return g;var se=wt(H);if(!se)return g;var xe=De(se,P.ch,P.sticky),Oe=se[xe];if(Oe.from!=P.ch&&Oe.to!=P.ch)return g;var Ie=xe+(Oe.from==P.ch==(Oe.level!=1)?0:1);if(Ie==0||Ie==se.length)return g;var Ke;if(L.line!=P.line)Ke=(L.line-P.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var vt=De(se,L.ch,L.sticky),Ct=vt-xe||(L.ch-P.ch)*(Oe.level==1?-1:1);vt==Ie-1||vt==Ie?Ke=Ct<0:Ke=Ct>0}var Ht=se[Ie+(Ke?-1:0)],Ft=Ke==(Ht.level==1),on=Ft?Ht.from:Ht.to,vn=Ft?"after":"before";return P.ch==on&&P.sticky==vn?g:new _n(new Re(P.line,on,vn),L)}function Iu(t,g,P,L){var H,se;if(g.touches)H=g.touches[0].clientX,se=g.touches[0].clientY;else try{H=g.clientX,se=g.clientY}catch(Ht){return!1}if(H>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;L&&Le(g);var xe=t.display,Oe=xe.lineDiv.getBoundingClientRect();if(se>Oe.bottom||!Ze(t,P))return Ne(g);se-=Oe.top-xe.viewOffset;for(var Ie=0;Ie<t.display.gutterSpecs.length;++Ie){var Ke=xe.gutters.childNodes[Ie];if(Ke&&Ke.getBoundingClientRect().right>=H){var vt=Ea(t.doc,se),Ct=t.display.gutterSpecs[Ie];return ct(t,P,t,vt,Ct.className,g),Ne(g)}}}function uu(t,g){return Iu(t,g,"gutterClick",!0)}function cu(t,g){if(_o(t.display,g)||pl(t,g))return;if(lt(t,g,"contextmenu"))return;B||t.display.input.onContextMenu(g)}function pl(t,g){return Ze(t,"gutterContextMenu")?Iu(t,g,"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-"),$t(t)}var Us={toString:function(){return"CodeMirror.Init"}},Mu={},zl={};function tc(t){var g=t.optionHandlers;function P(L,H,se,xe){t.defaults[L]=H,se&&(g[L]=xe?function(Oe,Ie,Ke){Ke!=Us&&se(Oe,Ie,Ke)}:se)}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,Zr(L)},!0),P("indentUnit",2,Zr,!0),P("indentWithTabs",!1),P("smartIndent",!0),P("tabSize",4,function(L){pn(L),$t(L),Mr(L)},!0),P("lineSeparator",null,function(L,H){if(L.doc.lineSep=H,!H)return;var se=[],xe=L.doc.first;L.doc.iter(function(Ie){for(var Ke=0;;){var vt=Ie.text.indexOf(H,Ke);if(vt==-1)break;Ke=vt+H.length,se.push(Re(xe,vt))}xe++});for(var Oe=se.length-1;Oe>=0;Oe--)Er(L.doc,H,se[Oe],Re(se[Oe].line,se[Oe].ch+H.length))}),P("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(L,H,se){L.state.specialChars=new RegExp(H.source+(H.test(" ")?"":"| "),"g"),se!=Us&&L.refresh()}),P("specialCharPlaceholder",ur,function(L){return L.refresh()},!0),P("electricChars",!0),P("inputStyle",i?"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",!v),P("wholeLineUpdateBefore",!0),P("theme","default",function(L){Wl(L),Zi(L)},!0),P("keyMap","default",function(L,H,se){var xe=$i(H),Oe=se!=Us&&$i(se);Oe&&Oe.detach&&Oe.detach(L,xe),xe.attach&&xe.attach(L,Oe||null)}),P("extraKeys",null),P("configureMouse",null),P("lineWrapping",!1,Lu,!0),P("gutters",[],function(L,H){L.display.gutterSpecs=_a(H,L.options.lineNumbers),Zi(L)},!0),P("fixedGutter",!0,function(L,H){L.display.gutters.style.left=H?$r(L.display)+"px":"0",L.refresh()},!0),P("coverGutterNextToScrollbar",!1,function(L){return ji(L)},!0),P("scrollbarStyle","native",function(L){io(L),ji(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=_a(L.options.gutters,H),Zi(L)},!0),P("firstLineNumber",1,Zi,!0),P("lineNumberFormatter",function(L){return L},Zi,!0),P("showCursorWhenSelecting",!1,An,!0),P("resetSelectionOnContextMenu",!0),P("lineWiseCopyCut",!0),P("pasteLinesPerSelection",!0),P("selectionsMayTouch",!1),P("readOnly",!1,function(L,H){H=="nocursor"&&(ra(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,An,!0),P("singleCursorHeightPerLine",!0,An,!0),P("workTime",100),P("workDelay",100),P("flattenSpans",!0,pn,!0),P("addModeClass",!1,pn,!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,pn,!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,g,P){var L=P&&P!=Us;if(!g!=!L){var H=t.display.dragFunctions,se=g?Xe:_t;se(t.display.scroller,"dragstart",H.start),se(t.display.scroller,"dragenter",H.enter),se(t.display.scroller,"dragover",H.over),se(t.display.scroller,"dragleave",H.leave),se(t.display.scroller,"drop",H.drop)}}function Lu(t){t.options.lineWrapping?(U(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(m(t.display.wrapper,"CodeMirror-wrap"),uo(t)),mr(t),Mr(t),$t(t),setTimeout(function(){return ji(t)},100)}function vi(t,g){var P=this;if(!(this instanceof vi))return new vi(t,g);this.options=g=g?K(g):{},K(Mu,g,!1);var L=g.value;typeof L=="string"?L=new Bo(L,g.mode,null,g.lineSeparator,g.direction):g.mode&&(L.modeOption=g.mode),this.doc=L;var H=new vi.inputStyles[g.inputStyle](this),se=this.display=new bo(t,L,H,g);se.wrapper.CodeMirror=this,Wl(this),g.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),io(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 j,keySeq:null,specialChars:null},g.autofocus&&!i&&se.input.focus(),b&&f<11&&setTimeout(function(){return P.display.input.reset(!0)},20),Pu(this),nu(),zi(this),this.curOp.forceUpdate=!0,ha(this,L),g.autofocus&&!i||this.hasFocus()?setTimeout(function(){P.hasFocus()&&!P.state.focused&&Da(P)},20):ra(this);for(var xe in zl)zl.hasOwnProperty(xe)&&zl[xe](this,g[xe],Us);di(this),g.finishInit&&g.finishInit(this);for(var Oe=0;Oe<Gl.length;++Oe)Gl[Oe](this);Ti(this),l&&g.lineWrapping&&getComputedStyle(se.lineDiv).textRendering=="optimizelegibility"&&(se.lineDiv.style.textRendering="auto")}vi.defaults=Mu,vi.optionHandlers=zl;function Pu(t){var g=t.display;Xe(g.scroller,"mousedown",Pa(t,Kl)),b&&f<11?Xe(g.scroller,"dblclick",Pa(t,function(Ie){if(lt(t,Ie))return;var Ke=Tn(t,Ie);if(!Ke||uu(t,Ie)||_o(t.display,Ie))return;Le(Ie);var vt=t.findWordAt(Ke);Bs(t.doc,vt.anchor,vt.head)})):Xe(g.scroller,"dblclick",function(Ie){return lt(t,Ie)||Le(Ie)}),Xe(g.scroller,"contextmenu",function(Ie){return cu(t,Ie)}),Xe(g.input.getField(),"contextmenu",function(Ie){g.scroller.contains(Ie.target)||cu(t,Ie)});var P,L={end:0};function H(){g.activeTouch&&(P=setTimeout(function(){return g.activeTouch=null},1e3),L=g.activeTouch,L.end=+new Date)}function se(Ie){if(Ie.touches.length!=1)return!1;var Ke=Ie.touches[0];return Ke.radiusX<=1&&Ke.radiusY<=1}function xe(Ie,Ke){if(Ke.left==null)return!0;var vt=Ke.left-Ie.left,Ct=Ke.top-Ie.top;return vt*vt+Ct*Ct>20*20}Xe(g.scroller,"touchstart",function(Ie){if(!lt(t,Ie)&&!se(Ie)&&!uu(t,Ie)){g.input.ensurePolled(),clearTimeout(P);var Ke=+new Date;g.activeTouch={start:Ke,moved:!1,prev:Ke-L.end<=300?L:null},Ie.touches.length==1&&(g.activeTouch.left=Ie.touches[0].pageX,g.activeTouch.top=Ie.touches[0].pageY)}}),Xe(g.scroller,"touchmove",function(){g.activeTouch&&(g.activeTouch.moved=!0)}),Xe(g.scroller,"touchend",function(Ie){var Ke=g.activeTouch;if(Ke&&!_o(g,Ie)&&Ke.left!=null&&!Ke.moved&&new Date-Ke.start<300){var vt=t.coordsChar(g.activeTouch,"page"),Ct;!Ke.prev||xe(Ke,Ke.prev)?Ct=new _n(vt,vt):!Ke.prev.prev||xe(Ke,Ke.prev.prev)?Ct=t.findWordAt(vt):Ct=new _n(Re(vt.line,0),G(t.doc,Re(vt.line+1,0))),t.setSelection(Ct.anchor,Ct.head),t.focus(),Le(Ie)}H()}),Xe(g.scroller,"touchcancel",H),Xe(g.scroller,"scroll",function(){g.scroller.clientHeight&&(ho(t,g.scroller.scrollTop),Pi(t,g.scroller.scrollLeft,!0),ct(t,"scroll",t))}),Xe(g.scroller,"mousewheel",function(Ie){return gs(t,Ie)}),Xe(g.scroller,"DOMMouseScroll",function(Ie){return gs(t,Ie)}),Xe(g.wrapper,"scroll",function(){return g.wrapper.scrollTop=g.wrapper.scrollLeft=0}),g.dragFunctions={enter:function(Ie){lt(t,Ie)||$e(Ie)},over:function(Ie){lt(t,Ie)||(Wu(t,Ie),$e(Ie))},start:function(Ie){return tu(t,Ie)},drop:Pa(t,vu),leave:function(Ie){lt(t,Ie)||gu(t)}};var Oe=g.input.getField();Xe(Oe,"keyup",function(Ie){return xu.call(t,Ie)}),Xe(Oe,"keydown",Pa(t,Ql)),Xe(Oe,"keypress",Pa(t,_u)),Xe(Oe,"focus",function(Ie){return Da(t,Ie)}),Xe(Oe,"blur",function(Ie){return ra(t,Ie)})}var Gl=[];vi.defineInitHook=function(t){return Gl.push(t)};function al(t,g,P,L){var H=t.doc,se;P==null&&(P="add"),P=="smart"&&(H.mode.indent?se=Rt(t,g).state:P="prev");var xe=t.options.tabSize,Oe=Rn(H,g),Ie=z(Oe.text,null,xe);Oe.stateAfter&&(Oe.stateAfter=null);var Ke=Oe.text.match(/^\s*/)[0],vt;if(!L&&!/\S/.test(Oe.text))vt=0,P="not";else if(P=="smart"&&(vt=H.mode.indent(se,Oe.text.slice(Ke.length),Oe.text),vt==te||vt>150)){if(!L)return;P="prev"}P=="prev"?g>H.first?vt=z(Rn(H,g-1).text,null,xe):vt=0:P=="add"?vt=Ie+t.options.indentUnit:P=="subtract"?vt=Ie-t.options.indentUnit:typeof P=="number"&&(vt=Ie+P),vt=Math.max(0,vt);var Ct="",Ht=0;if(t.options.indentWithTabs)for(var Ft=Math.floor(vt/xe);Ft;--Ft)Ht+=xe,Ct+=" ";if(Ht<vt&&(Ct+=be(vt-Ht)),Ct!=Ke)return Er(H,Ct,Re(g,0),Re(g,Ke.length),"+input"),Oe.stateAfter=null,!0;for(var on=0;on<H.sel.ranges.length;on++){var vn=H.sel.ranges[on];if(vn.head.line==g&&vn.head.ch<Ke.length){var In=Re(g,Ke.length);bs(H,on,new _n(In,In));break}}}var fs=null;function Bl(t){fs=t}function du(t,g,P,L,H){var se=t.doc;t.display.shift=!1,L||(L=se.sel);var xe=+new Date-200,Oe=H=="paste"||t.state.pasteIncoming>xe,Ie=St(g),Ke=null;if(Oe&&L.ranges.length>1)if(fs&&fs.text.join(`
`)==g){if(L.ranges.length%fs.text.length==0){Ke=[];for(var vt=0;vt<fs.text.length;vt++)Ke.push(se.splitLines(fs.text[vt]))}}else Ie.length==L.ranges.length&&t.options.pasteLinesPerSelection&&(Ke=he(Ie,function(zn){return[zn]}));for(var Ct=t.curOp.updateInput,Ht=L.ranges.length-1;Ht>=0;Ht--){var Ft=L.ranges[Ht],on=Ft.from(),vn=Ft.to();Ft.empty()&&(P&&P>0?on=Re(on.line,on.ch-P):t.state.overwrite&&!Oe?vn=Re(vn.line,Math.min(Rn(se,vn.line).text.length,vn.ch+me(Ie).length)):Oe&&fs&&fs.lineWise&&fs.text.join(`
`)==Ie.join(`
`)&&(on=vn=Re(on.line,0)));var In={from:on,to:vn,text:Ke?Ke[Ht%Ke.length]:Ie,origin:H||(Oe?"paste":t.state.cutIncoming>xe?"cut":"+input")};Mn(t.doc,In),Qr(t,"inputRead",t,In)}g&&!Oe&&Dl(t,g),ao(t),t.curOp.updateInput<2&&(t.curOp.updateInput=Ct),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Ol(t,g){var P=t.clipboardData&&t.clipboardData.getData("Text");if(P)return t.preventDefault(),!g.isReadOnly()&&!g.options.disableInput&&yi(g,function(){return du(g,P,0,null,"paste")}),!0}function Dl(t,g){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 se=t.getModeAt(H.head),xe=!1;if(se.electricChars){for(var Oe=0;Oe<se.electricChars.length;Oe++)if(g.indexOf(se.electricChars.charAt(Oe))>-1){xe=al(t,H.head.line,"smart");break}}else se.electricInput&&(se.electricInput.test(Rn(t.doc,H.head.line).text.slice(0,H.head.ch))&&(xe=al(t,H.head.line,"smart")));xe&&Qr(t,"electricInput",t,H.head.line)}}function hu(t){for(var g=[],P=[],L=0;L<t.doc.sel.ranges.length;L++){var H=t.doc.sel.ranges[L].head.line,se={anchor:Re(H,0),head:Re(H+1,0)};P.push(se),g.push(t.getRange(se.anchor,se.head))}return{text:g,ranges:P}}function fu(t,g,P,L){t.setAttribute("autocorrect",P?"":"off"),t.setAttribute("autocapitalize",L?"":"off"),t.setAttribute("spellcheck",!!g)}function Uu(){var t=_("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),g=_("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?t.style.width="1000px":t.setAttribute("wrap","off"),A&&(t.style.border="1px solid black"),fu(t),g}function ku(t){var g=t.optionHandlers,P=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(L,H){var se=this.options,xe=se[L];if(se[L]==H&&L!="mode")return;se[L]=H,g.hasOwnProperty(L)&&Pa(this,g[L])(this,H,xe),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"]($i(L))},removeKeyMap:function(L){for(var H=this.state.keyMaps,se=0;se<H.length;++se)if(H[se]==L||H[se].name==L)return H.splice(se,1),!0},addOverlay:ci(function(L,H){var se=L.token?L:t.getMode(this.options,L);if(se.startState)throw new Error("Overlays may not be stateful.");ie(this.state.overlays,{mode:se,modeSpec:L,opaque:H&&H.opaque,priority:H&&H.priority||0},function(xe){return xe.priority}),this.state.modeGen++,Mr(this)}),removeOverlay:ci(function(L){for(var H=this.state.overlays,se=0;se<H.length;++se){var xe=H[se].modeSpec;if(xe==L||typeof L=="string"&&xe.name==L){H.splice(se,1),this.state.modeGen++,Mr(this);return}}}),indentLine:ci(function(L,H,se){typeof H!="string"&&typeof H!="number"&&(H==null?H=this.options.smartIndent?"smart":"prev":H=H?"add":"subtract"),Za(this.doc,L)&&al(this,L,H,se)}),indentSelection:ci(function(L){for(var H=this.doc.sel.ranges,se=-1,xe=0;xe<H.length;xe++){var Oe=H[xe];if(Oe.empty())Oe.head.line>se&&(al(this,Oe.head.line,L,!0),se=Oe.head.line,xe==this.doc.sel.primIndex&&ao(this));else{var Ie=Oe.from(),Ke=Oe.to(),vt=Math.max(se,Ie.line);se=Math.min(this.lastLine(),Ke.line-(Ke.ch?0:1))+1;for(var Ct=vt;Ct<se;++Ct)al(this,Ct,L);var Ht=this.doc.sel.ranges;Ie.ch==0&&H.length==Ht.length&&Ht[xe].from().ch>0&&bs(this.doc,xe,new _n(Ie,Ht[xe].to()),oe)}}}),getTokenAt:function(L,H){return $n(this,L,H)},getLineTokens:function(L,H){return $n(this,Re(L),H,!0)},getTokenTypeAt:function(L){L=G(this.doc,L);var H=Kt(this,Rn(this.doc,L.line)),se=0,xe=(H.length-1)/2,Oe=L.ch,Ie;if(Oe==0)Ie=H[2];else for(;;){var Ke=se+xe>>1;if((Ke?H[Ke*2-1]:0)>=Oe)xe=Ke;else if(H[Ke*2+1]<Oe)se=Ke+1;else{Ie=H[Ke*2+2];break}}var vt=Ie?Ie.indexOf("overlay "):-1;return vt<0?Ie:vt==0?null:Ie.slice(0,vt-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 se=[];if(!P.hasOwnProperty(H))return se;var xe=P[H],Oe=this.getModeAt(L);if(typeof Oe[H]=="string")xe[Oe[H]]&&se.push(xe[Oe[H]]);else if(Oe[H])for(var Ie=0;Ie<Oe[H].length;Ie++){var Ke=xe[Oe[H][Ie]];Ke&&se.push(Ke)}else Oe.helperType&&xe[Oe.helperType]?se.push(xe[Oe.helperType]):xe[Oe.name]&&se.push(xe[Oe.name]);for(var vt=0;vt<xe._global.length;vt++){var Ct=xe._global[vt];Ct.pred(Oe,this)&&Q(se,Ct.val)==-1&&se.push(Ct.val)}return se},getStateAfter:function(L,H){var se=this.doc;return L=ve(se,L==null?se.first+se.size-1:L),Rt(this,L+1,H).state},cursorCoords:function(L,H){var se,xe=this.doc.sel.primary();return L==null?se=xe.head:typeof L=="object"?se=G(this.doc,L):se=L?xe.from():xe.to(),an(this,se,H||"page")},charCoords:function(L,H){return Gn(this,G(this.doc,L),H||"page")},coordsChar:function(L,H){return L=Ln(this,L,H||"page"),Cn(this,L.left,L.top)},lineAtHeight:function(L,H){return L=Ln(this,{top:L,left:0},H||"page").top,Ea(this.doc,L+this.display.viewOffset)},heightAtLine:function(L,H,se){var xe=!1,Oe;if(typeof L=="number"){var Ie=this.doc.first+this.doc.size-1;L<this.doc.first?L=this.doc.first:L>Ie&&(L=Ie,xe=!0),Oe=Rn(this.doc,L)}else Oe=L;return yn(this,Oe,{top:0,left:0},H||"page",se||xe).top+(xe?this.doc.height-Fi(Oe):0)},defaultTextHeight:function(){return kr(this.display)},defaultCharWidth:function(){return Qn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(L,H,se,xe,Oe){var Ie=this.display;L=an(this,G(this.doc,L));var Ke=L.bottom,vt=L.left;if(H.style.position="absolute",H.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(H),Ie.sizer.appendChild(H),xe=="over")Ke=L.top;else if(xe=="above"||xe=="near"){var Ct=Math.max(Ie.wrapper.clientHeight,this.doc.height),Ht=Math.max(Ie.sizer.clientWidth,Ie.lineSpace.clientWidth);(xe=="above"||L.bottom+H.offsetHeight>Ct)&&L.top>H.offsetHeight?Ke=L.top-H.offsetHeight:L.bottom+H.offsetHeight<=Ct&&(Ke=L.bottom),vt+H.offsetWidth>Ht&&(vt=Ht-H.offsetWidth)}H.style.top=Ke+"px",H.style.left=H.style.right="",Oe=="right"?(vt=Ie.sizer.clientWidth-H.offsetWidth,H.style.right="0px"):(Oe=="left"?vt=0:Oe=="middle"&&(vt=(Ie.sizer.clientWidth-H.offsetWidth)/2),H.style.left=vt+"px"),se&&Ri(this,{left:vt,top:Ke,right:vt+H.offsetWidth,bottom:Ke+H.offsetHeight})},triggerOnKeyDown:ci(Ql),triggerOnKeyPress:ci(_u),triggerOnKeyUp:xu,triggerOnMouseDown:ci(Kl),execCommand:function(L){if(xl.hasOwnProperty(L))return xl[L].call(null,this)},triggerElectric:ci(function(L){Dl(this,L)}),findPosH:function(L,H,se,xe){var Oe=1;H<0&&(Oe=-1,H=-H);for(var Ie=G(this.doc,L),Ke=0;Ke<H&&!(Ie=Vl(this.doc,Ie,Oe,se,xe),Ie.hitSide);++Ke);return Ie},moveH:ci(function(L,H){var se=this;this.extendSelectionsBy(function(xe){return se.display.shift||se.doc.extend||xe.empty()?Vl(se.doc,xe.head,L,H,se.options.rtlMoveVisually):L<0?xe.from():xe.to()},le)}),deleteH:ci(function(L,H){var se=this.doc.sel,xe=this.doc;se.somethingSelected()?xe.replaceSelection("",null,"+delete"):Os(this,function(Oe){var Ie=Vl(xe,Oe.head,L,H,!1);return L<0?{from:Ie,to:Oe.head}:{from:Oe.head,to:Ie}})}),findPosV:function(L,H,se,xe){var Oe=1,Ie=xe;H<0&&(Oe=-1,H=-H);for(var Ke=G(this.doc,L),vt=0;vt<H;++vt){var Ct=an(this,Ke,"div");if(Ie==null?Ie=Ct.left:Ct.left=Ie,Ke=Fu(this,Ct,Oe,se),Ke.hitSide)break}return Ke},moveV:ci(function(L,H){var se=this,xe=this.doc,Oe=[],Ie=!this.display.shift&&!xe.extend&&xe.sel.somethingSelected();if(xe.extendSelectionsBy(function(vt){if(Ie)return L<0?vt.from():vt.to();var Ct=an(se,vt.head,"div");vt.goalColumn!=null&&(Ct.left=vt.goalColumn),Oe.push(Ct.left);var Ht=Fu(se,Ct,L,H);return H=="page"&&vt==xe.sel.primary()&&Po(se,Gn(se,Ht,"div").top-Ct.top),Ht},le),Oe.length)for(var Ke=0;Ke<xe.sel.ranges.length;Ke++)xe.sel.ranges[Ke].goalColumn=Oe[Ke]}),findWordAt:function(L){var H=this.doc,se=Rn(H,L.line).text,xe=L.ch,Oe=L.ch;if(se){var Ie=this.getHelper(L,"wordChars");(L.sticky=="before"||Oe==se.length)&&xe?--xe:++Oe;for(var Ke=se.charAt(xe),vt=ke(Ke,Ie)?function(Ct){return ke(Ct,Ie)}:/\s/.test(Ke)?function(Ct){return/\s/.test(Ct)}:function(Ct){return!/\s/.test(Ct)&&!ke(Ct)};xe>0&&vt(se.charAt(xe-1));)--xe;for(;Oe<se.length&&vt(se.charAt(Oe));)++Oe}return new _n(Re(L.line,xe),Re(L.line,Oe))},toggleOverwrite:function(L){if(L!=null&&L==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?U(this.display.cursorDiv,"CodeMirror-overwrite"):m(this.display.cursorDiv,"CodeMirror-overwrite"),ct(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==R()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:ci(function(L,H){Li(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:Te(this),clientWidth:Je(this)}},scrollIntoView:ci(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:Re(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?Ni(this,L):co(this,L.from,L.to,L.margin)}),setSize:ci(function(L,H){var se=this,xe=function(Ie){return typeof Ie=="number"||/^\d+$/.test(String(Ie))?Ie+"px":Ie};L!=null&&(this.display.wrapper.style.width=xe(L)),H!=null&&(this.display.wrapper.style.height=xe(H)),this.options.lineWrapping&&Xt(this);var Oe=this.display.viewFrom;this.doc.iter(Oe,this.display.viewTo,function(Ie){if(Ie.widgets){for(var Ke=0;Ke<Ie.widgets.length;Ke++)if(Ie.widgets[Ke].noHScroll){Fn(se,Oe,"widget");break}}++Oe}),this.curOp.forceUpdate=!0,ct(this,"refresh",this)}),operation:function(L){return yi(this,L)},startOperation:function(){return zi(this)},endOperation:function(){return Ti(this)},refresh:ci(function(){var L=this.display.cachedTextHeight;Mr(this),this.curOp.forceUpdate=!0,$t(this),Li(this,this.doc.scrollLeft,this.doc.scrollTop),rs(this.display),(L==null||Math.abs(L-kr(this.display))>.5||this.options.lineWrapping)&&mr(this),ct(this,"refresh",this)}),swapDoc:ci(function(L){var H=this.doc;return H.cm=null,this.state.selectingText&&this.state.selectingText(),ha(this,L),$t(this),this.display.input.reset(),Li(this,L.scrollLeft,L.scrollTop),this.curOp.forceScroll=!0,Qr(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}},qe(t),t.registerHelper=function(L,H,se){P.hasOwnProperty(L)||(P[L]=t[L]={_global:[]}),P[L][H]=se},t.registerGlobalHelper=function(L,H,se,xe){t.registerHelper(L,H,xe),P[L]._global.push({pred:se,val:xe})}}function Vl(t,g,P,L,H){var se=g,xe=P,Oe=Rn(t,g.line),Ie=H&&t.direction=="rtl"?-P:P;function Ke(){var ar=g.line+Ie;return ar<t.first||ar>=t.first+t.size?!1:(g=new Re(ar,g.ch,g.sticky),Oe=Rn(t,ar))}function vt(ar){var Vn;if(L=="codepoint"){var fr=Oe.text.charCodeAt(g.ch+(L>0?0:-1));isNaN(fr)?Vn=null:Vn=new Re(g.line,Math.max(0,Math.min(Oe.text.length,g.ch+P*(fr>=55296&&fr<56320?2:1))),-P)}else H?Vn=ou(t.cm,Oe,g,P):Vn=iu(Oe,g,P);if(Vn==null)if(!ar&&Ke())g=Nl(H,t.cm,Oe,g.line,Ie);else return!1;else g=Vn;return!0}if(L=="char"||L=="codepoint")vt();else if(L=="column")vt(!0);else if(L=="word"||L=="group")for(var Ct=null,Ht=L=="group",Ft=t.cm&&t.cm.getHelper(g,"wordChars"),on=!0;!(P<0&&!vt(!on));on=!1){var vn=Oe.text.charAt(g.ch)||`
`,In=ke(vn,Ft)?"w":Ht&&vn==`
`?"n":!Ht||/\s/.test(vn)?null:"p";if(Ht&&!on&&!In&&(In="s"),Ct&&Ct!=In){P<0&&(P=1,vt(),g.sticky="after");break}if(In&&(Ct=In),P>0&&!vt(!on))break}var zn=Vr(t,g,se,xe,!0);return it(se,zn)&&(zn.hitSide=!0),zn}function Fu(t,g,P,L){var H=t.doc,se=g.left,xe;if(L=="page"){var Oe=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Ie=Math.max(Oe-.5*kr(t.display),3);xe=(P>0?g.bottom:g.top)+P*Ie}else L=="line"&&(xe=P>0?g.bottom+3:g.top-3);for(var Ke;!(Ke=Cn(t,se,xe),!Ke.outside);){if(P<0?xe<=0:xe>=H.height){Ke.hitSide=!0;break}xe+=P*5}return Ke}var ni=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new j,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ni.prototype.init=function(t){var g=this,P=this,L=P.cm,H=P.div=t.lineDiv;fu(H,L.options.spellcheck,L.options.autocorrect,L.options.autocapitalize);function se(Oe){for(var Ie=Oe.target;Ie;Ie=Ie.parentNode){if(Ie==H)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Ie.className))break}return!1}Xe(H,"paste",function(Oe){if(!se(Oe)||lt(L,Oe)||Ol(Oe,L))return;f<=11&&setTimeout(Pa(L,function(){return g.updateFromDOM()}),20)}),Xe(H,"compositionstart",function(Oe){g.composing={data:Oe.data,done:!1}}),Xe(H,"compositionupdate",function(Oe){g.composing||(g.composing={data:Oe.data,done:!1})}),Xe(H,"compositionend",function(Oe){g.composing&&(Oe.data!=g.composing.data&&g.readFromDOMSoon(),g.composing.done=!0)}),Xe(H,"touchstart",function(){return P.forceCompositionEnd()}),Xe(H,"input",function(){g.composing||g.readFromDOMSoon()});function xe(Oe){if(!se(Oe)||lt(L,Oe))return;if(L.somethingSelected())Bl({lineWise:!1,text:L.getSelections()}),Oe.type=="cut"&&L.replaceSelection("",null,"cut");else if(L.options.lineWiseCopyCut){var Ie=hu(L);Bl({lineWise:!0,text:Ie.text}),Oe.type=="cut"&&L.operation(function(){L.setSelections(Ie.ranges,0,oe),L.replaceSelection("",null,"cut")})}else return;if(Oe.clipboardData){Oe.clipboardData.clearData();var Ke=fs.text.join(`
`);if(Oe.clipboardData.setData("Text",Ke),Oe.clipboardData.getData("Text")==Ke){Oe.preventDefault();return}}var vt=Uu(),Ct=vt.firstChild;L.display.lineSpace.insertBefore(vt,L.display.lineSpace.firstChild),Ct.value=fs.text.join(`
`);var Ht=document.activeElement;Y(Ct),setTimeout(function(){L.display.lineSpace.removeChild(vt),Ht.focus(),Ht==H&&P.showPrimarySelection()},50)}Xe(H,"copy",xe),Xe(H,"cut",xe)},ni.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},ni.prototype.prepareSelection=function(){var t=sn(this.cm,!1);return t.focus=document.activeElement==this.div,t},ni.prototype.showSelection=function(t,g){if(!t||!this.cm.display.view.length)return;(t.focus||g)&&this.showPrimarySelection(),this.showMultipleSelections(t)},ni.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ni.prototype.showPrimarySelection=function(){var t=this.getSelection(),g=this.cm,P=g.doc.sel.primary(),L=P.from(),H=P.to();if(g.display.viewTo==g.display.viewFrom||L.line>=g.display.viewTo||H.line<g.display.viewFrom){t.removeAllRanges();return}var se=ks(g,t.anchorNode,t.anchorOffset),xe=ks(g,t.focusNode,t.focusOffset);if(se&&!se.bad&&xe&&!xe.bad&&Qe(rn(se,xe),L)==0&&Qe(Vt(se,xe),H)==0)return;var Oe=g.display.view,Ie=L.line>=g.display.viewFrom&&il(g,L)||{node:Oe[0].measure.map[2],offset:0},Ke=H.line<g.display.viewTo&&il(g,H);if(!Ke){var vt=Oe[Oe.length-1].measure,Ct=vt.maps?vt.maps[vt.maps.length-1]:vt.map;Ke={node:Ct[Ct.length-1],offset:Ct[Ct.length-2]-Ct[Ct.length-3]}}if(!Ie||!Ke){t.removeAllRanges();return}var Ht=t.rangeCount&&t.getRangeAt(0),Ft;try{Ft=T(Ie.node,Ie.offset,Ke.offset,Ke.node)}catch(on){}Ft&&(!M&&g.state.focused?(t.collapse(Ie.node,Ie.offset),Ft.collapsed||(t.removeAllRanges(),t.addRange(Ft))):(t.removeAllRanges(),t.addRange(Ft)),Ht&&t.anchorNode==null?t.addRange(Ht):M&&this.startGracePeriod()),this.rememberSelection()},ni.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)},ni.prototype.showMultipleSelections=function(t){o(this.cm.display.cursorDiv,t.cursors),o(this.cm.display.selectionDiv,t.selection)},ni.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},ni.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var g=t.getRangeAt(0).commonAncestorContainer;return O(this.div,g)},ni.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ni.prototype.blur=function(){this.div.blur()},ni.prototype.getField=function(){return this.div},ni.prototype.supportsTouch=function(){return!0},ni.prototype.receivedFocus=function(){var t=this;this.selectionInEditor()?this.pollSelection():yi(this.cm,function(){return t.cm.curOp.selectionChanged=!0});function g(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,g))}this.polling.set(this.cm.options.pollInterval,g)},ni.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},ni.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var t=this.getSelection(),g=this.cm;if(d&&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(g,t.anchorNode,t.anchorOffset),L=ks(g,t.focusNode,t.focusOffset);P&&L&&yi(g,function(){Hi(g.doc,Zt(P,L),oe),(P.bad||L.bad)&&(g.curOp.selectionChanged=!0)})},ni.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,g=t.display,P=t.doc.sel.primary(),L=P.from(),H=P.to();if(L.ch==0&&L.line>t.firstLine()&&(L=Re(L.line-1,Rn(t.doc,L.line-1).length)),H.ch==Rn(t.doc,H.line).text.length&&H.line<t.lastLine()&&(H=Re(H.line+1,0)),L.line<g.viewFrom||H.line>g.viewTo-1)return!1;var se,xe,Oe;L.line==g.viewFrom||(se=tr(t,L.line))==0?(xe=Kr(g.view[0].line),Oe=g.view[0].node):(xe=Kr(g.view[se].line),Oe=g.view[se-1].node.nextSibling);var Ie=tr(t,H.line),Ke,vt;if(Ie==g.view.length-1?(Ke=g.viewTo-1,vt=g.lineDiv.lastChild):(Ke=Kr(g.view[Ie+1].line)-1,vt=g.view[Ie+1].node.previousSibling),!Oe)return!1;for(var Ct=t.doc.splitLines(ol(t,Oe,vt,xe,Ke)),Ht=ea(t.doc,Re(xe,0),Re(Ke,Rn(t.doc,Ke).text.length));Ct.length>1&&Ht.length>1;)if(me(Ct)==me(Ht))Ct.pop(),Ht.pop(),Ke--;else if(Ct[0]==Ht[0])Ct.shift(),Ht.shift(),xe++;else break;for(var Ft=0,on=0,vn=Ct[0],In=Ht[0],zn=Math.min(vn.length,In.length);Ft<zn&&vn.charCodeAt(Ft)==In.charCodeAt(Ft);)++Ft;for(var ar=me(Ct),Vn=me(Ht),fr=Math.min(ar.length-(Ct.length==1?Ft:0),Vn.length-(Ht.length==1?Ft:0));on<fr&&ar.charCodeAt(ar.length-on-1)==Vn.charCodeAt(Vn.length-on-1);)++on;if(Ct.length==1&&Ht.length==1&&xe==L.line)for(;Ft&&Ft>L.ch&&ar.charCodeAt(ar.length-on-1)==Vn.charCodeAt(Vn.length-on-1);)Ft--,on++;Ct[Ct.length-1]=ar.slice(0,ar.length-on).replace(/^\u200b+/,""),Ct[0]=Ct[0].slice(Ft).replace(/\u200b+$/,"");var Hr=Re(xe,Ft),Ir=Re(Ke,Ht.length?me(Ht).length-on:0);if(Ct.length>1||Ct[0]||Qe(Hr,Ir))return Er(t.doc,Ct,Hr,Ir,"+input"),!0},ni.prototype.ensurePolled=function(){this.forceCompositionEnd()},ni.prototype.reset=function(){this.forceCompositionEnd()},ni.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},ni.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)},ni.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&yi(this.cm,function(){return Mr(t.cm)})},ni.prototype.setUneditable=function(t){t.contentEditable="false"},ni.prototype.onKeyPress=function(t){if(t.charCode==0||this.composing)return;t.preventDefault(),this.cm.isReadOnly()||Pa(this.cm,du)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0)},ni.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},ni.prototype.onContextMenu=function(){},ni.prototype.resetPosition=function(){},ni.prototype.needsContentAttribute=!0;function il(t,g){var P=st(t,g.line);if(!P||P.hidden)return null;var L=Rn(t.doc,g.line),H=Be(P,L,g.line),se=wt(L,t.doc.direction),xe="left";if(se){var Oe=De(se,g.ch);xe=Oe%2?"right":"left"}var Ie=zt(H.map,g.ch,xe);return Ie.offset=Ie.collapse=="right"?Ie.end:Ie.start,Ie}function Nu(t){for(var g=t;g;g=g.parentNode)if(/CodeMirror-gutter-wrapper/.test(g.className))return!0;return!1}function Ci(t,g){return g&&(t.bad=!0),t}function ol(t,g,P,L,H){var se="",xe=!1,Oe=t.doc.lineSeparator(),Ie=!1;function Ke(Ft){return function(on){return on.id==Ft}}function vt(){xe&&(se+=Oe,Ie&&(se+=Oe),xe=Ie=!1)}function Ct(Ft){Ft&&(vt(),se+=Ft)}function Ht(Ft){if(Ft.nodeType==1){var on=Ft.getAttribute("cm-text");if(on){Ct(on);return}var vn=Ft.getAttribute("cm-marker"),In;if(vn){var zn=t.findMarks(Re(L,0),Re(H+1,0),Ke(+vn));zn.length&&(In=zn[0].find(0))&&Ct(ea(t.doc,In.from,In.to).join(Oe));return}if(Ft.getAttribute("contenteditable")=="false")return;var ar=/^(pre|div|p|li|table|br)$/i.test(Ft.nodeName);if(!/^br$/i.test(Ft.nodeName)&&Ft.textContent.length==0)return;ar&&vt();for(var Vn=0;Vn<Ft.childNodes.length;Vn++)Ht(Ft.childNodes[Vn]);/^(pre|p)$/i.test(Ft.nodeName)&&(Ie=!0),ar&&(xe=!0)}else Ft.nodeType==3&&Ct(Ft.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(Ht(g),g==P);)g=g.nextSibling,Ie=!1;return se}function ks(t,g,P){var L;if(g==t.display.lineDiv){if(L=t.display.lineDiv.childNodes[P],!L)return Ci(t.clipPos(Re(t.display.viewTo-1)),!0);g=null,P=0}else for(L=g;;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 se=t.display.view[H];if(se.node==L)return Xs(se,g,P)}}function Xs(t,g,P){var L=t.text.firstChild,H=!1;if(!g||!O(L,g))return Ci(Re(Kr(t.line),0),!0);if(g==L&&(H=!0,g=L.childNodes[P],P=0,!g)){var se=t.rest?me(t.rest):t.line;return Ci(Re(Kr(se),se.text.length),H)}var xe=g.nodeType==3?g:null,Oe=g;for(!xe&&g.childNodes.length==1&&g.firstChild.nodeType==3&&(xe=g.firstChild,P&&(P=xe.nodeValue.length));Oe.parentNode!=L;)Oe=Oe.parentNode;var Ie=t.measure,Ke=Ie.maps;function vt(In,zn,ar){for(var Vn=-1;Vn<(Ke?Ke.length:0);Vn++)for(var fr=Vn<0?Ie.map:Ke[Vn],Hr=0;Hr<fr.length;Hr+=3){var Ir=fr[Hr+2];if(Ir==In||Ir==zn){var fa=Kr(Vn<0?t.line:t.rest[Vn]),hi=fr[Hr]+ar;return(ar<0||Ir!=In)&&(hi=fr[Hr+(ar?1:0)]),Re(fa,hi)}}}var Ct=vt(xe,Oe,P);if(Ct)return Ci(Ct,H);for(var Ht=Oe.nextSibling,Ft=xe?xe.nodeValue.length-P:0;Ht;Ht=Ht.nextSibling){if(Ct=vt(Ht,Ht.firstChild,0),Ct)return Ci(Re(Ct.line,Ct.ch-Ft),H);Ft+=Ht.textContent.length}for(var on=Oe.previousSibling,vn=P;on;on=on.previousSibling){if(Ct=vt(on,on.firstChild,-1),Ct)return Ci(Re(Ct.line,Ct.ch+vn),H);vn+=on.textContent.length}}var oi=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new j,this.hasSelection=!1,this.composing=null};oi.prototype.init=function(t){var g=this,P=this,L=this.cm;this.createField(t);var H=this.textarea;t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),A&&(H.style.width="0px"),Xe(H,"input",function(){b&&f>=9&&g.hasSelection&&(g.hasSelection=null),P.poll()}),Xe(H,"paste",function(xe){if(lt(L,xe)||Ol(xe,L))return;L.state.pasteIncoming=+new Date,P.fastPoll()});function se(xe){if(lt(L,xe))return;if(L.somethingSelected())Bl({lineWise:!1,text:L.getSelections()});else if(L.options.lineWiseCopyCut){var Oe=hu(L);Bl({lineWise:!0,text:Oe.text}),xe.type=="cut"?L.setSelections(Oe.ranges,null,oe):(P.prevInput="",H.value=Oe.text.join(`
`),Y(H))}else return;xe.type=="cut"&&(L.state.cutIncoming=+new Date)}Xe(H,"cut",se),Xe(H,"copy",se),Xe(t.scroller,"paste",function(xe){if(_o(t,xe)||lt(L,xe))return;if(!H.dispatchEvent){L.state.pasteIncoming=+new Date,P.focus();return}var Oe=new Event("paste");Oe.clipboardData=xe.clipboardData,H.dispatchEvent(Oe)}),Xe(t.lineSpace,"selectstart",function(xe){_o(t,xe)||Le(xe)}),Xe(H,"compositionstart",function(){var xe=L.getCursor("from");P.composing&&P.composing.range.clear(),P.composing={start:xe,range:L.markText(xe,L.getCursor("to"),{className:"CodeMirror-composing"})}}),Xe(H,"compositionend",function(){P.composing&&(P.poll(),P.composing.range.clear(),P.composing=null)})},oi.prototype.createField=function(t){this.wrapper=Uu(),this.textarea=this.wrapper.firstChild},oi.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},oi.prototype.prepareSelection=function(){var t=this.cm,g=t.display,P=t.doc,L=sn(t);if(t.options.moveInputWithCursor){var H=an(t,P.sel.primary().head,"div"),se=g.wrapper.getBoundingClientRect(),xe=g.lineDiv.getBoundingClientRect();L.teTop=Math.max(0,Math.min(g.wrapper.clientHeight-10,H.top+xe.top-se.top)),L.teLeft=Math.max(0,Math.min(g.wrapper.clientWidth-10,H.left+xe.left-se.left))}return L},oi.prototype.showSelection=function(t){var g=this.cm,P=g.display;o(P.cursorDiv,t.cursors),o(P.selectionDiv,t.selection),t.teTop!=null&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},oi.prototype.reset=function(t){if(this.contextMenuPending||this.composing)return;var g=this.cm;if(g.somethingSelected()){this.prevInput="";var P=g.getSelection();this.textarea.value=P,g.state.focused&&Y(this.textarea),b&&f>=9&&(this.hasSelection=P)}else t||(this.prevInput=this.textarea.value="",b&&f>=9&&(this.hasSelection=null))},oi.prototype.getField=function(){return this.textarea},oi.prototype.supportsTouch=function(){return!1},oi.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!i||R()!=this.textarea))try{this.textarea.focus()}catch(t){}},oi.prototype.blur=function(){this.textarea.blur()},oi.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},oi.prototype.receivedFocus=function(){this.slowPoll()},oi.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()})},oi.prototype.fastPoll=function(){var t=!1,g=this;g.pollingFast=!0;function P(){var L=g.poll();!L&&!t?(t=!0,g.polling.set(60,P)):(g.pollingFast=!1,g.slowPoll())}g.polling.set(20,P)},oi.prototype.poll=function(){var t=this,g=this.cm,P=this.textarea,L=this.prevInput;if(this.contextMenuPending||!g.state.focused||dt(P)&&!L&&!this.composing||g.isReadOnly()||g.options.disableInput||g.state.keySeq)return!1;var H=P.value;if(H==L&&!g.somethingSelected())return!1;if(b&&f>=9&&this.hasSelection===H||h&&/[\uf700-\uf7ff]/.test(H))return g.display.input.reset(),!1;if(g.doc.sel==g.display.selForContextMenu){var se=H.charCodeAt(0);if(se==8203&&!L&&(L="\u200B"),se==8666)return this.reset(),this.cm.execCommand("undo")}for(var xe=0,Oe=Math.min(L.length,H.length);xe<Oe&&L.charCodeAt(xe)==H.charCodeAt(xe);)++xe;return yi(g,function(){du(g,H.slice(xe),L.length-xe,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=g.markText(t.composing.start,g.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},oi.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},oi.prototype.onKeyPress=function(){b&&f>=9&&(this.hasSelection=null),this.fastPoll()},oi.prototype.onContextMenu=function(t){var g=this,P=g.cm,L=P.display,H=g.textarea;g.contextMenuPending&&g.contextMenuPending();var se=Tn(P,t),xe=L.scroller.scrollTop;if(!se||e)return;var Oe=P.options.resetSelectionOnContextMenu;Oe&&P.doc.sel.contains(se)==-1&&Pa(P,Hi)(P.doc,Zt(se),oe);var Ie=H.style.cssText,Ke=g.wrapper.style.cssText,vt=g.wrapper.offsetParent.getBoundingClientRect();g.wrapper.style.cssText="position: static",H.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(t.clientY-vt.top-5)+"px; left: "+(t.clientX-vt.left-5)+`px;
z-index: 1000; background: `+(b?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Ct;l&&(Ct=window.scrollY),L.input.focus(),l&&window.scrollTo(null,Ct),L.input.reset(),P.somethingSelected()||(H.value=g.prevInput=" "),g.contextMenuPending=Ft,L.selForContextMenu=P.doc.sel,clearTimeout(L.detectingSelectAll);function Ht(){if(H.selectionStart!=null){var vn=P.somethingSelected(),In="\u200B"+(vn?H.value:"");H.value="\u21DA",H.value=In,g.prevInput=vn?"":"\u200B",H.selectionStart=1,H.selectionEnd=In.length,L.selForContextMenu=P.doc.sel}}function Ft(){if(g.contextMenuPending!=Ft)return;if(g.contextMenuPending=!1,g.wrapper.style.cssText=Ke,H.style.cssText=Ie,b&&f<9&&L.scrollbars.setScrollTop(L.scroller.scrollTop=xe),H.selectionStart!=null){(!b||b&&f<9)&&Ht();var vn=0,In=function(){L.selForContextMenu==P.doc.sel&&H.selectionStart==0&&H.selectionEnd>0&&g.prevInput=="\u200B"?Pa(P,ua)(P):vn++<10?L.detectingSelectAll=setTimeout(In,500):(L.selForContextMenu=null,L.input.reset())};L.detectingSelectAll=setTimeout(In,200)}}if(b&&f>=9&&Ht(),B){$e(t);var on=function(){_t(window,"mouseup",on),setTimeout(Ft,20)};Xe(window,"mouseup",on)}else setTimeout(Ft,50)},oi.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},oi.prototype.setUneditable=function(){},oi.prototype.needsContentAttribute=!1;function Rl(t,g){if(g=g?K(g):{},g.value=t.value,!g.tabindex&&t.tabIndex&&(g.tabindex=t.tabIndex),!g.placeholder&&t.placeholder&&(g.placeholder=t.placeholder),g.autofocus==null){var P=R();g.autofocus=P==t||t.getAttribute("autofocus")!=null&&P==document.body}function L(){t.value=Oe.getValue()}var H;if(t.form&&(Xe(t.form,"submit",L),!g.leaveSubmitMethodAlone)){var se=t.form;H=se.submit;try{var xe=se.submit=function(){L(),se.submit=H,se.submit(),se.submit=xe}}catch(Ie){}}g.finishInit=function(Ie){Ie.save=L,Ie.getTextArea=function(){return t},Ie.toTextArea=function(){Ie.toTextArea=isNaN,L(),t.parentNode.removeChild(Ie.getWrapperElement()),t.style.display="",t.form&&(_t(t.form,"submit",L),!g.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=H))}},t.style.display="none";var Oe=vi(function(Ie){return t.parentNode.insertBefore(Ie,t.nextSibling)},g);return Oe}function Fs(t){t.off=_t,t.on=Xe,t.wheelEventPixels=Ss,t.Doc=Bo,t.splitLines=St,t.countColumn=z,t.findColumn=we,t.isWordChar=Me,t.Pass=te,t.signal=ct,t.Line=Mi,t.changeEnd=bn,t.scrollbarModel=Xa,t.Pos=Re,t.cmpPos=Qe,t.modes=Ot,t.mimeModes=Et,t.resolveMode=bt,t.getMode=Gt,t.modeExtensions=un,t.extendMode=jn,t.copyState=Bn,t.startState=zr,t.innerMode=Nr,t.commands=xl,t.keyMap=Ps,t.keyName=ru,t.isModifierKey=bu,t.lookupKey=rl,t.normalizeKeyMap=Xu,t.StringStream=_r,t.SharedTextMarker=tl,t.TextMarker=as,t.LineWidget=zo,t.e_preventDefault=Le,t.e_stopPropagation=je,t.e_stop=$e,t.addClass=U,t.contains=O,t.rmClass=m,t.keyNames=Gs}tc(vi),ku(vi);var ju="iter insert remove copy getEditor constructor".split(" ");for(var Il in Bo.prototype)Bo.prototype.hasOwnProperty(Il)&&Q(ju,Il)<0&&(vi.prototype[Il]=function(t){return function(){return t.apply(this.doc,arguments)}}(Bo.prototype[Il]));return qe(Bo),vi.inputStyles={textarea:oi,contenteditable:ni},vi.defineMode=function(t){!vi.defaults.mode&&t!="null"&&(vi.defaults.mode=t),Ut.apply(this,arguments)},vi.defineMIME=Wt,vi.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),vi.defineMIME("text/plain","null"),vi.defineExtension=function(t,g){vi.prototype[t]=g},vi.defineDocExtension=function(t,g){Bo.prototype[t]=g},vi.fromTextArea=Rl,Fs(vi),vi.version="5.58.2",vi})},W6BS:function(We,Ce){We.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(We,Ce){We.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(We,Ce,I){We.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(We,Ce,I){"use strict";var ae=I("rePB"),V=I("Ff2n"),M=I("VTBJ"),p=I("1OyB"),E=I("vuIU"),C=I("JX7q"),b=I("Ji7U"),f=I("LK+K"),l=I("q1tI"),r=I("TSYQ"),n=I.n(r),e=I("sboe"),s=I("OZM5"),u=function(B){var w=B.prefixCls,m=B.level,c=B.isStart,o=B.isEnd;if(!m)return null;for(var _="".concat(w,"-indent-unit"),D=[],T=0;T<m;T+=1){var O;D.push(l.createElement("span",{key:T,className:n()(_,(O={},Object(ae.a)(O,"".concat(_,"-start"),c[T+1]),Object(ae.a)(O,"".concat(_,"-end"),o[T+1]),Object(ae.a)(O,"".concat(_,"-end-first-level"),!T&&o[0]),O))}))}return l.createElement("span",{"aria-hidden":"true",className:"".concat(w,"-indent")},D)},a=u,A=I("815F"),d="open",i="close",h="---",y=function(S){Object(b.a)(w,S);var B=Object(f.a)(w);function w(){var m;return Object(p.a)(this,w),m=B.apply(this,arguments),m.state={dragNodeHighlight:!1},m.onSelectorClick=function(c){var o=m.props.context.onNodeClick;o(c,Object(A.b)(m.props)),m.isSelectable()?m.onSelect(c):m.onCheck(c)},m.onSelectorDoubleClick=function(c){var o=m.props.context.onNodeDoubleClick;o(c,Object(A.b)(m.props))},m.onSelect=function(c){if(m.isDisabled())return;var o=m.props.context.onNodeSelect;c.preventDefault(),o(c,Object(A.b)(m.props))},m.onCheck=function(c){if(m.isDisabled())return;var o=m.props,_=o.disableCheckbox,D=o.checked,T=m.props.context.onNodeCheck;if(!m.isCheckable()||_)return;c.preventDefault();var O=!D;T(c,Object(A.b)(m.props),O)},m.onMouseEnter=function(c){var o=m.props.context.onNodeMouseEnter;o(c,Object(A.b)(m.props))},m.onMouseLeave=function(c){var o=m.props.context.onNodeMouseLeave;o(c,Object(A.b)(m.props))},m.onContextMenu=function(c){var o=m.props.context.onNodeContextMenu;o(c,Object(A.b)(m.props))},m.onDragStart=function(c){var o=m.props.context.onNodeDragStart;c.stopPropagation(),m.setState({dragNodeHighlight:!0}),o(c,Object(C.a)(m));try{c.dataTransfer.setData("text/plain","")}catch(_){}},m.onDragEnter=function(c){var o=m.props.context.onNodeDragEnter;c.preventDefault(),c.stopPropagation(),o(c,Object(C.a)(m))},m.onDragOver=function(c){var o=m.props.context.onNodeDragOver;c.preventDefault(),c.stopPropagation(),o(c,Object(C.a)(m))},m.onDragLeave=function(c){var o=m.props.context.onNodeDragLeave;c.stopPropagation(),o(c,Object(C.a)(m))},m.onDragEnd=function(c){var o=m.props.context.onNodeDragEnd;c.stopPropagation(),m.setState({dragNodeHighlight:!1}),o(c,Object(C.a)(m))},m.onDrop=function(c){var o=m.props.context.onNodeDrop;c.preventDefault(),c.stopPropagation(),m.setState({dragNodeHighlight:!1}),o(c,Object(C.a)(m))},m.onExpand=function(c){var o=m.props.context.onNodeExpand;o(c,Object(A.b)(m.props))},m.setSelectHandle=function(c){m.selectHandle=c},m.getNodeState=function(){var c=m.props.expanded;return m.isLeaf()?null:c?d:i},m.hasChildren=function(){var c=m.props.eventKey,o=m.props.context.keyEntities,_=o[c]||{},D=_.children;return!!(D||[]).length},m.isLeaf=function(){var c=m.props,o=c.isLeaf,_=c.loaded,D=m.props.context.loadData,T=m.hasChildren();return o===!1?!1:o||!D&&!T||D&&_&&!T},m.isDisabled=function(){var c=m.props.disabled,o=m.props.context.disabled;return!!(o||c)},m.isCheckable=function(){var c=m.props.checkable,o=m.props.context.checkable;return!o||c===!1?!1:o},m.syncLoadData=function(c){var o=c.expanded,_=c.loading,D=c.loaded,T=m.props.context,O=T.loadData,R=T.onNodeLoad;if(_)return;O&&o&&!m.isLeaf()&&(!m.hasChildren()&&!D&&R(Object(A.b)(m.props)))},m.renderSwitcher=function(){var c=m.props,o=c.expanded,_=c.switcherIcon,D=m.props.context,T=D.prefixCls,O=D.switcherIcon,R=_||O;if(m.isLeaf())return l.createElement("span",{className:n()("".concat(T,"-switcher"),"".concat(T,"-switcher-noop"))},typeof R=="function"?R(Object(M.a)(Object(M.a)({},m.props),{},{isLeaf:!0})):R);var U=n()("".concat(T,"-switcher"),"".concat(T,"-switcher_").concat(o?d:i));return l.createElement("span",{onClick:m.onExpand,className:U},typeof R=="function"?R(Object(M.a)(Object(M.a)({},m.props),{},{isLeaf:!1})):R)},m.renderCheckbox=function(){var c=m.props,o=c.checked,_=c.halfChecked,D=c.disableCheckbox,T=m.props.context.prefixCls,O=m.isDisabled(),R=m.isCheckable();if(!R)return null;var U=typeof R!="boolean"?R:null;return l.createElement("span",{className:n()("".concat(T,"-checkbox"),o&&"".concat(T,"-checkbox-checked"),!o&&_&&"".concat(T,"-checkbox-indeterminate"),(O||D)&&"".concat(T,"-checkbox-disabled")),onClick:m.onCheck},U)},m.renderIcon=function(){var c=m.props.loading,o=m.props.context.prefixCls;return l.createElement("span",{className:n()("".concat(o,"-iconEle"),"".concat(o,"-icon__").concat(m.getNodeState()||"docu"),c&&"".concat(o,"-icon_loading"))})},m.renderSelector=function(){var c=m.state.dragNodeHighlight,o=m.props,_=o.title,D=o.selected,T=o.icon,O=o.loading,R=o.data,U=m.props.context,F=U.prefixCls,Y=U.showIcon,k=U.icon,K=U.draggable,z=U.loadData,j=U.titleRender,Q=m.isDisabled(),X="".concat(F,"-node-content-wrapper"),te;if(Y){var oe=T||k;te=oe?l.createElement("span",{className:n()("".concat(F,"-iconEle"),"".concat(F,"-icon__customize"))},typeof oe=="function"?oe(m.props):oe):m.renderIcon()}else z&&O&&(te=m.renderIcon());var fe;typeof _=="function"?fe=_(R):j?fe=j(R):fe=_;var le=l.createElement("span",{className:"".concat(F,"-title")},fe);return l.createElement("span",{ref:m.setSelectHandle,title:typeof _=="string"?_:"",className:n()("".concat(X),"".concat(X,"-").concat(m.getNodeState()||"normal"),!Q&&(D||c)&&"".concat(F,"-node-selected"),!Q&&K&&"draggable"),draggable:!Q&&K||void 0,"aria-grabbed":!Q&&K||void 0,onMouseEnter:m.onMouseEnter,onMouseLeave:m.onMouseLeave,onContextMenu:m.onContextMenu,onClick:m.onSelectorClick,onDoubleClick:m.onSelectorDoubleClick,onDragStart:K?m.onDragStart:void 0},te,le)},m}return Object(E.a)(w,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var c=this.props.selectable,o=this.props.context.selectable;return typeof c=="boolean"?c:o}},{key:"render",value:function(){var c,o=this.props,_=o.eventKey,D=o.className,T=o.style,O=o.dragOver,R=o.dragOverGapTop,U=o.dragOverGapBottom,F=o.isLeaf,Y=o.isStart,k=o.isEnd,K=o.expanded,z=o.selected,j=o.checked,Q=o.halfChecked,X=o.loading,te=o.domRef,oe=o.active,fe=o.onMouseMove,le=Object(V.a)(o,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),we=this.props.context,Ae=we.prefixCls,be=we.filterTreeNode,me=we.draggable,he=we.keyEntities,ie=this.isDisabled(),pe=Object(s.f)(le),ye=he[_]||{},de=ye.level,Me=k[k.length-1];return l.createElement("div",Object.assign({ref:te,className:n()(D,"".concat(Ae,"-treenode"),(c={},Object(ae.a)(c,"".concat(Ae,"-treenode-disabled"),ie),Object(ae.a)(c,"".concat(Ae,"-treenode-switcher-").concat(K?"open":"close"),!F),Object(ae.a)(c,"".concat(Ae,"-treenode-checkbox-checked"),j),Object(ae.a)(c,"".concat(Ae,"-treenode-checkbox-indeterminate"),Q),Object(ae.a)(c,"".concat(Ae,"-treenode-selected"),z),Object(ae.a)(c,"".concat(Ae,"-treenode-loading"),X),Object(ae.a)(c,"".concat(Ae,"-treenode-active"),oe),Object(ae.a)(c,"".concat(Ae,"-treenode-leaf-last"),Me),Object(ae.a)(c,"drag-over",!ie&&O),Object(ae.a)(c,"drag-over-gap-top",!ie&&R),Object(ae.a)(c,"drag-over-gap-bottom",!ie&&U),Object(ae.a)(c,"filter-node",be&&be(Object(A.b)(this.props))),c)),style:T,onDragEnter:me?this.onDragEnter:void 0,onDragOver:me?this.onDragOver:void 0,onDragLeave:me?this.onDragLeave:void 0,onDrop:me?this.onDrop:void 0,onDragEnd:me?this.onDragEnd:void 0,onMouseMove:fe},pe),l.createElement(a,{prefixCls:Ae,level:de,isStart:Y,isEnd:k}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),w}(l.Component),v=function(B){return l.createElement(e.a.Consumer,null,function(w){return l.createElement(y,Object.assign({},B,{context:w}))})};v.displayName="TreeNode",v.defaultProps={title:h},v.isTreeNode=1;var x=Ce.a=v},WdTA:function(We,Ce,I){We.exports=I.p+"static/studnetqun.598eeb43.png"},Xmg4:function(We,Ce,I){var ae=I("bYtY"),V=I("LPTA"),M=V.devicePixelRatio,p=I("K2GJ"),E=I("3C/r");function C(){return!1}function b(r,n,e){var s=ae.createCanvas(),u=n.getWidth(),a=n.getHeight(),A=s.style;return A&&(A.position="absolute",A.left=0,A.top=0,A.width=u+"px",A.height=a+"px",s.setAttribute("data-zr-dom-id",r)),s.width=u*e,s.height=a*e,s}var f=function(r,n,e){var s;e=e||M,typeof r=="string"?s=b(r,n,e):ae.isObject(r)&&(s=r,r=s.id),this.id=r,this.dom=s;var u=s.style;u&&(s.onselectstart=C,u["-webkit-user-select"]="none",u["user-select"]="none",u["-webkit-touch-callout"]="none",u["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",u.padding=0,u.margin=0,u["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};f.prototype={constructor:f,__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 r=this.dpr;this.domBack=b("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},resize:function(r,n){var e=this.dpr,s=this.dom,u=s.style,a=this.domBack;u&&(u.width=r+"px",u.height=n+"px"),s.width=r*e,s.height=n*e,a&&(a.width=r*e,a.height=n*e,e!==1&&this.ctxBack.scale(e,e))},clear:function(r,n){var e=this.dom,s=this.ctx,u=e.width,a=e.height,n=n||this.clearColor,A=this.motionBlur&&!r,d=this.lastFrameAlpha,i=this.dpr;if(A&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,u/i,a/i)),s.clearRect(0,0,u,a),n&&n!=="transparent"){var h;n.colorStops?(h=n.__canvasGradient||p.getGradient(s,n,{x:0,y:0,width:u,height:a}),n.__canvasGradient=h):n.image&&(h=E.prototype.getCanvasPattern.call(n,s)),s.save(),s.fillStyle=h||n,s.fillRect(0,0,u,a),s.restore()}if(A){var y=this.domBack;s.save(),s.globalAlpha=d,s.drawImage(y,0,0,u,a),s.restore()}}};var l=f;We.exports=l},Xnb7:function(We,Ce,I){var ae=I("1RvN"),V=new ae(50);function M(b){if(typeof b=="string"){var f=V.get(b);return f&&f.image}else return b}function p(b,f,l,r,n){if(b)if(typeof b=="string"){if(f&&f.__zrImageSrc===b||!l)return f;var e=V.get(b),s={hostEl:l,cb:r,cbPayload:n};return e?(f=e.image,!C(f)&&e.pending.push(s)):(f=new Image,f.onload=f.onerror=E,V.put(b,f.__cachedImgObj={image:f,pending:[s]}),f.src=f.__zrImageSrc=b),f}else return b;else return f}function E(){var b=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var f=0;f<b.pending.length;f++){var l=b.pending[f],r=l.cb;r&&r(this,l.cbPayload),l.hostEl.dirty()}b.pending.length=0}function C(b){return b&&b.width&&b.height}Ce.findExistImage=M,Ce.createOrUpdateImage=p,Ce.isImageReady=C},Xsq0:function(We,Ce,I){We.exports=I.p+"static/mainbanner.0a951716.jpg"},XzQ7:function(We,Ce,I){We.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(We,Ce,I){"use strict";I.r(Ce),I.d(Ce,"ResizableTextArea",function(){return Q});var ae=I("wx14"),V=I("1OyB"),M=I("vuIU"),p=I("Ji7U"),E=I("LK+K"),C=I("q1tI"),b=I("VTBJ"),f=I("rePB"),l=I("Zm9Q"),r=I("Kwbf"),n=I("c+Xe"),e=I("m+aA"),s=I("bdgK"),u=new Map;function a(oe){oe.forEach(function(fe){var le,we=fe.target;(le=u.get(we))===null||le===void 0||le.forEach(function(Ae){return Ae(we)})})}var A=new s.default(a),d=null,i=null;function h(oe,fe){u.has(oe)||(u.set(oe,new Set),A.observe(oe)),u.get(oe).add(fe)}function y(oe,fe){u.has(oe)&&(u.get(oe).delete(fe),u.get(oe).size||(A.unobserve(oe),u.delete(oe)))}var v=function(oe){Object(p.a)(le,oe);var fe=Object(E.a)(le);function le(){return Object(V.a)(this,le),fe.apply(this,arguments)}return Object(M.a)(le,[{key:"render",value:function(){return this.props.children}}]),le}(C.Component),x=C.createContext(null);function S(oe){var fe=oe.children,le=oe.onBatchResize,we=C.useRef(0),Ae=C.useRef([]),be=C.useContext(x),me=C.useCallback(function(he,ie,pe){we.current+=1;var ye=we.current;Ae.current.push({size:he,element:ie,data:pe}),Promise.resolve().then(function(){ye===we.current&&(le==null||le(Ae.current),Ae.current=[])}),be==null||be(he,ie,pe)},[le,be]);return C.createElement(x.Provider,{value:me},fe)}function B(oe){var fe=oe.children,le=oe.disabled,we=C.useRef(null),Ae=C.useRef(null),be=C.useContext(x),me=C.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),he=C.isValidElement(fe)&&Object(n.c)(fe),ie=he?fe.ref:null,pe=C.useMemo(function(){return Object(n.a)(ie,we)},[ie,we]),ye=C.useRef(oe);ye.current=oe;var de=C.useCallback(function(Me){var ke=ye.current,Ue=ke.onResize,re=ke.data,N=Me.getBoundingClientRect(),W=N.width,ce=N.height,ne=Me.offsetWidth,ue=Me.offsetHeight,De=Math.floor(W),ze=Math.floor(ce);if(me.current.width!==De||me.current.height!==ze||me.current.offsetWidth!==ne||me.current.offsetHeight!==ue){var wt={width:De,height:ze,offsetWidth:ne,offsetHeight:ue};me.current=wt;var He=ne===Math.round(W)?W:ne,Xe=ue===Math.round(ce)?ce:ue,gt=Object(b.a)(Object(b.a)({},wt),{},{offsetWidth:He,offsetHeight:Xe});be==null||be(gt,Me,re),Ue&&Promise.resolve().then(function(){Ue(gt,Me)})}},[]);return C.useEffect(function(){var Me=Object(e.a)(we.current)||Object(e.a)(Ae.current);return Me&&!le&&h(Me,de),function(){return y(Me,de)}},[we.current,le]),C.createElement(v,{ref:Ae},he?C.cloneElement(fe,{ref:pe}):fe)}var w="rc-observer-key";function m(oe){var fe=oe.children,le=Object(l.a)(fe);return le.map(function(we,Ae){var be=(we==null?void 0:we.key)||"".concat(w,"-").concat(Ae);return C.createElement(B,Object(ae.a)({},oe,{key:be}),we)})}m.Collection=S;var c=m,o=I("bT9E"),_=I("TSYQ"),D=I.n(_),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
`,O=["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"],R={},U;function F(oe){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,le=oe.getAttribute("id")||oe.getAttribute("data-reactid")||oe.getAttribute("name");if(fe&&R[le])return R[le];var we=window.getComputedStyle(oe),Ae=we.getPropertyValue("box-sizing")||we.getPropertyValue("-moz-box-sizing")||we.getPropertyValue("-webkit-box-sizing"),be=parseFloat(we.getPropertyValue("padding-bottom"))+parseFloat(we.getPropertyValue("padding-top")),me=parseFloat(we.getPropertyValue("border-bottom-width"))+parseFloat(we.getPropertyValue("border-top-width")),he=O.map(function(pe){return"".concat(pe,":").concat(we.getPropertyValue(pe))}).join(";"),ie={sizingStyle:he,paddingSize:be,borderSize:me,boxSizing:Ae};return fe&&le&&(R[le]=ie),ie}function Y(oe){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,we=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;U||(U=document.createElement("textarea"),U.setAttribute("tab-index","-1"),U.setAttribute("aria-hidden","true"),document.body.appendChild(U)),oe.getAttribute("wrap")?U.setAttribute("wrap",oe.getAttribute("wrap")):U.removeAttribute("wrap");var Ae=F(oe,fe),be=Ae.paddingSize,me=Ae.borderSize,he=Ae.boxSizing,ie=Ae.sizingStyle;U.setAttribute("style","".concat(ie,";").concat(T)),U.value=oe.value||oe.placeholder||"";var pe=Number.MIN_SAFE_INTEGER,ye=Number.MAX_SAFE_INTEGER,de=U.scrollHeight,Me;if(he==="border-box"?de+=me:he==="content-box"&&(de-=be),le!==null||we!==null){U.value=" ";var ke=U.scrollHeight-be;le!==null&&(pe=ke*le,he==="border-box"&&(pe=pe+be+me),de=Math.max(pe,de)),we!==null&&(ye=ke*we,he==="border-box"&&(ye=ye+be+me),Me=de>ye?"":"hidden",de=Math.min(ye,de))}return{height:de,minHeight:pe,maxHeight:ye,overflowY:Me,resize:"none"}}var k=I("Gytx"),K=I.n(k),z;(function(oe){oe[oe.NONE=0]="NONE",oe[oe.RESIZING=1]="RESIZING",oe[oe.RESIZED=2]="RESIZED"})(z||(z={}));var j=function(oe){Object(p.a)(le,oe);var fe=Object(E.a)(le);function le(we){var Ae;return Object(V.a)(this,le),Ae=fe.call(this,we),Ae.nextFrameActionId=void 0,Ae.resizeFrameId=void 0,Ae.textArea=void 0,Ae.saveTextArea=function(be){Ae.textArea=be},Ae.handleResize=function(be){var me=Ae.state.resizeStatus,he=Ae.props,ie=he.autoSize,pe=he.onResize;if(me!==z.NONE)return;typeof pe=="function"&&pe(be),ie&&Ae.resizeOnNextFrame()},Ae.resizeOnNextFrame=function(){cancelAnimationFrame(Ae.nextFrameActionId),Ae.nextFrameActionId=requestAnimationFrame(Ae.resizeTextarea)},Ae.resizeTextarea=function(){var be=Ae.props.autoSize;if(!be||!Ae.textArea)return;var me=be.minRows,he=be.maxRows,ie=Y(Ae.textArea,!1,me,he);Ae.setState({textareaStyles:ie,resizeStatus:z.RESIZING},function(){cancelAnimationFrame(Ae.resizeFrameId),Ae.resizeFrameId=requestAnimationFrame(function(){Ae.setState({resizeStatus:z.RESIZED},function(){Ae.resizeFrameId=requestAnimationFrame(function(){Ae.setState({resizeStatus:z.NONE}),Ae.fixFirefoxAutoScroll()})})})})},Ae.renderTextArea=function(){var be=Ae.props,me=be.prefixCls,he=me===void 0?"rc-textarea":me,ie=be.autoSize,pe=be.onResize,ye=be.className,de=be.disabled,Me=Ae.state,ke=Me.textareaStyles,Ue=Me.resizeStatus,re=Object(o.a)(Ae.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),N=D()(he,ye,Object(f.a)({},"".concat(he,"-disabled"),de));"value"in re&&(re.value=re.value||"");var W=Object(b.a)(Object(b.a)(Object(b.a)({},Ae.props.style),ke),Ue===z.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return C.createElement(c,{onResize:Ae.handleResize,disabled:!(ie||pe)},C.createElement("textarea",Object(ae.a)({},re,{className:N,style:W,ref:Ae.saveTextArea})))},Ae.state={textareaStyles:{},resizeStatus:z.NONE},Ae}return Object(M.a)(le,[{key:"componentDidUpdate",value:function(Ae){(Ae.value!==this.props.value||!K()(Ae.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 Ae=this.textArea.selectionStart,be=this.textArea.selectionEnd;this.textArea.setSelectionRange(Ae,be)}}catch(me){}}},{key:"render",value:function(){return this.renderTextArea()}}]),le}(C.Component),Q=j,X=function(oe){Object(p.a)(le,oe);var fe=Object(E.a)(le);function le(we){var Ae;Object(V.a)(this,le),Ae=fe.call(this,we),Ae.resizableTextArea=void 0,Ae.focus=function(){Ae.resizableTextArea.textArea.focus()},Ae.saveTextArea=function(me){Ae.resizableTextArea=me},Ae.handleChange=function(me){var he=Ae.props.onChange;Ae.setValue(me.target.value,function(){Ae.resizableTextArea.resizeTextarea()}),he&&he(me)},Ae.handleKeyDown=function(me){var he=Ae.props,ie=he.onPressEnter,pe=he.onKeyDown;me.keyCode===13&&ie&&ie(me),pe&&pe(me)};var be=typeof we.value=="undefined"||we.value===null?we.defaultValue:we.value;return Ae.state={value:be},Ae}return Object(M.a)(le,[{key:"setValue",value:function(Ae,be){"value"in this.props||this.setState({value:Ae},be)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return C.createElement(Q,Object(ae.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(Ae){return"value"in Ae?{value:Ae.value}:null}}]),le}(C.Component),te=Ce.default=X},YH21:function(We,Ce,I){var ae=I("H6uX");Ce.Dispatcher=ae;var V=I("ItGF"),M=I("Ze12"),p=M.isCanvasEl,E=M.transformCoordWithViewport,C=typeof window!="undefined"&&!!window.addEventListener,b=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,f=[];function l(i,h,y,v){return y=y||{},v||!V.canvasSupported?r(i,h,y):V.browser.firefox&&h.layerX!=null&&h.layerX!==h.offsetX?(y.zrX=h.layerX,y.zrY=h.layerY):h.offsetX!=null?(y.zrX=h.offsetX,y.zrY=h.offsetY):r(i,h,y),y}function r(i,h,y){if(V.domSupported&&i.getBoundingClientRect){var v=h.clientX,x=h.clientY;if(p(i)){var S=i.getBoundingClientRect();y.zrX=v-S.left,y.zrY=x-S.top;return}else if(E(f,i,v,x)){y.zrX=f[0],y.zrY=f[1];return}}y.zrX=y.zrY=0}function n(i){return i||window.event}function e(i,h,y){if(h=n(h),h.zrX!=null)return h;var v=h.type,x=v&&v.indexOf("touch")>=0;if(!x)l(i,h,h,y),h.zrDelta=h.wheelDelta?h.wheelDelta/120:-(h.detail||0)/3;else{var S=v!=="touchend"?h.targetTouches[0]:h.changedTouches[0];S&&l(i,S,h,y)}var B=h.button;return h.which==null&&B!==void 0&&b.test(h.type)&&(h.which=B&1?1:B&2?3:B&4?2:0),h}function s(i,h,y,v){C?i.addEventListener(h,y,v):i.attachEvent("on"+h,y)}function u(i,h,y,v){C?i.removeEventListener(h,y,v):i.detachEvent("on"+h,y)}var a=C?function(i){i.preventDefault(),i.stopPropagation(),i.cancelBubble=!0}:function(i){i.returnValue=!1,i.cancelBubble=!0};function A(i){return i.which===2||i.which===3}function d(i){return i.which>1}Ce.clientToLocal=l,Ce.getNativeEvent=n,Ce.normalizeEvent=e,Ce.addEventListener=s,Ce.removeEventListener=u,Ce.stop=a,Ce.isMiddleOrRightButtonOnMouseUpDown=A,Ce.notLeftMouse=d},"Ye+n":function(We,Ce,I){We.exports={advertisementModal:"advertisementModal___2ZrRs",bodyHeight:"bodyHeight___3x6vP"}},YgsL:function(We,Ce,I){var ae=I("QBsz"),V=ae.distance;function M(E,C,b,f,l,r,n){var e=(b-E)*.5,s=(f-C)*.5;return(2*(C-b)+e+s)*n+(-3*(C-b)-2*e-s)*r+e*l+C}function p(E,C){for(var b=E.length,f=[],l=0,r=1;r<b;r++)l+=V(E[r-1],E[r]);var n=l/2;n=n<b?b:n;for(var r=0;r<n;r++){var e=r/(n-1)*(C?b:b-1),s=Math.floor(e),u=e-s,a,A=E[s%b],d,i;C?(a=E[(s-1+b)%b],d=E[(s+1)%b],i=E[(s+2)%b]):(a=E[s===0?s:s-1],d=E[s>b-2?b-1:s+1],i=E[s>b-3?b-1:s+2]);var h=u*u,y=u*h;f.push([M(a[0],A[0],d[0],i[0],u,h,y),M(a[1],A[1],d[1],i[1],u,h,y)])}return f}We.exports=p},ZW9T:function(We,Ce,I){"use strict";I.d(Ce,"a",function(){return v});var ae=I("k1fw"),V=I("miYZ"),M=I("tsqr"),p=I("rAM+"),E=I("tJVT"),C=I("PpiC"),b=I("q1tI"),f=I.n(b),l=I("bdgK");function r(x,S,B,w,m){var c=S.getWordUntilPosition(B),o={startLineNumber:B.lineNumber,endLineNumber:B.lineNumber,startColumn:c.startColumn,endColumn:c.endColumn},_=w.map(function(D){return{label:D,kind:x.languages.CompletionItemKind.Keyword,insertText:D,insertTextRules:x.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:o}});return m.map(function(D){_.push(Object(ae.a)(Object(ae.a)({},D),{},{range:o}))}),_}var n=function(x){var S={label:"ifelse",kind:x.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`),insertTextRules:x.languages.CompletionItemInsertTextRule.InsertAsSnippet},B=["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"];x.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(o,_){var D=r(x,o,_,B,[S]);return{suggestions:D}}});var w=["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"];x.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(o,_){var D=[{label:"print",kind:x.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(`
`),insertTextRules:x.languages.CompletionItemInsertTextRule.InsertAsSnippet}],T=r(x,o,_,w,D);return{suggestions:T}}});var m=["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"];x.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(o,_){var D=[S,{label:"main",kind:x.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(`
`),insertTextRules:x.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:x.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join(`
`),insertTextRules:x.languages.CompletionItemInsertTextRule.InsertAsSnippet}],T=r(x,o,_,m,D);return{suggestions:T}}})},e="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",s=I("LvDl");function u(x){return/^\d+$/.test(x)?"".concat(x,"px"):x}function a(){}var A=!1,d={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function i(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],S=x;if(Array.isArray(x)){for(var B=0;B<x.length;B++){var w=d[x[B]];if(w)return w}return S[0]}return d[S]||S}var h=null,y=Ce.b=function(x){var S=x.width,B=S===void 0?"100%":S,w=x.height,m=w===void 0?"100%":w,c=x.value,o=x.language,_=o===void 0?"javascript":o,D=x.style,T=D===void 0?{}:D,O=x.options,R=O===void 0?{}:O,U=x.overrideServices,F=U===void 0?{}:U,Y=x.theme,k=Y===void 0?"vs-dark":Y,K=x.onEditBlur,z=x.onSave,j=x.autoHeight,Q=j===void 0?!1:j,X=x.forbidCopy,te=X===void 0?!1:X,oe=x.onChange,fe=oe===void 0?a:oe,le=x.editorDidMount,we=le===void 0?a:le,Ae=x.onFocus,be=Ae===void 0?a:Ae,me=x.filename,he=me===void 0?"educoder.txt":me,ie=Object(C.a)(x,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename"]),pe=Object(b.useRef)(),ye=Object(b.useRef)({}),de=Object(b.useRef)(),Me=Object(b.useRef)(!1),ke=Object(b.useRef)(),Ue=Object(b.useState)(!1),re=Object(E.a)(Ue,2),N=re[0],W=re[1];function ce(){var Ne;return pe.current&&(Ne=new l.default(function($e){var At=Object(p.a)($e),Bt;try{for(At.s();!(Bt=At.n()).done;){var Nt=Bt.value;(Nt.target.offsetHeight>0||Nt.target.offsetWidth>0)&&ye.current.instance.layout()}}catch(It){At.e(It)}finally{At.f()}}),Ne.observe(pe.current)),Ne}function ne(){M.b.warn(decodeURIComponent(e))}var ue=function(){var $e=ye.current.instance;if(c!=null&&$e&&N){var At=$e.getModel();At&&c!==At.getValue()&&(A=!0,At.setValue(c),$e.layout(),A=!1)}};Object(b.useEffect)(function(){de.current&&clearTimeout(de.current),de.current=setTimeout(function(){ue()},500)},[c,N,ye.current]);function De(){var Ne=ye.current.instance;if(Ne){var $e=Ne.getSelection(),At=ye.current.pastePos||{},Bt=new h.Range(At.startLineNumber||$e.endLineNumber,At.startColumn||$e.endColumn,At.endLineNumber||$e.endLineNumber,At.endColumn||$e.endColumn);setTimeout(function(){Ne.executeEdits("",[{range:Bt,text:""}])},300)}}function ze(Ne){(window.navigator.platform.match("Mac")?Ne.metaKey:Ne.ctrlKey)&&Ne.keyCode==83&&(Ne.preventDefault(),z())}var wt=function(){if(Q&&ye.current.instance){var $e=ye.current.instance.getContentHeight();Le($e<m?m:$e)}else Le(m)};function He(Ne){var $e=document.createEvent("MouseEvents");$e.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Ne.dispatchEvent($e)}function Xe(Ne,$e){var At=window.URL||window.webkitURL||window,Bt=new Blob([$e]),Nt=document.createElementNS("http://www.w3.org/1999/xhtml","a");Nt.href=At.createObjectURL(Bt),Nt.download=Ne,He(Nt)}Object(b.useEffect)(function(){wt()},[wt]),Object(b.useEffect)(function(){pe.current&&!N&&I.e(27).then(I.t.bind(null,"M/lh",7)).then(function(Ne){try{h=Ne,ye.current.instance=h.editor.create(pe.current,{value:c,language:i(_),theme:k,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0},F);var $e=ye.current.instance;if(we($e,h),setTimeout(function(){wt(),ye.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){Xe(he||"educoder.txt",$e.getValue())}})},500),ye.current.subscription=$e.onDidChangeModelContent(function(Bt){Me.current?clearTimeout(ke.current):(wt(),fe($e.getValue(),Bt)),ke.current=setTimeout(function(){Me.current=!1},500)}),window.Monaco||n(h),te&&($e.addCommand(h.KeyMod.CtrlCmd|h.KeyMod.Shift|h.KeyCode.KEY_V,function(){return ne(),null}),$e.addCommand(h.KeyMod.CtrlCmd|h.KeyCode.KEY_C,function(){return ne(),null})),window.Monaco=h,K&&$e.onDidBlurEditorWidget(function(){K($e.getValue())}),be&&$e.onDidFocusEditorText(function(){be($e.getValue())}),te){$e.addCommand(h.KeyMod.CtrlCmd|h.KeyCode.KEY_V,function(){return ne(),null}),$e.onDidPaste(function(Bt){ye.current.pastePos=Bt});try{window.addEventListener("paste",De)}catch(Bt){}}var At=ce();return W(!0),function(){var Bt=ye.current.instance;Bt.dispose();var Nt=Bt.getModel();Nt&&Nt.dispose(),ye.current.subscription&&ye.current.subscription.dispose(),te&&window.removeEventListener("paste",De),At.unobserve(pe.current)}}catch(Bt){}})},[]),Object(b.useEffect)(function(){var Ne=ye.current.instance;if(Ne&&N)return document.addEventListener("keydown",ze,!1),function(){document.removeEventListener("keydown",ze)}},[z,N]),Object(b.useEffect)(function(){var Ne=ye.current.instance;if(Ne&&N){var $e=i(_);h.editor.setModelLanguage(Ne.getModel(),$e),console.log("language:",_,Ne.getModel(),$e)}},[_,N]),Object(b.useEffect)(function(){var Ne=ye.current.instance;Ne&&N&&h.editor.setTheme(k)},[k,N]),Object(b.useEffect)(function(){var Ne=ye.current.instance;Ne&&N&&(Ne.updateOptions(Object(ae.a)({},R)),setTimeout(function(){Ne.getModel().updateOptions(Object(ae.a)({},R))},200))},[JSON.stringify(R),N]),Object(b.useEffect)(function(){var Ne=ye.current.instance;Ne&&N&&Ne.layout()},[B,m,N]);var gt=Object(b.useState)(u(B)),_t=Object(E.a)(gt,2),ct=_t[0],lt=_t[1],rt=Object(b.useState)(u(m)),Ze=Object(E.a)(rt,2),qe=Ze[0],Le=Ze[1],je=Object(ae.a)(Object(ae.a)({},T),{},{width:ct,height:qe});return f.a.createElement("div",{className:"my-monaco-editor",ref:pe,style:je})};function v(x){var S=x.width,B=S===void 0?"100%":S,w=x.height,m=w===void 0?"100%":w,c=x.original,o=x.modified,_=x.language,D=x.options,T=D===void 0?{}:D,O=Object(b.useRef)(),R=Object(b.useState)(null),U=Object(E.a)(R,2),F=U[0],Y=U[1];function k(Q){var X;return O.current&&(X=new l.default(function(te){var oe=Object(p.a)(te),fe;try{for(oe.s();!(fe=oe.n()).done;){var le=fe.value;(le.target.offsetHeight>0||le.target.offsetWidth>0)&&Q.layout()}}catch(we){oe.e(we)}finally{oe.f()}}),X.observe(O.current)),X}Object(b.useEffect)(function(){O.current&&I.e(27).then(I.t.bind(null,"M/lh",7)).then(function(Q){h=Q;var X=h.editor.createDiffEditor(O.current,Object(ae.a)(Object(ae.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},T),{},{wordWrap:!0}));Y(X);var te=k(X);return function(){X.dispose();var oe=X.getModel();oe&&oe.dispose(),te.unobserve(O.current)}})},[]),Object(b.useEffect)(function(){F&&F.setModel({original:h.editor.createModel(c,_),modified:h.editor.createModel(o,_)})},[c,o,_,F]);var K=u(B),z=u(m),j={width:K,height:z};return f.a.createElement("div",{className:"my-diff-editor",ref:O,style:j})}},Ze12:function(We,Ce,I){var ae=I("ItGF"),V=I("hOwI"),M=V.buildTransformer,p="___zrEVENTSAVED",E=[];function C(n,e,s,u,a){return b(E,e,u,a,!0)&&b(n,s,E[0],E[1])}function b(n,e,s,u,a){if(e.getBoundingClientRect&&ae.domSupported&&!r(e)){var A=e[p]||(e[p]={}),d=f(e,A),i=l(d,A,a);if(i)return i(n,s,u),!0}return!1}function f(n,e){var s=e.markers;if(s)return s;s=e.markers=[];for(var u=["left","right"],a=["top","bottom"],A=0;A<4;A++){var d=document.createElement("div"),i=d.style,h=A%2,y=(A>>1)%2;i.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",u[h]+":0",a[y]+":0",u[1-h]+":auto",a[1-y]+":auto",""].join("!important;"),n.appendChild(d),s.push(d)}return s}function l(n,e,s){for(var u=s?"invTrans":"trans",a=e[u],A=e.srcCoords,d=!0,i=[],h=[],y=0;y<4;y++){var v=n[y].getBoundingClientRect(),x=2*y,S=v.left,B=v.top;i.push(S,B),d=d&&A&&S===A[x]&&B===A[x+1],h.push(n[y].offsetLeft,n[y].offsetTop)}return d&&a?a:(e.srcCoords=i,e[u]=s?M(h,i):M(i,h))}function r(n){return n.nodeName.toUpperCase()==="CANVAS"}Ce.transformLocalCoord=C,Ce.transformCoordWithViewport=b,Ce.isCanvasEl=r},ZpRC:function(We,Ce,I){"use strict";function ae(n){return typeof n=="object"&&n!=null&&n.nodeType===1}function V(n,e){return(!e||n!=="hidden")&&n!=="visible"&&n!=="clip"}function M(n,e){if(n.clientHeight<n.scrollHeight||n.clientWidth<n.scrollWidth){var s=getComputedStyle(n,null);return V(s.overflowY,e)||V(s.overflowX,e)||function(u){var a=function(A){if(!A.ownerDocument||!A.ownerDocument.defaultView)return null;try{return A.ownerDocument.defaultView.frameElement}catch(d){return null}}(u);return!!a&&(a.clientHeight<u.scrollHeight||a.clientWidth<u.scrollWidth)}(n)}return!1}function p(n,e,s,u,a,A,d,i){return A<n&&d>e||A>n&&d<e?0:A<=n&&i<=s||d>=e&&i>=s?A-n-u:d>e&&i<s||A<n&&i>s?d-e+a:0}var E=function(n,e){var s=window,u=e.scrollMode,a=e.block,A=e.inline,d=e.boundary,i=e.skipOverflowHiddenElements,h=typeof d=="function"?d:function(ke){return ke!==d};if(!ae(n))throw new TypeError("Invalid target");for(var y=document.scrollingElement||document.documentElement,v=[],x=n;ae(x)&&h(x);){if((x=x.parentElement)===y){v.push(x);break}x!=null&&x===document.body&&M(x)&&!M(document.documentElement)||x!=null&&M(x,i)&&v.push(x)}for(var S=s.visualViewport?s.visualViewport.width:innerWidth,B=s.visualViewport?s.visualViewport.height:innerHeight,w=window.scrollX||pageXOffset,m=window.scrollY||pageYOffset,c=n.getBoundingClientRect(),o=c.height,_=c.width,D=c.top,T=c.right,O=c.bottom,R=c.left,U=a==="start"||a==="nearest"?D:a==="end"?O:D+o/2,F=A==="center"?R+_/2:A==="end"?T:R,Y=[],k=0;k<v.length;k++){var K=v[k],z=K.getBoundingClientRect(),j=z.height,Q=z.width,X=z.top,te=z.right,oe=z.bottom,fe=z.left;if(u==="if-needed"&&D>=0&&R>=0&&O<=B&&T<=S&&D>=X&&O<=oe&&R>=fe&&T<=te)return Y;var le=getComputedStyle(K),we=parseInt(le.borderLeftWidth,10),Ae=parseInt(le.borderTopWidth,10),be=parseInt(le.borderRightWidth,10),me=parseInt(le.borderBottomWidth,10),he=0,ie=0,pe="offsetWidth"in K?K.offsetWidth-K.clientWidth-we-be:0,ye="offsetHeight"in K?K.offsetHeight-K.clientHeight-Ae-me:0;if(y===K)he=a==="start"?U:a==="end"?U-B:a==="nearest"?p(m,m+B,B,Ae,me,m+U,m+U+o,o):U-B/2,ie=A==="start"?F:A==="center"?F-S/2:A==="end"?F-S:p(w,w+S,S,we,be,w+F,w+F+_,_),he=Math.max(0,he+m),ie=Math.max(0,ie+w);else{he=a==="start"?U-X-Ae:a==="end"?U-oe+me+ye:a==="nearest"?p(X,oe,j,Ae,me+ye,U,U+o,o):U-(X+j/2)+ye/2,ie=A==="start"?F-fe-we:A==="center"?F-(fe+Q/2)+pe/2:A==="end"?F-te+be+pe:p(fe,te,Q,we,be+pe,F,F+_,_);var de=K.scrollLeft,Me=K.scrollTop;U+=Me-(he=Math.max(0,Math.min(Me+he,K.scrollHeight-j+ye))),F+=de-(ie=Math.max(0,Math.min(de+ie,K.scrollWidth-Q+pe)))}Y.push({el:K,top:he,left:ie})}return Y};function C(n){return n===Object(n)&&Object.keys(n).length!==0}function b(n,e){e===void 0&&(e="auto");var s="scrollBehavior"in document.body.style;n.forEach(function(u){var a=u.el,A=u.top,d=u.left;a.scroll&&s?a.scroll({top:A,left:d,behavior:e}):(a.scrollTop=A,a.scrollLeft=d)})}function f(n){return n===!1?{block:"end",inline:"nearest"}:C(n)?n:{block:"start",inline:"nearest"}}function l(n,e){var s=!n.ownerDocument.documentElement.contains(n);if(C(e)&&typeof e.behavior=="function")return e.behavior(s?[]:E(n,e));if(s)return;var u=f(e);return b(E(n,u),u.behavior)}var r=Ce.a=l},Zss7:function(We,Ce,I){var ae;(function(V){var M=/^\s+/,p=/\s+$/,E=0,C=V.round,b=V.min,f=V.max,l=V.random;function r(me,he){if(me=me||"",he=he||{},me instanceof r)return me;if(!(this instanceof r))return new r(me,he);var ie=n(me);this._originalInput=me,this._r=ie.r,this._g=ie.g,this._b=ie.b,this._a=ie.a,this._roundA=C(100*this._a)/100,this._format=he.format||ie.format,this._gradientType=he.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=ie.ok,this._tc_id=E++}r.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 me=this.toRgb();return(me.r*299+me.g*587+me.b*114)/1e3},getLuminance:function(){var me=this.toRgb(),he,ie,pe,ye,de,Me;return he=me.r/255,ie=me.g/255,pe=me.b/255,he<=.03928?ye=he/12.92:ye=V.pow((he+.055)/1.055,2.4),ie<=.03928?de=ie/12.92:de=V.pow((ie+.055)/1.055,2.4),pe<=.03928?Me=pe/12.92:Me=V.pow((pe+.055)/1.055,2.4),.2126*ye+.7152*de+.0722*Me},setAlpha:function(me){return this._a=Y(me),this._roundA=C(100*this._a)/100,this},toHsv:function(){var me=a(this._r,this._g,this._b);return{h:me.h*360,s:me.s,v:me.v,a:this._a}},toHsvString:function(){var me=a(this._r,this._g,this._b),he=C(me.h*360),ie=C(me.s*100),pe=C(me.v*100);return this._a==1?"hsv("+he+", "+ie+"%, "+pe+"%)":"hsva("+he+", "+ie+"%, "+pe+"%, "+this._roundA+")"},toHsl:function(){var me=s(this._r,this._g,this._b);return{h:me.h*360,s:me.s,l:me.l,a:this._a}},toHslString:function(){var me=s(this._r,this._g,this._b),he=C(me.h*360),ie=C(me.s*100),pe=C(me.l*100);return this._a==1?"hsl("+he+", "+ie+"%, "+pe+"%)":"hsla("+he+", "+ie+"%, "+pe+"%, "+this._roundA+")"},toHex:function(me){return d(this._r,this._g,this._b,me)},toHexString:function(me){return"#"+this.toHex(me)},toHex8:function(me){return i(this._r,this._g,this._b,this._a,me)},toHex8String:function(me){return"#"+this.toHex8(me)},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(k(this._r,255)*100)+"%",g:C(k(this._g,255)*100)+"%",b:C(k(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+C(k(this._r,255)*100)+"%, "+C(k(this._g,255)*100)+"%, "+C(k(this._b,255)*100)+"%)":"rgba("+C(k(this._r,255)*100)+"%, "+C(k(this._g,255)*100)+"%, "+C(k(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:U[d(this._r,this._g,this._b,!0)]||!1},toFilter:function(me){var he="#"+h(this._r,this._g,this._b,this._a),ie=he,pe=this._gradientType?"GradientType = 1, ":"";if(me){var ye=r(me);ie="#"+h(ye._r,ye._g,ye._b,ye._a)}return"progid:DXImageTransform.Microsoft.gradient("+pe+"startColorstr="+he+",endColorstr="+ie+")"},toString:function(me){var he=!!me;me=me||this._format;var ie=!1,pe=this._a<1&&this._a>=0,ye=!he&&pe&&(me==="hex"||me==="hex6"||me==="hex3"||me==="hex4"||me==="hex8"||me==="name");return ye?me==="name"&&this._a===0?this.toName():this.toRgbString():(me==="rgb"&&(ie=this.toRgbString()),me==="prgb"&&(ie=this.toPercentageRgbString()),(me==="hex"||me==="hex6")&&(ie=this.toHexString()),me==="hex3"&&(ie=this.toHexString(!0)),me==="hex4"&&(ie=this.toHex8String(!0)),me==="hex8"&&(ie=this.toHex8String()),me==="name"&&(ie=this.toName()),me==="hsl"&&(ie=this.toHslString()),me==="hsv"&&(ie=this.toHsvString()),ie||this.toHexString())},clone:function(){return r(this.toString())},_applyModification:function(me,he){var ie=me.apply(null,[this].concat([].slice.call(he)));return this._r=ie._r,this._g=ie._g,this._b=ie._b,this.setAlpha(ie._a),this},lighten:function(){return this._applyModification(S,arguments)},brighten:function(){return this._applyModification(B,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(y,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(m,arguments)},_applyCombination:function(me,he){return me.apply(null,[this].concat([].slice.call(he)))},analogous:function(){return this._applyCombination(T,arguments)},complement:function(){return this._applyCombination(c,arguments)},monochromatic:function(){return this._applyCombination(O,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(o,arguments)},tetrad:function(){return this._applyCombination(_,arguments)}},r.fromRatio=function(me,he){if(typeof me=="object"){var ie={};for(var pe in me)me.hasOwnProperty(pe)&&(pe==="a"?ie[pe]=me[pe]:ie[pe]=te(me[pe]));me=ie}return r(me,he)};function n(me){var he={r:0,g:0,b:0},ie=1,pe=null,ye=null,de=null,Me=!1,ke=!1;return typeof me=="string"&&(me=Ae(me)),typeof me=="object"&&(we(me.r)&&we(me.g)&&we(me.b)?(he=e(me.r,me.g,me.b),Me=!0,ke=String(me.r).substr(-1)==="%"?"prgb":"rgb"):we(me.h)&&we(me.s)&&we(me.v)?(pe=te(me.s),ye=te(me.v),he=A(me.h,pe,ye),Me=!0,ke="hsv"):we(me.h)&&we(me.s)&&we(me.l)&&(pe=te(me.s),de=te(me.l),he=u(me.h,pe,de),Me=!0,ke="hsl"),me.hasOwnProperty("a")&&(ie=me.a)),ie=Y(ie),{ok:Me,format:me.format||ke,r:b(255,f(he.r,0)),g:b(255,f(he.g,0)),b:b(255,f(he.b,0)),a:ie}}function e(me,he,ie){return{r:k(me,255)*255,g:k(he,255)*255,b:k(ie,255)*255}}function s(me,he,ie){me=k(me,255),he=k(he,255),ie=k(ie,255);var pe=f(me,he,ie),ye=b(me,he,ie),de,Me,ke=(pe+ye)/2;if(pe==ye)de=Me=0;else{var Ue=pe-ye;Me=ke>.5?Ue/(2-pe-ye):Ue/(pe+ye);switch(pe){case me:de=(he-ie)/Ue+(he<ie?6:0);break;case he:de=(ie-me)/Ue+2;break;case ie:de=(me-he)/Ue+4;break}de/=6}return{h:de,s:Me,l:ke}}function u(me,he,ie){var pe,ye,de;me=k(me,360),he=k(he,100),ie=k(ie,100);function Me(re,N,W){return W<0&&(W+=1),W>1&&(W-=1),W<1/6?re+(N-re)*6*W:W<1/2?N:W<2/3?re+(N-re)*(2/3-W)*6:re}if(he===0)pe=ye=de=ie;else{var ke=ie<.5?ie*(1+he):ie+he-ie*he,Ue=2*ie-ke;pe=Me(Ue,ke,me+1/3),ye=Me(Ue,ke,me),de=Me(Ue,ke,me-1/3)}return{r:pe*255,g:ye*255,b:de*255}}function a(me,he,ie){me=k(me,255),he=k(he,255),ie=k(ie,255);var pe=f(me,he,ie),ye=b(me,he,ie),de,Me,ke=pe,Ue=pe-ye;if(Me=pe===0?0:Ue/pe,pe==ye)de=0;else{switch(pe){case me:de=(he-ie)/Ue+(he<ie?6:0);break;case he:de=(ie-me)/Ue+2;break;case ie:de=(me-he)/Ue+4;break}de/=6}return{h:de,s:Me,v:ke}}function A(me,he,ie){me=k(me,360)*6,he=k(he,100),ie=k(ie,100);var pe=V.floor(me),ye=me-pe,de=ie*(1-he),Me=ie*(1-ye*he),ke=ie*(1-(1-ye)*he),Ue=pe%6,re=[ie,Me,de,de,ke,ie][Ue],N=[ke,ie,ie,Me,de,de][Ue],W=[de,de,ke,ie,ie,Me][Ue];return{r:re*255,g:N*255,b:W*255}}function d(me,he,ie,pe){var ye=[X(C(me).toString(16)),X(C(he).toString(16)),X(C(ie).toString(16))];return pe&&ye[0].charAt(0)==ye[0].charAt(1)&&ye[1].charAt(0)==ye[1].charAt(1)&&ye[2].charAt(0)==ye[2].charAt(1)?ye[0].charAt(0)+ye[1].charAt(0)+ye[2].charAt(0):ye.join("")}function i(me,he,ie,pe,ye){var de=[X(C(me).toString(16)),X(C(he).toString(16)),X(C(ie).toString(16)),X(oe(pe))];return ye&&de[0].charAt(0)==de[0].charAt(1)&&de[1].charAt(0)==de[1].charAt(1)&&de[2].charAt(0)==de[2].charAt(1)&&de[3].charAt(0)==de[3].charAt(1)?de[0].charAt(0)+de[1].charAt(0)+de[2].charAt(0)+de[3].charAt(0):de.join("")}function h(me,he,ie,pe){var ye=[X(oe(pe)),X(C(me).toString(16)),X(C(he).toString(16)),X(C(ie).toString(16))];return ye.join("")}r.equals=function(me,he){return!me||!he?!1:r(me).toRgbString()==r(he).toRgbString()},r.random=function(){return r.fromRatio({r:l(),g:l(),b:l()})};function y(me,he){he=he===0?0:he||10;var ie=r(me).toHsl();return ie.s-=he/100,ie.s=K(ie.s),r(ie)}function v(me,he){he=he===0?0:he||10;var ie=r(me).toHsl();return ie.s+=he/100,ie.s=K(ie.s),r(ie)}function x(me){return r(me).desaturate(100)}function S(me,he){he=he===0?0:he||10;var ie=r(me).toHsl();return ie.l+=he/100,ie.l=K(ie.l),r(ie)}function B(me,he){he=he===0?0:he||10;var ie=r(me).toRgb();return ie.r=f(0,b(255,ie.r-C(255*-(he/100)))),ie.g=f(0,b(255,ie.g-C(255*-(he/100)))),ie.b=f(0,b(255,ie.b-C(255*-(he/100)))),r(ie)}function w(me,he){he=he===0?0:he||10;var ie=r(me).toHsl();return ie.l-=he/100,ie.l=K(ie.l),r(ie)}function m(me,he){var ie=r(me).toHsl(),pe=(ie.h+he)%360;return ie.h=pe<0?360+pe:pe,r(ie)}function c(me){var he=r(me).toHsl();return he.h=(he.h+180)%360,r(he)}function o(me){var he=r(me).toHsl(),ie=he.h;return[r(me),r({h:(ie+120)%360,s:he.s,l:he.l}),r({h:(ie+240)%360,s:he.s,l:he.l})]}function _(me){var he=r(me).toHsl(),ie=he.h;return[r(me),r({h:(ie+90)%360,s:he.s,l:he.l}),r({h:(ie+180)%360,s:he.s,l:he.l}),r({h:(ie+270)%360,s:he.s,l:he.l})]}function D(me){var he=r(me).toHsl(),ie=he.h;return[r(me),r({h:(ie+72)%360,s:he.s,l:he.l}),r({h:(ie+216)%360,s:he.s,l:he.l})]}function T(me,he,ie){he=he||6,ie=ie||30;var pe=r(me).toHsl(),ye=360/ie,de=[r(me)];for(pe.h=(pe.h-(ye*he>>1)+720)%360;--he;)pe.h=(pe.h+ye)%360,de.push(r(pe));return de}function O(me,he){he=he||6;for(var ie=r(me).toHsv(),pe=ie.h,ye=ie.s,de=ie.v,Me=[],ke=1/he;he--;)Me.push(r({h:pe,s:ye,v:de})),de=(de+ke)%1;return Me}r.mix=function(me,he,ie){ie=ie===0?0:ie||50;var pe=r(me).toRgb(),ye=r(he).toRgb(),de=ie/100,Me={r:(ye.r-pe.r)*de+pe.r,g:(ye.g-pe.g)*de+pe.g,b:(ye.b-pe.b)*de+pe.b,a:(ye.a-pe.a)*de+pe.a};return r(Me)},r.readability=function(me,he){var ie=r(me),pe=r(he);return(V.max(ie.getLuminance(),pe.getLuminance())+.05)/(V.min(ie.getLuminance(),pe.getLuminance())+.05)},r.isReadable=function(me,he,ie){var pe=r.readability(me,he),ye,de;de=!1,ye=be(ie);switch(ye.level+ye.size){case"AAsmall":case"AAAlarge":de=pe>=4.5;break;case"AAlarge":de=pe>=3;break;case"AAAsmall":de=pe>=7;break}return de},r.mostReadable=function(me,he,ie){var pe=null,ye=0,de,Me,ke,Ue;ie=ie||{},Me=ie.includeFallbackColors,ke=ie.level,Ue=ie.size;for(var re=0;re<he.length;re++)de=r.readability(me,he[re]),de>ye&&(ye=de,pe=r(he[re]));return r.isReadable(me,pe,{level:ke,size:Ue})||!Me?pe:(ie.includeFallbackColors=!1,r.mostReadable(me,["#fff","#000"],ie))};var R=r.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"},U=r.hexNames=F(R);function F(me){var he={};for(var ie in me)me.hasOwnProperty(ie)&&(he[me[ie]]=ie);return he}function Y(me){return me=parseFloat(me),(isNaN(me)||me<0||me>1)&&(me=1),me}function k(me,he){j(me)&&(me="100%");var ie=Q(me);return me=b(he,f(0,parseFloat(me))),ie&&(me=parseInt(me*he,10)/100),V.abs(me-he)<1e-6?1:me%he/parseFloat(he)}function K(me){return b(1,f(0,me))}function z(me){return parseInt(me,16)}function j(me){return typeof me=="string"&&me.indexOf(".")!=-1&&parseFloat(me)===1}function Q(me){return typeof me=="string"&&me.indexOf("%")!=-1}function X(me){return me.length==1?"0"+me:""+me}function te(me){return me<=1&&(me=me*100+"%"),me}function oe(me){return V.round(parseFloat(me)*255).toString(16)}function fe(me){return z(me)/255}var le=function(){var me="[-\\+]?\\d+%?",he="[-\\+]?\\d*\\.\\d+%?",ie="(?:"+he+")|(?:"+me+")",pe="[\\s|\\(]+("+ie+")[,|\\s]+("+ie+")[,|\\s]+("+ie+")\\s*\\)?",ye="[\\s|\\(]+("+ie+")[,|\\s]+("+ie+")[,|\\s]+("+ie+")[,|\\s]+("+ie+")\\s*\\)?";return{CSS_UNIT:new RegExp(ie),rgb:new RegExp("rgb"+pe),rgba:new RegExp("rgba"+ye),hsl:new RegExp("hsl"+pe),hsla:new RegExp("hsla"+ye),hsv:new RegExp("hsv"+pe),hsva:new RegExp("hsva"+ye),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 we(me){return!!le.CSS_UNIT.exec(me)}function Ae(me){me=me.replace(M,"").replace(p,"").toLowerCase();var he=!1;if(R[me])me=R[me],he=!0;else if(me=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ie;return(ie=le.rgb.exec(me))?{r:ie[1],g:ie[2],b:ie[3]}:(ie=le.rgba.exec(me))?{r:ie[1],g:ie[2],b:ie[3],a:ie[4]}:(ie=le.hsl.exec(me))?{h:ie[1],s:ie[2],l:ie[3]}:(ie=le.hsla.exec(me))?{h:ie[1],s:ie[2],l:ie[3],a:ie[4]}:(ie=le.hsv.exec(me))?{h:ie[1],s:ie[2],v:ie[3]}:(ie=le.hsva.exec(me))?{h:ie[1],s:ie[2],v:ie[3],a:ie[4]}:(ie=le.hex8.exec(me))?{r:z(ie[1]),g:z(ie[2]),b:z(ie[3]),a:fe(ie[4]),format:he?"name":"hex8"}:(ie=le.hex6.exec(me))?{r:z(ie[1]),g:z(ie[2]),b:z(ie[3]),format:he?"name":"hex"}:(ie=le.hex4.exec(me))?{r:z(ie[1]+""+ie[1]),g:z(ie[2]+""+ie[2]),b:z(ie[3]+""+ie[3]),a:fe(ie[4]+""+ie[4]),format:he?"name":"hex8"}:(ie=le.hex3.exec(me))?{r:z(ie[1]+""+ie[1]),g:z(ie[2]+""+ie[2]),b:z(ie[3]+""+ie[3]),format:he?"name":"hex"}:!1}function be(me){var he,ie;return me=me||{level:"AA",size:"small"},he=(me.level||"AA").toUpperCase(),ie=(me.size||"small").toLowerCase(),he!=="AA"&&he!=="AAA"&&(he="AA"),ie!=="small"&&ie!=="large"&&(ie="small"),{level:he,size:ie}}We.exports?We.exports=r:!(ae=function(){return r}.call(Ce,I,Ce,We),ae!==void 0&&(We.exports=ae))})(Math)},aKvl:function(We,Ce,I){var ae=I("Sj9i"),V=ae.quadraticProjectPoint;function M(p,E,C,b,f,l,r,n,e){if(r===0)return!1;var s=r;if(e>E+s&&e>b+s&&e>l+s||e<E-s&&e<b-s&&e<l-s||n>p+s&&n>C+s&&n>f+s||n<p-s&&n<C-s&&n<f-s)return!1;var u=V(p,E,C,b,f,l,n,e,null);return u<=s/2}Ce.containStroke=M},aRTE:function(We,Ce){We.exports={L:1,M:0,Q:3,H:2}},aX58:function(We,Ce,I){var ae=I("3gBT"),V=I("ItGF"),M=I("bYtY"),p=I("0s+r"),E=I("r6Bn"),C=I("7SHv"),b=I("MKOG"),f=I("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 l=!V.canvasSupported,r={canvas:C},n={},e="4.3.1";function s(h,y){var v=new i(ae(),h,y);return n[v.id]=v,v}function u(h){if(h)h.dispose();else{for(var y in n)n.hasOwnProperty(y)&&n[y].dispose();n={}}return this}function a(h){return n[h]}function A(h,y){r[h]=y}function d(h){delete n[h]}var i=function(h,y,v){v=v||{},this.dom=y,this.id=h;var x=this,S=new E,B=v.renderer;if(l){if(!r.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");B="vml"}else(!B||!r[B])&&(B="canvas");var w=new r[B](y,S,v,h);this.storage=S,this.painter=w;var m=!V.node&&!V.worker?new f(w.getViewportRoot(),w.root):null;this.handler=new p(S,w,m,w.root),this.animation=new b({stage:{update:M.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var c=S.delFromStorage,o=S.addToStorage;S.delFromStorage=function(_){c.call(S,_),_&&_.removeSelfFromZr(x)},S.addToStorage=function(_){o.call(S,_),_.addSelfToZr(x)}};i.prototype={constructor:i,getId:function(){return this.id},add:function(h){this.storage.addRoot(h),this._needsRefresh=!0},remove:function(h){this.storage.delRoot(h),this._needsRefresh=!0},configLayer:function(h,y){this.painter.configLayer&&this.painter.configLayer(h,y),this._needsRefresh=!0},setBackgroundColor:function(h){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(h),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 h;this._needsRefresh&&(h=!0,this.refreshImmediately()),this._needsRefreshHover&&(h=!0,this.refreshHoverImmediately()),h&&this.trigger("rendered")},addHover:function(h,y){if(this.painter.addHover){var v=this.painter.addHover(h,y);return this.refreshHover(),v}},removeHover:function(h){this.painter.removeHover&&(this.painter.removeHover(h),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(h){h=h||{},this.painter.resize(h.width,h.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(h,y){return this.painter.pathToImage(h,y)},setCursorStyle:function(h){this.handler.setCursorStyle(h)},findHover:function(h,y){return this.handler.findHover(h,y)},on:function(h,y,v){this.handler.on(h,y,v)},off:function(h,y){this.handler.off(h,y)},trigger:function(h,y){this.handler.trigger(h,y)},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,d(this.id)}},Ce.version=e,Ce.init=s,Ce.dispose=u,Ce.getInstance=a,Ce.registerPainter=A},bT9E:function(We,Ce,I){"use strict";I.d(Ce,"a",function(){return V});var ae=I("VTBJ");function V(M,p){var E=Object(ae.a)({},M);return Array.isArray(p)&&p.forEach(function(C){delete E[C]}),E}},bYtY:function(We,Ce){var I={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},ae={"[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},V=Object.prototype.toString,M=Array.prototype,p=M.forEach,E=M.filter,C=M.slice,b=M.map,f=M.reduce,l={};function r(ie,pe){ie==="createCanvas"&&(d=null),l[ie]=pe}function n(ie){if(ie==null||typeof ie!="object")return ie;var pe=ie,ye=V.call(ie);if(ye==="[object Array]"){if(!we(ie)){pe=[];for(var de=0,Me=ie.length;de<Me;de++)pe[de]=n(ie[de])}}else if(ae[ye]){if(!we(ie)){var ke=ie.constructor;if(ie.constructor.from)pe=ke.from(ie);else{pe=new ke(ie.length);for(var de=0,Me=ie.length;de<Me;de++)pe[de]=n(ie[de])}}}else if(!I[ye]&&!we(ie)&&!Y(ie)){pe={};for(var Ue in ie)ie.hasOwnProperty(Ue)&&(pe[Ue]=n(ie[Ue]))}return pe}function e(ie,pe,ye){if(!R(pe)||!R(ie))return ye?n(pe):ie;for(var de in pe)if(pe.hasOwnProperty(de)){var Me=ie[de],ke=pe[de];R(ke)&&R(Me)&&!D(ke)&&!D(Me)&&!Y(ke)&&!Y(Me)&&!U(ke)&&!U(Me)&&!we(ke)&&!we(Me)?e(Me,ke,ye):(ye||!(de in ie))&&(ie[de]=n(pe[de],!0))}return ie}function s(ie,pe){for(var ye=ie[0],de=1,Me=ie.length;de<Me;de++)ye=e(ye,ie[de],pe);return ye}function u(ie,pe){for(var ye in pe)pe.hasOwnProperty(ye)&&(ie[ye]=pe[ye]);return ie}function a(ie,pe,ye){for(var de in pe)pe.hasOwnProperty(de)&&(ye?pe[de]!=null:ie[de]==null)&&(ie[de]=pe[de]);return ie}var A=function(){return l.createCanvas()};l.createCanvas=function(){return document.createElement("canvas")};var d;function i(){return d||(d=A().getContext("2d")),d}function h(ie,pe){if(ie){if(ie.indexOf)return ie.indexOf(pe);for(var ye=0,de=ie.length;ye<de;ye++)if(ie[ye]===pe)return ye}return-1}function y(ie,pe){var ye=ie.prototype;function de(){}de.prototype=pe.prototype,ie.prototype=new de;for(var Me in ye)ye.hasOwnProperty(Me)&&(ie.prototype[Me]=ye[Me]);ie.prototype.constructor=ie,ie.superClass=pe}function v(ie,pe,ye){ie="prototype"in ie?ie.prototype:ie,pe="prototype"in pe?pe.prototype:pe,a(ie,pe,ye)}function x(ie){return ie?typeof ie=="string"?!1:typeof ie.length=="number":void 0}function S(ie,pe,ye){if(!(ie&&pe))return;if(ie.forEach&&ie.forEach===p)ie.forEach(pe,ye);else if(ie.length===+ie.length)for(var de=0,Me=ie.length;de<Me;de++)pe.call(ye,ie[de],de,ie);else for(var ke in ie)ie.hasOwnProperty(ke)&&pe.call(ye,ie[ke],ke,ie)}function B(ie,pe,ye){if(!(ie&&pe))return;if(ie.map&&ie.map===b)return ie.map(pe,ye);for(var de=[],Me=0,ke=ie.length;Me<ke;Me++)de.push(pe.call(ye,ie[Me],Me,ie));return de}function w(ie,pe,ye,de){if(!(ie&&pe))return;if(ie.reduce&&ie.reduce===f)return ie.reduce(pe,ye,de);for(var Me=0,ke=ie.length;Me<ke;Me++)ye=pe.call(de,ye,ie[Me],Me,ie);return ye}function m(ie,pe,ye){if(!(ie&&pe))return;if(ie.filter&&ie.filter===E)return ie.filter(pe,ye);for(var de=[],Me=0,ke=ie.length;Me<ke;Me++)pe.call(ye,ie[Me],Me,ie)&&de.push(ie[Me]);return de}function c(ie,pe,ye){if(!(ie&&pe))return;for(var de=0,Me=ie.length;de<Me;de++)if(pe.call(ye,ie[de],de,ie))return ie[de]}function o(ie,pe){var ye=C.call(arguments,2);return function(){return ie.apply(pe,ye.concat(C.call(arguments)))}}function _(ie){var pe=C.call(arguments,1);return function(){return ie.apply(this,pe.concat(C.call(arguments)))}}function D(ie){return V.call(ie)==="[object Array]"}function T(ie){return typeof ie=="function"}function O(ie){return V.call(ie)==="[object String]"}function R(ie){var pe=typeof ie;return pe==="function"||!!ie&&pe==="object"}function U(ie){return!!I[V.call(ie)]}function F(ie){return!!ae[V.call(ie)]}function Y(ie){return typeof ie=="object"&&typeof ie.nodeType=="number"&&typeof ie.ownerDocument=="object"}function k(ie){return ie!==ie}function K(ie){for(var pe=0,ye=arguments.length;pe<ye;pe++)if(arguments[pe]!=null)return arguments[pe]}function z(ie,pe){return ie!=null?ie:pe}function j(ie,pe,ye){return ie!=null?ie:pe!=null?pe:ye}function Q(){return Function.call.apply(C,arguments)}function X(ie){if(typeof ie=="number")return[ie,ie,ie,ie];var pe=ie.length;return pe===2?[ie[0],ie[1],ie[0],ie[1]]:pe===3?[ie[0],ie[1],ie[2],ie[1]]:ie}function te(ie,pe){if(!ie)throw new Error(pe)}function oe(ie){return ie==null?null:typeof ie.trim=="function"?ie.trim():ie.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var fe="__ec_primitive__";function le(ie){ie[fe]=!0}function we(ie){return ie[fe]}function Ae(ie){var pe=D(ie);this.data={};var ye=this;ie instanceof Ae?ie.each(de):ie&&S(ie,de);function de(Me,ke){pe?ye.set(Me,ke):ye.set(ke,Me)}}Ae.prototype={constructor:Ae,get:function(ie){return this.data.hasOwnProperty(ie)?this.data[ie]:null},set:function(ie,pe){return this.data[ie]=pe},each:function(ie,pe){pe!==void 0&&(ie=o(ie,pe));for(var ye in this.data)this.data.hasOwnProperty(ye)&&ie(this.data[ye],ye)},removeKey:function(ie){delete this.data[ie]}};function be(ie){return new Ae(ie)}function me(ie,pe){for(var ye=new ie.constructor(ie.length+pe.length),de=0;de<ie.length;de++)ye[de]=ie[de];var Me=ie.length;for(de=0;de<pe.length;de++)ye[de+Me]=pe[de];return ye}function he(){}Ce.$override=r,Ce.clone=n,Ce.merge=e,Ce.mergeAll=s,Ce.extend=u,Ce.defaults=a,Ce.createCanvas=A,Ce.getContext=i,Ce.indexOf=h,Ce.inherits=y,Ce.mixin=v,Ce.isArrayLike=x,Ce.each=S,Ce.map=B,Ce.reduce=w,Ce.filter=m,Ce.find=c,Ce.bind=o,Ce.curry=_,Ce.isArray=D,Ce.isFunction=T,Ce.isString=O,Ce.isObject=R,Ce.isBuiltInObject=U,Ce.isTypedArray=F,Ce.isDom=Y,Ce.eqNaN=k,Ce.retrieve=K,Ce.retrieve2=z,Ce.retrieve3=j,Ce.slice=Q,Ce.normalizeCssArray=X,Ce.assert=te,Ce.trim=oe,Ce.setAsPrimitive=le,Ce.isPrimitive=we,Ce.createHashMap=be,Ce.concatArray=me,Ce.noop=he},biw7:function(We,Ce,I){"use strict";var ae=I("q1tI"),V=I.n(ae),M=ae.createContext(null);Ce.a=M},c5Ni:function(We,Ce,I){},cCSd:function(We,Ce,I){We.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(We,Ce,I){We.exports=I.p+"static/RepositoryNoneData.828085a8.png"},chpo:function(We,Ce,I){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.default=void 0;var ae=1,V=function(){return"".concat(ae++)};Ce.default=V},crp1:function(We,Ce,I){"use strict";I.d(Ce,"b",function(){return et}),I.d(Ce,"a",function(){return Wt});var ae={},V=function(Re,Qe,it,Tt,Vt){var rn=ae[Qe]||(ae[Qe]=URL.createObjectURL(new Blob([Re],{type:"text/javascript"}))),ve=new Worker(rn);return ve.onerror=function(G){return Vt(G.error,null)},ve.onmessage=function(G){return Vt(null,G.data)},ve.postMessage(it,Tt),ve},M=Uint8Array,p=Uint16Array,E=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]),b=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]),f=new M([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),l=function(Re,Qe){for(var it=new p(31),Tt=0;Tt<31;++Tt)it[Tt]=Qe+=1<<Re[Tt-1];for(var Vt=new E(it[30]),Tt=1;Tt<30;++Tt)for(var rn=it[Tt];rn<it[Tt+1];++rn)Vt[rn]=rn-it[Tt]<<5|Tt;return[it,Vt]},r=l(C,2),n=r[0],e=r[1];n[28]=258,e[258]=28;for(var s=l(b,0),u=s[0],a=s[1],A=new p(32768),d=0;d<32768;++d){var i=(d&43690)>>>1|(d&21845)<<1;i=(i&52428)>>>2|(i&13107)<<2,i=(i&61680)>>>4|(i&3855)<<4,A[d]=((i&65280)>>>8|(i&255)<<8)>>>1}for(var h=function(Re,Qe,it){for(var Tt=Re.length,Vt=0,rn=new p(Qe);Vt<Tt;++Vt)++rn[Re[Vt]-1];var ve=new p(Qe);for(Vt=0;Vt<Qe;++Vt)ve[Vt]=ve[Vt-1]+rn[Vt-1]<<1;var G;if(it){G=new p(1<<Qe);var Z=15-Qe;for(Vt=0;Vt<Tt;++Vt)if(Re[Vt])for(var ge=Vt<<4|Re[Vt],Se=Qe-Re[Vt],Ee=ve[Re[Vt]-1]++<<Se,ft=Ee|(1<<Se)-1;Ee<=ft;++Ee)G[A[Ee]>>>Z]=ge}else for(G=new p(Tt),Vt=0;Vt<Tt;++Vt)G[Vt]=A[ve[Re[Vt]-1]++]>>>15-Re[Vt];return G},y=new M(288),d=0;d<144;++d)y[d]=8;for(var d=144;d<256;++d)y[d]=9;for(var d=256;d<280;++d)y[d]=7;for(var d=280;d<288;++d)y[d]=8;for(var v=new M(32),d=0;d<32;++d)v[d]=5;var x=h(y,9,0),S=h(y,9,1),B=h(v,5,0),w=h(v,5,1),m=function(Re){for(var Qe=Re[0],it=1;it<Re.length;++it)Re[it]>Qe&&(Qe=Re[it]);return Qe},c=function(Re,Qe,it){var Tt=Qe/8>>0;return(Re[Tt]|Re[Tt+1]<<8)>>>(Qe&7)&it},o=function(Re,Qe){var it=Qe/8>>0;return(Re[it]|Re[it+1]<<8|Re[it+2]<<16)>>>(Qe&7)},_=function(Re){return(Re/8>>0)+(Re&7&&1)},D=function(Re,Qe,it){(Qe==null||Qe<0)&&(Qe=0),(it==null||it>Re.length)&&(it=Re.length);var Tt=new(Re instanceof p?p:Re instanceof E?E:M)(it-Qe);return Tt.set(Re.subarray(Qe,it)),Tt},T=function(Re,Qe,it){var Tt=Re.length,Vt=!Qe||it,rn=!it||it.i;it||(it={}),Qe||(Qe=new M(Tt*3));var ve=function(na){var La=Qe.length;if(na>La){var ia=new M(Math.max(La*2,na));ia.set(Qe),Qe=ia}},G=it.f||0,Z=it.p||0,ge=it.b||0,Se=it.l,Ee=it.d,ft=it.m,Kt=it.n,Rt=Tt*8;do{if(!Se){it.f=G=c(Re,Z,1);var mn=c(Re,Z+1,3);if(Z+=3,mn)if(mn==1)Se=S,Ee=w,ft=9,Kt=5;else if(mn==2){var $n=c(Re,Z,31)+257,wr=c(Re,Z+10,15)+4,aa=$n+c(Re,Z+5,31)+1;Z+=14;for(var Br=new M(aa),ta=new M(19),Sr=0;Sr<wr;++Sr)ta[f[Sr]]=c(Re,Z+Sr*3,7);Z+=wr*3;var ma=m(ta),la=(1<<ma)-1;if(!rn&&Z+aa*(ma+7)>Rt)break;for(var ja=h(ta,ma,1),Sr=0;Sr<aa;){var Sa=ja[c(Re,Z,la)];Z+=Sa&15;var Yt=Sa>>>4;if(Yt<16)Br[Sr++]=Yt;else{var Ua=0,ka=0;for(Yt==16?(ka=3+c(Re,Z,3),Z+=2,Ua=Br[Sr-1]):Yt==17?(ka=3+c(Re,Z,7),Z+=3):Yt==18&&(ka=11+c(Re,Z,127),Z+=7);ka--;)Br[Sr++]=Ua}}var Ca=Br.subarray(0,$n),Jr=Br.subarray($n);ft=m(Ca),Kt=m(Jr),Se=h(Ca,ft,1),Ee=h(Jr,Kt,1)}else throw"invalid block type";else{var Yt=_(Z)+4,Jn=Re[Yt-4]|Re[Yt-3]<<8,Hn=Yt+Jn;if(Hn>Tt){if(rn)throw"unexpected EOF";break}Vt&&ve(ge+Jn),Qe.set(Re.subarray(Yt,Hn),ge),it.b=ge+=Jn,it.p=Z=Hn*8;continue}if(Z>Rt)throw"unexpected EOF"}Vt&&ve(ge+131072);for(var Wa=(1<<ft)-1,Ma=(1<<Kt)-1,Ta=ft+Kt+18;rn||Z+Ta<Rt;){var Ua=Se[o(Re,Z)&Wa],ui=Ua>>>4;if(Z+=Ua&15,Z>Rt)throw"unexpected EOF";if(!Ua)throw"invalid length/literal";if(ui<256)Qe[ge++]=ui;else if(ui==256){Se=null;break}else{var Ai=ui-254;if(ui>264){var Sr=ui-257,Ba=C[Sr];Ai=c(Re,Z,(1<<Ba)-1)+n[Sr],Z+=Ba}var Xr=Ee[o(Re,Z)&Ma],hr=Xr>>>4;if(!Xr)throw"invalid distance";Z+=Xr&15;var Jr=u[hr];if(hr>3){var Ba=b[hr];Jr+=o(Re,Z)&(1<<Ba)-1,Z+=Ba}if(Z>Rt)throw"unexpected EOF";Vt&&ve(ge+131072);for(var Yr=ge+Ai;ge<Yr;ge+=4)Qe[ge]=Qe[ge-Jr],Qe[ge+1]=Qe[ge+1-Jr],Qe[ge+2]=Qe[ge+2-Jr],Qe[ge+3]=Qe[ge+3-Jr];ge=Yr}}it.l=Se,it.p=Z,it.b=ge,Se&&(G=1,it.m=ft,it.d=Ee,it.n=Kt)}while(!G);return ge==Qe.length?Qe:D(Qe,0,ge)},O=function(Re,Qe,it){it<<=Qe&7;var Tt=Qe/8>>0;Re[Tt]|=it,Re[Tt+1]|=it>>>8},R=function(Re,Qe,it){it<<=Qe&7;var Tt=Qe/8>>0;Re[Tt]|=it,Re[Tt+1]|=it>>>8,Re[Tt+2]|=it>>>16},U=function(Re,Qe){for(var it=[],Tt=0;Tt<Re.length;++Tt)Re[Tt]&&it.push({s:Tt,f:Re[Tt]});var Vt=it.length,rn=it.slice();if(!Vt)return[new M(0),0];if(Vt==1){var ve=new M(it[0].s+1);return ve[it[0].s]=1,[ve,1]}it.sort(function(aa,Br){return aa.f-Br.f}),it.push({s:-1,f:25001});var G=it[0],Z=it[1],ge=0,Se=1,Ee=2;for(it[0]={s:-1,f:G.f+Z.f,l:G,r:Z};Se!=Vt-1;)G=it[it[ge].f<it[Ee].f?ge++:Ee++],Z=it[ge!=Se&&it[ge].f<it[Ee].f?ge++:Ee++],it[Se++]={s:-1,f:G.f+Z.f,l:G,r:Z};for(var ft=rn[0].s,Tt=1;Tt<Vt;++Tt)rn[Tt].s>ft&&(ft=rn[Tt].s);var Kt=new p(ft+1),Rt=F(it[Se-1],Kt,0);if(Rt>Qe){var Tt=0,mn=0,Yt=Rt-Qe,Jn=1<<Yt;for(rn.sort(function(Br,ta){return Kt[ta.s]-Kt[Br.s]||Br.f-ta.f});Tt<Vt;++Tt){var Hn=rn[Tt].s;if(Kt[Hn]>Qe)mn+=Jn-(1<<Rt-Kt[Hn]),Kt[Hn]=Qe;else break}for(mn>>>=Yt;mn>0;){var $n=rn[Tt].s;Kt[$n]<Qe?mn-=1<<Qe-Kt[$n]++-1:++Tt}for(;Tt>=0&&mn;--Tt){var wr=rn[Tt].s;Kt[wr]==Qe&&(--Kt[wr],++mn)}Rt=Qe}return[new M(Kt),Rt]},F=function(Re,Qe,it){return Re.s==-1?Math.max(F(Re.l,Qe,it+1),F(Re.r,Qe,it+1)):Qe[Re.s]=it},Y=function(Re){for(var Qe=Re.length;Qe&&!Re[--Qe];);for(var it=new p(++Qe),Tt=0,Vt=Re[0],rn=1,ve=function(Z){it[Tt++]=Z},G=1;G<=Qe;++G)if(Re[G]==Vt&&G!=Qe)++rn;else{if(!Vt&&rn>2){for(;rn>138;rn-=138)ve(32754);rn>2&&(ve(rn>10?rn-11<<5|28690:rn-3<<5|12305),rn=0)}else if(rn>3){for(ve(Vt),--rn;rn>6;rn-=6)ve(8304);rn>2&&(ve(rn-3<<5|8208),rn=0)}for(;rn--;)ve(Vt);rn=1,Vt=Re[G]}return[it.subarray(0,Tt),Qe]},k=function(Re,Qe){for(var it=0,Tt=0;Tt<Qe.length;++Tt)it+=Re[Tt]*Qe[Tt];return it},K=function(Re,Qe,it){var Tt=it.length,Vt=_(Qe+2);Re[Vt]=Tt&255,Re[Vt+1]=Tt>>>8,Re[Vt+2]=Re[Vt]^255,Re[Vt+3]=Re[Vt+1]^255;for(var rn=0;rn<Tt;++rn)Re[Vt+rn+4]=it[rn];return(Vt+4+Tt)*8},z=function(Re,Qe,it,Tt,Vt,rn,ve,G,Z,ge,Se){O(Qe,Se++,it),++Vt[256];for(var Ee=U(Vt,15),ft=Ee[0],Kt=Ee[1],Rt=U(rn,15),mn=Rt[0],Yt=Rt[1],Jn=Y(ft),Hn=Jn[0],$n=Jn[1],wr=Y(mn),aa=wr[0],Br=wr[1],ta=new p(19),Sr=0;Sr<Hn.length;++Sr)ta[Hn[Sr]&31]++;for(var Sr=0;Sr<aa.length;++Sr)ta[aa[Sr]&31]++;for(var ma=U(ta,7),la=ma[0],ja=ma[1],Sa=19;Sa>4&&!la[f[Sa-1]];--Sa);var Ua=ge+5<<3,ka=k(Vt,y)+k(rn,v)+ve,Ca=k(Vt,ft)+k(rn,mn)+ve+14+3*Sa+k(ta,la)+(2*ta[16]+3*ta[17]+7*ta[18]);if(Ua<=ka&&Ua<=Ca)return K(Qe,Se,Re.subarray(Z,Z+ge));var Jr,Wa,Ma,Ta;if(O(Qe,Se,1+(Ca<ka)),Se+=2,Ca<ka){Jr=h(ft,Kt,0),Wa=ft,Ma=h(mn,Yt,0),Ta=mn;var ui=h(la,ja,0);O(Qe,Se,$n-257),O(Qe,Se+5,Br-1),O(Qe,Se+10,Sa-4),Se+=14;for(var Sr=0;Sr<Sa;++Sr)O(Qe,Se+3*Sr,la[f[Sr]]);Se+=3*Sa;for(var Ai=[Hn,aa],Ba=0;Ba<2;++Ba)for(var Xr=Ai[Ba],Sr=0;Sr<Xr.length;++Sr){var hr=Xr[Sr]&31;O(Qe,Se,ui[hr]),Se+=la[hr],hr>15&&(O(Qe,Se,Xr[Sr]>>>5&127),Se+=Xr[Sr]>>>12)}}else Jr=x,Wa=y,Ma=B,Ta=v;for(var Sr=0;Sr<G;++Sr)if(Tt[Sr]>255){var hr=Tt[Sr]>>>18&31;R(Qe,Se,Jr[hr+257]),Se+=Wa[hr+257],hr>7&&(O(Qe,Se,Tt[Sr]>>>23&31),Se+=C[hr]);var Yr=Tt[Sr]&31;R(Qe,Se,Ma[Yr]),Se+=Ta[Yr],Yr>3&&(R(Qe,Se,Tt[Sr]>>>5&8191),Se+=b[Yr])}else R(Qe,Se,Jr[Tt[Sr]]),Se+=Wa[Tt[Sr]];return R(Qe,Se,Jr[256]),Se+Wa[256]},j=new E([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Q=new M(0),X=function(Re,Qe,it,Tt,Vt,rn){var ve=Re.length,G=new M(Tt+ve+5*(1+Math.floor(ve/7e3))+Vt),Z=G.subarray(Tt,G.length-Vt),ge=0;if(!Qe||ve<8)for(var Se=0;Se<=ve;Se+=65535){var Ee=Se+65535;Ee<ve?ge=K(Z,ge,Re.subarray(Se,Ee)):(Z[Se]=rn,ge=K(Z,ge,Re.subarray(Se,ve)))}else{for(var ft=j[Qe-1],Kt=ft>>>13,Rt=ft&8191,mn=(1<<it)-1,Yt=new p(32768),Jn=new p(mn+1),Hn=Math.ceil(it/3),$n=2*Hn,wr=function(wa){return(Re[wa]^Re[wa+1]<<Hn^Re[wa+2]<<$n)&mn},aa=new E(25e3),Br=new p(288),ta=new p(32),Sr=0,ma=0,Se=0,la=0,ja=0,Sa=0;Se<ve;++Se){var Ua=wr(Se),ka=Se&32767,Ca=Jn[Ua];if(Yt[ka]=Ca,Jn[Ua]=ka,ja<=Se){var Jr=ve-Se;if((Sr>7e3||la>24576)&&Jr>423){ge=z(Re,Z,0,aa,Br,ta,ma,la,Sa,Se-Sa,ge),la=Sr=ma=0,Sa=Se;for(var Wa=0;Wa<286;++Wa)Br[Wa]=0;for(var Wa=0;Wa<30;++Wa)ta[Wa]=0}var Ma=2,Ta=0,ui=Rt,Ai=ka-Ca&32767;if(Jr>2&&Ua==wr(Se-Ai))for(var Ba=Math.min(Kt,Jr)-1,Xr=Math.min(32767,Se),hr=Math.min(258,Jr);Ai<=Xr&&--ui&&ka!=Ca;){if(Re[Se+Ma]==Re[Se+Ma-Ai]){for(var Yr=0;Yr<hr&&Re[Se+Yr]==Re[Se+Yr-Ai];++Yr);if(Yr>Ma){if(Ma=Yr,Ta=Ai,Yr>Ba)break;for(var na=Math.min(Ai,Yr-2),La=0,Wa=0;Wa<na;++Wa){var ia=Se-Ai+Wa+32768&32767,eo=Yt[ia],za=ia-eo+32768&32767;za>La&&(La=za,Ca=ia)}}}ka=Ca,Ca=Yt[ka],Ai+=ka-Ca+32768&32767}if(Ta){aa[la++]=268435456|e[Ma]<<18|a[Ta];var Ga=e[Ma]&31,Qi=a[Ta]&31;ma+=C[Ga]+b[Qi],++Br[257+Ga],++ta[Qi],ja=Se+Ma,++Sr}else aa[la++]=Re[Se],++Br[Re[Se]]}}ge=z(Re,Z,rn,aa,Br,ta,ma,la,Sa,Se-Sa,ge),rn||(ge=K(Z,ge,Q))}return D(G,0,Tt+_(ge)+Vt)},te=function(){for(var Re=new E(256),Qe=0;Qe<256;++Qe){for(var it=Qe,Tt=9;--Tt;)it=(it&1&&3988292384)^it>>>1;Re[Qe]=it}return Re}(),oe=function(){var Re=4294967295;return{p:function(Qe){for(var it=Re,Tt=0;Tt<Qe.length;++Tt)it=te[it&255^Qe[Tt]]^it>>>8;Re=it},d:function(){return Re^4294967295}}},fe=function(){var Re=1,Qe=0;return{p:function(it){for(var Tt=Re,Vt=Qe,rn=it.length,ve=0;ve!=rn;){for(var G=Math.min(ve+5552,rn);ve<G;++ve)Tt+=it[ve],Vt+=Tt;Tt%=65521,Vt%=65521}Re=Tt,Qe=Vt},d:function(){return(Re>>>8<<16|(Qe&255)<<8|Qe>>>8)+((Re&255)<<23)*2}}},le=function(Re,Qe,it,Tt,Vt){return X(Re,Qe.level==null?6:Qe.level,Qe.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(Re.length)))*1.5):12+Qe.mem,it,Tt,!Vt)},we=function(Re,Qe){var it={};for(var Tt in Re)it[Tt]=Re[Tt];for(var Tt in Qe)it[Tt]=Qe[Tt];return it},Ae=function(Re,Qe,it){for(var Tt=Re(),Vt=Re.toString(),rn=Vt.slice(Vt.indexOf("[")+1,Vt.lastIndexOf("]")).replace(/ /g,"").split(","),ve=0;ve<Tt.length;++ve){var G=Tt[ve],Z=rn[ve];if(typeof G=="function"){Qe+=";"+Z+"=";var ge=G.toString();if(G.prototype)if(ge.indexOf("[native code]")!=-1){var Se=ge.indexOf(" ",8)+1;Qe+=ge.slice(Se,ge.indexOf("(",Se))}else{Qe+=ge;for(var Ee in G.prototype)Qe+=";"+Z+".prototype."+Ee+"="+G.prototype[Ee].toString()}else Qe+=ge}else it[Z]=G}return[Qe,it]},be=[],me=function(Re){var Qe=[];for(var it in Re)(Re[it]instanceof M||Re[it]instanceof p||Re[it]instanceof E)&&Qe.push((Re[it]=new Re[it].constructor(Re[it])).buffer);return Qe},he=function(Re,Qe,it,Tt){var Vt;if(!be[it]){for(var rn="",ve={},G=Re.length-1,Z=0;Z<G;++Z)Vt=Ae(Re[Z],rn,ve),rn=Vt[0],ve=Vt[1];be[it]=Ae(Re[G],rn,ve)}var ge=we({},be[it][1]);return V(be[it][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+Qe.toString()+"}",it,ge,me(ge),Tt)},ie=function(){return[M,p,E,C,b,f,n,u,S,w,A,h,m,c,o,_,D,T,$e,Ue,re]},pe=function(){return[M,p,E,C,b,f,e,a,x,y,B,v,A,j,Q,h,O,R,U,F,Y,k,K,z,_,D,X,le,qe,Ue]},ye=function(){return[ze,Xe,De,oe,te]},de=function(){return[wt,He]},Me=function(){return[gt,De,fe]},ke=function(){return[_t]},Ue=function(Re){return postMessage(Re,[Re.buffer])},re=function(Re){return Re&&Re.size&&new M(Re.size)},N=function(Re,Qe,it,Tt,Vt,rn){var ve=he(it,Tt,Vt,function(G,Z){ve.terminate(),rn(G,Z)});return Qe.consume||(Re=new M(Re)),ve.postMessage([Re,Qe],[Re.buffer]),function(){ve.terminate()}},W=function(Re){return Re.ondata=function(Qe,it){return postMessage([Qe,it],[Qe.buffer])},function(Qe){return Re.push(Qe.data[0],Qe.data[1])}},ce=function(Re,Qe,it,Tt,Vt){var rn,ve=he(Re,Tt,Vt,function(G,Z){G?(ve.terminate(),Qe.ondata.call(Qe,G)):(Z[1]&&ve.terminate(),Qe.ondata.call(Qe,G,Z[0],Z[1]))});ve.postMessage(it),Qe.push=function(G,Z){if(rn)throw"stream finished";if(!Qe.ondata)throw"no stream handler";ve.postMessage([G,rn=Z],[G.buffer])},Qe.terminate=function(){ve.terminate()}},ne=function(Re,Qe){return Re[Qe]|Re[Qe+1]<<8},ue=function(Re,Qe){return(Re[Qe]|Re[Qe+1]<<8|Re[Qe+2]<<16)+(Re[Qe+3]<<23)*2},De=function(Re,Qe,it){for(;it;++Qe)Re[Qe]=it,it>>>=8},ze=function(Re,Qe){var it=Qe.filename;if(Re[0]=31,Re[1]=139,Re[2]=8,Re[8]=Qe.level<2?4:Qe.level==9?2:0,Re[9]=3,Qe.mtime!=0&&De(Re,4,Math.floor(new Date(Qe.mtime||Date.now())/1e3)),it){Re[3]=8;for(var Tt=0;Tt<=it.length;++Tt)Re[Tt+10]=it.charCodeAt(Tt)}},wt=function(Re){if(Re[0]!=31||Re[1]!=139||Re[2]!=8)throw"invalid gzip data";var Qe=Re[3],it=10;Qe&4&&(it+=Re[10]|(Re[11]<<8)+2);for(var Tt=(Qe>>3&1)+(Qe>>4&1);Tt>0;Tt-=!Re[it++]);return it+(Qe&2)},He=function(Re){var Qe=Re.length;return(Re[Qe-4]|Re[Qe-3]<<8|Re[Qe-2]<<16)+2*(Re[Qe-1]<<23)},Xe=function(Re){return 10+(Re.filename&&Re.filename.length+1||0)},gt=function(Re,Qe){var it=Qe.level,Tt=it==0?0:it<6?1:it==9?3:2;Re[0]=120,Re[1]=Tt<<6|(Tt?32-2*Tt:1)},_t=function(Re){if((Re[0]&15)!=8||Re[0]>>>4>7||(Re[0]<<8|Re[1])%31)throw"invalid zlib data";if(Re[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function ct(Re,Qe){return!Qe&&typeof Re=="function"&&(Qe=Re,Re={}),this.ondata=Qe,Re}var lt=function(){function Re(Qe,it){!it&&typeof Qe=="function"&&(it=Qe,Qe={}),this.ondata=it,this.o=Qe||{}}return Re.prototype.p=function(Qe,it){this.ondata(le(Qe,this.o,0,0,!it),it)},Re.prototype.push=function(Qe,it){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=it,this.p(Qe,it||!1)},Re}(),rt=function(){function Re(Qe,it){ce([pe,function(){return[W,lt]}],this,ct.call(this,Qe,it),function(Tt){var Vt=new lt(Tt.data);onmessage=W(Vt)},6)}return Re}();function Ze(Re,Qe,it){if(it||(it=Qe,Qe={}),typeof it!="function")throw"no callback";return N(Re,Qe,[pe],function(Tt){return Ue(qe(Tt.data[0],Tt.data[1]))},0,it)}function qe(Re,Qe){return Qe===void 0&&(Qe={}),le(Re,Qe,0,0)}var Le=function(){function Re(Qe){this.s={},this.p=new M(0),this.ondata=Qe}return Re.prototype.e=function(Qe){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var it=this.p.length,Tt=new M(it+Qe.length);Tt.set(this.p),Tt.set(Qe,it),this.p=Tt},Re.prototype.c=function(Qe){this.d=this.s.i=Qe||!1;var it=this.s.b,Tt=T(this.p,this.o,this.s);this.ondata(D(Tt,it,this.s.b),this.d),this.o=D(Tt,this.s.b-32768),this.s.b=this.o.length,this.p=D(this.p,this.s.p/8>>0),this.s.p&=7},Re.prototype.push=function(Qe,it){this.e(Qe),this.c(it)},Re}(),je=function(){function Re(Qe){this.ondata=Qe,ce([ie,function(){return[W,Le]}],this,0,function(){var it=new Le;onmessage=W(it)},7)}return Re}();function Ne(Re,Qe,it){if(it||(it=Qe,Qe={}),typeof it!="function")throw"no callback";return N(Re,Qe,[ie],function(Tt){return Ue($e(Tt.data[0],re(Tt.data[1])))},1,it)}function $e(Re,Qe){return T(Re,Qe)}var At=function(){function Re(Qe,it){this.c=oe(),this.l=0,this.v=1,lt.call(this,Qe,it)}return Re.prototype.push=function(Qe,it){lt.prototype.push.call(this,Qe,it)},Re.prototype.p=function(Qe,it){this.c.p(Qe),this.l+=Qe.length;var Tt=le(Qe,this.o,this.v&&Xe(this.o),it&&8,!it);this.v&&(ze(Tt,this.o),this.v=0),it&&(De(Tt,Tt.length-8,this.c.d()),De(Tt,Tt.length-4,this.l)),this.ondata(Tt,it)},Re}(),Bt=function(){function Re(Qe,it){ce([pe,ye,function(){return[W,lt,At]}],this,ct.call(this,Qe,it),function(Tt){var Vt=new At(Tt.data);onmessage=W(Vt)},8)}return Re}();function Nt(Re,Qe,it){if(it||(it=Qe,Qe={}),typeof it!="function")throw"no callback";return N(Re,Qe,[pe,ye,function(){return[It]}],function(Tt){return Ue(It(Tt.data[0],Tt.data[1]))},2,it)}function It(Re,Qe){Qe===void 0&&(Qe={});var it=oe(),Tt=Re.length;it.p(Re);var Vt=le(Re,Qe,Xe(Qe),8),rn=Vt.length;return ze(Vt,Qe),De(Vt,rn-8,it.d()),De(Vt,rn-4,Tt),Vt}var jt=function(){function Re(Qe){this.v=1,Le.call(this,Qe)}return Re.prototype.push=function(Qe,it){if(Le.prototype.e.call(this,Qe),this.v){var Tt=wt(this.p);if(Tt>=this.p.length&&!it)return;this.p=this.p.subarray(Tt),this.v=0}if(it){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}Le.prototype.c.call(this,it)},Re}(),xt=function(){function Re(Qe){this.ondata=Qe,ce([ie,de,function(){return[W,Le,jt]}],this,0,function(){var it=new jt;onmessage=W(it)},9)}return Re}();function Lt(Re,Qe,it){if(it||(it=Qe,Qe={}),typeof it!="function")throw"no callback";return N(Re,Qe,[ie,de,function(){return[St]}],function(Tt){return Ue(St(Tt.data[0]))},3,it)}function St(Re,Qe){return T(Re.subarray(wt(Re),-8),Qe||new M(He(Re)))}var dt=function(){function Re(Qe,it){this.c=fe(),this.v=1,lt.call(this,Qe,it)}return Re.prototype.push=function(Qe,it){lt.prototype.push.call(this,Qe,it)},Re.prototype.p=function(Qe,it){this.c.p(Qe);var Tt=le(Qe,this.o,this.v&&2,it&&4,!it);this.v&&(gt(Tt,this.o),this.v=0),it&&De(Tt,Tt.length-4,this.c.d()),this.ondata(Tt,it)},Re}(),yt=function(){function Re(Qe,it){ce([pe,Me,function(){return[W,lt,dt]}],this,ct.call(this,Qe,it),function(Tt){var Vt=new dt(Tt.data);onmessage=W(Vt)},10)}return Re}();function Fe(Re,Qe,it){if(it||(it=Qe,Qe={}),typeof it!="function")throw"no callback";return N(Re,Qe,[pe,Me,function(){return[et]}],function(Tt){return Ue(et(Tt.data[0],Tt.data[1]))},4,it)}function et(Re,Qe){Qe===void 0&&(Qe={});var it=fe();it.p(Re);var Tt=le(Re,Qe,2,4);return gt(Tt,Qe),De(Tt,Tt.length-4,it.d()),Tt}var Ot=function(){function Re(Qe){this.v=1,Le.call(this,Qe)}return Re.prototype.push=function(Qe,it){if(Le.prototype.e.call(this,Qe),this.v){if(this.p.length<2&&!it)return;this.p=this.p.subarray(2),this.v=0}if(it){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}Le.prototype.c.call(this,it)},Re}(),Et=function(){function Re(Qe){this.ondata=Qe,ce([ie,ke,function(){return[W,Le,Ot]}],this,0,function(){var it=new Ot;onmessage=W(it)},11)}return Re}();function Ut(Re,Qe,it){if(it||(it=Qe,Qe={}),typeof it!="function")throw"no callback";return N(Re,Qe,[ie,ke,function(){return[Wt]}],function(Tt){return Ue(Wt(Tt.data[0],re(Tt.data[1])))},5,it)}function Wt(Re,Qe){return T((_t(Re),Re.subarray(2,-4)),Qe)}var bt=function(){function Re(Qe){this.G=jt,this.I=Le,this.Z=Ot,this.ondata=Qe}return Re.prototype.push=function(Qe,it){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(Qe,it);else{if(this.p&&this.p.length){var Tt=new M(this.p.length+Qe.length);Tt.set(this.p),Tt.set(Qe,this.p.length)}else this.p=Qe;if(this.p.length>2){var Vt=this,rn=function(){Vt.ondata.apply(Vt,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(rn):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(rn):new this.Z(rn),this.s.push(this.p,it),this.p=null}}},Re}(),Gt=function(){function Re(Qe){this.G=xt,this.I=je,this.Z=Et,this.ondata=Qe}return Re.prototype.push=function(Qe,it){bt.prototype.push.call(this,Qe,it)},Re}();function un(Re,Qe,it){if(it||(it=Qe,Qe={}),typeof it!="function")throw"no callback";return Re[0]==31&&Re[1]==139&&Re[2]==8?Lt(Re,Qe,it):(Re[0]&15)!=8||Re[0]>>4>7||(Re[0]<<8|Re[1])%31?Ne(Re,Qe,it):Ut(Re,Qe,it)}function jn(Re,Qe){return Re[0]==31&&Re[1]==139&&Re[2]==8?St(Re,Qe):(Re[0]&15)!=8||Re[0]>>4>7||(Re[0]<<8|Re[1])%31?$e(Re,Qe):Wt(Re,Qe)}var Bn=function(Re,Qe,it,Tt){for(var Vt in Re){var rn=Re[Vt],ve=Qe+Vt;rn instanceof M?it[ve]=[rn,Tt]:Array.isArray(rn)?it[ve]=[rn[0],we(Tt,rn[1])]:Bn(rn,ve+"/",it,Tt)}};function Nr(Re,Qe){var it=Re.length;if(!Qe&&typeof TextEncoder!="undefined")return new TextEncoder().encode(Re);for(var Tt=new M(Re.length+(Re.length>>>1)),Vt=0,rn=function(ge){Tt[Vt++]=ge},ve=0;ve<it;++ve){if(Vt+5>Tt.length){var G=new M(Vt+8+(it-ve<<1));G.set(Tt),Tt=G}var Z=Re.charCodeAt(ve);Z<128||Qe?rn(Z):Z<2048?(rn(192|Z>>>6),rn(128|Z&63)):Z>55295&&Z<57344?(Z=65536+(Z&1023<<10)|Re.charCodeAt(++ve)&1023,rn(240|Z>>>18),rn(128|Z>>>12&63),rn(128|Z>>>6&63),rn(128|Z&63)):(rn(224|Z>>>12),rn(128|Z>>>6&63),rn(128|Z&63))}return D(Tt,0,Vt)}function zr(Re,Qe){var it="";if(!Qe&&typeof TextDecoder!="undefined")return new TextDecoder().decode(Re);for(var Tt=0;Tt<Re.length;){var Vt=Re[Tt++];Vt<128||Qe?it+=String.fromCharCode(Vt):Vt<224?it+=String.fromCharCode((Vt&31)<<6|Re[Tt++]&63):Vt<240?it+=String.fromCharCode((Vt&15)<<12|(Re[Tt++]&63)<<6|Re[Tt++]&63):(Vt=((Vt&15)<<18|(Re[Tt++]&63)<<12|(Re[Tt++]&63)<<6|Re[Tt++]&63)-65536,it+=String.fromCharCode(55296|Vt>>10,56320|Vt&1023))}return it}var _r=function(Re,Qe){return Qe+30+ne(Re,Qe+26)+ne(Re,Qe+28)},Rn=function(Re,Qe,it){var Tt=ne(Re,Qe+28),Vt=zr(Re.subarray(Qe+46,Qe+46+Tt),!(ne(Re,Qe+8)&2048)),rn=Qe+46+Tt,ve=it?ea(Re,rn):[ue(Re,Qe+20),ue(Re,Qe+24),ue(Re,Qe+42)],G=ve[0],Z=ve[1],ge=ve[2];return[ne(Re,Qe+10),G,Z,Vt,rn+ne(Re,Qe+30)+ne(Re,Qe+32),ge]},ea=function(Re,Qe){for(;ne(Re,Qe)!=1;Qe+=4+ne(Re,Qe+2));return[ue(Re,Qe+12),ue(Re,Qe+4),ue(Re,Qe+20)]},Aa=function(Re,Qe,it,Tt,Vt,rn,ve,G,Z,ge){var Se=rn.length,Ee=Tt.length;De(Re,Qe,Z!=null?33639248:67324752),Qe+=4,Z!=null&&(Re[Qe]=20,Qe+=2),Re[Qe]=20,Qe+=2,Re[Qe++]=ge==8&&(G.level==1?6:G.level<6?4:G.level==9?2:0),Re[Qe++]=ve&&8,Re[Qe]=ge,Qe+=2;var ft=new Date(G.mtime||Date.now()),Kt=ft.getFullYear()-1980;if(Kt<0||Kt>119)throw"date not in range 1980-2099";De(Re,Qe,(Kt<<24)*2|ft.getMonth()+1<<21|ft.getDate()<<16|ft.getHours()<<11|ft.getMinutes()<<5|ft.getSeconds()>>>1),Qe+=4,De(Re,Qe,it),De(Re,Qe+4,Ee),De(Re,Qe+8,Vt),De(Re,Qe+12,Se),Qe+=16,Z!=null&&(De(Re,Qe+=10,Z),Qe+=4),Re.set(rn,Qe),Qe+=Se,Z==null&&Re.set(Tt,Qe)},pa=function(Re,Qe,it,Tt,Vt){De(Re,Qe,101010256),De(Re,Qe+8,it),De(Re,Qe+10,it),De(Re,Qe+12,Tt),De(Re,Qe+16,Vt)};function Kr(Re,Qe,it){if(it||(it=Qe,Qe={}),typeof it!="function")throw"no callback";var Tt={};Bn(Re,"",Tt,Qe);var Vt=Object.keys(Tt),rn=Vt.length,ve=0,G=0,Z=rn,ge=new Array(rn),Se=[],Ee=function(){for(var mn=0;mn<Se.length;++mn)Se[mn]()},ft=function(){var mn=new M(G+22),Yt=ve,Jn=G-ve;G=0;for(var Hn=0;Hn<Z;++Hn){var $n=ge[Hn];try{Aa(mn,G,$n.c,$n.d,$n.m,$n.n,$n.u,$n.p,null,$n.t),Aa(mn,ve,$n.c,$n.d,$n.m,$n.n,$n.u,$n.p,G,$n.t),ve+=46+$n.n.length,G+=30+$n.n.length+$n.d.length}catch(wr){return it(wr,null)}}pa(mn,ve,ge.length,Jn,Yt),it(null,mn)};rn||ft();for(var Kt=function(mn){var Yt=Vt[mn],Jn=Tt[Yt],Hn=Jn[0],$n=Jn[1],wr=oe(),aa=Hn.length;wr.p(Hn);var Br=Nr(Yt),ta=Br.length,Sr=$n.level==0?0:8,ma=function(la,ja){if(la)Ee(),it(la,null);else{var Sa=ja.length;ge[mn]={t:Sr,d:ja,m:aa,c:wr.d(),u:Yt.length!=Sa,n:Br,p:$n},ve+=30+ta+Sa,G+=76+2*ta+Sa,--rn||ft()}};if(Br.length>65535&&ma("filename too long",null),!Sr)ma(null,Hn);else if(aa<16e4)try{ma(null,qe(Hn,$n))}catch(la){ma(la,null)}else Se.push(Ze(Hn,$n,ma))},Rt=0;Rt<Z;++Rt)Kt(Rt);return Ee}function Ea(Re,Qe){Qe===void 0&&(Qe={});var it={},Tt=[];Bn(Re,"",it,Qe);var Vt=0,rn=0;for(var ve in it){var G=it[ve],Z=G[0],ge=G[1],Se=ge.level==0?0:8,Ee=Nr(ve),ft=Ee.length;if(Ee.length>65535)throw"filename too long";var Kt=Se?qe(Z,ge):Z,Rt=Kt.length,mn=oe();mn.p(Z),Tt.push({t:Se,d:Kt,m:Z.length,c:mn.d(),u:ve.length!=ft,n:Ee,o:Vt,p:ge}),Vt+=30+ft+Rt,rn+=76+2*ft+Rt}for(var Yt=new M(rn+22),Jn=Vt,Hn=rn-Vt,$n=0;$n<Tt.length;++$n){var wr=Tt[$n];Aa(Yt,wr.o,wr.c,wr.d,wr.m,wr.n,wr.u,wr.p,null,wr.t),Aa(Yt,Vt,wr.c,wr.d,wr.m,wr.n,wr.u,wr.p,wr.o,wr.t),Vt+=46+wr.n.length}return pa(Yt,Vt,Tt.length,Hn,Jn),Yt}function Za(Re,Qe){if(typeof Qe!="function")throw"no callback";for(var it=[],Tt=function(){for(var ft=0;ft<it.length;++ft)it[ft]()},Vt={},rn=Re.length-22;ue(Re,rn)!=101010256;--rn)if(!rn||Re.length-rn>65558){Qe("invalid zip file",null);return}var ve=ne(Re,rn+8);ve||Qe(null,{});var G=ve,Z=ue(Re,rn+16),ge=Z==4294967295;if(ge){if(rn=ue(Re,rn-12),ue(Re,rn)!=101075792)throw"invalid zip file";G=ve=ue(Re,rn+32),Z=ue(Re,rn+48)}for(var Se=function(ft){var Kt=Rn(Re,Z,ge),Rt=Kt[0],mn=Kt[1],Yt=Kt[2],Jn=Kt[3],Hn=Kt[4],$n=Kt[5],wr=_r(Re,$n);Z=Hn;var aa=function(ta,Sr){ta?(Tt(),Qe(ta,null)):(Vt[Jn]=Sr,--ve||Qe(null,Vt))};if(!Rt)aa(null,D(Re,wr,wr+mn));else if(Rt==8){var Br=Re.subarray(wr,wr+mn);if(mn<32e4)try{aa(null,$e(Br,new M(Yt)))}catch(ta){aa(ta,null)}else it.push(Ne(Br,{size:Yt},aa))}else aa("unknown compression type "+Rt,null)},Ee=0;Ee<G;++Ee)Se(Ee);return Tt}function fi(Re){for(var Qe={},it=Re.length-22;ue(Re,it)!=101010256;--it)if(!it||Re.length-it>65558)throw"invalid zip file";var Tt=ne(Re,it+8);if(!Tt)return{};var Vt=ue(Re,it+16),rn=Vt==4294967295;if(rn){if(it=ue(Re,it-12),ue(Re,it)!=101075792)throw"invalid zip file";Tt=ue(Re,it+32),Vt=ue(Re,it+48)}for(var ve=0;ve<Tt;++ve){var G=Rn(Re,Vt,rn),Z=G[0],ge=G[1],Se=G[2],Ee=G[3],ft=G[4],Kt=G[5],Rt=_r(Re,Kt);if(Vt=ft,!Z)Qe[Ee]=D(Re,Rt,Rt+ge);else if(Z==8)Qe[Ee]=$e(Re.subarray(Rt,Rt+ge),new M(Se));else throw"unknown compression type "+Z}return Qe}},csWT:function(We,Ce,I){We.exports=I.p+"static/choose.4ad1045f.svg"},dMvE:function(We,Ce){var I={linear:function(V){return V},quadraticIn:function(V){return V*V},quadraticOut:function(V){return V*(2-V)},quadraticInOut:function(V){return(V*=2)<1?.5*V*V:-.5*(--V*(V-2)-1)},cubicIn:function(V){return V*V*V},cubicOut:function(V){return--V*V*V+1},cubicInOut:function(V){return(V*=2)<1?.5*V*V*V:.5*((V-=2)*V*V+2)},quarticIn:function(V){return V*V*V*V},quarticOut:function(V){return 1- --V*V*V*V},quarticInOut:function(V){return(V*=2)<1?.5*V*V*V*V:-.5*((V-=2)*V*V*V-2)},quinticIn:function(V){return V*V*V*V*V},quinticOut:function(V){return--V*V*V*V*V+1},quinticInOut:function(V){return(V*=2)<1?.5*V*V*V*V*V:.5*((V-=2)*V*V*V*V+2)},sinusoidalIn:function(V){return 1-Math.cos(V*Math.PI/2)},sinusoidalOut:function(V){return Math.sin(V*Math.PI/2)},sinusoidalInOut:function(V){return .5*(1-Math.cos(Math.PI*V))},exponentialIn:function(V){return V===0?0:Math.pow(1024,V-1)},exponentialOut:function(V){return V===1?1:1-Math.pow(2,-10*V)},exponentialInOut:function(V){return V===0?0:V===1?1:(V*=2)<1?.5*Math.pow(1024,V-1):.5*(-Math.pow(2,-10*(V-1))+2)},circularIn:function(V){return 1-Math.sqrt(1-V*V)},circularOut:function(V){return Math.sqrt(1- --V*V)},circularInOut:function(V){return(V*=2)<1?-.5*(Math.sqrt(1-V*V)-1):.5*(Math.sqrt(1-(V-=2)*V)+1)},elasticIn:function(V){var M,p=.1,E=.4;return V===0?0:V===1?1:(!p||p<1?(p=1,M=E/4):M=E*Math.asin(1/p)/(2*Math.PI),-(p*Math.pow(2,10*(V-=1))*Math.sin((V-M)*(2*Math.PI)/E)))},elasticOut:function(V){var M,p=.1,E=.4;return V===0?0:V===1?1:(!p||p<1?(p=1,M=E/4):M=E*Math.asin(1/p)/(2*Math.PI),p*Math.pow(2,-10*V)*Math.sin((V-M)*(2*Math.PI)/E)+1)},elasticInOut:function(V){var M,p=.1,E=.4;return V===0?0:V===1?1:(!p||p<1?(p=1,M=E/4):M=E*Math.asin(1/p)/(2*Math.PI),(V*=2)<1?-.5*(p*Math.pow(2,10*(V-=1))*Math.sin((V-M)*(2*Math.PI)/E)):p*Math.pow(2,-10*(V-=1))*Math.sin((V-M)*(2*Math.PI)/E)*.5+1)},backIn:function(V){var M=1.70158;return V*V*((M+1)*V-M)},backOut:function(V){var M=1.70158;return--V*V*((M+1)*V+M)+1},backInOut:function(V){var M=1.70158*1.525;return(V*=2)<1?.5*(V*V*((M+1)*V-M)):.5*((V-=2)*V*((M+1)*V+M)+2)},bounceIn:function(V){return 1-I.bounceOut(1-V)},bounceOut:function(V){return V<1/2.75?7.5625*V*V:V<2/2.75?7.5625*(V-=1.5/2.75)*V+.75:V<2.5/2.75?7.5625*(V-=2.25/2.75)*V+.9375:7.5625*(V-=2.625/2.75)*V+.984375},bounceInOut:function(V){return V<.5?I.bounceIn(V*2)*.5:I.bounceOut(V*2-1)*.5+.5}},ae=I;We.exports=ae},dQei:function(We,Ce){for(var I={glog:function(V){if(V<1)throw new Error("glog("+V+")");return I.LOG_TABLE[V]},gexp:function(V){for(;V<0;)V+=255;for(;V>=256;)V-=255;return I.EXP_TABLE[V]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},ae=0;ae<8;ae++)I.EXP_TABLE[ae]=1<<ae;for(var ae=8;ae<256;ae++)I.EXP_TABLE[ae]=I.EXP_TABLE[ae-4]^I.EXP_TABLE[ae-5]^I.EXP_TABLE[ae-6]^I.EXP_TABLE[ae-8];for(var ae=0;ae<255;ae++)I.LOG_TABLE[I.EXP_TABLE[ae]]=ae;We.exports=I},dWSS:function(We,Ce,I){var ae=I("dQei");function V(M,p){if(M.length==null)throw new Error(M.length+"/"+p);for(var E=0;E<M.length&&M[E]==0;)E++;this.num=new Array(M.length-E+p);for(var C=0;C<M.length-E;C++)this.num[C]=M[C+E]}V.prototype={get:function(M){return this.num[M]},getLength:function(){return this.num.length},multiply:function(M){for(var p=new Array(this.getLength()+M.getLength()-1),E=0;E<this.getLength();E++)for(var C=0;C<M.getLength();C++)p[E+C]^=ae.gexp(ae.glog(this.get(E))+ae.glog(M.get(C)));return new V(p,0)},mod:function(M){if(this.getLength()-M.getLength()<0)return this;for(var p=ae.glog(this.get(0))-ae.glog(M.get(0)),E=new Array(this.getLength()),C=0;C<this.getLength();C++)E[C]=this.get(C);for(var C=0;C<M.getLength();C++)E[C]^=ae.gexp(ae.glog(M.get(C))+p);return new V(E,0).mod(M)}},We.exports=V},dejd:function(We,Ce,I){},djh8:function(We,Ce,I){We.exports=I.p+"static/qrCode.42927872.png"},dmUQ:function(We,Ce,I){"use strict";var ae=I("Ff2n"),V=I("rePB"),M=I("1OyB"),p=I("vuIU"),E=I("Ji7U"),C=I("md7G"),b=I("foSv"),f=I("q1tI"),l=I.n(f),r=I("TSYQ"),n=I.n(r),e=I("4IlW");function s(o,_){var D=Object.keys(o);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(o);_&&(T=T.filter(function(O){return Object.getOwnPropertyDescriptor(o,O).enumerable})),D.push.apply(D,T)}return D}function u(o){for(var _=1;_<arguments.length;_++){var D=arguments[_]!=null?arguments[_]:{};_%2?s(Object(D),!0).forEach(function(T){Object(V.a)(o,T,D[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(D)):s(Object(D)).forEach(function(T){Object.defineProperty(o,T,Object.getOwnPropertyDescriptor(D,T))})}return o}function a(o){var _=A();return function(){var T=Object(b.a)(o),O;if(_){var R=Object(b.a)(this).constructor;O=Reflect.construct(T,arguments,R)}else O=T.apply(this,arguments);return Object(C.a)(this,O)}}function A(){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(o){return!1}}function d(){}function i(o){o.preventDefault()}var h=function(_){return _.replace(/[^\w.-]+/g,"")},y=200,v=600,x=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,S=function(_){return _!=null},B=function(_,D){return D===_||typeof D=="number"&&typeof _=="number"&&isNaN(D)&&isNaN(_)},w=function(o){Object(E.a)(D,o);var _=a(D);function D(T){var O;Object(M.a)(this,D),O=_.call(this,T),O.onKeyDown=function(F){var Y=O.props,k=Y.onKeyDown,K=Y.onPressEnter;if(F.keyCode===e.a.UP){var z=O.getRatio(F);O.up(F,z,null),O.stop()}else if(F.keyCode===e.a.DOWN){var j=O.getRatio(F);O.down(F,j,null),O.stop()}else F.keyCode===e.a.ENTER&&K&&K(F);if(O.recordCursorPosition(),O.lastKeyCode=F.keyCode,k){for(var Q=arguments.length,X=new Array(Q>1?Q-1:0),te=1;te<Q;te++)X[te-1]=arguments[te];k.apply(void 0,[F].concat(X))}},O.onKeyUp=function(F){var Y=O.props.onKeyUp;if(O.stop(),O.recordCursorPosition(),Y){for(var k=arguments.length,K=new Array(k>1?k-1:0),z=1;z<k;z++)K[z-1]=arguments[z];Y.apply(void 0,[F].concat(K))}},O.onChange=function(F){var Y=O.props.onChange;O.state.focused&&(O.inputting=!0),O.rawInput=O.props.parser(O.getValueFromEvent(F)),O.setState({inputValue:O.rawInput}),Y(O.toNumber(O.rawInput))},O.onMouseUp=function(){var F=O.props.onMouseUp;O.recordCursorPosition(),F&&F.apply(void 0,arguments)},O.onFocus=function(){var F;O.setState({focused:!0}),(F=O.props).onFocus.apply(F,arguments)},O.onBlur=function(){var F=O.props.onBlur;O.inputting=!1,O.setState({focused:!1});var Y=O.getCurrentValidValue(O.state.inputValue),k=O.setValue(Y,d);if(F){var K=O.input.value,z=O.getInputDisplayValue({focus:!1,value:k});O.input.value=z&&Number(z),F.apply(void 0,arguments),O.input.value=K}},O.getRatio=function(F){var Y=1;return F.metaKey||F.ctrlKey?Y=.1:F.shiftKey&&(Y=10),Y},O.getFullNum=function(F){return isNaN(F)?F:/e/i.test(String(F))?Number(F).toFixed(18).replace(/\.?0+$/,""):F},O.getPrecision=function(F){if(S(O.props.precision))return O.props.precision;var Y=String(F);if(Y.indexOf("e-")>=0)return parseInt(Y.slice(Y.indexOf("e-")+2),10);var k=0;return Y.indexOf(".")>=0&&(k=Y.length-Y.indexOf(".")-1),k},O.getInputDisplayValue=function(F){var Y=F||O.state,k=Y.focused,K=Y.inputValue,z=Y.value,j;k?j=K:j=O.toPrecisionAsStep(z),j==null&&(j="");var Q=O.formatWrapper(j);return S(O.props.decimalSeparator)&&(Q=Q.toString().replace(".",O.props.decimalSeparator)),Q},O.recordCursorPosition=function(){try{O.cursorStart=O.input.selectionStart,O.cursorEnd=O.input.selectionEnd,O.currentValue=O.input.value,O.cursorBefore=O.input.value.substring(0,O.cursorStart),O.cursorAfter=O.input.value.substring(O.cursorEnd)}catch(F){}},O.restoreByAfter=function(F){if(F===void 0)return!1;var Y=O.input.value,k=Y.lastIndexOf(F);if(k===-1)return!1;var K=O.cursorBefore.length;return O.lastKeyCode===e.a.DELETE&&O.cursorBefore.charAt(K-1)===F[0]?(O.fixCaret(K,K),!0):k+F.length===Y.length?(O.fixCaret(k,k),!0):!1},O.partRestoreByAfter=function(F){return F===void 0?!1:Array.prototype.some.call(F,function(Y,k){var K=F.substring(k);return O.restoreByAfter(K)})},O.isNotCompleteNumber=function(F){return isNaN(F)||F===""||F===null||F&&F.toString().indexOf(".")===F.toString().length-1},O.stop=function(){O.autoStepTimer&&clearTimeout(O.autoStepTimer)},O.down=function(F,Y,k){O.pressingUpOrDown=!0,O.step("down",F,Y,k)},O.up=function(F,Y,k){O.pressingUpOrDown=!0,O.step("up",F,Y,k)},O.saveInput=function(F){O.input=F};var R=T.value;R===void 0&&(R=T.defaultValue),O.state={focused:T.autoFocus};var U=O.getValidValue(O.toNumber(R));return O.state=u(u({},O.state),{},{inputValue:O.toPrecisionAsStep(U),value:U}),O}return Object(p.a)(D,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(O){var R=this.props,U=R.value,F=R.onChange,Y=R.max,k=R.min,K=this.state.focused;if(O){if(!B(O.value,U)||!B(O.max,Y)||!B(O.min,k)){var z=K?U:this.getValidValue(U),j;this.pressingUpOrDown?j=z:this.inputting?j=this.rawInput:j=this.toPrecisionAsStep(z),this.setState({value:z,inputValue:j})}var Q="value"in this.props?U:this.state.value;"max"in this.props&&O.max!==Y&&typeof Q=="number"&&Q>Y&&F&&F(Y),"min"in this.props&&O.min!==k&&typeof Q=="number"&&Q<k&&F&&F(k)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var X=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===e.a.BACKSPACE?X=this.cursorStart-1:this.lastKeyCode===e.a.DELETE&&(X=this.cursorStart):X=this.input.value.length,this.fixCaret(X,X)}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(te){}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(O){var R=O;return R===""?R="":this.isNotCompleteNumber(parseFloat(R))?R=this.state.value:R=this.getValidValue(R),this.toNumber(R)}},{key:"getValueFromEvent",value:function(O){var R=O.target.value.trim().replace(/。/g,".");return S(this.props.decimalSeparator)&&(R=R.replace(this.props.decimalSeparator,".")),R}},{key:"getValidValue",value:function(O){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,F=parseFloat(O);return isNaN(F)?O:(F<R&&(F=R),F>U&&(F=U),F)}},{key:"setValue",value:function(O,R){var U=this.props.precision,F=this.isNotCompleteNumber(parseFloat(O))?null:parseFloat(O),Y=this.state.value,k=Y===void 0?null:Y,K=this.state.inputValue,z=K===void 0?null:K,j=typeof F=="number"?F.toFixed(U):"".concat(F),Q=F!==k||j!=="".concat(z);return"value"in this.props?(z=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:z},R)):this.setState({value:F,inputValue:this.toPrecisionAsStep(O)},R),Q&&this.props.onChange(F),F}},{key:"getMaxPrecision",value:function(O){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,U=this.props,F=U.precision,Y=U.step;if(S(F))return F;var k=this.getPrecision(R),K=this.getPrecision(Y),z=this.getPrecision(O);return O?Math.max(z,k+K):k+K}},{key:"getPrecisionFactor",value:function(O){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,U=this.getMaxPrecision(O,R);return Math.pow(10,U)}},{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(O){return this.props.formatter?this.props.formatter(O):O}},{key:"toPrecisionAsStep",value:function(O){if(this.isNotCompleteNumber(O)||O==="")return O;var R=Math.abs(this.getMaxPrecision(O));return isNaN(R)?O.toString():Number(O).toFixed(R)}},{key:"toNumber",value:function(O){var R=this.props.precision,U=this.state.focused,F=O&&O.length>16&&U;return this.isNotCompleteNumber(O)||F?O:S(R)?Math.round(O*Math.pow(10,R))/Math.pow(10,R):Number(O)}},{key:"upStep",value:function(O,R){var U=this.props.step,F=this.getPrecisionFactor(O,R),Y=Math.abs(this.getMaxPrecision(O,R)),k=((F*O+F*U*R)/F).toFixed(Y);return this.toNumber(k)}},{key:"downStep",value:function(O,R){var U=this.props.step,F=this.getPrecisionFactor(O,R),Y=Math.abs(this.getMaxPrecision(O,R)),k=((F*O-F*U*R)/F).toFixed(Y);return this.toNumber(k)}},{key:"step",value:function(O,R){var U=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Y=arguments.length>3?arguments[3]:void 0;this.stop(),R&&(R.persist(),R.preventDefault());var k=this.props;if(k.disabled)return;var K=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(K))return;var z=this["".concat(O,"Step")](K,F),j=z>k.max||z<k.min;if(z>k.max?z=k.max:z<k.min&&(z=k.min),this.setValue(z,null),this.setState({focused:!0},function(){U.pressingUpOrDown=!1}),j)return;this.autoStepTimer=setTimeout(function(){U[O](R,F,!0)},Y?y:v)}},{key:"fixCaret",value:function(O,R){if(O===void 0||R===void 0||!this.input||!this.input.value)return;try{var U=this.input.selectionStart,F=this.input.selectionEnd;(O!==U||R!==F)&&this.input.setSelectionRange(O,R)}catch(Y){}}},{key:"render",value:function(){var O,R=this.props,U=R.prefixCls,F=R.disabled,Y=R.readOnly,k=R.useTouch,K=R.autoComplete,z=R.upHandler,j=R.downHandler,Q=R.className,X=R.max,te=R.min,oe=R.style,fe=R.title,le=R.onMouseEnter,we=R.onMouseLeave,Ae=R.onMouseOver,be=R.onMouseOut,me=R.required,he=R.onClick,ie=R.tabIndex,pe=R.type,ye=R.placeholder,de=R.id,Me=R.inputMode,ke=R.pattern,Ue=R.step,re=R.maxLength,N=R.autoFocus,W=R.name,ce=R.onPaste,ne=R.onInput,ue=Object(ae.a)(R,["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"]),De=this.state,ze=De.value,wt=De.focused,He=n()(U,(O={},Object(V.a)(O,Q,!!Q),Object(V.a)(O,"".concat(U,"-disabled"),F),Object(V.a)(O,"".concat(U,"-focused"),wt),O)),Xe={};Object.keys(ue).forEach(function($e){($e.substr(0,5)==="data-"||$e.substr(0,5)==="aria-"||$e==="role")&&(Xe[$e]=ue[$e])});var gt=!Y&&!F,_t=this.getInputDisplayValue(null),ct=(ze||ze===0)&&(isNaN(ze)||Number(ze)>=X),lt=(ze||ze===0)&&(isNaN(ze)||Number(ze)<=te),rt=ct||F||Y,Ze=lt||F||Y,qe=n()("".concat(U,"-handler"),"".concat(U,"-handler-up"),Object(V.a)({},"".concat(U,"-handler-up-disabled"),rt)),Le=n()("".concat(U,"-handler"),"".concat(U,"-handler-down"),Object(V.a)({},"".concat(U,"-handler-down-disabled"),Ze)),je=k?{onTouchStart:rt?d:this.up,onTouchEnd:this.stop}:{onMouseDown:rt?d:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Ne=k?{onTouchStart:Ze?d:this.down,onTouchEnd:this.stop}:{onMouseDown:Ze?d:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return l.a.createElement("div",{className:He,style:oe,title:fe,onMouseEnter:le,onMouseLeave:we,onMouseOver:Ae,onMouseOut:be,onFocus:function(){return null},onBlur:function(){return null}},l.a.createElement("div",{className:"".concat(U,"-handler-wrap")},l.a.createElement("span",Object.assign({unselectable:"on"},je,{role:"button","aria-label":"Increase Value","aria-disabled":rt,className:qe}),z||l.a.createElement("span",{unselectable:"on",className:"".concat(U,"-handler-up-inner"),onClick:i})),l.a.createElement("span",Object.assign({unselectable:"on"},Ne,{role:"button","aria-label":"Decrease Value","aria-disabled":Ze,className:Le}),j||l.a.createElement("span",{unselectable:"on",className:"".concat(U,"-handler-down-inner"),onClick:i}))),l.a.createElement("div",{className:"".concat(U,"-input-wrap")},l.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":te,"aria-valuemax":X,"aria-valuenow":ze,required:me,type:pe,placeholder:ye,onPaste:ce,onClick:he,onMouseUp:this.onMouseUp,className:"".concat(U,"-input"),tabIndex:ie,autoComplete:K,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:gt?this.onKeyDown:d,onKeyUp:gt?this.onKeyUp:d,autoFocus:N,maxLength:re,readOnly:Y,disabled:F,max:X,min:te,step:Ue,name:W,title:fe,id:de,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(_t),pattern:ke,inputMode:Me,onInput:ne},Xe))))}}]),D}(l.a.Component);w.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:x,min:-x,step:1,style:{},onChange:d,onKeyDown:d,onPressEnter:d,onFocus:d,onBlur:d,parser:h,required:!1,autoComplete:"off"};var m=w,c=Ce.a=m},dqUG:function(We,Ce,I){var ae=I("Gev7"),V=I("bYtY"),M=I("6GrX"),p=I("pzxd"),E=I("gut8"),C=E.ContextCachedBy,b=function(l){ae.call(this,l)};b.prototype={constructor:b,type:"text",brush:function(l,r){var n=this.style;this.__dirty&&p.normalizeTextStyle(n,!0),n.fill=n.stroke=n.shadowBlur=n.shadowColor=n.shadowOffsetX=n.shadowOffsetY=null;var e=n.text;if(e!=null&&(e+=""),!p.needDrawText(e,n)){l.__attrCachedBy=C.NONE;return}this.setTransform(l),p.renderText(this,l,e,n,null,r),this.restoreTransform(l)},getBoundingRect:function(){var l=this.style;if(this.__dirty&&p.normalizeTextStyle(l,!0),!this._rect){var r=l.text;r!=null?r+="":r="";var n=M.getBoundingRect(l.text+"",l.font,l.textAlign,l.textVerticalAlign,l.textPadding,l.textLineHeight,l.rich);if(n.x+=l.x||0,n.y+=l.y||0,p.getStroke(l.textStroke,l.textStrokeWidth)){var e=l.textStrokeWidth;n.x-=e/2,n.y-=e/2,n.width+=e,n.height+=e}this._rect=n}return this._rect}},V.inherits(b,ae);var f=b;We.exports=f},dwhp:function(We,Ce,I){},f4xo:function(We,Ce,I){var ae=I("nVVt");function V(M){this.mode=ae.MODE_8BIT_BYTE,this.data=M}V.prototype={getLength:function(M){return this.data.length},write:function(M){for(var p=0;p<this.data.length;p++)M.put(this.data.charCodeAt(p),8)}},We.exports=V},fAei:function(We,Ce,I){"use strict";I.d(Ce,"a",function(){return y.a});var ae=I("rePB"),V=I("VTBJ"),M=I("KQm4"),p=I("1OyB"),E=I("vuIU"),C=I("Ji7U"),b=I("LK+K"),f=I("q1tI"),l=I("4IlW"),r=I("Kwbf"),n=I("TSYQ"),e=I.n(n),s=I("sboe"),u=I("OZM5"),a=I("815F"),A=I("ODXe"),d=I("Ff2n"),i=I("+nKL"),h=I("8XRh"),y=I("WaYH"),v=function(te,oe){var fe=te.className,le=te.style,we=te.motion,Ae=te.motionNodes,be=te.motionType,me=te.onMotionStart,he=te.onMotionEnd,ie=te.active,pe=te.treeNodeRequiredProps,ye=Object(d.a)(te,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),de=f.useState(!0),Me=Object(A.a)(de,2),ke=Me[0],Ue=Me[1],re=f.useContext(s.a),N=re.prefixCls,W=f.useRef(!1),ce=function(){W.current||he(),W.current=!0};return Object(f.useEffect)(function(){Ae&&be==="hide"&&ke&&Ue(!1)},[Ae]),Object(f.useEffect)(function(){return Ae&&me(),function(){Ae&&ce()}},[]),Ae?f.createElement(h.default,Object.assign({ref:oe,visible:ke},we,{motionAppear:be==="show",onAppearEnd:ce,onLeaveEnd:ce}),function(ne,ue){var De=ne.className,ze=ne.style;return f.createElement("div",{ref:ue,className:e()("".concat(N,"-treenode-motion"),De),style:ze},Ae.map(function(wt){var He=wt.data,Xe=He.key,gt=Object(d.a)(He,["key"]),_t=wt.isStart,ct=wt.isEnd;delete gt.children;var lt=Object(a.f)(Xe,pe);return f.createElement(y.a,Object.assign({},gt,lt,{active:ie,data:wt.data,key:Xe,isStart:_t,isEnd:ct}))}))}):f.createElement(y.a,Object.assign({domRef:oe,className:fe,style:le},ye,{active:ie}))};v.displayName="MotionTreeNode";var x=f.forwardRef(v),S=x;function B(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],oe=X.length,fe=te.length;if(Math.abs(oe-fe)!==1)return{add:!1,key:null};function le(we,Ae){var be=new Map;we.forEach(function(he){be.set(he,!0)});var me=Ae.filter(function(he){return!be.has(he)});return me.length===1?me[0]:null}return oe<fe?{add:!0,key:le(X,te)}:{add:!1,key:le(te,X)}}function w(X,te,oe){var fe=X.findIndex(function(be){var me=be.data;return me.key===oe}),le=X[fe+1],we=te.findIndex(function(be){var me=be.data;return me.key===oe});if(le){var Ae=te.findIndex(function(be){var me=be.data;return me.key===le.data.key});return te.slice(we+1,Ae)}return te.slice(we+1)}var m={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},c=function(){},o="RC_TREE_MOTION_".concat(Math.random()),_={key:o},D={key:o,level:0,index:0,pos:"0",node:_},T={parent:null,children:[],pos:D.pos,data:_,isStart:[],isEnd:[]};function O(X,te,oe,fe){return te===!1||!oe?X:X.slice(0,Math.ceil(oe/fe)+1)}function R(X){var te=X.data.key,oe=X.pos;return Object(a.e)(te,oe)}function U(X){for(var te=String(X.data.key),oe=X;oe.parent;)oe=oe.parent,te="".concat(oe.data.key," > ").concat(te);return te}var F=function(te,oe){var fe=te.prefixCls,le=te.data,we=te.selectable,Ae=te.checkable,be=te.expandedKeys,me=te.selectedKeys,he=te.checkedKeys,ie=te.loadedKeys,pe=te.loadingKeys,ye=te.halfCheckedKeys,de=te.keyEntities,Me=te.disabled,ke=te.dragging,Ue=te.dragOverNodeKey,re=te.dropPosition,N=te.motion,W=te.height,ce=te.itemHeight,ne=te.virtual,ue=te.focusable,De=te.activeItem,ze=te.focused,wt=te.tabIndex,He=te.onKeyDown,Xe=te.onFocus,gt=te.onBlur,_t=te.onActiveChange,ct=te.onListChangeStart,lt=te.onListChangeEnd,rt=Object(d.a)(te,["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=f.useRef(null);f.useImperativeHandle(oe,function(){return{scrollTo:function(jn){Ze.current.scrollTo(jn)}}});var qe=f.useState(be),Le=Object(A.a)(qe,2),je=Le[0],Ne=Le[1],$e=f.useState(le),At=Object(A.a)($e,2),Bt=At[0],Nt=At[1],It=f.useState(le),jt=Object(A.a)(It,2),xt=jt[0],Lt=jt[1],St=f.useState([]),dt=Object(A.a)(St,2),yt=dt[0],Fe=dt[1],et=f.useState(null),Ot=Object(A.a)(et,2),Et=Ot[0],Ut=Ot[1];function Wt(){Nt(le),Lt(le),Fe([]),Ut(null),lt()}f.useEffect(function(){Ne(be);var un=B(je,be);if(un.key!==null)if(un.add){var jn=Bt.findIndex(function(ea){var Aa=ea.data.key;return Aa===un.key}),Bn=O(w(Bt,le,un.key),ne,W,ce),Nr=Bt.slice();Nr.splice(jn+1,0,T),Lt(Nr),Fe(Bn),Ut("show")}else{var zr=le.findIndex(function(ea){var Aa=ea.data.key;return Aa===un.key}),_r=O(w(le,Bt,un.key),ne,W,ce),Rn=le.slice();Rn.splice(zr+1,0,T),Lt(Rn),Fe(_r),Ut("hide")}else Bt!==le&&(Nt(le),Lt(le))},[be,le]),f.useEffect(function(){ke||Wt()},[ke]);var bt=N?xt:le,Gt={expandedKeys:be,selectedKeys:me,loadedKeys:ie,loadingKeys:pe,checkedKeys:he,halfCheckedKeys:ye,dragOverNodeKey:Ue,dropPosition:re,keyEntities:de};return f.createElement(f.Fragment,null,ze&&De&&f.createElement("span",{style:m,"aria-live":"assertive"},U(De)),f.createElement("div",{role:"tree"},f.createElement("input",{style:m,disabled:ue===!1||Me,tabIndex:ue!==!1?wt:null,onKeyDown:He,onFocus:Xe,onBlur:gt,value:"",onChange:c})),f.createElement(i.a,Object.assign({},rt,{data:bt,itemKey:R,height:W,fullHeight:!1,virtual:ne,itemHeight:ce,prefixCls:"".concat(fe,"-list"),ref:Ze}),function(un){var jn=un.pos,Bn=un.data,Nr=Bn.key,zr=Object(d.a)(Bn,["key"]),_r=un.isStart,Rn=un.isEnd,ea=Object(a.e)(Nr,jn);delete zr.children;var Aa=Object(a.f)(ea,Gt);return f.createElement(S,Object.assign({},zr,Aa,{active:De&&Nr===De.data.key,pos:jn,data:un.data,isStart:_r,isEnd:Rn,motion:N,motionNodes:Nr===o?yt:null,motionType:Et,onMotionStart:ct,onMotionEnd:Wt,treeNodeRequiredProps:Gt,onMouseMove:function(){_t(null)}}))}))},Y=f.forwardRef(F);Y.displayName="NodeList";var k=Y,K=I("NvD2"),z=function(X){Object(C.a)(oe,X);var te=Object(b.a)(oe);function oe(){var fe;return Object(p.a)(this,oe),fe=te.apply(this,arguments),fe.destroyed=!1,fe.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},fe.listRef=f.createRef(),fe.onNodeDragStart=function(le,we){var Ae=fe.state,be=Ae.expandedKeys,me=Ae.keyEntities,he=fe.props.onDragStart,ie=we.props.eventKey;fe.dragNode=we;var pe=Object(u.b)(be,ie);fe.setState({dragging:!0,dragNodesKeys:Object(u.g)(ie,me)}),fe.setExpandedKeys(pe),he&&he({event:le,node:Object(a.b)(we.props)})},fe.onNodeDragEnter=function(le,we){var Ae=fe.state,be=Ae.expandedKeys,me=Ae.keyEntities,he=Ae.dragNodesKeys,ie=fe.props.onDragEnter,pe=we.props,ye=pe.pos,de=pe.eventKey;if(!fe.dragNode||he.indexOf(de)!==-1)return;var Me=Object(u.c)(le,we);if(fe.dragNode.props.eventKey===de&&Me===0){fe.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){fe.setState({dragOverNodeKey:de,dropPosition:Me}),fe.delayedDragEnterLogic||(fe.delayedDragEnterLogic={}),Object.keys(fe.delayedDragEnterLogic).forEach(function(ke){clearTimeout(fe.delayedDragEnterLogic[ke])}),fe.delayedDragEnterLogic[ye]=window.setTimeout(function(){if(!fe.state.dragging)return;var ke=Object(M.a)(be),Ue=me[de];Ue&&(Ue.children||[]).length&&(ke=Object(u.a)(be,de)),"expandedKeys"in fe.props||fe.setExpandedKeys(ke),ie&&ie({event:le,node:Object(a.b)(we.props),expandedKeys:ke})},400)},0)},fe.onNodeDragOver=function(le,we){var Ae=fe.state.dragNodesKeys,be=fe.props.onDragOver,me=we.props.eventKey;if(Ae.indexOf(me)!==-1)return;if(fe.dragNode&&me===fe.state.dragOverNodeKey){var he=Object(u.c)(le,we);if(he===fe.state.dropPosition)return;fe.setState({dropPosition:he})}be&&be({event:le,node:Object(a.b)(we.props)})},fe.onNodeDragLeave=function(le,we){var Ae=fe.props.onDragLeave;fe.setState({dragOverNodeKey:""}),Ae&&Ae({event:le,node:Object(a.b)(we.props)})},fe.onNodeDragEnd=function(le,we){var Ae=fe.props.onDragEnd;fe.setState({dragOverNodeKey:""}),fe.cleanDragState(),Ae&&Ae({event:le,node:Object(a.b)(we.props)}),fe.dragNode=null},fe.onNodeDrop=function(le,we){var Ae=fe.state,be=Ae.dragNodesKeys,me=be===void 0?[]:be,he=Ae.dropPosition,ie=fe.props.onDrop,pe=we.props,ye=pe.eventKey,de=pe.pos;if(fe.setState({dragOverNodeKey:""}),fe.cleanDragState(),me.indexOf(ye)!==-1){Object(r.a)(!1,"Can not drop to dragNode(include it's children node)");return}var Me=Object(u.k)(de),ke={event:le,node:Object(a.b)(we.props),dragNode:fe.dragNode?Object(a.b)(fe.dragNode.props):null,dragNodesKeys:me.slice(),dropPosition:he+Number(Me[Me.length-1]),dropToGap:!1};he!==0&&(ke.dropToGap=!0),ie&&ie(ke),fe.dragNode=null},fe.cleanDragState=function(){var le=fe.state.dragging;le&&fe.setState({dragging:!1})},fe.onNodeClick=function(le,we){var Ae=fe.props.onClick;Ae&&Ae(le,we)},fe.onNodeDoubleClick=function(le,we){var Ae=fe.props.onDoubleClick;Ae&&Ae(le,we)},fe.onNodeSelect=function(le,we){var Ae=fe.state.selectedKeys,be=fe.state.keyEntities,me=fe.props,he=me.onSelect,ie=me.multiple,pe=we.selected,ye=we.key,de=!pe;de?ie?Ae=Object(u.a)(Ae,ye):Ae=[ye]:Ae=Object(u.b)(Ae,ye);var Me=Ae.map(function(ke){var Ue=be[ke];return Ue?Ue.node:null}).filter(function(ke){return ke});fe.setUncontrolledState({selectedKeys:Ae}),he&&he(Ae,{event:"select",selected:de,node:we,selectedNodes:Me,nativeEvent:le.nativeEvent})},fe.onNodeCheck=function(le,we,Ae){var be=fe.state,me=be.keyEntities,he=be.checkedKeys,ie=be.halfCheckedKeys,pe=fe.props,ye=pe.checkStrictly,de=pe.onCheck,Me=we.key,ke,Ue={event:"check",node:we,checked:Ae,nativeEvent:le.nativeEvent};if(ye){var re=Ae?Object(u.a)(he,Me):Object(u.b)(he,Me),N=Object(u.b)(ie,Me);ke={checked:re,halfChecked:N},Ue.checkedNodes=re.map(function(ze){return me[ze]}).filter(function(ze){return ze}).map(function(ze){return ze.node}),fe.setUncontrolledState({checkedKeys:re})}else{var W=Object(K.a)([].concat(Object(M.a)(he),[Me]),!0,me),ce=W.checkedKeys,ne=W.halfCheckedKeys;if(!Ae){var ue=new Set(ce);ue.delete(Me);var De=Object(K.a)(Array.from(ue),{checked:!1,halfCheckedKeys:ne},me);ce=De.checkedKeys,ne=De.halfCheckedKeys}ke=ce,Ue.checkedNodes=[],Ue.checkedNodesPositions=[],Ue.halfCheckedKeys=ne,ce.forEach(function(ze){var wt=me[ze];if(!wt)return;var He=wt.node,Xe=wt.pos;Ue.checkedNodes.push(He),Ue.checkedNodesPositions.push({node:He,pos:Xe})}),fe.setUncontrolledState({checkedKeys:ce},!1,{halfCheckedKeys:ne})}de&&de(ke,Ue)},fe.onNodeLoad=function(le){return new Promise(function(we){fe.setState(function(Ae){var be=Ae.loadedKeys,me=be===void 0?[]:be,he=Ae.loadingKeys,ie=he===void 0?[]:he,pe=fe.props,ye=pe.loadData,de=pe.onLoad,Me=le.key;if(!ye||me.indexOf(Me)!==-1||ie.indexOf(Me)!==-1)return{};var ke=ye(le);return ke.then(function(){var Ue=fe.state,re=Ue.loadedKeys,N=Ue.loadingKeys,W=Object(u.a)(re,Me),ce=Object(u.b)(N,Me);de&&de(W,{event:"load",node:le}),fe.setUncontrolledState({loadedKeys:W}),fe.setState({loadingKeys:ce}),we()}),{loadingKeys:Object(u.a)(ie,Me)}})})},fe.onNodeMouseEnter=function(le,we){var Ae=fe.props.onMouseEnter;Ae&&Ae({event:le,node:we})},fe.onNodeMouseLeave=function(le,we){var Ae=fe.props.onMouseLeave;Ae&&Ae({event:le,node:we})},fe.onNodeContextMenu=function(le,we){var Ae=fe.props.onRightClick;Ae&&(le.preventDefault(),Ae({event:le,node:we}))},fe.onFocus=function(){var le=fe.props.onFocus;fe.setState({focused:!0}),le&&le.apply(void 0,arguments)},fe.onBlur=function(){var le=fe.props.onBlur;fe.setState({focused:!1}),fe.onActiveChange(null),le&&le.apply(void 0,arguments)},fe.getTreeNodeRequiredProps=function(){var le=fe.state,we=le.expandedKeys,Ae=le.selectedKeys,be=le.loadedKeys,me=le.loadingKeys,he=le.checkedKeys,ie=le.halfCheckedKeys,pe=le.dragOverNodeKey,ye=le.dropPosition,de=le.keyEntities;return{expandedKeys:we||[],selectedKeys:Ae||[],loadedKeys:be||[],loadingKeys:me||[],checkedKeys:he||[],halfCheckedKeys:ie||[],dragOverNodeKey:pe,dropPosition:ye,keyEntities:de}},fe.setExpandedKeys=function(le){var we=fe.state.treeData,Ae=Object(a.d)(we,le);fe.setUncontrolledState({expandedKeys:le,flattenNodes:Ae},!0)},fe.onNodeExpand=function(le,we){var Ae=fe.state.expandedKeys,be=fe.state.listChanging,me=fe.props,he=me.onExpand,ie=me.loadData,pe=we.key,ye=we.expanded;if(be)return;var de=Ae.indexOf(pe),Me=!ye;if(Object(r.a)(ye&&de!==-1||!ye&&de===-1,"Expand state not sync with index check"),Me?Ae=Object(u.a)(Ae,pe):Ae=Object(u.b)(Ae,pe),fe.setExpandedKeys(Ae),he&&he(Ae,{node:we,expanded:Me,nativeEvent:le.nativeEvent}),Me&&ie){var ke=fe.onNodeLoad(we);ke&&ke.then(function(){var Ue=Object(a.d)(fe.state.treeData,Ae);fe.setUncontrolledState({flattenNodes:Ue})})}},fe.onListChangeStart=function(){fe.setUncontrolledState({listChanging:!0})},fe.onListChangeEnd=function(){setTimeout(function(){fe.setUncontrolledState({listChanging:!1})})},fe.onActiveChange=function(le){var we=fe.state.activeKey,Ae=fe.props.onActiveChange;if(we===le)return;fe.setState({activeKey:le}),le!==null&&fe.scrollTo({key:le}),Ae&&Ae(le)},fe.getActiveItem=function(){var le=fe.state,we=le.activeKey,Ae=le.flattenNodes;return we===null?null:Ae.find(function(be){var me=be.data.key;return me===we})||null},fe.offsetActiveKey=function(le){var we=fe.state,Ae=we.flattenNodes,be=we.activeKey,me=Ae.findIndex(function(pe){var ye=pe.data.key;return ye===be});me===-1&&le<0&&(me=Ae.length),me=(me+le+Ae.length)%Ae.length;var he=Ae[me];if(he){var ie=he.data.key;fe.onActiveChange(ie)}else fe.onActiveChange(null)},fe.onKeyDown=function(le){var we=fe.state,Ae=we.activeKey,be=we.expandedKeys,me=we.checkedKeys,he=fe.props,ie=he.onKeyDown,pe=he.checkable,ye=he.selectable;switch(le.which){case l.a.UP:{fe.offsetActiveKey(-1),le.preventDefault();break}case l.a.DOWN:{fe.offsetActiveKey(1),le.preventDefault();break}}var de=fe.getActiveItem();if(de&&de.data){var Me=fe.getTreeNodeRequiredProps(),ke=de.data.isLeaf===!1||!!(de.data.children||[]).length,Ue=Object(a.b)(Object(V.a)(Object(V.a)({},Object(a.f)(Ae,Me)),{},{data:de.data,active:!0}));switch(le.which){case l.a.LEFT:{ke&&be.includes(Ae)?fe.onNodeExpand({},Ue):de.parent&&fe.onActiveChange(de.parent.data.key),le.preventDefault();break}case l.a.RIGHT:{ke&&!be.includes(Ae)?fe.onNodeExpand({},Ue):de.children&&de.children.length&&fe.onActiveChange(de.children[0].data.key),le.preventDefault();break}case l.a.ENTER:case l.a.SPACE:{pe&&!Ue.disabled&&Ue.checkable!==!1&&!Ue.disableCheckbox?fe.onNodeCheck({},Ue,!me.includes(Ae)):!pe&&ye&&!Ue.disabled&&Ue.selectable!==!1&&fe.onNodeSelect({},Ue);break}}}ie&&ie(le)},fe.setUncontrolledState=function(le){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(fe.destroyed)return;var be=!1,me=!0,he={};Object.keys(le).forEach(function(ie){if(ie in fe.props){me=!1;return}be=!0,he[ie]=le[ie]}),be&&(!we||me)&&fe.setState(Object(V.a)(Object(V.a)({},he),Ae))},fe.scrollTo=function(le){fe.listRef.current.scrollTo(le)},fe}return Object(E.a)(oe,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var le,we=this.state,Ae=we.focused,be=we.flattenNodes,me=we.keyEntities,he=we.dragging,ie=we.activeKey,pe=this.props,ye=pe.prefixCls,de=pe.className,Me=pe.style,ke=pe.showLine,Ue=pe.focusable,re=pe.tabIndex,N=re===void 0?0:re,W=pe.selectable,ce=pe.showIcon,ne=pe.icon,ue=pe.switcherIcon,De=pe.draggable,ze=pe.checkable,wt=pe.checkStrictly,He=pe.disabled,Xe=pe.motion,gt=pe.loadData,_t=pe.filterTreeNode,ct=pe.height,lt=pe.itemHeight,rt=pe.virtual,Ze=pe.titleRender,qe=pe.onContextMenu,Le=Object(u.f)(this.props);return f.createElement(s.a.Provider,{value:{prefixCls:ye,selectable:W,showIcon:ce,icon:ne,switcherIcon:ue,draggable:De,checkable:ze,checkStrictly:wt,disabled:He,keyEntities:me,loadData:gt,filterTreeNode:_t,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}},f.createElement("div",{className:e()(ye,de,(le={},Object(ae.a)(le,"".concat(ye,"-show-line"),ke),Object(ae.a)(le,"".concat(ye,"-focused"),Ae),Object(ae.a)(le,"".concat(ye,"-active-focused"),ie!==null),le))},f.createElement(k,Object.assign({ref:this.listRef,prefixCls:ye,style:Me,data:be,disabled:He,selectable:W,checkable:!!ze,motion:Xe,dragging:he,height:ct,itemHeight:lt,virtual:rt,focusable:Ue,focused:Ae,tabIndex:N,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:qe},this.getTreeNodeRequiredProps(),Le))))}}],[{key:"getDerivedStateFromProps",value:function(le,we){var Ae=we.prevProps,be={prevProps:le};function me(ne){return!Ae&&ne in le||Ae&&Ae[ne]!==le[ne]}var he;if(me("treeData")?he=le.treeData:me("children")&&(Object(r.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),he=Object(a.c)(le.children)),he){be.treeData=he;var ie=Object(a.a)(he);be.keyEntities=Object(V.a)(Object(ae.a)({},o,D),ie.keyEntities)}var pe=be.keyEntities||we.keyEntities;if(me("expandedKeys")||Ae&&me("autoExpandParent"))be.expandedKeys=le.autoExpandParent||!Ae&&le.defaultExpandParent?Object(u.e)(le.expandedKeys,pe):le.expandedKeys;else if(!Ae&&le.defaultExpandAll){var ye=Object(V.a)({},pe);delete ye[o],be.expandedKeys=Object.keys(ye).map(function(ne){return ye[ne].key})}else!Ae&&le.defaultExpandedKeys&&(be.expandedKeys=le.autoExpandParent||le.defaultExpandParent?Object(u.e)(le.defaultExpandedKeys,pe):le.defaultExpandedKeys);if(be.expandedKeys||delete be.expandedKeys,he||be.expandedKeys){var de=Object(a.d)(he||we.treeData,be.expandedKeys||we.expandedKeys);be.flattenNodes=de}if(le.selectable&&(me("selectedKeys")?be.selectedKeys=Object(u.d)(le.selectedKeys,le):!Ae&&le.defaultSelectedKeys&&(be.selectedKeys=Object(u.d)(le.defaultSelectedKeys,le))),le.checkable){var Me;if(me("checkedKeys")?Me=Object(u.j)(le.checkedKeys)||{}:!Ae&&le.defaultCheckedKeys?Me=Object(u.j)(le.defaultCheckedKeys)||{}:he&&(Me=Object(u.j)(le.checkedKeys)||{checkedKeys:we.checkedKeys,halfCheckedKeys:we.halfCheckedKeys}),Me){var ke=Me,Ue=ke.checkedKeys,re=Ue===void 0?[]:Ue,N=ke.halfCheckedKeys,W=N===void 0?[]:N;if(!le.checkStrictly){var ce=Object(K.a)(re,!0,pe);re=ce.checkedKeys,W=ce.halfCheckedKeys}be.checkedKeys=re,be.halfCheckedKeys=W}}return me("loadedKeys")&&(be.loadedKeys=le.loadedKeys),be}}]),oe}(f.Component);z.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},z.TreeNode=y.a;var j=z,Q=Ce.b=j},fW2E:function(We,Ce){var I={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function ae(V,M,p){return I.hasOwnProperty(M)?p*=V.dpr:p}We.exports=ae},fXAG:function(We,Ce,I){"use strict";I.d(Ce,"j",function(){return ae}),I.d(Ce,"i",function(){return V}),I.d(Ce,"k",function(){return M}),I.d(Ce,"eb",function(){return p}),I.d(Ce,"o",function(){return E}),I.d(Ce,"S",function(){return C}),I.d(Ce,"fb",function(){return b}),I.d(Ce,"u",function(){return f}),I.d(Ce,"v",function(){return l}),I.d(Ce,"cb",function(){return r}),I.d(Ce,"A",function(){return n}),I.d(Ce,"m",function(){return e}),I.d(Ce,"Y",function(){return s}),I.d(Ce,"s",function(){return u}),I.d(Ce,"N",function(){return a}),I.d(Ce,"bb",function(){return A}),I.d(Ce,"db",function(){return d}),I.d(Ce,"l",function(){return i}),I.d(Ce,"Q",function(){return h}),I.d(Ce,"ab",function(){return y}),I.d(Ce,"x",function(){return v}),I.d(Ce,"z",function(){return x}),I.d(Ce,"X",function(){return S}),I.d(Ce,"b",function(){return B}),I.d(Ce,"H",function(){return w}),I.d(Ce,"a",function(){return m}),I.d(Ce,"c",function(){return o}),I.d(Ce,"P",function(){return _}),I.d(Ce,"g",function(){return D}),I.d(Ce,"t",function(){return T}),I.d(Ce,"Z",function(){return O}),I.d(Ce,"y",function(){return R}),I.d(Ce,"B",function(){return U}),I.d(Ce,"f",function(){return F}),I.d(Ce,"e",function(){return Y}),I.d(Ce,"W",function(){return k}),I.d(Ce,"h",function(){return K}),I.d(Ce,"d",function(){return z}),I.d(Ce,"R",function(){return Q}),I.d(Ce,"n",function(){return X}),I.d(Ce,"F",function(){return te}),I.d(Ce,"I",function(){return oe}),I.d(Ce,"D",function(){return fe}),I.d(Ce,"E",function(){return le}),I.d(Ce,"C",function(){return we}),I.d(Ce,"G",function(){return Ae}),I.d(Ce,"U",function(){return be}),I.d(Ce,"q",function(){return me}),I.d(Ce,"r",function(){return he}),I.d(Ce,"V",function(){return ie}),I.d(Ce,"T",function(){return pe}),I.d(Ce,"p",function(){return ye}),I.d(Ce,"M",function(){return de}),I.d(Ce,"L",function(){return Me}),I.d(Ce,"J",function(){return ke}),I.d(Ce,"K",function(){return Ue}),I.d(Ce,"O",function(){return re}),I.d(Ce,"w",function(){return N});var ae="FETCH_TASK_START",V="FETCH_TASK_FAILURE",M="FETCH_TASK_SUCCESS",p="UPDATE_TASK_DATA",E="HIDE_EVALUATE_RESULT",C="SHOW_EVALUATE_RESULT",b="UPDATE_TIMESTRAP",f="MOVE_X",l="MOVE_Y",r="TRIGGER_RIGHT_PANEL_MASK ",n="SET_ACTIVE_INDEX",e="GET_TASK_LIST",s="SHOW_TASK_LIST",u="HIDE_TASK_LIST",a="SET_TASK_STAR",A="TRIGGER_ENLARGE_UNITY3D ",d="TRIGGER_TAB_FIXED ",i="GET_DISCUSSES",h="SHOW_DISCUSSES_LOADING",y="TOP_OR_DOWN_DISCUSS",v="PLUS_DISCUSS",x="SET_ACTION_TYPE",S="SHOW_REWARD_DIALOG",B="CANCEL_REWARD_DIALOG",w="SET_REWARD",m="ACTIVE_DISCUSS_INDEX",c="CREATE_DISCUSS",o="DISABLE_DISCUSS",_="SHOW_ANSWER_LOADING",D="FETCH_ANSWER_INFO",T="HIGH_TIP_MODAL",O="SHOW_TIP_MODAL",R="SELECT_UNLOCK_ANSWER",U="SET_CHOOSE_ANSWERS",F="EVAL_CHOOSE_START",Y="EVAL_CHOOSE_END",k="SHOW_REP_loading",K="FETCH_REP_CONTENT",z="EDIT_REP_CONTENT",j="SET_REP_PATH",Q="SHOW_EVALUATE_LOADING",X="HIDE_EVALUATE_LOADING",te="SET_EVALUATE_MESSAGE",oe="SET_SHOW_DIR",fe="SET_EDITOR_SETTING",le="SET_EDITOR_THEME",we="SET_EDITOR_FONTSIZE",Ae="SET_REPOS",be="SHOW_PATH_LIST",me="HIDE_PATH_LIST",he="HIDE_PICTURE_VIEW",ie="SHOW_PICTURE_VIEW",pe="SHOW_NOTICE",ye="HIDE_NOTICE",de="SET_TAB_INDEX",Me="SET_SSH_TABS",ke="SET_SSH_CONFIGDATA",Ue="SET_SSH_CONFIGDATAARR",re="SET_VNC_LOADING ",N="ON_TAB_TO_SPACE "},fcSX:function(We,Ce,I){"use strict";var ae=I("Ff2n"),V=I("1OyB"),M=I("vuIU"),p=I("Ji7U"),E=I("md7G"),C=I("foSv"),b=I("1W/9"),f=I("q1tI"),l=I("rePB"),r=I("JX7q"),n=I("TSYQ"),e=I.n(n),s=I("qx4F"),u=I("4IlW");function a(F){return Array.isArray(F)?F:[F]}var A={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},d=Object.keys(A).filter(function(F){if(typeof document=="undefined")return!1;var Y=document.getElementsByTagName("html")[0];return F in(Y?Y.style:{})})[0],i=A[d];function h(F,Y,k,K){F.addEventListener?F.addEventListener(Y,k,K):F.attachEvent&&F.attachEvent("on".concat(Y),k)}function y(F,Y,k,K){F.removeEventListener?F.removeEventListener(Y,k,K):F.attachEvent&&F.detachEvent("on".concat(Y),k)}function v(F,Y){var k=typeof F=="function"?F(Y):F;return Array.isArray(k)?k.length===2?k:[k[0],k[1]]:[k]}var x=function(Y){return!isNaN(parseFloat(Y))&&isFinite(Y)},S=!(typeof window!="undefined"&&window.document&&window.document.createElement),B=function F(Y,k,K,z){if(!k||k===document||k instanceof Document)return!1;if(k===Y.parentNode)return!0;var j=Math.max(Math.abs(K),Math.abs(z))===Math.abs(z),Q=Math.max(Math.abs(K),Math.abs(z))===Math.abs(K),X=k.scrollHeight-k.clientHeight,te=k.scrollWidth-k.clientWidth,oe=document.defaultView.getComputedStyle(k),fe=oe.overflowY==="auto"||oe.overflowY==="scroll",le=oe.overflowX==="auto"||oe.overflowX==="scroll",we=X&&fe,Ae=te&&le;return j&&(!we||we&&(k.scrollTop>=X&&z<0||k.scrollTop<=0&&z>0))||Q&&(!Ae||Ae&&(k.scrollLeft>=te&&K<0||k.scrollLeft<=0&&K>0))?F(Y,k.parentNode,K,z):!1};function w(F){var Y=m();return function(){var K=Object(C.a)(F),z;if(Y){var j=Object(C.a)(this).constructor;z=Reflect.construct(K,arguments,j)}else z=K.apply(this,arguments);return Object(E.a)(this,z)}}function m(){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 c={},o=function(F){Object(p.a)(k,F);var Y=w(k);function k(K){var z;return Object(V.a)(this,k),z=Y.call(this,K),z.domFocus=function(){z.dom&&z.dom.focus()},z.removeStartHandler=function(j){if(j.touches.length>1)return;z.startPos={x:j.touches[0].clientX,y:j.touches[0].clientY}},z.removeMoveHandler=function(j){if(j.changedTouches.length>1)return;var Q=j.currentTarget,X=j.changedTouches[0].clientX-z.startPos.x,te=j.changedTouches[0].clientY-z.startPos.y;(Q===z.maskDom||Q===z.handlerDom||Q===z.contentDom&&B(Q,j.target,X,te))&&j.cancelable&&j.preventDefault()},z.transitionEnd=function(j){var Q=j.target;y(Q,i,z.transitionEnd),Q.style.transition=""},z.onKeyDown=function(j){if(j.keyCode===u.a.ESC){var Q=z.props.onClose;j.stopPropagation(),Q&&Q(j)}},z.onWrapperTransitionEnd=function(j){var Q=z.props,X=Q.open,te=Q.afterVisibleChange;j.target===z.contentWrapper&&j.propertyName.match(/transform$/)&&(z.dom.style.transition="",!X&&z.getCurrentDrawerSome()&&(document.body.style.overflowX="",z.maskDom&&(z.maskDom.style.left="",z.maskDom.style.width="")),te&&te(!!X))},z.openLevelTransition=function(){var j=z.props,Q=j.open,X=j.width,te=j.height,oe=z.getHorizontalBoolAndPlacementName(),fe=oe.isHorizontal,le=oe.placementName,we=z.contentDom?z.contentDom.getBoundingClientRect()[fe?"width":"height"]:0,Ae=(fe?X:te)||we;z.setLevelAndScrolling(Q,le,Ae)},z.setLevelTransform=function(j,Q,X,te){var oe=z.props,fe=oe.placement,le=oe.levelMove,we=oe.duration,Ae=oe.ease,be=oe.showMask;z.levelDom.forEach(function(me){me.style.transition="transform ".concat(we," ").concat(Ae),h(me,i,z.transitionEnd);var he=j?X:0;if(le){var ie=v(le,{target:me,open:j});he=j?ie[0]:ie[1]||0}var pe=typeof he=="number"?"".concat(he,"px"):he,ye=fe==="left"||fe==="top"?pe:"-".concat(pe);ye=be&&fe==="right"&&te?"calc(".concat(ye," + ").concat(te,"px)"):ye,me.style.transform=he?"".concat(Q,"(").concat(ye,")"):""})},z.setLevelAndScrolling=function(j,Q,X){var te=z.props.onChange;if(!S){var oe=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(s.a)(!0):0;z.setLevelTransform(j,Q,X,oe),z.toggleScrollingToDrawerAndBody(oe)}te&&te(j)},z.toggleScrollingToDrawerAndBody=function(j){var Q=z.props,X=Q.getOpenCount,te=Q.getContainer,oe=Q.showMask,fe=Q.open,le=te&&te(),we=X&&X();if(le&&le.parentNode===document.body&&oe){var Ae=["touchstart"],be=[document.body,z.maskDom,z.handlerDom,z.contentDom];fe&&document.body.style.overflow!=="hidden"?(j&&z.addScrollingEffect(j),we===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",be.forEach(function(me,he){if(!me)return;h(me,Ae[he]||"touchmove",he?z.removeMoveHandler:z.removeStartHandler,z.passive)})):z.getCurrentDrawerSome()&&(we||(document.body.style.overflow=""),document.body.style.touchAction="",j&&z.remScrollingEffect(j),be.forEach(function(me,he){if(!me)return;y(me,Ae[he]||"touchmove",he?z.removeMoveHandler:z.removeStartHandler,z.passive)}))}},z.addScrollingEffect=function(j){var Q=z.props,X=Q.placement,te=Q.duration,oe=Q.ease,fe=Q.getOpenCount,le=Q.switchScrollingEffect,we=fe&&fe();we===1&&le();var Ae="width ".concat(te," ").concat(oe),be="transform ".concat(te," ").concat(oe);z.dom.style.transition="none";switch(X){case"right":z.dom.style.transform="translateX(-".concat(j,"px)");break;case"top":case"bottom":z.dom.style.width="calc(100% - ".concat(j,"px)"),z.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(z.timeout),z.timeout=setTimeout(function(){z.dom&&(z.dom.style.transition="".concat(be,",").concat(Ae),z.dom.style.width="",z.dom.style.transform="")})},z.remScrollingEffect=function(j){var Q=z.props,X=Q.placement,te=Q.duration,oe=Q.ease,fe=Q.getOpenCount,le=Q.switchScrollingEffect,we=fe&&fe();we||le(!0),d&&(document.body.style.overflowX="hidden"),z.dom.style.transition="none";var Ae,be="width ".concat(te," ").concat(oe),me="transform ".concat(te," ").concat(oe);switch(X){case"left":{z.dom.style.width="100%",be="width 0s ".concat(oe," ").concat(te);break}case"right":{z.dom.style.transform="translateX(".concat(j,"px)"),z.dom.style.width="100%",be="width 0s ".concat(oe," ").concat(te),z.maskDom&&(z.maskDom.style.left="-".concat(j,"px"),z.maskDom.style.width="calc(100% + ".concat(j,"px)"));break}case"top":case"bottom":{z.dom.style.width="calc(100% + ".concat(j,"px)"),z.dom.style.height="100%",z.dom.style.transform="translateZ(0)",Ae="height 0s ".concat(oe," ").concat(te);break}default:break}clearTimeout(z.timeout),z.timeout=setTimeout(function(){z.dom&&(z.dom.style.transition="".concat(me,",").concat(Ae?"".concat(Ae,","):"").concat(be),z.dom.style.transform="",z.dom.style.width="",z.dom.style.height="")})},z.getCurrentDrawerSome=function(){return!Object.keys(c).some(function(j){return c[j]})},z.getLevelDom=function(j){var Q=j.level,X=j.getContainer;if(S)return;var te=X&&X(),oe=te?te.parentNode:null;if(z.levelDom=[],Q==="all"){var fe=oe?Array.prototype.slice.call(oe.children):[];fe.forEach(function(le){le.nodeName!=="SCRIPT"&&le.nodeName!=="STYLE"&&le.nodeName!=="LINK"&&le!==te&&z.levelDom.push(le)})}else Q&&a(Q).forEach(function(le){document.querySelectorAll(le).forEach(function(we){z.levelDom.push(we)})})},z.getHorizontalBoolAndPlacementName=function(){var j=z.props.placement,Q=j==="left"||j==="right",X="translate".concat(Q?"X":"Y");return{isHorizontal:Q,placementName:X}},z.state={_self:Object(r.a)(z)},z}return Object(M.a)(k,[{key:"componentDidMount",value:function(){var z=this;if(!S){var j=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return j=!0,null}}))}catch(fe){}this.passive=j?{passive:!1}:!1}var Q=this.props,X=Q.open,te=Q.getContainer,oe=te&&te();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),X&&(oe&&oe.parentNode===document.body&&(c[this.drawerId]=X),this.openLevelTransition(),this.forceUpdate(function(){z.domFocus()}))}},{key:"componentDidUpdate",value:function(z){var j=this.props,Q=j.open,X=j.getContainer,te=X&&X();Q!==z.open&&(Q&&this.domFocus(),te&&te.parentNode===document.body&&(c[this.drawerId]=!!Q),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var z=this.props,j=z.getOpenCount,Q=z.open,X=z.switchScrollingEffect,te=typeof j=="function"&&j();delete c[this.drawerId],Q&&(this.setLevelTransform(!1),document.body.style.touchAction=""),te||(document.body.style.overflow="",X(!0))}},{key:"render",value:function(){var z,j=this,Q=this.props,X=Q.className,te=Q.children,oe=Q.style,fe=Q.width,le=Q.height,we=Q.defaultOpen,Ae=Q.open,be=Q.prefixCls,me=Q.placement,he=Q.level,ie=Q.levelMove,pe=Q.ease,ye=Q.duration,de=Q.getContainer,Me=Q.handler,ke=Q.onChange,Ue=Q.afterVisibleChange,re=Q.showMask,N=Q.maskClosable,W=Q.maskStyle,ce=Q.onClose,ne=Q.onHandleClick,ue=Q.keyboard,De=Q.getOpenCount,ze=Q.switchScrollingEffect,wt=Object(ae.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?Ae:!1,Xe=e()(be,(z={},Object(l.a)(z,"".concat(be,"-").concat(me),!0),Object(l.a)(z,"".concat(be,"-open"),He),Object(l.a)(z,X||"",!!X),Object(l.a)(z,"no-mask",!re),z)),gt=this.getHorizontalBoolAndPlacementName(),_t=gt.placementName,ct=me==="left"||me==="top"?"-100%":"100%",lt=He?"":"".concat(_t,"(").concat(ct,")"),rt=Me&&f.cloneElement(Me,{onClick:function(qe){Me.props.onClick&&Me.props.onClick(),ne&&ne(qe)},ref:function(qe){j.handlerDom=qe}});return f.createElement("div",Object.assign({},wt,{tabIndex:-1,className:Xe,style:oe,ref:function(qe){j.dom=qe},onKeyDown:He&&ue?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),re&&f.createElement("div",{className:"".concat(be,"-mask"),onClick:N?ce:void 0,style:W,ref:function(qe){j.maskDom=qe}}),f.createElement("div",{className:"".concat(be,"-content-wrapper"),style:{transform:lt,msTransform:lt,width:x(fe)?"".concat(fe,"px"):fe,height:x(le)?"".concat(le,"px"):le},ref:function(qe){j.contentWrapper=qe}},f.createElement("div",{className:"".concat(be,"-content"),ref:function(qe){j.contentDom=qe},onTouchStart:He&&re?this.removeStartHandler:void 0,onTouchMove:He&&re?this.removeMoveHandler:void 0},te),rt))}}],[{key:"getDerivedStateFromProps",value:function(z,j){var Q=j.prevProps,X=j._self,te={prevProps:z};if(Q!==void 0){var oe=z.placement,fe=z.level;oe!==Q.placement&&(X.contentDom=null),fe!==Q.level&&X.getLevelDom(z)}return te}}]),k}(f.Component);o.defaultProps={switchScrollingEffect:function(){}};var _=o;function D(F){var Y=T();return function(){var K=Object(C.a)(F),z;if(Y){var j=Object(C.a)(this).constructor;z=Reflect.construct(K,arguments,j)}else z=K.apply(this,arguments);return Object(E.a)(this,z)}}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 O=function(F){Object(p.a)(k,F);var Y=D(k);function k(K){var z;Object(V.a)(this,k),z=Y.call(this,K),z.onHandleClick=function(Q){var X=z.props,te=X.onHandleClick,oe=X.open;if(te&&te(Q),typeof oe=="undefined"){var fe=z.state.open;z.setState({open:!fe})}},z.onClose=function(Q){var X=z.props,te=X.onClose,oe=X.open;te&&te(Q),typeof oe=="undefined"&&z.setState({open:!1})};var j=typeof K.open!="undefined"?K.open:!!K.defaultOpen;return z.state={open:j},"onMaskClick"in K&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),z}return Object(M.a)(k,[{key:"render",value:function(){var z=this,j=this.props,Q=j.defaultOpen,X=j.getContainer,te=j.wrapperClassName,oe=j.forceRender,fe=j.handler,le=Object(ae.a)(j,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),we=this.state.open;if(!X)return f.createElement("div",{className:te,ref:function(me){z.dom=me}},f.createElement(_,Object.assign({},le,{open:we,handler:fe,getContainer:function(){return z.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var Ae=!!fe||oe;return f.createElement(b.a,{visible:we,forceRender:Ae,getContainer:X,wrapperClassName:te},function(be){var me=be.visible,he=be.afterClose,ie=Object(ae.a)(be,["visible","afterClose"]);return f.createElement(_,Object.assign({},le,ie,{open:me!==void 0?me:we,afterVisibleChange:he!==void 0?he:le.afterVisibleChange,handler:fe,onClose:z.onClose,onHandleClick:z.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(z,j){var Q=j.prevProps,X={prevProps:z};return typeof Q!="undefined"&&z.open!==Q.open&&(X.open=z.open),X}}]),k}(f.Component);O.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:f.createElement("div",{className:"drawer-handle"},f.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1};var R=O,U=Ce.a=R},fyJ8:function(We,Ce,I){"use strict";var ae=I("rePB"),V=I("VTBJ"),M=I("Ff2n"),p=I("U8pU"),E=I("q1tI"),C=I.n(E),b=I("TSYQ"),f=I.n(b),l=I("c+Xe"),r=I("sR1s");function n(A){return A&&Object(p.a)(A)==="object"&&!Array.isArray(A)&&!E.isValidElement(A)}function e(A){return typeof A=="string"?!0:Object(l.c)(A)}function s(A,d){var i,h=A.prefixCls,y=A.className,v=A.record,x=A.index,S=A.dataIndex,B=A.render,w=A.children,m=A.component,c=m===void 0?"td":m,o=A.colSpan,_=A.rowSpan,D=A.fixLeft,T=A.fixRight,O=A.firstFixLeft,R=A.lastFixLeft,U=A.firstFixRight,F=A.lastFixRight,Y=A.appendNode,k=A.additionalProps,K=k===void 0?{}:k,z=A.ellipsis,j=A.align,Q=A.rowType,X=A.isSticky,te="".concat(h,"-cell"),oe,fe;if(w)fe=w;else{var le=Object(r.b)(v,S);if(fe=le,B){var we=B(le,v,x);n(we)?(fe=we.children,oe=we.props):fe=we}}Object(p.a)(fe)==="object"&&!Array.isArray(fe)&&!E.isValidElement(fe)&&(fe=null),z&&(R||U)&&(fe=E.createElement("span",{className:"".concat(te,"-content")},fe));var Ae=oe||{},be=Ae.colSpan,me=Ae.rowSpan,he=Ae.style,ie=Ae.className,pe=Object(M.a)(Ae,["colSpan","rowSpan","style","className"]),ye=be!==void 0?be:o,de=me!==void 0?me:_;if(ye===0||de===0)return null;var Me={},ke=typeof D=="number",Ue=typeof T=="number";ke&&(Me.position="sticky",Me.left=D),Ue&&(Me.position="sticky",Me.right=T);var re={};j&&(re.textAlign=j);var N,W=z===!0?{showTitle:!0}:z;W&&(W.showTitle||Q==="header")&&(typeof fe=="string"||typeof fe=="number"?N=fe.toString():E.isValidElement(fe)&&typeof fe.props.children=="string"&&(N=fe.props.children));var ce=Object(V.a)(Object(V.a)(Object(V.a)({title:N},pe),K),{},{colSpan:ye&&ye!==1?ye:null,rowSpan:de&&de!==1?de:null,className:f()(te,y,(i={},Object(ae.a)(i,"".concat(te,"-fix-left"),ke),Object(ae.a)(i,"".concat(te,"-fix-left-first"),O),Object(ae.a)(i,"".concat(te,"-fix-left-last"),R),Object(ae.a)(i,"".concat(te,"-fix-right"),Ue),Object(ae.a)(i,"".concat(te,"-fix-right-first"),U),Object(ae.a)(i,"".concat(te,"-fix-right-last"),F),Object(ae.a)(i,"".concat(te,"-ellipsis"),z),Object(ae.a)(i,"".concat(te,"-with-append"),Y),Object(ae.a)(i,"".concat(te,"-fix-sticky"),(ke||Ue)&&X),i),K.className,ie),style:Object(V.a)(Object(V.a)(Object(V.a)(Object(V.a)({},K.style),re),Me),he),ref:e(c)?d:null});return E.createElement(c,Object.assign({},ce),Y,fe)}var u=E.forwardRef(s);u.displayName="Cell";var a=E.memo(u,function(A,d){return d.shouldCellUpdate?!d.shouldCellUpdate(d.record,A.record):!1});Ce.a=a},gut8:function(We,Ce){var I={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},ae=9;Ce.ContextCachedBy=I,Ce.WILL_BE_RESTORED=ae},"h/US":function(We,Ce,I){"use strict";var ae=I("DZo9"),V=I("8z0m"),M=I("+L6B"),p=I("2/Rp"),E=I("tJVT"),C=I("q1tI"),b=I.n(C),f=I("z7Xi"),l=I("jN4g"),r=I("m3rI"),n=I("w8Aa"),e=I.n(n),s=function(a){var A=a.value,d=a.onChange,i=a.getFileProgress,h=Object(C.useState)(!1),y=Object(E.a)(h,2),v=y[0],x=y[1],S=b.a.createElement(p.a,{loading:v,icon:b.a.createElement(f.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),B=function(){return b.a.createElement("div",{className:e.a.img},b.a.createElement("img",{src:r.a.API_SERVER+"/api/attachments/"+A,alt:"avatar",style:{width:288}}),b.a.createElement("div",null,b.a.createElement(l.a,{onClick:function(){return d("")},style:{fontSize:"16px",color:"red"}})))},w=function(c){if(i&&i(c),c.file.status==="uploading"){x(!0);return}if(c.file.status==="done"){var o,_;x(!1),d(c==null||((o=c.file)===null||o===void 0||((_=o.response)===null||_===void 0))?void 0:_.id)}};return b.a.createElement(b.a.Fragment,null,A?B():b.a.createElement("div",null,b.a.createElement(V.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(r.a.API_SERVER,"/api/attachments.json"),onChange:w,accept:"image/*"},S),b.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"),b.a.createElement("div",{className:"c-light-black"},"\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002")))};Ce.a=s},h78n:function(We,Ce,I){"use strict";I.d(Ce,"a",function(){return O});var ae=I("q1tI"),V=I.n(ae),M=I("TSYQ"),p=I.n(M),E={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},C=function(F){var Y=F.map(function(){return Object(ae.useRef)()}),k=Object(ae.useRef)();return Object(ae.useEffect)(function(){var K=Date.now(),z=!1;Object.keys(Y).forEach(function(j){var Q=Y[j].current;if(!Q)return;z=!0;var X=Q.style;X.transitionDuration=".3s, .3s, .3s, .06s",k.current&&K-k.current<100&&(X.transitionDuration="0s, 0s")}),z&&(k.current=Date.now())}),[Y]};function b(){return b=Object.assign||function(U){for(var F=1;F<arguments.length;F++){var Y=arguments[F];for(var k in Y)Object.prototype.hasOwnProperty.call(Y,k)&&(U[k]=Y[k])}return U},b.apply(this,arguments)}function f(U,F){return s(U)||e(U,F)||r(U,F)||l()}function l(){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 r(U,F){if(!U)return;if(typeof U=="string")return n(U,F);var Y=Object.prototype.toString.call(U).slice(8,-1);if(Y==="Object"&&U.constructor&&(Y=U.constructor.name),Y==="Map"||Y==="Set")return Array.from(U);if(Y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Y))return n(U,F)}function n(U,F){(F==null||F>U.length)&&(F=U.length);for(var Y=0,k=new Array(F);Y<F;Y++)k[Y]=U[Y];return k}function e(U,F){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(U)))return;var Y=[],k=!0,K=!1,z=void 0;try{for(var j=U[Symbol.iterator](),Q;!(k=(Q=j.next()).done)&&!(Y.push(Q.value),F&&Y.length===F);k=!0);}catch(X){K=!0,z=X}finally{try{!k&&j.return!=null&&j.return()}finally{if(K)throw z}}return Y}function s(U){if(Array.isArray(U))return U}function u(U,F){if(U==null)return{};var Y=a(U,F),k,K;if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(U);for(K=0;K<z.length;K++){if(k=z[K],F.indexOf(k)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(U,k))continue;Y[k]=U[k]}}return Y}function a(U,F){if(U==null)return{};var Y={},k=Object.keys(U),K,z;for(z=0;z<k.length;z++){if(K=k[z],F.indexOf(K)>=0)continue;Y[K]=U[K]}return Y}var A=function(F){var Y=F.className,k=F.percent,K=F.prefixCls,z=F.strokeColor,j=F.strokeLinecap,Q=F.strokeWidth,X=F.style,te=F.trailColor,oe=F.trailWidth,fe=F.transition,le=u(F,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete le.gapPosition;var we=Array.isArray(k)?k:[k],Ae=Array.isArray(z)?z:[z],be=C(we),me=f(be,1),he=me[0],ie=Q/2,pe=100-Q/2,ye="M ".concat(j==="round"?ie:0,",").concat(ie,`
L `).concat(j==="round"?pe:100,",").concat(ie),de="0 0 100 ".concat(Q),Me=0;return V.a.createElement("svg",b({className:p()("".concat(K,"-line"),Y),viewBox:de,preserveAspectRatio:"none",style:X},le),V.a.createElement("path",{className:"".concat(K,"-line-trail"),d:ye,strokeLinecap:j,stroke:te,strokeWidth:oe||Q,fillOpacity:"0"}),we.map(function(ke,Ue){var re={strokeDasharray:"".concat(ke,"px, 100px"),strokeDashoffset:"-".concat(Me,"px"),transition:fe||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},N=Ae[Ue]||Ae[Ae.length-1];return Me+=ke,V.a.createElement("path",{key:Ue,className:"".concat(K,"-line-path"),d:ye,strokeLinecap:j,stroke:N,strokeWidth:Q,fillOpacity:"0",ref:he[Ue],style:re})}))};A.defaultProps=E;var d=A;function i(){return i=Object.assign||function(U){for(var F=1;F<arguments.length;F++){var Y=arguments[F];for(var k in Y)Object.prototype.hasOwnProperty.call(Y,k)&&(U[k]=Y[k])}return U},i.apply(this,arguments)}function h(U,F){return B(U)||S(U,F)||v(U,F)||y()}function y(){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 v(U,F){if(!U)return;if(typeof U=="string")return x(U,F);var Y=Object.prototype.toString.call(U).slice(8,-1);if(Y==="Object"&&U.constructor&&(Y=U.constructor.name),Y==="Map"||Y==="Set")return Array.from(U);if(Y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Y))return x(U,F)}function x(U,F){(F==null||F>U.length)&&(F=U.length);for(var Y=0,k=new Array(F);Y<F;Y++)k[Y]=U[Y];return k}function S(U,F){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(U)))return;var Y=[],k=!0,K=!1,z=void 0;try{for(var j=U[Symbol.iterator](),Q;!(k=(Q=j.next()).done)&&!(Y.push(Q.value),F&&Y.length===F);k=!0);}catch(X){K=!0,z=X}finally{try{!k&&j.return!=null&&j.return()}finally{if(K)throw z}}return Y}function B(U){if(Array.isArray(U))return U}function w(U,F){if(U==null)return{};var Y=m(U,F),k,K;if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(U);for(K=0;K<z.length;K++){if(k=z[K],F.indexOf(k)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(U,k))continue;Y[k]=U[k]}}return Y}function m(U,F){if(U==null)return{};var Y={},k=Object.keys(U),K,z;for(z=0;z<k.length;z++){if(K=k[z],F.indexOf(K)>=0)continue;Y[K]=U[K]}return Y}var c=0;function o(U){return+U.replace("%","")}function _(U){return Array.isArray(U)?U:[U]}function D(U,F,Y,k){var K=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,z=arguments.length>5?arguments[5]:void 0,j=50-k/2,Q=0,X=-j,te=0,oe=-2*j;switch(z){case"left":Q=-j,X=0,te=2*j,oe=0;break;case"right":Q=j,X=0,te=-2*j,oe=0;break;case"bottom":X=j,oe=2*j;break;default:}var fe="M 50,50 m ".concat(Q,",").concat(X,`
a `).concat(j,",").concat(j," 0 1 1 ").concat(te,",").concat(-oe,`
a `).concat(j,",").concat(j," 0 1 1 ").concat(-te,",").concat(oe),le=Math.PI*2*j,we={stroke:Y,strokeDasharray:"".concat(F/100*(le-K),"px ").concat(le,"px"),strokeDashoffset:"-".concat(K/2+U/100*(le-K),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:fe,pathStyle:we}}var T=function(F){var Y=F.prefixCls,k=F.strokeWidth,K=F.trailWidth,z=F.gapDegree,j=F.gapPosition,Q=F.trailColor,X=F.strokeLinecap,te=F.style,oe=F.className,fe=F.strokeColor,le=F.percent,we=w(F,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),Ae=Object(ae.useMemo)(function(){return c+=1,c},[]),be=D(0,100,Q,k,z,j),me=be.pathString,he=be.pathStyle,ie=_(le),pe=_(fe),ye=pe.find(function(re){return Object.prototype.toString.call(re)==="[object Object]"}),de=C(ie),Me=h(de,1),ke=Me[0],Ue=function(){var N=0;return ie.map(function(W,ce){var ne=pe[ce]||pe[pe.length-1],ue=Object.prototype.toString.call(ne)==="[object Object]"?"url(#".concat(Y,"-gradient-").concat(Ae,")"):"",De=D(N,W,ne,k,z,j);return N+=W,V.a.createElement("path",{key:ce,className:"".concat(Y,"-circle-path"),d:De.pathString,stroke:ue,strokeLinecap:X,strokeWidth:k,opacity:W===0?0:1,fillOpacity:"0",style:De.pathStyle,ref:ke[ce]})})};return V.a.createElement("svg",i({className:p()("".concat(Y,"-circle"),oe),viewBox:"0 0 100 100",style:te},we),ye&&V.a.createElement("defs",null,V.a.createElement("linearGradient",{id:"".concat(Y,"-gradient-").concat(Ae),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(ye).sort(function(re,N){return o(re)-o(N)}).map(function(re,N){return V.a.createElement("stop",{key:N,offset:re,stopColor:ye[re]})}))),V.a.createElement("path",{className:"".concat(Y,"-circle-trail"),d:me,stroke:Q,strokeLinecap:X,strokeWidth:K||k,fillOpacity:"0",style:he}),Ue().reverse())};T.defaultProps=E;var O=T,R={Line:d,Circle:O}},h7HQ:function(We,Ce,I){var ae=I("y+Vt"),V=I("T6xi"),M=ae.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(p,E){V.buildPath(p,E,!0)}});We.exports=M},hOwI:function(We,Ce){var I=Math.log(2);function ae(M,p,E,C,b,f){var l=C+"-"+b,r=M.length;if(f.hasOwnProperty(l))return f[l];if(p===1){var n=Math.round(Math.log((1<<r)-1&~b)/I);return M[E][n]}for(var e=C|1<<E,s=E+1;C&1<<s;)s++;for(var u=0,a=0,A=0;a<r;a++){var d=1<<a;d&b||(u+=(A%2?-1:1)*M[E][a]*ae(M,p-1,s,e,b|d,f),A++)}return f[l]=u,u}function V(M,p){var E=[[M[0],M[1],1,0,0,0,-p[0]*M[0],-p[0]*M[1]],[0,0,0,M[0],M[1],1,-p[1]*M[0],-p[1]*M[1]],[M[2],M[3],1,0,0,0,-p[2]*M[2],-p[2]*M[3]],[0,0,0,M[2],M[3],1,-p[3]*M[2],-p[3]*M[3]],[M[4],M[5],1,0,0,0,-p[4]*M[4],-p[4]*M[5]],[0,0,0,M[4],M[5],1,-p[5]*M[4],-p[5]*M[5]],[M[6],M[7],1,0,0,0,-p[6]*M[6],-p[6]*M[7]],[0,0,0,M[6],M[7],1,-p[7]*M[6],-p[7]*M[7]]],C={},b=ae(E,8,0,0,0,C);if(b===0)return;for(var f=[],l=0;l<8;l++)for(var r=0;r<8;r++)f[r]==null&&(f[r]=0),f[r]+=((l+r)%2?-1:1)*ae(E,7,l===0?1:0,1<<l,1<<r,C)/b*p[l];return function(n,e,s){var u=e*f[6]+s*f[7]+1;n[0]=(e*f[0]+s*f[1]+f[2])/u,n[1]=(e*f[3]+s*f[4]+f[5])/u}}Ce.buildTransformer=V},hW8S:function(We,Ce,I){"use strict";I.d(Ce,"a",function(){return p}),I.d(Ce,"c",function(){return E}),I.d(Ce,"b",function(){return C});var ae=I("VTBJ"),V=I("Ff2n"),M=I("Kwbf"),p="RC_TABLE_INTERNAL_COL_DEFINE";function E(b){var f=b.expandable,l=Object(V.a)(b,["expandable"]);return"expandable"in b?Object(ae.a)(Object(ae.a)({},l),f):l}function C(b){return Object.keys(b).reduce(function(f,l){return(l.substr(0,5)==="data-"||l.substr(0,5)==="aria-")&&(f[l]=b[l]),f},{})}},hX1E:function(We,Ce){var I=Math.PI*2;function ae(V){return V%=I,V<0&&(V+=I),V}Ce.normalizeRadian=ae},ho57:function(We,Ce){We.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(We,Ce){var I="http://www.w3.org/2000/svg";function ae(V){return document.createElementNS(I,V)}Ce.createElement=ae},hyiK:function(We,Ce){function I(ae,V,M,p,E,C){if(C>V&&C>p||C<V&&C<p)return 0;if(p===V)return 0;var b=p<V?1:-1,f=(C-V)/(p-V);(f===1||f===0)&&(b=p<V?.5:-.5);var l=f*(M-ae)+ae;return l===E?Infinity:l>E?b:0}We.exports=I},iXp4:function(We,Ce,I){var ae=I("ItGF"),V=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function M(p){return ae.browser.ie&&ae.browser.version>=11?function(){var E=this.__clipPaths,C=this.style,b;if(E)for(var f=0;f<E.length;f++){var l=E[f],r=l&&l.shape,n=l&&l.type;if(r&&(n==="sector"&&r.startAngle===r.endAngle||n==="rect"&&(!r.width||!r.height))){for(var e=0;e<V.length;e++)V[e][2]=C[V[e][0]],C[V[e][0]]=V[e][1];b=!0;break}}if(p.apply(this,arguments),b)for(var e=0;e<V.length;e++)C[V[e][0]]=V[e][2]}:p}We.exports=M},j5sG:function(We,Ce,I){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.createSensor=void 0;var ae=V(I("NohK"));function V(p){return p&&p.__esModule?p:{default:p}}var M=function(E){var C=void 0,b=[],f=(0,ae.default)(function(){b.forEach(function(s){s(E)})}),l=function(){var u=new ResizeObserver(f);return u.observe(E),f(),u},r=function(u){C||(C=l()),b.indexOf(u)===-1&&b.push(u)},n=function(){C.disconnect(),b=[],C=void 0},e=function(u){var a=b.indexOf(u);a!==-1&&b.splice(a,1),b.length===0&&C&&n()};return{element:E,bind:r,destroy:n,unbind:e}};Ce.createSensor=M},jTL6:function(We,Ce,I){var ae=I("y+Vt"),V=ae.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,p){var E=p.cx,C=p.cy,b=Math.max(p.r,0),f=p.startAngle,l=p.endAngle,r=p.clockwise,n=Math.cos(f),e=Math.sin(f);M.moveTo(n*b+E,e*b+C),M.arc(E,C,b,f,l,!r)}});We.exports=V},jZGp:function(We,Ce,I){"use strict";var ae=I("ozfa"),V=I("MJZm"),M=I("14J3"),p=I("BMrR"),E=I("+L6B"),C=I("2/Rp"),b=I("jCWc"),f=I("kPKH"),l=I("5Dmo"),r=I("3S7+"),n=I("miYZ"),e=I("tsqr"),s=I("9og8"),u=I("2qtc"),a=I("kLXV"),A=I("oBTY"),d=I("tJVT"),i=I("PpiC"),h=I("OaEy"),y=I("2fM7"),v=I("WmNS"),x=I.n(v),S=I("q1tI"),B=I.n(S),w=I("Ty5D"),m=I("9kvl"),c=I("Fvcw"),o=I("Mgx3"),_=I("1vsH"),D=I("qdXH"),T=I("V0Rq"),O=I("HBuW"),R=I("Dols"),U=I.n(R),F=I("LvDl"),Y=I.n(F),k=I("8Skl"),K=I("UESt"),z=I("NLgs"),j=I("m3rI"),Q=y.a.Option,X=function(oe){var fe=oe.pathsDetail,le=oe.globalSetting,we=oe.user,Ae=oe.loading,be=oe.visibleType,me=oe.updateSort,he=oe.dispatch,ie=Object(i.a)(oe,["pathsDetail","globalSetting","user","loading","visibleType","updateSort","dispatch"]),pe=Object(S.useState)([]),ye=Object(d.a)(pe,2),de=ye[0],Me=ye[1],ke=Object(S.useState)([]),Ue=Object(d.a)(ke,2),re=Ue[0],N=Ue[1],W=Object(w.i)(),ce=Object(S.useState)([]),ne=Object(d.a)(ce,2),ue=ne[0],De=ne[1],ze=Object(S.useState)({}),wt=Object(d.a)(ze,2),He=wt[0],Xe=wt[1];Object(S.useEffect)(function(){if(ie.data&&!Object(F.isEqual)(ie.data,ue)){re=[];var Nt=JSON.parse(JSON.stringify(ie.data));Le(Nt,0),De(Object(A.a)(Nt)),be!="All"?Me(Object(A.a)(re)):Me([])}},[JSON.stringify(ie.data),be]),Object(S.useEffect)(function(){var Nt,It,jt;if((Nt=fe.detail)!==null&&Nt!==void 0&&Nt.has_start){var xt,Lt,St=(xt=fe.detail)===null||xt===void 0||((Lt=xt.courses)===null||Lt===void 0)?void 0:Lt.findIndex(function(Wt){var bt;return parseInt((bt=Wt.course_status)===null||bt===void 0?void 0:bt.status)===1});jt=St>-1?St:0}else{var dt,yt,Fe,et,Ot,Et=(dt=fe.detail)===null||dt===void 0||((yt=dt.courses)===null||yt===void 0||((Fe=yt.map(function(Wt){var bt;return parseInt((bt=Wt.course_status)===null||bt===void 0?void 0:bt.status)}))===null||Fe===void 0))?void 0:Fe.lastIndexOf(2);jt=Et>-1?Et:0,Et=(et=fe.detail)===null||et===void 0||((Ot=et.courses)===null||Ot===void 0)?void 0:Ot.findIndex(function(Wt){var bt;return parseInt((bt=Wt.course_status)===null||bt===void 0?void 0:bt.status)===0}),jt=Et>-1?Et:jt}if((It=fe.detail)!==null&&It!==void 0&&It.courses){var Ut;Xe(((Ut=fe.detail)===null||Ut===void 0?void 0:Ut.courses[jt])||{})}},[fe.detail]);var gt=function(It,jt){a.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(){}})},_t=function(It){a.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 jt=Object(s.a)(x.a.mark(function Lt(){return x.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:case"end":return dt.stop()}},Lt)}));function xt(){return jt.apply(this,arguments)}return xt}()})},ct=function(){var Nt=Object(s.a)(x.a.mark(function It(jt,xt){var Lt;return x.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:if(he({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!xt){dt.next=7;break}return dt.next=4,Object(O.C)({id:jt});case 4:dt.t0=dt.sent,dt.next=10;break;case 7:return dt.next=9,Object(O.D)({id:jt});case 9:dt.t0=dt.sent;case 10:if(Lt=dt.t0,he({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(Lt!=null&&Lt.game_identifier||Lt!=null&&Lt.identifier)){dt.next=15;break}return Object(_.Q)(xt?"/tasks/".concat(Lt==null?void 0:Lt.identifier,"/jupyter"):"/tasks/".concat(Lt.game_identifier,"?subject_id=").concat(W.pathId||"")),dt.abrupt("return");case 15:(Lt==null?void 0:Lt.status)===-3?Object(_.o)():(Lt==null?void 0:Lt.status)===2?lt(Lt==null?void 0:Lt.message):(Lt==null?void 0:Lt.status)===3&&rt(Lt==null?void 0:Lt.message);case 16:case"end":return dt.stop()}},It)}));return function(jt,xt){return Nt.apply(this,arguments)}}(),lt=function Nt(It){var jt;It=(jt=It)!==null&&jt!==void 0&&jt.includes(".json")?It:"".concat(It,".json"),a.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 xt=Object(s.a)(x.a.mark(function St(){var dt,yt;return x.a.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return et.next=2,Object(T.S)({url:It});case 2:if(dt=et.sent,dt){et.next=5;break}return et.abrupt("return");case 5:return e.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),et.next=8,Object(O.D)({id:dt.shixun_identifier});case 8:if(yt=et.sent,!(yt!=null&&yt.game_identifier)){et.next=12;break}return Object(_.Q)("/tasks/".concat(yt.game_identifier)),et.abrupt("return");case 12:(yt==null?void 0:yt.status)===2?Nt(yt==null?void 0:yt.message):(yt==null?void 0:yt.status)===3&&rt(yt==null?void 0:yt.message);case 13:case"end":return et.stop()}},St)}));function Lt(){return xt.apply(this,arguments)}return Lt}()})},rt=function(It){a.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",It,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},Ze=function(It){console.log("onDragEnter:",It)},qe=function(){var Nt=Object(s.a)(x.a.mark(function It(jt){var xt,Lt,St,dt,yt,Fe,et,Ot,Et;return x.a.wrap(function(Wt){for(;;)switch(Wt.prev=Wt.next){case 0:if(console.log("onDrop:",jt),xt=jt.node.props.eventKey,Lt=jt.dragNode.props.eventKey,St=jt.node.props.pos.split("-"),dt=jt.dropPosition-Number(St[St.length-1]),!(St.length>2&&!jt.node.dragOverGapBottom&&!jt.node.dragOverGapTop)){Wt.next=7;break}return Wt.abrupt("return",!1);case 7:if(!(jt.node.dragOver&&jt.dragNodesKeys.length>1)){Wt.next=9;break}return Wt.abrupt("return",!1);case 9:if(!(St.length>2&&jt.dragNodesKeys.length>1)){Wt.next=11;break}return Wt.abrupt("return",!1);case 11:return yt=function bt(Gt,un,jn){for(var Bn=0;Bn<Gt.length;Bn++){if(Gt[Bn].key===un)return jn(Gt[Bn],Bn,Gt);Gt[Bn].children&&bt(Gt[Bn].children,un,jn)}},Fe=Object(A.a)(ue),yt(Fe,Lt,function(bt,Gt,un){un.splice(Gt,1),et=bt}),jt.dropToGap?(jt.node.props.children||[]).length>0&&jt.node.props.expanded&&dt===1?yt(Fe,xt,function(bt){bt.children=bt.children||[],bt.children.unshift(et)}):(yt(Fe,xt,function(bt,Gt,un){Ot=un,Et=Gt}),dt===-1?Ot.splice(Et,0,et):Ot.splice(Et+1,0,et)):yt(Fe,xt,function(bt){bt.children=bt.children||[],bt.children.unshift(et)}),Wt.next=17,me({stage_id:ie.stage_id,list:Fe});case 17:Le(Fe,0,0,!0),console.log("data:",Fe),De(Object(A.a)(Fe)),Me([].concat(Object(A.a)(de),[jt.node.key]));case 21:case"end":return Wt.stop()}},It)}));return function(jt){return Nt.apply(this,arguments)}}(),Le=function Nt(It,jt,xt,Lt){jt=jt||0,It.map(function(St,dt){try{var yt;return St.key2=jt+1+"-"+(dt+1),St.key3=ie.index+1+"-"+(dt+1),St.title="",Lt||(St.key=jt+1+"-"+(dt+1)),jt?St.index=xt+"-"+(dt+1):St.index=St.key3,(yt=St.children)!==null&&yt!==void 0&&yt.length&&(re.push(St.key2),Nt(St.children,St.key2,St.index,Lt)),St}catch(Fe){}})},je=function(It){var jt=It.learning_status,xt=It.name,Lt=(jt==null?void 0:jt[0])==="can"&&(jt==null?void 0:jt[1])==="try";return Lt?B.a.createElement("div",{className:U.a.learn},B.a.createElement("span",{className:U.a.name},xt),B.a.createElement("span",{className:U.a.sign},"\u514D\u8D39\u8BD5\u5B66")):xt},Ne=function(It){if(be!=="All")return;de.includes(It)?Me(de.filter(function(jt){return jt!=It})):Me(de.concat(It))},$e=function(){var Nt=Object(s.a)(x.a.mark(function It(jt){return x.a.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:if(Object(z.e)(he,!0)){Lt.next=2;break}return Lt.abrupt("return");case 2:if(!(jt!=null&&jt.need_authorize)){Lt.next=5;break}return Object(z.a)(!1),Lt.abrupt("return");case 5:if(!(He!=null&&He.course_id)){Lt.next=8;break}return Lt.next=8,Object(o.P)({id:He==null?void 0:He.course_id});case 8:ct(jt.identifier,jt.is_jupyter||jt.is_jupyter_lab);case 9:case"end":return Lt.stop()}},It)}));return function(jt){return Nt.apply(this,arguments)}}(),At=function(){var Nt=Object(s.a)(x.a.mark(function It(jt){var xt,Lt,St,dt,yt,Fe;return x.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:if(Object(z.e)(he)){Ot.next=2;break}return Ot.abrupt("return");case 2:if(!(!((xt=we.userInfo)!==null&&xt!==void 0&&xt.admin)&&!((Lt=we.userInfo)!==null&&Lt!==void 0&&Lt.business)&&!jt.can_view&&jt.item_type!=="Attachment")){Ot.next=4;break}return Ot.abrupt("return",a.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:jt.link&&Object(D.n)({is_f:1,id:jt.id,point:0,total:0}),yt=ie!=null&&ie.course_id?"course_id=".concat(ie==null?void 0:ie.course_id):"subject_id=".concat(W.pathId||ie.subject_id),Fe=jt==null||((St=jt.name)===null||St===void 0)?void 0:St.substr(jt==null||((dt=jt.name)===null||dt===void 0)?void 0:dt.lastIndexOf(".")),Fe.toUpperCase()===".ZIP"?Object(_.t)(jt.name,j.a.API_SERVER+jt.url):Object(_.Q)(jt.link||"/video/".concat(jt.id,"?").concat(yt));case 8:case"end":return Ot.stop()}},It)}));return function(jt){return Nt.apply(this,arguments)}}(),Bt=function(It){var jt;return It.item_type==="Shixun"?It.is_all_choice?jt=B.a.createElement(r.a,{title:"\u9009\u62E9\u9898"},B.a.createElement("i",{className:"iconfont icon-xuanzeti3 c-lake-blue font20"})):jt=B.a.createElement(r.a,{title:"\u5B9E\u8BAD\u9898"},B.a.createElement("i",{className:"iconfont icon-shixunti2 c-light-primary font20"})):It.item_type==="VideoItem"?jt=B.a.createElement("i",{className:"iconfont icon-shipin2 c-purple-8C1 font20"}):It.item_type==="StageCatalog"?jt=B.a.createElement("i",{className:"iconfont icon-kongbai c-brilliant-blue font20"}):jt=B.a.createElement("i",{className:"iconfont icon-kejian1 c-cyan-blue font20"}),jt;It.item_type==="Shixun"||It.item_type==="StageCatalog"};return B.a.createElement(B.a.Fragment,null,B.a.createElement(V.a,{className:U.a.tree,disabled:ie.disabled,expandedKeys:Object(A.a)(de),draggable:!0,onDragEnter:Ze,onDrop:qe,onExpand:Ne,blockNode:!0,titleRender:function(It){var jt,xt,Lt,St,dt=It;if(dt.item_type!==be&&be!=="All")return null;var yt=It.index.slice(0,1)==="1",Fe=(It==null||((jt=It.learning_status)===null||jt===void 0)?void 0:jt[0])==="can";return B.a.createElement(p.a,{align:"middle",className:"font14",onClick:function(){return Ne(dt.key)}},B.a.createElement(f.a,{flex:"30px"},Bt(It)),B.a.createElement(f.a,{flex:"1",className:"c-grey-333"},ie.cust_seq&&B.a.createElement("span",{className:"mr10"},It.index),It.item_type!=="Attachment"&&je(It),It.item_type==="Attachment"&&B.a.createElement("a",{target:"_blank",onClick:Object(s.a)(x.a.mark(function et(){var Ot;return x.a.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:if(Object(z.e)(he)){Ut.next=2;break}return Ut.abrupt("return");case 2:if(!(He!=null&&He.course_id)){Ut.next=6;break}return Ut.next=5,Object(o.P)({id:He==null?void 0:He.course_id});case 5:Ot=Ut.sent;case 6:Ut.t0=It.item_type,Ut.next=Ut.t0==="Attachment"?9:Ut.t0==="VideoItem"?11:Ut.t0==="Shixun"?13:15;break;case 9:return At(dt),Ut.abrupt("break",15);case 11:return At(It),Ut.abrupt("break",15);case 13:return $e(It),Ut.abrupt("break",15);case 15:case"end":return Ut.stop()}},et)}))},It.name),It.item_type==="Shixun"&&It.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"),It.item_type==="Shixun"&&It.is_jupyter_lab&&B.a.createElement("span",{style:{background:"#ff6802",color:"#fff",borderRadius:"13px",marginLeft:"5px",width:"76px",height:"20px",display:"inline-block",textAlign:"center",fontSize:"12px"}},"JupyterLab"),It.item_type==="Shixun"&&It.is_jupyter&&B.a.createElement("span",{style:{background:"#ff6802",color:"#fff",borderRadius:"13px",marginLeft:"5px",width:"112px",height:"20px",display:"inline-block",textAlign:"center",fontSize:"12px"}},"Jupyter Notebook"),!!((xt=It.schools)!==null&&xt!==void 0&&xt.length)&&B.a.createElement(r.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"}})),It.item_type==="Shixun"&&!!(It!=null&&It.finished_challenges_count)&&B.a.createElement(r.a,{title:"\u5B8C\u6210\u5EA6:".concat(Math.round((It==null?void 0:It.finished_challenges_count)/(It==null?void 0:It.challenges_count)*100),"%")},B.a.createElement("i",{className:"iconfont icon-a-wanchengdu100 ml10 ".concat((It==null?void 0:It.finished_challenges_count)-(It==null?void 0:It.challenges_count)===0?"c-light-green":"c-grey-333"),style:{transform:"translateY(1px)",display:"inline-block"}}))),!ie.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(f.a,{className:"tr"},(dt.item_type==="VideoItem"||(dt==null?void 0:dt.item_type)==="Attachment")&&!ie.disabled&&B.a.createElement(r.a,{title:"\u7F16\u8F91"},B.a.createElement("span",{onClick:function(){ie.editVidoItem(dt)},style:{color:"#ccc",marginRight:"10px"}},B.a.createElement(c.a,null))),!ie.disabled&&B.a.createElement(B.a.Fragment,null,B.a.createElement(r.a,{title:"\u5220\u9664"},B.a.createElement("span",{onClick:function(){ie.deleteStages({id:dt.stage_item_id,stage_id:ie.stage_id})},className:"iconfont icon-shanchu c-grey-c"}))),ie.showVideoPlay&&ie.disabled&&dt.item_type==="VideoItem"&&Fe&&B.a.createElement("aside",null,B.a.createElement(C.a,{type:"primary",onClick:Object(s.a)(x.a.mark(function et(){return x.a.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:At(dt);case 1:case"end":return Et.stop()}},et)}))},dt.last_point>0?"\u7EE7\u7EED\u5B66\u4E60":"\u5F00\u59CB\u5B66\u4E60")),(((Lt=we.userInfo)===null||Lt===void 0?void 0:Lt.admin)||dt.allow_visit||dt.to_be_built||dt.shixun_status!=="\u6682\u672A\u516C\u5F00"&&dt.shixun_status!=="\u5DF2\u5220\u9664")&&ie.disabled&&dt.item_type==="Shixun"&&Fe&&B.a.createElement("aside",null,B.a.createElement(C.a,{className:"ml10",type:"primary",onClick:Object(s.a)(x.a.mark(function et(){return x.a.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:if(Object(z.e)(he)){Et.next=2;break}return Et.abrupt("return");case 2:if(!(He!=null&&He.course_id)){Et.next=5;break}return Et.next=5,Object(o.P)({id:He==null?void 0:He.course_id});case 5:window.open("/shixuns/".concat(dt.identifier,"/challenges"));case 6:case"end":return Et.stop()}},et)}))},"\u67E5\u770B\u8BE6\u60C5"),dt.shixun_status!=="\u6682\u672A\u516C\u5F00"&&B.a.createElement(C.a,{className:"ml10",type:"primary",onClick:Object(s.a)(x.a.mark(function et(){return x.a.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:$e(dt);case 1:case"end":return Et.stop()}},et)}))},dt!=null&&dt.need_authorize?"\u9700\u6388\u6743":It!=null&&It.finished_challenges_count?(It==null?void 0:It.finished_challenges_count)-(It==null?void 0:It.challenges_count)===0?"\u518D\u6B21\u5B9E\u6218":"\u7EE7\u7EED\u5B9E\u6218":"\u5F00\u59CB\u5B9E\u6218")),ie.disabled&&!dt.allow_visit&&!dt.to_be_built&&dt.shixun_status==="\u6682\u672A\u516C\u5F00"&&B.a.createElement("span",{className:U.a.color204},"\u6682\u672A\u516C\u5F00"),!dt.allow_visit&&!dt.to_be_built&&dt.shixun_status==="\u5DF2\u5220\u9664"&&B.a.createElement("span",{className:U.a.color204},"\u5DF2\u5220\u9664"),ie.disabled&&dt.item_type==="Shixun"&&!!dt.challenges_count&&B.a.createElement("span",{className:"exper\u02C6iment-number ml5 c-grey-999"},"\u5B9E\u9A8C\u6570 ",dt.challenges_count),be==="All"&&!!((St=It.children)!==null&&St!==void 0&&St.length)&&B.a.createElement("span",{className:"ml10"},de.includes(It.key)?B.a.createElement(k.a,null):B.a.createElement(K.a,null))))},treeData:ue}))};Ce.a=Object(m.a)(function(te){var oe=te.pathsDetail,fe=te.loading,le=te.user,we=te.globalSetting;return{pathsDetail:oe,globalSetting:we,user:le,loading:fe.effects}})(X)},ji0R:function(We,Ce,I){We.exports=I.p+"static/douyu.3e6df9ee.jpg"},juDX:function(We,Ce,I){I("P47w");var ae=I("aX58"),V=ae.registerPainter,M=I("3CBa");V("svg",M)},k3GJ:function(We,Ce,I){"use strict";I.d(Ce,"a",function(){return $s});var ae=I("rePB"),V=I("ODXe"),M=I("Ff2n"),p=I("VTBJ"),E=I("q1tI"),C=I("TSYQ"),b=I.n(C),f=I("Zm9Q"),l=I("6cGi"),r=I("KQm4"),n=I("xEkU"),e=I.n(n),s=I("t23M");function u(ut){var Ge=Object(E.useRef)(),Ye=Object(E.useRef)(!1);function Je(){for(var Te=arguments.length,Ve=new Array(Te),Be=0;Be<Te;Be++)Ve[Be]=arguments[Be];Ye.current||(e.a.cancel(Ge.current),Ge.current=e()(function(){ut.apply(void 0,Ve)}))}return Object(E.useEffect)(function(){return function(){Ye.current=!0,e.a.cancel(Ge.current)}},[]),Je}function a(ut){var Ge=Object(E.useRef)([]),Ye=Object(E.useState)({}),Je=Object(V.a)(Ye,2),Te=Je[1],Ve=Object(E.useRef)(typeof ut=="function"?ut():ut),Be=u(function(){var nt=Ve.current;Ge.current.forEach(function(st){nt=st(nt)}),Ge.current=[],Ve.current=nt,Te({})});function at(nt){Ge.current.push(nt),Be()}return[Ve.current,at]}var A=I("4IlW");function d(ut,Ge){var Ye,Je=ut.prefixCls,Te=ut.id,Ve=ut.active,Be=ut.rtl,at=ut.tab,nt=at.key,st=at.tab,ot=at.disabled,ht=at.closeIcon,Mt=ut.tabBarGutter,zt=ut.tabPosition,Dt=ut.closable,en=ut.renderWrapper,ln=ut.removeAriaLabel,Sn=ut.editable,Xt=ut.onClick,$t=ut.onRemove,gn=ut.onFocus,On="".concat(Je,"-tab");E.useEffect(function(){return $t},[]);var nn={};zt==="top"||zt==="bottom"?nn[Be?"marginLeft":"marginRight"]=Mt:nn.marginBottom=Mt;var yn=Sn&&Dt!==!1&&!ot;function Ln(hn){if(ot)return;Xt(hn)}function Gn(hn){hn.preventDefault(),hn.stopPropagation(),Sn.onEdit("remove",{key:nt,event:hn})}var an=E.createElement("div",{key:nt,ref:Ge,className:b()(On,(Ye={},Object(ae.a)(Ye,"".concat(On,"-with-remove"),yn),Object(ae.a)(Ye,"".concat(On,"-active"),Ve),Object(ae.a)(Ye,"".concat(On,"-disabled"),ot),Ye)),style:nn,onClick:Ln},E.createElement("div",{role:"tab","aria-selected":Ve,id:Te&&"".concat(Te,"-tab-").concat(nt),className:"".concat(On,"-btn"),"aria-controls":Te&&"".concat(Te,"-panel-").concat(nt),"aria-disabled":ot,tabIndex:ot?null:0,onClick:function(fn){fn.stopPropagation(),Ln(fn)},onKeyDown:function(fn){[A.a.SPACE,A.a.ENTER].includes(fn.which)&&(fn.preventDefault(),Ln(fn))},onFocus:gn},st),yn&&E.createElement("button",{type:"button","aria-label":ln||"remove",tabIndex:0,className:"".concat(On,"-remove"),onClick:function(fn){fn.stopPropagation(),Gn(fn)}},ht||Sn.removeIcon||"\xD7"));return en&&(an=en(an)),an}var i=E.forwardRef(d),h={width:0,height:0,left:0,top:0};function y(ut,Ge,Ye){return Object(E.useMemo)(function(){for(var Je,Te=new Map,Ve=Ge.get((Je=ut[0])===null||Je===void 0?void 0:Je.key)||h,Be=Ve.left+Ve.width,at=0;at<ut.length;at+=1){var nt=ut[at].key,st=Ge.get(nt);if(!st){var ot;st=Ge.get((ot=ut[at-1])===null||ot===void 0?void 0:ot.key)||h}var ht=Te.get(nt)||Object(p.a)({},st);ht.right=Be-ht.left-ht.width,Te.set(nt,ht)}return Te},[ut.map(function(Je){return Je.key}).join("_"),Ge,Ye])}var v={width:0,height:0,left:0,top:0,right:0};function x(ut,Ge,Ye,Je,Te){var Ve=Te.tabs,Be=Te.tabPosition,at=Te.rtl,nt,st,ot;["top","bottom"].includes(Be)?(nt="width",st=at?"right":"left",ot=Math.abs(Ge.left)):(nt="height",st="top",ot=-Ge.top);var ht=Ge[nt],Mt=Ye[nt],zt=Je[nt],Dt=ht;return Mt+zt>ht&&(Dt=ht-zt),Object(E.useMemo)(function(){if(!Ve.length)return[0,0];for(var en=Ve.length,ln=en,Sn=0;Sn<en;Sn+=1){var Xt=ut.get(Ve[Sn].key)||v;if(Xt[st]+Xt[nt]>ot+Dt){ln=Sn-1;break}}for(var $t=0,gn=en-1;gn>=0;gn-=1){var On=ut.get(Ve[gn].key)||v;if(On[st]<ot){$t=gn+1;break}}return[$t,ln]},[ut,ot,Dt,Be,Ve.map(function(en){return en.key}).join("_"),at])}var S=I("wx14"),B=I("1OyB"),w=I("vuIU"),m=I("JX7q"),c=I("Ji7U"),o=I("LK+K"),_=I("I8Z2"),D=I("bT9E"),T=I("2GS6"),O=I("Gytx"),R=I.n(O),U=I("U8pU"),F=/iPhone/i,Y=/iPod/i,k=/iPad/i,K=/\bAndroid(?:.+)Mobile\b/i,z=/Android/i,j=/\bAndroid(?:.+)SD4930UR\b/i,Q=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,X=/Windows Phone/i,te=/\bWindows(?:.+)ARM\b/i,oe=/BlackBerry/i,fe=/BB10/i,le=/Opera Mini/i,we=/\b(CriOS|Chrome)(?:.+)Mobile/i,Ae=/Mobile(?:.+)Firefox\b/i;function be(ut,Ge){return ut.test(Ge)}function me(ut){var Ge=ut||(typeof navigator!="undefined"?navigator.userAgent:""),Ye=(Ge||"").split("[FBAN");if(typeof Ye[1]!="undefined"){var Je=Ye,Te=Object(V.a)(Je,1);Ge=Te[0]}if(Ye=Ge.split("Twitter"),typeof Ye[1]!="undefined"){var Ve=Ye,Be=Object(V.a)(Ve,1);Ge=Be[0]}var at={apple:{phone:be(F,Ge)&&!be(X,Ge),ipod:be(Y,Ge),tablet:!be(F,Ge)&&be(k,Ge)&&!be(X,Ge),device:(be(F,Ge)||be(Y,Ge)||be(k,Ge))&&!be(X,Ge)},amazon:{phone:be(j,Ge),tablet:!be(j,Ge)&&be(Q,Ge),device:be(j,Ge)||be(Q,Ge)},android:{phone:!be(X,Ge)&&be(j,Ge)||!be(X,Ge)&&be(K,Ge),tablet:!be(X,Ge)&&!be(j,Ge)&&!be(K,Ge)&&(be(Q,Ge)||be(z,Ge)),device:!be(X,Ge)&&(be(j,Ge)||be(Q,Ge)||be(K,Ge)||be(z,Ge))||be(/\bokhttp\b/i,Ge)},windows:{phone:be(X,Ge),tablet:be(te,Ge),device:be(X,Ge)||be(te,Ge)},other:{blackberry:be(oe,Ge),blackberry10:be(fe,Ge),opera:be(le,Ge),firefox:be(Ae,Ge),chrome:be(we,Ge),device:be(oe,Ge)||be(fe,Ge)||be(le,Ge)||be(Ae,Ge)||be(we,Ge)},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 he=Object(p.a)(Object(p.a)({},me()),{},{isMobile:me}),ie=he;function pe(){}function ye(ut,Ge,Ye){var Je=Ge||"";return ut.key||"".concat(Je,"item_").concat(Ye)}function de(ut){return"".concat(ut,"-menu-")}function Me(ut,Ge){var Ye=-1;E.Children.forEach(ut,function(Je){Ye+=1,Je&&Je.type&&Je.type.isMenuItemGroup?E.Children.forEach(Je.props.children,function(Te){Ye+=1,Ge(Te,Ye)}):Ge(Je,Ye)})}function ke(ut,Ge,Ye){if(!ut||Ye.find)return;E.Children.forEach(ut,function(Je){if(Je){var Te=Je.type;if(!Te||!(Te.isSubMenu||Te.isMenuItem||Te.isMenuItemGroup))return;Ge.indexOf(Je.key)!==-1?Ye.find=!0:Je.props.children&&ke(Je.props.children,Ge,Ye)}})}var Ue=["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(Ge){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Je=Ge&&typeof Ge.getBoundingClientRect=="function"&&Ge.getBoundingClientRect().width;if(Je){if(Ye){var Te=getComputedStyle(Ge),Ve=Te.marginLeft,Be=Te.marginRight;Je+=+Ve.replace("px","")+ +Be.replace("px","")}Je=+Je.toFixed(6)}return Je||0},N=function(Ge,Ye,Je){Ge&&Object(U.a)(Ge.style)==="object"&&(Ge.style[Ye]=Je)},W=function(){return ie.any},ce=I("bdgK"),ne=I("i8i4"),ue=I.n(ne),De=I("wgJM"),ze=I("l4aY"),wt=I("m+aA"),He=I("c+Xe"),Xe=I("zT1h"),gt=I("QC+M");function _t(ut,Ge,Ye){return Ye?ut[0]===Ge[0]:ut[0]===Ge[0]&&ut[1]===Ge[1]}function ct(ut,Ge,Ye){var Je=ut[Ge]||{};return Object(p.a)(Object(p.a)({},Je),Ye)}function lt(ut,Ge,Ye,Je){for(var Te=Ye.points,Ve=Object.keys(ut),Be=0;Be<Ve.length;Be+=1){var at=Ve[Be];if(_t(ut[at].points,Te,Je))return"".concat(Ge,"-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=I("MNnm");function qe(ut,Ge){var Ye={};return Ye[ut.toLowerCase()]=Ge.toLowerCase(),Ye["Webkit".concat(ut)]="webkit".concat(Ge),Ye["Moz".concat(ut)]="moz".concat(Ge),Ye["ms".concat(ut)]="MS".concat(Ge),Ye["O".concat(ut)]="o".concat(Ge.toLowerCase()),Ye}function Le(ut,Ge){var Ye={animationend:qe("Animation","AnimationEnd"),transitionend:qe("Transition","TransitionEnd")};return ut&&("AnimationEvent"in Ge||delete Ye.animationend.animation,"TransitionEvent"in Ge||delete Ye.transitionend.transition),Ye}var je=Le(Object(Ze.a)(),typeof window!="undefined"?window:{}),Ne={};if(Object(Ze.a)()){var $e=document.createElement("div");Ne=$e.style}var At={};function Bt(ut){if(At[ut])return At[ut];var Ge=je[ut];if(Ge)for(var Ye=Object.keys(Ge),Je=Ye.length,Te=0;Te<Je;Te+=1){var Ve=Ye[Te];if(Object.prototype.hasOwnProperty.call(Ge,Ve)&&Ve in Ne)return At[ut]=Ge[Ve],At[ut]}return""}var Nt=Bt("animationend"),It=Bt("transitionend"),jt=!!(Nt&&It),xt=Nt||"animationend",Lt=It||"transitionend";function St(ut,Ge){if(!ut)return null;if(Object(U.a)(ut)==="object"){var Ye=Ge.replace(/-\w/g,function(Je){return Je[1].toUpperCase()});return ut[Ye]}return"".concat(ut,"-").concat(Ge)}var dt="none",yt="appear",Fe="enter",et="leave",Ot="none",Et="prepare",Ut="start",Wt="active",bt="end";function Gt(ut){var Ge=Object(E.useRef)(!1),Ye=Object(E.useState)(ut),Je=Object(V.a)(Ye,2),Te=Je[0],Ve=Je[1];function Be(at){Ge.current||Ve(at)}return Object(E.useEffect)(function(){return function(){Ge.current=!0}},[]),[Te,Be]}var un=Object(Ze.a)()?E.useLayoutEffect:E.useEffect,jn=un,Bn=function(){var ut=E.useRef(null);function Ge(){De.a.cancel(ut.current)}function Ye(Je){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;Ge();var Ve=Object(De.a)(function(){Te<=1?Je({isCanceled:function(){return Ve!==ut.current}}):Ye(Je,Te-1)});ut.current=Ve}return E.useEffect(function(){return function(){Ge()}},[]),[Ye,Ge]},Nr=[Et,Ut,Wt,bt],zr=!1,_r=!0;function Rn(ut){return ut===Wt||ut===bt}var ea=function(ut,Ge){var Ye=E.useState(Ot),Je=Object(V.a)(Ye,2),Te=Je[0],Ve=Je[1],Be=Bn(),at=Object(V.a)(Be,2),nt=at[0],st=at[1];function ot(){Ve(Et)}return jn(function(){if(Te!==Ot&&Te!==bt){var ht=Nr.indexOf(Te),Mt=Nr[ht+1],zt=Ge(Te);zt===zr?Ve(Mt):nt(function(Dt){function en(){if(Dt.isCanceled())return;Ve(Mt)}zt===!0?en():Promise.resolve(zt).then(en)})}},[ut,Te]),E.useEffect(function(){return function(){st()}},[]),[ot,Te]},Aa=function(ut){var Ge=Object(E.useRef)(),Ye=Object(E.useRef)(ut);Ye.current=ut;var Je=E.useCallback(function(Be){Ye.current(Be)},[]);function Te(Be){Be&&(Be.removeEventListener(Lt,Je),Be.removeEventListener(xt,Je))}function Ve(Be){Ge.current&&Ge.current!==Be&&Te(Ge.current),Be&&Be!==Ge.current&&(Be.addEventListener(Lt,Je),Be.addEventListener(xt,Je),Ge.current=Be)}return E.useEffect(function(){return function(){Te(Ge.current)}},[]),[Ve,Te]};function pa(ut,Ge,Ye,Je){var Te=Je.motionEnter,Ve=Te===void 0?!0:Te,Be=Je.motionAppear,at=Be===void 0?!0:Be,nt=Je.motionLeave,st=nt===void 0?!0:nt,ot=Je.motionDeadline,ht=Je.motionLeaveImmediately,Mt=Je.onAppearPrepare,zt=Je.onEnterPrepare,Dt=Je.onLeavePrepare,en=Je.onAppearStart,ln=Je.onEnterStart,Sn=Je.onLeaveStart,Xt=Je.onAppearActive,$t=Je.onEnterActive,gn=Je.onLeaveActive,On=Je.onAppearEnd,nn=Je.onEnterEnd,yn=Je.onLeaveEnd,Ln=Je.onVisibleChanged,Gn=Gt(),an=Object(V.a)(Gn,2),hn=an[0],fn=an[1],Cn=Gt(dt),er=Object(V.a)(Cn,2),cn=er[0],Un=er[1],Dr=Gt(null),cr=Object(V.a)(Dr,2),Tr=cr[0],or=cr[1],kr=Object(E.useRef)(!1),Qn=Object(E.useRef)(null),Ur=Object(E.useRef)(!1),$r=Object(E.useRef)(null);function Gr(){var Xn=Ye();return Xn||$r.current}var mr=Object(E.useRef)(!1);function Tn(Xn){var xn=Gr();if(Xn&&!Xn.deadline&&Xn.target!==xn)return;var Ar;cn===yt&&mr.current?Ar=On==null?void 0:On(xn,Xn):cn===Fe&&mr.current?Ar=nn==null?void 0:nn(xn,Xn):cn===et&&mr.current&&(Ar=yn==null?void 0:yn(xn,Xn)),Ar!==!1&&!Ur.current&&(Un(dt),or(null))}var tr=Aa(Tn),Mr=Object(V.a)(tr,1),Fn=Mr[0],Zn=E.useMemo(function(){var Xn,xn,Ar;switch(cn){case"appear":return Xn={},Object(ae.a)(Xn,Et,Mt),Object(ae.a)(Xn,Ut,en),Object(ae.a)(Xn,Wt,Xt),Xn;case"enter":return xn={},Object(ae.a)(xn,Et,zt),Object(ae.a)(xn,Ut,ln),Object(ae.a)(xn,Wt,$t),xn;case"leave":return Ar={},Object(ae.a)(Ar,Et,Dt),Object(ae.a)(Ar,Ut,Sn),Object(ae.a)(Ar,Wt,gn),Ar;default:return{}}},[cn]),nr=ea(cn,function(Xn){if(Xn===Et){var xn=Zn[Et];return xn?xn(Gr()):zr}if(An in Zn){var Ar;or(((Ar=Zn[An])===null||Ar===void 0?void 0:Ar.call(Zn,Gr(),null))||null)}return An===Wt&&(Fn(Gr()),ot>0&&(clearTimeout(Qn.current),Qn.current=setTimeout(function(){Tn({deadline:!0})},ot))),_r}),Yn=Object(V.a)(nr,2),Kn=Yn[0],An=Yn[1],sn=Rn(An);mr.current=sn,jn(function(){fn(Ge);var Xn=kr.current;if(kr.current=!0,!ut)return;var xn;!Xn&&Ge&&at&&(xn=yt),Xn&&Ge&&Ve&&(xn=Fe),(Xn&&!Ge&&st||!Xn&&ht&&!Ge&&st)&&(xn=et),xn&&(Un(xn),Kn())},[Ge]),Object(E.useEffect)(function(){(cn===yt&&!at||cn===Fe&&!Ve||cn===et&&!st)&&Un(dt)},[at,Ve,st]),Object(E.useEffect)(function(){return function(){clearTimeout(Qn.current),Ur.current=!0}},[]),Object(E.useEffect)(function(){hn!==void 0&&cn===dt&&(Ln==null||Ln(hn))},[hn,cn]);var Wn=Tr;return Zn[Et]&&An===Ut&&(Wn=Object(p.a)({transition:"none"},Wn)),[cn,An,Wn,hn!=null?hn:Ge]}var Kr=function(ut){Object(c.a)(Ye,ut);var Ge=Object(o.a)(Ye);function Ye(){return Object(B.a)(this,Ye),Ge.apply(this,arguments)}return Object(w.a)(Ye,[{key:"render",value:function(){return this.props.children}}]),Ye}(E.Component),Ea=Kr;function Za(ut){var Ge=ut;Object(U.a)(ut)==="object"&&(Ge=ut.transitionSupport);function Ye(Te){return!!(Te.motionName&&Ge)}var Je=E.forwardRef(function(Te,Ve){var Be=Te.visible,at=Be===void 0?!0:Be,nt=Te.removeOnLeave,st=nt===void 0?!0:nt,ot=Te.forceRender,ht=Te.children,Mt=Te.motionName,zt=Te.leavedClassName,Dt=Te.eventProps,en=Ye(Te),ln=Object(E.useRef)(),Sn=Object(E.useRef)();function Xt(){try{return Object(wt.a)(ln.current||Sn.current)}catch(Un){return null}}var $t=pa(en,at,Xt,Te),gn=Object(V.a)($t,4),On=gn[0],nn=gn[1],yn=gn[2],Ln=gn[3],Gn=E.useRef(Ln);Ln&&(Gn.current=!0);var an=Object(E.useRef)(Ve);an.current=Ve;var hn=E.useCallback(function(Un){ln.current=Un,Object(He.b)(an.current,Un)},[]),fn,Cn=Object(p.a)(Object(p.a)({},Dt),{},{visible:at});if(!ht)fn=null;else if(On===dt||!Ye(Te))Ln?fn=ht(Object(p.a)({},Cn),hn):!st&&Gn.current?fn=ht(Object(p.a)(Object(p.a)({},Cn),{},{className:zt}),hn):ot?fn=ht(Object(p.a)(Object(p.a)({},Cn),{},{style:{display:"none"}}),hn):fn=null;else{var er,cn;nn===Et?cn="prepare":Rn(nn)?cn="active":nn===Ut&&(cn="start"),fn=ht(Object(p.a)(Object(p.a)({},Cn),{},{className:b()(St(Mt,On),(er={},Object(ae.a)(er,St(Mt,"".concat(On,"-").concat(cn)),cn),Object(ae.a)(er,Mt,typeof Mt=="string"),er)),style:yn}),hn)}return E.createElement(Ea,{ref:Sn},fn)});return Je.displayName="CSSMotion",Je}var fi=Za(jt),Re="add",Qe="keep",it="remove",Tt="removed";function Vt(ut){var Ge;return ut&&Object(U.a)(ut)==="object"&&"key"in ut?Ge=ut:Ge={key:ut},Object(p.a)(Object(p.a)({},Ge),{},{key:String(Ge.key)})}function rn(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ut.map(Vt)}function ve(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ye=[],Je=0,Te=Ge.length,Ve=rn(ut),Be=rn(Ge);Ve.forEach(function(st){for(var ot=!1,ht=Je;ht<Te;ht+=1){var Mt=Be[ht];if(Mt.key===st.key){Je<ht&&(Ye=Ye.concat(Be.slice(Je,ht).map(function(zt){return Object(p.a)(Object(p.a)({},zt),{},{status:Re})})),Je=ht),Ye.push(Object(p.a)(Object(p.a)({},Mt),{},{status:Qe})),Je+=1,ot=!0;break}}ot||Ye.push(Object(p.a)(Object(p.a)({},st),{},{status:it}))}),Je<Te&&(Ye=Ye.concat(Be.slice(Je).map(function(st){return Object(p.a)(Object(p.a)({},st),{},{status:Re})})));var at={};Ye.forEach(function(st){var ot=st.key;at[ot]=(at[ot]||0)+1});var nt=Object.keys(at).filter(function(st){return at[st]>1});return nt.forEach(function(st){Ye=Ye.filter(function(ot){var ht=ot.key,Mt=ot.status;return ht!==st||Mt!==it}),Ye.forEach(function(ot){ot.key===st&&(ot.status=Qe)})}),Ye}var G=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Z(ut){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fi,Ye=function(Je){Object(c.a)(Ve,Je);var Te=Object(o.a)(Ve);function Ve(){var Be;return Object(B.a)(this,Ve),Be=Te.apply(this,arguments),Be.state={keyEntities:[]},Be.removeKey=function(at){Be.setState(function(nt){var st=nt.keyEntities;return{keyEntities:st.map(function(ot){return ot.key!==at?ot:Object(p.a)(Object(p.a)({},ot),{},{status:Tt})})}})},Be}return Object(w.a)(Ve,[{key:"render",value:function(){var at=this,nt=this.state.keyEntities,st=this.props,ot=st.component,ht=st.children,Mt=st.onVisibleChanged,zt=Object(M.a)(st,["component","children","onVisibleChanged"]),Dt=ot||E.Fragment,en={};return G.forEach(function(ln){en[ln]=zt[ln],delete zt[ln]}),delete zt.keys,E.createElement(Dt,zt,nt.map(function(ln){var Sn=ln.status,Xt=Object(M.a)(ln,["status"]),$t=Sn===Re||Sn===Qe;return E.createElement(Ge,Object(S.a)({},en,{key:Xt.key,visible:$t,eventProps:Xt,onVisibleChanged:function(On){Mt==null||Mt(On,{key:Xt.key}),On||at.removeKey(Xt.key)}}),ht)}))}}],[{key:"getDerivedStateFromProps",value:function(at,nt){var st=at.keys,ot=nt.keyEntities,ht=rn(st),Mt=ve(ot,ht);return{keyEntities:Mt.filter(function(zt){var Dt=ot.find(function(en){var ln=en.key;return zt.key===ln});return!(Dt&&Dt.status===Tt&&zt.status===it)})}}}]),Ve}(E.Component);return Ye.defaultProps={component:"div"},Ye}var ge=Z(jt),Se=fi;function Ee(ut){var Ge=ut.prefixCls,Ye=ut.motion,Je=ut.animation,Te=ut.transitionName;return Ye||(Je?{motionName:"".concat(Ge,"-").concat(Je)}:Te?{motionName:Te}:null)}function ft(ut){var Ge=ut.prefixCls,Ye=ut.visible,Je=ut.zIndex,Te=ut.mask,Ve=ut.maskMotion,Be=ut.maskAnimation,at=ut.maskTransitionName;if(!Te)return null;var nt={};return(Ve||at||Be)&&(nt=Object(p.a)({motionAppear:!0},Ee({motion:Ve,prefixCls:Ge,transitionName:at,animation:Be}))),E.createElement(Se,Object(S.a)({},nt,{visible:Ye,removeOnLeave:!0}),function(st){var ot=st.className;return E.createElement("div",{style:{zIndex:Je},className:b()("".concat(Ge,"-mask"),ot)})})}var Kt=I("9mu1"),Rt=I("o0o1"),mn=I.n(Rt),Yt=I("HaE+"),Jn=["measure","align",null,"motion"],Hn=function(ut,Ge){var Ye=Object(E.useState)(null),Je=Object(V.a)(Ye,2),Te=Je[0],Ve=Je[1],Be=Object(E.useRef)(),at=Object(E.useRef)(!1);function nt(ht){at.current||Ve(ht)}function st(){De.a.cancel(Be.current)}function ot(ht){st(),Be.current=Object(De.a)(function(){nt(function(Mt){switch(Te){case"align":return"motion";case"motion":return"stable";default:}return Mt}),ht==null||ht()})}return Object(E.useEffect)(function(){nt("measure")},[ut]),Object(E.useEffect)(function(){switch(Te){case"measure":Ge();break;default:}Te&&(Be.current=Object(De.a)(Object(Yt.a)(mn.a.mark(function ht(){var Mt,zt;return mn.a.wrap(function(en){for(;;)switch(en.prev=en.next){case 0:Mt=Jn.indexOf(Te),zt=Jn[Mt+1],zt&&Mt!==-1&&nt(zt);case 3:case"end":return en.stop()}},ht)}))))},[Te]),Object(E.useEffect)(function(){return function(){at.current=!0,st()}},[]),[Te,ot]},$n=function(ut){var Ge=E.useState({width:0,height:0}),Ye=Object(V.a)(Ge,2),Je=Ye[0],Te=Ye[1];function Ve(at){Te({width:at.offsetWidth,height:at.offsetHeight})}var Be=E.useMemo(function(){var at={};if(ut){var nt=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&&nt?at.width=nt:ut.indexOf("minWidth")!==-1&&nt&&(at.minWidth=nt)}return at},[ut,Je]);return[Be,Ve]},wr=E.forwardRef(function(ut,Ge){var Ye=ut.visible,Je=ut.prefixCls,Te=ut.className,Ve=ut.style,Be=ut.children,at=ut.zIndex,nt=ut.stretch,st=ut.destroyPopupOnHide,ot=ut.forceRender,ht=ut.align,Mt=ut.point,zt=ut.getRootDomNode,Dt=ut.getClassNameFromAlign,en=ut.onAlign,ln=ut.onMouseEnter,Sn=ut.onMouseLeave,Xt=ut.onMouseDown,$t=ut.onTouchStart,gn=Object(E.useRef)(),On=Object(E.useRef)(),nn=Object(E.useState)(),yn=Object(V.a)(nn,2),Ln=yn[0],Gn=yn[1],an=$n(nt),hn=Object(V.a)(an,2),fn=hn[0],Cn=hn[1];function er(){nt&&Cn(zt())}var cn=Hn(Ye,er),Un=Object(V.a)(cn,2),Dr=Un[0],cr=Un[1],Tr=Object(E.useRef)();function or(){return Mt||zt}function kr(){var tr;(tr=gn.current)===null||tr===void 0||tr.forceAlign()}function Qn(tr,Mr){var Fn=Dt(Mr);Ln!==Fn&&Gn(Fn),Dr==="align"&&(Ln!==Fn?Promise.resolve().then(function(){kr()}):cr(function(){var Zn;(Zn=Tr.current)===null||Zn===void 0||Zn.call(Tr)}),en==null||en(tr,Mr))}var Ur=Object(p.a)({},Ee(ut));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(tr){var Mr=Ur[tr];Ur[tr]=function(Fn,Zn){return cr(),Mr==null?void 0:Mr(Fn,Zn)}});function $r(){return new Promise(function(tr){Tr.current=tr})}E.useEffect(function(){!Ur.motionName&&Dr==="motion"&&cr()},[Ur.motionName,Dr]),E.useImperativeHandle(Ge,function(){return{forceAlign:kr,getElement:function(){return On.current}}});var Gr=Object(p.a)(Object(p.a)({},fn),{},{zIndex:at,opacity:Dr==="motion"||Dr==="stable"||!Ye?void 0:0,pointerEvents:Dr==="stable"?void 0:"none"},Ve),mr=!0;(ht==null?void 0:ht.points)&&(Dr==="align"||Dr==="stable")&&(mr=!1);var Tn=Be;return E.Children.count(Be)>1&&(Tn=E.createElement("div",{className:"".concat(Je,"-content")},Be)),E.createElement(Se,Object(S.a)({visible:Ye,ref:On,leavedClassName:"".concat(Je,"-hidden")},Ur,{onAppearPrepare:$r,onEnterPrepare:$r,removeOnLeave:st,forceRender:ot}),function(tr,Mr){var Fn=tr.className,Zn=tr.style,nr=b()(Je,Te,Ln,Fn);return E.createElement(Kt.a,{target:or(),key:"popup",ref:gn,monitorWindowResize:!0,disabled:mr,align:ht,onAlign:Qn},E.createElement("div",{ref:Mr,className:nr,onMouseEnter:ln,onMouseLeave:Sn,onMouseDownCapture:Xt,onTouchStartCapture:$t,style:Object(p.a)(Object(p.a)({},Zn),Gr)},Tn))})});wr.displayName="PopupInner";var aa=wr,Br=E.forwardRef(function(ut,Ge){var Ye=ut.prefixCls,Je=ut.visible,Te=ut.zIndex,Ve=ut.children,Be=ut.mobile;Be=Be===void 0?{}:Be;var at=Be.popupClassName,nt=Be.popupStyle,st=Be.popupMotion,ot=st===void 0?{}:st,ht=Be.popupRender,Mt=E.useRef();E.useImperativeHandle(Ge,function(){return{forceAlign:function(){},getElement:function(){return Mt.current}}});var zt=Object(p.a)({zIndex:Te},nt),Dt=Ve;return E.Children.count(Ve)>1&&(Dt=E.createElement("div",{className:"".concat(Ye,"-content")},Ve)),ht&&(Dt=ht(Dt)),E.createElement(Se,Object(S.a)({visible:Je,ref:Mt,removeOnLeave:!0},ot),function(en,ln){var Sn=en.className,Xt=en.style,$t=b()(Ye,at,Sn);return E.createElement("div",{ref:ln,className:$t,style:Object(p.a)(Object(p.a)({},Xt),zt)},Dt)})});Br.displayName="MobilePopupInner";var ta=Br,Sr=["visible","mobile"],ma=E.forwardRef(function(ut,Ge){var Ye=ut.visible,Je=ut.mobile,Te=Object(M.a)(ut,Sr),Ve=Object(E.useState)(Ye),Be=Object(V.a)(Ve,2),at=Be[0],nt=Be[1],st=Object(E.useState)(!1),ot=Object(V.a)(st,2),ht=ot[0],Mt=ot[1],zt=Object(p.a)(Object(p.a)({},Te),{},{visible:at});Object(E.useEffect)(function(){nt(Ye),Ye&&Je&&Mt(rt())},[Ye,Je]);var Dt=ht?E.createElement(ta,Object(S.a)({},zt,{mobile:Je,ref:Ge})):E.createElement(aa,Object(S.a)({},zt,{ref:Ge}));return E.createElement("div",null,E.createElement(ft,zt),Dt)});ma.displayName="Popup";var la=ma,ja=E.createContext(null),Sa=ja;function Ua(){}function ka(){return""}function Ca(ut){return ut?ut.ownerDocument:window.document}var Jr=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Wa(ut){var Ge=function(Ye){Object(c.a)(Te,Ye);var Je=Object(o.a)(Te);function Te(Ve){var Be;Object(B.a)(this,Te),Be=Je.call(this,Ve),Be.popupRef=E.createRef(),Be.triggerRef=E.createRef(),Be.attachId=void 0,Be.clickOutsideHandler=void 0,Be.touchOutsideHandler=void 0,Be.contextMenuOutsideHandler1=void 0,Be.contextMenuOutsideHandler2=void 0,Be.mouseDownTimeout=void 0,Be.focusTime=void 0,Be.preClickTime=void 0,Be.preTouchTime=void 0,Be.delayTimer=void 0,Be.hasPopupMouseDown=void 0,Be.onMouseEnter=function(nt){var st=Be.props.mouseEnterDelay;Be.fireEvents("onMouseEnter",nt),Be.delaySetPopupVisible(!0,st,st?null:nt)},Be.onMouseMove=function(nt){Be.fireEvents("onMouseMove",nt),Be.setPoint(nt)},Be.onMouseLeave=function(nt){Be.fireEvents("onMouseLeave",nt),Be.delaySetPopupVisible(!1,Be.props.mouseLeaveDelay)},Be.onPopupMouseEnter=function(){Be.clearDelayTimer()},Be.onPopupMouseLeave=function(nt){var st;if(nt.relatedTarget&&!nt.relatedTarget.setTimeout&&Object(ze.a)((st=Be.popupRef.current)===null||st===void 0?void 0:st.getElement(),nt.relatedTarget))return;Be.delaySetPopupVisible(!1,Be.props.mouseLeaveDelay)},Be.onFocus=function(nt){Be.fireEvents("onFocus",nt),Be.clearDelayTimer(),Be.isFocusToShow()&&(Be.focusTime=Date.now(),Be.delaySetPopupVisible(!0,Be.props.focusDelay))},Be.onMouseDown=function(nt){Be.fireEvents("onMouseDown",nt),Be.preClickTime=Date.now()},Be.onTouchStart=function(nt){Be.fireEvents("onTouchStart",nt),Be.preTouchTime=Date.now()},Be.onBlur=function(nt){Be.fireEvents("onBlur",nt),Be.clearDelayTimer(),Be.isBlurToHide()&&Be.delaySetPopupVisible(!1,Be.props.blurDelay)},Be.onContextMenu=function(nt){nt.preventDefault(),Be.fireEvents("onContextMenu",nt),Be.setPopupVisible(!0,nt)},Be.onContextMenuClose=function(){Be.isContextMenuToShow()&&Be.close()},Be.onClick=function(nt){if(Be.fireEvents("onClick",nt),Be.focusTime){var st;if(Be.preClickTime&&Be.preTouchTime?st=Math.min(Be.preClickTime,Be.preTouchTime):Be.preClickTime?st=Be.preClickTime:Be.preTouchTime&&(st=Be.preTouchTime),Math.abs(st-Be.focusTime)<20)return;Be.focusTime=0}Be.preClickTime=0,Be.preTouchTime=0,Be.isClickToShow()&&(Be.isClickToHide()||Be.isBlurToHide())&&nt&&nt.preventDefault&&nt.preventDefault();var ot=!Be.state.popupVisible;(Be.isClickToHide()&&!ot||ot&&Be.isClickToShow())&&Be.setPopupVisible(!Be.state.popupVisible,nt)},Be.onPopupMouseDown=function(){if(Be.hasPopupMouseDown=!0,clearTimeout(Be.mouseDownTimeout),Be.mouseDownTimeout=window.setTimeout(function(){Be.hasPopupMouseDown=!1},0),Be.context){var nt;(nt=Be.context).onPopupMouseDown.apply(nt,arguments)}},Be.onDocumentClick=function(nt){if(Be.props.mask&&!Be.props.maskClosable)return;var st=nt.target,ot=Be.getRootDomNode(),ht=Be.getPopupDomNode();(!Object(ze.a)(ot,st)||Be.isContextMenuOnly())&&!Object(ze.a)(ht,st)&&!Be.hasPopupMouseDown&&Be.close()},Be.getRootDomNode=function(){var nt=Be.props.getTriggerDOMNode;if(nt)return nt(Be.triggerRef.current);try{var st=Object(wt.a)(Be.triggerRef.current);if(st)return st}catch(ot){}return ue.a.findDOMNode(Object(m.a)(Be))},Be.getPopupClassNameFromAlign=function(nt){var st=[],ot=Be.props,ht=ot.popupPlacement,Mt=ot.builtinPlacements,zt=ot.prefixCls,Dt=ot.alignPoint,en=ot.getPopupClassNameFromAlign;return ht&&Mt&&st.push(lt(Mt,zt,nt,Dt)),en&&st.push(en(nt)),st.join(" ")},Be.getComponent=function(){var nt=Be.props,st=nt.prefixCls,ot=nt.destroyPopupOnHide,ht=nt.popupClassName,Mt=nt.onPopupAlign,zt=nt.popupMotion,Dt=nt.popupAnimation,en=nt.popupTransitionName,ln=nt.popupStyle,Sn=nt.mask,Xt=nt.maskAnimation,$t=nt.maskTransitionName,gn=nt.maskMotion,On=nt.zIndex,nn=nt.popup,yn=nt.stretch,Ln=nt.alignPoint,Gn=nt.mobile,an=nt.forceRender,hn=Be.state,fn=hn.popupVisible,Cn=hn.point,er=Be.getPopupAlign(),cn={};return Be.isMouseEnterToShow()&&(cn.onMouseEnter=Be.onPopupMouseEnter),Be.isMouseLeaveToHide()&&(cn.onMouseLeave=Be.onPopupMouseLeave),cn.onMouseDown=Be.onPopupMouseDown,cn.onTouchStart=Be.onPopupMouseDown,E.createElement(la,Object(S.a)({prefixCls:st,destroyPopupOnHide:ot,visible:fn,point:Ln&&Cn,className:ht,align:er,onAlign:Mt,animation:Dt,getClassNameFromAlign:Be.getPopupClassNameFromAlign},cn,{stretch:yn,getRootDomNode:Be.getRootDomNode,style:ln,mask:Sn,zIndex:On,transitionName:en,maskAnimation:Xt,maskTransitionName:$t,maskMotion:gn,ref:Be.popupRef,motion:zt,mobile:Gn,forceRender:an}),typeof nn=="function"?nn():nn)},Be.attachParent=function(nt){De.a.cancel(Be.attachId);var st=Be.props,ot=st.getPopupContainer,ht=st.getDocument,Mt=Be.getRootDomNode(),zt;ot?(Mt||ot.length===0)&&(zt=ot(Mt)):zt=ht(Be.getRootDomNode()).body,zt?zt.appendChild(nt):Be.attachId=Object(De.a)(function(){Be.attachParent(nt)})},Be.getContainer=function(){var nt=Be.props.getDocument,st=nt(Be.getRootDomNode()).createElement("div");return st.style.position="absolute",st.style.top="0",st.style.left="0",st.style.width="100%",Be.attachParent(st),st},Be.setPoint=function(nt){var st=Be.props.alignPoint;if(!st||!nt)return;Be.setState({point:{pageX:nt.pageX,pageY:nt.pageY}})},Be.handlePortalUpdate=function(){Be.state.prevPopupVisible!==Be.state.popupVisible&&Be.props.afterPopupVisibleChange(Be.state.popupVisible)},Be.triggerContextValue={onPopupMouseDown:Be.onPopupMouseDown};var at;return"popupVisible"in Ve?at=!!Ve.popupVisible:at=!!Ve.defaultPopupVisible,Be.state={prevPopupVisible:at,popupVisible:at},Jr.forEach(function(nt){Be["fire".concat(nt)]=function(st){Be.fireEvents(nt,st)}}),Be}return Object(w.a)(Te,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Be=this.props,at=this.state;if(at.popupVisible){var nt;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(nt=Be.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Xe.a)(nt,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(nt=nt||Be.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Xe.a)(nt,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(nt=nt||Be.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Xe.a)(nt,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Xe.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),De.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var Be;return((Be=this.popupRef.current)===null||Be===void 0?void 0:Be.getElement())||null}},{key:"getPopupAlign",value:function(){var Be=this.props,at=Be.popupPlacement,nt=Be.popupAlign,st=Be.builtinPlacements;return at&&st?ct(st,at,nt):nt}},{key:"setPopupVisible",value:function(Be,at){var nt=this.props.alignPoint,st=this.state.popupVisible;this.clearDelayTimer(),st!==Be&&("popupVisible"in this.props||this.setState({popupVisible:Be,prevPopupVisible:st}),this.props.onPopupVisibleChange(Be)),nt&&at&&Be&&this.setPoint(at)}},{key:"delaySetPopupVisible",value:function(Be,at,nt){var st=this,ot=at*1e3;if(this.clearDelayTimer(),ot){var ht=nt?{pageX:nt.pageX,pageY:nt.pageY}:null;this.delayTimer=window.setTimeout(function(){st.setPopupVisible(Be,ht),st.clearDelayTimer()},ot)}else this.setPopupVisible(Be,nt)}},{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(Be){var at=this.props.children.props,nt=this.props;return at[Be]&&nt[Be]?this["fire".concat(Be)]:at[Be]||nt[Be]}},{key:"isClickToShow",value:function(){var Be=this.props,at=Be.action,nt=Be.showAction;return at.indexOf("click")!==-1||nt.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var Be=this.props.action;return Be==="contextMenu"||Be.length===1&&Be[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var Be=this.props,at=Be.action,nt=Be.showAction;return at.indexOf("contextMenu")!==-1||nt.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Be=this.props,at=Be.action,nt=Be.hideAction;return at.indexOf("click")!==-1||nt.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Be=this.props,at=Be.action,nt=Be.showAction;return at.indexOf("hover")!==-1||nt.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Be=this.props,at=Be.action,nt=Be.hideAction;return at.indexOf("hover")!==-1||nt.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Be=this.props,at=Be.action,nt=Be.showAction;return at.indexOf("focus")!==-1||nt.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Be=this.props,at=Be.action,nt=Be.hideAction;return at.indexOf("focus")!==-1||nt.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var Be;(Be=this.popupRef.current)===null||Be===void 0||Be.forceAlign()}}},{key:"fireEvents",value:function(Be,at){var nt=this.props.children.props[Be];nt&&nt(at);var st=this.props[Be];st&&st(at)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Be=this.state.popupVisible,at=this.props,nt=at.children,st=at.forceRender,ot=at.alignPoint,ht=at.className,Mt=at.autoDestroy,zt=E.Children.only(nt),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 en=b()(zt&&zt.props&&zt.props.className,ht);en&&(Dt.className=en);var ln=Object(p.a)({},Dt);Object(He.c)(zt)&&(ln.ref=Object(He.a)(this.triggerRef,zt.ref));var Sn=E.cloneElement(zt,ln),Xt;return(Be||this.popupRef.current||st)&&(Xt=E.createElement(ut,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Be&&Mt&&(Xt=null),E.createElement(Sa.Provider,{value:this.triggerContextValue},Sn,Xt)}}],[{key:"getDerivedStateFromProps",value:function(Be,at){var nt=Be.popupVisible,st={};return nt!==void 0&&at.popupVisible!==nt&&(st.popupVisible=nt,st.prevPopupVisible=at.popupVisible),st}}]),Te}(E.Component);return Ge.contextType=Sa,Ge.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:ka,getDocument:Ca,onPopupVisibleChange:Ua,afterPopupVisibleChange:Ua,onPopupAlign:Ua,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Ge}var Ma=Wa(gt.a),Ta={adjustX:1,adjustY:1},ui={topLeft:{points:["bl","tl"],overflow:Ta,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ta,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Ta,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Ta,offset:[4,0]}},Ai={topLeft:{points:["bl","tl"],overflow:Ta,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ta,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Ta,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Ta,offset:[4,0]}},Ba=ui,Xr=0,hr={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Yr=function(Ge,Ye,Je){var Te=de(Ye),Ve=Ge.getState();Ge.setState({defaultActiveFirst:Object(p.a)(Object(p.a)({},Ve.defaultActiveFirst),{},Object(ae.a)({},Te,Je))})},na=function(ut){Object(c.a)(Ye,ut);var Ge=Object(o.a)(Ye);function Ye(Je){var Te;Object(B.a)(this,Ye),Te=Ge.call(this,Je),Te.onDestroy=function(ot){Te.props.onDestroy(ot)},Te.onKeyDown=function(ot){var ht=ot.keyCode,Mt=Te.menuInstance,zt=Te.props.store,Dt=Te.getVisible();if(ht===A.a.ENTER)return Te.onTitleClick(ot),Yr(zt,Te.props.eventKey,!0),!0;if(ht===A.a.RIGHT)return Dt?Mt.onKeyDown(ot):(Te.triggerOpenChange(!0),Yr(zt,Te.props.eventKey,!0)),!0;if(ht===A.a.LEFT){var en;if(Dt)en=Mt.onKeyDown(ot);else return;return en||(Te.triggerOpenChange(!1),en=!0),en}return Dt&&(ht===A.a.UP||ht===A.a.DOWN)?Mt.onKeyDown(ot):void 0},Te.onOpenChange=function(ot){Te.props.onOpenChange(ot)},Te.onPopupVisibleChange=function(ot){Te.triggerOpenChange(ot,ot?"mouseenter":"mouseleave")},Te.onMouseEnter=function(ot){var ht=Te.props,Mt=ht.eventKey,zt=ht.onMouseEnter,Dt=ht.store;Yr(Dt,Te.props.eventKey,!1),zt({key:Mt,domEvent:ot})},Te.onMouseLeave=function(ot){var ht=Te.props,Mt=ht.parentMenu,zt=ht.eventKey,Dt=ht.onMouseLeave;Mt.subMenuInstance=Object(m.a)(Te),Dt({key:zt,domEvent:ot})},Te.onTitleMouseEnter=function(ot){var ht=Te.props,Mt=ht.eventKey,zt=ht.onItemHover,Dt=ht.onTitleMouseEnter;zt({key:Mt,hover:!0}),Dt({key:Mt,domEvent:ot})},Te.onTitleMouseLeave=function(ot){var ht=Te.props,Mt=ht.parentMenu,zt=ht.eventKey,Dt=ht.onItemHover,en=ht.onTitleMouseLeave;Mt.subMenuInstance=Object(m.a)(Te),Dt({key:zt,hover:!1}),en({key:zt,domEvent:ot})},Te.onTitleClick=function(ot){var ht=Object(m.a)(Te),Mt=ht.props;if(Mt.onTitleClick({key:Mt.eventKey,domEvent:ot}),Mt.triggerSubMenuAction==="hover")return;Te.triggerOpenChange(!Te.getVisible(),"click"),Yr(Mt.store,Te.props.eventKey,!1)},Te.onSubMenuClick=function(ot){typeof Te.props.onClick=="function"&&Te.props.onClick(Te.addKeyPath(ot))},Te.onSelect=function(ot){Te.props.onSelect(ot)},Te.onDeselect=function(ot){Te.props.onDeselect(ot)},Te.getPrefixCls=function(){return"".concat(Te.props.rootPrefixCls,"-submenu")},Te.getActiveClassName=function(){return"".concat(Te.getPrefixCls(),"-active")},Te.getDisabledClassName=function(){return"".concat(Te.getPrefixCls(),"-disabled")},Te.getSelectedClassName=function(){return"".concat(Te.getPrefixCls(),"-selected")},Te.getOpenClassName=function(){return"".concat(Te.props.rootPrefixCls,"-submenu-open")},Te.getVisible=function(){return Te.state.isOpen},Te.getMode=function(){return Te.state.mode},Te.saveMenuInstance=function(ot){Te.menuInstance=ot},Te.addKeyPath=function(ot){return Object(p.a)(Object(p.a)({},ot),{},{keyPath:(ot.keyPath||[]).concat(Te.props.eventKey)})},Te.triggerOpenChange=function(ot,ht){var Mt=Te.props.eventKey,zt=function(){Te.onOpenChange({key:Mt,item:Object(m.a)(Te),trigger:ht,open:ot})};ht==="mouseenter"?Te.mouseenterTimeout=setTimeout(function(){zt()},0):zt()},Te.isChildrenSelected=function(){var ot={find:!1};return ke(Te.props.children,Te.props.selectedKeys,ot),ot.find},Te.isInlineMode=function(){return Te.getMode()==="inline"},Te.adjustWidth=function(){if(!Te.subMenuTitle||!Te.menuInstance)return;var ot=ne.findDOMNode(Te.menuInstance);if(ot.offsetWidth>=Te.subMenuTitle.offsetWidth)return;ot.style.minWidth="".concat(Te.subMenuTitle.offsetWidth,"px")},Te.saveSubMenuTitle=function(ot){Te.subMenuTitle=ot},Te.getBaseProps=function(){var ot=Object(m.a)(Te),ht=ot.props,Mt=Te.getMode();return{mode:Mt==="horizontal"?"vertical":Mt,visible:Te.getVisible(),level:ht.level+1,inlineIndent:ht.inlineIndent,focusable:!1,onClick:Te.onSubMenuClick,onSelect:Te.onSelect,onDeselect:Te.onDeselect,onDestroy:Te.onDestroy,selectedKeys:ht.selectedKeys,eventKey:"".concat(ht.eventKey,"-menu-"),openKeys:ht.openKeys,motion:ht.motion,onOpenChange:Te.onOpenChange,subMenuOpenDelay:ht.subMenuOpenDelay,parentMenu:Object(m.a)(Te),subMenuCloseDelay:ht.subMenuCloseDelay,forceSubMenuRender:ht.forceSubMenuRender,triggerSubMenuAction:ht.triggerSubMenuAction,builtinPlacements:ht.builtinPlacements,defaultActiveFirst:ht.store.getState().defaultActiveFirst[de(ht.eventKey)],multiple:ht.multiple,prefixCls:ht.rootPrefixCls,id:Te.internalMenuId,manualRef:Te.saveMenuInstance,itemIcon:ht.itemIcon,expandIcon:ht.expandIcon,direction:ht.direction}},Te.getMotion=function(ot,ht){var Mt=Object(m.a)(Te),zt=Mt.haveRendered,Dt=Te.props,en=Dt.motion,ln=Dt.rootPrefixCls,Sn=Object(p.a)(Object(p.a)({},en),{},{leavedClassName:"".concat(ln,"-hidden"),removeOnLeave:!1,motionAppear:zt||!ht||ot!=="inline"});return Sn};var Ve=Je.store,Be=Je.eventKey,at=Ve.getState(),nt=at.defaultActiveFirst;Te.isRootMenu=!1;var st=!1;return nt&&(st=nt[Be]),Yr(Ve,Be,st),Te.state={mode:Je.mode,isOpen:Je.isOpen},Te}return Object(w.a)(Ye,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Te=this,Ve=this.props,Be=Ve.mode,at=Ve.parentMenu,nt=Ve.manualRef,st=Ve.isOpen,ot=function(){Te.setState({mode:Be,isOpen:st})},ht=st!==this.state.isOpen,Mt=Be!==this.state.mode;if((Mt||ht)&&(De.a.cancel(this.updateStateRaf),Mt?this.updateStateRaf=Object(De.a)(ot):ot()),nt&&nt(this),Be!=="horizontal"||!(at==null?void 0:at.isRootMenu)||!st)return;this.minWidthTimeout=setTimeout(function(){return Te.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Te=this.props,Ve=Te.onDestroy,Be=Te.eventKey;Ve&&Ve(Be),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),De.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Te,Ve){var Be=this.getBaseProps();return E.createElement(uo,Object(S.a)({},Be,{id:this.internalMenuId,className:Te,style:Ve}),this.props.children)}},{key:"renderChildren",value:function(){var Te=this,Ve=this.getBaseProps(),Be=Ve.mode,at=Ve.visible,nt=Ve.forceSubMenuRender,st=Ve.direction,ot=this.getMotion(Be,at);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||at||nt,!this.haveOpened)return E.createElement("div",null);var ht=b()("".concat(Ve.prefixCls,"-sub"),Object(ae.a)({},"".concat(Ve.prefixCls,"-rtl"),st==="rtl"));return this.isInlineMode()?E.createElement(Se,Object(S.a)({visible:Ve.visible,forceRender:nt},ot),function(Mt){var zt=Mt.className,Dt=Mt.style,en=b()(ht,zt);return Te.renderPopupMenu(en,Dt)}):this.renderPopupMenu(ht)}},{key:"render",value:function(){var Te,Ve,Be,at=Object(p.a)({},this.props),nt=this.getVisible(),st=this.getPrefixCls(),ot=this.isInlineMode(),ht=this.getMode(),Mt=b()(st,"".concat(st,"-").concat(ht),(Te={},Object(ae.a)(Te,at.className,!!at.className),Object(ae.a)(Te,this.getOpenClassName(),nt),Object(ae.a)(Te,this.getActiveClassName(),at.active||nt&&!ot),Object(ae.a)(Te,this.getDisabledClassName(),at.disabled),Object(ae.a)(Te,this.getSelectedClassName(),this.isChildrenSelected()),Te));this.internalMenuId||(at.eventKey?this.internalMenuId="".concat(at.eventKey,"$Menu"):(Xr+=1,this.internalMenuId="$__$".concat(Xr,"$Menu")));var zt={},Dt={},en={};at.disabled||(zt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Dt={onClick:this.onTitleClick},en={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var ln={},Sn=at.direction,Xt=Sn==="rtl";ot&&(Xt?ln.paddingRight=at.inlineIndent*at.level:ln.paddingLeft=at.inlineIndent*at.level);var $t={};this.getVisible()&&($t={"aria-owns":this.internalMenuId});var gn=null;ht!=="horizontal"&&(gn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(gn=E.createElement(this.props.expandIcon,Object(p.a)({},this.props))));var On=E.createElement("div",Object(S.a)({ref:this.saveSubMenuTitle,style:ln,className:"".concat(st,"-title"),role:"button"},en,Dt,{"aria-expanded":nt},$t,{"aria-haspopup":"true",title:typeof at.title=="string"?at.title:void 0}),at.title,gn||E.createElement("i",{className:"".concat(st,"-arrow")})),nn=this.renderChildren(),yn=((Ve=at.parentMenu)===null||Ve===void 0?void 0:Ve.isRootMenu)?at.parentMenu.props.getPopupContainer:function(or){return or.parentNode},Ln=hr[ht],Gn=at.popupOffset?{offset:at.popupOffset}:{},an=b()((Be={},Object(ae.a)(Be,at.popupClassName,at.popupClassName&&!ot),Object(ae.a)(Be,"".concat(st,"-rtl"),Xt),Be)),hn=at.disabled,fn=at.triggerSubMenuAction,Cn=at.subMenuOpenDelay,er=at.forceSubMenuRender,cn=at.subMenuCloseDelay,Un=at.builtinPlacements;Ue.forEach(function(or){return delete at[or]}),delete at.onClick;var Dr=Xt?Object(p.a)(Object(p.a)({},Ai),Un):Object(p.a)(Object(p.a)({},ui),Un);delete at.direction;var cr=this.getBaseProps(),Tr=ot?null:this.getMotion(cr.mode,cr.visible);return E.createElement("li",Object(S.a)({},at,zt,{className:Mt,role:"menuitem"}),E.createElement(Ma,{prefixCls:st,popupClassName:b()("".concat(st,"-popup"),an),getPopupContainer:yn,builtinPlacements:Dr,popupPlacement:Ln,popupVisible:ot?!1:nt,popupAlign:Gn,popup:ot?null:nn,action:hn||ot?[]:[fn],mouseEnterDelay:Cn,mouseLeaveDelay:cn,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:er,popupMotion:Tr},On),ot?nn:null)}}]),Ye}(E.Component);na.defaultProps={onMouseEnter:pe,onMouseLeave:pe,onTitleMouseEnter:pe,onTitleMouseLeave:pe,onTitleClick:pe,manualRef:pe,mode:"vertical",title:""};var La=Object(_.b)(function(ut,Ge){var Ye=ut.openKeys,Je=ut.activeKey,Te=ut.selectedKeys,Ve=Ge.eventKey,Be=Ge.subMenuKey;return{isOpen:Ye.indexOf(Ve)>-1,active:Je[Be]===Ve,selectedKeys:Te}})(na);La.isSubMenu=!0;var ia=La,eo="menuitem-overflowed",za=.5,Ga=function(ut){Object(c.a)(Ye,ut);var Ge=Object(o.a)(Ye);function Ye(){var Je;return Object(B.a)(this,Ye),Je=Ge.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=E.createRef(),Je.getMenuItemNodes=function(){var Te=Je.props.prefixCls,Ve=Je.childRef.current;return Ve?[].slice.call(Ve.children).filter(function(Be){return Be.className.split(" ").indexOf("".concat(Te,"-overflowed-submenu"))<0}):[]},Je.getOverflowedSubMenuItem=function(Te,Ve,Be){var at=Je.props,nt=at.overflowedIndicator,st=at.level,ot=at.mode,ht=at.prefixCls,Mt=at.theme;if(st!==1||ot!=="horizontal")return null;var zt=Je.props.children[0],Dt=zt.props,en=Dt.children,ln=Dt.title,Sn=Dt.style,Xt=Object(M.a)(Dt,["children","title","style"]),$t=Object(p.a)({},Sn),gn="".concat(Te,"-overflowed-indicator"),On="".concat(Te,"-overflowed-indicator");Ve.length===0&&Be!==!0?$t=Object(p.a)(Object(p.a)({},$t),{},{display:"none"}):Be&&($t=Object(p.a)(Object(p.a)({},$t),{},{visibility:"hidden",position:"absolute"}),gn="".concat(gn,"-placeholder"),On="".concat(On,"-placeholder"));var nn=Mt?"".concat(ht,"-").concat(Mt):"",yn={};return Ue.forEach(function(Ln){Xt[Ln]!==void 0&&(yn[Ln]=Xt[Ln])}),E.createElement(ia,Object(S.a)({title:nt,className:"".concat(ht,"-overflowed-submenu"),popupClassName:nn},yn,{key:gn,eventKey:On,disabled:!1,style:$t}),Ve)},Je.setChildrenWidthAndResize=function(){if(Je.props.mode!=="horizontal")return;var Te=Je.childRef.current;if(!Te)return;var Ve=Te.children;if(!Ve||Ve.length===0)return;var Be=Te.children[Ve.length-1];N(Be,"display","inline-block");var at=Je.getMenuItemNodes(),nt=at.filter(function(st){return st.className.split(" ").indexOf(eo)>=0});nt.forEach(function(st){N(st,"display","inline-block")}),Je.menuItemSizes=at.map(function(st){return re(st,!0)}),nt.forEach(function(st){N(st,"display","none")}),Je.overflowedIndicatorWidth=re(Te.children[Te.children.length-1],!0),Je.originalTotalWidth=Je.menuItemSizes.reduce(function(st,ot){return st+ot},0),Je.handleResize(),N(Be,"display","none")},Je.handleResize=function(){if(Je.props.mode!=="horizontal")return;var Te=Je.childRef.current;if(!Te)return;var Ve=re(Te);Je.overflowedItems=[];var Be=0,at;Je.originalTotalWidth>Ve+za&&(at=-1,Je.menuItemSizes.forEach(function(nt){Be+=nt,Be+Je.overflowedIndicatorWidth<=Ve&&(at+=1)})),Je.setState({lastVisibleIndex:at})},Je}return Object(w.a)(Ye,[{key:"componentDidMount",value:function(){var Te=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Ve=this.childRef.current;if(!Ve)return;this.resizeObserver=new ce.default(function(Be){Be.forEach(function(){var at=Te.cancelFrameId;cancelAnimationFrame(at),Te.cancelFrameId=requestAnimationFrame(Te.setChildrenWidthAndResize)})}),[].slice.call(Ve.children).concat(Ve).forEach(function(Be){Te.resizeObserver.observe(Be)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Te.resizeObserver.disconnect(),[].slice.call(Ve.children).concat(Ve).forEach(function(Be){Te.resizeObserver.observe(Be)}),Te.setChildrenWidthAndResize()}),this.mutationObserver.observe(Ve,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Te){var Ve=this,Be=this.state.lastVisibleIndex;return(Te||[]).reduce(function(at,nt,st){var ot=nt;if(Ve.props.mode==="horizontal"){var ht=Ve.getOverflowedSubMenuItem(nt.props.eventKey,[]);Be!==void 0&&Ve.props.className.indexOf("".concat(Ve.props.prefixCls,"-root"))!==-1&&(st>Be&&(ot=E.cloneElement(nt,{style:{display:"none"},eventKey:"".concat(nt.props.eventKey,"-hidden"),className:"".concat(eo)})),st===Be+1&&(Ve.overflowedItems=Te.slice(Be+1).map(function(zt){return E.cloneElement(zt,{key:zt.props.eventKey,mode:"vertical-left"})}),ht=Ve.getOverflowedSubMenuItem(nt.props.eventKey,Ve.overflowedItems)));var Mt=[].concat(Object(r.a)(at),[ht,ot]);return st===Te.length-1&&Mt.push(Ve.getOverflowedSubMenuItem(nt.props.eventKey,[],!0)),Mt}return[].concat(Object(r.a)(at),[ot])},[])}},{key:"render",value:function(){var Te=this.props,Ve=Te.visible,Be=Te.prefixCls,at=Te.overflowedIndicator,nt=Te.mode,st=Te.level,ot=Te.tag,ht=Te.children,Mt=Te.theme,zt=Object(M.a)(Te,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Dt=ot;return E.createElement(Dt,Object(S.a)({ref:this.childRef},zt),this.renderChildren(ht))}}]),Ye}(E.Component);Ga.defaultProps={tag:"div",className:""};var Qi=Ga;function wo(ut){return ut.length?ut.every(function(Ge){return!!Ge.props.disabled}):!0}function wa(ut,Ge,Ye){var Je=ut.getState();ut.setState({activeKey:Object(p.a)(Object(p.a)({},Je.activeKey),{},Object(ae.a)({},Ge,Ye))})}function Ro(ut){return ut.eventKey||"0-menu-"}function Di(ut,Ge){var Ye=Ge,Je=ut.children,Te=ut.eventKey;if(Ye){var Ve;if(Me(Je,function(Be,at){Be&&Be.props&&!Be.props.disabled&&Ye===ye(Be,Te,at)&&(Ve=!0)}),Ve)return Ye}return Ye=null,ut.defaultActiveFirst&&Me(Je,function(Be,at){!Ye&&Be&&!Be.props.disabled&&(Ye=ye(Be,Te,at))}),Ye}function $o(ut){if(!ut)return;var Ge=this.instanceArray.indexOf(ut);Ge!==-1?this.instanceArray[Ge]=ut:this.instanceArray.push(ut)}var Fi=function(ut){Object(c.a)(Ye,ut);var Ge=Object(o.a)(Ye);function Ye(Je){var Te;return Object(B.a)(this,Ye),Te=Ge.call(this,Je),Te.onKeyDown=function(Ve,Be){var at=Ve.keyCode,nt;if(Te.getFlatInstanceArray().forEach(function(ot){ot&&ot.props.active&&ot.onKeyDown&&(nt=ot.onKeyDown(Ve))}),nt)return 1;var st=null;return(at===A.a.UP||at===A.a.DOWN)&&(st=Te.step(at===A.a.UP?-1:1)),st?(Ve.preventDefault(),wa(Te.props.store,Ro(Te.props),st.props.eventKey),typeof Be=="function"&&Be(st),1):void 0},Te.onItemHover=function(Ve){var Be=Ve.key,at=Ve.hover;wa(Te.props.store,Ro(Te.props),at?Be:null)},Te.onDeselect=function(Ve){Te.props.onDeselect(Ve)},Te.onSelect=function(Ve){Te.props.onSelect(Ve)},Te.onClick=function(Ve){Te.props.onClick(Ve)},Te.onOpenChange=function(Ve){Te.props.onOpenChange(Ve)},Te.onDestroy=function(Ve){Te.props.onDestroy(Ve)},Te.getFlatInstanceArray=function(){return Te.instanceArray},Te.step=function(Ve){var Be=Te.getFlatInstanceArray(),at=Te.props.store.getState().activeKey[Ro(Te.props)],nt=Be.length;if(!nt)return null;Ve<0&&(Be=Be.concat().reverse());var st=-1;if(Be.every(function(zt,Dt){return zt&&zt.props.eventKey===at?(st=Dt,!1):!0}),!Te.props.defaultActiveFirst&&st!==-1&&wo(Be.slice(st,nt-1)))return;var ot=(st+1)%nt,ht=ot;do{var Mt=Be[ht];if(!Mt||Mt.props.disabled)ht=(ht+1)%nt;else return Mt}while(ht!==ot);return null},Te.renderCommonMenuItem=function(Ve,Be,at){var nt=Te.props.store.getState(),st=Object(m.a)(Te),ot=st.props,ht=ye(Ve,ot.eventKey,Be),Mt=Ve.props;if(!Mt||typeof Ve.type=="string")return Ve;var zt=ht===nt.activeKey,Dt=Object(p.a)(Object(p.a)({mode:Mt.mode||ot.mode,level:ot.level,inlineIndent:ot.inlineIndent,renderMenuItem:Te.renderMenuItem,rootPrefixCls:ot.prefixCls,index:Be,parentMenu:ot.parentMenu,manualRef:Mt.disabled?void 0:Object(T.a)(Ve.ref,$o.bind(Object(m.a)(Te))),eventKey:ht,active:!Mt.disabled&&zt,multiple:ot.multiple,onClick:function(ln){(Mt.onClick||pe)(ln),Te.onClick(ln)},onItemHover:Te.onItemHover,motion:ot.motion,subMenuOpenDelay:ot.subMenuOpenDelay,subMenuCloseDelay:ot.subMenuCloseDelay,forceSubMenuRender:ot.forceSubMenuRender,onOpenChange:Te.onOpenChange,onDeselect:Te.onDeselect,onSelect:Te.onSelect,builtinPlacements:ot.builtinPlacements,itemIcon:Mt.itemIcon||Te.props.itemIcon,expandIcon:Mt.expandIcon||Te.props.expandIcon},at),{},{direction:ot.direction});return(ot.mode==="inline"||W())&&(Dt.triggerSubMenuAction="click"),E.cloneElement(Ve,Object(p.a)(Object(p.a)({},Dt),{},{key:ht||Be}))},Te.renderMenuItem=function(Ve,Be,at){if(!Ve)return null;var nt=Te.props.store.getState(),st={openKeys:nt.openKeys,selectedKeys:nt.selectedKeys,triggerSubMenuAction:Te.props.triggerSubMenuAction,subMenuKey:at};return Te.renderCommonMenuItem(Ve,Be,st)},Je.store.setState({activeKey:Object(p.a)(Object(p.a)({},Je.store.getState().activeKey),{},Object(ae.a)({},Je.eventKey,Di(Je,Je.activeKey)))}),Te.instanceArray=[],Te}return Object(w.a)(Ye,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Te){return this.props.visible||Te.visible||this.props.className!==Te.className||!R()(this.props.style,Te.style)}},{key:"componentDidUpdate",value:function(Te){var Ve=this.props,Be="activeKey"in Ve?Ve.activeKey:Ve.store.getState().activeKey[Ro(Ve)],at=Di(Ve,Be);if(at!==Be)wa(Ve.store,Ro(Ve),at);else if("activeKey"in Te){var nt=Di(Te,Te.activeKey);at!==nt&&wa(Ve.store,Ro(Ve),at)}}},{key:"render",value:function(){var Te=this,Ve=Object(S.a)({},this.props);this.instanceArray=[];var Be=b()(Ve.prefixCls,Ve.className,"".concat(Ve.prefixCls,"-").concat(Ve.mode)),at={className:Be,role:Ve.role||"menu"};Ve.id&&(at.id=Ve.id),Ve.focusable&&(at.tabIndex=0,at.onKeyDown=this.onKeyDown);var nt=Ve.prefixCls,st=Ve.eventKey,ot=Ve.visible,ht=Ve.level,Mt=Ve.mode,zt=Ve.overflowedIndicator,Dt=Ve.theme;return Ue.forEach(function(en){return delete Ve[en]}),delete Ve.onClick,E.createElement(Qi,Object(S.a)({},Ve,{prefixCls:nt,mode:Mt,tag:"ul",level:ht,theme:Dt,visible:ot,overflowedIndicator:zt},at),Object(f.a)(Ve.children).map(function(en,ln){return Te.renderMenuItem(en,ln,st||"0-menu-")}))}}]),Ye}(E.Component);Fi.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:pe};var ls=Object(_.b)()(Fi),uo=ls,Mi=I("Kwbf");function Go(ut,Ge,Ye){var Je=ut.prefixCls,Te=ut.motion,Ve=ut.defaultMotions,Be=Ve===void 0?{}:Ve,at=ut.openAnimation,nt=ut.openTransitionName,st=Ge.switchingModeFromInline;if(Te)return Te;if(Object(U.a)(at)==="object"&&at)Object(Mi.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(nt)return{motionName:nt};var ot=Be[Ye];return ot||(st?null:Be.other)}var ps=function(ut){Object(c.a)(Ye,ut);var Ge=Object(o.a)(Ye);function Ye(Je){var Te;Object(B.a)(this,Ye),Te=Ge.call(this,Je),Te.onSelect=function(at){var nt=Object(m.a)(Te),st=nt.props;if(st.selectable){var ot=Te.store.getState(),ht=ot.selectedKeys,Mt=at.key;st.multiple?ht=ht.concat([Mt]):ht=[Mt],"selectedKeys"in st||Te.store.setState({selectedKeys:ht}),st.onSelect(Object(p.a)(Object(p.a)({},at),{},{selectedKeys:ht}))}},Te.onClick=function(at){var nt=Te.getRealMenuMode(),st=Object(m.a)(Te),ot=st.store,ht=st.props.onOpenChange;nt!=="inline"&&!("openKeys"in Te.props)&&(ot.setState({openKeys:[]}),ht([])),Te.props.onClick(at)},Te.onKeyDown=function(at,nt){Te.innerMenu.getWrappedInstance().onKeyDown(at,nt)},Te.onOpenChange=function(at){var nt=Object(m.a)(Te),st=nt.props,ot=Te.store.getState().openKeys.concat(),ht=!1,Mt=function(Dt){var en=!1;if(Dt.open)en=ot.indexOf(Dt.key)===-1,en&&ot.push(Dt.key);else{var ln=ot.indexOf(Dt.key);en=ln!==-1,en&&ot.splice(ln,1)}ht=ht||en};Array.isArray(at)?at.forEach(Mt):Mt(at),ht&&("openKeys"in Te.props||Te.store.setState({openKeys:ot}),st.onOpenChange(ot))},Te.onDeselect=function(at){var nt=Object(m.a)(Te),st=nt.props;if(st.selectable){var ot=Te.store.getState().selectedKeys.concat(),ht=at.key,Mt=ot.indexOf(ht);Mt!==-1&&ot.splice(Mt,1),"selectedKeys"in st||Te.store.setState({selectedKeys:ot}),st.onDeselect(Object(p.a)(Object(p.a)({},at),{},{selectedKeys:ot}))}},Te.onMouseEnter=function(at){Te.restoreModeVerticalFromInline();var nt=Te.props.onMouseEnter;nt&&nt(at)},Te.onTransitionEnd=function(at){var nt=at.propertyName==="width"&&at.target===at.currentTarget,st=at.target.className,ot=Object.prototype.toString.call(st)==="[object SVGAnimatedString]"?st.animVal:st,ht=at.propertyName==="font-size"&&ot.indexOf("anticon")>=0;(nt||ht)&&Te.restoreModeVerticalFromInline()},Te.setInnerMenu=function(at){Te.innerMenu=at},Te.isRootMenu=!0;var Ve=Je.defaultSelectedKeys,Be=Je.defaultOpenKeys;return"selectedKeys"in Je&&(Ve=Je.selectedKeys||[]),"openKeys"in Je&&(Be=Je.openKeys||[]),Te.store=Object(_.c)({selectedKeys:Ve,openKeys:Be,activeKey:{"0-menu-":Di(Je,Je.activeKey)}}),Te.state={switchingModeFromInline:!1,prevProps:Je,inlineOpenKeys:[],store:Te.store},Te}return Object(w.a)(Ye,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Te){var Ve=this.props,Be=Ve.siderCollapsed,at=Ve.inlineCollapsed,nt=Ve.onOpenChange;(!Te.inlineCollapsed&&at||!Te.siderCollapsed&&Be)&&nt([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Te=this.props.collapsedWidth,Ve=this.store,Be=this.prevOpenKeys,at=this.getInlineCollapsed()&&(Te===0||Te==="0"||Te==="0px");at?(this.prevOpenKeys=Ve.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Be&&(this.store.setState({openKeys:Be}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Te=this.props.mode,Ve=this.state.switchingModeFromInline,Be=this.getInlineCollapsed();return Ve&&Be?"inline":Be?"vertical":Te}},{key:"getInlineCollapsed",value:function(){var Te=this.props,Ve=Te.inlineCollapsed,Be=Te.siderCollapsed;return Be!==void 0?Be:Ve}},{key:"restoreModeVerticalFromInline",value:function(){var Te=this.state.switchingModeFromInline;Te&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var Te=Object(p.a)({},Object(D.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Ve=this.getRealMenuMode();return Te.className+=" ".concat(Te.prefixCls,"-root"),Te.direction==="rtl"&&(Te.className+=" ".concat(Te.prefixCls,"-rtl")),Te=Object(p.a)(Object(p.a)({},Te),{},{mode:Ve,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Go(this.props,this.state,Ve)}),delete Te.openAnimation,delete Te.openTransitionName,E.createElement(_.a,{store:this.store},E.createElement(uo,Object(S.a)({},Te,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Te,Ve){var Be=Ve.prevProps,at=Ve.store,nt=at.getState(),st={},ot={prevProps:Te};return Be.mode==="inline"&&Te.mode!=="inline"&&(ot.switchingModeFromInline=!0),"openKeys"in Te?st.openKeys=Te.openKeys||[]:((Te.inlineCollapsed&&!Be.inlineCollapsed||Te.siderCollapsed&&!Be.siderCollapsed)&&(ot.switchingModeFromInline=!0,ot.inlineOpenKeys=nt.openKeys,st.openKeys=[]),(!Te.inlineCollapsed&&Be.inlineCollapsed||!Te.siderCollapsed&&Be.siderCollapsed)&&(st.openKeys=Ve.inlineOpenKeys,ot.inlineOpenKeys=[])),Object.keys(st).length&&at.setState(st),ot}}]),Ye}(E.Component);ps.defaultProps={selectable:!0,onClick:pe,onSelect:pe,onOpenChange:pe,onDeselect:pe,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:E.createElement("span",null,"\xB7\xB7\xB7")};var qa=ps,to=function(ut){Object(c.a)(Ye,ut);var Ge=Object(o.a)(Ye);function Ye(){var Je;return Object(B.a)(this,Ye),Je=Ge.apply(this,arguments),Je.onKeyDown=function(Te){var Ve=Te.keyCode;return Ve===A.a.ENTER?(Je.onClick(Te),!0):void 0},Je.onMouseLeave=function(Te){var Ve=Je.props,Be=Ve.eventKey,at=Ve.onItemHover,nt=Ve.onMouseLeave;at({key:Be,hover:!1}),nt({key:Be,domEvent:Te})},Je.onMouseEnter=function(Te){var Ve=Je.props,Be=Ve.eventKey,at=Ve.onItemHover,nt=Ve.onMouseEnter;at({key:Be,hover:!0}),nt({key:Be,domEvent:Te})},Je.onClick=function(Te){var Ve=Je.props,Be=Ve.eventKey,at=Ve.multiple,nt=Ve.onClick,st=Ve.onSelect,ot=Ve.onDeselect,ht=Ve.isSelected,Mt={key:Be,keyPath:[Be],item:Object(m.a)(Je),domEvent:Te};nt(Mt),at?ht?ot(Mt):st(Mt):ht||st(Mt)},Je.saveNode=function(Te){Je.node=Te},Je}return Object(w.a)(Ye,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Te=this.props;Te.onDestroy&&Te.onDestroy(Te.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var Te,Ve=Object(p.a)({},this.props),Be=b()(this.getPrefixCls(),Ve.className,(Te={},Object(ae.a)(Te,this.getActiveClassName(),!Ve.disabled&&Ve.active),Object(ae.a)(Te,this.getSelectedClassName(),Ve.isSelected),Object(ae.a)(Te,this.getDisabledClassName(),Ve.disabled),Te)),at=Object(p.a)(Object(p.a)({},Ve.attribute),{},{title:typeof Ve.title=="string"?Ve.title:void 0,className:Be,role:Ve.role||"menuitem","aria-disabled":Ve.disabled});Ve.role==="option"?at=Object(p.a)(Object(p.a)({},at),{},{role:"option","aria-selected":Ve.isSelected}):(Ve.role===null||Ve.role==="none")&&(at.role="none");var nt={onClick:Ve.disabled?null:this.onClick,onMouseLeave:Ve.disabled?null:this.onMouseLeave,onMouseEnter:Ve.disabled?null:this.onMouseEnter},st=Object(p.a)({},Ve.style);Ve.mode==="inline"&&(Ve.direction==="rtl"?st.paddingRight=Ve.inlineIndent*Ve.level:st.paddingLeft=Ve.inlineIndent*Ve.level),Ue.forEach(function(ht){return delete Ve[ht]}),delete Ve.direction;var ot=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(ot=E.createElement(this.props.itemIcon,this.props)),E.createElement("li",Object(S.a)({},Object(D.a)(Ve,["onClick","onMouseEnter","onMouseLeave","onSelect"]),at,nt,{style:st,ref:this.saveNode}),Ve.children,ot)}}]),Ye}(E.Component);to.isMenuItem=!0,to.defaultProps={onSelect:pe,onMouseEnter:pe,onMouseLeave:pe,manualRef:pe};var Vo=Object(_.b)(function(ut,Ge){var Ye=ut.activeKey,Je=ut.selectedKeys,Te=Ge.eventKey,Ve=Ge.subMenuKey;return{active:Ye[Ve]===Te,isSelected:Array.isArray(Je)?Je.indexOf(Te)!==-1:Je===Te}})(to),Xo=Vo,ur=function(ut){Object(c.a)(Ye,ut);var Ge=Object(o.a)(Ye);function Ye(){var Je;return Object(B.a)(this,Ye),Je=Ge.apply(this,arguments),Je.renderInnerMenuItem=function(Te){var Ve=Je.props,Be=Ve.renderMenuItem,at=Ve.index;return Be(Te,at,Je.props.subMenuKey)},Je}return Object(w.a)(Ye,[{key:"render",value:function(){var Te=Object(S.a)({},this.props),Ve=Te.className,Be=Ve===void 0?"":Ve,at=Te.rootPrefixCls,nt="".concat(at,"-item-group-title"),st="".concat(at,"-item-group-list"),ot=Te.title,ht=Te.children;return Ue.forEach(function(Mt){return delete Te[Mt]}),delete Te.direction,E.createElement("li",Object(S.a)({},Te,{onClick:function(zt){return zt.stopPropagation()},className:"".concat(Be," ").concat(at,"-item-group")}),E.createElement("div",{className:nt,title:typeof ot=="string"?ot:void 0},ot),E.createElement("ul",{className:st},E.Children.map(ht,this.renderInnerMenuItem)))}}]),Ye}(E.Component);ur.isMenuItemGroup=!0,ur.defaultProps={disabled:!0};var Fr=ur,xr=function(Ge){var Ye=Ge.className,Je=Ge.rootPrefixCls,Te=Ge.style;return E.createElement("li",{className:"".concat(Ye," ").concat(Je,"-item-divider"),style:Te})};xr.defaultProps={disabled:!0,className:"",style:{}};var oa=xr,va=qa,xa=I("eDIo");function ca(ut,Ge){var Ye=ut.prefixCls,Je=ut.editable,Te=ut.locale,Ve=ut.style;return!Je||Je.showAdd===!1?null:E.createElement("button",{ref:Ge,type:"button",className:"".concat(Ye,"-nav-add"),style:Ve,"aria-label":(Te==null?void 0:Te.addAriaLabel)||"Add tab",onClick:function(at){Je.onEdit("add",{event:at})}},Je.addIcon||"+")}var Fa=E.forwardRef(ca);function Si(ut,Ge){var Ye=ut.prefixCls,Je=ut.id,Te=ut.tabs,Ve=ut.locale,Be=ut.mobile,at=ut.moreIcon,nt=at===void 0?"More":at,st=ut.moreTransitionName,ot=ut.style,ht=ut.className,Mt=ut.editable,zt=ut.tabBarGutter,Dt=ut.rtl,en=ut.onTabClick,ln=Object(E.useState)(!1),Sn=Object(V.a)(ln,2),Xt=Sn[0],$t=Sn[1],gn=Object(E.useState)(null),On=Object(V.a)(gn,2),nn=On[0],yn=On[1],Ln="".concat(Je,"-more-popup"),Gn="".concat(Ye,"-dropdown"),an=nn!==null?"".concat(Ln,"-").concat(nn):null,hn=Ve==null?void 0:Ve.dropdownAriaLabel,fn=E.createElement(va,{onClick:function(Tr){var or=Tr.key,kr=Tr.domEvent;en(or,kr),$t(!1)},id:Ln,tabIndex:-1,role:"listbox","aria-activedescendant":an,selectedKeys:[nn],"aria-label":hn!==void 0?hn:"expanded dropdown"},Te.map(function(cr){return E.createElement(Xo,{key:cr.key,id:"".concat(Ln,"-").concat(cr.key),role:"option","aria-controls":Je&&"".concat(Je,"-panel-").concat(cr.key),disabled:cr.disabled},cr.tab)}));function Cn(cr){for(var Tr=Te.filter(function($r){return!$r.disabled}),or=Tr.findIndex(function($r){return $r.key===nn})||0,kr=Tr.length,Qn=0;Qn<kr;Qn+=1){or=(or+cr+kr)%kr;var Ur=Tr[or];if(!Ur.disabled){yn(Ur.key);return}}}function er(cr){var Tr=cr.which;if(!Xt){[A.a.DOWN,A.a.SPACE,A.a.ENTER].includes(Tr)&&($t(!0),cr.preventDefault());return}switch(Tr){case A.a.UP:Cn(-1),cr.preventDefault();break;case A.a.DOWN:Cn(1),cr.preventDefault();break;case A.a.ESC:$t(!1);break;case A.a.SPACE:case A.a.ENTER:nn!==null&&en(nn,cr);break}}Object(E.useEffect)(function(){var cr=document.getElementById(an);cr&&cr.scrollIntoView&&cr.scrollIntoView(!1)},[nn]),Object(E.useEffect)(function(){Xt||yn(null)},[Xt]);var cn=Object(ae.a)({},Dt?"marginLeft":"marginRight",zt);Te.length||(cn.visibility="hidden",cn.order=1);var Un=b()(Object(ae.a)({},"".concat(Gn,"-rtl"),Dt)),Dr=Be?null:E.createElement(xa.a,{prefixCls:Gn,overlay:fn,trigger:["hover"],visible:Xt,transitionName:st,onVisibleChange:$t,overlayClassName:Un,mouseEnterDelay:.1,mouseLeaveDelay:.1},E.createElement("button",{type:"button",className:"".concat(Ye,"-nav-more"),style:cn,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Ln,id:"".concat(Je,"-more"),"aria-expanded":Xt,onKeyDown:er},nt));return E.createElement("div",{className:b()("".concat(Ye,"-nav-operations"),ht),style:ot,ref:Ge},Dr,E.createElement(Fa,{prefixCls:Ye,locale:Ve,editable:Mt}))}var sa=E.forwardRef(Si),Io=Object(E.createContext)(null),br=.1,Pr=.01,Qr=20,$a=Math.pow(.995,Qr);function Mo(){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,Ge){var Ye=Object(E.useState)(),Je=Object(V.a)(Ye,2),Te=Je[0],Ve=Je[1],Be=Object(E.useState)(0),at=Object(V.a)(Be,2),nt=at[0],st=at[1],ot=Object(E.useState)(0),ht=Object(V.a)(ot,2),Mt=ht[0],zt=ht[1],Dt=Object(E.useState)(),en=Object(V.a)(Dt,2),ln=en[0],Sn=en[1],Xt=Object(E.useRef)();function $t(hn){var fn=hn.touches[0],Cn=fn.screenX,er=fn.screenY;Ve({x:Cn,y:er}),window.clearInterval(Xt.current)}function gn(hn){if(!Te)return;hn.preventDefault();var fn=hn.touches[0],Cn=fn.screenX,er=fn.screenY;Ve({x:Cn,y:er});var cn=Cn-Te.x,Un=er-Te.y;Ge(cn,Un);var Dr=Date.now();st(Dr),zt(Dr-nt),Sn({x:cn,y:Un})}function On(){if(!Te)return;if(Ve(null),Sn(null),ln){var hn=ln.x/Mt,fn=ln.y/Mt,Cn=Math.abs(hn),er=Math.abs(fn);if(Math.max(Cn,er)<br)return;var cn=hn,Un=fn;Xt.current=window.setInterval(function(){if(Math.abs(cn)<Pr&&Math.abs(Un)<Pr){window.clearInterval(Xt.current);return}cn*=$a,Un*=$a,Ge(cn*Qr,Un*Qr)},Qr)}}var nn=Object(E.useRef)(0),yn=Object(E.useRef)(!1),Ln=Object(E.useRef)();function Gn(hn){var fn=hn.deltaX,Cn=hn.deltaY,er=0,cn=Math.abs(fn),Un=Math.abs(Cn);cn===Un?er=Ln.current==="x"?fn:Cn:cn>Un?(er=fn,Ln.current="x"):(er=Cn,Ln.current="y");var Dr=Date.now();Dr-nn.current>100&&(yn.current=!1),(Ge(-er,-er)||yn.current)&&(hn.preventDefault(),yn.current=!0),nn.current=Dr}var an=Object(E.useRef)(null);an.current={onTouchStart:$t,onTouchMove:gn,onTouchEnd:On,onWheel:Gn},E.useEffect(function(){function hn(cn){an.current.onTouchStart(cn)}function fn(cn){an.current.onTouchMove(cn)}function Cn(cn){an.current.onTouchEnd(cn)}function er(cn){an.current.onWheel(cn)}return document.addEventListener("touchmove",fn,{passive:!1}),document.addEventListener("touchend",Cn,{passive:!1}),ut.current.addEventListener("touchstart",hn,{passive:!1}),ut.current.addEventListener("wheel",er),function(){document.removeEventListener("touchmove",fn),document.removeEventListener("touchend",Cn)}},[])}function Is(){var ut=Object(E.useRef)(new Map);function Ge(Je){return ut.current.has(Je)||ut.current.set(Je,E.createRef()),ut.current.get(Je)}function Ye(Je){ut.current.delete(Je)}return[Ge,Ye]}function xs(ut,Ge){var Ye=E.useRef(ut),Je=E.useState({}),Te=Object(V.a)(Je,2),Ve=Te[1];function Be(at){var nt=typeof at=="function"?at(Ye.current):at;nt!==Ye.current&&Ge(nt,Ye.current),Ye.current=nt,Ve({})}return[Ye.current,Be]}var js=function(Ge){var Ye=Ge.position,Je=Ge.prefixCls,Te=Ge.extra;if(!Te)return null;var Ve,Be=Te;return Ye==="right"&&(Ve=Be.right||!Be.left&&Be||null),Ye==="left"&&(Ve=Be.left||null),Ve?E.createElement("div",{className:"".concat(Je,"-extra-content")},Ve):null};function Zs(ut,Ge){var Ye,Je=E.useContext(Io),Te=Je.prefixCls,Ve=Je.tabs,Be=ut.className,at=ut.style,nt=ut.id,st=ut.animated,ot=ut.activeKey,ht=ut.rtl,Mt=ut.extra,zt=ut.editable,Dt=ut.locale,en=ut.tabPosition,ln=ut.tabBarGutter,Sn=ut.children,Xt=ut.onTabClick,$t=ut.onTabScroll,gn=Object(E.useRef)(),On=Object(E.useRef)(),nn=Object(E.useRef)(),yn=Object(E.useRef)(),Ln=Is(),Gn=Object(V.a)(Ln,2),an=Gn[0],hn=Gn[1],fn=en==="top"||en==="bottom",Cn=xs(0,function(da,Lr){fn&&$t&&$t({direction:da>Lr?"left":"right"})}),er=Object(V.a)(Cn,2),cn=er[0],Un=er[1],Dr=xs(0,function(da,Lr){!fn&&$t&&$t({direction:da>Lr?"top":"bottom"})}),cr=Object(V.a)(Dr,2),Tr=cr[0],or=cr[1],kr=Object(E.useState)(0),Qn=Object(V.a)(kr,2),Ur=Qn[0],$r=Qn[1],Gr=Object(E.useState)(0),mr=Object(V.a)(Gr,2),Tn=mr[0],tr=mr[1],Mr=Object(E.useState)(0),Fn=Object(V.a)(Mr,2),Zn=Fn[0],nr=Fn[1],Yn=Object(E.useState)(0),Kn=Object(V.a)(Yn,2),An=Kn[0],sn=Kn[1],Wn=Object(E.useState)(null),Xn=Object(V.a)(Wn,2),xn=Xn[0],Ar=Xn[1],Wr=Object(E.useState)(null),Va=Object(V.a)(Wr,2),Da=Va[0],ra=Va[1],gi=Object(E.useState)(0),ai=Object(V.a)(gi,2),Qa=ai[0],no=ai[1],ro=Object(E.useState)(0),Ri=Object(V.a)(ro,2),Lo=Ri[0],Po=Ri[1],ao=a(new Map),Li=Object(V.a)(ao,2),Ni=Li[0],So=Li[1],co=y(Ve,Ni,Ur),ho="".concat(Te,"-nav-operations-hidden"),Ki=0,Pi=0;fn?ht?(Ki=0,Pi=Math.max(0,Ur-xn)):(Ki=Math.min(0,xn-Ur),Pi=0):(Ki=Math.min(0,Da-Tn),Pi=0);function Vi(da){return da<Ki?[Ki,!1]:da>Pi?[Pi,!1]:[da,!0]}var Wi=Object(E.useRef)(),vo=Object(E.useState)(),ji=Object(V.a)(vo,2),go=ji[0],Xa=ji[1];function io(){Xa(Date.now())}function Uo(){window.clearTimeout(Wi.current)}us(gn,function(da,Lr){var di=!1;function _a(To,Zi){To(function(bo){var oo=Vi(bo+Zi),dn=Object(V.a)(oo,2),Fo=dn[0],Ss=dn[1];return di=Ss,Fo})}if(fn){if(xn>=Ur)return di;_a(Un,da)}else{if(Da>=Tn)return di;_a(or,Lr)}return Uo(),io(),di}),Object(E.useEffect)(function(){return Uo(),go&&(Wi.current=window.setTimeout(function(){Xa(0)},100)),Uo},[go]);function zi(){var da=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ot,Lr=co.get(da);if(!Lr)return;if(fn){var di=cn;ht?Lr.right<cn?di=Lr.right:Lr.right+Lr.width>cn+xn&&(di=Lr.right+Lr.width-xn):Lr.left<-cn?di=-Lr.left:Lr.left+Lr.width>-cn+xn&&(di=-(Lr.left+Lr.width-xn)),or(0),Un(Vi(di)[0])}else{var _a=Tr;Lr.top<-Tr?_a=-Lr.top:Lr.top+Lr.height>-Tr+Da&&(_a=-(Lr.top+Lr.height-Da)),Un(0),or(Vi(_a)[0])}}var Ti=x(co,{width:xn,height:Da,left:cn,top:Tr},{width:Zn,height:An},{width:Qa,height:Lo},Object(p.a)(Object(p.a)({},ut),{},{tabs:Ve})),fo=Object(V.a)(Ti,2),es=fo[0],ts=fo[1],Yo=Ve.map(function(da){var Lr=da.key;return E.createElement(i,{id:nt,prefixCls:Te,key:Lr,rtl:ht,tab:da,closable:da.closable,editable:zt,active:Lr===ot,tabPosition:en,tabBarGutter:ln,renderWrapper:Sn,removeAriaLabel:Dt==null?void 0:Dt.removeAriaLabel,ref:an(Lr),onClick:function(_a){Xt(Lr,_a)},onRemove:function(){hn(Lr)},onFocus:function(){zi(Lr),io(),ht||(gn.current.scrollLeft=0),gn.current.scrollTop=0}})}),Xi=u(function(){var da,Lr,di,_a,To,Zi,bo,oo,dn,Fo=((da=gn.current)===null||da===void 0?void 0:da.offsetWidth)||0,Ss=((Lr=gn.current)===null||Lr===void 0?void 0:Lr.offsetHeight)||0,gs=((di=yn.current)===null||di===void 0?void 0:di.offsetWidth)||0,ei=((_a=yn.current)===null||_a===void 0?void 0:_a.offsetHeight)||0,_n=((To=nn.current)===null||To===void 0?void 0:To.offsetWidth)||0,kt=((Zi=nn.current)===null||Zi===void 0?void 0:Zi.offsetHeight)||0;Ar(Fo),ra(Ss),no(gs),Po(ei);var Zt=(((bo=On.current)===null||bo===void 0?void 0:bo.offsetWidth)||0)-gs,bn=(((oo=On.current)===null||oo===void 0?void 0:oo.offsetHeight)||0)-ei;$r(Zt),tr(bn);var Jt=(dn=nn.current)===null||dn===void 0?void 0:dn.className.includes(ho);nr(Zt-(Jt?0:_n)),sn(bn-(Jt?0:kt)),So(function(){var qn=new Map;return Ve.forEach(function(ir){var dr=ir.key,Zr=an(dr).current;Zr&&qn.set(dr,{width:Zr.offsetWidth,height:Zr.offsetHeight,left:Zr.offsetLeft,top:Zr.offsetTop})}),qn})}),ns=Ve.slice(0,es),yi=Ve.slice(ts+1),Pa=[].concat(Object(r.a)(ns),Object(r.a)(yi)),ci=Object(E.useState)(),Na=Object(V.a)(ci,2),Yi=Na[0],yo=Na[1],Ui=co.get(ot),Jo=Object(E.useRef)();function ko(){e.a.cancel(Jo.current)}Object(E.useEffect)(function(){var da={};return Ui&&(fn?(ht?da.right=Ui.right:da.left=Ui.left,da.width=Ui.width):(da.top=Ui.top,da.height=Ui.height)),ko(),Jo.current=e()(function(){yo(da)}),ko},[Ui,fn,ht]),Object(E.useEffect)(function(){zi()},[ot,Ui,co,fn]),Object(E.useEffect)(function(){Xi()},[ht,ln,ot,Ve.map(function(da){return da.key}).join("_")]);var Zo=!!Pa.length,Bi="".concat(Te,"-nav-wrap"),Dn,Ji,vs,rs;return fn?ht?(Ji=cn>0,Dn=cn+xn<Ur):(Dn=cn<0,Ji=-cn+xn<Ur):(vs=Tr<0,rs=-Tr+Da<Tn),E.createElement("div",{ref:Ge,role:"tablist",className:b()("".concat(Te,"-nav"),Be),style:at,onKeyDown:function(){io()}},E.createElement(js,{position:"left",extra:Mt,prefixCls:Te}),E.createElement(s.a,{onResize:Xi},E.createElement("div",{className:b()(Bi,(Ye={},Object(ae.a)(Ye,"".concat(Bi,"-ping-left"),Dn),Object(ae.a)(Ye,"".concat(Bi,"-ping-right"),Ji),Object(ae.a)(Ye,"".concat(Bi,"-ping-top"),vs),Object(ae.a)(Ye,"".concat(Bi,"-ping-bottom"),rs),Ye)),ref:gn},E.createElement(s.a,{onResize:Xi},E.createElement("div",{ref:On,className:"".concat(Te,"-nav-list"),style:{transform:"translate(".concat(cn,"px, ").concat(Tr,"px)"),transition:go?"none":void 0}},Yo,E.createElement(Fa,{ref:yn,prefixCls:Te,locale:Dt,editable:zt,style:{visibility:Zo?"hidden":null}}),E.createElement("div",{className:b()("".concat(Te,"-ink-bar"),Object(ae.a)({},"".concat(Te,"-ink-bar-animated"),st.inkBar)),style:Yi}))))),E.createElement(sa,Object.assign({},ut,{ref:nn,prefixCls:Te,tabs:Pa,className:!Zo&&ho})),E.createElement(js,{position:"right",extra:Mt,prefixCls:Te}))}var cs=E.forwardRef(Zs);function dl(ut){var Ge=ut.id,Ye=ut.activeKey,Je=ut.animated,Te=ut.tabPosition,Ve=ut.rtl,Be=ut.destroyInactiveTabPane,at=E.useContext(Io),nt=at.prefixCls,st=at.tabs,ot=Je.tabPane,ht=st.findIndex(function(Mt){return Mt.key===Ye});return E.createElement("div",{className:b()("".concat(nt,"-content-holder"))},E.createElement("div",{className:b()("".concat(nt,"-content"),"".concat(nt,"-content-").concat(Te),Object(ae.a)({},"".concat(nt,"-content-animated"),ot)),style:ht&&ot?Object(ae.a)({},Ve?"marginRight":"marginLeft","-".concat(ht,"00%")):null},st.map(function(Mt){return E.cloneElement(Mt.node,{key:Mt.key,prefixCls:nt,tabKey:Mt.key,id:Ge,animated:ot,active:Mt.key===Ye,destroyInactiveTabPane:Be})})))}function $s(ut){var Ge=ut.prefixCls,Ye=ut.forceRender,Je=ut.className,Te=ut.style,Ve=ut.id,Be=ut.active,at=ut.animated,nt=ut.destroyInactiveTabPane,st=ut.tabKey,ot=ut.children,ht=E.useState(Ye),Mt=Object(V.a)(ht,2),zt=Mt[0],Dt=Mt[1];E.useEffect(function(){Be?Dt(!0):nt&&Dt(!1)},[Be,nt]);var en={};return Be||(at?(en.visibility="hidden",en.height=0,en.overflowY="hidden"):en.display="none"),E.createElement("div",{id:Ve&&"".concat(Ve,"-panel-").concat(st),role:"tabpanel",tabIndex:Be?0:-1,"aria-labelledby":Ve&&"".concat(Ve,"-tab-").concat(st),"aria-hidden":!Be,style:Object(p.a)(Object(p.a)({},en),Te),className:b()("".concat(Ge,"-tabpane"),Be&&"".concat(Ge,"-tabpane-active"),Je)},(Be||zt||Ye)&&ot)}var xo=0;function ms(ut){return Object(f.a)(ut).map(function(Ge){if(E.isValidElement(Ge)){var Ye=Ge.key!==void 0?String(Ge.key):void 0;return Object(p.a)(Object(p.a)({key:Ye},Ge.props),{},{node:Ge})}return null}).filter(function(Ge){return Ge})}function Ha(ut,Ge){var Ye,Je=ut.id,Te=ut.prefixCls,Ve=Te===void 0?"rc-tabs":Te,Be=ut.className,at=ut.children,nt=ut.direction,st=ut.activeKey,ot=ut.defaultActiveKey,ht=ut.editable,Mt=ut.animated,zt=ut.tabPosition,Dt=zt===void 0?"top":zt,en=ut.tabBarGutter,ln=ut.tabBarStyle,Sn=ut.tabBarExtraContent,Xt=ut.locale,$t=ut.moreIcon,gn=ut.moreTransitionName,On=ut.destroyInactiveTabPane,nn=ut.renderTabBar,yn=ut.onChange,Ln=ut.onTabClick,Gn=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"]),hn=ms(at),fn=nt==="rtl",Cn;Mt===!1?Cn={inkBar:!1,tabPane:!1}:Cn=Object(p.a)({inkBar:!0,tabPane:!1},Mt!==!0?Mt:null);var er=Object(E.useState)(!1),cn=Object(V.a)(er,2),Un=cn[0],Dr=cn[1];Object(E.useEffect)(function(){Dr(Mo())},[]);var cr=Object(l.a)(function(){var An;return(An=hn[0])===null||An===void 0?void 0:An.key},{value:st,defaultValue:ot}),Tr=Object(V.a)(cr,2),or=Tr[0],kr=Tr[1],Qn=Object(E.useState)(function(){return hn.findIndex(function(An){return An.key===or})}),Ur=Object(V.a)(Qn,2),$r=Ur[0],Gr=Ur[1];Object(E.useEffect)(function(){var An=hn.findIndex(function(Wn){return Wn.key===or});if(An===-1){var sn;An=Math.max(0,Math.min($r,hn.length-1)),kr((sn=hn[An])===null||sn===void 0?void 0:sn.key)}Gr(An)},[hn.map(function(An){return An.key}).join("_"),or,$r]);var mr=Object(l.a)(null,{value:Je}),Tn=Object(V.a)(mr,2),tr=Tn[0],Mr=Tn[1],Fn=Dt;Un&&!["left","right"].includes(Dt)&&(Fn="top"),Object(E.useEffect)(function(){Je||(Mr("rc-tabs-".concat(xo)),xo+=1)},[]);function Zn(An,sn){Ln==null||Ln(An,sn),kr(An),yn==null||yn(An)}var nr={id:tr,activeKey:or,animated:Cn,tabPosition:Fn,rtl:fn,mobile:Un},Yn,Kn=Object(p.a)(Object(p.a)({},nr),{},{editable:ht,locale:Xt,moreIcon:$t,moreTransitionName:gn,tabBarGutter:en,onTabClick:Zn,onTabScroll:Gn,extra:Sn,style:ln,panes:at});return nn?Yn=nn(Kn,cs):Yn=E.createElement(cs,Object.assign({},Kn)),E.createElement(Io.Provider,{value:{tabs:hn,prefixCls:Ve}},E.createElement("div",Object.assign({ref:Ge,id:Je,className:b()(Ve,"".concat(Ve,"-").concat(Fn),(Ye={},Object(ae.a)(Ye,"".concat(Ve,"-mobile"),Un),Object(ae.a)(Ye,"".concat(Ve,"-editable"),ht),Object(ae.a)(Ye,"".concat(Ve,"-rtl"),fn),Ye),Be)},an),Yn,E.createElement(dl,Object.assign({destroyInactiveTabPane:On},nr,{animated:Cn}))))}var _s=E.forwardRef(Ha);_s.TabPane=$s;var _o=_s,Hs=Ce.b=_o},"kNP/":function(We,Ce,I){We.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(We,Ce,I){We.exports=I.p+"static/question.cb52bef9.gif"},kPYp:function(We,Ce){We.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(We,Ce,I){},"kaH+":function(We,Ce,I){"use strict";var ae=I("+L6B"),V=I("2/Rp"),M=I("tJVT"),p=I("q1tI"),E=I.n(p),C=I("UZu5"),b=I.n(C),f=I("dhSg"),l=I("rLCj"),r=I("dF/Y"),n=I("4i/N");Ce.a=function(){var e=Object(p.useState)(""),s=Object(M.a)(e,2),u=s[0],a=s[1],A=Object(p.useState)(0),d=Object(M.a)(A,2),i=d[0],h=d[1],y=Object(p.useRef)("");Object(p.useEffect)(function(){var B=f.a.subscribe("preview-image",function(w){a(w),document.body.style.overflow="hidden"});return B},[]),Object(p.useEffect)(function(){return document.addEventListener("keydown",v),function(){document.removeEventListener("keydown",v)}},[]),Object(p.useEffect)(function(){y.current=u},[u]);function v(B){B.keyCode==27&&y.current&&x()}function x(){document.body.style.overflow="auto",a("")}function S(){h(i+90)}return E.a.createElement(p.Fragment,null,u?E.a.createElement("div",{className:"image-preview-container"},E.a.createElement("div",{className:"button-group"},E.a.createElement(V.a,{onClick:S},"\u65CB\u8F6C",E.a.createElement(l.a,null)),E.a.createElement(V.a,{href:u},"\u4E0B\u8F7D",E.a.createElement(r.a,null)),E.a.createElement(V.a,{onClick:x},"\u5173\u95ED",E.a.createElement(n.a,null))),E.a.createElement("div",{className:"preview-wrp-group"},E.a.createElement("img",{className:"image-preview",src:u,alt:"\u9884\u89C8\u5927\u56FE",style:{transform:"rotate(".concat(i,"deg)")}}))):null)}},kwm0:function(We,Ce,I){We.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(We,Ce,I){We.exports=I.p+"static/match_ad.24dc22fd.jpg"},lZu9:function(We,Ce,I){(function(ae){ae(I("VrN/"),I("1eCo"),I("8EBN"))})(function(ae){"use strict";ae.defineMode("markdown",function(V,M){var p=ae.getMode(V,"text/html"),E=p.name=="null";function C(k){if(ae.findModeByName){var K=ae.findModeByName(k);K&&(k=K.mime||K.mimes[0])}var z=ae.getMode(V,k);return z.name=="null"?null:z}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 b={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 f in b)b.hasOwnProperty(f)&&M.tokenTypeOverrides[f]&&(b[f]=M.tokenTypeOverrides[f]);var l=/^([*\-_])(?:\s*\1){2,}\s*$/,r=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,n=/^\[(x| )\](?=\s)/i,e=M.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,s=/^ {0,3}(?:\={1,}|-{2,})\s*$/,u=/^[^#!\[\]*_\\<>` "'(~:]+/,a=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,A=/^\s*\[[^\]]+?\]:.*$/,d=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,i=" ";function h(k,K,z){return K.f=K.inline=z,z(k,K)}function y(k,K,z){return K.f=K.block=z,z(k,K)}function v(k){return!k||!/\S/.test(k.string)}function x(k){if(k.linkTitle=!1,k.linkHref=!1,k.linkText=!1,k.em=!1,k.strong=!1,k.strikethrough=!1,k.quote=0,k.indentedCode=!1,k.f==B){var K=E;if(!K){var z=ae.innerMode(p,k.htmlState);K=z.mode.name=="xml"&&z.state.tagStart===null&&!z.state.context&&z.state.tokenize.isInText}K&&(k.f=o,k.block=S,k.htmlState=null)}return k.trailingSpace=0,k.trailingSpaceNewLine=!1,k.prevLine=k.thisLine,k.thisLine={stream:null},null}function S(k,K){var z=k.column()===K.indentation,j=v(K.prevLine.stream),Q=K.indentedCode,X=K.prevLine.hr,te=K.list!==!1,oe=(K.listStack[K.listStack.length-1]||0)+3;K.indentedCode=!1;var fe=K.indentation;if(K.indentationDiff===null&&(K.indentationDiff=K.indentation,te)){for(K.list=null;fe<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=fe-K.listStack[K.listStack.length-1])}var le=!j&&!X&&!K.prevLine.header&&(!te||!Q)&&!K.prevLine.fencedCodeEnd,we=(K.list===!1||X||j)&&K.indentation<=oe&&k.match(l),Ae=null;if(K.indentationDiff>=4&&(Q||K.prevLine.fencedCodeEnd||K.prevLine.header||j))return k.skipToEnd(),K.indentedCode=!0,b.code;if(k.eatSpace())return null;if(z&&K.indentation<=oe&&(Ae=k.match(e))&&Ae[1].length<=6)return K.quote=0,K.header=Ae[1].length,K.thisLine.header=!0,M.highlightFormatting&&(K.formatting="header"),K.f=K.inline,m(K);if(K.indentation<=oe&&k.eat(">"))return K.quote=z?1:K.quote+1,M.highlightFormatting&&(K.formatting="quote"),k.eatSpace(),m(K);if(!we&&!K.setext&&z&&K.indentation<=oe&&(Ae=k.match(r))){var be=Ae[1]?"ol":"ul";return K.indentation=fe+k.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&&k.match(n,!1)&&(K.taskList=!0),K.f=K.inline,M.highlightFormatting&&(K.formatting=["list","list-"+be]),m(K)}else{if(z&&K.indentation<=oe&&(Ae=k.match(a,!0)))return K.quote=0,K.fencedEndRE=new RegExp(Ae[1]+"+ *$"),K.localMode=M.fencedCodeBlockHighlighting&&C(Ae[2]||M.fencedCodeBlockDefaultMode),K.localMode&&(K.localState=ae.startState(K.localMode)),K.f=K.block=w,M.highlightFormatting&&(K.formatting="code-block"),K.code=-1,m(K);if(K.setext||(!le||!te)&&!K.quote&&K.list===!1&&!K.code&&!we&&!A.test(k.string)&&(Ae=k.lookAhead(1))&&(Ae=Ae.match(s)))return K.setext?(K.header=K.setext,K.setext=0,k.skipToEnd(),M.highlightFormatting&&(K.formatting="header")):(K.header=Ae[0].charAt(0)=="="?1:2,K.setext=K.header),K.thisLine.header=!0,K.f=K.inline,m(K);if(we)return k.skipToEnd(),K.hr=!0,K.thisLine.hr=!0,b.hr;if(k.peek()==="[")return h(k,K,R)}return h(k,K,K.inline)}function B(k,K){var z=p.token(k,K.htmlState);if(!E){var j=ae.innerMode(p,K.htmlState);(j.mode.name=="xml"&&j.state.tagStart===null&&!j.state.context&&j.state.tokenize.isInText||K.md_inside&&k.current().indexOf(">")>-1)&&(K.f=o,K.block=S,K.htmlState=null)}return z}function w(k,K){var z=K.listStack[K.listStack.length-1]||0,j=K.indentation<z,Q=z+3;if(K.fencedEndRE&&K.indentation<=Q&&(j||k.match(K.fencedEndRE))){M.highlightFormatting&&(K.formatting="code-block");var X;return j||(X=m(K)),K.localMode=K.localState=null,K.block=S,K.f=o,K.fencedEndRE=null,K.code=0,K.thisLine.fencedCodeEnd=!0,j?y(k,K,K.block):X}else return K.localMode?K.localMode.token(k,K.localState):(k.skipToEnd(),b.code)}function m(k){var K=[];if(k.formatting){K.push(b.formatting),typeof k.formatting=="string"&&(k.formatting=[k.formatting]);for(var z=0;z<k.formatting.length;z++)K.push(b.formatting+"-"+k.formatting[z]),k.formatting[z]==="header"&&K.push(b.formatting+"-"+k.formatting[z]+"-"+k.header),k.formatting[z]==="quote"&&(!M.maxBlockquoteDepth||M.maxBlockquoteDepth>=k.quote?K.push(b.formatting+"-"+k.formatting[z]+"-"+k.quote):K.push("error"))}if(k.taskOpen)return K.push("meta"),K.length?K.join(" "):null;if(k.taskClosed)return K.push("property"),K.length?K.join(" "):null;if(k.linkHref?K.push(b.linkHref,"url"):(k.strong&&K.push(b.strong),k.em&&K.push(b.em),k.strikethrough&&K.push(b.strikethrough),k.emoji&&K.push(b.emoji),k.linkText&&K.push(b.linkText),k.code&&K.push(b.code),k.image&&K.push(b.image),k.imageAltText&&K.push(b.imageAltText,"link"),k.imageMarker&&K.push(b.imageMarker)),k.header&&K.push(b.header,b.header+"-"+k.header),k.quote&&(K.push(b.quote),!M.maxBlockquoteDepth||M.maxBlockquoteDepth>=k.quote?K.push(b.quote+"-"+k.quote):K.push(b.quote+"-"+M.maxBlockquoteDepth)),k.list!==!1){var j=(k.listStack.length-1)%3;j?j===1?K.push(b.list2):K.push(b.list3):K.push(b.list1)}return k.trailingSpaceNewLine?K.push("trailing-space-new-line"):k.trailingSpace&&K.push("trailing-space-"+(k.trailingSpace%2?"a":"b")),K.length?K.join(" "):null}function c(k,K){return k.match(u,!0)?m(K):void 0}function o(k,K){var z=K.text(k,K);if(typeof z!="undefined")return z;if(K.list)return K.list=null,m(K);if(K.taskList){var j=k.match(n,!0)[1]===" ";return j?K.taskOpen=!0:K.taskClosed=!0,M.highlightFormatting&&(K.formatting="task"),K.taskList=!1,m(K)}if(K.taskOpen=!1,K.taskClosed=!1,K.header&&k.match(/^#+$/,!0))return M.highlightFormatting&&(K.formatting="header"),m(K);var Q=k.next();if(K.linkTitle){K.linkTitle=!1;var X=Q;Q==="("&&(X=")"),X=(X+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var te="^\\s*(?:[^"+X+"\\\\]+|\\\\\\\\|\\\\.)"+X;if(k.match(new RegExp(te),!0))return b.linkHref}if(Q==="`"){var oe=K.formatting;M.highlightFormatting&&(K.formatting="code"),k.eatWhile("`");var fe=k.current().length;if(K.code==0&&(!K.quote||fe==1))return K.code=fe,m(K);if(fe==K.code){var le=m(K);return K.code=0,le}else return K.formatting=oe,m(K)}else if(K.code)return m(K);if(Q==="\\"&&(k.next(),M.highlightFormatting)){var we=m(K),Ae=b.formatting+"-escape";return we?we+" "+Ae:Ae}if(Q==="!"&&k.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return K.imageMarker=!0,K.image=!0,M.highlightFormatting&&(K.formatting="image"),m(K);if(Q==="["&&K.imageMarker&&k.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return K.imageMarker=!1,K.imageAltText=!0,M.highlightFormatting&&(K.formatting="image"),m(K);if(Q==="]"&&K.imageAltText){M.highlightFormatting&&(K.formatting="image");var we=m(K);return K.imageAltText=!1,K.image=!1,K.inline=K.f=D,we}if(Q==="["&&!K.image)return K.linkText&&k.match(/^.*?\]/)||(K.linkText=!0,M.highlightFormatting&&(K.formatting="link")),m(K);if(Q==="]"&&K.linkText){M.highlightFormatting&&(K.formatting="link");var we=m(K);return K.linkText=!1,K.inline=K.f=k.match(/\(.*?\)| ?\[.*?\]/,!1)?D:o,we}if(Q==="<"&&k.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){K.f=K.inline=_,M.highlightFormatting&&(K.formatting="link");var we=m(K);return we?we+=" ":we="",we+b.linkInline}if(Q==="<"&&k.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){K.f=K.inline=_,M.highlightFormatting&&(K.formatting="link");var we=m(K);return we?we+=" ":we="",we+b.linkEmail}if(M.xml&&Q==="<"&&k.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var be=k.string.indexOf(">",k.pos);if(be!=-1){var me=k.string.substring(k.start,be);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(me)&&(K.md_inside=!0)}return k.backUp(1),K.htmlState=ae.startState(p),y(k,K,B)}if(M.xml&&Q==="<"&&k.match(/^\/\w*?>/))return K.md_inside=!1,"tag";if(Q==="*"||Q==="_"){for(var he=1,ie=k.pos==1?" ":k.string.charAt(k.pos-2);he<3&&k.eat(Q);)he++;var pe=k.peek()||" ",ye=!/\s/.test(pe)&&(!d.test(pe)||/\s/.test(ie)||d.test(ie)),de=!/\s/.test(ie)&&(!d.test(ie)||/\s/.test(pe)||d.test(pe)),Me=null,ke=null;if(he%2&&(!K.em&&ye&&(Q==="*"||!de||d.test(ie))?Me=!0:K.em==Q&&de&&(Q==="*"||!ye||d.test(pe))&&(Me=!1)),he>1&&(!K.strong&&ye&&(Q==="*"||!de||d.test(ie))?ke=!0:K.strong==Q&&de&&(Q==="*"||!ye||d.test(pe))&&(ke=!1)),ke!=null||Me!=null){M.highlightFormatting&&(K.formatting=Me==null?"strong":ke==null?"em":"strong em"),Me===!0&&(K.em=Q),ke===!0&&(K.strong=Q);var le=m(K);return Me===!1&&(K.em=!1),ke===!1&&(K.strong=!1),le}}else if(Q===" "&&(k.eat("*")||k.eat("_"))){if(k.peek()===" ")return m(K);k.backUp(1)}if(M.strikethrough){if(Q==="~"&&k.eatWhile(Q)){if(K.strikethrough){M.highlightFormatting&&(K.formatting="strikethrough");var le=m(K);return K.strikethrough=!1,le}else if(k.match(/^[^\s]/,!1))return K.strikethrough=!0,M.highlightFormatting&&(K.formatting="strikethrough"),m(K)}else if(Q===" "&&k.match(/^~~/,!0)){if(k.peek()===" ")return m(K);k.backUp(2)}}if(M.emoji&&Q===":"&&k.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){K.emoji=!0,M.highlightFormatting&&(K.formatting="emoji");var Ue=m(K);return K.emoji=!1,Ue}return Q===" "&&(k.match(/^ +$/,!1)?K.trailingSpace++:K.trailingSpace&&(K.trailingSpaceNewLine=!0)),m(K)}function _(k,K){var z=k.next();if(z===">"){K.f=K.inline=o,M.highlightFormatting&&(K.formatting="link");var j=m(K);return j?j+=" ":j="",j+b.linkInline}return k.match(/^[^>]+/,!0),b.linkInline}function D(k,K){if(k.eatSpace())return null;var z=k.next();return z==="("||z==="["?(K.f=K.inline=O(z==="("?")":"]"),M.highlightFormatting&&(K.formatting="link-string"),K.linkHref=!0,m(K)):"error"}var T={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function O(k){return function(K,z){var j=K.next();if(j===k){z.f=z.inline=o,M.highlightFormatting&&(z.formatting="link-string");var Q=m(z);return z.linkHref=!1,Q}return K.match(T[k]),z.linkHref=!0,m(z)}}function R(k,K){return k.match(/^([^\]\\]|\\.)*\]:/,!1)?(K.f=U,k.next(),M.highlightFormatting&&(K.formatting="link"),K.linkText=!0,m(K)):h(k,K,o)}function U(k,K){if(k.match(/^\]:/,!0)){K.f=K.inline=F,M.highlightFormatting&&(K.formatting="link");var z=m(K);return K.linkText=!1,z}return k.match(/^([^\]\\]|\\.)+/,!0),b.linkText}function F(k,K){return k.eatSpace()?null:(k.match(/^[^\s]+/,!0),k.peek()===void 0?K.linkTitle=!0:k.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),K.f=K.inline=o,b.linkHref+" url")}var Y={startState:function(){return{f:S,prevLine:{stream:null},thisLine:{stream:null},block:S,htmlState:null,indentation:0,inline:o,text:c,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(k){return{f:k.f,prevLine:k.prevLine,thisLine:k.thisLine,block:k.block,htmlState:k.htmlState&&ae.copyState(p,k.htmlState),indentation:k.indentation,localMode:k.localMode,localState:k.localMode?ae.copyState(k.localMode,k.localState):null,inline:k.inline,text:k.text,formatting:!1,linkText:k.linkText,linkTitle:k.linkTitle,linkHref:k.linkHref,code:k.code,em:k.em,strong:k.strong,strikethrough:k.strikethrough,emoji:k.emoji,header:k.header,setext:k.setext,hr:k.hr,taskList:k.taskList,list:k.list,listStack:k.listStack.slice(0),quote:k.quote,indentedCode:k.indentedCode,trailingSpace:k.trailingSpace,trailingSpaceNewLine:k.trailingSpaceNewLine,md_inside:k.md_inside,fencedEndRE:k.fencedEndRE}},token:function(k,K){if(K.formatting=!1,k!=K.thisLine.stream){if(K.header=0,K.hr=!1,k.match(/^\s*$/,!0))return x(K),null;if(K.prevLine=K.thisLine,K.thisLine={stream:k},K.taskList=!1,K.trailingSpace=0,K.trailingSpaceNewLine=!1,!K.localState&&(K.f=K.block,K.f!=B)){var z=k.match(/^\s*/,!0)[0].replace(/\t/g,i).length;if(K.indentation=z,K.indentationDiff=null,z>0)return null}}return K.f(k,K)},innerMode:function(k){return k.block==B?{state:k.htmlState,mode:p}:k.localState?{state:k.localState,mode:k.localMode}:{state:k,mode:Y}},indent:function(k,K,z){return k.block==B&&p.indent?p.indent(k.htmlState,K,z):k.localState&&k.localMode.indent?k.localMode.indent(k.localState,K,z):ae.Pass},blankLine:x,getType:m,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Y},"xml"),ae.defineMIME("text/markdown","markdown"),ae.defineMIME("text/x-markdown","markdown")})},loD1:function(We,Ce){function I(ae,V,M,p,E,C,b){if(E===0)return!1;var f=E,l=0,r=ae;if(b>V+f&&b>p+f||b<V-f&&b<p-f||C>ae+f&&C>M+f||C<ae-f&&C<M-f)return!1;if(ae!==M)l=(V-p)/(ae-M),r=(ae*p-M*V)/(ae-M);else return Math.abs(C-ae)<=f/2;var n=l*C-b+r,e=n*n/(l*l+1);return e<=f/2*f/2}Ce.containStroke=I},lseA:function(We,Ce,I){We.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(We,Ce,I){"use strict";var ae=I("E7E6"),V=I.n(ae);I.d(Ce,"B",function(){return V.a});var M=I("/GNS"),p=I.n(M);I.d(Ce,"A",function(){return p.a});var E=I("FOrL"),C=I.n(E);I.d(Ce,"u",function(){return C.a});var b=I("HpTS"),f=I.n(b);I.d(Ce,"C",function(){return f.a});var l=I("tWlo"),r=I.n(l);I.d(Ce,"b",function(){return r.a});var n=I("7ZXX"),e=I.n(n);I.d(Ce,"n",function(){return e.a});var s=I("GABl"),u=I.n(s);I.d(Ce,"g",function(){return u.a});var a=I("onxn"),A=I.n(a);I.d(Ce,"p",function(){return A.a});var d=I("nKGa"),i=I.n(d);I.d(Ce,"o",function(){return i.a});var h=I("4qgm"),y=I.n(h);I.d(Ce,"E",function(){return y.a});var v=I("JeFH"),x=I.n(v);I.d(Ce,"c",function(){return x.a});var S=I("ji0R"),B=I.n(S);I.d(Ce,"k",function(){return B.a});var w=I("W6BS"),m=I.n(w);I.d(Ce,"F",function(){return m.a});var c=I("kPYp"),o=I.n(c);I.d(Ce,"G",function(){return o.a});var _=I("nukY"),D=I.n(_),T=I("4u4S"),O=I.n(T),R=I("yslc"),U=I.n(R),F=I("l2Kq"),Y=I.n(F);I.d(Ce,"t",function(){return Y.a});var k=I("RMFE"),K=I.n(k);I.d(Ce,"q",function(){return K.a});var z=I("TGq3"),j=I.n(z);I.d(Ce,"r",function(){return j.a});var Q=I("SMhR"),X=I.n(Q);I.d(Ce,"D",function(){return X.a});var te=I("8/bI"),oe=I.n(te);I.d(Ce,"l",function(){return oe.a});var fe=I("JWDV"),le=I.n(fe);I.d(Ce,"e",function(){return le.a});var we=I("Xsq0"),Ae=I.n(we);I.d(Ce,"s",function(){return Ae.a});var be=I("Ohmc"),me=I.n(be);I.d(Ce,"d",function(){return me.a});var he=I("csWT"),ie=I.n(he);I.d(Ce,"f",function(){return ie.a});var pe=I("7v3h"),ye=I.n(pe);I.d(Ce,"m",function(){return ye.a});var de=I("cRFk"),Me=I.n(de);I.d(Ce,"z",function(){return Me.a});var ke=I("kPWJ"),Ue=I.n(ke);I.d(Ce,"y",function(){return Ue.a});var re=I("qgvg"),N=I.n(re);I.d(Ce,"v",function(){return N.a});var W=I("FPkq"),ce=I.n(W);I.d(Ce,"x",function(){return ce.a});var ne=I("A/g1"),ue=I.n(ne);I.d(Ce,"h",function(){return ue.a});var De=I("Nmxd"),ze=I.n(De);I.d(Ce,"i",function(){return ze.a});var wt=I("5D2P"),He=I.n(wt);I.d(Ce,"j",function(){return He.a});var Xe=I("djh8"),gt=I.n(Xe);I.d(Ce,"w",function(){return gt.a});var _t=I("Jq4h"),ct=I.n(_t);I.d(Ce,"a",function(){return ct.a})},"m/50":function(We,Ce,I){We.exports=I.p+"static/sc.7f773df2.svg"},mFDi:function(We,Ce,I){var ae=I("QBsz"),V=I("Fofx"),M=ae.applyTransform,p=Math.min,E=Math.max;function C(f,l,r,n){r<0&&(f=f+r,r=-r),n<0&&(l=l+n,n=-n),this.x=f,this.y=l,this.width=r,this.height=n}C.prototype={constructor:C,union:function(f){var l=p(f.x,this.x),r=p(f.y,this.y);this.width=E(f.x+f.width,this.x+this.width)-l,this.height=E(f.y+f.height,this.y+this.height)-r,this.x=l,this.y=r},applyTransform:function(){var f=[],l=[],r=[],n=[];return function(e){if(!e)return;f[0]=r[0]=this.x,f[1]=n[1]=this.y,l[0]=n[0]=this.x+this.width,l[1]=r[1]=this.y+this.height,M(f,f,e),M(l,l,e),M(r,r,e),M(n,n,e),this.x=p(f[0],l[0],r[0],n[0]),this.y=p(f[1],l[1],r[1],n[1]);var s=E(f[0],l[0],r[0],n[0]),u=E(f[1],l[1],r[1],n[1]);this.width=s-this.x,this.height=u-this.y}}(),calculateTransform:function(f){var l=this,r=f.width/l.width,n=f.height/l.height,e=V.create();return V.translate(e,e,[-l.x,-l.y]),V.scale(e,e,[r,n]),V.translate(e,e,[f.x,f.y]),e},intersect:function(f){if(!f)return!1;f instanceof C||(f=C.create(f));var l=this,r=l.x,n=l.x+l.width,e=l.y,s=l.y+l.height,u=f.x,a=f.x+f.width,A=f.y,d=f.y+f.height;return!(n<u||a<r||s<A||d<e)},contain:function(f,l){var r=this;return f>=r.x&&f<=r.x+r.width&&l>=r.y&&l<=r.y+r.height},clone:function(){return new C(this.x,this.y,this.width,this.height)},copy:function(f){this.x=f.x,this.y=f.y,this.width=f.width,this.height=f.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},C.create=function(f){return new C(f.x,f.y,f.width,f.height)};var b=C;We.exports=b},mLcG:function(We,Ce){var I=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(ae){setTimeout(ae,16)};We.exports=I},mOS8:function(We,Ce,I){We.exports=I.p+"static/403Qrcode.6c17b6f4.png"},n1HI:function(We,Ce,I){var ae=I("hX1E"),V=ae.normalizeRadian,M=Math.PI*2;function p(E,C,b,f,l,r,n,e,s){if(n===0)return!1;var u=n;e-=E,s-=C;var a=Math.sqrt(e*e+s*s);if(a-u>b||a+u<b)return!1;if(Math.abs(f-l)%M<1e-4)return!0;if(r){var A=f;f=V(l),l=V(A)}else f=V(f),l=V(l);f>l&&(l+=M);var d=Math.atan2(s,e);return d<0&&(d+=M),d>=f&&d<=l||d+M>=f&&d+M<=l}Ce.containStroke=p},n6Mw:function(We,Ce,I){var ae=I("SrGk"),V=I("bYtY"),M=I("Fofx");function p(C,b){ae.call(this,C,b,"clipPath","__clippath_in_use__")}V.inherits(p,ae),p.prototype.update=function(C){var b=this.getSvgElement(C);b&&this.updateDom(b,C.__clipPaths,!1);var f=this.getTextSvgElement(C);f&&this.updateDom(f,C.__clipPaths,!0),this.markUsed(C)},p.prototype.updateDom=function(C,b,f){if(b&&b.length>0){var l=this.getDefs(!0),r=b[0],n,e,s=f?"_textDom":"_dom";r[s]?(e=r[s].getAttribute("id"),n=r[s],l.contains(n)||l.appendChild(n)):(e="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,n=this.createElement("clipPath"),n.setAttribute("id",e),l.appendChild(n),r[s]=n);var u=this.getSvgProxy(r);if(r.transform&&r.parent.invTransform&&!f){var a=Array.prototype.slice.call(r.transform);M.mul(r.transform,r.parent.invTransform,r.transform),u.brush(r),r.transform=a}else u.brush(r);var A=this.getSvgElement(r);n.innerHTML="",n.appendChild(A.cloneNode()),C.setAttribute("clip-path","url(#"+e+")"),b.length>1&&this.updateDom(n,b.slice(1),f)}else C&&C.setAttribute("clip-path","none")},p.prototype.markUsed=function(C){var b=this;C.__clipPaths&&V.each(C.__clipPaths,function(f){f._dom&&ae.prototype.markUsed.call(b,f._dom),f._textDom&&ae.prototype.markUsed.call(b,f._textDom)})};var E=p;We.exports=E},n6Qo:function(We,Ce,I){"use strict";I.d(Ce,"a",function(){return f});var ae=I("q1tI"),V=I("biw7"),M=I("fyJ8");function p(l){var r=l.className,n=l.index,e=l.children,s=l.colSpan,u=l.rowSpan,a=ae.useContext(V.a),A=a.prefixCls,d=a.fixedInfoList,i=d[n];return ae.createElement(M.a,Object.assign({className:r,index:n,component:"td",prefixCls:A,record:null,dataIndex:null,render:function(){return{children:e,props:{colSpan:s,rowSpan:u}}}},i))}function E(l){return ae.createElement("tr",Object.assign({},l))}function C(l){var r=l.children,n=ae.useContext(V.a),e=n.prefixCls;return ae.createElement("tfoot",{className:"".concat(e,"-summary")},r)}var b=Ce.b=C,f={Cell:p,Row:E}},nCxF:function(We,Ce,I){var ae=I("QBsz"),V=ae.min,M=ae.max,p=ae.scale,E=ae.distance,C=ae.add,b=ae.clone,f=ae.sub;function l(r,n,e,s){var u=[],a=[],A=[],d=[],i,h,y,v;if(s){y=[Infinity,Infinity],v=[-Infinity,-Infinity];for(var x=0,S=r.length;x<S;x++)V(y,y,r[x]),M(v,v,r[x]);V(y,y,s[0]),M(v,v,s[1])}for(var x=0,S=r.length;x<S;x++){var B=r[x];if(e)i=r[x?x-1:S-1],h=r[(x+1)%S];else if(x===0||x===S-1){u.push(b(r[x]));continue}else i=r[x-1],h=r[x+1];f(a,h,i),p(a,a,n);var w=E(B,i),m=E(B,h),c=w+m;c!==0&&(w/=c,m/=c),p(A,a,-w),p(d,a,m);var o=C([],B,A),_=C([],B,d);s&&(M(o,o,y),V(o,o,v),M(_,_,y),V(_,_,v)),u.push(o),u.push(_)}return e&&u.push(u.shift()),u}We.exports=l},nKGa:function(We,Ce,I){We.exports=I.p+"static/export_exercise-template.f7655c19.png"},nPnh:function(We,Ce){var I=Math.round;function ae(p,E,C){if(!E)return;var b=E.x1,f=E.x2,l=E.y1,r=E.y2;p.x1=b,p.x2=f,p.y1=l,p.y2=r;var n=C&&C.lineWidth;if(!n)return;I(b*2)===I(f*2)&&(p.x1=p.x2=M(b,n,!0)),I(l*2)===I(r*2)&&(p.y1=p.y2=M(l,n,!0))}function V(p,E,C){if(!E)return;var b=E.x,f=E.y,l=E.width,r=E.height;p.x=b,p.y=f,p.width=l,p.height=r;var n=C&&C.lineWidth;if(!n)return;p.x=M(b,n,!0),p.y=M(f,n,!0),p.width=Math.max(M(b+l,n,!1)-p.x,l===0?0:1),p.height=Math.max(M(f+r,n,!1)-p.y,r===0?0:1)}function M(p,E,C){if(!E)return p;var b=I(p*2);return(b+I(E))%2===0?b/2:(b+(C?1:-1))/2}Ce.subPixelOptimizeLine=ae,Ce.subPixelOptimizeRect=V,Ce.subPixelOptimize=M},nVVt:function(We,Ce){We.exports={MODE_NUMBER:1<<0,MODE_ALPHA_NUM:1<<1,MODE_8BIT_BYTE:1<<2,MODE_KANJI:1<<3}},ni6a:function(We,Ce,I){var ae=I("pzxd"),V=I("mFDi"),M=I("gut8"),p=M.WILL_BE_RESTORED,E=new V,C=function(){};C.prototype={constructor:C,drawRectText:function(f,l){var r=this.style;l=r.textRect||l,this.__dirty&&ae.normalizeTextStyle(r,!0);var n=r.text;if(n!=null&&(n+=""),!ae.needDrawText(n,r))return;f.save();var e=this.transform;r.transformText?this.setTransform(f):e&&(E.copy(l),E.applyTransform(e),l=E),ae.renderText(this,f,n,r,l,p),f.restore()}};var b=C;We.exports=b},nukY:function(We,Ce){We.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(We,Ce){We.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(We,Ce,I){(function(ae){ae(I("VrN/"))})(function(ae){"use strict";var V=ae.Pos;function M(d,i){return d.line-i.line||d.ch-i.ch}var p="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",E=p+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",C=new RegExp("<(/?)(["+p+"]["+E+"]*)","g");function b(d,i,h,y){this.line=i,this.ch=h,this.cm=d,this.text=d.getLine(i),this.min=y?Math.max(y.from,d.firstLine()):d.firstLine(),this.max=y?Math.min(y.to-1,d.lastLine()):d.lastLine()}function f(d,i){var h=d.cm.getTokenTypeAt(V(d.line,i));return h&&/\btag\b/.test(h)}function l(d){return d.line>=d.max?void 0:(d.ch=0,d.text=d.cm.getLine(++d.line),!0)}function r(d){return d.line<=d.min?void 0:(d.text=d.cm.getLine(--d.line),d.ch=d.text.length,!0)}function n(d){for(;;){var i=d.text.indexOf(">",d.ch);if(i==-1){if(l(d))continue;return}if(!f(d,i+1)){d.ch=i+1;continue}var h=d.text.lastIndexOf("/",i),y=h>-1&&!/\S/.test(d.text.slice(h+1,i));return d.ch=i+1,y?"selfClose":"regular"}}function e(d){for(;;){var i=d.ch?d.text.lastIndexOf("<",d.ch-1):-1;if(i==-1){if(r(d))continue;return}if(!f(d,i+1)){d.ch=i;continue}C.lastIndex=i,d.ch=i;var h=C.exec(d.text);if(h&&h.index==i)return h}}function s(d){for(;;){C.lastIndex=d.ch;var i=C.exec(d.text);if(!i){if(l(d))continue;return}if(!f(d,i.index+1)){d.ch=i.index+1;continue}return d.ch=i.index+i[0].length,i}}function u(d){for(;;){var i=d.ch?d.text.lastIndexOf(">",d.ch-1):-1;if(i==-1){if(r(d))continue;return}if(!f(d,i+1)){d.ch=i;continue}var h=d.text.lastIndexOf("/",i),y=h>-1&&!/\S/.test(d.text.slice(h+1,i));return d.ch=i+1,y?"selfClose":"regular"}}function a(d,i){for(var h=[];;){var y=s(d),v,x=d.line,S=d.ch-(y?y[0].length:0);if(!y||!(v=n(d)))return;if(v=="selfClose")continue;if(y[1]){for(var B=h.length-1;B>=0;--B)if(h[B]==y[2]){h.length=B;break}if(B<0&&(!i||i==y[2]))return{tag:y[2],from:V(x,S),to:V(d.line,d.ch)}}else h.push(y[2])}}function A(d,i){for(var h=[];;){var y=u(d);if(!y)return;if(y=="selfClose"){e(d);continue}var v=d.line,x=d.ch,S=e(d);if(!S)return;if(S[1])h.push(S[2]);else{for(var B=h.length-1;B>=0;--B)if(h[B]==S[2]){h.length=B;break}if(B<0&&(!i||i==S[2]))return{tag:S[2],from:V(d.line,d.ch),to:V(v,x)}}}}ae.registerHelper("fold","xml",function(d,i){for(var h=new b(d,i.line,0);;){var y=s(h);if(!y||h.line!=i.line)return;var v=n(h);if(!v)return;if(!y[1]&&v!="selfClose"){var x=V(h.line,h.ch),S=a(h,y[2]);return S&&M(S.from,x)>0?{from:x,to:S.from}:null}}}),ae.findMatchingTag=function(d,i,h){var y=new b(d,i.line,i.ch,h);if(y.text.indexOf(">")==-1&&y.text.indexOf("<")==-1)return;var v=n(y),x=v&&V(y.line,y.ch),S=v&&e(y);if(!v||!S||M(y,i)>0)return;var B={from:V(y.line,y.ch),to:x,tag:S[2]};return v=="selfClose"?{open:B,close:null,at:"open"}:S[1]?{open:A(y,S[2]),close:B,at:"close"}:(y=new b(d,x.line,x.ch,h),{open:B,close:a(y,S[2]),at:"open"})},ae.findEnclosingTag=function(d,i,h,y){for(var v=new b(d,i.line,i.ch,h);;){var x=A(v,y);if(!x)break;var S=new b(d,i.line,i.ch,h),B=a(S,x.tag);if(B)return{open:x,close:B}}},ae.scanForClosingTag=function(d,i,h,y){var v=new b(d,i.line,i.ch,y?{from:0,to:y}:null);return a(v,h)}})},p5ED:function(We,Ce,I){"use strict";var ae=I("+L6B"),V=I("2/Rp"),M=I("5Dmo"),p=I("3S7+"),E=I("k1fw"),C=I("tJVT"),b=I("q1tI"),f=I.n(b),l=I("vHTk"),r=I.n(l),n=I("yEEn"),e=I("ZW9T"),s=I("1vsH"),u=I("m3rI");Ce.a=function(a){var A=a.name,d=a.data,i=a.theme,h=a.type,y=a.filename,v=a.monacoEditor,x=a.className,S=a.style,B=a.close,w=a.onClose,m=a.hasMask,c=a.otherData,o=Object(b.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),_=Object(C.a)(o,2),D=_[0],T=_[1],O=Object(b.useState)(""),R=Object(C.a)(O,2),U=R[0],F=R[1],Y,k=1024*1024,K=10*k,z=Object(b.useRef)();h==="office"&&(Y=Object(s.R)(d).filesize,Y>K&&(h="other")),y&&(v.filename=y),Object(b.useEffect)(function(){var X,te,oe=(X=document.cookie)===null||X===void 0||((te=X.replace(/\s/g,""))===null||te===void 0)?void 0:te.split(";");oe==null||oe.map(function(fe){var le=fe.split("=");le[0]==="_educoder_session"&&F(le[1])})},[]);var j=function(){if(d.startsWith("http")||d.startsWith("blob:")){Q();return}Object(s.x)(y||"educoder",d,y)},Q=function(){Object(s.v)(y||"educoder",decodeURIComponent(d))};return f.a.createElement("div",{style:Object(E.a)({},S||{}),className:"".concat(m&&r.a.bgBlack," ").concat(h?r.a.wrp:"hide")},B&&f.a.createElement("div",{className:r.a.close,ref:z},f.a.createElement(p.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return z.current}},f.a.createElement("span",{onClick:Q},f.a.createElement("i",{className:"icon-quxiaozhiding"}))),f.a.createElement(p.a,{title:"\u5173\u95ED",getPopupContainer:function(){return z.current}},f.a.createElement("span",{className:"",onClick:w},f.a.createElement("i",{className:"icon-guanbi1"})))),f.a.createElement("div",{className:"".concat(r.a[x]," ").concat(x," ").concat(r.a.monaco," ").concat(h==="txt"?"show":"hide")},h==="txt"&&f.a.createElement(e.b,v)),h==="audio"&&f.a.createElement("audio",{src:"".concat((d==null?void 0:d.indexOf("http://"))>-1||(d==null?void 0:d.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(d),autoPlay:!0}),h==="video"&&f.a.createElement(f.a.Fragment,null,(d==null?void 0:d.indexOf("http"))>-1?f.a.createElement("video",{controls:!0,src:"".concat(d),autoPlay:!0}):f.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(d),autoPlay:!0})),h==="office"&&f.a.createElement("iframe",{src:"https://view.officeapps.live.com/op/embed.aspx?src=".concat(d,"?").concat(encodeURIComponent("disposition=office&token=".concat(U)))}),(h==="xlsx"||h==="doc"||h==="pptx"||h==="docx")&&f.a.createElement("iframe",{src:"/react/build/office.html?key=".concat(c.key,"&url=").concat(u.a.API_SERVER+c.url,"&callbackUrl=").concat(u.a.API_SERVER+c.callbackUrl,"&fileType=").concat(c.fileType,"&title=").concat(c.title,"&model=").concat(c.model)}),h==="html"&&f.a.createElement("iframe",{src:d+"&disposition=inline"}),h==="pdf"&&f.a.createElement("embed",{className:r.a.embed,src:d,type:"application/pdf"}),h==="image"&&f.a.createElement("img",{src:"".concat((d==null?void 0:d.indexOf("http://"))>-1||(d==null?void 0:d.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(d)}),h==="other"&&f.a.createElement("div",null,f.a.createElement(V.a,{type:"primary",size:"large",onClick:j},f.a.createElement(n.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),h==="download"&&f.a.createElement(V.a,{type:"primary",size:"large",onClick:j},f.a.createElement(n.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(We,Ce,I){},ppsT:function(We,Ce,I){(function(ae){var V,V;!function(M){if(!0)window.OSS=M(),We.exports=M();else var p}(function(){var M;return function(){function p(E,C,b){function f(n,e){if(!C[n]){if(!E[n]){var s=typeof V=="function"&&V;if(!e&&s)return V(n,!0);if(l)return l(n,!0);var u=new Error("Cannot find module '"+n+"'");throw u.code="MODULE_NOT_FOUND",u}var a=C[n]={exports:{}};E[n][0].call(a.exports,function(A){return f(E[n][1][A]||A)},a,a.exports,p,E,C,b)}return C[n].exports}for(var l=typeof V=="function"&&V,r=0;r<b.length;r++)f(b[r]);return f}return p}()({1:[function(p,E,C){"use strict";var b=p("./browser/client");b.Buffer=p("buffer").Buffer,b.co=p("co"),b.urllib=p("../shims/xhr"),b.version=p("./browser/version").version,E.exports=b},{"../shims/xhr":244,"./browser/client":2,"./browser/version":5,buffer:38,co:41}],2:[function(p,E,C){(function(b,f){"use strict";function l(j){return j&&j.__esModule?j:{default:j}}function r(j,Q){return j[Q]||j[Q.toLowerCase()]}function n(j,Q){var X=o.parse(j);if(!X.protocol){var te=Q?"https://":"http://";X=o.parse(te+j)}if(X.protocol!=="http:"&&X.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return X}function e(j,Q,X){var te=X?"https://":"http://",oe=Q?"-internal.aliyuncs.com":".aliyuncs.com";return j.substr(0,"vpc100-oss-cn-".length)==="vpc100-oss-cn-"&&(oe=".aliyuncs.com"),o.parse(te+j+oe)}function s(){return document&&document.location&&document.location.protocol==="https:"}function u(j,Q){if(!(this instanceof u))return new u(j,Q);j&&j.inited?this.options=j:this.options=u.initOptions(j),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=O,this.agent=this.options.agent||K),this.ctx=Q,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}var a=p("babel-runtime/regenerator"),A=l(a),d=p("babel-runtime/core-js/object/keys"),i=l(d),h=p("debug")("ali-oss"),y=p("./../../shims/crypto/crypto.js"),v=p("path"),x=p("copy-to"),S=p("mime"),B=p("xml2js"),w=p("humanize-ms"),m=p("agentkeepalive"),c=p("merge-descriptors"),o=p("url"),_=p("is-type-of"),D=p("platform"),T=p("utility"),O=p("urllib"),R=p("./version"),U=p("dateformat"),F=p("bowser"),Y=p("../common/signUtils"),k=p("../common/utils"),K=new m;E.exports=u,u.initOptions=function(j){if(!j||!j.accessKeyId||!j.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");var Q=s(),X={region:"oss-cn-hangzhou",internal:!1,secure:Q,bucket:null,endpoint:null,cname:!1};if((0,i.default)(j).forEach(function(te){j[te]!==void 0&&(X[te]=j[te])}),X.accessKeyId=X.accessKeyId.trim(),X.accessKeySecret=X.accessKeySecret.trim(),X.timeout&&(X.timeout=w(X.timeout)),X.endpoint)X.endpoint=n(X.endpoint,X.secure);else{if(!X.region)throw new Error("require options.endpoint or options.region");X.endpoint=e(X.region,X.internal,X.secure)}return X.inited=!0,X};var z=u.prototype;c(z,p("./object")),c(z,p("./managed_upload")),c(z,p("../common/multipart")),c(z,p("../common/thunkpool.js")),u.Wrapper=p("./wrapper"),z.signature=function(j){return h("authorization stringToSign: %s",j),Y.computeSignature(this.options.accessKeySecret,j)},z.authorization=function(j,Q,X,te){var oe=Y.buildCanonicalString(j.toUpperCase(),Q,{headers:te,parameters:X});return Y.authorization(this.options.accessKeyId,this.options.accessKeySecret,oe)},z.createRequest=function(j){var Q={"x-oss-date":U(+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(j.headers).to(Q),r(Q,"Content-Type")||(j.mime===S.default_type&&(j.mime=""),j.mime&&j.mime.indexOf("/")>0?Q["Content-Type"]=j.mime:Q["Content-Type"]=S.getType(j.mime||v.extname(j.object||""))||"application/octet-stream"),j.content&&(Q["Content-Md5"]=y.createHash("md5").update(new f(j.content,"utf8")).digest("base64"),Q["Content-Length"]||(Q["Content-Length"]=j.content.length));var X=this._getResource(j);Q.authorization=this.authorization(j.method,X,j.subres,Q);var te=this._getReqUrl(j);h("request %s %s, with headers %j, !!stream: %s",j.method,te,Q,!!j.stream);var oe=j.timeout||this.options.timeout;return{url:te,params:{agent:this.agent,method:j.method,content:j.content,stream:j.stream,headers:Q,timeout:oe,writeStream:j.writeStream,customResponse:j.customResponse,ctx:j.ctx||this.ctx}}},z.request=A.default.mark(function j(Q){var X,te,oe,fe;return A.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return X=this.createRequest(Q),te=void 0,oe=void 0,le.prev=3,le.next=6,this.urllib.request(X.url,X.params);case 6:te=le.sent,h("response %s %s, got %s, headers: %j",Q.method,X.url,te.status,te.headers),le.next=13;break;case 10:le.prev=10,le.t0=le.catch(3),oe=le.t0;case 13:if(fe=void 0,!te||!Q.successStatuses||Q.successStatuses.indexOf(te.status)!==-1){le.next=26;break}return le.next=17,this.requestError(te);case 17:if(fe=le.sent,fe.code!=="RequestTimeTooSkewed"){le.next=23;break}return this.options.amendTimeSkewed=+new Date(fe.serverTime)-new Date,le.next=22,this.request(Q);case 22:return le.abrupt("return",le.sent);case 23:fe.params=Q,le.next=30;break;case 26:if(!oe){le.next=30;break}return le.next=29,this.requestError(oe);case 29:fe=le.sent;case 30:if(!fe){le.next=32;break}throw fe;case 32:if(!Q.xmlResponse){le.next=36;break}return le.next=35,this.parseXML(te.data);case 35:te.data=le.sent;case 36:return le.abrupt("return",te);case 37:case"end":return le.stop()}},j,this,[[3,10]])}),z._getResource=function(j){var Q="/";return j.bucket&&(Q+=j.bucket+"/"),j.object&&(Q+=j.object),Q},z._isIP=function(j){return k._isIP(j)},z._escape=function(j){return T.encodeURIComponent(j).replace(/%2F/g,"/")},z._getReqUrl=function(j){var Q={};x(this.options.endpoint).to(Q);var X=this._isIP(Q.hostname),te=this.options.cname;!j.bucket||te||X||(Q.host=j.bucket+"."+Q.host);var oe="/";j.bucket&&X&&(oe+=j.bucket+"/"),j.object&&(oe+=this._escape(j.object).replace(/\+/g,"%2B")),Q.pathname=oe;var fe={};if(j.query&&c(fe,j.query),j.subres){var le={};_.string(j.subres)?le[j.subres]="":_.array(j.subres)?j.subres.forEach(function(we){le[we]=""}):le=j.subres,c(fe,le)}return Q.query=fe,o.format(Q)},z._getUserAgent=function(){var j=b&&b.browser?"js":"nodejs",Q="aliyun-sdk-"+j+"/"+R.version,X=D.description;return!X&&b&&(X="Node.js "+b.version.slice(1)+" on "+b.platform+" "+b.arch),this._checkUserAgent(Q+" "+X)},z._checkUserAgent=function(j){return j.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},z.checkBrowserAndVersion=function(j,Q){return F.name===j&&F.version.split(".")[0]===Q},z.parseXML=function(j){return function(Q){f.isBuffer(j)&&(j=j.toString()),B.parseString(j,{explicitRoot:!1,explicitArray:!1},Q)}},z.requestError=A.default.mark(function j(Q){var X,te,oe,fe;return A.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:if(X=null,Q.data&&Q.data.length){le.next=5;break}Q.status===-1||Q.status===-2?(X=new Error(Q.message),X.name=Q.name,X.status=Q.status,X.code=Q.name):(Q.status===404?(X=new Error("Object not exists"),X.name="NoSuchKeyError",X.status=404,X.code="NoSuchKey"):Q.status===412?(X=new Error("Pre condition failed"),X.name="PreconditionFailedError",X.status=412,X.code="PreconditionFailed"):(X=new Error("Unknow error, status: "+Q.status),X.name="UnknowError",X.status=Q.status),X.requestId=Q.headers["x-oss-request-id"],X.host=""),le.next=30;break;case 5:return te=String(Q.data),h("request response error data: %s",te),oe=void 0,le.prev=8,le.next=11,this.parseXML(te)||{};case 11:oe=le.sent,le.next=21;break;case 14:return le.prev=14,le.t0=le.catch(8),h(te),le.t0.message+=`
raw xml: `+te,le.t0.status=Q.status,le.t0.requestId=Q.headers["x-oss-request-id"],le.abrupt("return",le.t0);case 21:fe=oe.Message||"unknow request error, status: "+Q.status,oe.Condition&&(fe+=" (condition: "+oe.Condition+")"),X=new Error(fe),X.name=oe.Code?oe.Code+"Error":"UnknowError",X.status=Q.status,X.code=oe.Code,X.requestId=oe.RequestId,X.hostId=oe.HostId,X.serverTime=oe.ServerTime;case 30:return h("generate error %j",X),le.abrupt("return",X);case 32:case"end":return le.stop()}},j,this,[[8,14]])})}).call(this,p("_process"),p("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(p,E,C){(function(b){"use strict";function f(x){return x&&x.__esModule?x:{default:x}}function l(x,S){if(!(this instanceof l))return new l(x,S);v.call(this,S),this.file=x,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var r=p("babel-runtime/core-js/array/from"),n=f(r),e=p("babel-runtime/regenerator"),s=f(e),u=p("is-type-of"),a=p("util"),A=p("path"),d=p("mime"),i=p("copy-to"),h=C;h.multipartUpload=s.default.mark(function x(S,B,w){var m,c,o,_,D,T,O,R,U;return s.default.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(this.resetCancelFlag(),w=w||{},!w.checkpoint||!w.checkpoint.uploadId){F.next=6;break}return F.next=5,this._resumeMultipart(w.checkpoint,w);case 5:return F.abrupt("return",F.sent);case 6:return m=102400,w.mime||(u.file(B)?w.mime=d.getType(A.extname(B.name)):u.blob(B)?w.mime=B.type:w.mime=d.getType(A.extname(B))),w.headers=w.headers||{},this._convertMetaToHeaders(w.meta,w.headers),F.next=12,this._getFileSize(B);case 12:if(!((c=F.sent)<m)){F.next=25;break}return o=this._createStream(B,0,c),w.contentLength=c,F.next=18,this.putStream(S,o,w);case 18:if(_=F.sent,!w||!w.progress){F.next=22;break}return F.next=22,w.progress(1);case 22:return D={res:_.res,bucket:this.options.bucket,name:S,etag:_.res.headers.etag},(w.headers&&w.headers["x-oss-callback"]||w.callback)&&(D.data=_.data),F.abrupt("return",D);case 25:if(!(w.partSize&&w.partSize<m)){F.next=27;break}throw new Error("partSize must not be smaller than "+m);case 27:return F.next=29,this.initMultipartUpload(S,w);case 29:if(T=F.sent,O=T.uploadId,R=this._getPartSize(c,w.partSize),U={file:B,name:S,fileSize:c,partSize:R,uploadId:O,doneParts:[]},!w||!w.progress){F.next=36;break}return F.next=36,w.progress(0,U,T.res);case 36:return F.next=38,this._resumeMultipart(U,w);case 38:return F.abrupt("return",F.sent);case 39:case"end":return F.stop()}},x,this)}),h._resumeMultipart=s.default.mark(function x(S,B){var w,m,c,o,_,D,T,O,R,U,F,Y,k,K,z,j,Q,X,te,oe,fe;return s.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:if(!this.isCancel()){le.next=2;break}throw this._makeCancelEvent();case 2:if(w=S.file,m=S.fileSize,c=S.partSize,o=S.uploadId,_=S.doneParts,D=S.name,T=[],_.length>0&&i(_).to(T),O=this._divideParts(m,c),R=O.length,U=!1,F=s.default.mark(function we(Ae,be){var me,he,ie;return s.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:if(Ae.isCancel()){pe.next=21;break}return pe.prev=1,me=O[be-1],he={stream:Ae._createStream(w,me.start,me.end),size:me.end-me.start},pe.next=6,Ae._uploadPart(D,o,be,he);case 6:if(ie=pe.sent,Ae.isCancel()||U){pe.next=13;break}if(S.doneParts.push({number:be,etag:ie.res.headers.etag}),T.push({number:be,etag:ie.res.headers.etag}),!B||!B.progress){pe.next=13;break}return pe.next=13,B.progress(_.length/R,S,ie.res);case 13:pe.next=21;break;case 15:if(pe.prev=15,pe.t0=pe.catch(1),Ae.isCancel()){pe.next=21;break}throw Ae.cancel(),pe.t0.partNum=be,pe.t0;case 21:case"end":return pe.stop()}},we,this,[[1,15]])}),Y=(0,n.default)(new Array(R),function(we,Ae){return Ae+1}),k=T.map(function(we){return we.number}),K=Y.filter(function(we){return k.indexOf(we)<0}),z=5,j=B.parallel||z,!this.checkBrowserAndVersion("Internet Explorer","10")&&j!==1){le.next=26;break}Q=0;case 16:if(!(Q<K.length)){le.next=24;break}if(!this.isCancel()){le.next=19;break}throw this._makeCancelEvent();case 19:return le.next=21,F(this,K[Q]);case 21:Q++,le.next=16;break;case 24:le.next=40;break;case 26:for(X=[],te=0;te<K.length;te++)X.push(F(this,K[te]));return le.next=30,this._thunkPool(X,j);case 30:if(oe=le.sent,U=!0,!(oe&&oe.length>0)){le.next=37;break}throw this.resetCancelFlag(),fe=oe[0],fe.message="Failed to upload some parts with error: "+fe.toString()+" part_num: "+fe.partNum,fe;case 37:if(!this.isCancel()){le.next=40;break}throw X=null,this._makeCancelEvent();case 40:return le.next=42,this.completeMultipartUpload(D,o,T,B);case 42:return le.abrupt("return",le.sent);case 43:case"end":return le.stop()}},x,this)}),u.file=function(x){return typeof File!="undefined"&&x instanceof File},u.blob=function(x){return typeof Blob!="undefined"&&x instanceof Blob},h._getFileSize=s.default.mark(function x(S){var B;return s.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(!u.buffer(S)){w.next=4;break}return w.abrupt("return",S.length);case 4:if(!u.blob(S)&&!u.file(S)){w.next=6;break}return w.abrupt("return",S.size);case 6:if(!u.string(S)){w.next=11;break}return w.next=9,this._statFile(S);case 9:return B=w.sent,w.abrupt("return",B.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return w.stop()}},x,this)});var y=p("stream"),v=y.Readable;a.inherits(l,v),l.prototype.readFileAndPush=function(x){if(this.fileBuffer)for(var S=!0;S&&this.fileBuffer&&this.start<this.fileBuffer.length;){var B=this.start,w=B+x;w=w>this.fileBuffer.length?this.fileBuffer.length:w,this.start=w,S=this.push(this.fileBuffer.slice(B,w))}},l.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 S=this;this.reader.onload=function(B){S.fileBuffer=new b(new Uint8Array(B.target.result)),S.file=null,S.readFileAndPush(x)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(x)},h._createStream=function(x,S,B){if(u.blob(x)||u.file(x))return new l(x.slice(S,B));throw new Error("_createStream requires File/String.")},h._getPartSize=function(x,S){return S?Math.max(Math.ceil(x/1e4),S):1048576},h._divideParts=function(x,S){for(var B=Math.ceil(x/S),w=[],m=0;m<B;m++){var c=S*m,o=Math.min(c+S,x);w.push({start:c,end:o})}return w},h._makeCancelEvent=function(){return{status:0,name:"cancel"}}}).call(this,p("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(p,E,C){"use strict";function b(S){return S&&S.__esModule?S:{default:S}}var f=p("babel-runtime/core-js/object/keys"),l=b(f),r=p("babel-runtime/regenerator"),n=b(r),e=p("debug")("ali-oss:object"),s=p("utility"),u=p("fs"),a=p("is-type-of"),A=p("url"),d=p("copy-to"),i=p("path"),h=p("mime"),y=p("../common/callback"),v=p("../common/signUtils"),x=C;x.append=n.default.mark(function S(B,w,m){var c;return n.default.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return m=m||{},m.position===void 0&&(m.position="0"),m.subres={append:"",position:m.position},m.method="POST",o.next=6,this.put(B,w,m);case 6:return c=o.sent,c.nextAppendPosition=c.res.headers["x-oss-next-append-position"],o.abrupt("return",c);case 9:case"end":return o.stop()}},S,this)}),x.put=n.default.mark(function S(B,w,m){var c,o,_,D,T,O;return n.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(c=void 0,m=m||{},!a.buffer(w)){R.next=6;break}c=w,R.next=18;break;case 6:if(!a.blob(w)&&!a.file(w)){R.next=17;break}return m.mime||(a.file(w)?m.mime=h.getType(i.extname(w.name)):m.mime=w.type),o=this._createStream(w,0,w.size),R.next=11,this._getFileSize(w);case 11:return m.contentLength=R.sent,R.next=14,this.putStream(B,o,m);case 14:return R.abrupt("return",R.sent);case 17:throw new TypeError("Must provide Buffer/Blob for put.");case 18:return m.headers=m.headers||{},this._convertMetaToHeaders(m.meta,m.headers),_=m.method||"PUT",D=this._objectRequestParams(_,B,m),y.encodeCallback(D,m),D.mime=m.mime,D.content=c,D.successStatuses=[200],R.next=28,this.request(D);case 28:return T=R.sent,O={name:B,url:this._objectUrl(B),res:T.res},D.headers&&D.headers["x-oss-callback"]&&(O.data=JSON.parse(T.data.toString())),R.abrupt("return",O);case 32:case"end":return R.stop()}},S,this)}),x.putStream=n.default.mark(function S(B,w,m){var c,o,_,D;return n.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return m=m||{},m.headers=m.headers||{},m.contentLength?m.headers["Content-Length"]=m.contentLength:m.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(m.meta,m.headers),c=m.method||"PUT",o=this._objectRequestParams(c,B,m),y.encodeCallback(o,m),o.mime=m.mime,o.stream=w,o.successStatuses=[200],T.next=12,this.request(o);case 12:return _=T.sent,D={name:B,url:this._objectUrl(B),res:_.res},o.headers&&o.headers["x-oss-callback"]&&(D.data=JSON.parse(_.data.toString())),T.abrupt("return",D);case 16:case"end":return T.stop()}},S,this)}),x.head=n.default.mark(function S(B,w){var m,c,o;return n.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return m=this._objectRequestParams("HEAD",B,w),m.successStatuses=[200,304],_.next=4,this.request(m);case 4:return c=_.sent,o={meta:null,res:c.res,status:c.status},c.status===200&&(0,l.default)(c.headers).forEach(function(D){D.indexOf("x-oss-meta-")===0&&(o.meta||(o.meta={}),o.meta[D.substring(11)]=c.headers[D])}),_.abrupt("return",o);case 8:case"end":return _.stop()}},S,this)}),x.get=n.default.mark(function S(B,w,m){var c,o,_,D;return n.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return c=null,o=!1,a.writableStream(w)?c=w:a.string(w)?(c=u.createWriteStream(w),o=!0):m=w,m=m||{},m.process&&(m.subres=m.subres||{},m.subres["x-oss-process"]=m.process),_=void 0,T.prev=6,D=this._objectRequestParams("GET",B,m),D.writeStream=c,D.successStatuses=[200,206,304],T.next=12,this.request(D);case 12:_=T.sent,o&&c.destroy(),T.next=24;break;case 16:if(T.prev=16,T.t0=T.catch(6),!o){T.next=23;break}return c.destroy(),e("get error: %s, delete the exists file %s",T.t0,w),T.next=23,this._deleteFileSafe(w);case 23:throw T.t0;case 24:return T.abrupt("return",{res:_.res,content:_.data});case 25:case"end":return T.stop()}},S,this,[[6,16]])}),x.getStream=n.default.mark(function S(B,w){var m,c;return n.default.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return w=w||{},m=this._objectRequestParams("GET",B,w),m.customResponse=!0,m.successStatuses=[200,206,304],o.next=6,this.request(m);case 6:return c=o.sent,o.abrupt("return",{stream:c.res,res:{status:c.status,headers:c.headers}});case 8:case"end":return o.stop()}},S,this)}),x.delete=n.default.mark(function S(B,w){var m,c;return n.default.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return m=this._objectRequestParams("DELETE",B,w),m.successStatuses=[204],o.next=4,this.request(m);case 4:return c=o.sent,o.abrupt("return",{res:c.res});case 6:case"end":return o.stop()}},S,this)}),x.deleteMulti=n.default.mark(function S(B,w){var m,c,o,_,D,T;return n.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:for(w=w||{},m=`<?xml version="1.0" encoding="UTF-8"?>
<Delete>
`,w.quiet?m+=` <Quiet>true</Quiet>
`:m+=` <Quiet>false</Quiet>
`,c=0;c<B.length;c++)m+=" <Object><Key>"+s.escape(this._objectName(B[c]))+`</Key></Object>
`;return m+="</Delete>",e("delete multi objects: %s",m),w.subres="delete",o=this._objectRequestParams("POST","",w),o.mime="xml",o.content=m,o.xmlResponse=!0,o.successStatuses=[200],O.next=14,this.request(o);case 14:return _=O.sent,D=_.data,T=D&&D.Deleted||null,T&&(Array.isArray(T)||(T=[T]),T=T.map(function(R){return R.Key})),O.abrupt("return",{res:_.res,deleted:T});case 19:case"end":return O.stop()}},S,this)}),x.copy=n.default.mark(function S(B,w,m){var c,o,_;return n.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return m=m||{},m.headers=m.headers||{},(0,l.default)(m.headers).forEach(function(T){m.headers["x-oss-copy-source-"+T.toLowerCase()]=m.headers[T]}),m.meta&&(m.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(m.meta,m.headers),w=w[0]!=="/"?"/"+this.options.bucket+"/"+encodeURIComponent(w):"/"+encodeURIComponent(w.slice(1)),m.headers["x-oss-copy-source"]=w,c=this._objectRequestParams("PUT",B,m),c.xmlResponse=!0,c.successStatuses=[200,304],D.next=12,this.request(c);case 12:return o=D.sent,_=o.data,_&&(_={etag:_.ETag,lastModified:_.LastModified}),D.abrupt("return",{data:_,res:o.res});case 16:case"end":return D.stop()}},S,this)}),x.putMeta=n.default.mark(function S(B,w,m){return n.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.copy(B,B,{meta:w||{},timeout:m&&m.timeout,ctx:m&&m.ctx});case 2:return c.abrupt("return",c.sent);case 3:case"end":return c.stop()}},S,this)}),x.list=n.default.mark(function S(B,w){var m,c,o,_,D;return n.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return m=this._objectRequestParams("GET","",w),m.query=B,m.xmlResponse=!0,m.successStatuses=[200],T.next=6,this.request(m);case 6:return c=T.sent,o=c.data.Contents,_=this,o&&(Array.isArray(o)||(o=[o]),o=o.map(function(O){return{name:O.Key,url:_._objectUrl(O.Key),lastModified:O.LastModified,etag:O.ETag,type:O.Type,size:Number(O.Size),storageClass:O.StorageClass,owner:{id:O.Owner.ID,displayName:O.Owner.DisplayName}}})),D=c.data.CommonPrefixes||null,D&&(Array.isArray(D)||(D=[D]),D=D.map(function(O){return O.Prefix})),T.abrupt("return",{res:c.res,objects:o,prefixes:D,nextMarker:c.data.NextMarker||null,isTruncated:c.data.IsTruncated==="true"});case 13:case"end":return T.stop()}},S,this)}),x.putACL=n.default.mark(function S(B,w,m){var c,o;return n.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return m=m||{},m.subres="acl",m.headers=m.headers||{},m.headers["x-oss-object-acl"]=w,B=this._objectName(B),c=this._objectRequestParams("PUT",B,m),c.successStatuses=[200],_.next=9,this.request(c);case 9:return o=_.sent,_.abrupt("return",{res:o.res});case 11:case"end":return _.stop()}},S,this)}),x.getACL=n.default.mark(function S(B,w){var m,c;return n.default.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return w=w||{},w.subres="acl",B=this._objectName(B),m=this._objectRequestParams("GET",B,w),m.successStatuses=[200],m.xmlResponse=!0,o.next=8,this.request(m);case 8:return c=o.sent,o.abrupt("return",{acl:c.data.AccessControlList.Grant,owner:{id:c.data.Owner.ID,displayName:c.data.Owner.DisplayName},res:c.res});case 10:case"end":return o.stop()}},S,this)}),x.restore=n.default.mark(function S(B,w){var m,c;return n.default.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return w=w||{},w.subres="restore",m=this._objectRequestParams("POST",B,w),m.successStatuses=[202],o.next=6,this.request(m);case 6:return c=o.sent,o.abrupt("return",{res:c.res});case 8:case"end":return o.stop()}},S,this)}),x.signatureUrl=function(S,B){B=B||{},S=this._objectName(S),B.method=B.method||"GET";var w=s.timestamp()+(B.expires||1800),m={bucket:this.options.bucket,object:S},c=this._getResource(m);this.options.stsToken&&(B["security-token"]=this.options.stsToken);var o=v._signatureForURL(this.options.accessKeySecret,B,c,w),_=A.parse(this._getReqUrl(m));return _.query={OSSAccessKeyId:this.options.accessKeyId,Expires:w,Signature:o.Signature},d(o.subResource).to(_.query),_.format()},x.getObjectUrl=function(S,B){return B?B[B.length-1]!=="/"&&(B+="/"):B=this.options.endpoint.format(),B+this._escape(this._objectName(S))},x._objectUrl=function(S){return this._getReqUrl({bucket:this.options.bucket,object:S})},x.generateObjectUrl=function(S,B){if(B)B[B.length-1]!=="/"&&(B+="/");else{B=this.options.endpoint.format();var w=A.parse(B),m=this.options.bucket;w.hostname=m+"."+w.hostname,w.host=m+"."+w.host,B=w.format()}return B+this._escape(this._objectName(S))},x._objectRequestParams=function(S,B,w){if(!this.options.bucket)throw new Error("Please create a bucket first");w=w||{},B=this._objectName(B);var m={object:B,bucket:this.options.bucket,method:S,subres:w&&w.subres,timeout:w&&w.timeout,ctx:w&&w.ctx};return w.headers&&(m.headers={},d(w.headers).to(m.headers)),m},x._objectName=function(S){return S.replace(/^\/+/,"")},x._statFile=function(S){return function(B){u.stat(S,B)}},x._convertMetaToHeaders=function(S,B){S&&(0,l.default)(S).forEach(function(w){B["x-oss-meta-"+w]=S[w]})},x._deleteFileSafe=function(S){return function(B){u.exists(S,function(w){w?u.unlink(S,function(m){m&&e("unlink %j error: %s",S,m),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(p,E,C){"use strict";C.version="5.3.1"},{}],6:[function(p,E,C){"use strict";function b(i){return i&&i.__esModule?i:{default:i}}function f(i){return i&&typeof i.next=="function"&&typeof i.throw=="function"}function l(i){if(!i)return!1;var h=i.constructor;return!!h&&(h.name==="GeneratorFunction"||h.displayName==="GeneratorFunction"||f(h.prototype)||f(i.prototype))}function r(i,h){var y=new i(h),v=(0,a.default)(y),x=(0,a.default)((0,s.default)(y));v.concat(x).forEach(function(S){l(y[S])?this[S]=A.wrap(y[S]).bind(y):this[S]=y[S]},this)}function n(i){if(!(this instanceof n))return new n(i);r.call(this,d,i)}var e=p("babel-runtime/core-js/object/get-prototype-of"),s=b(e),u=p("babel-runtime/core-js/object/keys"),a=b(u),A=p("co"),d=p("./client");E.exports=n,n.STS=function i(h){if(!(this instanceof i))return new i(h);r.call(this,d.STS,h)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(p,E,C){(function(b){"use strict";function f(s){return s&&s.__esModule?s:{default:s}}var l=p("babel-runtime/core-js/object/keys"),r=f(l),n=p("babel-runtime/core-js/json/stringify"),e=f(n);C.encodeCallback=function(s,u){if(s.headers=s.headers||{},!Object.prototype.hasOwnProperty.call(s.headers,"x-oss-callback")&&u.callback){var a={callbackUrl:encodeURI(u.callback.url),callbackBody:u.callback.body};u.callback.host&&(a.callbackHost=u.callback.host),u.callback.contentType&&(a.callbackBodyType=u.callback.contentType);var A=new b((0,e.default)(a)).toString("base64");if(s.headers["x-oss-callback"]=A,u.callback.customValue){var d={};(0,r.default)(u.callback.customValue).forEach(function(i){d["x:"+i]=u.callback.customValue[i]}),s.headers["x-oss-callback-var"]=new b((0,e.default)(d)).toString("base64")}}}}).call(this,p("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38}],8:[function(p,E,C){"use strict";var b=p("babel-runtime/regenerator"),f=function(e){return e&&e.__esModule?e:{default:e}}(b),l=p("copy-to"),r=p("./callback"),n=C;n.listUploads=f.default.mark(function e(s,u){var a,A,d,i;return f.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return u=u||{},a={},l(u).to(a),a.subres="uploads",A=this._objectRequestParams("GET","",a),A.query=s,A.xmlResponse=!0,A.successStatuses=[200],h.next=10,this.request(A);case 10:return d=h.sent,i=d.data.Upload||[],Array.isArray(i)||(i=[i]),i=i.map(function(y){return{name:y.Key,uploadId:y.UploadId,initiated:y.Initiated}}),h.abrupt("return",{res:d.res,uploads:i,bucket:d.data.Bucket,nextKeyMarker:d.data.NextKeyMarker,nextUploadIdMarker:d.data.NextUploadIdMarker,isTruncated:d.data.IsTruncated==="true"});case 15:case"end":return h.stop()}},e,this)}),n.listParts=f.default.mark(function e(s,u,a,A){var d,i,h;return f.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return A=A||{},d={},l(A).to(d),d.subres={uploadId:u},i=this._objectRequestParams("GET",s,d),i.query=a,i.xmlResponse=!0,i.successStatuses=[200],y.next=10,this.request(i);case 10:return h=y.sent,y.abrupt("return",{res:h.res,uploadId:h.data.UploadId,bucket:h.data.Bucket,name:h.data.Key,partNumberMarker:h.data.PartNumberMarker,nextPartNumberMarker:h.data.NextPartNumberMarker,maxParts:h.data.MaxParts,isTruncated:h.data.IsTruncated,parts:h.data.Part||[]});case 12:case"end":return y.stop()}},e,this)}),n.abortMultipartUpload=f.default.mark(function e(s,u,a){var A,d,i;return f.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return this.cancel(),a=a||{},A={},l(a).to(A),A.subres={uploadId:u},d=this._objectRequestParams("DELETE",s,A),d.successStatuses=[204],h.next=9,this.request(d);case 9:return i=h.sent,h.abrupt("return",{res:i.res});case 11:case"end":return h.stop()}},e,this)}),n.initMultipartUpload=f.default.mark(function e(s,u){var a,A,d;return f.default.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return u=u||{},a={},l(u).to(a),a.headers=a.headers||{},this._convertMetaToHeaders(u.meta,a.headers),a.subres="uploads",A=this._objectRequestParams("POST",s,a),A.mime=u.mime,A.xmlResponse=!0,A.successStatuses=[200],i.next=12,this.request(A);case 12:return d=i.sent,i.abrupt("return",{res:d.res,bucket:d.data.Bucket,name:d.data.Key,uploadId:d.data.UploadId});case 14:case"end":return i.stop()}},e,this)}),n.uploadPart=f.default.mark(function e(s,u,a,A,d,i,h){var y;return f.default.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return y={stream:this._createStream(A,d,i),size:i-d},v.next=3,this._uploadPart(s,u,a,y,h);case 3:return v.abrupt("return",v.sent);case 4:case"end":return v.stop()}},e,this)}),n.completeMultipartUpload=f.default.mark(function e(s,u,a,A){var d,i,h,y,v,x,S,B;return f.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:for(d=a.concat().sort(function(m,c){return m.number-c.number}).filter(function(m,c,o){return!c||m.number!==o[c-1].number}),i=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,h=0;h<d.length;h++)y=d[h],i+=`<Part>
`,i+="<PartNumber>"+y.number+`</PartNumber>
`,i+="<ETag>"+y.etag+`</ETag>
`,i+=`</Part>
`;return i+="</CompleteMultipartUpload>",A=A||{},v={},l(A).to(v),v.subres={uploadId:u},x=this._objectRequestParams("POST",s,v),r.encodeCallback(x,v),x.mime="xml",x.content=i,x.headers&&x.headers["x-oss-callback"]||(x.xmlResponse=!0),x.successStatuses=[200],w.next=16,this.request(x);case 16:return S=w.sent,B={res:S.res,bucket:x.bucket,name:s,etag:S.res.headers.etag},x.headers&&x.headers["x-oss-callback"]&&(B.data=JSON.parse(S.data.toString())),w.abrupt("return",B);case 20:case"end":return w.stop()}},e,this)}),n._uploadPart=f.default.mark(function e(s,u,a,A,d){var i,h,y;return f.default.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return d=d||{},i={},l(d).to(i),i.headers={"Content-Length":A.size},i.subres={partNumber:a,uploadId:u},h=this._objectRequestParams("PUT",s,i),h.mime=i.mime,h.stream=A.stream,h.successStatuses=[200],v.next=11,this.request(h);case 11:return y=v.sent,A.stream=null,h.stream=null,v.abrupt("return",{name:s,etag:y.res.headers.etag,res:y.res});case 15:case"end":return v.stop()}},e,this)})},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(p,E,C){(function(b){"use strict";function f(a){return a&&a.__esModule?a:{default:a}}var l=p("babel-runtime/core-js/json/stringify"),r=f(l),n=p("babel-runtime/core-js/object/keys"),e=f(n),s=p("./../../shims/crypto/crypto.js"),u=p("is-type-of");C.buildCanonicalizedResource=function(a,A){var d=""+a,i="?";if(u.string(A)&&A.trim()!=="")d+=i+A;else if(u.array(A))A.sort(),d+=i+A.join("&");else if(A){var h=function(v,x){return v[0]>x[0]?1:v[0]<x[0]?-1:0},y=function(v){d+=i+v,A[v]&&(d+="="+A[v]),i="&"};(0,e.default)(A).sort(h).forEach(y)}return d},C.buildCanonicalString=function(a,A,d,i){d=d||{};var h=d.headers||{},y=[],v={},x=[a.toUpperCase(),h["Content-Md5"]||"",h["Content-Type"]||h["Content-Type".toLowerCase()],i||h["x-oss-date"]];return(0,e.default)(h).forEach(function(S){var B=S.toLowerCase();B.indexOf("x-oss-")===0&&(v[B]=String(h[S]).trim())}),(0,e.default)(v).sort().forEach(function(S){y.push(S+":"+v[S])}),x=x.concat(y),x.push(this.buildCanonicalizedResource(A,d.parameters)),x.join(`
`)},C.computeSignature=function(a,A){return s.createHmac("sha1",a).update(new b(A,"utf8")).digest("base64")},C.authorization=function(a,A,d){return"OSS "+a+":"+this.computeSignature(A,d)},C._signatureForURL=function(a,A,d,i){var h={},y={};if(A.process&&(y["x-oss-process"]=A.process),A.response&&(0,e.default)(A.response).forEach(function(B){var w="response-"+B.toLowerCase();y[w]=A.response[B]}),(0,e.default)(A).forEach(function(B){var w=B.toLowerCase(),m=A[B];w.indexOf("x-oss-")===0?h[w]=m:w.indexOf("content-md5")===0||w.indexOf("content-type")===0?h[B]=m:w!=="expires"&&w!=="response"&&w!=="process"&&w!=="method"&&(y[w]=m)}),Object.prototype.hasOwnProperty.call(A,"security-token")&&(y["security-token"]=A["security-token"]),Object.prototype.hasOwnProperty.call(A,"callback")){var v={callbackUrl:encodeURI(A.callback.url),callbackBody:A.callback.body};if(A.callback.host&&(v.callbackHost=A.callback.host),A.callback.contentType&&(v.callbackBodyType=A.callback.contentType),y.callback=new b((0,r.default)(v)).toString("base64"),A.callback.customValue){var x={};(0,e.default)(A.callback.customValue).forEach(function(B){x["x:"+B]=A.callback.customValue[B]}),y["callback-var"]=new b((0,r.default)(x)).toString("base64")}}var S=this.buildCanonicalString(A.method,d,{headers:h,parameters:y},i.toString());return{Signature:this.computeSignature(a,S),subResource:y}}}).call(this,p("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(p,E,C){"use strict";var b=p("babel-runtime/regenerator"),f=function(s){return s&&s.__esModule?s:{default:s}}(b),l=p("co"),r=p("co-priority-queue"),n=p("any-promise"),e=C;e._thunkPool=function(s,u){function a(y,v){++i===y.length&&v(h)}function A(y,v){function x(){var o;return f.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:o=void 0;case 1:if(d.isCancel()){_.next=9;break}return _.next=4,w.next();case 4:return o=_.sent,_.next=7,o();case 7:_.next=1;break;case 9:m+=1,m===y&&(w.fns=[],w.buffer=[],v(h));case 11:case"end":return _.stop()}},B,this)}function S(o){console.error(o.stack)}for(var B=f.default.mark(x),w=new r,m=0,c=0;c<y;c++)l(x).catch(S);return function(o,_){return function(D){w.push(f.default.mark(function T(){return f.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.prev=0,O.t0=D,O.next=4,o;case 4:O.t1=O.sent,(0,O.t0)(null,O.t1),O.next=11;break;case 8:O.prev=8,O.t2=O.catch(0),D(O.t2);case 11:case"end":return O.stop()}},T,this,[[0,8]])}),_)}}}var d=this,i=0,h=[];return new n(function(y){function v(m){return f.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,B(s[m]);case 2:a(s,y);case 3:case"end":return c.stop()}},S,this)}function x(m){h.push(m),a(s,y)}for(var S=f.default.mark(v),B=new A(u,y),w=0;w<s.length;w++)l(v(w)).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(p,E,C){"use strict";C._isIP=function(b){var f=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,l=/^\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 f.test(b)||l.test(b)}},{}],12:[function(p,E,C){function b(){}E.exports=b,E.exports.HttpsAgent=b},{}],13:[function(p,E,C){E.exports=p("./register")().Promise},{"./register":15}],14:[function(p,E,C){"use strict";var b=null;E.exports=function(f,l){return function(r,n){r=r||null,n=n||{};var e=n.global!==!1;if(b===null&&e&&(b=f["@@any-promise/REGISTRATION"]||null),b!==null&&r!==null&&b.implementation!==r)throw new Error('any-promise already defined as "'+b.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return b===null&&(b=r!==null&&n.Promise!==void 0?{Promise:n.Promise,implementation:r}:l(r),e&&(f["@@any-promise/REGISTRATION"]=b)),b}}},{}],15:[function(p,E,C){"use strict";function b(){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"}}E.exports=p("./loader")(window,b)},{"./loader":14}],16:[function(p,E,C){E.exports={default:p("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":44}],17:[function(p,E,C){E.exports={default:p("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":45}],18:[function(p,E,C){E.exports={default:p("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":46}],19:[function(p,E,C){E.exports={default:p("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":47}],20:[function(p,E,C){E.exports={default:p("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":48}],21:[function(p,E,C){E.exports={default:p("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":49}],22:[function(p,E,C){E.exports={default:p("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":50}],23:[function(p,E,C){E.exports={default:p("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":51}],24:[function(p,E,C){E.exports={default:p("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":52}],25:[function(p,E,C){E.exports={default:p("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":53}],26:[function(p,E,C){E.exports={default:p("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":54}],27:[function(p,E,C){E.exports={default:p("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":56}],28:[function(p,E,C){E.exports={default:p("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":55}],29:[function(p,E,C){E.exports={default:p("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":57}],30:[function(p,E,C){"use strict";C.__esModule=!0,C.default=function(b,f){if(!(b instanceof f))throw new TypeError("Cannot call a class as a function")}},{}],31:[function(p,E,C){"use strict";C.__esModule=!0;var b=p("../core-js/object/define-property"),f=function(l){return l&&l.__esModule?l:{default:l}}(b);C.default=function(){function l(r,n){for(var e=0;e<n.length;e++){var s=n[e];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),(0,f.default)(r,s.key,s)}}return function(r,n,e){return n&&l(r.prototype,n),e&&l(r,e),r}}()},{"../core-js/object/define-property":20}],32:[function(p,E,C){"use strict";function b(s){return s&&s.__esModule?s:{default:s}}C.__esModule=!0;var f=p("../core-js/symbol/iterator"),l=b(f),r=p("../core-js/symbol"),n=b(r),e=typeof n.default=="function"&&typeof l.default=="symbol"?function(s){return typeof s}:function(s){return s&&typeof n.default=="function"&&s.constructor===n.default&&s!==n.default.prototype?"symbol":typeof s};C.default=typeof n.default=="function"&&e(l.default)==="symbol"?function(s){return s===void 0?"undefined":e(s)}:function(s){return s&&typeof n.default=="function"&&s.constructor===n.default&&s!==n.default.prototype?"symbol":s===void 0?"undefined":e(s)}},{"../core-js/symbol":27,"../core-js/symbol/iterator":29}],33:[function(p,E,C){E.exports=p("regenerator-runtime")},{"regenerator-runtime":191}],34:[function(p,E,C){"use strict";function b(y){var v=y.length;if(v%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var x=y.indexOf("=");return x===-1&&(x=v),[x,x===v?0:4-x%4]}function f(y){var v=b(y),x=v[0],S=v[1];return 3*(x+S)/4-S}function l(y,v,x){return 3*(v+x)/4-x}function r(y){for(var v,x=b(y),S=x[0],B=x[1],w=new A(l(y,S,B)),m=0,c=B>0?S-4:S,o=0;o<c;o+=4)v=a[y.charCodeAt(o)]<<18|a[y.charCodeAt(o+1)]<<12|a[y.charCodeAt(o+2)]<<6|a[y.charCodeAt(o+3)],w[m++]=v>>16&255,w[m++]=v>>8&255,w[m++]=255&v;return B===2&&(v=a[y.charCodeAt(o)]<<2|a[y.charCodeAt(o+1)]>>4,w[m++]=255&v),B===1&&(v=a[y.charCodeAt(o)]<<10|a[y.charCodeAt(o+1)]<<4|a[y.charCodeAt(o+2)]>>2,w[m++]=v>>8&255,w[m++]=255&v),w}function n(y){return u[y>>18&63]+u[y>>12&63]+u[y>>6&63]+u[63&y]}function e(y,v,x){for(var S,B=[],w=v;w<x;w+=3)S=(y[w]<<16&16711680)+(y[w+1]<<8&65280)+(255&y[w+2]),B.push(n(S));return B.join("")}function s(y){for(var v,x=y.length,S=x%3,B=[],w=0,m=x-S;w<m;w+=16383)B.push(e(y,w,w+16383>m?m:w+16383));return S===1?(v=y[x-1],B.push(u[v>>2]+u[v<<4&63]+"==")):S===2&&(v=(y[x-2]<<8)+y[x-1],B.push(u[v>>10]+u[v>>4&63]+u[v<<2&63]+"=")),B.join("")}C.byteLength=f,C.toByteArray=r,C.fromByteArray=s;for(var u=[],a=[],A=typeof Uint8Array!="undefined"?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,h=d.length;i<h;++i)u[i]=d[i],a[d.charCodeAt(i)]=i;a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},{}],35:[function(p,E,C){!function(b,f,l){E!==void 0&&E.exports?E.exports=l():typeof M=="function"&&M.amd?M("bowser",l):b.bowser=l()}(this,0,function(){function b(a){function A(j){var Q=a.match(j);return Q&&Q.length>1&&Q[1]||""}function d(j){var Q=a.match(j);return Q&&Q.length>1&&Q[2]||""}var i,h=A(/(ipod|iphone|ipad)/i).toLowerCase(),y=/like android/i.test(a),v=!y&&/android/i.test(a),x=/nexus\s*[0-6]\s*/i.test(a),S=!x&&/nexus\s*[0-9]+/i.test(a),B=/CrOS/.test(a),w=/silk/i.test(a),m=/sailfish/i.test(a),c=/tizen/i.test(a),o=/(web|hpw)os/i.test(a),_=/windows phone/i.test(a),D=(/SamsungBrowser/i.test(a),!_&&/windows/i.test(a)),T=!h&&!w&&/macintosh/i.test(a),O=!v&&!m&&!c&&!o&&/linux/i.test(a),R=d(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),U=A(/version\/(\d+(\.\d+)?)/i),F=/tablet/i.test(a)&&!/tablet pc/i.test(a),Y=!F&&/[^-]mobi/i.test(a),k=/xbox/i.test(a);/opera/i.test(a)?i={name:"Opera",opera:s,version:U||A(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(a)?i={name:"Opera",opera:s,version:A(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||U}:/SamsungBrowser/i.test(a)?i={name:"Samsung Internet for Android",samsungBrowser:s,version:U||A(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(a)?i={name:"Opera Coast",coast:s,version:U||A(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(a)?i={name:"Yandex Browser",yandexbrowser:s,version:U||A(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(a)?i={name:"UC Browser",ucbrowser:s,version:A(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(a)?i={name:"Maxthon",maxthon:s,version:A(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(a)?i={name:"Epiphany",epiphany:s,version:A(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(a)?i={name:"Puffin",puffin:s,version:A(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(a)?i={name:"Sleipnir",sleipnir:s,version:A(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(a)?i={name:"K-Meleon",kMeleon:s,version:A(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:_?(i={name:"Windows Phone",osname:"Windows Phone",windowsphone:s},R?(i.msedge=s,i.version=R):(i.msie=s,i.version=A(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(a)?i={name:"Internet Explorer",msie:s,version:A(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:B?i={name:"Chrome",osname:"Chrome OS",chromeos:s,chromeBook:s,chrome:s,version:A(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(a)?i={name:"Microsoft Edge",msedge:s,version:R}:/vivaldi/i.test(a)?i={name:"Vivaldi",vivaldi:s,version:A(/vivaldi\/(\d+(\.\d+)?)/i)||U}:m?i={name:"Sailfish",osname:"Sailfish OS",sailfish:s,version:A(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(a)?i={name:"SeaMonkey",seamonkey:s,version:A(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(a)?(i={name:"Firefox",firefox:s,version:A(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(a)&&(i.firefoxos=s,i.osname="Firefox OS")):w?i={name:"Amazon Silk",silk:s,version:A(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(a)?i={name:"PhantomJS",phantom:s,version:A(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(a)?i={name:"SlimerJS",slimer:s,version:A(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(a)||/rim\stablet/i.test(a)?i={name:"BlackBerry",osname:"BlackBerry OS",blackberry:s,version:U||A(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:o?(i={name:"WebOS",osname:"WebOS",webos:s,version:U||A(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(a)&&(i.touchpad=s)):/bada/i.test(a)?i={name:"Bada",osname:"Bada",bada:s,version:A(/dolfin\/(\d+(\.\d+)?)/i)}:c?i={name:"Tizen",osname:"Tizen",tizen:s,version:A(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||U}:/qupzilla/i.test(a)?i={name:"QupZilla",qupzilla:s,version:A(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||U}:/chromium/i.test(a)?i={name:"Chromium",chromium:s,version:A(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||U}:/chrome|crios|crmo/i.test(a)?i={name:"Chrome",chrome:s,version:A(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:v?i={name:"Android",version:U}:/safari|applewebkit/i.test(a)?(i={name:"Safari",safari:s},U&&(i.version=U)):h?(i={name:h=="iphone"?"iPhone":h=="ipad"?"iPad":"iPod"},U&&(i.version=U)):i=/googlebot/i.test(a)?{name:"Googlebot",googlebot:s,version:A(/googlebot\/(\d+(\.\d+))/i)||U}:{name:A(/^(.*)\/(.*) /),version:d(/^(.*)\/(.*) /)},!i.msedge&&/(apple)?webkit/i.test(a)?(/(apple)?webkit\/537\.36/i.test(a)?(i.name=i.name||"Blink",i.blink=s):(i.name=i.name||"Webkit",i.webkit=s),!i.version&&U&&(i.version=U)):!i.opera&&/gecko\//i.test(a)&&(i.name=i.name||"Gecko",i.gecko=s,i.version=i.version||A(/gecko\/(\d+(\.\d+)?)/i)),i.windowsphone||!v&&!i.silk?!i.windowsphone&&h?(i[h]=s,i.ios=s,i.osname="iOS"):T?(i.mac=s,i.osname="macOS"):k?(i.xbox=s,i.osname="Xbox"):D?(i.windows=s,i.osname="Windows"):O&&(i.linux=s,i.osname="Linux"):(i.android=s,i.osname="Android");var K="";i.windows?K=function(j){switch(j){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}}(A(/Windows ((NT|XP)( \d\d?.\d)?)/i)):i.windowsphone?K=A(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):i.mac?(K=A(/Mac OS X (\d+([_\.\s]\d+)*)/i),K=K.replace(/[_\s]/g,".")):h?(K=A(/os (\d+([_\s]\d+)*) like mac os x/i),K=K.replace(/[_\s]/g,".")):v?K=A(/android[ \/-](\d+(\.\d+)*)/i):i.webos?K=A(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):i.blackberry?K=A(/rim\stablet\sos\s(\d+(\.\d+)*)/i):i.bada?K=A(/bada\/(\d+(\.\d+)*)/i):i.tizen&&(K=A(/tizen[\/\s](\d+(\.\d+)*)/i)),K&&(i.osversion=K);var z=!i.windows&&K.split(".")[0];return F||S||h=="ipad"||v&&(z==3||z>=4&&!Y)||i.silk?i.tablet=s:(Y||h=="iphone"||h=="ipod"||v||x||i.blackberry||i.webos||i.bada)&&(i.mobile=s),i.msedge||i.msie&&i.version>=10||i.yandexbrowser&&i.version>=15||i.vivaldi&&i.version>=1||i.chrome&&i.version>=20||i.samsungBrowser&&i.version>=4||i.firefox&&i.version>=20||i.safari&&i.version>=6||i.opera&&i.version>=10||i.ios&&i.osversion&&i.osversion.split(".")[0]>=6||i.blackberry&&i.version>=10.1||i.chromium&&i.version>=20?i.a=s:i.msie&&i.version<10||i.chrome&&i.version<20||i.firefox&&i.version<20||i.safari&&i.version<6||i.opera&&i.version<10||i.ios&&i.osversion&&i.osversion.split(".")[0]<6||i.chromium&&i.version<20?i.c=s:i.x=s,i}function f(a){return a.split(".").length}function l(a,A){var d,i=[];if(Array.prototype.map)return Array.prototype.map.call(a,A);for(d=0;d<a.length;d++)i.push(A(a[d]));return i}function r(a){for(var A=Math.max(f(a[0]),f(a[1])),d=l(a,function(i){var h=A-f(i);return i+=new Array(h+1).join(".0"),l(i.split("."),function(y){return new Array(20-y.length).join("0")+y}).reverse()});--A>=0;){if(d[0][A]>d[1][A])return 1;if(d[0][A]!==d[1][A])return-1;if(A===0)return 0}}function n(a,A,d){var i=u;typeof A=="string"&&(d=A,A=void 0),A===void 0&&(A=!1),d&&(i=b(d));var h=""+i.version;for(var y in a)if(a.hasOwnProperty(y)&&i[y]){if(typeof a[y]!="string")throw new Error("Browser version in the minVersion map should be a string: "+y+": "+String(a));return r([h,a[y]])<0}return A}function e(a,A,d){return!n(a,A,d)}var s=!0,u=b(typeof navigator!="undefined"&&navigator.userAgent||"");return u.test=function(a){for(var A=0;A<a.length;++A){var d=a[A];if(typeof d=="string"&&d in u)return!0}return!1},u.isUnsupportedBrowser=n,u.compareVersions=r,u.check=e,u._detect=b,u.detect=b,u})},{}],36:[function(p,E,C){},{}],37:[function(p,E,C){function b(u){if(u&&!e(u))throw new Error("Unknown encoding: "+u)}function f(u){return u.toString(this.encoding)}function l(u){this.charReceived=u.length%2,this.charLength=this.charReceived?2:0}function r(u){this.charReceived=u.length%3,this.charLength=this.charReceived?3:0}var n=p("buffer").Buffer,e=n.isEncoding||function(u){switch(u&&u.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}},s=C.StringDecoder=function(u){switch(this.encoding=(u||"utf8").toLowerCase().replace(/[-_]/,""),b(u),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=l;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=r;break;default:return void(this.write=f)}this.charBuffer=new n(6),this.charReceived=0,this.charLength=0};s.prototype.write=function(u){for(var a="";this.charLength;){var A=u.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:u.length;if(u.copy(this.charBuffer,this.charReceived,0,A),this.charReceived+=A,this.charReceived<this.charLength)return"";u=u.slice(A,u.length),a=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var i=a.charCodeAt(a.length-1);if(!(i>=55296&&i<=56319)){if(this.charReceived=this.charLength=0,u.length===0)return a;break}this.charLength+=this.surrogateSize,a=""}this.detectIncompleteChar(u);var d=u.length;this.charLength&&(u.copy(this.charBuffer,0,u.length-this.charReceived,d),d-=this.charReceived),a+=u.toString(this.encoding,0,d);var d=a.length-1,i=a.charCodeAt(d);if(i>=55296&&i<=56319){var h=this.surrogateSize;return this.charLength+=h,this.charReceived+=h,this.charBuffer.copy(this.charBuffer,h,0,h),u.copy(this.charBuffer,0,0,h),a.substring(0,d)}return a},s.prototype.detectIncompleteChar=function(u){for(var a=u.length>=3?3:u.length;a>0;a--){var A=u[u.length-a];if(a==1&&A>>5==6){this.charLength=2;break}if(a<=2&&A>>4==14){this.charLength=3;break}if(a<=3&&A>>3==30){this.charLength=4;break}}this.charReceived=a},s.prototype.end=function(u){var a="";if(u&&u.length&&(a=this.write(u)),this.charReceived){var A=this.charReceived,d=this.charBuffer,i=this.encoding;a+=d.slice(0,A).toString(i)}return a}},{buffer:38}],38:[function(p,E,C){(function(b){"use strict";function f(){return r.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(N,W){if(f()<W)throw new RangeError("Invalid typed array length");return r.TYPED_ARRAY_SUPPORT?(N=new Uint8Array(W),N.__proto__=r.prototype):(N===null&&(N=new r(W)),N.length=W),N}function r(N,W,ce){if(!(r.TYPED_ARRAY_SUPPORT||this instanceof r))return new r(N,W,ce);if(typeof N=="number"){if(typeof W=="string")throw new Error("If encoding is specified then the first argument must be a string");return u(this,N)}return n(this,N,W,ce)}function n(N,W,ce,ne){if(typeof W=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&W instanceof ArrayBuffer?d(N,W,ce,ne):typeof W=="string"?a(N,W,ce):i(N,W)}function e(N){if(typeof N!="number")throw new TypeError('"size" argument must be a number');if(N<0)throw new RangeError('"size" argument must not be negative')}function s(N,W,ce,ne){return e(W),W<=0?l(N,W):ce!==void 0?typeof ne=="string"?l(N,W).fill(ce,ne):l(N,W).fill(ce):l(N,W)}function u(N,W){if(e(W),N=l(N,W<0?0:0|h(W)),!r.TYPED_ARRAY_SUPPORT)for(var ce=0;ce<W;++ce)N[ce]=0;return N}function a(N,W,ce){if(typeof ce=="string"&&ce!==""||(ce="utf8"),!r.isEncoding(ce))throw new TypeError('"encoding" must be a valid string encoding');var ne=0|v(W,ce);N=l(N,ne);var ue=N.write(W,ce);return ue!==ne&&(N=N.slice(0,ue)),N}function A(N,W){var ce=W.length<0?0:0|h(W.length);N=l(N,ce);for(var ne=0;ne<ce;ne+=1)N[ne]=255&W[ne];return N}function d(N,W,ce,ne){if(W.byteLength,ce<0||W.byteLength<ce)throw new RangeError("'offset' is out of bounds");if(W.byteLength<ce+(ne||0))throw new RangeError("'length' is out of bounds");return W=ce===void 0&&ne===void 0?new Uint8Array(W):ne===void 0?new Uint8Array(W,ce):new Uint8Array(W,ce,ne),r.TYPED_ARRAY_SUPPORT?(N=W,N.__proto__=r.prototype):N=A(N,W),N}function i(N,W){if(r.isBuffer(W)){var ce=0|h(W.length);return N=l(N,ce),N.length===0||W.copy(N,0,0,ce),N}if(W){if(typeof ArrayBuffer!="undefined"&&W.buffer instanceof ArrayBuffer||"length"in W)return typeof W.length!="number"||ye(W.length)?l(N,0):A(N,W);if(W.type==="Buffer"&&ke(W.data))return A(N,W.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function h(N){if(N>=f())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f().toString(16)+" bytes");return 0|N}function y(N){return+N!=N&&(N=0),r.alloc(+N)}function v(N,W){if(r.isBuffer(N))return N.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(N)||N instanceof ArrayBuffer))return N.byteLength;typeof N!="string"&&(N=""+N);var ce=N.length;if(ce===0)return 0;for(var ne=!1;;)switch(W){case"ascii":case"latin1":case"binary":return ce;case"utf8":case"utf-8":case void 0:return be(N).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ce;case"hex":return ce>>>1;case"base64":return ie(N).length;default:if(ne)return be(N).length;W=(""+W).toLowerCase(),ne=!0}}function x(N,W,ce){var ne=!1;if((W===void 0||W<0)&&(W=0),W>this.length)return"";if((ce===void 0||ce>this.length)&&(ce=this.length),ce<=0)return"";if(ce>>>=0,W>>>=0,ce<=W)return"";for(N||(N="utf8");;)switch(N){case"hex":return k(this,W,ce);case"utf8":case"utf-8":return R(this,W,ce);case"ascii":return F(this,W,ce);case"latin1":case"binary":return Y(this,W,ce);case"base64":return O(this,W,ce);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,W,ce);default:if(ne)throw new TypeError("Unknown encoding: "+N);N=(N+"").toLowerCase(),ne=!0}}function S(N,W,ce){var ne=N[W];N[W]=N[ce],N[ce]=ne}function B(N,W,ce,ne,ue){if(N.length===0)return-1;if(typeof ce=="string"?(ne=ce,ce=0):ce>2147483647?ce=2147483647:ce<-2147483648&&(ce=-2147483648),ce=+ce,isNaN(ce)&&(ce=ue?0:N.length-1),ce<0&&(ce=N.length+ce),ce>=N.length){if(ue)return-1;ce=N.length-1}else if(ce<0){if(!ue)return-1;ce=0}if(typeof W=="string"&&(W=r.from(W,ne)),r.isBuffer(W))return W.length===0?-1:w(N,W,ce,ne,ue);if(typeof W=="number")return W&=255,r.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ue?Uint8Array.prototype.indexOf.call(N,W,ce):Uint8Array.prototype.lastIndexOf.call(N,W,ce):w(N,[W],ce,ne,ue);throw new TypeError("val must be string, number or Buffer")}function w(N,W,ce,ne,ue){function De(lt,rt){return ze===1?lt[rt]:lt.readUInt16BE(rt*ze)}var ze=1,wt=N.length,He=W.length;if(ne!==void 0&&((ne=String(ne).toLowerCase())==="ucs2"||ne==="ucs-2"||ne==="utf16le"||ne==="utf-16le")){if(N.length<2||W.length<2)return-1;ze=2,wt/=2,He/=2,ce/=2}var Xe;if(ue){var gt=-1;for(Xe=ce;Xe<wt;Xe++)if(De(N,Xe)===De(W,gt===-1?0:Xe-gt)){if(gt===-1&&(gt=Xe),Xe-gt+1===He)return gt*ze}else gt!==-1&&(Xe-=Xe-gt),gt=-1}else for(ce+He>wt&&(ce=wt-He),Xe=ce;Xe>=0;Xe--){for(var _t=!0,ct=0;ct<He;ct++)if(De(N,Xe+ct)!==De(W,ct)){_t=!1;break}if(_t)return Xe}return-1}function m(N,W,ce,ne){ce=Number(ce)||0;var ue=N.length-ce;ne?(ne=Number(ne))>ue&&(ne=ue):ne=ue;var De=W.length;if(De%2!=0)throw new TypeError("Invalid hex string");ne>De/2&&(ne=De/2);for(var ze=0;ze<ne;++ze){var wt=parseInt(W.substr(2*ze,2),16);if(isNaN(wt))return ze;N[ce+ze]=wt}return ze}function c(N,W,ce,ne){return pe(be(W,N.length-ce),N,ce,ne)}function o(N,W,ce,ne){return pe(me(W),N,ce,ne)}function _(N,W,ce,ne){return o(N,W,ce,ne)}function D(N,W,ce,ne){return pe(ie(W),N,ce,ne)}function T(N,W,ce,ne){return pe(he(W,N.length-ce),N,ce,ne)}function O(N,W,ce){return W===0&&ce===N.length?de.fromByteArray(N):de.fromByteArray(N.slice(W,ce))}function R(N,W,ce){ce=Math.min(N.length,ce);for(var ne=[],ue=W;ue<ce;){var De=N[ue],ze=null,wt=De>239?4:De>223?3:De>191?2:1;if(ue+wt<=ce){var He,Xe,gt,_t;switch(wt){case 1:De<128&&(ze=De);break;case 2:He=N[ue+1],(192&He)==128&&(_t=(31&De)<<6|63&He)>127&&(ze=_t);break;case 3:He=N[ue+1],Xe=N[ue+2],(192&He)==128&&(192&Xe)==128&&(_t=(15&De)<<12|(63&He)<<6|63&Xe)>2047&&(_t<55296||_t>57343)&&(ze=_t);break;case 4:He=N[ue+1],Xe=N[ue+2],gt=N[ue+3],(192&He)==128&&(192&Xe)==128&&(192&gt)==128&&(_t=(15&De)<<18|(63&He)<<12|(63&Xe)<<6|63&gt)>65535&&_t<1114112&&(ze=_t)}}ze===null?(ze=65533,wt=1):ze>65535&&(ze-=65536,ne.push(ze>>>10&1023|55296),ze=56320|1023&ze),ne.push(ze),ue+=wt}return U(ne)}function U(N){var W=N.length;if(W<=Ue)return String.fromCharCode.apply(String,N);for(var ce="",ne=0;ne<W;)ce+=String.fromCharCode.apply(String,N.slice(ne,ne+=Ue));return ce}function F(N,W,ce){var ne="";ce=Math.min(N.length,ce);for(var ue=W;ue<ce;++ue)ne+=String.fromCharCode(127&N[ue]);return ne}function Y(N,W,ce){var ne="";ce=Math.min(N.length,ce);for(var ue=W;ue<ce;++ue)ne+=String.fromCharCode(N[ue]);return ne}function k(N,W,ce){var ne=N.length;(!W||W<0)&&(W=0),(!ce||ce<0||ce>ne)&&(ce=ne);for(var ue="",De=W;De<ce;++De)ue+=Ae(N[De]);return ue}function K(N,W,ce){for(var ne=N.slice(W,ce),ue="",De=0;De<ne.length;De+=2)ue+=String.fromCharCode(ne[De]+256*ne[De+1]);return ue}function z(N,W,ce){if(N%1!=0||N<0)throw new RangeError("offset is not uint");if(N+W>ce)throw new RangeError("Trying to access beyond buffer length")}function j(N,W,ce,ne,ue,De){if(!r.isBuffer(N))throw new TypeError('"buffer" argument must be a Buffer instance');if(W>ue||W<De)throw new RangeError('"value" argument is out of bounds');if(ce+ne>N.length)throw new RangeError("Index out of range")}function Q(N,W,ce,ne){W<0&&(W=65535+W+1);for(var ue=0,De=Math.min(N.length-ce,2);ue<De;++ue)N[ce+ue]=(W&255<<8*(ne?ue:1-ue))>>>8*(ne?ue:1-ue)}function X(N,W,ce,ne){W<0&&(W=4294967295+W+1);for(var ue=0,De=Math.min(N.length-ce,4);ue<De;++ue)N[ce+ue]=W>>>8*(ne?ue:3-ue)&255}function te(N,W,ce,ne,ue,De){if(ce+ne>N.length)throw new RangeError("Index out of range");if(ce<0)throw new RangeError("Index out of range")}function oe(N,W,ce,ne,ue){return ue||te(N,W,ce,4,34028234663852886e22,-34028234663852886e22),Me.write(N,W,ce,ne,23,4),ce+4}function fe(N,W,ce,ne,ue){return ue||te(N,W,ce,8,17976931348623157e292,-17976931348623157e292),Me.write(N,W,ce,ne,52,8),ce+8}function le(N){if(N=we(N).replace(re,""),N.length<2)return"";for(;N.length%4!=0;)N+="=";return N}function we(N){return N.trim?N.trim():N.replace(/^\s+|\s+$/g,"")}function Ae(N){return N<16?"0"+N.toString(16):N.toString(16)}function be(N,W){W=W||1/0;for(var ce,ne=N.length,ue=null,De=[],ze=0;ze<ne;++ze){if((ce=N.charCodeAt(ze))>55295&&ce<57344){if(!ue){if(ce>56319){(W-=3)>-1&&De.push(239,191,189);continue}if(ze+1===ne){(W-=3)>-1&&De.push(239,191,189);continue}ue=ce;continue}if(ce<56320){(W-=3)>-1&&De.push(239,191,189),ue=ce;continue}ce=65536+(ue-55296<<10|ce-56320)}else ue&&(W-=3)>-1&&De.push(239,191,189);if(ue=null,ce<128){if((W-=1)<0)break;De.push(ce)}else if(ce<2048){if((W-=2)<0)break;De.push(ce>>6|192,63&ce|128)}else if(ce<65536){if((W-=3)<0)break;De.push(ce>>12|224,ce>>6&63|128,63&ce|128)}else{if(!(ce<1114112))throw new Error("Invalid code point");if((W-=4)<0)break;De.push(ce>>18|240,ce>>12&63|128,ce>>6&63|128,63&ce|128)}}return De}function me(N){for(var W=[],ce=0;ce<N.length;++ce)W.push(255&N.charCodeAt(ce));return W}function he(N,W){for(var ce,ne,ue,De=[],ze=0;ze<N.length&&!((W-=2)<0);++ze)ce=N.charCodeAt(ze),ne=ce>>8,ue=ce%256,De.push(ue),De.push(ne);return De}function ie(N){return de.toByteArray(le(N))}function pe(N,W,ce,ne){for(var ue=0;ue<ne&&!(ue+ce>=W.length||ue>=N.length);++ue)W[ue+ce]=N[ue];return ue}function ye(N){return N!==N}var de=p("base64-js"),Me=p("ieee754"),ke=p("isarray");C.Buffer=r,C.SlowBuffer=y,C.INSPECT_MAX_BYTES=50,r.TYPED_ARRAY_SUPPORT=b.TYPED_ARRAY_SUPPORT!==void 0?b.TYPED_ARRAY_SUPPORT:function(){try{var N=new Uint8Array(1);return N.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},N.foo()===42&&typeof N.subarray=="function"&&N.subarray(1,1).byteLength===0}catch(W){return!1}}(),C.kMaxLength=f(),r.poolSize=8192,r._augment=function(N){return N.__proto__=r.prototype,N},r.from=function(N,W,ce){return n(null,N,W,ce)},r.TYPED_ARRAY_SUPPORT&&(r.prototype.__proto__=Uint8Array.prototype,r.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0})),r.alloc=function(N,W,ce){return s(null,N,W,ce)},r.allocUnsafe=function(N){return u(null,N)},r.allocUnsafeSlow=function(N){return u(null,N)},r.isBuffer=function(N){return!(N==null||!N._isBuffer)},r.compare=function(N,W){if(!r.isBuffer(N)||!r.isBuffer(W))throw new TypeError("Arguments must be Buffers");if(N===W)return 0;for(var ce=N.length,ne=W.length,ue=0,De=Math.min(ce,ne);ue<De;++ue)if(N[ue]!==W[ue]){ce=N[ue],ne=W[ue];break}return ce<ne?-1:ne<ce?1:0},r.isEncoding=function(N){switch(String(N).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}},r.concat=function(N,W){if(!ke(N))throw new TypeError('"list" argument must be an Array of Buffers');if(N.length===0)return r.alloc(0);var ce;if(W===void 0)for(W=0,ce=0;ce<N.length;++ce)W+=N[ce].length;var ne=r.allocUnsafe(W),ue=0;for(ce=0;ce<N.length;++ce){var De=N[ce];if(!r.isBuffer(De))throw new TypeError('"list" argument must be an Array of Buffers');De.copy(ne,ue),ue+=De.length}return ne},r.byteLength=v,r.prototype._isBuffer=!0,r.prototype.swap16=function(){var N=this.length;if(N%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var W=0;W<N;W+=2)S(this,W,W+1);return this},r.prototype.swap32=function(){var N=this.length;if(N%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var W=0;W<N;W+=4)S(this,W,W+3),S(this,W+1,W+2);return this},r.prototype.swap64=function(){var N=this.length;if(N%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var W=0;W<N;W+=8)S(this,W,W+7),S(this,W+1,W+6),S(this,W+2,W+5),S(this,W+3,W+4);return this},r.prototype.toString=function(){var N=0|this.length;return N===0?"":arguments.length===0?R(this,0,N):x.apply(this,arguments)},r.prototype.equals=function(N){if(!r.isBuffer(N))throw new TypeError("Argument must be a Buffer");return this===N||r.compare(this,N)===0},r.prototype.inspect=function(){var N="",W=C.INSPECT_MAX_BYTES;return this.length>0&&(N=this.toString("hex",0,W).match(/.{2}/g).join(" "),this.length>W&&(N+=" ... ")),"<Buffer "+N+">"},r.prototype.compare=function(N,W,ce,ne,ue){if(!r.isBuffer(N))throw new TypeError("Argument must be a Buffer");if(W===void 0&&(W=0),ce===void 0&&(ce=N?N.length:0),ne===void 0&&(ne=0),ue===void 0&&(ue=this.length),W<0||ce>N.length||ne<0||ue>this.length)throw new RangeError("out of range index");if(ne>=ue&&W>=ce)return 0;if(ne>=ue)return-1;if(W>=ce)return 1;if(W>>>=0,ce>>>=0,ne>>>=0,ue>>>=0,this===N)return 0;for(var De=ue-ne,ze=ce-W,wt=Math.min(De,ze),He=this.slice(ne,ue),Xe=N.slice(W,ce),gt=0;gt<wt;++gt)if(He[gt]!==Xe[gt]){De=He[gt],ze=Xe[gt];break}return De<ze?-1:ze<De?1:0},r.prototype.includes=function(N,W,ce){return this.indexOf(N,W,ce)!==-1},r.prototype.indexOf=function(N,W,ce){return B(this,N,W,ce,!0)},r.prototype.lastIndexOf=function(N,W,ce){return B(this,N,W,ce,!1)},r.prototype.write=function(N,W,ce,ne){if(W===void 0)ne="utf8",ce=this.length,W=0;else if(ce===void 0&&typeof W=="string")ne=W,ce=this.length,W=0;else{if(!isFinite(W))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");W|=0,isFinite(ce)?(ce|=0,ne===void 0&&(ne="utf8")):(ne=ce,ce=void 0)}var ue=this.length-W;if((ce===void 0||ce>ue)&&(ce=ue),N.length>0&&(ce<0||W<0)||W>this.length)throw new RangeError("Attempt to write outside buffer bounds");ne||(ne="utf8");for(var De=!1;;)switch(ne){case"hex":return m(this,N,W,ce);case"utf8":case"utf-8":return c(this,N,W,ce);case"ascii":return o(this,N,W,ce);case"latin1":case"binary":return _(this,N,W,ce);case"base64":return D(this,N,W,ce);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,N,W,ce);default:if(De)throw new TypeError("Unknown encoding: "+ne);ne=(""+ne).toLowerCase(),De=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Ue=4096;r.prototype.slice=function(N,W){var ce=this.length;N=~~N,W=W===void 0?ce:~~W,N<0?(N+=ce)<0&&(N=0):N>ce&&(N=ce),W<0?(W+=ce)<0&&(W=0):W>ce&&(W=ce),W<N&&(W=N);var ne;if(r.TYPED_ARRAY_SUPPORT)ne=this.subarray(N,W),ne.__proto__=r.prototype;else{var ue=W-N;ne=new r(ue,void 0);for(var De=0;De<ue;++De)ne[De]=this[De+N]}return ne},r.prototype.readUIntLE=function(N,W,ce){N|=0,W|=0,ce||z(N,W,this.length);for(var ne=this[N],ue=1,De=0;++De<W&&(ue*=256);)ne+=this[N+De]*ue;return ne},r.prototype.readUIntBE=function(N,W,ce){N|=0,W|=0,ce||z(N,W,this.length);for(var ne=this[N+--W],ue=1;W>0&&(ue*=256);)ne+=this[N+--W]*ue;return ne},r.prototype.readUInt8=function(N,W){return W||z(N,1,this.length),this[N]},r.prototype.readUInt16LE=function(N,W){return W||z(N,2,this.length),this[N]|this[N+1]<<8},r.prototype.readUInt16BE=function(N,W){return W||z(N,2,this.length),this[N]<<8|this[N+1]},r.prototype.readUInt32LE=function(N,W){return W||z(N,4,this.length),(this[N]|this[N+1]<<8|this[N+2]<<16)+16777216*this[N+3]},r.prototype.readUInt32BE=function(N,W){return W||z(N,4,this.length),16777216*this[N]+(this[N+1]<<16|this[N+2]<<8|this[N+3])},r.prototype.readIntLE=function(N,W,ce){N|=0,W|=0,ce||z(N,W,this.length);for(var ne=this[N],ue=1,De=0;++De<W&&(ue*=256);)ne+=this[N+De]*ue;return ue*=128,ne>=ue&&(ne-=Math.pow(2,8*W)),ne},r.prototype.readIntBE=function(N,W,ce){N|=0,W|=0,ce||z(N,W,this.length);for(var ne=W,ue=1,De=this[N+--ne];ne>0&&(ue*=256);)De+=this[N+--ne]*ue;return ue*=128,De>=ue&&(De-=Math.pow(2,8*W)),De},r.prototype.readInt8=function(N,W){return W||z(N,1,this.length),128&this[N]?-1*(255-this[N]+1):this[N]},r.prototype.readInt16LE=function(N,W){W||z(N,2,this.length);var ce=this[N]|this[N+1]<<8;return 32768&ce?4294901760|ce:ce},r.prototype.readInt16BE=function(N,W){W||z(N,2,this.length);var ce=this[N+1]|this[N]<<8;return 32768&ce?4294901760|ce:ce},r.prototype.readInt32LE=function(N,W){return W||z(N,4,this.length),this[N]|this[N+1]<<8|this[N+2]<<16|this[N+3]<<24},r.prototype.readInt32BE=function(N,W){return W||z(N,4,this.length),this[N]<<24|this[N+1]<<16|this[N+2]<<8|this[N+3]},r.prototype.readFloatLE=function(N,W){return W||z(N,4,this.length),Me.read(this,N,!0,23,4)},r.prototype.readFloatBE=function(N,W){return W||z(N,4,this.length),Me.read(this,N,!1,23,4)},r.prototype.readDoubleLE=function(N,W){return W||z(N,8,this.length),Me.read(this,N,!0,52,8)},r.prototype.readDoubleBE=function(N,W){return W||z(N,8,this.length),Me.read(this,N,!1,52,8)},r.prototype.writeUIntLE=function(N,W,ce,ne){(N=+N,W|=0,ce|=0,!ne)&&j(this,N,W,ce,Math.pow(2,8*ce)-1,0);var ue=1,De=0;for(this[W]=255&N;++De<ce&&(ue*=256);)this[W+De]=N/ue&255;return W+ce},r.prototype.writeUIntBE=function(N,W,ce,ne){(N=+N,W|=0,ce|=0,!ne)&&j(this,N,W,ce,Math.pow(2,8*ce)-1,0);var ue=ce-1,De=1;for(this[W+ue]=255&N;--ue>=0&&(De*=256);)this[W+ue]=N/De&255;return W+ce},r.prototype.writeUInt8=function(N,W,ce){return N=+N,W|=0,ce||j(this,N,W,1,255,0),r.TYPED_ARRAY_SUPPORT||(N=Math.floor(N)),this[W]=255&N,W+1},r.prototype.writeUInt16LE=function(N,W,ce){return N=+N,W|=0,ce||j(this,N,W,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[W]=255&N,this[W+1]=N>>>8):Q(this,N,W,!0),W+2},r.prototype.writeUInt16BE=function(N,W,ce){return N=+N,W|=0,ce||j(this,N,W,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[W]=N>>>8,this[W+1]=255&N):Q(this,N,W,!1),W+2},r.prototype.writeUInt32LE=function(N,W,ce){return N=+N,W|=0,ce||j(this,N,W,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[W+3]=N>>>24,this[W+2]=N>>>16,this[W+1]=N>>>8,this[W]=255&N):X(this,N,W,!0),W+4},r.prototype.writeUInt32BE=function(N,W,ce){return N=+N,W|=0,ce||j(this,N,W,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[W]=N>>>24,this[W+1]=N>>>16,this[W+2]=N>>>8,this[W+3]=255&N):X(this,N,W,!1),W+4},r.prototype.writeIntLE=function(N,W,ce,ne){if(N=+N,W|=0,!ne){var ue=Math.pow(2,8*ce-1);j(this,N,W,ce,ue-1,-ue)}var De=0,ze=1,wt=0;for(this[W]=255&N;++De<ce&&(ze*=256);)N<0&&wt===0&&this[W+De-1]!==0&&(wt=1),this[W+De]=(N/ze>>0)-wt&255;return W+ce},r.prototype.writeIntBE=function(N,W,ce,ne){if(N=+N,W|=0,!ne){var ue=Math.pow(2,8*ce-1);j(this,N,W,ce,ue-1,-ue)}var De=ce-1,ze=1,wt=0;for(this[W+De]=255&N;--De>=0&&(ze*=256);)N<0&&wt===0&&this[W+De+1]!==0&&(wt=1),this[W+De]=(N/ze>>0)-wt&255;return W+ce},r.prototype.writeInt8=function(N,W,ce){return N=+N,W|=0,ce||j(this,N,W,1,127,-128),r.TYPED_ARRAY_SUPPORT||(N=Math.floor(N)),N<0&&(N=255+N+1),this[W]=255&N,W+1},r.prototype.writeInt16LE=function(N,W,ce){return N=+N,W|=0,ce||j(this,N,W,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[W]=255&N,this[W+1]=N>>>8):Q(this,N,W,!0),W+2},r.prototype.writeInt16BE=function(N,W,ce){return N=+N,W|=0,ce||j(this,N,W,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[W]=N>>>8,this[W+1]=255&N):Q(this,N,W,!1),W+2},r.prototype.writeInt32LE=function(N,W,ce){return N=+N,W|=0,ce||j(this,N,W,4,2147483647,-2147483648),r.TYPED_ARRAY_SUPPORT?(this[W]=255&N,this[W+1]=N>>>8,this[W+2]=N>>>16,this[W+3]=N>>>24):X(this,N,W,!0),W+4},r.prototype.writeInt32BE=function(N,W,ce){return N=+N,W|=0,ce||j(this,N,W,4,2147483647,-2147483648),N<0&&(N=4294967295+N+1),r.TYPED_ARRAY_SUPPORT?(this[W]=N>>>24,this[W+1]=N>>>16,this[W+2]=N>>>8,this[W+3]=255&N):X(this,N,W,!1),W+4},r.prototype.writeFloatLE=function(N,W,ce){return oe(this,N,W,!0,ce)},r.prototype.writeFloatBE=function(N,W,ce){return oe(this,N,W,!1,ce)},r.prototype.writeDoubleLE=function(N,W,ce){return fe(this,N,W,!0,ce)},r.prototype.writeDoubleBE=function(N,W,ce){return fe(this,N,W,!1,ce)},r.prototype.copy=function(N,W,ce,ne){if(ce||(ce=0),ne||ne===0||(ne=this.length),W>=N.length&&(W=N.length),W||(W=0),ne>0&&ne<ce&&(ne=ce),ne===ce)return 0;if(N.length===0||this.length===0)return 0;if(W<0)throw new RangeError("targetStart out of bounds");if(ce<0||ce>=this.length)throw new RangeError("sourceStart out of bounds");if(ne<0)throw new RangeError("sourceEnd out of bounds");ne>this.length&&(ne=this.length),N.length-W<ne-ce&&(ne=N.length-W+ce);var ue,De=ne-ce;if(this===N&&ce<W&&W<ne)for(ue=De-1;ue>=0;--ue)N[ue+W]=this[ue+ce];else if(De<1e3||!r.TYPED_ARRAY_SUPPORT)for(ue=0;ue<De;++ue)N[ue+W]=this[ue+ce];else Uint8Array.prototype.set.call(N,this.subarray(ce,ce+De),W);return De},r.prototype.fill=function(N,W,ce,ne){if(typeof N=="string"){if(typeof W=="string"?(ne=W,W=0,ce=this.length):typeof ce=="string"&&(ne=ce,ce=this.length),N.length===1){var ue=N.charCodeAt(0);ue<256&&(N=ue)}if(ne!==void 0&&typeof ne!="string")throw new TypeError("encoding must be a string");if(typeof ne=="string"&&!r.isEncoding(ne))throw new TypeError("Unknown encoding: "+ne)}else typeof N=="number"&&(N&=255);if(W<0||this.length<W||this.length<ce)throw new RangeError("Out of range index");if(ce<=W)return this;W>>>=0,ce=ce===void 0?this.length:ce>>>0,N||(N=0);var De;if(typeof N=="number")for(De=W;De<ce;++De)this[De]=N;else{var ze=r.isBuffer(N)?N:be(new r(N,ne).toString()),wt=ze.length;for(De=0;De<ce-W;++De)this[De+W]=ze[De%wt]}return this};var re=/[^+\/0-9A-Za-z-_]/g}).call(this,typeof ae!="undefined"?ae:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"base64-js":34,ieee754:161,isarray:166}],39:[function(p,E,C){E.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(p,E,C){"use strict";var b=function(){this.buffer=[],this.fns=[]};b.prototype.push=function(l,r){if(this.fns.length)return this.fns.shift()(null,l);var n={data:l,priority:r},e=f(this.buffer,n,function(s){return s.priority});this.buffer.splice(e,0,n)},b.prototype.next=function(){var l=this;return function(r){if(l.buffer.length)return r(null,l.buffer.pop().data);l.fns.push(r)}};var f=function(l,r,n){r=n(r);for(var e=0,s=l?l.length:e;e<s;){var u=e+s>>>1;n(l[u])<r?e=u+1:s=u}return e};E.exports=b},{}],41:[function(p,E,C){function b(d){var i=this,h=A.call(arguments,1);return new Promise(function(y,v){function x(w){var m;try{m=d.next(w)}catch(c){return v(c)}B(m)}function S(w){var m;try{m=d.throw(w)}catch(c){return v(c)}B(m)}function B(w){if(w.done)return y(w.value);var m=f.call(i,w.value);return m&&e(m)?m.then(x,S):S(new TypeError('You may only yield a function, promise, generator, array, or object, but the following object was passed: "'+String(w.value)+'"'))}if(typeof d=="function"&&(d=d.apply(i,h)),!d||typeof d.next!="function")return y(d);x()})}function f(d){return d&&(e(d)?d:u(d)||s(d)?b.call(this,d):typeof d=="function"?l.call(this,d):Array.isArray(d)?r.call(this,d):a(d)?n.call(this,d):d)}function l(d){var i=this;return new Promise(function(h,y){d.call(i,function(v,x){if(v)return y(v);arguments.length>2&&(x=A.call(arguments,1)),h(x)})})}function r(d){return Promise.all(d.map(f,this))}function n(d){for(var i=new d.constructor,h=Object.keys(d),y=[],v=0;v<h.length;v++){var x=h[v],S=f.call(this,d[x]);S&&e(S)?function(B,w){i[w]=void 0,y.push(B.then(function(m){i[w]=m}))}(S,x):i[x]=d[x]}return Promise.all(y).then(function(){return i})}function e(d){return typeof d.then=="function"}function s(d){return typeof d.next=="function"&&typeof d.throw=="function"}function u(d){var i=d.constructor;return!!i&&(i.name==="GeneratorFunction"||i.displayName==="GeneratorFunction"||s(i.prototype))}function a(d){return Object==d.constructor}var A=Array.prototype.slice;E.exports=b.default=b.co=b,b.wrap=function(d){function i(){return b.call(this,d.apply(this,arguments))}return i.__generatorFunction__=d,i}},{}],42:[function(p,E,C){E.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(p,E,C){"use strict";function b(r,n){if(!(this instanceof b))return new b(r,n);this.src=r,this._withAccess=n}function f(r,n){return r[n]===void 0&&r.__lookupGetter__(n)===void 0&&r.__lookupSetter__(n)===void 0}var l=Array.prototype.slice;E.exports=b,b.prototype.withAccess=function(r){return this._withAccess=r!==!1,this},b.prototype.pick=function(r){return Array.isArray(r)||(r=l.call(arguments)),r.length&&(this.keys=r),this},b.prototype.to=function(r){if(r=r||{},!this.src)return r;var n=this.keys||Object.keys(this.src);if(!this._withAccess){for(var e=0;e<n.length;e++)s=n[e],r[s]===void 0&&(r[s]=this.src[s]);return r}for(var e=0;e<n.length;e++){var s=n[e];if(f(r,s)){var u=this.src.__lookupGetter__(s),a=this.src.__lookupSetter__(s);u&&r.__defineGetter__(s,u),a&&r.__defineSetter__(s,a),u||a||(r[s]=this.src[s])}}return r},b.prototype.toCover=function(r){for(var n=this.keys||Object.keys(this.src),e=0;e<n.length;e++){var s=n[e];delete r[s];var u=this.src.__lookupGetter__(s),a=this.src.__lookupSetter__(s);u&&r.__defineGetter__(s,u),a&&r.__defineSetter__(s,a),u||a||(r[s]=this.src[s])}},b.prototype.override=b.prototype.toCover,b.prototype.and=function(r){var n={};return this.to(n),this.src=r,this.to(n),this.src=n,this}},{}],44:[function(p,E,C){p("../../modules/es6.string.iterator"),p("../../modules/es6.array.from"),E.exports=p("../../modules/_core").Array.from},{"../../modules/_core":65,"../../modules/es6.array.from":133,"../../modules/es6.string.iterator":145}],45:[function(p,E,C){var b=p("../../modules/_core"),f=b.JSON||(b.JSON={stringify:JSON.stringify});E.exports=function(l){return f.stringify.apply(f,arguments)}},{"../../modules/_core":65}],46:[function(p,E,C){p("../../modules/es6.object.assign"),E.exports=p("../../modules/_core").Object.assign},{"../../modules/_core":65,"../../modules/es6.object.assign":136}],47:[function(p,E,C){p("../../modules/es6.object.create");var b=p("../../modules/_core").Object;E.exports=function(f,l){return b.create(f,l)}},{"../../modules/_core":65,"../../modules/es6.object.create":137}],48:[function(p,E,C){p("../../modules/es6.object.define-property");var b=p("../../modules/_core").Object;E.exports=function(f,l,r){return b.defineProperty(f,l,r)}},{"../../modules/_core":65,"../../modules/es6.object.define-property":138}],49:[function(p,E,C){p("../../modules/es6.object.get-own-property-names");var b=p("../../modules/_core").Object;E.exports=function(f){return b.getOwnPropertyNames(f)}},{"../../modules/_core":65,"../../modules/es6.object.get-own-property-names":139}],50:[function(p,E,C){p("../../modules/es6.object.get-prototype-of"),E.exports=p("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":65,"../../modules/es6.object.get-prototype-of":140}],51:[function(p,E,C){p("../../modules/es6.object.keys"),E.exports=p("../../modules/_core").Object.keys},{"../../modules/_core":65,"../../modules/es6.object.keys":141}],52:[function(p,E,C){p("../modules/es6.object.to-string"),p("../modules/es6.string.iterator"),p("../modules/web.dom.iterable"),p("../modules/es6.promise"),p("../modules/es7.promise.finally"),p("../modules/es7.promise.try"),E.exports=p("../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(p,E,C){p("../modules/web.immediate"),E.exports=p("../modules/_core").setImmediate},{"../modules/_core":65,"../modules/web.immediate":152}],54:[function(p,E,C){p("../../modules/es6.string.from-code-point"),E.exports=p("../../modules/_core").String.fromCodePoint},{"../../modules/_core":65,"../../modules/es6.string.from-code-point":144}],55:[function(p,E,C){p("../../modules/es6.function.has-instance"),E.exports=p("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":130,"../../modules/es6.function.has-instance":135}],56:[function(p,E,C){p("../../modules/es6.symbol"),p("../../modules/es6.object.to-string"),p("../../modules/es7.symbol.async-iterator"),p("../../modules/es7.symbol.observable"),E.exports=p("../../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(p,E,C){p("../../modules/es6.string.iterator"),p("../../modules/web.dom.iterable"),E.exports=p("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":130,"../../modules/es6.string.iterator":145,"../../modules/web.dom.iterable":151}],58:[function(p,E,C){E.exports=function(b){if(typeof b!="function")throw TypeError(b+" is not a function!");return b}},{}],59:[function(p,E,C){E.exports=function(){}},{}],60:[function(p,E,C){E.exports=function(b,f,l,r){if(!(b instanceof f)||r!==void 0&&r in b)throw TypeError(l+": incorrect invocation!");return b}},{}],61:[function(p,E,C){var b=p("./_is-object");E.exports=function(f){if(!b(f))throw TypeError(f+" is not an object!");return f}},{"./_is-object":85}],62:[function(p,E,C){var b=p("./_to-iobject"),f=p("./_to-length"),l=p("./_to-absolute-index");E.exports=function(r){return function(n,e,s){var u,a=b(n),A=f(a.length),d=l(s,A);if(r&&e!=e){for(;A>d;)if((u=a[d++])!=u)return!0}else for(;A>d;d++)if((r||d in a)&&a[d]===e)return r||d||0;return!r&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(p,E,C){var b=p("./_cof"),f=p("./_wks")("toStringTag"),l=b(function(){return arguments}())=="Arguments",r=function(n,e){try{return n[e]}catch(s){}};E.exports=function(n){var e,s,u;return n===void 0?"Undefined":n===null?"Null":typeof(s=r(e=Object(n),f))=="string"?s:l?b(e):(u=b(e))=="Object"&&typeof e.callee=="function"?"Arguments":u}},{"./_cof":64,"./_wks":131}],64:[function(p,E,C){var b={}.toString;E.exports=function(f){return b.call(f).slice(8,-1)}},{}],65:[function(p,E,C){var b=E.exports={version:"2.5.7"};typeof __e=="number"&&(__e=b)},{}],66:[function(p,E,C){"use strict";var b=p("./_object-dp"),f=p("./_property-desc");E.exports=function(l,r,n){r in l?b.f(l,r,f(0,n)):l[r]=n}},{"./_object-dp":98,"./_property-desc":111}],67:[function(p,E,C){var b=p("./_a-function");E.exports=function(f,l,r){if(b(f),l===void 0)return f;switch(r){case 1:return function(n){return f.call(l,n)};case 2:return function(n,e){return f.call(l,n,e)};case 3:return function(n,e,s){return f.call(l,n,e,s)}}return function(){return f.apply(l,arguments)}}},{"./_a-function":58}],68:[function(p,E,C){E.exports=function(b){if(b==null)throw TypeError("Can't call method on "+b);return b}},{}],69:[function(p,E,C){E.exports=!p("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":74}],70:[function(p,E,C){var b=p("./_is-object"),f=p("./_global").document,l=b(f)&&b(f.createElement);E.exports=function(r){return l?f.createElement(r):{}}},{"./_global":76,"./_is-object":85}],71:[function(p,E,C){E.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(p,E,C){var b=p("./_object-keys"),f=p("./_object-gops"),l=p("./_object-pie");E.exports=function(r){var n=b(r),e=f.f;if(e)for(var s,u=e(r),a=l.f,A=0;u.length>A;)a.call(r,s=u[A++])&&n.push(s);return n}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(p,E,C){var b=p("./_global"),f=p("./_core"),l=p("./_ctx"),r=p("./_hide"),n=p("./_has"),e=function(s,u,a){var A,d,i,h=s&e.F,y=s&e.G,v=s&e.S,x=s&e.P,S=s&e.B,B=s&e.W,w=y?f:f[u]||(f[u]={}),m=w.prototype,c=y?b:v?b[u]:(b[u]||{}).prototype;y&&(a=u);for(A in a)(d=!h&&c&&c[A]!==void 0)&&n(w,A)||(i=d?c[A]:a[A],w[A]=y&&typeof c[A]!="function"?a[A]:S&&d?l(i,b):B&&c[A]==i?function(o){var _=function(D,T,O){if(this instanceof o){switch(arguments.length){case 0:return new o;case 1:return new o(D);case 2:return new o(D,T)}return new o(D,T,O)}return o.apply(this,arguments)};return _.prototype=o.prototype,_}(i):x&&typeof i=="function"?l(Function.call,i):i,x&&((w.virtual||(w.virtual={}))[A]=i,s&e.R&&m&&!m[A]&&r(m,A,i)))};e.F=1,e.G=2,e.S=4,e.P=8,e.B=16,e.W=32,e.U=64,e.R=128,E.exports=e},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(p,E,C){E.exports=function(b){try{return!!b()}catch(f){return!0}}},{}],75:[function(p,E,C){var b=p("./_ctx"),f=p("./_iter-call"),l=p("./_is-array-iter"),r=p("./_an-object"),n=p("./_to-length"),e=p("./core.get-iterator-method"),s={},u={},C=E.exports=function(a,A,d,i,h){var y,v,x,S,B=h?function(){return a}:e(a),w=b(d,i,A?2:1),m=0;if(typeof B!="function")throw TypeError(a+" is not iterable!");if(l(B)){for(y=n(a.length);y>m;m++)if((S=A?w(r(v=a[m])[0],v[1]):w(a[m]))===s||S===u)return S}else for(x=B.call(a);!(v=x.next()).done;)if((S=f(x,w,v.value,A))===s||S===u)return S};C.BREAK=s,C.RETURN=u},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(p,E,C){var b=E.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=b)},{}],77:[function(p,E,C){var b={}.hasOwnProperty;E.exports=function(f,l){return b.call(f,l)}},{}],78:[function(p,E,C){var b=p("./_object-dp"),f=p("./_property-desc");E.exports=p("./_descriptors")?function(l,r,n){return b.f(l,r,f(1,n))}:function(l,r,n){return l[r]=n,l}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(p,E,C){var b=p("./_global").document;E.exports=b&&b.documentElement},{"./_global":76}],80:[function(p,E,C){E.exports=!p("./_descriptors")&&!p("./_fails")(function(){return Object.defineProperty(p("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":69,"./_dom-create":70,"./_fails":74}],81:[function(p,E,C){E.exports=function(b,f,l){var r=l===void 0;switch(f.length){case 0:return r?b():b.call(l);case 1:return r?b(f[0]):b.call(l,f[0]);case 2:return r?b(f[0],f[1]):b.call(l,f[0],f[1]);case 3:return r?b(f[0],f[1],f[2]):b.call(l,f[0],f[1],f[2]);case 4:return r?b(f[0],f[1],f[2],f[3]):b.call(l,f[0],f[1],f[2],f[3])}return b.apply(l,f)}},{}],82:[function(p,E,C){var b=p("./_cof");E.exports=Object("z").propertyIsEnumerable(0)?Object:function(f){return b(f)=="String"?f.split(""):Object(f)}},{"./_cof":64}],83:[function(p,E,C){var b=p("./_iterators"),f=p("./_wks")("iterator"),l=Array.prototype;E.exports=function(r){return r!==void 0&&(b.Array===r||l[f]===r)}},{"./_iterators":91,"./_wks":131}],84:[function(p,E,C){var b=p("./_cof");E.exports=Array.isArray||function(f){return b(f)=="Array"}},{"./_cof":64}],85:[function(p,E,C){E.exports=function(b){return typeof b=="object"?b!==null:typeof b=="function"}},{}],86:[function(p,E,C){var b=p("./_an-object");E.exports=function(f,l,r,n){try{return n?l(b(r)[0],r[1]):l(r)}catch(s){var e=f.return;throw e!==void 0&&b(e.call(f)),s}}},{"./_an-object":61}],87:[function(p,E,C){"use strict";var b=p("./_object-create"),f=p("./_property-desc"),l=p("./_set-to-string-tag"),r={};p("./_hide")(r,p("./_wks")("iterator"),function(){return this}),E.exports=function(n,e,s){n.prototype=b(r,{next:f(1,s)}),l(n,e+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(p,E,C){"use strict";var b=p("./_library"),f=p("./_export"),l=p("./_redefine"),r=p("./_hide"),n=p("./_iterators"),e=p("./_iter-create"),s=p("./_set-to-string-tag"),u=p("./_object-gpo"),a=p("./_wks")("iterator"),A=!([].keys&&"next"in[].keys()),d=function(){return this};E.exports=function(i,h,y,v,x,S,B){e(y,h,v);var w,m,c,o=function(k){if(!A&&k in O)return O[k];switch(k){case"keys":case"values":return function(){return new y(this,k)}}return function(){return new y(this,k)}},_=h+" Iterator",D=x=="values",T=!1,O=i.prototype,R=O[a]||O["@@iterator"]||x&&O[x],U=R||o(x),F=x?D?o("entries"):U:void 0,Y=h=="Array"&&O.entries||R;if(Y&&(c=u(Y.call(new i)))!==Object.prototype&&c.next&&(s(c,_,!0),b||typeof c[a]=="function"||r(c,a,d)),D&&R&&R.name!=="values"&&(T=!0,U=function(){return R.call(this)}),b&&!B||!A&&!T&&O[a]||r(O,a,U),n[h]=U,n[_]=d,x)if(w={values:D?U:o("values"),keys:S?U:o("keys"),entries:F},B)for(m in w)m in O||l(O,m,w[m]);else f(f.P+f.F*(A||T),h,w);return w}},{"./_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(p,E,C){var b=p("./_wks")("iterator"),f=!1;try{var l=[7][b]();l.return=function(){f=!0},Array.from(l,function(){throw 2})}catch(r){}E.exports=function(r,n){if(!n&&!f)return!1;var e=!1;try{var s=[7],u=s[b]();u.next=function(){return{done:e=!0}},s[b]=function(){return u},r(s)}catch(a){}return e}},{"./_wks":131}],90:[function(p,E,C){E.exports=function(b,f){return{value:f,done:!!b}}},{}],91:[function(p,E,C){E.exports={}},{}],92:[function(p,E,C){E.exports=!0},{}],93:[function(p,E,C){var b=p("./_uid")("meta"),f=p("./_is-object"),l=p("./_has"),r=p("./_object-dp").f,n=0,e=Object.isExtensible||function(){return!0},s=!p("./_fails")(function(){return e(Object.preventExtensions({}))}),u=function(h){r(h,b,{value:{i:"O"+ ++n,w:{}}})},a=function(h,y){if(!f(h))return typeof h=="symbol"?h:(typeof h=="string"?"S":"P")+h;if(!l(h,b)){if(!e(h))return"F";if(!y)return"E";u(h)}return h[b].i},A=function(h,y){if(!l(h,b)){if(!e(h))return!0;if(!y)return!1;u(h)}return h[b].w},d=function(h){return s&&i.NEED&&e(h)&&!l(h,b)&&u(h),h},i=E.exports={KEY:b,NEED:!1,fastKey:a,getWeak:A,onFreeze:d}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(p,E,C){var b=p("./_global"),f=p("./_task").set,l=b.MutationObserver||b.WebKitMutationObserver,r=b.process,n=b.Promise,e=p("./_cof")(r)=="process";E.exports=function(){var s,u,a,A=function(){var y,v;for(e&&(y=r.domain)&&y.exit();s;){v=s.fn,s=s.next;try{v()}catch(x){throw s?a():u=void 0,x}}u=void 0,y&&y.enter()};if(e)a=function(){r.nextTick(A)};else if(!l||b.navigator&&b.navigator.standalone)if(n&&n.resolve){var d=n.resolve(void 0);a=function(){d.then(A)}}else a=function(){f.call(b,A)};else{var i=!0,h=document.createTextNode("");new l(A).observe(h,{characterData:!0}),a=function(){h.data=i=!i}}return function(y){var v={fn:y,next:void 0};u&&(u.next=v),s||(s=v,a()),u=v}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(p,E,C){"use strict";function b(l){var r,n;this.promise=new l(function(e,s){if(r!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");r=e,n=s}),this.resolve=f(r),this.reject=f(n)}var f=p("./_a-function");E.exports.f=function(l){return new b(l)}},{"./_a-function":58}],96:[function(p,E,C){"use strict";var b=p("./_object-keys"),f=p("./_object-gops"),l=p("./_object-pie"),r=p("./_to-object"),n=p("./_iobject"),e=Object.assign;E.exports=!e||p("./_fails")(function(){var s={},u={},a=Symbol(),A="abcdefghijklmnopqrst";return s[a]=7,A.split("").forEach(function(d){u[d]=d}),e({},s)[a]!=7||Object.keys(e({},u)).join("")!=A})?function(s,u){for(var a=r(s),A=arguments.length,d=1,i=f.f,h=l.f;A>d;)for(var y,v=n(arguments[d++]),x=i?b(v).concat(i(v)):b(v),S=x.length,B=0;S>B;)h.call(v,y=x[B++])&&(a[y]=v[y]);return a}:e},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(p,E,C){var b=p("./_an-object"),f=p("./_object-dps"),l=p("./_enum-bug-keys"),r=p("./_shared-key")("IE_PROTO"),n=function(){},e=function(){var s,u=p("./_dom-create")("iframe"),a=l.length;for(u.style.display="none",p("./_html").appendChild(u),u.src="javascript:",s=u.contentWindow.document,s.open(),s.write("<script>document.F=Object</script>"),s.close(),e=s.F;a--;)delete e.prototype[l[a]];return e()};E.exports=Object.create||function(s,u){var a;return s!==null?(n.prototype=b(s),a=new n,n.prototype=null,a[r]=s):a=e(),u===void 0?a:f(a,u)}},{"./_an-object":61,"./_dom-create":70,"./_enum-bug-keys":71,"./_html":79,"./_object-dps":99,"./_shared-key":116}],98:[function(p,E,C){var b=p("./_an-object"),f=p("./_ie8-dom-define"),l=p("./_to-primitive"),r=Object.defineProperty;C.f=p("./_descriptors")?Object.defineProperty:function(n,e,s){if(b(n),e=l(e,!0),b(s),f)try{return r(n,e,s)}catch(u){}if("get"in s||"set"in s)throw TypeError("Accessors not supported!");return"value"in s&&(n[e]=s.value),n}},{"./_an-object":61,"./_descriptors":69,"./_ie8-dom-define":80,"./_to-primitive":126}],99:[function(p,E,C){var b=p("./_object-dp"),f=p("./_an-object"),l=p("./_object-keys");E.exports=p("./_descriptors")?Object.defineProperties:function(r,n){f(r);for(var e,s=l(n),u=s.length,a=0;u>a;)b.f(r,e=s[a++],n[e]);return r}},{"./_an-object":61,"./_descriptors":69,"./_object-dp":98,"./_object-keys":106}],100:[function(p,E,C){var b=p("./_object-pie"),f=p("./_property-desc"),l=p("./_to-iobject"),r=p("./_to-primitive"),n=p("./_has"),e=p("./_ie8-dom-define"),s=Object.getOwnPropertyDescriptor;C.f=p("./_descriptors")?s:function(u,a){if(u=l(u),a=r(a,!0),e)try{return s(u,a)}catch(A){}if(n(u,a))return f(!b.f.call(u,a),u[a])}},{"./_descriptors":69,"./_has":77,"./_ie8-dom-define":80,"./_object-pie":107,"./_property-desc":111,"./_to-iobject":123,"./_to-primitive":126}],101:[function(p,E,C){var b=p("./_to-iobject"),f=p("./_object-gopn").f,l={}.toString,r=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],n=function(e){try{return f(e)}catch(s){return r.slice()}};E.exports.f=function(e){return r&&l.call(e)=="[object Window]"?n(e):f(b(e))}},{"./_object-gopn":102,"./_to-iobject":123}],102:[function(p,E,C){var b=p("./_object-keys-internal"),f=p("./_enum-bug-keys").concat("length","prototype");C.f=Object.getOwnPropertyNames||function(l){return b(l,f)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],103:[function(p,E,C){C.f=Object.getOwnPropertySymbols},{}],104:[function(p,E,C){var b=p("./_has"),f=p("./_to-object"),l=p("./_shared-key")("IE_PROTO"),r=Object.prototype;E.exports=Object.getPrototypeOf||function(n){return n=f(n),b(n,l)?n[l]:typeof n.constructor=="function"&&n instanceof n.constructor?n.constructor.prototype:n instanceof Object?r:null}},{"./_has":77,"./_shared-key":116,"./_to-object":125}],105:[function(p,E,C){var b=p("./_has"),f=p("./_to-iobject"),l=p("./_array-includes")(!1),r=p("./_shared-key")("IE_PROTO");E.exports=function(n,e){var s,u=f(n),a=0,A=[];for(s in u)s!=r&&b(u,s)&&A.push(s);for(;e.length>a;)b(u,s=e[a++])&&(~l(A,s)||A.push(s));return A}},{"./_array-includes":62,"./_has":77,"./_shared-key":116,"./_to-iobject":123}],106:[function(p,E,C){var b=p("./_object-keys-internal"),f=p("./_enum-bug-keys");E.exports=Object.keys||function(l){return b(l,f)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],107:[function(p,E,C){C.f={}.propertyIsEnumerable},{}],108:[function(p,E,C){var b=p("./_export"),f=p("./_core"),l=p("./_fails");E.exports=function(r,n){var e=(f.Object||{})[r]||Object[r],s={};s[r]=n(e),b(b.S+b.F*l(function(){e(1)}),"Object",s)}},{"./_core":65,"./_export":73,"./_fails":74}],109:[function(p,E,C){E.exports=function(b){try{return{e:!1,v:b()}}catch(f){return{e:!0,v:f}}}},{}],110:[function(p,E,C){var b=p("./_an-object"),f=p("./_is-object"),l=p("./_new-promise-capability");E.exports=function(r,n){if(b(r),f(n)&&n.constructor===r)return n;var e=l.f(r);return(0,e.resolve)(n),e.promise}},{"./_an-object":61,"./_is-object":85,"./_new-promise-capability":95}],111:[function(p,E,C){E.exports=function(b,f){return{enumerable:!(1&b),configurable:!(2&b),writable:!(4&b),value:f}}},{}],112:[function(p,E,C){var b=p("./_hide");E.exports=function(f,l,r){for(var n in l)r&&f[n]?f[n]=l[n]:b(f,n,l[n]);return f}},{"./_hide":78}],113:[function(p,E,C){E.exports=p("./_hide")},{"./_hide":78}],114:[function(p,E,C){"use strict";var b=p("./_global"),f=p("./_core"),l=p("./_object-dp"),r=p("./_descriptors"),n=p("./_wks")("species");E.exports=function(e){var s=typeof f[e]=="function"?f[e]:b[e];r&&s&&!s[n]&&l.f(s,n,{configurable:!0,get:function(){return this}})}},{"./_core":65,"./_descriptors":69,"./_global":76,"./_object-dp":98,"./_wks":131}],115:[function(p,E,C){var b=p("./_object-dp").f,f=p("./_has"),l=p("./_wks")("toStringTag");E.exports=function(r,n,e){r&&!f(r=e?r:r.prototype,l)&&b(r,l,{configurable:!0,value:n})}},{"./_has":77,"./_object-dp":98,"./_wks":131}],116:[function(p,E,C){var b=p("./_shared")("keys"),f=p("./_uid");E.exports=function(l){return b[l]||(b[l]=f(l))}},{"./_shared":117,"./_uid":127}],117:[function(p,E,C){var b=p("./_core"),f=p("./_global"),l=f["__core-js_shared__"]||(f["__core-js_shared__"]={});(E.exports=function(r,n){return l[r]||(l[r]=n!==void 0?n:{})})("versions",[]).push({version:b.version,mode:p("./_library")?"pure":"global",copyright:"\u6F0F 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":65,"./_global":76,"./_library":92}],118:[function(p,E,C){var b=p("./_an-object"),f=p("./_a-function"),l=p("./_wks")("species");E.exports=function(r,n){var e,s=b(r).constructor;return s===void 0||(e=b(s)[l])==null?n:f(e)}},{"./_a-function":58,"./_an-object":61,"./_wks":131}],119:[function(p,E,C){var b=p("./_to-integer"),f=p("./_defined");E.exports=function(l){return function(r,n){var e,s,u=String(f(r)),a=b(n),A=u.length;return a<0||a>=A?l?"":void 0:(e=u.charCodeAt(a),e<55296||e>56319||a+1===A||(s=u.charCodeAt(a+1))<56320||s>57343?l?u.charAt(a):e:l?u.slice(a,a+2):s-56320+(e-55296<<10)+65536)}}},{"./_defined":68,"./_to-integer":122}],120:[function(p,E,C){var b,f,l,r=p("./_ctx"),n=p("./_invoke"),e=p("./_html"),s=p("./_dom-create"),u=p("./_global"),a=u.process,A=u.setImmediate,d=u.clearImmediate,i=u.MessageChannel,h=u.Dispatch,y=0,v={},x=function(){var B=+this;if(v.hasOwnProperty(B)){var w=v[B];delete v[B],w()}},S=function(B){x.call(B.data)};A&&d||(A=function(B){for(var w=[],m=1;arguments.length>m;)w.push(arguments[m++]);return v[++y]=function(){n(typeof B=="function"?B:Function(B),w)},b(y),y},d=function(B){delete v[B]},p("./_cof")(a)=="process"?b=function(B){a.nextTick(r(x,B,1))}:h&&h.now?b=function(B){h.now(r(x,B,1))}:i?(f=new i,l=f.port2,f.port1.onmessage=S,b=r(l.postMessage,l,1)):u.addEventListener&&typeof postMessage=="function"&&!u.importScripts?(b=function(B){u.postMessage(B+"","*")},u.addEventListener("message",S,!1)):b="onreadystatechange"in s("script")?function(B){e.appendChild(s("script")).onreadystatechange=function(){e.removeChild(this),x.call(B)}}:function(B){setTimeout(r(x,B,1),0)}),E.exports={set:A,clear:d}},{"./_cof":64,"./_ctx":67,"./_dom-create":70,"./_global":76,"./_html":79,"./_invoke":81}],121:[function(p,E,C){var b=p("./_to-integer"),f=Math.max,l=Math.min;E.exports=function(r,n){return r=b(r),r<0?f(r+n,0):l(r,n)}},{"./_to-integer":122}],122:[function(p,E,C){var b=Math.ceil,f=Math.floor;E.exports=function(l){return isNaN(l=+l)?0:(l>0?f:b)(l)}},{}],123:[function(p,E,C){var b=p("./_iobject"),f=p("./_defined");E.exports=function(l){return b(f(l))}},{"./_defined":68,"./_iobject":82}],124:[function(p,E,C){var b=p("./_to-integer"),f=Math.min;E.exports=function(l){return l>0?f(b(l),9007199254740991):0}},{"./_to-integer":122}],125:[function(p,E,C){var b=p("./_defined");E.exports=function(f){return Object(b(f))}},{"./_defined":68}],126:[function(p,E,C){var b=p("./_is-object");E.exports=function(f,l){if(!b(f))return f;var r,n;if(l&&typeof(r=f.toString)=="function"&&!b(n=r.call(f)))return n;if(typeof(r=f.valueOf)=="function"&&!b(n=r.call(f)))return n;if(!l&&typeof(r=f.toString)=="function"&&!b(n=r.call(f)))return n;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":85}],127:[function(p,E,C){var b=0,f=Math.random();E.exports=function(l){return"Symbol(".concat(l===void 0?"":l,")_",(++b+f).toString(36))}},{}],128:[function(p,E,C){var b=p("./_global"),f=b.navigator;E.exports=f&&f.userAgent||""},{"./_global":76}],129:[function(p,E,C){var b=p("./_global"),f=p("./_core"),l=p("./_library"),r=p("./_wks-ext"),n=p("./_object-dp").f;E.exports=function(e){var s=f.Symbol||(f.Symbol=l?{}:b.Symbol||{});e.charAt(0)=="_"||e in s||n(s,e,{value:r.f(e)})}},{"./_core":65,"./_global":76,"./_library":92,"./_object-dp":98,"./_wks-ext":130}],130:[function(p,E,C){C.f=p("./_wks")},{"./_wks":131}],131:[function(p,E,C){var b=p("./_shared")("wks"),f=p("./_uid"),l=p("./_global").Symbol,r=typeof l=="function";(E.exports=function(n){return b[n]||(b[n]=r&&l[n]||(r?l:f)("Symbol."+n))}).store=b},{"./_global":76,"./_shared":117,"./_uid":127}],132:[function(p,E,C){var b=p("./_classof"),f=p("./_wks")("iterator"),l=p("./_iterators");E.exports=p("./_core").getIteratorMethod=function(r){if(r!=null)return r[f]||r["@@iterator"]||l[b(r)]}},{"./_classof":63,"./_core":65,"./_iterators":91,"./_wks":131}],133:[function(p,E,C){"use strict";var b=p("./_ctx"),f=p("./_export"),l=p("./_to-object"),r=p("./_iter-call"),n=p("./_is-array-iter"),e=p("./_to-length"),s=p("./_create-property"),u=p("./core.get-iterator-method");f(f.S+f.F*!p("./_iter-detect")(function(a){Array.from(a)}),"Array",{from:function(a){var A,d,i,h,y=l(a),v=typeof this=="function"?this:Array,x=arguments.length,S=x>1?arguments[1]:void 0,B=S!==void 0,w=0,m=u(y);if(B&&(S=b(S,x>2?arguments[2]:void 0,2)),m==null||v==Array&&n(m))for(A=e(y.length),d=new v(A);A>w;w++)s(d,w,B?S(y[w],w):y[w]);else for(h=m.call(y),d=new v;!(i=h.next()).done;w++)s(d,w,B?r(h,S,[i.value,w],!0):i.value);return d.length=w,d}})},{"./_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(p,E,C){"use strict";var b=p("./_add-to-unscopables"),f=p("./_iter-step"),l=p("./_iterators"),r=p("./_to-iobject");E.exports=p("./_iter-define")(Array,"Array",function(n,e){this._t=r(n),this._i=0,this._k=e},function(){var n=this._t,e=this._k,s=this._i++;return!n||s>=n.length?(this._t=void 0,f(1)):e=="keys"?f(0,s):e=="values"?f(0,n[s]):f(0,[s,n[s]])},"values"),l.Arguments=l.Array,b("keys"),b("values"),b("entries")},{"./_add-to-unscopables":59,"./_iter-define":88,"./_iter-step":90,"./_iterators":91,"./_to-iobject":123}],135:[function(p,E,C){"use strict";var b=p("./_is-object"),f=p("./_object-gpo"),l=p("./_wks")("hasInstance"),r=Function.prototype;l in r||p("./_object-dp").f(r,l,{value:function(n){if(typeof this!="function"||!b(n))return!1;if(!b(this.prototype))return n instanceof this;for(;n=f(n);)if(this.prototype===n)return!0;return!1}})},{"./_is-object":85,"./_object-dp":98,"./_object-gpo":104,"./_wks":131}],136:[function(p,E,C){var b=p("./_export");b(b.S+b.F,"Object",{assign:p("./_object-assign")})},{"./_export":73,"./_object-assign":96}],137:[function(p,E,C){var b=p("./_export");b(b.S,"Object",{create:p("./_object-create")})},{"./_export":73,"./_object-create":97}],138:[function(p,E,C){var b=p("./_export");b(b.S+b.F*!p("./_descriptors"),"Object",{defineProperty:p("./_object-dp").f})},{"./_descriptors":69,"./_export":73,"./_object-dp":98}],139:[function(p,E,C){p("./_object-sap")("getOwnPropertyNames",function(){return p("./_object-gopn-ext").f})},{"./_object-gopn-ext":101,"./_object-sap":108}],140:[function(p,E,C){var b=p("./_to-object"),f=p("./_object-gpo");p("./_object-sap")("getPrototypeOf",function(){return function(l){return f(b(l))}})},{"./_object-gpo":104,"./_object-sap":108,"./_to-object":125}],141:[function(p,E,C){var b=p("./_to-object"),f=p("./_object-keys");p("./_object-sap")("keys",function(){return function(l){return f(b(l))}})},{"./_object-keys":106,"./_object-sap":108,"./_to-object":125}],142:[function(p,E,C){arguments[4][36][0].apply(C,arguments)},{dup:36}],143:[function(p,E,C){"use strict";var b,f,l,r,n=p("./_library"),e=p("./_global"),s=p("./_ctx"),u=p("./_classof"),a=p("./_export"),A=p("./_is-object"),d=p("./_a-function"),i=p("./_an-instance"),h=p("./_for-of"),y=p("./_species-constructor"),v=p("./_task").set,x=p("./_microtask")(),S=p("./_new-promise-capability"),B=p("./_perform"),w=p("./_user-agent"),m=p("./_promise-resolve"),c=e.TypeError,o=e.process,_=o&&o.versions,D=_&&_.v8||"",T=e.Promise,O=u(o)=="process",R=function(){},U=f=S.f,F=!!function(){try{var te=T.resolve(1),oe=(te.constructor={})[p("./_wks")("species")]=function(fe){fe(R,R)};return(O||typeof PromiseRejectionEvent=="function")&&te.then(R)instanceof oe&&D.indexOf("6.6")!==0&&w.indexOf("Chrome/66")===-1}catch(fe){}}(),Y=function(te){var oe;return!(!A(te)||typeof(oe=te.then)!="function")&&oe},k=function(te,oe){if(!te._n){te._n=!0;var fe=te._c;x(function(){for(var le=te._v,we=te._s==1,Ae=0;fe.length>Ae;)!function(be){var me,he,ie,pe=we?be.ok:be.fail,ye=be.resolve,de=be.reject,Me=be.domain;try{pe?(we||(te._h==2&&j(te),te._h=1),pe===!0?me=le:(Me&&Me.enter(),me=pe(le),Me&&(Me.exit(),ie=!0)),me===be.promise?de(c("Promise-chain cycle")):(he=Y(me))?he.call(me,ye,de):ye(me)):de(le)}catch(ke){Me&&!ie&&Me.exit(),de(ke)}}(fe[Ae++]);te._c=[],te._n=!1,oe&&!te._h&&K(te)})}},K=function(te){v.call(e,function(){var oe,fe,le,we=te._v,Ae=z(te);if(Ae&&(oe=B(function(){O?o.emit("unhandledRejection",we,te):(fe=e.onunhandledrejection)?fe({promise:te,reason:we}):(le=e.console)&&le.error&&le.error("Unhandled promise rejection",we)}),te._h=O||z(te)?2:1),te._a=void 0,Ae&&oe.e)throw oe.v})},z=function(te){return te._h!==1&&(te._a||te._c).length===0},j=function(te){v.call(e,function(){var oe;O?o.emit("rejectionHandled",te):(oe=e.onrejectionhandled)&&oe({promise:te,reason:te._v})})},Q=function(te){var oe=this;oe._d||(oe._d=!0,oe=oe._w||oe,oe._v=te,oe._s=2,oe._a||(oe._a=oe._c.slice()),k(oe,!0))},X=function(te){var oe,fe=this;if(!fe._d){fe._d=!0,fe=fe._w||fe;try{if(fe===te)throw c("Promise can't be resolved itself");(oe=Y(te))?x(function(){var le={_w:fe,_d:!1};try{oe.call(te,s(X,le,1),s(Q,le,1))}catch(we){Q.call(le,we)}}):(fe._v=te,fe._s=1,k(fe,!1))}catch(le){Q.call({_w:fe,_d:!1},le)}}};F||(T=function(te){i(this,T,"Promise","_h"),d(te),b.call(this);try{te(s(X,this,1),s(Q,this,1))}catch(oe){Q.call(this,oe)}},b=function(te){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},b.prototype=p("./_redefine-all")(T.prototype,{then:function(te,oe){var fe=U(y(this,T));return fe.ok=typeof te!="function"||te,fe.fail=typeof oe=="function"&&oe,fe.domain=O?o.domain:void 0,this._c.push(fe),this._a&&this._a.push(fe),this._s&&k(this,!1),fe.promise},catch:function(te){return this.then(void 0,te)}}),l=function(){var te=new b;this.promise=te,this.resolve=s(X,te,1),this.reject=s(Q,te,1)},S.f=U=function(te){return te===T||te===r?new l(te):f(te)}),a(a.G+a.W+a.F*!F,{Promise:T}),p("./_set-to-string-tag")(T,"Promise"),p("./_set-species")("Promise"),r=p("./_core").Promise,a(a.S+a.F*!F,"Promise",{reject:function(te){var oe=U(this);return(0,oe.reject)(te),oe.promise}}),a(a.S+a.F*(n||!F),"Promise",{resolve:function(te){return m(n&&this===r?T:this,te)}}),a(a.S+a.F*!(F&&p("./_iter-detect")(function(te){T.all(te).catch(R)})),"Promise",{all:function(te){var oe=this,fe=U(oe),le=fe.resolve,we=fe.reject,Ae=B(function(){var be=[],me=0,he=1;h(te,!1,function(ie){var pe=me++,ye=!1;be.push(void 0),he++,oe.resolve(ie).then(function(de){ye||(ye=!0,be[pe]=de,--he||le(be))},we)}),--he||le(be)});return Ae.e&&we(Ae.v),fe.promise},race:function(te){var oe=this,fe=U(oe),le=fe.reject,we=B(function(){h(te,!1,function(Ae){oe.resolve(Ae).then(fe.resolve,le)})});return we.e&&le(we.v),fe.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(p,E,C){var b=p("./_export"),f=p("./_to-absolute-index"),l=String.fromCharCode,r=String.fromCodePoint;b(b.S+b.F*(!!r&&r.length!=1),"String",{fromCodePoint:function(n){for(var e,s=[],u=arguments.length,a=0;u>a;){if(e=+arguments[a++],f(e,1114111)!==e)throw RangeError(e+" is not a valid code point");s.push(e<65536?l(e):l(55296+((e-=65536)>>10),e%1024+56320))}return s.join("")}})},{"./_export":73,"./_to-absolute-index":121}],145:[function(p,E,C){"use strict";var b=p("./_string-at")(!0);p("./_iter-define")(String,"String",function(f){this._t=String(f),this._i=0},function(){var f,l=this._t,r=this._i;return r>=l.length?{value:void 0,done:!0}:(f=b(l,r),this._i+=f.length,{value:f,done:!1})})},{"./_iter-define":88,"./_string-at":119}],146:[function(p,E,C){"use strict";var b=p("./_global"),f=p("./_has"),l=p("./_descriptors"),r=p("./_export"),n=p("./_redefine"),e=p("./_meta").KEY,s=p("./_fails"),u=p("./_shared"),a=p("./_set-to-string-tag"),A=p("./_uid"),d=p("./_wks"),i=p("./_wks-ext"),h=p("./_wks-define"),y=p("./_enum-keys"),v=p("./_is-array"),x=p("./_an-object"),S=p("./_is-object"),B=p("./_to-iobject"),w=p("./_to-primitive"),m=p("./_property-desc"),c=p("./_object-create"),o=p("./_object-gopn-ext"),_=p("./_object-gopd"),D=p("./_object-dp"),T=p("./_object-keys"),O=_.f,R=D.f,U=o.f,F=b.Symbol,Y=b.JSON,k=Y&&Y.stringify,K=d("_hidden"),z=d("toPrimitive"),j={}.propertyIsEnumerable,Q=u("symbol-registry"),X=u("symbols"),te=u("op-symbols"),oe=Object.prototype,fe=typeof F=="function",le=b.QObject,we=!le||!le.prototype||!le.prototype.findChild,Ae=l&&s(function(){return c(R({},"a",{get:function(){return R(this,"a",{value:7}).a}})).a!=7})?function(ce,ne,ue){var De=O(oe,ne);De&&delete oe[ne],R(ce,ne,ue),De&&ce!==oe&&R(oe,ne,De)}:R,be=function(ce){var ne=X[ce]=c(F.prototype);return ne._k=ce,ne},me=fe&&typeof F.iterator=="symbol"?function(ce){return typeof ce=="symbol"}:function(ce){return ce instanceof F},he=function(ce,ne,ue){return ce===oe&&he(te,ne,ue),x(ce),ne=w(ne,!0),x(ue),f(X,ne)?(ue.enumerable?(f(ce,K)&&ce[K][ne]&&(ce[K][ne]=!1),ue=c(ue,{enumerable:m(0,!1)})):(f(ce,K)||R(ce,K,m(1,{})),ce[K][ne]=!0),Ae(ce,ne,ue)):R(ce,ne,ue)},ie=function(ce,ne){x(ce);for(var ue,De=y(ne=B(ne)),ze=0,wt=De.length;wt>ze;)he(ce,ue=De[ze++],ne[ue]);return ce},pe=function(ce,ne){return ne===void 0?c(ce):ie(c(ce),ne)},ye=function(ce){var ne=j.call(this,ce=w(ce,!0));return!(this===oe&&f(X,ce)&&!f(te,ce))&&(!(ne||!f(this,ce)||!f(X,ce)||f(this,K)&&this[K][ce])||ne)},de=function(ce,ne){if(ce=B(ce),ne=w(ne,!0),ce!==oe||!f(X,ne)||f(te,ne)){var ue=O(ce,ne);return!ue||!f(X,ne)||f(ce,K)&&ce[K][ne]||(ue.enumerable=!0),ue}},Me=function(ce){for(var ne,ue=U(B(ce)),De=[],ze=0;ue.length>ze;)f(X,ne=ue[ze++])||ne==K||ne==e||De.push(ne);return De},ke=function(ce){for(var ne,ue=ce===oe,De=U(ue?te:B(ce)),ze=[],wt=0;De.length>wt;)!f(X,ne=De[wt++])||ue&&!f(oe,ne)||ze.push(X[ne]);return ze};fe||(F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var ce=A(arguments.length>0?arguments[0]:void 0),ne=function(ue){this===oe&&ne.call(te,ue),f(this,K)&&f(this[K],ce)&&(this[K][ce]=!1),Ae(this,ce,m(1,ue))};return l&&we&&Ae(oe,ce,{configurable:!0,set:ne}),be(ce)},n(F.prototype,"toString",function(){return this._k}),_.f=de,D.f=he,p("./_object-gopn").f=o.f=Me,p("./_object-pie").f=ye,p("./_object-gops").f=ke,l&&!p("./_library")&&n(oe,"propertyIsEnumerable",ye,!0),i.f=function(ce){return be(d(ce))}),r(r.G+r.W+r.F*!fe,{Symbol:F});for(var Ue="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;Ue.length>re;)d(Ue[re++]);for(var N=T(d.store),W=0;N.length>W;)h(N[W++]);r(r.S+r.F*!fe,"Symbol",{for:function(ce){return f(Q,ce+="")?Q[ce]:Q[ce]=F(ce)},keyFor:function(ce){if(!me(ce))throw TypeError(ce+" is not a symbol!");for(var ne in Q)if(Q[ne]===ce)return ne},useSetter:function(){we=!0},useSimple:function(){we=!1}}),r(r.S+r.F*!fe,"Object",{create:pe,defineProperty:he,defineProperties:ie,getOwnPropertyDescriptor:de,getOwnPropertyNames:Me,getOwnPropertySymbols:ke}),Y&&r(r.S+r.F*(!fe||s(function(){var ce=F();return k([ce])!="[null]"||k({a:ce})!="{}"||k(Object(ce))!="{}"})),"JSON",{stringify:function(ce){for(var ne,ue,De=[ce],ze=1;arguments.length>ze;)De.push(arguments[ze++]);if(ue=ne=De[1],(S(ne)||ce!==void 0)&&!me(ce))return v(ne)||(ne=function(wt,He){if(typeof ue=="function"&&(He=ue.call(this,wt,He)),!me(He))return He}),De[1]=ne,k.apply(Y,De)}}),F.prototype[z]||p("./_hide")(F.prototype,z,F.prototype.valueOf),a(F,"Symbol"),a(Math,"Math",!0),a(b.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(p,E,C){"use strict";var b=p("./_export"),f=p("./_core"),l=p("./_global"),r=p("./_species-constructor"),n=p("./_promise-resolve");b(b.P+b.R,"Promise",{finally:function(e){var s=r(this,f.Promise||l.Promise),u=typeof e=="function";return this.then(u?function(a){return n(s,e()).then(function(){return a})}:e,u?function(a){return n(s,e()).then(function(){throw a})}:e)}})},{"./_core":65,"./_export":73,"./_global":76,"./_promise-resolve":110,"./_species-constructor":118}],148:[function(p,E,C){"use strict";var b=p("./_export"),f=p("./_new-promise-capability"),l=p("./_perform");b(b.S,"Promise",{try:function(r){var n=f.f(this),e=l(r);return(e.e?n.reject:n.resolve)(e.v),n.promise}})},{"./_export":73,"./_new-promise-capability":95,"./_perform":109}],149:[function(p,E,C){p("./_wks-define")("asyncIterator")},{"./_wks-define":129}],150:[function(p,E,C){p("./_wks-define")("observable")},{"./_wks-define":129}],151:[function(p,E,C){p("./es6.array.iterator");for(var b=p("./_global"),f=p("./_hide"),l=p("./_iterators"),r=p("./_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 s=n[e],u=b[s],a=u&&u.prototype;a&&!a[r]&&f(a,r,s),l[s]=l.Array}},{"./_global":76,"./_hide":78,"./_iterators":91,"./_wks":131,"./es6.array.iterator":134}],152:[function(p,E,C){var b=p("./_export"),f=p("./_task");b(b.G+b.B,{setImmediate:f.set,clearImmediate:f.clear})},{"./_export":73,"./_task":120}],153:[function(p,E,C){(function(b){"use strict";function f(w){return Array.isArray?Array.isArray(w):x(w)==="[object Array]"}function l(w){return typeof w=="boolean"}function r(w){return w===null}function n(w){return w==null}function e(w){return typeof w=="number"}function s(w){return typeof w=="string"}function u(w){return(w===void 0?"undefined":(0,B.default)(w))==="symbol"}function a(w){return w===void 0}function A(w){return x(w)==="[object RegExp]"}function d(w){return(w===void 0?"undefined":(0,B.default)(w))==="object"&&w!==null}function i(w){return x(w)==="[object Date]"}function h(w){return x(w)==="[object Error]"||w instanceof Error}function y(w){return typeof w=="function"}function v(w){return w===null||typeof w=="boolean"||typeof w=="number"||typeof w=="string"||(w===void 0?"undefined":(0,B.default)(w))==="symbol"||w===void 0}function x(w){return Object.prototype.toString.call(w)}var S=p("babel-runtime/helpers/typeof"),B=function(w){return w&&w.__esModule?w:{default:w}}(S);C.isArray=f,C.isBoolean=l,C.isNull=r,C.isNullOrUndefined=n,C.isNumber=e,C.isString=s,C.isSymbol=u,C.isUndefined=a,C.isRegExp=A,C.isObject=d,C.isDate=i,C.isError=h,C.isFunction=y,C.isPrimitive=v,C.isBuffer=b.isBuffer}).call(this,{isBuffer:p("../../is-buffer/index.js")})},{"../../is-buffer/index.js":163,"babel-runtime/helpers/typeof":32}],154:[function(p,E,C){"use strict";var b=p("babel-runtime/helpers/typeof"),f=function(l){return l&&l.__esModule?l:{default:l}}(b);!function(l){function r(a,A){for(a=String(a),A=A||2;a.length<A;)a="0"+a;return a}function n(a){var A=new Date(a.getFullYear(),a.getMonth(),a.getDate());A.setDate(A.getDate()-(A.getDay()+6)%7+3);var d=new Date(A.getFullYear(),0,4);d.setDate(d.getDate()-(d.getDay()+6)%7+3);var i=A.getTimezoneOffset()-d.getTimezoneOffset();A.setHours(A.getHours()-i);var h=(A-d)/6048e5;return 1+Math.floor(h)}function e(a){var A=a.getDay();return A===0&&(A=7),A}function s(a){return a===null?"null":a===void 0?"undefined":(a===void 0?"undefined":(0,f.default)(a))!=="object"?a===void 0?"undefined":(0,f.default)(a):Array.isArray(a)?"array":{}.toString.call(a).slice(8,-1).toLowerCase()}var u=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,A=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,d=/[^-+\dA-Z]/g;return function(i,h,y,v){if(arguments.length!==1||s(i)!=="string"||/\d/.test(i)||(h=i,i=void 0),i=i||new Date,i instanceof Date||(i=new Date(i)),isNaN(i))throw TypeError("Invalid date");h=String(u.masks[h]||h||u.masks.default);var x=h.slice(0,4);x!=="UTC:"&&x!=="GMT:"||(h=h.slice(4),y=!0,x==="GMT:"&&(v=!0));var S=y?"getUTC":"get",B=i[S+"Date"](),w=i[S+"Day"](),m=i[S+"Month"](),c=i[S+"FullYear"](),o=i[S+"Hours"](),_=i[S+"Minutes"](),D=i[S+"Seconds"](),T=i[S+"Milliseconds"](),O=y?0:i.getTimezoneOffset(),R=n(i),U=e(i),F={d:B,dd:r(B),ddd:u.i18n.dayNames[w],dddd:u.i18n.dayNames[w+7],m:m+1,mm:r(m+1),mmm:u.i18n.monthNames[m],mmmm:u.i18n.monthNames[m+12],yy:String(c).slice(2),yyyy:c,h:o%12||12,hh:r(o%12||12),H:o,HH:r(o),M:_,MM:r(_),s:D,ss:r(D),l:r(T,3),L:r(Math.round(T/10)),t:o<12?"a":"p",tt:o<12?"am":"pm",T:o<12?"A":"P",TT:o<12?"AM":"PM",Z:v?"GMT":y?"UTC":(String(i).match(A)||[""]).pop().replace(d,""),o:(O>0?"-":"+")+r(100*Math.floor(Math.abs(O)/60)+Math.abs(O)%60,4),S:["th","st","nd","rd"][B%10>3?0:(B%100-B%10!=10)*B%10],W:R,N:U};return h.replace(a,function(Y){return Y in F?F[Y]:Y.slice(1,Y.length-1)})}}();u.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"},u.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 u}):(C===void 0?"undefined":(0,f.default)(C))==="object"?E.exports=u:l.dateFormat=u}(void 0)},{"babel-runtime/helpers/typeof":32}],155:[function(p,E,C){(function(b){function f(){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 l(s){var u=this.useColors;if(s[0]=(u?"%c":"")+this.namespace+(u?" %c":" ")+s[0]+(u?"%c ":" ")+"+"+C.humanize(this.diff),u){var a="color: "+this.color;s.splice(1,0,a,"color: inherit");var A=0,d=0;s[0].replace(/%[a-zA-Z%]/g,function(i){i!=="%%"&&(A++,i==="%c"&&(d=A))}),s.splice(d,0,a)}}function r(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function n(s){try{s==null?C.storage.removeItem("debug"):C.storage.debug=s}catch(u){}}function e(){var s;try{s=C.storage.debug}catch(u){}return!s&&b!==void 0&&"env"in b&&(s=b.env.DEBUG),s}C=E.exports=p("./debug"),C.log=r,C.formatArgs=l,C.save=n,C.load=e,C.useColors=f,C.storage=typeof chrome!="undefined"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch(s){}}(),C.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],C.formatters.j=function(s){try{return JSON.stringify(s)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}},C.enable(e())}).call(this,p("_process"))},{"./debug":156,_process:173}],156:[function(p,E,C){function b(u){var a,A=0;for(a in u)A=(A<<5)-A+u.charCodeAt(a),A|=0;return C.colors[Math.abs(A)%C.colors.length]}function f(u){function a(){if(a.enabled){var A=a,d=+new Date,i=d-(s||d);A.diff=i,A.prev=s,A.curr=d,s=d;for(var h=new Array(arguments.length),y=0;y<h.length;y++)h[y]=arguments[y];h[0]=C.coerce(h[0]),typeof h[0]!="string"&&h.unshift("%O");var v=0;h[0]=h[0].replace(/%([a-zA-Z%])/g,function(x,S){if(x==="%%")return x;v++;var B=C.formatters[S];if(typeof B=="function"){var w=h[v];x=B.call(A,w),h.splice(v,1),v--}return x}),C.formatArgs.call(A,h),(a.log||C.log||console.log.bind(console)).apply(A,h)}}return a.namespace=u,a.enabled=C.enabled(u),a.useColors=C.useColors(),a.color=b(u),typeof C.init=="function"&&C.init(a),a}function l(u){C.save(u),C.names=[],C.skips=[];for(var a=(typeof u=="string"?u:"").split(/[\s,]+/),A=a.length,d=0;d<A;d++)a[d]&&(u=a[d].replace(/\*/g,".*?"),u[0]==="-"?C.skips.push(new RegExp("^"+u.substr(1)+"$")):C.names.push(new RegExp("^"+u+"$")))}function r(){C.enable("")}function n(u){var a,A;for(a=0,A=C.skips.length;a<A;a++)if(C.skips[a].test(u))return!1;for(a=0,A=C.names.length;a<A;a++)if(C.names[a].test(u))return!0;return!1}function e(u){return u instanceof Error?u.stack||u.message:u}C=E.exports=f.debug=f.default=f,C.coerce=e,C.disable=r,C.enable=l,C.enabled=n,C.humanize=p("ms"),C.names=[],C.skips=[],C.formatters={};var s},{ms:169}],157:[function(p,E,C){"use strict";function b(l){var r=""+l,n=f.exec(r);if(!n)return r;var e,s="",u=0,a=0;for(u=n.index;u<r.length;u++){switch(r.charCodeAt(u)){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}a!==u&&(s+=r.substring(a,u)),a=u+1,s+=e}return a!==u?s+r.substring(a,u):s}var f=/["'&<>]/;E.exports=b},{}],158:[function(p,E,C){function b(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function f(e){return typeof e=="function"}function l(e){return typeof e=="number"}function r(e){return typeof e=="object"&&e!==null}function n(e){return e===void 0}E.exports=b,b.EventEmitter=b,b.prototype._events=void 0,b.prototype._maxListeners=void 0,b.defaultMaxListeners=10,b.prototype.setMaxListeners=function(e){if(!l(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},b.prototype.emit=function(e){var s,u,a,A,d,i;if(this._events||(this._events={}),e==="error"&&(!this._events.error||r(this._events.error)&&!this._events.error.length)){if((s=arguments[1])instanceof Error)throw s;var h=new Error('Uncaught, unspecified "error" event. ('+s+")");throw h.context=s,h}if(u=this._events[e],n(u))return!1;if(f(u))switch(arguments.length){case 1:u.call(this);break;case 2:u.call(this,arguments[1]);break;case 3:u.call(this,arguments[1],arguments[2]);break;default:A=Array.prototype.slice.call(arguments,1),u.apply(this,A)}else if(r(u))for(A=Array.prototype.slice.call(arguments,1),i=u.slice(),a=i.length,d=0;d<a;d++)i[d].apply(this,A);return!0},b.prototype.addListener=function(e,s){var u;if(!f(s))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,f(s.listener)?s.listener:s),this._events[e]?r(this._events[e])?this._events[e].push(s):this._events[e]=[this._events[e],s]:this._events[e]=s,r(this._events[e])&&!this._events[e].warned&&(u=n(this._maxListeners)?b.defaultMaxListeners:this._maxListeners)&&u>0&&this._events[e].length>u&&(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},b.prototype.on=b.prototype.addListener,b.prototype.once=function(e,s){function u(){this.removeListener(e,u),a||(a=!0,s.apply(this,arguments))}if(!f(s))throw TypeError("listener must be a function");var a=!1;return u.listener=s,this.on(e,u),this},b.prototype.removeListener=function(e,s){var u,a,A,d;if(!f(s))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(u=this._events[e],A=u.length,a=-1,u===s||f(u.listener)&&u.listener===s)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,s);else if(r(u)){for(d=A;d-- >0;)if(u[d]===s||u[d].listener&&u[d].listener===s){a=d;break}if(a<0)return this;u.length===1?(u.length=0,delete this._events[e]):u.splice(a,1),this._events.removeListener&&this.emit("removeListener",e,s)}return this},b.prototype.removeAllListeners=function(e){var s,u;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(s in this._events)s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events={},this}if(u=this._events[e],f(u))this.removeListener(e,u);else if(u)for(;u.length;)this.removeListener(e,u[u.length-1]);return delete this._events[e],this},b.prototype.listeners=function(e){return this._events&&this._events[e]?f(this._events[e])?[this._events[e]]:this._events[e].slice():[]},b.prototype.listenerCount=function(e){if(this._events){var s=this._events[e];if(f(s))return 1;if(s)return s.length}return 0},b.listenerCount=function(e,s){return e.listenerCount(s)}},{}],159:[function(p,E,C){var b=p("http"),f=E.exports;for(var l in b)b.hasOwnProperty(l)&&(f[l]=b[l]);f.request=function(r,n){return r||(r={}),r.scheme="https",r.protocol="https:",b.request.call(this,r,n)}},{http:196}],160:[function(p,E,C){"use strict";var b=p("util"),f=p("ms");E.exports=function(l){if(typeof l=="number")return l;var r=f(l);if(r===void 0){var n=new Error(b.format("humanize-ms(%j) result undefined",l));console.warn(n.stack)}return r}},{ms:169,util:207}],161:[function(p,E,C){C.read=function(b,f,l,r,n){var e,s,u=8*n-r-1,a=(1<<u)-1,A=a>>1,d=-7,i=l?n-1:0,h=l?-1:1,y=b[f+i];for(i+=h,e=y&(1<<-d)-1,y>>=-d,d+=u;d>0;e=256*e+b[f+i],i+=h,d-=8);for(s=e&(1<<-d)-1,e>>=-d,d+=r;d>0;s=256*s+b[f+i],i+=h,d-=8);if(e===0)e=1-A;else{if(e===a)return s?NaN:1/0*(y?-1:1);s+=Math.pow(2,r),e-=A}return(y?-1:1)*s*Math.pow(2,e-r)},C.write=function(b,f,l,r,n,e){var s,u,a,A=8*e-n-1,d=(1<<A)-1,i=d>>1,h=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=r?0:e-1,v=r?1:-1,x=f<0||f===0&&1/f<0?1:0;for(f=Math.abs(f),isNaN(f)||f===1/0?(u=isNaN(f)?1:0,s=d):(s=Math.floor(Math.log(f)/Math.LN2),f*(a=Math.pow(2,-s))<1&&(s--,a*=2),f+=s+i>=1?h/a:h*Math.pow(2,1-i),f*a>=2&&(s++,a/=2),s+i>=d?(u=0,s=d):s+i>=1?(u=(f*a-1)*Math.pow(2,n),s+=i):(u=f*Math.pow(2,i-1)*Math.pow(2,n),s=0));n>=8;b[l+y]=255&u,y+=v,u/=256,n-=8);for(s=s<<n|u,A+=n;A>0;b[l+y]=255&s,y+=v,s/=256,A-=8);b[l+y-v]|=128*x}},{}],162:[function(p,E,C){typeof Object.create=="function"?E.exports=function(b,f){b.super_=f,b.prototype=Object.create(f.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}})}:E.exports=function(b,f){b.super_=f;var l=function(){};l.prototype=f.prototype,b.prototype=new l,b.prototype.constructor=b}},{}],163:[function(p,E,C){function b(l){return!!l.constructor&&typeof l.constructor.isBuffer=="function"&&l.constructor.isBuffer(l)}function f(l){return typeof l.readFloatLE=="function"&&typeof l.slice=="function"&&b(l.slice(0,0))}E.exports=function(l){return l!=null&&(b(l)||f(l)||!!l._isBuffer)}},{}],164:[function(p,E,C){!function(b){function f(n){return r.call(n).replace(/^[^{]*{\s*/,"").replace(/\s*}[^}]*$/,"")}function l(n){return typeof n=="function"&&(/^class(\s|\{\}$)/.test(r.call(n))||/^.*classCallCheck\(/.test(f(n)))}var r=Function.prototype.toString;C!==void 0?(E!==void 0&&E.exports&&(C=E.exports=l),C.isClass=l):typeof M=="function"&&M.amd?M([],function(){return l}):b.isClass=l}(this)},{}],165:[function(p,E,C){"use strict";function b(e){var s=e.slice(2);return s=s[0].toLowerCase()+s.slice(1)}var f=p("core-util-is"),l=p("isstream"),r=p("is-class");Object.keys(f).map(function(e){C[b(e)]=f[e]}),C.stream=l,C.readableStream=l.isReadable,C.writableStream=l.isWritable,C.duplexStream=l.isDuplex,C.class=r,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 f.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 f.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(p,E,C){var b={}.toString;E.exports=Array.isArray||function(f){return b.call(f)=="[object Array]"}},{}],167:[function(p,E,C){function b(e){return e instanceof n.Stream}function f(e){return b(e)&&typeof e._read=="function"&&typeof e._readableState=="object"}function l(e){return b(e)&&typeof e._write=="function"&&typeof e._writableState=="object"}function r(e){return f(e)&&l(e)}var n=p("stream");E.exports=b,E.exports.isReadable=f,E.exports.isWritable=l,E.exports.isDuplex=r},{stream:195}],168:[function(p,E,C){"use strict";function b(l,r,n){if(!l)throw new TypeError("argument dest is required");if(!r)throw new TypeError("argument src is required");return n===void 0&&(n=!0),Object.getOwnPropertyNames(r).forEach(function(e){if(n||!f.call(l,e)){var s=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(l,e,s)}}),l}E.exports=b;var f=Object.prototype.hasOwnProperty},{}],169:[function(p,E,C){function b(A){if(A=String(A),!(A.length>100)){var d=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(A);if(d){var i=parseFloat(d[1]);switch((d[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return i*a;case"days":case"day":case"d":return i*u;case"hours":case"hour":case"hrs":case"hr":case"h":return i*s;case"minutes":case"minute":case"mins":case"min":case"m":return i*e;case"seconds":case"second":case"secs":case"sec":case"s":return i*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}function f(A){return A>=u?Math.round(A/u)+"d":A>=s?Math.round(A/s)+"h":A>=e?Math.round(A/e)+"m":A>=n?Math.round(A/n)+"s":A+"ms"}function l(A){return r(A,u,"day")||r(A,s,"hour")||r(A,e,"minute")||r(A,n,"second")||A+" ms"}function r(A,d,i){if(!(A<d))return A<1.5*d?Math.floor(A/d)+" "+i:Math.ceil(A/d)+" "+i+"s"}var n=1e3,e=60*n,s=60*e,u=24*s,a=365.25*u;E.exports=function(A,d){d=d||{};var i=typeof A;if(i==="string"&&A.length>0)return b(A);if(i==="number"&&isNaN(A)===!1)return d.long?l(A):f(A);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(A))}},{}],170:[function(p,E,C){(function(b){function f(e,s){for(var u=0,a=e.length-1;a>=0;a--){var A=e[a];A==="."?e.splice(a,1):A===".."?(e.splice(a,1),u++):u&&(e.splice(a,1),u--)}if(s)for(;u--;u)e.unshift("..");return e}function l(e){typeof e!="string"&&(e+="");var s,u=0,a=-1,A=!0;for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===47){if(!A){u=s+1;break}}else a===-1&&(A=!1,a=s+1);return a===-1?"":e.slice(u,a)}function r(e,s){if(e.filter)return e.filter(s);for(var u=[],a=0;a<e.length;a++)s(e[a],a,e)&&u.push(e[a]);return u}C.resolve=function(){for(var e="",s=!1,u=arguments.length-1;u>=-1&&!s;u--){var a=u>=0?arguments[u]:b.cwd();if(typeof a!="string")throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,s=a.charAt(0)==="/")}return e=f(r(e.split("/"),function(A){return!!A}),!s).join("/"),(s?"/":"")+e||"."},C.normalize=function(e){var s=C.isAbsolute(e),u=n(e,-1)==="/";return e=f(r(e.split("/"),function(a){return!!a}),!s).join("/"),e||s||(e="."),e&&u&&(e+="/"),(s?"/":"")+e},C.isAbsolute=function(e){return e.charAt(0)==="/"},C.join=function(){var e=Array.prototype.slice.call(arguments,0);return C.normalize(r(e,function(s,u){if(typeof s!="string")throw new TypeError("Arguments to path.join must be strings");return s}).join("/"))},C.relative=function(e,s){function u(v){for(var x=0;x<v.length&&v[x]==="";x++);for(var S=v.length-1;S>=0&&v[S]==="";S--);return x>S?[]:v.slice(x,S-x+1)}e=C.resolve(e).substr(1),s=C.resolve(s).substr(1);for(var a=u(e.split("/")),A=u(s.split("/")),d=Math.min(a.length,A.length),i=d,h=0;h<d;h++)if(a[h]!==A[h]){i=h;break}for(var y=[],h=i;h<a.length;h++)y.push("..");return y=y.concat(A.slice(i)),y.join("/")},C.sep="/",C.delimiter=":",C.dirname=function(e){if(typeof e!="string"&&(e+=""),e.length===0)return".";for(var s=e.charCodeAt(0),u=s===47,a=-1,A=!0,d=e.length-1;d>=1;--d)if((s=e.charCodeAt(d))===47){if(!A){a=d;break}}else A=!1;return a===-1?u?"/":".":u&&a===1?"/":e.slice(0,a)},C.basename=function(e,s){var u=l(e);return s&&u.substr(-1*s.length)===s&&(u=u.substr(0,u.length-s.length)),u},C.extname=function(e){typeof e!="string"&&(e+="");for(var s=-1,u=0,a=-1,A=!0,d=0,i=e.length-1;i>=0;--i){var h=e.charCodeAt(i);if(h!==47)a===-1&&(A=!1,a=i+1),h===46?s===-1?s=i:d!==1&&(d=1):s!==-1&&(d=-1);else if(!A){u=i+1;break}}return s===-1||a===-1||d===0||d===1&&s===a-1&&s===u+1?"":e.slice(s,a)};var n="ab".substr(-1)==="b"?function(e,s,u){return e.substr(s,u)}:function(e,s,u){return s<0&&(s=e.length+s),e.substr(s,u)}}).call(this,p("_process"))},{_process:173}],171:[function(p,E,C){(function(b){(function(){"use strict";function f(D){return D=String(D),D.charAt(0).toUpperCase()+D.slice(1)}function l(D,T,O){var R={"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&&O&&/^Win/i.test(D)&&!/^Windows Phone /i.test(D)&&(R=R[/[\d.]+$/.exec(D)])&&(D="Windows "+R),D=String(D),T&&O&&(D=D.replace(RegExp(T,"i"),O)),D=n(D.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 r(D,T){var O=-1,R=D?D.length:0;if(typeof R=="number"&&R>-1&&R<=B)for(;++O<R;)T(D[O],O,D);else e(D,T)}function n(D){return D=d(D),/^(?:webOS|i(?:OS|P))/.test(D)?D:f(D)}function e(D,T){for(var O in D)c.call(D,O)&&T(D[O],O,D)}function s(D){return D==null?f(D):o.call(D).slice(8,-1)}function u(D,T){var O=D!=null?typeof D[T]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(O)||O=="object"&&!D[T])}function a(D){return String(D).replace(/([ -])(?!$)/g,"$1?")}function A(D,T){var O=null;return r(D,function(R,U){O=T(O,R,U,D)}),O}function d(D){return String(D).replace(/^ +| +$/g,"")}function i(D){function T(ce){return A(ce,function(ne,ue){var De=ue.pattern||a(ue);return!ne&&(ne=RegExp("\\b"+De+" *\\d+[.\\w_]*","i").exec(D)||RegExp("\\b"+De+" *\\w+-[\\w]*","i").exec(D)||RegExp("\\b"+De+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(D))&&((ne=String(ue.label&&!RegExp(De,"i").test(ue.label)?ue.label:ne).split("/"))[1]&&!/[\d.]+/.test(ne[0])&&(ne[0]+=" "+ne[1]),ue=ue.label||ue,ne=n(ne[0].replace(RegExp(De,"i"),ue).replace(RegExp("; *(?:"+ue+"[_-])?","i")," ").replace(RegExp("("+ue+")[-_.]?(\\w)","i"),"$1 $2"))),ne})}function O(){return this.description||""}var R=y,U=D&&typeof D=="object"&&s(D)!="String";U&&(R=D,D=null);var F=R.navigator||{},Y=F.userAgent||"";D||(D=Y);var k,K,z=U?!!F.likeChrome:/\bChrome\b/.test(D)&&!/internal|\n/i.test(o.toString()),j=U?"Object":"ScriptBridgingProxyObject",Q=U?"Object":"Environment",X=U&&R.java?"JavaPackage":s(R.java),te=U?"Object":"RuntimeObject",oe=/\bJava/.test(X)&&R.java,fe=oe&&s(R.environment)==Q,le=oe?"a":"\u4F2A",we=oe?"b":"\u5C3E",Ae=R.document||{},be=R.operamini||R.opera,me=w.test(me=U&&be?be["[[Class]]"]:s(be))?me:be=null,he=D,ie=[],pe=null,ye=D==Y,de=ye&&be&&typeof be.version=="function"&&be.version(),Me=function(ce){return A(ce,function(ne,ue){return ne||RegExp("\\b"+(ue.pattern||a(ue))+"\\b","i").exec(D)&&(ue.label||ue)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),ke=function(ce){return A(ce,function(ne,ue){return ne||RegExp("\\b"+(ue.pattern||a(ue))+"\\b","i").exec(D)&&(ue.label||ue)})}(["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"]),Ue=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(ce){return A(ce,function(ne,ue,De){return ne||(ue[Ue]||ue[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Ue)]||RegExp("\\b"+a(De)+"(?:\\b|\\w*\\d)","i").exec(D))&&De})}({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}}),N=function(ce){return A(ce,function(ne,ue){var De=ue.pattern||a(ue);return!ne&&(ne=RegExp("\\b"+De+"(?:/[\\d.]+|[ \\w.]*)","i").exec(D))&&(ne=l(ne,De,ue.label||ue)),ne})}(["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(Me&&(Me=[Me]),re&&!Ue&&(Ue=T([re])),(k=/\bGoogle TV\b/.exec(Ue))&&(Ue=k[0]),/\bSimulator\b/i.test(D)&&(Ue=(Ue?Ue+" ":"")+"Simulator"),ke=="Opera Mini"&&/\bOPiOS\b/.test(D)&&ie.push("running in Turbo/Uncompressed mode"),ke=="IE"&&/\blike iPhone OS\b/.test(D)?(k=i(D.replace(/like iPhone OS/,"")),re=k.manufacturer,Ue=k.product):/^iP/.test(Ue)?(ke||(ke="Safari"),N="iOS"+((k=/ OS ([\d_]+)/i.exec(D))?" "+k[1].replace(/_/g,"."):"")):ke!="Konqueror"||/buntu/i.test(N)?re&&re!="Google"&&(/Chrome/.test(ke)&&!/\bMobile Safari\b/i.test(D)||/\bVita\b/.test(Ue))||/\bAndroid\b/.test(N)&&/^Chrome/.test(ke)&&/\bVersion\//i.test(D)?(ke="Android Browser",N=/\bAndroid\b/.test(N)?N:"Android"):ke=="Silk"?(/\bMobi/i.test(D)||(N="Android",ie.unshift("desktop mode")),/Accelerated *= *true/i.test(D)&&ie.unshift("accelerated")):ke=="PaleMoon"&&(k=/\bFirefox\/([\d.]+)\b/.exec(D))?ie.push("identifying as Firefox "+k[1]):ke=="Firefox"&&(k=/\b(Mobile|Tablet|TV)\b/i.exec(D))?(N||(N="Firefox OS"),Ue||(Ue=k[1])):!ke||(k=!/\bMinefield\b/i.test(D)&&/\b(?:Firefox|Safari)\b/.exec(ke))?(ke&&!Ue&&/[\/,]|^[^(]+?\)/.test(D.slice(D.indexOf(k+"/")+8))&&(ke=null),(k=Ue||re||N)&&(Ue||re||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(N))&&(ke=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(N)?N:k)+" Browser")):ke=="Electron"&&(k=(/\bChrome\/([\d.]+)\b/.exec(D)||0)[1])&&ie.push("Chromium "+k):N="Kubuntu",de||(de=function(ce){return A(ce,function(ne,ue){return ne||(RegExp(ue+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(D)||0)[1]||null})}(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",a(ke),"(?:Firefox|Minefield|NetFront)"])),(k=Me=="iCab"&&parseFloat(de)>3&&"WebKit"||/\bOpera\b/.test(ke)&&(/\bOPR\b/.test(D)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(D)&&!/^(?:Trident|EdgeHTML)$/.test(Me)&&"WebKit"||!Me&&/\bMSIE\b/i.test(D)&&(N=="Mac OS"?"Tasman":"Trident")||Me=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(ke)&&"NetFront")&&(Me=[k]),ke=="IE"&&(k=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(D)||0)[1])?(ke+=" Mobile",N="Windows Phone "+(/\+$/.test(k)?k:k+".x"),ie.unshift("desktop mode")):/\bWPDesktop\b/i.test(D)?(ke="IE Mobile",N="Windows Phone 8.x",ie.unshift("desktop mode"),de||(de=(/\brv:([\d.]+)/.exec(D)||0)[1])):ke!="IE"&&Me=="Trident"&&(k=/\brv:([\d.]+)/.exec(D))&&(ke&&ie.push("identifying as "+ke+(de?" "+de:"")),ke="IE",de=k[1]),ye){if(u(R,"global"))if(oe&&(k=oe.lang.System,he=k.getProperty("os.arch"),N=N||k.getProperty("os.name")+" "+k.getProperty("os.version")),fe){try{de=R.require("ringo/engine").version.join("."),ke="RingoJS"}catch(ce){(k=R.system)&&k.global.system==R.system&&(ke="Narwhal",N||(N=k[0].os||null))}ke||(ke="Rhino")}else typeof R.process=="object"&&!R.process.browser&&(k=R.process)&&(typeof k.versions=="object"&&(typeof k.versions.electron=="string"?(ie.push("Node "+k.versions.node),ke="Electron",de=k.versions.electron):typeof k.versions.nw=="string"&&(ie.push("Chromium "+de,"Node "+k.versions.node),ke="NW.js",de=k.versions.nw)),ke||(ke="Node.js",he=k.arch,N=k.platform,de=/[\d.]+/.exec(k.version),de=de?de[0]:null));else s(k=R.runtime)==j?(ke="Adobe AIR",N=k.flash.system.Capabilities.os):s(k=R.phantom)==te?(ke="PhantomJS",de=(k=k.version||null)&&k.major+"."+k.minor+"."+k.patch):typeof Ae.documentMode=="number"&&(k=/\bTrident\/(\d+)/i.exec(D))?(de=[de,Ae.documentMode],(k=+k[1]+4)!=de[1]&&(ie.push("IE "+de[1]+" mode"),Me&&(Me[1]=""),de[1]=k),de=ke=="IE"?String(de[1].toFixed(1)):de[0]):typeof Ae.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(ke)&&(ie.push("masking as "+ke+" "+de),ke="IE",de="11.0",Me=["Trident"],N="Windows");N=N&&n(N)}if(de&&(k=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(de)||/(?:alpha|beta)(?: ?\d)?/i.exec(D+";"+(ye&&F.appMinorVersion))||/\bMinefield\b/i.test(D)&&"a")&&(pe=/b/i.test(k)?"beta":"alpha",de=de.replace(RegExp(k+"\\+?$"),"")+(pe=="beta"?we:le)+(/\d+\+?/.exec(k)||"")),ke=="Fennec"||ke=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(N))ke="Firefox Mobile";else if(ke=="Maxthon"&&de)de=de.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Ue))Ue=="Xbox 360"&&(N=null),Ue=="Xbox 360"&&/\bIEMobile\b/.test(D)&&ie.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(ke)&&(!ke||Ue||/Browser|Mobi/.test(ke))||N!="Windows CE"&&!/Mobi/i.test(D))if(ke=="IE"&&ye)try{R.external===null&&ie.unshift("platform preview")}catch(ce){ie.unshift("embedded")}else(/\bBlackBerry\b/.test(Ue)||/\bBB10\b/.test(D))&&(k=(RegExp(Ue.replace(/ +/g," *")+"/([.\\d]+)","i").exec(D)||0)[1]||de)?(k=[k,/BB10/.test(D)],N=(k[1]?(Ue=null,re="BlackBerry"):"Device Software")+" "+k[0],de=null):this!=e&&Ue!="Wii"&&(ye&&be||/Opera/.test(ke)&&/\b(?:MSIE|Firefox)\b/i.test(D)||ke=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(N)||ke=="IE"&&(N&&!/^Win/.test(N)&&de>5.5||/\bWindows XP\b/.test(N)&&de>8||de==8&&!/\bTrident\b/.test(D)))&&!w.test(k=i.call(e,D.replace(w,"")+";"))&&k.name&&(k="ing as "+k.name+((k=k.version)?" "+k:""),w.test(ke)?(/\bIE\b/.test(k)&&N=="Mac OS"&&(N=null),k="identify"+k):(k="mask"+k,ke=me?n(me.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(k)&&(N=null),ye||(de=null)),Me=["Presto"],ie.push(k));else ke+=" Mobile";(k=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(D)||0)[1])&&(k=[parseFloat(k.replace(/\.(\d)$/,".0$1")),k],ke=="Safari"&&k[1].slice(-1)=="+"?(ke="WebKit Nightly",pe="alpha",de=k[1].slice(0,-1)):de!=k[1]&&de!=(k[2]=(/\bSafari\/([\d.]+\+?)/i.exec(D)||0)[1])||(de=null),k[1]=(/\bChrome\/([\d.]+)/i.exec(D)||0)[1],k[0]==537.36&&k[2]==537.36&&parseFloat(k[1])>=28&&Me=="WebKit"&&(Me=["Blink"]),ye&&(z||k[1])?(Me&&(Me[1]="like Chrome"),k=k[1]||(k=k[0],k<530?1:k<532?2:k<532.05?3:k<533?4:k<534.03?5:k<534.07?6:k<534.1?7:k<534.13?8:k<534.16?9:k<534.24?10:k<534.3?11:k<535.01?12:k<535.02?"13+":k<535.07?15:k<535.11?16:k<535.19?17:k<536.05?18:k<536.1?19:k<537.01?20:k<537.11?"21+":k<537.13?23:k<537.18?24:k<537.24?25:k<537.36?26:Me!="Blink"?"27":"28")):(Me&&(Me[1]="like Safari"),k=k[0],k=k<400?1:k<500?2:k<526?3:k<533?4:k<534?"4+":k<535?5:k<537?6:k<538?7:k<601?8:"8"),Me&&(Me[1]+=" "+(k+=typeof k=="number"?".x":/[.+]/.test(k)?"":"+")),ke=="Safari"&&(!de||parseInt(de)>45)&&(de=k)),ke=="Opera"&&(k=/\bzbov|zvav$/.exec(N))?(ke+=" ",ie.unshift("desktop mode"),k=="zvav"?(ke+="Mini",de=null):ke+="Mobile",N=N.replace(RegExp(" *"+k+"$"),"")):ke=="Safari"&&/\bChrome\b/.exec(Me&&Me[1])&&(ie.unshift("desktop mode"),ke="Chrome Mobile",de=null,/\bOS X\b/.test(N)?(re="Apple",N="iOS 4.3+"):N=null),de&&de.indexOf(k=/[\d.]+$/.exec(N))==0&&D.indexOf("/"+k+"-")>-1&&(N=d(N.replace(k,""))),Me&&!/\b(?:Avant|Nook)\b/.test(ke)&&(/Browser|Lunascape|Maxthon/.test(ke)||ke!="Safari"&&/^iOS/.test(N)&&/\bSafari\b/.test(Me[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(ke)&&Me[1])&&(k=Me[Me.length-1])&&ie.push(k),ie.length&&(ie=["("+ie.join("; ")+")"]),re&&Ue&&Ue.indexOf(re)<0&&ie.push("on "+re),Ue&&ie.push((/^on /.test(ie[ie.length-1])?"":"on ")+Ue),N&&(k=/ ([\d.+]+)$/.exec(N),K=k&&N.charAt(N.length-k[0].length-1)=="/",N={architecture:32,family:k&&!K?N.replace(k[0],""):N,version:k?k[1]:null,toString:function(){var ce=this.version;return this.family+(ce&&!K?" "+ce:"")+(this.architecture==64?" 64-bit":"")}}),(k=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(he))&&!/\bi686\b/i.test(he)?(N&&(N.architecture=64,N.family=N.family.replace(RegExp(" *"+k),"")),ke&&(/\bWOW64\b/i.test(D)||ye&&/\w(?:86|32)$/.test(F.cpuClass||F.platform)&&!/\bWin64; x64\b/i.test(D))&&ie.unshift("32-bit")):N&&/^OS X/.test(N.family)&&ke=="Chrome"&&parseFloat(de)>=39&&(N.architecture=64),D||(D=null);var W={};return W.description=D,W.layout=Me&&Me[0],W.manufacturer=re,W.name=ke,W.prerelease=pe,W.product=Ue,W.ua=D,W.version=ke&&de,W.os=N||{architecture:null,family:null,version:null,toString:function(){return"null"}},W.parse=i,W.toString=O,W.version&&ie.unshift(de),W.name&&ie.unshift(ke),N&&ke&&(N!=String(N).split(" ")[0]||N!=ke.split(" ")[0]&&!Ue)&&ie.push(Ue?"("+N+")":"on "+N),ie.length&&(W.description=ie.join(" ")),W}var h={function:!0,object:!0},y=h[typeof window]&&window||this,v=h[typeof C]&&C,x=h[typeof E]&&E&&!E.nodeType&&E,S=v&&x&&typeof b=="object"&&b;!S||S.global!==S&&S.window!==S&&S.self!==S||(y=S);var B=Math.pow(2,53)-1,w=/\bOpera/,m=Object.prototype,c=m.hasOwnProperty,o=m.toString,_=i();typeof M=="function"&&typeof M.amd=="object"&&M.amd?(y.platform=_,M(function(){return _})):v&&x?e(_,function(D,T){v[T]=D}):y.platform=_}).call(this)}).call(this,typeof ae!="undefined"?ae:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],172:[function(p,E,C){(function(b){"use strict";function f(l,r,n,e){if(typeof l!="function")throw new TypeError('"callback" argument must be a function');var s,u,a=arguments.length;switch(a){case 0:case 1:return b.nextTick(l);case 2:return b.nextTick(function(){l.call(null,r)});case 3:return b.nextTick(function(){l.call(null,r,n)});case 4:return b.nextTick(function(){l.call(null,r,n,e)});default:for(s=new Array(a-1),u=0;u<s.length;)s[u++]=arguments[u];return b.nextTick(function(){l.apply(null,s)})}}!b.version||b.version.indexOf("v0.")===0||b.version.indexOf("v1.")===0&&b.version.indexOf("v1.8.")!==0?E.exports={nextTick:f}:E.exports=b}).call(this,p("_process"))},{_process:173}],173:[function(p,E,C){function b(){throw new Error("setTimeout has not been defined")}function f(){throw new Error("clearTimeout has not been defined")}function l(x){if(a===setTimeout)return setTimeout(x,0);if((a===b||!a)&&setTimeout)return a=setTimeout,setTimeout(x,0);try{return a(x,0)}catch(S){try{return a.call(null,x,0)}catch(B){return a.call(this,x,0)}}}function r(x){if(A===clearTimeout)return clearTimeout(x);if((A===f||!A)&&clearTimeout)return A=clearTimeout,clearTimeout(x);try{return A(x)}catch(S){try{return A.call(null,x)}catch(B){return A.call(this,x)}}}function n(){y&&i&&(y=!1,i.length?h=i.concat(h):v=-1,h.length&&e())}function e(){if(!y){var x=l(n);y=!0;for(var S=h.length;S;){for(i=h,h=[];++v<S;)i&&i[v].run();v=-1,S=h.length}i=null,y=!1,r(x)}}function s(x,S){this.fun=x,this.array=S}function u(){}var a,A,d=E.exports={};!function(){try{a=typeof setTimeout=="function"?setTimeout:b}catch(x){a=b}try{A=typeof clearTimeout=="function"?clearTimeout:f}catch(x){A=f}}();var i,h=[],y=!1,v=-1;d.nextTick=function(x){var S=new Array(arguments.length-1);if(arguments.length>1)for(var B=1;B<arguments.length;B++)S[B-1]=arguments[B];h.push(new s(x,S)),h.length!==1||y||l(e)},s.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=u,d.addListener=u,d.once=u,d.off=u,d.removeListener=u,d.removeAllListeners=u,d.emit=u,d.prependListener=u,d.prependOnceListener=u,d.listeners=function(x){return[]},d.binding=function(x){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(x){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},{}],174:[function(p,E,C){(function(b){!function(f){function l(X){throw new RangeError(K[X])}function r(X,te){for(var oe=X.length,fe=[];oe--;)fe[oe]=te(X[oe]);return fe}function n(X,te){var oe=X.split("@"),fe="";return oe.length>1&&(fe=oe[0]+"@",X=oe[1]),X=X.replace(k,"."),fe+r(X.split("."),te).join(".")}function e(X){for(var te,oe,fe=[],le=0,we=X.length;le<we;)te=X.charCodeAt(le++),te>=55296&&te<=56319&&le<we?(oe=X.charCodeAt(le++),(64512&oe)==56320?fe.push(((1023&te)<<10)+(1023&oe)+65536):(fe.push(te),le--)):fe.push(te);return fe}function s(X){return r(X,function(te){var oe="";return te>65535&&(te-=65536,oe+=Q(te>>>10&1023|55296),te=56320|1023&te),oe+=Q(te)}).join("")}function u(X){return X-48<10?X-22:X-65<26?X-65:X-97<26?X-97:c}function a(X,te){return X+22+75*(X<26)-((te!=0)<<5)}function A(X,te,oe){var fe=0;for(X=oe?j(X/T):X>>1,X+=j(X/te);X>z*_>>1;fe+=c)X=j(X/z);return j(fe+(z+1)*X/(X+D))}function d(X){var te,oe,fe,le,we,Ae,be,me,he,ie,pe=[],ye=X.length,de=0,Me=R,ke=O;for(oe=X.lastIndexOf(U),oe<0&&(oe=0),fe=0;fe<oe;++fe)X.charCodeAt(fe)>=128&&l("not-basic"),pe.push(X.charCodeAt(fe));for(le=oe>0?oe+1:0;le<ye;){for(we=de,Ae=1,be=c;le>=ye&&l("invalid-input"),me=u(X.charCodeAt(le++)),(me>=c||me>j((m-de)/Ae))&&l("overflow"),de+=me*Ae,he=be<=ke?o:be>=ke+_?_:be-ke,!(me<he);be+=c)ie=c-he,Ae>j(m/ie)&&l("overflow"),Ae*=ie;te=pe.length+1,ke=A(de-we,te,we==0),j(de/te)>m-Me&&l("overflow"),Me+=j(de/te),de%=te,pe.splice(de++,0,Me)}return s(pe)}function i(X){var te,oe,fe,le,we,Ae,be,me,he,ie,pe,ye,de,Me,ke,Ue=[];for(X=e(X),ye=X.length,te=R,oe=0,we=O,Ae=0;Ae<ye;++Ae)(pe=X[Ae])<128&&Ue.push(Q(pe));for(fe=le=Ue.length,le&&Ue.push(U);fe<ye;){for(be=m,Ae=0;Ae<ye;++Ae)(pe=X[Ae])>=te&&pe<be&&(be=pe);for(de=fe+1,be-te>j((m-oe)/de)&&l("overflow"),oe+=(be-te)*de,te=be,Ae=0;Ae<ye;++Ae)if(pe=X[Ae],pe<te&&++oe>m&&l("overflow"),pe==te){for(me=oe,he=c;ie=he<=we?o:he>=we+_?_:he-we,!(me<ie);he+=c)ke=me-ie,Me=c-ie,Ue.push(Q(a(ie+ke%Me,0))),me=j(ke/Me);Ue.push(Q(a(me,0))),we=A(oe,de,fe==le),oe=0,++fe}++oe,++te}return Ue.join("")}function h(X){return n(X,function(te){return F.test(te)?d(te.slice(4).toLowerCase()):te})}function y(X){return n(X,function(te){return Y.test(te)?"xn--"+i(te):te})}var v=typeof C=="object"&&C&&!C.nodeType&&C,x=typeof E=="object"&&E&&!E.nodeType&&E,S=typeof b=="object"&&b;S.global!==S&&S.window!==S&&S.self!==S||(f=S);var B,w,m=2147483647,c=36,o=1,_=26,D=38,T=700,O=72,R=128,U="-",F=/^xn--/,Y=/[^\x20-\x7E]/,k=/[\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"},z=c-o,j=Math.floor,Q=String.fromCharCode;if(B={version:"1.4.1",ucs2:{decode:e,encode:s},decode:d,encode:i,toASCII:y,toUnicode:h},typeof M=="function"&&typeof M.amd=="object"&&M.amd)M("punycode",function(){return B});else if(v&&x)if(E.exports==v)x.exports=B;else for(w in B)B.hasOwnProperty(w)&&(v[w]=B[w]);else f.punycode=B}(this)}).call(this,typeof ae!="undefined"?ae:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],175:[function(p,E,C){"use strict";function b(l,r){return Object.prototype.hasOwnProperty.call(l,r)}E.exports=function(l,r,n,e){r=r||"&",n=n||"=";var s={};if(typeof l!="string"||l.length===0)return s;var u=/\+/g;l=l.split(r);var a=1e3;e&&typeof e.maxKeys=="number"&&(a=e.maxKeys);var A=l.length;a>0&&A>a&&(A=a);for(var d=0;d<A;++d){var i,h,y,v,x=l[d].replace(u,"%20"),S=x.indexOf(n);S>=0?(i=x.substr(0,S),h=x.substr(S+1)):(i=x,h=""),y=decodeURIComponent(i),v=decodeURIComponent(h),b(s,y)?f(s[y])?s[y].push(v):s[y]=[s[y],v]:s[y]=v}return s};var f=Array.isArray||function(l){return Object.prototype.toString.call(l)==="[object Array]"}},{}],176:[function(p,E,C){"use strict";function b(n,e){if(n.map)return n.map(e);for(var s=[],u=0;u<n.length;u++)s.push(e(n[u],u));return s}var f=function(n){switch(typeof n){case"string":return n;case"boolean":return n?"true":"false";case"number":return isFinite(n)?n:"";default:return""}};E.exports=function(n,e,s,u){return e=e||"&",s=s||"=",n===null&&(n=void 0),typeof n=="object"?b(r(n),function(a){var A=encodeURIComponent(f(a))+s;return l(n[a])?b(n[a],function(d){return A+encodeURIComponent(f(d))}).join(e):A+encodeURIComponent(f(n[a]))}).join(e):u?encodeURIComponent(f(u))+s+encodeURIComponent(f(n)):""};var l=Array.isArray||function(n){return Object.prototype.toString.call(n)==="[object Array]"},r=Object.keys||function(n){var e=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&e.push(s);return e}},{}],177:[function(p,E,C){"use strict";C.decode=C.parse=p("./decode"),C.encode=C.stringify=p("./encode")},{"./decode":175,"./encode":176}],178:[function(p,E,C){E.exports=p("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":179}],179:[function(p,E,C){"use strict";function b(y){if(!(this instanceof b))return new b(y);a.call(this,y),A.call(this,y),y&&y.readable===!1&&(this.readable=!1),y&&y.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,y&&y.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",f)}function f(){this.allowHalfOpen||this._writableState.ended||e.nextTick(l,this)}function l(y){y.end()}var r=p("babel-runtime/core-js/object/keys"),n=function(y){return y&&y.__esModule?y:{default:y}}(r),e=p("process-nextick-args"),s=n.default||function(y){var v=[];for(var x in y)v.push(x);return v};E.exports=b;var u=p("core-util-is");u.inherits=p("inherits");var a=p("./_stream_readable"),A=p("./_stream_writable");u.inherits(b,a);for(var d=s(A.prototype),i=0;i<d.length;i++){var h=d[i];b.prototype[h]||(b.prototype[h]=A.prototype[h])}Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(b.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(y){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=y,this._writableState.destroyed=y)}}),b.prototype._destroy=function(y,v){this.push(null),this.end(),e.nextTick(v,y)}},{"./_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(p,E,C){"use strict";function b(r){if(!(this instanceof b))return new b(r);f.call(this,r)}E.exports=b;var f=p("./_stream_transform"),l=p("core-util-is");l.inherits=p("inherits"),l.inherits(b,f),b.prototype._transform=function(r,n,e){e(null,r)}},{"./_stream_transform":182,"core-util-is":153,inherits:162}],181:[function(p,E,C){(function(b,f){"use strict";function l(ye){return oe.from(ye)}function r(ye){return oe.isBuffer(ye)||ye instanceof fe}function n(ye,de,Me){if(typeof ye.prependListener=="function")return ye.prependListener(de,Me);ye._events&&ye._events[de]?Q(ye._events[de])?ye._events[de].unshift(Me):ye._events[de]=[Me,ye._events[de]]:ye.on(de,Me)}function e(ye,de){j=j||p("./_stream_duplex"),ye=ye||{};var Me=de instanceof j;this.objectMode=!!ye.objectMode,Me&&(this.objectMode=this.objectMode||!!ye.readableObjectMode);var ke=ye.highWaterMark,Ue=ye.readableHighWaterMark,re=this.objectMode?16:16384;this.highWaterMark=ke||ke===0?ke:Me&&(Ue||Ue===0)?Ue:re,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new me,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=ye.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,ye.encoding&&(be||(be=p("string_decoder/").StringDecoder),this.decoder=new be(ye.encoding),this.encoding=ye.encoding)}function s(ye){if(j=j||p("./_stream_duplex"),!(this instanceof s))return new s(ye);this._readableState=new e(ye,this),this.readable=!0,ye&&(typeof ye.read=="function"&&(this._read=ye.read),typeof ye.destroy=="function"&&(this._destroy=ye.destroy)),te.call(this)}function u(ye,de,Me,ke,Ue){var re=ye._readableState;if(de===null)re.reading=!1,y(ye,re);else{var N;Ue||(N=A(re,de)),N?ye.emit("error",N):re.objectMode||de&&de.length>0?(typeof de=="string"||re.objectMode||(0,K.default)(de)===oe.prototype||(de=l(de)),ke?re.endEmitted?ye.emit("error",new Error("stream.unshift() after end event")):a(ye,re,de,!0):re.ended?ye.emit("error",new Error("stream.push() after EOF")):(re.reading=!1,re.decoder&&!Me?(de=re.decoder.write(de),re.objectMode||de.length!==0?a(ye,re,de,!1):S(ye,re)):a(ye,re,de,!1))):ke||(re.reading=!1)}return d(re)}function a(ye,de,Me,ke){de.flowing&&de.length===0&&!de.sync?(ye.emit("data",Me),ye.read(0)):(de.length+=de.objectMode?1:Me.length,ke?de.buffer.unshift(Me):de.buffer.push(Me),de.needReadable&&v(ye)),S(ye,de)}function A(ye,de){var Me;return r(de)||typeof de=="string"||de===void 0||ye.objectMode||(Me=new TypeError("Invalid non-string/buffer chunk")),Me}function d(ye){return!ye.ended&&(ye.needReadable||ye.length<ye.highWaterMark||ye.length===0)}function i(ye){return ye>=pe?ye=pe:(ye--,ye|=ye>>>1,ye|=ye>>>2,ye|=ye>>>4,ye|=ye>>>8,ye|=ye>>>16,ye++),ye}function h(ye,de){return ye<=0||de.length===0&&de.ended?0:de.objectMode?1:ye!==ye?de.flowing&&de.length?de.buffer.head.data.length:de.length:(ye>de.highWaterMark&&(de.highWaterMark=i(ye)),ye<=de.length?ye:de.ended?de.length:(de.needReadable=!0,0))}function y(ye,de){if(!de.ended){if(de.decoder){var Me=de.decoder.end();Me&&Me.length&&(de.buffer.push(Me),de.length+=de.objectMode?1:Me.length)}de.ended=!0,v(ye)}}function v(ye){var de=ye._readableState;de.needReadable=!1,de.emittedReadable||(Ae("emitReadable",de.flowing),de.emittedReadable=!0,de.sync?z.nextTick(x,ye):x(ye))}function x(ye){Ae("emit readable"),ye.emit("readable"),_(ye)}function S(ye,de){de.readingMore||(de.readingMore=!0,z.nextTick(B,ye,de))}function B(ye,de){for(var Me=de.length;!de.reading&&!de.flowing&&!de.ended&&de.length<de.highWaterMark&&(Ae("maybeReadMore read 0"),ye.read(0),Me!==de.length);)Me=de.length;de.readingMore=!1}function w(ye){return function(){var de=ye._readableState;Ae("pipeOnDrain",de.awaitDrain),de.awaitDrain&&de.awaitDrain--,de.awaitDrain===0&&X(ye,"data")&&(de.flowing=!0,_(ye))}}function m(ye){Ae("readable nexttick read 0"),ye.read(0)}function c(ye,de){de.resumeScheduled||(de.resumeScheduled=!0,z.nextTick(o,ye,de))}function o(ye,de){de.reading||(Ae("resume read 0"),ye.read(0)),de.resumeScheduled=!1,de.awaitDrain=0,ye.emit("resume"),_(ye),de.flowing&&!de.reading&&ye.read(0)}function _(ye){var de=ye._readableState;for(Ae("flow",de.flowing);de.flowing&&ye.read()!==null;);}function D(ye,de){if(de.length===0)return null;var Me;return de.objectMode?Me=de.buffer.shift():!ye||ye>=de.length?(Me=de.decoder?de.buffer.join(""):de.buffer.length===1?de.buffer.head.data:de.buffer.concat(de.length),de.buffer.clear()):Me=T(ye,de.buffer,de.decoder),Me}function T(ye,de,Me){var ke;return ye<de.head.data.length?(ke=de.head.data.slice(0,ye),de.head.data=de.head.data.slice(ye)):ke=ye===de.head.data.length?de.shift():Me?O(ye,de):R(ye,de),ke}function O(ye,de){var Me=de.head,ke=1,Ue=Me.data;for(ye-=Ue.length;Me=Me.next;){var re=Me.data,N=ye>re.length?re.length:ye;if(N===re.length?Ue+=re:Ue+=re.slice(0,ye),(ye-=N)===0){N===re.length?(++ke,Me.next?de.head=Me.next:de.head=de.tail=null):(de.head=Me,Me.data=re.slice(N));break}++ke}return de.length-=ke,Ue}function R(ye,de){var Me=oe.allocUnsafe(ye),ke=de.head,Ue=1;for(ke.data.copy(Me),ye-=ke.data.length;ke=ke.next;){var re=ke.data,N=ye>re.length?re.length:ye;if(re.copy(Me,Me.length-ye,0,N),(ye-=N)===0){N===re.length?(++Ue,ke.next?de.head=ke.next:de.head=de.tail=null):(de.head=ke,ke.data=re.slice(N));break}++Ue}return de.length-=Ue,Me}function U(ye){var de=ye._readableState;if(de.length>0)throw new Error('"endReadable()" called on non-empty stream');de.endEmitted||(de.ended=!0,z.nextTick(F,de,ye))}function F(ye,de){ye.endEmitted||ye.length!==0||(ye.endEmitted=!0,de.readable=!1,de.emit("end"))}function Y(ye,de){for(var Me=0,ke=ye.length;Me<ke;Me++)if(ye[Me]===de)return Me;return-1}var k=p("babel-runtime/core-js/object/get-prototype-of"),K=function(ye){return ye&&ye.__esModule?ye:{default:ye}}(k),z=p("process-nextick-args");E.exports=s;var j,Q=p("isarray");s.ReadableState=e;var X=(p("events").EventEmitter,function(ye,de){return ye.listeners(de).length}),te=p("./internal/streams/stream"),oe=p("safe-buffer").Buffer,fe=f.Uint8Array||function(){},le=p("core-util-is");le.inherits=p("inherits");var we=p("util"),Ae=void 0;Ae=we&&we.debuglog?we.debuglog("stream"):function(){};var be,me=p("./internal/streams/BufferList"),he=p("./internal/streams/destroy");le.inherits(s,te);var ie=["error","close","destroy","pause","resume"];Object.defineProperty(s.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(ye){this._readableState&&(this._readableState.destroyed=ye)}}),s.prototype.destroy=he.destroy,s.prototype._undestroy=he.undestroy,s.prototype._destroy=function(ye,de){this.push(null),de(ye)},s.prototype.push=function(ye,de){var Me,ke=this._readableState;return ke.objectMode?Me=!0:typeof ye=="string"&&(de=de||ke.defaultEncoding,de!==ke.encoding&&(ye=oe.from(ye,de),de=""),Me=!0),u(this,ye,de,!1,Me)},s.prototype.unshift=function(ye){return u(this,ye,null,!0,!1)},s.prototype.isPaused=function(){return this._readableState.flowing===!1},s.prototype.setEncoding=function(ye){return be||(be=p("string_decoder/").StringDecoder),this._readableState.decoder=new be(ye),this._readableState.encoding=ye,this};var pe=8388608;s.prototype.read=function(ye){Ae("read",ye),ye=parseInt(ye,10);var de=this._readableState,Me=ye;if(ye!==0&&(de.emittedReadable=!1),ye===0&&de.needReadable&&(de.length>=de.highWaterMark||de.ended))return Ae("read: emitReadable",de.length,de.ended),de.length===0&&de.ended?U(this):v(this),null;if((ye=h(ye,de))===0&&de.ended)return de.length===0&&U(this),null;var ke=de.needReadable;Ae("need readable",ke),(de.length===0||de.length-ye<de.highWaterMark)&&(ke=!0,Ae("length less than watermark",ke)),de.ended||de.reading?(ke=!1,Ae("reading or ended",ke)):ke&&(Ae("do read"),de.reading=!0,de.sync=!0,de.length===0&&(de.needReadable=!0),this._read(de.highWaterMark),de.sync=!1,de.reading||(ye=h(Me,de)));var Ue;return Ue=ye>0?D(ye,de):null,Ue===null?(de.needReadable=!0,ye=0):de.length-=ye,de.length===0&&(de.ended||(de.needReadable=!0),Me!==ye&&de.ended&&U(this)),Ue!==null&&this.emit("data",Ue),Ue},s.prototype._read=function(ye){this.emit("error",new Error("_read() is not implemented"))},s.prototype.pipe=function(ye,de){function Me(_t,ct){Ae("onunpipe"),_t===ue&&ct&&ct.hasUnpiped===!1&&(ct.hasUnpiped=!0,Ue())}function ke(){Ae("onend"),ye.end()}function Ue(){Ae("cleanup"),ye.removeListener("close",W),ye.removeListener("finish",ce),ye.removeListener("drain",He),ye.removeListener("error",N),ye.removeListener("unpipe",Me),ue.removeListener("end",ke),ue.removeListener("end",ne),ue.removeListener("data",re),Xe=!0,!De.awaitDrain||ye._writableState&&!ye._writableState.needDrain||He()}function re(_t){Ae("ondata"),gt=!1,ye.write(_t)!==!1||gt||((De.pipesCount===1&&De.pipes===ye||De.pipesCount>1&&Y(De.pipes,ye)!==-1)&&!Xe&&(Ae("false write response, pause",ue._readableState.awaitDrain),ue._readableState.awaitDrain++,gt=!0),ue.pause())}function N(_t){Ae("onerror",_t),ne(),ye.removeListener("error",N),X(ye,"error")===0&&ye.emit("error",_t)}function W(){ye.removeListener("finish",ce),ne()}function ce(){Ae("onfinish"),ye.removeListener("close",W),ne()}function ne(){Ae("unpipe"),ue.unpipe(ye)}var ue=this,De=this._readableState;switch(De.pipesCount){case 0:De.pipes=ye;break;case 1:De.pipes=[De.pipes,ye];break;default:De.pipes.push(ye)}De.pipesCount+=1,Ae("pipe count=%d opts=%j",De.pipesCount,de);var ze=(!de||de.end!==!1)&&ye!==b.stdout&&ye!==b.stderr,wt=ze?ke:ne;De.endEmitted?z.nextTick(wt):ue.once("end",wt),ye.on("unpipe",Me);var He=w(ue);ye.on("drain",He);var Xe=!1,gt=!1;return ue.on("data",re),n(ye,"error",N),ye.once("close",W),ye.once("finish",ce),ye.emit("pipe",ue),De.flowing||(Ae("pipe resume"),ue.resume()),ye},s.prototype.unpipe=function(ye){var de=this._readableState,Me={hasUnpiped:!1};if(de.pipesCount===0)return this;if(de.pipesCount===1)return ye&&ye!==de.pipes?this:(ye||(ye=de.pipes),de.pipes=null,de.pipesCount=0,de.flowing=!1,ye&&ye.emit("unpipe",this,Me),this);if(!ye){var ke=de.pipes,Ue=de.pipesCount;de.pipes=null,de.pipesCount=0,de.flowing=!1;for(var re=0;re<Ue;re++)ke[re].emit("unpipe",this,Me);return this}var N=Y(de.pipes,ye);return N===-1?this:(de.pipes.splice(N,1),de.pipesCount-=1,de.pipesCount===1&&(de.pipes=de.pipes[0]),ye.emit("unpipe",this,Me),this)},s.prototype.on=function(ye,de){var Me=te.prototype.on.call(this,ye,de);if(ye==="data")this._readableState.flowing!==!1&&this.resume();else if(ye==="readable"){var ke=this._readableState;ke.endEmitted||ke.readableListening||(ke.readableListening=ke.needReadable=!0,ke.emittedReadable=!1,ke.reading?ke.length&&v(this):z.nextTick(m,this))}return Me},s.prototype.addListener=s.prototype.on,s.prototype.resume=function(){var ye=this._readableState;return ye.flowing||(Ae("resume"),ye.flowing=!0,c(this,ye)),this},s.prototype.pause=function(){return Ae("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Ae("pause"),this._readableState.flowing=!1,this.emit("pause")),this},s.prototype.wrap=function(ye){var de=this,Me=this._readableState,ke=!1;ye.on("end",function(){if(Ae("wrapped end"),Me.decoder&&!Me.ended){var N=Me.decoder.end();N&&N.length&&de.push(N)}de.push(null)}),ye.on("data",function(N){(Ae("wrapped data"),Me.decoder&&(N=Me.decoder.write(N)),(!Me.objectMode||N!=null)&&(Me.objectMode||N&&N.length))&&(de.push(N)||(ke=!0,ye.pause()))});for(var Ue in ye)this[Ue]===void 0&&typeof ye[Ue]=="function"&&(this[Ue]=function(N){return function(){return ye[N].apply(ye,arguments)}}(Ue));for(var re=0;re<ie.length;re++)ye.on(ie[re],this.emit.bind(this,ie[re]));return this._read=function(N){Ae("wrapped _read",N),ke&&(ke=!1,ye.resume())},this},Object.defineProperty(s.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),s._fromList=D}).call(this,p("_process"),typeof ae!="undefined"?ae: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(p,E,C){"use strict";function b(s,u){var a=this._transformState;a.transforming=!1;var A=a.writecb;if(!A)return this.emit("error",new Error("write callback called multiple times"));a.writechunk=null,a.writecb=null,u!=null&&this.push(u),A(s);var d=this._readableState;d.reading=!1,(d.needReadable||d.length<d.highWaterMark)&&this._read(d.highWaterMark)}function f(s){if(!(this instanceof f))return new f(s);n.call(this,s),this._transformState={afterTransform:b.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,s&&(typeof s.transform=="function"&&(this._transform=s.transform),typeof s.flush=="function"&&(this._flush=s.flush)),this.on("prefinish",l)}function l(){var s=this;typeof this._flush=="function"?this._flush(function(u,a){r(s,u,a)}):r(this,null,null)}function r(s,u,a){if(u)return s.emit("error",u);if(a!=null&&s.push(a),s._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(s._transformState.transforming)throw new Error("Calling transform done when still transforming");return s.push(null)}E.exports=f;var n=p("./_stream_duplex"),e=p("core-util-is");e.inherits=p("inherits"),e.inherits(f,n),f.prototype.push=function(s,u){return this._transformState.needTransform=!1,n.prototype.push.call(this,s,u)},f.prototype._transform=function(s,u,a){throw new Error("_transform() is not implemented")},f.prototype._write=function(s,u,a){var A=this._transformState;if(A.writecb=a,A.writechunk=s,A.writeencoding=u,!A.transforming){var d=this._readableState;(A.needTransform||d.needReadable||d.length<d.highWaterMark)&&this._read(d.highWaterMark)}},f.prototype._read=function(s){var u=this._transformState;u.writechunk!==null&&u.writecb&&!u.transforming?(u.transforming=!0,this._transform(u.writechunk,u.writeencoding,u.afterTransform)):u.needTransform=!0},f.prototype._destroy=function(s,u){var a=this;n.prototype._destroy.call(this,s,function(A){u(A),a.emit("close")})}},{"./_stream_duplex":179,"core-util-is":153,inherits:162}],183:[function(p,E,C){(function(b,f){"use strict";function l(he){return he&&he.__esModule?he:{default:he}}function r(he){var ie=this;this.next=null,this.entry=null,this.finish=function(){O(ie,he)}}function n(he){return we.from(he)}function e(he){return we.isBuffer(he)||he instanceof Ae}function s(){}function u(he,ie){X=X||p("./_stream_duplex"),he=he||{};var pe=ie instanceof X;this.objectMode=!!he.objectMode,pe&&(this.objectMode=this.objectMode||!!he.writableObjectMode);var ye=he.highWaterMark,de=he.writableHighWaterMark,Me=this.objectMode?16:16384;this.highWaterMark=ye||ye===0?ye:pe&&(de||de===0)?de:Me,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 ke=he.decodeStrings===!1;this.decodeStrings=!ke,this.defaultEncoding=he.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ue){S(ie,Ue)},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 r(this)}function a(he){if(X=X||p("./_stream_duplex"),!(me.call(a,this)||this instanceof X))return new a(he);this._writableState=new u(he,this),this.writable=!0,he&&(typeof he.write=="function"&&(this._write=he.write),typeof he.writev=="function"&&(this._writev=he.writev),typeof he.destroy=="function"&&(this._destroy=he.destroy),typeof he.final=="function"&&(this._final=he.final)),le.call(this)}function A(he,ie){var pe=new Error("write after end");he.emit("error",pe),Q.nextTick(ie,pe)}function d(he,ie,pe,ye){var de=!0,Me=!1;return pe===null?Me=new TypeError("May not write null values to stream"):typeof pe=="string"||pe===void 0||ie.objectMode||(Me=new TypeError("Invalid non-string/buffer chunk")),Me&&(he.emit("error",Me),Q.nextTick(ye,Me),de=!1),de}function i(he,ie,pe){return he.objectMode||he.decodeStrings===!1||typeof ie!="string"||(ie=we.from(ie,pe)),ie}function h(he,ie,pe,ye,de,Me){if(!pe){var ke=i(ie,ye,de);ye!==ke&&(pe=!0,de="buffer",ye=ke)}var Ue=ie.objectMode?1:ye.length;ie.length+=Ue;var re=ie.length<ie.highWaterMark;if(re||(ie.needDrain=!0),ie.writing||ie.corked){var N=ie.lastBufferedRequest;ie.lastBufferedRequest={chunk:ye,encoding:de,isBuf:pe,callback:Me,next:null},N?N.next=ie.lastBufferedRequest:ie.bufferedRequest=ie.lastBufferedRequest,ie.bufferedRequestCount+=1}else y(he,ie,!1,Ue,ye,de,Me);return re}function y(he,ie,pe,ye,de,Me,ke){ie.writelen=ye,ie.writecb=ke,ie.writing=!0,ie.sync=!0,pe?he._writev(de,ie.onwrite):he._write(de,Me,ie.onwrite),ie.sync=!1}function v(he,ie,pe,ye,de){--ie.pendingcb,pe?(Q.nextTick(de,ye),Q.nextTick(D,he,ie),he._writableState.errorEmitted=!0,he.emit("error",ye)):(de(ye),he._writableState.errorEmitted=!0,he.emit("error",ye),D(he,ie))}function x(he){he.writing=!1,he.writecb=null,he.length-=he.writelen,he.writelen=0}function S(he,ie){var pe=he._writableState,ye=pe.sync,de=pe.writecb;if(x(pe),ie)v(he,pe,ye,ie,de);else{var Me=c(pe);Me||pe.corked||pe.bufferProcessing||!pe.bufferedRequest||m(he,pe),ye?te(B,he,pe,Me,de):B(he,pe,Me,de)}}function B(he,ie,pe,ye){pe||w(he,ie),ie.pendingcb--,ye(),D(he,ie)}function w(he,ie){ie.length===0&&ie.needDrain&&(ie.needDrain=!1,he.emit("drain"))}function m(he,ie){ie.bufferProcessing=!0;var pe=ie.bufferedRequest;if(he._writev&&pe&&pe.next){var ye=ie.bufferedRequestCount,de=new Array(ye),Me=ie.corkedRequestsFree;Me.entry=pe;for(var ke=0,Ue=!0;pe;)de[ke]=pe,pe.isBuf||(Ue=!1),pe=pe.next,ke+=1;de.allBuffers=Ue,y(he,ie,!0,ie.length,de,"",Me.finish),ie.pendingcb++,ie.lastBufferedRequest=null,Me.next?(ie.corkedRequestsFree=Me.next,Me.next=null):ie.corkedRequestsFree=new r(ie),ie.bufferedRequestCount=0}else{for(;pe;){var re=pe.chunk,N=pe.encoding,W=pe.callback;if(y(he,ie,!1,ie.objectMode?1:re.length,re,N,W),pe=pe.next,ie.bufferedRequestCount--,ie.writing)break}pe===null&&(ie.lastBufferedRequest=null)}ie.bufferedRequest=pe,ie.bufferProcessing=!1}function c(he){return he.ending&&he.length===0&&he.bufferedRequest===null&&!he.finished&&!he.writing}function o(he,ie){he._final(function(pe){ie.pendingcb--,pe&&he.emit("error",pe),ie.prefinished=!0,he.emit("prefinish"),D(he,ie)})}function _(he,ie){ie.prefinished||ie.finalCalled||(typeof he._final=="function"?(ie.pendingcb++,ie.finalCalled=!0,Q.nextTick(o,he,ie)):(ie.prefinished=!0,he.emit("prefinish")))}function D(he,ie){var pe=c(ie);return pe&&(_(he,ie),ie.pendingcb===0&&(ie.finished=!0,he.emit("finish"))),pe}function T(he,ie,pe){ie.ending=!0,D(he,ie),pe&&(ie.finished?Q.nextTick(pe):he.once("finish",pe)),ie.ended=!0,he.writable=!1}function O(he,ie,pe){var ye=he.entry;for(he.entry=null;ye;){var de=ye.callback;ie.pendingcb--,de(pe),ye=ye.next}ie.corkedRequestsFree?ie.corkedRequestsFree.next=he:ie.corkedRequestsFree=he}var R=p("babel-runtime/core-js/object/define-property"),U=l(R),F=p("babel-runtime/core-js/symbol/has-instance"),Y=l(F),k=p("babel-runtime/core-js/symbol"),K=l(k),z=p("babel-runtime/core-js/set-immediate"),j=l(z),Q=p("process-nextick-args");E.exports=a;var X,te=!b.browser&&["v0.10","v0.9."].indexOf(b.version.slice(0,5))>-1?j.default:Q.nextTick;a.WritableState=u;var oe=p("core-util-is");oe.inherits=p("inherits");var fe={deprecate:p("util-deprecate")},le=p("./internal/streams/stream"),we=p("safe-buffer").Buffer,Ae=f.Uint8Array||function(){},be=p("./internal/streams/destroy");oe.inherits(a,le),u.prototype.getBuffer=function(){for(var he=this.bufferedRequest,ie=[];he;)ie.push(he),he=he.next;return ie},function(){try{Object.defineProperty(u.prototype,"buffer",{get:fe.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(he){}}();var me;typeof K.default=="function"&&Y.default&&typeof Function.prototype[Y.default]=="function"?(me=Function.prototype[Y.default],(0,U.default)(a,Y.default,{value:function(he){return!!me.call(this,he)||this===a&&he&&he._writableState instanceof u}})):me=function(he){return he instanceof this},a.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},a.prototype.write=function(he,ie,pe){var ye=this._writableState,de=!1,Me=!ye.objectMode&&e(he);return Me&&!we.isBuffer(he)&&(he=n(he)),typeof ie=="function"&&(pe=ie,ie=null),Me?ie="buffer":ie||(ie=ye.defaultEncoding),typeof pe!="function"&&(pe=s),ye.ended?A(this,pe):(Me||d(this,ye,he,pe))&&(ye.pendingcb++,de=h(this,ye,Me,he,ie,pe)),de},a.prototype.cork=function(){this._writableState.corked++},a.prototype.uncork=function(){var he=this._writableState;he.corked&&(he.corked--,he.writing||he.corked||he.finished||he.bufferProcessing||!he.bufferedRequest||m(this,he))},a.prototype.setDefaultEncoding=function(he){if(typeof he=="string"&&(he=he.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((he+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+he);return this._writableState.defaultEncoding=he,this},Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),a.prototype._write=function(he,ie,pe){pe(new Error("_write() is not implemented"))},a.prototype._writev=null,a.prototype.end=function(he,ie,pe){var ye=this._writableState;typeof he=="function"?(pe=he,he=null,ie=null):typeof ie=="function"&&(pe=ie,ie=null),he!=null&&this.write(he,ie),ye.corked&&(ye.corked=1,this.uncork()),ye.ending||ye.finished||T(this,ye,pe)},Object.defineProperty(a.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(he){this._writableState&&(this._writableState.destroyed=he)}}),a.prototype.destroy=be.destroy,a.prototype._undestroy=be.undestroy,a.prototype._destroy=function(he,ie){this.end(),ie(he)}}).call(this,p("_process"),typeof ae!="undefined"?ae: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(p,E,C){"use strict";function b(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function f(n,e,s){n.copy(e,s)}var l=p("safe-buffer").Buffer,r=p("util");E.exports=function(){function n(){b(this,n),this.head=null,this.tail=null,this.length=0}return n.prototype.push=function(e){var s={data:e,next:null};this.length>0?this.tail.next=s:this.head=s,this.tail=s,++this.length},n.prototype.unshift=function(e){var s={data:e,next:this.head};this.length===0&&(this.tail=s),this.head=s,++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 s=this.head,u=""+s.data;s=s.next;)u+=e+s.data;return u},n.prototype.concat=function(e){if(this.length===0)return l.alloc(0);if(this.length===1)return this.head.data;for(var s=l.allocUnsafe(e>>>0),u=this.head,a=0;u;)f(u.data,s,a),a+=u.data.length,u=u.next;return s},n}(),r&&r.inspect&&r.inspect.custom&&(E.exports.prototype[r.inspect.custom]=function(){var n=r.inspect({length:this.length});return this.constructor.name+" "+n})},{"safe-buffer":193,util:36}],185:[function(p,E,C){"use strict";function b(n,e){var s=this,u=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return u||a?(e?e(n):!n||this._writableState&&this._writableState.errorEmitted||r.nextTick(l,this,n),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(n||null,function(A){!e&&A?(r.nextTick(l,s,A),s._writableState&&(s._writableState.errorEmitted=!0)):e&&e(A)}),this)}function f(){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 l(n,e){n.emit("error",e)}var r=p("process-nextick-args");E.exports={destroy:b,undestroy:f}},{"process-nextick-args":172}],186:[function(p,E,C){"use strict";E.exports=p("events").EventEmitter},{events:158}],187:[function(p,E,C){E.exports=p("./readable").PassThrough},{"./readable":188}],188:[function(p,E,C){C=E.exports=p("./lib/_stream_readable.js"),C.Stream=C,C.Readable=C,C.Writable=p("./lib/_stream_writable.js"),C.Duplex=p("./lib/_stream_duplex.js"),C.Transform=p("./lib/_stream_transform.js"),C.PassThrough=p("./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(p,E,C){E.exports=p("./readable").Transform},{"./readable":188}],190:[function(p,E,C){E.exports=p("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":183}],191:[function(p,E,C){var b=function(){return this}()||Function("return this")(),f=b.regeneratorRuntime&&Object.getOwnPropertyNames(b).indexOf("regeneratorRuntime")>=0,l=f&&b.regeneratorRuntime;if(b.regeneratorRuntime=void 0,E.exports=p("./runtime"),f)b.regeneratorRuntime=l;else try{delete b.regeneratorRuntime}catch(r){b.regeneratorRuntime=void 0}},{"./runtime":192}],192:[function(p,E,C){!function(b){"use strict";function f(j,Q,X,te){var oe=Q&&Q.prototype instanceof r?Q:r,fe=Object.create(oe.prototype),le=new h(te||[]);return fe._invoke=a(j,X,le),fe}function l(j,Q,X){try{return{type:"normal",arg:j.call(Q,X)}}catch(te){return{type:"throw",arg:te}}}function r(){}function n(){}function e(){}function s(j){["next","throw","return"].forEach(function(Q){j[Q]=function(X){return this._invoke(Q,X)}})}function u(j){function Q(oe,fe,le,we){var Ae=l(j[oe],j,fe);if(Ae.type!=="throw"){var be=Ae.arg,me=be.value;return me&&typeof me=="object"&&B.call(me,"__await")?Promise.resolve(me.__await).then(function(he){Q("next",he,le,we)},function(he){Q("throw",he,le,we)}):Promise.resolve(me).then(function(he){be.value=he,le(be)},we)}we(Ae.arg)}function X(oe,fe){function le(){return new Promise(function(we,Ae){Q(oe,fe,we,Ae)})}return te=te?te.then(le,le):le()}var te;this._invoke=X}function a(j,Q,X){var te=T;return function(oe,fe){if(te===R)throw new Error("Generator is already running");if(te===U){if(oe==="throw")throw fe;return v()}for(X.method=oe,X.arg=fe;;){var le=X.delegate;if(le){var we=A(le,X);if(we){if(we===F)continue;return we}}if(X.method==="next")X.sent=X._sent=X.arg;else if(X.method==="throw"){if(te===T)throw te=U,X.arg;X.dispatchException(X.arg)}else X.method==="return"&&X.abrupt("return",X.arg);te=R;var Ae=l(j,Q,X);if(Ae.type==="normal"){if(te=X.done?U:O,Ae.arg===F)continue;return{value:Ae.arg,done:X.done}}Ae.type==="throw"&&(te=U,X.method="throw",X.arg=Ae.arg)}}}function A(j,Q){var X=j.iterator[Q.method];if(X===x){if(Q.delegate=null,Q.method==="throw"){if(j.iterator.return&&(Q.method="return",Q.arg=x,A(j,Q),Q.method==="throw"))return F;Q.method="throw",Q.arg=new TypeError("The iterator does not provide a 'throw' method")}return F}var te=l(X,j.iterator,Q.arg);if(te.type==="throw")return Q.method="throw",Q.arg=te.arg,Q.delegate=null,F;var oe=te.arg;return oe?oe.done?(Q[j.resultName]=oe.value,Q.next=j.nextLoc,Q.method!=="return"&&(Q.method="next",Q.arg=x),Q.delegate=null,F):oe:(Q.method="throw",Q.arg=new TypeError("iterator result is not an object"),Q.delegate=null,F)}function d(j){var Q={tryLoc:j[0]};1 in j&&(Q.catchLoc=j[1]),2 in j&&(Q.finallyLoc=j[2],Q.afterLoc=j[3]),this.tryEntries.push(Q)}function i(j){var Q=j.completion||{};Q.type="normal",delete Q.arg,j.completion=Q}function h(j){this.tryEntries=[{tryLoc:"root"}],j.forEach(d,this),this.reset(!0)}function y(j){if(j){var Q=j[m];if(Q)return Q.call(j);if(typeof j.next=="function")return j;if(!isNaN(j.length)){var X=-1,te=function oe(){for(;++X<j.length;)if(B.call(j,X))return oe.value=j[X],oe.done=!1,oe;return oe.value=x,oe.done=!0,oe};return te.next=te}}return{next:v}}function v(){return{value:x,done:!0}}var x,S=Object.prototype,B=S.hasOwnProperty,w=typeof Symbol=="function"?Symbol:{},m=w.iterator||"@@iterator",c=w.asyncIterator||"@@asyncIterator",o=w.toStringTag||"@@toStringTag",_=typeof E=="object",D=b.regeneratorRuntime;if(D)return void(_&&(E.exports=D));D=b.regeneratorRuntime=_?E.exports:{},D.wrap=f;var T="suspendedStart",O="suspendedYield",R="executing",U="completed",F={},Y={};Y[m]=function(){return this};var k=Object.getPrototypeOf,K=k&&k(k(y([])));K&&K!==S&&B.call(K,m)&&(Y=K);var z=e.prototype=r.prototype=Object.create(Y);n.prototype=z.constructor=e,e.constructor=n,e[o]=n.displayName="GeneratorFunction",D.isGeneratorFunction=function(j){var Q=typeof j=="function"&&j.constructor;return!!Q&&(Q===n||(Q.displayName||Q.name)==="GeneratorFunction")},D.mark=function(j){return Object.setPrototypeOf?Object.setPrototypeOf(j,e):(j.__proto__=e,o in j||(j[o]="GeneratorFunction")),j.prototype=Object.create(z),j},D.awrap=function(j){return{__await:j}},s(u.prototype),u.prototype[c]=function(){return this},D.AsyncIterator=u,D.async=function(j,Q,X,te){var oe=new u(f(j,Q,X,te));return D.isGeneratorFunction(Q)?oe:oe.next().then(function(fe){return fe.done?fe.value:oe.next()})},s(z),z[o]="Generator",z[m]=function(){return this},z.toString=function(){return"[object Generator]"},D.keys=function(j){var Q=[];for(var X in j)Q.push(X);return Q.reverse(),function te(){for(;Q.length;){var oe=Q.pop();if(oe in j)return te.value=oe,te.done=!1,te}return te.done=!0,te}},D.values=y,h.prototype={constructor:h,reset:function(j){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(i),!j)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 j=this.tryEntries[0],Q=j.completion;if(Q.type==="throw")throw Q.arg;return this.rval},dispatchException:function(j){function Q(Ae,be){return fe.type="throw",fe.arg=j,X.next=Ae,be&&(X.method="next",X.arg=x),!!be}if(this.done)throw j;for(var X=this,te=this.tryEntries.length-1;te>=0;--te){var oe=this.tryEntries[te],fe=oe.completion;if(oe.tryLoc==="root")return Q("end");if(oe.tryLoc<=this.prev){var le=B.call(oe,"catchLoc"),we=B.call(oe,"finallyLoc");if(le&&we){if(this.prev<oe.catchLoc)return Q(oe.catchLoc,!0);if(this.prev<oe.finallyLoc)return Q(oe.finallyLoc)}else if(le){if(this.prev<oe.catchLoc)return Q(oe.catchLoc,!0)}else{if(!we)throw new Error("try statement without catch or finally");if(this.prev<oe.finallyLoc)return Q(oe.finallyLoc)}}}},abrupt:function(j,Q){for(var X=this.tryEntries.length-1;X>=0;--X){var te=this.tryEntries[X];if(te.tryLoc<=this.prev&&B.call(te,"finallyLoc")&&this.prev<te.finallyLoc){var oe=te;break}}oe&&(j==="break"||j==="continue")&&oe.tryLoc<=Q&&Q<=oe.finallyLoc&&(oe=null);var fe=oe?oe.completion:{};return fe.type=j,fe.arg=Q,oe?(this.method="next",this.next=oe.finallyLoc,F):this.complete(fe)},complete:function(j,Q){if(j.type==="throw")throw j.arg;return j.type==="break"||j.type==="continue"?this.next=j.arg:j.type==="return"?(this.rval=this.arg=j.arg,this.method="return",this.next="end"):j.type==="normal"&&Q&&(this.next=Q),F},finish:function(j){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var X=this.tryEntries[Q];if(X.finallyLoc===j)return this.complete(X.completion,X.afterLoc),i(X),F}},catch:function(j){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var X=this.tryEntries[Q];if(X.tryLoc===j){var te=X.completion;if(te.type==="throw"){var oe=te.arg;i(X)}return oe}}throw new Error("illegal catch attempt")},delegateYield:function(j,Q,X){return this.delegate={iterator:y(j),resultName:Q,nextLoc:X},this.method==="next"&&(this.arg=x),F}}}(function(){return this}()||Function("return this")())},{}],193:[function(p,E,C){function b(n,e){for(var s in n)e[s]=n[s]}function f(n,e,s){return r(n,e,s)}var l=p("buffer"),r=l.Buffer;r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?E.exports=l:(b(l,C),C.Buffer=f),b(r,f),f.from=function(n,e,s){if(typeof n=="number")throw new TypeError("Argument must not be a number");return r(n,e,s)},f.alloc=function(n,e,s){if(typeof n!="number")throw new TypeError("Argument must be a number");var u=r(n);return e!==void 0?typeof s=="string"?u.fill(e,s):u.fill(e):u.fill(0),u},f.allocUnsafe=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return r(n)},f.allocUnsafeSlow=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return l.SlowBuffer(n)}},{buffer:38}],194:[function(p,E,C){(function(b){"use strict";function f(v){return v&&v.__esModule?v:{default:v}}var l=p("babel-runtime/core-js/string/from-code-point"),r=f(l),n=p("babel-runtime/core-js/json/stringify"),e=f(n),s=p("babel-runtime/helpers/typeof"),u=f(s),a=p("babel-runtime/core-js/object/define-property"),A=f(a),d=p("babel-runtime/core-js/object/keys"),i=f(d),h=p("babel-runtime/core-js/object/create"),y=f(h);!function(v){function x(ne,ue){if(!(this instanceof x))return new x(ne,ue);var De=this;B(De),De.q=De.c="",De.bufferCheckPosition=v.MAX_BUFFER_LENGTH,De.opt=ue||{},De.opt.lowercase=De.opt.lowercase||De.opt.lowercasetags,De.looseCase=De.opt.lowercase?"toLowerCase":"toUpperCase",De.tags=[],De.closed=De.closedRoot=De.sawRoot=!1,De.tag=De.error=null,De.strict=!!ne,De.noscript=!(!ne&&!De.opt.noscript),De.state=W.BEGIN,De.strictEntities=De.opt.strictEntities,De.ENTITIES=De.strictEntities?(0,y.default)(v.XML_ENTITIES):(0,y.default)(v.ENTITIES),De.attribList=[],De.opt.xmlns&&(De.ns=(0,y.default)(Me)),De.trackPosition=De.opt.position!==!1,De.trackPosition&&(De.position=De.line=De.column=0),R(De,"onready")}function S(ne){for(var ue=Math.max(v.MAX_BUFFER_LENGTH,10),De=0,ze=0,wt=be.length;ze<wt;ze++){var He=ne[be[ze]].length;if(He>ue)switch(be[ze]){case"textNode":F(ne);break;case"cdata":U(ne,"oncdata",ne.cdata),ne.cdata="";break;case"script":U(ne,"onscript",ne.script),ne.script="";break;default:k(ne,"Max buffer length exceeded: "+be[ze])}De=Math.max(De,He)}var Xe=v.MAX_BUFFER_LENGTH-De;ne.bufferCheckPosition=Xe+ne.position}function B(ne){for(var ue=0,De=be.length;ue<De;ue++)ne[be[ue]]=""}function w(ne){F(ne),ne.cdata!==""&&(U(ne,"oncdata",ne.cdata),ne.cdata=""),ne.script!==""&&(U(ne,"onscript",ne.script),ne.script="")}function m(ne,ue){return new c(ne,ue)}function c(ne,ue){if(!(this instanceof c))return new c(ne,ue);me.apply(this),this._parser=new x(ne,ue),this.writable=!0,this.readable=!0;var De=this;this._parser.onend=function(){De.emit("end")},this._parser.onerror=function(ze){De.emit("error",ze),De._parser.error=null},this._decoder=null,he.forEach(function(ze){(0,A.default)(De,"on"+ze,{get:function(){return De._parser["on"+ze]},set:function(wt){if(!wt)return De.removeAllListeners(ze),De._parser["on"+ze]=wt,wt;De.on(ze,wt)},enumerable:!0,configurable:!1})})}function o(ne){return ne===" "||ne===`
`||ne==="\r"||ne===" "}function _(ne){return ne==='"'||ne==="'"}function D(ne){return ne===">"||o(ne)}function T(ne,ue){return ne.test(ue)}function O(ne,ue){return!T(ne,ue)}function R(ne,ue,De){ne[ue]&&ne[ue](De)}function U(ne,ue,De){ne.textNode&&F(ne),R(ne,ue,De)}function F(ne){ne.textNode=Y(ne.opt,ne.textNode),ne.textNode&&R(ne,"ontext",ne.textNode),ne.textNode=""}function Y(ne,ue){return ne.trim&&(ue=ue.trim()),ne.normalize&&(ue=ue.replace(/\s+/g," ")),ue}function k(ne,ue){return F(ne),ne.trackPosition&&(ue+=`
Line: `+ne.line+`
Column: `+ne.column+`
Char: `+ne.c),ue=new Error(ue),ne.error=ue,R(ne,"onerror",ue),ne}function K(ne){return ne.sawRoot&&!ne.closedRoot&&z(ne,"Unclosed root tag"),ne.state!==W.BEGIN&&ne.state!==W.BEGIN_WHITESPACE&&ne.state!==W.TEXT&&k(ne,"Unexpected end"),F(ne),ne.c="",ne.closed=!0,R(ne,"onend"),x.call(ne,ne.strict,ne.opt),ne}function z(ne,ue){if((ne===void 0?"undefined":(0,u.default)(ne))!=="object"||!(ne instanceof x))throw new Error("bad call to strictFail");ne.strict&&k(ne,ue)}function j(ne){ne.strict||(ne.tagName=ne.tagName[ne.looseCase]());var ue=ne.tags[ne.tags.length-1]||ne,De=ne.tag={name:ne.tagName,attributes:{}};ne.opt.xmlns&&(De.ns=ue.ns),ne.attribList.length=0,U(ne,"onopentagstart",De)}function Q(ne,ue){var De=ne.indexOf(":"),ze=De<0?["",ne]:ne.split(":"),wt=ze[0],He=ze[1];return ue&&ne==="xmlns"&&(wt="xmlns",He=""),{prefix:wt,local:He}}function X(ne){if(ne.strict||(ne.attribName=ne.attribName[ne.looseCase]()),ne.attribList.indexOf(ne.attribName)!==-1||ne.tag.attributes.hasOwnProperty(ne.attribName))return void(ne.attribName=ne.attribValue="");if(ne.opt.xmlns){var ue=Q(ne.attribName,!0),De=ue.prefix,ze=ue.local;if(De==="xmlns")if(ze==="xml"&&ne.attribValue!==ye)z(ne,"xml: prefix must be bound to "+ye+`
Actual: `+ne.attribValue);else if(ze==="xmlns"&&ne.attribValue!==de)z(ne,"xmlns: prefix must be bound to "+de+`
Actual: `+ne.attribValue);else{var wt=ne.tag,He=ne.tags[ne.tags.length-1]||ne;wt.ns===He.ns&&(wt.ns=(0,y.default)(He.ns)),wt.ns[ze]=ne.attribValue}ne.attribList.push([ne.attribName,ne.attribValue])}else ne.tag.attributes[ne.attribName]=ne.attribValue,U(ne,"onattribute",{name:ne.attribName,value:ne.attribValue});ne.attribName=ne.attribValue=""}function te(ne,ue){if(ne.opt.xmlns){var De=ne.tag,ze=Q(ne.tagName);De.prefix=ze.prefix,De.local=ze.local,De.uri=De.ns[ze.prefix]||"",De.prefix&&!De.uri&&(z(ne,"Unbound namespace prefix: "+(0,e.default)(ne.tagName)),De.uri=ze.prefix);var wt=ne.tags[ne.tags.length-1]||ne;De.ns&&wt.ns!==De.ns&&(0,i.default)(De.ns).forEach(function(je){U(ne,"onopennamespace",{prefix:je,uri:De.ns[je]})});for(var He=0,Xe=ne.attribList.length;He<Xe;He++){var gt=ne.attribList[He],_t=gt[0],ct=gt[1],lt=Q(_t,!0),rt=lt.prefix,Ze=lt.local,qe=rt===""?"":De.ns[rt]||"",Le={name:_t,value:ct,prefix:rt,local:Ze,uri:qe};rt&&rt!=="xmlns"&&!qe&&(z(ne,"Unbound namespace prefix: "+(0,e.default)(rt)),Le.uri=rt),ne.tag.attributes[_t]=Le,U(ne,"onattribute",Le)}ne.attribList.length=0}ne.tag.isSelfClosing=!!ue,ne.sawRoot=!0,ne.tags.push(ne.tag),U(ne,"onopentag",ne.tag),ue||(ne.noscript||ne.tagName.toLowerCase()!=="script"?ne.state=W.TEXT:ne.state=W.SCRIPT,ne.tag=null,ne.tagName=""),ne.attribName=ne.attribValue="",ne.attribList.length=0}function oe(ne){if(!ne.tagName)return z(ne,"Weird empty close tag."),ne.textNode+="</>",void(ne.state=W.TEXT);if(ne.script){if(ne.tagName!=="script")return ne.script+="</"+ne.tagName+">",ne.tagName="",void(ne.state=W.SCRIPT);U(ne,"onscript",ne.script),ne.script=""}var ue=ne.tags.length,De=ne.tagName;ne.strict||(De=De[ne.looseCase]());for(var ze=De;ue--&&!(ne.tags[ue].name===ze);)z(ne,"Unexpected close tag");if(ue<0)return z(ne,"Unmatched closing tag: "+ne.tagName),ne.textNode+="</"+ne.tagName+">",void(ne.state=W.TEXT);ne.tagName=De;for(var wt=ne.tags.length;wt-- >ue;){var He=ne.tag=ne.tags.pop();ne.tagName=ne.tag.name,U(ne,"onclosetag",ne.tagName);var Xe={};for(var gt in He.ns)Xe[gt]=He.ns[gt];var _t=ne.tags[ne.tags.length-1]||ne;ne.opt.xmlns&&He.ns!==_t.ns&&(0,i.default)(He.ns).forEach(function(ct){var lt=He.ns[ct];U(ne,"onclosenamespace",{prefix:ct,uri:lt})})}ue===0&&(ne.closedRoot=!0),ne.tagName=ne.attribValue=ne.attribName="",ne.attribList.length=0,ne.state=W.TEXT}function fe(ne){var ue,De=ne.entity,ze=De.toLowerCase(),wt="";return ne.ENTITIES[De]?ne.ENTITIES[De]:ne.ENTITIES[ze]?ne.ENTITIES[ze]:(De=ze,De.charAt(0)==="#"&&(De.charAt(1)==="x"?(De=De.slice(2),ue=parseInt(De,16),wt=ue.toString(16)):(De=De.slice(1),ue=parseInt(De,10),wt=ue.toString(10))),De=De.replace(/^0+/,""),isNaN(ue)||wt.toLowerCase()!==De?(z(ne,"Invalid character entity"),"&"+ne.entity+";"):(0,r.default)(ue))}function le(ne,ue){ue==="<"?(ne.state=W.OPEN_WAKA,ne.startTagPosition=ne.position):o(ue)||(z(ne,"Non-whitespace before first tag."),ne.textNode=ue,ne.state=W.TEXT)}function we(ne,ue){var De="";return ue<ne.length&&(De=ne.charAt(ue)),De}function Ae(ne){var ue=this;if(this.error)throw this.error;if(ue.closed)return k(ue,"Cannot write after close. Assign an onready handler.");if(ne===null)return K(ue);(ne===void 0?"undefined":(0,u.default)(ne))==="object"&&(ne=ne.toString());for(var De=0,ze="";!(ze=we(ne,De++),ue.c=ze,!ze);)switch(ue.trackPosition&&(ue.position++,ze===`
`?(ue.line++,ue.column=0):ue.column++),ue.state){case W.BEGIN:if(ue.state=W.BEGIN_WHITESPACE,ze==="\uFEFF")continue;le(ue,ze);continue;case W.BEGIN_WHITESPACE:le(ue,ze);continue;case W.TEXT:if(ue.sawRoot&&!ue.closedRoot){for(var wt=De-1;ze&&ze!=="<"&&ze!=="&";)(ze=we(ne,De++))&&ue.trackPosition&&(ue.position++,ze===`
`?(ue.line++,ue.column=0):ue.column++);ue.textNode+=ne.substring(wt,De-1)}ze!=="<"||ue.sawRoot&&ue.closedRoot&&!ue.strict?(o(ze)||ue.sawRoot&&!ue.closedRoot||z(ue,"Text data outside of root node."),ze==="&"?ue.state=W.TEXT_ENTITY:ue.textNode+=ze):(ue.state=W.OPEN_WAKA,ue.startTagPosition=ue.position);continue;case W.SCRIPT:ze==="<"?ue.state=W.SCRIPT_ENDING:ue.script+=ze;continue;case W.SCRIPT_ENDING:ze==="/"?ue.state=W.CLOSE_TAG:(ue.script+="<"+ze,ue.state=W.SCRIPT);continue;case W.OPEN_WAKA:if(ze==="!")ue.state=W.SGML_DECL,ue.sgmlDecl="";else if(!o(ze))if(T(ke,ze))ue.state=W.OPEN_TAG,ue.tagName=ze;else if(ze==="/")ue.state=W.CLOSE_TAG,ue.tagName="";else if(ze==="?")ue.state=W.PROC_INST,ue.procInstName=ue.procInstBody="";else{if(z(ue,"Unencoded <"),ue.startTagPosition+1<ue.position){var He=ue.position-ue.startTagPosition;ze=new Array(He).join(" ")+ze}ue.textNode+="<"+ze,ue.state=W.TEXT}continue;case W.SGML_DECL:(ue.sgmlDecl+ze).toUpperCase()===ie?(U(ue,"onopencdata"),ue.state=W.CDATA,ue.sgmlDecl="",ue.cdata=""):ue.sgmlDecl+ze==="--"?(ue.state=W.COMMENT,ue.comment="",ue.sgmlDecl=""):(ue.sgmlDecl+ze).toUpperCase()===pe?(ue.state=W.DOCTYPE,(ue.doctype||ue.sawRoot)&&z(ue,"Inappropriately located doctype declaration"),ue.doctype="",ue.sgmlDecl=""):ze===">"?(U(ue,"onsgmldeclaration",ue.sgmlDecl),ue.sgmlDecl="",ue.state=W.TEXT):(_(ze)&&(ue.state=W.SGML_DECL_QUOTED),ue.sgmlDecl+=ze);continue;case W.SGML_DECL_QUOTED:ze===ue.q&&(ue.state=W.SGML_DECL,ue.q=""),ue.sgmlDecl+=ze;continue;case W.DOCTYPE:ze===">"?(ue.state=W.TEXT,U(ue,"ondoctype",ue.doctype),ue.doctype=!0):(ue.doctype+=ze,ze==="["?ue.state=W.DOCTYPE_DTD:_(ze)&&(ue.state=W.DOCTYPE_QUOTED,ue.q=ze));continue;case W.DOCTYPE_QUOTED:ue.doctype+=ze,ze===ue.q&&(ue.q="",ue.state=W.DOCTYPE);continue;case W.DOCTYPE_DTD:ue.doctype+=ze,ze==="]"?ue.state=W.DOCTYPE:_(ze)&&(ue.state=W.DOCTYPE_DTD_QUOTED,ue.q=ze);continue;case W.DOCTYPE_DTD_QUOTED:ue.doctype+=ze,ze===ue.q&&(ue.state=W.DOCTYPE_DTD,ue.q="");continue;case W.COMMENT:ze==="-"?ue.state=W.COMMENT_ENDING:ue.comment+=ze;continue;case W.COMMENT_ENDING:ze==="-"?(ue.state=W.COMMENT_ENDED,ue.comment=Y(ue.opt,ue.comment),ue.comment&&U(ue,"oncomment",ue.comment),ue.comment=""):(ue.comment+="-"+ze,ue.state=W.COMMENT);continue;case W.COMMENT_ENDED:ze!==">"?(z(ue,"Malformed comment"),ue.comment+="--"+ze,ue.state=W.COMMENT):ue.state=W.TEXT;continue;case W.CDATA:ze==="]"?ue.state=W.CDATA_ENDING:ue.cdata+=ze;continue;case W.CDATA_ENDING:ze==="]"?ue.state=W.CDATA_ENDING_2:(ue.cdata+="]"+ze,ue.state=W.CDATA);continue;case W.CDATA_ENDING_2:ze===">"?(ue.cdata&&U(ue,"oncdata",ue.cdata),U(ue,"onclosecdata"),ue.cdata="",ue.state=W.TEXT):ze==="]"?ue.cdata+="]":(ue.cdata+="]]"+ze,ue.state=W.CDATA);continue;case W.PROC_INST:ze==="?"?ue.state=W.PROC_INST_ENDING:o(ze)?ue.state=W.PROC_INST_BODY:ue.procInstName+=ze;continue;case W.PROC_INST_BODY:if(!ue.procInstBody&&o(ze))continue;ze==="?"?ue.state=W.PROC_INST_ENDING:ue.procInstBody+=ze;continue;case W.PROC_INST_ENDING:ze===">"?(U(ue,"onprocessinginstruction",{name:ue.procInstName,body:ue.procInstBody}),ue.procInstName=ue.procInstBody="",ue.state=W.TEXT):(ue.procInstBody+="?"+ze,ue.state=W.PROC_INST_BODY);continue;case W.OPEN_TAG:T(Ue,ze)?ue.tagName+=ze:(j(ue),ze===">"?te(ue):ze==="/"?ue.state=W.OPEN_TAG_SLASH:(o(ze)||z(ue,"Invalid character in tag name"),ue.state=W.ATTRIB));continue;case W.OPEN_TAG_SLASH:ze===">"?(te(ue,!0),oe(ue)):(z(ue,"Forward-slash in opening tag not followed by >"),ue.state=W.ATTRIB);continue;case W.ATTRIB:if(o(ze))continue;ze===">"?te(ue):ze==="/"?ue.state=W.OPEN_TAG_SLASH:T(ke,ze)?(ue.attribName=ze,ue.attribValue="",ue.state=W.ATTRIB_NAME):z(ue,"Invalid attribute name");continue;case W.ATTRIB_NAME:ze==="="?ue.state=W.ATTRIB_VALUE:ze===">"?(z(ue,"Attribute without value"),ue.attribValue=ue.attribName,X(ue),te(ue)):o(ze)?ue.state=W.ATTRIB_NAME_SAW_WHITE:T(Ue,ze)?ue.attribName+=ze:z(ue,"Invalid attribute name");continue;case W.ATTRIB_NAME_SAW_WHITE:if(ze==="=")ue.state=W.ATTRIB_VALUE;else{if(o(ze))continue;z(ue,"Attribute without value"),ue.tag.attributes[ue.attribName]="",ue.attribValue="",U(ue,"onattribute",{name:ue.attribName,value:""}),ue.attribName="",ze===">"?te(ue):T(ke,ze)?(ue.attribName=ze,ue.state=W.ATTRIB_NAME):(z(ue,"Invalid attribute name"),ue.state=W.ATTRIB)}continue;case W.ATTRIB_VALUE:if(o(ze))continue;_(ze)?(ue.q=ze,ue.state=W.ATTRIB_VALUE_QUOTED):(z(ue,"Unquoted attribute value"),ue.state=W.ATTRIB_VALUE_UNQUOTED,ue.attribValue=ze);continue;case W.ATTRIB_VALUE_QUOTED:if(ze!==ue.q){ze==="&"?ue.state=W.ATTRIB_VALUE_ENTITY_Q:ue.attribValue+=ze;continue}X(ue),ue.q="",ue.state=W.ATTRIB_VALUE_CLOSED;continue;case W.ATTRIB_VALUE_CLOSED:o(ze)?ue.state=W.ATTRIB:ze===">"?te(ue):ze==="/"?ue.state=W.OPEN_TAG_SLASH:T(ke,ze)?(z(ue,"No whitespace between attributes"),ue.attribName=ze,ue.attribValue="",ue.state=W.ATTRIB_NAME):z(ue,"Invalid attribute name");continue;case W.ATTRIB_VALUE_UNQUOTED:if(!D(ze)){ze==="&"?ue.state=W.ATTRIB_VALUE_ENTITY_U:ue.attribValue+=ze;continue}X(ue),ze===">"?te(ue):ue.state=W.ATTRIB;continue;case W.CLOSE_TAG:if(ue.tagName)ze===">"?oe(ue):T(Ue,ze)?ue.tagName+=ze:ue.script?(ue.script+="</"+ue.tagName,ue.tagName="",ue.state=W.SCRIPT):(o(ze)||z(ue,"Invalid tagname in closing tag"),ue.state=W.CLOSE_TAG_SAW_WHITE);else{if(o(ze))continue;O(ke,ze)?ue.script?(ue.script+="</"+ze,ue.state=W.SCRIPT):z(ue,"Invalid tagname in closing tag."):ue.tagName=ze}continue;case W.CLOSE_TAG_SAW_WHITE:if(o(ze))continue;ze===">"?oe(ue):z(ue,"Invalid characters in closing tag");continue;case W.TEXT_ENTITY:case W.ATTRIB_VALUE_ENTITY_Q:case W.ATTRIB_VALUE_ENTITY_U:var Xe,gt;switch(ue.state){case W.TEXT_ENTITY:Xe=W.TEXT,gt="textNode";break;case W.ATTRIB_VALUE_ENTITY_Q:Xe=W.ATTRIB_VALUE_QUOTED,gt="attribValue";break;case W.ATTRIB_VALUE_ENTITY_U:Xe=W.ATTRIB_VALUE_UNQUOTED,gt="attribValue"}ze===";"?(ue[gt]+=fe(ue),ue.entity="",ue.state=Xe):T(ue.entity.length?N:re,ze)?ue.entity+=ze:(z(ue,"Invalid character in entity name"),ue[gt]+="&"+ue.entity+ze,ue.entity="",ue.state=Xe);continue;default:throw new Error(ue,"Unknown state: "+ue.state)}return ue.position>=ue.bufferCheckPosition&&S(ue),ue}v.parser=function(ne,ue){return new x(ne,ue)},v.SAXParser=x,v.SAXStream=c,v.createStream=m,v.MAX_BUFFER_LENGTH=65536;var be=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];v.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],y.default||(Object.create=function(ne){function ue(){}return ue.prototype=ne,new ue}),i.default||(Object.keys=function(ne){var ue=[];for(var De in ne)ne.hasOwnProperty(De)&&ue.push(De);return ue}),x.prototype={end:function(){K(this)},write:Ae,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){w(this)}};var me;try{me=p("stream").Stream}catch(ne){me=function(){}}var he=v.EVENTS.filter(function(ne){return ne!=="error"&&ne!=="end"});c.prototype=(0,y.default)(me.prototype,{constructor:{value:c}}),c.prototype.write=function(ne){if(typeof b=="function"&&typeof b.isBuffer=="function"&&b.isBuffer(ne)){if(!this._decoder){var ue=p("string_decoder").StringDecoder;this._decoder=new ue("utf8")}ne=this._decoder.write(ne)}return this._parser.write(ne.toString()),this.emit("data",ne),!0},c.prototype.end=function(ne){return ne&&ne.length&&this.write(ne),this._parser.end(),!0},c.prototype.on=function(ne,ue){var De=this;return De._parser["on"+ne]||he.indexOf(ne)===-1||(De._parser["on"+ne]=function(){var ze=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);ze.splice(0,0,ne),De.emit.apply(De,ze)}),me.prototype.on.call(De,ne,ue)};var ie="[CDATA[",pe="DOCTYPE",ye="http://www.w3.org/XML/1998/namespace",de="http://www.w3.org/2000/xmlns/",Me={xml:ye,xmlns:de},ke=/[:_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]/,Ue=/[:_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]/,N=/[#:_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;v.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++},v.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},v.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,i.default)(v.ENTITIES).forEach(function(ne){var ue=v.ENTITIES[ne],De=typeof ue=="number"?String.fromCharCode(ue):ue;v.ENTITIES[ne]=De});for(var ce in v.STATE)v.STATE[v.STATE[ce]]=ce;W=v.STATE,r.default||function(){var ne=String.fromCharCode,ue=Math.floor,De=function(){var ze,wt,He=[],Xe=-1,gt=arguments.length;if(!gt)return"";for(var _t="";++Xe<gt;){var ct=Number(arguments[Xe]);if(!isFinite(ct)||ct<0||ct>1114111||ue(ct)!==ct)throw RangeError("Invalid code point: "+ct);ct<=65535?He.push(ct):(ct-=65536,ze=55296+(ct>>10),wt=ct%1024+56320,He.push(ze,wt)),(Xe+1===gt||He.length>16384)&&(_t+=ne.apply(null,He),He.length=0)}return _t};A.default?Object.defineProperty(String,"fromCodePoint",{value:De,configurable:!0,writable:!0}):String.fromCodePoint=De}()}(C===void 0?(void 0).sax={}:C)}).call(this,p("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(p,E,C){function b(){f.call(this)}E.exports=b;var f=p("events").EventEmitter;p("inherits")(b,f),b.Readable=p("readable-stream/readable.js"),b.Writable=p("readable-stream/writable.js"),b.Duplex=p("readable-stream/duplex.js"),b.Transform=p("readable-stream/transform.js"),b.PassThrough=p("readable-stream/passthrough.js"),b.Stream=b,b.prototype.pipe=function(l,r){function n(h){l.writable&&l.write(h)===!1&&d.pause&&d.pause()}function e(){d.readable&&d.resume&&d.resume()}function s(){i||(i=!0,l.end())}function u(){i||(i=!0,typeof l.destroy=="function"&&l.destroy())}function a(h){if(A(),f.listenerCount(this,"error")===0)throw h}function A(){d.removeListener("data",n),l.removeListener("drain",e),d.removeListener("end",s),d.removeListener("close",u),d.removeListener("error",a),l.removeListener("error",a),d.removeListener("end",A),d.removeListener("close",A),l.removeListener("close",A)}var d=this;d.on("data",n),l.on("drain",e),l._isStdio||r&&r.end===!1||(d.on("end",s),d.on("close",u));var i=!1;return d.on("error",a),l.on("error",a),d.on("end",A),d.on("close",A),l.on("close",A),l.emit("pipe",d),l}},{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(p,E,C){(function(b){var f=p("./lib/request"),l=p("./lib/response"),r=p("xtend"),n=p("builtin-status-codes"),e=p("url"),s=C;s.request=function(u,a){u=typeof u=="string"?e.parse(u):r(u);var A=b.location.protocol.search(/^https?:$/)===-1?"http:":"",d=u.protocol||A,i=u.hostname||u.host,h=u.port,y=u.path||"/";i&&i.indexOf(":")!==-1&&(i="["+i+"]"),u.url=(i?d+"//"+i:"")+(h?":"+h:"")+y,u.method=(u.method||"GET").toUpperCase(),u.headers=u.headers||{};var v=new f(u);return a&&v.on("response",a),v},s.get=function(u,a){var A=s.request(u,a);return A.end(),A},s.ClientRequest=f,s.IncomingMessage=l.IncomingMessage,s.Agent=function(){},s.Agent.defaultMaxSockets=4,s.globalAgent=new s.Agent,s.STATUS_CODES=n,s.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 ae!="undefined"?ae:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":198,"./lib/response":199,"builtin-status-codes":39,url:203,xtend:236}],197:[function(p,E,C){(function(b){"use strict";function f(){if(n!==void 0)return n;if(b.XMLHttpRequest){n=new b.XMLHttpRequest;try{n.open("GET",b.XDomainRequest?"/":"https://example.com")}catch(u){n=null}}else n=null;return n}function l(u){var a=f();if(!a)return!1;try{return a.responseType=u,a.responseType===u}catch(A){}return!1}function r(u){return typeof u=="function"}C.fetch=r(b.fetch)&&r(b.ReadableStream),C.writableStream=r(b.WritableStream),C.abortController=r(b.AbortController),C.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),C.blobConstructor=!0}catch(u){}var n,e=b.ArrayBuffer!==void 0,s=e&&r(b.ArrayBuffer.prototype.slice);C.arraybuffer=C.fetch||e&&l("arraybuffer"),C.msstream=!C.fetch&&s&&l("ms-stream"),C.mozchunkedarraybuffer=!C.fetch&&e&&l("moz-chunked-arraybuffer"),C.overrideMimeType=C.fetch||!!f()&&r(f().overrideMimeType),C.vbArray=r(b.VBArray),n=null}).call(this,typeof ae!="undefined"?ae:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],198:[function(p,E,C){(function(b,f,l){"use strict";function r(S,B){return u.fetch&&B?"fetch":u.mozchunkedarraybuffer?"moz-chunked-arraybuffer":u.msstream?"ms-stream":u.arraybuffer&&S?"arraybuffer":u.vbArray&&S?"text:vbarray":"text"}function n(S){try{var B=S.status;return B!==null&&B!==0}catch(w){return!1}}var e=p("babel-runtime/core-js/object/keys"),s=function(S){return S&&S.__esModule?S:{default:S}}(e),u=p("./capability"),a=p("inherits"),A=p("./response"),d=p("readable-stream"),i=p("to-arraybuffer"),h=A.IncomingMessage,y=A.readyStates,v=E.exports=function(S){var B=this;d.Writable.call(B),B._opts=S,B._body=[],B._headers={},S.auth&&B.setHeader("Authorization","Basic "+new l(S.auth).toString("base64")),(0,s.default)(S.headers).forEach(function(c){B.setHeader(c,S.headers[c])});var w,m=!0;if(S.mode==="disable-fetch"||"requestTimeout"in S&&!u.abortController)m=!1,w=!0;else if(S.mode==="prefer-streaming")w=!1;else if(S.mode==="allow-wrong-content-type")w=!u.overrideMimeType;else{if(S.mode&&S.mode!=="default"&&S.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");w=!0}B._mode=r(w,m),B._fetchTimer=null,B.on("finish",function(){B._onFinish()})};a(v,d.Writable),v.prototype.setHeader=function(S,B){var w=this,m=S.toLowerCase();x.indexOf(m)===-1&&(w._headers[m]={name:S,value:B})},v.prototype.getHeader=function(S){var B=this._headers[S.toLowerCase()];return B?B.value:null},v.prototype.removeHeader=function(S){delete this._headers[S.toLowerCase()]},v.prototype._onFinish=function(){var S=this;if(!S._destroyed){var B=S._opts,w=S._headers,m=null;B.method!=="GET"&&B.method!=="HEAD"&&(m=u.arraybuffer?i(l.concat(S._body)):u.blobConstructor?new f.Blob(S._body.map(function(T){return i(T)}),{type:(w["content-type"]||{}).value||""}):l.concat(S._body).toString());var c=[];if((0,s.default)(w).forEach(function(T){var O=w[T].name,R=w[T].value;Array.isArray(R)?R.forEach(function(U){c.push([O,U])}):c.push([O,R])}),S._mode==="fetch"){var o=null;if(u.abortController){var _=new AbortController;o=_.signal,S._fetchAbortController=_,"requestTimeout"in B&&B.requestTimeout!==0&&(S._fetchTimer=f.setTimeout(function(){S.emit("requestTimeout"),S._fetchAbortController&&S._fetchAbortController.abort()},B.requestTimeout))}f.fetch(S._opts.url,{method:S._opts.method,headers:c,body:m||void 0,mode:"cors",credentials:B.withCredentials?"include":"same-origin",signal:o}).then(function(T){S._fetchResponse=T,S._connect()},function(T){f.clearTimeout(S._fetchTimer),S._destroyed||S.emit("error",T)})}else{var D=S._xhr=new f.XMLHttpRequest;try{D.open(S._opts.method,S._opts.url,!0)}catch(T){return void b.nextTick(function(){S.emit("error",T)})}"responseType"in D&&(D.responseType=S._mode.split(":")[0]),"withCredentials"in D&&(D.withCredentials=!!B.withCredentials),S._mode==="text"&&"overrideMimeType"in D&&D.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in B&&(D.timeout=B.requestTimeout,D.ontimeout=function(){S.emit("requestTimeout")}),c.forEach(function(T){D.setRequestHeader(T[0],T[1])}),S._response=null,D.onreadystatechange=function(){switch(D.readyState){case y.LOADING:case y.DONE:S._onXHRProgress()}},S._mode==="moz-chunked-arraybuffer"&&(D.onprogress=function(){S._onXHRProgress()}),D.onerror=function(){S._destroyed||S.emit("error",new Error("XHR error"))};try{D.send(m)}catch(T){return void b.nextTick(function(){S.emit("error",T)})}}}},v.prototype._onXHRProgress=function(){var S=this;n(S._xhr)&&!S._destroyed&&(S._response||S._connect(),S._response._onXHRProgress())},v.prototype._connect=function(){var S=this;S._destroyed||(S._response=new h(S._xhr,S._fetchResponse,S._mode,S._fetchTimer),S._response.on("error",function(B){S.emit("error",B)}),S.emit("response",S._response))},v.prototype._write=function(S,B,w){this._body.push(S),w()},v.prototype.abort=v.prototype.destroy=function(){var S=this;S._destroyed=!0,f.clearTimeout(S._fetchTimer),S._response&&(S._response._destroyed=!0),S._xhr?S._xhr.abort():S._fetchAbortController&&S._fetchAbortController.abort()},v.prototype.end=function(S,B,w){var m=this;typeof S=="function"&&(w=S,S=void 0),d.Writable.prototype.end.call(m,S,B,w)},v.prototype.flushHeaders=function(){},v.prototype.setTimeout=function(){},v.prototype.setNoDelay=function(){},v.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,p("_process"),typeof ae!="undefined"?ae:typeof self!="undefined"?self:typeof window!="undefined"?window:{},p("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(p,E,C){(function(b,f,l){"use strict";var r=p("babel-runtime/core-js/promise"),n=function(d){return d&&d.__esModule?d:{default:d}}(r),e=p("./capability"),s=p("inherits"),u=p("readable-stream"),a=C.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},A=C.IncomingMessage=function(d,i,h,y){var v=this;if(u.Readable.call(v),v._mode=h,v.headers={},v.rawHeaders=[],v.trailers={},v.rawTrailers=[],v.on("end",function(){b.nextTick(function(){v.emit("close")})}),h==="fetch"){if(v._fetchResponse=i,v.url=i.url,v.statusCode=i.status,v.statusMessage=i.statusText,i.headers.forEach(function(m,c){v.headers[c.toLowerCase()]=m,v.rawHeaders.push(c,m)}),e.writableStream){var x=new WritableStream({write:function(m){return new n.default(function(c,o){v._destroyed?o():v.push(new l(m))?c():v._resumeFetch=c})},close:function(){f.clearTimeout(y),v._destroyed||v.push(null)},abort:function(m){v._destroyed||v.emit("error",m)}});try{return void i.body.pipeTo(x).catch(function(m){f.clearTimeout(y),v._destroyed||v.emit("error",m)})}catch(m){}}var S=i.body.getReader();!function m(){S.read().then(function(c){if(!v._destroyed){if(c.done)return f.clearTimeout(y),void v.push(null);v.push(new l(c.value)),m()}}).catch(function(c){f.clearTimeout(y),v._destroyed||v.emit("error",c)})}()}else if(v._xhr=d,v._pos=0,v.url=d.responseURL,v.statusCode=d.status,v.statusMessage=d.statusText,d.getAllResponseHeaders().split(/\r?\n/).forEach(function(m){var c=m.match(/^([^:]+):\s*(.*)/);if(c){var o=c[1].toLowerCase();o==="set-cookie"?(v.headers[o]===void 0&&(v.headers[o]=[]),v.headers[o].push(c[2])):v.headers[o]!==void 0?v.headers[o]+=", "+c[2]:v.headers[o]=c[2],v.rawHeaders.push(c[1],c[2])}}),v._charset="x-user-defined",!e.overrideMimeType){var B=v.rawHeaders["mime-type"];if(B){var w=B.match(/;\s*charset=([^;])(;|$)/);w&&(v._charset=w[1].toLowerCase())}v._charset||(v._charset="utf-8")}};s(A,u.Readable),A.prototype._read=function(){var d=this,i=d._resumeFetch;i&&(d._resumeFetch=null,i())},A.prototype._onXHRProgress=function(){var d=this,i=d._xhr,h=null;switch(d._mode){case"text:vbarray":if(i.readyState!==a.DONE)break;try{h=new f.VBArray(i.responseBody).toArray()}catch(B){}if(h!==null){d.push(new l(h));break}case"text":try{h=i.responseText}catch(B){d._mode="text:vbarray";break}if(h.length>d._pos){var y=h.substr(d._pos);if(d._charset==="x-user-defined"){for(var v=new l(y.length),x=0;x<y.length;x++)v[x]=255&y.charCodeAt(x);d.push(v)}else d.push(y,d._charset);d._pos=h.length}break;case"arraybuffer":if(i.readyState!==a.DONE||!i.response)break;h=i.response,d.push(new l(new Uint8Array(h)));break;case"moz-chunked-arraybuffer":if(h=i.response,i.readyState!==a.LOADING||!h)break;d.push(new l(new Uint8Array(h)));break;case"ms-stream":if(h=i.response,i.readyState!==a.LOADING)break;var S=new f.MSStreamReader;S.onprogress=function(){S.result.byteLength>d._pos&&(d.push(new l(new Uint8Array(S.result.slice(d._pos)))),d._pos=S.result.byteLength)},S.onload=function(){d.push(null)},S.readAsArrayBuffer(h)}d._xhr.readyState===a.DONE&&d._mode!=="ms-stream"&&d.push(null)}}).call(this,p("_process"),typeof ae!="undefined"?ae:typeof self!="undefined"?self:typeof window!="undefined"?window:{},p("buffer").Buffer)},{"./capability":197,_process:173,"babel-runtime/core-js/promise":24,buffer:38,inherits:162,"readable-stream":188}],200:[function(p,E,C){"use strict";function b(B){if(!B)return"utf8";for(var w;;)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(w)return;B=(""+B).toLowerCase(),w=!0}}function f(B){var w=b(B);if(typeof w!="string"&&(x.isEncoding===S||!S(B)))throw new Error("Unknown encoding: "+B);return w||B}function l(B){this.encoding=f(B);var w;switch(this.encoding){case"utf16le":this.text=A,this.end=d,w=4;break;case"utf8":this.fillLast=s,w=4;break;case"base64":this.text=i,this.end=h,w=3;break;default:return this.write=y,void(this.end=v)}this.lastNeed=0,this.lastTotal=0,this.lastChar=x.allocUnsafe(w)}function r(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,w,m){var c=w.length-1;if(c<m)return 0;var o=r(w[c]);return o>=0?(o>0&&(B.lastNeed=o-1),o):--c<m||o===-2?0:(o=r(w[c]))>=0?(o>0&&(B.lastNeed=o-2),o):--c<m||o===-2?0:(o=r(w[c]),o>=0?(o>0&&(o===2?o=0:B.lastNeed=o-3),o):0)}function e(B,w,m){if((192&w[0])!=128)return B.lastNeed=0,"\u951F\uFFFD";if(B.lastNeed>1&&w.length>1){if((192&w[1])!=128)return B.lastNeed=1,"\u951F\uFFFD";if(B.lastNeed>2&&w.length>2&&(192&w[2])!=128)return B.lastNeed=2,"\u951F\uFFFD"}}function s(B){var w=this.lastTotal-this.lastNeed,m=e(this,B,w);return m!==void 0?m:this.lastNeed<=B.length?(B.copy(this.lastChar,w,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(B.copy(this.lastChar,w,0,B.length),void(this.lastNeed-=B.length))}function u(B,w){var m=n(this,B,w);if(!this.lastNeed)return B.toString("utf8",w);this.lastTotal=m;var c=B.length-(m-this.lastNeed);return B.copy(this.lastChar,0,c),B.toString("utf8",w,c)}function a(B){var w=B&&B.length?this.write(B):"";return this.lastNeed?w+"\u951F\uFFFD":w}function A(B,w){if((B.length-w)%2==0){var m=B.toString("utf16le",w);if(m){var c=m.charCodeAt(m.length-1);if(c>=55296&&c<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=B[B.length-2],this.lastChar[1]=B[B.length-1],m.slice(0,-1)}return m}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=B[B.length-1],B.toString("utf16le",w,B.length-1)}function d(B){var w=B&&B.length?this.write(B):"";if(this.lastNeed){var m=this.lastTotal-this.lastNeed;return w+this.lastChar.toString("utf16le",0,m)}return w}function i(B,w){var m=(B.length-w)%3;return m===0?B.toString("base64",w):(this.lastNeed=3-m,this.lastTotal=3,m===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",w,B.length-m))}function h(B){var w=B&&B.length?this.write(B):"";return this.lastNeed?w+this.lastChar.toString("base64",0,3-this.lastNeed):w}function y(B){return B.toString(this.encoding)}function v(B){return B&&B.length?this.write(B):""}var x=p("safe-buffer").Buffer,S=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=l,l.prototype.write=function(B){if(B.length===0)return"";var w,m;if(this.lastNeed){if((w=this.fillLast(B))===void 0)return"";m=this.lastNeed,this.lastNeed=0}else m=0;return m<B.length?w?w+this.text(B,m):this.text(B,m):w||""},l.prototype.end=a,l.prototype.text=u,l.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(p,E,C){(function(b,f){function l(a,A){this._id=a,this._clearFn=A}var r=p("process/browser.js").nextTick,n=Function.prototype.apply,e=Array.prototype.slice,s={},u=0;C.setTimeout=function(){return new l(n.call(setTimeout,window,arguments),clearTimeout)},C.setInterval=function(){return new l(n.call(setInterval,window,arguments),clearInterval)},C.clearTimeout=C.clearInterval=function(a){a.close()},l.prototype.unref=l.prototype.ref=function(){},l.prototype.close=function(){this._clearFn.call(window,this._id)},C.enroll=function(a,A){clearTimeout(a._idleTimeoutId),a._idleTimeout=A},C.unenroll=function(a){clearTimeout(a._idleTimeoutId),a._idleTimeout=-1},C._unrefActive=C.active=function(a){clearTimeout(a._idleTimeoutId);var A=a._idleTimeout;A>=0&&(a._idleTimeoutId=setTimeout(function(){a._onTimeout&&a._onTimeout()},A))},C.setImmediate=typeof b=="function"?b:function(a){var A=u++,d=!(arguments.length<2)&&e.call(arguments,1);return s[A]=!0,r(function(){s[A]&&(d?a.apply(null,d):a.call(null),C.clearImmediate(A))}),A},C.clearImmediate=typeof f=="function"?f:function(a){delete s[a]}}).call(this,p("timers").setImmediate,p("timers").clearImmediate)},{"process/browser.js":173,timers:201}],202:[function(p,E,C){var b=p("buffer").Buffer;E.exports=function(f){if(f instanceof Uint8Array){if(f.byteOffset===0&&f.byteLength===f.buffer.byteLength)return f.buffer;if(typeof f.buffer.slice=="function")return f.buffer.slice(f.byteOffset,f.byteOffset+f.byteLength)}if(b.isBuffer(f)){for(var l=new Uint8Array(f.length),r=f.length,n=0;n<r;n++)l[n]=f[n];return l.buffer}throw new Error("Argument must be a Buffer")}},{buffer:38}],203:[function(p,E,C){"use strict";function b(){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 f(o,_,D){if(o&&s.isObject(o)&&o instanceof b)return o;var T=new b;return T.parse(o,_,D),T}function l(o){return s.isString(o)&&(o=f(o)),o instanceof b?o.format():b.prototype.format.call(o)}function r(o,_){return f(o,!1,!0).resolve(_)}function n(o,_){return o?f(o,!1,!0).resolveObject(_):_}var e=p("punycode"),s=p("./util");C.parse=f,C.resolve=r,C.resolveObject=n,C.format=l,C.Url=b;var u=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,A=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["<",">",'"',"`"," ","\r",`
`," "],i=["{","}","|","\\","^","`"].concat(d),h=["'"].concat(i),y=["%","/","?",";","#"].concat(h),v=["/","?","#"],x=/^[+a-z0-9A-Z_-]{0,63}$/,S=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,B={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},c=p("querystring");b.prototype.parse=function(o,_,D){if(!s.isString(o))throw new TypeError("Parameter 'url' must be a string, not "+typeof o);var T=o.indexOf("?"),O=T!==-1&&T<o.indexOf("#")?"?":"#",R=o.split(O),U=/\\/g;R[0]=R[0].replace(U,"/"),o=R.join(O);var F=o;if(F=F.trim(),!D&&o.split("#").length===1){var Y=A.exec(F);if(Y)return this.path=F,this.href=F,this.pathname=Y[1],Y[2]?(this.search=Y[2],this.query=_?c.parse(this.search.substr(1)):this.search.substr(1)):_&&(this.search="",this.query={}),this}var k=u.exec(F);if(k){k=k[0];var K=k.toLowerCase();this.protocol=K,F=F.substr(k.length)}if(D||k||F.match(/^\/\/[^@\/]+@[^@\/]+/)){var z=F.substr(0,2)==="//";!z||k&&w[k]||(F=F.substr(2),this.slashes=!0)}if(!w[k]&&(z||k&&!m[k])){for(var j=-1,Q=0;Q<v.length;Q++){var X=F.indexOf(v[Q]);X!==-1&&(j===-1||X<j)&&(j=X)}var te,oe;oe=j===-1?F.lastIndexOf("@"):F.lastIndexOf("@",j),oe!==-1&&(te=F.slice(0,oe),F=F.slice(oe+1),this.auth=decodeURIComponent(te)),j=-1;for(var Q=0;Q<y.length;Q++){var X=F.indexOf(y[Q]);X!==-1&&(j===-1||X<j)&&(j=X)}j===-1&&(j=F.length),this.host=F.slice(0,j),F=F.slice(j),this.parseHost(),this.hostname=this.hostname||"";var fe=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!fe)for(var le=this.hostname.split(/\./),Q=0,we=le.length;Q<we;Q++){var Ae=le[Q];if(Ae&&!Ae.match(x)){for(var be="",me=0,he=Ae.length;me<he;me++)Ae.charCodeAt(me)>127?be+="x":be+=Ae[me];if(!be.match(x)){var ie=le.slice(0,Q),pe=le.slice(Q+1),ye=Ae.match(S);ye&&(ie.push(ye[1]),pe.unshift(ye[2])),pe.length&&(F="/"+pe.join(".")+F),this.hostname=ie.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),fe||(this.hostname=e.toASCII(this.hostname));var de=this.port?":"+this.port:"",Me=this.hostname||"";this.host=Me+de,this.href+=this.host,fe&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),F[0]!=="/"&&(F="/"+F))}if(!B[K])for(var Q=0,we=h.length;Q<we;Q++){var ke=h[Q];if(F.indexOf(ke)!==-1){var Ue=encodeURIComponent(ke);Ue===ke&&(Ue=escape(ke)),F=F.split(ke).join(Ue)}}var re=F.indexOf("#");re!==-1&&(this.hash=F.substr(re),F=F.slice(0,re));var N=F.indexOf("?");if(N!==-1?(this.search=F.substr(N),this.query=F.substr(N+1),_&&(this.query=c.parse(this.query)),F=F.slice(0,N)):_&&(this.search="",this.query={}),F&&(this.pathname=F),m[K]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var de=this.pathname||"",W=this.search||"";this.path=de+W}return this.href=this.format(),this},b.prototype.format=function(){var o=this.auth||"";o&&(o=encodeURIComponent(o),o=o.replace(/%3A/i,":"),o+="@");var _=this.protocol||"",D=this.pathname||"",T=this.hash||"",O=!1,R="";this.host?O=o+this.host:this.hostname&&(O=o+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(O+=":"+this.port)),this.query&&s.isObject(this.query)&&Object.keys(this.query).length&&(R=c.stringify(this.query));var U=this.search||R&&"?"+R||"";return _&&_.substr(-1)!==":"&&(_+=":"),this.slashes||(!_||m[_])&&O!==!1?(O="//"+(O||""),D&&D.charAt(0)!=="/"&&(D="/"+D)):O||(O=""),T&&T.charAt(0)!=="#"&&(T="#"+T),U&&U.charAt(0)!=="?"&&(U="?"+U),D=D.replace(/[?#]/g,function(F){return encodeURIComponent(F)}),U=U.replace("#","%23"),_+O+D+U+T},b.prototype.resolve=function(o){return this.resolveObject(f(o,!1,!0)).format()},b.prototype.resolveObject=function(o){if(s.isString(o)){var _=new b;_.parse(o,!1,!0),o=_}for(var D=new b,T=Object.keys(this),O=0;O<T.length;O++){var R=T[O];D[R]=this[R]}if(D.hash=o.hash,o.href==="")return D.href=D.format(),D;if(o.slashes&&!o.protocol){for(var U=Object.keys(o),F=0;F<U.length;F++){var Y=U[F];Y!=="protocol"&&(D[Y]=o[Y])}return m[D.protocol]&&D.hostname&&!D.pathname&&(D.path=D.pathname="/"),D.href=D.format(),D}if(o.protocol&&o.protocol!==D.protocol){if(!m[o.protocol]){for(var k=Object.keys(o),K=0;K<k.length;K++){var z=k[K];D[z]=o[z]}return D.href=D.format(),D}if(D.protocol=o.protocol,o.host||w[o.protocol])D.pathname=o.pathname;else{for(var we=(o.pathname||"").split("/");we.length&&!(o.host=we.shift()););o.host||(o.host=""),o.hostname||(o.hostname=""),we[0]!==""&&we.unshift(""),we.length<2&&we.unshift(""),D.pathname=we.join("/")}if(D.search=o.search,D.query=o.query,D.host=o.host||"",D.auth=o.auth,D.hostname=o.hostname||o.host,D.port=o.port,D.pathname||D.search){var j=D.pathname||"",Q=D.search||"";D.path=j+Q}return D.slashes=D.slashes||o.slashes,D.href=D.format(),D}var X=D.pathname&&D.pathname.charAt(0)==="/",te=o.host||o.pathname&&o.pathname.charAt(0)==="/",oe=te||X||D.host&&o.pathname,fe=oe,le=D.pathname&&D.pathname.split("/")||[],we=o.pathname&&o.pathname.split("/")||[],Ae=D.protocol&&!m[D.protocol];if(Ae&&(D.hostname="",D.port=null,D.host&&(le[0]===""?le[0]=D.host:le.unshift(D.host)),D.host="",o.protocol&&(o.hostname=null,o.port=null,o.host&&(we[0]===""?we[0]=o.host:we.unshift(o.host)),o.host=null),oe=oe&&(we[0]===""||le[0]==="")),te)D.host=o.host||o.host===""?o.host:D.host,D.hostname=o.hostname||o.hostname===""?o.hostname:D.hostname,D.search=o.search,D.query=o.query,le=we;else if(we.length)le||(le=[]),le.pop(),le=le.concat(we),D.search=o.search,D.query=o.query;else if(!s.isNullOrUndefined(o.search)){if(Ae){D.hostname=D.host=le.shift();var be=!!(D.host&&D.host.indexOf("@")>0)&&D.host.split("@");be&&(D.auth=be.shift(),D.host=D.hostname=be.shift())}return D.search=o.search,D.query=o.query,s.isNull(D.pathname)&&s.isNull(D.search)||(D.path=(D.pathname?D.pathname:"")+(D.search?D.search:"")),D.href=D.format(),D}if(!le.length)return D.pathname=null,D.search?D.path="/"+D.search:D.path=null,D.href=D.format(),D;for(var me=le.slice(-1)[0],he=(D.host||o.host||le.length>1)&&(me==="."||me==="..")||me==="",ie=0,pe=le.length;pe>=0;pe--)me=le[pe],me==="."?le.splice(pe,1):me===".."?(le.splice(pe,1),ie++):ie&&(le.splice(pe,1),ie--);if(!oe&&!fe)for(;ie--;ie)le.unshift("..");!oe||le[0]===""||le[0]&&le[0].charAt(0)==="/"||le.unshift(""),he&&le.join("/").substr(-1)!=="/"&&le.push("");var ye=le[0]===""||le[0]&&le[0].charAt(0)==="/";if(Ae){D.hostname=D.host=ye?"":le.length?le.shift():"";var be=!!(D.host&&D.host.indexOf("@")>0)&&D.host.split("@");be&&(D.auth=be.shift(),D.host=D.hostname=be.shift())}return oe=oe||D.host&&le.length,oe&&!ye&&le.unshift(""),le.length?D.pathname=le.join("/"):(D.pathname=null,D.path=null),s.isNull(D.pathname)&&s.isNull(D.search)||(D.path=(D.pathname?D.pathname:"")+(D.search?D.search:"")),D.auth=o.auth||D.auth,D.slashes=D.slashes||o.slashes,D.href=D.format(),D},b.prototype.parseHost=function(){var o=this.host,_=a.exec(o);_&&(_=_[0],_!==":"&&(this.port=_.substr(1)),o=o.substr(0,o.length-_.length)),o&&(this.hostname=o)}},{"./util":204,punycode:174,querystring:177}],204:[function(p,E,C){"use strict";E.exports={isString:function(b){return typeof b=="string"},isObject:function(b){return typeof b=="object"&&b!==null},isNull:function(b){return b===null},isNullOrUndefined:function(b){return b==null}}},{}],205:[function(p,E,C){(function(b){function f(r,n){function e(){if(!s){if(l("throwDeprecation"))throw new Error(n);l("traceDeprecation")?console.trace(n):console.warn(n),s=!0}return r.apply(this,arguments)}if(l("noDeprecation"))return r;var s=!1;return e}function l(r){try{if(!b.localStorage)return!1}catch(e){return!1}var n=b.localStorage[r];return n!=null&&String(n).toLowerCase()==="true"}E.exports=f}).call(this,typeof ae!="undefined"?ae:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],206:[function(p,E,C){E.exports=function(b){return b&&typeof b=="object"&&typeof b.copy=="function"&&typeof b.fill=="function"&&typeof b.readUInt8=="function"}},{}],207:[function(p,E,C){(function(b,f){function l(Q,X){var te={seen:[],stylize:n};return arguments.length>=3&&(te.depth=arguments[2]),arguments.length>=4&&(te.colors=arguments[3]),y(X)?te.showHidden=X:X&&C._extend(te,X),m(te.showHidden)&&(te.showHidden=!1),m(te.depth)&&(te.depth=2),m(te.colors)&&(te.colors=!1),m(te.customInspect)&&(te.customInspect=!0),te.colors&&(te.stylize=r),s(te,Q,te.depth)}function r(Q,X){var te=l.styles[X];return te?"["+l.colors[te][0]+"m"+Q+"["+l.colors[te][1]+"m":Q}function n(Q,X){return Q}function e(Q){var X={};return Q.forEach(function(te,oe){X[te]=!0}),X}function s(Q,X,te){if(Q.customInspect&&X&&T(X.inspect)&&X.inspect!==C.inspect&&(!X.constructor||X.constructor.prototype!==X)){var oe=X.inspect(te,Q);return B(oe)||(oe=s(Q,oe,te)),oe}var fe=u(Q,X);if(fe)return fe;var le=Object.keys(X),we=e(le);if(Q.showHidden&&(le=Object.getOwnPropertyNames(X)),D(X)&&(le.indexOf("message")>=0||le.indexOf("description")>=0))return a(X);if(le.length===0){if(T(X)){var Ae=X.name?": "+X.name:"";return Q.stylize("[Function"+Ae+"]","special")}if(c(X))return Q.stylize(RegExp.prototype.toString.call(X),"regexp");if(_(X))return Q.stylize(Date.prototype.toString.call(X),"date");if(D(X))return a(X)}var be="",me=!1,he=["{","}"];if((h(X)&&(me=!0,he=["[","]"]),T(X))&&(be=" [Function"+(X.name?": "+X.name:"")+"]"),c(X)&&(be=" "+RegExp.prototype.toString.call(X)),_(X)&&(be=" "+Date.prototype.toUTCString.call(X)),D(X)&&(be=" "+a(X)),le.length===0&&(!me||X.length==0))return he[0]+be+he[1];if(te<0)return c(X)?Q.stylize(RegExp.prototype.toString.call(X),"regexp"):Q.stylize("[Object]","special");Q.seen.push(X);var ie;return ie=me?A(Q,X,te,we,le):le.map(function(pe){return d(Q,X,te,we,pe,me)}),Q.seen.pop(),i(ie,be,he)}function u(Q,X){if(m(X))return Q.stylize("undefined","undefined");if(B(X)){var te="'"+JSON.stringify(X).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Q.stylize(te,"string")}return S(X)?Q.stylize(""+X,"number"):y(X)?Q.stylize(""+X,"boolean"):v(X)?Q.stylize("null","null"):void 0}function a(Q){return"["+Error.prototype.toString.call(Q)+"]"}function A(Q,X,te,oe,fe){for(var le=[],we=0,Ae=X.length;we<Ae;++we)Y(X,String(we))?le.push(d(Q,X,te,oe,String(we),!0)):le.push("");return fe.forEach(function(be){be.match(/^\d+$/)||le.push(d(Q,X,te,oe,be,!0))}),le}function d(Q,X,te,oe,fe,le){var we,Ae,be;if(be=Object.getOwnPropertyDescriptor(X,fe)||{value:X[fe]},be.get?Ae=be.set?Q.stylize("[Getter/Setter]","special"):Q.stylize("[Getter]","special"):be.set&&(Ae=Q.stylize("[Setter]","special")),Y(oe,fe)||(we="["+fe+"]"),Ae||(Q.seen.indexOf(be.value)<0?(Ae=v(te)?s(Q,be.value,null):s(Q,be.value,te-1),Ae.indexOf(`
`)>-1&&(Ae=le?Ae.split(`
`).map(function(me){return" "+me}).join(`
`).substr(2):`
`+Ae.split(`
`).map(function(me){return" "+me}).join(`
`))):Ae=Q.stylize("[Circular]","special")),m(we)){if(le&&fe.match(/^\d+$/))return Ae;we=JSON.stringify(""+fe),we.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(we=we.substr(1,we.length-2),we=Q.stylize(we,"name")):(we=we.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),we=Q.stylize(we,"string"))}return we+": "+Ae}function i(Q,X,te){var oe=0;return Q.reduce(function(fe,le){return oe++,le.indexOf(`
`)>=0&&oe++,fe+le.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?te[0]+(X===""?"":X+`
`)+" "+Q.join(`,
`)+" "+te[1]:te[0]+X+" "+Q.join(", ")+" "+te[1]}function h(Q){return Array.isArray(Q)}function y(Q){return typeof Q=="boolean"}function v(Q){return Q===null}function x(Q){return Q==null}function S(Q){return typeof Q=="number"}function B(Q){return typeof Q=="string"}function w(Q){return typeof Q=="symbol"}function m(Q){return Q===void 0}function c(Q){return o(Q)&&R(Q)==="[object RegExp]"}function o(Q){return typeof Q=="object"&&Q!==null}function _(Q){return o(Q)&&R(Q)==="[object Date]"}function D(Q){return o(Q)&&(R(Q)==="[object Error]"||Q instanceof Error)}function T(Q){return typeof Q=="function"}function O(Q){return Q===null||typeof Q=="boolean"||typeof Q=="number"||typeof Q=="string"||typeof Q=="symbol"||Q===void 0}function R(Q){return Object.prototype.toString.call(Q)}function U(Q){return Q<10?"0"+Q.toString(10):Q.toString(10)}function F(){var Q=new Date,X=[U(Q.getHours()),U(Q.getMinutes()),U(Q.getSeconds())].join(":");return[Q.getDate(),j[Q.getMonth()],X].join(" ")}function Y(Q,X){return Object.prototype.hasOwnProperty.call(Q,X)}var k=/%[sdj%]/g;C.format=function(Q){if(!B(Q)){for(var X=[],te=0;te<arguments.length;te++)X.push(l(arguments[te]));return X.join(" ")}for(var te=1,oe=arguments,fe=oe.length,le=String(Q).replace(k,function(be){if(be==="%%")return"%";if(te>=fe)return be;switch(be){case"%s":return String(oe[te++]);case"%d":return Number(oe[te++]);case"%j":try{return JSON.stringify(oe[te++])}catch(me){return"[Circular]"}default:return be}}),we=oe[te];te<fe;we=oe[++te])v(we)||!o(we)?le+=" "+we:le+=" "+l(we);return le},C.deprecate=function(Q,X){function te(){if(!oe){if(b.throwDeprecation)throw new Error(X);b.traceDeprecation?console.trace(X):console.error(X),oe=!0}return Q.apply(this,arguments)}if(m(f.process))return function(){return C.deprecate(Q,X).apply(this,arguments)};if(b.noDeprecation===!0)return Q;var oe=!1;return te};var K,z={};C.debuglog=function(Q){if(m(K)&&(K=b.env.NODE_DEBUG||""),Q=Q.toUpperCase(),!z[Q])if(new RegExp("\\b"+Q+"\\b","i").test(K)){var X=b.pid;z[Q]=function(){var te=C.format.apply(C,arguments);console.error("%s %d: %s",Q,X,te)}}else z[Q]=function(){};return z[Q]},C.inspect=l,l.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]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},C.isArray=h,C.isBoolean=y,C.isNull=v,C.isNullOrUndefined=x,C.isNumber=S,C.isString=B,C.isSymbol=w,C.isUndefined=m,C.isRegExp=c,C.isObject=o,C.isDate=_,C.isError=D,C.isFunction=T,C.isPrimitive=O,C.isBuffer=p("./support/isBuffer");var j=["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=p("inherits"),C._extend=function(Q,X){if(!X||!o(X))return Q;for(var te=Object.keys(X),oe=te.length;oe--;)Q[te[oe]]=X[te[oe]];return Q}}).call(this,p("_process"),typeof ae!="undefined"?ae:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":206,_process:173,inherits:162}],208:[function(p,E,C){"use strict";(function(){C.stripBOM=function(b){return b[0]==="\uFEFF"?b.substring(1):b}}).call(void 0)},{}],209:[function(p,E,C){"use strict";function b(e){return e&&e.__esModule?e:{default:e}}var f=p("babel-runtime/helpers/typeof"),l=b(f),r=p("babel-runtime/core-js/object/keys"),n=b(r);(function(){var e,s,u,a,A,d={}.hasOwnProperty;e=p("xmlbuilder"),s=p("./defaults").defaults,a=function(i){return typeof i=="string"&&(i.indexOf("&")>=0||i.indexOf(">")>=0||i.indexOf("<")>=0)},A=function(i){return"<![CDATA["+u(i)+"]]>"},u=function(i){return i.replace("]]>","]]]]><![CDATA[>")},C.Builder=function(){function i(h){var y,v,x;this.options={},v=s[.2];for(y in v)d.call(v,y)&&(x=v[y],this.options[y]=x);for(y in h)d.call(h,y)&&(x=h[y],this.options[y]=x)}return i.prototype.buildObject=function(h){var y,v,x,S,B;return y=this.options.attrkey,v=this.options.charkey,(0,n.default)(h).length===1&&this.options.rootName===s[.2].rootName?(B=(0,n.default)(h)[0],h=h[B]):B=this.options.rootName,x=function(w){return function(m,c){var o,_,D,T,O,R;if((c===void 0?"undefined":(0,l.default)(c))!=="object")w.options.cdata&&a(c)?m.raw(A(c)):m.txt(c);else if(Array.isArray(c)){for(T in c)if(d.call(c,T)){_=c[T];for(O in _)D=_[O],m=x(m.ele(O),D).up()}}else for(O in c)if(d.call(c,O))if(_=c[O],O===y){if((_===void 0?"undefined":(0,l.default)(_))==="object")for(o in _)R=_[o],m=m.att(o,R)}else if(O===v)m=w.options.cdata&&a(_)?m.raw(A(_)):m.txt(_);else if(Array.isArray(_))for(T in _)d.call(_,T)&&(D=_[T],m=typeof D=="string"?w.options.cdata&&a(D)?m.ele(O).raw(A(D)).up():m.ele(O,D).up():x(m.ele(O),D).up());else(_===void 0?"undefined":(0,l.default)(_))==="object"?m=x(m.ele(O),_).up():typeof _=="string"&&w.options.cdata&&a(_)?m=m.ele(O).raw(A(_)).up():(_==null&&(_=""),m=m.ele(O,_.toString()).up());return m}}(this),S=e.create(B,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),x(S,h).end(this.options.renderOpts)},i}()}).call(void 0)},{"./defaults":210,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,xmlbuilder:235}],210:[function(p,E,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(p,E,C){"use strict";function b(u){return u&&u.__esModule?u:{default:u}}var f=p("babel-runtime/core-js/object/get-own-property-names"),l=b(f),r=p("babel-runtime/core-js/object/keys"),n=b(r),e=p("babel-runtime/helpers/typeof"),s=b(e);(function(){var u,a,A,d,i,h,y,v,x=function(w,m){return function(){return w.apply(m,arguments)}},S=function(w,m){function c(){this.constructor=w}for(var o in m)B.call(m,o)&&(w[o]=m[o]);return c.prototype=m.prototype,w.prototype=new c,w.__super__=m.prototype,w},B={}.hasOwnProperty;y=p("sax"),A=p("events"),u=p("./bom"),h=p("./processors"),v=p("timers").setImmediate,a=p("./defaults").defaults,d=function(w){return(w===void 0?"undefined":(0,s.default)(w))==="object"&&w!=null&&(0,n.default)(w).length===0},i=function(w,m,c){var o,_,D;for(o=0,_=w.length;o<_;o++)D=w[o],m=D(m,c);return m},C.Parser=function(w){function m(c){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 o,_,D;if(!(this instanceof C.Parser))return new C.Parser(c);this.options={},_=a[.2];for(o in _)B.call(_,o)&&(D=_[o],this.options[o]=D);for(o in c)B.call(c,o)&&(D=c[o],this.options[o]=D);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(h.normalize)),this.reset()}return S(m,w),m.prototype.processAsync=function(){var c,o;try{return this.remaining.length<=this.options.chunkSize?(c=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(c),this.saxParser.close()):(c=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(c),v(this.processAsync))}catch(_){if(o=_,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(o)}},m.prototype.assignOrPush=function(c,o,_){return o in c?(c[o]instanceof Array||(c[o]=[c[o]]),c[o].push(_)):this.options.explicitArray?c[o]=[_]:c[o]=_},m.prototype.reset=function(){var c,o,_,D;return this.removeAllListeners(),this.saxParser=y.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(T){return function(O){if(T.saxParser.resume(),!T.saxParser.errThrown)return T.saxParser.errThrown=!0,T.emit("error",O)}}(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,D=[],c=this.options.attrkey,o=this.options.charkey,this.saxParser.onopentag=function(T){return function(O){var R,U,F,Y,k;if(F={},F[o]="",!T.options.ignoreAttrs){k=O.attributes;for(R in k)B.call(k,R)&&(c in F||T.options.mergeAttrs||(F[c]={}),U=T.options.attrValueProcessors?i(T.options.attrValueProcessors,O.attributes[R],R):O.attributes[R],Y=T.options.attrNameProcessors?i(T.options.attrNameProcessors,R):R,T.options.mergeAttrs?T.assignOrPush(F,Y,U):F[c][Y]=U)}return F["#name"]=T.options.tagNameProcessors?i(T.options.tagNameProcessors,O.name):O.name,T.options.xmlns&&(F[T.options.xmlnskey]={uri:O.uri,local:O.local}),D.push(F)}}(this),this.saxParser.onclosetag=function(T){return function(){var O,R,U,F,Y,k,K,z,j,Q;if(k=D.pop(),Y=k["#name"],T.options.explicitChildren&&T.options.preserveChildrenOrder||delete k["#name"],k.cdata===!0&&(O=k.cdata,delete k.cdata),j=D[D.length-1],k[o].match(/^\s*$/)&&!O?(R=k[o],delete k[o]):(T.options.trim&&(k[o]=k[o].trim()),T.options.normalize&&(k[o]=k[o].replace(/\s{2,}/g," ").trim()),k[o]=T.options.valueProcessors?i(T.options.valueProcessors,k[o],Y):k[o],(0,n.default)(k).length===1&&o in k&&!T.EXPLICIT_CHARKEY&&(k=k[o])),d(k)&&(k=T.options.emptyTag!==""?T.options.emptyTag:R),T.options.validator!=null&&(Q="/"+function(){var X,te,oe;for(oe=[],X=0,te=D.length;X<te;X++)F=D[X],oe.push(F["#name"]);return oe}().concat(Y).join("/"),function(){var X;try{k=T.options.validator(Q,j&&j[Y],k)}catch(te){return X=te,T.emit("error",X)}}()),T.options.explicitChildren&&!T.options.mergeAttrs&&(k===void 0?"undefined":(0,s.default)(k))==="object")if(T.options.preserveChildrenOrder){if(j){j[T.options.childkey]=j[T.options.childkey]||[],K={};for(U in k)B.call(k,U)&&(K[U]=k[U]);j[T.options.childkey].push(K),delete k["#name"],(0,n.default)(k).length===1&&o in k&&!T.EXPLICIT_CHARKEY&&(k=k[o])}}else F={},T.options.attrkey in k&&(F[T.options.attrkey]=k[T.options.attrkey],delete k[T.options.attrkey]),!T.options.charsAsChildren&&T.options.charkey in k&&(F[T.options.charkey]=k[T.options.charkey],delete k[T.options.charkey]),(0,l.default)(k).length>0&&(F[T.options.childkey]=k),k=F;return D.length>0?T.assignOrPush(j,Y,k):(T.options.explicitRoot&&(z=k,k={},k[Y]=z),T.resultObject=k,T.saxParser.ended=!0,T.emit("end",T.resultObject))}}(this),_=function(T){return function(O){var R,U;if(U=D[D.length-1])return U[o]+=O,T.options.explicitChildren&&T.options.preserveChildrenOrder&&T.options.charsAsChildren&&(T.options.includeWhiteChars||O.replace(/\\n/g,"").trim()!=="")&&(U[T.options.childkey]=U[T.options.childkey]||[],R={"#name":"__text__"},R[o]=O,T.options.normalize&&(R[o]=R[o].replace(/\s{2,}/g," ").trim()),U[T.options.childkey].push(R)),U}}(this),this.saxParser.ontext=_,this.saxParser.oncdata=function(T){return function(O){var R;if(R=_(O))return R.cdata=!0}}()},m.prototype.parseString=function(c,o){var _;o!=null&&typeof o=="function"&&(this.on("end",function(D){return this.reset(),o(null,D)}),this.on("error",function(D){return this.reset(),o(D)}));try{return c=c.toString(),c.trim()===""?(this.emit("end",null),!0):(c=u.stripBOM(c),this.options.async?(this.remaining=c,v(this.processAsync),this.saxParser):this.saxParser.write(c).close())}catch(D){if(_=D,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",_),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw _}},m}(A.EventEmitter),C.parseString=function(w,m,c){var o,_,D;return c!=null?(typeof c=="function"&&(o=c),(m===void 0?"undefined":(0,s.default)(m))==="object"&&(_=m)):(typeof m=="function"&&(o=m),_={}),D=new C.Parser(_),D.parseString(w,o)}}).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(p,E,C){"use strict";(function(){var b;b=new RegExp(/(?!xmlns)^.*:/),C.normalize=function(f){return f.toLowerCase()},C.firstCharLowerCase=function(f){return f.charAt(0).toLowerCase()+f.slice(1)},C.stripPrefix=function(f){return f.replace(b,"")},C.parseNumbers=function(f){return isNaN(f)||(f=f%1==0?parseInt(f,10):parseFloat(f)),f},C.parseBooleans=function(f){return/^(?:true|false)$/i.test(f)&&(f=f.toLowerCase()==="true"),f}}).call(void 0)},{}],213:[function(p,E,C){"use strict";(function(){var b,f,l,r,n=function(s,u){function a(){this.constructor=s}for(var A in u)e.call(u,A)&&(s[A]=u[A]);return a.prototype=u.prototype,s.prototype=new a,s.__super__=u.prototype,s},e={}.hasOwnProperty;f=p("./defaults"),b=p("./builder"),l=p("./parser"),r=p("./processors"),C.defaults=f.defaults,C.processors=r,C.ValidationError=function(s){function u(a){this.message=a}return n(u,s),u}(Error),C.Builder=b.Builder,C.Parser=l.Parser,C.parseString=l.parseString}).call(void 0)},{"./builder":209,"./defaults":210,"./parser":211,"./processors":212}],214:[function(p,E,C){"use strict";function b(u){return u&&u.__esModule?u:{default:u}}var f=p("babel-runtime/core-js/object/get-prototype-of"),l=b(f),r=p("babel-runtime/helpers/typeof"),n=b(r),e=p("babel-runtime/core-js/object/assign"),s=b(e);(function(){var u,a,A,d,i,h,y=[].slice,v={}.hasOwnProperty;u=function(){var x,S,B,w,m,c;if(c=arguments[0],m=2<=arguments.length?y.call(arguments,1):[],d(s.default))s.default.apply(null,arguments);else for(x=0,B=m.length;x<B;x++)if((w=m[x])!=null)for(S in w)v.call(w,S)&&(c[S]=w[S]);return c},d=function(x){return!!x&&Object.prototype.toString.call(x)==="[object Function]"},i=function(x){var S;return!!x&&((S=x===void 0?"undefined":(0,n.default)(x))==="function"||S==="object")},a=function(x){return d(Array.isArray)?Array.isArray(x):Object.prototype.toString.call(x)==="[object Array]"},A=function(x){var S;if(a(x))return!x.length;for(S in x)if(v.call(x,S))return!1;return!0},h=function(x){var S,B;return i(x)&&(B=(0,l.default)(x))&&(S=B.constructor)&&typeof S=="function"&&S instanceof S&&Function.prototype.toString.call(S)===Function.prototype.toString.call(Object)},E.exports.assign=u,E.exports.isFunction=d,E.exports.isObject=i,E.exports.isArray=a,E.exports.isEmpty=A,E.exports.isPlainObject=h}).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(p,E,C){"use strict";var b=p("babel-runtime/core-js/object/create"),f=function(l){return l&&l.__esModule?l:{default:l}}(b);(function(){E.exports=function(){function l(r,n,e){if(this.options=r.options,this.stringify=r.stringify,n==null)throw new Error("Missing attribute name of element "+r.name);if(e==null)throw new Error("Missing attribute value for attribute "+n+" of element "+r.name);this.name=this.stringify.attName(n),this.value=this.stringify.attValue(e)}return l.prototype.clone=function(){return(0,f.default)(this)},l.prototype.toString=function(r){return this.options.writer.set(r).attribute(this)},l}()}).call(void 0)},{"babel-runtime/core-js/object/create":19}],216:[function(p,E,C){"use strict";var b=p("babel-runtime/core-js/object/create"),f=function(l){return l&&l.__esModule?l:{default:l}}(b);(function(){var l,r=function(e,s){function u(){this.constructor=e}for(var a in s)n.call(s,a)&&(e[a]=s[a]);return u.prototype=s.prototype,e.prototype=new u,e.__super__=s.prototype,e},n={}.hasOwnProperty;l=p("./XMLNode"),E.exports=function(e){function s(u,a){if(s.__super__.constructor.call(this,u),a==null)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(a)}return r(s,e),s.prototype.clone=function(){return(0,f.default)(this)},s.prototype.toString=function(u){return this.options.writer.set(u).cdata(this)},s}(l)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],217:[function(p,E,C){"use strict";var b=p("babel-runtime/core-js/object/create"),f=function(l){return l&&l.__esModule?l:{default:l}}(b);(function(){var l,r=function(e,s){function u(){this.constructor=e}for(var a in s)n.call(s,a)&&(e[a]=s[a]);return u.prototype=s.prototype,e.prototype=new u,e.__super__=s.prototype,e},n={}.hasOwnProperty;l=p("./XMLNode"),E.exports=function(e){function s(u,a){if(s.__super__.constructor.call(this,u),a==null)throw new Error("Missing comment text");this.text=this.stringify.comment(a)}return r(s,e),s.prototype.clone=function(){return(0,f.default)(this)},s.prototype.toString=function(u){return this.options.writer.set(u).comment(this)},s}(l)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],218:[function(p,E,C){"use strict";(function(){var b,f=function(r,n){function e(){this.constructor=r}for(var s in n)l.call(n,s)&&(r[s]=n[s]);return e.prototype=n.prototype,r.prototype=new e,r.__super__=n.prototype,r},l={}.hasOwnProperty;b=p("./XMLNode"),E.exports=function(r){function n(e,s,u,a,A,d){if(n.__super__.constructor.call(this,e),s==null)throw new Error("Missing DTD element name");if(u==null)throw new Error("Missing DTD attribute name");if(!a)throw new Error("Missing DTD attribute type");if(!A)throw new Error("Missing DTD attribute default");if(A.indexOf("#")!==0&&(A="#"+A),!A.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");if(d&&!A.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT");this.elementName=this.stringify.eleName(s),this.attributeName=this.stringify.attName(u),this.attributeType=this.stringify.dtdAttType(a),this.defaultValue=this.stringify.dtdAttDefault(d),this.defaultValueType=A}return f(n,r),n.prototype.toString=function(e){return this.options.writer.set(e).dtdAttList(this)},n}(b)}).call(void 0)},{"./XMLNode":227}],219:[function(p,E,C){"use strict";(function(){var b,f=function(r,n){function e(){this.constructor=r}for(var s in n)l.call(n,s)&&(r[s]=n[s]);return e.prototype=n.prototype,r.prototype=new e,r.__super__=n.prototype,r},l={}.hasOwnProperty;b=p("./XMLNode"),E.exports=function(r){function n(e,s,u){if(n.__super__.constructor.call(this,e),s==null)throw new Error("Missing DTD element name");u||(u="(#PCDATA)"),Array.isArray(u)&&(u="("+u.join(",")+")"),this.name=this.stringify.eleName(s),this.value=this.stringify.dtdElementValue(u)}return f(n,r),n.prototype.toString=function(e){return this.options.writer.set(e).dtdElement(this)},n}(b)}).call(void 0)},{"./XMLNode":227}],220:[function(p,E,C){"use strict";(function(){var b,f,l=function(n,e){function s(){this.constructor=n}for(var u in e)r.call(e,u)&&(n[u]=e[u]);return s.prototype=e.prototype,n.prototype=new s,n.__super__=e.prototype,n},r={}.hasOwnProperty;f=p("./Utility").isObject,b=p("./XMLNode"),E.exports=function(n){function e(s,u,a,A){if(e.__super__.constructor.call(this,s),a==null)throw new Error("Missing entity name");if(A==null)throw new Error("Missing entity value");if(this.pe=!!u,this.name=this.stringify.eleName(a),f(A)){if(!A.pubID&&!A.sysID)throw new Error("Public and/or system identifiers are required for an external entity");if(A.pubID&&!A.sysID)throw new Error("System identifier is required for a public external entity");if(A.pubID!=null&&(this.pubID=this.stringify.dtdPubID(A.pubID)),A.sysID!=null&&(this.sysID=this.stringify.dtdSysID(A.sysID)),A.nData!=null&&(this.nData=this.stringify.dtdNData(A.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity")}else this.value=this.stringify.dtdEntityValue(A)}return l(e,n),e.prototype.toString=function(s){return this.options.writer.set(s).dtdEntity(this)},e}(b)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],221:[function(p,E,C){"use strict";(function(){var b,f=function(r,n){function e(){this.constructor=r}for(var s in n)l.call(n,s)&&(r[s]=n[s]);return e.prototype=n.prototype,r.prototype=new e,r.__super__=n.prototype,r},l={}.hasOwnProperty;b=p("./XMLNode"),E.exports=function(r){function n(e,s,u){if(n.__super__.constructor.call(this,e),s==null)throw new Error("Missing notation name");if(!u.pubID&&!u.sysID)throw new Error("Public or system identifiers are required for an external entity");this.name=this.stringify.eleName(s),u.pubID!=null&&(this.pubID=this.stringify.dtdPubID(u.pubID)),u.sysID!=null&&(this.sysID=this.stringify.dtdSysID(u.sysID))}return f(n,r),n.prototype.toString=function(e){return this.options.writer.set(e).dtdNotation(this)},n}(b)}).call(void 0)},{"./XMLNode":227}],222:[function(p,E,C){"use strict";(function(){var b,f,l=function(n,e){function s(){this.constructor=n}for(var u in e)r.call(e,u)&&(n[u]=e[u]);return s.prototype=e.prototype,n.prototype=new s,n.__super__=e.prototype,n},r={}.hasOwnProperty;f=p("./Utility").isObject,b=p("./XMLNode"),E.exports=function(n){function e(s,u,a,A){var d;e.__super__.constructor.call(this,s),f(u)&&(d=u,u=d.version,a=d.encoding,A=d.standalone),u||(u="1.0"),this.version=this.stringify.xmlVersion(u),a!=null&&(this.encoding=this.stringify.xmlEncoding(a)),A!=null&&(this.standalone=this.stringify.xmlStandalone(A))}return l(e,n),e.prototype.toString=function(s){return this.options.writer.set(s).declaration(this)},e}(b)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],223:[function(p,E,C){"use strict";(function(){var b,f,l,r,n,e,s=function(a,A){function d(){this.constructor=a}for(var i in A)u.call(A,i)&&(a[i]=A[i]);return d.prototype=A.prototype,a.prototype=new d,a.__super__=A.prototype,a},u={}.hasOwnProperty;e=p("./Utility").isObject,n=p("./XMLNode"),b=p("./XMLDTDAttList"),l=p("./XMLDTDEntity"),f=p("./XMLDTDElement"),r=p("./XMLDTDNotation"),E.exports=function(a){function A(d,i,h){var y,v;A.__super__.constructor.call(this,d),this.documentObject=d,e(i)&&(y=i,i=y.pubID,h=y.sysID),h==null&&(v=[i,h],h=v[0],i=v[1]),i!=null&&(this.pubID=this.stringify.dtdPubID(i)),h!=null&&(this.sysID=this.stringify.dtdSysID(h))}return s(A,a),A.prototype.element=function(d,i){var h;return h=new f(this,d,i),this.children.push(h),this},A.prototype.attList=function(d,i,h,y,v){var x;return x=new b(this,d,i,h,y,v),this.children.push(x),this},A.prototype.entity=function(d,i){var h;return h=new l(this,!1,d,i),this.children.push(h),this},A.prototype.pEntity=function(d,i){var h;return h=new l(this,!0,d,i),this.children.push(h),this},A.prototype.notation=function(d,i){var h;return h=new r(this,d,i),this.children.push(h),this},A.prototype.toString=function(d){return this.options.writer.set(d).docType(this)},A.prototype.ele=function(d,i){return this.element(d,i)},A.prototype.att=function(d,i,h,y,v){return this.attList(d,i,h,y,v)},A.prototype.ent=function(d,i){return this.entity(d,i)},A.prototype.pent=function(d,i){return this.pEntity(d,i)},A.prototype.not=function(d,i){return this.notation(d,i)},A.prototype.up=function(){return this.root()||this.documentObject},A}(n)}).call(void 0)},{"./Utility":214,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLNode":227}],224:[function(p,E,C){"use strict";(function(){var b,f,l,r,n=function(s,u){function a(){this.constructor=s}for(var A in u)e.call(u,A)&&(s[A]=u[A]);return a.prototype=u.prototype,s.prototype=new a,s.__super__=u.prototype,s},e={}.hasOwnProperty;r=p("./Utility").isPlainObject,b=p("./XMLNode"),l=p("./XMLStringifier"),f=p("./XMLStringWriter"),E.exports=function(s){function u(a){u.__super__.constructor.call(this,null),a||(a={}),a.writer||(a.writer=new f),this.options=a,this.stringify=new l(a),this.isDocument=!0}return n(u,s),u.prototype.end=function(a){var A;return a?r(a)&&(A=a,a=this.options.writer.set(A)):a=this.options.writer,a.document(this)},u.prototype.toString=function(a){return this.options.writer.set(a).document(this)},u}(b)}).call(void 0)},{"./Utility":214,"./XMLNode":227,"./XMLStringWriter":231,"./XMLStringifier":232}],225:[function(p,E,C){"use strict";(function(){var b,f,l,r,n,e,s,u,a,A,d,i,h,y,v,x,S,B,w,m={}.hasOwnProperty;w=p("./Utility"),S=w.isObject,x=w.isFunction,B=w.isPlainObject,A=p("./XMLElement"),f=p("./XMLCData"),l=p("./XMLComment"),i=p("./XMLRaw"),v=p("./XMLText"),d=p("./XMLProcessingInstruction"),u=p("./XMLDeclaration"),a=p("./XMLDocType"),r=p("./XMLDTDAttList"),e=p("./XMLDTDEntity"),n=p("./XMLDTDElement"),s=p("./XMLDTDNotation"),b=p("./XMLAttribute"),y=p("./XMLStringifier"),h=p("./XMLStringWriter"),E.exports=function(){function c(o,_,D){var T;o||(o={}),o.writer?B(o.writer)&&(T=o.writer,o.writer=new h(T)):o.writer=new h(o),this.options=o,this.writer=o.writer,this.stringify=new y(o),this.onDataCallback=_||function(){},this.onEndCallback=D||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return c.prototype.node=function(o,_,D){var T;if(o==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(),o=o.valueOf(),_==null&&(_={}),_=_.valueOf(),S(_)||(T=[_,D],D=T[0],_=T[1]),this.currentNode=new A(this,o,_),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,D!=null&&this.text(D),this},c.prototype.element=function(o,_,D){return this.currentNode&&this.currentNode instanceof a?this.dtdElement.apply(this,arguments):this.node(o,_,D)},c.prototype.attribute=function(o,_){var D,T;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode");if(o!=null&&(o=o.valueOf()),S(o))for(D in o)m.call(o,D)&&(T=o[D],this.attribute(D,T));else x(_)&&(_=_.apply()),this.options.skipNullAttributes&&_==null||(this.currentNode.attributes[o]=new b(this,o,_));return this},c.prototype.text=function(o){var _;return this.openCurrent(),_=new v(this,o),this.onData(this.writer.text(_,this.currentLevel+1)),this},c.prototype.cdata=function(o){var _;return this.openCurrent(),_=new f(this,o),this.onData(this.writer.cdata(_,this.currentLevel+1)),this},c.prototype.comment=function(o){var _;return this.openCurrent(),_=new l(this,o),this.onData(this.writer.comment(_,this.currentLevel+1)),this},c.prototype.raw=function(o){var _;return this.openCurrent(),_=new i(this,o),this.onData(this.writer.raw(_,this.currentLevel+1)),this},c.prototype.instruction=function(o,_){var D,T,O,R,U;if(this.openCurrent(),o!=null&&(o=o.valueOf()),_!=null&&(_=_.valueOf()),Array.isArray(o))for(D=0,R=o.length;D<R;D++)T=o[D],this.instruction(T);else if(S(o))for(T in o)m.call(o,T)&&(O=o[T],this.instruction(T,O));else x(_)&&(_=_.apply()),U=new d(this,o,_),this.onData(this.writer.processingInstruction(U,this.currentLevel+1));return this},c.prototype.declaration=function(o,_,D){var T;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node");return T=new u(this,o,_,D),this.onData(this.writer.declaration(T,this.currentLevel+1)),this},c.prototype.doctype=function(o,_,D){if(this.openCurrent(),o==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 a(this,_,D),this.currentNode.rootNodeName=o,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},c.prototype.dtdElement=function(o,_){var D;return this.openCurrent(),D=new n(this,o,_),this.onData(this.writer.dtdElement(D,this.currentLevel+1)),this},c.prototype.attList=function(o,_,D,T,O){var R;return this.openCurrent(),R=new r(this,o,_,D,T,O),this.onData(this.writer.dtdAttList(R,this.currentLevel+1)),this},c.prototype.entity=function(o,_){var D;return this.openCurrent(),D=new e(this,!1,o,_),this.onData(this.writer.dtdEntity(D,this.currentLevel+1)),this},c.prototype.pEntity=function(o,_){var D;return this.openCurrent(),D=new e(this,!0,o,_),this.onData(this.writer.dtdEntity(D,this.currentLevel+1)),this},c.prototype.notation=function(o,_){var D;return this.openCurrent(),D=new s(this,o,_),this.onData(this.writer.dtdNotation(D,this.currentLevel+1)),this},c.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},c.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},c.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},c.prototype.openNode=function(o){if(!o.isOpen)return!this.root&&this.currentLevel===0&&o instanceof A&&(this.root=o),this.onData(this.writer.openNode(o,this.currentLevel)),o.isOpen=!0},c.prototype.closeNode=function(o){if(!o.isClosed)return this.onData(this.writer.closeNode(o,this.currentLevel)),o.isClosed=!0},c.prototype.onData=function(o){return this.documentStarted=!0,this.onDataCallback(o)},c.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},c.prototype.ele=function(){return this.element.apply(this,arguments)},c.prototype.nod=function(o,_,D){return this.node(o,_,D)},c.prototype.txt=function(o){return this.text(o)},c.prototype.dat=function(o){return this.cdata(o)},c.prototype.com=function(o){return this.comment(o)},c.prototype.ins=function(o,_){return this.instruction(o,_)},c.prototype.dec=function(o,_,D){return this.declaration(o,_,D)},c.prototype.dtd=function(o,_,D){return this.doctype(o,_,D)},c.prototype.e=function(o,_,D){return this.element(o,_,D)},c.prototype.n=function(o,_,D){return this.node(o,_,D)},c.prototype.t=function(o){return this.text(o)},c.prototype.d=function(o){return this.cdata(o)},c.prototype.c=function(o){return this.comment(o)},c.prototype.r=function(o){return this.raw(o)},c.prototype.i=function(o,_){return this.instruction(o,_)},c.prototype.att=function(){return this.currentNode&&this.currentNode instanceof a?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},c.prototype.a=function(){return this.currentNode&&this.currentNode instanceof a?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},c.prototype.ent=function(o,_){return this.entity(o,_)},c.prototype.pent=function(o,_){return this.pEntity(o,_)},c.prototype.not=function(o,_){return this.notation(o,_)},c}()}).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(p,E,C){"use strict";var b=p("babel-runtime/core-js/object/create"),f=function(l){return l&&l.__esModule?l:{default:l}}(b);(function(){var l,r,n,e,s,u=function(A,d){function i(){this.constructor=A}for(var h in d)a.call(d,h)&&(A[h]=d[h]);return i.prototype=d.prototype,A.prototype=new i,A.__super__=d.prototype,A},a={}.hasOwnProperty;s=p("./Utility"),e=s.isObject,n=s.isFunction,r=p("./XMLNode"),l=p("./XMLAttribute"),E.exports=function(A){function d(i,h,y){if(d.__super__.constructor.call(this,i),h==null)throw new Error("Missing element name");this.name=this.stringify.eleName(h),this.attributes={},y!=null&&this.attribute(y),i.isDocument&&(this.isRoot=!0,this.documentObject=i,i.rootObject=this)}return u(d,A),d.prototype.clone=function(){var i,h,y,v;y=(0,f.default)(this),y.isRoot&&(y.documentObject=null),y.attributes={},v=this.attributes;for(h in v)a.call(v,h)&&(i=v[h],y.attributes[h]=i.clone());return y.children=[],this.children.forEach(function(x){var S;return S=x.clone(),S.parent=y,y.children.push(S)}),y},d.prototype.attribute=function(i,h){var y,v;if(i!=null&&(i=i.valueOf()),e(i))for(y in i)a.call(i,y)&&(v=i[y],this.attribute(y,v));else n(h)&&(h=h.apply()),this.options.skipNullAttributes&&h==null||(this.attributes[i]=new l(this,i,h));return this},d.prototype.removeAttribute=function(i){var h,y,v;if(i==null)throw new Error("Missing attribute name");if(i=i.valueOf(),Array.isArray(i))for(y=0,v=i.length;y<v;y++)h=i[y],delete this.attributes[h];else delete this.attributes[i];return this},d.prototype.toString=function(i){return this.options.writer.set(i).element(this)},d.prototype.att=function(i,h){return this.attribute(i,h)},d.prototype.a=function(i,h){return this.attribute(i,h)},d}(r)}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLNode":227,"babel-runtime/core-js/object/create":19}],227:[function(p,E,C){"use strict";(function(){var b,f,l,r,n,e,s,u,a,A,d,i,h={}.hasOwnProperty;i=p("./Utility"),d=i.isObject,A=i.isFunction,a=i.isEmpty,n=null,b=null,f=null,l=null,r=null,s=null,u=null,e=null,E.exports=function(){function y(v){this.parent=v,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],n||(n=p("./XMLElement"),b=p("./XMLCData"),f=p("./XMLComment"),l=p("./XMLDeclaration"),r=p("./XMLDocType"),s=p("./XMLRaw"),u=p("./XMLText"),e=p("./XMLProcessingInstruction"))}return y.prototype.element=function(v,x,S){var B,w,m,c,o,_,D,T,O,R;if(_=null,x==null&&(x={}),x=x.valueOf(),d(x)||(O=[x,S],S=O[0],x=O[1]),v!=null&&(v=v.valueOf()),Array.isArray(v))for(m=0,D=v.length;m<D;m++)w=v[m],_=this.element(w);else if(A(v))_=this.element(v.apply());else if(d(v)){for(o in v)if(h.call(v,o))if(R=v[o],A(R)&&(R=R.apply()),d(R)&&a(R)&&(R=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&o.indexOf(this.stringify.convertAttKey)===0)_=this.attribute(o.substr(this.stringify.convertAttKey.length),R);else if(!this.options.separateArrayItems&&Array.isArray(R))for(c=0,T=R.length;c<T;c++)w=R[c],B={},B[o]=w,_=this.element(B);else d(R)?(_=this.element(o),_.element(R)):_=this.element(o,R)}else _=!this.options.ignoreDecorators&&this.stringify.convertTextKey&&v.indexOf(this.stringify.convertTextKey)===0?this.text(S):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&v.indexOf(this.stringify.convertCDataKey)===0?this.cdata(S):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&v.indexOf(this.stringify.convertCommentKey)===0?this.comment(S):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&v.indexOf(this.stringify.convertRawKey)===0?this.raw(S):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&v.indexOf(this.stringify.convertPIKey)===0?this.instruction(v.substr(this.stringify.convertPIKey.length),S):this.node(v,x,S);if(_==null)throw new Error("Could not create any elements with: "+v);return _},y.prototype.insertBefore=function(v,x,S){var B,w,m;if(this.isRoot)throw new Error("Cannot insert elements at root level");return w=this.parent.children.indexOf(this),m=this.parent.children.splice(w),B=this.parent.element(v,x,S),Array.prototype.push.apply(this.parent.children,m),B},y.prototype.insertAfter=function(v,x,S){var B,w,m;if(this.isRoot)throw new Error("Cannot insert elements at root level");return w=this.parent.children.indexOf(this),m=this.parent.children.splice(w+1),B=this.parent.element(v,x,S),Array.prototype.push.apply(this.parent.children,m),B},y.prototype.remove=function(){var v;if(this.isRoot)throw new Error("Cannot remove the root element");return v=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[v,v-v+1].concat([])),this.parent},y.prototype.node=function(v,x,S){var B,w;return v!=null&&(v=v.valueOf()),x||(x={}),x=x.valueOf(),d(x)||(w=[x,S],S=w[0],x=w[1]),B=new n(this,v,x),S!=null&&B.text(S),this.children.push(B),B},y.prototype.text=function(v){var x;return x=new u(this,v),this.children.push(x),this},y.prototype.cdata=function(v){var x;return x=new b(this,v),this.children.push(x),this},y.prototype.comment=function(v){var x;return x=new f(this,v),this.children.push(x),this},y.prototype.commentBefore=function(v){var x,S;return x=this.parent.children.indexOf(this),S=this.parent.children.splice(x),this.parent.comment(v),Array.prototype.push.apply(this.parent.children,S),this},y.prototype.commentAfter=function(v){var x,S;return x=this.parent.children.indexOf(this),S=this.parent.children.splice(x+1),this.parent.comment(v),Array.prototype.push.apply(this.parent.children,S),this},y.prototype.raw=function(v){var x;return x=new s(this,v),this.children.push(x),this},y.prototype.instruction=function(v,x){var S,B,w,m,c;if(v!=null&&(v=v.valueOf()),x!=null&&(x=x.valueOf()),Array.isArray(v))for(m=0,c=v.length;m<c;m++)S=v[m],this.instruction(S);else if(d(v))for(S in v)h.call(v,S)&&(B=v[S],this.instruction(S,B));else A(x)&&(x=x.apply()),w=new e(this,v,x),this.children.push(w);return this},y.prototype.instructionBefore=function(v,x){var S,B;return S=this.parent.children.indexOf(this),B=this.parent.children.splice(S),this.parent.instruction(v,x),Array.prototype.push.apply(this.parent.children,B),this},y.prototype.instructionAfter=function(v,x){var S,B;return S=this.parent.children.indexOf(this),B=this.parent.children.splice(S+1),this.parent.instruction(v,x),Array.prototype.push.apply(this.parent.children,B),this},y.prototype.declaration=function(v,x,S){var B,w;return B=this.document(),w=new l(B,v,x,S),B.children[0]instanceof l?B.children[0]=w:B.children.unshift(w),B.root()||B},y.prototype.doctype=function(v,x){var S,B,w,m,c,o,_,D,T,O;for(B=this.document(),w=new r(B,v,x),T=B.children,m=c=0,_=T.length;c<_;m=++c)if((S=T[m])instanceof r)return B.children[m]=w,w;for(O=B.children,m=o=0,D=O.length;o<D;m=++o)if(S=O[m],S.isRoot)return B.children.splice(m,0,w),w;return B.children.push(w),w},y.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},y.prototype.root=function(){var v;for(v=this;v;){if(v.isDocument)return v.rootObject;if(v.isRoot)return v;v=v.parent}},y.prototype.document=function(){var v;for(v=this;v;){if(v.isDocument)return v;v=v.parent}},y.prototype.end=function(v){return this.document().end(v)},y.prototype.prev=function(){var v;if((v=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node");return this.parent.children[v-1]},y.prototype.next=function(){var v;if((v=this.parent.children.indexOf(this))===-1||v===this.parent.children.length-1)throw new Error("Already at the last node");return this.parent.children[v+1]},y.prototype.importDocument=function(v){var x;return x=v.root().clone(),x.parent=this,x.isRoot=!1,this.children.push(x),this},y.prototype.ele=function(v,x,S){return this.element(v,x,S)},y.prototype.nod=function(v,x,S){return this.node(v,x,S)},y.prototype.txt=function(v){return this.text(v)},y.prototype.dat=function(v){return this.cdata(v)},y.prototype.com=function(v){return this.comment(v)},y.prototype.ins=function(v,x){return this.instruction(v,x)},y.prototype.doc=function(){return this.document()},y.prototype.dec=function(v,x,S){return this.declaration(v,x,S)},y.prototype.dtd=function(v,x){return this.doctype(v,x)},y.prototype.e=function(v,x,S){return this.element(v,x,S)},y.prototype.n=function(v,x,S){return this.node(v,x,S)},y.prototype.t=function(v){return this.text(v)},y.prototype.d=function(v){return this.cdata(v)},y.prototype.c=function(v){return this.comment(v)},y.prototype.r=function(v){return this.raw(v)},y.prototype.i=function(v,x){return this.instruction(v,x)},y.prototype.u=function(){return this.up()},y.prototype.importXMLBuilder=function(v){return this.importDocument(v)},y}()}).call(void 0)},{"./Utility":214,"./XMLCData":216,"./XMLComment":217,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233}],228:[function(p,E,C){"use strict";var b=p("babel-runtime/core-js/object/create"),f=function(l){return l&&l.__esModule?l:{default:l}}(b);(function(){var l,r=function(e,s){function u(){this.constructor=e}for(var a in s)n.call(s,a)&&(e[a]=s[a]);return u.prototype=s.prototype,e.prototype=new u,e.__super__=s.prototype,e},n={}.hasOwnProperty;l=p("./XMLNode"),E.exports=function(e){function s(u,a,A){if(s.__super__.constructor.call(this,u),a==null)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(a),A&&(this.value=this.stringify.insValue(A))}return r(s,e),s.prototype.clone=function(){return(0,f.default)(this)},s.prototype.toString=function(u){return this.options.writer.set(u).processingInstruction(this)},s}(l)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],229:[function(p,E,C){"use strict";var b=p("babel-runtime/core-js/object/create"),f=function(l){return l&&l.__esModule?l:{default:l}}(b);(function(){var l,r=function(e,s){function u(){this.constructor=e}for(var a in s)n.call(s,a)&&(e[a]=s[a]);return u.prototype=s.prototype,e.prototype=new u,e.__super__=s.prototype,e},n={}.hasOwnProperty;l=p("./XMLNode"),E.exports=function(e){function s(u,a){if(s.__super__.constructor.call(this,u),a==null)throw new Error("Missing raw text");this.value=this.stringify.raw(a)}return r(s,e),s.prototype.clone=function(){return(0,f.default)(this)},s.prototype.toString=function(u){return this.options.writer.set(u).raw(this)},s}(l)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],230:[function(p,E,C){"use strict";(function(){var b,f,l,r,n,e,s,u,a,A,d,i,h,y=function(x,S){function B(){this.constructor=x}for(var w in S)v.call(S,w)&&(x[w]=S[w]);return B.prototype=S.prototype,x.prototype=new B,x.__super__=S.prototype,x},v={}.hasOwnProperty;s=p("./XMLDeclaration"),u=p("./XMLDocType"),b=p("./XMLCData"),f=p("./XMLComment"),a=p("./XMLElement"),d=p("./XMLRaw"),i=p("./XMLText"),A=p("./XMLProcessingInstruction"),l=p("./XMLDTDAttList"),r=p("./XMLDTDElement"),n=p("./XMLDTDEntity"),e=p("./XMLDTDNotation"),h=p("./XMLWriterBase"),E.exports=function(x){function S(B,w){S.__super__.constructor.call(this,w),this.stream=B}return y(S,x),S.prototype.document=function(B){var w,m,c,o,_,D,T,O;for(D=B.children,m=0,o=D.length;m<o;m++)w=D[m],w.isLastRootNode=!1;for(B.children[B.children.length-1].isLastRootNode=!0,T=B.children,O=[],c=0,_=T.length;c<_;c++)switch(w=T[c],!1){case!(w instanceof s):O.push(this.declaration(w));break;case!(w instanceof u):O.push(this.docType(w));break;case!(w instanceof f):O.push(this.comment(w));break;case!(w instanceof A):O.push(this.processingInstruction(w));break;default:O.push(this.element(w))}return O},S.prototype.attribute=function(B){return this.stream.write(" "+B.name+'="'+B.value+'"')},S.prototype.cdata=function(B,w){return this.stream.write(this.space(w)+"<![CDATA["+B.text+"]]>"+this.endline(B))},S.prototype.comment=function(B,w){return this.stream.write(this.space(w)+"<!-- "+B.text+" -->"+this.endline(B))},S.prototype.declaration=function(B,w){return this.stream.write(this.space(w)),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))},S.prototype.docType=function(B,w){var m,c,o,_;if(w||(w=0),this.stream.write(this.space(w)),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)),_=B.children,c=0,o=_.length;c<o;c++)switch(m=_[c],!1){case!(m instanceof l):this.dtdAttList(m,w+1);break;case!(m instanceof r):this.dtdElement(m,w+1);break;case!(m instanceof n):this.dtdEntity(m,w+1);break;case!(m instanceof e):this.dtdNotation(m,w+1);break;case!(m instanceof b):this.cdata(m,w+1);break;case!(m instanceof f):this.comment(m,w+1);break;case!(m instanceof A):this.processingInstruction(m,w+1);break;default:throw new Error("Unknown DTD node type: "+m.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(B))},S.prototype.element=function(B,w){var m,c,o,_,D,T,O,R;w||(w=0),R=this.space(w),this.stream.write(R+"<"+B.name),T=B.attributes;for(D in T)v.call(T,D)&&(m=T[D],this.attribute(m));if(B.children.length===0||B.children.every(function(U){return U.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),O=B.children,o=0,_=O.length;o<_;o++)switch(c=O[o],!1){case!(c instanceof b):this.cdata(c,w+1);break;case!(c instanceof f):this.comment(c,w+1);break;case!(c instanceof a):this.element(c,w+1);break;case!(c instanceof d):this.raw(c,w+1);break;case!(c instanceof i):this.text(c,w+1);break;case!(c instanceof A):this.processingInstruction(c,w+1);break;default:throw new Error("Unknown XML node type: "+c.constructor.name)}this.stream.write(R+"</"+B.name+">")}return this.stream.write(this.endline(B))},S.prototype.processingInstruction=function(B,w){return this.stream.write(this.space(w)+"<?"+B.target),B.value&&this.stream.write(" "+B.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(B))},S.prototype.raw=function(B,w){return this.stream.write(this.space(w)+B.value+this.endline(B))},S.prototype.text=function(B,w){return this.stream.write(this.space(w)+B.value+this.endline(B))},S.prototype.dtdAttList=function(B,w){return this.stream.write(this.space(w)+"<!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))},S.prototype.dtdElement=function(B,w){return this.stream.write(this.space(w)+"<!ELEMENT "+B.name+" "+B.value),this.stream.write(this.spacebeforeslash+">"+this.endline(B))},S.prototype.dtdEntity=function(B,w){return this.stream.write(this.space(w)+"<!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))},S.prototype.dtdNotation=function(B,w){return this.stream.write(this.space(w)+"<!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))},S.prototype.endline=function(B){return B.isLastRootNode?"":this.newline},S}(h)}).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(p,E,C){"use strict";(function(){var b,f,l,r,n,e,s,u,a,A,d,i,h,y=function(x,S){function B(){this.constructor=x}for(var w in S)v.call(S,w)&&(x[w]=S[w]);return B.prototype=S.prototype,x.prototype=new B,x.__super__=S.prototype,x},v={}.hasOwnProperty;s=p("./XMLDeclaration"),u=p("./XMLDocType"),b=p("./XMLCData"),f=p("./XMLComment"),a=p("./XMLElement"),d=p("./XMLRaw"),i=p("./XMLText"),A=p("./XMLProcessingInstruction"),l=p("./XMLDTDAttList"),r=p("./XMLDTDElement"),n=p("./XMLDTDEntity"),e=p("./XMLDTDNotation"),h=p("./XMLWriterBase"),E.exports=function(x){function S(B){S.__super__.constructor.call(this,B)}return y(S,x),S.prototype.document=function(B){var w,m,c,o,_;for(this.textispresent=!1,o="",_=B.children,m=0,c=_.length;m<c;m++)w=_[m],o+=function(){switch(!1){case!(w instanceof s):return this.declaration(w);case!(w instanceof u):return this.docType(w);case!(w instanceof f):return this.comment(w);case!(w instanceof A):return this.processingInstruction(w);default:return this.element(w,0)}}.call(this);return this.pretty&&o.slice(-this.newline.length)===this.newline&&(o=o.slice(0,-this.newline.length)),o},S.prototype.attribute=function(B){return" "+B.name+'="'+B.value+'"'},S.prototype.cdata=function(B,w){return this.space(w)+"<![CDATA["+B.text+"]]>"+this.newline},S.prototype.comment=function(B,w){return this.space(w)+"<!-- "+B.text+" -->"+this.newline},S.prototype.declaration=function(B,w){var m;return m=this.space(w),m+='<?xml version="'+B.version+'"',B.encoding!=null&&(m+=' encoding="'+B.encoding+'"'),B.standalone!=null&&(m+=' standalone="'+B.standalone+'"'),m+=this.spacebeforeslash+"?>",m+=this.newline},S.prototype.docType=function(B,w){var m,c,o,_,D;if(w||(w=0),_=this.space(w),_+="<!DOCTYPE "+B.root().name,B.pubID&&B.sysID?_+=' PUBLIC "'+B.pubID+'" "'+B.sysID+'"':B.sysID&&(_+=' SYSTEM "'+B.sysID+'"'),B.children.length>0){for(_+=" [",_+=this.newline,D=B.children,c=0,o=D.length;c<o;c++)m=D[c],_+=function(){switch(!1){case!(m instanceof l):return this.dtdAttList(m,w+1);case!(m instanceof r):return this.dtdElement(m,w+1);case!(m instanceof n):return this.dtdEntity(m,w+1);case!(m instanceof e):return this.dtdNotation(m,w+1);case!(m instanceof b):return this.cdata(m,w+1);case!(m instanceof f):return this.comment(m,w+1);case!(m instanceof A):return this.processingInstruction(m,w+1);default:throw new Error("Unknown DTD node type: "+m.constructor.name)}}.call(this);_+="]"}return _+=this.spacebeforeslash+">",_+=this.newline},S.prototype.element=function(B,w){var m,c,o,_,D,T,O,R,U,F,Y,k,K;w||(w=0),K=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),k=this.space(w),R="",R+=k+"<"+B.name,U=B.attributes;for(O in U)v.call(U,O)&&(m=U[O],R+=this.attribute(m));if(B.children.length===0||B.children.every(function(z){return z.value===""}))this.allowEmpty?R+="></"+B.name+">"+this.newline:R+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&B.children.length===1&&B.children[0].value!=null)R+=">",R+=B.children[0].value,R+="</"+B.name+">"+this.newline;else{if(this.dontprettytextnodes){for(F=B.children,o=0,D=F.length;o<D;o++)if(c=F[o],c.value!=null){this.textispresent++,K=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,k=this.space(w)),R+=">"+this.newline,Y=B.children,_=0,T=Y.length;_<T;_++)c=Y[_],R+=function(){switch(!1){case!(c instanceof b):return this.cdata(c,w+1);case!(c instanceof f):return this.comment(c,w+1);case!(c instanceof a):return this.element(c,w+1);case!(c instanceof d):return this.raw(c,w+1);case!(c instanceof i):return this.text(c,w+1);case!(c instanceof A):return this.processingInstruction(c,w+1);default:throw new Error("Unknown XML node type: "+c.constructor.name)}}.call(this);K&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),R+=k+"</"+B.name+">"+this.newline}return R},S.prototype.processingInstruction=function(B,w){var m;return m=this.space(w)+"<?"+B.target,B.value&&(m+=" "+B.value),m+=this.spacebeforeslash+"?>"+this.newline},S.prototype.raw=function(B,w){return this.space(w)+B.value+this.newline},S.prototype.text=function(B,w){return this.space(w)+B.value+this.newline},S.prototype.dtdAttList=function(B,w){var m;return m=this.space(w)+"<!ATTLIST "+B.elementName+" "+B.attributeName+" "+B.attributeType,B.defaultValueType!=="#DEFAULT"&&(m+=" "+B.defaultValueType),B.defaultValue&&(m+=' "'+B.defaultValue+'"'),m+=this.spacebeforeslash+">"+this.newline},S.prototype.dtdElement=function(B,w){return this.space(w)+"<!ELEMENT "+B.name+" "+B.value+this.spacebeforeslash+">"+this.newline},S.prototype.dtdEntity=function(B,w){var m;return m=this.space(w)+"<!ENTITY",B.pe&&(m+=" %"),m+=" "+B.name,B.value?m+=' "'+B.value+'"':(B.pubID&&B.sysID?m+=' PUBLIC "'+B.pubID+'" "'+B.sysID+'"':B.sysID&&(m+=' SYSTEM "'+B.sysID+'"'),B.nData&&(m+=" NDATA "+B.nData)),m+=this.spacebeforeslash+">"+this.newline},S.prototype.dtdNotation=function(B,w){var m;return m=this.space(w)+"<!NOTATION "+B.name,B.pubID&&B.sysID?m+=' PUBLIC "'+B.pubID+'" "'+B.sysID+'"':B.pubID?m+=' PUBLIC "'+B.pubID+'"':B.sysID&&(m+=' SYSTEM "'+B.sysID+'"'),m+=this.spacebeforeslash+">"+this.newline},S.prototype.openNode=function(B,w){var m,c,o,_;if(w||(w=0),B instanceof a){o=this.space(w)+"<"+B.name,_=B.attributes;for(c in _)v.call(_,c)&&(m=_[c],o+=this.attribute(m));return o+=(B.children?">":"/>")+this.newline}return o=this.space(w)+"<!DOCTYPE "+B.rootNodeName,B.pubID&&B.sysID?o+=' PUBLIC "'+B.pubID+'" "'+B.sysID+'"':B.sysID&&(o+=' SYSTEM "'+B.sysID+'"'),o+=(B.children?" [":">")+this.newline},S.prototype.closeNode=function(B,w){switch(w||(w=0),!1){case!(B instanceof a):return this.space(w)+"</"+B.name+">"+this.newline;case!(B instanceof u):return this.space(w)+"]>"+this.newline}},S}(h)}).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(p,E,C){"use strict";(function(){var b=function(l,r){return function(){return l.apply(r,arguments)}},f={}.hasOwnProperty;E.exports=function(){function l(r){this.assertLegalChar=b(this.assertLegalChar,this);var n,e,s;r||(r={}),this.noDoubleEncoding=r.noDoubleEncoding,e=r.stringify||{};for(n in e)f.call(e,n)&&(s=e[n],this[n]=s)}return l.prototype.eleName=function(r){return r=""+r||"",this.assertLegalChar(r)},l.prototype.eleText=function(r){return r=""+r||"",this.assertLegalChar(this.elEscape(r))},l.prototype.cdata=function(r){return r=""+r||"",r=r.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(r)},l.prototype.comment=function(r){if(r=""+r||"",r.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+r);return this.assertLegalChar(r)},l.prototype.raw=function(r){return""+r||""},l.prototype.attName=function(r){return r=""+r||""},l.prototype.attValue=function(r){return r=""+r||"",this.attEscape(r)},l.prototype.insTarget=function(r){return""+r||""},l.prototype.insValue=function(r){if(r=""+r||"",r.match(/\?>/))throw new Error("Invalid processing instruction value: "+r);return r},l.prototype.xmlVersion=function(r){if(r=""+r||"",!r.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+r);return r},l.prototype.xmlEncoding=function(r){if(r=""+r||"",!r.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+r);return r},l.prototype.xmlStandalone=function(r){return r?"yes":"no"},l.prototype.dtdPubID=function(r){return""+r||""},l.prototype.dtdSysID=function(r){return""+r||""},l.prototype.dtdElementValue=function(r){return""+r||""},l.prototype.dtdAttType=function(r){return""+r||""},l.prototype.dtdAttDefault=function(r){return r!=null?""+r||"":r},l.prototype.dtdEntityValue=function(r){return""+r||""},l.prototype.dtdNData=function(r){return""+r||""},l.prototype.convertAttKey="@",l.prototype.convertPIKey="?",l.prototype.convertTextKey="#text",l.prototype.convertCDataKey="#cdata",l.prototype.convertCommentKey="#comment",l.prototype.convertRawKey="#raw",l.prototype.assertLegalChar=function(r){var n;if(n=r.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+r+" at index "+n.index);return r},l.prototype.elEscape=function(r){var n;return n=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,r.replace(n,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;")},l.prototype.attEscape=function(r){var n;return n=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,r.replace(n,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;")},l}()}).call(void 0)},{}],233:[function(p,E,C){"use strict";var b=p("babel-runtime/core-js/object/create"),f=function(l){return l&&l.__esModule?l:{default:l}}(b);(function(){var l,r=function(e,s){function u(){this.constructor=e}for(var a in s)n.call(s,a)&&(e[a]=s[a]);return u.prototype=s.prototype,e.prototype=new u,e.__super__=s.prototype,e},n={}.hasOwnProperty;l=p("./XMLNode"),E.exports=function(e){function s(u,a){if(s.__super__.constructor.call(this,u),a==null)throw new Error("Missing element text");this.value=this.stringify.eleText(a)}return r(s,e),s.prototype.clone=function(){return(0,f.default)(this)},s.prototype.toString=function(u){return this.options.writer.set(u).text(this)},s}(l)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],234:[function(p,E,C){"use strict";(function(){var b={}.hasOwnProperty;E.exports=function(){function f(l){var r,n,e,s,u,a,A,d,i;l||(l={}),this.pretty=l.pretty||!1,this.allowEmpty=(n=l.allowEmpty)!=null&&n,this.pretty?(this.indent=(e=l.indent)!=null?e:" ",this.newline=(s=l.newline)!=null?s:`
`,this.offset=(u=l.offset)!=null?u:0,this.dontprettytextnodes=(a=l.dontprettytextnodes)!=null?a:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=(A=l.spacebeforeslash)!=null?A:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,d=l.writer||{};for(r in d)b.call(d,r)&&(i=d[r],this[r]=i)}return f.prototype.set=function(l){var r,n,e;l||(l={}),"pretty"in l&&(this.pretty=l.pretty),"allowEmpty"in l&&(this.allowEmpty=l.allowEmpty),this.pretty?(this.indent="indent"in l?l.indent:" ",this.newline="newline"in l?l.newline:`
`,this.offset="offset"in l?l.offset:0,this.dontprettytextnodes="dontprettytextnodes"in l?l.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in l?l.spacebeforeslash:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,n=l.writer||{};for(r in n)b.call(n,r)&&(e=n[r],this[r]=e);return this},f.prototype.space=function(l){var r;return this.pretty?(r=(l||0)+this.offset+1,r>0?new Array(r).join(this.indent):""):""},f}()}).call(void 0)},{}],235:[function(p,E,C){"use strict";(function(){var b,f,l,r,n,e,s;s=p("./Utility"),n=s.assign,e=s.isFunction,b=p("./XMLDocument"),f=p("./XMLDocumentCB"),r=p("./XMLStringWriter"),l=p("./XMLStreamWriter"),E.exports.create=function(u,a,A,d){var i,h;if(u==null)throw new Error("Root element needs a name");return d=n({},a,A,d),i=new b(d),h=i.element(u),d.headless||(i.declaration(d),d.pubID==null&&d.sysID==null||i.doctype(d)),h},E.exports.begin=function(u,a,A){var d;return e(u)&&(d=[u,a],a=d[0],A=d[1],u={}),a?new f(u,a,A):new b(u)},E.exports.stringWriter=function(u){return new r(u)},E.exports.streamWriter=function(u,a){return new l(u,a)}}).call(void 0)},{"./Utility":214,"./XMLDocument":224,"./XMLDocumentCB":225,"./XMLStreamWriter":230,"./XMLStringWriter":231}],236:[function(p,E,C){function b(){for(var l={},r=0;r<arguments.length;r++){var n=arguments[r];for(var e in n)f.call(n,e)&&(l[e]=n[e])}return l}E.exports=b;var f=Object.prototype.hasOwnProperty},{}],237:[function(p,E,C){"use strict";function b(d,i,h){r.isBuffer(i)||(i=new r(i)),r.isBuffer(h)||(h=new r(h)),i.length>a?i=d(i):i.length<a&&(i=r.concat([i,A],a));for(var y=new r(a),v=new r(a),x=0;x<a;x++)y[x]=54^i[x],v[x]=92^i[x];var S=d(r.concat([y,h]));return d(r.concat([v,S]))}function f(d,i){d=d||"sha1";var h=u[d],y=[],v=0;return h||l("algorithm:",d,"is not yet supported"),{update:function(x){return r.isBuffer(x)||(x=new r(x)),y.push(x),v+=x.length,this},digest:function(x){var S=r.concat(y),B=i?b(h,i,S):h(S);return y=null,x?B.toString(x):B}}}function l(){var d=[].slice.call(arguments).join(" ");throw new Error([d,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}var r=p("buffer").Buffer,n=p("./sha"),e=p("./sha256"),s=p("./md5"),u={sha1:n,sha256:e,md5:s},a=64,A=new r(a);A.fill(0),C.createHash=function(d){return f(d)},C.createHmac=function(d,i){return f(d,i)},function(d,i){for(var h in d)i(d[h],h)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(d){C[d]=function(){l("sorry,",d,"is not implemented yet")}})},{"./md5":239,"./sha":240,"./sha256":241,buffer:38}],238:[function(p,E,C){"use strict";function b(u,a){if(u.length%n!=0){var A=u.length+(n-u.length%n);u=r.concat([u,e],A)}for(var d=[],i=a?u.readInt32BE:u.readInt32LE,h=0;h<u.length;h+=n)d.push(i.call(u,h));return d}function f(u,a,A){for(var d=new r(a),i=A?d.writeInt32BE:d.writeInt32LE,h=0;h<u.length;h++)i.call(d,u[h],4*h,!0);return d}function l(u,a,A,d){return r.isBuffer(u)||(u=new r(u)),f(a(b(u,d),u.length*s),A,d)}var r=p("buffer").Buffer,n=4,e=new r(n);e.fill(0);var s=8;E.exports={hash:l}},{buffer:38}],239:[function(p,E,C){"use strict";function b(A,d){A[d>>5]|=128<<d%32,A[14+(d+64>>>9<<4)]=d;for(var i=1732584193,h=-271733879,y=-1732584194,v=271733878,x=0;x<A.length;x+=16){var S=i,B=h,w=y,m=v;i=l(i,h,y,v,A[x+0],7,-680876936),v=l(v,i,h,y,A[x+1],12,-389564586),y=l(y,v,i,h,A[x+2],17,606105819),h=l(h,y,v,i,A[x+3],22,-1044525330),i=l(i,h,y,v,A[x+4],7,-176418897),v=l(v,i,h,y,A[x+5],12,1200080426),y=l(y,v,i,h,A[x+6],17,-1473231341),h=l(h,y,v,i,A[x+7],22,-45705983),i=l(i,h,y,v,A[x+8],7,1770035416),v=l(v,i,h,y,A[x+9],12,-1958414417),y=l(y,v,i,h,A[x+10],17,-42063),h=l(h,y,v,i,A[x+11],22,-1990404162),i=l(i,h,y,v,A[x+12],7,1804603682),v=l(v,i,h,y,A[x+13],12,-40341101),y=l(y,v,i,h,A[x+14],17,-1502002290),h=l(h,y,v,i,A[x+15],22,1236535329),i=r(i,h,y,v,A[x+1],5,-165796510),v=r(v,i,h,y,A[x+6],9,-1069501632),y=r(y,v,i,h,A[x+11],14,643717713),h=r(h,y,v,i,A[x+0],20,-373897302),i=r(i,h,y,v,A[x+5],5,-701558691),v=r(v,i,h,y,A[x+10],9,38016083),y=r(y,v,i,h,A[x+15],14,-660478335),h=r(h,y,v,i,A[x+4],20,-405537848),i=r(i,h,y,v,A[x+9],5,568446438),v=r(v,i,h,y,A[x+14],9,-1019803690),y=r(y,v,i,h,A[x+3],14,-187363961),h=r(h,y,v,i,A[x+8],20,1163531501),i=r(i,h,y,v,A[x+13],5,-1444681467),v=r(v,i,h,y,A[x+2],9,-51403784),y=r(y,v,i,h,A[x+7],14,1735328473),h=r(h,y,v,i,A[x+12],20,-1926607734),i=n(i,h,y,v,A[x+5],4,-378558),v=n(v,i,h,y,A[x+8],11,-2022574463),y=n(y,v,i,h,A[x+11],16,1839030562),h=n(h,y,v,i,A[x+14],23,-35309556),i=n(i,h,y,v,A[x+1],4,-1530992060),v=n(v,i,h,y,A[x+4],11,1272893353),y=n(y,v,i,h,A[x+7],16,-155497632),h=n(h,y,v,i,A[x+10],23,-1094730640),i=n(i,h,y,v,A[x+13],4,681279174),v=n(v,i,h,y,A[x+0],11,-358537222),y=n(y,v,i,h,A[x+3],16,-722521979),h=n(h,y,v,i,A[x+6],23,76029189),i=n(i,h,y,v,A[x+9],4,-640364487),v=n(v,i,h,y,A[x+12],11,-421815835),y=n(y,v,i,h,A[x+15],16,530742520),h=n(h,y,v,i,A[x+2],23,-995338651),i=e(i,h,y,v,A[x+0],6,-198630844),v=e(v,i,h,y,A[x+7],10,1126891415),y=e(y,v,i,h,A[x+14],15,-1416354905),h=e(h,y,v,i,A[x+5],21,-57434055),i=e(i,h,y,v,A[x+12],6,1700485571),v=e(v,i,h,y,A[x+3],10,-1894986606),y=e(y,v,i,h,A[x+10],15,-1051523),h=e(h,y,v,i,A[x+1],21,-2054922799),i=e(i,h,y,v,A[x+8],6,1873313359),v=e(v,i,h,y,A[x+15],10,-30611744),y=e(y,v,i,h,A[x+6],15,-1560198380),h=e(h,y,v,i,A[x+13],21,1309151649),i=e(i,h,y,v,A[x+4],6,-145523070),v=e(v,i,h,y,A[x+11],10,-1120210379),y=e(y,v,i,h,A[x+2],15,718787259),h=e(h,y,v,i,A[x+9],21,-343485551),i=s(i,S),h=s(h,B),y=s(y,w),v=s(v,m)}return Array(i,h,y,v)}function f(A,d,i,h,y,v){return s(u(s(s(d,A),s(h,v)),y),i)}function l(A,d,i,h,y,v,x){return f(d&i|~d&h,A,d,y,v,x)}function r(A,d,i,h,y,v,x){return f(d&h|i&~h,A,d,y,v,x)}function n(A,d,i,h,y,v,x){return f(d^i^h,A,d,y,v,x)}function e(A,d,i,h,y,v,x){return f(i^(d|~h),A,d,y,v,x)}function s(A,d){var i=(65535&A)+(65535&d);return(A>>16)+(d>>16)+(i>>16)<<16|65535&i}function u(A,d){return A<<d|A>>>32-d}var a=p("./helpers");E.exports=function(A){return a.hash(A,b,16)}},{"./helpers":238}],240:[function(p,E,C){"use strict";function b(s,u){s[u>>5]|=128<<24-u%32,s[15+(u+64>>9<<4)]=u;for(var a=Array(80),A=1732584193,d=-271733879,i=-1732584194,h=271733878,y=-1009589776,v=0;v<s.length;v+=16){for(var x=A,S=d,B=i,w=h,m=y,c=0;c<80;c++){a[c]=c<16?s[v+c]:n(a[c-3]^a[c-8]^a[c-14]^a[c-16],1);var o=r(r(n(A,5),f(c,d,i,h)),r(r(y,a[c]),l(c)));y=h,h=i,i=n(d,30),d=A,A=o}A=r(A,x),d=r(d,S),i=r(i,B),h=r(h,w),y=r(y,m)}return Array(A,d,i,h,y)}function f(s,u,a,A){return s<20?u&a|~u&A:s<40?u^a^A:s<60?u&a|u&A|a&A:u^a^A}function l(s){return s<20?1518500249:s<40?1859775393:s<60?-1894007588:-899497514}function r(s,u){var a=(65535&s)+(65535&u);return(s>>16)+(u>>16)+(a>>16)<<16|65535&a}function n(s,u){return s<<u|s>>>32-u}var e=p("./helpers");E.exports=function(s){return e.hash(s,b,20,!0)}},{"./helpers":238}],241:[function(p,E,C){"use strict";var b=p("./helpers"),f=function(i,h){var y=(65535&i)+(65535&h);return(i>>16)+(h>>16)+(y>>16)<<16|65535&y},l=function(i,h){return i>>>h|i<<32-h},r=function(i,h){return i>>>h},n=function(i,h,y){return i&h^~i&y},e=function(i,h,y){return i&h^i&y^h&y},s=function(i){return l(i,2)^l(i,13)^l(i,22)},u=function(i){return l(i,6)^l(i,11)^l(i,25)},a=function(i){return l(i,7)^l(i,18)^r(i,3)},A=function(i){return l(i,17)^l(i,19)^r(i,10)},d=function(i,h){var y,v,x,S,B,w,m,c,o,_,D,T,O=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),R=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),U=new Array(64);i[h>>5]|=128<<24-h%32,i[15+(h+64>>9<<4)]=h;for(var o=0;o<i.length;o+=16){y=R[0],v=R[1],x=R[2],S=R[3],B=R[4],w=R[5],m=R[6],c=R[7];for(var _=0;_<64;_++)U[_]=_<16?i[_+o]:f(f(f(A(U[_-2]),U[_-7]),a(U[_-15])),U[_-16]),D=f(f(f(f(c,u(B)),n(B,w,m)),O[_]),U[_]),T=f(s(y),e(y,v,x)),c=m,m=w,w=B,B=f(S,D),S=x,x=v,v=y,y=f(D,T);R[0]=f(y,R[0]),R[1]=f(v,R[1]),R[2]=f(x,R[2]),R[3]=f(S,R[3]),R[4]=f(B,R[4]),R[5]=f(w,R[5]),R[6]=f(m,R[6]),R[7]=f(c,R[7])}return R};E.exports=function(i){return b.hash(i,d,32,!0)}},{"./helpers":238}],242:[function(p,E,C){(function(b){"use strict";function f(d){return d&&d.__esModule?d:{default:d}}var l=p("babel-runtime/core-js/object/create"),r=f(l),n=p("babel-runtime/helpers/classCallCheck"),e=f(n),s=p("babel-runtime/helpers/createClass"),u=f(s),a=p("babel-runtime/helpers/typeof"),A=f(a);!function(d){if((C===void 0?"undefined":(0,A.default)(C))==="object"&&E!==void 0)E.exports=d();else if(typeof M=="function"&&M.amd)M([],d);else{var i;i=typeof window!="undefined"?window:b!==void 0?b:typeof self!="undefined"?self:this,i.mime=d()}}(function(){return function d(i,h,y){function v(B,w){if(!h[B]){if(!i[B]){var m=typeof p=="function"&&p;if(!w&&m)return m(B,!0);if(x)return x(B,!0);var c=new Error("Cannot find module '"+B+"'");throw c.code="MODULE_NOT_FOUND",c}var o=h[B]={exports:{}};i[B][0].call(o.exports,function(_){var D=i[B][1][_];return v(D||_)},o,o.exports,d,i,h,y)}return h[B].exports}for(var x=typeof p=="function"&&p,S=0;S<y.length;S++)v(y[S]);return v}({1:[function(d,i,h){var y=function(){function v(){(0,e.default)(this,v),this._types=(0,r.default)(null),this._extensions=(0,r.default)(null);for(var x=0;x<arguments.length;x++)this.define(arguments[x])}return(0,u.default)(v,[{key:"define",value:function(x,S){for(var B in x){for(var w=x[B],m=0;m<w.length;m++){var c=w[m];if(!S&&c in this._types)throw new Error('Attempt to change mapping for "'+c+'" extension from "'+this._types[c]+'" to "'+B+'". Pass `force=true` to allow this, otherwise remove "'+c+'" from the list of extensions for "'+B+'".');this._types[c]=B}!S&&this._extensions[B]||(this._extensions[B]=w[0])}}},{key:"getType",value:function(x){x=String(x);var S=x.replace(/^.*[\/\\]/,"").toLowerCase(),B=S.replace(/^.*\./,"").toLowerCase(),w=S.length<x.length;return(B.length<S.length-1||!w)&&this._types[B]||null}},{key:"getExtension",value:function(x){return(x=/^\s*([^;\s]*)/.test(x)&&RegExp.$1)&&this._extensions[x.toLowerCase()]||null}}]),v}();i.exports=y},{}],2:[function(d,i,h){var y=d("./Mime");i.exports=new y(d("./types/standard"),d("./types/other"))},{"./Mime":1,"./types/other":3,"./types/standard":4}],3:[function(d,i,h){i.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(d,i,h){i.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 ae!="undefined"?ae: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(p,E,C){"use strict";C.encodeURIComponent=function(b){try{return encodeURIComponent(b)}catch(f){return b}},C.escape=p("escape-html"),C.timestamp=function(b){if(b){var f=b;return typeof f=="string"&&(f=Number(f)),String(b).length===10&&(f*=1e3),new Date(f)}return Math.round(Date.now()/1e3)}},{"escape-html":157}],244:[function(p,E,C){(function(b,f){"use strict";function l(c){return c&&c.__esModule?c:{default:c}}function r(c,o){return c===void 0?o:c}function n(c,o){return function(_,D,T){if(_)return o(_);c({data:D,status:T.statusCode,headers:T.headers,res:T})}}var e,s=p("babel-runtime/core-js/json/stringify"),u=l(s),a=p("babel-runtime/helpers/typeof"),A=l(a),d=p("util"),i=p("url"),h=p("http"),y=p("https"),v=p("debug")("urllib"),x=p("humanize-ms"),S=0,B=Math.pow(2,31)-10,w=/^https?:\/\//i;C.TIMEOUTS=[x("300s"),x("300s")];var m=["json","text"];C.request=function(c,o,_){return arguments.length===2&&typeof o=="function"&&(_=o,o=null),typeof _=="function"?C.requestWithCallback(c,o,_):(e||(e=p("any-promise")),new e(function(D,T){C.requestWithCallback(c,o,n(D,T))}))},C.requestWithCallback=function(c,o,_){function D(){Ue&&(clearTimeout(Ue),Ue=null)}function T(){re&&(clearTimeout(re),re=null)}function O(lt,rt,Ze){if(T(),!_)return console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),z,b.pid,Ae.method,c),void(lt&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),z,b.pid,lt.name,lt.message,lt.stack));var qe=_;_=null;var Le={};if(Ze&&(ue=Ze.statusCode,Le=Ze.headers),ue===401&&Le["www-authenticate"]&&(!o.headers||!o.headers.Authorization)&&o.digestAuth){var je=Le["www-authenticate"];if(je.indexOf("Digest ")>=0)return v("Request#%d %s: got digest auth header WWW-Authenticate: %s",z,c,je),o.headers=o.headers||{},o.headers.Authorization=digestAuthHeader(Ae.method,Ae.path,je,o.digestAuth),v("Request#%d %s: auth with digest header: %s",z,c,o.headers.Authorization),Ze.headers["set-cookie"]&&(o.headers.Cookie=Ze.headers["set-cookie"].join(";")),C.requestWithCallback(c,o,qe)}var Ne=Date.now()-X;He&&(He.contentDownload=Ne),v("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Ne,ne,ue,Ae.method,Ae.host,Ae.path,ce,He);var $e={status:ue,statusCode:ue,headers:Le,size:ne,aborted:De,rt:Ne,keepAliveSocket:ce,data:rt,requestUrls:o.requestUrls,timing:He,remoteAddress:ze,remotePort:wt};if(lt){var At="";le&&typeof le.getCurrentStatus=="function"&&(At=", agent status: "+(0,u.default)(le.getCurrentStatus())),lt.message+=", "+Ae.method+" "+c+" "+ue+" (connected: "+W+", keepalive socket: "+ce+At+`)
headers: `+(0,u.default)(Le),lt.data=rt,lt.path=Ae.path,lt.status=ue,lt.headers=Le,lt.res=$e}qe(lt,rt,o.streaming?Ze:$e),o.emitter&&(j.url=c,j.socket=ct&&ct.connection,j.options=Ae,j.size=Me,o.emitter.emit("response",{requestId:z,error:lt,ctx:o.ctx,req:j,res:$e}))}function R(lt){var rt=null;if(o.followRedirect&&statuses.redirect[lt.statusCode]){o._followRedirectCount=(o._followRedirectCount||0)+1;var Ze=lt.headers.location;if(Ze){if(!(o._followRedirectCount>o.maxRedirects)){var qe=o.formatRedirectUrl?o.formatRedirectUrl(c,Ze):i.resolve(c,Ze);v("Request#%d %s: `redirected` from %s to %s",z,Ae.path,c,qe),T(),o.headers&&o.headers.Host&&w.test(Ze)&&(o.headers.Host=null);var Le=_;return _=null,C.requestWithCallback(qe,o,Le),{redirect:!0,error:null}}rt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+c),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 U(lt,rt,Ze){return Ze(null,rt,lt.headers["content-encoding"])}function F(lt){if(He&&(He.waiting=Date.now()-X),v("Request#%d %s `req response` event emit: status %d, headers: %j",z,c,lt.statusCode,lt.headers),o.streaming){var rt=R(lt);return rt.redirect?void lt.resume():rt.error?(lt.resume(),O(rt.error,null,lt)):O(null,null,lt)}if(lt.on("close",function(){v("Request#%d %s: `res close` event emit, total size %d",z,c,ne)}),lt.on("error",function(){v("Request#%d %s: `res error` event emit, total size %d",z,c,ne)}),lt.on("aborted",function(){De=!0,v("Request#%d %s: `res aborted` event emit, total size %d",z,c,ne)}),Xe){var rt=R(lt);return rt.redirect?void lt.resume():rt.error?(lt.resume(),Xe.end(),O(rt.error,null,lt)):(o.consumeWriteStream===!1?lt.on("end",O.bind(null,null,null,lt)):isNode010||isNode012?first([[Xe,"close"],[lt,"aborted"]],function(Le,je,Ne){v("Request#%d %s: writeStream or res %s event emitted",z,c,Ne),O(N||null,null,lt)}):Xe.on("close",function(){v("Request#%d %s: writeStream close event emitted",z,c),O(N||null,null,lt)}),lt.pipe(Xe))}var Ze=[];lt.on("data",function(qe){v("Request#%d %s: `res data` event emit, size %d",z,c,qe.length),ne+=qe.length,Ze.push(qe)}),lt.on("end",function(){var qe=f.concat(Ze,ne);if(v("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",z,c,ne,lt._dumped),N)return O(N,qe,lt);var Le=R(lt);if(Le.error)return O(Le.error,qe,lt);Le.redirect||U(lt,qe,function(je,Ne,$e){if(je)return O(je,qe,lt);if(!$e&&m.indexOf(o.dataType)>=0){try{Ne=decodeBodyByCharset(Ne,lt)}catch(Bt){return v("decodeBodyByCharset error: %s",Bt),O(null,Ne,lt)}if(o.dataType==="json")if(ne===0)Ne=null;else{var At=parseJSON(Ne,we);At.error?je=At.error:Ne=At.data}}De&&v("Request#%d %s: Remote socket was terminated before `response.end()` was called",z,c),O(je,Ne,lt)})})}function Y(){v("Response timer ticking, timeout: %d",_t),re=setTimeout(function(){re=null;var lt="Response timeout for "+_t+"ms";N=new Error(lt),N.name="ResponseTimeoutError",N.requestId=z,v("ResponseTimeout: Request#%d %s %s: %s, connected: %s",z,c,N.name,lt,W),k()},_t)}function k(){v("Request#%d %s abort, connected: %s",z,c,W),ct.socket||(N.noSocket=!0,O(N)),ct.abort()}if(!c||typeof c!="string"&&(c===void 0?"undefined":(0,A.default)(c))!=="object"){var K=d.format("expect request url to be a string or a http request options, but got %j",c);throw new Error(K)}arguments.length===2&&typeof o=="function"&&(_=o,o=null),o=o||{},S>=B&&(S=0);var z=++S;o.requestUrls=o.requestUrls||[];var j={requestId:z,url:c,args:o,ctx:o.ctx};o.emitter&&o.emitter.emit("request",j),o.timeout=o.timeout||C.TIMEOUTS,o.maxRedirects=o.maxRedirects||10,o.streaming=o.streaming||o.customResponse;var Q,X=Date.now();typeof c=="string"?(w.test(c)||(c="http://"+c),Q=i.parse(c)):Q=c;var te=(o.type||o.method||Q.method||"GET").toUpperCase(),oe=Q.port||80,fe=h,le=r(o.agent,C.agent),we=o.fixJSONCtlChars;Q.protocol==="https:"&&(fe=y,le=r(o.httpsAgent,C.httpsAgent),Q.port||(oe=443));var Ae={host:Q.hostname||Q.host||"localhost",path:Q.path||"/",method:te,port:oe,agent:le,headers:o.headers||{},lookup:o.lookup};Array.isArray(o.timeout)?Ae.requestTimeout=o.timeout[o.timeout.length-1]:o.timeout!==void 0&&(Ae.requestTimeout=o.timeout);for(var be=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],me=0;me<be.length;me++){var he=be[me];o.hasOwnProperty(he)&&(Ae[he]=o[he])}Ae.rejectUnauthorized!==!1||Ae.hasOwnProperty("secureOptions")||(Ae.secureOptions=p("constants").SSL_OP_NO_TLSv1_2);var ie=o.auth||Q.auth;ie&&(Ae.auth=ie);var pe=o.content||o.data,ye=te==="GET"||te==="HEAD"||o.dataAsQueryString;if(!o.content&&pe&&typeof pe!="string"&&!f.isBuffer(pe))if(ye)pe=o.nestedQuerystring?qs.stringify(pe):querystring.stringify(pe);else{var de=Ae.headers["Content-Type"]||Ae.headers["content-type"];de||(de=o.contentType==="json"?"application/json":"application/x-www-form-urlencoded",Ae.headers["Content-Type"]=de),pe=parseContentType(de).type==="application/json"?(0,u.default)(pe):o.nestedQuerystring?qs.stringify(pe):querystring.stringify(pe)}ye&&pe&&(Ae.path+=(Q.query?"&":"?")+pe,pe=null);var Me=0;if(pe){var ke=pe.length;f.isBuffer(pe)||(ke=f.byteLength(pe)),Me=Ae.headers["Content-Length"]=ke}o.dataType==="json"&&(Ae.headers.Accept="application/json"),typeof o.beforeRequest=="function"&&o.beforeRequest(Ae);var Ue=null,re=null,N=null,W=!1,ce=!1,ne=0,ue=-1,De=!1,ze="",wt="",He=null;o.timing&&(He={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),Ae.headers["User-Agent"]||Ae.headers["user-agent"]||(Ae.headers["User-Agent"]=navigator.userAgent),o.gzip&&(Ae.headers["Accept-Encoding"]||Ae.headers["accept-encoding"]||(Ae.headers["Accept-Encoding"]="gzip"));var Xe=o.writeStream;v("Request#%d %s %s with headers %j, options.path: %s",z,te,c,Ae.headers,Ae.path),o.requestUrls.push(c);var gt,_t;Array.isArray(o.timeout)?(gt=x(o.timeout[0]),_t=x(o.timeout[1])):gt=_t=x(o.timeout),v("ConnectTimeout: %d, ResponseTimeout: %d",gt,_t);var ct;try{ct=fe.request(Ae,F)}catch(lt){return O(lt)}return typeof window=="undefined"?function(){v("Connect timer ticking, timeout: %d",gt),Ue=setTimeout(function(){Ue=null,ue===-1&&(ue=-2);var lt="Connect timeout for "+gt+"ms",rt="ConnectionTimeoutError";ct.socket||(rt="SocketAssignTimeoutError",lt+=", working sockets is full"),N=new Error(lt),N.name=rt,N.requestId=z,v("ConnectTimeout: Request#%d %s %s: %s, connected: %s",z,c,N.name,lt,W),k()},gt)}():ct.on("requestTimeout",function(){ue===-1&&(ue=-2);var lt="Connect timeout for "+gt+"ms";N=new Error(lt),N.name="ConnectionTimeoutError",N.requestId=z,k()}),He&&ct.on("finish",function(){He.requestSent=Date.now()-X}),ct.once("socket",function(lt){He&&(He.queuing=Date.now()-X),isNode010&&lt.socket&&(lt=lt.socket);var rt=lt.readyState;if(rt==="opening")return lt.once("lookup",function(Ze,qe,Le){v("Request#%d %s lookup: %s, %s, %s",z,c,Ze,qe,Le),He&&(He.dnslookup=Date.now()-X),qe&&(ze=qe)}),void lt.once("connect",function(){He&&(He.connected=Date.now()-X),D(),Y(),v("Request#%d %s new socket connected",z,c),W=!0,ze||(ze=lt.remoteAddress),wt=lt.remotePort});v("Request#%d %s reuse socket connected, readyState: %s",z,c,rt),W=!0,ce=!0,ze||(ze=lt.remoteAddress),wt=lt.remotePort,D(),Y()}),ct.on("error",function(lt){lt.name!=="Error"&&lt.name!=="TypeError"||(lt.name=W?"ResponseError":"RequestError"),lt.message+=' (req "error")',v("Request#%d %s `req error` event emit, %s: %s",z,c,lt.name,lt.message),O(N||lt)}),Xe&&Xe.once("error",function(lt){lt.message+=' (writeStream "error")',N=lt,v("Request#%d %s `writeStream error` event emit, %s: %s",z,c,lt.name,lt.message),k()}),o.stream?(o.stream.pipe(ct),o.stream.once("error",function(lt){lt.message+=' (stream "error")',N=lt,v("Request#%d %s `readStream error` event emit, %s: %s",z,c,lt.name,lt.message),k()})):ct.end(pe),ct.requestId=z,ct}}).call(this,p("_process"),p("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 p(C){if(E[C])return E[C].exports;var b=E[C]={i:C,l:!1,exports:{}};return M[C].call(b.exports,b,b.exports,p),b.l=!0,b.exports}var E={};p.m=M,p.c=E,p.d=function(C,b,f){p.o(C,b)||Object.defineProperty(C,b,{configurable:!1,enumerable:!0,get:f})},p.n=function(C){var b=C&&C.__esModule?function(){return C.default}:function(){return C};return p.d(b,"a",b),b},p.o=function(C,b){return Object.prototype.hasOwnProperty.call(C,b)},p.p="",p(p.s=12)}([function(M,p,E){!function(C,b){M.exports=p=b()}(0,function(){var C=C||function(b,f){var l=Object.create||function(){function y(){}return function(v){var x;return y.prototype=v,x=new y,y.prototype=null,x}}(),r={},n=r.lib={},e=n.Base=function(){return{extend:function(y){var v=l(this);return y&&v.mixIn(y),v.hasOwnProperty("init")&&this.init!==v.init||(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var y=this.extend();return y.init.apply(y,arguments),y},init:function(){},mixIn:function(y){for(var v in y)y.hasOwnProperty(v)&&(this[v]=y[v]);y.hasOwnProperty("toString")&&(this.toString=y.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),s=n.WordArray=e.extend({init:function(y,v){y=this.words=y||[],this.sigBytes=v!=null?v:4*y.length},toString:function(y){return(y||a).stringify(this)},concat:function(y){var v=this.words,x=y.words,S=this.sigBytes,B=y.sigBytes;if(this.clamp(),S%4)for(var w=0;w<B;w++){var m=x[w>>>2]>>>24-w%4*8&255;v[S+w>>>2]|=m<<24-(S+w)%4*8}else for(var w=0;w<B;w+=4)v[S+w>>>2]=x[w>>>2];return this.sigBytes+=B,this},clamp:function(){var y=this.words,v=this.sigBytes;y[v>>>2]&=4294967295<<32-v%4*8,y.length=b.ceil(v/4)},clone:function(){var y=e.clone.call(this);return y.words=this.words.slice(0),y},random:function(y){for(var v,x=[],S=0;S<y;S+=4){var B=function(w){var w=w,m=987654321,c=4294967295;return function(){m=36969*(65535&m)+(m>>16)&c,w=18e3*(65535&w)+(w>>16)&c;var o=(m<<16)+w&c;return o/=4294967296,(o+=.5)*(b.random()>.5?1:-1)}}(4294967296*(v||b.random()));v=987654071*B(),x.push(4294967296*B()|0)}return new s.init(x,y)}}),u=r.enc={},a=u.Hex={stringify:function(y){for(var v=y.words,x=y.sigBytes,S=[],B=0;B<x;B++){var w=v[B>>>2]>>>24-B%4*8&255;S.push((w>>>4).toString(16)),S.push((15&w).toString(16))}return S.join("")},parse:function(y){for(var v=y.length,x=[],S=0;S<v;S+=2)x[S>>>3]|=parseInt(y.substr(S,2),16)<<24-S%8*4;return new s.init(x,v/2)}},A=u.Latin1={stringify:function(y){for(var v=y.words,x=y.sigBytes,S=[],B=0;B<x;B++){var w=v[B>>>2]>>>24-B%4*8&255;S.push(String.fromCharCode(w))}return S.join("")},parse:function(y){for(var v=y.length,x=[],S=0;S<v;S++)x[S>>>2]|=(255&y.charCodeAt(S))<<24-S%4*8;return new s.init(x,v)}},d=u.Utf8={stringify:function(y){try{return decodeURIComponent(escape(A.stringify(y)))}catch(v){throw new Error("Malformed UTF-8 data")}},parse:function(y){return A.parse(unescape(encodeURIComponent(y)))}},i=n.BufferedBlockAlgorithm=e.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(y){typeof y=="string"&&(y=d.parse(y)),this._data.concat(y),this._nDataBytes+=y.sigBytes},_process:function(y){var v=this._data,x=v.words,S=v.sigBytes,B=this.blockSize,w=4*B,m=S/w;m=y?b.ceil(m):b.max((0|m)-this._minBufferSize,0);var c=m*B,o=b.min(4*c,S);if(c){for(var _=0;_<c;_+=B)this._doProcessBlock(x,_);var D=x.splice(0,c);v.sigBytes-=o}return new s.init(D,o)},clone:function(){var y=e.clone.call(this);return y._data=this._data.clone(),y},_minBufferSize:0}),h=(n.Hasher=i.extend({cfg:e.extend(),init:function(y){this.cfg=this.cfg.extend(y),this.reset()},reset:function(){i.reset.call(this),this._doReset()},update:function(y){return this._append(y),this._process(),this},finalize:function(y){return y&&this._append(y),this._doFinalize()},blockSize:16,_createHelper:function(y){return function(v,x){return new y.init(x).finalize(v)}},_createHmacHelper:function(y){return function(v,x){return new h.HMAC.init(y,x).finalize(v)}}}),r.algo={});return r}(Math);return C})},function(M,p,E){"use strict";function C(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(p,"__esModule",{value:!0});var b=function(){function l(r,n){for(var e=0;e<n.length;e++){var s=n[e];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(r,s.key,s)}}return function(r,n,e){return n&&l(r.prototype,n),e&&l(r,e),r}}(),f=function(){function l(){C(this,l)}return b(l,null,[{key:"detectIEVersion",value:function(){for(var r=4,n=document.createElement("div"),e=n.getElementsByTagName("i");n.innerHTML="<!--[if gt IE "+r+"]><i></i><![endif]-->",e[0];)r++;return r>4&&r}},{key:"extend",value:function(r,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&n[e]&&(r[e]=n[e])}},{key:"isArray",value:function(r){return Object.prototype.toString.call(arg)==="[object Array]"}},{key:"getFileType",value:function(r){return r=r.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(r)?"video":/.mp3|.wav|.ape|.cda|.au|.midi|.mac|.aac|.ac3|.acm|.amr|.caf|.flac|.m4a|.ra|.wma/.test(r)?"audio":/.bmp|.jpg|.jpeg|.png/.test(r)?"img":"other"}},{key:"isImage",value:function(r){return r=r.toLowerCase(),!!/.jpg|.jpeg|.png/.test(r)}},{key:"ISODateString",value:function(r){function n(e){return e<10?"0"+e:e}return r.getUTCFullYear()+"-"+n(r.getUTCMonth()+1)+"-"+n(r.getUTCDate())+"T"+n(r.getUTCHours())+":"+n(r.getUTCMinutes())+":"+n(r.getUTCSeconds())+"Z"}},{key:"isIntNum",value:function(r){return!!/^\d+$/.test(r)}}]),l}();p.default=f},function(M,p,E){!function(C,b){M.exports=p=b(E(0))}(0,function(C){return function(b){function f(h,y,v,x,S,B,w){var m=h+(y&v|~y&x)+S+w;return(m<<B|m>>>32-B)+y}function l(h,y,v,x,S,B,w){var m=h+(y&x|v&~x)+S+w;return(m<<B|m>>>32-B)+y}function r(h,y,v,x,S,B,w){var m=h+(y^v^x)+S+w;return(m<<B|m>>>32-B)+y}function n(h,y,v,x,S,B,w){var m=h+(v^(y|~x))+S+w;return(m<<B|m>>>32-B)+y}var e=C,s=e.lib,u=s.WordArray,a=s.Hasher,A=e.algo,d=[];!function(){for(var h=0;h<64;h++)d[h]=4294967296*b.abs(b.sin(h+1))|0}();var i=A.MD5=a.extend({_doReset:function(){this._hash=new u.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,y){for(var v=0;v<16;v++){var x=y+v,S=h[x];h[x]=16711935&(S<<8|S>>>24)|4278255360&(S<<24|S>>>8)}var B=this._hash.words,w=h[y+0],m=h[y+1],c=h[y+2],o=h[y+3],_=h[y+4],D=h[y+5],T=h[y+6],O=h[y+7],R=h[y+8],U=h[y+9],F=h[y+10],Y=h[y+11],k=h[y+12],K=h[y+13],z=h[y+14],j=h[y+15],Q=B[0],X=B[1],te=B[2],oe=B[3];Q=f(Q,X,te,oe,w,7,d[0]),oe=f(oe,Q,X,te,m,12,d[1]),te=f(te,oe,Q,X,c,17,d[2]),X=f(X,te,oe,Q,o,22,d[3]),Q=f(Q,X,te,oe,_,7,d[4]),oe=f(oe,Q,X,te,D,12,d[5]),te=f(te,oe,Q,X,T,17,d[6]),X=f(X,te,oe,Q,O,22,d[7]),Q=f(Q,X,te,oe,R,7,d[8]),oe=f(oe,Q,X,te,U,12,d[9]),te=f(te,oe,Q,X,F,17,d[10]),X=f(X,te,oe,Q,Y,22,d[11]),Q=f(Q,X,te,oe,k,7,d[12]),oe=f(oe,Q,X,te,K,12,d[13]),te=f(te,oe,Q,X,z,17,d[14]),X=f(X,te,oe,Q,j,22,d[15]),Q=l(Q,X,te,oe,m,5,d[16]),oe=l(oe,Q,X,te,T,9,d[17]),te=l(te,oe,Q,X,Y,14,d[18]),X=l(X,te,oe,Q,w,20,d[19]),Q=l(Q,X,te,oe,D,5,d[20]),oe=l(oe,Q,X,te,F,9,d[21]),te=l(te,oe,Q,X,j,14,d[22]),X=l(X,te,oe,Q,_,20,d[23]),Q=l(Q,X,te,oe,U,5,d[24]),oe=l(oe,Q,X,te,z,9,d[25]),te=l(te,oe,Q,X,o,14,d[26]),X=l(X,te,oe,Q,R,20,d[27]),Q=l(Q,X,te,oe,K,5,d[28]),oe=l(oe,Q,X,te,c,9,d[29]),te=l(te,oe,Q,X,O,14,d[30]),X=l(X,te,oe,Q,k,20,d[31]),Q=r(Q,X,te,oe,D,4,d[32]),oe=r(oe,Q,X,te,R,11,d[33]),te=r(te,oe,Q,X,Y,16,d[34]),X=r(X,te,oe,Q,z,23,d[35]),Q=r(Q,X,te,oe,m,4,d[36]),oe=r(oe,Q,X,te,_,11,d[37]),te=r(te,oe,Q,X,O,16,d[38]),X=r(X,te,oe,Q,F,23,d[39]),Q=r(Q,X,te,oe,K,4,d[40]),oe=r(oe,Q,X,te,w,11,d[41]),te=r(te,oe,Q,X,o,16,d[42]),X=r(X,te,oe,Q,T,23,d[43]),Q=r(Q,X,te,oe,U,4,d[44]),oe=r(oe,Q,X,te,k,11,d[45]),te=r(te,oe,Q,X,j,16,d[46]),X=r(X,te,oe,Q,c,23,d[47]),Q=n(Q,X,te,oe,w,6,d[48]),oe=n(oe,Q,X,te,O,10,d[49]),te=n(te,oe,Q,X,z,15,d[50]),X=n(X,te,oe,Q,D,21,d[51]),Q=n(Q,X,te,oe,k,6,d[52]),oe=n(oe,Q,X,te,o,10,d[53]),te=n(te,oe,Q,X,F,15,d[54]),X=n(X,te,oe,Q,m,21,d[55]),Q=n(Q,X,te,oe,R,6,d[56]),oe=n(oe,Q,X,te,j,10,d[57]),te=n(te,oe,Q,X,T,15,d[58]),X=n(X,te,oe,Q,K,21,d[59]),Q=n(Q,X,te,oe,_,6,d[60]),oe=n(oe,Q,X,te,Y,10,d[61]),te=n(te,oe,Q,X,c,15,d[62]),X=n(X,te,oe,Q,U,21,d[63]),B[0]=B[0]+Q|0,B[1]=B[1]+X|0,B[2]=B[2]+te|0,B[3]=B[3]+oe|0},_doFinalize:function(){var h=this._data,y=h.words,v=8*this._nDataBytes,x=8*h.sigBytes;y[x>>>5]|=128<<24-x%32;var S=b.floor(v/4294967296),B=v;y[15+(x+64>>>9<<4)]=16711935&(S<<8|S>>>24)|4278255360&(S<<24|S>>>8),y[14+(x+64>>>9<<4)]=16711935&(B<<8|B>>>24)|4278255360&(B<<24|B>>>8),h.sigBytes=4*(y.length+1),this._process();for(var w=this._hash,m=w.words,c=0;c<4;c++){var o=m[c];m[c]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}return w},clone:function(){var h=a.clone.call(this);return h._hash=this._hash.clone(),h}});e.MD5=a._createHelper(i),e.HmacMD5=a._createHmacHelper(i)}(Math),C.MD5})},function(M,p,E){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.UPLOADSTATE={INIT:"init",UPLOADING:"uploading",COMPLETE:"complete",INTERRUPT:"interrupt"},p.UPLOADSTEP={INIT:"init",PART:"part",COMPLETE:"complete"},p.UPLOADDEFAULT={PARALLEL:5,PARTSIZE:1048576}},function(M,p,E){"use strict";function C(i){return i&&i.__esModule?i:{default:i}}function b(i,h){if(!(i instanceof h))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(p,"__esModule",{value:!0});var f=function(){function i(h,y){for(var v=0;v<y.length;v++){var x=y[v];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(h,x.key,x)}}return function(h,y,v){return y&&i(h.prototype,y),v&&i(h,v),h}}(),l=E(5),r=C(l),n=E(25),e=C(n),s=E(6),u=C(s),a=E(7),A=C(a),d=function(){function i(h){b(this,i);var y=A.default.os.name,v=A.default.os.version||"",x=A.default.browser.name,S=A.default.browser.version||"",B=window.location.href,w="";B&&(w=A.default.getHost(B));var m="pc";A.default.os.ipad?m="pad":(A.default.os.iphone||A.default.os.android)&&(m="phone"),this._ri=r.default.create(),this.initParam={APIVersion:"0.6.0",lv:"1",av:u.default.version,pd:"upload",sm:"upload",md:"uploader",uuid:i.getUuid(),os:y,ov:v,et:x,ev:S,uat:navigator.userAgent,app_n:w,tt:m,dm:"h5",ut:""}}return f(i,[{key:"log",value:function(h,y){y&&y.ri?(this._ri=y.ri,delete y.ri):this._ri=r.default.create(),y&&y.ut&&(this.initParam.ut=y.ut,delete y.ut),this.initParam.t=new Date().getTime(),this.initParam.ll=h=="20006"?"error":"info",this.initParam.ri=this._ri,this.initParam.e=h;var v=[];if(y)for(var x in y)v.push(x+"="+y[x]);var S=v.join("&");this.initParam.args=encodeURIComponent(S==""?"0":S);var B=[];for(var x in this.initParam)B.push(x+"="+this.initParam[x]);var w=B.join("&");AliyunUpload&&AliyunUpload.__logTestCallback__?AliyunUpload.__logTestCallback__(w):new Image(0,0).src="https://videocloud.cn-hangzhou.log.aliyuncs.com/logstores/upload/track?"+w}}],[{key:"getUuid",value:function(){var h=e.default.get("p_h5_upload_u");return h||(h=r.default.create(),e.default.set("p_h5_upload_u",h,730)),h}},{key:"getClientId",value:function(){return e.default.get("p_h5_upload_clientId")}},{key:"setClientId",value:function(h){return h||(h=r.default.create()),e.default.set("p_h5_upload_clientId",h,730),h}}]),i}();p.default=d},function(M,p,E){"use strict";function C(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(p,"__esModule",{value:!0});var b=function(){function l(r,n){for(var e=0;e<n.length;e++){var s=n[e];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(r,s.key,s)}}return function(r,n,e){return n&&l(r.prototype,n),e&&l(r,e),r}}(),f=function(){function l(){C(this,l)}return b(l,null,[{key:"create",value:function(r,n){var e,s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),u=[];if(n=n||s.length,r)for(e=0;e<r;e++)u[e]=s[0|Math.random()*n];else{var a;for(u[8]=u[13]=u[18]=u[23]="-",u[14]="4",e=0;e<36;e++)u[e]||(a=0|16*Math.random(),u[e]=s[e==19?3&a|8:a])}return u.join("")}}]),l}();p.default=f},function(M,p,E){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var C={version:"1.5.0"};p.default=C},function(M,p,E){"use strict";function C(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(p,"__esModule",{value:!0});var b=function(){function s(u,a){for(var A=0;A<a.length;A++){var d=a[A];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(u,d.key,d)}}return function(u,a,A){return a&&s(u.prototype,a),A&&s(u,A),u}}(),f=function(s){var u=navigator.userAgent,a="other";if(s.ios)return"iOS";if(s.android)return"android";if(u.indexOf("Baiduspider")>-1)return"Baiduspider";if(u.indexOf("PlayStation")>-1)return"PS4";var A=navigator.platform=="Win32"||navigator.platform=="Windows"||u.indexOf("Windows")>-1,d=navigator.platform=="Mac68K"||navigator.platform=="MacPPC"||navigator.platform=="Macintosh"||navigator.platform=="MacIntel";return d&&(a="macOS"),navigator.platform=="X11"&&!A&&!d&&(a="Unix"),String(navigator.platform).indexOf("Linux")>-1&&(a="Linux"),A?"windows":a},l=function(){var s=navigator.userAgent,u="";return(s.indexOf("Windows NT 5.0")>-1||s.indexOf("Windows 2000")>-1)&&(u="2000"),(s.indexOf("Windows NT 5.1")>-1||s.indexOf("Windows XP")>-1)&&(u="XP"),(s.indexOf("Windows NT 5.2")>-1||s.indexOf("Windows 2003")>-1)&&(u="2003"),(s.indexOf("Windows NT 6.0")>-1||s.indexOf("Windows Vista")>-1)&&(u="Vista"),(s.indexOf("Windows NT 6.1")>-1||s.indexOf("Windows 7")>-1)&&(u="7"),(s.indexOf("Windows NT 6.2")>-1||s.indexOf("Windows 8")>-1)&&(u="8"),(s.indexOf("Windows NT 6.3")>-1||s.indexOf("Windows 8.1")>-1)&&(u="8.1"),(s.indexOf("Windows NT 10")>-1||s.indexOf("Windows 10")>-1)&&(u="10"),u},r=function(s){var u=navigator.userAgent.toLowerCase();return s.chrome?"Chrome":s.firefox?"Firefox":s.safari?"Safari":s.webview?"webview":s.ie?/edge/.test(u)?"Edge":"IE":/baiduspider/.test(u)?"Baiduspider":/ucweb/.test(u)||/UCBrowser/.test(u)?"UC":/opera/.test(u)?"Opera":/ucweb/.test(u)?"UC":/360se/.test(u)?"360\u6D4F\u89C8\u5668":/bidubrowser/.test(u)?"\u767E\u5EA6\u6D4F\u89C8\u5668":/metasr/.test(u)?"\u641C\u72D7\u6D4F\u89C8\u5668":/lbbrowser/.test(u)?"\u730E\u8C79\u6D4F\u89C8\u5668":/micromessenger/.test(u)?"\u5FAE\u4FE1\u5185\u7F6E\u6D4F\u89C8\u5668":/qqbrowser/.test(u)?"QQ\u6D4F\u89C8\u5668":/playstation/.test(u)?"PS4\u6D4F\u89C8\u5668":void 0},n=function(){var s={},u={},a=navigator.userAgent,A=navigator.platform,d=a.match(/Web[kK]it[\/]{0,1}([\d.]+)/),i=a.match(/(Android);?[\s\/]+([\d.]+)?/),h=!!a.match(/\(Macintosh\; Intel /),y=a.match(/(iPad).*OS\s([\d_]+)/),v=a.match(/(iPod)(.*OS\s([\d_]+))?/),x=!y&&a.match(/(iPhone\sOS)\s([\d_]+)/),S=a.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),B=/Win\d{2}|Windows/.test(A),w=a.match(/Windows Phone ([\d.]+)/),m=S&&a.match(/TouchPad/),c=a.match(/Kindle\/([\d.]+)/),o=a.match(/Silk\/([\d._]+)/),_=a.match(/(BlackBerry).*Version\/([\d.]+)/),D=a.match(/(BB10).*Version\/([\d.]+)/),T=a.match(/(RIM\sTablet\sOS)\s([\d.]+)/),O=a.match(/PlayBook/),R=a.match(/Chrome\/([\d.]+)/)||a.match(/CriOS\/([\d.]+)/),U=a.match(/Firefox\/([\d.]+)/),F=a.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),Y=a.match(/MSIE\s([\d.]+)/)||a.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),k=!R&&a.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),K=k||a.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);if((u.webkit=!!d)&&(u.version=d[1]),i&&(s.android=!0,s.version=i[2]),x&&!v&&(s.ios=s.iphone=!0,s.version=x[2].replace(/_/g,".")),y&&(s.ios=s.ipad=!0,s.version=y[2].replace(/_/g,".")),v&&(s.ios=s.ipod=!0,s.version=v[3]?v[3].replace(/_/g,"."):null),w&&(s.wp=!0,s.version=w[1]),S&&(s.webos=!0,s.version=S[2]),m&&(s.touchpad=!0),_&&(s.blackberry=!0,s.version=_[2]),D&&(s.bb10=!0,s.version=D[2]),T&&(s.rimtabletos=!0,s.version=T[2]),O&&(u.playbook=!0),c&&(s.kindle=!0,s.version=c[1]),o&&(u.silk=!0,u.version=o[1]),!o&&s.android&&a.match(/Kindle Fire/)&&(u.silk=!0),R&&(u.chrome=!0,u.version=R[1]),U&&(u.firefox=!0,u.version=U[1]),F&&(s.firefoxos=!0,s.version=F[1]),Y&&(u.ie=!0,u.version=Y[1]),K&&(h||s.ios||B||i)&&(u.safari=!0,s.ios||(u.version=K[1])),k&&(u.webview=!0),h){var z=a.match(/[\d]*_[\d]*_[\d]*/);z&&z.length>0&&z[0]&&(s.version=z[0].replace(/_/g,"."))}return s.tablet=!!(y||O||i&&!a.match(/Mobile/)||U&&a.match(/Tablet/)||Y&&!a.match(/Phone/)&&a.match(/Touch/)),s.phone=!(s.tablet||s.ipod||!(i||x||S||_||D||R&&a.match(/Android/)||R&&a.match(/CriOS\/([\d.]+)/)||U&&a.match(/Mobile/)||Y&&a.match(/Touch/))),s.pc=!s.tablet&&!s.phone,h?s.name="macOS":B?(s.name="windows",s.version=l()):s.name=f(s),u.name=r(u),{os:s,browser:u}}(),e=function(){function s(){C(this,s)}return b(s,null,[{key:"getHost",value:function(u){var a="";if(u===void 0||u==null||u=="")return"";var A=u.indexOf("//"),d=u;A>-1&&(d=u.substring(A+2));var a=d,i=d.split("/");return i&&i.length>0&&(a=i[0]),i=a.split(":"),i&&i.length>0&&(a=i[0]),a}},{key:"os",get:function(){return n.os}},{key:"browser",get:function(){var u=n.browser;return u.name||(u.name=r()),u}}]),s}();p.default=e},function(M,p,E){"use strict";function C(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(p,"__esModule",{value:!0});var b=function(){function l(r,n){for(var e=0;e<n.length;e++){var s=n[e];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(r,s.key,s)}}return function(r,n,e){return n&&l(r.prototype,n),e&&l(r,e),r}}(),f=function(){function l(){C(this,l)}return b(l,null,[{key:"get",value:function(r,n,e,s,u){var a;e=e||function(){},typeof XMLHttpRequest=="undefined"&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(A){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(A){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(A){}throw new Error("This browser does not support XMLHttpRequest.")}),a=new XMLHttpRequest,a.onreadystatechange=function(){a.readyState===4&&(a.status===200?n(a.responseText):e(a.responseText))};try{s===void 0&&(s=!0),a.open("GET",r,s),u&&(a.withCredentials=!0)}catch(A){return void e(A)}try{a.send()}catch(A){e(A)}}}]),l}();p.default=f},function(M,p,E){"use strict";function C(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(p,"__esModule",{value:!0});var b=function(){function n(e,s){for(var u=0;u<s.length;u++){var a=s[u];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,s,u){return s&&n(e.prototype,s),u&&n(e,u),e}}(),f=E(27),l=E(30),r=(E(10),function(){function n(){C(this,n)}return b(n,null,[{key:"randomUUID",value:function(){for(var e=[],s="0123456789abcdef",u=0;u<36;u++)e[u]=s.substr(Math.floor(16*Math.random()),1);return e[14]="4",e[19]=s.substr(3&e[19]|8,1),e[8]=e[13]=e[18]=e[23]="-",e.join("")}},{key:"aliyunEncodeURI",value:function(e){var s=encodeURIComponent(e);return s=s.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,s,u){if(!e)throw new Error("PrismPlayer Error: vid should not be null!");var a=[];for(var A in e)a.push(A);for(var d=a.sort(),i="",h=d.length,A=0;A<h;A++){var y=n.aliyunEncodeURI(d[A]),v=n.aliyunEncodeURI(e[d[A]]);i==""?i=y+s+v:i+=u+y+s+v}return i}},{key:"makeChangeSiga",value:function(e,s){if(!e)throw new Error("PrismPlayer Error: vid should not be null!");return l.stringify(f("GET&"+n.aliyunEncodeURI("/")+"&"+n.aliyunEncodeURI(n.makeUTF8sort(e,"=","&")),s+"&"))}}]),n}());p.default=r},function(M,p,E){!function(C,b){M.exports=p=b(E(0))}(0,function(C){return C.enc.Utf8})},function(M,p,E){!function(C,b){M.exports=p=b(E(0))}(0,function(C){return C.enc.Hex})},function(M,p,E){M.exports=E(13)},function(M,p,E){"use strict";var C,b,f=(typeof Symbol=="function"&&Symbol.iterator,E(14)),l=function(n){return n&&n.__esModule?n:{default:n}}(f),r={Vod:l.default};C=[],(b=function(){return r}.apply(p,C))!==void 0&&(M.exports=b),window.AliyunUpload=r,We.exports=AliyunUpload},function(M,p,E){"use strict";function C(D){return D&&D.__esModule?D:{default:D}}function b(D,T){if(!(D instanceof T))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(p,"__esModule",{value:!0});var f=function(){function D(T,O){for(var R=0;R<O.length;R++){var U=O[R];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(T,U.key,U)}}return function(T,O,R){return O&&D(T.prototype,O),R&&D(T,R),T}}(),l=E(15),r=E(3),n=E(16),e=C(n),s=E(18),u=C(s),a=E(24),A=C(a),d=E(4),i=C(d),h=E(1),y=C(h),v=E(5),x=C(v),S=E(26),B=C(S),w=E(31),m=C(w),c=E(32),o=C(c),_=(E(2),function(){function D(T){b(this,D),this.options=T,this.options.partSize=this.options.partSize||r.UPLOADDEFAULT.PARTSIZE,this.options.parallel=this.options.parallel||r.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=l.VODSTATE.INIT,this._uploadList=[],this._curIndex=-1,this._ossUpload=null,this._log=new i.default,this._retryCount=0,this._retryTotal=this.options.retryCount||3,this._retryDuration=this.options.retryDuration||2,this._state=l.VODSTATE.INIT,this._uploadWay="vod",this._onbeforeunload=!1,this._invalidUserId=!1,this._initEvent()}return f(D,[{key:"init",value:function(T,O,R,U){return this._retryCount=0,!(R&&!U||!R&&U)&&!(T&&!O||!T&&O)&&(this._ossCreditor.accessKeyId=T,this._ossCreditor.accessKeySecret=O,this._ossCreditor.securityToken=R,this._ossCreditor.expireTime=U,!0)}},{key:"addFile",value:function(T,O,R,U,F,Y){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(j){console.log(j)}for(var k=(this.options,0);k<this._uploadList.length;k++)if(this._uploadList[k].file==T)return!1;var K=new Object;if(K.file=T,K._endpoint=O,K._bucket=R,K._object=U,K.state=l.UPLOADSTATE.INIT,K.isImage=y.default.isImage(T.name),!K.isImage&&this.options.enableUploadProgress){var z=this;o.default.getMd5(T,function(j){K.fileHash=j;var Q=z._getCheckoutpoint(K);z.options.localCheckpoint||Q||z._getCheckoutpointFromCloud(K,function(X){if(X.UploadPoint){var te=JSON.parse(X.UploadPoint);te.loaded!=1&&(K.checkpoint=te.checkpoint,K.loaded=te.loaded,K.videoId=X.VideoId,z._saveCheckoutpoint(K,te.checkpoint))}},function(X){try{if((X=JSON.parse(X))&&X.Code=="InvalidParameter"&&X.Message.indexOf("UserId")>0){z._invalidUserId=!0;var te=X.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(te)}}catch(oe){console.log(oe)}})})}F&&(K.videoInfo=F?JSON.parse(F).Vod:{},K.userData=u.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(j){console.log(j)}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 O=this._uploadList[T];if(T==this._curIndex&&O.state==l.UPLOADSTATE.UPLOADING){O.state=l.UPLOADSTATE.CANCELED;var R=this._getCheckoutpoint(O);R&&R.checkpoint&&(R=R.checkpoint),R&&this._ossUpload.abort(O),this._removeCheckoutpoint(O),this.nextUpload()}else O.state!=l.UPLOADSTATE.SUCCESS&&(O.state=l.UPLOADSTATE.CANCELED);return this._reportLog("20008",O),!0}},{key:"resumeFile",value:function(T){if(this.options,T<0||T>=this._uploadList.length)return!1;var O=this._uploadList[T];return O.state==l.UPLOADSTATE.CANCELED&&(O.state=l.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==l.VODSTATE.START||this._state==l.VODSTATE.EXPIRE)return void console.log("already started or expired");if(this._initState(),this._curIndex=this._findUploadIndex(),this._curIndex==-1)return void(this._state=l.VODSTATE.END);var O=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(O),this._state=l.VODSTATE.START}},{key:"nextUpload",value:function(){var T=this.options;if(this._state==l.VODSTATE.START)if(this._curIndex=this._findUploadIndex(),this._curIndex!=-1){var O=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(O)}else{this._state=l.VODSTATE.END;try{T.onUploadEnd&&T.onUploadEnd(O)}catch(R){console.log(R)}}}},{key:"clear",value:function(T){for(var O=this.options,R=0,U=0;U<this._uploadList.length;U++)O.uploadList[U].state==l.UPLOADSTATE.SUCCESS&&R++,this._uploadList[U].state==T&&(O.uploadList.splice(U,1),U--);O.onClear&&O.onClear(O.uploadList.length,R)}},{key:"stopUpload",value:function(){if((this._state==l.VODSTATE.START||this._state==l.VODSTATE.FAILURE||this._curIndex==-1)&&this._curIndex!=-1){var T=this._uploadList[this._curIndex];this._state=l.VODSTATE.STOP,T.state=l.UPLOADSTATE.STOPED,this._changeState(T,l.UPLOADSTATE.STOPED),this._ossUpload.cancel()}}},{key:"resumeUploadWithAuth",value:function(T){var O=this;if(!T)return!1;var R=JSON.parse(u.default.decode(T));return!!(R.AccessKeyId&&R.AccessKeySecret&&R.SecurityToken&&R.Expiration)&&O.resumeUploadWithToken(R.AccessKeyId,R.AccessKeySecret,R.SecurityToken,R.Expiration)}},{key:"resumeUploadWithToken",value:function(T,O,R,U){if(this.options,!(T&&O&&R&&U))return!1;if(this._state!=l.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,O,R,U),this._state=l.VODSTATE.START,this._ossUpload=null,this._uploadCore(F,F.retry),F.retry=!1),!0}},{key:"resumeUploadWithSTSToken",value:function(T,O,R){if(this._curIndex==-1)return!1;if(this._state!=l.VODSTATE.EXPIRE)return!1;if(this._uploadList.length>this._curIndex){var U=this._uploadList[this._curIndex];U.object?this._refreshSTSTokenUpload(U,T,O,R):this.setSTSToken(U,T,O,R)}}},{key:"setSTSTokenDirectlyUpload",value:function(T,O,R,U,F){if(!(O&&R&&U&&F))return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken and expiration should not be empty."),!1;this._ut="oss";var Y=T;this.init(O,R,U,F),Y.endpoint=Y._endpoint,Y.bucket=Y._bucket,Y.object=Y._object,this._ossUpload=null,this._uploadCore(Y,T.retry),T.retry=!1}},{key:"setSTSToken",value:function(T,O,R,U){if(!O||!R||!U)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;this._ut="vod",this._uploadWay="sts";var F=T.videoInfo,Y={accessKeyId:O,securityToken:U,accessKeySecret:R,fileName:T.file.name,title:F.Title,requestId:T.ri,region:this.options.region};F.ImageType&&(Y.imageType=F.ImageType),F.ImageExt&&(Y.imageExt=F.ImageExt),F.FileSize&&(Y.fileSize=F.FileSize),F.Description&&(Y.description=F.Description),F.CateId&&(Y.cateId=F.CateId),F.Tags&&(Y.tags=F.Tags),F.TemplateGroupId&&(Y.templateGroupId=F.TemplateGroupId),F.StorageLocation&&(Y.storageLocation=F.StorageLocation),F.CoverURL&&(Y.coverUrl=F.CoverURL),F.TransCodeMode&&(Y.transCodeMode=F.TransCodeMode),F.UserData&&(Y.userData=F.UserData);var k=this,K="getUploadAuth";T.videoId?(Y.videoId=T.videoId,K="refreshUploadAuth"):T.isImage&&(K="getImageUploadAuth"),B.default[K](Y,function(z){T.videoId=z.VideoId?z.VideoId:T.videoId,k.setUploadAuthAndAddress(T,z.UploadAuth,z.UploadAddress),k._state=l.VODSTATE.START},function(z){k._error(T,{name:z.Code,code:z.Code,message:z.Message,requestId:z.RequestId})})}},{key:"setUploadAuthAndAddress",value:function(T,O,R,U){if(!T||!O||!R)return!1;var F=JSON.parse(u.default.decode(O));if(!(F.AccessKeyId&&F.AccessKeySecret&&F.SecurityToken&&F.Expiration))return console.error("uploadauth is invalid"),!1;var Y={},k=T;if(R){if(Y=JSON.parse(u.default.decode(R)),!Y.Endpoint||!Y.Bucket||!Y.FileName)return console.error("uploadAddress is invalid"),!1}else Y.Endpoint=k.endpoint,Y.Bucket=k.bucket,Y.FileName=k.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),k.endpoint=k._endpoint?k._endpoint:Y.Endpoint,k.bucket=k._bucket?k._bucket:Y.Bucket,k.object=k._object?k._object:Y.FileName,k.region=this.options.region,U&&(k.videoId=U),this._ossUpload=null,this._uploadCore(k,T.retry),T.retry=!1}},{key:"_refreshSTSTokenUpload",value:function(T,O,R,U){if(!O||!R||!U)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;var F={accessKeyId:O,securityToken:U,accessKeySecret:R,videoId:T.object,requestId:T.ri,region:this.options.region},Y=this,k="refreshUploadAuth";T.isImage&&(k="getImageUploadAuth"),B.default[k](F,function(K){Y.setUploadAuthAndAddress(T,K.UploadAuth,UploadAddress),Y._state=l.VODSTATE.START},function(K){Y._error(T,{name:K.Code,code:K.Code,message:K.Message,requestId:K.RequestId})})}},{key:"_upload",value:function(T){var O=arguments.length>1&&arguments[1]!==void 0&&arguments[1],R=this.options;if(T.retry=O,R.onUploadstarted&&!O)try{var U=this._getCheckoutpoint(T);U&&U.state!=l.UPLOADSTATE.UPLOADING&&(T.checkpoint=U,T.videoId=U.videoId),R.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=l.UPLOADSTATE.UPLOADING,!this._ossUpload){T.endpoint=T.endpoint||"http://oss-cn-hangzhou.aliyuncs.com";var O=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(z,j){O._error.call(O,z,j)},oncomplete:function(z,j){O._complete.call(O,z,j)},onprogress:function(z,j,Q){O._progress.call(O,z,j,Q)}})}var R=y.default.getFileType(T.file.name),U=this._getCheckoutpoint(T),F="",Y="";U&&U.checkpoint&&(Y=U.state,F=U.videoId,U=U.checkpoint),U&&F==T.videoId&&Y!=l.UPLOADSTATE.UPLOADING&&(U.file=T.file,T.checkpoint=U,U.uploadId);var k=this._adjustPartSize(T);this._reportLog("20002",T,{ft:R,fs:T.file.size,bu:T.bucket,ok:T.object,vid:T.videoId||"",fn:T.file.name,fw:null,fh:null,ps:k});var K={headers:{"x-oss-notification":T.userData?T.userData:""},partSize:k,parallel:this.options.parallel};this._ossUpload.upload(T,K)}},{key:"_findUploadIndex",value:function(){for(var T=-1,O=0;O<this._uploadList.length;O++)if(this._uploadList[O].state==l.UPLOADSTATE.INIT){T=O;break}return T}},{key:"_error",value:function(T,O){if(O.name=="cancel")try{this.options.onUploadCanceled(T,O)}catch(U){console.log(U)}else{if(O.message.indexOf("InvalidAccessKeyIdError")>0||O.name=="SignatureDoesNotMatchError"||O.code=="SecurityTokenExpired"||O.code=="InvalidSecurityToken.Expired"||O.code=="InvalidAccessKeyId"&&this._ossCreditor.securityToken){if(this.options.onUploadTokenExpired){this._state=l.VODSTATE.EXPIRE,T.state=l.UPLOADSTATE.FAIlURE;try{this.options.onUploadTokenExpired(T,O)}catch(U){console.log(U)}}return}if((O.name=="RequestTimeoutError"||O.name=="ConnectionTimeout"||O.name=="ConnectionTimeoutError")&&this._retryTotal>this._retryCount){var R=this;return setTimeout(function(){R._uploadCore(T,!0)},1e3*R._retryDuration),void this._retryCount++}O.name=="NoSuchUploadError"&&this._removeCheckoutpoint(T),this._handleError(T,O)}}},{key:"_handleError",value:function(T,O){var R=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],U=l.UPLOADSTATE.FAIlURE;if(T.state!=l.UPLOADSTATE.CANCELED&&(T.state=l.UPLOADSTATE.FAIlURE,this._state=l.VODSTATE.FAILURE,this.options.onUploadFailed&&O&&O.code&&O.message))try{this.options.onUploadFailed(T,O.code,O.message)}catch(Y){console.log(Y)}if(R&&this._changeState(T,U),this._reportLog("20006",T,{code:O.name,message:O.message,requestId:O.requestId,fs:T.file.size,bu:T.bucket,ok:T.object,fn:T.file.name}),this._reportLog("20004",T,{requestId:O.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=l.VODSTATE.START,setTimeout(function(){F.nextUpload()},100)}}},{key:"_complete",value:function(T,O){if(T.state=l.UPLOADSTATE.SUCCESS,this.options.onUploadSucceed)try{this.options.onUploadSucceed(T)}catch(F){console.log(F)}var R=0;O&&O.res&&O.res.headers&&(R=O.res.headers["x-oss-request-id"]),this._removeCheckoutpoint(T);var U=this;setTimeout(function(){U.nextUpload()},100),this._retryCount=0,this._reportLog("20003",T,{requestId:R})}},{key:"_progress",value:function(T,O,R){if(this.options.onUploadProgress)try{T.loaded=O.loaded,this.options.onUploadProgress(T,O.total,O.loaded)}catch(j){console.log(j)}var U=O.checkpoint,F=0;U&&(T.checkpoint=U,this._saveCheckoutpoint(T,U,l.UPLOADSTATE.UPLOADING),F=U.uploadId),this._retryCount=0;var Y=this._getPortNumber(U),k=0;if(R&&R.headers&&(k=R.headers["x-oss-request-id"]),O.loaded!=0&&this._reportLog("20007",T,{pn:Y,requestId:k}),O.loaded!=1&&this._reportLog("20005",T,{UploadId:F,pn:Y+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:O,userId:this.options.userId,videoId:T.videoId,region:this.options.region,fileHash:T.fileHash};try{var z=this;m.default.upload(K,function(){},function(j){if((j=JSON.parse(j))&&j.Code=="InvalidParameter"&&j.Message.indexOf("UserId")>0){z._invalidUserId=!0;var Q=j.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(Q)}})}catch(j){console.log(j)}}}},{key:"_getPortNumber",value:function(T){if(T){var O=T.doneParts;if(O&&O.length>0)return O[O.length-1].number}return 0}},{key:"_removeCheckoutpoint",value:function(T){var O=this._getCheckoutpointKey(T);A.default.remove(O)}},{key:"_getCheckoutpoint",value:function(T){var O=this._getCheckoutpointKey(T),R=A.default.get(O);if(R)try{return JSON.parse(R)}catch(U){}return""}},{key:"_saveCheckoutpoint",value:function(T,O,R){if(O){var U=this._getCheckoutpointKey(T),F=T.file,Y={fileName:F.name,lastModified:F.lastModified,size:F.size,object:T.object,videoId:T.videoId,bucket:T.bucket,endpoint:T.endpoint,checkpoint:O,loaded:T.loaded,state:R};A.default.set(U,JSON.stringify(Y))}}},{key:"_changeState",value:function(T,O){var R=this._getCheckoutpoint(T);R&&((this._onbeforeunload=!0)&&(O=l.UPLOADSTATE.STOPED),this._saveCheckoutpoint(T,R.checkpoint,O))}},{key:"_getCheckoutpointKey",value:function(T){return"upload_"+T.file.lastModified+"_"+T.file.name+"_"+T.file.size}},{key:"_getCheckoutpointFromCloud",value:function(T,O,R){var U={userId:this.options.userId,uploadInfoList:[{FileName:T.file.name,FileSize:T.file.size,FileCreateTime:T.file.lastModified,FileHash:T.fileHash}],region:this.options.region};m.default.get(U,function(F){O(F)},R)}},{key:"_reportLog",value:function(T,O,R){R||(R={}),R.ri=O.ri,this._ut&&(R.ut=this._ut),this._log.log(T,R)}},{key:"_initEvent",value:function(){var T=this;window&&(window.onbeforeunload=function(O){if(T._onbeforeunload=!0,T._curIndex!=-1&&T._uploadList.length>T._curIndex){var R=T._uploadList[T._curIndex];T._changeState(R,l.UPLOADSTATE.STOPED)}})}},{key:"_initState",value:function(){for(var T=0;T<this._uploadList.length;T++){var O=this._uploadList[T];O.state!=l.UPLOADSTATE.FAIlURE&&O.state!=l.UPLOADSTATE.STOPED||(O.state=l.UPLOADSTATE.INIT)}this._state=l.VODSTATE.INIT}},{key:"_adjustPartSize",value:function(T){return T.file.size/this.options.partSize>1e4?T.file.size/9999:this.options.partSize}}]),D}());p.default=_},function(M,p,E){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.UPLOADSTATE={INIT:"Ready",UPLOADING:"Uploading",SUCCESS:"Success",FAIlURE:"Failure",CANCELED:"Canceled",STOPED:"Stoped"},p.VODSTATE={INIT:"Init",START:"Start",STOP:"Stop",FAILURE:"Failure",EXPIRE:"Expire",END:"End"}},function(M,p,E){"use strict";function C(s){return s&&s.__esModule?s:{default:s}}function b(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(p,"__esModule",{value:!0});var f=function(){function s(u,a){for(var A=0;A<a.length;A++){var d=a[A];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(u,d.key,d)}}return function(u,a,A){return a&&s(u.prototype,a),A&&s(u,A),u}}(),l=E(3),r=E(17),n=(C(r),E(1)),e=(C(n),function(){function s(u,a){if(b(this,s),u){this._config=u,this.create(this._config),this._uploadInfo=null,this._callback={};var A=function(){};this._callback.onerror=a.onerror||A,this._callback.oncomplete=a.oncomplete||A,this._callback.onprogress=a.onprogress||A}}return f(s,[{key:"create",value:function(u){if(u.endpoint=u.endpoint||this._config.endpoint,u.bucket=u.bucket||this._config.bucket,!(u.AccessKeyId&&u.AccessKeySecret&&u.endpoint&&u.SecurityToken))throw new Error("AccessKeyId\u3001AccessKeySecret\u3001endpoint should not be null");var a={accessKeyId:u.AccessKeyId,accessKeySecret:u.AccessKeySecret,stsToken:u.SecurityToken,endpoint:u.endpoint||this._config.endpoint,bucket:u.bucket||this._config.bucket,secure:!0,cname:u.cname};u.timeout&&(a.timeout=u.timeout),this.oss=new OSS.Wrapper(a)}},{key:"abort",value:function(u){if(u.checkpoint){var a=u.checkpoint.uploadId;this.oss.abortMultipartUpload(u.object,a)}}},{key:"getVersion",value:function(){}},{key:"cancel",value:function(){this.oss.cancel&&this.oss.cancel()}},{key:"upload",value:function(u,a){this._uploadInfo=u;var A=this,d=function(h,y,v){return function(x){A._progress(h,y,v),x()}},i={parallel:a.parallel||this._config.parallel||l.UPLOADDEFAULT.PARALLEL,partSize:a.partSize||this._config.partSize||l.UPLOADDEFAULT.PARTSIZE,progress:d};a.headers&&(i.headers=a.headers),u.checkpoint&&(i.checkpoint=u.checkpoint),u.bucket||(this.oss.options.bucket=u.bucket),u.endpoint||(this.oss.options.endpoint=u.endpoint),this.oss.multipartUpload(u.object,u.file,i).then(function(h,y){A._complete(h)}).catch(function(h){A.oss.cancel&&(A.oss&&A.oss.isCancel()?console.log("oss is cancel as error"):A.oss.cancel()),A._error(h)})}},{key:"header",value:function(u,a,A){this.oss.get(u.object).then(function(d){a(d)}).catch(function(d){A(d)})}},{key:"_progress",value:function(u,a,A){this._callback.onprogress(this._uploadInfo,{loaded:u,total:this._uploadInfo.file.size,checkpoint:a},A)}},{key:"_error",value:function(u){this._callback.onerror(this._uploadInfo,u)}},{key:"_complete",value:function(u){this._callback.oncomplete(this._uploadInfo,u)}}]),s}());p.default=e},function(M,p,E){"use strict";function C(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(p,"__esModule",{value:!0});var b=function(){function l(r,n){for(var e=0;e<n.length;e++){var s=n[e];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(r,s.key,s)}}return function(r,n,e){return n&&l(r.prototype,n),e&&l(r,e),r}}(),f=function(){function l(){C(this,l)}return b(l,null,[{key:"format",value:function(r){if(arguments.length<2)return null;for(var n=arguments[1],e=1;e<arguments.length;e++){var s=new RegExp("\\{"+(e-1)+"\\}","gm");n=n.replace(s,arguments[e+1])}return{code:r,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."}}}]),l}();p.default=f},function(M,p,E){"use strict";(function(C){function b(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(p,"__esModule",{value:!0});var f=function(){function r(n,e){for(var s=0;s<e.length;s++){var u=e[s];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(n,u.key,u)}}return function(n,e,s){return e&&r(n.prototype,e),s&&r(n,s),n}}(),l=function(){function r(){b(this,r)}return f(r,null,[{key:"encode",value:function(n){return new C(n).toString("base64")}},{key:"decode",value:function(n){return new C(n,"base64").toString()}}]),r}();p.default=l}).call(p,E(19).Buffer)},function(M,p,E){"use strict";(function(C){function b(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(re,N){if(b()<N)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(re=new Uint8Array(N),re.__proto__=l.prototype):(re===null&&(re=new l(N)),re.length=N),re}function l(re,N,W){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(re,N,W);if(typeof re=="number"){if(typeof N=="string")throw new Error("If encoding is specified then the first argument must be a string");return s(this,re)}return r(this,re,N,W)}function r(re,N,W,ce){if(typeof N=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&N instanceof ArrayBuffer?A(re,N,W,ce):typeof N=="string"?u(re,N,W):d(re,N)}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,N,W,ce){return n(N),N<=0?f(re,N):W!==void 0?typeof ce=="string"?f(re,N).fill(W,ce):f(re,N).fill(W):f(re,N)}function s(re,N){if(n(N),re=f(re,N<0?0:0|i(N)),!l.TYPED_ARRAY_SUPPORT)for(var W=0;W<N;++W)re[W]=0;return re}function u(re,N,W){if(typeof W=="string"&&W!==""||(W="utf8"),!l.isEncoding(W))throw new TypeError('"encoding" must be a valid string encoding');var ce=0|y(N,W);re=f(re,ce);var ne=re.write(N,W);return ne!==ce&&(re=re.slice(0,ne)),re}function a(re,N){var W=N.length<0?0:0|i(N.length);re=f(re,W);for(var ce=0;ce<W;ce+=1)re[ce]=255&N[ce];return re}function A(re,N,W,ce){if(N.byteLength,W<0||N.byteLength<W)throw new RangeError("'offset' is out of bounds");if(N.byteLength<W+(ce||0))throw new RangeError("'length' is out of bounds");return N=W===void 0&&ce===void 0?new Uint8Array(N):ce===void 0?new Uint8Array(N,W):new Uint8Array(N,W,ce),l.TYPED_ARRAY_SUPPORT?(re=N,re.__proto__=l.prototype):re=a(re,N),re}function d(re,N){if(l.isBuffer(N)){var W=0|i(N.length);return re=f(re,W),re.length===0||N.copy(re,0,0,W),re}if(N){if(typeof ArrayBuffer!="undefined"&&N.buffer instanceof ArrayBuffer||"length"in N)return typeof N.length!="number"||pe(N.length)?f(re,0):a(re,N);if(N.type==="Buffer"&&Me(N.data))return a(re,N.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function i(re){if(re>=b())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b().toString(16)+" bytes");return 0|re}function h(re){return+re!=re&&(re=0),l.alloc(+re)}function y(re,N){if(l.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 ce=!1;;)switch(N){case"ascii":case"latin1":case"binary":return W;case"utf8":case"utf-8":case void 0:return Ae(re).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*W;case"hex":return W>>>1;case"base64":return he(re).length;default:if(ce)return Ae(re).length;N=(""+N).toLowerCase(),ce=!0}}function v(re,N,W){var ce=!1;if((N===void 0||N<0)&&(N=0),N>this.length)return"";if((W===void 0||W>this.length)&&(W=this.length),W<=0)return"";if(W>>>=0,N>>>=0,W<=N)return"";for(re||(re="utf8");;)switch(re){case"hex":return Y(this,N,W);case"utf8":case"utf-8":return O(this,N,W);case"ascii":return U(this,N,W);case"latin1":case"binary":return F(this,N,W);case"base64":return T(this,N,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,N,W);default:if(ce)throw new TypeError("Unknown encoding: "+re);re=(re+"").toLowerCase(),ce=!0}}function x(re,N,W){var ce=re[N];re[N]=re[W],re[W]=ce}function S(re,N,W,ce,ne){if(re.length===0)return-1;if(typeof W=="string"?(ce=W,W=0):W>2147483647?W=2147483647:W<-2147483648&&(W=-2147483648),W=+W,isNaN(W)&&(W=ne?0:re.length-1),W<0&&(W=re.length+W),W>=re.length){if(ne)return-1;W=re.length-1}else if(W<0){if(!ne)return-1;W=0}if(typeof N=="string"&&(N=l.from(N,ce)),l.isBuffer(N))return N.length===0?-1:B(re,N,W,ce,ne);if(typeof N=="number")return N&=255,l.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ne?Uint8Array.prototype.indexOf.call(re,N,W):Uint8Array.prototype.lastIndexOf.call(re,N,W):B(re,[N],W,ce,ne);throw new TypeError("val must be string, number or Buffer")}function B(re,N,W,ce,ne){function ue(ct,lt){return De===1?ct[lt]:ct.readUInt16BE(lt*De)}var De=1,ze=re.length,wt=N.length;if(ce!==void 0&&((ce=String(ce).toLowerCase())==="ucs2"||ce==="ucs-2"||ce==="utf16le"||ce==="utf-16le")){if(re.length<2||N.length<2)return-1;De=2,ze/=2,wt/=2,W/=2}var He;if(ne){var Xe=-1;for(He=W;He<ze;He++)if(ue(re,He)===ue(N,Xe===-1?0:He-Xe)){if(Xe===-1&&(Xe=He),He-Xe+1===wt)return Xe*De}else Xe!==-1&&(He-=He-Xe),Xe=-1}else for(W+wt>ze&&(W=ze-wt),He=W;He>=0;He--){for(var gt=!0,_t=0;_t<wt;_t++)if(ue(re,He+_t)!==ue(N,_t)){gt=!1;break}if(gt)return He}return-1}function w(re,N,W,ce){W=Number(W)||0;var ne=re.length-W;ce?(ce=Number(ce))>ne&&(ce=ne):ce=ne;var ue=N.length;if(ue%2!=0)throw new TypeError("Invalid hex string");ce>ue/2&&(ce=ue/2);for(var De=0;De<ce;++De){var ze=parseInt(N.substr(2*De,2),16);if(isNaN(ze))return De;re[W+De]=ze}return De}function m(re,N,W,ce){return ie(Ae(N,re.length-W),re,W,ce)}function c(re,N,W,ce){return ie(be(N),re,W,ce)}function o(re,N,W,ce){return c(re,N,W,ce)}function _(re,N,W,ce){return ie(he(N),re,W,ce)}function D(re,N,W,ce){return ie(me(N,re.length-W),re,W,ce)}function T(re,N,W){return N===0&&W===re.length?ye.fromByteArray(re):ye.fromByteArray(re.slice(N,W))}function O(re,N,W){W=Math.min(re.length,W);for(var ce=[],ne=N;ne<W;){var ue=re[ne],De=null,ze=ue>239?4:ue>223?3:ue>191?2:1;if(ne+ze<=W){var wt,He,Xe,gt;switch(ze){case 1:ue<128&&(De=ue);break;case 2:wt=re[ne+1],(192&wt)==128&&(gt=(31&ue)<<6|63&wt)>127&&(De=gt);break;case 3:wt=re[ne+1],He=re[ne+2],(192&wt)==128&&(192&He)==128&&(gt=(15&ue)<<12|(63&wt)<<6|63&He)>2047&&(gt<55296||gt>57343)&&(De=gt);break;case 4:wt=re[ne+1],He=re[ne+2],Xe=re[ne+3],(192&wt)==128&&(192&He)==128&&(192&Xe)==128&&(gt=(15&ue)<<18|(63&wt)<<12|(63&He)<<6|63&Xe)>65535&&gt<1114112&&(De=gt)}}De===null?(De=65533,ze=1):De>65535&&(De-=65536,ce.push(De>>>10&1023|55296),De=56320|1023&De),ce.push(De),ne+=ze}return R(ce)}function R(re){var N=re.length;if(N<=ke)return String.fromCharCode.apply(String,re);for(var W="",ce=0;ce<N;)W+=String.fromCharCode.apply(String,re.slice(ce,ce+=ke));return W}function U(re,N,W){var ce="";W=Math.min(re.length,W);for(var ne=N;ne<W;++ne)ce+=String.fromCharCode(127&re[ne]);return ce}function F(re,N,W){var ce="";W=Math.min(re.length,W);for(var ne=N;ne<W;++ne)ce+=String.fromCharCode(re[ne]);return ce}function Y(re,N,W){var ce=re.length;(!N||N<0)&&(N=0),(!W||W<0||W>ce)&&(W=ce);for(var ne="",ue=N;ue<W;++ue)ne+=we(re[ue]);return ne}function k(re,N,W){for(var ce=re.slice(N,W),ne="",ue=0;ue<ce.length;ue+=2)ne+=String.fromCharCode(ce[ue]+256*ce[ue+1]);return ne}function K(re,N,W){if(re%1!=0||re<0)throw new RangeError("offset is not uint");if(re+N>W)throw new RangeError("Trying to access beyond buffer length")}function z(re,N,W,ce,ne,ue){if(!l.isBuffer(re))throw new TypeError('"buffer" argument must be a Buffer instance');if(N>ne||N<ue)throw new RangeError('"value" argument is out of bounds');if(W+ce>re.length)throw new RangeError("Index out of range")}function j(re,N,W,ce){N<0&&(N=65535+N+1);for(var ne=0,ue=Math.min(re.length-W,2);ne<ue;++ne)re[W+ne]=(N&255<<8*(ce?ne:1-ne))>>>8*(ce?ne:1-ne)}function Q(re,N,W,ce){N<0&&(N=4294967295+N+1);for(var ne=0,ue=Math.min(re.length-W,4);ne<ue;++ne)re[W+ne]=N>>>8*(ce?ne:3-ne)&255}function X(re,N,W,ce,ne,ue){if(W+ce>re.length)throw new RangeError("Index out of range");if(W<0)throw new RangeError("Index out of range")}function te(re,N,W,ce,ne){return ne||X(re,N,W,4,34028234663852886e22,-34028234663852886e22),de.write(re,N,W,ce,23,4),W+4}function oe(re,N,W,ce,ne){return ne||X(re,N,W,8,17976931348623157e292,-17976931348623157e292),de.write(re,N,W,ce,52,8),W+8}function fe(re){if(re=le(re).replace(Ue,""),re.length<2)return"";for(;re.length%4!=0;)re+="=";return re}function le(re){return re.trim?re.trim():re.replace(/^\s+|\s+$/g,"")}function we(re){return re<16?"0"+re.toString(16):re.toString(16)}function Ae(re,N){N=N||1/0;for(var W,ce=re.length,ne=null,ue=[],De=0;De<ce;++De){if((W=re.charCodeAt(De))>55295&&W<57344){if(!ne){if(W>56319){(N-=3)>-1&&ue.push(239,191,189);continue}if(De+1===ce){(N-=3)>-1&&ue.push(239,191,189);continue}ne=W;continue}if(W<56320){(N-=3)>-1&&ue.push(239,191,189),ne=W;continue}W=65536+(ne-55296<<10|W-56320)}else ne&&(N-=3)>-1&&ue.push(239,191,189);if(ne=null,W<128){if((N-=1)<0)break;ue.push(W)}else if(W<2048){if((N-=2)<0)break;ue.push(W>>6|192,63&W|128)}else if(W<65536){if((N-=3)<0)break;ue.push(W>>12|224,W>>6&63|128,63&W|128)}else{if(!(W<1114112))throw new Error("Invalid code point");if((N-=4)<0)break;ue.push(W>>18|240,W>>12&63|128,W>>6&63|128,63&W|128)}}return ue}function be(re){for(var N=[],W=0;W<re.length;++W)N.push(255&re.charCodeAt(W));return N}function me(re,N){for(var W,ce,ne,ue=[],De=0;De<re.length&&!((N-=2)<0);++De)W=re.charCodeAt(De),ce=W>>8,ne=W%256,ue.push(ne),ue.push(ce);return ue}function he(re){return ye.toByteArray(fe(re))}function ie(re,N,W,ce){for(var ne=0;ne<ce&&!(ne+W>=N.length||ne>=re.length);++ne)N[ne+W]=re[ne];return ne}function pe(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 ye=E(21),de=E(22),Me=E(23);p.Buffer=l,p.SlowBuffer=h,p.INSPECT_MAX_BYTES=50,l.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(N){return!1}}(),p.kMaxLength=b(),l.poolSize=8192,l._augment=function(re){return re.__proto__=l.prototype,re},l.from=function(re,N,W){return r(null,re,N,W)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(re,N,W){return e(null,re,N,W)},l.allocUnsafe=function(re){return s(null,re)},l.allocUnsafeSlow=function(re){return s(null,re)},l.isBuffer=function(re){return!(re==null||!re._isBuffer)},l.compare=function(re,N){if(!l.isBuffer(re)||!l.isBuffer(N))throw new TypeError("Arguments must be Buffers");if(re===N)return 0;for(var W=re.length,ce=N.length,ne=0,ue=Math.min(W,ce);ne<ue;++ne)if(re[ne]!==N[ne]){W=re[ne],ce=N[ne];break}return W<ce?-1:ce<W?1:0},l.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}},l.concat=function(re,N){if(!Me(re))throw new TypeError('"list" argument must be an Array of Buffers');if(re.length===0)return l.alloc(0);var W;if(N===void 0)for(N=0,W=0;W<re.length;++W)N+=re[W].length;var ce=l.allocUnsafe(N),ne=0;for(W=0;W<re.length;++W){var ue=re[W];if(!l.isBuffer(ue))throw new TypeError('"list" argument must be an Array of Buffers');ue.copy(ce,ne),ne+=ue.length}return ce},l.byteLength=y,l.prototype._isBuffer=!0,l.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 N=0;N<re;N+=2)x(this,N,N+1);return this},l.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 N=0;N<re;N+=4)x(this,N,N+3),x(this,N+1,N+2);return this},l.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 N=0;N<re;N+=8)x(this,N,N+7),x(this,N+1,N+6),x(this,N+2,N+5),x(this,N+3,N+4);return this},l.prototype.toString=function(){var re=0|this.length;return re===0?"":arguments.length===0?O(this,0,re):v.apply(this,arguments)},l.prototype.equals=function(re){if(!l.isBuffer(re))throw new TypeError("Argument must be a Buffer");return this===re||l.compare(this,re)===0},l.prototype.inspect=function(){var re="",N=p.INSPECT_MAX_BYTES;return this.length>0&&(re=this.toString("hex",0,N).match(/.{2}/g).join(" "),this.length>N&&(re+=" ... ")),"<Buffer "+re+">"},l.prototype.compare=function(re,N,W,ce,ne){if(!l.isBuffer(re))throw new TypeError("Argument must be a Buffer");if(N===void 0&&(N=0),W===void 0&&(W=re?re.length:0),ce===void 0&&(ce=0),ne===void 0&&(ne=this.length),N<0||W>re.length||ce<0||ne>this.length)throw new RangeError("out of range index");if(ce>=ne&&N>=W)return 0;if(ce>=ne)return-1;if(N>=W)return 1;if(N>>>=0,W>>>=0,ce>>>=0,ne>>>=0,this===re)return 0;for(var ue=ne-ce,De=W-N,ze=Math.min(ue,De),wt=this.slice(ce,ne),He=re.slice(N,W),Xe=0;Xe<ze;++Xe)if(wt[Xe]!==He[Xe]){ue=wt[Xe],De=He[Xe];break}return ue<De?-1:De<ue?1:0},l.prototype.includes=function(re,N,W){return this.indexOf(re,N,W)!==-1},l.prototype.indexOf=function(re,N,W){return S(this,re,N,W,!0)},l.prototype.lastIndexOf=function(re,N,W){return S(this,re,N,W,!1)},l.prototype.write=function(re,N,W,ce){if(N===void 0)ce="utf8",W=this.length,N=0;else if(W===void 0&&typeof N=="string")ce=N,W=this.length,N=0;else{if(!isFinite(N))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");N|=0,isFinite(W)?(W|=0,ce===void 0&&(ce="utf8")):(ce=W,W=void 0)}var ne=this.length-N;if((W===void 0||W>ne)&&(W=ne),re.length>0&&(W<0||N<0)||N>this.length)throw new RangeError("Attempt to write outside buffer bounds");ce||(ce="utf8");for(var ue=!1;;)switch(ce){case"hex":return w(this,re,N,W);case"utf8":case"utf-8":return m(this,re,N,W);case"ascii":return c(this,re,N,W);case"latin1":case"binary":return o(this,re,N,W);case"base64":return _(this,re,N,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,re,N,W);default:if(ue)throw new TypeError("Unknown encoding: "+ce);ce=(""+ce).toLowerCase(),ue=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ke=4096;l.prototype.slice=function(re,N){var W=this.length;re=~~re,N=N===void 0?W:~~N,re<0?(re+=W)<0&&(re=0):re>W&&(re=W),N<0?(N+=W)<0&&(N=0):N>W&&(N=W),N<re&&(N=re);var ce;if(l.TYPED_ARRAY_SUPPORT)ce=this.subarray(re,N),ce.__proto__=l.prototype;else{var ne=N-re;ce=new l(ne,void 0);for(var ue=0;ue<ne;++ue)ce[ue]=this[ue+re]}return ce},l.prototype.readUIntLE=function(re,N,W){re|=0,N|=0,W||K(re,N,this.length);for(var ce=this[re],ne=1,ue=0;++ue<N&&(ne*=256);)ce+=this[re+ue]*ne;return ce},l.prototype.readUIntBE=function(re,N,W){re|=0,N|=0,W||K(re,N,this.length);for(var ce=this[re+--N],ne=1;N>0&&(ne*=256);)ce+=this[re+--N]*ne;return ce},l.prototype.readUInt8=function(re,N){return N||K(re,1,this.length),this[re]},l.prototype.readUInt16LE=function(re,N){return N||K(re,2,this.length),this[re]|this[re+1]<<8},l.prototype.readUInt16BE=function(re,N){return N||K(re,2,this.length),this[re]<<8|this[re+1]},l.prototype.readUInt32LE=function(re,N){return N||K(re,4,this.length),(this[re]|this[re+1]<<8|this[re+2]<<16)+16777216*this[re+3]},l.prototype.readUInt32BE=function(re,N){return N||K(re,4,this.length),16777216*this[re]+(this[re+1]<<16|this[re+2]<<8|this[re+3])},l.prototype.readIntLE=function(re,N,W){re|=0,N|=0,W||K(re,N,this.length);for(var ce=this[re],ne=1,ue=0;++ue<N&&(ne*=256);)ce+=this[re+ue]*ne;return ne*=128,ce>=ne&&(ce-=Math.pow(2,8*N)),ce},l.prototype.readIntBE=function(re,N,W){re|=0,N|=0,W||K(re,N,this.length);for(var ce=N,ne=1,ue=this[re+--ce];ce>0&&(ne*=256);)ue+=this[re+--ce]*ne;return ne*=128,ue>=ne&&(ue-=Math.pow(2,8*N)),ue},l.prototype.readInt8=function(re,N){return N||K(re,1,this.length),128&this[re]?-1*(255-this[re]+1):this[re]},l.prototype.readInt16LE=function(re,N){N||K(re,2,this.length);var W=this[re]|this[re+1]<<8;return 32768&W?4294901760|W:W},l.prototype.readInt16BE=function(re,N){N||K(re,2,this.length);var W=this[re+1]|this[re]<<8;return 32768&W?4294901760|W:W},l.prototype.readInt32LE=function(re,N){return N||K(re,4,this.length),this[re]|this[re+1]<<8|this[re+2]<<16|this[re+3]<<24},l.prototype.readInt32BE=function(re,N){return N||K(re,4,this.length),this[re]<<24|this[re+1]<<16|this[re+2]<<8|this[re+3]},l.prototype.readFloatLE=function(re,N){return N||K(re,4,this.length),de.read(this,re,!0,23,4)},l.prototype.readFloatBE=function(re,N){return N||K(re,4,this.length),de.read(this,re,!1,23,4)},l.prototype.readDoubleLE=function(re,N){return N||K(re,8,this.length),de.read(this,re,!0,52,8)},l.prototype.readDoubleBE=function(re,N){return N||K(re,8,this.length),de.read(this,re,!1,52,8)},l.prototype.writeUIntLE=function(re,N,W,ce){(re=+re,N|=0,W|=0,!ce)&&z(this,re,N,W,Math.pow(2,8*W)-1,0);var ne=1,ue=0;for(this[N]=255&re;++ue<W&&(ne*=256);)this[N+ue]=re/ne&255;return N+W},l.prototype.writeUIntBE=function(re,N,W,ce){(re=+re,N|=0,W|=0,!ce)&&z(this,re,N,W,Math.pow(2,8*W)-1,0);var ne=W-1,ue=1;for(this[N+ne]=255&re;--ne>=0&&(ue*=256);)this[N+ne]=re/ue&255;return N+W},l.prototype.writeUInt8=function(re,N,W){return re=+re,N|=0,W||z(this,re,N,1,255,0),l.TYPED_ARRAY_SUPPORT||(re=Math.floor(re)),this[N]=255&re,N+1},l.prototype.writeUInt16LE=function(re,N,W){return re=+re,N|=0,W||z(this,re,N,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[N]=255&re,this[N+1]=re>>>8):j(this,re,N,!0),N+2},l.prototype.writeUInt16BE=function(re,N,W){return re=+re,N|=0,W||z(this,re,N,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[N]=re>>>8,this[N+1]=255&re):j(this,re,N,!1),N+2},l.prototype.writeUInt32LE=function(re,N,W){return re=+re,N|=0,W||z(this,re,N,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[N+3]=re>>>24,this[N+2]=re>>>16,this[N+1]=re>>>8,this[N]=255&re):Q(this,re,N,!0),N+4},l.prototype.writeUInt32BE=function(re,N,W){return re=+re,N|=0,W||z(this,re,N,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[N]=re>>>24,this[N+1]=re>>>16,this[N+2]=re>>>8,this[N+3]=255&re):Q(this,re,N,!1),N+4},l.prototype.writeIntLE=function(re,N,W,ce){if(re=+re,N|=0,!ce){var ne=Math.pow(2,8*W-1);z(this,re,N,W,ne-1,-ne)}var ue=0,De=1,ze=0;for(this[N]=255&re;++ue<W&&(De*=256);)re<0&&ze===0&&this[N+ue-1]!==0&&(ze=1),this[N+ue]=(re/De>>0)-ze&255;return N+W},l.prototype.writeIntBE=function(re,N,W,ce){if(re=+re,N|=0,!ce){var ne=Math.pow(2,8*W-1);z(this,re,N,W,ne-1,-ne)}var ue=W-1,De=1,ze=0;for(this[N+ue]=255&re;--ue>=0&&(De*=256);)re<0&&ze===0&&this[N+ue+1]!==0&&(ze=1),this[N+ue]=(re/De>>0)-ze&255;return N+W},l.prototype.writeInt8=function(re,N,W){return re=+re,N|=0,W||z(this,re,N,1,127,-128),l.TYPED_ARRAY_SUPPORT||(re=Math.floor(re)),re<0&&(re=255+re+1),this[N]=255&re,N+1},l.prototype.writeInt16LE=function(re,N,W){return re=+re,N|=0,W||z(this,re,N,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[N]=255&re,this[N+1]=re>>>8):j(this,re,N,!0),N+2},l.prototype.writeInt16BE=function(re,N,W){return re=+re,N|=0,W||z(this,re,N,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[N]=re>>>8,this[N+1]=255&re):j(this,re,N,!1),N+2},l.prototype.writeInt32LE=function(re,N,W){return re=+re,N|=0,W||z(this,re,N,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[N]=255&re,this[N+1]=re>>>8,this[N+2]=re>>>16,this[N+3]=re>>>24):Q(this,re,N,!0),N+4},l.prototype.writeInt32BE=function(re,N,W){return re=+re,N|=0,W||z(this,re,N,4,2147483647,-2147483648),re<0&&(re=4294967295+re+1),l.TYPED_ARRAY_SUPPORT?(this[N]=re>>>24,this[N+1]=re>>>16,this[N+2]=re>>>8,this[N+3]=255&re):Q(this,re,N,!1),N+4},l.prototype.writeFloatLE=function(re,N,W){return te(this,re,N,!0,W)},l.prototype.writeFloatBE=function(re,N,W){return te(this,re,N,!1,W)},l.prototype.writeDoubleLE=function(re,N,W){return oe(this,re,N,!0,W)},l.prototype.writeDoubleBE=function(re,N,W){return oe(this,re,N,!1,W)},l.prototype.copy=function(re,N,W,ce){if(W||(W=0),ce||ce===0||(ce=this.length),N>=re.length&&(N=re.length),N||(N=0),ce>0&&ce<W&&(ce=W),ce===W)return 0;if(re.length===0||this.length===0)return 0;if(N<0)throw new RangeError("targetStart out of bounds");if(W<0||W>=this.length)throw new RangeError("sourceStart out of bounds");if(ce<0)throw new RangeError("sourceEnd out of bounds");ce>this.length&&(ce=this.length),re.length-N<ce-W&&(ce=re.length-N+W);var ne,ue=ce-W;if(this===re&&W<N&&N<ce)for(ne=ue-1;ne>=0;--ne)re[ne+N]=this[ne+W];else if(ue<1e3||!l.TYPED_ARRAY_SUPPORT)for(ne=0;ne<ue;++ne)re[ne+N]=this[ne+W];else Uint8Array.prototype.set.call(re,this.subarray(W,W+ue),N);return ue},l.prototype.fill=function(re,N,W,ce){if(typeof re=="string"){if(typeof N=="string"?(ce=N,N=0,W=this.length):typeof W=="string"&&(ce=W,W=this.length),re.length===1){var ne=re.charCodeAt(0);ne<256&&(re=ne)}if(ce!==void 0&&typeof ce!="string")throw new TypeError("encoding must be a string");if(typeof ce=="string"&&!l.isEncoding(ce))throw new TypeError("Unknown encoding: "+ce)}else typeof re=="number"&&(re&=255);if(N<0||this.length<N||this.length<W)throw new RangeError("Out of range index");if(W<=N)return this;N>>>=0,W=W===void 0?this.length:W>>>0,re||(re=0);var ue;if(typeof re=="number")for(ue=N;ue<W;++ue)this[ue]=re;else{var De=l.isBuffer(re)?re:Ae(new l(re,ce).toString()),ze=De.length;for(ue=0;ue<W-N;++ue)this[ue+N]=De[ue%ze]}return this};var Ue=/[^+\/0-9A-Za-z-_]/g}).call(p,E(20))},function(M,p){var E;E=function(){return this}();try{E=E||Function("return this")()||(0,eval)("this")}catch(C){typeof window=="object"&&(E=window)}M.exports=E},function(M,p,E){"use strict";function C(i){var h=i.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return i[h-2]==="="?2:i[h-1]==="="?1:0}function b(i){return 3*i.length/4-C(i)}function f(i){var h,y,v,x,S,B=i.length;x=C(i),S=new u(3*B/4-x),y=x>0?B-4:B;var w=0;for(h=0;h<y;h+=4)v=s[i.charCodeAt(h)]<<18|s[i.charCodeAt(h+1)]<<12|s[i.charCodeAt(h+2)]<<6|s[i.charCodeAt(h+3)],S[w++]=v>>16&255,S[w++]=v>>8&255,S[w++]=255&v;return x===2?(v=s[i.charCodeAt(h)]<<2|s[i.charCodeAt(h+1)]>>4,S[w++]=255&v):x===1&&(v=s[i.charCodeAt(h)]<<10|s[i.charCodeAt(h+1)]<<4|s[i.charCodeAt(h+2)]>>2,S[w++]=v>>8&255,S[w++]=255&v),S}function l(i){return e[i>>18&63]+e[i>>12&63]+e[i>>6&63]+e[63&i]}function r(i,h,y){for(var v,x=[],S=h;S<y;S+=3)v=(i[S]<<16)+(i[S+1]<<8)+i[S+2],x.push(l(v));return x.join("")}function n(i){for(var h,y=i.length,v=y%3,x="",S=[],B=0,w=y-v;B<w;B+=16383)S.push(r(i,B,B+16383>w?w:B+16383));return v===1?(h=i[y-1],x+=e[h>>2],x+=e[h<<4&63],x+="=="):v===2&&(h=(i[y-2]<<8)+i[y-1],x+=e[h>>10],x+=e[h>>4&63],x+=e[h<<2&63],x+="="),S.push(x),S.join("")}p.byteLength=b,p.toByteArray=f,p.fromByteArray=n;for(var e=[],s=[],u=typeof Uint8Array!="undefined"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A=0,d=a.length;A<d;++A)e[A]=a[A],s[a.charCodeAt(A)]=A;s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},function(M,p){p.read=function(E,C,b,f,l){var r,n,e=8*l-f-1,s=(1<<e)-1,u=s>>1,a=-7,A=b?l-1:0,d=b?-1:1,i=E[C+A];for(A+=d,r=i&(1<<-a)-1,i>>=-a,a+=e;a>0;r=256*r+E[C+A],A+=d,a-=8);for(n=r&(1<<-a)-1,r>>=-a,a+=f;a>0;n=256*n+E[C+A],A+=d,a-=8);if(r===0)r=1-u;else{if(r===s)return n?NaN:1/0*(i?-1:1);n+=Math.pow(2,f),r-=u}return(i?-1:1)*n*Math.pow(2,r-f)},p.write=function(E,C,b,f,l,r){var n,e,s,u=8*r-l-1,a=(1<<u)-1,A=a>>1,d=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,i=f?0:r-1,h=f?1:-1,y=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=a):(n=Math.floor(Math.log(C)/Math.LN2),C*(s=Math.pow(2,-n))<1&&(n--,s*=2),C+=n+A>=1?d/s:d*Math.pow(2,1-A),C*s>=2&&(n++,s/=2),n+A>=a?(e=0,n=a):n+A>=1?(e=(C*s-1)*Math.pow(2,l),n+=A):(e=C*Math.pow(2,A-1)*Math.pow(2,l),n=0));l>=8;E[b+i]=255&e,i+=h,e/=256,l-=8);for(n=n<<l|e,u+=l;u>0;E[b+i]=255&n,i+=h,n/=256,u-=8);E[b+i-h]|=128*y}},function(M,p){var E={}.toString;M.exports=Array.isArray||function(C){return E.call(C)=="[object Array]"}},function(M,p,E){"use strict";function C(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(p,"__esModule",{value:!0});var b=function(){function l(r,n){for(var e=0;e<n.length;e++){var s=n[e];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(r,s.key,s)}}return function(r,n,e){return n&&l(r.prototype,n),e&&l(r,e),r}}(),f=function(){function l(){C(this,l)}return b(l,null,[{key:"set",value:function(r,n){try{window.localStorage&&localStorage.setItem(r,n)}catch(e){window[r+"_localStorage"]=n}}},{key:"get",value:function(r){try{if(window.localStorage)return localStorage.getItem(r)}catch(n){return window[r+"_localStorage"]}return""}},{key:"remove",value:function(r){try{window.localStorage&&localStorage.removeItem(r)}catch(n){delete window[r+"_localStorage"]}}}]),l}();p.default=f},function(M,p,E){"use strict";function C(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(p,"__esModule",{value:!0});var b=function(){function l(r,n){for(var e=0;e<n.length;e++){var s=n[e];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(r,s.key,s)}}return function(r,n,e){return n&&l(r.prototype,n),e&&l(r,e),r}}(),f=function(){function l(){C(this,l)}return b(l,null,[{key:"get",value:function(r){for(var n=r+"",e=document.cookie.split(";"),s=0;s<e.length;s++){var u=e[s].trim();if(u.indexOf(n)==0)return unescape(u.substring(n.length+1,u.length))}return""}},{key:"set",value:function(r,n,e){var s=new Date;s.setTime(s.getTime()+24*e*60*60*1e3);var u="expires="+s.toGMTString();document.cookie=r+"="+escape(n)+"; "+u}}]),l}();p.default=f},function(M,p,E){"use strict";function C(u){return u&&u.__esModule?u:{default:u}}function b(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(p,"__esModule",{value:!0});var f=function(){function u(a,A){for(var d=0;d<A.length;d++){var i=A[d];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}return function(a,A,d){return A&&u(a.prototype,A),d&&u(a,d),a}}(),l=E(8),r=C(l),n=E(9),e=C(n),s=function(){function u(){b(this,u)}return f(u,null,[{key:"refreshUploadAuth",value:function(a,A,d){var i=(e.default.randomUUID(),e.default.randomUUID()),h={AccessKeyId:a.accessKeyId,SecurityToken:a.securityToken,Action:"RefreshUploadVideo",VideoId:a.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:i,RequestId:a.requestId},y=e.default.makeUTF8sort(h,"=","&")+"&Signature="+e.default.aliyunEncodeURI(e.default.makeChangeSiga(h,a.accessKeySecret)),v="https://vod."+a.region+".aliyuncs.com/?"+y;r.default.get(v,function(x){var x=JSON.parse(x);A&&A(x)},function(x){if(d){var S=JSON.parse(x);d(S)}})}},{key:"getUploadAuth",value:function(a,A,d){var i=(e.default.randomUUID(),e.default.randomUUID()),h={AccessKeyId:a.accessKeyId,SecurityToken:a.securityToken,Action:"CreateUploadVideo",Title:a.title,FileName:a.fileName,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:i,RequestId:a.requestId};a.fileSize&&(h.FileSize=a.fileSize),a.description&&(h.Description=a.description),a.cateId&&(h.CateId=a.cateId),a.tags&&(h.Tags=a.tags),a.templateGroupId&&(h.TemplateGroupId=a.templateGroupId),a.storageLocation&&(h.StorageLocation=a.storageLocation),a.coverUrl&&(h.CoverURL=a.coverUrl),a.transCodeMode&&(h.TransCodeMode=a.transCodeMode),a.userData&&(h.UserData=JSON.stringify(a.userData));var y=e.default.makeUTF8sort(h,"=","&")+"&Signature="+e.default.aliyunEncodeURI(e.default.makeChangeSiga(h,a.accessKeySecret)),v="https://vod."+a.region+".aliyuncs.com/?"+y;r.default.get(v,function(x){try{x=JSON.parse(x)}catch(S){if(d)return void d({Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"})}A&&A(x)},function(x){if(d){var S={Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"};try{S=JSON.parse(x)}catch(B){}d(S)}})}},{key:"getImageUploadAuth",value:function(a,A,d){var i=(e.default.randomUUID(),e.default.randomUUID()),h={AccessKeyId:a.accessKeyId,SecurityToken:a.securityToken,Action:"CreateUploadImage",ImageType:a.imageType?a.imageType:"default",Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:i,RequestId:a.requestId};a.title&&(h.Title=a.title),a.imageExt&&(h.ImageExt=a.imageExt),a.tags&&(h.Tags=a.tags),a.storageLocation&&(h.StorageLocation=a.storageLocation);var y=e.default.makeUTF8sort(h,"=","&")+"&Signature="+e.default.aliyunEncodeURI(e.default.makeChangeSiga(h,a.accessKeySecret)),v="https://vod."+a.region+".aliyuncs.com/?"+y;r.default.get(v,function(x){x=JSON.parse(x),A&&A(x)},function(x){if(d){var S=JSON.parse(x);d(S)}})}}]),u}();p.default=s},function(M,p,E){!function(C,b,f){M.exports=p=b(E(0),E(28),E(29))}(0,function(C){return C.HmacSHA1})},function(M,p,E){!function(C,b){M.exports=p=b(E(0))}(0,function(C){return function(){var b=C,f=b.lib,l=f.WordArray,r=f.Hasher,n=b.algo,e=[],s=n.SHA1=r.extend({_doReset:function(){this._hash=new l.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,a){for(var A=this._hash.words,d=A[0],i=A[1],h=A[2],y=A[3],v=A[4],x=0;x<80;x++){if(x<16)e[x]=0|u[a+x];else{var S=e[x-3]^e[x-8]^e[x-14]^e[x-16];e[x]=S<<1|S>>>31}var B=(d<<5|d>>>27)+v+e[x];B+=x<20?1518500249+(i&h|~i&y):x<40?1859775393+(i^h^y):x<60?(i&h|i&y|h&y)-1894007588:(i^h^y)-899497514,v=y,y=h,h=i<<30|i>>>2,i=d,d=B}A[0]=A[0]+d|0,A[1]=A[1]+i|0,A[2]=A[2]+h|0,A[3]=A[3]+y|0,A[4]=A[4]+v|0},_doFinalize:function(){var u=this._data,a=u.words,A=8*this._nDataBytes,d=8*u.sigBytes;return a[d>>>5]|=128<<24-d%32,a[14+(d+64>>>9<<4)]=Math.floor(A/4294967296),a[15+(d+64>>>9<<4)]=A,u.sigBytes=4*a.length,this._process(),this._hash},clone:function(){var u=r.clone.call(this);return u._hash=this._hash.clone(),u}});b.SHA1=r._createHelper(s),b.HmacSHA1=r._createHmacHelper(s)}(),C.SHA1})},function(M,p,E){!function(C,b){M.exports=p=b(E(0))}(0,function(C){!function(){var b=C,f=b.lib,l=f.Base,r=b.enc,n=r.Utf8,e=b.algo;e.HMAC=l.extend({init:function(s,u){s=this._hasher=new s.init,typeof u=="string"&&(u=n.parse(u));var a=s.blockSize,A=4*a;u.sigBytes>A&&(u=s.finalize(u)),u.clamp();for(var d=this._oKey=u.clone(),i=this._iKey=u.clone(),h=d.words,y=i.words,v=0;v<a;v++)h[v]^=1549556828,y[v]^=909522486;d.sigBytes=i.sigBytes=A,this.reset()},reset:function(){var s=this._hasher;s.reset(),s.update(this._iKey)},update:function(s){return this._hasher.update(s),this},finalize:function(s){var u=this._hasher,a=u.finalize(s);return u.reset(),u.finalize(this._oKey.clone().concat(a))}})}()})},function(M,p,E){!function(C,b){M.exports=p=b(E(0))}(0,function(C){return function(){function b(e,s,u){for(var a=[],A=0,d=0;d<s;d++)if(d%4){var i=u[e.charCodeAt(d-1)]<<d%4*2,h=u[e.charCodeAt(d)]>>>6-d%4*2;a[A>>>2]|=(i|h)<<24-A%4*8,A++}return r.create(a,A)}var f=C,l=f.lib,r=l.WordArray,n=f.enc;n.Base64={stringify:function(e){var s=e.words,u=e.sigBytes,a=this._map;e.clamp();for(var A=[],d=0;d<u;d+=3)for(var i=s[d>>>2]>>>24-d%4*8&255,h=s[d+1>>>2]>>>24-(d+1)%4*8&255,y=s[d+2>>>2]>>>24-(d+2)%4*8&255,v=i<<16|h<<8|y,x=0;x<4&&d+.75*x<u;x++)A.push(a.charAt(v>>>6*(3-x)&63));var S=a.charAt(64);if(S)for(;A.length%4;)A.push(S);return A.join("")},parse:function(e){var s=e.length,u=this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var A=0;A<u.length;A++)a[u.charCodeAt(A)]=A}var d=u.charAt(64);if(d){var i=e.indexOf(d);i!==-1&&(s=i)}return b(e,s,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),C.enc.Base64})},function(M,p,E){"use strict";function C(w){return w&&w.__esModule?w:{default:w}}function b(w,m){if(!(w instanceof m))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(p,"__esModule",{value:!0});var f=function(){function w(m,c){for(var o=0;o<c.length;o++){var _=c[o];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(m,_.key,_)}}return function(m,c,o){return c&&w(m.prototype,c),o&&w(m,o),m}}(),l=E(8),r=C(l),n=E(7),e=C(n),s=E(4),u=C(s),a=E(6),A=C(a),d=E(1),i=C(d),h=E(9),y=C(h),v=E(2),x=E(11),S=E(10),B=function(){function w(){b(this,w)}return f(w,null,[{key:"getAuthInfo",value:function(m,c,o){var _=m+"|f#Ylm&^1TppeRhLg|"+o;return c&&(_=m+"|"+c+"|f#Ylm&^1TppeRhLg|"+o),v(S.parse(_)).toString(x)}},{key:"upload",value:function(m,c,o){var _=i.default.ISODateString(new Date),D=Math.floor(new Date().valueOf()/1e3),T=u.default.getClientId();T=u.default.setClientId(T);var O=w.getAuthInfo(m.userId,T,D),R=y.default.randomUUID(),U={Source:"WebSDK",BusinessType:"UploadVideo",Action:"ReportUploadProgress",TerminalType:"H5",DeviceModel:e.default.browser.name+(e.default.browser.version||""),AppVersion:A.default.version,AuthTimestamp:D,Timestamp:_,AuthInfo:O,FileName:m.file.name,FileSize:m.file.size,FileCreateTime:m.file.lastModified,FileHash:m.fileHash,UploadId:m.checkpoint.checkpoint.uploadId,PartSize:m.checkpoint.checkpoint.partSize,DonePartsCount:m.checkpoint.checkpoint.doneParts.length,UploadPoint:JSON.stringify(m.checkpoint),UploadRatio:m.checkpoint.loaded,UserId:m.userId,VideoId:m.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:R};T&&(U.ClientId=T);var F=y.default.makeUTF8sort(U,"=","&")+"&Signature="+y.default.aliyunEncodeURI(y.default.makeChangeSiga(U,m.accessKeySecret)),Y="https://vod."+m.region+".aliyuncs.com/?"+F;r.default.get(Y,function(k){c&&c()},function(k){k&&(o(k),console.log(k))})}},{key:"get",value:function(m,c,o){var _=i.default.ISODateString(new Date),D=Math.floor(new Date().valueOf()/1e3),T=u.default.getClientId(),O=w.getAuthInfo(m.userId,T,D),R=y.default.randomUUID(),U={Source:"WebSDK",BusinessType:"UploadVideo",Action:"GetUploadProgress",TerminalType:"H5",DeviceModel:e.default.browser.name+(e.default.browser.version||""),AppVersion:A.default.version,AuthTimestamp:D,Timestamp:_,AuthInfo:O,UserId:m.userId,UploadInfoList:JSON.stringify(m.uploadInfoList),Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:R};T&&(U.ClientId=T);var F=y.default.makeUTF8sort(U,"=","&")+"&Signature="+y.default.aliyunEncodeURI(y.default.makeChangeSiga(U,m.accessKeySecret)),Y="https://vod."+m.region+".aliyuncs.com/?"+F;r.default.get(Y,function(k){var K={},z=T;k=k?JSON.parse(k):{},k.UploadProgress&&k.UploadProgress.UploadProgressList&&k.UploadProgress.UploadProgressList.length>0&&(K=k.UploadProgress.UploadProgressList[0],z=K.ClientId),u.default.setClientId(z),c&&c(K)},function(k){k&&(o(k),console.log(k))})}}]),w}();p.default=B},function(M,p,E){"use strict";function C(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(p,"__esModule",{value:!0});var b=function(){function n(e,s){for(var u=0;u<s.length;u++){var a=s[u];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,s,u){return s&&n(e.prototype,s),u&&n(e,u),e}}(),f=E(2),l=E(33),r=(E(11),function(){function n(){C(this,n)}return b(n,null,[{key:"getMd5",value:function(e,s,u){var a=new FileReader;a.onload=function(i){try{if(i&&i.target){var h=f(l.parse(i.target.result)),y=h.toString();s(y)}}catch(v){console.log(v)}},a.onerror=function(i){console.log(i),errorCallback(i)};var A=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,d=A.call(e,0,1024);a.readAsBinaryString(d)}}]),n}());p.default=r},function(M,p,E){!function(C,b){M.exports=p=b(E(0))}(0,function(C){return C.enc.Latin1})}])}).call(this,I("IyRk"))},pzxd:function(We,Ce,I){var ae=I("bYtY"),V=ae.retrieve2,M=ae.retrieve3,p=ae.each,E=ae.normalizeCssArray,C=ae.isString,b=ae.isObject,f=I("6GrX"),l=I("VpOo"),r=I("Xnb7"),n=I("fW2E"),e=I("gut8"),s=e.ContextCachedBy,u=e.WILL_BE_RESTORED,a=f.DEFAULT_FONT,A={left:1,right:1,center:1},d={top:1,bottom:1,middle:1},i=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],h={},y={};function v(z){return x(z),p(z.rich,x),z}function x(z){if(z){z.font=f.makeFont(z);var j=z.textAlign;j==="middle"&&(j="center"),z.textAlign=j==null||A[j]?j:"left";var Q=z.textVerticalAlign||z.textBaseline;Q==="center"&&(Q="middle"),z.textVerticalAlign=Q==null||d[Q]?Q:"top";var X=z.textPadding;X&&(z.textPadding=E(z.textPadding))}}function S(z,j,Q,X,te,oe){X.rich?w(z,j,Q,X,te,oe):B(z,j,Q,X,te,oe)}function B(z,j,Q,X,te,oe){"use strict";var fe=_(X),le,we=!1,Ae=j.__attrCachedBy===s.PLAIN_TEXT;oe!==u?(oe&&(le=oe.style,we=!fe&&Ae&&le),j.__attrCachedBy=fe?s.NONE:s.PLAIN_TEXT):Ae&&(j.__attrCachedBy=s.NONE);var be=X.font||a;(!we||be!==(le.font||a))&&(j.font=be);var me=z.__computedFont;z.__styleFont!==be&&(z.__styleFont=be,me=z.__computedFont=j.font);var he=X.textPadding,ie=X.textLineHeight,pe=z.__textCotentBlock;(!pe||z.__dirtyText)&&(pe=z.__textCotentBlock=f.parsePlainText(Q,me,he,ie,X.truncate));var ye=pe.outerHeight,de=pe.lines,Me=pe.lineHeight,ke=O(y,z,X,te),Ue=ke.baseX,re=ke.baseY,N=ke.textAlign||"left",W=ke.textVerticalAlign;c(j,X,te,Ue,re);var ce=f.adjustTextY(re,ye,W),ne=Ue,ue=ce;if(fe||he){var De=f.getWidth(Q,me),ze=De;he&&(ze+=he[1]+he[3]);var wt=f.adjustTextX(Ue,ze,N);fe&&D(z,j,X,wt,ce,ze,ye),he&&(ne=k(Ue,N,he),ue+=he[0])}j.textAlign=N,j.textBaseline="middle",j.globalAlpha=X.opacity||1;for(var He=0;He<i.length;He++){var Xe=i[He],gt=Xe[0],_t=Xe[1],ct=X[gt];(!we||ct!==le[gt])&&(j[_t]=n(j,_t,ct||Xe[2]))}ue+=Me/2;var lt=X.textStrokeWidth,rt=we?le.textStrokeWidth:null,Ze=!we||lt!==rt,qe=!we||Ze||X.textStroke!==le.textStroke,Le=U(X.textStroke,lt),je=F(X.textFill);if(Le&&(Ze&&(j.lineWidth=lt),qe&&(j.strokeStyle=Le)),je&&((!we||X.textFill!==le.textFill)&&(j.fillStyle=je)),de.length===1)Le&&j.strokeText(de[0],ne,ue),je&&j.fillText(de[0],ne,ue);else for(var He=0;He<de.length;He++)Le&&j.strokeText(de[He],ne,ue),je&&j.fillText(de[He],ne,ue),ue+=Me}function w(z,j,Q,X,te,oe){oe!==u&&(j.__attrCachedBy=s.NONE);var fe=z.__textCotentBlock;(!fe||z.__dirtyText)&&(fe=z.__textCotentBlock=f.parseRichText(Q,X)),m(z,j,fe,X,te)}function m(z,j,Q,X,te){var oe=Q.width,fe=Q.outerWidth,le=Q.outerHeight,we=X.textPadding,Ae=O(y,z,X,te),be=Ae.baseX,me=Ae.baseY,he=Ae.textAlign,ie=Ae.textVerticalAlign;c(j,X,te,be,me);var pe=f.adjustTextX(be,fe,he),ye=f.adjustTextY(me,le,ie),de=pe,Me=ye;we&&(de+=we[3],Me+=we[0]);var ke=de+oe;_(X)&&D(z,j,X,pe,ye,fe,le);for(var Ue=0;Ue<Q.lines.length;Ue++){for(var re=Q.lines[Ue],N=re.tokens,W=N.length,ce=re.lineHeight,ne=re.width,ue=0,De=de,ze=ke,wt=W-1,He;ue<W&&(He=N[ue],!He.textAlign||He.textAlign==="left");)o(z,j,He,X,ce,Me,De,"left"),ne-=He.width,De+=He.width,ue++;for(;wt>=0&&(He=N[wt],He.textAlign==="right");)o(z,j,He,X,ce,Me,ze,"right"),ne-=He.width,ze-=He.width,wt--;for(De+=(oe-(De-de)-(ke-ze)-ne)/2;ue<=wt;)He=N[ue],o(z,j,He,X,ce,Me,De+He.width/2,"center"),De+=He.width,ue++;Me+=ce}}function c(z,j,Q,X,te){if(Q&&j.textRotation){var oe=j.textOrigin;oe==="center"?(X=Q.width/2+Q.x,te=Q.height/2+Q.y):oe&&(X=oe[0]+Q.x,te=oe[1]+Q.y),z.translate(X,te),z.rotate(-j.textRotation),z.translate(-X,-te)}}function o(z,j,Q,X,te,oe,fe,le){var we=X.rich[Q.styleName]||{};we.text=Q.text;var Ae=Q.textVerticalAlign,be=oe+te/2;Ae==="top"?be=oe+Q.height/2:Ae==="bottom"&&(be=oe+te-Q.height/2),!Q.isLineHolder&&_(we)&&D(z,j,we,le==="right"?fe-Q.width:le==="center"?fe-Q.width/2:fe,be-Q.height/2,Q.width,Q.height);var me=Q.textPadding;me&&(fe=k(fe,le,me),be-=Q.height/2-me[2]-Q.textHeight/2),R(j,"shadowBlur",M(we.textShadowBlur,X.textShadowBlur,0)),R(j,"shadowColor",we.textShadowColor||X.textShadowColor||"transparent"),R(j,"shadowOffsetX",M(we.textShadowOffsetX,X.textShadowOffsetX,0)),R(j,"shadowOffsetY",M(we.textShadowOffsetY,X.textShadowOffsetY,0)),R(j,"textAlign",le),R(j,"textBaseline","middle"),R(j,"font",Q.font||a);var he=U(we.textStroke||X.textStroke,pe),ie=F(we.textFill||X.textFill),pe=V(we.textStrokeWidth,X.textStrokeWidth);he&&(R(j,"lineWidth",pe),R(j,"strokeStyle",he),j.strokeText(Q.text,fe,be)),ie&&(R(j,"fillStyle",ie),j.fillText(Q.text,fe,be))}function _(z){return!!(z.textBackgroundColor||z.textBorderWidth&&z.textBorderColor)}function D(z,j,Q,X,te,oe,fe){var le=Q.textBackgroundColor,we=Q.textBorderWidth,Ae=Q.textBorderColor,be=C(le);if(R(j,"shadowBlur",Q.textBoxShadowBlur||0),R(j,"shadowColor",Q.textBoxShadowColor||"transparent"),R(j,"shadowOffsetX",Q.textBoxShadowOffsetX||0),R(j,"shadowOffsetY",Q.textBoxShadowOffsetY||0),be||we&&Ae){j.beginPath();var me=Q.textBorderRadius;me?l.buildPath(j,{x:X,y:te,width:oe,height:fe,r:me}):j.rect(X,te,oe,fe),j.closePath()}if(be)if(R(j,"fillStyle",le),Q.fillOpacity!=null){var he=j.globalAlpha;j.globalAlpha=Q.fillOpacity*Q.opacity,j.fill(),j.globalAlpha=he}else j.fill();else if(b(le)){var ie=le.image;ie=r.createOrUpdateImage(ie,null,z,T,le),ie&&r.isImageReady(ie)&&j.drawImage(ie,X,te,oe,fe)}if(we&&Ae)if(R(j,"lineWidth",we),R(j,"strokeStyle",Ae),Q.strokeOpacity!=null){var he=j.globalAlpha;j.globalAlpha=Q.strokeOpacity*Q.opacity,j.stroke(),j.globalAlpha=he}else j.stroke()}function T(z,j){j.image=z}function O(z,j,Q,X){var te=Q.x||0,oe=Q.y||0,fe=Q.textAlign,le=Q.textVerticalAlign;if(X){var we=Q.textPosition;if(we instanceof Array)te=X.x+Y(we[0],X.width),oe=X.y+Y(we[1],X.height);else{var Ae=j&&j.calculateTextPosition?j.calculateTextPosition(h,Q,X):f.calculateTextPosition(h,Q,X);te=Ae.x,oe=Ae.y,fe=fe||Ae.textAlign,le=le||Ae.textVerticalAlign}var be=Q.textOffset;be&&(te+=be[0],oe+=be[1])}return z=z||{},z.baseX=te,z.baseY=oe,z.textAlign=fe,z.textVerticalAlign=le,z}function R(z,j,Q){return z[j]=n(z,j,Q),z[j]}function U(z,j){return z==null||j<=0||z==="transparent"||z==="none"?null:z.image||z.colorStops?"#000":z}function F(z){return z==null||z==="none"?null:z.image||z.colorStops?"#000":z}function Y(z,j){return typeof z=="string"?z.lastIndexOf("%")>=0?parseFloat(z)/100*j:parseFloat(z):z}function k(z,j,Q){return j==="right"?z-Q[1]:j==="center"?z+Q[3]/2-Q[1]/2:z+Q[3]}function K(z,j){return z!=null&&(z||j.textBackgroundColor||j.textBorderWidth&&j.textBorderColor||j.textPadding)}Ce.normalizeTextStyle=v,Ce.renderText=S,Ce.getBoxPosition=O,Ce.getStroke=U,Ce.getFill=F,Ce.parsePercent=Y,Ce.needDrawText=K},qH13:function(We,Ce,I){var ae=I("ItGF"),V=I("QBsz"),M=V.applyTransform,p=I("mFDi"),E=I("Qe9p"),C=I("6GrX"),b=I("pzxd"),f=I("ni6a"),l=I("Gev7"),r=I("Dagg"),n=I("dqUG"),e=I("y+Vt"),s=I("IMiH"),u=I("QuXc"),a=I("06Qe"),A=s.CMD,d=Math.round,i=Math.sqrt,h=Math.abs,y=Math.cos,v=Math.sin,x=Math.max;if(!ae.canvasSupported){var S=",",B="progid:DXImageTransform.Microsoft",w=21600,m=w/2,c=1e5,o=1e3,_=function(Ue){Ue.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",Ue.coordsize=w+","+w,Ue.coordorigin="0,0"},D=function(Ue){return String(Ue).replace(/&/g,"&amp;").replace(/"/g,"&quot;")},T=function(Ue,re,N){return"rgb("+[Ue,re,N].join(",")+")"},O=function(Ue,re){re&&Ue&&re.parentNode!==Ue&&Ue.appendChild(re)},R=function(Ue,re){re&&Ue&&re.parentNode===Ue&&Ue.removeChild(re)},U=function(Ue,re,N){return(parseFloat(Ue)||0)*c+(parseFloat(re)||0)*o+N},F=b.parsePercent,Y=function(Ue,re,N){var W=E.parse(re);N=+N,isNaN(N)&&(N=1),W&&(Ue.color=T(W[0],W[1],W[2]),Ue.opacity=N*W[3])},k=function(Ue){var re=E.parse(Ue);return[T(re[0],re[1],re[2]),re[3]]},K=function(Ue,re,N){var W=re.fill;if(W!=null)if(W instanceof u){var ce,ne=0,ue=[0,0],De=0,ze=1,wt=N.getBoundingRect(),He=wt.width,Xe=wt.height;if(W.type==="linear"){ce="gradient";var gt=N.transform,_t=[W.x*He,W.y*Xe],ct=[W.x2*He,W.y2*Xe];gt&&(M(_t,_t,gt),M(ct,ct,gt));var lt=ct[0]-_t[0],rt=ct[1]-_t[1];ne=Math.atan2(lt,rt)*180/Math.PI,ne<0&&(ne+=360),ne<1e-6&&(ne=0)}else{ce="gradientradial";var _t=[W.x*He,W.y*Xe],gt=N.transform,Ze=N.scale,qe=He,Le=Xe;ue=[(_t[0]-wt.x)/qe,(_t[1]-wt.y)/Le],gt&&M(_t,_t,gt),qe/=Ze[0]*w,Le/=Ze[1]*w;var je=x(qe,Le);De=2*0/je,ze=2*W.r/je-De}var Ne=W.colorStops.slice();Ne.sort(function(yt,Fe){return yt.offset-Fe.offset});for(var $e=Ne.length,At=[],Bt=[],Nt=0;Nt<$e;Nt++){var It=Ne[Nt],jt=k(It.color);Bt.push(It.offset*ze+De+" "+jt[0]),(Nt===0||Nt===$e-1)&&At.push(jt)}if($e>=2){var xt=At[0][0],Lt=At[1][0],St=At[0][1]*re.opacity,dt=At[1][1]*re.opacity;Ue.type=ce,Ue.method="none",Ue.focus="100%",Ue.angle=ne,Ue.color=xt,Ue.color2=Lt,Ue.colors=Bt.join(","),Ue.opacity=dt,Ue.opacity2=St}ce==="radial"&&(Ue.focusposition=ue.join(","))}else Y(Ue,W,re.opacity)},z=function(Ue,re){re.lineDash&&(Ue.dashstyle=re.lineDash.join(" ")),re.stroke!=null&&!(re.stroke instanceof u)&&Y(Ue,re.stroke,re.opacity)},j=function(Ue,re,N,W){var ce=re==="fill",ne=Ue.getElementsByTagName(re)[0];N[re]!=null&&N[re]!=="none"&&(ce||!ce&&N.lineWidth)?(Ue[ce?"filled":"stroked"]="true",N[re]instanceof u&&R(Ue,ne),ne||(ne=a.createNode(re)),ce?K(ne,N,W):z(ne,N),O(Ue,ne)):(Ue[ce?"filled":"stroked"]="false",R(Ue,ne))},Q=[[],[],[]],X=function(Ue,re){var N=A.M,W=A.C,ce=A.L,ne=A.A,ue=A.Q,De=[],ze,wt,He,Xe,gt,_t,ct=Ue.data,lt=Ue.len();for(Xe=0;Xe<lt;){He=ct[Xe++],wt="",ze=0;switch(He){case N:wt=" m ",ze=1,gt=ct[Xe++],_t=ct[Xe++],Q[0][0]=gt,Q[0][1]=_t;break;case ce:wt=" l ",ze=1,gt=ct[Xe++],_t=ct[Xe++],Q[0][0]=gt,Q[0][1]=_t;break;case ue:case W:wt=" c ",ze=3;var rt=ct[Xe++],Ze=ct[Xe++],qe=ct[Xe++],Le=ct[Xe++],je,Ne;He===ue?(je=qe,Ne=Le,qe=(qe+2*rt)/3,Le=(Le+2*Ze)/3,rt=(gt+2*rt)/3,Ze=(_t+2*Ze)/3):(je=ct[Xe++],Ne=ct[Xe++]),Q[0][0]=rt,Q[0][1]=Ze,Q[1][0]=qe,Q[1][1]=Le,Q[2][0]=je,Q[2][1]=Ne,gt=je,_t=Ne;break;case ne:var $e=0,At=0,Bt=1,Nt=1,It=0;re&&($e=re[4],At=re[5],Bt=i(re[0]*re[0]+re[1]*re[1]),Nt=i(re[2]*re[2]+re[3]*re[3]),It=Math.atan2(-re[1]/Nt,re[0]/Bt));var jt=ct[Xe++],xt=ct[Xe++],Lt=ct[Xe++],St=ct[Xe++],dt=ct[Xe++]+It,yt=ct[Xe++]+dt+It;Xe++;var Fe=ct[Xe++],et=jt+y(dt)*Lt,Ot=xt+v(dt)*St,rt=jt+y(yt)*Lt,Ze=xt+v(yt)*St,Et=Fe?" wa ":" at ";Math.abs(et-rt)<1e-4&&(Math.abs(yt-dt)>.01?Fe&&(et+=270/w):Math.abs(Ot-xt)<1e-4?Fe&&et<jt||!Fe&&et>jt?Ze-=270/w:Ze+=270/w:Fe&&Ot<xt||!Fe&&Ot>xt?rt+=270/w:rt-=270/w),De.push(Et,d(((jt-Lt)*Bt+$e)*w-m),S,d(((xt-St)*Nt+At)*w-m),S,d(((jt+Lt)*Bt+$e)*w-m),S,d(((xt+St)*Nt+At)*w-m),S,d((et*Bt+$e)*w-m),S,d((Ot*Nt+At)*w-m),S,d((rt*Bt+$e)*w-m),S,d((Ze*Nt+At)*w-m)),gt=rt,_t=Ze;break;case A.R:var Ut=Q[0],Wt=Q[1];Ut[0]=ct[Xe++],Ut[1]=ct[Xe++],Wt[0]=Ut[0]+ct[Xe++],Wt[1]=Ut[1]+ct[Xe++],re&&(M(Ut,Ut,re),M(Wt,Wt,re)),Ut[0]=d(Ut[0]*w-m),Wt[0]=d(Wt[0]*w-m),Ut[1]=d(Ut[1]*w-m),Wt[1]=d(Wt[1]*w-m),De.push(" m ",Ut[0],S,Ut[1]," l ",Wt[0],S,Ut[1]," l ",Wt[0],S,Wt[1]," l ",Ut[0],S,Wt[1]);break;case A.Z:De.push(" x ")}if(ze>0){De.push(wt);for(var bt=0;bt<ze;bt++){var Gt=Q[bt];re&&M(Gt,Gt,re),De.push(d(Gt[0]*w-m),S,d(Gt[1]*w-m),bt<ze-1?S:"")}}}return De.join("")};e.prototype.brushVML=function(Ue){var re=this.style,N=this._vmlEl;N||(N=a.createNode("shape"),_(N),this._vmlEl=N),j(N,"fill",re,this),j(N,"stroke",re,this);var W=this.transform,ce=W!=null,ne=N.getElementsByTagName("stroke")[0];if(ne){var ue=re.lineWidth;if(ce&&!re.strokeNoScale){var De=W[0]*W[3]-W[1]*W[2];ue*=i(h(De))}ne.weight=ue+"px"}var ze=this.path||(this.path=new s);this.__dirtyPath&&(ze.beginPath(),ze.subPixelOptimize=!1,this.buildPath(ze,this.shape),ze.toStatic(),this.__dirtyPath=!1),N.path=X(ze,this.transform),N.style.zIndex=U(this.zlevel,this.z,this.z2),O(Ue,N),re.text!=null?this.drawRectText(Ue,this.getBoundingRect()):this.removeRectText(Ue)},e.prototype.onRemove=function(Ue){R(Ue,this._vmlEl),this.removeRectText(Ue)},e.prototype.onAdd=function(Ue){O(Ue,this._vmlEl),this.appendRectText(Ue)};var te=function(Ue){return typeof Ue=="object"&&Ue.tagName&&Ue.tagName.toUpperCase()==="IMG"};r.prototype.brushVML=function(Ue){var re=this.style,N=re.image,W,ce;if(te(N)){var ne=N.src;if(ne===this._imageSrc)W=this._imageWidth,ce=this._imageHeight;else{var ue=N.runtimeStyle,De=ue.width,ze=ue.height;ue.width="auto",ue.height="auto",W=N.width,ce=N.height,ue.width=De,ue.height=ze,this._imageSrc=ne,this._imageWidth=W,this._imageHeight=ce}N=ne}else N===this._imageSrc&&(W=this._imageWidth,ce=this._imageHeight);if(!N)return;var wt=re.x||0,He=re.y||0,Xe=re.width,gt=re.height,_t=re.sWidth,ct=re.sHeight,lt=re.sx||0,rt=re.sy||0,Ze=_t&&ct,qe=this._vmlEl;qe||(qe=a.doc.createElement("div"),_(qe),this._vmlEl=qe);var Le=qe.style,je=!1,Ne,$e=1,At=1;if(this.transform&&(Ne=this.transform,$e=i(Ne[0]*Ne[0]+Ne[1]*Ne[1]),At=i(Ne[2]*Ne[2]+Ne[3]*Ne[3]),je=Ne[1]||Ne[2]),je){var Bt=[wt,He],Nt=[wt+Xe,He],It=[wt,He+gt],jt=[wt+Xe,He+gt];M(Bt,Bt,Ne),M(Nt,Nt,Ne),M(It,It,Ne),M(jt,jt,Ne);var xt=x(Bt[0],Nt[0],It[0],jt[0]),Lt=x(Bt[1],Nt[1],It[1],jt[1]),St=[];St.push("M11=",Ne[0]/$e,S,"M12=",Ne[2]/At,S,"M21=",Ne[1]/$e,S,"M22=",Ne[3]/At,S,"Dx=",d(wt*$e+Ne[4]),S,"Dy=",d(He*At+Ne[5])),Le.padding="0 "+d(xt)+"px "+d(Lt)+"px 0",Le.filter=B+".Matrix("+St.join("")+", SizingMethod=clip)"}else Ne&&(wt=wt*$e+Ne[4],He=He*At+Ne[5]),Le.filter="",Le.left=d(wt)+"px",Le.top=d(He)+"px";var dt=this._imageEl,yt=this._cropEl;dt||(dt=a.doc.createElement("div"),this._imageEl=dt);var Fe=dt.style;if(Ze){if(W&&ce)Fe.width=d($e*W*Xe/_t)+"px",Fe.height=d(At*ce*gt/ct)+"px";else{var et=new Image,Ot=this;et.onload=function(){et.onload=null,W=et.width,ce=et.height,Fe.width=d($e*W*Xe/_t)+"px",Fe.height=d(At*ce*gt/ct)+"px",Ot._imageWidth=W,Ot._imageHeight=ce,Ot._imageSrc=N},et.src=N}yt||(yt=a.doc.createElement("div"),yt.style.overflow="hidden",this._cropEl=yt);var Et=yt.style;Et.width=d((Xe+lt*Xe/_t)*$e),Et.height=d((gt+rt*gt/ct)*At),Et.filter=B+".Matrix(Dx="+-lt*Xe/_t*$e+",Dy="+-rt*gt/ct*At+")",yt.parentNode||qe.appendChild(yt),dt.parentNode!==yt&&yt.appendChild(dt)}else Fe.width=d($e*Xe)+"px",Fe.height=d(At*gt)+"px",qe.appendChild(dt),yt&&yt.parentNode&&(qe.removeChild(yt),this._cropEl=null);var Ut="",Wt=re.opacity;Wt<1&&(Ut+=".Alpha(opacity="+d(Wt*100)+") "),Ut+=B+".AlphaImageLoader(src="+N+", SizingMethod=scale)",Fe.filter=Ut,qe.style.zIndex=U(this.zlevel,this.z,this.z2),O(Ue,qe),re.text!=null&&this.drawRectText(Ue,this.getBoundingRect())},r.prototype.onRemove=function(Ue){R(Ue,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(Ue)},r.prototype.onAdd=function(Ue){O(Ue,this._vmlEl),this.appendRectText(Ue)};var oe="normal",fe={},le=0,we=100,Ae=document.createElement("div"),be=function(Ue){var re=fe[Ue];if(!re){le>we&&(le=0,fe={});var N=Ae.style,W;try{N.font=Ue,W=N.fontFamily.split(",")[0]}catch(ce){}re={style:N.fontStyle||oe,variant:N.fontVariant||oe,weight:N.fontWeight||oe,size:parseFloat(N.fontSize||12)|0,family:W||"Microsoft YaHei"},fe[Ue]=re,le++}return re},me;C.$override("measureText",function(Ue,re){var N=a.doc;me||(me=N.createElement("div"),me.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",a.doc.body.appendChild(me));try{me.style.font=re}catch(W){}return me.innerHTML="",me.appendChild(N.createTextNode(Ue)),{width:me.offsetWidth}});for(var he=new p,ie=function(Ue,re,N,W){var ce=this.style;this.__dirty&&b.normalizeTextStyle(ce,!0);var ne=ce.text;if(ne!=null&&(ne+=""),!ne)return;if(ce.rich){var ue=C.parseRichText(ne,ce);ne=[];for(var De=0;De<ue.lines.length;De++){for(var ze=ue.lines[De].tokens,wt=[],He=0;He<ze.length;He++)wt.push(ze[He].text);ne.push(wt.join(""))}ne=ne.join(`
`)}var Xe,gt,_t=ce.textAlign,ct=ce.textVerticalAlign,lt=be(ce.font),rt=lt.style+" "+lt.variant+" "+lt.weight+" "+lt.size+'px "'+lt.family+'"';N=N||C.getBoundingRect(ne,rt,_t,ct,ce.textPadding,ce.textLineHeight);var Ze=this.transform;if(Ze&&!W&&(he.copy(re),he.applyTransform(Ze),re=he),W)Xe=re.x,gt=re.y;else{var qe=ce.textPosition;if(qe instanceof Array)Xe=re.x+F(qe[0],re.width),gt=re.y+F(qe[1],re.height),_t=_t||"left";else{var Le=this.calculateTextPosition?this.calculateTextPosition({},ce,re):C.calculateTextPosition({},ce,re);Xe=Le.x,gt=Le.y,_t=_t||Le.textAlign,ct=ct||Le.textVerticalAlign}}Xe=C.adjustTextX(Xe,N.width,_t),gt=C.adjustTextY(gt,N.height,ct),gt+=N.height/2;var je=a.createNode,Ne=this._textVmlEl,$e,At,Bt;Ne?(Bt=Ne.firstChild,$e=Bt.nextSibling,At=$e.nextSibling):(Ne=je("line"),$e=je("path"),At=je("textpath"),Bt=je("skew"),At.style["v-text-align"]="left",_(Ne),$e.textpathok=!0,At.on=!0,Ne.from="0 0",Ne.to="1000 0.05",O(Ne,Bt),O(Ne,$e),O(Ne,At),this._textVmlEl=Ne);var Nt=[Xe,gt],It=Ne.style;Ze&&W?(M(Nt,Nt,Ze),Bt.on=!0,Bt.matrix=Ze[0].toFixed(3)+S+Ze[2].toFixed(3)+S+Ze[1].toFixed(3)+S+Ze[3].toFixed(3)+",0,0",Bt.offset=(d(Nt[0])||0)+","+(d(Nt[1])||0),Bt.origin="0 0",It.left="0px",It.top="0px"):(Bt.on=!1,It.left=d(Xe)+"px",It.top=d(gt)+"px"),At.string=D(ne);try{At.style.font=rt}catch(jt){}j(Ne,"fill",{fill:ce.textFill,opacity:ce.opacity},this),j(Ne,"stroke",{stroke:ce.textStroke,opacity:ce.opacity,lineDash:ce.lineDash||null},this),Ne.style.zIndex=U(this.zlevel,this.z,this.z2),O(Ue,Ne)},pe=function(Ue){R(Ue,this._textVmlEl),this._textVmlEl=null},ye=function(Ue){O(Ue,this._textVmlEl)},de=[f,l,r,e,n],Me=0;Me<de.length;Me++){var ke=de[Me].prototype;ke.drawRectText=ie,ke.removeRectText=pe,ke.appendRectText=ye}n.prototype.brushVML=function(Ue){var re=this.style;re.text!=null?this.drawRectText(Ue,{x:re.x||0,y:re.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(Ue)},n.prototype.onRemove=function(Ue){this.removeRectText(Ue)},n.prototype.onAdd=function(Ue){this.appendRectText(Ue)}}},qgvg:function(We,Ce){We.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(We,Ce,I){var ae=I("bYtY"),V=I("ItGF"),M=I("4fz+"),p=I("BPZU");function E(f,l){return f.zlevel===l.zlevel?f.z===l.z?f.z2-l.z2:f.z-l.z:f.zlevel-l.zlevel}var C=function(){this._roots=[],this._displayList=[],this._displayListLen=0};C.prototype={constructor:C,traverse:function(f,l){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(f,l)},getDisplayList:function(f,l){return l=l||!1,f&&this.updateDisplayList(l),this._displayList},updateDisplayList:function(f){this._displayListLen=0;for(var l=this._roots,r=this._displayList,n=0,e=l.length;n<e;n++)this._updateAndAddDisplayable(l[n],null,f);r.length=this._displayListLen,V.canvasSupported&&p(r,E)},_updateAndAddDisplayable:function(f,l,r){if(f.ignore&&!r)return;f.beforeUpdate(),f.__dirty&&f.update(),f.afterUpdate();var n=f.clipPath;if(n){l?l=l.slice():l=[];for(var e=n,s=f;e;)e.parent=s,e.updateTransform(),l.push(e),s=e,e=e.clipPath}if(f.isGroup){for(var u=f._children,a=0;a<u.length;a++){var A=u[a];f.__dirty&&(A.__dirty=!0),this._updateAndAddDisplayable(A,l,r)}f.__dirty=!1}else f.__clipPaths=l,this._displayList[this._displayListLen++]=f},addRoot:function(f){if(f.__storage===this)return;f instanceof M&&f.addChildrenToStorage(this),this.addToStorage(f),this._roots.push(f)},delRoot:function(f){if(f==null){for(var l=0;l<this._roots.length;l++){var r=this._roots[l];r instanceof M&&r.delChildrenFromStorage(this)}this._roots=[],this._displayList=[],this._displayListLen=0;return}if(f instanceof Array){for(var l=0,n=f.length;l<n;l++)this.delRoot(f[l]);return}var e=ae.indexOf(this._roots,f);e>=0&&(this.delFromStorage(f),this._roots.splice(e,1),f instanceof M&&f.delChildrenFromStorage(this))},addToStorage:function(f){return f&&(f.__storage=this,f.dirty(!1)),this},delFromStorage:function(f){return f&&(f.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:E};var b=C;We.exports=b},rA99:function(We,Ce,I){var ae=I("y+Vt"),V=I("QBsz"),M=I("Sj9i"),p=M.quadraticSubdivide,E=M.cubicSubdivide,C=M.quadraticAt,b=M.cubicAt,f=M.quadraticDerivativeAt,l=M.cubicDerivativeAt,r=[];function n(s,u,a){var A=s.cpx2,d=s.cpy2;return A===null||d===null?[(a?l:b)(s.x1,s.cpx1,s.cpx2,s.x2,u),(a?l:b)(s.y1,s.cpy1,s.cpy2,s.y2,u)]:[(a?f:C)(s.x1,s.cpx1,s.x2,u),(a?f:C)(s.y1,s.cpy1,s.y2,u)]}var e=ae.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(s,u){var a=u.x1,A=u.y1,d=u.x2,i=u.y2,h=u.cpx1,y=u.cpy1,v=u.cpx2,x=u.cpy2,S=u.percent;if(S===0)return;s.moveTo(a,A),v==null||x==null?(S<1&&(p(a,h,d,S,r),h=r[1],d=r[2],p(A,y,i,S,r),y=r[1],i=r[2]),s.quadraticCurveTo(h,y,d,i)):(S<1&&(E(a,h,v,d,S,r),h=r[1],v=r[2],d=r[3],E(A,y,x,i,S,r),y=r[1],x=r[2],i=r[3]),s.bezierCurveTo(h,y,v,x,d,i))},pointAt:function(s){return n(this.shape,s,!1)},tangentAt:function(s){var u=n(this.shape,s,!0);return V.normalize(u,u)}});We.exports=e},"rAM+":function(We,Ce,I){"use strict";I.d(Ce,"a",function(){return V});var ae=I("Qw5x");function V(M,p){var E;if(typeof Symbol=="undefined"||M[Symbol.iterator]==null){if(Array.isArray(M)||(E=Object(ae.a)(M))||p&&M&&typeof M.length=="number"){E&&(M=E);var C=0,b=function(){};return{s:b,n:function(){return C>=M.length?{done:!0}:{done:!1,value:M[C++]}},e:function(e){throw e},f:b}}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 f=!0,l=!1,r;return{s:function(){E=M[Symbol.iterator]()},n:function(){var e=E.next();return f=e.done,e},e:function(e){l=!0,r=e},f:function(){try{!f&&E.return!=null&&E.return()}finally{if(l)throw r}}}}},rUJ1:function(We,Ce){const I=/[&<>"']/,ae=/[&<>"']/g,V=/[<>"']|&(?!#?\w+;)/,M=/[<>"']|&(?!#?\w+;)/g,p={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},E=w=>p[w];function C(w,m){if(m){if(I.test(w))return w.replace(ae,E)}else if(V.test(w))return w.replace(M,E);return w}const b=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function f(w){return w.replace(b,(m,c)=>(c=c.toLowerCase(),c==="colon"?":":c.charAt(0)==="#"?c.charAt(1)==="x"?String.fromCharCode(parseInt(c.substring(2),16)):String.fromCharCode(+c.substring(1)):""))}const l=/(^|[^\[])\^/g;function r(w,m){w=w.source||w,m=m||"";const c={replace:(o,_)=>(_=_.source||_,_=_.replace(l,"$1"),w=w.replace(o,_),c),getRegex:()=>new RegExp(w,m)};return c}const n=/[^\w:]/g,e=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function s(w,m,c){if(w){let o;try{o=decodeURIComponent(f(c)).replace(n,"").toLowerCase()}catch(_){return null}if(o.indexOf("javascript:")===0||o.indexOf("vbscript:")===0||o.indexOf("data:")===0)return null}m&&!e.test(c)&&(c=i(m,c));try{c=encodeURI(c).replace(/%25/g,"%")}catch(o){return null}return c}const u={},a=/^[^:]+:\/*[^/]*$/,A=/^([^:]+:)[\s\S]*$/,d=/^([^:]+:\/*[^/]*)[\s\S]*$/;function i(w,m){u[" "+w]||(a.test(w)?u[" "+w]=w+"/":u[" "+w]=x(w,"/",!0)),w=u[" "+w];const c=w.indexOf(":")===-1;return m.substring(0,2)==="//"?c?m:w.replace(A,"$1")+m:m.charAt(0)==="/"?c?m:w.replace(d,"$1")+m:w+m}const h={exec:function(){}};function y(w){let m=1,c,o;for(;m<arguments.length;m++){c=arguments[m];for(o in c)Object.prototype.hasOwnProperty.call(c,o)&&(w[o]=c[o])}return w}function v(w,m){const c=w.replace(/\|/g,(D,T,O)=>{let R=!1,U=T;for(;--U>=0&&O[U]==="\\";)R=!R;return R?"|":" |"}),o=c.split(/ \|/);let _=0;if(o.length>m)o.splice(m);else for(;o.length<m;)o.push("");for(;_<o.length;_++)o[_]=o[_].trim().replace(/\\\|/g,"|");return o}function x(w,m,c){const o=w.length;if(o===0)return"";let _=0;for(;_<o;){const D=w.charAt(o-_-1);if(D===m&&!c)_++;else if(D!==m&&c)_++;else break}return w.substr(0,o-_)}function S(w,m){if(w.indexOf(m[1])===-1)return-1;const c=w.length;let o=0,_=0;for(;_<c;_++)if(w[_]==="\\")_++;else if(w[_]===m[0])o++;else if(w[_]===m[1]&&(o--,o<0))return _;return-1}function B(w){w&&w.sanitize&&!w.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")}We.exports={escape:C,unescape:f,edit:r,cleanUrl:s,resolveUrl:i,noopTest:h,merge:y,splitCells:v,rtrim:x,findClosingBracket:S,checkSanitizeDeprecation:B}},rcnY:function(We,Ce,I){var ae=I("aRTE");function V(M,p){this.totalCount=M,this.dataCount=p}V.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],V.getRSBlocks=function(M,p){var E=V.getRsBlockTable(M,p);if(E==null)throw new Error("bad rs block @ typeNumber:"+M+"/errorCorrectLevel:"+p);for(var C=E.length/3,b=new Array,f=0;f<C;f++)for(var l=E[f*3+0],r=E[f*3+1],n=E[f*3+2],e=0;e<l;e++)b.push(new V(r,n));return b},V.getRsBlockTable=function(M,p){switch(p){case ae.L:return V.RS_BLOCK_TABLE[(M-1)*4+0];case ae.M:return V.RS_BLOCK_TABLE[(M-1)*4+1];case ae.Q:return V.RS_BLOCK_TABLE[(M-1)*4+2];case ae.H:return V.RS_BLOCK_TABLE[(M-1)*4+3];default:return}},We.exports=V},rmlV:function(We,Ce,I){var ae=I("y+Vt"),V=ae.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(M,p){var E=.5522848,C=p.cx,b=p.cy,f=p.rx,l=p.ry,r=f*E,n=l*E;M.moveTo(C-f,b),M.bezierCurveTo(C-f,b-n,C-r,b-l,C,b-l),M.bezierCurveTo(C+r,b-l,C+f,b-n,C+f,b),M.bezierCurveTo(C+f,b+n,C+r,b+l,C,b+l),M.bezierCurveTo(C-r,b+l,C-f,b+n,C-f,b),M.closePath()}});We.exports=V},sBCT:function(We,Ce,I){"use strict";var ae=I("DZo9"),V=I("8z0m"),M=I("+L6B"),p=I("2/Rp"),E=I("MXD1"),C=I("CFYs"),b=I("9og8"),f=I("2qtc"),l=I("kLXV"),r=I("miYZ"),n=I("tsqr"),e=I("y8nQ"),s=I("Vl3Y"),u=I("tJVT"),a=I("k1fw"),A=I("oBTY"),d=I("5NDa"),i=I("5rEg"),h=I("WmNS"),y=I.n(h),v=I("q1tI"),x=I.n(v),S=I("Ty5D"),B=I("55Ip"),w=I("9kvl"),m=I("kwm0"),c=I.n(m),o=I("Aky1"),_=I("h/US"),D=I("m3rI"),T=i.a.TextArea,O=1024,R=function(Y,k){var K,z=k.payload||{},j=z.uploadInfo,Q=j===void 0?{}:j;switch(k.type){case"addVideo":return{videoList:[].concat(Object(A.a)(Y.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:Y.videoList.filter(function(X){return X.name!==k.payload.name})};case"removeAll":return{videoList:[]};case"updateProgress":return{videoList:Y.videoList.map(function(X){return X.name===k.payload.uploadInfo.file.name?Object(a.a)(Object(a.a)({},X),{loaded:k.payload.progressPercent,videoId:Q.videoId,fileHash:Q.fileHash}):X})};case"updateTitle":return{videoList:(K=Y.videoList)===null||K===void 0?void 0:K.map(function(X){return X.name===k.payload.item.name?Object(a.a)(Object(a.a)({},X),{title:k.payload.title}):X})};default:return{videoList:[]}}},U=function(Y){var k,K=Y.user,z=Y.globalSetting,j=Y.loading,Q=Y.dispatch,X=Y.visible,te=Y.editData,oe=Y.onCancel,fe=oe===void 0?function(){}:oe,le=Y.onOk,we=le===void 0?function(){}:le,Ae=Object(S.i)(),be=s.a.useForm(),me=Object(u.a)(be,1),he=me[0],ie=Object(v.useReducer)(R,{videoList:[]}),pe=Object(u.a)(ie,2),ye=pe[0],de=pe[1],Me=Object(v.useState)(!1),ke=Object(u.a)(Me,2),Ue=ke[0],re=ke[1],N=Object(v.useRef)(),W=Object(v.useState)(),ce=Object(u.a)(W,2),ne=ce[0],ue=ce[1],De=Object(v.useState)(!1),ze=Object(u.a)(De,2),wt=ze[0],He=ze[1],Xe=Object(v.useState)(!1),gt=Object(u.a)(Xe,2),_t=gt[0],ct=gt[1],lt=Object(v.useState)([]),rt=Object(u.a)(lt,2),Ze=rt[0],qe=rt[1],Le=Object(v.useState)([]),je=Object(u.a)(Le,2),Ne=je[0],$e=je[1];Object(v.useEffect)(function(){if(!te)return;He(te.is_link),ue(te.link),!te.is_link&&de({type:"addVideo",payload:{uploadInfo:{file:{name:te.file_name},videoId:te.video_id,loaded:100}}}),he.setFieldsValue({name:te.name,description:te.description,attachment_id:te==null?void 0:te.attachment_id})},[te]);var At=function(){var Fe=document.getElementById("fileUpload");Fe.value=""},Bt=function(Fe){var et;He(!1);var Ot=Fe.target.files[0];if(!Ot){At();return}var Et=Ot.name.toLowerCase();if(Et&&Et.indexOf(".avi")==-1&&Et.indexOf(".flv")==-1&&Et.indexOf(".f4v")==-1&&Et.indexOf(".m4v")==-1&&Et.indexOf(".mov")==-1&&Et.indexOf(".mp4")==-1&&Et.indexOf(".rmvb")==-1&&Et.indexOf(".swf")==-1&&Et.indexOf(".webm")==-1&&Et.indexOf(".wmv")==-1){n.b.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),At();return}if(Ot.size>O*1024*1024){n.b.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC71G"),At();return}if((et=ye.videoList)!==null&&et!==void 0&&et.find(function(Ut){return Ut.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"),At();return}It(Ot)},Nt=function(Fe,et){l.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:x.a.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",et?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:function(){At(),de({type:"removeVideo",payload:{name:Fe}})}})},It=function(Fe){var et,Ot='{"Vod":{}}';if(re(!0),N.current){N.current.addFile(Fe,null,null,null,Ot);return}Object(o.a)((et=K.userInfo)===null||et===void 0?void 0:et.login,{create:!N,addFileSuccess:function(Ut){de({type:"addVideo",payload:{uploadInfo:Ut}})},onUploadProgress:function(Ut,Wt,bt){var Gt=Math.ceil(bt*100);de({type:"updateProgress",payload:{uploadInfo:Ut,progressPercent:Gt}}),At()},onUploadFailed:function(Ut){n.b.info("\u89C6\u9891\u4E91\u670D\u52A1\u51FA\u73B0\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\u3002")},onUploadEnd:function(Ut){re(!1)},onUploadSucceed:function(Ut){re(!1)},onUploadError:function(Ut){re(!1)},gotUploader:function(Ut){Ut.addFile(Fe,null,null,null,Ot),N.current=Ut}})},jt=function(){var yt=Object(b.a)(y.a.mark(function Fe(){var et,Ot,Et,Ut;return y.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return bt.next=2,he.validateFields();case 2:if(!(!wt&&!((et=ye.videoList)!==null&&et!==void 0&&et.length)||wt&&!ne)){bt.next=5;break}return n.b.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891\u6216\u8005\u6DFB\u52A0\u5916\u94FE"),bt.abrupt("return");case 5:ct(!0),Et=wt?{link:ne}:{video_id:(Ot=ye.videoList)===null||Ot===void 0?void 0:Ot[0].videoId};debugger;return bt.next=10,we(Object(a.a)(Object(a.a)({},Et),{name:he.getFieldValue("name"),attachment_id:he.getFieldValue("attachment_id"),description:he.getFieldValue("description")}));case 10:Ut=bt.sent,ct(!1),Ut.id&&xt();case 13:case"end":return bt.stop()}},Fe)}));return function(){return yt.apply(this,arguments)}}(),xt=function(){he.resetFields(),de({type:"removeAll"}),ue(null),He(null)},Lt=function(){fe(),xt()},St={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:D.a.API_SERVER+"/api/attachments.json",withCredentials:!0,onRemove:function(Fe){$e([])},onChange:function(Fe){var et=Fe.file.status;if(et!=="uploading",et==="removed"&&qe(Fe.fileList),et==="done"){var Ot,Et,Ut;qe(Fe==null||((Ot=Fe.fileList)===null||Ot===void 0)?void 0:Ot.slice(-1)),de({type:"addVideo",payload:{uploadInfo:{videoId:Fe==null||((Et=Fe.fileList[0])===null||Et===void 0||((Ut=Et.response)===null||Ut===void 0))?void 0:Ut.id,loaded:100,file:Object(a.a)({},Fe==null?void 0:Fe.fileList[0])}}}),He(!1),n.b.success("".concat(Fe.file.name," \u6587\u4EF6\u4E0A\u4F20\u6210\u529F"))}else et==="error"&&n.b.error("".concat(Fe.file.name," \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"))},beforeUpload:function(Fe){var et=Fe.size/1024/1024<1e3;return et||n.b.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E150MB"),et}},dt=function(){var Fe,et,Ot,Et,Ut,Wt,bt,Gt,un,jn,Bn,Nr;return x.a.createElement(x.a.Fragment,null,!wt&&!!((Fe=ye.videoList)!==null&&Fe!==void 0&&Fe.length)&&x.a.createElement("div",{className:c.a.fileProgress},((et=ye.videoList)===null||et===void 0||((Ot=et[0])===null||Ot===void 0)?void 0:Ot.loaded)==100?x.a.createElement("div",{className:"".concat(c.a.videoName," font14")},(Et=ye.videoList)===null||Et===void 0||((Ut=Et[0])===null||Ut===void 0)?void 0:Ut.name):x.a.createElement(C.a,{style:{width:"80%"},percent:(Wt=ye.videoList)===null||Wt===void 0||((bt=Wt[0])===null||bt===void 0)?void 0:bt.loaded,status:((Gt=ye.videoList)===null||Gt===void 0||((un=Gt[0])===null||un===void 0)?void 0:un.loaded)==100?"normal":"active"}),x.a.createElement("div",{className:c.a.fileCancel,onClick:function(){var _r,Rn,ea,Aa;return Nt((_r=ye.videoList)===null||_r===void 0||((Rn=_r[0])===null||Rn===void 0)?void 0:Rn.name,((ea=ye.videoList)===null||ea===void 0||((Aa=ea[0])===null||Aa===void 0)?void 0:Aa.loaded)==100)}},((jn=ye.videoList)===null||jn===void 0||((Bn=jn[0])===null||Bn===void 0)?void 0:Bn.loaded)===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20")),!((Nr=ye.videoList)!==null&&Nr!==void 0&&Nr.length)&&x.a.createElement("div",{className:c.a.uploadWrap},x.a.createElement("label",{htmlFor:"fileUpload",style:{marginRight:"30px"}},x.a.createElement(V.a,St,x.a.createElement(p.a,{className:c.a.upload,disabled:(Ne==null?void 0:Ne.length)>0},x.a.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4E0A\u4F20\u89C6\u9891"))),x.a.createElement("label",{className:"".concat(c.a.upload," ").concat(c.a.uploadLink),onClick:function(){return He(!0)}},x.a.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6DFB\u52A0\u5916\u94FE")),wt&&x.a.createElement(i.a,{className:"mt5",placeholder:"\u8BF7\u8F93\u5165\u89C6\u9891\u94FE\u63A5",value:ne,onChange:function(_r){return ue(_r.target.value)}}))};return x.a.createElement(l.a,{centered:!0,maskClosable:!1,title:te?"\u7F16\u8F91\u89C6\u9891\u9879\u76EE":"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE",width:740,className:c.a.modal,visible:X,confirmLoading:_t,onOk:jt,onCancel:Lt},x.a.createElement(s.a,{form:he},x.a.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:Bt,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),x.a.createElement(s.a.Item,{label:"\u9879\u76EE\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}]},x.a.createElement(i.a,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u9879\u76EE\u540D\u79F0"})),x.a.createElement(s.a.Item,{label:"\u9879\u76EE\u5185\u5BB9",name:"content",className:c.a.contentItem},dt()),x.a.createElement(s.a.Item,{name:"attachment_id",label:"\u4E0A\u4F20\u5C01\u9762\u56FE:"},x.a.createElement(_.a,{getFileProgress:function(Fe){if(Fe.file.status==="uploading"){ct(!0);return}Fe.file.status==="done"&&ct(!1)}})),x.a.createElement(s.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((k=K.userInfo)===null||k===void 0?void 0:k.login,"/videos/protocol"),target:"_blank",className:c.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"))))};Ce.a=Object(w.a)(function(F){var Y=F.user,k=F.loading,K=F.globalSetting;return{user:Y,globalSetting:K,loading:k}})(U)},sR1s:function(We,Ce,I){"use strict";I.d(Ce,"b",function(){return p}),I.d(Ce,"a",function(){return E}),I.d(Ce,"c",function(){return C}),I.d(Ce,"d",function(){return b});var ae=I("U8pU"),V="RC_TABLE_KEY";function M(f){return f==null?[]:Array.isArray(f)?f:[f]}function p(f,l){if(!l&&typeof l!="number")return f;for(var r=M(l),n=f,e=0;e<r.length;e+=1){if(!n)return null;var s=r[e];n=n[s]}return n}function E(f){var l=[],r={};return f.forEach(function(n){for(var e=n||{},s=e.key,u=e.dataIndex,a=s||M(u).join("-")||V;r[a];)a="".concat(a,"_next");r[a]=!0,l.push(a)}),l}function C(){var f={};function l(s,u){u&&Object.keys(u).forEach(function(a){var A=u[a];A&&Object(ae.a)(A)==="object"?(s[a]=s[a]||{},l(s[a],A)):s[a]=A})}for(var r=arguments.length,n=new Array(r),e=0;e<r;e++)n[e]=arguments[e];return n.forEach(function(s){l(f,s)}),f}function b(f){return f!=null}},"sW+o":function(We,Ce,I){var ae=I("SrGk"),V=I("bYtY"),M=I("SUKs"),p=I("Qe9p");function E(b,f){ae.call(this,b,f,["linearGradient","radialGradient"],"__gradient_in_use__")}V.inherits(E,ae),E.prototype.addWithoutUpdate=function(b,f){if(f&&f.style){var l=this;V.each(["fill","stroke"],function(r){if(f.style[r]&&(f.style[r].type==="linear"||f.style[r].type==="radial")){var n=f.style[r],e=l.getDefs(!0),s;n._dom?(s=n._dom,e.contains(n._dom)||l.addDom(s)):s=l.add(n),l.markUsed(f);var u=s.getAttribute("id");b.setAttribute(r,"url(#"+u+")")}})}},E.prototype.add=function(b){var f;if(b.type==="linear")f=this.createElement("linearGradient");else if(b.type==="radial")f=this.createElement("radialGradient");else return M("Illegal gradient type."),null;return b.id=b.id||this.nextId++,f.setAttribute("id","zr"+this._zrId+"-gradient-"+b.id),this.updateDom(b,f),this.addDom(f),f},E.prototype.update=function(b){var f=this;ae.prototype.update.call(this,b,function(){var l=b.type,r=b._dom.tagName;l==="linear"&&r==="linearGradient"||l==="radial"&&r==="radialGradient"?f.updateDom(b,b._dom):(f.removeDom(b),f.add(b))})},E.prototype.updateDom=function(b,f){if(b.type==="linear")f.setAttribute("x1",b.x),f.setAttribute("y1",b.y),f.setAttribute("x2",b.x2),f.setAttribute("y2",b.y2);else if(b.type==="radial")f.setAttribute("cx",b.x),f.setAttribute("cy",b.y),f.setAttribute("r",b.r);else{M("Illegal gradient type.");return}b.global?f.setAttribute("gradientUnits","userSpaceOnUse"):f.setAttribute("gradientUnits","objectBoundingBox"),f.innerHTML="";for(var l=b.colorStops,r=0,n=l.length;r<n;++r){var e=this.createElement("stop");e.setAttribute("offset",l[r].offset*100+"%");var s=l[r].color;if(s.indexOf("rgba">-1)){var u=p.parse(s)[3],a=p.toHex(s);e.setAttribute("stop-color","#"+a),e.setAttribute("stop-opacity",u)}else e.setAttribute("stop-color",l[r].color);f.appendChild(e)}b._dom=f},E.prototype.markUsed=function(b){if(b.style){var f=b.style.fill;f&&f._dom&&ae.prototype.markUsed.call(this,f._dom),f=b.style.stroke,f&&f._dom&&ae.prototype.markUsed.call(this,f._dom)}};var C=E;We.exports=C},sboe:function(We,Ce,I){"use strict";I.d(Ce,"a",function(){return M});var ae=I("q1tI"),V=I.n(ae),M=ae.createContext(null)},t23M:function(We,Ce,I){"use strict";var ae=I("VTBJ"),V=I("1OyB"),M=I("vuIU"),p=I("Ji7U"),E=I("LK+K"),C=I("q1tI"),b=I.n(C),f=I("m+aA"),l=I("Zm9Q"),r=I("Kwbf"),n=I("c+Xe"),e=I("bdgK"),s="rc-observer-key",u=function(a){Object(p.a)(d,a);var A=Object(E.a)(d);function d(){var i;return Object(V.a)(this,d),i=A.apply(this,arguments),i.resizeObserver=null,i.childNode=null,i.currentElement=null,i.state={width:0,height:0,offsetHeight:0,offsetWidth:0},i.onResize=function(h){var y=i.props.onResize,v=h[0].target,x=v.getBoundingClientRect(),S=x.width,B=x.height,w=v.offsetWidth,m=v.offsetHeight,c=Math.floor(S),o=Math.floor(B);if(i.state.width!==c||i.state.height!==o||i.state.offsetWidth!==w||i.state.offsetHeight!==m){var _={width:c,height:o,offsetWidth:w,offsetHeight:m};i.setState(_),y&&Promise.resolve().then(function(){y(Object(ae.a)(Object(ae.a)({},_),{},{offsetWidth:w,offsetHeight:m}))})}},i.setChildNode=function(h){i.childNode=h},i}return Object(M.a)(d,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var h=this.props.disabled;if(h){this.destroyObserver();return}var y=Object(f.a)(this.childNode||this),v=y!==this.currentElement;v&&(this.destroyObserver(),this.currentElement=y),!this.resizeObserver&&y&&(this.resizeObserver=new e.default(this.onResize),this.resizeObserver.observe(y))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var h=this.props.children,y=Object(l.a)(h);if(y.length>1)Object(r.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(y.length===0)return Object(r.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var v=y[0];if(C.isValidElement(v)&&Object(n.c)(v)){var x=v.ref;y[0]=C.cloneElement(v,{ref:Object(n.a)(x,this.setChildNode)})}return y.length===1?y[0]:y.map(function(S,B){return!C.isValidElement(S)||"key"in S&&S.key!==null?S:C.cloneElement(S,{key:"".concat(s,"-").concat(B)})})}}]),d}(C.Component);u.displayName="ResizeObserver",Ce.a=u},tWlo:function(We,Ce){We.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(We,Ce,I){"use strict";Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.ver=Ce.clear=Ce.bind=void 0;var ae=I("P4Qj"),V=function(C,b){var f=(0,ae.getSensor)(C);return f.bind(b),function(){f.unbind(b)}};Ce.bind=V;var M=function(C){var b=(0,ae.getSensor)(C);(0,ae.removeSensor)(b)};Ce.clear=M;var p="1.0.1";Ce.ver=p},uK0f:function(We,Ce,I){(function(ae,V){We.exports=V()})(this,function(){"use strict";function ae(V,M,p){p=p||{},p.childrenKeyName=p.childrenKeyName||"children";var E=V||[],C=[],b=0;do{var f=E.filter(function(l){return M(l,b)})[0];if(!f)break;C.push(f),E=f[p.childrenKeyName]||[],b+=1}while(E.length>0);return C}return ae})},uRQ9:function(We,Ce,I){We.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(We,Ce,I){typeof window!="undefined"&&function(V,M){We.exports=M()}(this,function(){return function(ae){var V={};function M(p){if(V[p])return V[p].exports;var E=V[p]={i:p,l:!1,exports:{}};return ae[p].call(E.exports,E,E.exports,M),E.l=!0,E.exports}return M.m=ae,M.c=V,M.d=function(p,E,C){M.o(p,E)||Object.defineProperty(p,E,{enumerable:!0,get:C})},M.r=function(p){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(p,"__esModule",{value:!0})},M.t=function(p,E){if(E&1&&(p=M(p)),E&8)return p;if(E&4&&typeof p=="object"&&p&&p.__esModule)return p;var C=Object.create(null);if(M.r(C),Object.defineProperty(C,"default",{enumerable:!0,value:p}),E&2&&typeof p!="string")for(var b in p)M.d(C,b,function(f){return p[f]}.bind(null,b));return C},M.n=function(p){var E=p&&p.__esModule?function(){return p.default}:function(){return p};return M.d(E,"a",E),E},M.o=function(p,E){return Object.prototype.hasOwnProperty.call(p,E)},M.p="/dist/",M(M.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(ae,V,M){"use strict";var p=Object.prototype.hasOwnProperty,E="~";function C(){}Object.create&&(C.prototype=Object.create(null),new C().__proto__||(E=!1));function b(n,e,s){this.fn=n,this.context=e,this.once=s||!1}function f(n,e,s,u,a){if(typeof s!="function")throw new TypeError("The listener must be a function");var A=new b(s,u||n,a),d=E?E+e:e;return n._events[d]?n._events[d].fn?n._events[d]=[n._events[d],A]:n._events[d].push(A):(n._events[d]=A,n._eventsCount++),n}function l(n,e){--n._eventsCount===0?n._events=new C:delete n._events[e]}function r(){this._events=new C,this._eventsCount=0}r.prototype.eventNames=function(){var e=[],s,u;if(this._eventsCount===0)return e;for(u in s=this._events)p.call(s,u)&&e.push(E?u.slice(1):u);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(s)):e},r.prototype.listeners=function(e){var s=E?E+e:e,u=this._events[s];if(!u)return[];if(u.fn)return[u.fn];for(var a=0,A=u.length,d=new Array(A);a<A;a++)d[a]=u[a].fn;return d},r.prototype.listenerCount=function(e){var s=E?E+e:e,u=this._events[s];return u?u.fn?1:u.length:0},r.prototype.emit=function(e,s,u,a,A,d){var i=E?E+e:e;if(!this._events[i])return!1;var h=this._events[i],y=arguments.length,v,x;if(h.fn){h.once&&this.removeListener(e,h.fn,void 0,!0);switch(y){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,s),!0;case 3:return h.fn.call(h.context,s,u),!0;case 4:return h.fn.call(h.context,s,u,a),!0;case 5:return h.fn.call(h.context,s,u,a,A),!0;case 6:return h.fn.call(h.context,s,u,a,A,d),!0}for(x=1,v=new Array(y-1);x<y;x++)v[x-1]=arguments[x];h.fn.apply(h.context,v)}else{var S=h.length,B;for(x=0;x<S;x++){h[x].once&&this.removeListener(e,h[x].fn,void 0,!0);switch(y){case 1:h[x].fn.call(h[x].context);break;case 2:h[x].fn.call(h[x].context,s);break;case 3:h[x].fn.call(h[x].context,s,u);break;case 4:h[x].fn.call(h[x].context,s,u,a);break;default:if(!v)for(B=1,v=new Array(y-1);B<y;B++)v[B-1]=arguments[B];h[x].fn.apply(h[x].context,v)}}}return!0},r.prototype.on=function(e,s,u){return f(this,e,s,u,!1)},r.prototype.once=function(e,s,u){return f(this,e,s,u,!0)},r.prototype.removeListener=function(e,s,u,a){var A=E?E+e:e;if(!this._events[A])return this;if(!s)return l(this,A),this;var d=this._events[A];if(d.fn)d.fn===s&&(!a||d.once)&&(!u||d.context===u)&&l(this,A);else{for(var i=0,h=[],y=d.length;i<y;i++)(d[i].fn!==s||a&&!d[i].once||u&&d[i].context!==u)&&h.push(d[i]);h.length?this._events[A]=h.length===1?h[0]:h:l(this,A)}return this},r.prototype.removeAllListeners=function(e){var s;return e?(s=E?E+e:e,this._events[s]&&l(this,s)):(this._events=new C,this._eventsCount=0),this},r.prototype.off=r.prototype.removeListener,r.prototype.addListener=r.prototype.on,r.prefixed=E,r.EventEmitter=r,ae.exports=r},"./node_modules/url-toolkit/src/url-toolkit.js":function(ae,V,M){(function(p){var E=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,C=/^([^\/?#]*)([^]*)$/,b=/(?:\/|^)\.(?=\/)/g,f=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,l={buildAbsoluteURL:function(r,n,e){if(e=e||{},r=r.trim(),n=n.trim(),!n){if(!e.alwaysNormalize)return r;var s=l.parseURL(r);if(!s)throw new Error("Error trying to parse base URL.");return s.path=l.normalizePath(s.path),l.buildURLFromParts(s)}var u=l.parseURL(n);if(!u)throw new Error("Error trying to parse relative URL.");if(u.scheme)return e.alwaysNormalize?(u.path=l.normalizePath(u.path),l.buildURLFromParts(u)):n;var a=l.parseURL(r);if(!a)throw new Error("Error trying to parse base URL.");if(!a.netLoc&&a.path&&a.path[0]!=="/"){var A=C.exec(a.path);a.netLoc=A[1],a.path=A[2]}a.netLoc&&!a.path&&(a.path="/");var d={scheme:a.scheme,netLoc:u.netLoc,path:null,params:u.params,query:u.query,fragment:u.fragment};if(!u.netLoc&&(d.netLoc=a.netLoc,u.path[0]!=="/"))if(!u.path)d.path=a.path,u.params||(d.params=a.params,u.query||(d.query=a.query));else{var i=a.path,h=i.substring(0,i.lastIndexOf("/")+1)+u.path;d.path=l.normalizePath(h)}return d.path===null&&(d.path=e.alwaysNormalize?l.normalizePath(u.path):u.path),l.buildURLFromParts(d)},parseURL:function(r){var n=E.exec(r);return n?{scheme:n[1]||"",netLoc:n[2]||"",path:n[3]||"",params:n[4]||"",query:n[5]||"",fragment:n[6]||""}:null},normalizePath:function(r){for(r=r.split("").reverse().join("").replace(b,"");r.length!==(r=r.replace(f,"")).length;);return r.split("").reverse().join("")},buildURLFromParts:function(r){return r.scheme+r.netLoc+r.path+r.params+r.query+r.fragment}};ae.exports=l})(this)},"./node_modules/webworkify-webpack/index.js":function(ae,V,M){function p(e){var s={};function u(A){if(s[A])return s[A].exports;var d=s[A]={i:A,l:!1,exports:{}};return e[A].call(d.exports,d,d.exports,u),d.l=!0,d.exports}u.m=e,u.c=s,u.i=function(A){return A},u.d=function(A,d,i){u.o(A,d)||Object.defineProperty(A,d,{configurable:!1,enumerable:!0,get:i})},u.r=function(A){Object.defineProperty(A,"__esModule",{value:!0})},u.n=function(A){var d=A&&A.__esModule?function(){return A.default}:function(){return A};return u.d(d,"a",d),d},u.o=function(A,d){return Object.prototype.hasOwnProperty.call(A,d)},u.p="/",u.oe=function(A){throw console.error(A),A};var a=u(u.s=ENTRY_MODULE);return a.default||a}var E="[\\.|\\-|\\+|\\w|/|@]+",C="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+E+").*?\\)";function b(e){return(e+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function f(e){return!isNaN(1*e)}function l(e,s,u){var a={};a[u]=[];var A=s.toString(),d=A.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!d)return a;for(var i=d[1],h=new RegExp("(\\\\n|\\W)"+b(i)+C,"g"),y;y=h.exec(A);){if(y[3]==="dll-reference")continue;a[u].push(y[3])}for(h=new RegExp("\\("+b(i)+'\\("(dll-reference\\s('+E+'))"\\)\\)'+C,"g");y=h.exec(A);)e[y[2]]||(a[u].push(y[1]),e[y[2]]=M(y[1]).m),a[y[2]]=a[y[2]]||[],a[y[2]].push(y[4]);for(var v=Object.keys(a),x=0;x<v.length;x++)for(var S=0;S<a[v[x]].length;S++)f(a[v[x]][S])&&(a[v[x]][S]=1*a[v[x]][S]);return a}function r(e){var s=Object.keys(e);return s.reduce(function(u,a){return u||e[a].length>0},!1)}function n(e,s){for(var u={main:[s]},a={main:[]},A={main:{}};r(u);)for(var d=Object.keys(u),i=0;i<d.length;i++){var h=d[i],y=u[h],v=y.pop();if(A[h]=A[h]||{},A[h][v]||!e[h][v])continue;A[h][v]=!0,a[h]=a[h]||[],a[h].push(v);for(var x=l(e,e[h][v],h),S=Object.keys(x),B=0;B<S.length;B++)u[S[B]]=u[S[B]]||[],u[S[B]]=u[S[B]].concat(x[S[B]])}return a}ae.exports=function(e,s){s=s||{};var u={main:M.m},a=s.all?{main:Object.keys(u.main)}:n(u,e),A="";Object.keys(a).filter(function(v){return v!=="main"}).forEach(function(v){for(var x=0;a[v][x];)x++;a[v].push(x),u[v][x]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",A=A+"var "+v+" = ("+p.toString().replace("ENTRY_MODULE",JSON.stringify(x))+")({"+a[v].map(function(S){return""+JSON.stringify(S)+": "+u[v][S].toString()}).join(",")+`});
`}),A=A+"new (("+p.toString().replace("ENTRY_MODULE",JSON.stringify(e))+")({"+a.main.map(function(v){return""+JSON.stringify(v)+": "+u.main[v].toString()}).join(",")+"}))(self);";var d=new window.Blob([A],{type:"text/javascript"});if(s.bare)return d;var i=window.URL||window.webkitURL||window.mozURL||window.msURL,h=i.createObjectURL(d),y=new window.Worker(h);return y.objectURL=h,y}},"./src/config.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"hlsDefaultConfig",function(){return B}),M.d(V,"mergeConfig",function(){return m}),M.d(V,"enableStreamingMode",function(){return c});var p=M("./src/controller/abr-controller.ts"),E=M("./src/controller/audio-stream-controller.ts"),C=M("./src/controller/audio-track-controller.ts"),b=M("./src/controller/subtitle-stream-controller.ts"),f=M("./src/controller/subtitle-track-controller.ts"),l=M("./src/controller/buffer-controller.ts"),r=M("./src/controller/timeline-controller.ts"),n=M("./src/controller/cap-level-controller.ts"),e=M("./src/controller/fps-controller.ts"),s=M("./src/controller/eme-controller.ts"),u=M("./src/controller/cmcd-controller.ts"),a=M("./src/utils/xhr-loader.ts"),A=M("./src/utils/fetch-loader.ts"),d=M("./src/utils/cues.ts"),i=M("./src/utils/mediakeys-helper.ts"),h=M("./src/utils/logger.ts");function y(){return y=Object.assign||function(o){for(var _=1;_<arguments.length;_++){var D=arguments[_];for(var T in D)Object.prototype.hasOwnProperty.call(D,T)&&(o[T]=D[T])}return o},y.apply(this,arguments)}function v(o,_){var D=Object.keys(o);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(o);_&&(T=T.filter(function(O){return Object.getOwnPropertyDescriptor(o,O).enumerable})),D.push.apply(D,T)}return D}function x(o){for(var _=1;_<arguments.length;_++){var D=arguments[_]!=null?arguments[_]:{};_%2?v(Object(D),!0).forEach(function(T){S(o,T,D[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(D)):v(Object(D)).forEach(function(T){Object.defineProperty(o,T,Object.getOwnPropertyDescriptor(D,T))})}return o}function S(o,_,D){return _ in o?Object.defineProperty(o,_,{value:D,enumerable:!0,configurable:!0,writable:!0}):o[_]=D,o}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:a.default,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:p.default,bufferController:l.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:i.requestMediaKeySystemAccess,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0},w()),{},{subtitleStreamController:b.SubtitleStreamController,subtitleTrackController:f.default,timelineController:r.TimelineController,audioStreamController:E.default,audioTrackController:C.default,emeController:s.default,cmcdController:u.default});function w(){return{cueHandler:d.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 m(o,_){if((_.liveSyncDurationCount||_.liveMaxLatencyDurationCount)&&(_.liveSyncDuration||_.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(_.liveMaxLatencyDurationCount!==void 0&&(_.liveSyncDurationCount===void 0||_.liveMaxLatencyDurationCount<=_.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(_.liveMaxLatencyDuration!==void 0&&(_.liveSyncDuration===void 0||_.liveMaxLatencyDuration<=_.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');return y({},o,_)}function c(o){var _=o.loader;if(_!==A.default&&_!==a.default)h.logger.log("[config]: Custom loader detected, cannot enable progressive streaming"),o.progressive=!1;else{var D=Object(A.fetchSupported)();D&&(o.loader=A.default,o.progressive=!0,o.enableSoftwareAES=!0,h.logger.log("[config]: Progressive streaming enabled, using FetchLoader"))}}},"./src/controller/abr-controller.ts":function(ae,V,M){"use strict";M.r(V);var p=M("./src/polyfills/number.ts"),E=M("./src/utils/ewma-bandwidth-estimator.ts"),C=M("./src/events.ts"),b=M("./src/utils/buffer-helper.ts"),f=M("./src/errors.ts"),l=M("./src/types/loader.ts"),r=M("./src/utils/logger.ts");function n(u,a){for(var A=0;A<a.length;A++){var d=a[A];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(u,d.key,d)}}function e(u,a,A){return a&&n(u.prototype,a),A&&n(u,A),u}var s=function(){function u(A){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=A;var d=A.config;this.bwEstimator=new E.default(d.abrEwmaSlowVoD,d.abrEwmaFastVoD,d.abrEwmaDefaultEstimate),this.registerListeners()}var a=u.prototype;return a.registerListeners=function(){var d=this.hls;d.on(C.Events.FRAG_LOADING,this.onFragLoading,this),d.on(C.Events.FRAG_LOADED,this.onFragLoaded,this),d.on(C.Events.FRAG_BUFFERED,this.onFragBuffered,this),d.on(C.Events.LEVEL_LOADED,this.onLevelLoaded,this),d.on(C.Events.ERROR,this.onError,this)},a.unregisterListeners=function(){var d=this.hls;d.off(C.Events.FRAG_LOADING,this.onFragLoading,this),d.off(C.Events.FRAG_LOADED,this.onFragLoaded,this),d.off(C.Events.FRAG_BUFFERED,this.onFragBuffered,this),d.off(C.Events.LEVEL_LOADED,this.onLevelLoaded,this),d.off(C.Events.ERROR,this.onError,this)},a.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},a.onFragLoading=function(d,i){var h=i.frag;if(h.type===l.PlaylistLevelType.MAIN&&!this.timer){var y;this.fragCurrent=h,this.partCurrent=(y=i.part)!=null?y:null,this.timer=self.setInterval(this.onCheck,100)}},a.onLevelLoaded=function(d,i){var h=this.hls.config;i.details.live?this.bwEstimator.update(h.abrEwmaSlowLive,h.abrEwmaFastLive):this.bwEstimator.update(h.abrEwmaSlowVoD,h.abrEwmaFastVoD)},a._abandonRulesCheck=function(){var d=this.fragCurrent,i=this.partCurrent,h=this.hls,y=h.autoLevelEnabled,v=h.config,x=h.media;if(!d||!x)return;var S=i?i.stats:d.stats,B=i?i.duration:d.duration;if(S.aborted){r.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),this._nextAutoLevel=-1;return}if(!y||x.paused||!x.playbackRate||!x.readyState)return;var w=performance.now()-S.loading.start,m=Math.abs(x.playbackRate);if(w<=500*B/m)return;var c=h.levels,o=h.minAutoLevel,_=c[d.level],D=S.total||Math.max(S.loaded,Math.round(B*_.maxBitrate/8)),T=Math.max(1,S.bwEstimate?S.bwEstimate/8:S.loaded*1e3/w),O=(D-S.loaded)/T,R=x.currentTime,U=(b.BufferHelper.bufferInfo(x,R,v.maxBufferHole).end-R)/m;if(U>=2*B/m||O<=U)return;var F=Number.POSITIVE_INFINITY,Y;for(Y=d.level-1;Y>o;Y--){var k=c[Y].maxBitrate;if(F=B*k/(8*.8*T),F<U)break}if(F>=O)return;var K=this.bwEstimator.getEstimate();r.logger.warn("Fragment "+d.sn+(i?" part "+i.index:"")+" of level "+d.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+Y+`
Current BW estimate: `+(Object(p.isFiniteNumber)(K)?(K/1024).toFixed(3):"Unknown")+` Kb/s
Estimated load time for current fragment: `+O.toFixed(3)+` s
Estimated load time for the next fragment: `+F.toFixed(3)+` s
Time to underbuffer: `+U.toFixed(3)+" s"),h.nextLoadLevel=Y,this.bwEstimator.sample(w,S.loaded),this.clearTimer(),d.loader&&(this.fragCurrent=this.partCurrent=null,d.loader.abort()),h.trigger(C.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:d,part:i,stats:S})},a.onFragLoaded=function(d,i){var h=i.frag,y=i.part;if(h.type===l.PlaylistLevelType.MAIN&&Object(p.isFiniteNumber)(h.sn)){var v=y?y.stats:h.stats,x=y?y.duration:h.duration;if(this.clearTimer(),this.lastLoadedFragLevel=h.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var S=this.hls.levels[h.level],B=(S.loaded?S.loaded.bytes:0)+v.loaded,w=(S.loaded?S.loaded.duration:0)+x;S.loaded={bytes:B,duration:w},S.realBitrate=Math.round(8*B/w)}if(h.bitrateTest){var m={stats:v,frag:h,part:y,id:h.type};this.onFragBuffered(C.Events.FRAG_BUFFERED,m),h.bitrateTest=!1}}},a.onFragBuffered=function(d,i){var h=i.frag,y=i.part,v=y?y.stats:h.stats;if(v.aborted)return;if(h.type!==l.PlaylistLevelType.MAIN||h.sn==="initSegment")return;var x=v.parsing.end-v.loading.start;this.bwEstimator.sample(x,v.loaded),v.bwEstimate=this.bwEstimator.getEstimate(),h.bitrateTest?this.bitrateTestDelay=x/1e3:this.bitrateTestDelay=0},a.onError=function(d,i){switch(i.details){case f.ErrorDetails.FRAG_LOAD_ERROR:case f.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},a.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},a.getNextABRAutoLevel=function(){var d=this.fragCurrent,i=this.partCurrent,h=this.hls,y=h.maxAutoLevel,v=h.config,x=h.minAutoLevel,S=h.media,B=i?i.duration:d?d.duration:0,w=S?S.currentTime:0,m=S&&S.playbackRate!==0?Math.abs(S.playbackRate):1,c=this.bwEstimator?this.bwEstimator.getEstimate():v.abrEwmaDefaultEstimate,o=(b.BufferHelper.bufferInfo(S,w,v.maxBufferHole).end-w)/m,_=this.findBestLevel(c,x,y,o,v.abrBandWidthFactor,v.abrBandWidthUpFactor);if(_>=0)return _;r.logger.trace((o?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var D=B?Math.min(B,v.maxStarvationDelay):v.maxStarvationDelay,T=v.abrBandWidthFactor,O=v.abrBandWidthUpFactor;if(!o){var R=this.bitrateTestDelay;if(R){var U=B?Math.min(B,v.maxLoadingDelay):v.maxLoadingDelay;D=U-R,r.logger.trace("bitrate test took "+Math.round(1e3*R)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*D)+" ms"),T=O=1}}return _=this.findBestLevel(c,x,y,o+D,T,O),Math.max(_,0)},a.findBestLevel=function(d,i,h,y,v,x){for(var S,B=this.fragCurrent,w=this.partCurrent,m=this.lastLoadedFragLevel,c=this.hls.levels,o=c[m],_=!!(o!=null&&(S=o.details)!==null&&S!==void 0&&S.live),D=o==null?void 0:o.codecSet,T=w?w.duration:B?B.duration:0,O=h;O>=i;O--){var R=c[O];if(!R||D&&R.codecSet!==D)continue;var U=R.details,F=(w?U==null?void 0:U.partTarget:U==null?void 0:U.averagetargetduration)||T,Y=void 0;O<=m?Y=v*d:Y=x*d;var k=c[O].maxBitrate,K=k*F/Y;if(r.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+O+"/"+Math.round(Y)+"/"+k+"/"+F+"/"+y+"/"+K),Y>k&&(!K||_&&!this.bitrateTestDelay||K<y))return O}return-1},e(u,[{key:"nextAutoLevel",get:function(){var d=this._nextAutoLevel,i=this.bwEstimator;if(d!==-1&&(!i||!i.canEstimate()))return d;var h=this.getNextABRAutoLevel();return d!==-1&&(h=Math.min(d,h)),h},set:function(d){this._nextAutoLevel=d}}]),u}();V.default=s},"./src/controller/audio-stream-controller.ts":function(ae,V,M){"use strict";M.r(V);var p=M("./src/polyfills/number.ts"),E=M("./src/controller/base-stream-controller.ts"),C=M("./src/events.ts"),b=M("./src/utils/buffer-helper.ts"),f=M("./src/controller/fragment-tracker.ts"),l=M("./src/types/level.ts"),r=M("./src/types/loader.ts"),n=M("./src/loader/fragment.ts"),e=M("./src/demux/chunk-cache.ts"),s=M("./src/demux/transmuxer-interface.ts"),u=M("./src/types/transmuxer.ts"),a=M("./src/controller/fragment-finders.ts"),A=M("./src/utils/discontinuities.ts"),d=M("./src/errors.ts"),i=M("./src/utils/logger.ts");function h(){return h=Object.assign||function(B){for(var w=1;w<arguments.length;w++){var m=arguments[w];for(var c in m)Object.prototype.hasOwnProperty.call(m,c)&&(B[c]=m[c])}return B},h.apply(this,arguments)}function y(B,w){B.prototype=Object.create(w.prototype),B.prototype.constructor=B,v(B,w)}function v(B,w){return v=Object.setPrototypeOf||function(c,o){return c.__proto__=o,c},v(B,w)}var x=100,S=function(B){y(w,B);function w(c,o){var _;return _=B.call(this,c,o,"[audio-stream-controller]")||this,_.videoBuffer=null,_.videoTrackCC=-1,_.waitingVideoCC=-1,_.audioSwitch=!1,_.trackId=-1,_.waitingData=null,_.mainDetails=null,_.bufferFlushed=!1,_._registerListeners(),_}var m=w.prototype;return m.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},m._registerListeners=function(){var o=this.hls;o.on(C.Events.MEDIA_ATTACHED,this.onMediaAttached,this),o.on(C.Events.MEDIA_DETACHING,this.onMediaDetaching,this),o.on(C.Events.MANIFEST_LOADING,this.onManifestLoading,this),o.on(C.Events.LEVEL_LOADED,this.onLevelLoaded,this),o.on(C.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),o.on(C.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),o.on(C.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),o.on(C.Events.ERROR,this.onError,this),o.on(C.Events.BUFFER_RESET,this.onBufferReset,this),o.on(C.Events.BUFFER_CREATED,this.onBufferCreated,this),o.on(C.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),o.on(C.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),o.on(C.Events.FRAG_BUFFERED,this.onFragBuffered,this)},m._unregisterListeners=function(){var o=this.hls;o.off(C.Events.MEDIA_ATTACHED,this.onMediaAttached,this),o.off(C.Events.MEDIA_DETACHING,this.onMediaDetaching,this),o.off(C.Events.MANIFEST_LOADING,this.onManifestLoading,this),o.off(C.Events.LEVEL_LOADED,this.onLevelLoaded,this),o.off(C.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),o.off(C.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),o.off(C.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),o.off(C.Events.ERROR,this.onError,this),o.off(C.Events.BUFFER_RESET,this.onBufferReset,this),o.off(C.Events.BUFFER_CREATED,this.onBufferCreated,this),o.off(C.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),o.off(C.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),o.off(C.Events.FRAG_BUFFERED,this.onFragBuffered,this)},m.onInitPtsFound=function(o,_){var D=_.frag,T=_.id,O=_.initPTS;if(T==="main"){var R=D.cc;this.initPTS[D.cc]=O,this.log("InitPTS for cc: "+R+" found from main: "+O),this.videoTrackCC=R,this.state===E.State.WAITING_INIT_PTS&&this.tick()}},m.startLoad=function(o){if(!this.levels){this.startPosition=o,this.state=E.State.STOPPED;return}var _=this.lastCurrentTime;this.stopLoad(),this.setInterval(x),this.fragLoadError=0,_>0&&o===-1?(this.log("Override startPosition with lastCurrentTime @"+_.toFixed(3)),this.state=E.State.IDLE):(this.loadedmetadata=!1,this.state=E.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=o,this.tick()},m.doTick=function(){switch(this.state){case E.State.IDLE:this.doTickIdle();break;case E.State.WAITING_TRACK:{var o,_=this.levels,D=this.trackId,T=_==null||((o=_[D])===null||o===void 0)?void 0:o.details;if(T){if(this.waitForCdnTuneIn(T))break;this.state=E.State.WAITING_INIT_PTS}break}case E.State.FRAG_LOADING_WAITING_RETRY:{var O,R=performance.now(),U=this.retryDate;(!U||R>=U||(O=this.media)!==null&&O!==void 0&&O.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=E.State.IDLE);break}case E.State.WAITING_INIT_PTS:{var F=this.waitingData;if(F){var Y=F.frag,k=F.part,K=F.cache,z=F.complete;if(this.initPTS[Y.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=E.State.FRAG_LOADING;var j=K.flush(),Q={frag:Y,part:k,payload:j,networkDetails:null};this._handleFragmentLoadProgress(Q),z&&B.prototype._handleFragmentLoadComplete.call(this,Q)}else if(this.videoTrackCC!==this.waitingVideoCC)i.logger.log("Waiting fragment cc ("+Y.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var X=this.getLoadPosition(),te=b.BufferHelper.bufferInfo(this.mediaBuffer,X,this.config.maxBufferHole),oe=Object(a.fragmentWithinToleranceTest)(te.end,this.config.maxFragLookUpTolerance,Y);oe<0&&(i.logger.log("Waiting fragment cc ("+Y.cc+") @ "+Y.start+" cancelled because another fragment at "+te.end+" is needed"),this.clearWaitingFragment())}}else this.state=E.State.IDLE}}this.onTickEnd()},m.clearWaitingFragment=function(){var o=this.waitingData;o&&(this.fragmentTracker.removeFragment(o.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=E.State.IDLE)},m.onTickEnd=function(){var o=this.media;if(!o||!o.readyState)return;var _=this.mediaBuffer?this.mediaBuffer:o,D=_.buffered;!this.loadedmetadata&&D.length&&(this.loadedmetadata=!0),this.lastCurrentTime=o.currentTime},m.doTickIdle=function(){var o,_,D=this.hls,T=this.levels,O=this.media,R=this.trackId,U=D.config;if(!T||!T[R])return;if(!O&&(this.startFragRequested||!U.startFragPrefetch))return;var F=T[R],Y=F.details;if(!Y||Y.live&&this.levelLastLoaded!==R||this.waitForCdnTuneIn(Y)){this.state=E.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,n.ElementaryStreamTypes.AUDIO,r.PlaylistLevelType.AUDIO));var k=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,r.PlaylistLevelType.AUDIO);if(k===null)return;var K=k.len,z=this.getMaxBufferLength(),j=this.audioSwitch;if(K>=z&&!j)return;if(!j&&this._streamEnded(k,Y)){D.trigger(C.Events.BUFFER_EOS,{type:"audio"}),this.state=E.State.ENDED;return}var Q=Y.fragments,X=Q[0].start,te=k.end;if(j){var oe=this.getLoadPosition();te=oe,Y.PTSKnown&&oe<X&&((k.end>X||k.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),O.currentTime=X+.05))}var fe=this.getNextFragment(te,Y);if(!fe){this.bufferFlushed=!0;return}((o=fe.decryptdata)===null||o===void 0?void 0:o.keyFormat)==="identity"&&!((_=fe.decryptdata)!==null&&_!==void 0&&_.key)?this.loadKey(fe,Y):this.loadFragment(fe,Y,te)},m.getMaxBufferLength=function(){var o=B.prototype.getMaxBufferLength.call(this),_=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,r.PlaylistLevelType.MAIN);return _===null?o:Math.max(o,_.len)},m.onMediaDetaching=function(){this.videoBuffer=null,B.prototype.onMediaDetaching.call(this)},m.onAudioTracksUpdated=function(o,_){var D=_.audioTracks;this.resetTransmuxer(),this.levels=D.map(function(T){return new l.Level(T)})},m.onAudioTrackSwitching=function(o,_){var D=!!_.url;this.trackId=_.id;var T=this.fragCurrent;T!=null&&T.loader&&T.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),D?this.setInterval(x):this.resetTransmuxer(),D?(this.audioSwitch=!0,this.state=E.State.IDLE):this.state=E.State.STOPPED,this.tick()},m.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},m.onLevelLoaded=function(o,_){this.mainDetails=_.details},m.onAudioTrackLoaded=function(o,_){var D,T=this.levels,O=_.details,R=_.id;if(!T){this.warn("Audio tracks were reset while loading level "+R);return}this.log("Track "+R+" loaded ["+O.startSN+","+O.endSN+"],duration:"+O.totalduration);var U=T[R],F=0;if(O.live||(D=U.details)!==null&&D!==void 0&&D.live){var Y=this.mainDetails;if(O.fragments[0]||(O.deltaUpdateFailed=!0),O.deltaUpdateFailed||!Y)return;!U.details&&O.hasProgramDateTime&&Y.hasProgramDateTime?(Object(A.alignMediaPlaylistByPDT)(O,Y),F=O.fragments[0].start):F=this.alignPlaylists(O,U.details)}U.details=O,this.levelLastLoaded=R,!this.startFragRequested&&(this.mainDetails||!O.live)&&this.setStartPosition(U.details,F),this.state===E.State.WAITING_TRACK&&!this.waitForCdnTuneIn(O)&&(this.state=E.State.IDLE),this.tick()},m._handleFragmentLoadProgress=function(o){var _,D=o.frag,T=o.part,O=o.payload,R=this.config,U=this.trackId,F=this.levels;if(!F){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+D.sn+" of level "+D.level+" will not be buffered");return}var Y=F[U];console.assert(Y,"Audio track is defined on fragment load progress");var k=Y.details;console.assert(k,"Audio track details are defined on fragment load progress");var K=R.defaultAudioCodec||Y.audioCodec||"mp4a.40.2",z=this.transmuxer;z||(z=this.transmuxer=new s.default(this.hls,r.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var j=this.initPTS[D.cc],Q=(_=D.initSegment)===null||_===void 0?void 0:_.data;if(j!==void 0){var X=!1,te=T?T.index:-1,oe=te!==-1,fe=new u.ChunkMetadata(D.level,D.sn,D.stats.chunkCount,O.byteLength,te,oe);z.push(O,Q,K,"",D,T,k.totalduration,X,fe,j)}else{i.logger.log("Unknown video PTS for cc "+D.cc+", waiting for video PTS before demuxing audio frag "+D.sn+" of ["+k.startSN+" ,"+k.endSN+"],track "+U);var le=this.waitingData=this.waitingData||{frag:D,part:T,cache:new e.default,complete:!1},we=le.cache;we.push(new Uint8Array(O)),this.waitingVideoCC=this.videoTrackCC,this.state=E.State.WAITING_INIT_PTS}},m._handleFragmentLoadComplete=function(o){if(this.waitingData){this.waitingData.complete=!0;return}B.prototype._handleFragmentLoadComplete.call(this,o)},m.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},m.onBufferCreated=function(o,_){var D=_.tracks.audio;D&&(this.mediaBuffer=D.buffer),_.tracks.video&&(this.videoBuffer=_.tracks.video.buffer)},m.onFragBuffered=function(o,_){var D=_.frag,T=_.part;if(D.type!==r.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(D)){this.warn("Fragment "+D.sn+(T?" p: "+T.index:"")+" of level "+D.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}D.sn!=="initSegment"&&(this.fragPrevious=D,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(C.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(D,T)},m.onError=function(o,_){switch(_.details){case d.ErrorDetails.FRAG_LOAD_ERROR:case d.ErrorDetails.FRAG_LOAD_TIMEOUT:case d.ErrorDetails.KEY_LOAD_ERROR:case d.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(r.PlaylistLevelType.AUDIO,_);break;case d.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case d.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==E.State.ERROR&&this.state!==E.State.STOPPED&&(this.state=_.fatal?E.State.ERROR:E.State.IDLE,this.warn(_.details+" while loading frag, switching to "+this.state+" state"));break;case d.ErrorDetails.BUFFER_FULL_ERROR:if(_.parent==="audio"&&(this.state===E.State.PARSING||this.state===E.State.PARSED)){var D=!0,T=this.getFwdBufferInfo(this.mediaBuffer,r.PlaylistLevelType.AUDIO);T&&T.len>.5&&(D=!this.reduceMaxBufferLength(T.len)),D&&(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}},m.onBufferFlushed=function(o,_){var D=_.type;D===n.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},m._handleTransmuxComplete=function(o){var _,D="audio",T=this.hls,O=o.remuxResult,R=o.chunkMeta,U=this.getCurrentContext(R);if(!U){this.warn("The loading context changed while buffering fragment "+R.sn+" of level "+R.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(R.level);return}var F=U.frag,Y=U.part,k=O.audio,K=O.text,z=O.id3,j=O.initSegment;if(this.fragContextChanged(F))return;if(this.state=E.State.PARSING,this.audioSwitch&&k&&this.completeAudioSwitch(),j!=null&&j.tracks&&(this._bufferInitSegment(j.tracks,F,R),T.trigger(C.Events.FRAG_PARSING_INIT_SEGMENT,{frag:F,id:D,tracks:j.tracks})),k){var Q=k.startPTS,X=k.endPTS,te=k.startDTS,oe=k.endDTS;Y&&(Y.elementaryStreams[n.ElementaryStreamTypes.AUDIO]={startPTS:Q,endPTS:X,startDTS:te,endDTS:oe}),F.setElementaryStreamInfo(n.ElementaryStreamTypes.AUDIO,Q,X,te,oe),this.bufferFragmentData(k,F,Y,R)}if(z!=null&&(_=z.samples)!==null&&_!==void 0&&_.length){var fe=h({frag:F,id:D},z);T.trigger(C.Events.FRAG_PARSING_METADATA,fe)}if(K){var le=h({frag:F,id:D},K);T.trigger(C.Events.FRAG_PARSING_USERDATA,le)}},m._bufferInitSegment=function(o,_,D){if(this.state!==E.State.PARSING)return;o.video&&delete o.video;var T=o.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,o);var O=T.initSegment;if(O!=null&&O.byteLength){var R={type:"audio",frag:_,part:null,chunkMeta:D,parent:_.type,data:O};this.hls.trigger(C.Events.BUFFER_APPENDING,R)}this.tick()},m.loadFragment=function(o,_,D){var T=this.fragmentTracker.getState(o);this.fragCurrent=o,(this.audioSwitch||T===f.FragmentState.NOT_LOADED||T===f.FragmentState.PARTIAL)&&(o.sn==="initSegment"?this._loadInitSegment(o):_.live&&!Object(p.isFiniteNumber)(this.initPTS[o.cc])?(this.log("Waiting for video PTS in continuity counter "+o.cc+" of live stream before loading audio fragment "+o.sn+" of level "+this.trackId),this.state=E.State.WAITING_INIT_PTS):(this.startFragRequested=!0,B.prototype.loadFragment.call(this,o,_,D)))},m.completeAudioSwitch=function(){var o=this.hls,_=this.media,D=this.trackId;_&&(this.log("Switching audio track : flushing all audio"),B.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,o.trigger(C.Events.AUDIO_TRACK_SWITCHED,{id:D})},w}(E.default);V.default=S},"./src/controller/audio-track-controller.ts":function(ae,V,M){"use strict";M.r(V);var p=M("./src/events.ts"),E=M("./src/errors.ts"),C=M("./src/controller/base-playlist-controller.ts"),b=M("./src/types/loader.ts");function f(s,u){for(var a=0;a<u.length;a++){var A=u[a];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(s,A.key,A)}}function l(s,u,a){return u&&f(s.prototype,u),a&&f(s,a),s}function r(s,u){s.prototype=Object.create(u.prototype),s.prototype.constructor=s,n(s,u)}function n(s,u){return n=Object.setPrototypeOf||function(A,d){return A.__proto__=d,A},n(s,u)}var e=function(s){r(u,s);function u(A){var d;return d=s.call(this,A,"[audio-track-controller]")||this,d.tracks=[],d.groupId=null,d.tracksInGroup=[],d.trackId=-1,d.trackName="",d.selectDefaultTrack=!0,d.registerListeners(),d}var a=u.prototype;return a.registerListeners=function(){var d=this.hls;d.on(p.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.on(p.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.on(p.Events.LEVEL_LOADING,this.onLevelLoading,this),d.on(p.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),d.on(p.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),d.on(p.Events.ERROR,this.onError,this)},a.unregisterListeners=function(){var d=this.hls;d.off(p.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.off(p.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.off(p.Events.LEVEL_LOADING,this.onLevelLoading,this),d.off(p.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),d.off(p.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),d.off(p.Events.ERROR,this.onError,this)},a.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,s.prototype.destroy.call(this)},a.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.trackName="",this.selectDefaultTrack=!0},a.onManifestParsed=function(d,i){this.tracks=i.audioTracks||[]},a.onAudioTrackLoaded=function(d,i){var h=i.id,y=i.details,v=this.tracksInGroup[h];if(!v){this.warn("Invalid audio track id "+h);return}var x=v.details;v.details=i.details,this.log("audioTrack "+h+" loaded ["+y.startSN+"-"+y.endSN+"]"),h===this.trackId&&(this.retryCount=0,this.playlistLoaded(h,i,x))},a.onLevelLoading=function(d,i){this.switchLevel(i.level)},a.onLevelSwitching=function(d,i){this.switchLevel(i.level)},a.switchLevel=function(d){var i=this.hls.levels[d];if(!(i!=null&&i.audioGroupIds))return;var h=i.audioGroupIds[i.urlId];if(this.groupId!==h){this.groupId=h;var y=this.tracks.filter(function(x){return!h||x.groupId===h});this.selectDefaultTrack&&!y.some(function(x){return x.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=y;var v={audioTracks:y};this.log("Updating audio tracks, "+y.length+' track(s) found in "'+h+'" group-id'),this.hls.trigger(p.Events.AUDIO_TRACKS_UPDATED,v),this.selectInitialTrack()}},a.onError=function(d,i){if(s.prototype.onError.call(this,d,i),i.fatal||!i.context)return;i.context.type===b.PlaylistContextType.AUDIO_TRACK&&i.context.id===this.trackId&&i.context.groupId===this.groupId&&this.retryLoadingOrFail(i)},a.setAudioTrack=function(d){var i=this.tracksInGroup;if(d<0||d>=i.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var h=i[this.trackId];this.log("Now switching to audio-track index "+d);var y=i[d],v=y.id,x=y.groupId,S=x===void 0?"":x,B=y.name,w=y.type,m=y.url;if(this.trackId=d,this.trackName=B,this.selectDefaultTrack=!1,this.hls.trigger(p.Events.AUDIO_TRACK_SWITCHING,{id:v,groupId:S,name:B,type:w,url:m}),y.details&&!y.details.live)return;var c=this.switchParams(y.url,h==null?void 0:h.details);this.loadPlaylist(c)},a.selectInitialTrack=function(){var d=this.tracksInGroup;console.assert(d.length,"Initial audio track should be selected when tracks are known");var i=this.trackName,h=this.findTrackId(i)||this.findTrackId();h!==-1?this.setAudioTrack(h):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(p.Events.ERROR,{type:E.ErrorTypes.MEDIA_ERROR,details:E.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},a.findTrackId=function(d){for(var i=this.tracksInGroup,h=0;h<i.length;h++){var y=i[h];if((!this.selectDefaultTrack||y.default)&&(!d||d===y.name))return y.id}return-1},a.loadPlaylist=function(d){var i=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(i)){var h=i.id,y=i.groupId,v=i.url;if(d)try{v=d.addDirectives(v)}catch(x){this.warn("Could not construct new URL with HLS Delivery Directives: "+x)}this.log("loading audio-track playlist for id: "+h),this.clearTimer(),this.hls.trigger(p.Events.AUDIO_TRACK_LOADING,{url:v,id:h,groupId:y,deliveryDirectives:d||null})}},l(u,[{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(d){this.selectDefaultTrack=!1,this.setAudioTrack(d)}}]),u}(C.default);V.default=e},"./src/controller/base-playlist-controller.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"default",function(){return l});var p=M("./src/polyfills/number.ts"),E=M("./src/types/level.ts"),C=M("./src/controller/level-helper.ts"),b=M("./src/utils/logger.ts"),f=M("./src/errors.ts"),l=function(){function r(e,s){this.hls=void 0,this.timer=-1,this.canLoad=!1,this.retryCount=0,this.log=void 0,this.warn=void 0,this.log=b.logger.log.bind(b.logger,s+":"),this.warn=b.logger.warn.bind(b.logger,s+":"),this.hls=e}var n=r.prototype;return n.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},n.onError=function(s,u){u.fatal&&u.type===f.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(s,u){var a=u==null?void 0:u.renditionReports;if(a)for(var A=0;A<a.length;A++){var d=a[A],i=""+d.URI;if(i===s.substr(-i.length)){var h=parseInt(d["LAST-MSN"]),y=parseInt(d["LAST-PART"]);if(u&&this.hls.config.lowLatencyMode){var v=Math.min(u.age-u.partTarget,u.targetduration);y!==void 0&&v>u.partTarget&&(y+=1)}if(Object(p.isFiniteNumber)(h))return new E.HlsUrlParameters(h,Object(p.isFiniteNumber)(y)?y:void 0,E.HlsSkip.No)}}},n.loadPlaylist=function(s){},n.shouldLoadTrack=function(s){return this.canLoad&&s&&!!s.url&&(!s.details||s.details.live)},n.playlistLoaded=function(s,u,a){var A=this,d=u.details,i=u.stats,h=i.loading.end?Math.max(0,self.performance.now()-i.loading.end):0;if(d.advancedDateTime=Date.now()-h,d.live||a!=null&&a.live){if(d.reloaded(a),a&&this.log("live playlist "+s+" "+(d.advanced?"REFRESHED "+d.lastPartSn+"-"+d.lastPartIndex:"MISSED")),a&&d.fragments.length>0&&Object(C.mergeDetails)(a,d),!this.canLoad||!d.live)return;var y,v=void 0,x=void 0;if(d.canBlockReload&&d.endSN&&d.advanced){var S=this.hls.config.lowLatencyMode,B=d.lastPartSn,w=d.endSN,m=d.lastPartIndex,c=m!==-1,o=B===w,_=S?0:m;c?(v=o?w+1:B,x=o?_:m+1):v=w+1;var D=d.age,T=D+d.ageHeader,O=Math.min(T-d.partTarget,d.targetduration*1.5);if(O>0){if(a&&O>a.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+a.tuneInGoal+" to: "+O+" with playlist age: "+d.age),O=0;else{var R=Math.floor(O/d.targetduration);if(v+=R,x!==void 0){var U=Math.round(O%d.targetduration/d.partTarget);x+=U}this.log("CDN Tune-in age: "+d.ageHeader+"s last advanced "+D.toFixed(2)+"s goal: "+O+" skip sn "+R+" to part "+x)}d.tuneInGoal=O}if(y=this.getDeliveryDirectives(d,u.deliveryDirectives,v,x),S||!o){this.loadPlaylist(y);return}}else y=this.getDeliveryDirectives(d,u.deliveryDirectives,v,x);var F=Object(C.computeReloadInterval)(d,i);v!==void 0&&d.canBlockReload&&(F-=d.partTarget||1),this.log("reload live playlist "+s+" in "+Math.round(F)+" ms"),this.timer=self.setTimeout(function(){return A.loadPlaylist(y)},F)}else this.clearTimer()},n.getDeliveryDirectives=function(s,u,a,A){var d=Object(E.getSkipValue)(s,a);return u!=null&&u.skip&&s.deltaUpdateFailed&&(a=u.msn,A=u.part,d=E.HlsSkip.No),new E.HlsUrlParameters(a,A,d)},n.retryLoadingOrFail=function(s){var u=this,a=this.hls.config,A=this.retryCount<a.levelLoadingMaxRetry;if(A){var d;if(this.retryCount++,s.details.indexOf("LoadTimeOut")>-1&&(d=s.context)!==null&&d!==void 0&&d.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+s.details+'"'),this.loadPlaylist();else{var i=Math.min(Math.pow(2,this.retryCount)*a.levelLoadingRetryDelay,a.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return u.loadPlaylist()},i),this.warn("retry playlist loading #"+this.retryCount+" in "+i+' ms after "'+s.details+'"')}}else this.warn('cannot recover from error "'+s.details+'"'),this.clearTimer(),s.fatal=!0;return A},r}()},"./src/controller/base-stream-controller.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"State",function(){return w}),M.d(V,"default",function(){return m});var p=M("./src/polyfills/number.ts"),E=M("./src/task-loop.ts"),C=M("./src/controller/fragment-tracker.ts"),b=M("./src/utils/buffer-helper.ts"),f=M("./src/utils/logger.ts"),l=M("./src/events.ts"),r=M("./src/errors.ts"),n=M("./src/types/transmuxer.ts"),e=M("./src/utils/mp4-tools.ts"),s=M("./src/utils/discontinuities.ts"),u=M("./src/controller/fragment-finders.ts"),a=M("./src/controller/level-helper.ts"),A=M("./src/loader/fragment-loader.ts"),d=M("./src/crypt/decrypter.ts"),i=M("./src/utils/time-ranges.ts"),h=M("./src/types/loader.ts");function y(c,o){for(var _=0;_<o.length;_++){var D=o[_];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(c,D.key,D)}}function v(c,o,_){return o&&y(c.prototype,o),_&&y(c,_),c}function x(c){if(c===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c}function S(c,o){c.prototype=Object.create(o.prototype),c.prototype.constructor=c,B(c,o)}function B(c,o){return B=Object.setPrototypeOf||function(D,T){return D.__proto__=T,D},B(c,o)}var w={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"},m=function(c){S(o,c);function o(D,T,O){var R;return R=c.call(this)||this,R.hls=void 0,R.fragPrevious=null,R.fragCurrent=null,R.fragmentTracker=void 0,R.transmuxer=null,R._state=w.STOPPED,R.media=void 0,R.mediaBuffer=void 0,R.config=void 0,R.bitrateTest=!1,R.lastCurrentTime=0,R.nextLoadPosition=0,R.startPosition=0,R.loadedmetadata=!1,R.fragLoadError=0,R.retryDate=0,R.levels=null,R.fragmentLoader=void 0,R.levelLastLoaded=null,R.startFragRequested=!1,R.decrypter=void 0,R.initPTS=[],R.onvseeking=null,R.onvended=null,R.logPrefix="",R.log=void 0,R.warn=void 0,R.logPrefix=O,R.log=f.logger.log.bind(f.logger,O+":"),R.warn=f.logger.warn.bind(f.logger,O+":"),R.hls=D,R.fragmentLoader=new A.default(D.config),R.fragmentTracker=T,R.config=D.config,R.decrypter=new d.default(D,D.config),D.on(l.Events.KEY_LOADED,R.onKeyLoaded,x(R)),R}var _=o.prototype;return _.doTick=function(){this.onTickEnd()},_.onTickEnd=function(){},_.startLoad=function(T){},_.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=w.STOPPED},_._streamEnded=function(T,O){var R=this.fragCurrent,U=this.fragmentTracker;if(!O.live&&R&&R.sn===O.endSN&&!T.nextStart){var F=U.getState(R);return F===C.FragmentState.PARTIAL||F===C.FragmentState.OK}return!1},_.onMediaAttached=function(T,O){var R=this.media=this.mediaBuffer=O.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),R.addEventListener("seeking",this.onvseeking),R.addEventListener("ended",this.onvended);var U=this.config;this.levels&&U.autoStartLoad&&this.state===w.STOPPED&&this.startLoad(U.startPosition)},_.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()},_.onMediaSeeking=function(){var T=this.config,O=this.fragCurrent,R=this.media,U=this.mediaBuffer,F=this.state,Y=R?R.currentTime:0,k=b.BufferHelper.bufferInfo(U||R,Y,T.maxBufferHole);if(this.log("media seeking to "+(Object(p.isFiniteNumber)(Y)?Y.toFixed(3):Y)+", state: "+F),F===w.ENDED)this.resetLoadingState();else if(O&&!k.len){var K=T.maxFragLookUpTolerance,z=O.start-K,j=O.start+O.duration+K,Q=Y>j;(Y<z||Q)&&(Q&&O.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),O.loader.abort()),this.resetLoadingState())}R&&(this.lastCurrentTime=Y),!this.loadedmetadata&&!k.len&&(this.nextLoadPosition=this.startPosition=Y),this.tickImmediate()},_.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},_.onKeyLoaded=function(T,O){if(this.state!==w.KEY_LOADING||O.frag!==this.fragCurrent||!this.levels)return;this.state=w.IDLE;var R=this.levels[O.frag.level].details;R&&this.loadFragment(O.frag,R,O.frag.start)},_.onHandlerDestroying=function(){this.stopLoad(),c.prototype.onHandlerDestroying.call(this)},_.onHandlerDestroyed=function(){this.state=w.STOPPED,this.hls.off(l.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,c.prototype.onHandlerDestroyed.call(this)},_.loadKey=function(T,O){this.log("Loading key for "+T.sn+" of ["+O.startSN+"-"+O.endSN+"], "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+T.level),this.state=w.KEY_LOADING,this.fragCurrent=T,this.hls.trigger(l.Events.KEY_LOADING,{frag:T})},_.loadFragment=function(T,O,R){this._loadFragForPlayback(T,O,R)},_._loadFragForPlayback=function(T,O,R){var U=this,F=function(k){if(U.fragContextChanged(T)){U.warn("Fragment "+T.sn+(k.part?" p: "+k.part.index:"")+" of level "+T.level+" was dropped during download."),U.fragmentTracker.removeFragment(T);return}T.stats.chunkCount++,U._handleFragmentLoadProgress(k)};this._doFragLoad(T,O,R,F).then(function(Y){if(!Y)return;U.fragLoadError=0;var k=U.state;if(U.fragContextChanged(T)){(k===w.FRAG_LOADING||k===w.BACKTRACKING||!U.fragCurrent&&k===w.PARSING)&&(U.fragmentTracker.removeFragment(T),U.state=w.IDLE);return}if("payload"in Y&&(U.log("Loaded fragment "+T.sn+" of level "+T.level),U.hls.trigger(l.Events.FRAG_LOADED,Y),U.state===w.BACKTRACKING)){U.fragmentTracker.backtrack(T,Y),U.resetFragmentLoading(T);return}U._handleFragmentLoadComplete(Y)}).catch(function(Y){U.warn(Y),U.resetFragmentLoading(T)})},_.flushMainBuffer=function(T,O,R){if(R===void 0&&(R=null),!(T-O))return;var U={startOffset:T,endOffset:O,type:R};this.fragLoadError=0,this.hls.trigger(l.Events.BUFFER_FLUSHING,U)},_._loadInitSegment=function(T){var O=this;this._doFragLoad(T).then(function(R){if(!R||O.fragContextChanged(T)||!O.levels)throw new Error("init load aborted");return R}).then(function(R){var U=O.hls,F=R.payload,Y=T.decryptdata;if(F&&F.byteLength>0&&Y&&Y.key&&Y.iv&&Y.method==="AES-128"){var k=self.performance.now();return O.decrypter.webCryptoDecrypt(new Uint8Array(F),Y.key.buffer,Y.iv.buffer).then(function(K){var z=self.performance.now();return U.trigger(l.Events.FRAG_DECRYPTED,{frag:T,payload:K,stats:{tstart:k,tdecrypt:z}}),R.payload=K,R})}return R}).then(function(R){var U=O.fragCurrent,F=O.hls,Y=O.levels;if(!Y)throw new Error("init load aborted, missing levels");var k=Y[T.level].details;console.assert(k,"Level details are defined when init segment is loaded");var K=T.stats;O.state=w.IDLE,O.fragLoadError=0,T.data=new Uint8Array(R.payload),K.parsing.start=K.buffering.start=self.performance.now(),K.parsing.end=K.buffering.end=self.performance.now(),R.frag===U&&F.trigger(l.Events.FRAG_BUFFERED,{stats:K,frag:U,part:null,id:T.type}),O.tick()}).catch(function(R){O.warn(R),O.resetFragmentLoading(T)})},_.fragContextChanged=function(T){var O=this.fragCurrent;return!T||!O||T.level!==O.level||T.sn!==O.sn||T.urlId!==O.urlId},_.fragBufferedComplete=function(T,O){var R=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+T.type+" sn: "+T.sn+(O?" part: "+O.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+T.level+" "+i.default.toString(b.BufferHelper.getBuffered(R))),this.state=w.IDLE,this.tick()},_._handleFragmentLoadComplete=function(T){var O=this.transmuxer;if(!O)return;var R=T.frag,U=T.part,F=T.partsLoaded,Y=!F||F.length===0||F.some(function(K){return!K}),k=new n.ChunkMetadata(R.level,R.sn,R.stats.chunkCount+1,0,U?U.index:-1,!Y);O.flush(k)},_._handleFragmentLoadProgress=function(T){},_._doFragLoad=function(T,O,R,U){var F=this;if(R===void 0&&(R=null),!this.levels)throw new Error("frag load aborted, missing levels");if(R=Math.max(T.start,R||0),this.config.lowLatencyMode&&O){var Y=O.partList;if(Y&&U){R>T.end&&O.fragmentHint&&(T=O.fragmentHint);var k=this.getNextPart(Y,T,R);if(k>-1){var K=Y[k];return this.log("Loading part sn: "+T.sn+" p: "+K.index+" cc: "+T.cc+" of playlist ["+O.startSN+"-"+O.endSN+"] parts [0-"+k+"-"+(Y.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+T.level+", target: "+parseFloat(R.toFixed(3))),this.nextLoadPosition=K.start+K.duration,this.state=w.FRAG_LOADING,this.hls.trigger(l.Events.FRAG_LOADING,{frag:T,part:Y[k],targetBufferTime:R}),this.doFragPartsLoad(T,Y,k,U).catch(function(z){return F.handleFragLoadError(z)})}else if(!T.url||this.loadedEndOfParts(Y,R))return Promise.resolve(null)}}return this.log("Loading fragment "+T.sn+" cc: "+T.cc+" "+(O?"of ["+O.startSN+"-"+O.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+T.level+", target: "+parseFloat(R.toFixed(3))),Object(p.isFiniteNumber)(T.sn)&&!this.bitrateTest&&(this.nextLoadPosition=T.start+T.duration),this.state=w.FRAG_LOADING,this.hls.trigger(l.Events.FRAG_LOADING,{frag:T,targetBufferTime:R}),this.fragmentLoader.load(T,U).catch(function(z){return F.handleFragLoadError(z)})},_.doFragPartsLoad=function(T,O,R,U){var F=this;return new Promise(function(Y,k){var K=[],z=function j(Q){var X=O[Q];F.fragmentLoader.loadPart(T,X,U).then(function(te){K[X.index]=te;var oe=te.part;F.hls.trigger(l.Events.FRAG_LOADED,te);var fe=O[Q+1];if(fe&&fe.fragment===T)j(Q+1);else return Y({frag:T,part:oe,partsLoaded:K})}).catch(k)};z(R)})},_.handleFragLoadError=function(T){var O=T.data;return O&&O.details===r.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(O.frag,O.part):this.hls.trigger(l.Events.ERROR,O),null},_._handleTransmuxerFlush=function(T){var O=this.getCurrentContext(T);if(!O||this.state!==w.PARSING){this.fragCurrent||(this.state=w.IDLE);return}var R=O.frag,U=O.part,F=O.level,Y=self.performance.now();R.stats.parsing.end=Y,U&&(U.stats.parsing.end=Y),this.updateLevelTiming(R,U,F,T.partial)},_.getCurrentContext=function(T){var O=this.levels,R=T.level,U=T.sn,F=T.part;if(!O||!O[R])return this.warn("Levels object was unset while buffering fragment "+U+" of level "+R+". The current chunk will not be buffered."),null;var Y=O[R],k=F>-1?Object(a.getPartWith)(Y,U,F):null,K=k?k.fragment:Object(a.getFragmentWithSN)(Y,U,this.fragCurrent);return K?{frag:K,part:k,level:Y}:null},_.bufferFragmentData=function(T,O,R,U){if(!T||this.state!==w.PARSING)return;var F=T.data1,Y=T.data2,k=F;if(F&&Y&&(k=Object(e.appendUint8Array)(F,Y)),!k||!k.length)return;var K={type:T.type,frag:O,part:R,chunkMeta:U,parent:O.type,data:k};this.hls.trigger(l.Events.BUFFER_APPENDING,K),T.dropped&&T.independent&&!R&&this.flushBufferGap(O)},_.flushBufferGap=function(T){var O=this.media;if(!O)return;if(!b.BufferHelper.isBuffered(O,O.currentTime)){this.flushMainBuffer(0,T.start);return}var R=O.currentTime,U=b.BufferHelper.bufferInfo(O,R,0),F=T.duration,Y=Math.min(this.config.maxFragLookUpTolerance*2,F*.25),k=Math.max(Math.min(T.start-Y,U.end-Y),R+Y);T.start-k>Y&&this.flushMainBuffer(k,T.start)},_.getFwdBufferInfo=function(T,O){var R=this.config,U=this.getLoadPosition();if(!Object(p.isFiniteNumber)(U))return null;var F=b.BufferHelper.bufferInfo(T,U,R.maxBufferHole);if(F.len===0&&F.nextStart!==void 0){var Y=this.fragmentTracker.getBufferedFrag(U,O);if(Y&&F.nextStart<Y.end)return b.BufferHelper.bufferInfo(T,U,Math.max(F.nextStart,R.maxBufferHole))}return F},_.getMaxBufferLength=function(T){var O=this.config,R;return T?R=Math.max(8*O.maxBufferSize/T,O.maxBufferLength):R=O.maxBufferLength,Math.min(R,O.maxMaxBufferLength)},_.reduceMaxBufferLength=function(T){var O=this.config,R=T||O.maxBufferLength;return O.maxMaxBufferLength>=R?(O.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+O.maxMaxBufferLength+"s"),!0):!1},_.getNextFragment=function(T,O){var R,U,F=O.fragments,Y=F.length;if(!Y)return null;var k=this.config,K=F[0].start,z;if(O.live){var j=k.initialLiveManifestSize;if(Y<j)return this.warn("Not enough fragments to start playback (have: "+Y+", need: "+j+")"),null;!O.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(z=this.getInitialLiveFragment(O,F),this.startPosition=z?this.hls.liveSyncPosition||z.start:T)}else T<=K&&(z=F[0]);if(!z){var Q=k.lowLatencyMode?O.partEnd:O.fragmentEnd;z=this.getFragmentAtPosition(T,Q,O)}return(R=z)!==null&&R!==void 0&&R.initSegment&&!((U=z)!==null&&U!==void 0&&U.initSegment.data)&&!this.bitrateTest&&(z=z.initSegment),z},_.getNextPart=function(T,O,R){for(var U=-1,F=!1,Y=!0,k=0,K=T.length;k<K;k++){var z=T[k];if(Y=Y&&!z.independent,U>-1&&R<z.start)break;var j=z.loaded;!j&&(F||z.independent||Y)&&z.fragment===O&&(U=k),F=j}return U},_.loadedEndOfParts=function(T,O){var R=T[T.length-1];return R&&O>R.start&&R.loaded},_.getInitialLiveFragment=function(T,O){var R=this.fragPrevious,U=null;if(R){if(T.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+R.programDateTime),U=Object(u.findFragmentByPDT)(O,R.endProgramDateTime,this.config.maxFragLookUpTolerance)),!U){var F=R.sn+1;if(F>=T.startSN&&F<=T.endSN){var Y=O[F-T.startSN];R.cc===Y.cc&&(U=Y,this.log("Live playlist, switching playlist, load frag with next SN: "+U.sn))}U||(U=Object(u.findFragWithCC)(O,R.cc),U&&this.log("Live playlist, switching playlist, load frag with same CC: "+U.sn))}}else{var k=this.hls.liveSyncPosition;k!==null&&(U=this.getFragmentAtPosition(k,this.bitrateTest?T.fragmentEnd:T.edge,T))}return U},_.getFragmentAtPosition=function(T,O,R){var U=this.config,F=this.fragPrevious,Y=R.fragments,k=R.endSN,K=R.fragmentHint,z=U.maxFragLookUpTolerance,j=!!(U.lowLatencyMode&&R.partList&&K);j&&K&&!this.bitrateTest&&(Y=Y.concat(K),k=K.sn);var Q;if(T<O){var X=T>O-z?0:z;Q=Object(u.findFragmentByPTS)(F,Y,T,X)}else Q=Y[Y.length-1];if(Q){var te=Q.sn-R.startSN,oe=F&&Q.level===F.level,fe=Y[te+1],le=this.fragmentTracker.getState(Q);if(le===C.FragmentState.BACKTRACKED){Q=null;for(var we=te;Y[we]&&this.fragmentTracker.getState(Y[we])===C.FragmentState.BACKTRACKED;)F?Q=Y[we--]:Q=Y[--we];Q||(Q=fe)}else F&&Q.sn===F.sn&&!j&&(oe&&(Q.sn<k&&this.fragmentTracker.getState(fe)!==C.FragmentState.OK?(this.log("SN "+Q.sn+" just loaded, load next one: "+fe.sn),Q=fe):Q=null))}return Q},_.synchronizeToLiveEdge=function(T){var O=this.config,R=this.media;if(!R)return;var U=this.hls.liveSyncPosition,F=R.currentTime,Y=T.fragments[0].start,k=T.edge,K=F>=Y-O.maxFragLookUpTolerance&&F<=k;if(U!==null&&R.duration>U&&(F<U||!K)){var z=O.liveMaxLatencyDuration!==void 0?O.liveMaxLatencyDuration:O.liveMaxLatencyDurationCount*T.targetduration;(!K&&R.readyState<4||F<k-z)&&(this.loadedmetadata||(this.nextLoadPosition=U),R.readyState&&(this.warn("Playback: "+F.toFixed(3)+" is located too far from the end of live sliding playlist: "+k+", reset currentTime to : "+U.toFixed(3)),R.currentTime=U))}},_.alignPlaylists=function(T,O){var R=this.levels,U=this.levelLastLoaded,F=this.fragPrevious,Y=U!==null?R[U]:null,k=T.fragments.length;if(!k)return this.warn("No fragments in live playlist"),0;var K=T.fragments[0].start,z=!O,j=T.alignedSliding&&Object(p.isFiniteNumber)(K);if(z||!j&&!K){Object(s.alignStream)(F,Y,T);var Q=T.fragments[0].start;return this.log("Live playlist sliding: "+Q.toFixed(2)+" start-sn: "+(O?O.startSN:"na")+"->"+T.startSN+" prev-sn: "+(F?F.sn:"na")+" fragments: "+k),Q}return K},_.waitForCdnTuneIn=function(T){var O=3;return T.live&&T.canBlockReload&&T.tuneInGoal>Math.max(T.partHoldBack,T.partTarget*O)},_.setStartPosition=function(T,O){var R=this.startPosition;if(R<O&&(R=-1),R===-1||this.lastCurrentTime===-1){var U=T.startTimeOffset;Object(p.isFiniteNumber)(U)?(R=O+U,U<0&&(R+=T.totalduration),R=Math.min(Math.max(O,R),O+T.totalduration),this.log("Start time offset "+U+" found in playlist, adjust startPosition to "+R),this.startPosition=R):T.live?R=this.hls.liveSyncPosition||O:this.startPosition=R=0,this.lastCurrentTime=R}this.nextLoadPosition=R},_.getLoadPosition=function(){var T=this.media,O=0;return this.loadedmetadata&&T?O=T.currentTime:this.nextLoadPosition&&(O=this.nextLoadPosition),O},_.handleFragLoadAborted=function(T,O){this.transmuxer&&T.sn!=="initSegment"&&T.stats.aborted&&(this.warn("Fragment "+T.sn+(O?" part"+O.index:"")+" of level "+T.level+" was aborted"),this.resetFragmentLoading(T))},_.resetFragmentLoading=function(T){(!this.fragCurrent||!this.fragContextChanged(T))&&(this.state=w.IDLE)},_.onFragmentOrKeyLoadError=function(T,O){if(O.fatal)return;var R=O.frag;if(!R||R.type!==T)return;var U=this.fragCurrent;console.assert(U&&R.sn===U.sn&&R.level===U.level&&R.urlId===U.urlId,"Frag load error must match current frag to retry");var F=this.config;if(this.fragLoadError+1<=F.fragLoadingMaxRetry){if(this.resetLiveStartWhenNotLoaded(R.level))return;var Y=Math.min(Math.pow(2,this.fragLoadError)*F.fragLoadingRetryDelay,F.fragLoadingMaxRetryTimeout);this.warn("Fragment "+R.sn+" of "+T+" "+R.level+" failed to load, retrying in "+Y+"ms"),this.retryDate=self.performance.now()+Y,this.fragLoadError++,this.state=w.FRAG_LOADING_WAITING_RETRY}else O.levelRetry?(T===h.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=w.IDLE):(f.logger.error(O.details+" reaches max retry, redispatch as fatal ..."),O.fatal=!0,this.hls.stopLoad(),this.state=w.ERROR)},_.afterBufferFlushed=function(T,O,R){if(!T)return;var U=b.BufferHelper.getBuffered(T);this.fragmentTracker.detectEvictedFragments(O,U,R),this.state===w.ENDED&&this.resetLoadingState()},_.resetLoadingState=function(){this.fragCurrent=null,this.fragPrevious=null,this.state=w.IDLE},_.resetLiveStartWhenNotLoaded=function(T){if(!this.loadedmetadata){this.startFragRequested=!1;var O=this.levels?this.levels[T].details:null;if(O!=null&&O.live)return this.startPosition=-1,this.setStartPosition(O,0),this.resetLoadingState(),!0;this.nextLoadPosition=this.startPosition}return!1},_.updateLevelTiming=function(T,O,R,U){var F=this,Y=R.details;console.assert(!!Y,"level.details must be defined");var k=Object.keys(T.elementaryStreams).reduce(function(K,z){var j=T.elementaryStreams[z];if(j){var Q=j.endPTS-j.startPTS;if(Q<=0)return F.warn("Could not parse fragment "+T.sn+" "+z+" duration reliably ("+Q+") resetting transmuxer to fallback to playlist timing"),F.resetTransmuxer(),K||!1;var X=U?0:Object(a.updateFragPTSDTS)(Y,T,j.startPTS,j.endPTS,j.startDTS,j.endDTS);return F.hls.trigger(l.Events.LEVEL_PTS_UPDATED,{details:Y,level:R,drift:X,type:z,frag:T,start:j.startPTS,end:j.endPTS}),!0}return K},!1);k?(this.state=w.PARSED,this.hls.trigger(l.Events.FRAG_PARSED,{frag:T,part:O})):this.resetLoadingState()},_.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},v(o,[{key:"state",get:function(){return this._state},set:function(T){var O=this._state;O!==T&&(this._state=T,this.log(O+"->"+T))}}]),o}(E.default)},"./src/controller/buffer-controller.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"default",function(){return u});var p=M("./src/polyfills/number.ts"),E=M("./src/events.ts"),C=M("./src/utils/logger.ts"),b=M("./src/errors.ts"),f=M("./src/utils/buffer-helper.ts"),l=M("./src/utils/mediasource-helper.ts"),r=M("./src/loader/fragment.ts"),n=M("./src/controller/buffer-operation-queue.ts"),e=Object(l.getMediaSource)(),s=/([ha]vc.)(?:\.[^.,]+)+/,u=function(){function a(d){var i=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 h=i.hls,y=i.media,v=i.mediaSource;C.logger.log("[buffer-controller]: Media source opened"),y&&(i.updateMediaElementDuration(),h.trigger(E.Events.MEDIA_ATTACHED,{media:y})),v&&v.removeEventListener("sourceopen",i._onMediaSourceOpen),i.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=d,this._initSourceBuffer(),this.registerListeners()}var A=a.prototype;return A.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},A.destroy=function(){this.unregisterListeners(),this.details=null},A.registerListeners=function(){var i=this.hls;i.on(E.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),i.on(E.Events.MEDIA_DETACHING,this.onMediaDetaching,this),i.on(E.Events.MANIFEST_PARSED,this.onManifestParsed,this),i.on(E.Events.BUFFER_RESET,this.onBufferReset,this),i.on(E.Events.BUFFER_APPENDING,this.onBufferAppending,this),i.on(E.Events.BUFFER_CODECS,this.onBufferCodecs,this),i.on(E.Events.BUFFER_EOS,this.onBufferEos,this),i.on(E.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),i.on(E.Events.LEVEL_UPDATED,this.onLevelUpdated,this),i.on(E.Events.FRAG_PARSED,this.onFragParsed,this),i.on(E.Events.FRAG_CHANGED,this.onFragChanged,this)},A.unregisterListeners=function(){var i=this.hls;i.off(E.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),i.off(E.Events.MEDIA_DETACHING,this.onMediaDetaching,this),i.off(E.Events.MANIFEST_PARSED,this.onManifestParsed,this),i.off(E.Events.BUFFER_RESET,this.onBufferReset,this),i.off(E.Events.BUFFER_APPENDING,this.onBufferAppending,this),i.off(E.Events.BUFFER_CODECS,this.onBufferCodecs,this),i.off(E.Events.BUFFER_EOS,this.onBufferEos,this),i.off(E.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),i.off(E.Events.LEVEL_UPDATED,this.onLevelUpdated,this),i.off(E.Events.FRAG_PARSED,this.onFragParsed,this),i.off(E.Events.FRAG_CHANGED,this.onFragChanged,this)},A._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new n.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},A.onManifestParsed=function(i,h){var y=2;(h.audio&&!h.video||!h.altAudio)&&(y=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=y,this.details=null,C.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},A.onMediaAttaching=function(i,h){var y=this.media=h.media;if(y&&e){var v=this.mediaSource=new e;v.addEventListener("sourceopen",this._onMediaSourceOpen),v.addEventListener("sourceended",this._onMediaSourceEnded),v.addEventListener("sourceclose",this._onMediaSourceClose),y.src=self.URL.createObjectURL(v),this._objectUrl=y.src}},A.onMediaDetaching=function(){var i=this.media,h=this.mediaSource,y=this._objectUrl;if(h){if(C.logger.log("[buffer-controller]: media source detaching"),h.readyState==="open")try{h.endOfStream()}catch(v){C.logger.warn("[buffer-controller]: onMediaDetaching: "+v.message+" while calling endOfStream")}this.onBufferReset(),h.removeEventListener("sourceopen",this._onMediaSourceOpen),h.removeEventListener("sourceended",this._onMediaSourceEnded),h.removeEventListener("sourceclose",this._onMediaSourceClose),i&&(y&&self.URL.revokeObjectURL(y),i.src===y?(i.removeAttribute("src"),i.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(E.Events.MEDIA_DETACHED,void 0)},A.onBufferReset=function(){var i=this;this.getSourceBufferTypes().forEach(function(h){var y=i.sourceBuffer[h];try{y&&(i.removeBufferListeners(h),i.mediaSource&&i.mediaSource.removeSourceBuffer(y),i.sourceBuffer[h]=void 0)}catch(v){C.logger.warn("[buffer-controller]: Failed to reset the "+h+" buffer",v)}}),this._initSourceBuffer()},A.onBufferCodecs=function(i,h){var y=this,v=this.getSourceBufferTypes().length;if(Object.keys(h).forEach(function(x){if(v){var S=y.tracks[x];if(S&&typeof S.buffer.changeType=="function"){var B=h[x],w=B.codec,m=B.levelCodec,c=B.container,o=(S.levelCodec||S.codec).replace(s,"$1"),_=(m||w).replace(s,"$1");if(o!==_){var D=c+";codecs="+(m||w);y.appendChangeType(x,D)}}}else y.pendingTracks[x]=h[x]}),v)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},A.appendChangeType=function(i,h){var y=this,v=this.operationQueue,x={execute:function(){var B=y.sourceBuffer[i];B&&(C.logger.log("[buffer-controller]: changing "+i+" sourceBuffer type to "+h),B.changeType(h)),v.shiftAndExecuteNext(i)},onStart:function(){},onComplete:function(){},onError:function(B){C.logger.warn("[buffer-controller]: Failed to change "+i+" SourceBuffer type",B)}};v.append(x,i)},A.onBufferAppending=function(i,h){var y=this,v=this.hls,x=this.operationQueue,S=this.tracks,B=h.data,w=h.type,m=h.frag,c=h.part,o=h.chunkMeta,_=o.buffering[w],D=self.performance.now();_.start=D;var T=m.stats.buffering,O=c?c.stats.buffering:null;T.start===0&&(T.start=D),O&&O.start===0&&(O.start=D);var R=S.audio,U=w==="audio"&&o.id===1&&(R==null?void 0:R.container)==="audio/mpeg",F={execute:function(){if(_.executeStart=self.performance.now(),U){var k=y.sourceBuffer[w];if(k){var K=m.start-k.timestampOffset;Math.abs(K)>=.1&&(C.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+m.start+" (delta: "+K+") sn: "+m.sn+")"),k.timestampOffset=m.start)}}y.appendExecutor(B,w)},onStart:function(){},onComplete:function(){var k=self.performance.now();_.executeEnd=_.end=k,T.first===0&&(T.first=k),O&&O.first===0&&(O.first=k);var K=y.sourceBuffer,z={};for(var j in K)z[j]=f.BufferHelper.getBuffered(K[j]);y.appendError=0,y.hls.trigger(E.Events.BUFFER_APPENDED,{type:w,frag:m,part:c,chunkMeta:o,parent:m.type,timeRanges:z})},onError:function(k){C.logger.error("[buffer-controller]: Error encountered while trying to append to the "+w+" SourceBuffer",k);var K={type:b.ErrorTypes.MEDIA_ERROR,parent:m.type,details:b.ErrorDetails.BUFFER_APPEND_ERROR,err:k,fatal:!1};k.code===DOMException.QUOTA_EXCEEDED_ERR?K.details=b.ErrorDetails.BUFFER_FULL_ERROR:(y.appendError++,K.details=b.ErrorDetails.BUFFER_APPEND_ERROR,y.appendError>v.config.appendErrorMaxRetry&&(C.logger.error("[buffer-controller]: Failed "+v.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),K.fatal=!0)),v.trigger(E.Events.ERROR,K)}};x.append(F,w)},A.onBufferFlushing=function(i,h){var y=this,v=this.operationQueue,x=function(B){return{execute:y.removeExecutor.bind(y,B,h.startOffset,h.endOffset),onStart:function(){},onComplete:function(){y.hls.trigger(E.Events.BUFFER_FLUSHED,{type:B})},onError:function(m){C.logger.warn("[buffer-controller]: Failed to remove from "+B+" SourceBuffer",m)}}};h.type?v.append(x(h.type),h.type):this.getSourceBufferTypes().forEach(function(S){v.append(x(S),S)})},A.onFragParsed=function(i,h){var y=this,v=h.frag,x=h.part,S=[],B=x?x.elementaryStreams:v.elementaryStreams;B[r.ElementaryStreamTypes.AUDIOVIDEO]?S.push("audiovideo"):(B[r.ElementaryStreamTypes.AUDIO]&&S.push("audio"),B[r.ElementaryStreamTypes.VIDEO]&&S.push("video"));var w=function(){var c=self.performance.now();v.stats.buffering.end=c,x&&(x.stats.buffering.end=c);var o=x?x.stats:v.stats;y.hls.trigger(E.Events.FRAG_BUFFERED,{frag:v,part:x,stats:o,id:v.type})};S.length===0&&C.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+v.type+" level: "+v.level+" sn: "+v.sn),this.blockBuffers(w,S)},A.onFragChanged=function(i,h){this.flushBackBuffer()},A.onBufferEos=function(i,h){var y=this,v=this.getSourceBufferTypes().reduce(function(x,S){var B=y.sourceBuffer[S];return(!h.type||h.type===S)&&(B&&!B.ended&&(B.ended=!0,C.logger.log("[buffer-controller]: "+S+" sourceBuffer now EOS"))),x&&!!(!B||B.ended)},!0);v&&this.blockBuffers(function(){var x=y.mediaSource;if(!x||x.readyState!=="open")return;x.endOfStream()})},A.onLevelUpdated=function(i,h){var y=h.details;if(!y.fragments.length)return;this.details=y,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},A.flushBackBuffer=function(){var i=this.hls,h=this.details,y=this.media,v=this.sourceBuffer;if(!y||h===null)return;var x=this.getSourceBufferTypes();if(!x.length)return;var S=h.live&&i.config.liveBackBufferLength!==null?i.config.liveBackBufferLength:i.config.backBufferLength;if(!Object(p.isFiniteNumber)(S)||S<0)return;var B=y.currentTime,w=h.levelTargetDuration,m=Math.max(S,w),c=Math.floor(B/w)*w-m;x.forEach(function(o){var _=v[o];if(_){var D=f.BufferHelper.getBuffered(_);D.length>0&&c>D.start(0)&&(i.trigger(E.Events.BACK_BUFFER_REACHED,{bufferEnd:c}),h.live&&i.trigger(E.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:c}),i.trigger(E.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:c,type:o}))}})},A.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var i=this.details,h=this.hls,y=this.media,v=this.mediaSource,x=i.fragments[0].start+i.totalduration,S=y.duration,B=Object(p.isFiniteNumber)(v.duration)?v.duration:0;i.live&&h.config.liveDurationInfinity?(C.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),v.duration=Infinity,this.updateSeekableRange(i)):(x>B&&x>S||!Object(p.isFiniteNumber)(S))&&(C.logger.log("[buffer-controller]: Updating Media Source duration to "+x.toFixed(3)),v.duration=x)},A.updateSeekableRange=function(i){var h=this.mediaSource,y=i.fragments,v=y.length;if(v&&i.live&&h!==null&&h!==void 0&&h.setLiveSeekableRange){var x=Math.max(0,y[0].start),S=Math.max(x,x+i.totalduration);h.setLiveSeekableRange(x,S)}},A.checkPendingTracks=function(){var i=this.bufferCodecEventsExpected,h=this.operationQueue,y=this.pendingTracks,v=Object.keys(y).length;if(v&&!i||v===2){this.createSourceBuffers(y),this.pendingTracks={};var x=this.getSourceBufferTypes();if(x.length===0){this.hls.trigger(E.Events.ERROR,{type:b.ErrorTypes.MEDIA_ERROR,details:b.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}x.forEach(function(S){h.executeNext(S)})}},A.createSourceBuffers=function(i){var h=this.sourceBuffer,y=this.mediaSource;if(!y)throw Error("createSourceBuffers called when mediaSource was null");var v=0;for(var x in i)if(!h[x]){var S=i[x];if(!S)throw Error("source buffer exists for track "+x+", however track does not");var B=S.levelCodec||S.codec,w=S.container+";codecs="+B;C.logger.log("[buffer-controller]: creating sourceBuffer("+w+")");try{var m=h[x]=y.addSourceBuffer(w),c=x;this.addBufferListener(c,"updatestart",this._onSBUpdateStart),this.addBufferListener(c,"updateend",this._onSBUpdateEnd),this.addBufferListener(c,"error",this._onSBUpdateError),this.tracks[x]={buffer:m,codec:B,container:S.container,levelCodec:S.levelCodec,id:S.id},v++}catch(o){C.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+o.message),this.hls.trigger(E.Events.ERROR,{type:b.ErrorTypes.MEDIA_ERROR,details:b.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:o,mimeType:w})}}v&&this.hls.trigger(E.Events.BUFFER_CREATED,{tracks:this.tracks})},A._onSBUpdateStart=function(i){var h=this.operationQueue,y=h.current(i);y.onStart()},A._onSBUpdateEnd=function(i){var h=this.operationQueue,y=h.current(i);y.onComplete(),h.shiftAndExecuteNext(i)},A._onSBUpdateError=function(i,h){C.logger.error("[buffer-controller]: "+i+" SourceBuffer error",h),this.hls.trigger(E.Events.ERROR,{type:b.ErrorTypes.MEDIA_ERROR,details:b.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var y=this.operationQueue.current(i);y&&y.onError(h)},A.removeExecutor=function(i,h,y){var v=this.media,x=this.mediaSource,S=this.operationQueue,B=this.sourceBuffer,w=B[i];if(!v||!x||!w){C.logger.warn("[buffer-controller]: Attempting to remove from the "+i+" SourceBuffer, but it does not exist"),S.shiftAndExecuteNext(i);return}var m=Object(p.isFiniteNumber)(v.duration)?v.duration:Infinity,c=Object(p.isFiniteNumber)(x.duration)?x.duration:Infinity,o=Math.max(0,h),_=Math.min(y,m,c);_>o?(C.logger.log("[buffer-controller]: Removing ["+o+","+_+"] from the "+i+" SourceBuffer"),console.assert(!w.updating,i+" sourceBuffer must not be updating"),w.remove(o,_)):S.shiftAndExecuteNext(i)},A.appendExecutor=function(i,h){var y=this.operationQueue,v=this.sourceBuffer,x=v[h];if(!x){C.logger.warn("[buffer-controller]: Attempting to append to the "+h+" SourceBuffer, but it does not exist"),y.shiftAndExecuteNext(h);return}x.ended=!1,console.assert(!x.updating,h+" sourceBuffer must not be updating"),x.appendBuffer(i)},A.blockBuffers=function(i,h){var y=this;if(h===void 0&&(h=this.getSourceBufferTypes()),!h.length){C.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(i);return}var v=this.operationQueue,x=h.map(function(S){return v.appendBlocker(S)});Promise.all(x).then(function(){i(),h.forEach(function(S){var B=y.sourceBuffer[S];(!B||!B.updating)&&v.shiftAndExecuteNext(S)})})},A.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},A.addBufferListener=function(i,h,y){var v=this.sourceBuffer[i];if(!v)return;var x=y.bind(this,i);this.listeners[i].push({event:h,listener:x}),v.addEventListener(h,x)},A.removeBufferListeners=function(i){var h=this.sourceBuffer[i];if(!h)return;this.listeners[i].forEach(function(y){h.removeEventListener(y.event,y.listener)})},a}()},"./src/controller/buffer-operation-queue.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"default",function(){return E});var p=M("./src/utils/logger.ts"),E=function(){function C(f){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=f}var b=C.prototype;return b.append=function(l,r){var n=this.queues[r];n.push(l),n.length===1&&this.buffers[r]&&this.executeNext(r)},b.insertAbort=function(l,r){var n=this.queues[r];n.unshift(l),this.executeNext(r)},b.appendBlocker=function(l){var r,n=new Promise(function(s){r=s}),e={execute:r,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(e,l),n},b.executeNext=function(l){var r=this.buffers,n=this.queues,e=r[l],s=n[l];if(s.length){var u=s[0];try{u.execute()}catch(a){p.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),u.onError(a),(!e||!e.updating)&&(s.shift(),this.executeNext(l))}}},b.shiftAndExecuteNext=function(l){this.queues[l].shift(),this.executeNext(l)},b.current=function(l){return this.queues[l][0]},C}()},"./src/controller/cap-level-controller.ts":function(ae,V,M){"use strict";M.r(V);var p=M("./src/events.ts");function E(f,l){for(var r=0;r<l.length;r++){var n=l[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(f,n.key,n)}}function C(f,l,r){return l&&E(f.prototype,l),r&&E(f,r),f}var b=function(){function f(r){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=r,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var l=f.prototype;return l.setStreamController=function(n){this.streamController=n},l.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},l.registerListeners=function(){var n=this.hls;n.on(p.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),n.on(p.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.on(p.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.on(p.Events.BUFFER_CODECS,this.onBufferCodecs,this),n.on(p.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},l.unregisterListener=function(){var n=this.hls;n.off(p.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),n.off(p.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.off(p.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.off(p.Events.BUFFER_CODECS,this.onBufferCodecs,this),n.off(p.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},l.onFpsDropLevelCapping=function(n,e){f.isLevelAllowed(e.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(e.droppedLevel)},l.onMediaAttaching=function(n,e){this.media=e.media instanceof HTMLVideoElement?e.media:null},l.onManifestParsed=function(n,e){var s=this.hls;this.restrictedLevels=[],this.firstLevel=e.firstLevel,s.config.capLevelToPlayerSize&&e.video&&this.startCapping()},l.onBufferCodecs=function(n,e){var s=this.hls;s.config.capLevelToPlayerSize&&e.video&&this.startCapping()},l.onMediaDetaching=function(){this.stopCapping()},l.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}}},l.getMaxLevel=function(n){var e=this,s=this.hls.levels;if(!s.length)return-1;var u=s.filter(function(a,A){return f.isLevelAllowed(A,e.restrictedLevels)&&A<=n});return this.clientRect=null,f.getMaxLevelByMediaSize(u,this.mediaWidth,this.mediaHeight)},l.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()},l.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},l.getDimensions=function(){if(this.clientRect)return this.clientRect;var n=this.media,e={width:0,height:0};if(n){var s=n.getBoundingClientRect();e.width=s.width,e.height=s.height,!e.width&&!e.height&&(e.width=s.right-s.left||n.width||0,e.height=s.bottom-s.top||n.height||0)}return this.clientRect=e,e},f.isLevelAllowed=function(n,e){return e===void 0&&(e=[]),e.indexOf(n)===-1},f.getMaxLevelByMediaSize=function(n,e,s){if(!n||!n.length)return-1;for(var u=function(h,y){return y?h.width!==y.width||h.height!==y.height:!0},a=n.length-1,A=0;A<n.length;A+=1){var d=n[A];if((d.width>=e||d.height>=s)&&u(d,n[A+1])){a=A;break}}return a},C(f,[{key:"mediaWidth",get:function(){return this.getDimensions().width*f.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*f.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var n=1;try{n=self.devicePixelRatio}catch(e){}return n}}]),f}();V.default=b},"./src/controller/cmcd-controller.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"default",function(){return u});var p=M("./src/events.ts"),E=M("./src/types/cmcd.ts"),C=M("./src/utils/buffer-helper.ts"),b=M("./src/utils/logger.ts");function f(a,A){for(var d=0;d<A.length;d++){var i=A[d];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}function l(a,A,d){return A&&f(a.prototype,A),d&&f(a,d),a}function r(a,A){var d=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(d)return(d=d.call(a)).next.bind(d);if(Array.isArray(a)||(d=n(a))||A&&a&&typeof a.length=="number"){d&&(a=d);var i=0;return function(){return i>=a.length?{done:!0}:{done:!1,value:a[i++]}}}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(a,A){if(!a)return;if(typeof a=="string")return e(a,A);var d=Object.prototype.toString.call(a).slice(8,-1);if(d==="Object"&&a.constructor&&(d=a.constructor.name),d==="Map"||d==="Set")return Array.from(a);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return e(a,A)}function e(a,A){(A==null||A>a.length)&&(A=a.length);for(var d=0,i=new Array(A);d<A;d++)i[d]=a[d];return i}function s(){return s=Object.assign||function(a){for(var A=1;A<arguments.length;A++){var d=arguments[A];for(var i in d)Object.prototype.hasOwnProperty.call(d,i)&&(a[i]=d[i])}return a},s.apply(this,arguments)}var u=function(){function a(d){var i=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(){i.initialized&&(i.starved=!0),i.buffering=!0},this.onPlaying=function(){i.initialized||(i.initialized=!0),i.buffering=!1},this.applyPlaylistData=function(v){try{i.apply(v,{ot:E.CMCDObjectType.MANIFEST,su:!i.initialized})}catch(x){b.logger.warn("Could not generate manifest CMCD data.",x)}},this.applyFragmentData=function(v){try{var x=v.frag,S=i.hls.levels[x.level],B=i.getObjectType(x),w={d:x.duration*1e3,ot:B};(B===E.CMCDObjectType.VIDEO||B===E.CMCDObjectType.AUDIO||B==E.CMCDObjectType.MUXED)&&(w.br=S.bitrate/1e3,w.tb=i.getTopBandwidth(B),w.bl=i.getBufferLength(B)),i.apply(v,w)}catch(m){b.logger.warn("Could not generate segment CMCD data.",m)}},this.hls=d;var h=this.config=d.config,y=h.cmcd;y!=null&&(h.pLoader=this.createPlaylistLoader(),h.fLoader=this.createFragmentLoader(),this.sid=y.sessionId||a.uuid(),this.cid=y.contentId,this.useHeaders=y.useHeaders===!0,this.registerListeners())}var A=a.prototype;return A.registerListeners=function(){var i=this.hls;i.on(p.Events.MEDIA_ATTACHED,this.onMediaAttached,this),i.on(p.Events.MEDIA_DETACHED,this.onMediaDetached,this),i.on(p.Events.BUFFER_CREATED,this.onBufferCreated,this)},A.unregisterListeners=function(){var i=this.hls;i.off(p.Events.MEDIA_ATTACHED,this.onMediaAttached,this),i.off(p.Events.MEDIA_DETACHED,this.onMediaDetached,this),i.off(p.Events.BUFFER_CREATED,this.onBufferCreated,this),this.onMediaDetached()},A.destroy=function(){this.unregisterListeners(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},A.onMediaAttached=function(i,h){this.media=h.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},A.onMediaDetached=function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null},A.onBufferCreated=function(i,h){var y,v;this.audioBuffer=(y=h.tracks.audio)===null||y===void 0?void 0:y.buffer,this.videoBuffer=(v=h.tracks.video)===null||v===void 0?void 0:v.buffer},A.createData=function(){var i;return{v:E.CMCDVersion,sf:E.CMCDStreamingFormat.HLS,sid:this.sid,cid:this.cid,pr:(i=this.media)===null||i===void 0?void 0:i.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},A.apply=function(i,h){h===void 0&&(h={}),s(h,this.createData());var y=h.ot===E.CMCDObjectType.INIT||h.ot===E.CMCDObjectType.VIDEO||h.ot===E.CMCDObjectType.MUXED;if(this.starved&&y&&(h.bs=!0,h.su=!0,this.starved=!1),h.su==null&&(h.su=this.buffering),this.useHeaders){var v=a.toHeaders(h);if(!Object.keys(v).length)return;i.headers||(i.headers={}),s(i.headers,v)}else{var x=a.toQuery(h);if(!x)return;i.url=a.appendQueryToUri(i.url,x)}},A.getObjectType=function(i){var h=i.type;return h==="subtitle"?E.CMCDObjectType.TIMED_TEXT:i.sn==="initSegment"?E.CMCDObjectType.INIT:h==="audio"?E.CMCDObjectType.AUDIO:h==="main"?this.hls.audioTracks.length?E.CMCDObjectType.VIDEO:E.CMCDObjectType.MUXED:void 0},A.getTopBandwidth=function(i){for(var h=0,y=i===E.CMCDObjectType.AUDIO?this.hls.audioTracks:this.hls.levels,v=r(y),x;!(x=v()).done;){var S=x.value;S.bitrate>h&&(h=S.bitrate)}return h>0?h:NaN},A.getBufferLength=function(i){var h=this.hls.media,y=i===E.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!y||!h)return NaN;var v=C.BufferHelper.bufferInfo(y,h.currentTime,this.config.maxBufferHole);return v.len*1e3},A.createPlaylistLoader=function(){var i=this.config.pLoader,h=this.applyPlaylistData,y=i||this.config.loader;return function(){function v(S){this.loader=void 0,this.loader=new y(S)}var x=v.prototype;return x.destroy=function(){this.loader.destroy()},x.abort=function(){this.loader.abort()},x.load=function(B,w,m){h(B),this.loader.load(B,w,m)},l(v,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),v}()},A.createFragmentLoader=function(){var i=this.config.fLoader,h=this.applyFragmentData,y=i||this.config.loader;return function(){function v(S){this.loader=void 0,this.loader=new y(S)}var x=v.prototype;return x.destroy=function(){this.loader.destroy()},x.abort=function(){this.loader.abort()},x.load=function(B,w,m){h(B),this.loader.load(B,w,m)},l(v,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),v}()},a.uuid=function(){var i=URL.createObjectURL(new Blob),h=i.toString();return URL.revokeObjectURL(i),h.substr(h.lastIndexOf("/")+1)},a.serialize=function(i){for(var h=[],y=function(U){return!Number.isNaN(U)&&U!=null&&U!==""&&U!==!1},v=function(U){return Math.round(U)},x=function(U){return v(U/100)*100},S=function(U){return encodeURIComponent(U)},B={br:v,d:v,bl:x,dl:x,mtp:x,nor:S,rtp:x,tb:v},w=Object.keys(i||{}).sort(),m=r(w),c;!(c=m()).done;){var o=c.value,_=i[o];if(!y(_))continue;if(o==="v"&&_===1)continue;if(o=="pr"&&_===1)continue;var D=B[o];D&&(_=D(_));var T=typeof _,O=void 0;o==="ot"||o==="sf"||o==="st"?O=o+"="+_:T==="boolean"?O=o:T==="number"?O=o+"="+_:O=o+"="+JSON.stringify(_),h.push(O)}return h.join(",")},a.toHeaders=function(i){for(var h=Object.keys(i),y={},v=["Object","Request","Session","Status"],x=[{},{},{},{}],S={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,w=h;B<w.length;B++){var m=w[B],c=S[m]!=null?S[m]:1;x[c][m]=i[m]}for(var o=0;o<x.length;o++){var _=a.serialize(x[o]);_&&(y["CMCD-"+v[o]]=_)}return y},a.toQuery=function(i){return"CMCD="+encodeURIComponent(a.serialize(i))},a.appendQueryToUri=function(i,h){if(!h)return i;var y=i.includes("?")?"&":"?";return""+i+y+h},a}()},"./src/controller/eme-controller.ts":function(ae,V,M){"use strict";M.r(V);var p=M("./src/events.ts"),E=M("./src/errors.ts"),C=M("./src/utils/logger.ts"),b=M("./src/utils/mediakeys-helper.ts");function f(u,a){for(var A=0;A<a.length;A++){var d=a[A];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(u,d.key,d)}}function l(u,a,A){return a&&f(u.prototype,a),A&&f(u,A),u}var r=3,n=function(a,A,d){var i={audioCapabilities:[],videoCapabilities:[]};return a.forEach(function(h){i.audioCapabilities.push({contentType:'audio/mp4; codecs="'+h+'"',robustness:d.audioRobustness||""})}),A.forEach(function(h){i.videoCapabilities.push({contentType:'video/mp4; codecs="'+h+'"',robustness:d.videoRobustness||""})}),[i]},e=function(a,A,d,i){switch(a){case b.KeySystems.WIDEVINE:return n(A,d,i);default:throw new Error("Unknown key-system: "+a)}},s=function(){function u(A){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=A,this._config=A.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 a=u.prototype;return a.destroy=function(){this._unregisterListeners(),this.hls=this._onMediaEncrypted=null,this._requestMediaKeySystemAccess=null},a._registerListeners=function(){this.hls.on(p.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(p.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(p.Events.MANIFEST_PARSED,this.onManifestParsed,this)},a._unregisterListeners=function(){this.hls.off(p.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(p.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(p.Events.MANIFEST_PARSED,this.onManifestParsed,this)},a.getLicenseServerUrl=function(d){switch(d){case b.KeySystems.WIDEVINE:if(!this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no license server URL configured for key-system "'+d+'"')},a._attemptKeySystemAccess=function(d,i,h){var y=this,v=e(d,i,h,this._drmSystemOptions);C.logger.log("Requesting encrypted media key-system access");var x=this.requestMediaKeySystemAccess(d,v);this.mediaKeysPromise=x.then(function(S){return y._onMediaKeySystemAccessObtained(d,S)}),x.catch(function(S){C.logger.error('Failed to obtain key-system "'+d+'" access:',S)})},a._onMediaKeySystemAccessObtained=function(d,i){var h=this;C.logger.log('Access for key-system "'+d+'" obtained');var y={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:i,mediaKeySystemDomain:d};this._mediaKeysList.push(y);var v=Promise.resolve().then(function(){return i.createMediaKeys()}).then(function(x){return y.mediaKeys=x,C.logger.log('Media-keys created for key-system "'+d+'"'),h._onMediaKeysCreated(),x});return v.catch(function(x){C.logger.error("Failed to create media-keys:",x)}),v},a._onMediaKeysCreated=function(){var d=this;this._mediaKeysList.forEach(function(i){i.mediaKeysSession||(i.mediaKeysSession=i.mediaKeys.createSession(),d._onNewMediaKeySession(i.mediaKeysSession))})},a._onNewMediaKeySession=function(d){var i=this;C.logger.log("New key-system session "+d.sessionId),d.addEventListener("message",function(h){i._onKeySessionMessage(d,h.message)},!1)},a._onKeySessionMessage=function(d,i){C.logger.log("Got EME message event, creating license request"),this._requestLicense(i,function(h){C.logger.log("Received license data (length: "+(h&&h.byteLength)+"), updating key-session"),d.update(h)})},a.onMediaEncrypted=function(d){var i=this;if(C.logger.log('Media is encrypted using "'+d.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(p.Events.ERROR,{type:E.ErrorTypes.KEY_SYSTEM_ERROR,details:E.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}var h=function(v){if(!i._media)return;i._attemptSetMediaKeys(v),i._generateRequestWithPreferredKeySession(d.initDataType,d.initData)};this.mediaKeysPromise.then(h).catch(h)},a._attemptSetMediaKeys=function(d){if(!this._media)throw new Error("Attempted to set mediaKeys without first attaching a media element");if(!this._hasSetMediaKeys){var i=this._mediaKeysList[0];if(!i||!i.mediaKeys){C.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been obtained yet"),this.hls.trigger(p.Events.ERROR,{type:E.ErrorTypes.KEY_SYSTEM_ERROR,details:E.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}C.logger.log("Setting keys for encrypted media"),this._media.setMediaKeys(i.mediaKeys),this._hasSetMediaKeys=!0}},a._generateRequestWithPreferredKeySession=function(d,i){var h=this,y=this._mediaKeysList[0];if(!y){C.logger.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),this.hls.trigger(p.Events.ERROR,{type:E.ErrorTypes.KEY_SYSTEM_ERROR,details:E.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}if(y.mediaKeysSessionInitialized){C.logger.warn("Key-Session already initialized but requested again");return}var v=y.mediaKeysSession;if(!v){C.logger.error("Fatal: Media is encrypted but no key-session existing"),this.hls.trigger(p.Events.ERROR,{type:E.ErrorTypes.KEY_SYSTEM_ERROR,details:E.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!0});return}if(!i){C.logger.warn("Fatal: initData required for generating a key session is null"),this.hls.trigger(p.Events.ERROR,{type:E.ErrorTypes.KEY_SYSTEM_ERROR,details:E.ErrorDetails.KEY_SYSTEM_NO_INIT_DATA,fatal:!0});return}C.logger.log('Generating key-session request for "'+d+'" init data type'),y.mediaKeysSessionInitialized=!0,v.generateRequest(d,i).then(function(){C.logger.debug("Key-session generation succeeded")}).catch(function(x){C.logger.error("Error generating key-session request:",x),h.hls.trigger(p.Events.ERROR,{type:E.ErrorTypes.KEY_SYSTEM_ERROR,details:E.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})})},a._createLicenseXhr=function(d,i,h){var y=new XMLHttpRequest;y.responseType="arraybuffer",y.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,y,d,i,h);var v=this._licenseXhrSetup;if(v)try{v.call(this.hls,y,d),v=void 0}catch(x){C.logger.error(x)}try{y.readyState||y.open("POST",d,!0),v&&v.call(this.hls,y,d)}catch(x){throw new Error("issue setting up KeySystem license XHR "+x)}return y},a._onLicenseRequestReadyStageChange=function(d,i,h,y){switch(d.readyState){case 4:if(d.status===200){this._requestLicenseFailureCount=0,C.logger.log("License request succeeded");var v=d.response,x=this._licenseResponseCallback;if(x)try{v=x.call(this.hls,d,i)}catch(B){C.logger.error(B)}y(v)}else{if(C.logger.error("License Request XHR failed ("+i+"). Status: "+d.status+" ("+d.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>r){this.hls.trigger(p.Events.ERROR,{type:E.ErrorTypes.KEY_SYSTEM_ERROR,details:E.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var S=r-this._requestLicenseFailureCount+1;C.logger.warn("Retrying license request, "+S+" attempts left"),this._requestLicense(h,y)}break}},a._generateLicenseRequestChallenge=function(d,i){switch(d.mediaKeySystemDomain){case b.KeySystems.WIDEVINE:return i}throw new Error("unsupported key-system: "+d.mediaKeySystemDomain)},a._requestLicense=function(d,i){C.logger.log("Requesting content license for key-system");var h=this._mediaKeysList[0];if(!h){C.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(p.Events.ERROR,{type:E.ErrorTypes.KEY_SYSTEM_ERROR,details:E.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var y=this.getLicenseServerUrl(h.mediaKeySystemDomain),v=this._createLicenseXhr(y,d,i);C.logger.log("Sending license request to URL: "+y);var x=this._generateLicenseRequestChallenge(h,d);v.send(x)}catch(S){C.logger.error("Failure requesting DRM license: "+S),this.hls.trigger(p.Events.ERROR,{type:E.ErrorTypes.KEY_SYSTEM_ERROR,details:E.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},a.onMediaAttached=function(d,i){if(!this._emeEnabled)return;var h=i.media;this._media=h,h.addEventListener("encrypted",this._onMediaEncrypted)},a.onMediaDetached=function(){var d=this._media,i=this._mediaKeysList;if(!d)return;d.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(i.map(function(h){if(h.mediaKeysSession)return h.mediaKeysSession.close().catch(function(){})})).then(function(){return d.setMediaKeys(null)}).catch(function(){})},a.onManifestParsed=function(d,i){if(!this._emeEnabled)return;var h=i.levels.map(function(v){return v.audioCodec}).filter(function(v){return!!v}),y=i.levels.map(function(v){return v.videoCodec}).filter(function(v){return!!v});this._attemptKeySystemAccess(b.KeySystems.WIDEVINE,h,y)},l(u,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),u}();V.default=s},"./src/controller/fps-controller.ts":function(ae,V,M){"use strict";M.r(V);var p=M("./src/events.ts"),E=M("./src/utils/logger.ts"),C=function(){function b(l){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=l,this.registerListeners()}var f=b.prototype;return f.setStreamController=function(r){this.streamController=r},f.registerListeners=function(){this.hls.on(p.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},f.unregisterListeners=function(){this.hls.off(p.Events.MEDIA_ATTACHING,this.onMediaAttaching)},f.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},f.onMediaAttaching=function(r,n){var e=this.hls.config;if(e.capLevelOnFPSDrop){var s=n.media instanceof self.HTMLVideoElement?n.media:null;this.media=s,s&&typeof s.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),e.fpsDroppedMonitoringPeriod)}},f.checkFPS=function(r,n,e){var s=performance.now();if(n){if(this.lastTime){var u=s-this.lastTime,a=e-this.lastDroppedFrames,A=n-this.lastDecodedFrames,d=1e3*a/u,i=this.hls;if(i.trigger(p.Events.FPS_DROP,{currentDropped:a,currentDecoded:A,totalDroppedFrames:e}),d>0&&a>i.config.fpsDroppedMonitoringThreshold*A){var h=i.currentLevel;E.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+h),h>0&&(i.autoLevelCapping===-1||i.autoLevelCapping>=h)&&(h=h-1,i.trigger(p.Events.FPS_DROP_LEVEL_CAPPING,{level:h,droppedLevel:i.currentLevel}),i.autoLevelCapping=h,this.streamController.nextLevelSwitch())}}this.lastTime=s,this.lastDroppedFrames=e,this.lastDecodedFrames=n}},f.checkFPSInterval=function(){var r=this.media;if(r)if(this.isVideoPlaybackQualityAvailable){var n=r.getVideoPlaybackQuality();this.checkFPS(r,n.totalVideoFrames,n.droppedVideoFrames)}else this.checkFPS(r,r.webkitDecodedFrameCount,r.webkitDroppedFrameCount)},b}();V.default=C},"./src/controller/fragment-finders.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"findFragmentByPDT",function(){return C}),M.d(V,"findFragmentByPTS",function(){return b}),M.d(V,"fragmentWithinToleranceTest",function(){return f}),M.d(V,"pdtWithinToleranceTest",function(){return l}),M.d(V,"findFragWithCC",function(){return r});var p=M("./src/polyfills/number.ts"),E=M("./src/utils/binary-search.ts");function C(n,e,s){if(e===null||!Array.isArray(n)||!n.length||!Object(p.isFiniteNumber)(e))return null;var u=n[0].programDateTime;if(e<(u||0))return null;var a=n[n.length-1].endProgramDateTime;if(e>=(a||0))return null;s=s||0;for(var A=0;A<n.length;++A){var d=n[A];if(l(e,s,d))return d}return null}function b(n,e,s,u){s===void 0&&(s=0),u===void 0&&(u=0);var a=null;if(n?a=e[n.sn-e[0].sn+1]||null:s===0&&e[0].start===0&&(a=e[0]),a&&f(s,u,a)===0)return a;var A=E.default.search(e,f.bind(null,s,u));return A||a}function f(n,e,s){n===void 0&&(n=0),e===void 0&&(e=0);var u=Math.min(e,s.duration+(s.deltaPTS?s.deltaPTS:0));return s.start+s.duration-u<=n?1:s.start-u>n&&s.start?-1:0}function l(n,e,s){var u=Math.min(e,s.duration+(s.deltaPTS?s.deltaPTS:0))*1e3,a=s.endProgramDateTime||0;return a-u>n}function r(n,e){return E.default.search(n,function(s){return s.cc<e?1:s.cc>e?-1:0})}},"./src/controller/fragment-tracker.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"FragmentState",function(){return C}),M.d(V,"FragmentTracker",function(){return b});var p=M("./src/events.ts"),E=M("./src/types/loader.ts"),C;(function(r){r.NOT_LOADED="NOT_LOADED",r.BACKTRACKED="BACKTRACKED",r.APPENDING="APPENDING",r.PARTIAL="PARTIAL",r.OK="OK"})(C||(C={}));var b=function(){function r(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=r.prototype;return n._registerListeners=function(){var s=this.hls;s.on(p.Events.BUFFER_APPENDED,this.onBufferAppended,this),s.on(p.Events.FRAG_BUFFERED,this.onFragBuffered,this),s.on(p.Events.FRAG_LOADED,this.onFragLoaded,this)},n._unregisterListeners=function(){var s=this.hls;s.off(p.Events.BUFFER_APPENDED,this.onBufferAppended,this),s.off(p.Events.FRAG_BUFFERED,this.onFragBuffered,this),s.off(p.Events.FRAG_LOADED,this.onFragLoaded,this)},n.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},n.getAppendedFrag=function(s,u){if(u===E.PlaylistLevelType.MAIN){var a=this.activeFragment,A=this.activeParts;if(!a)return null;if(A)for(var d=A.length;d--;){var i=A[d],h=i?i.end:a.appendedPTS;if(i.start<=s&&h!==void 0&&s<=h)return d>9&&(this.activeParts=A.slice(d-9)),i}else if(a.start<=s&&a.appendedPTS!==void 0&&s<=a.appendedPTS)return a}return this.getBufferedFrag(s,u)},n.getBufferedFrag=function(s,u){for(var a=this.fragments,A=Object.keys(a),d=A.length;d--;){var i=a[A[d]];if((i==null?void 0:i.body.type)===u&&i.buffered){var h=i.body;if(h.start<=s&&s<=h.end)return h}}return null},n.detectEvictedFragments=function(s,u,a){var A=this;Object.keys(this.fragments).forEach(function(d){var i=A.fragments[d];if(!i)return;if(!i.buffered){i.body.type===a&&A.removeFragment(i.body);return}var h=i.range[s];if(!h)return;h.time.some(function(y){var v=!A.isTimeBuffered(y.startPTS,y.endPTS,u);return v&&A.removeFragment(i.body),v})})},n.detectPartialFragments=function(s){var u=this,a=this.timeRanges,A=s.frag,d=s.part;if(!a||A.sn==="initSegment")return;var i=l(A),h=this.fragments[i];if(!h)return;Object.keys(a).forEach(function(y){var v=A.elementaryStreams[y];if(!v)return;var x=a[y],S=d!==null||v.partial===!0;h.range[y]=u.getBufferedTimes(A,d,S,x)}),h.backtrack=h.loaded=null,Object.keys(h.range).length?h.buffered=!0:this.removeFragment(h.body)},n.fragBuffered=function(s){var u=l(s),a=this.fragments[u];a&&(a.backtrack=a.loaded=null,a.buffered=!0)},n.getBufferedTimes=function(s,u,a,A){for(var d={time:[],partial:a},i=u?u.start:s.start,h=u?u.end:s.end,y=s.minEndPTS||h,v=s.maxStartPTS||i,x=0;x<A.length;x++){var S=A.start(x)-this.bufferPadding,B=A.end(x)+this.bufferPadding;if(v>=S&&y<=B){d.time.push({startPTS:Math.max(i,A.start(x)),endPTS:Math.min(h,A.end(x))});break}else if(i<B&&h>S)d.partial=!0,d.time.push({startPTS:Math.max(i,A.start(x)),endPTS:Math.min(h,A.end(x))});else if(h<=S)break}return d},n.getPartialFragment=function(s){var u=null,a,A,d,i=0,h=this.bufferPadding,y=this.fragments;return Object.keys(y).forEach(function(v){var x=y[v];if(!x)return;f(x)&&(A=x.body.start-h,d=x.body.end+h,s>=A&&s<=d&&(a=Math.min(s-A,d-s),i<=a&&(u=x.body,i=a)))}),u},n.getState=function(s){var u=l(s),a=this.fragments[u];return a?a.buffered?f(a)?C.PARTIAL:C.OK:a.backtrack?C.BACKTRACKED:C.APPENDING:C.NOT_LOADED},n.backtrack=function(s,u){var a=l(s),A=this.fragments[a];if(!A||A.backtrack)return null;var d=A.backtrack=u||A.loaded;return A.loaded=null,d},n.getBacktrackData=function(s){var u=l(s),a=this.fragments[u];if(a){var A,d=a.backtrack;if(d!=null&&(A=d.payload)!==null&&A!==void 0&&A.byteLength)return d;this.removeFragment(s)}return null},n.isTimeBuffered=function(s,u,a){for(var A,d,i=0;i<a.length;i++){if(A=a.start(i)-this.bufferPadding,d=a.end(i)+this.bufferPadding,s>=A&&u<=d)return!0;if(u<=A)return!1}return!1},n.onFragLoaded=function(s,u){var a=u.frag,A=u.part;if(a.sn==="initSegment"||a.bitrateTest||A)return;var d=l(a);this.fragments[d]={body:a,loaded:u,backtrack:null,buffered:!1,range:Object.create(null)}},n.onBufferAppended=function(s,u){var a=this,A=u.frag,d=u.part,i=u.timeRanges;if(A.type===E.PlaylistLevelType.MAIN)if(this.activeFragment=A,d){var h=this.activeParts;h||(this.activeParts=h=[]),h.push(d)}else this.activeParts=null;this.timeRanges=i,Object.keys(i).forEach(function(y){var v=i[y];if(a.detectEvictedFragments(y,v),!d)for(var x=0;x<v.length;x++)A.appendedPTS=Math.max(v.end(x),A.appendedPTS||0)})},n.onFragBuffered=function(s,u){this.detectPartialFragments(u)},n.hasFragment=function(s){var u=l(s);return!!this.fragments[u]},n.removeFragmentsInRange=function(s,u,a){var A=this;Object.keys(this.fragments).forEach(function(d){var i=A.fragments[d];if(!i)return;if(i.buffered){var h=i.body;h.type===a&&h.start<u&&h.end>s&&A.removeFragment(h)}})},n.removeFragment=function(s){var u=l(s);s.stats.loaded=0,s.clearElementaryStreamInfo(),delete this.fragments[u]},n.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},r}();function f(r){var n,e;return r.buffered&&(((n=r.range.video)===null||n===void 0?void 0:n.partial)||((e=r.range.audio)===null||e===void 0?void 0:e.partial))}function l(r){return r.type+"_"+r.level+"_"+r.urlId+"_"+r.sn}},"./src/controller/gap-controller.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"STALL_MINIMUM_DURATION_MS",function(){return f}),M.d(V,"MAX_START_GAP_JUMP",function(){return l}),M.d(V,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return r}),M.d(V,"SKIP_BUFFER_RANGE_START",function(){return n}),M.d(V,"default",function(){return e});var p=M("./src/utils/buffer-helper.ts"),E=M("./src/errors.ts"),C=M("./src/events.ts"),b=M("./src/utils/logger.ts"),f=250,l=2,r=.1,n=.05,e=function(){function s(a,A,d,i){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=a,this.media=A,this.fragmentTracker=d,this.hls=i}var u=s.prototype;return u.destroy=function(){this.hls=this.fragmentTracker=this.media=null},u.poll=function(A){var d=this.config,i=this.media,h=this.stalled,y=i.currentTime,v=i.seeking,x=this.seeking&&!v,S=!this.seeking&&v;if(this.seeking=v,y!==A){if(this.moved=!0,h!==null){if(this.stallReported){var B=self.performance.now()-h;b.logger.warn("playback not stuck anymore @"+y+", after "+Math.round(B)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((S||x)&&(this.stalled=null),i.paused||i.ended||i.playbackRate===0||!p.BufferHelper.getBuffered(i).length)return;var w=p.BufferHelper.bufferInfo(i,y,0),m=w.len>0,c=w.nextStart||0;if(!m&&!c)return;if(v){var o=w.len>l,_=!c||c-y>l&&!this.fragmentTracker.getPartialFragment(y);if(o||_)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var D,T=Math.max(c,w.start||0)-y,O=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,R=O==null||((D=O.details)===null||D===void 0)?void 0:D.live,U=R?O.details.targetduration*2:l;if(T>0&&T<=U){this._trySkipBufferHole(null);return}}var F=self.performance.now();if(h===null){this.stalled=F;return}var Y=F-h;!v&&Y>=f&&this._reportStall(w.len);var k=p.BufferHelper.bufferInfo(i,y,d.maxBufferHole);this._tryFixBufferStall(k,Y)},u._tryFixBufferStall=function(A,d){var i=this.config,h=this.fragmentTracker,y=this.media,v=y.currentTime,x=h.getPartialFragment(v);if(x){var S=this._trySkipBufferHole(x);if(S)return}A.len>i.maxBufferHole&&d>i.highBufferWatchdogPeriod*1e3&&(b.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},u._reportStall=function(A){var d=this.hls,i=this.media,h=this.stallReported;h||(this.stallReported=!0,b.logger.warn("Playback stalling at @"+i.currentTime+" due to low buffer (buffer="+A+")"),d.trigger(C.Events.ERROR,{type:E.ErrorTypes.MEDIA_ERROR,details:E.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:A}))},u._trySkipBufferHole=function(A){for(var d=this.config,i=this.hls,h=this.media,y=h.currentTime,v=0,x=p.BufferHelper.getBuffered(h),S=0;S<x.length;S++){var B=x.start(S);if(y+d.maxBufferHole>=v&&y<B){var w=Math.max(B+n,h.currentTime+r);return b.logger.warn("skipping hole, adjusting currentTime from "+y+" to "+w),this.moved=!0,this.stalled=null,h.currentTime=w,A&&i.trigger(C.Events.ERROR,{type:E.ErrorTypes.MEDIA_ERROR,details:E.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+y+" to "+w,frag:A}),w}v=x.end(S)}return 0},u._tryNudgeBuffer=function(){var A=this.config,d=this.hls,i=this.media,h=i.currentTime,y=(this.nudgeRetry||0)+1;if(this.nudgeRetry=y,y<A.nudgeMaxRetry){var v=h+y*A.nudgeOffset;b.logger.warn("Nudging 'currentTime' from "+h+" to "+v),i.currentTime=v,d.trigger(C.Events.ERROR,{type:E.ErrorTypes.MEDIA_ERROR,details:E.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else b.logger.error("Playhead still not moving while enough data buffered @"+h+" after "+A.nudgeMaxRetry+" nudges"),d.trigger(C.Events.ERROR,{type:E.ErrorTypes.MEDIA_ERROR,details:E.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},s}()},"./src/controller/id3-track-controller.ts":function(ae,V,M){"use strict";M.r(V);var p=M("./src/events.ts"),E=M("./src/utils/texttrack-utils.ts"),C=M("./src/demux/id3.ts"),b=.25,f=function(){function l(n){this.hls=void 0,this.id3Track=null,this.media=null,this.hls=n,this._registerListeners()}var r=l.prototype;return r.destroy=function(){this._unregisterListeners()},r._registerListeners=function(){var e=this.hls;e.on(p.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(p.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(p.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(p.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},r._unregisterListeners=function(){var e=this.hls;e.off(p.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(p.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(p.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(p.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},r.onMediaAttached=function(e,s){this.media=s.media},r.onMediaDetaching=function(){if(!this.id3Track)return;Object(E.clearCurrentCues)(this.id3Track),this.id3Track=null,this.media=null},r.getID3Track=function(e){if(!this.media)return;for(var s=0;s<e.length;s++){var u=e[s];if(u.kind==="metadata"&&u.label==="id3")return Object(E.sendAddTrackEvent)(u,this.media),u}return this.media.addTextTrack("metadata","id3")},r.onFragParsingMetadata=function(e,s){if(!this.media)return;var u=s.frag,a=s.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var A=self.WebKitDataCue||self.VTTCue||self.TextTrackCue,d=0;d<a.length;d++){var i=C.getID3Frames(a[d].data);if(i){var h=a[d].pts,y=d<a.length-1?a[d+1].pts:u.end,v=y-h;v<=0&&(y=h+b);for(var x=0;x<i.length;x++){var S=i[x];if(!C.isTimeStampFrame(S)){var B=new A(h,y,"");B.value=S,this.id3Track.addCue(B)}}}}},r.onBufferFlushing=function(e,s){var u=s.startOffset,a=s.endOffset,A=s.type;if(!A||A==="audio"){var d=this.id3Track;d&&Object(E.removeCuesInRange)(d,u,a)}},l}();V.default=f},"./src/controller/latency-controller.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"default",function(){return l});var p=M("./src/errors.ts"),E=M("./src/events.ts"),C=M("./src/utils/logger.ts");function b(r,n){for(var e=0;e<n.length;e++){var s=n[e];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(r,s.key,s)}}function f(r,n,e){return n&&b(r.prototype,n),e&&b(r,e),r}var l=function(){function r(e){var s=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 s.timeupdate()},this.hls=e,this.config=e.config,this.registerListeners()}var n=r.prototype;return n.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},n.registerListeners=function(){this.hls.on(E.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(E.Events.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(E.Events.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(E.Events.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(E.Events.ERROR,this.onError,this)},n.unregisterListeners=function(){this.hls.off(E.Events.MEDIA_ATTACHED,this.onMediaAttached),this.hls.off(E.Events.MEDIA_DETACHING,this.onMediaDetaching),this.hls.off(E.Events.MANIFEST_LOADING,this.onManifestLoading),this.hls.off(E.Events.LEVEL_UPDATED,this.onLevelUpdated),this.hls.off(E.Events.ERROR,this.onError)},n.onMediaAttached=function(s,u){this.media=u.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(s,u){var a=u.details;this.levelDetails=a,a.advanced&&this.timeupdate(),!a.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},n.onError=function(s,u){if(u.details!==p.ErrorDetails.BUFFER_STALLED_ERROR)return;this.stallCount++,C.logger.warn("[playback-rate-controller]: Stall detected, adjusting target latency")},n.timeupdate=function(){var s=this.media,u=this.levelDetails;if(!s||!u)return;this.currentTime=s.currentTime;var a=this.computeLatency();if(a===null)return;this._latency=a;var A=this.config,d=A.lowLatencyMode,i=A.maxLiveSyncPlaybackRate;if(!d||i===1)return;var h=this.targetLatency;if(h===null)return;var y=a-h,v=Math.min(this.maxLatency,h+u.targetduration),x=y<v;if(u.live&&x&&y>.05&&this.forwardBufferLength>1){var S=Math.min(2,Math.max(1,i)),B=Math.round(2/(1+Math.exp(-.75*y-this.edgeStalled))*20)/20;s.playbackRate=Math.min(S,Math.max(1,B))}else s.playbackRate!==1&&s.playbackRate!==0&&(s.playbackRate=1)},n.estimateLiveEdge=function(){var s=this.levelDetails;return s===null?null:s.edge+s.age},n.computeLatency=function(){var s=this.estimateLiveEdge();return s===null?null:s-this.currentTime},f(r,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var s=this.config,u=this.levelDetails;return s.liveMaxLatencyDuration!==void 0?s.liveMaxLatencyDuration:u?s.liveMaxLatencyDurationCount*u.targetduration:0}},{key:"targetLatency",get:function(){var s=this.levelDetails;if(s===null)return null;var u=s.holdBack,a=s.partHoldBack,A=s.targetduration,d=this.config,i=d.liveSyncDuration,h=d.liveSyncDurationCount,y=d.lowLatencyMode,v=this.hls.userConfig,x=y&&a||u;(v.liveSyncDuration||v.liveSyncDurationCount||x===0)&&(x=i!==void 0?i:h*A);var S=A,B=1;return x+Math.min(this.stallCount*B,S)}},{key:"liveSyncPosition",get:function(){var s=this.estimateLiveEdge(),u=this.targetLatency,a=this.levelDetails;if(s===null||u===null||a===null)return null;var A=a.edge,d=s-u-this.edgeStalled,i=A-a.totalduration,h=A-(this.config.lowLatencyMode&&a.partTarget||a.targetduration);return Math.min(Math.max(i,d),h)}},{key:"drift",get:function(){var s=this.levelDetails;return s===null?1:s.drift}},{key:"edgeStalled",get:function(){var s=this.levelDetails;if(s===null)return 0;var u=(this.config.lowLatencyMode&&s.partTarget||s.targetduration)*3;return Math.max(s.age-u,0)}},{key:"forwardBufferLength",get:function(){var s=this.media,u=this.levelDetails;if(!s||!u)return 0;var a=s.buffered.length;return a?s.buffered.end(a-1):u.edge-this.currentTime}}]),r}()},"./src/controller/level-controller.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"default",function(){return d});var p=M("./src/types/level.ts"),E=M("./src/events.ts"),C=M("./src/errors.ts"),b=M("./src/utils/codecs.ts"),f=M("./src/controller/level-helper.ts"),l=M("./src/controller/base-playlist-controller.ts"),r=M("./src/types/loader.ts");function n(){return n=Object.assign||function(i){for(var h=1;h<arguments.length;h++){var y=arguments[h];for(var v in y)Object.prototype.hasOwnProperty.call(y,v)&&(i[v]=y[v])}return i},n.apply(this,arguments)}function e(i,h){for(var y=0;y<h.length;y++){var v=h[y];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(i,v.key,v)}}function s(i,h,y){return h&&e(i.prototype,h),y&&e(i,y),i}function u(i,h){i.prototype=Object.create(h.prototype),i.prototype.constructor=i,a(i,h)}function a(i,h){return a=Object.setPrototypeOf||function(v,x){return v.__proto__=x,v},a(i,h)}var A=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),d=function(i){u(h,i);function h(v){var x;return x=i.call(this,v,"[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 y=h.prototype;return y._registerListeners=function(){var x=this.hls;x.on(E.Events.MANIFEST_LOADED,this.onManifestLoaded,this),x.on(E.Events.LEVEL_LOADED,this.onLevelLoaded,this),x.on(E.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),x.on(E.Events.FRAG_LOADED,this.onFragLoaded,this),x.on(E.Events.ERROR,this.onError,this)},y._unregisterListeners=function(){var x=this.hls;x.off(E.Events.MANIFEST_LOADED,this.onManifestLoaded,this),x.off(E.Events.LEVEL_LOADED,this.onLevelLoaded,this),x.off(E.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),x.off(E.Events.FRAG_LOADED,this.onFragLoaded,this),x.off(E.Events.ERROR,this.onError,this)},y.destroy=function(){this._unregisterListeners(),this.manualLevelIndex=-1,this._levels.length=0,i.prototype.destroy.call(this)},y.startLoad=function(){var x=this._levels;x.forEach(function(S){S.loadError=0}),i.prototype.startLoad.call(this)},y.onManifestLoaded=function(x,S){var B=[],w=[],m=[],c,o={},_,D=!1,T=!1,O=!1;if(S.levels.forEach(function(Y){var k=Y.attrs;D=D||!!(Y.width&&Y.height),T=T||!!Y.videoCodec,O=O||!!Y.audioCodec,A&&Y.audioCodec&&Y.audioCodec.indexOf("mp4a.40.34")!==-1&&(Y.audioCodec=void 0);var K=Y.bitrate+"-"+Y.attrs.RESOLUTION+"-"+Y.attrs.CODECS;_=o[K],_?_.url.push(Y.url):(_=new p.Level(Y),o[K]=_,B.push(_)),k&&(k.AUDIO&&Object(f.addGroupId)(_,"audio",k.AUDIO),k.SUBTITLES&&Object(f.addGroupId)(_,"text",k.SUBTITLES))}),(D||T)&&O&&(B=B.filter(function(Y){var k=Y.videoCodec,K=Y.width,z=Y.height;return!!k||!!(K&&z)})),B=B.filter(function(Y){var k=Y.audioCodec,K=Y.videoCodec;return(!k||Object(b.isCodecSupportedInMp4)(k,"audio"))&&(!K||Object(b.isCodecSupportedInMp4)(K,"video"))}),S.audioTracks&&(w=S.audioTracks.filter(function(Y){return!Y.audioCodec||Object(b.isCodecSupportedInMp4)(Y.audioCodec,"audio")}),Object(f.assignTrackIdsByGroup)(w)),S.subtitles&&(m=S.subtitles,Object(f.assignTrackIdsByGroup)(m)),B.length>0){c=B[0].bitrate,B.sort(function(Y,k){return Y.bitrate-k.bitrate}),this._levels=B;for(var R=0;R<B.length;R++)if(B[R].bitrate===c){this._firstLevel=R,this.log("manifest loaded, "+B.length+" level(s) found, first bitrate: "+c);break}var U=O&&!T,F={levels:B,audioTracks:w,subtitleTracks:m,firstLevel:this._firstLevel,stats:S.stats,audio:O,video:T,altAudio:!U&&w.some(function(Y){return!!Y.url})};this.hls.trigger(E.Events.MANIFEST_PARSED,F),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else this.hls.trigger(E.Events.ERROR,{type:C.ErrorTypes.MEDIA_ERROR,details:C.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:S.url,reason:"no level with compatible codecs found in manifest"})},y.onError=function(x,S){if(i.prototype.onError.call(this,x,S),S.fatal)return;var B=S.context,w=this._levels[this.currentLevelIndex];if(B&&(B.type===r.PlaylistContextType.AUDIO_TRACK&&w.audioGroupIds&&B.groupId===w.audioGroupIds[w.urlId]||B.type===r.PlaylistContextType.SUBTITLE_TRACK&&w.textGroupIds&&B.groupId===w.textGroupIds[w.urlId])){this.redundantFailover(this.currentLevelIndex);return}var m=!1,c=!0,o;switch(S.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(S.frag){var _=this._levels[S.frag.level];_?(_.fragmentError++,_.fragmentError>this.hls.config.fragLoadingMaxRetry&&(o=S.frag.level)):o=S.frag.level}break;case C.ErrorDetails.LEVEL_LOAD_ERROR:case C.ErrorDetails.LEVEL_LOAD_TIMEOUT:B&&(B.deliveryDirectives&&(c=!1),o=B.level),m=!0;break;case C.ErrorDetails.REMUX_ALLOC_ERROR:o=S.level,m=!0;break}o!==void 0&&this.recoverLevel(S,o,m,c)},y.recoverLevel=function(x,S,B,w){var m=x.details,c=this._levels[S];if(c.loadError++,B){var o=this.retryLoadingOrFail(x);if(o)x.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(w){var _=c.url.length;if(_>1&&c.loadError<_)x.levelRetry=!0,this.redundantFailover(S);else if(this.manualLevelIndex===-1){var D=S===0?this._levels.length-1:S-1;this.currentLevelIndex!==D&&this._levels[D].loadError===0&&(this.warn(m+": switch to "+D),x.levelRetry=!0,this.hls.nextAutoLevel=D)}}},y.redundantFailover=function(x){var S=this._levels[x],B=S.url.length;if(B>1){var w=(S.urlId+1)%B;this.warn("Switching to redundant URL-id "+w),this._levels.forEach(function(m){m.urlId=w}),this.level=x}},y.onFragLoaded=function(x,S){var B=S.frag;if(B!==void 0&&B.type===r.PlaylistLevelType.MAIN){var w=this._levels[B.level];w!==void 0&&(w.fragmentError=0,w.loadError=0)}},y.onLevelLoaded=function(x,S){var B,w=S.level,m=S.details,c=this._levels[w];if(!c){var o;this.warn("Invalid level index "+w),(o=S.deliveryDirectives)!==null&&o!==void 0&&o.skip&&(m.deltaUpdateFailed=!0);return}w===this.currentLevelIndex?(c.fragmentError===0&&(c.loadError=0,this.retryCount=0),this.playlistLoaded(w,S,c.details)):(B=S.deliveryDirectives)!==null&&B!==void 0&&B.skip&&(m.deltaUpdateFailed=!0)},y.onAudioTrackSwitched=function(x,S){var B=this.hls.levels[this.currentLevelIndex];if(!B)return;if(B.audioGroupIds){for(var w=-1,m=this.hls.audioTracks[S.id].groupId,c=0;c<B.audioGroupIds.length;c++)if(B.audioGroupIds[c]===m){w=c;break}w!==B.urlId&&(B.urlId=w,this.startLoad())}},y.loadPlaylist=function(x){var S=this.currentLevelIndex,B=this._levels[S];if(this.canLoad&&B&&B.url.length>0){var w=B.urlId,m=B.url[w];if(x)try{m=x.addDirectives(m)}catch(c){this.warn("Could not construct new URL with HLS Delivery Directives: "+c)}this.log("Attempt loading level index "+S+(x?" at sn "+x.msn+" part "+x.part:"")+" with URL-id "+w+" "+m),this.clearTimer(),this.hls.trigger(E.Events.LEVEL_LOADING,{url:m,level:S,id:w,deliveryDirectives:x||null})}},y.removeLevel=function(x,S){var B=function(c,o){return o!==S},w=this._levels.filter(function(m,c){return c!==x?!0:m.url.length>1&&S!==void 0?(m.url=m.url.filter(B),m.audioGroupIds&&(m.audioGroupIds=m.audioGroupIds.filter(B)),m.textGroupIds&&(m.textGroupIds=m.textGroupIds.filter(B)),m.urlId=0,!0):!1}).map(function(m,c){var o=m.details;return o!=null&&o.fragments&&o.fragments.forEach(function(_){_.level=c}),m});this._levels=w,this.hls.trigger(E.Events.LEVELS_UPDATED,{levels:w})},s(h,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(x){var S,B=this._levels;if(B.length===0)return;if(this.currentLevelIndex===x&&(S=B[x])!==null&&S!==void 0&&S.details)return;if(x<0||x>=B.length){var w=x<0;if(this.hls.trigger(E.Events.ERROR,{type:C.ErrorTypes.OTHER_ERROR,details:C.ErrorDetails.LEVEL_SWITCH_ERROR,level:x,fatal:w,reason:"invalid level idx"}),w)return;x=Math.min(x,B.length-1)}this.clearTimer();var m=this.currentLevelIndex,c=B[m],o=B[x];this.log("switching to level "+x+" from "+m),this.currentLevelIndex=x;var _=n({},o,{level:x,maxBitrate:o.maxBitrate,uri:o.uri,urlId:o.urlId});delete _._urlId,this.hls.trigger(E.Events.LEVEL_SWITCHING,_);var D=o.details;if(!D||D.live){var T=this.switchParams(o.uri,c==null?void 0:c.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)}}]),h}(l.default)},"./src/controller/level-helper.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"addGroupId",function(){return C}),M.d(V,"assignTrackIdsByGroup",function(){return b}),M.d(V,"updatePTS",function(){return f}),M.d(V,"updateFragPTSDTS",function(){return r}),M.d(V,"mergeDetails",function(){return n}),M.d(V,"mapPartIntersection",function(){return e}),M.d(V,"mapFragmentIntersection",function(){return s}),M.d(V,"adjustSliding",function(){return u}),M.d(V,"addSliding",function(){return a}),M.d(V,"computeReloadInterval",function(){return A}),M.d(V,"getFragmentWithSN",function(){return d}),M.d(V,"getPartWith",function(){return i});var p=M("./src/polyfills/number.ts"),E=M("./src/utils/logger.ts");function C(h,y,v){switch(y){case"audio":h.audioGroupIds||(h.audioGroupIds=[]),h.audioGroupIds.push(v);break;case"text":h.textGroupIds||(h.textGroupIds=[]),h.textGroupIds.push(v);break}}function b(h){var y={};h.forEach(function(v){var x=v.groupId||"";v.id=y[x]=y[x]||0,y[x]++})}function f(h,y,v){var x=h[y],S=h[v];l(x,S)}function l(h,y){var v=y.startPTS;if(Object(p.isFiniteNumber)(v)){var x=0,S;y.sn>h.sn?(x=v-h.start,S=h):(x=h.start-v,S=y),S.duration!==x&&(S.duration=x)}else if(y.sn>h.sn){var B=h.cc===y.cc;B&&h.minEndPTS?y.start=h.start+(h.minEndPTS-h.start):y.start=h.start+h.duration}else y.start=Math.max(h.start-y.duration,0)}function r(h,y,v,x,S,B){var w=x-v;w<=0&&(E.logger.warn("Fragment should have a positive duration",y),x=v+y.duration,B=S+y.duration);var m=v,c=x,o=y.startPTS,_=y.endPTS;if(Object(p.isFiniteNumber)(o)){var D=Math.abs(o-v);Object(p.isFiniteNumber)(y.deltaPTS)?y.deltaPTS=Math.max(D,y.deltaPTS):y.deltaPTS=D,m=Math.max(v,o),v=Math.min(v,o),S=Math.min(S,y.startDTS),c=Math.min(x,_),x=Math.max(x,_),B=Math.max(B,y.endDTS)}y.duration=x-v;var T=v-y.start;y.appendedPTS=x,y.start=y.startPTS=v,y.maxStartPTS=m,y.startDTS=S,y.endPTS=x,y.minEndPTS=c,y.endDTS=B;var O=y.sn;if(!h||O<h.startSN||O>h.endSN)return 0;var R,U=O-h.startSN,F=h.fragments;for(F[U]=y,R=U;R>0;R--)l(F[R],F[R-1]);for(R=U;R<F.length-1;R++)l(F[R],F[R+1]);return h.fragmentHint&&l(F[F.length-1],h.fragmentHint),h.PTSKnown=h.alignedSliding=!0,T}function n(h,y){for(var v=null,x=h.fragments,S=x.length-1;S>=0;S--){var B=x[S].initSegment;if(B){v=B;break}}h.fragmentHint&&delete h.fragmentHint.endPTS;var w=0,m;if(s(h,y,function(R,U){R.relurl&&(w=R.cc-U.cc),Object(p.isFiniteNumber)(R.startPTS)&&Object(p.isFiniteNumber)(R.endPTS)&&(U.start=U.startPTS=R.startPTS,U.startDTS=R.startDTS,U.appendedPTS=R.appendedPTS,U.maxStartPTS=R.maxStartPTS,U.endPTS=R.endPTS,U.endDTS=R.endDTS,U.minEndPTS=R.minEndPTS,U.duration=R.endPTS-R.startPTS,U.duration&&(m=U),y.PTSKnown=y.alignedSliding=!0),U.elementaryStreams=R.elementaryStreams,U.loader=R.loader,U.stats=R.stats,U.urlId=R.urlId,R.initSegment&&(U.initSegment=R.initSegment,v=R.initSegment)}),v){var c=y.fragmentHint?y.fragments.concat(y.fragmentHint):y.fragments;c.forEach(function(R){var U;(!R.initSegment||R.initSegment.relurl===((U=v)===null||U===void 0?void 0:U.relurl))&&(R.initSegment=v)})}if(y.skippedSegments&&(y.deltaUpdateFailed=y.fragments.some(function(R){return!R}),y.deltaUpdateFailed)){E.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var o=y.skippedSegments;o--;)y.fragments.shift();y.startSN=y.fragments[0].sn,y.startCC=y.fragments[0].cc}var _=y.fragments;if(w){E.logger.warn("discontinuity sliding from playlist, take drift into account");for(var D=0;D<_.length;D++)_[D].cc+=w}y.skippedSegments&&(y.startCC=y.fragments[0].cc),e(h.partList,y.partList,function(R,U){U.elementaryStreams=R.elementaryStreams,U.stats=R.stats}),m?r(y,m,m.startPTS,m.endPTS,m.startDTS,m.endDTS):u(h,y),_.length&&(y.totalduration=y.edge-_[0].start),y.driftStartTime=h.driftStartTime,y.driftStart=h.driftStart;var T=y.advancedDateTime;if(y.advanced&&T){var O=y.edge;y.driftStart||(y.driftStartTime=T,y.driftStart=O),y.driftEndTime=T,y.driftEnd=O}else y.driftEndTime=h.driftEndTime,y.driftEnd=h.driftEnd,y.advancedDateTime=h.advancedDateTime}function e(h,y,v){if(h&&y)for(var x=0,S=0,B=h.length;S<=B;S++){var w=h[S],m=y[S+x];w&&m&&w.index===m.index&&w.fragment.sn===m.fragment.sn?v(w,m):x--}}function s(h,y,v){for(var x=y.skippedSegments,S=Math.max(h.startSN,y.startSN)-y.startSN,B=(h.fragmentHint?1:0)+(x?y.endSN:Math.min(h.endSN,y.endSN))-y.startSN,w=y.startSN-h.startSN,m=y.fragmentHint?y.fragments.concat(y.fragmentHint):y.fragments,c=h.fragmentHint?h.fragments.concat(h.fragmentHint):h.fragments,o=S;o<=B;o++){var _=c[w+o],D=m[o];x&&!D&&o<x&&(D=y.fragments[o]=_),_&&D&&v(_,D)}}function u(h,y){var v=y.startSN+y.skippedSegments-h.startSN,x=h.fragments;if(v<0||v>=x.length)return;a(y,x[v].start)}function a(h,y){if(y){for(var v=h.fragments,x=h.skippedSegments;x<v.length;x++)v[x].start+=y;h.fragmentHint&&(h.fragmentHint.start+=y)}}function A(h,y){var v=1e3*h.levelTargetDuration,x=v/2,S=h.age,B=S>0&&S<v*3,w=y.loading.end-y.loading.start,m,c=h.availabilityDelay;if(h.updated===!1)if(B){var o=333*h.misses;m=Math.max(Math.min(x,w*2),o),h.availabilityDelay=(h.availabilityDelay||0)+m}else m=x;else B?(c=Math.min(c||v/2,S),h.availabilityDelay=c,m=c+v-S):m=v-w;return Math.round(m)}function d(h,y,v){if(!h||!h.details)return null;var x=h.details,S=x.fragments[y-x.startSN];return S||(S=x.fragmentHint,S&&S.sn===y?S:y<x.startSN&&v&&v.sn===y?v:null)}function i(h,y,v){if(!h||!h.details)return null;var x=h.details.partList;if(x)for(var S=x.length;S--;){var B=x[S];if(B.index===v&&B.fragment.sn===y)return B}return null}},"./src/controller/stream-controller.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"default",function(){return x});var p=M("./src/polyfills/number.ts"),E=M("./src/controller/base-stream-controller.ts"),C=M("./src/is-supported.ts"),b=M("./src/events.ts"),f=M("./src/utils/buffer-helper.ts"),l=M("./src/controller/fragment-tracker.ts"),r=M("./src/types/loader.ts"),n=M("./src/loader/fragment.ts"),e=M("./src/demux/transmuxer-interface.ts"),s=M("./src/types/transmuxer.ts"),u=M("./src/controller/gap-controller.ts"),a=M("./src/errors.ts"),A=M("./src/utils/logger.ts");function d(S,B){for(var w=0;w<B.length;w++){var m=B[w];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(S,m.key,m)}}function i(S,B,w){return B&&d(S.prototype,B),w&&d(S,w),S}function h(S,B){S.prototype=Object.create(B.prototype),S.prototype.constructor=S,y(S,B)}function y(S,B){return y=Object.setPrototypeOf||function(m,c){return m.__proto__=c,m},y(S,B)}var v=100,x=function(S){h(B,S);function B(m,c){var o;return o=S.call(this,m,c,"[stream-controller]")||this,o.audioCodecSwap=!1,o.gapController=null,o.level=-1,o._forceStartLoad=!1,o.altAudio=!1,o.audioOnly=!1,o.fragPlaying=null,o.onvplaying=null,o.onvseeked=null,o.fragLastKbps=0,o.stalled=!1,o.couldBacktrack=!1,o.audioCodecSwitch=!1,o.videoBuffer=null,o._registerListeners(),o}var w=B.prototype;return w._registerListeners=function(){var c=this.hls;c.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),c.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),c.on(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),c.on(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),c.on(b.Events.LEVEL_LOADING,this.onLevelLoading,this),c.on(b.Events.LEVEL_LOADED,this.onLevelLoaded,this),c.on(b.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),c.on(b.Events.ERROR,this.onError,this),c.on(b.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),c.on(b.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),c.on(b.Events.BUFFER_CREATED,this.onBufferCreated,this),c.on(b.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),c.on(b.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),c.on(b.Events.FRAG_BUFFERED,this.onFragBuffered,this)},w._unregisterListeners=function(){var c=this.hls;c.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),c.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),c.off(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),c.off(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),c.off(b.Events.LEVEL_LOADED,this.onLevelLoaded,this),c.off(b.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),c.off(b.Events.ERROR,this.onError,this),c.off(b.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),c.off(b.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),c.off(b.Events.BUFFER_CREATED,this.onBufferCreated,this),c.off(b.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),c.off(b.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),c.off(b.Events.FRAG_BUFFERED,this.onFragBuffered,this)},w.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},w.startLoad=function(c){if(this.levels){var o=this.lastCurrentTime,_=this.hls;if(this.stopLoad(),this.setInterval(v),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var D=_.startLevel;D===-1&&(_.config.testBandwidth?(D=0,this.bitrateTest=!0):D=_.nextAutoLevel),this.level=_.nextLoadLevel=D,this.loadedmetadata=!1}o>0&&c===-1&&(this.log("Override startPosition with lastCurrentTime @"+o.toFixed(3)),c=o),this.state=E.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=c,this.tick()}else this._forceStartLoad=!0,this.state=E.State.STOPPED},w.stopLoad=function(){this._forceStartLoad=!1,S.prototype.stopLoad.call(this)},w.doTick=function(){switch(this.state){case E.State.IDLE:this.doTickIdle();break;case E.State.WAITING_LEVEL:{var c,o=this.levels,_=this.level,D=o==null||((c=o[_])===null||c===void 0)?void 0:c.details;if(D&&(!D.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(D))break;this.state=E.State.IDLE;break}break}case E.State.FRAG_LOADING_WAITING_RETRY:{var T,O=self.performance.now(),R=this.retryDate;(!R||O>=R||(T=this.media)!==null&&T!==void 0&&T.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=E.State.IDLE)}break;default:break}this.onTickEnd()},w.onTickEnd=function(){S.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},w.doTickIdle=function(){var c,o,_=this.hls,D=this.levelLastLoaded,T=this.levels,O=this.media,R=_.config,U=_.nextLoadLevel;if(D===null||!O&&(this.startFragRequested||!R.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!T||!T[U])return;var F=T[U];this.level=_.nextLoadLevel=U;var Y=F.details;if(!Y||this.state===E.State.WAITING_LEVEL||Y.live&&this.levelLastLoaded!==U){this.state=E.State.WAITING_LEVEL;return}var k=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:O,r.PlaylistLevelType.MAIN);if(k===null)return;var K=k.len,z=this.getMaxBufferLength(F.maxBitrate);if(K>=z)return;if(this._streamEnded(k,Y)){var j={};this.altAudio&&(j.type="video"),this.hls.trigger(b.Events.BUFFER_EOS,j),this.state=E.State.ENDED;return}var Q=k.end,X=this.getNextFragment(Q,Y);if(this.couldBacktrack&&!this.fragPrevious&&X&&X.sn!=="initSegment"){var te=X.sn-Y.startSN;te>1&&(X=Y.fragments[te-1],this.fragmentTracker.removeFragment(X))}if(X&&this.fragmentTracker.getState(X)===l.FragmentState.OK&&this.nextLoadPosition>Q){var oe=this.audioOnly&&!this.altAudio?n.ElementaryStreamTypes.AUDIO:n.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(O,oe,r.PlaylistLevelType.MAIN),X=this.getNextFragment(this.nextLoadPosition,Y)}if(!X)return;X.initSegment&&!X.initSegment.data&&!this.bitrateTest&&(X=X.initSegment),((c=X.decryptdata)===null||c===void 0?void 0:c.keyFormat)==="identity"&&!((o=X.decryptdata)!==null&&o!==void 0&&o.key)?this.loadKey(X,Y):this.loadFragment(X,Y,Q)},w.loadFragment=function(c,o,_){var D,T=this.fragmentTracker.getState(c);if(this.fragCurrent=c,T===l.FragmentState.BACKTRACKED){var O=this.fragmentTracker.getBacktrackData(c);if(O){this._handleFragmentLoadProgress(O),this._handleFragmentLoadComplete(O);return}else T=l.FragmentState.NOT_LOADED}T===l.FragmentState.NOT_LOADED||T===l.FragmentState.PARTIAL?c.sn==="initSegment"?this._loadInitSegment(c):this.bitrateTest?(c.bitrateTest=!0,this.log("Fragment "+c.sn+" of level "+c.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(c)):(this.startFragRequested=!0,S.prototype.loadFragment.call(this,c,o,_)):T===l.FragmentState.APPENDING?this.reduceMaxBufferLength(c.duration)&&this.fragmentTracker.removeFragment(c):((D=this.media)===null||D===void 0?void 0:D.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},w.getAppendedFrag=function(c){var o=this.fragmentTracker.getAppendedFrag(c,r.PlaylistLevelType.MAIN);return o&&"fragment"in o?o.fragment:o},w.getBufferedFrag=function(c){return this.fragmentTracker.getBufferedFrag(c,r.PlaylistLevelType.MAIN)},w.followingBufferedFrag=function(c){return c?this.getBufferedFrag(c.end+.5):null},w.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},w.nextLevelSwitch=function(){var c=this.levels,o=this.media;if(o!=null&&o.readyState){var _,D=this.getAppendedFrag(o.currentTime);if(D&&D.start>1&&this.flushMainBuffer(0,D.start-1),!o.paused&&c){var T=this.hls.nextLoadLevel,O=c[T],R=this.fragLastKbps;R&&this.fragCurrent?_=this.fragCurrent.duration*O.maxBitrate/(1e3*R)+1:_=0}else _=0;var U=this.getBufferedFrag(o.currentTime+_);if(U){var F=this.followingBufferedFrag(U);if(F){this.abortCurrentFrag();var Y=F.maxStartPTS?F.maxStartPTS:F.start,k=F.duration,K=Math.max(U.end,Y+Math.min(Math.max(k-this.config.maxFragLookUpTolerance,k*.5),k*.75));this.flushMainBuffer(K,Number.POSITIVE_INFINITY)}}}},w.abortCurrentFrag=function(){var c=this.fragCurrent;this.fragCurrent=null,c!=null&&c.loader&&c.loader.abort(),this.state===E.State.KEY_LOADING&&(this.state=E.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},w.flushMainBuffer=function(c,o){S.prototype.flushMainBuffer.call(this,c,o,this.altAudio?"video":null)},w.onMediaAttached=function(c,o){S.prototype.onMediaAttached.call(this,c,o);var _=o.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),_.addEventListener("playing",this.onvplaying),_.addEventListener("seeked",this.onvseeked),this.gapController=new u.default(this.config,_,this.fragmentTracker,this.hls)},w.onMediaDetaching=function(){var c=this.media;c&&(c.removeEventListener("playing",this.onvplaying),c.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),S.prototype.onMediaDetaching.call(this)},w.onMediaPlaying=function(){this.tick()},w.onMediaSeeked=function(){var c=this.media,o=c?c.currentTime:null;Object(p.isFiniteNumber)(o)&&this.log("Media seeked to "+o.toFixed(3)),this.tick()},w.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(b.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},w.onManifestParsed=function(c,o){var _=!1,D=!1,T;o.levels.forEach(function(O){T=O.audioCodec,T&&(T.indexOf("mp4a.40.2")!==-1&&(_=!0),T.indexOf("mp4a.40.5")!==-1&&(D=!0))}),this.audioCodecSwitch=_&&D&&!Object(C.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=o.levels,this.startFragRequested=!1},w.onLevelLoading=function(c,o){var _=this.levels;if(!_||this.state!==E.State.IDLE)return;var D=_[o.level];(!D.details||D.details.live&&this.levelLastLoaded!==o.level||this.waitForCdnTuneIn(D.details))&&(this.state=E.State.WAITING_LEVEL)},w.onLevelLoaded=function(c,o){var _,D=this.levels,T=o.level,O=o.details,R=O.totalduration;if(!D){this.warn("Levels were reset while loading level "+T);return}this.log("Level "+T+" loaded ["+O.startSN+","+O.endSN+"], cc ["+O.startCC+", "+O.endCC+"] duration:"+R);var U=this.fragCurrent;U&&(this.state===E.State.FRAG_LOADING||this.state===E.State.FRAG_LOADING_WAITING_RETRY)&&(U.level!==o.level&&U.loader&&(this.state=E.State.IDLE,U.loader.abort()));var F=D[T],Y=0;if(O.live||(_=F.details)!==null&&_!==void 0&&_.live){if(O.fragments[0]||(O.deltaUpdateFailed=!0),O.deltaUpdateFailed)return;Y=this.alignPlaylists(O,F.details)}if(F.details=O,this.levelLastLoaded=T,this.hls.trigger(b.Events.LEVEL_UPDATED,{details:O,level:T}),this.state===E.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(O))return;this.state=E.State.IDLE}this.startFragRequested?O.live&&this.synchronizeToLiveEdge(O):this.setStartPosition(O,Y),this.tick()},w._handleFragmentLoadProgress=function(c){var o,_=c.frag,D=c.part,T=c.payload,O=this.levels;if(!O){this.warn("Levels were reset while fragment load was in progress. Fragment "+_.sn+" of level "+_.level+" will not be buffered");return}var R=O[_.level],U=R.details;if(!U){this.warn("Dropping fragment "+_.sn+" of level "+_.level+" after level details were reset");return}var F=R.videoCodec,Y=U.PTSKnown||!U.live,k=(o=_.initSegment)===null||o===void 0?void 0:o.data,K=this._getAudioCodec(R),z=this.transmuxer=this.transmuxer||new e.default(this.hls,r.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),j=D?D.index:-1,Q=j!==-1,X=new s.ChunkMetadata(_.level,_.sn,_.stats.chunkCount,T.byteLength,j,Q),te=this.initPTS[_.cc];z.push(T,k,K,F,_,D,U.totalduration,Y,X,te)},w.onAudioTrackSwitching=function(c,o){var _=this.altAudio,D=!!o.url,T=o.id;if(!D){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var O=this.fragCurrent;O!=null&&O.loader&&(this.log("Switching to main audio track, cancel main fragment load"),O.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var R=this.hls;_&&R.trigger(b.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),R.trigger(b.Events.AUDIO_TRACK_SWITCHED,{id:T})}},w.onAudioTrackSwitched=function(c,o){var _=o.id,D=!!this.hls.audioTracks[_].url;if(D){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=D,this.tick()},w.onBufferCreated=function(c,o){var _=o.tracks,D,T,O=!1;for(var R in _){var U=_[R];if(U.id==="main"){if(T=R,D=U,R==="video"){var F=_[R];F&&(this.videoBuffer=F.buffer)}}else O=!0}O&&D?(this.log("Alternate track found, use "+T+".buffered to schedule main fragment loading"),this.mediaBuffer=D.buffer):this.mediaBuffer=this.media},w.onFragBuffered=function(c,o){var _=o.frag,D=o.part;if(_&&_.type!==r.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(_)){this.warn("Fragment "+_.sn+(D?" p: "+D.index:"")+" of level "+_.level+" finished buffering, but was aborted. state: "+this.state),this.state===E.State.PARSED&&(this.state=E.State.IDLE);return}var T=D?D.stats:_.stats;this.fragLastKbps=Math.round(8*T.total/(T.buffering.end-T.loading.first)),_.sn!=="initSegment"&&(this.fragPrevious=_),this.fragBufferedComplete(_,D)},w.onError=function(c,o){switch(o.details){case a.ErrorDetails.FRAG_LOAD_ERROR:case a.ErrorDetails.FRAG_LOAD_TIMEOUT:case a.ErrorDetails.KEY_LOAD_ERROR:case a.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(r.PlaylistLevelType.MAIN,o);break;case a.ErrorDetails.LEVEL_LOAD_ERROR:case a.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==E.State.ERROR&&(o.fatal?(this.warn(""+o.details),this.state=E.State.ERROR):!o.levelRetry&&this.state===E.State.WAITING_LEVEL&&(this.state=E.State.IDLE));break;case a.ErrorDetails.BUFFER_FULL_ERROR:if(o.parent==="main"&&(this.state===E.State.PARSING||this.state===E.State.PARSED)){var _=!0,D=this.getFwdBufferInfo(this.media,r.PlaylistLevelType.MAIN);D&&D.len>.5&&(_=!this.reduceMaxBufferLength(D.len)),_&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},w.checkBuffer=function(){var c=this.media,o=this.gapController;if(!c||!o||!c.readyState)return;var _=f.BufferHelper.getBuffered(c);!this.loadedmetadata&&_.length?(this.loadedmetadata=!0,this.seekToStartPos()):o.poll(this.lastCurrentTime),this.lastCurrentTime=c.currentTime},w.onFragLoadEmergencyAborted=function(){this.state=E.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},w.onBufferFlushed=function(c,o){var _=o.type;if(_!==n.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var D=(_===n.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(D,_,r.PlaylistLevelType.MAIN)}},w.onLevelsUpdated=function(c,o){this.levels=o.levels},w.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},w.seekToStartPos=function(){var c=this.media,o=c.currentTime,_=this.startPosition;if(_>=0&&o<_){if(c.seeking){A.logger.log("could not seek to "+_+", already seeking at "+o);return}var D=f.BufferHelper.getBuffered(c),T=D.length?D.start(0):0,O=T-_;O>0&&(O<this.config.maxBufferHole||O<this.config.maxFragLookUpTolerance)&&(A.logger.log("adjusting start position by "+O+" to match buffer start"),_+=O,this.startPosition=_),this.log("seek to target start position "+_+" from current time "+o),c.currentTime=_}},w._getAudioCodec=function(c){var o=this.config.defaultAudioCodec||c.audioCodec;return this.audioCodecSwap&&o&&(this.log("Swapping audio codec"),o.indexOf("mp4a.40.5")!==-1?o="mp4a.40.2":o="mp4a.40.5"),o},w._loadBitrateTestFrag=function(c){var o=this;this._doFragLoad(c).then(function(_){var D=o.hls;if(!_||D.nextLoadLevel||o.fragContextChanged(c))return;o.fragLoadError=0,o.state=E.State.IDLE,o.startFragRequested=!1,o.bitrateTest=!1;var T=c.stats;T.parsing.start=T.parsing.end=T.buffering.start=T.buffering.end=self.performance.now(),D.trigger(b.Events.FRAG_LOADED,_)})},w._handleTransmuxComplete=function(c){var o,_="main",D=this.hls,T=c.remuxResult,O=c.chunkMeta,R=this.getCurrentContext(O);if(!R){this.warn("The loading context changed while buffering fragment "+O.sn+" of level "+O.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(O.level);return}var U=R.frag,F=R.part,Y=R.level,k=T.video,K=T.text,z=T.id3,j=T.initSegment,Q=this.altAudio?void 0:T.audio;if(this.fragContextChanged(U))return;if(this.state=E.State.PARSING,j){j.tracks&&(this._bufferInitSegment(Y,j.tracks,U,O),D.trigger(b.Events.FRAG_PARSING_INIT_SEGMENT,{frag:U,id:_,tracks:j.tracks}));var X=j.initPTS,te=j.timescale;Object(p.isFiniteNumber)(X)&&(this.initPTS[U.cc]=X,D.trigger(b.Events.INIT_PTS_FOUND,{frag:U,id:_,initPTS:X,timescale:te}))}if(k&&T.independent!==!1){if(Y.details){var oe=k.startPTS,fe=k.endPTS,le=k.startDTS,we=k.endDTS;if(F)F.elementaryStreams[k.type]={startPTS:oe,endPTS:fe,startDTS:le,endDTS:we};else if(k.firstKeyFrame&&k.independent&&(this.couldBacktrack=!0),k.dropped&&k.independent){var Ae=this.getLoadPosition()+this.config.maxBufferHole;if(Ae<oe){this.backtrack(U);return}U.setElementaryStreamInfo(k.type,U.start,fe,U.start,we,!0)}U.setElementaryStreamInfo(k.type,oe,fe,le,we),this.bufferFragmentData(k,U,F,O)}}else if(T.independent===!1){this.backtrack(U);return}if(Q){var be=Q.startPTS,me=Q.endPTS,he=Q.startDTS,ie=Q.endDTS;F&&(F.elementaryStreams[n.ElementaryStreamTypes.AUDIO]={startPTS:be,endPTS:me,startDTS:he,endDTS:ie}),U.setElementaryStreamInfo(n.ElementaryStreamTypes.AUDIO,be,me,he,ie),this.bufferFragmentData(Q,U,F,O)}if(z!=null&&(o=z.samples)!==null&&o!==void 0&&o.length){var pe={frag:U,id:_,samples:z.samples};D.trigger(b.Events.FRAG_PARSING_METADATA,pe)}if(K){var ye={frag:U,id:_,samples:K.samples};D.trigger(b.Events.FRAG_PARSING_USERDATA,ye)}},w._bufferInitSegment=function(c,o,_,D){var T=this;if(this.state!==E.State.PARSING)return;this.audioOnly=!!o.audio&&!o.video,this.altAudio&&!this.audioOnly&&delete o.audio;var O=o.audio,R=o.video,U=o.audiovideo;if(O){var F=c.audioCodec,Y=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(F&&(F.indexOf("mp4a.40.5")!==-1?F="mp4a.40.2":F="mp4a.40.5"),O.metadata.channelCount!==1&&Y.indexOf("firefox")===-1&&(F="mp4a.40.5")),Y.indexOf("android")!==-1&&O.container!=="audio/mpeg"&&(F="mp4a.40.2",this.log("Android: force audio codec to "+F)),c.audioCodec&&c.audioCodec!==F&&this.log('Swapping manifest audio codec "'+c.audioCodec+'" for "'+F+'"'),O.levelCodec=F,O.id="main",this.log("Init audio buffer, container:"+O.container+", codecs[selected/level/parsed]=["+(F||"")+"/"+(c.audioCodec||"")+"/"+O.codec+"]")}R&&(R.levelCodec=c.videoCodec,R.id="main",this.log("Init video buffer, container:"+R.container+", codecs[level/parsed]=["+(c.videoCodec||"")+"/"+R.codec+"]")),U&&this.log("Init audiovideo buffer, container:"+U.container+", codecs[level/parsed]=["+(c.attrs.CODECS||"")+"/"+U.codec+"]"),this.hls.trigger(b.Events.BUFFER_CODECS,o),Object.keys(o).forEach(function(k){var K=o[k],z=K.initSegment;z!=null&&z.byteLength&&T.hls.trigger(b.Events.BUFFER_APPENDING,{type:k,data:z,frag:_,part:null,chunkMeta:D,parent:_.type})}),this.tick()},w.backtrack=function(c){this.couldBacktrack=!0,this.resetTransmuxer(),this.flushBufferGap(c);var o=this.fragmentTracker.backtrack(c);this.fragPrevious=null,this.nextLoadPosition=c.start,o?this.resetFragmentLoading(c):this.state=E.State.BACKTRACKING},w.checkFragmentChanged=function(){var c=this.media,o=null;if(c&&c.readyState>1&&c.seeking===!1){var _=c.currentTime;if(f.BufferHelper.isBuffered(c,_)?o=this.getAppendedFrag(_):f.BufferHelper.isBuffered(c,_+.1)&&(o=this.getAppendedFrag(_+.1)),o){var D=this.fragPlaying,T=o.level;(!D||o.sn!==D.sn||D.level!==T||o.urlId!==D.urlId)&&(this.hls.trigger(b.Events.FRAG_CHANGED,{frag:o}),(!D||D.level!==T)&&this.hls.trigger(b.Events.LEVEL_SWITCHED,{level:T}),this.fragPlaying=o)}}},i(B,[{key:"nextLevel",get:function(){var c=this.nextBufferedFrag;return c?c.level:-1}},{key:"currentLevel",get:function(){var c=this.media;if(c){var o=this.getAppendedFrag(c.currentTime);if(o)return o.level}return-1}},{key:"nextBufferedFrag",get:function(){var c=this.media;if(c){var o=this.getAppendedFrag(c.currentTime);return this.followingBufferedFrag(o)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),B}(E.default)},"./src/controller/subtitle-stream-controller.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"SubtitleStreamController",function(){return h});var p=M("./src/events.ts"),E=M("./src/utils/logger.ts"),C=M("./src/utils/buffer-helper.ts"),b=M("./src/controller/fragment-finders.ts"),f=M("./src/utils/discontinuities.ts"),l=M("./src/controller/level-helper.ts"),r=M("./src/controller/fragment-tracker.ts"),n=M("./src/controller/base-stream-controller.ts"),e=M("./src/types/loader.ts"),s=M("./src/types/level.ts");function u(y,v){for(var x=0;x<v.length;x++){var S=v[x];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(y,S.key,S)}}function a(y,v,x){return v&&u(y.prototype,v),x&&u(y,x),y}function A(y,v){y.prototype=Object.create(v.prototype),y.prototype.constructor=y,d(y,v)}function d(y,v){return d=Object.setPrototypeOf||function(S,B){return S.__proto__=B,S},d(y,v)}var i=500,h=function(y){A(v,y);function v(S,B){var w;return w=y.call(this,S,B,"[subtitle-stream-controller]")||this,w.levels=[],w.currentTrackId=-1,w.tracksBuffered=[],w.mainDetails=null,w._registerListeners(),w}var x=v.prototype;return x.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},x._registerListeners=function(){var B=this.hls;B.on(p.Events.MEDIA_ATTACHED,this.onMediaAttached,this),B.on(p.Events.MEDIA_DETACHING,this.onMediaDetaching,this),B.on(p.Events.MANIFEST_LOADING,this.onManifestLoading,this),B.on(p.Events.LEVEL_LOADED,this.onLevelLoaded,this),B.on(p.Events.ERROR,this.onError,this),B.on(p.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),B.on(p.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),B.on(p.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),B.on(p.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),B.on(p.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},x._unregisterListeners=function(){var B=this.hls;B.off(p.Events.MEDIA_ATTACHED,this.onMediaAttached,this),B.off(p.Events.MEDIA_DETACHING,this.onMediaDetaching,this),B.off(p.Events.MANIFEST_LOADING,this.onManifestLoading,this),B.off(p.Events.LEVEL_LOADED,this.onLevelLoaded,this),B.off(p.Events.ERROR,this.onError,this),B.off(p.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),B.off(p.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),B.off(p.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),B.off(p.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),B.off(p.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},x.startLoad=function(){this.stopLoad(),this.state=n.State.IDLE,this.setInterval(i),this.tick()},x.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},x.onLevelLoaded=function(B,w){this.mainDetails=w.details},x.onSubtitleFragProcessed=function(B,w){var m=w.frag,c=w.success;if(this.fragPrevious=m,this.state=n.State.IDLE,!c)return;var o=this.tracksBuffered[this.currentTrackId];if(!o)return;for(var _,D=m.start,T=0;T<o.length;T++)if(D>=o[T].start&&D<=o[T].end){_=o[T];break}var O=m.start+m.duration;_?_.end=O:(_={start:D,end:O},o.push(_)),this.fragmentTracker.fragBuffered(m)},x.onBufferFlushing=function(B,w){var m=w.startOffset,c=w.endOffset;if(m===0&&c!==Number.POSITIVE_INFINITY){var o=this.currentTrackId,_=this.levels;if(!_.length||!_[o]||!_[o].details)return;var D=_[o].details,T=D.targetduration,O=c-T;if(O<=0)return;w.endOffsetSubtitles=Math.max(0,O),this.tracksBuffered.forEach(function(R){for(var U=0;U<R.length;){if(R[U].end<=O){R.shift();continue}else if(R[U].start<O)R[U].start=O;else break;U++}}),this.fragmentTracker.removeFragmentsInRange(m,O,e.PlaylistLevelType.SUBTITLE)}},x.onError=function(B,w){var m,c=w.frag;if(!c||c.type!==e.PlaylistLevelType.SUBTITLE)return;(m=this.fragCurrent)!==null&&m!==void 0&&m.loader&&this.fragCurrent.loader.abort(),this.state=n.State.IDLE},x.onSubtitleTracksUpdated=function(B,w){var m=this,c=w.subtitleTracks;this.tracksBuffered=[],this.levels=c.map(function(o){return new s.Level(o)}),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach(function(o){m.tracksBuffered[o.id]=[]}),this.mediaBuffer=null},x.onSubtitleTrackSwitch=function(B,w){if(this.currentTrackId=w.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var m=this.levels[this.currentTrackId];m!=null&&m.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,m&&this.setInterval(i)},x.onSubtitleTrackLoaded=function(B,w){var m,c=w.details,o=w.id,_=this.currentTrackId,D=this.levels;if(!D.length)return;var T=D[_];if(o>=D.length||o!==_||!T)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,c.live||(m=T.details)!==null&&m!==void 0&&m.live){var O=this.mainDetails;if(c.deltaUpdateFailed||!O)return;var R=O.fragments[0];if(!T.details)c.hasProgramDateTime&&O.hasProgramDateTime?Object(f.alignMediaPlaylistByPDT)(c,O):R&&Object(l.addSliding)(c,R.start);else{var U=this.alignPlaylists(c,T.details);U===0&&R&&Object(l.addSliding)(c,R.start)}}if(T.details=c,this.levelLastLoaded=o,this.tick(),c.live&&!this.fragCurrent&&this.media&&this.state===n.State.IDLE){var F=Object(b.findFragmentByPTS)(null,c.fragments,this.media.currentTime,0);F||(this.warn("Subtitle playlist not aligned with playback"),T.details=void 0)}},x._handleFragmentLoadComplete=function(B){var w=B.frag,m=B.payload,c=w.decryptdata,o=this.hls;if(this.fragContextChanged(w))return;if(m&&m.byteLength>0&&c&&c.key&&c.iv&&c.method==="AES-128"){var _=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(m),c.key.buffer,c.iv.buffer).then(function(D){var T=performance.now();o.trigger(p.Events.FRAG_DECRYPTED,{frag:w,payload:D,stats:{tstart:_,tdecrypt:T}})})}},x.doTick=function(){if(!this.media){this.state=n.State.IDLE;return}if(this.state===n.State.IDLE){var B,w=this.currentTrackId,m=this.levels;if(!m.length||!m[w]||!m[w].details)return;var c=m[w].details,o=c.targetduration,_=this.config,D=this.media,T=C.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,D.currentTime-o,_.maxBufferHole),O=T.end,R=T.len,U=this.getMaxBufferLength()+o;if(R>U)return;console.assert(c,"Subtitle track details are defined on idle subtitle stream controller tick");var F=c.fragments,Y=F.length,k=c.edge,K,z=this.fragPrevious;if(O<k){var j=_.maxFragLookUpTolerance;z&&c.hasProgramDateTime&&(K=Object(b.findFragmentByPDT)(F,z.endProgramDateTime,j)),K||(K=Object(b.findFragmentByPTS)(z,F,O,j),!K&&z&&z.start<F[0].start&&(K=F[0]))}else K=F[Y-1];(B=K)!==null&&B!==void 0&&B.encrypted?(E.logger.log("Loading key for "+K.sn),this.state=n.State.KEY_LOADING,this.hls.trigger(p.Events.KEY_LOADING,{frag:K})):K&&this.fragmentTracker.getState(K)===r.FragmentState.NOT_LOADED&&this.loadFragment(K,c,O)}},x.loadFragment=function(B,w,m){this.fragCurrent=B,y.prototype.loadFragment.call(this,B,w,m)},a(v,[{key:"mediaBufferTimeRanges",get:function(){return this.tracksBuffered[this.currentTrackId]||[]}}]),v}(n.default)},"./src/controller/subtitle-track-controller.ts":function(ae,V,M){"use strict";M.r(V);var p=M("./src/events.ts"),E=M("./src/utils/texttrack-utils.ts"),C=M("./src/controller/base-playlist-controller.ts"),b=M("./src/types/loader.ts");function f(u,a){for(var A=0;A<a.length;A++){var d=a[A];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(u,d.key,d)}}function l(u,a,A){return a&&f(u.prototype,a),A&&f(u,A),u}function r(u,a){u.prototype=Object.create(a.prototype),u.prototype.constructor=u,n(u,a)}function n(u,a){return n=Object.setPrototypeOf||function(d,i){return d.__proto__=i,d},n(u,a)}var e=function(u){r(a,u);function a(d){var i;return i=u.call(this,d,"[subtitle-track-controller]")||this,i.media=null,i.tracks=[],i.groupId=null,i.tracksInGroup=[],i.trackId=-1,i.selectDefaultTrack=!0,i.queuedDefaultTrack=-1,i.trackChangeListener=function(){return i.onTextTracksChanged()},i.asyncPollTrackChange=function(){return i.pollTrackChange(0)},i.useTextTrackPolling=!1,i.subtitlePollingInterval=-1,i.subtitleDisplay=!0,i.registerListeners(),i}var A=a.prototype;return A.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,u.prototype.destroy.call(this)},A.registerListeners=function(){var i=this.hls;i.on(p.Events.MEDIA_ATTACHED,this.onMediaAttached,this),i.on(p.Events.MEDIA_DETACHING,this.onMediaDetaching,this),i.on(p.Events.MANIFEST_LOADING,this.onManifestLoading,this),i.on(p.Events.MANIFEST_PARSED,this.onManifestParsed,this),i.on(p.Events.LEVEL_LOADING,this.onLevelLoading,this),i.on(p.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),i.on(p.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),i.on(p.Events.ERROR,this.onError,this)},A.unregisterListeners=function(){var i=this.hls;i.off(p.Events.MEDIA_ATTACHED,this.onMediaAttached,this),i.off(p.Events.MEDIA_DETACHING,this.onMediaDetaching,this),i.off(p.Events.MANIFEST_LOADING,this.onManifestLoading,this),i.off(p.Events.MANIFEST_PARSED,this.onManifestParsed,this),i.off(p.Events.LEVEL_LOADING,this.onLevelLoading,this),i.off(p.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),i.off(p.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),i.off(p.Events.ERROR,this.onError,this)},A.onMediaAttached=function(i,h){if(this.media=h.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)},A.pollTrackChange=function(i){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,i)},A.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 i=s(this.media.textTracks);i.forEach(function(h){Object(E.clearCurrentCues)(h)}),this.subtitleTrack=-1,this.media=null},A.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},A.onManifestParsed=function(i,h){this.tracks=h.subtitleTracks},A.onSubtitleTrackLoaded=function(i,h){var y=h.id,v=h.details,x=this.trackId,S=this.tracksInGroup[x];if(!S){this.warn("Invalid subtitle track id "+y);return}var B=S.details;S.details=h.details,this.log("subtitle track "+y+" loaded ["+v.startSN+"-"+v.endSN+"]"),y===this.trackId&&(this.retryCount=0,this.playlistLoaded(y,h,B))},A.onLevelLoading=function(i,h){this.switchLevel(h.level)},A.onLevelSwitching=function(i,h){this.switchLevel(h.level)},A.switchLevel=function(i){var h=this.hls.levels[i];if(!(h!=null&&h.textGroupIds))return;var y=h.textGroupIds[h.urlId];if(this.groupId!==y){var v=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,x=this.tracks.filter(function(w){return!y||w.groupId===y});this.tracksInGroup=x;var S=this.findTrackId(v==null?void 0:v.name)||this.findTrackId();this.groupId=y;var B={subtitleTracks:x};this.log("Updating subtitle tracks, "+x.length+' track(s) found in "'+y+'" group-id'),this.hls.trigger(p.Events.SUBTITLE_TRACKS_UPDATED,B),S!==-1&&this.setSubtitleTrack(S,v)}},A.findTrackId=function(i){for(var h=this.tracksInGroup,y=0;y<h.length;y++){var v=h[y];if((!this.selectDefaultTrack||v.default)&&(!i||i===v.name))return v.id}return-1},A.onError=function(i,h){if(u.prototype.onError.call(this,i,h),h.fatal||!h.context)return;h.context.type===b.PlaylistContextType.SUBTITLE_TRACK&&h.context.id===this.trackId&&h.context.groupId===this.groupId&&this.retryLoadingOrFail(h)},A.loadPlaylist=function(i){var h=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(h)){var y=h.id,v=h.groupId,x=h.url;if(i)try{x=i.addDirectives(x)}catch(S){this.warn("Could not construct new URL with HLS Delivery Directives: "+S)}this.log("Loading subtitle playlist for id "+y),this.hls.trigger(p.Events.SUBTITLE_TRACK_LOADING,{url:x,id:y,groupId:v,deliveryDirectives:i||null})}},A.toggleTrackModes=function(i){var h=this,y=this.media,v=this.subtitleDisplay,x=this.trackId;if(!y)return;var S=s(y.textTracks),B=S.filter(function(c){return c.groupId===h.groupId});if(i===-1)[].slice.call(S).forEach(function(c){c.mode="disabled"});else{var w=B[x];w&&(w.mode="disabled")}var m=B[i];m&&(m.mode=v?"showing":"hidden")},A.setSubtitleTrack=function(i,h){var y,v=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=i;return}if(this.trackId!==i&&this.toggleTrackModes(i),this.trackId===i&&(i===-1||(y=v[i])!==null&&y!==void 0&&y.details)||i<-1||i>=v.length)return;this.clearTimer();var x=v[i];if(this.log("Switching to subtitle track "+i),this.trackId=i,x){var S=x.id,B=x.groupId,w=B===void 0?"":B,m=x.name,c=x.type,o=x.url;this.hls.trigger(p.Events.SUBTITLE_TRACK_SWITCH,{id:S,groupId:w,name:m,type:c,url:o});var _=this.switchParams(x.url,h==null?void 0:h.details);this.loadPlaylist(_)}else this.hls.trigger(p.Events.SUBTITLE_TRACK_SWITCH,{id:i})},A.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var i=-1,h=s(this.media.textTracks),y=0;y<h.length;y++)if(h[y].mode==="hidden")i=y;else if(h[y].mode==="showing"){i=y;break}this.subtitleTrack!==i&&(this.subtitleTrack=i)},l(a,[{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(i){this.selectDefaultTrack=!1;var h=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(i,h)}}]),a}(C.default);function s(u){for(var a=[],A=0;A<u.length;A++){var d=u[A];d.kind==="subtitles"&&d.label&&a.push(u[A])}return a}V.default=e},"./src/controller/timeline-controller.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"TimelineController",function(){return s});var p=M("./src/polyfills/number.ts"),E=M("./src/events.ts"),C=M("./src/utils/cea-608-parser.ts"),b=M("./src/utils/output-filter.ts"),f=M("./src/utils/webvtt-parser.ts"),l=M("./src/utils/texttrack-utils.ts"),r=M("./src/utils/imsc1-ttml-parser.ts"),n=M("./src/types/loader.ts"),e=M("./src/utils/logger.ts"),s=function(){function d(h){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=A(),this.captionsProperties=void 0,this.hls=h,this.config=h.config,this.Cues=h.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 y=new b.default(this,"textTrack1"),v=new b.default(this,"textTrack2"),x=new b.default(this,"textTrack3"),S=new b.default(this,"textTrack4");this.cea608Parser1=new C.default(1,y,v),this.cea608Parser2=new C.default(3,x,S)}h.on(E.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),h.on(E.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.on(E.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.on(E.Events.MANIFEST_LOADED,this.onManifestLoaded,this),h.on(E.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),h.on(E.Events.FRAG_LOADING,this.onFragLoading,this),h.on(E.Events.FRAG_LOADED,this.onFragLoaded,this),h.on(E.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),h.on(E.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),h.on(E.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),h.on(E.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),h.on(E.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)}var i=d.prototype;return i.destroy=function(){var y=this.hls;y.off(E.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),y.off(E.Events.MEDIA_DETACHING,this.onMediaDetaching,this),y.off(E.Events.MANIFEST_LOADING,this.onManifestLoading,this),y.off(E.Events.MANIFEST_LOADED,this.onManifestLoaded,this),y.off(E.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),y.off(E.Events.FRAG_LOADING,this.onFragLoading,this),y.off(E.Events.FRAG_LOADED,this.onFragLoaded,this),y.off(E.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),y.off(E.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),y.off(E.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),y.off(E.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),y.off(E.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},i.addCues=function(y,v,x,S,B){for(var w=!1,m=B.length;m--;){var c=B[m],o=a(c[0],c[1],v,x);if(o>=0&&(c[0]=Math.min(c[0],v),c[1]=Math.max(c[1],x),w=!0,o/(x-v)>.5))return}if(w||B.push([v,x]),this.config.renderTextTracksNatively){var _=this.captionsTracks[y];this.Cues.newCue(_,v,x,S)}else{var D=this.Cues.newCue(null,v,x,S);this.hls.trigger(E.Events.CUES_PARSED,{type:"captions",cues:D,track:y})}},i.onInitPtsFound=function(y,v){var x=this,S=v.frag,B=v.id,w=v.initPTS,m=v.timescale,c=this.unparsedVttFrags;B==="main"&&(this.initPTS[S.cc]=w,this.timescale[S.cc]=m),c.length&&(this.unparsedVttFrags=[],c.forEach(function(o){x.onFragLoaded(E.Events.FRAG_LOADED,o)}))},i.getExistingTrack=function(y){var v=this.media;if(v)for(var x=0;x<v.textTracks.length;x++){var S=v.textTracks[x];if(S[y])return S}return null},i.createCaptionsTrack=function(y){this.config.renderTextTracksNatively?this.createNativeTrack(y):this.createNonNativeTrack(y)},i.createNativeTrack=function(y){if(this.captionsTracks[y])return;var v=this.captionsProperties,x=this.captionsTracks,S=this.media,B=v[y],w=B.label,m=B.languageCode,c=this.getExistingTrack(y);if(c)x[y]=c,Object(l.clearCurrentCues)(x[y]),Object(l.sendAddTrackEvent)(x[y],S);else{var o=this.createTextTrack("captions",w,m);o&&(o[y]=!0,x[y]=o)}},i.createNonNativeTrack=function(y){if(this.nonNativeCaptionsTracks[y])return;var v=this.captionsProperties[y];if(!v)return;var x=v.label,S={_id:y,label:x,kind:"captions",default:v.media?!!v.media.default:!1,closedCaptions:v.media};this.nonNativeCaptionsTracks[y]=S,this.hls.trigger(E.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[S]})},i.createTextTrack=function(y,v,x){var S=this.media;return S?S.addTextTrack(y,v,x):void 0},i.onMediaAttaching=function(y,v){this.media=v.media,this._cleanTracks()},i.onMediaDetaching=function(){var y=this.captionsTracks;Object.keys(y).forEach(function(v){Object(l.clearCurrentCues)(y[v]),delete y[v]}),this.nonNativeCaptionsTracks={}},i.onManifestLoading=function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=A(),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())},i._cleanTracks=function(){var y=this.media;if(!y)return;var v=y.textTracks;if(v)for(var x=0;x<v.length;x++)Object(l.clearCurrentCues)(v[x])},i.onSubtitleTracksUpdated=function(y,v){var x=this;this.textTracks=[];var S=v.subtitleTracks||[],B=S.some(function(o){return o.textCodec===r.IMSC1_CODEC});if(this.config.enableWebVTT||B&&this.config.enableIMSC1){var w=this.tracks&&S&&this.tracks.length===S.length;if(this.tracks=S||[],this.config.renderTextTracksNatively){var m=this.media?this.media.textTracks:[];this.tracks.forEach(function(o,_){var D;if(_<m.length){for(var T=null,O=0;O<m.length;O++)if(u(m[O],o)){T=m[O];break}T&&(D=T)}D?Object(l.clearCurrentCues)(D):(D=x.createTextTrack("subtitles",o.name,o.lang),D&&(D.mode="disabled")),D&&(D.groupId=o.groupId,x.textTracks.push(D))})}else if(!w&&this.tracks&&this.tracks.length){var c=this.tracks.map(function(o){return{label:o.name,kind:o.type.toLowerCase(),default:o.default,subtitleTrack:o}});this.hls.trigger(E.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:c})}}},i.onManifestLoaded=function(y,v){var x=this;this.config.enableCEA708Captions&&v.captions&&v.captions.forEach(function(S){var B=/(?:CC|SERVICE)([1-4])/.exec(S.instreamId);if(!B)return;var w="textTrack"+B[1],m=x.captionsProperties[w];if(!m)return;m.label=S.name,S.lang&&(m.languageCode=S.lang),m.media=S})},i.onFragLoading=function(y,v){var x=this.cea608Parser1,S=this.cea608Parser2,B=this.lastSn,w=this.lastPartIndex;if(!this.enabled||!(x&&S))return;if(v.frag.type===n.PlaylistLevelType.MAIN){var m,c,o=v.frag.sn,_=(m=v==null||((c=v.part)===null||c===void 0)?void 0:c.index)!=null?m:-1;o===B+1||o===B&&_===w+1||(x.reset(),S.reset()),this.lastSn=o,this.lastPartIndex=_}},i.onFragLoaded=function(y,v){var x=v.frag,S=v.payload,B=this.initPTS,w=this.unparsedVttFrags;if(x.type===n.PlaylistLevelType.SUBTITLE)if(S.byteLength){if(!Object(p.isFiniteNumber)(B[x.cc])){w.push(v),B.length&&this.hls.trigger(E.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:x,error:new Error("Missing initial subtitle PTS")});return}var m=x.decryptdata;if(m==null||m.key==null||m.method!=="AES-128"){var c=this.tracks[x.level],o=this.vttCCs;o[x.cc]||(o[x.cc]={start:x.start,prevCC:this.prevCC,new:!0},this.prevCC=x.cc),c&&c.textCodec===r.IMSC1_CODEC?this._parseIMSC1(x,S):this._parseVTTs(x,S,o)}}else this.hls.trigger(E.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:x,error:new Error("Empty subtitle payload")})},i._parseIMSC1=function(y,v){var x=this,S=this.hls;Object(r.parseIMSC1)(v,this.initPTS[y.cc],this.timescale[y.cc],function(B){x._appendCues(B,y.level),S.trigger(E.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:y})},function(B){e.logger.log("Failed to parse IMSC1: "+B),S.trigger(E.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:y,error:B})})},i._parseVTTs=function(y,v,x){var S=this,B=this.hls;Object(f.parseWebVTT)(v,this.initPTS[y.cc],this.timescale[y.cc],x,y.cc,y.start,function(w){S._appendCues(w,y.level),B.trigger(E.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:y})},function(w){S._fallbackToIMSC1(y,v),e.logger.log("Failed to parse VTT cue: "+w),B.trigger(E.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:y,error:w})})},i._fallbackToIMSC1=function(y,v){var x=this,S=this.tracks[y.level];S.textCodec||Object(r.parseIMSC1)(v,this.initPTS[y.cc],this.timescale[y.cc],function(){S.textCodec=r.IMSC1_CODEC,x._parseIMSC1(y,v)},function(){S.textCodec="wvtt"})},i._appendCues=function(y,v){var x=this.hls;if(this.config.renderTextTracksNatively){var S=this.textTracks[v];if(S.mode==="disabled")return;y.forEach(function(m){return Object(l.addCueToTrack)(S,m)})}else{var B=this.tracks[v],w=B.default?"default":"subtitles"+v;x.trigger(E.Events.CUES_PARSED,{type:"subtitles",cues:y,track:w})}},i.onFragDecrypted=function(y,v){var x=v.frag;if(x.type===n.PlaylistLevelType.SUBTITLE){if(!Object(p.isFiniteNumber)(this.initPTS[x.cc])){this.unparsedVttFrags.push(v);return}this.onFragLoaded(E.Events.FRAG_LOADED,v)}},i.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},i.onFragParsingUserdata=function(y,v){var x=this.cea608Parser1,S=this.cea608Parser2;if(!this.enabled||!(x&&S))return;for(var B=0;B<v.samples.length;B++){var w=v.samples[B].bytes;if(w){var m=this.extractCea608Data(w);x.addData(v.samples[B].pts,m[0]),S.addData(v.samples[B].pts,m[1])}}},i.onBufferFlushing=function(y,v){var x=v.startOffset,S=v.endOffset,B=v.endOffsetSubtitles,w=v.type,m=this.media;if(!m||m.currentTime<S)return;if(!w||w==="video"){var c=this.captionsTracks;Object.keys(c).forEach(function(_){return Object(l.removeCuesInRange)(c[_],x,S)})}if(this.config.renderTextTracksNatively&&(x===0&&B!==void 0)){var o=this.textTracks;Object.keys(o).forEach(function(_){return Object(l.removeCuesInRange)(o[_],x,B)})}},i.extractCea608Data=function(y){for(var v=y[0]&31,x=2,S=[[],[]],B=0;B<v;B++){var w=y[x++],m=127&y[x++],c=127&y[x++],o=(4&w)!==0,_=3&w;if(m===0&&c===0)continue;o&&((_===0||_===1)&&(S[_].push(m),S[_].push(c)))}return S},d}();function u(d,i){return d&&d.label===i.name&&!(d.textTrack1||d.textTrack2)}function a(d,i,h,y){return Math.min(i,y)-Math.max(d,h)}function A(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}}}},"./src/crypt/aes-crypto.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"default",function(){return p});var p=function(){function E(b,f){this.subtle=void 0,this.aesIV=void 0,this.subtle=b,this.aesIV=f}var C=E.prototype;return C.decrypt=function(f,l){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},l,f)},E}()},"./src/crypt/aes-decryptor.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"removePadding",function(){return E}),M.d(V,"default",function(){return C});var p=M("./src/utils/typed-array.ts");function E(b){var f=b.byteLength,l=f&&new DataView(b.buffer).getUint8(f-1);return l?Object(p.sliceUint8)(b,0,f-l):b}var C=function(){function b(){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 f=b.prototype;return f.uint8ArrayToUint32Array_=function(r){for(var n=new DataView(r),e=new Uint32Array(4),s=0;s<4;s++)e[s]=n.getUint32(s*4);return e},f.initTable=function(){var r=this.sBox,n=this.invSBox,e=this.subMix,s=e[0],u=e[1],a=e[2],A=e[3],d=this.invSubMix,i=d[0],h=d[1],y=d[2],v=d[3],x=new Uint32Array(256),S=0,B=0,w=0;for(w=0;w<256;w++)w<128?x[w]=w<<1:x[w]=w<<1^283;for(w=0;w<256;w++){var m=B^B<<1^B<<2^B<<3^B<<4;m=m>>>8^m&255^99,r[S]=m,n[m]=S;var c=x[S],o=x[c],_=x[o],D=x[m]*257^m*16843008;s[S]=D<<24|D>>>8,u[S]=D<<16|D>>>16,a[S]=D<<8|D>>>24,A[S]=D,D=_*16843009^o*65537^c*257^S*16843008,i[m]=D<<24|D>>>8,h[m]=D<<16|D>>>16,y[m]=D<<8|D>>>24,v[m]=D,S?(S=c^x[x[x[_^c]]],B^=x[x[B]]):S=B=1}},f.expandKey=function(r){for(var n=this.uint8ArrayToUint32Array_(r),e=!0,s=0;s<n.length&&e;)e=n[s]===this.key[s],s++;if(e)return;this.key=n;var u=this.keySize=n.length;if(u!==4&&u!==6&&u!==8)throw new Error("Invalid aes key size="+u);var a=this.ksRows=(u+6+1)*4,A,d,i=this.keySchedule=new Uint32Array(a),h=this.invKeySchedule=new Uint32Array(a),y=this.sBox,v=this.rcon,x=this.invSubMix,S=x[0],B=x[1],w=x[2],m=x[3],c,o;for(A=0;A<a;A++){if(A<u){c=i[A]=n[A];continue}o=c,A%u===0?(o=o<<8|o>>>24,o=y[o>>>24]<<24|y[o>>>16&255]<<16|y[o>>>8&255]<<8|y[o&255],o^=v[A/u|0]<<24):u>6&&A%u===4&&(o=y[o>>>24]<<24|y[o>>>16&255]<<16|y[o>>>8&255]<<8|y[o&255]),i[A]=c=(i[A-u]^o)>>>0}for(d=0;d<a;d++)A=a-d,d&3?o=i[A]:o=i[A-4],d<4||A<=4?h[d]=o:h[d]=S[y[o>>>24]]^B[y[o>>>16&255]]^w[y[o>>>8&255]]^m[y[o&255]],h[d]=h[d]>>>0},f.networkToHostOrderSwap=function(r){return r<<24|(r&65280)<<8|(r&16711680)>>8|r>>>24},f.decrypt=function(r,n,e){for(var s=this.keySize+6,u=this.invKeySchedule,a=this.invSBox,A=this.invSubMix,d=A[0],i=A[1],h=A[2],y=A[3],v=this.uint8ArrayToUint32Array_(e),x=v[0],S=v[1],B=v[2],w=v[3],m=new Int32Array(r),c=new Int32Array(m.length),o,_,D,T,O,R,U,F,Y,k,K,z,j,Q,X=this.networkToHostOrderSwap;n<m.length;){for(Y=X(m[n]),k=X(m[n+1]),K=X(m[n+2]),z=X(m[n+3]),O=Y^u[0],R=z^u[1],U=K^u[2],F=k^u[3],j=4,Q=1;Q<s;Q++)o=d[O>>>24]^i[R>>16&255]^h[U>>8&255]^y[F&255]^u[j],_=d[R>>>24]^i[U>>16&255]^h[F>>8&255]^y[O&255]^u[j+1],D=d[U>>>24]^i[F>>16&255]^h[O>>8&255]^y[R&255]^u[j+2],T=d[F>>>24]^i[O>>16&255]^h[R>>8&255]^y[U&255]^u[j+3],O=o,R=_,U=D,F=T,j=j+4;o=a[O>>>24]<<24^a[R>>16&255]<<16^a[U>>8&255]<<8^a[F&255]^u[j],_=a[R>>>24]<<24^a[U>>16&255]<<16^a[F>>8&255]<<8^a[O&255]^u[j+1],D=a[U>>>24]<<24^a[F>>16&255]<<16^a[O>>8&255]<<8^a[R&255]^u[j+2],T=a[F>>>24]<<24^a[O>>16&255]<<16^a[R>>8&255]<<8^a[U&255]^u[j+3],c[n]=X(o^x),c[n+1]=X(T^S),c[n+2]=X(D^B),c[n+3]=X(_^w),x=Y,S=k,B=K,w=z,n=n+4}return c.buffer},b}()},"./src/crypt/decrypter.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"default",function(){return n});var p=M("./src/crypt/aes-crypto.ts"),E=M("./src/crypt/fast-aes-key.ts"),C=M("./src/crypt/aes-decryptor.ts"),b=M("./src/utils/logger.ts"),f=M("./src/utils/mp4-tools.ts"),l=M("./src/utils/typed-array.ts"),r=16,n=function(){function e(u,a,A){var d=A===void 0?{}:A,i=d.removePKCS7Padding,h=i===void 0?!0:i;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=u,this.config=a,this.removePKCS7Padding=h,h)try{var y=self.crypto;y&&(this.subtle=y.subtle||y.webkitSubtle)}catch(v){}this.subtle===null&&(this.config.enableSoftwareAES=!0)}var s=e.prototype;return s.destroy=function(){this.observer=null},s.isSync=function(){return this.config.enableSoftwareAES},s.flush=function(){var a=this.currentResult;if(!a){this.reset();return}var A=new Uint8Array(a);return this.reset(),this.removePKCS7Padding?Object(C.removePadding)(A):A},s.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},s.decrypt=function(a,A,d,i){if(this.config.enableSoftwareAES){this.softwareDecrypt(new Uint8Array(a),A,d);var h=this.flush();h&&i(h.buffer)}else this.webCryptoDecrypt(new Uint8Array(a),A,d).then(i)},s.softwareDecrypt=function(a,A,d){var i=this.currentIV,h=this.currentResult,y=this.remainderData;this.logOnce("JS AES decrypt"),y&&(a=Object(f.appendUint8Array)(y,a),this.remainderData=null);var v=this.getValidChunk(a);if(!v.length)return null;i&&(d=i);var x=this.softwareDecrypter;x||(x=this.softwareDecrypter=new C.default),x.expandKey(A);var S=h;return this.currentResult=x.decrypt(v.buffer,0,d),this.currentIV=Object(l.sliceUint8)(v,-16).buffer,S||null},s.webCryptoDecrypt=function(a,A,d){var i=this,h=this.subtle;return(this.key!==A||!this.fastAesKey)&&(this.key=A,this.fastAesKey=new E.default(h,A)),this.fastAesKey.expandKey().then(function(y){if(!h)return Promise.reject(new Error("web crypto not initialized"));var v=new p.default(h,d);return v.decrypt(a.buffer,y)}).catch(function(y){return i.onWebCryptoError(y,a,A,d)})},s.onWebCryptoError=function(a,A,d,i){return b.logger.warn("[decrypter.ts]: WebCrypto Error, disable WebCrypto API:",a),this.config.enableSoftwareAES=!0,this.logEnabled=!0,this.softwareDecrypt(A,d,i)},s.getValidChunk=function(a){var A=a,d=a.length-a.length%r;return d!==a.length&&(A=Object(l.sliceUint8)(a,0,d),this.remainderData=Object(l.sliceUint8)(a,d)),A},s.logOnce=function(a){if(!this.logEnabled)return;b.logger.log("[decrypter.ts]: "+a),this.logEnabled=!1},e}()},"./src/crypt/fast-aes-key.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"default",function(){return p});var p=function(){function E(b,f){this.subtle=void 0,this.key=void 0,this.subtle=b,this.key=f}var C=E.prototype;return C.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},E}()},"./src/demux/aacdemuxer.ts":function(ae,V,M){"use strict";M.r(V);var p=M("./src/demux/base-audio-demuxer.ts"),E=M("./src/demux/adts.ts"),C=M("./src/utils/logger.ts"),b=M("./src/demux/id3.ts");function f(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,l(n,e)}function l(n,e){return l=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},l(n,e)}var r=function(n){f(e,n);function e(u,a){var A;return A=n.call(this)||this,A.observer=void 0,A.config=void 0,A.observer=u,A.config=a,A}var s=e.prototype;return s.resetInitSegment=function(a,A,d){n.prototype.resetInitSegment.call(this,a,A,d),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!0,samples:[],manifestCodec:a,duration:d,inputTimeScale:9e4,dropped:0}},e.probe=function(a){if(!a)return!1;for(var A=b.getID3Data(a,0)||[],d=A.length,i=a.length;d<i;d++)if(E.probe(a,d))return C.logger.log("ADTS sync word found !"),!0;return!1},s.canParse=function(a,A){return E.canParse(a,A)},s.appendFrame=function(a,A,d){E.initTrackConfig(a,this.observer,A,d,a.manifestCodec);var i=E.appendFrame(a,A,d,this.initPTS,this.frameIndex);if(i&&i.missing===0)return i},e}(p.default);r.minProbeByteLength=9,V.default=r},"./src/demux/adts.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"getAudioConfig",function(){return b}),M.d(V,"isHeaderPattern",function(){return f}),M.d(V,"getHeaderLength",function(){return l}),M.d(V,"getFullFrameLength",function(){return r}),M.d(V,"canGetFrameLength",function(){return n}),M.d(V,"isHeader",function(){return e}),M.d(V,"canParse",function(){return s}),M.d(V,"probe",function(){return u}),M.d(V,"initTrackConfig",function(){return a}),M.d(V,"getFrameDuration",function(){return A}),M.d(V,"parseFrameHeader",function(){return d}),M.d(V,"appendFrame",function(){return i});var p=M("./src/utils/logger.ts"),E=M("./src/errors.ts"),C=M("./src/events.ts");function b(h,y,v,x){var S,B,w,m,c=navigator.userAgent.toLowerCase(),o=x,_=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];S=((y[v+2]&192)>>>6)+1;var D=(y[v+2]&60)>>>2;if(D>_.length-1){h.trigger(C.Events.ERROR,{type:E.ErrorTypes.MEDIA_ERROR,details:E.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+D});return}return w=(y[v+2]&1)<<2,w|=(y[v+3]&192)>>>6,p.logger.log("manifest codec:"+x+", ADTS type:"+S+", samplingIndex:"+D),/firefox/i.test(c)?D>=6?(S=5,m=new Array(4),B=D-3):(S=2,m=new Array(2),B=D):c.indexOf("android")!==-1?(S=2,m=new Array(2),B=D):(S=5,m=new Array(4),x&&(x.indexOf("mp4a.40.29")!==-1||x.indexOf("mp4a.40.5")!==-1)||!x&&D>=6?B=D-3:((x&&x.indexOf("mp4a.40.2")!==-1&&(D>=6&&w===1||/vivaldi/i.test(c))||!x&&w===1)&&(S=2,m=new Array(2)),B=D)),m[0]=S<<3,m[0]|=(D&14)>>1,m[1]|=(D&1)<<7,m[1]|=w<<3,S===5&&(m[1]|=(B&14)>>1,m[2]=(B&1)<<7,m[2]|=2<<2,m[3]=0),{config:m,samplerate:_[D],channelCount:w,codec:"mp4a.40."+S,manifestCodec:o}}function f(h,y){return h[y]===255&&(h[y+1]&246)===240}function l(h,y){return h[y+1]&1?7:9}function r(h,y){return(h[y+3]&3)<<11|h[y+4]<<3|(h[y+5]&224)>>>5}function n(h,y){return y+5<h.length}function e(h,y){return y+1<h.length&&f(h,y)}function s(h,y){return n(h,y)&&f(h,y)&&r(h,y)<=h.length-y}function u(h,y){if(e(h,y)){var v=l(h,y);if(y+v>=h.length)return!1;var x=r(h,y);if(x<=v)return!1;var S=y+x;return S===h.length||e(h,S)}return!1}function a(h,y,v,x,S){if(!h.samplerate){var B=b(y,v,x,S);if(!B)return;h.config=B.config,h.samplerate=B.samplerate,h.channelCount=B.channelCount,h.codec=B.codec,h.manifestCodec=B.manifestCodec,p.logger.log("parsed codec:"+h.codec+", rate:"+B.samplerate+", channels:"+B.channelCount)}}function A(h){return 1024*9e4/h}function d(h,y,v,x,S){var B=l(h,y),w=r(h,y);if(w-=B,w>0){var m=v+x*S;return{headerLength:B,frameLength:w,stamp:m}}}function i(h,y,v,x,S){var B=A(h.samplerate),w=d(y,v,x,S,B);if(w){var m=w.frameLength,c=w.headerLength,o=w.stamp,_=c+m,D=Math.max(0,v+_-y.length),T;D?(T=new Uint8Array(_-c),T.set(y.subarray(v+c,y.length),0)):T=y.subarray(v+c,v+_);var O={unit:T,pts:o};return D||h.samples.push(O),{sample:O,length:_,missing:D}}}},"./src/demux/base-audio-demuxer.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"initPTSFn",function(){return r});var p=M("./src/polyfills/number.ts"),E=M("./src/demux/id3.ts"),C=M("./src/demux/dummy-demuxed-track.ts"),b=M("./src/utils/mp4-tools.ts"),f=M("./src/utils/typed-array.ts"),l=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(u,a,A){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},e.resetTimeStamp=function(){},e.resetContiguity=function(){},e.canParse=function(u,a){return!1},e.appendFrame=function(u,a,A){},e.demux=function(u,a){this.cachedData&&(u=Object(b.appendUint8Array)(this.cachedData,u),this.cachedData=null);var A=E.getID3Data(u,0),d=A?A.length:0,i,h,y=this._audioTrack,v=this._id3Track,x=A?E.getTimeStamp(A):void 0,S=u.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=r(x,a)),A&&A.length>0&&v.samples.push({pts:this.initPTS,dts:this.initPTS,data:A}),h=this.initPTS;d<S;){if(this.canParse(u,d)){var B=this.appendFrame(y,u,d);B?(this.frameIndex++,h=B.sample.pts,d+=B.length,i=d):d=S}else E.canParse(u,d)?(A=E.getID3Data(u,d),v.samples.push({pts:h,dts:h,data:A}),d+=A.length,i=d):d++;if(d===S&&i!==S){var w=Object(f.sliceUint8)(u,i);this.cachedData?this.cachedData=Object(b.appendUint8Array)(this.cachedData,w):this.cachedData=w}}return{audioTrack:y,avcTrack:Object(C.dummyTrack)(),id3Track:v,textTrack:Object(C.dummyTrack)()}},e.demuxSampleAes=function(u,a,A){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},e.flush=function(u){var a=this.cachedData;return a&&(this.cachedData=null,this.demux(a,0)),this.frameIndex=0,{audioTrack:this._audioTrack,avcTrack:Object(C.dummyTrack)(),id3Track:this._id3Track,textTrack:Object(C.dummyTrack)()}},e.destroy=function(){},n}(),r=function(e,s){return Object(p.isFiniteNumber)(e)?e*90:s*9e4};V.default=l},"./src/demux/chunk-cache.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"default",function(){return p});var p=function(){function C(){this.chunks=[],this.dataLength=0}var b=C.prototype;return b.push=function(l){this.chunks.push(l),this.dataLength+=l.length},b.flush=function(){var l=this.chunks,r=this.dataLength,n;if(l.length)l.length===1?n=l[0]:n=E(l,r);else return new Uint8Array(0);return this.reset(),n},b.reset=function(){this.chunks.length=0,this.dataLength=0},C}();function E(C,b){for(var f=new Uint8Array(b),l=0,r=0;r<C.length;r++){var n=C[r];f.set(n,l),l+=n.length}return f}},"./src/demux/dummy-demuxed-track.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"dummyTrack",function(){return p});function p(){return{type:"",id:-1,pid:-1,inputTimeScale:9e4,sequenceNumber:-1,samples:[],dropped:0}}},"./src/demux/exp-golomb.ts":function(ae,V,M){"use strict";M.r(V);var p=M("./src/utils/logger.ts"),E=function(){function C(f){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=f,this.bytesAvailable=f.byteLength,this.word=0,this.bitsAvailable=0}var b=C.prototype;return b.loadWord=function(){var l=this.data,r=this.bytesAvailable,n=l.byteLength-r,e=new Uint8Array(4),s=Math.min(4,r);if(s===0)throw new Error("no bytes available");e.set(l.subarray(n,n+s)),this.word=new DataView(e.buffer).getUint32(0),this.bitsAvailable=s*8,this.bytesAvailable-=s},b.skipBits=function(l){var r;this.bitsAvailable>l?(this.word<<=l,this.bitsAvailable-=l):(l-=this.bitsAvailable,r=l>>3,l-=r>>3,this.bytesAvailable-=r,this.loadWord(),this.word<<=l,this.bitsAvailable-=l)},b.readBits=function(l){var r=Math.min(this.bitsAvailable,l),n=this.word>>>32-r;return l>32&&p.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=r,this.bitsAvailable>0?this.word<<=r:this.bytesAvailable>0&&this.loadWord(),r=l-r,r>0&&this.bitsAvailable?n<<r|this.readBits(r):n},b.skipLZ=function(){var l;for(l=0;l<this.bitsAvailable;++l)if((this.word&2147483648>>>l)!==0)return this.word<<=l,this.bitsAvailable-=l,l;return this.loadWord(),l+this.skipLZ()},b.skipUEG=function(){this.skipBits(1+this.skipLZ())},b.skipEG=function(){this.skipBits(1+this.skipLZ())},b.readUEG=function(){var l=this.skipLZ();return this.readBits(l+1)-1},b.readEG=function(){var l=this.readUEG();return 1&l?1+l>>>1:-1*(l>>>1)},b.readBoolean=function(){return this.readBits(1)===1},b.readUByte=function(){return this.readBits(8)},b.readUShort=function(){return this.readBits(16)},b.readUInt=function(){return this.readBits(32)},b.skipScalingList=function(l){for(var r=8,n=8,e,s=0;s<l;s++)n!==0&&(e=this.readEG(),n=(r+e+256)%256),r=n===0?r:n},b.readSPS=function(){var l=0,r=0,n=0,e=0,s,u,a,A=this.readUByte.bind(this),d=this.readBits.bind(this),i=this.readUEG.bind(this),h=this.readBoolean.bind(this),y=this.skipBits.bind(this),v=this.skipEG.bind(this),x=this.skipUEG.bind(this),S=this.skipScalingList.bind(this);A();var B=A();if(d(5),y(3),A(),x(),B===100||B===110||B===122||B===244||B===44||B===83||B===86||B===118||B===128){var w=i();if(w===3&&y(1),x(),x(),y(1),h())for(u=w!==3?8:12,a=0;a<u;a++)h()&&(a<6?S(16):S(64))}x();var m=i();if(m===0)i();else if(m===1)for(y(1),v(),v(),s=i(),a=0;a<s;a++)v();x(),y(1);var c=i(),o=i(),_=d(1);_===0&&y(1),y(1),h()&&(l=i(),r=i(),n=i(),e=i());var D=[1,1];if(h()&&h()){var T=A();switch(T){case 1:D=[1,1];break;case 2:D=[12,11];break;case 3:D=[10,11];break;case 4:D=[16,11];break;case 5:D=[40,33];break;case 6:D=[24,11];break;case 7:D=[20,11];break;case 8:D=[32,11];break;case 9:D=[80,33];break;case 10:D=[18,11];break;case 11:D=[15,11];break;case 12:D=[64,33];break;case 13:D=[160,99];break;case 14:D=[4,3];break;case 15:D=[3,2];break;case 16:D=[2,1];break;case 255:{D=[A()<<8|A(),A()<<8|A()];break}}}return{width:Math.ceil((c+1)*16-l*2-r*2),height:(2-_)*(o+1)*16-(_?2:4)*(n+e),pixelRatio:D}},b.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},C}();V.default=E},"./src/demux/id3.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"isHeader",function(){return p}),M.d(V,"isFooter",function(){return E}),M.d(V,"getID3Data",function(){return C}),M.d(V,"canParse",function(){return f}),M.d(V,"getTimeStamp",function(){return l}),M.d(V,"isTimeStampFrame",function(){return r}),M.d(V,"getID3Frames",function(){return e}),M.d(V,"decodeFrame",function(){return s}),M.d(V,"utf8ArrayToStr",function(){return i}),M.d(V,"testables",function(){return h});var p=function(S,B){return B+10<=S.length&&(S[B]===73&&S[B+1]===68&&S[B+2]===51&&(S[B+3]<255&&S[B+4]<255&&(S[B+6]<128&&S[B+7]<128&&S[B+8]<128&&S[B+9]<128)))},E=function(S,B){return B+10<=S.length&&(S[B]===51&&S[B+1]===68&&S[B+2]===73&&(S[B+3]<255&&S[B+4]<255&&(S[B+6]<128&&S[B+7]<128&&S[B+8]<128&&S[B+9]<128)))},C=function(S,B){for(var w=B,m=0;p(S,B);){m+=10;var c=b(S,B+6);m+=c,E(S,B+10)&&(m+=10),B+=m}return m>0?S.subarray(w,w+m):void 0},b=function(S,B){var w=0;return w=(S[B]&127)<<21,w|=(S[B+1]&127)<<14,w|=(S[B+2]&127)<<7,w|=S[B+3]&127,w},f=function(S,B){return p(S,B)&&b(S,B+6)+10<=S.length-B},l=function(S){for(var B=e(S),w=0;w<B.length;w++){var m=B[w];if(r(m))return d(m)}return},r=function(S){return S&&S.key==="PRIV"&&S.info==="com.apple.streaming.transportStreamTimestamp"},n=function(S){var B=String.fromCharCode(S[0],S[1],S[2],S[3]),w=b(S,4),m=10;return{type:B,size:w,data:S.subarray(m,m+w)}},e=function(S){for(var B=0,w=[];p(S,B);){var m=b(S,B+6);B+=10;for(var c=B+m;B+8<c;){var o=n(S.subarray(B)),_=s(o);_&&w.push(_),B+=o.size+10}E(S,B)&&(B+=10)}return w},s=function(S){return S.type==="PRIV"?u(S):S.type[0]==="W"?A(S):a(S)},u=function(S){if(S.size<2)return;var B=i(S.data,!0),w=new Uint8Array(S.data.subarray(B.length+1));return{key:S.type,info:B,data:w.buffer}},a=function(S){if(S.size<2)return;if(S.type==="TXXX"){var B=1,w=i(S.data.subarray(B),!0);B+=w.length+1;var m=i(S.data.subarray(B));return{key:S.type,info:w,data:m}}var c=i(S.data.subarray(1));return{key:S.type,data:c}},A=function(S){if(S.type==="WXXX"){if(S.size<2)return;var B=1,w=i(S.data.subarray(B),!0);B+=w.length+1;var m=i(S.data.subarray(B));return{key:S.type,info:w,data:m}}var c=i(S.data);return{key:S.type,data:c}},d=function(S){if(S.data.byteLength===8){var B=new Uint8Array(S.data),w=B[3]&1,m=(B[4]<<23)+(B[5]<<15)+(B[6]<<7)+B[7];return m/=45,w&&(m+=4772185884e-2),Math.round(m)}return},i=function(S,B){B===void 0&&(B=!1);var w=v();if(w){var m=w.decode(S);if(B){var c=m.indexOf("\0");return c!==-1?m.substring(0,c):m}return m.replace(/\0/g,"")}for(var o=S.length,_,D,T,O="",R=0;R<o;){if(_=S[R++],_===0&&B)return O;if(_===0||_===3)continue;switch(_>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:O+=String.fromCharCode(_);break;case 12:case 13:D=S[R++],O+=String.fromCharCode((_&31)<<6|D&63);break;case 14:D=S[R++],T=S[R++],O+=String.fromCharCode((_&15)<<12|(D&63)<<6|(T&63)<<0);break;default:}}return O},h={decodeTextFrame:a},y;function v(){return!y&&typeof self.TextDecoder!="undefined"&&(y=new self.TextDecoder("utf-8")),y}},"./src/demux/mp3demuxer.ts":function(ae,V,M){"use strict";M.r(V);var p=M("./src/demux/base-audio-demuxer.ts"),E=M("./src/demux/id3.ts"),C=M("./src/utils/logger.ts"),b=M("./src/demux/mpegaudio.ts");function f(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,l(n,e)}function l(n,e){return l=Object.setPrototypeOf||function(u,a){return u.__proto__=a,u},l(n,e)}var r=function(n){f(e,n);function e(){return n.apply(this,arguments)||this}var s=e.prototype;return s.resetInitSegment=function(a,A,d){n.prototype.resetInitSegment.call(this,a,A,d),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:a,duration:d,inputTimeScale:9e4,dropped:0}},e.probe=function(a){if(!a)return!1;for(var A=E.getID3Data(a,0)||[],d=A.length,i=a.length;d<i;d++)if(b.probe(a,d))return C.logger.log("MPEG Audio sync word found !"),!0;return!1},s.canParse=function(a,A){return b.canParse(a,A)},s.appendFrame=function(a,A,d){return this.initPTS===null?void 0:b.appendFrame(a,A,d,this.initPTS,this.frameIndex)},e}(p.default);r.minProbeByteLength=4,V.default=r},"./src/demux/mp4demuxer.ts":function(ae,V,M){"use strict";M.r(V);var p=M("./src/utils/mp4-tools.ts"),E=M("./src/demux/dummy-demuxed-track.ts"),C=function(){function b(l,r){this.remainderData=null,this.config=void 0,this.config=r}var f=b.prototype;return f.resetTimeStamp=function(){},f.resetInitSegment=function(){},f.resetContiguity=function(){},b.probe=function(r){return Object(p.findBox)({data:r,start:0,end:Math.min(r.length,16384)},["moof"]).length>0},f.demux=function(r){var n=r,e=Object(E.dummyTrack)();if(this.config.progressive){this.remainderData&&(n=Object(p.appendUint8Array)(this.remainderData,r));var s=Object(p.segmentValidRange)(n);this.remainderData=s.remainder,e.samples=s.valid||new Uint8Array}else e.samples=n;return{audioTrack:Object(E.dummyTrack)(),avcTrack:e,id3Track:Object(E.dummyTrack)(),textTrack:Object(E.dummyTrack)()}},f.flush=function(){var r=Object(E.dummyTrack)();return r.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(E.dummyTrack)(),avcTrack:r,id3Track:Object(E.dummyTrack)(),textTrack:Object(E.dummyTrack)()}},f.demuxSampleAes=function(r,n,e){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},f.destroy=function(){},b}();C.minProbeByteLength=1024,V.default=C},"./src/demux/mpegaudio.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"appendFrame",function(){return l}),M.d(V,"parseHeader",function(){return r}),M.d(V,"isHeaderPattern",function(){return n}),M.d(V,"isHeader",function(){return e}),M.d(V,"canParse",function(){return s}),M.d(V,"probe",function(){return u});var p=null,E=[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],b=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],f=[0,1,1,4];function l(a,A,d,i,h){if(d+24>A.length)return;var y=r(A,d);if(y&&d+y.frameLength<=A.length){var v=y.samplesPerFrame*9e4/y.sampleRate,x=i+h*v,S={unit:A.subarray(d,d+y.frameLength),pts:x,dts:x};return a.config=[],a.channelCount=y.channelCount,a.samplerate=y.sampleRate,a.samples.push(S),{sample:S,length:y.frameLength,missing:0}}}function r(a,A){var d=a[A+1]>>3&3,i=a[A+1]>>1&3,h=a[A+2]>>4&15,y=a[A+2]>>2&3;if(d!==1&&h!==0&&h!==15&&y!==3){var v=a[A+2]>>1&1,x=a[A+3]>>6,S=d===3?3-i:i===3?3:4,B=E[S*14+h-1]*1e3,w=d===3?0:d===2?1:2,m=C[w*3+y],c=x===3?1:2,o=b[d][i],_=f[i],D=o*8*_,T=Math.floor(o*B/m+v)*_;if(p===null){var O=navigator.userAgent||"",R=O.match(/Chrome\/(\d+)/i);p=R?parseInt(R[1]):0}var U=!!p&&p<=87;return U&&i===2&&B>=224e3&&x===0&&(a[A+3]=a[A+3]|128),{sampleRate:m,channelCount:c,frameLength:T,samplesPerFrame:D}}}function n(a,A){return a[A]===255&&(a[A+1]&224)===224&&(a[A+1]&6)!==0}function e(a,A){return A+1<a.length&&n(a,A)}function s(a,A){var d=4;return n(a,A)&&d<=a.length-A}function u(a,A){if(A+1<a.length&&n(a,A)){var d=4,i=r(a,A),h=d;i!=null&&i.frameLength&&(h=i.frameLength);var y=A+h;return y===a.length||e(a,y)}return!1}},"./src/demux/sample-aes.ts":function(ae,V,M){"use strict";M.r(V);var p=M("./src/crypt/decrypter.ts"),E=M("./src/demux/tsdemuxer.ts"),C=function(){function b(l,r,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new p.default(l,r,{removePKCS7Padding:!1})}var f=b.prototype;return f.decryptBuffer=function(r,n){this.decrypter.decrypt(r,this.keyData.key.buffer,this.keyData.iv.buffer,n)},f.decryptAacSample=function(r,n,e,s){var u=r[n].unit,a=u.subarray(16,u.length-u.length%16),A=a.buffer.slice(a.byteOffset,a.byteOffset+a.length),d=this;this.decryptBuffer(A,function(i){var h=new Uint8Array(i);u.set(h,16),s||d.decryptAacSamples(r,n+1,e)})},f.decryptAacSamples=function(r,n,e){for(;;n++){if(n>=r.length){e();return}if(r[n].unit.length<32)continue;var s=this.decrypter.isSync();if(this.decryptAacSample(r,n,e,s),!s)return}},f.getAvcEncryptedData=function(r){for(var n=Math.floor((r.length-48)/160)*16+16,e=new Int8Array(n),s=0,u=32;u<=r.length-16;u+=160,s+=16)e.set(r.subarray(u,u+16),s);return e},f.getAvcDecryptedUnit=function(r,n){for(var e=new Uint8Array(n),s=0,u=32;u<=r.length-16;u+=160,s+=16)r.set(e.subarray(s,s+16),u);return r},f.decryptAvcSample=function(r,n,e,s,u,a){var A=Object(E.discardEPB)(u.data),d=this.getAvcEncryptedData(A),i=this;this.decryptBuffer(d.buffer,function(h){u.data=i.getAvcDecryptedUnit(A,h),a||i.decryptAvcSamples(r,n,e+1,s)})},f.decryptAvcSamples=function(r,n,e,s){if(r instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;n++,e=0){if(n>=r.length){s();return}for(var u=r[n].units;!(e>=u.length);e++){var a=u[e];if(a.data.length<=48||a.type!==1&&a.type!==5)continue;var A=this.decrypter.isSync();if(this.decryptAvcSample(r,n,e,s,a,A),!A)return}}},b}();V.default=C},"./src/demux/transmuxer-interface.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"default",function(){return u});var p=M("./node_modules/webworkify-webpack/index.js"),E=M.n(p),C=M("./src/events.ts"),b=M("./src/demux/transmuxer.ts"),f=M("./src/utils/logger.ts"),l=M("./src/errors.ts"),r=M("./src/utils/mediasource-helper.ts"),n=M("./node_modules/eventemitter3/index.js"),e=M.n(n),s=Object(r.getMediaSource)()||{isTypeSupported:function(){return!1}},u=function(){function a(d,i,h,y){var v=this;this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.worker=void 0,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.hls=d,this.id=i,this.onTransmuxComplete=h,this.onFlush=y;var x=d.config,S=function(o,_){_=_||{},_.frag=v.frag,_.id=v.id,d.trigger(o,_)};this.observer=new n.EventEmitter,this.observer.on(C.Events.FRAG_DECRYPTED,S),this.observer.on(C.Events.ERROR,S);var B={mp4:s.isTypeSupported("video/mp4"),mpeg:s.isTypeSupported("audio/mpeg"),mp3:s.isTypeSupported('audio/mp4; codecs="mp3"')},w=navigator.vendor;if(x.enableWorker&&typeof Worker!="undefined"){f.logger.log("demuxing in webworker");var m;try{m=this.worker=p("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),m.addEventListener("message",this.onwmsg),m.onerror=function(c){d.trigger(C.Events.ERROR,{type:l.ErrorTypes.OTHER_ERROR,details:l.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(c.message+" ("+c.filename+":"+c.lineno+")")})},m.postMessage({cmd:"init",typeSupported:B,vendor:w,id:i,config:JSON.stringify(x)})}catch(c){f.logger.warn("Error in worker:",c),f.logger.error("Error while initializing DemuxerWorker, fallback to inline"),m&&self.URL.revokeObjectURL(m.objectURL),this.transmuxer=new b.default(this.observer,B,x,w,i),this.worker=null}}else this.transmuxer=new b.default(this.observer,B,x,w,i)}var A=a.prototype;return A.destroy=function(){var i=this.worker;if(i)i.removeEventListener("message",this.onwmsg),i.terminate(),this.worker=null;else{var h=this.transmuxer;h&&(h.destroy(),this.transmuxer=null)}var y=this.observer;y&&y.removeAllListeners(),this.observer=null},A.push=function(i,h,y,v,x,S,B,w,m,c){var o=this;m.transmuxing.start=self.performance.now();var _=this.transmuxer,D=this.worker,T=S?S.start:x.start,O=x.decryptdata,R=this.frag,U=!(R&&x.cc===R.cc),F=!(R&&m.level===R.level),Y=R?m.sn-R.sn:-1,k=this.part?m.part-this.part.index:1,K=!F&&(Y===1||Y===0&&k===1),z=self.performance.now();(F||Y||x.stats.parsing.start===0)&&(x.stats.parsing.start=z),S&&(k||!K)&&(S.stats.parsing.start=z);var j=new b.TransmuxState(U,K,w,F,T);if(!K||U){f.logger.log("[transmuxer-interface, "+x.type+"]: Starting new transmux session for sn: "+m.sn+" p: "+m.part+" level: "+m.level+" id: "+m.id+`
discontinuity: `+U+`
trackSwitch: `+F+`
contiguous: `+K+`
accurateTimeOffset: `+w+`
timeOffset: `+T);var Q=new b.TransmuxConfig(y,v,h,B,c);this.configureTransmuxer(Q)}if(this.frag=x,this.part=S,D)D.postMessage({cmd:"demux",data:i,decryptdata:O,chunkMeta:m,state:j},i instanceof ArrayBuffer?[i]:[]);else if(_){var X=_.push(i,O,m,j);Object(b.isPromise)(X)?X.then(function(te){o.handleTransmuxComplete(te)}):this.handleTransmuxComplete(X)}},A.flush=function(i){var h=this;i.transmuxing.start=self.performance.now();var y=this.transmuxer,v=this.worker;if(v)v.postMessage({cmd:"flush",chunkMeta:i});else if(y){var x=y.flush(i);Object(b.isPromise)(x)?x.then(function(S){h.handleFlushResult(S,i)}):this.handleFlushResult(x,i)}},A.handleFlushResult=function(i,h){var y=this;i.forEach(function(v){y.handleTransmuxComplete(v)}),this.onFlush(h)},A.onWorkerMessage=function(i){var h=i.data,y=this.hls;switch(h.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(h.data);break}case"flush":{this.onFlush(h.data);break}default:{h.data=h.data||{},h.data.frag=this.frag,h.data.id=this.id,y.trigger(h.event,h.data);break}}},A.configureTransmuxer=function(i){var h=this.worker,y=this.transmuxer;h?h.postMessage({cmd:"configure",config:i}):y&&y.configure(i)},A.handleTransmuxComplete=function(i){i.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(i)},a}()},"./src/demux/transmuxer-worker.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"default",function(){return l});var p=M("./src/demux/transmuxer.ts"),E=M("./src/events.ts"),C=M("./src/utils/logger.ts"),b=M("./node_modules/eventemitter3/index.js"),f=M.n(b);function l(u){var a=new b.EventEmitter,A=function(i,h){u.postMessage({event:i,data:h})};a.on(E.Events.FRAG_DECRYPTED,A),a.on(E.Events.ERROR,A),u.addEventListener("message",function(d){var i=d.data;switch(i.cmd){case"init":{var h=JSON.parse(i.config);u.transmuxer=new p.default(a,i.typeSupported,h,i.vendor,i.id),Object(C.enableLogs)(h.debug),A("init",null);break}case"configure":{u.transmuxer.configure(i.config);break}case"demux":{var y=u.transmuxer.push(i.data,i.decryptdata,i.chunkMeta,i.state);Object(p.isPromise)(y)?y.then(function(S){r(u,S)}):r(u,y);break}case"flush":{var v=i.chunkMeta,x=u.transmuxer.flush(v);Object(p.isPromise)(x)?x.then(function(S){e(u,S,v)}):e(u,x,v);break}default:break}})}function r(u,a){if(s(a.remuxResult))return;var A=[],d=a.remuxResult,i=d.audio,h=d.video;i&&n(A,i),h&&n(A,h),u.postMessage({event:"transmuxComplete",data:a},A)}function n(u,a){a.data1&&u.push(a.data1.buffer),a.data2&&u.push(a.data2.buffer)}function e(u,a,A){a.forEach(function(d){r(u,d)}),u.postMessage({event:"flush",data:A})}function s(u){return!u.audio&&!u.video&&!u.text&&!u.id3&&!u.initSegment}},"./src/demux/transmuxer.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"default",function(){return h}),M.d(V,"isPromise",function(){return x}),M.d(V,"TransmuxConfig",function(){return S}),M.d(V,"TransmuxState",function(){return B});var p=M("./src/events.ts"),E=M("./src/errors.ts"),C=M("./src/crypt/decrypter.ts"),b=M("./src/demux/aacdemuxer.ts"),f=M("./src/demux/mp4demuxer.ts"),l=M("./src/demux/tsdemuxer.ts"),r=M("./src/demux/mp3demuxer.ts"),n=M("./src/remux/mp4-remuxer.ts"),e=M("./src/remux/passthrough-remuxer.ts"),s=M("./src/demux/chunk-cache.ts"),u=M("./src/utils/mp4-tools.ts"),a=M("./src/utils/logger.ts"),A;try{A=self.performance.now.bind(self.performance)}catch(w){a.logger.debug("Unable to use Performance API on this environment"),A=self.Date.now}var d=[{demux:l.default,remux:n.default},{demux:f.default,remux:e.default},{demux:b.default,remux:n.default},{demux:r.default,remux:n.default}],i=1024;d.forEach(function(w){var m=w.demux;i=Math.max(i,m.minProbeByteLength)});var h=function(){function w(c,o,_,D,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 s.default,this.observer=c,this.typeSupported=o,this.config=_,this.vendor=D,this.id=T}var m=w.prototype;return m.configure=function(o){this.transmuxConfig=o,this.decrypter&&this.decrypter.reset()},m.push=function(o,_,D,T){var O=this,R=D.transmuxing;R.executeStart=A();var U=new Uint8Array(o),F=this.cache,Y=this.config,k=this.currentTransmuxState,K=this.transmuxConfig;T&&(this.currentTransmuxState=T);var z=y(U,_);if(z&&z.method==="AES-128"){var j=this.getDecrypter();if(Y.enableSoftwareAES){var Q=j.softwareDecrypt(U,z.key.buffer,z.iv.buffer);if(!Q)return R.executeEnd=A(),v(D);U=new Uint8Array(Q)}else return this.decryptionPromise=j.webCryptoDecrypt(U,z.key.buffer,z.iv.buffer).then(function(Me){var ke=O.push(Me,null,D);return O.decryptionPromise=null,ke}),this.decryptionPromise}var X=T||k,te=X.contiguous,oe=X.discontinuity,fe=X.trackSwitch,le=X.accurateTimeOffset,we=X.timeOffset,Ae=K.audioCodec,be=K.videoCodec,me=K.defaultInitPts,he=K.duration,ie=K.initSegmentData;if((oe||fe)&&this.resetInitSegment(ie,Ae,be,he),oe&&this.resetInitialTimestamp(me),te||this.resetContiguity(),this.needsProbing(U,oe,fe)){if(F.dataLength){var pe=F.flush();U=Object(u.appendUint8Array)(pe,U)}this.configureTransmuxer(U,K)}var ye=this.transmux(U,z,we,le,D),de=this.currentTransmuxState;return de.contiguous=!0,de.discontinuity=!1,de.trackSwitch=!1,R.executeEnd=A(),ye},m.flush=function(o){var _=this,D=o.transmuxing;D.executeStart=A();var T=this.decrypter,O=this.cache,R=this.currentTransmuxState,U=this.decryptionPromise;if(U)return U.then(function(){return _.flush(o)});var F=[],Y=R.timeOffset;if(T){var k=T.flush();k&&F.push(this.push(k,null,o))}var K=O.dataLength;O.reset();var z=this.demuxer,j=this.remuxer;if(!z||!j)return K>=i&&this.observer.emit(p.Events.ERROR,p.Events.ERROR,{type:E.ErrorTypes.MEDIA_ERROR,details:E.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),D.executeEnd=A(),[v(o)];var Q=z.flush(Y);return x(Q)?Q.then(function(X){return _.flushRemux(F,X,o),F}):(this.flushRemux(F,Q,o),F)},m.flushRemux=function(o,_,D){var T=_.audioTrack,O=_.avcTrack,R=_.id3Track,U=_.textTrack,F=this.currentTransmuxState,Y=F.accurateTimeOffset,k=F.timeOffset;a.logger.log("[transmuxer.ts]: Flushed fragment "+D.sn+(D.part>-1?" p: "+D.part:"")+" of level "+D.level);var K=this.remuxer.remux(T,O,R,U,k,Y,!0,this.id);o.push({remuxResult:K,chunkMeta:D}),D.transmuxing.executeEnd=A()},m.resetInitialTimestamp=function(o){var _=this.demuxer,D=this.remuxer;if(!_||!D)return;_.resetTimeStamp(o),D.resetTimeStamp(o)},m.resetContiguity=function(){var o=this.demuxer,_=this.remuxer;if(!o||!_)return;o.resetContiguity(),_.resetNextTimestamp()},m.resetInitSegment=function(o,_,D,T){var O=this.demuxer,R=this.remuxer;if(!O||!R)return;O.resetInitSegment(_,D,T),R.resetInitSegment(o,_,D)},m.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},m.transmux=function(o,_,D,T,O){var R;return _&&_.method==="SAMPLE-AES"?R=this.transmuxSampleAes(o,_,D,T,O):R=this.transmuxUnencrypted(o,D,T,O),R},m.transmuxUnencrypted=function(o,_,D,T){var O=this.demuxer.demux(o,_,!1,!this.config.progressive),R=O.audioTrack,U=O.avcTrack,F=O.id3Track,Y=O.textTrack,k=this.remuxer.remux(R,U,F,Y,_,D,!1,this.id);return{remuxResult:k,chunkMeta:T}},m.transmuxSampleAes=function(o,_,D,T,O){var R=this;return this.demuxer.demuxSampleAes(o,_,D).then(function(U){var F=R.remuxer.remux(U.audioTrack,U.avcTrack,U.id3Track,U.textTrack,D,T,!1,R.id);return{remuxResult:F,chunkMeta:O}})},m.configureTransmuxer=function(o,_){for(var D=this.config,T=this.observer,O=this.typeSupported,R=this.vendor,U=_.audioCodec,F=_.defaultInitPts,Y=_.duration,k=_.initSegmentData,K=_.videoCodec,z,j=0,Q=d.length;j<Q;j++)if(d[j].demux.probe(o)){z=d[j];break}z||(a.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),z={demux:f.default,remux:e.default});var X=this.demuxer,te=this.remuxer,oe=z.remux,fe=z.demux;(!te||!(te instanceof oe))&&(this.remuxer=new oe(T,D,O,R)),(!X||!(X instanceof fe))&&(this.demuxer=new fe(T,D,O),this.probe=fe.probe),this.resetInitSegment(k,U,K,Y),this.resetInitialTimestamp(F)},m.needsProbing=function(o,_,D){return!this.demuxer||!this.remuxer||_||D},m.getDecrypter=function(){var o=this.decrypter;return o||(o=this.decrypter=new C.default(this.observer,this.config)),o},w}();function y(w,m){var c=null;return w.byteLength>0&&m!=null&&m.key!=null&&m.iv!==null&&m.method!=null&&(c=m),c}var v=function(m){return{remuxResult:{},chunkMeta:m}};function x(w){return"then"in w&&w.then instanceof Function}var S=function(m,c,o,_,D){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=m,this.videoCodec=c,this.initSegmentData=o,this.duration=_,this.defaultInitPts=D},B=function(m,c,o,_,D){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=m,this.contiguous=c,this.accurateTimeOffset=o,this.trackSwitch=_,this.timeOffset=D}},"./src/demux/tsdemuxer.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"discardEPB",function(){return v});var p=M("./src/demux/adts.ts"),E=M("./src/demux/mpegaudio.ts"),C=M("./src/demux/exp-golomb.ts"),b=M("./src/demux/id3.ts"),f=M("./src/demux/sample-aes.ts"),l=M("./src/events.ts"),r=M("./src/utils/mp4-tools.ts"),n=M("./src/utils/logger.ts"),e=M("./src/errors.ts"),s={video:1,audio:2,id3:3,text:4},u=function(){function x(B,w,m){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=w,this.typeSupported=m}x.probe=function(w){var m=x.syncOffset(w);return m<0?!1:(m&&n.logger.warn("MPEG2-TS detected but first sync word found @ offset "+m+", junk ahead ?"),!0)},x.syncOffset=function(w){for(var m=Math.min(1e3,w.length-3*188),c=0;c<m;){if(w[c]===71&&w[c+188]===71&&w[c+2*188]===71)return c;c++}return-1},x.createTrack=function(w,m){return{container:w==="video"||w==="audio"?"video/mp2t":void 0,type:w,id:s[w],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:w==="audio"?m:void 0}};var S=x.prototype;return S.resetInitSegment=function(w,m,c){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=x.createTrack("video",c),this._audioTrack=x.createTrack("audio",c),this._id3Track=x.createTrack("id3",c),this._txtTrack=x.createTrack("text",c),this._audioTrack.isAAC=!0,this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=w,this.videoCodec=m,this._duration=c},S.resetTimeStamp=function(){},S.resetContiguity=function(){var w=this._audioTrack,m=this._avcTrack,c=this._id3Track;w&&(w.pesData=null),m&&(m.pesData=null),c&&(c.pesData=null),this.aacOverFlow=null,this.aacLastPTS=null},S.demux=function(w,m,c,o){c===void 0&&(c=!1),o===void 0&&(o=!1),c||(this.sampleAes=null);var _,D=this._avcTrack,T=this._audioTrack,O=this._id3Track,R=D.pid,U=D.pesData,F=T.pid,Y=O.pid,k=T.pesData,K=O.pesData,z=!1,j=this.pmtParsed,Q=this._pmtId,X=w.length;if(this.remainderData&&(w=Object(r.appendUint8Array)(this.remainderData,w),X=w.length,this.remainderData=null),X<188&&!o)return this.remainderData=w,{audioTrack:T,avcTrack:D,id3Track:O,textTrack:this._txtTrack};var te=Math.max(0,x.syncOffset(w));X-=(X+te)%188,X<w.byteLength&&!o&&(this.remainderData=new Uint8Array(w.buffer,X,w.buffer.byteLength-X));for(var oe=te;oe<X;oe+=188)if(w[oe]===71){var fe=!!(w[oe+1]&64),le=((w[oe+1]&31)<<8)+w[oe+2],we=(w[oe+3]&48)>>4,Ae=void 0;if(we>1){if(Ae=oe+5+w[oe+4],Ae===oe+188)continue}else Ae=oe+4;switch(le){case R:fe&&(U&&(_=i(U))&&this.parseAVCPES(_,!1),U={data:[],size:0}),U&&(U.data.push(w.subarray(Ae,oe+188)),U.size+=oe+188-Ae);break;case F:fe&&(k&&(_=i(k))&&(T.isAAC?this.parseAACPES(_):this.parseMPEGPES(_)),k={data:[],size:0}),k&&(k.data.push(w.subarray(Ae,oe+188)),k.size+=oe+188-Ae);break;case Y:fe&&(K&&(_=i(K))&&this.parseID3PES(_),K={data:[],size:0}),K&&(K.data.push(w.subarray(Ae,oe+188)),K.size+=oe+188-Ae);break;case 0:fe&&(Ae+=w[Ae]+1),Q=this._pmtId=A(w,Ae);break;case Q:{fe&&(Ae+=w[Ae]+1);var be=d(w,Ae,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,c);R=be.avc,R>0&&(D.pid=R),F=be.audio,F>0&&(T.pid=F,T.isAAC=be.isAAC),Y=be.id3,Y>0&&(O.pid=Y),z&&!j&&(n.logger.log("reparse from beginning"),z=!1,oe=te-188),j=this.pmtParsed=!0;break}case 17:case 8191:break;default:z=!0;break}}else this.observer.emit(l.Events.ERROR,l.Events.ERROR,{type:e.ErrorTypes.MEDIA_ERROR,details:e.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});D.pesData=U,T.pesData=k,O.pesData=K;var me={audioTrack:T,avcTrack:D,id3Track:O,textTrack:this._txtTrack};return o&&this.extractRemainingSamples(me),me},S.flush=function(){var w=this.remainderData;this.remainderData=null;var m;return w?m=this.demux(w,-1,!1,!0):m={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(m),this.sampleAes?this.decrypt(m,this.sampleAes):m},S.extractRemainingSamples=function(w){var m=w.audioTrack,c=w.avcTrack,o=w.id3Track,_=c.pesData,D=m.pesData,T=o.pesData,O;_&&(O=i(_))?(this.parseAVCPES(O,!0),c.pesData=null):c.pesData=_,D&&(O=i(D))?(m.isAAC?this.parseAACPES(O):this.parseMPEGPES(O),m.pesData=null):(D!=null&&D.size&&n.logger.log("last AAC PES packet truncated,might overlap between fragments"),m.pesData=D),T&&(O=i(T))?(this.parseID3PES(O),o.pesData=null):o.pesData=T},S.demuxSampleAes=function(w,m,c){var o=this.demux(w,c,!0,!this.config.progressive),_=this.sampleAes=new f.default(this.observer,this.config,m);return this.decrypt(o,_)},S.decrypt=function(w,m){return new Promise(function(c){var o=w.audioTrack,_=w.avcTrack;o.samples&&o.isAAC?m.decryptAacSamples(o.samples,0,function(){_.samples?m.decryptAvcSamples(_.samples,0,0,function(){c(w)}):c(w)}):_.samples&&m.decryptAvcSamples(_.samples,0,0,function(){c(w)})})},S.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},S.parseAVCPES=function(w,m){var c=this,o=this._avcTrack,_=this.parseAVCNALu(w.data),D=!1,T=this.avcSample,O,R=!1;w.data=null,T&&_.length&&!o.audFound&&(h(T,o),T=this.avcSample=a(!1,w.pts,w.dts,"")),_.forEach(function(U){switch(U.type){case 1:{O=!0,T||(T=c.avcSample=a(!0,w.pts,w.dts,"")),D&&(T.debug+="NDR "),T.frame=!0;var F=U.data;if(R&&F.length>4){var Y=new C.default(F).readSliceType();(Y===2||Y===4||Y===7||Y===9)&&(T.key=!0)}break}case 5:O=!0,T||(T=c.avcSample=a(!0,w.pts,w.dts,"")),D&&(T.debug+="IDR "),T.key=!0,T.frame=!0;break;case 6:{O=!0,D&&T&&(T.debug+="SEI ");var k=new C.default(v(U.data));k.readUByte();for(var K=0,z=0,j=!1,Q=0;!j&&k.bytesAvailable>1;){K=0;do Q=k.readUByte(),K+=Q;while(Q===255);z=0;do Q=k.readUByte(),z+=Q;while(Q===255);if(K===4&&k.bytesAvailable!==0){j=!0;var X=k.readUByte();if(X===181){var te=k.readUShort();if(te===49){var oe=k.readUInt();if(oe===1195456820){var fe=k.readUByte();if(fe===3){for(var le=k.readUByte(),we=k.readUByte(),Ae=31&le,be=[le,we],me=0;me<Ae;me++)be.push(k.readUByte()),be.push(k.readUByte()),be.push(k.readUByte());y(c._txtTrack.samples,{type:3,pts:w.pts,bytes:be})}}}}}else if(K===5&&k.bytesAvailable!==0){if(j=!0,z>16){for(var he=[],ie=0;ie<16;ie++)he.push(k.readUByte().toString(16)),(ie===3||ie===5||ie===7||ie===9)&&he.push("-");for(var pe=z-16,ye=new Uint8Array(pe),de=0;de<pe;de++)ye[de]=k.readUByte();y(c._txtTrack.samples,{pts:w.pts,payloadType:K,uuid:he.join(""),userData:Object(b.utf8ArrayToStr)(ye),userDataBytes:ye})}}else if(z<k.bytesAvailable)for(var Me=0;Me<z;Me++)k.readUByte()}break}case 7:if(O=!0,R=!0,D&&T&&(T.debug+="SPS "),!o.sps){var ke=new C.default(U.data),Ue=ke.readSPS();o.width=Ue.width,o.height=Ue.height,o.pixelRatio=Ue.pixelRatio,o.sps=[U.data],o.duration=c._duration;for(var re=U.data.subarray(1,4),N="avc1.",W=0;W<3;W++){var ce=re[W].toString(16);ce.length<2&&(ce="0"+ce),N+=ce}o.codec=N}break;case 8:O=!0,D&&T&&(T.debug+="PPS "),o.pps||(o.pps=[U.data]);break;case 9:O=!1,o.audFound=!0,T&&h(T,o),T=c.avcSample=a(!1,w.pts,w.dts,D?"AUD ":"");break;case 12:O=!1;break;default:O=!1,T&&(T.debug+="unknown NAL "+U.type+" ");break}if(T&&O){var ne=T.units;ne.push(U)}}),m&&T&&(h(T,o),this.avcSample=null)},S.getLastNalUnit=function(){var w,m=this.avcSample,c;if(!m||m.units.length===0){var o=this._avcTrack.samples;m=o[o.length-1]}if((w=m)!==null&&w!==void 0&&w.units){var _=m.units;c=_[_.length-1]}return c},S.parseAVCNALu=function(w){var m=w.byteLength,c=this._avcTrack,o=c.naluState||0,_=o,D=[],T=0,O,R,U,F=-1,Y=0;for(o===-1&&(F=0,Y=w[0]&31,o=0,T=1);T<m;){if(O=w[T++],!o){o=O?0:1;continue}if(o===1){o=O?0:2;continue}if(!O)o=3;else if(O===1){if(F>=0){var k={data:w.subarray(F,T-o-1),type:Y};D.push(k)}else{var K=this.getLastNalUnit();if(K&&(_&&T<=4-_&&(K.state&&(K.data=K.data.subarray(0,K.data.byteLength-_))),R=T-o-1,R>0)){var z=new Uint8Array(K.data.byteLength+R);z.set(K.data,0),z.set(w.subarray(0,R),K.data.byteLength),K.data=z,K.state=0}}T<m?(U=w[T]&31,F=T,Y=U,o=0):o=-1}else o=0}if(F>=0&&o>=0){var j={data:w.subarray(F,m),type:Y,state:o};D.push(j)}if(D.length===0){var Q=this.getLastNalUnit();if(Q){var X=new Uint8Array(Q.data.byteLength+w.byteLength);X.set(Q.data,0),X.set(w,Q.data.byteLength),Q.data=X}}return c.naluState=o,D},S.parseAACPES=function(w){var m=0,c=this._audioTrack,o=this.aacOverFlow,_=w.data;if(o){this.aacOverFlow=null;var D=o.sample.unit.byteLength,T=Math.min(o.missing,D),O=D-T;o.sample.unit.set(_.subarray(0,T),O),c.samples.push(o.sample),m=o.missing}var R,U;for(R=m,U=_.length;R<U-1&&!p.isHeader(_,R);R++);if(R!==m){var F,Y;if(R<U-1?(F="AAC PES did not start with ADTS header,offset:"+R,Y=!1):(F="no ADTS header found in AAC PES",Y=!0),n.logger.warn("parsing error:"+F),this.observer.emit(l.Events.ERROR,l.Events.ERROR,{type:e.ErrorTypes.MEDIA_ERROR,details:e.ErrorDetails.FRAG_PARSING_ERROR,fatal:Y,reason:F}),Y)return}p.initTrackConfig(c,this.observer,_,R,this.audioCodec);var k;if(w.pts!==void 0)k=w.pts;else if(o){var K=p.getFrameDuration(c.samplerate);k=o.sample.pts+K}else{n.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var z=0;R<U;)if(p.isHeader(_,R)){if(R+5<U){var j=p.appendFrame(c,_,R,k,z);if(j)if(j.missing)this.aacOverFlow=j;else{R+=j.length,z++;continue}}break}else R++},S.parseMPEGPES=function(w){var m=w.data,c=m.length,o=0,_=0,D=w.pts;if(D===void 0){n.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;_<c;)if(E.isHeader(m,_)){var T=E.appendFrame(this._audioTrack,m,_,D,o);if(T)_+=T.length,o++;else break}else _++},S.parseID3PES=function(w){if(w.pts===void 0){n.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}this._id3Track.samples.push(w)},x}();u.minProbeByteLength=188;function a(x,S,B,w){return{key:x,frame:!1,pts:S,dts:B,units:[],debug:w,length:0}}function A(x,S){return(x[S+10]&31)<<8|x[S+11]}function d(x,S,B,w){var m={audio:-1,avc:-1,id3:-1,isAAC:!0},c=(x[S+1]&15)<<8|x[S+2],o=S+3+c-4,_=(x[S+10]&15)<<8|x[S+11];for(S+=12+_;S<o;){var D=(x[S+1]&31)<<8|x[S+2];switch(x[S]){case 207:if(!w){n.logger.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:m.audio===-1&&(m.audio=D);break;case 21:m.id3===-1&&(m.id3=D);break;case 219:if(!w){n.logger.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:m.avc===-1&&(m.avc=D);break;case 3:case 4:B?m.audio===-1&&(m.audio=D,m.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}S+=((x[S+3]&15)<<8|x[S+4])+5}return m}function i(x){var S=0,B,w,m,c,o,_=x.data;if(!x||x.size===0)return null;for(;_[0].length<19&&_.length>1;){var D=new Uint8Array(_[0].length+_[1].length);D.set(_[0]),D.set(_[1],_[0].length),_[0]=D,_.splice(1,1)}B=_[0];var T=(B[0]<<16)+(B[1]<<8)+B[2];if(T===1){if(w=(B[4]<<8)+B[5],w&&w>x.size-6)return null;var O=B[7];O&192&&(c=(B[9]&14)*536870912+(B[10]&255)*4194304+(B[11]&254)*16384+(B[12]&255)*128+(B[13]&254)/2,O&64?(o=(B[14]&14)*536870912+(B[15]&255)*4194304+(B[16]&254)*16384+(B[17]&255)*128+(B[18]&254)/2,c-o>60*9e4&&(n.logger.warn(Math.round((c-o)/9e4)+"s delta between PTS and DTS, align them"),c=o)):o=c),m=B[8];var R=m+9;if(x.size<=R)return null;x.size-=R;for(var U=new Uint8Array(x.size),F=0,Y=_.length;F<Y;F++){B=_[F];var k=B.byteLength;if(R)if(R>k){R-=k;continue}else B=B.subarray(R),k-=R,R=0;U.set(B,S),S+=k}return w&&(w-=m+3),{data:U,pts:c,dts:o,len:w}}return null}function h(x,S){if(x.units.length&&x.frame){if(x.pts===void 0){var B=S.samples,w=B.length;if(w){var m=B[w-1];x.pts=m.pts,x.dts=m.dts}else{S.dropped++;return}}S.samples.push(x)}x.debug.length&&n.logger.log(x.pts+"/"+x.dts+":"+x.debug)}function y(x,S){var B=x.length;if(B>0){if(S.pts>=x[B-1].pts)x.push(S);else for(var w=B-1;w>=0;w--)if(S.pts<x[w].pts){x.splice(w,0,S);break}}else x.push(S)}function v(x){for(var S=x.byteLength,B=[],w=1;w<S-2;)x[w]===0&&x[w+1]===0&&x[w+2]===3?(B.push(w+2),w+=2):w++;if(B.length===0)return x;var m=S-B.length,c=new Uint8Array(m),o=0;for(w=0;w<m;o++,w++)o===B[0]&&(o++,B.shift()),c[w]=x[o];return c}V.default=u},"./src/errors.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"ErrorTypes",function(){return p}),M.d(V,"ErrorDetails",function(){return E});var p;(function(C){C.NETWORK_ERROR="networkError",C.MEDIA_ERROR="mediaError",C.KEY_SYSTEM_ERROR="keySystemError",C.MUX_ERROR="muxError",C.OTHER_ERROR="otherError"})(p||(p={}));var E;(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"})(E||(E={}))},"./src/events.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"Events",function(){return p});var p;(function(E){E.MEDIA_ATTACHING="hlsMediaAttaching",E.MEDIA_ATTACHED="hlsMediaAttached",E.MEDIA_DETACHING="hlsMediaDetaching",E.MEDIA_DETACHED="hlsMediaDetached",E.BUFFER_RESET="hlsBufferReset",E.BUFFER_CODECS="hlsBufferCodecs",E.BUFFER_CREATED="hlsBufferCreated",E.BUFFER_APPENDING="hlsBufferAppending",E.BUFFER_APPENDED="hlsBufferAppended",E.BUFFER_EOS="hlsBufferEos",E.BUFFER_FLUSHING="hlsBufferFlushing",E.BUFFER_FLUSHED="hlsBufferFlushed",E.MANIFEST_LOADING="hlsManifestLoading",E.MANIFEST_LOADED="hlsManifestLoaded",E.MANIFEST_PARSED="hlsManifestParsed",E.LEVEL_SWITCHING="hlsLevelSwitching",E.LEVEL_SWITCHED="hlsLevelSwitched",E.LEVEL_LOADING="hlsLevelLoading",E.LEVEL_LOADED="hlsLevelLoaded",E.LEVEL_UPDATED="hlsLevelUpdated",E.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",E.LEVELS_UPDATED="hlsLevelsUpdated",E.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",E.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",E.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",E.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",E.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",E.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",E.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",E.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",E.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",E.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",E.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",E.CUES_PARSED="hlsCuesParsed",E.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",E.INIT_PTS_FOUND="hlsInitPtsFound",E.FRAG_LOADING="hlsFragLoading",E.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",E.FRAG_LOADED="hlsFragLoaded",E.FRAG_DECRYPTED="hlsFragDecrypted",E.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",E.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",E.FRAG_PARSING_METADATA="hlsFragParsingMetadata",E.FRAG_PARSED="hlsFragParsed",E.FRAG_BUFFERED="hlsFragBuffered",E.FRAG_CHANGED="hlsFragChanged",E.FPS_DROP="hlsFpsDrop",E.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",E.ERROR="hlsError",E.DESTROYING="hlsDestroying",E.KEY_LOADING="hlsKeyLoading",E.KEY_LOADED="hlsKeyLoaded",E.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",E.BACK_BUFFER_REACHED="hlsBackBufferReached"})(p||(p={}))},"./src/hls.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"default",function(){return x});var p=M("./node_modules/url-toolkit/src/url-toolkit.js"),E=M.n(p),C=M("./src/loader/playlist-loader.ts"),b=M("./src/loader/key-loader.ts"),f=M("./src/controller/id3-track-controller.ts"),l=M("./src/controller/latency-controller.ts"),r=M("./src/controller/level-controller.ts"),n=M("./src/controller/fragment-tracker.ts"),e=M("./src/controller/stream-controller.ts"),s=M("./src/is-supported.ts"),u=M("./src/utils/logger.ts"),a=M("./src/config.ts"),A=M("./node_modules/eventemitter3/index.js"),d=M.n(A),i=M("./src/events.ts"),h=M("./src/errors.ts");function y(S,B){for(var w=0;w<B.length;w++){var m=B[w];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(S,m.key,m)}}function v(S,B,w){return B&&y(S.prototype,B),w&&y(S,w),S}var x=function(){S.isSupported=function(){return Object(s.isSupported)()};function S(w){w===void 0&&(w={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new A.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 m=this.config=Object(a.mergeConfig)(S.DefaultConfig,w);this.userConfig=w,Object(u.enableLogs)(m.debug),this._autoLevelCapping=-1,m.progressive&&Object(a.enableStreamingMode)(m);var c=m.abrController,o=m.bufferController,_=m.capLevelController,D=m.fpsController,T=this.abrController=new c(this),O=this.bufferController=new o(this),R=this.capLevelController=new _(this),U=new D(this),F=new C.default(this),Y=new b.default(this),k=new f.default(this),K=this.levelController=new r.default(this),z=new n.FragmentTracker(this),j=this.streamController=new e.default(this,z);R.setStreamController(j),U.setStreamController(j);var Q=[K,j];this.networkControllers=Q;var X=[F,Y,T,O,R,U,k,z];this.audioTrackController=this.createController(m.audioTrackController,null,Q),this.createController(m.audioStreamController,z,Q),this.subtitleTrackController=this.createController(m.subtitleTrackController,null,Q),this.createController(m.subtitleStreamController,z,Q),this.createController(m.timelineController,null,X),this.emeController=this.createController(m.emeController,null,X),this.cmcdController=this.createController(m.cmcdController,null,X),this.latencyController=this.createController(l.default,null,X),this.coreComponents=X}var B=S.prototype;return B.createController=function(m,c,o){if(m){var _=c?new m(this,c):new m(this);return o&&o.push(_),_}return null},B.on=function(m,c,o){o===void 0&&(o=this),this._emitter.on(m,c,o)},B.once=function(m,c,o){o===void 0&&(o=this),this._emitter.once(m,c,o)},B.removeAllListeners=function(m){this._emitter.removeAllListeners(m)},B.off=function(m,c,o,_){o===void 0&&(o=this),this._emitter.off(m,c,o,_)},B.listeners=function(m){return this._emitter.listeners(m)},B.emit=function(m,c,o){return this._emitter.emit(m,c,o)},B.trigger=function(m,c){if(this.config.debug)return this.emit(m,m,c);try{return this.emit(m,m,c)}catch(o){u.logger.error("An internal error happened while handling event "+m+'. Error message: "'+o.message+'". Here is a stacktrace:',o),this.trigger(i.Events.ERROR,{type:h.ErrorTypes.OTHER_ERROR,details:h.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:m,error:o})}return!1},B.listenerCount=function(m){return this._emitter.listenerCount(m)},B.destroy=function(){u.logger.log("destroy"),this.trigger(i.Events.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(m){return m.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(m){return m.destroy()}),this.coreComponents.length=0},B.attachMedia=function(m){u.logger.log("attachMedia"),this._media=m,this.trigger(i.Events.MEDIA_ATTACHING,{media:m})},B.detachMedia=function(){u.logger.log("detachMedia"),this.trigger(i.Events.MEDIA_DETACHING,void 0),this._media=null},B.loadSource=function(m){this.stopLoad();var c=this.media,o=this.url,_=this.url=p.buildAbsoluteURL(self.location.href,m,{alwaysNormalize:!0});u.logger.log("loadSource:"+_),c&&o&&o!==_&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(c)),this.trigger(i.Events.MANIFEST_LOADING,{url:m})},B.startLoad=function(m){m===void 0&&(m=-1),u.logger.log("startLoad("+m+")"),this.networkControllers.forEach(function(c){c.startLoad(m)})},B.stopLoad=function(){u.logger.log("stopLoad"),this.networkControllers.forEach(function(m){m.stopLoad()})},B.swapAudioCodec=function(){u.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},B.recoverMediaError=function(){u.logger.log("recoverMediaError");var m=this._media;this.detachMedia(),m&&this.attachMedia(m)},B.removeLevel=function(m,c){c===void 0&&(c=0),this.levelController.removeLevel(m,c)},v(S,[{key:"levels",get:function(){var m=this.levelController.levels;return m||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(m){u.logger.log("set currentLevel:"+m),this.loadLevel=m,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(m){u.logger.log("set nextLevel:"+m),this.levelController.manualLevel=m,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(m){u.logger.log("set loadLevel:"+m),this.levelController.manualLevel=m}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(m){this.levelController.nextLoadLevel=m}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(m){u.logger.log("set firstLevel:"+m),this.levelController.firstLevel=m}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(m){u.logger.log("set startLevel:"+m),m!==-1&&(m=Math.max(m,this.minAutoLevel)),this.levelController.startLevel=m}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(m){var c=!!m;c!==this.config.capLevelToPlayerSize&&(c?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=c)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(m){this._autoLevelCapping!==m&&(u.logger.log("set autoLevelCapping:"+m),this._autoLevelCapping=m)}},{key:"bandwidthEstimate",get:function(){var m=this.abrController.bwEstimator;return m?m.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var m=this.levels,c=this.config.minAutoBitrate;if(!m)return 0;for(var o=m.length,_=0;_<o;_++)if(m[_].maxBitrate>c)return _;return 0}},{key:"maxAutoLevel",get:function(){var m=this.levels,c=this.autoLevelCapping,o;return c===-1&&m&&m.length?o=m.length-1:o=c,o}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(m){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,m)}},{key:"audioTracks",get:function(){var m=this.audioTrackController;return m?m.audioTracks:[]}},{key:"audioTrack",get:function(){var m=this.audioTrackController;return m?m.audioTrack:-1},set:function(m){var c=this.audioTrackController;c&&(c.audioTrack=m)}},{key:"subtitleTracks",get:function(){var m=this.subtitleTrackController;return m?m.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var m=this.subtitleTrackController;return m?m.subtitleTrack:-1},set:function(m){var c=this.subtitleTrackController;c&&(c.subtitleTrack=m)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var m=this.subtitleTrackController;return m?m.subtitleDisplay:!1},set:function(m){var c=this.subtitleTrackController;c&&(c.subtitleDisplay=m)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(m){this.config.lowLatencyMode=m}},{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 i.Events}},{key:"ErrorTypes",get:function(){return h.ErrorTypes}},{key:"ErrorDetails",get:function(){return h.ErrorDetails}},{key:"DefaultConfig",get:function(){return S.defaultConfig?S.defaultConfig:a.hlsDefaultConfig},set:function(m){S.defaultConfig=m}}]),S}();x.defaultConfig=void 0},"./src/is-supported.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"isSupported",function(){return C}),M.d(V,"changeTypeSupported",function(){return b});var p=M("./src/utils/mediasource-helper.ts");function E(){return self.SourceBuffer||self.WebKitSourceBuffer}function C(){var f=Object(p.getMediaSource)();if(!f)return!1;var l=E(),r=f&&typeof f.isTypeSupported=="function"&&f.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),n=!l||l.prototype&&typeof l.prototype.appendBuffer=="function"&&typeof l.prototype.remove=="function";return!!r&&!!n}function b(){var f,l=E();return typeof(l==null||((f=l.prototype)===null||f===void 0)?void 0:f.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"default",function(){return u}),M.d(V,"LoadError",function(){return A});var p=M("./src/polyfills/number.ts"),E=M("./src/errors.ts");function C(d,i){d.prototype=Object.create(i.prototype),d.prototype.constructor=d,n(d,i)}function b(d){var i=typeof Map=="function"?new Map:void 0;return b=function(y){if(y===null||!r(y))return y;if(typeof y!="function")throw new TypeError("Super expression must either be null or a function");if(typeof i!="undefined"){if(i.has(y))return i.get(y);i.set(y,v)}function v(){return f(y,arguments,e(this).constructor)}return v.prototype=Object.create(y.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),n(v,y)},b(d)}function f(d,i,h){return l()?f=Reflect.construct:f=function(v,x,S){var B=[null];B.push.apply(B,x);var w=Function.bind.apply(v,B),m=new w;return S&&n(m,S.prototype),m},f.apply(null,arguments)}function l(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(d){return!1}}function r(d){return Function.toString.call(d).indexOf("[native code]")!==-1}function n(d,i){return n=Object.setPrototypeOf||function(y,v){return y.__proto__=v,y},n(d,i)}function e(d){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)},e(d)}var s=Math.pow(2,17),u=function(){function d(h){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=h}var i=d.prototype;return i.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},i.abort=function(){this.loader&&this.loader.abort()},i.load=function(y,v){var x=this,S=y.url;if(!S)return Promise.reject(new A({type:E.ErrorTypes.NETWORK_ERROR,details:E.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:y,networkDetails:null},"Fragment does not have a "+(S?"part list":"url")));this.abort();var B=this.config,w=B.fLoader,m=B.loader;return new Promise(function(c,o){x.loader&&x.loader.destroy();var _=x.loader=y.loader=w?new w(B):new m(B),D=a(y),T={timeout:B.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:B.fragLoadingMaxRetryTimeout,highWaterMark:s};y.stats=_.stats,_.load(D,T,{onSuccess:function(R,U,F,Y){x.resetLoader(y,_),c({frag:y,part:null,payload:R.data,networkDetails:Y})},onError:function(R,U,F){x.resetLoader(y,_),o(new A({type:E.ErrorTypes.NETWORK_ERROR,details:E.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:y,response:R,networkDetails:F}))},onAbort:function(R,U,F){x.resetLoader(y,_),o(new A({type:E.ErrorTypes.NETWORK_ERROR,details:E.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:y,networkDetails:F}))},onTimeout:function(R,U,F){x.resetLoader(y,_),o(new A({type:E.ErrorTypes.NETWORK_ERROR,details:E.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:y,networkDetails:F}))},onProgress:function(R,U,F,Y){v&&v({frag:y,part:null,payload:F,networkDetails:Y})}})})},i.loadPart=function(y,v,x){var S=this;this.abort();var B=this.config,w=B.fLoader,m=B.loader;return new Promise(function(c,o){S.loader&&S.loader.destroy();var _=S.loader=y.loader=w?new w(B):new m(B),D=a(y,v),T={timeout:B.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:B.fragLoadingMaxRetryTimeout,highWaterMark:s};v.stats=_.stats,_.load(D,T,{onSuccess:function(R,U,F,Y){S.resetLoader(y,_),S.updateStatsFromPart(y,v);var k={frag:y,part:v,payload:R.data,networkDetails:Y};x(k),c(k)},onError:function(R,U,F){S.resetLoader(y,_),o(new A({type:E.ErrorTypes.NETWORK_ERROR,details:E.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:y,part:v,response:R,networkDetails:F}))},onAbort:function(R,U,F){y.stats.aborted=v.stats.aborted,S.resetLoader(y,_),o(new A({type:E.ErrorTypes.NETWORK_ERROR,details:E.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:y,part:v,networkDetails:F}))},onTimeout:function(R,U,F){S.resetLoader(y,_),o(new A({type:E.ErrorTypes.NETWORK_ERROR,details:E.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:y,part:v,networkDetails:F}))}})})},i.updateStatsFromPart=function(y,v){var x=y.stats,S=v.stats,B=S.total;if(x.loaded+=S.loaded,B){var w=Math.round(y.duration/v.duration),m=Math.min(Math.round(x.loaded/B),w),c=w-m,o=c*Math.round(x.loaded/m);x.total=x.loaded+o}else x.total=Math.max(x.loaded,x.total);var _=x.loading,D=S.loading;_.start?_.first+=D.first-D.start:(_.start=D.start,_.first=D.first),_.end=D.end},i.resetLoader=function(y,v){y.loader=null,this.loader===v&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),v.destroy()},d}();function a(d,i){i===void 0&&(i=null);var h=i||d,y={frag:d,part:i,responseType:"arraybuffer",url:h.url,headers:{},rangeStart:0,rangeEnd:0},v=h.byteRangeStartOffset,x=h.byteRangeEndOffset;return Object(p.isFiniteNumber)(v)&&Object(p.isFiniteNumber)(x)&&(y.rangeStart=v,y.rangeEnd=x),y}var A=function(d){C(i,d);function i(h){for(var y,v=arguments.length,x=new Array(v>1?v-1:0),S=1;S<v;S++)x[S-1]=arguments[S];return y=d.call.apply(d,[this].concat(x))||this,y.data=void 0,y.data=h,y}return i}(b(Error))},"./src/loader/fragment.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"ElementaryStreamTypes",function(){return u}),M.d(V,"BaseSegment",function(){return a}),M.d(V,"Fragment",function(){return A}),M.d(V,"Part",function(){return d});var p=M("./src/polyfills/number.ts"),E=M("./node_modules/url-toolkit/src/url-toolkit.js"),C=M.n(E),b=M("./src/utils/logger.ts"),f=M("./src/loader/level-key.ts"),l=M("./src/loader/load-stats.ts");function r(i,h){i.prototype=Object.create(h.prototype),i.prototype.constructor=i,n(i,h)}function n(i,h){return n=Object.setPrototypeOf||function(v,x){return v.__proto__=x,v},n(i,h)}function e(i,h){for(var y=0;y<h.length;y++){var v=h[y];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(i,v.key,v)}}function s(i,h,y){return h&&e(i.prototype,h),y&&e(i,y),i}var u;(function(i){i.AUDIO="audio",i.VIDEO="video",i.AUDIOVIDEO="audiovideo"})(u||(u={}));var a=function(){function i(y){var v;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(v={},v[u.AUDIO]=null,v[u.VIDEO]=null,v[u.AUDIOVIDEO]=null,v),this.baseurl=y}var h=i.prototype;return h.setByteRange=function(v,x){var S=v.split("@",2),B=[];S.length===1?B[0]=x?x.byteRangeEndOffset:0:B[0]=parseInt(S[1]),B[1]=parseInt(S[0])+B[0],this._byteRange=B},s(i,[{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(E.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(v){this._url=v}}]),i}(),A=function(i){r(h,i);function h(v,x){var S;return S=i.call(this,x)||this,S._decryptdata=null,S.rawProgramDateTime=null,S.programDateTime=null,S.tagList=[],S.duration=0,S.sn=0,S.levelkey=void 0,S.type=void 0,S.loader=null,S.level=-1,S.cc=0,S.startPTS=void 0,S.endPTS=void 0,S.appendedPTS=void 0,S.startDTS=void 0,S.endDTS=void 0,S.start=0,S.deltaPTS=void 0,S.maxStartPTS=void 0,S.minEndPTS=void 0,S.stats=new l.LoadStats,S.urlId=0,S.data=void 0,S.bitrateTest=!1,S.title=null,S.initSegment=null,S.type=v,S}var y=h.prototype;return y.createInitializationVector=function(x){for(var S=new Uint8Array(16),B=12;B<16;B++)S[B]=x>>8*(15-B)&255;return S},y.setDecryptDataFromLevelKey=function(x,S){var B=x;return(x==null?void 0:x.method)==="AES-128"&&x.uri&&!x.iv&&(B=f.LevelKey.fromURI(x.uri),B.method=x.method,B.iv=this.createInitializationVector(S),B.keyFormat="identity"),B},y.setElementaryStreamInfo=function(x,S,B,w,m,c){c===void 0&&(c=!1);var o=this.elementaryStreams,_=o[x];if(!_){o[x]={startPTS:S,endPTS:B,startDTS:w,endDTS:m,partial:c};return}_.startPTS=Math.min(_.startPTS,S),_.endPTS=Math.max(_.endPTS,B),_.startDTS=Math.min(_.startDTS,w),_.endDTS=Math.max(_.endDTS,m)},y.clearElementaryStreamInfo=function(){var x=this.elementaryStreams;x[u.AUDIO]=null,x[u.VIDEO]=null,x[u.AUDIOVIDEO]=null},s(h,[{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&&b.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(p.isFiniteNumber)(this.programDateTime))return null;var x=Object(p.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)}}]),h}(a),d=function(i){r(h,i);function h(y,v,x,S,B){var w;w=i.call(this,x)||this,w.fragOffset=0,w.duration=0,w.gap=!1,w.independent=!1,w.relurl=void 0,w.fragment=void 0,w.index=void 0,w.stats=new l.LoadStats,w.duration=y.decimalFloatingPoint("DURATION"),w.gap=y.bool("GAP"),w.independent=y.bool("INDEPENDENT"),w.relurl=y.enumeratedString("URI"),w.fragment=v,w.index=S;var m=y.enumeratedString("BYTERANGE");return m&&w.setByteRange(m,B),B&&(w.fragOffset=B.fragOffset+B.duration),w}return s(h,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var v=this.elementaryStreams;return!!(v.audio||v.video||v.audiovideo)}}]),h}(a)},"./src/loader/key-loader.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"default",function(){return b});var p=M("./src/events.ts"),E=M("./src/errors.ts"),C=M("./src/utils/logger.ts"),b=function(){function f(r){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=r,this._registerListeners()}var l=f.prototype;return l._registerListeners=function(){this.hls.on(p.Events.KEY_LOADING,this.onKeyLoading,this)},l._unregisterListeners=function(){this.hls.off(p.Events.KEY_LOADING,this.onKeyLoading)},l.destroy=function(){this._unregisterListeners();for(var n in this.loaders){var e=this.loaders[n];e&&e.destroy()}this.loaders={}},l.onKeyLoading=function(n,e){var s=e.frag,u=s.type,a=this.loaders[u];if(!s.decryptdata){C.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var A=s.decryptdata.uri;if(A!==this.decrypturl||this.decryptkey===null){var d=this.hls.config;if(a&&(C.logger.warn("abort previous key loader for type:"+u),a.abort()),!A){C.logger.warn("key uri is falsy");return}var i=d.loader,h=s.loader=this.loaders[u]=new i(d);this.decrypturl=A,this.decryptkey=null;var y={url:A,frag:s,responseType:"arraybuffer"},v={timeout:d.fragLoadingTimeOut,maxRetry:0,retryDelay:d.fragLoadingRetryDelay,maxRetryDelay:d.fragLoadingMaxRetryTimeout,highWaterMark:0},x={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};h.load(y,v,x)}else this.decryptkey&&(s.decryptdata.key=this.decryptkey,this.hls.trigger(p.Events.KEY_LOADED,{frag:s}))},l.loadsuccess=function(n,e,s){var u=s.frag;if(!u.decryptdata){C.logger.error("after key load, decryptdata unset");return}this.decryptkey=u.decryptdata.key=new Uint8Array(n.data),u.loader=null,delete this.loaders[u.type],this.hls.trigger(p.Events.KEY_LOADED,{frag:u})},l.loaderror=function(n,e){var s=e.frag,u=s.loader;u&&u.abort(),delete this.loaders[s.type],this.hls.trigger(p.Events.ERROR,{type:E.ErrorTypes.NETWORK_ERROR,details:E.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:s,response:n})},l.loadtimeout=function(n,e){var s=e.frag,u=s.loader;u&&u.abort(),delete this.loaders[s.type],this.hls.trigger(p.Events.ERROR,{type:E.ErrorTypes.NETWORK_ERROR,details:E.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:s})},f}()},"./src/loader/level-details.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"LevelDetails",function(){return f});var p=M("./src/polyfills/number.ts");function E(l,r){for(var n=0;n<r.length;n++){var e=r[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(l,e.key,e)}}function C(l,r,n){return r&&E(l.prototype,r),n&&E(l,n),l}var b=10,f=function(){function l(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 r=l.prototype;return r.reloaded=function(e){if(!e){this.advanced=!0,this.updated=!0;return}var s=this.lastPartSn-e.lastPartSn,u=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!u||!!s,this.advanced=this.endSN>e.endSN||s>0||s===0&&u>0,this.updated||this.advanced?this.misses=Math.floor(e.misses*.6):this.misses=e.misses+1,this.availabilityDelay=e.availabilityDelay},C(l,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(p.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||b}},{key:"drift",get:function(){var e=this.driftEndTime-this.driftStartTime;if(e>0){var s=this.driftEnd-this.driftStart;return s*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}}]),l}()},"./src/loader/level-key.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"LevelKey",function(){return f});var p=M("./node_modules/url-toolkit/src/url-toolkit.js"),E=M.n(p);function C(l,r){for(var n=0;n<r.length;n++){var e=r[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(l,e.key,e)}}function b(l,r,n){return r&&C(l.prototype,r),n&&C(l,n),l}var f=function(){l.fromURL=function(n,e){return new l(n,e)},l.fromURI=function(n){return new l(n)};function l(r,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(p.buildAbsoluteURL)(r,n,{alwaysNormalize:!0}):this._uri=r}return b(l,[{key:"uri",get:function(){return this._uri}}]),l}()},"./src/loader/load-stats.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"LoadStats",function(){return p});var p=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(ae,V,M){"use strict";M.r(V),M.d(V,"default",function(){return h});var p=M("./src/polyfills/number.ts"),E=M("./node_modules/url-toolkit/src/url-toolkit.js"),C=M.n(E),b=M("./src/loader/fragment.ts"),f=M("./src/loader/level-details.ts"),l=M("./src/loader/level-key.ts"),r=M("./src/utils/attr-list.ts"),n=M("./src/utils/logger.ts"),e=M("./src/utils/codecs.ts"),s=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-SESSION-DATA:([^\r\n]*)[\r\n]+/g,u=/#EXT-X-MEDIA:(.*)/g,a=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),A=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("|")),d=/\.(mp4|m4s|m4v|m4a)$/i;function i(B){var w,m;return d.test((w=(m=E.parseURL(B))===null||m===void 0?void 0:m.path)!=null?w:"")}var h=function(){function B(){}return B.findGroup=function(m,c){for(var o=0;o<m.length;o++){var _=m[o];if(_.id===c)return _}},B.convertAVC1ToAVCOTI=function(m){var c=m.split(".");if(c.length>2){var o=c.shift()+".";return o+=parseInt(c.shift()).toString(16),o+=("000"+parseInt(c.shift()).toString(16)).substr(-4),o}return m},B.resolve=function(m,c){return E.buildAbsoluteURL(c,m,{alwaysNormalize:!0})},B.parseMasterPlaylist=function(m,c){var o=[],_={},D=!1;s.lastIndex=0;for(var T;(T=s.exec(m))!=null;)if(T[1]){var O=new r.AttrList(T[1]),R={attrs:O,bitrate:O.decimalInteger("AVERAGE-BANDWIDTH")||O.decimalInteger("BANDWIDTH"),name:O.NAME,url:B.resolve(T[2],c)},U=O.decimalResolution("RESOLUTION");U&&(R.width=U.width,R.height=U.height),y((O.CODECS||"").split(/[ ,]+/).filter(function(Y){return Y}),R),R.videoCodec&&R.videoCodec.indexOf("avc1")!==-1&&(R.videoCodec=B.convertAVC1ToAVCOTI(R.videoCodec)),o.push(R)}else if(T[3]){var F=new r.AttrList(T[3]);F["DATA-ID"]&&(D=!0,_[F["DATA-ID"]]=F)}return{levels:o,sessionData:D?_:null}},B.parseMasterPlaylistMedia=function(m,c,o,_){_===void 0&&(_=[]);var D,T=[],O=0;for(u.lastIndex=0;(D=u.exec(m))!==null;){var R=new r.AttrList(D[1]);if(R.TYPE===o){var U={attrs:R,bitrate:0,id:O++,groupId:R["GROUP-ID"],instreamId:R["INSTREAM-ID"],name:R.NAME||R.LANGUAGE||"",type:o,default:R.bool("DEFAULT"),autoselect:R.bool("AUTOSELECT"),forced:R.bool("FORCED"),lang:R.LANGUAGE,url:R.URI?B.resolve(R.URI,c):""};if(_.length){var F=B.findGroup(_,U.groupId)||_[0];v(U,F,"audioCodec"),v(U,F,"textCodec")}T.push(U)}}return T},B.parseLevelPlaylist=function(m,c,o,_,D){var T=new f.LevelDetails(c),O=T.fragments,R=null,U=0,F=0,Y=0,k=0,K=null,z=new b.Fragment(_,c),j,Q,X,te=-1,oe=!1;for(a.lastIndex=0,T.m3u8=m;(j=a.exec(m))!==null;){oe&&(oe=!1,z=new b.Fragment(_,c),z.start=Y,z.sn=U,z.cc=k,z.level=o,R&&(z.initSegment=R,z.rawProgramDateTime=R.rawProgramDateTime));var fe=j[1];if(fe){z.duration=parseFloat(fe);var le=(" "+j[2]).slice(1);z.title=le||null,z.tagList.push(le?["INF",fe,le]:["INF",fe])}else if(j[3])Object(p.isFiniteNumber)(z.duration)&&(z.start=Y,X&&(z.levelkey=X),z.sn=U,z.level=o,z.cc=k,z.urlId=D,O.push(z),z.relurl=(" "+j[3]).slice(1),S(z,K),K=z,Y+=z.duration,U++,F=0,oe=!0);else if(j[4]){var we=(" "+j[4]).slice(1);K?z.setByteRange(we,K):z.setByteRange(we)}else if(j[5])z.rawProgramDateTime=(" "+j[5]).slice(1),z.tagList.push(["PROGRAM-DATE-TIME",z.rawProgramDateTime]),te===-1&&(te=O.length);else{if(j=j[0].match(A),!j){n.logger.warn("No matches on slow regex match for level playlist!");continue}for(Q=1;Q<j.length&&!(typeof j[Q]!="undefined");Q++);var Ae=(" "+j[Q]).slice(1),be=(" "+j[Q+1]).slice(1),me=j[Q+2]?(" "+j[Q+2]).slice(1):"";switch(Ae){case"PLAYLIST-TYPE":T.type=be.toUpperCase();break;case"MEDIA-SEQUENCE":U=T.startSN=parseInt(be);break;case"SKIP":{var he=new r.AttrList(be),ie=he.decimalInteger("SKIPPED-SEGMENTS");if(Object(p.isFiniteNumber)(ie)){T.skippedSegments=ie;for(var pe=ie;pe--;)O.unshift(null);U+=ie}var ye=he.enumeratedString("RECENTLY-REMOVED-DATERANGES");ye&&(T.recentlyRemovedDateranges=ye.split(" "));break}case"TARGETDURATION":T.targetduration=parseFloat(be);break;case"VERSION":T.version=parseInt(be);break;case"EXTM3U":break;case"ENDLIST":T.live=!1;break;case"#":(be||me)&&z.tagList.push(me?[be,me]:[be]);break;case"DIS":k++;case"GAP":z.tagList.push([Ae]);break;case"BITRATE":z.tagList.push([Ae,be]);break;case"DISCONTINUITY-SEQ":k=parseInt(be);break;case"KEY":{var de,Me=new r.AttrList(be),ke=Me.enumeratedString("METHOD"),Ue=Me.URI,re=Me.hexadecimalInteger("IV"),N=Me.enumeratedString("KEYFORMATVERSIONS"),W=Me.enumeratedString("KEYID"),ce=(de=Me.enumeratedString("KEYFORMAT"))!=null?de:"identity",ne=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(ne.indexOf(ce)>-1){n.logger.warn("Keyformat "+ce+" is not supported from the manifest");continue}else if(ce!=="identity")continue;ke&&(X=l.LevelKey.fromURL(c,Ue),Ue&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(ke)>=0&&(X.method=ke,X.keyFormat=ce,W&&(X.keyID=W),N&&(X.keyFormatVersions=N),X.iv=re));break}case"START":{var ue=new r.AttrList(be),De=ue.decimalFloatingPoint("TIME-OFFSET");Object(p.isFiniteNumber)(De)&&(T.startTimeOffset=De);break}case"MAP":{var ze=new r.AttrList(be);z.relurl=ze.URI,ze.BYTERANGE&&z.setByteRange(ze.BYTERANGE),z.level=o,z.sn="initSegment",X&&(z.levelkey=X),z.initSegment=null,R=z,oe=!0;break}case"SERVER-CONTROL":{var wt=new r.AttrList(be);T.canBlockReload=wt.bool("CAN-BLOCK-RELOAD"),T.canSkipUntil=wt.optionalFloat("CAN-SKIP-UNTIL",0),T.canSkipDateRanges=T.canSkipUntil>0&&wt.bool("CAN-SKIP-DATERANGES"),T.partHoldBack=wt.optionalFloat("PART-HOLD-BACK",0),T.holdBack=wt.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var He=new r.AttrList(be);T.partTarget=He.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Xe=T.partList;Xe||(Xe=T.partList=[]);var gt=F>0?Xe[Xe.length-1]:void 0,_t=F++,ct=new b.Part(new r.AttrList(be),z,c,_t,gt);Xe.push(ct),z.duration+=ct.duration;break}case"PRELOAD-HINT":{var lt=new r.AttrList(be);T.preloadHint=lt;break}case"RENDITION-REPORT":{var rt=new r.AttrList(be);T.renditionReports=T.renditionReports||[],T.renditionReports.push(rt);break}default:n.logger.warn("line parsed but not handled: "+j);break}}}K&&!K.relurl?(O.pop(),Y-=K.duration,T.partList&&(T.fragmentHint=K)):T.partList&&(S(z,K),z.cc=k,T.fragmentHint=z);var Ze=O.length,qe=O[0],Le=O[Ze-1];if(Y+=T.skippedSegments*T.targetduration,Y>0&&Ze&&Le){T.averagetargetduration=Y/Ze;var je=Le.sn;T.endSN=je!=="initSegment"?je:0,qe&&(T.startCC=qe.cc,qe.initSegment||T.fragments.every(function(Ne){return Ne.relurl&&i(Ne.relurl)})&&(n.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),z=new b.Fragment(_,c),z.relurl=Le.relurl,z.level=o,z.sn="initSegment",qe.initSegment=z,T.needSidxRanges=!0))}else T.endSN=0,T.startCC=0;return T.fragmentHint&&(Y+=T.fragmentHint.duration),T.totalduration=Y,T.endCC=k,te>0&&x(O,te),T},B}();function y(B,w){["video","audio","text"].forEach(function(m){var c=B.filter(function(_){return Object(e.isCodecType)(_,m)});if(c.length){var o=c.filter(function(_){return _.lastIndexOf("avc1",0)===0||_.lastIndexOf("mp4a",0)===0});w[m+"Codec"]=o.length>0?o[0]:c[0],B=B.filter(function(_){return c.indexOf(_)===-1})}}),w.unknownCodecs=B}function v(B,w,m){var c=w[m];c&&(B[m]=c)}function x(B,w){for(var m=B[w],c=w;c--;){var o=B[c];if(!o)return;o.programDateTime=m.programDateTime-o.duration*1e3,m=o}}function S(B,w){B.rawProgramDateTime?B.programDateTime=Date.parse(B.rawProgramDateTime):w!=null&&w.programDateTime&&(B.programDateTime=w.endProgramDateTime),Object(p.isFiniteNumber)(B.programDateTime)||(B.programDateTime=null,B.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(ae,V,M){"use strict";M.r(V);var p=M("./src/polyfills/number.ts"),E=M("./src/events.ts"),C=M("./src/errors.ts"),b=M("./src/utils/logger.ts"),f=M("./src/utils/mp4-tools.ts"),l=M("./src/loader/m3u8-parser.ts"),r=M("./src/types/loader.ts"),n=M("./src/utils/attr-list.ts");function e(a){var A=a.type;switch(A){case r.PlaylistContextType.AUDIO_TRACK:return r.PlaylistLevelType.AUDIO;case r.PlaylistContextType.SUBTITLE_TRACK:return r.PlaylistLevelType.SUBTITLE;default:return r.PlaylistLevelType.MAIN}}function s(a,A){var d=a.url;return(d===void 0||d.indexOf("data:")===0)&&(d=A.url),d}var u=function(){function a(d){this.hls=void 0,this.loaders=Object.create(null),this.hls=d,this.registerListeners()}var A=a.prototype;return A.registerListeners=function(){var i=this.hls;i.on(E.Events.MANIFEST_LOADING,this.onManifestLoading,this),i.on(E.Events.LEVEL_LOADING,this.onLevelLoading,this),i.on(E.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),i.on(E.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},A.unregisterListeners=function(){var i=this.hls;i.off(E.Events.MANIFEST_LOADING,this.onManifestLoading,this),i.off(E.Events.LEVEL_LOADING,this.onLevelLoading,this),i.off(E.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),i.off(E.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},A.createInternalLoader=function(i){var h=this.hls.config,y=h.pLoader,v=h.loader,x=y||v,S=new x(h);return i.loader=S,this.loaders[i.type]=S,S},A.getInternalLoader=function(i){return this.loaders[i.type]},A.resetInternalLoader=function(i){this.loaders[i]&&delete this.loaders[i]},A.destroyInternalLoaders=function(){for(var i in this.loaders){var h=this.loaders[i];h&&h.destroy(),this.resetInternalLoader(i)}},A.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},A.onManifestLoading=function(i,h){var y=h.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:r.PlaylistContextType.MANIFEST,url:y,deliveryDirectives:null})},A.onLevelLoading=function(i,h){var y=h.id,v=h.level,x=h.url,S=h.deliveryDirectives;this.load({id:y,groupId:null,level:v,responseType:"text",type:r.PlaylistContextType.LEVEL,url:x,deliveryDirectives:S})},A.onAudioTrackLoading=function(i,h){var y=h.id,v=h.groupId,x=h.url,S=h.deliveryDirectives;this.load({id:y,groupId:v,level:null,responseType:"text",type:r.PlaylistContextType.AUDIO_TRACK,url:x,deliveryDirectives:S})},A.onSubtitleTrackLoading=function(i,h){var y=h.id,v=h.groupId,x=h.url,S=h.deliveryDirectives;this.load({id:y,groupId:v,level:null,responseType:"text",type:r.PlaylistContextType.SUBTITLE_TRACK,url:x,deliveryDirectives:S})},A.load=function(i){var h,y=this.hls.config,v=this.getInternalLoader(i);if(v){var x=v.context;if(x&&x.url===i.url){b.logger.trace("[playlist-loader]: playlist request ongoing");return}b.logger.log("[playlist-loader]: aborting previous loader for type: "+i.type),v.abort()}var S,B,w,m;switch(i.type){case r.PlaylistContextType.MANIFEST:S=y.manifestLoadingMaxRetry,B=y.manifestLoadingTimeOut,w=y.manifestLoadingRetryDelay,m=y.manifestLoadingMaxRetryTimeout;break;case r.PlaylistContextType.LEVEL:case r.PlaylistContextType.AUDIO_TRACK:case r.PlaylistContextType.SUBTITLE_TRACK:S=0,B=y.levelLoadingTimeOut;break;default:S=y.levelLoadingMaxRetry,B=y.levelLoadingTimeOut,w=y.levelLoadingRetryDelay,m=y.levelLoadingMaxRetryTimeout;break}if(v=this.createInternalLoader(i),(h=i.deliveryDirectives)!==null&&h!==void 0&&h.part){var c;if(i.type===r.PlaylistContextType.LEVEL&&i.level!==null?c=this.hls.levels[i.level].details:i.type===r.PlaylistContextType.AUDIO_TRACK&&i.id!==null?c=this.hls.audioTracks[i.id].details:i.type===r.PlaylistContextType.SUBTITLE_TRACK&&i.id!==null&&(c=this.hls.subtitleTracks[i.id].details),c){var o=c.partTarget,_=c.targetduration;o&&_&&(B=Math.min(Math.max(o*3,_*.8)*1e3,B))}}var D={timeout:B,maxRetry:S,retryDelay:w,maxRetryDelay:m,highWaterMark:0},T={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};v.load(i,D,T)},A.loadsuccess=function(i,h,y,v){if(v===void 0&&(v=null),y.isSidxRequest){this.handleSidxRequest(i,y),this.handlePlaylistLoaded(i,h,y,v);return}this.resetInternalLoader(y.type);var x=i.data;if(x.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(i,y,"no EXTM3U delimiter",v);return}h.parsing.start=performance.now(),x.indexOf("#EXTINF:")>0||x.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(i,h,y,v):this.handleMasterPlaylist(i,h,y,v)},A.loaderror=function(i,h,y){y===void 0&&(y=null),this.handleNetworkError(h,y,!1,i)},A.loadtimeout=function(i,h,y){y===void 0&&(y=null),this.handleNetworkError(h,y,!0)},A.handleMasterPlaylist=function(i,h,y,v){var x=this.hls,S=i.data,B=s(i,y),w=l.default.parseMasterPlaylist(S,B),m=w.levels,c=w.sessionData;if(!m.length){this.handleManifestParsingError(i,y,"no level found in manifest",v);return}var o=m.map(function(U){return{id:U.attrs.AUDIO,audioCodec:U.audioCodec}}),_=m.map(function(U){return{id:U.attrs.SUBTITLES,textCodec:U.textCodec}}),D=l.default.parseMasterPlaylistMedia(S,B,"AUDIO",o),T=l.default.parseMasterPlaylistMedia(S,B,"SUBTITLES",_),O=l.default.parseMasterPlaylistMedia(S,B,"CLOSED-CAPTIONS");if(D.length){var R=D.some(function(U){return!U.url});!R&&m[0].audioCodec&&!m[0].attrs.AUDIO&&(b.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),D.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new n.AttrList({}),bitrate:0,url:""}))}x.trigger(E.Events.MANIFEST_LOADED,{levels:m,audioTracks:D,subtitles:T,captions:O,url:B,stats:h,networkDetails:v,sessionData:c})},A.handleTrackOrLevelPlaylist=function(i,h,y,v){var x=this.hls,S=y.id,B=y.level,w=y.type,m=s(i,y),c=Object(p.isFiniteNumber)(S)?S:0,o=Object(p.isFiniteNumber)(B)?B:c,_=e(y),D=l.default.parseLevelPlaylist(i.data,m,o,_,c);if(!D.fragments.length){x.trigger(E.Events.ERROR,{type:C.ErrorTypes.NETWORK_ERROR,details:C.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:m,reason:"no fragments found in level",level:typeof y.level=="number"?y.level:void 0});return}if(w===r.PlaylistContextType.MANIFEST){var T={attrs:new n.AttrList({}),bitrate:0,details:D,name:"",url:m};x.trigger(E.Events.MANIFEST_LOADED,{levels:[T],audioTracks:[],url:m,stats:h,networkDetails:v,sessionData:null})}if(h.parsing.end=performance.now(),D.needSidxRanges){var O,R=(O=D.fragments[0].initSegment)===null||O===void 0?void 0:O.url;this.load({url:R,isSidxRequest:!0,type:w,level:B,levelDetails:D,id:S,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}y.levelDetails=D,this.handlePlaylistLoaded(i,h,y,v)},A.handleSidxRequest=function(i,h){var y=Object(f.parseSegmentIndex)(new Uint8Array(i.data));if(!y)return;var v=y.references,x=h.levelDetails;v.forEach(function(S,B){var w=S.info,m=x.fragments[B];m.byteRange.length===0&&m.setByteRange(String(1+w.end-w.start)+"@"+String(w.start)),m.initSegment&&m.initSegment.setByteRange(String(y.moovEndOffset)+"@0")})},A.handleManifestParsingError=function(i,h,y,v){this.hls.trigger(E.Events.ERROR,{type:C.ErrorTypes.NETWORK_ERROR,details:C.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:h.type===r.PlaylistContextType.MANIFEST,url:i.url,reason:y,response:i,context:h,networkDetails:v})},A.handleNetworkError=function(i,h,y,v){y===void 0&&(y=!1),b.logger.warn("[playlist-loader]: A network "+(y?"timeout":"error")+" occurred while loading "+i.type+" level: "+i.level+" id: "+i.id+' group-id: "'+i.groupId+'"');var x=C.ErrorDetails.UNKNOWN,S=!1,B=this.getInternalLoader(i);switch(i.type){case r.PlaylistContextType.MANIFEST:x=y?C.ErrorDetails.MANIFEST_LOAD_TIMEOUT:C.ErrorDetails.MANIFEST_LOAD_ERROR,S=!0;break;case r.PlaylistContextType.LEVEL:x=y?C.ErrorDetails.LEVEL_LOAD_TIMEOUT:C.ErrorDetails.LEVEL_LOAD_ERROR,S=!1;break;case r.PlaylistContextType.AUDIO_TRACK:x=y?C.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:C.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,S=!1;break;case r.PlaylistContextType.SUBTITLE_TRACK:x=y?C.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:C.ErrorDetails.SUBTITLE_LOAD_ERROR,S=!1;break}B&&this.resetInternalLoader(i.type);var w={type:C.ErrorTypes.NETWORK_ERROR,details:x,fatal:S,url:i.url,loader:B,context:i,networkDetails:h};v&&(w.response=v),this.hls.trigger(E.Events.ERROR,w)},A.handlePlaylistLoaded=function(i,h,y,v){var x=y.type,S=y.level,B=y.id,w=y.groupId,m=y.loader,c=y.levelDetails,o=y.deliveryDirectives;if(!(c!=null&&c.targetduration)){this.handleManifestParsingError(i,y,"invalid target duration",v);return}if(!m)return;c.live&&(m.getCacheAge&&(c.ageHeader=m.getCacheAge()||0),(!m.getCacheAge||isNaN(c.ageHeader))&&(c.ageHeader=0));switch(x){case r.PlaylistContextType.MANIFEST:case r.PlaylistContextType.LEVEL:this.hls.trigger(E.Events.LEVEL_LOADED,{details:c,level:S||0,id:B||0,stats:h,networkDetails:v,deliveryDirectives:o});break;case r.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(E.Events.AUDIO_TRACK_LOADED,{details:c,id:B||0,groupId:w||"",stats:h,networkDetails:v,deliveryDirectives:o});break;case r.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(E.Events.SUBTITLE_TRACK_LOADED,{details:c,id:B||0,groupId:w||"",stats:h,networkDetails:v,deliveryDirectives:o});break}},a}();V.default=u},"./src/polyfills/number.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"isFiniteNumber",function(){return p}),M.d(V,"MAX_SAFE_INTEGER",function(){return E});var p=Number.isFinite||function(C){return typeof C=="number"&&isFinite(C)},E=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(ae,V,M){"use strict";M.r(V);var p=function(){function E(){}return E.getSilentFrame=function(b,f){switch(b){case"mp4a.40.2":if(f===1)return new Uint8Array([0,200,0,128,35,128]);if(f===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(f===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(f===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(f===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(f===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(f===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(f===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(f===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},E}();V.default=p},"./src/remux/mp4-generator.ts":function(ae,V,M){"use strict";M.r(V);var p=Math.pow(2,32)-1,E=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 f;for(f in C.types)C.types.hasOwnProperty(f)&&(C.types[f]=[f.charCodeAt(0),f.charCodeAt(1),f.charCodeAt(2),f.charCodeAt(3)]);var l=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]),r=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:l,audio:r};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 s=new Uint8Array([105,115,111,109]),u=new Uint8Array([97,118,99,49]),a=new Uint8Array([0,0,0,1]);C.FTYP=C.box(C.types.ftyp,s,a,s,u),C.DINF=C.box(C.types.dinf,C.box(C.types.dref,n))},C.box=function(f){for(var l=8,r=arguments.length,n=new Array(r>1?r-1:0),e=1;e<r;e++)n[e-1]=arguments[e];for(var s=n.length,u=s;s--;)l+=n[s].byteLength;var a=new Uint8Array(l);for(a[0]=l>>24&255,a[1]=l>>16&255,a[2]=l>>8&255,a[3]=l&255,a.set(f,4),s=0,l=8;s<u;s++)a.set(n[s],l),l+=n[s].byteLength;return a},C.hdlr=function(f){return C.box(C.types.hdlr,C.HDLR_TYPES[f])},C.mdat=function(f){return C.box(C.types.mdat,f)},C.mdhd=function(f,l){l*=f;var r=Math.floor(l/(p+1)),n=Math.floor(l%(p+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,f>>24&255,f>>16&255,f>>8&255,f&255,r>>24,r>>16&255,r>>8&255,r&255,n>>24,n>>16&255,n>>8&255,n&255,85,196,0,0]))},C.mdia=function(f){return C.box(C.types.mdia,C.mdhd(f.timescale,f.duration),C.hdlr(f.type),C.minf(f))},C.mfhd=function(f){return C.box(C.types.mfhd,new Uint8Array([0,0,0,0,f>>24,f>>16&255,f>>8&255,f&255]))},C.minf=function(f){return f.type==="audio"?C.box(C.types.minf,C.box(C.types.smhd,C.SMHD),C.DINF,C.stbl(f)):C.box(C.types.minf,C.box(C.types.vmhd,C.VMHD),C.DINF,C.stbl(f))},C.moof=function(f,l,r){return C.box(C.types.moof,C.mfhd(f),C.traf(r,l))},C.moov=function(f){for(var l=f.length,r=[];l--;)r[l]=C.trak(f[l]);return C.box.apply(null,[C.types.moov,C.mvhd(f[0].timescale,f[0].duration)].concat(r).concat(C.mvex(f)))},C.mvex=function(f){for(var l=f.length,r=[];l--;)r[l]=C.trex(f[l]);return C.box.apply(null,[C.types.mvex].concat(r))},C.mvhd=function(f,l){l*=f;var r=Math.floor(l/(p+1)),n=Math.floor(l%(p+1)),e=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,f>>24&255,f>>16&255,f>>8&255,f&255,r>>24,r>>16&255,r>>8&255,r&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(f){var l=f.samples||[],r=new Uint8Array(4+l.length),n,e;for(n=0;n<l.length;n++)e=l[n].flags,r[n+4]=e.dependsOn<<4|e.isDependedOn<<2|e.hasRedundancy;return C.box(C.types.sdtp,r)},C.stbl=function(f){return C.box(C.types.stbl,C.stsd(f),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(f){var l=[],r=[],n,e,s;for(n=0;n<f.sps.length;n++)e=f.sps[n],s=e.byteLength,l.push(s>>>8&255),l.push(s&255),l=l.concat(Array.prototype.slice.call(e));for(n=0;n<f.pps.length;n++)e=f.pps[n],s=e.byteLength,r.push(s>>>8&255),r.push(s&255),r=r.concat(Array.prototype.slice.call(e));var u=C.box(C.types.avcC,new Uint8Array([1,l[3],l[4],l[5],252|3,224|f.sps.length].concat(l).concat([f.pps.length]).concat(r))),a=f.width,A=f.height,d=f.pixelRatio[0],i=f.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,a>>8&255,a&255,A>>8&255,A&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]),u,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([d>>24,d>>16&255,d>>8&255,d&255,i>>24,i>>16&255,i>>8&255,i&255])))},C.esds=function(f){var l=f.config.length;return new Uint8Array([0,0,0,0,3,23+l,0,1,0,4,15+l,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([l]).concat(f.config).concat([6,1,2]))},C.mp4a=function(f){var l=f.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,f.channelCount,0,16,0,0,0,0,l>>8&255,l&255,0,0]),C.box(C.types.esds,C.esds(f)))},C.mp3=function(f){var l=f.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,f.channelCount,0,16,0,0,0,0,l>>8&255,l&255,0,0]))},C.stsd=function(f){return f.type==="audio"?!f.isAAC&&f.codec==="mp3"?C.box(C.types.stsd,C.STSD,C.mp3(f)):C.box(C.types.stsd,C.STSD,C.mp4a(f)):C.box(C.types.stsd,C.STSD,C.avc1(f))},C.tkhd=function(f){var l=f.id,r=f.duration*f.timescale,n=f.width,e=f.height,s=Math.floor(r/(p+1)),u=Math.floor(r%(p+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,l>>24&255,l>>16&255,l>>8&255,l&255,0,0,0,0,s>>24,s>>16&255,s>>8&255,s&255,u>>24,u>>16&255,u>>8&255,u&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(f,l){var r=C.sdtp(f),n=f.id,e=Math.floor(l/(p+1)),s=Math.floor(l%(p+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,s>>24,s>>16&255,s>>8&255,s&255])),C.trun(f,r.length+16+20+8+16+8+8),r)},C.trak=function(f){return f.duration=f.duration||4294967295,C.box(C.types.trak,C.tkhd(f),C.mdia(f))},C.trex=function(f){var l=f.id;return C.box(C.types.trex,new Uint8Array([0,0,0,0,l>>24,l>>16&255,l>>8&255,l&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},C.trun=function(f,l){var r=f.samples||[],n=r.length,e=12+16*n,s=new Uint8Array(e),u,a,A,d,i,h;for(l+=8+e,s.set([0,0,15,1,n>>>24&255,n>>>16&255,n>>>8&255,n&255,l>>>24&255,l>>>16&255,l>>>8&255,l&255],0),u=0;u<n;u++)a=r[u],A=a.duration,d=a.size,i=a.flags,h=a.cts,s.set([A>>>24&255,A>>>16&255,A>>>8&255,A&255,d>>>24&255,d>>>16&255,d>>>8&255,d&255,i.isLeading<<2|i.dependsOn,i.isDependedOn<<6|i.hasRedundancy<<4|i.paddingValue<<1|i.isNonSync,i.degradPrio&240<<8,i.degradPrio&15,h>>>24&255,h>>>16&255,h>>>8&255,h&255],12+16*u);return C.box(C.types.trun,s)},C.initSegment=function(f){C.types||C.init();var l=C.moov(f),r=new Uint8Array(C.FTYP.byteLength+l.byteLength);return r.set(C.FTYP),r.set(l,C.FTYP.byteLength),r},C}();E.types=void 0,E.HDLR_TYPES=void 0,E.STTS=void 0,E.STSC=void 0,E.STCO=void 0,E.STSZ=void 0,E.VMHD=void 0,E.SMHD=void 0,E.STSD=void 0,E.FTYP=void 0,E.DINF=void 0,V.default=E},"./src/remux/mp4-remuxer.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"default",function(){return h}),M.d(V,"normalizePts",function(){return y});var p=M("./src/polyfills/number.ts"),E=M("./src/remux/aac-helper.ts"),C=M("./src/remux/mp4-generator.ts"),b=M("./src/events.ts"),f=M("./src/errors.ts"),l=M("./src/utils/logger.ts"),r=M("./src/types/loader.ts"),n=M("./src/utils/timescale-conversion.ts");function e(){return e=Object.assign||function(B){for(var w=1;w<arguments.length;w++){var m=arguments[w];for(var c in m)Object.prototype.hasOwnProperty.call(m,c)&&(B[c]=m[c])}return B},e.apply(this,arguments)}var s=10*1e3,u=1024,a=1152,A=null,d=null,i=!1,h=function(){function B(m,c,o,_){if(_===void 0&&(_=""),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=m,this.config=c,this.typeSupported=o,this.ISGenerated=!1,A===null){var D=navigator.userAgent||"",T=D.match(/Chrome\/(\d+)/i);A=T?parseInt(T[1]):0}if(d===null){var O=navigator.userAgent.match(/Safari\/(\d+)/i);d=O?parseInt(O[1]):0}i=!!A&&A<75||!!d&&d<600}var w=B.prototype;return w.destroy=function(){},w.resetTimeStamp=function(c){l.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=c},w.resetNextTimestamp=function(){l.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},w.resetInitSegment=function(){l.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},w.getVideoStartPts=function(c){var o=!1,_=c.reduce(function(D,T){var O=T.pts-D;return O<-4294967296?(o=!0,y(D,T.pts)):O>0?D:T.pts},c[0].pts);return o&&l.logger.debug("PTS rollover detected"),_},w.remux=function(c,o,_,D,T,O,R,U){var F,Y,k,K,z,j,Q=T,X=T,te=c.pid>-1,oe=o.pid>-1,fe=o.samples.length,le=c.samples.length>0,we=fe>1,Ae=(!te||le)&&(!oe||we)||this.ISGenerated||R;if(Ae){this.ISGenerated||(k=this.generateIS(c,o,T));var be=this.isVideoContiguous,me=-1;if(we&&(me=v(o.samples),!be&&this.config.forceKeyFrameOnDiscontinuity))if(j=!0,me>0){l.logger.warn("[mp4-remuxer]: Dropped "+me+" out of "+fe+" video samples due to a missing keyframe");var he=this.getVideoStartPts(o.samples);o.samples=o.samples.slice(me),o.dropped+=me,X+=(o.samples[0].pts-he)/(o.timescale||9e4)}else me===-1&&(l.logger.warn("[mp4-remuxer]: No keyframe found out of "+fe+" video samples"),j=!1);if(this.ISGenerated){if(le&&we){var ie=this.getVideoStartPts(o.samples),pe=y(c.samples[0].pts,ie)-ie,ye=pe/o.inputTimeScale;Q+=Math.max(0,ye),X+=Math.max(0,-ye)}if(le){if(c.samplerate||(l.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),k=this.generateIS(c,o,T)),Y=this.remuxAudio(c,Q,this.isAudioContiguous,O,oe||we||U===r.PlaylistLevelType.AUDIO?X:void 0),we){var de=Y?Y.endPTS-Y.startPTS:0;o.inputTimeScale||(l.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),k=this.generateIS(c,o,T)),F=this.remuxVideo(o,X,be,de)}}else we&&(F=this.remuxVideo(o,X,be,0));F&&(F.firstKeyFrame=me,F.independent=me!==-1)}}return this.ISGenerated&&(_.samples.length&&(z=this.remuxID3(_,T)),D.samples.length&&(K=this.remuxText(D,T))),{audio:Y,video:F,initSegment:k,independent:j,text:K,id3:z}},w.generateIS=function(c,o,_){var D=c.samples,T=o.samples,O=this.typeSupported,R={},U=!Object(p.isFiniteNumber)(this._initPTS),F="audio/mp4",Y,k,K;if(U&&(Y=k=Infinity),c.config&&D.length&&(c.timescale=c.samplerate,c.isAAC||(O.mpeg?(F="audio/mpeg",c.codec=""):O.mp3&&(c.codec="mp3")),R.audio={id:"audio",container:F,codec:c.codec,initSegment:!c.isAAC&&O.mpeg?new Uint8Array(0):C.default.initSegment([c]),metadata:{channelCount:c.channelCount}},U&&(K=c.inputTimeScale,Y=k=D[0].pts-Math.round(K*_))),o.sps&&o.pps&&T.length&&(o.timescale=o.inputTimeScale,R.video={id:"main",container:"video/mp4",codec:o.codec,initSegment:C.default.initSegment([o]),metadata:{width:o.width,height:o.height}},U)){K=o.inputTimeScale;var z=this.getVideoStartPts(T),j=Math.round(K*_);k=Math.min(k,y(T[0].dts,z)-j),Y=Math.min(Y,z-j)}if(Object.keys(R).length)return this.ISGenerated=!0,U&&(this._initPTS=Y,this._initDTS=k),{tracks:R,initPTS:Y,timescale:K}},w.remuxVideo=function(c,o,_,D){var T=c.inputTimeScale,O=c.samples,R=[],U=O.length,F=this._initPTS,Y=this.nextAvcDts,k=8,K,z,j,Q=Number.POSITIVE_INFINITY,X=Number.NEGATIVE_INFINITY,te=0,oe=!1;if(!_||Y===null){var fe=o*T,le=O[0].pts-y(O[0].dts,O[0].pts);Y=fe-le}for(var we=0;we<U;we++){var Ae=O[we];if(Ae.pts=y(Ae.pts-F,Y),Ae.dts=y(Ae.dts-F,Y),Ae.dts>Ae.pts){var be=9e4*.2;te=Math.max(Math.min(te,Ae.pts-Ae.dts),-1*be)}Ae.dts<O[we>0?we-1:we].dts&&(oe=!0)}oe&&O.sort(function(Lt,St){var dt=Lt.dts-St.dts,yt=Lt.pts-St.pts;return dt||yt}),z=O[0].dts,j=O[O.length-1].dts;var me=Math.round((j-z)/(U-1));if(te<0){if(te<me*-2){l.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(n.toMsFromMpegTsClock)(-me,!0)+" ms");for(var he=te,ie=0;ie<U;ie++)O[ie].dts=he=Math.max(he,O[ie].pts-me),O[ie].pts=Math.max(he,O[ie].pts)}else{l.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+Object(n.toMsFromMpegTsClock)(te,!0)+" ms to overcome this issue");for(var pe=0;pe<U;pe++)O[pe].dts=O[pe].dts+te}z=O[0].dts}if(_){var ye=z-Y,de=ye>me,Me=ye<-1;if(de||Me){de?l.logger.warn("AVC: "+Object(n.toMsFromMpegTsClock)(ye,!0)+" ms ("+ye+"dts) hole between fragments detected, filling it"):l.logger.warn("AVC: "+Object(n.toMsFromMpegTsClock)(-ye,!0)+" ms ("+ye+"dts) overlapping between fragments detected"),z=Y;var ke=O[0].pts-ye;O[0].dts=z,O[0].pts=ke,l.logger.log("Video: First PTS/DTS adjusted: "+Object(n.toMsFromMpegTsClock)(ke,!0)+"/"+Object(n.toMsFromMpegTsClock)(z,!0)+", delta: "+Object(n.toMsFromMpegTsClock)(ye,!0)+" ms")}}i&&(z=Math.max(0,z));for(var Ue=0,re=0,N=0;N<U;N++){for(var W=O[N],ce=W.units,ne=ce.length,ue=0,De=0;De<ne;De++)ue+=ce[De].data.length;re+=ue,Ue+=ne,W.length=ue,W.dts=Math.max(W.dts,z),W.pts=Math.max(W.pts,W.dts,0),Q=Math.min(W.pts,Q),X=Math.max(W.pts,X)}j=O[U-1].dts;var ze=re+4*Ue+8,wt;try{wt=new Uint8Array(ze)}catch(Lt){this.observer.emit(b.Events.ERROR,b.Events.ERROR,{type:f.ErrorTypes.MUX_ERROR,details:f.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:ze,reason:"fail allocating video mdat "+ze});return}var He=new DataView(wt.buffer);He.setUint32(0,ze),wt.set(C.default.types.mdat,4);for(var Xe=0;Xe<U;Xe++){for(var gt=O[Xe],_t=gt.units,ct=0,lt=0,rt=_t.length;lt<rt;lt++){var Ze=_t[lt],qe=Ze.data,Le=Ze.data.byteLength;He.setUint32(k,Le),k+=4,wt.set(qe,k),k+=Le,ct+=4+Le}if(Xe<U-1)K=O[Xe+1].dts-gt.dts;else{var je=this.config,Ne=gt.dts-O[Xe>0?Xe-1:Xe].dts;if(je.stretchShortVideoTrack&&this.nextAudioPts!==null){var $e=Math.floor(je.maxBufferHole*T),At=(D?Q+D*T:this.nextAudioPts)-gt.pts;At>$e?(K=At-Ne,K<0&&(K=Ne),l.logger.log("[mp4-remuxer]: It is approximately "+At/90+" ms to the next segment; using duration "+K/90+" ms for the last video frame.")):K=Ne}else K=Ne}var Bt=Math.round(gt.pts-gt.dts);R.push(new x(gt.key,K,ct,Bt))}if(R.length&&A&&A<70){var Nt=R[0].flags;Nt.dependsOn=2,Nt.isNonSync=0}console.assert(K!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=Y=j+K,this.isVideoContiguous=!0;var It=C.default.moof(c.sequenceNumber++,z,e({},c,{samples:R})),jt="video",xt={data1:It,data2:wt,startPTS:Q/T,endPTS:(X+K)/T,startDTS:z/T,endDTS:Y/T,type:jt,hasAudio:!1,hasVideo:!0,nb:R.length,dropped:c.dropped};return c.samples=[],c.dropped=0,console.assert(wt.length,"MDAT length must not be zero"),xt},w.remuxAudio=function(c,o,_,D,T){var O=c.inputTimeScale,R=c.samplerate?c.samplerate:O,U=O/R,F=c.isAAC?u:a,Y=F*U,k=this._initPTS,K=!c.isAAC&&this.typeSupported.mpeg,z=[],j=c.samples,Q=K?0:8,X=this.nextAudioPts||-1,te=o*O;if(this.isAudioContiguous=_=_||j.length&&X>0&&(D&&Math.abs(te-X)<9e3||Math.abs(y(j[0].pts-k,te)-X)<20*Y),j.forEach(function(qe){qe.pts=y(qe.pts-k,te)}),!_||X<0){if(j=j.filter(function(qe){return qe.pts>=0}),!j.length)return;T===0?X=0:D?X=Math.max(0,te):X=j[0].pts}if(c.isAAC)for(var oe=T!==void 0,fe=this.config.maxAudioFramesDrift,le=0,we=X;le<j.length;le++){var Ae=j[le],be=Ae.pts,me=be-we,he=Math.abs(1e3*me/O);if(me<=-fe*Y&&oe)le===0&&(l.logger.warn("Audio frame @ "+(be/O).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*me/O)+" ms."),this.nextAudioPts=X=we=be);else if(me>=fe*Y&&he<s&&oe){var ie=Math.round(me/Y);we=be-ie*Y,we<0&&(ie--,we+=Y),le===0&&(this.nextAudioPts=X=we),l.logger.warn("[mp4-remuxer]: Injecting "+ie+" audio frame @ "+(we/O).toFixed(3)+"s due to "+Math.round(1e3*me/O)+" ms gap.");for(var pe=0;pe<ie;pe++){var ye=Math.max(we,0),de=E.default.getSilentFrame(c.manifestCodec||c.codec,c.channelCount);de||(l.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),de=Ae.unit.subarray()),j.splice(le,0,{unit:de,pts:ye}),we+=Y,le++}}Ae.pts=we,we+=Y}for(var Me=null,ke=null,Ue,re=0,N=j.length;N--;)re+=j[N].unit.byteLength;for(var W=0,ce=j.length;W<ce;W++){var ne=j[W],ue=ne.unit,De=ne.pts;if(ke!==null){var ze=z[W-1];ze.duration=Math.round((De-ke)/U)}else if(_&&c.isAAC&&(De=X),Me=De,re>0){re+=Q;try{Ue=new Uint8Array(re)}catch(qe){this.observer.emit(b.Events.ERROR,b.Events.ERROR,{type:f.ErrorTypes.MUX_ERROR,details:f.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:re,reason:"fail allocating audio mdat "+re});return}if(!K){var wt=new DataView(Ue.buffer);wt.setUint32(0,re),Ue.set(C.default.types.mdat,4)}}else return;Ue.set(ue,Q);var He=ue.byteLength;Q+=He,z.push(new x(!0,F,He,0)),ke=De}var Xe=z.length;if(!Xe)return;var gt=z[z.length-1];this.nextAudioPts=X=ke+U*gt.duration;var _t=K?new Uint8Array(0):C.default.moof(c.sequenceNumber++,Me/U,e({},c,{samples:z}));c.samples=[];var ct=Me/O,lt=X/O,rt="audio",Ze={data1:_t,data2:Ue,startPTS:ct,endPTS:lt,startDTS:ct,endDTS:lt,type:rt,hasAudio:!0,hasVideo:!1,nb:Xe};return this.isAudioContiguous=!0,console.assert(Ue.length,"MDAT length must not be zero"),Ze},w.remuxEmptyAudio=function(c,o,_,D){var T=c.inputTimeScale,O=c.samplerate?c.samplerate:T,R=T/O,U=this.nextAudioPts,F=(U!==null?U:D.startDTS*T)+this._initDTS,Y=D.endDTS*T+this._initDTS,k=R*u,K=Math.ceil((Y-F)/k),z=E.default.getSilentFrame(c.manifestCodec||c.codec,c.channelCount);if(l.logger.warn("[mp4-remuxer]: remux empty Audio"),!z){l.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var j=[],Q=0;Q<K;Q++){var X=F+Q*k;j.push({unit:z,pts:X,dts:X})}return c.samples=j,this.remuxAudio(c,o,_,!1)},w.remuxID3=function(c,o){var _=c.samples.length;if(!_)return;for(var D=c.inputTimeScale,T=this._initPTS,O=this._initDTS,R=0;R<_;R++){var U=c.samples[R];U.pts=y(U.pts-T,o*D)/D,U.dts=y(U.dts-O,o*D)/D}var F=c.samples;return c.samples=[],{samples:F}},w.remuxText=function(c,o){var _=c.samples.length;if(!_)return;for(var D=c.inputTimeScale,T=this._initPTS,O=0;O<_;O++){var R=c.samples[O];R.pts=y(R.pts-T,o*D)/D}c.samples.sort(function(F,Y){return F.pts-Y.pts});var U=c.samples;return c.samples=[],{samples:U}},B}();function y(B,w){var m;if(w===null)return B;for(w<B?m=-8589934592:m=8589934592;Math.abs(B-w)>4294967296;)B+=m;return B}function v(B){for(var w=0;w<B.length;w++)if(B[w].key)return w;return-1}var x=function(w,m,c,o){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=m,this.size=c,this.cts=o,this.flags=new S(w)},S=function(w){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=w?2:1,this.isNonSync=w?0:1}},"./src/remux/passthrough-remuxer.ts":function(ae,V,M){"use strict";M.r(V);var p=M("./src/polyfills/number.ts"),E=M("./src/utils/mp4-tools.ts"),C=M("./src/loader/fragment.ts"),b=M("./src/utils/logger.ts"),f=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(u){this.initPTS=u,this.lastEndDTS=null},e.resetNextTimestamp=function(){this.lastEndDTS=null},e.resetInitSegment=function(u,a,A){this.audioCodec=a,this.videoCodec=A,this.generateInitSegment(u),this.emitInitSegment=!0},e.generateInitSegment=function(u){var a=this.audioCodec,A=this.videoCodec;if(!u||!u.byteLength){this.initTracks=void 0,this.initData=void 0;return}var d=this.initData=Object(E.parseInitSegment)(u);a||(a=r(d.audio,C.ElementaryStreamTypes.AUDIO)),A||(A=r(d.video,C.ElementaryStreamTypes.VIDEO));var i={};d.audio&&d.video?i.audiovideo={container:"video/mp4",codec:a+","+A,initSegment:u,id:"main"}:d.audio?i.audio={container:"audio/mp4",codec:a,initSegment:u,id:"audio"}:d.video?i.video={container:"video/mp4",codec:A,initSegment:u,id:"main"}:b.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=i},e.remux=function(u,a,A,d,i){var h=this.initPTS,y=this.lastEndDTS,v={audio:void 0,video:void 0,text:d,id3:A,initSegment:void 0};Object(p.isFiniteNumber)(y)||(y=this.lastEndDTS=i||0);var x=a.samples;if(!x||!x.length)return v;var S={initPTS:void 0,timescale:1},B=this.initData;if((!B||!B.length)&&(this.generateInitSegment(x),B=this.initData),!B||!B.length)return b.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),v;this.emitInitSegment&&(S.tracks=this.initTracks,this.emitInitSegment=!1),Object(p.isFiniteNumber)(h)||(this.initPTS=S.initPTS=h=l(B,x,y));var w=Object(E.getDuration)(x,B),m=y,c=w+m;Object(E.offsetStartDTS)(B,x,h),w>0?this.lastEndDTS=c:(b.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var o=!!B.audio,_=!!B.video,D="";o&&(D+="audio"),_&&(D+="video");var T={data1:x,startPTS:m,startDTS:m,endPTS:c,endDTS:c,type:D,hasAudio:o,hasVideo:_,nb:1,dropped:0};return v.audio=T.type==="audio"?T:void 0,v.video=T.type!=="audio"?T:void 0,v.text=d,v.id3=A,v.initSegment=S,v},n}(),l=function(e,s,u){return Object(E.getStartDTS)(e,s)-u};function r(n,e){var s=n==null?void 0:n.codec;return s&&s.length>4?s:s==="hvc1"?"hvc1.1.c.L120.90":s==="av01"?"av01.0.04M.08":s==="avc1"||e===C.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}V.default=f},"./src/task-loop.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"default",function(){return p});var p=function(){function E(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var C=E.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(f){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,f),!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(){},E}()},"./src/types/cmcd.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"CMCDVersion",function(){return p}),M.d(V,"CMCDObjectType",function(){return E}),M.d(V,"CMCDStreamingFormat",function(){return C}),M.d(V,"CMCDStreamType",function(){return b});var p=1,E;(function(f){f.MANIFEST="m",f.AUDIO="a",f.VIDEO="v",f.MUXED="av",f.INIT="i",f.CAPTION="c",f.TIMED_TEXT="tt",f.KEY="k",f.OTHER="o"})(E||(E={}));var C;(function(f){f.DASH="d",f.HLS="h",f.SMOOTH="s",f.OTHER="o"})(C||(C={}));var b;(function(f){f.VOD="v",f.LIVE="l"})(b||(b={}))},"./src/types/level.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"HlsSkip",function(){return C}),M.d(V,"getSkipValue",function(){return b}),M.d(V,"HlsUrlParameters",function(){return f}),M.d(V,"Level",function(){return l});function p(r,n){for(var e=0;e<n.length;e++){var s=n[e];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(r,s.key,s)}}function E(r,n,e){return n&&p(r.prototype,n),e&&p(r,e),r}var C;(function(r){r.No="",r.Yes="YES",r.v2="v2"})(C||(C={}));function b(r,n){var e=r.canSkipUntil,s=r.canSkipDateRanges,u=r.endSN,a=n!==void 0?n-u:0;return e&&a<e?s?C.v2:C.Yes:C.No}var f=function(){function r(e,s,u){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=s,this.skip=u}var n=r.prototype;return n.addDirectives=function(s){var u=new self.URL(s);return this.msn!==void 0&&u.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&u.searchParams.set("_HLS_part",this.part.toString()),this.skip&&u.searchParams.set("_HLS_skip",this.skip),u.toString()},r}(),l=function(){function r(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 E(r,[{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 s=e%this.url.length;this._urlId!==s&&(this.details=void 0,this._urlId=s)}}]),r}()},"./src/types/loader.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"PlaylistContextType",function(){return p}),M.d(V,"PlaylistLevelType",function(){return E});var p;(function(C){C.MANIFEST="manifest",C.LEVEL="level",C.AUDIO_TRACK="audioTrack",C.SUBTITLE_TRACK="subtitleTrack"})(p||(p={}));var E;(function(C){C.MAIN="main",C.AUDIO="audio",C.SUBTITLE="subtitle"})(E||(E={}))},"./src/types/transmuxer.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"ChunkMetadata",function(){return p});var p=function(b,f,l,r,n,e){r===void 0&&(r=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=E(),this.buffering={audio:E(),video:E(),audiovideo:E()},this.level=b,this.sn=f,this.id=l,this.size=r,this.part=n,this.partial=e};function E(){return{start:0,executeStart:0,executeEnd:0,end:0}}},"./src/utils/attr-list.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"AttrList",function(){return C});var p=/^(\d+)x(\d+)$/,E=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,C=function(){function b(l){typeof l=="string"&&(l=b.parseAttrList(l));for(var r in l)l.hasOwnProperty(r)&&(this[r]=l[r])}var f=b.prototype;return f.decimalInteger=function(r){var n=parseInt(this[r],10);return n>Number.MAX_SAFE_INTEGER?Infinity:n},f.hexadecimalInteger=function(r){if(this[r]){var n=(this[r]||"0x").slice(2);n=(n.length&1?"0":"")+n;for(var e=new Uint8Array(n.length/2),s=0;s<n.length/2;s++)e[s]=parseInt(n.slice(s*2,s*2+2),16);return e}else return null},f.hexadecimalIntegerAsNumber=function(r){var n=parseInt(this[r],16);return n>Number.MAX_SAFE_INTEGER?Infinity:n},f.decimalFloatingPoint=function(r){return parseFloat(this[r])},f.optionalFloat=function(r,n){var e=this[r];return e?parseFloat(e):n},f.enumeratedString=function(r){return this[r]},f.bool=function(r){return this[r]==="YES"},f.decimalResolution=function(r){var n=p.exec(this[r]);return n===null?void 0:{width:parseInt(n[1],10),height:parseInt(n[2],10)}},b.parseAttrList=function(r){var n,e={},s='"';for(E.lastIndex=0;(n=E.exec(r))!==null;){var u=n[2];u.indexOf(s)===0&&u.lastIndexOf(s)===u.length-1&&(u=u.slice(1,-1)),e[n[1]]=u}return e},b}()},"./src/utils/binary-search.ts":function(ae,V,M){"use strict";M.r(V);var p={search:function(C,b){for(var f=0,l=C.length-1,r=null,n=null;f<=l;){r=(f+l)/2|0,n=C[r];var e=b(n);if(e>0)f=r+1;else if(e<0)l=r-1;else return n}return null}};V.default=p},"./src/utils/buffer-helper.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"BufferHelper",function(){return C});var p=M("./src/utils/logger.ts"),E={length:0,start:function(){return 0},end:function(){return 0}},C=function(){function b(){}return b.isBuffered=function(l,r){try{if(l){for(var n=b.getBuffered(l),e=0;e<n.length;e++)if(r>=n.start(e)&&r<=n.end(e))return!0}}catch(s){}return!1},b.bufferInfo=function(l,r,n){try{if(l){var e=b.getBuffered(l),s=[],u;for(u=0;u<e.length;u++)s.push({start:e.start(u),end:e.end(u)});return this.bufferedInfo(s,r,n)}}catch(a){}return{len:0,start:r,end:r,nextStart:void 0}},b.bufferedInfo=function(l,r,n){r=Math.max(0,r),l.sort(function(S,B){var w=S.start-B.start;return w||B.end-S.end});var e=[];if(n)for(var s=0;s<l.length;s++){var u=e.length;if(u){var a=e[u-1].end;l[s].start-a<n?l[s].end>a&&(e[u-1].end=l[s].end):e.push(l[s])}else e.push(l[s])}else e=l;for(var A=0,d,i=r,h=r,y=0;y<e.length;y++){var v=e[y].start,x=e[y].end;if(r+n>=v&&r<x)i=v,h=x,A=h-r;else if(r+n<v){d=v;break}}return{len:A,start:i||0,end:h||0,nextStart:d}},b.getBuffered=function(l){try{return l.buffered}catch(r){return p.logger.log("failed to get media.buffered",r),E}},b}()},"./src/utils/cea-608-parser.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"Row",function(){return h}),M.d(V,"CaptionScreen",function(){return y});var p=M("./src/utils/logger.ts"),E={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(c){var o=c;return E.hasOwnProperty(c)&&(o=E[c]),String.fromCharCode(o)},b=15,f=100,l={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},r={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},s=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],u;(function(m){m[m.ERROR=0]="ERROR",m[m.TEXT=1]="TEXT",m[m.WARNING=2]="WARNING",m[m.INFO=2]="INFO",m[m.DEBUG=3]="DEBUG",m[m.DATA=3]="DATA"})(u||(u={}));var a=function(){function m(){this.time=null,this.verboseLevel=u.ERROR}var c=m.prototype;return c.log=function(_,D){this.verboseLevel>=_&&p.logger.log(this.time+" ["+_+"] "+D)},m}(),A=function(c){for(var o=[],_=0;_<c.length;_++)o.push(c[_].toString(16));return o},d=function(){function m(o,_,D,T,O){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=o||"white",this.underline=_||!1,this.italics=D||!1,this.background=T||"black",this.flash=O||!1}var c=m.prototype;return c.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},c.setStyles=function(_){for(var D=["foreground","underline","italics","background","flash"],T=0;T<D.length;T++){var O=D[T];_.hasOwnProperty(O)&&(this[O]=_[O])}},c.isDefault=function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash},c.equals=function(_){return this.foreground===_.foreground&&this.underline===_.underline&&this.italics===_.italics&&this.background===_.background&&this.flash===_.flash},c.copy=function(_){this.foreground=_.foreground,this.underline=_.underline,this.italics=_.italics,this.background=_.background,this.flash=_.flash},c.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},m}(),i=function(){function m(o,_,D,T,O,R){this.uchar=void 0,this.penState=void 0,this.uchar=o||" ",this.penState=new d(_,D,T,O,R)}var c=m.prototype;return c.reset=function(){this.uchar=" ",this.penState.reset()},c.setChar=function(_,D){this.uchar=_,this.penState.copy(D)},c.setPenState=function(_){this.penState.copy(_)},c.equals=function(_){return this.uchar===_.uchar&&this.penState.equals(_.penState)},c.copy=function(_){this.uchar=_.uchar,this.penState.copy(_.penState)},c.isEmpty=function(){return this.uchar===" "&&this.penState.isDefault()},m}(),h=function(){function m(o){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var _=0;_<f;_++)this.chars.push(new i);this.logger=o,this.pos=0,this.currPenState=new d}var c=m.prototype;return c.equals=function(_){for(var D=!0,T=0;T<f;T++)if(!this.chars[T].equals(_.chars[T])){D=!1;break}return D},c.copy=function(_){for(var D=0;D<f;D++)this.chars[D].copy(_.chars[D])},c.isEmpty=function(){for(var _=!0,D=0;D<f;D++)if(!this.chars[D].isEmpty()){_=!1;break}return _},c.setCursor=function(_){this.pos!==_&&(this.pos=_),this.pos<0?(this.logger.log(u.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>f&&(this.logger.log(u.DEBUG,"Too large cursor position "+this.pos),this.pos=f)},c.moveCursor=function(_){var D=this.pos+_;if(_>1)for(var T=this.pos+1;T<D+1;T++)this.chars[T].setPenState(this.currPenState);this.setCursor(D)},c.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},c.insertChar=function(_){_>=144&&this.backSpace();var D=C(_);if(this.pos>=f){this.logger.log(u.ERROR,"Cannot insert "+_.toString(16)+" ("+D+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(D,this.currPenState),this.moveCursor(1)},c.clearFromPos=function(_){var D;for(D=_;D<f;D++)this.chars[D].reset()},c.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},c.clearToEndOfRow=function(){this.clearFromPos(this.pos)},c.getTextString=function(){for(var _=[],D=!0,T=0;T<f;T++){var O=this.chars[T].uchar;O!==" "&&(D=!1),_.push(O)}return D?"":_.join("")},c.setPenStyles=function(_){this.currPenState.setStyles(_);var D=this.chars[this.pos];D.setPenState(this.currPenState)},m}(),y=function(){function m(o){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var _=0;_<b;_++)this.rows.push(new h(o));this.logger=o,this.currRow=b-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var c=m.prototype;return c.reset=function(){for(var _=0;_<b;_++)this.rows[_].clear();this.currRow=b-1},c.equals=function(_){for(var D=!0,T=0;T<b;T++)if(!this.rows[T].equals(_.rows[T])){D=!1;break}return D},c.copy=function(_){for(var D=0;D<b;D++)this.rows[D].copy(_.rows[D])},c.isEmpty=function(){for(var _=!0,D=0;D<b;D++)if(!this.rows[D].isEmpty()){_=!1;break}return _},c.backSpace=function(){var _=this.rows[this.currRow];_.backSpace()},c.clearToEndOfRow=function(){var _=this.rows[this.currRow];_.clearToEndOfRow()},c.insertChar=function(_){var D=this.rows[this.currRow];D.insertChar(_)},c.setPen=function(_){var D=this.rows[this.currRow];D.setPenStyles(_)},c.moveCursor=function(_){var D=this.rows[this.currRow];D.moveCursor(_)},c.setCursor=function(_){this.logger.log(u.INFO,"setCursor: "+_);var D=this.rows[this.currRow];D.setCursor(_)},c.setPAC=function(_){this.logger.log(u.INFO,"pacData = "+JSON.stringify(_));var D=_.row-1;if(this.nrRollUpRows&&D<this.nrRollUpRows-1&&(D=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==D){for(var T=0;T<b;T++)this.rows[T].clear();var O=this.currRow+1-this.nrRollUpRows,R=this.lastOutputScreen;if(R){var U=R.rows[O].cueStartTime,F=this.logger.time;if(U&&F!==null&&U<F)for(var Y=0;Y<this.nrRollUpRows;Y++)this.rows[D-this.nrRollUpRows+Y+1].copy(R.rows[O+Y])}}this.currRow=D;var k=this.rows[this.currRow];if(_.indent!==null){var K=_.indent,z=Math.max(K-1,0);k.setCursor(_.indent),_.color=k.chars[z].penState.foreground}var j={foreground:_.color,underline:_.underline,italics:_.italics,background:"black",flash:!1};this.setPen(j)},c.setBkgData=function(_){this.logger.log(u.INFO,"bkgData = "+JSON.stringify(_)),this.backSpace(),this.setPen(_),this.insertChar(32)},c.setRollUpRows=function(_){this.nrRollUpRows=_},c.rollUp=function(){if(this.nrRollUpRows===null){this.logger.log(u.DEBUG,"roll_up but nrRollUpRows not set yet");return}this.logger.log(u.TEXT,this.getDisplayText());var _=this.currRow+1-this.nrRollUpRows,D=this.rows.splice(_,1)[0];D.clear(),this.rows.splice(this.currRow,0,D),this.logger.log(u.INFO,"Rolling up")},c.getDisplayText=function(_){_=_||!1;for(var D=[],T="",O=-1,R=0;R<b;R++){var U=this.rows[R].getTextString();U&&(O=R+1,_?D.push("Row "+O+": '"+U+"'"):D.push(U.trim()))}return D.length>0&&(_?T="["+D.join(" | ")+"]":T=D.join(`
`)),T},c.getTextAndFormat=function(){return this.rows},m}(),v=function(){function m(o,_,D){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=o,this.outputFilter=_,this.mode=null,this.verbose=0,this.displayedMemory=new y(D),this.nonDisplayedMemory=new y(D),this.lastOutputScreen=new y(D),this.currRollUpRow=this.displayedMemory.rows[b-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=D}var c=m.prototype;return c.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[b-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},c.getHandler=function(){return this.outputFilter},c.setHandler=function(_){this.outputFilter=_},c.setPAC=function(_){this.writeScreen.setPAC(_)},c.setBkgData=function(_){this.writeScreen.setBkgData(_)},c.setMode=function(_){if(_===this.mode)return;this.mode=_,this.logger.log(u.INFO,"MODE="+_),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=_},c.insertChars=function(_){for(var D=0;D<_.length;D++)this.writeScreen.insertChar(_[D]);var T=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(u.INFO,T+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(u.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},c.ccRCL=function(){this.logger.log(u.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},c.ccBS=function(){if(this.logger.log(u.INFO,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()},c.ccAOF=function(){},c.ccAON=function(){},c.ccDER=function(){this.logger.log(u.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},c.ccRU=function(_){this.logger.log(u.INFO,"RU("+_+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(_)},c.ccFON=function(){this.logger.log(u.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},c.ccRDC=function(){this.logger.log(u.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},c.ccTR=function(){this.logger.log(u.INFO,"TR"),this.setMode("MODE_TEXT")},c.ccRTD=function(){this.logger.log(u.INFO,"RTD"),this.setMode("MODE_TEXT")},c.ccEDM=function(){this.logger.log(u.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},c.ccCR=function(){this.logger.log(u.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},c.ccENM=function(){this.logger.log(u.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},c.ccEOC=function(){if(this.logger.log(u.INFO,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var _=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=_,this.writeScreen=this.nonDisplayedMemory,this.logger.log(u.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},c.ccTO=function(_){this.logger.log(u.INFO,"TO("+_+") - Tab Offset"),this.writeScreen.moveCursor(_)},c.ccMIDROW=function(_){var D={flash:!1};if(D.underline=_%2===1,D.italics=_>=46,D.italics)D.foreground="white";else{var T=Math.floor(_/2)-16,O=["white","green","blue","cyan","red","yellow","magenta"];D.foreground=O[T]}this.logger.log(u.INFO,"MIDROW: "+JSON.stringify(D)),this.writeScreen.setPen(D)},c.outputDataUpdate=function(_){_===void 0&&(_=!1);var D=this.logger.time;if(D===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=D:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,D,this.lastOutputScreen),_&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:D),this.lastOutputScreen.copy(this.displayedMemory))},c.cueSplitAtTime=function(_){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,_,this.displayedMemory),this.cueStartTime=_))},m}(),x=function(){function m(o,_,D){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var T=new a;this.channels=[null,new v(o,_,T),new v(o+1,D,T)],this.cmdHistory=w(),this.logger=T}var c=m.prototype;return c.getHandler=function(_){return this.channels[_].getHandler()},c.setHandler=function(_,D){this.channels[_].setHandler(D)},c.addData=function(_,D){var T,O,R,U=!1;this.logger.time=_;for(var F=0;F<D.length;F+=2){if(O=D[F]&127,R=D[F+1]&127,O===0&&R===0)continue;if(this.logger.log(u.DATA,"["+A([D[F],D[F+1]])+"] -> ("+A([O,R])+")"),T=this.parseCmd(O,R),T||(T=this.parseMidrow(O,R)),T||(T=this.parsePAC(O,R)),T||(T=this.parseBackgroundAttributes(O,R)),!T&&(U=this.parseChars(O,R),U)){var Y=this.currentChannel;if(Y&&Y>0){var k=this.channels[Y];k.insertChars(U)}else this.logger.log(u.WARNING,"No channel found yet. TEXT-MODE?")}!T&&!U&&this.logger.log(u.WARNING,"Couldn't parse cleaned data "+A([O,R])+" orig: "+A([D[F],D[F+1]]))}},c.parseCmd=function(_,D){var T=this.cmdHistory,O=(_===20||_===28||_===21||_===29)&&D>=32&&D<=47,R=(_===23||_===31)&&D>=33&&D<=35;if(!(O||R))return!1;if(B(_,D,T))return S(null,null,T),this.logger.log(u.DEBUG,"Repeated command ("+A([_,D])+") is dropped"),!0;var U=_===20||_===21||_===23?1:2,F=this.channels[U];return _===20||_===21||_===28||_===29?D===32?F.ccRCL():D===33?F.ccBS():D===34?F.ccAOF():D===35?F.ccAON():D===36?F.ccDER():D===37?F.ccRU(2):D===38?F.ccRU(3):D===39?F.ccRU(4):D===40?F.ccFON():D===41?F.ccRDC():D===42?F.ccTR():D===43?F.ccRTD():D===44?F.ccEDM():D===45?F.ccCR():D===46?F.ccENM():D===47&&F.ccEOC():F.ccTO(D-32),S(_,D,T),this.currentChannel=U,!0},c.parseMidrow=function(_,D){var T=0;if((_===17||_===25)&&D>=32&&D<=47){if(_===17?T=1:T=2,T!==this.currentChannel)return this.logger.log(u.ERROR,"Mismatch channel in midrow parsing"),!1;var O=this.channels[T];return O?(O.ccMIDROW(D),this.logger.log(u.DEBUG,"MIDROW ("+A([_,D])+")"),!0):!1}return!1},c.parsePAC=function(_,D){var T,O=this.cmdHistory,R=(_>=17&&_<=23||_>=25&&_<=31)&&D>=64&&D<=127,U=(_===16||_===24)&&D>=64&&D<=95;if(!(R||U))return!1;if(B(_,D,O))return S(null,null,O),!0;var F=_<=23?1:2;D>=64&&D<=95?T=F===1?l[_]:n[_]:T=F===1?r[_]:e[_];var Y=this.channels[F];return Y?(Y.setPAC(this.interpretPAC(T,D)),S(_,D,O),this.currentChannel=F,!0):!1},c.interpretPAC=function(_,D){var T,O={color:null,italics:!1,indent:null,underline:!1,row:_};return D>95?T=D-96:T=D-64,O.underline=(T&1)===1,T<=13?O.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(T/2)]:T<=15?(O.italics=!0,O.color="white"):O.indent=Math.floor((T-16)/2)*4,O},c.parseChars=function(_,D){var T,O=null,R=null;if(_>=25?(T=2,R=_-8):(T=1,R=_),R>=17&&R<=19){var U;R===17?U=D+80:R===18?U=D+112:U=D+144,this.logger.log(u.INFO,"Special char '"+C(U)+"' in channel "+T),O=[U]}else _>=32&&_<=127&&(O=D===0?[_]:[_,D]);if(O){var F=A(O);this.logger.log(u.DEBUG,"Char codes = "+F.join(",")),S(_,D,this.cmdHistory)}return O},c.parseBackgroundAttributes=function(_,D){var T=(_===16||_===24)&&D>=32&&D<=47,O=(_===23||_===31)&&D>=45&&D<=47;if(!(T||O))return!1;var R,U={};_===16||_===24?(R=Math.floor((D-32)/2),U.background=s[R],D%2===1&&(U.background=U.background+"_semi")):D===45?U.background="transparent":(U.foreground="black",D===47&&(U.underline=!0));var F=_<=23?1:2,Y=this.channels[F];return Y.setBkgData(U),S(_,D,this.cmdHistory),!0},c.reset=function(){for(var _=0;_<Object.keys(this.channels).length;_++){var D=this.channels[_];D&&D.reset()}this.cmdHistory=w()},c.cueSplitAtTime=function(_){for(var D=0;D<this.channels.length;D++){var T=this.channels[D];T&&T.cueSplitAtTime(_)}},m}();function S(m,c,o){o.a=m,o.b=c}function B(m,c,o){return o.a===m&&o.b===c}function w(){return{a:null,b:null}}V.default=x},"./src/utils/codecs.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"isCodecType",function(){return E}),M.d(V,"isCodecSupportedInMp4",function(){return C});var p={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 E(b,f){var l=p[f];return!!l&&l[b.slice(0,4)]===!0}function C(b,f){return MediaSource.isTypeSupported((f||"video")+'/mp4;codecs="'+b+'"')}},"./src/utils/cues.ts":function(ae,V,M){"use strict";M.r(V);var p=M("./src/utils/vttparser.ts"),E=M("./src/utils/webvtt-parser.ts"),C=M("./src/utils/texttrack-utils.ts"),b=/\s/,f={newCue:function(r,n,e,s){for(var u=[],a,A,d,i,h,y=self.VTTCue||self.TextTrackCue,v=0;v<s.rows.length;v++)if(a=s.rows[v],d=!0,i=0,h="",!a.isEmpty()){for(var x=0;x<a.chars.length;x++)b.test(a.chars[x].uchar)&&d?i++:(h+=a.chars[x].uchar,d=!1);a.cueStartTime=n,n===e&&(e+=1e-4),i>=16?i--:i++;var S=Object(p.fixLineBreaks)(h.trim()),B=Object(E.generateCueId)(n,e,S);(!r||!r.cues||!r.cues.getCueById(B))&&(A=new y(n,e,S),A.id=B,A.line=v+1,A.align="left",A.position=10+Math.min(80,Math.floor(i*8/32)*10),u.push(A))}return r&&u.length&&(u.sort(function(w,m){return w.line==="auto"||m.line==="auto"?0:w.line>8&&m.line>8?m.line-w.line:w.line-m.line}),u.forEach(function(w){return Object(C.addCueToTrack)(r,w)})),u}};V.default=f},"./src/utils/discontinuities.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"findFirstFragWithCC",function(){return b}),M.d(V,"shouldAlignOnDiscontinuities",function(){return f}),M.d(V,"findDiscontinuousReferenceFrag",function(){return l}),M.d(V,"adjustSlidingStart",function(){return n}),M.d(V,"alignStream",function(){return e}),M.d(V,"alignPDT",function(){return u}),M.d(V,"alignFragmentByPDTDelta",function(){return a}),M.d(V,"alignMediaPlaylistByPDT",function(){return A});var p=M("./src/polyfills/number.ts"),E=M("./src/utils/logger.ts"),C=M("./src/controller/level-helper.ts");function b(d,i){for(var h=null,y=0,v=d.length;y<v;y++){var x=d[y];if(x&&x.cc===i){h=x;break}}return h}function f(d,i,h){return!!(i.details&&(h.endCC>h.startCC||d&&d.cc<h.startCC))}function l(d,i){var h=d.fragments,y=i.fragments;if(!y.length||!h.length){E.logger.log("No fragments to align");return}var v=b(h,y[0].cc);if(!v||v&&!v.startPTS){E.logger.log("No frag in previous level to align on");return}return v}function r(d,i){if(d){var h=d.start+i;d.start=d.startPTS=h,d.endPTS=h+d.duration}}function n(d,i){for(var h=i.fragments,y=0,v=h.length;y<v;y++)r(h[y],d);i.fragmentHint&&r(i.fragmentHint,d),i.alignedSliding=!0}function e(d,i,h){if(!i)return;s(d,h,i),!h.alignedSliding&&i.details&&u(h,i.details),!h.alignedSliding&&i.details&&!h.skippedSegments&&Object(C.adjustSliding)(i.details,h)}function s(d,i,h){if(f(d,h,i)){var y=l(h.details,i);y&&Object(p.isFiniteNumber)(y.start)&&(E.logger.log("Adjusting PTS using last level due to CC increase within current level "+i.url),n(y.start,i))}}function u(d,i){if(!i.fragments.length||!d.hasProgramDateTime||!i.hasProgramDateTime)return;var h=i.fragments[0].programDateTime,y=d.fragments[0].programDateTime,v=(y-h)/1e3+i.fragments[0].start;v&&Object(p.isFiniteNumber)(v)&&(E.logger.log("Adjusting PTS using programDateTime delta "+(y-h)+"ms, sliding:"+v.toFixed(3)+" "+d.url+" "),n(v,d))}function a(d,i){var h=d.programDateTime;if(!h)return;var y=(h-i)/1e3;d.start=d.startPTS=y,d.endPTS=y+d.duration}function A(d,i){if(!i.fragments.length||!d.hasProgramDateTime||!i.hasProgramDateTime)return;var h=i.fragments[0].programDateTime,y=i.fragments[0].start,v=h-y*1e3;d.fragments.forEach(function(x){a(x,v)}),d.fragmentHint&&a(d.fragmentHint,v),d.alignedSliding=!0}},"./src/utils/ewma-bandwidth-estimator.ts":function(ae,V,M){"use strict";M.r(V);var p=M("./src/utils/ewma.ts"),E=function(){function C(f,l,r){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultEstimate_=r,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new p.default(f),this.fast_=new p.default(l)}var b=C.prototype;return b.update=function(l,r){var n=this.slow_,e=this.fast_;this.slow_.halfLife!==l&&(this.slow_=new p.default(l,n.getEstimate(),n.getTotalWeight())),this.fast_.halfLife!==r&&(this.fast_=new p.default(r,e.getEstimate(),e.getTotalWeight()))},b.sample=function(l,r){l=Math.max(l,this.minDelayMs_);var n=8*r,e=l/1e3,s=n/e;this.fast_.sample(e,s),this.slow_.sample(e,s)},b.canEstimate=function(){var l=this.fast_;return l&&l.getTotalWeight()>=this.minWeight_},b.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},b.destroy=function(){},C}();V.default=E},"./src/utils/ewma.ts":function(ae,V,M){"use strict";M.r(V);var p=function(){function E(b,f,l){f===void 0&&(f=0),l===void 0&&(l=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=b,this.alpha_=b?Math.exp(Math.log(.5)/b):0,this.estimate_=f,this.totalWeight_=l}var C=E.prototype;return C.sample=function(f,l){var r=Math.pow(this.alpha_,f);this.estimate_=l*(1-r)+r*this.estimate_,this.totalWeight_+=f},C.getTotalWeight=function(){return this.totalWeight_},C.getEstimate=function(){if(this.alpha_){var f=1-Math.pow(this.alpha_,this.totalWeight_);if(f)return this.estimate_/f}return this.estimate_},E}();V.default=p},"./src/utils/fetch-loader.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"fetchSupported",function(){return a});var p=M("./src/polyfills/number.ts"),E=M("./src/loader/load-stats.ts"),C=M("./src/demux/chunk-cache.ts");function b(y,v){y.prototype=Object.create(v.prototype),y.prototype.constructor=y,e(y,v)}function f(y){var v=typeof Map=="function"?new Map:void 0;return f=function(S){if(S===null||!n(S))return S;if(typeof S!="function")throw new TypeError("Super expression must either be null or a function");if(typeof v!="undefined"){if(v.has(S))return v.get(S);v.set(S,B)}function B(){return l(S,arguments,s(this).constructor)}return B.prototype=Object.create(S.prototype,{constructor:{value:B,enumerable:!1,writable:!0,configurable:!0}}),e(B,S)},f(y)}function l(y,v,x){return r()?l=Reflect.construct:l=function(B,w,m){var c=[null];c.push.apply(c,w);var o=Function.bind.apply(B,c),_=new o;return m&&e(_,m.prototype),_},l.apply(null,arguments)}function r(){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(y){return!1}}function n(y){return Function.toString.call(y).indexOf("[native code]")!==-1}function e(y,v){return e=Object.setPrototypeOf||function(S,B){return S.__proto__=B,S},e(y,v)}function s(y){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(x){return x.__proto__||Object.getPrototypeOf(x)},s(y)}function u(){return u=Object.assign||function(y){for(var v=1;v<arguments.length;v++){var x=arguments[v];for(var S in x)Object.prototype.hasOwnProperty.call(x,S)&&(y[S]=x[S])}return y},u.apply(this,arguments)}function a(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(y){}return!1}var A=function(){function y(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||i,this.controller=new self.AbortController,this.stats=new E.LoadStats}var v=y.prototype;return v.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},v.abortInternal=function(){var S=this.response;(!S||!S.ok)&&(this.stats.aborted=!0,this.controller.abort())},v.abort=function(){var S;this.abortInternal(),(S=this.callbacks)!==null&&S!==void 0&&S.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},v.load=function(S,B,w){var m=this,c=this.stats;if(c.loading.start)throw new Error("Loader can only be used once.");c.loading.start=self.performance.now();var o=d(S,this.controller.signal),_=w.onProgress,D=S.responseType==="arraybuffer",T=D?"byteLength":"length";this.context=S,this.config=B,this.callbacks=w,this.request=this.fetchSetup(S,o),self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(function(){m.abortInternal(),w.onTimeout(c,S,m.response)},B.timeout),self.fetch(this.request).then(function(O){if(m.response=m.loader=O,!O.ok){var R=O.status,U=O.statusText;throw new h(U||"fetch, bad network response",R,O)}return c.loading.first=Math.max(self.performance.now(),c.loading.start),c.total=parseInt(O.headers.get("Content-Length")||"0"),_&&Object(p.isFiniteNumber)(B.highWaterMark)?m.loadProgressively(O,c,S,B.highWaterMark,_):D?O.arrayBuffer():O.text()}).then(function(O){var R=m.response;self.clearTimeout(m.requestTimeout),c.loading.end=Math.max(self.performance.now(),c.loading.first),c.loaded=c.total=O[T];var U={url:R.url,data:O};_&&!Object(p.isFiniteNumber)(B.highWaterMark)&&_(c,S,O,R),w.onSuccess(U,c,S,R)}).catch(function(O){if(self.clearTimeout(m.requestTimeout),c.aborted)return;var R=O.code||0;w.onError({code:R,text:O.message},S,O.details)})},v.getCacheAge=function(){var S=null;if(this.response){var B=this.response.headers.get("age");S=B?parseFloat(B):null}return S},v.loadProgressively=function(S,B,w,m,c){m===void 0&&(m=0);var o=new C.default,_=S.body.getReader(),D=function T(){return _.read().then(function(O){if(O.done)return o.dataLength&&c(B,w,o.flush(),S),Promise.resolve(new ArrayBuffer(0));var R=O.value,U=R.length;return B.loaded+=U,U<m||o.dataLength?(o.push(R),o.dataLength>=m&&c(B,w,o.flush(),S)):c(B,w,R,S),T()}).catch(function(){return Promise.reject()})};return D()},y}();function d(y,v){var x={method:"GET",mode:"cors",credentials:"same-origin",signal:v,headers:new self.Headers(u({},y.headers))};return y.rangeEnd&&x.headers.set("Range","bytes="+y.rangeStart+"-"+String(y.rangeEnd-1)),x}function i(y,v){return new self.Request(y.url,v)}var h=function(y){b(v,y);function v(x,S,B){var w;return w=y.call(this,x)||this,w.code=void 0,w.details=void 0,w.code=S,w.details=B,w}return v}(f(Error));V.default=A},"./src/utils/imsc1-ttml-parser.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"IMSC1_CODEC",function(){return n}),M.d(V,"parseIMSC1",function(){return a});var p=M("./src/utils/mp4-tools.ts"),E=M("./src/utils/vttparser.ts"),C=M("./src/utils/vttcue.ts"),b=M("./src/demux/id3.ts"),f=M("./src/utils/timescale-conversion.ts"),l=M("./src/utils/webvtt-parser.ts");function r(){return r=Object.assign||function(m){for(var c=1;c<arguments.length;c++){var o=arguments[c];for(var _ in o)Object.prototype.hasOwnProperty.call(o,_)&&(m[_]=o[_])}return m},r.apply(this,arguments)}var n="stpp.ttml.im1t",e=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,s=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,u={left:"start",center:"center",right:"end",start:"start",end:"end"};function a(m,c,o,_,D){var T=Object(p.findBox)(new Uint8Array(m),["mdat"]);if(T.length===0){D(new Error("Could not parse IMSC1 mdat"));return}var O=T[0],R=Object(b.utf8ArrayToStr)(new Uint8Array(m,O.start,O.end-O.start)),U=Object(f.toTimescaleFromScale)(c,1,o);try{_(A(R,U))}catch(F){D(F)}}function A(m,c){var o=new DOMParser,_=o.parseFromString(m,"text/xml"),D=_.getElementsByTagName("tt")[0];if(!D)throw new Error("Invalid ttml");var T={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},O=Object.keys(T).reduce(function(k,K){return k[K]=D.getAttribute("ttp:"+K)||T[K],k},{}),R=D.getAttribute("xml:space")!=="preserve",U=i(d(D,"styling","style")),F=i(d(D,"layout","region")),Y=d(D,"body","[begin]");return[].map.call(Y,function(k){var K=h(k,R);if(!K||!k.hasAttribute("begin"))return null;var z=S(k.getAttribute("begin"),O),j=S(k.getAttribute("dur"),O),Q=S(k.getAttribute("end"),O);if(z===null)throw x(k);if(Q===null){if(j===null)throw x(k);Q=z+j}var X=new C.default(z-c,Q-c,K);X.id=Object(l.generateCueId)(X.startTime,X.endTime,X.text);var te=F[k.getAttribute("region")],oe=U[k.getAttribute("style")];X.position=10,X.size=80;var fe=y(te,oe),le=fe.textAlign;if(le){var we=u[le];we&&(X.lineAlign=we),X.align=le}return r(X,fe),X}).filter(function(k){return k!==null})}function d(m,c,o){var _=m.getElementsByTagName(c)[0];return _?[].slice.call(_.querySelectorAll(o)):[]}function i(m){return m.reduce(function(c,o){var _=o.getAttribute("xml:id");return _&&(c[_]=o),c},{})}function h(m,c){return[].slice.call(m.childNodes).reduce(function(o,_,D){var T;return _.nodeName==="br"&&D?o+`
`:(T=_.childNodes)!==null&&T!==void 0&&T.length?h(_,c):c?o+_.textContent.trim().replace(/\s+/g," "):o+_.textContent},"")}function y(m,c){var o="http://www.w3.org/ns/ttml#styling",_=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"];return _.reduce(function(D,T){var O=v(c,o,T)||v(m,o,T);return O&&(D[T]=O),D},{})}function v(m,c,o){return m.hasAttributeNS(c,o)?m.getAttributeNS(c,o):null}function x(m){return new Error("Could not parse ttml timestamp "+m)}function S(m,c){if(!m)return null;var o=Object(E.parseTimeStamp)(m);return o===null&&(e.test(m)?o=B(m,c):s.test(m)&&(o=w(m,c))),o}function B(m,c){var o=e.exec(m),_=(o[4]|0)+(o[5]|0)/c.subFrameRate;return(o[1]|0)*3600+(o[2]|0)*60+(o[3]|0)+_/c.frameRate}function w(m,c){var o=s.exec(m),_=Number(o[1]),D=o[2];switch(D){case"h":return _*3600;case"m":return _*60;case"ms":return _*1e3;case"f":return _/c.frameRate;case"t":return _/c.tickRate}return _}},"./src/utils/logger.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"enableLogs",function(){return l}),M.d(V,"logger",function(){return r});var p=function(){},E={trace:p,debug:p,log:p,warn:p,info:p,error:p},C=E;function b(n){var e=self.console[n];return e?e.bind(self.console,"["+n+"] >"):p}function f(n){for(var e=arguments.length,s=new Array(e>1?e-1:0),u=1;u<e;u++)s[u-1]=arguments[u];s.forEach(function(a){C[a]=n[a]?n[a].bind(n):b(a)})}function l(n){if(self.console&&n===!0||typeof n=="object"){f(n,"debug","log","info","warn","error");try{C.log()}catch(e){C=E}}else C=E}var r=C},"./src/utils/mediakeys-helper.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"KeySystems",function(){return p}),M.d(V,"requestMediaKeySystemAccess",function(){return E});var p;(function(C){C.WIDEVINE="com.widevine.alpha",C.PLAYREADY="com.microsoft.playready"})(p||(p={}));var E=function(){return typeof self!="undefined"&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}()},"./src/utils/mediasource-helper.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"getMediaSource",function(){return p});function p(){return self.MediaSource||self.WebKitMediaSource}},"./src/utils/mp4-tools.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"bin2str",function(){return f}),M.d(V,"readUint16",function(){return l}),M.d(V,"readUint32",function(){return r}),M.d(V,"writeUint32",function(){return n}),M.d(V,"findBox",function(){return e}),M.d(V,"parseSegmentIndex",function(){return s}),M.d(V,"parseInitSegment",function(){return u}),M.d(V,"getStartDTS",function(){return a}),M.d(V,"getDuration",function(){return A}),M.d(V,"computeRawDurationFromSamples",function(){return d}),M.d(V,"offsetStartDTS",function(){return i}),M.d(V,"segmentValidRange",function(){return h}),M.d(V,"appendUint8Array",function(){return y});var p=M("./src/utils/typed-array.ts"),E=M("./src/loader/fragment.ts"),C=Math.pow(2,32)-1,b=[].push;function f(v){return String.fromCharCode.apply(null,v)}function l(v,x){"data"in v&&(x+=v.start,v=v.data);var S=v[x]<<8|v[x+1];return S<0?65536+S:S}function r(v,x){"data"in v&&(x+=v.start,v=v.data);var S=v[x]<<24|v[x+1]<<16|v[x+2]<<8|v[x+3];return S<0?4294967296+S:S}function n(v,x,S){"data"in v&&(x+=v.start,v=v.data),v[x]=S>>24,v[x+1]=S>>16&255,v[x+2]=S>>8&255,v[x+3]=S&255}function e(v,x){var S=[];if(!x.length)return S;var B,w,m;"data"in v?(B=v.data,w=v.start,m=v.end):(B=v,w=0,m=B.byteLength);for(var c=w;c<m;){var o=r(B,c),_=f(B.subarray(c+4,c+8)),D=o>1?c+o:m;if(_===x[0])if(x.length===1)S.push({data:B,start:c+8,end:D});else{var T=e({data:B,start:c+8,end:D},x.slice(1));T.length&&b.apply(S,T)}c=D}return S}function s(v){var x=e(v,["moov"]),S=x[0],B=S?S.end:null,w=e(v,["sidx"]);if(!w||!w[0])return null;var m=[],c=w[0],o=c.data[0],_=o===0?8:16,D=r(c,_);_+=4;var T=0,O=0;o===0?_+=8:_+=16,_+=2;var R=c.end+O,U=l(c,_);_+=2;for(var F=0;F<U;F++){var Y=_,k=r(c,Y);Y+=4;var K=k&2147483647,z=(k&2147483648)>>>31;if(z===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var j=r(c,Y);Y+=4,m.push({referenceSize:K,subsegmentDuration:j,info:{duration:j/D,start:R,end:R+K-1}}),R+=K,Y+=4,_=Y}return{earliestPresentationTime:T,timescale:D,version:o,referencesCount:U,references:m,moovEndOffset:B}}function u(v){for(var x=[],S=e(v,["moov","trak"]),B=0;B<S.length;B++){var w=S[B],m=e(w,["tkhd"])[0];if(m){var c=m.data[m.start],o=c===0?12:20,_=r(m,o),D=e(w,["mdia","mdhd"])[0];if(D){c=D.data[D.start],o=c===0?12:20;var T=r(D,o),O=e(w,["mdia","hdlr"])[0];if(O){var R=f(O.data.subarray(O.start+8,O.start+12)),U={soun:E.ElementaryStreamTypes.AUDIO,vide:E.ElementaryStreamTypes.VIDEO}[R];if(U){var F=e(w,["mdia","minf","stbl","stsd"])[0],Y=void 0;F&&(Y=f(F.data.subarray(F.start+12,F.start+16))),x[_]={timescale:T,type:U},x[U]={timescale:T,id:_,codec:Y}}}}}}var k=e(v,["moov","mvex","trex"]);return k.forEach(function(K){var z=r(K,4),j=x[z];j&&(j.default={duration:r(K,12),flags:r(K,20)})}),x}function a(v,x){return e(x,["moof","traf"]).reduce(function(S,B){var w=e(B,["tfdt"])[0],m=w.data[w.start],c=e(B,["tfhd"]).reduce(function(o,_){var D=r(_,4),T=v[D];if(T){var O=r(w,4);m===1&&(O*=Math.pow(2,32),O+=r(w,8));var R=T.timescale||9e4,U=O/R;if(isFinite(U)&&(o===null||U<o))return U}return o},null);return c!==null&&isFinite(c)&&(S===null||c<S)?c:S},null)||0}function A(v,x){for(var S=0,B=0,w=0,m=e(v,["moof","traf"]),c=0;c<m.length;c++){var o=m[c],_=e(o,["tfhd"])[0],D=r(_,4),T=x[D];if(!T)continue;var O=T.default,R=r(_,0)|(O==null?void 0:O.flags),U=O==null?void 0:O.duration;R&8&&(R&2?U=r(_,12):U=r(_,8));for(var F=T.timescale||9e4,Y=e(o,["trun"]),k=0;k<Y.length;k++){if(U){var K=r(Y[k],4);S=U*K}else S=d(Y[k]);T.type===E.ElementaryStreamTypes.VIDEO?B+=S/F:T.type===E.ElementaryStreamTypes.AUDIO&&(w+=S/F)}}if(B===0&&w===0){var z=s(v);if(z!=null&&z.references)return z.references.reduce(function(j,Q){return j+Q.info.duration||0},0)}return B||w}function d(v){var x=r(v,0),S=8;x&1&&(S+=4),x&4&&(S+=4);for(var B=0,w=r(v,4),m=0;m<w;m++){if(x&256){var c=r(v,S);B+=c,S+=4}x&512&&(S+=4),x&1024&&(S+=4),x&2048&&(S+=4)}return B}function i(v,x,S){e(x,["moof","traf"]).forEach(function(B){e(B,["tfhd"]).forEach(function(w){var m=r(w,4),c=v[m];if(!c)return;var o=c.timescale||9e4;e(B,["tfdt"]).forEach(function(_){var D=_.data[_.start],T=r(_,4);if(D===0)n(_,4,T-S*o);else{T*=Math.pow(2,32),T+=r(_,8),T-=S*o,T=Math.max(T,0);var O=Math.floor(T/(C+1)),R=Math.floor(T%(C+1));n(_,4,O),n(_,8,R)}})})})}function h(v){var x={valid:null,remainder:null},S=e(v,["moof"]);if(S){if(S.length<2)return x.remainder=v,x}else return x;var B=S[S.length-1];return x.valid=Object(p.sliceUint8)(v,0,B.start-8),x.remainder=Object(p.sliceUint8)(v,B.start-8),x}function y(v,x){var S=new Uint8Array(v.length+x.length);return S.set(v),S.set(x,v.length),S}},"./src/utils/output-filter.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"default",function(){return p});var p=function(){function E(b,f){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=b,this.trackName=f}var C=E.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(f,l,r){(this.startTime===null||this.startTime>f)&&(this.startTime=f),this.endTime=l,this.screen=r,this.timelineController.createCaptionsTrack(this.trackName)},C.reset=function(){this.cueRanges=[]},E}()},"./src/utils/texttrack-utils.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"sendAddTrackEvent",function(){return E}),M.d(V,"addCueToTrack",function(){return C}),M.d(V,"clearCurrentCues",function(){return b}),M.d(V,"removeCuesInRange",function(){return f}),M.d(V,"getCuesInRange",function(){return r});var p=M("./src/utils/logger.ts");function E(n,e){var s;try{s=new Event("addtrack")}catch(u){s=document.createEvent("Event"),s.initEvent("addtrack",!1,!1)}s.track=n,e.dispatchEvent(s)}function C(n,e){var s=n.mode;if(s==="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(a){p.logger.debug("[texttrack-utils]: "+a);var u=new self.TextTrackCue(e.startTime,e.endTime,e.text);u.id=e.id,n.addCue(u)}s==="disabled"&&(n.mode=s)}function b(n){var e=n.mode;if(e==="disabled"&&(n.mode="hidden"),n.cues)for(var s=n.cues.length;s--;)n.removeCue(n.cues[s]);e==="disabled"&&(n.mode=e)}function f(n,e,s){var u=n.mode;if(u==="disabled"&&(n.mode="hidden"),n.cues&&n.cues.length>0)for(var a=r(n.cues,e,s),A=0;A<a.length;A++)n.removeCue(a[A]);u==="disabled"&&(n.mode=u)}function l(n,e){if(e<n[0].startTime)return 0;var s=n.length-1;if(e>n[s].endTime)return-1;for(var u=0,a=s;u<=a;){var A=Math.floor((a+u)/2);if(e<n[A].startTime)a=A-1;else if(e>n[A].startTime&&u<s)u=A+1;else return A}return n[u].startTime-e<e-n[a].startTime?u:a}function r(n,e,s){var u=[],a=l(n,e);if(a>-1)for(var A=a,d=n.length;A<d;A++){var i=n[A];if(i.startTime>=e&&i.endTime<=s)u.push(i);else if(i.startTime>s)return u}return u}},"./src/utils/time-ranges.ts":function(ae,V,M){"use strict";M.r(V);var p={toString:function(C){for(var b="",f=C.length,l=0;l<f;l++)b+="["+C.start(l).toFixed(3)+","+C.end(l).toFixed(3)+"]";return b}};V.default=p},"./src/utils/timescale-conversion.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"toTimescaleFromBase",function(){return E}),M.d(V,"toTimescaleFromScale",function(){return C}),M.d(V,"toMsFromMpegTsClock",function(){return b}),M.d(V,"toMpegTsClockFromTimescale",function(){return f});var p=9e4;function E(l,r,n,e){n===void 0&&(n=1),e===void 0&&(e=!1);var s=l*r*n;return e?Math.round(s):s}function C(l,r,n,e){return n===void 0&&(n=1),e===void 0&&(e=!1),E(l,r,1/n,e)}function b(l,r){return r===void 0&&(r=!1),E(l,1e3,1/p,r)}function f(l,r){return r===void 0&&(r=1),E(l,p,1/r)}},"./src/utils/typed-array.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"sliceUint8",function(){return p});function p(E,C,b){return Uint8Array.prototype.slice?E.slice(C,b):new Uint8Array(Array.prototype.slice.call(E,C,b))}},"./src/utils/vttcue.ts":function(ae,V,M){"use strict";M.r(V),V.default=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var p=["","lr","rl"],E=["start","middle","end","left","right"];function C(n,e){if(typeof e!="string")return!1;if(!Array.isArray(n))return!1;var s=e.toLowerCase();return~n.indexOf(s)?s:!1}function b(n){return C(p,n)}function f(n){return C(E,n)}function l(n){for(var e=arguments.length,s=new Array(e>1?e-1:0),u=1;u<e;u++)s[u-1]=arguments[u];for(var a=1;a<arguments.length;a++){var A=arguments[a];for(var d in A)n[d]=A[d]}return n}function r(n,e,s){var u=this,a={enumerable:!0};u.hasBeenReset=!1;var A="",d=!1,i=n,h=e,y=s,v=null,x="",S=!0,B="auto",w="start",m=50,c="middle",o=50,_="middle";Object.defineProperty(u,"id",l({},a,{get:function(){return A},set:function(T){A=""+T}})),Object.defineProperty(u,"pauseOnExit",l({},a,{get:function(){return d},set:function(T){d=!!T}})),Object.defineProperty(u,"startTime",l({},a,{get:function(){return i},set:function(T){if(typeof T!="number")throw new TypeError("Start time must be set to a number.");i=T,this.hasBeenReset=!0}})),Object.defineProperty(u,"endTime",l({},a,{get:function(){return h},set:function(T){if(typeof T!="number")throw new TypeError("End time must be set to a number.");h=T,this.hasBeenReset=!0}})),Object.defineProperty(u,"text",l({},a,{get:function(){return y},set:function(T){y=""+T,this.hasBeenReset=!0}})),Object.defineProperty(u,"region",l({},a,{get:function(){return v},set:function(T){v=T,this.hasBeenReset=!0}})),Object.defineProperty(u,"vertical",l({},a,{get:function(){return x},set:function(T){var O=b(T);if(O===!1)throw new SyntaxError("An invalid or illegal string was specified.");x=O,this.hasBeenReset=!0}})),Object.defineProperty(u,"snapToLines",l({},a,{get:function(){return S},set:function(T){S=!!T,this.hasBeenReset=!0}})),Object.defineProperty(u,"line",l({},a,{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(u,"lineAlign",l({},a,{get:function(){return w},set:function(T){var O=f(T);if(!O)throw new SyntaxError("An invalid or illegal string was specified.");w=O,this.hasBeenReset=!0}})),Object.defineProperty(u,"position",l({},a,{get:function(){return m},set:function(T){if(T<0||T>100)throw new Error("Position must be between 0 and 100.");m=T,this.hasBeenReset=!0}})),Object.defineProperty(u,"positionAlign",l({},a,{get:function(){return c},set:function(T){var O=f(T);if(!O)throw new SyntaxError("An invalid or illegal string was specified.");c=O,this.hasBeenReset=!0}})),Object.defineProperty(u,"size",l({},a,{get:function(){return o},set:function(T){if(T<0||T>100)throw new Error("Size must be between 0 and 100.");o=T,this.hasBeenReset=!0}})),Object.defineProperty(u,"align",l({},a,{get:function(){return _},set:function(T){var O=f(T);if(!O)throw new SyntaxError("An invalid or illegal string was specified.");_=O,this.hasBeenReset=!0}})),u.displayState=void 0}return r.prototype.getCueAsHTML=function(){var n=self.WebVTT;return n.convertCueToDOMTree(self,this.text)},r}()},"./src/utils/vttparser.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"parseTimeStamp",function(){return C}),M.d(V,"fixLineBreaks",function(){return e}),M.d(V,"VTTParser",function(){return s});var p=M("./src/utils/vttcue.ts"),E=function(){function u(){}var a=u.prototype;return a.decode=function(d,i){if(!d)return"";if(typeof d!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(d))},u}();function C(u){function a(d,i,h,y){return(d|0)*3600+(i|0)*60+(h|0)+parseFloat(y||0)}var A=u.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return A?parseFloat(A[2])>59?a(A[2],A[3],0,A[4]):a(A[1],A[2],A[3],A[4]):null}var b=function(){function u(){this.values=Object.create(null)}var a=u.prototype;return a.set=function(d,i){!this.get(d)&&i!==""&&(this.values[d]=i)},a.get=function(d,i,h){return h?this.has(d)?this.values[d]:i[h]:this.has(d)?this.values[d]:i},a.has=function(d){return d in this.values},a.alt=function(d,i,h){for(var y=0;y<h.length;++y)if(i===h[y]){this.set(d,i);break}},a.integer=function(d,i){/^-?\d+$/.test(i)&&this.set(d,parseInt(i,10))},a.percent=function(d,i){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(i)){var h=parseFloat(i);if(h>=0&&h<=100)return this.set(d,h),!0}return!1},u}();function f(u,a,A,d){var i=d?u.split(d):[u];for(var h in i){if(typeof i[h]!="string")continue;var y=i[h].split(A);if(y.length!==2)continue;var v=y[0],x=y[1];a(v,x)}}var l=new p.default(0,0,""),r=l.align==="middle"?"middle":"center";function n(u,a,A){var d=u;function i(){var v=C(u);if(v===null)throw new Error("Malformed timestamp: "+d);return u=u.replace(/^[^\sa-zA-Z-]+/,""),v}function h(v,x){var S=new b;f(v,function(m,c){var o;switch(m){case"region":for(var _=A.length-1;_>=0;_--)if(A[_].id===c){S.set(m,A[_].region);break}break;case"vertical":S.alt(m,c,["rl","lr"]);break;case"line":o=c.split(","),S.integer(m,o[0]),S.percent(m,o[0])&&S.set("snapToLines",!1),S.alt(m,o[0],["auto"]),o.length===2&&S.alt("lineAlign",o[1],["start",r,"end"]);break;case"position":o=c.split(","),S.percent(m,o[0]),o.length===2&&S.alt("positionAlign",o[1],["start",r,"end","line-left","line-right","auto"]);break;case"size":S.percent(m,c);break;case"align":S.alt(m,c,["start",r,"end","left","right"]);break}},/:/,/\s/),x.region=S.get("region",null),x.vertical=S.get("vertical","");var B=S.get("line","auto");B==="auto"&&l.line===-1&&(B=-1),x.line=B,x.lineAlign=S.get("lineAlign","start"),x.snapToLines=S.get("snapToLines",!0),x.size=S.get("size",100),x.align=S.get("align",r);var w=S.get("position","auto");w==="auto"&&l.position===50&&(w=x.align==="start"||x.align==="left"?0:x.align==="end"||x.align==="right"?100:50),x.position=w}function y(){u=u.replace(/^\s+/,"")}if(y(),a.startTime=i(),y(),u.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+d);u=u.substr(3),y(),a.endTime=i(),y(),h(u,a)}function e(u){return u.replace(/<br(?: \/)?>/gi,`
`)}var s=function(){function u(){this.state="INITIAL",this.buffer="",this.decoder=new E,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var a=u.prototype;return a.parse=function(d){var i=this;d&&(i.buffer+=i.decoder.decode(d,{stream:!0}));function h(){var w=i.buffer,m=0;for(w=e(w);m<w.length&&w[m]!=="\r"&&w[m]!==`
`;)++m;var c=w.substr(0,m);return w[m]==="\r"&&++m,w[m]===`
`&&++m,i.buffer=w.substr(m),c}function y(w){f(w,function(m,c){},/:/)}try{var v="";if(i.state==="INITIAL"){if(!/\r\n|\n/.test(i.buffer))return this;v=h();var x=v.match(/^()?WEBVTT([ \t].*)?$/);if(!x||!x[0])throw new Error("Malformed WebVTT signature.");i.state="HEADER"}for(var S=!1;i.buffer;){if(!/\r\n|\n/.test(i.buffer))return this;S?S=!1:v=h();switch(i.state){case"HEADER":/:/.test(v)?y(v):v||(i.state="ID");continue;case"NOTE":v||(i.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(v)){i.state="NOTE";break}if(!v)continue;if(i.cue=new p.default(0,0,""),i.state="CUE",v.indexOf("-->")===-1){i.cue.id=v;continue}case"CUE":if(!i.cue){i.state="BADCUE";continue}try{n(v,i.cue,i.regionList)}catch(w){i.cue=null,i.state="BADCUE";continue}i.state="CUETEXT";continue;case"CUETEXT":{var B=v.indexOf("-->")!==-1;if(!v||B&&(S=!0)){i.oncue&&i.cue&&i.oncue(i.cue),i.cue=null,i.state="ID";continue}if(i.cue===null)continue;i.cue.text&&(i.cue.text+=`
`),i.cue.text+=v}continue;case"BADCUE":v||(i.state="ID")}}}catch(w){i.state==="CUETEXT"&&i.cue&&i.oncue&&i.oncue(i.cue),i.cue=null,i.state=i.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},a.flush=function(){var d=this;try{if((d.cue||d.state==="HEADER")&&(d.buffer+=`
`,d.parse()),d.state==="INITIAL"||d.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(i){d.onparsingerror&&d.onparsingerror(i)}return d.onflush&&d.onflush(),this},u}()},"./src/utils/webvtt-parser.ts":function(ae,V,M){"use strict";M.r(V),M.d(V,"generateCueId",function(){return s}),M.d(V,"parseWebVTT",function(){return a});var p=M("./src/polyfills/number.ts"),E=M("./src/utils/vttparser.ts"),C=M("./src/demux/id3.ts"),b=M("./src/utils/timescale-conversion.ts"),f=M("./src/remux/mp4-remuxer.ts"),l=/\r\n|\n\r|\n|\r/g,r=function(d,i,h){return h===void 0&&(h=0),d.substr(h,i.length)===i},n=function(d){var i=parseInt(d.substr(-3)),h=parseInt(d.substr(-6,2)),y=parseInt(d.substr(-9,2)),v=d.length>9?parseInt(d.substr(0,d.indexOf(":"))):0;if(!Object(p.isFiniteNumber)(i)||!Object(p.isFiniteNumber)(h)||!Object(p.isFiniteNumber)(y)||!Object(p.isFiniteNumber)(v))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+d);return i+=1e3*h,i+=60*1e3*y,i+=60*60*1e3*v,i},e=function(d){for(var i=5381,h=d.length;h;)i=i*33^d.charCodeAt(--h);return(i>>>0).toString()};function s(A,d,i){return e(A.toString())+e(d.toString())+e(i)}var u=function(d,i,h){var y=d[i],v=d[y.prevCC];if(!v||!v.new&&y.new){d.ccOffset=d.presentationOffset=y.start,y.new=!1;return}for(;(x=v)!==null&&x!==void 0&&x.new;){var x;d.ccOffset+=y.start-v.start,y.new=!1,y=v,v=d[y.prevCC]}d.presentationOffset=h};function a(A,d,i,h,y,v,x,S){var B=new E.VTTParser,w=Object(C.utf8ArrayToStr)(new Uint8Array(A)).trim().replace(l,`
`).split(`
`),m=[],c=Object(b.toMpegTsClockFromTimescale)(d,i),o="00:00.000",_=0,D=0,T,O=!0,R=!1;B.oncue=function(U){var F=h[y],Y=h.ccOffset,k=(_-c)/9e4;if(F!=null&&F.new&&(D!==void 0?Y=h.ccOffset=F.start:u(h,y,k)),k&&(Y=k-h.presentationOffset),R){var K=U.endTime-U.startTime,z=Object(f.normalizePts)((U.startTime+Y-D)*9e4,v*9e4)/9e4;U.startTime=z,U.endTime=z+K}var j=U.text.trim();U.text=decodeURIComponent(encodeURIComponent(j)),U.id||(U.id=s(U.startTime,U.endTime,j)),U.endTime>0&&m.push(U)},B.onparsingerror=function(U){T=U},B.onflush=function(){if(T){S(T);return}x(m)},w.forEach(function(U){if(O)if(r(U,"X-TIMESTAMP-MAP=")){O=!1,R=!0,U.substr(16).split(",").forEach(function(F){r(F,"LOCAL:")?o=F.substr(6):r(F,"MPEGTS:")&&(_=parseInt(F.substr(7)))});try{D=n(o)/1e3}catch(F){R=!1,T=F}return}else U===""&&(O=!1);B.parse(U+`
`)}),B.flush()}},"./src/utils/xhr-loader.ts":function(ae,V,M){"use strict";M.r(V);var p=M("./src/utils/logger.ts"),E=M("./src/loader/load-stats.ts"),C=/^age:\s*[\d.]+\s*$/m,b=function(){function f(r){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=r?r.xhrSetup:null,this.stats=new E.LoadStats,this.retryDelay=0}var l=f.prototype;return l.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},l.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()))},l.abort=function(){var n;this.abortInternal(),(n=this.callbacks)!==null&&n!==void 0&&n.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},l.load=function(n,e,s){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=s,this.retryDelay=e.retryDelay,this.loadInternal()},l.loadInternal=function(){var n=this.config,e=this.context;if(!n)return;var s=this.loader=new self.XMLHttpRequest,u=this.stats;u.loading.first=0,u.loaded=0;var a=this.xhrSetup;try{if(a)try{a(s,e.url)}catch(i){s.open("GET",e.url,!0),a(s,e.url)}s.readyState||s.open("GET",e.url,!0);var A=this.context.headers;if(A)for(var d in A)s.setRequestHeader(d,A[d])}catch(i){this.callbacks.onError({code:s.status,text:i.message},e,s);return}e.rangeEnd&&s.setRequestHeader("Range","bytes="+e.rangeStart+"-"+(e.rangeEnd-1)),s.onreadystatechange=this.readystatechange.bind(this),s.onprogress=this.loadprogress.bind(this),s.responseType=e.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),s.send()},l.readystatechange=function(){var n=this.context,e=this.loader,s=this.stats;if(!n||!e)return;var u=e.readyState,a=this.config;if(s.aborted)return;if(u>=2)if(self.clearTimeout(this.requestTimeout),s.loading.first===0&&(s.loading.first=Math.max(self.performance.now(),s.loading.start)),u===4){e.onreadystatechange=null,e.onprogress=null;var A=e.status;if(A>=200&&A<300){s.loading.end=Math.max(self.performance.now(),s.loading.first);var d,i;if(n.responseType==="arraybuffer"?(d=e.response,i=d.byteLength):(d=e.responseText,i=d.length),s.loaded=s.total=i,!this.callbacks)return;var h=this.callbacks.onProgress;if(h&&h(s,n,d,e),!this.callbacks)return;var y={url:e.responseURL,data:d};this.callbacks.onSuccess(y,s,n,e)}else s.retry>=a.maxRetry||A>=400&&A<499?(p.logger.error(A+" while loading "+n.url),this.callbacks.onError({code:A,text:e.statusText},n,e)):(p.logger.warn(A+" 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,a.maxRetryDelay),s.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),a.timeout)},l.loadtimeout=function(){p.logger.warn("timeout while loading "+this.context.url);var n=this.callbacks;n&&(this.abortInternal(),n.onTimeout(this.stats,this.context,this.loader))},l.loadprogress=function(n){var e=this.stats;e.loaded=n.loaded,n.lengthComputable&&(e.total=n.total)},l.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},f}();V.default=b}}).default})},vHTk:function(We,Ce,I){We.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vKoX:function(We,Ce,I){var ae=I("SrGk"),V=I("bYtY");function M(C,b){ae.call(this,C,b,["filter"],"__filter_in_use__","_shadowDom")}V.inherits(M,ae),M.prototype.addWithoutUpdate=function(C,b){if(b&&p(b.style)){var f;if(b._shadowDom){f=b._shadowDom;var l=this.getDefs(!0);l.contains(b._shadowDom)||this.addDom(f)}else f=this.add(b);this.markUsed(b);var r=f.getAttribute("id");C.style.filter="url(#"+r+")"}},M.prototype.add=function(C){var b=this.createElement("filter");return C._shadowDomId=C._shadowDomId||this.nextId++,b.setAttribute("id","zr"+this._zrId+"-shadow-"+C._shadowDomId),this.updateDom(C,b),this.addDom(b),b},M.prototype.update=function(C,b){var f=b.style;if(p(f)){var l=this;ae.prototype.update.call(this,b,function(){l.updateDom(b,b._shadowDom)})}else this.remove(C,b)},M.prototype.remove=function(C,b){b._shadowDomId!=null&&(this.removeDom(C),C.style.filter="")},M.prototype.updateDom=function(C,b){var f=b.getElementsByTagName("feDropShadow");f.length===0?f=this.createElement("feDropShadow"):f=f[0];var l=C.style,r=C.scale&&C.scale[0]||1,n=C.scale&&C.scale[1]||1,e,s,u,a;if(l.shadowBlur||l.shadowOffsetX||l.shadowOffsetY)e=l.shadowOffsetX||0,s=l.shadowOffsetY||0,u=l.shadowBlur,a=l.shadowColor;else if(l.textShadowBlur)e=l.textShadowOffsetX||0,s=l.textShadowOffsetY||0,u=l.textShadowBlur,a=l.textShadowColor;else{this.removeDom(b,l);return}f.setAttribute("dx",e/r),f.setAttribute("dy",s/n),f.setAttribute("flood-color",a);var A=u/2/r,d=u/2/n,i=A+" "+d;f.setAttribute("stdDeviation",i),b.setAttribute("x","-100%"),b.setAttribute("y","-100%"),b.setAttribute("width",Math.ceil(u/2*200)+"%"),b.setAttribute("height",Math.ceil(u/2*200)+"%"),b.appendChild(f),C._shadowDom=b},M.prototype.markUsed=function(C){C._shadowDom&&ae.prototype.markUsed.call(this,C._shadowDom)};function p(C){return C&&(C.shadowBlur||C.shadowOffsetX||C.shadowOffsetY||C.textShadowBlur||C.textShadowOffsetX||C.textShadowOffsetY)}var E=M;We.exports=E},vUf6:function(We,Ce,I){We.exports=I.p+"static/xxtj.38a4bc0a.svg"},vWvF:function(We,Ce,I){var ae=I("Bq2U"),V=I("SUKs"),M=I("bYtY"),p=M.isString,E=M.isFunction,C=M.isObject,b=M.isArrayLike,f=M.indexOf,l=function(){this.animators=[]};l.prototype={constructor:l,animate:function(u,a){var A,d=!1,i=this,h=this.__zr;if(u){var y=u.split("."),v=i;d=y[0]==="shape";for(var x=0,S=y.length;x<S;x++){if(!v)continue;v=v[y[x]]}v&&(A=v)}else A=i;if(!A){V('Property "'+u+'" is not existed in element '+i.id);return}var B=i.animators,w=new ae(A,a);return w.during(function(m){i.dirty(d)}).done(function(){B.splice(f(B,w),1)}),B.push(w),h&&h.animation.addAnimator(w),w},stopAnimation:function(u){for(var a=this.animators,A=a.length,d=0;d<A;d++)a[d].stop(u);return a.length=0,this},animateTo:function(u,a,A,d,i,h){r(this,u,a,A,d,i,h)},animateFrom:function(u,a,A,d,i,h){r(this,u,a,A,d,i,h,!0)}};function r(u,a,A,d,i,h,y,v){p(d)?(h=i,i=d,d=0):E(i)?(h=i,i="linear",d=0):E(d)?(h=d,d=0):E(A)?(h=A,A=500):A||(A=500),u.stopAnimation(),n(u,"",u,a,A,d,v);var x=u.animators.slice(),S=x.length;function B(){S--,S||h&&h()}S||h&&h();for(var w=0;w<x.length;w++)x[w].done(B).start(i,y)}function n(u,a,A,d,i,h,y){var v={},x=0;for(var S in d){if(!d.hasOwnProperty(S))continue;A[S]!=null?C(d[S])&&!b(d[S])?n(u,a?a+"."+S:S,A[S],d[S],i,h,y):(y?(v[S]=A[S],e(u,a,S,d[S])):v[S]=d[S],x++):d[S]!=null&&!y&&e(u,a,S,d[S])}x>0&&u.animate(a,!1).when(i==null?500:i,v).delay(h||0)}function e(u,a,A,d){if(!a)u.attr(A,d);else{var i={};i[a]={},i[a][A]=d,u.attr(i)}}var s=l;We.exports=s},w8Aa:function(We,Ce,I){We.exports={img:"img___3e4yQ"}},wCXF:function(We,Ce,I){"use strict";I.d(Ce,"a",function(){return ue});var ae=I("rePB"),V=I("VTBJ"),M=I("KQm4"),p=I("U8pU"),E=I("ODXe"),C=I("q1tI"),b=I("TSYQ"),f=I.n(b),l=I("Gytx"),r=I.n(l),n=I("Kwbf"),e=I("t23M"),s=I("qx4F"),u=I("6eGT"),a=I("IBYe"),A=I("Ff2n"),d=I("c+Xe"),i=I("fyJ8"),h=I("biw7");function y(He,Xe,gt,_t,ct){var lt=gt[He]||{},rt=gt[Xe]||{},Ze,qe;lt.fixed==="left"?Ze=_t.left[He]:rt.fixed==="right"&&(qe=_t.right[Xe]);var Le=!1,je=!1,Ne=!1,$e=!1,At=gt[Xe+1],Bt=gt[He-1];if(ct==="rtl"){if(Ze!==void 0){var Nt=Bt&&Bt.fixed==="left";$e=!Nt}else if(qe!==void 0){var It=At&&At.fixed==="right";Ne=!It}}else if(Ze!==void 0){var jt=At&&At.fixed==="left";Le=!jt}else if(qe!==void 0){var xt=Bt&&Bt.fixed==="right";je=!xt}return{fixLeft:Ze,fixRight:qe,lastFixLeft:Le,firstFixRight:je,lastFixRight:Ne,firstFixLeft:$e,isSticky:_t.isSticky}}var v=I("sR1s");function x(He){var Xe=He.cells,gt=He.stickyOffsets,_t=He.flattenColumns,ct=He.rowComponent,lt=He.cellComponent,rt=He.onHeaderRow,Ze=He.index,qe=C.useContext(h.a),Le=qe.prefixCls,je=qe.direction,Ne;rt&&(Ne=rt(Xe.map(function(At){return At.column}),Ze));var $e=Object(v.a)(Xe.map(function(At){return At.column}));return C.createElement(ct,Object.assign({},Ne),Xe.map(function(At,Bt){var Nt=At.column,It=y(At.colStart,At.colEnd,_t,gt,je),jt;return Nt&&Nt.onHeaderCell&&(jt=At.column.onHeaderCell(Nt)),C.createElement(i.a,Object.assign({},At,{ellipsis:Nt.ellipsis,align:Nt.align,component:lt,prefixCls:Le,key:$e[Bt]},It,{additionalProps:jt,rowType:"header"}))}))}x.displayName="HeaderRow";var S=x;function B(He){var Xe=[];function gt(rt,Ze){var qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Xe[qe]=Xe[qe]||[];var Le=Ze,je=rt.filter(Boolean).map(function(Ne){var $e={key:Ne.key,className:Ne.className||"",children:Ne.title,column:Ne,colStart:Le},At=1,Bt=Ne.children;return Bt&&Bt.length>0&&(At=gt(Bt,Le,qe+1).reduce(function(Nt,It){return Nt+It},0),$e.hasSubColumns=!0),"colSpan"in Ne&&(At=Ne.colSpan),"rowSpan"in Ne&&($e.rowSpan=Ne.rowSpan),$e.colSpan=At,$e.colEnd=$e.colStart+At-1,Xe[qe].push($e),Le+=At,At});return je}gt(He,0);for(var _t=Xe.length,ct=function(Ze){Xe[Ze].forEach(function(qe){!("rowSpan"in qe)&&!qe.hasSubColumns&&(qe.rowSpan=_t-Ze)})},lt=0;lt<_t;lt+=1)ct(lt);return Xe}function w(He){var Xe=He.stickyOffsets,gt=He.columns,_t=He.flattenColumns,ct=He.onHeaderRow,lt=C.useContext(h.a),rt=lt.prefixCls,Ze=lt.getComponent,qe=C.useMemo(function(){return B(gt)},[gt]),Le=Ze(["header","wrapper"],"thead"),je=Ze(["header","row"],"tr"),Ne=Ze(["header","cell"],"th");return C.createElement(Le,{className:"".concat(rt,"-thead")},qe.map(function($e,At){var Bt=C.createElement(S,{key:At,flattenColumns:_t,cells:$e,stickyOffsets:Xe,rowComponent:je,cellComponent:Ne,onHeaderRow:ct,index:At});return Bt}))}var m=w,c=I("hW8S");function o(He){for(var Xe=He.colWidths,gt=He.columns,_t=He.columCount,ct=[],lt=_t||gt.length,rt=!1,Ze=lt-1;Ze>=0;Ze-=1){var qe=Xe[Ze],Le=gt&&gt[Ze],je=Le&&Le[c.a];(qe||je||rt)&&(ct.unshift(C.createElement("col",Object.assign({key:Ze,style:{width:qe,minWidth:qe}},je))),rt=!0)}return C.createElement("colgroup",null,ct)}var _=o;function D(He,Xe){return Object(C.useMemo)(function(){for(var gt=[],_t=0;_t<Xe;_t+=1){var ct=He[_t];if(ct!==void 0)gt[_t]=ct;else return null}return gt},[He.join("_"),Xe])}var T=C.forwardRef(function(He,Xe){var gt=He.noData,_t=He.columns,ct=He.flattenColumns,lt=He.colWidths,rt=He.columCount,Ze=He.stickyOffsets,qe=He.direction,Le=He.fixHeader,je=He.offsetHeader,Ne=He.stickyClassName,$e=He.onScroll,At=Object(A.a)(He,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),Bt=C.useContext(h.a),Nt=Bt.prefixCls,It=Bt.scrollbarSize,jt=Bt.isSticky,xt=jt&&!Le?0:It,Lt=C.useRef(null),St=C.useCallback(function(Ut){Object(d.b)(Xe,Ut),Object(d.b)(Lt,Ut)},[]);C.useEffect(function(){var Ut;function Wt(bt){var Gt=bt.currentTarget,un=bt.deltaX;un&&($e({currentTarget:Gt,scrollLeft:Gt.scrollLeft+un}),bt.preventDefault())}return(Ut=Lt.current)===null||Ut===void 0||Ut.addEventListener("wheel",Wt),function(){var bt;(bt=Lt.current)===null||bt===void 0||bt.removeEventListener("wheel",Wt)}},[]);var dt=ct[ct.length-1],yt={fixed:dt?dt.fixed:null,onHeaderCell:function(){return{className:"".concat(Nt,"-cell-scrollbar")}}},Fe=Object(C.useMemo)(function(){return xt?[].concat(Object(M.a)(_t),[yt]):_t},[xt,_t]),et=Object(C.useMemo)(function(){return xt?[].concat(Object(M.a)(ct),[yt]):ct},[xt,ct]),Ot=Object(C.useMemo)(function(){var Ut=Ze.right,Wt=Ze.left;return Object(V.a)(Object(V.a)({},Ze),{},{left:qe==="rtl"?[].concat(Object(M.a)(Wt.map(function(bt){return bt+xt})),[0]):Wt,right:qe==="rtl"?Ut:[].concat(Object(M.a)(Ut.map(function(bt){return bt+xt})),[0]),isSticky:jt})},[xt,Ze,jt]),Et=D(lt,rt);return C.createElement("div",{style:Object(V.a)({overflow:"hidden"},jt?{top:je}:{}),ref:St,className:f()("".concat(Nt,"-header"),Object(ae.a)({},Ne,!!Ne))},C.createElement("table",{style:{tableLayout:"fixed",visibility:gt||Et?null:"hidden"}},C.createElement(_,{colWidths:Et?[].concat(Object(M.a)(Et),[xt]):[],columCount:rt+1,columns:et}),C.createElement(m,Object.assign({},At,{stickyOffsets:Ot,columns:Fe,flattenColumns:et}))))});T.displayName="FixedHeader";var O=T,R=C.createContext(null),U=R;function F(He){var Xe=He.prefixCls,gt=He.children,_t=He.component,ct=He.cellComponent,lt=He.fixHeader,rt=He.fixColumn,Ze=He.horizonScroll,qe=He.className,Le=He.expanded,je=He.componentWidth,Ne=He.colSpan,$e=C.useContext(h.a),At=$e.scrollbarSize;return C.useMemo(function(){var Bt=gt;return rt&&(Bt=C.createElement("div",{style:{width:je-(lt?At:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Xe,"-expanded-row-fixed")},Bt)),C.createElement(_t,{className:qe,style:{display:Le?null:"none"}},C.createElement(i.a,{component:ct,prefixCls:Xe,colSpan:Ne},Bt))},[gt,_t,lt,Ze,qe,Le,je,Ne,At])}var Y=F;function k(He){var Xe=He.className,gt=He.style,_t=He.record,ct=He.index,lt=He.rowKey,rt=He.getRowKey,Ze=He.rowExpandable,qe=He.expandedKeys,Le=He.onRow,je=He.indent,Ne=je===void 0?0:je,$e=He.rowComponent,At=He.cellComponent,Bt=He.childrenColumnName,Nt=C.useContext(h.a),It=Nt.prefixCls,jt=Nt.fixedInfoList,xt=C.useContext(U),Lt=xt.fixHeader,St=xt.fixColumn,dt=xt.horizonScroll,yt=xt.componentWidth,Fe=xt.flattenColumns,et=xt.expandableType,Ot=xt.expandRowByClick,Et=xt.onTriggerExpand,Ut=xt.rowClassName,Wt=xt.expandedRowClassName,bt=xt.indentSize,Gt=xt.expandIcon,un=xt.expandedRowRender,jn=xt.expandIconColumnIndex,Bn=C.useState(!1),Nr=Object(E.a)(Bn,2),zr=Nr[0],_r=Nr[1],Rn=qe&&qe.has(He.recordKey);C.useEffect(function(){Rn&&_r(!0)},[Rn]);var ea=et==="row"&&(!Ze||Ze(_t)),Aa=et==="nest",pa=Bt&&_t&&_t[Bt],Kr=ea||Aa,Ea;Le&&(Ea=Le(_t,ct));var Za=function(G){if(Ot&&Kr&&Et(_t,G),Ea&&Ea.onClick){for(var Z,ge=arguments.length,Se=new Array(ge>1?ge-1:0),Ee=1;Ee<ge;Ee++)Se[Ee-1]=arguments[Ee];(Z=Ea).onClick.apply(Z,[G].concat(Se))}},fi;typeof Ut=="string"?fi=Ut:typeof Ut=="function"&&(fi=Ut(_t,ct,Ne));var Re=Object(v.a)(Fe),Qe=C.createElement($e,Object.assign({},Ea,{"data-row-key":lt,className:f()(Xe,"".concat(It,"-row"),"".concat(It,"-row-level-").concat(Ne),fi,Ea&&Ea.className),style:Object(V.a)(Object(V.a)({},gt),Ea?Ea.style:null),onClick:Za}),Fe.map(function(ve,G){var Z=ve.render,ge=ve.dataIndex,Se=ve.className,Ee=Re[G],ft=jt[G],Kt;G===(jn||0)&&Aa&&(Kt=C.createElement(C.Fragment,null,C.createElement("span",{style:{paddingLeft:"".concat(bt*Ne,"px")},className:"".concat(It,"-row-indent indent-level-").concat(Ne)}),Gt({prefixCls:It,expanded:Rn,expandable:pa,record:_t,onExpand:Et})));var Rt;return ve.onCell&&(Rt=ve.onCell(_t,ct)),C.createElement(i.a,Object.assign({className:Se,ellipsis:ve.ellipsis,align:ve.align,component:At,prefixCls:It,key:Ee,record:_t,index:ct,dataIndex:ge,render:Z,shouldCellUpdate:ve.shouldCellUpdate},ft,{appendNode:Kt,additionalProps:Rt}))})),it;if(ea&&(zr||Rn)){var Tt=un(_t,ct,Ne+1,Rn),Vt=Wt&&Wt(_t,ct,Ne);it=C.createElement(Y,{expanded:Rn,className:f()("".concat(It,"-expanded-row"),"".concat(It,"-expanded-row-level-").concat(Ne+1),Vt),prefixCls:It,fixHeader:Lt,fixColumn:St,horizonScroll:dt,component:$e,componentWidth:yt,cellComponent:At,colSpan:Fe.length},Tt)}var rn;return pa&&Rn&&(rn=(_t[Bt]||[]).map(function(ve,G){var Z=rt(ve,G);return C.createElement(k,Object.assign({},He,{key:Z,rowKey:Z,record:ve,recordKey:Z,index:G,indent:Ne+1}))})),C.createElement(C.Fragment,null,Qe,it,rn)}k.displayName="BodyRow";var K=k,z=C.createContext(null),j=z;function Q(He){var Xe=He.columnKey,gt=He.onColumnResize,_t=C.useRef();return C.useEffect(function(){_t.current&&gt(Xe,_t.current.offsetWidth)},[]),C.createElement(e.a,{onResize:function(lt){var rt=lt.offsetWidth;gt(Xe,rt)}},C.createElement("td",{ref:_t,style:{padding:0,border:0,height:0}},C.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function X(He){var Xe=He.data,gt=He.getRowKey,_t=He.measureColumnWidth,ct=He.expandedKeys,lt=He.onRow,rt=He.rowExpandable,Ze=He.emptyNode,qe=He.childrenColumnName,Le=C.useContext(j),je=Le.onColumnResize,Ne=C.useContext(h.a),$e=Ne.prefixCls,At=Ne.getComponent,Bt=C.useContext(U),Nt=Bt.fixHeader,It=Bt.horizonScroll,jt=Bt.flattenColumns,xt=Bt.componentWidth;return C.useMemo(function(){var Lt=At(["body","wrapper"],"tbody"),St=At(["body","row"],"tr"),dt=At(["body","cell"],"td"),yt;Xe.length?yt=Xe.map(function(et,Ot){var Et=gt(et,Ot);return C.createElement(K,{key:Et,rowKey:Et,record:et,recordKey:Et,index:Ot,rowComponent:St,cellComponent:dt,expandedKeys:ct,onRow:lt,getRowKey:gt,rowExpandable:rt,childrenColumnName:qe})}):yt=C.createElement(Y,{expanded:!0,className:"".concat($e,"-placeholder"),prefixCls:$e,fixHeader:Nt,fixColumn:It,horizonScroll:It,component:St,componentWidth:xt,cellComponent:dt,colSpan:jt.length},Ze);var Fe=Object(v.a)(jt);return C.createElement(Lt,{className:"".concat($e,"-tbody")},_t&&C.createElement("tr",{"aria-hidden":"true",className:"".concat($e,"-measure-row"),style:{height:0}},Fe.map(function(et){return C.createElement(Q,{key:et,columnKey:et,onColumnResize:je})})),yt)},[Xe,$e,lt,_t,ct,gt,At,xt,Ze,jt])}var te=C.memo(X);te.displayName="Body";var oe=te,fe=I("wRmb"),le=I("xEkU"),we=I.n(le);function Ae(He){var Xe=Object(C.useRef)(He),gt=Object(C.useState)({}),_t=Object(E.a)(gt,2),ct=_t[1],lt=Object(C.useRef)(null),rt=Object(C.useRef)([]);function Ze(qe){lt.current===null&&(rt.current=[],lt.current=we()(function(){rt.current.forEach(function(Le){Xe.current=Le(Xe.current)}),lt.current=null,ct({})})),rt.current.push(qe)}return Object(C.useEffect)(function(){return function(){we.a.cancel(lt.current)}},[]),[Xe.current,Ze]}function be(He){var Xe=Object(C.useRef)(He),gt=Object(C.useRef)(null);function _t(){window.clearTimeout(gt.current)}function ct(rt){Xe.current=rt,_t(),gt.current=window.setTimeout(function(){Xe.current=null,gt.current=null},100)}function lt(){return Xe.current}return Object(C.useEffect)(function(){return _t},[]),[ct,lt]}function me(He,Xe,gt){var _t=Object(C.useMemo)(function(){for(var ct=[],lt=[],rt=0,Ze=0,qe=0;qe<Xe;qe+=1)if(gt==="rtl"){lt[qe]=Ze,Ze+=He[qe]||0;var Le=Xe-qe-1;ct[Le]=rt,rt+=He[Le]||0}else{ct[qe]=rt,rt+=He[qe]||0;var je=Xe-qe-1;lt[je]=Ze,Ze+=He[je]||0}return{left:ct,right:lt}},[He,Xe,gt]);return _t}var he=me;function ie(He){var Xe=He.className,gt=He.children;return C.createElement("div",{className:Xe},gt)}var pe=ie,ye=I("n6Qo");function de(He){var Xe,gt=He.prefixCls,_t=He.record,ct=He.onExpand,lt=He.expanded,rt=He.expandable,Ze="".concat(gt,"-row-expand-icon");if(!rt)return C.createElement("span",{className:f()(Ze,"".concat(gt,"-row-spaced"))});var qe=function(je){ct(_t,je),je.stopPropagation()};return C.createElement("span",{className:f()(Ze,(Xe={},Object(ae.a)(Xe,"".concat(gt,"-row-expanded"),lt),Object(ae.a)(Xe,"".concat(gt,"-row-collapsed"),!lt),Xe)),onClick:qe})}function Me(He,Xe,gt){var _t=[];function ct(lt){(lt||[]).forEach(function(rt,Ze){_t.push(Xe(rt,Ze)),ct(rt[gt])})}return ct(He),_t}var ke=I("zT1h"),Ue=I("y0+3"),re=function(Xe,gt){var _t,ct,lt=Xe.scrollBodyRef,rt=Xe.onScroll,Ze=Xe.offsetScroll,qe=C.useContext(h.a),Le=qe.prefixCls,je=((_t=lt.current)===null||_t===void 0?void 0:_t.scrollWidth)||0,Ne=((ct=lt.current)===null||ct===void 0?void 0:ct.clientWidth)||0,$e=je&&Ne*(Ne/je),At=C.useRef(),Bt=Ae({scrollLeft:0,isHiddenScrollBar:!1}),Nt=Object(E.a)(Bt,2),It=Nt[0],jt=Nt[1],xt=C.useRef({delta:0,x:0}),Lt=C.useState(!1),St=Object(E.a)(Lt,2),dt=St[0],yt=St[1],Fe=function(){yt(!1)},et=function(bt){bt.persist(),xt.current.delta=bt.pageX-It.scrollLeft,xt.current.x=0,yt(!0),bt.preventDefault()},Ot=function(bt){var Gt,un=bt||((Gt=window)===null||Gt===void 0?void 0:Gt.event),jn=un.buttons;if(!dt||jn===0){dt&&yt(!1);return}var Bn=xt.current.x+bt.pageX-xt.current.x-xt.current.delta;Bn<=0&&(Bn=0),Bn+$e>=Ne&&(Bn=Ne-$e),rt({scrollLeft:Bn/Ne*(je+2)}),xt.current.x=bt.pageX},Et=function(){var bt=Object(Ue.b)(lt.current).top,Gt=bt+lt.current.offsetHeight,un=document.documentElement.scrollTop+window.innerHeight;Gt-Object(s.a)()<=un||bt>=un-Ze?jt(function(jn){return Object(V.a)(Object(V.a)({},jn),{},{isHiddenScrollBar:!0})}):jt(function(jn){return Object(V.a)(Object(V.a)({},jn),{},{isHiddenScrollBar:!1})})},Ut=function(bt){jt(function(Gt){return Object(V.a)(Object(V.a)({},Gt),{},{scrollLeft:bt/je*Ne||0})})};return C.useImperativeHandle(gt,function(){return{setScrollLeft:Ut}}),C.useEffect(function(){var Wt=Object(ke.a)(document.body,"mouseup",Fe,!1),bt=Object(ke.a)(document.body,"mousemove",Ot,!1);return Et(),function(){Wt.remove(),bt.remove()}},[$e,dt]),C.useEffect(function(){var Wt=Object(ke.a)(window,"scroll",Et,!1),bt=Object(ke.a)(window,"resize",Et,!1);return function(){Wt.remove(),bt.remove()}},[]),C.useEffect(function(){It.isHiddenScrollBar||jt(function(Wt){var bt,Gt;return Object(V.a)(Object(V.a)({},Wt),{},{scrollLeft:lt.current.scrollLeft/((bt=lt.current)===null||bt===void 0?void 0:bt.scrollWidth)*((Gt=lt.current)===null||Gt===void 0?void 0:Gt.clientWidth)})})},[It.isHiddenScrollBar]),je<=Ne||!$e||It.isHiddenScrollBar?null:C.createElement("div",{style:{height:Object(s.a)(),width:Ne,bottom:Ze},className:"".concat(Le,"-sticky-scroll")},C.createElement("div",{onMouseDown:et,ref:At,className:f()("".concat(Le,"-sticky-scroll-bar"),Object(ae.a)({},"".concat(Le,"-sticky-scroll-bar-active"),dt)),style:{width:"".concat($e,"px"),transform:"translate3d(".concat(It.scrollLeft,"px, 0, 0)")}}))},N=C.forwardRef(re);function W(He,Xe){return C.useMemo(function(){var gt=!!He;return{isSticky:gt,stickyClassName:gt?"".concat(Xe,"-sticky-header"):"",offsetHeader:Object(p.a)(He)==="object"&&He.offsetHeader||0,offsetScroll:Object(p.a)(He)==="object"&&He.offsetScroll||0}},[He,Xe])}var ce=[],ne={},ue="rc-table-internal-hook",De=C.memo(function(He){var Xe=He.children;return Xe},function(He,Xe){return r()(He.props,Xe.props)?He.pingLeft!==Xe.pingLeft||He.pingRight!==Xe.pingRight:!1});function ze(He){var Xe,gt=He.prefixCls,_t=He.className,ct=He.rowClassName,lt=He.style,rt=He.data,Ze=He.rowKey,qe=He.scroll,Le=He.tableLayout,je=He.direction,Ne=He.title,$e=He.footer,At=He.summary,Bt=He.id,Nt=He.showHeader,It=He.components,jt=He.emptyText,xt=He.onRow,Lt=He.onHeaderRow,St=He.internalHooks,dt=He.transformColumns,yt=He.internalRefs,Fe=He.sticky,et=rt||ce,Ot=!!et.length,Et=C.useState(0),Ut=Object(E.a)(Et,2),Wt=Ut[0],bt=Ut[1];C.useEffect(function(){bt(Object(s.a)())});var Gt=C.useMemo(function(){return Object(v.c)(It,{})},[It]),un=C.useCallback(function(br,Pr){return Object(v.b)(Gt,br)||Pr},[Gt]),jn=C.useMemo(function(){return typeof Ze=="function"?Ze:function(br){var Pr=br&&br[Ze];return Pr}},[Ze]),Bn=Object(c.c)(He),Nr=Bn.expandIcon,zr=Bn.expandedRowKeys,_r=Bn.defaultExpandedRowKeys,Rn=Bn.defaultExpandAllRows,ea=Bn.expandedRowRender,Aa=Bn.onExpand,pa=Bn.onExpandedRowsChange,Kr=Bn.expandRowByClick,Ea=Bn.rowExpandable,Za=Bn.expandIconColumnIndex,fi=Bn.expandedRowClassName,Re=Bn.childrenColumnName,Qe=Bn.indentSize,it=Nr||de,Tt=Re||"children",Vt=C.useMemo(function(){return ea?"row":He.expandable&&St===ue&&He.expandable.__PARENT_RENDER_ICON__||et.some(function(br){return br&&Object(p.a)(br)==="object"&&br[Tt]})?"nest":!1},[!!ea,et]),rn=C.useState(function(){return _r||(Rn?Me(et,jn,Tt):[])}),ve=Object(E.a)(rn,2),G=ve[0],Z=ve[1],ge=C.useMemo(function(){return new Set(zr||G||[])},[zr,G]),Se=C.useCallback(function(br){var Pr=jn(br,et.indexOf(br)),Qr,$a=ge.has(Pr);$a?(ge.delete(Pr),Qr=Object(M.a)(ge)):Qr=[].concat(Object(M.a)(ge),[Pr]),Z(Qr),Aa&&Aa(!$a,br),pa&&pa(Qr)},[jn,ge,et,Aa,pa]),Ee=C.useState(0),ft=Object(E.a)(Ee,2),Kt=ft[0],Rt=ft[1],mn=Object(fe.b)(Object(V.a)(Object(V.a)(Object(V.a)({},He),Bn),{},{expandable:!!ea,expandedKeys:ge,getRowKey:jn,onTriggerExpand:Se,expandIcon:it,expandIconColumnIndex:Za,direction:je}),St===ue?dt:null),Yt=Object(E.a)(mn,2),Jn=Yt[0],Hn=Yt[1],$n=C.useMemo(function(){return{columns:Jn,flattenColumns:Hn}},[Jn,Hn]),wr=C.useRef(),aa=C.useRef(),Br=C.useRef(),ta=C.useState(!1),Sr=Object(E.a)(ta,2),ma=Sr[0],la=Sr[1],ja=C.useState(!1),Sa=Object(E.a)(ja,2),Ua=Sa[0],ka=Sa[1],Ca=Ae(new Map),Jr=Object(E.a)(Ca,2),Wa=Jr[0],Ma=Jr[1],Ta=Object(v.a)(Hn),ui=Ta.map(function(br){return Wa.get(br)}),Ai=C.useMemo(function(){return ui},[ui.join("_")]),Ba=he(Ai,Hn.length,je),Xr=qe&&Object(v.d)(qe.y),hr=qe&&Object(v.d)(qe.x),Yr=hr&&Hn.some(function(br){var Pr=br.fixed;return Pr}),na=C.useRef(),La=W(Fe,gt),ia=La.isSticky,eo=La.offsetHeader,za=La.offsetScroll,Ga=La.stickyClassName,Qi,wo,wa;Xr&&(wo={overflowY:"scroll",maxHeight:qe.y}),hr&&(Qi={overflowX:"auto"},Xr||(wo={overflowY:"hidden"}),wa={width:qe.x===!0?"auto":qe.x,minWidth:"100%"});var Ro=C.useCallback(function(br,Pr){Ma(function(Qr){var $a=new Map(Qr);return $a.set(br,Pr),$a})},[]),Di=be(null),$o=Object(E.a)(Di,2),Fi=$o[0],ls=$o[1];function uo(br,Pr){if(!Pr)return;typeof Pr=="function"?Pr(br):Pr.scrollLeft!==br&&(Pr.scrollLeft=br)}var Mi=function(Pr){var Qr=Pr.currentTarget,$a=Pr.scrollLeft,Mo=typeof $a=="number"?$a:Qr.scrollLeft,us=Qr||ne;if(!ls()||ls()===us){var Is;Fi(us),uo(Mo,aa.current),uo(Mo,Br.current),uo(Mo,(Is=na.current)===null||Is===void 0?void 0:Is.setScrollLeft)}if(Qr){var xs=Qr.scrollWidth,js=Qr.clientWidth;la(Mo>0),ka(Mo<xs-js)}},Go=function(){Br.current&&Mi({currentTarget:Br.current})},ps=function(Pr){var Qr=Pr.width;Go(),Rt(wr.current?wr.current.offsetWidth:Qr)};C.useEffect(function(){return Go},[]),C.useEffect(function(){hr&&Go()},[hr]),C.useEffect(function(){St===ue&&yt&&(yt.body.current=Br.current)});var qa=un(["table"],"table"),to=C.useMemo(function(){return Le||(Yr?qe.x==="max-content"?"auto":"fixed":Xr||Hn.some(function(br){var Pr=br.ellipsis;return Pr})?"fixed":"auto")},[Xr,Yr,Hn,Le]),Vo,Xo={colWidths:Ai,columCount:Hn.length,stickyOffsets:Ba,onHeaderRow:Lt,fixHeader:Xr},ur=C.useMemo(function(){return Ot?null:typeof jt=="function"?jt():jt},[Ot,jt]),Fr=C.createElement(oe,{data:et,measureColumnWidth:Xr||hr||ia,expandedKeys:ge,rowExpandable:Ea,getRowKey:jn,onRow:xt,emptyNode:ur,childrenColumnName:Tt}),xr=C.createElement(_,{colWidths:Hn.map(function(br){var Pr=br.width;return Pr}),columns:Hn}),oa=At&&C.createElement(ye.b,null,At(et)),va=un(["body"]);if(Xr||ia){var xa;typeof va=="function"?(xa=va(et,{scrollbarSize:Wt,ref:Br,onScroll:Mi}),Xo.colWidths=Hn.map(function(br,Pr){var Qr=br.width,$a=Pr===Jn.length-1?Qr-Wt:Qr;return typeof $a=="number"&&!Number.isNaN($a)?$a:(Object(n.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):xa=C.createElement("div",{style:Object(V.a)(Object(V.a)({},Qi),wo),onScroll:Mi,ref:Br,className:f()("".concat(gt,"-body"))},C.createElement(qa,{style:Object(V.a)(Object(V.a)({},wa),{},{tableLayout:to})},xr,Fr,oa),ia&&C.createElement(N,{ref:na,offsetScroll:za,scrollBodyRef:Br,onScroll:Mi})),Vo=C.createElement(C.Fragment,null,Nt!==!1&&C.createElement(O,Object.assign({noData:!et.length},Xo,$n,{direction:je,offsetHeader:eo,stickyClassName:Ga,ref:aa,onScroll:Mi})),xa)}else Vo=C.createElement("div",{style:Object(V.a)(Object(V.a)({},Qi),wo),className:f()("".concat(gt,"-content")),onScroll:Mi,ref:Br},C.createElement(qa,{style:Object(V.a)(Object(V.a)({},wa),{},{tableLayout:to})},xr,Nt!==!1&&C.createElement(m,Object.assign({},Xo,$n)),Fr,oa));var ca=Object(c.b)(He),Fa=C.createElement("div",Object.assign({className:f()(gt,_t,(Xe={},Object(ae.a)(Xe,"".concat(gt,"-rtl"),je==="rtl"),Object(ae.a)(Xe,"".concat(gt,"-ping-left"),ma),Object(ae.a)(Xe,"".concat(gt,"-ping-right"),Ua),Object(ae.a)(Xe,"".concat(gt,"-layout-fixed"),Le==="fixed"),Object(ae.a)(Xe,"".concat(gt,"-fixed-header"),Xr),Object(ae.a)(Xe,"".concat(gt,"-fixed-column"),Yr),Object(ae.a)(Xe,"".concat(gt,"-scroll-horizontal"),hr),Object(ae.a)(Xe,"".concat(gt,"-has-fix-left"),Hn[0]&&Hn[0].fixed),Object(ae.a)(Xe,"".concat(gt,"-has-fix-right"),Hn[Hn.length-1]&&Hn[Hn.length-1].fixed==="right"),Xe)),style:lt,id:Bt,ref:wr},ca),C.createElement(De,{pingLeft:ma,pingRight:Ua,props:Object(V.a)(Object(V.a)({},He),{},{stickyOffsets:Ba,mergedExpandedKeys:ge})},Ne&&C.createElement(pe,{className:"".concat(gt,"-title")},Ne(et)),C.createElement("div",{className:"".concat(gt,"-container")},Vo),$e&&C.createElement(pe,{className:"".concat(gt,"-footer")},$e(et))));hr&&(Fa=C.createElement(e.a,{onResize:ps},Fa));var Si=C.useMemo(function(){return{prefixCls:gt,getComponent:un,scrollbarSize:Wt,direction:je,fixedInfoList:Hn.map(function(br,Pr){return y(Pr,Pr,Hn,Ba,je)}),isSticky:ia}},[gt,un,Wt,je,Hn,Ba,je,ia]),sa=C.useMemo(function(){return Object(V.a)(Object(V.a)({},$n),{},{tableLayout:to,rowClassName:ct,expandedRowClassName:fi,componentWidth:Kt,fixHeader:Xr,fixColumn:Yr,horizonScroll:hr,expandIcon:it,expandableType:Vt,expandRowByClick:Kr,expandedRowRender:ea,onTriggerExpand:Se,expandIconColumnIndex:Za,indentSize:Qe})},[$n,to,ct,fi,Kt,Xr,Yr,hr,it,Vt,Kr,ea,Se,Za,Qe]),Io=C.useMemo(function(){return{onColumnResize:Ro}},[Ro]);return C.createElement(h.a.Provider,{value:Si},C.createElement(U.Provider,{value:sa},C.createElement(j.Provider,{value:Io},Fa)))}ze.Column=a.a,ze.ColumnGroup=u.a,ze.Summary=ye.a,ze.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var wt=Ce.b=ze},wOnQ:function(We,Ce,I){/*!
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
* Released under MIT License
*/(function(ae,V){We.exports=V()})(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 ae=function(q,J){return ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,$){ee.__proto__=$}||function(ee,$){for(var _e in $)Object.prototype.hasOwnProperty.call($,_e)&&(ee[_e]=$[_e])},ae(q,J)};function V(q,J){if(typeof J!="function"&&J!==null)throw new TypeError("Class extends value "+String(J)+" is not a constructor or null");ae(q,J);function ee(){this.constructor=q}q.prototype=J===null?Object.create(J):(ee.prototype=J.prototype,new ee)}var M=function(){return M=Object.assign||function(J){for(var ee,$=1,_e=arguments.length;$<_e;$++){ee=arguments[$];for(var Pe in ee)Object.prototype.hasOwnProperty.call(ee,Pe)&&(J[Pe]=ee[Pe])}return J},M.apply(this,arguments)};function p(q,J,ee,$){function _e(Pe){return Pe instanceof ee?Pe:new ee(function(tt){tt(Pe)})}return new(ee||(ee=Promise))(function(Pe,tt){function mt(Qt){try{Pt($.next(Qt))}catch(qt){tt(qt)}}function pt(Qt){try{Pt($.throw(Qt))}catch(qt){tt(qt)}}function Pt(Qt){Qt.done?Pe(Qt.value):_e(Qt.value).then(mt,pt)}Pt(($=$.apply(q,J||[])).next())})}function E(q,J){var ee={label:0,sent:function(){if(Pe[0]&1)throw Pe[1];return Pe[1]},trys:[],ops:[]},$,_e,Pe,tt;return tt={next:mt(0),throw:mt(1),return:mt(2)},typeof Symbol=="function"&&(tt[Symbol.iterator]=function(){return this}),tt;function mt(Pt){return function(Qt){return pt([Pt,Qt])}}function pt(Pt){if($)throw new TypeError("Generator is already executing.");for(;ee;)try{if($=1,_e&&(Pe=Pt[0]&2?_e.return:Pt[0]?_e.throw||((Pe=_e.return)&&Pe.call(_e),0):_e.next)&&!(Pe=Pe.call(_e,Pt[1])).done)return Pe;(_e=0,Pe)&&(Pt=[Pt[0]&2,Pe.value]);switch(Pt[0]){case 0:case 1:Pe=Pt;break;case 4:return ee.label++,{value:Pt[1],done:!1};case 5:ee.label++,_e=Pt[1],Pt=[0];continue;case 7:Pt=ee.ops.pop(),ee.trys.pop();continue;default:if(!(Pe=ee.trys,Pe=Pe.length>0&&Pe[Pe.length-1])&&(Pt[0]===6||Pt[0]===2)){ee=0;continue}if(Pt[0]===3&&(!Pe||Pt[1]>Pe[0]&&Pt[1]<Pe[3])){ee.label=Pt[1];break}if(Pt[0]===6&&ee.label<Pe[1]){ee.label=Pe[1],Pe=Pt;break}if(Pe&&ee.label<Pe[2]){ee.label=Pe[2],ee.ops.push(Pt);break}Pe[2]&&ee.ops.pop(),ee.trys.pop();continue}Pt=J.call(q,ee)}catch(Qt){Pt=[6,Qt],_e=0}finally{$=Pe=0}if(Pt[0]&5)throw Pt[1];return{value:Pt[0]?Pt[1]:void 0,done:!0}}}function C(q,J,ee){if(ee||arguments.length===2)for(var $=0,_e=J.length,Pe;$<_e;$++)(Pe||!($ in J))&&(Pe||(Pe=Array.prototype.slice.call(J,0,$)),Pe[$]=J[$]);return q.concat(Pe||J)}for(var b=function(){function q(J,ee,$,_e){this.left=J,this.top=ee,this.width=$,this.height=_e}return q.prototype.add=function(J,ee,$,_e){return new q(this.left+J,this.top+ee,this.width+$,this.height+_e)},q.fromClientRect=function(J,ee){return new q(ee.left+J.windowBounds.left,ee.top+J.windowBounds.top,ee.width,ee.height)},q.fromDOMRectList=function(J,ee){var $=Array.from(ee).find(function(_e){return _e.width!==0});return $?new q($.left+J.windowBounds.left,$.top+J.windowBounds.top,$.width,$.height):q.EMPTY},q.EMPTY=new q(0,0,0,0),q}(),f=function(q,J){return b.fromClientRect(q,J.getBoundingClientRect())},l=function(q){var J=q.body,ee=q.documentElement;if(!J||!ee)throw new Error("Unable to get document size");var $=Math.max(Math.max(J.scrollWidth,ee.scrollWidth),Math.max(J.offsetWidth,ee.offsetWidth),Math.max(J.clientWidth,ee.clientWidth)),_e=Math.max(Math.max(J.scrollHeight,ee.scrollHeight),Math.max(J.offsetHeight,ee.offsetHeight),Math.max(J.clientHeight,ee.clientHeight));return new b(0,0,$,_e)},r=function(q){for(var J=[],ee=0,$=q.length;ee<$;){var _e=q.charCodeAt(ee++);if(_e>=55296&&_e<=56319&&ee<$){var Pe=q.charCodeAt(ee++);(Pe&64512)===56320?J.push(((_e&1023)<<10)+(Pe&1023)+65536):(J.push(_e),ee--)}else J.push(_e)}return J},n=function(){for(var q=[],J=0;J<arguments.length;J++)q[J]=arguments[J];if(String.fromCodePoint)return String.fromCodePoint.apply(String,q);var ee=q.length;if(!ee)return"";for(var $=[],_e=-1,Pe="";++_e<ee;){var tt=q[_e];tt<=65535?$.push(tt):(tt-=65536,$.push((tt>>10)+55296,tt%1024+56320)),(_e+1===ee||$.length>16384)&&(Pe+=String.fromCharCode.apply(String,$),$.length=0)}return Pe},e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),u=0;u<e.length;u++)s[e.charCodeAt(u)]=u;for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),d=0;d<a.length;d++)A[a.charCodeAt(d)]=d;for(var i=function(q){var J=q.length*.75,ee=q.length,$,_e=0,Pe,tt,mt,pt;q[q.length-1]==="="&&(J--,q[q.length-2]==="="&&J--);var Pt=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(J):new Array(J),Qt=Array.isArray(Pt)?Pt:new Uint8Array(Pt);for($=0;$<ee;$+=4)Pe=A[q.charCodeAt($)],tt=A[q.charCodeAt($+1)],mt=A[q.charCodeAt($+2)],pt=A[q.charCodeAt($+3)],Qt[_e++]=Pe<<2|tt>>4,Qt[_e++]=(tt&15)<<4|mt>>2,Qt[_e++]=(mt&3)<<6|pt&63;return Pt},h=function(q){for(var J=q.length,ee=[],$=0;$<J;$+=2)ee.push(q[$+1]<<8|q[$]);return ee},y=function(q){for(var J=q.length,ee=[],$=0;$<J;$+=4)ee.push(q[$+3]<<24|q[$+2]<<16|q[$+1]<<8|q[$]);return ee},v=5,x=6+5,S=2,B=x-v,w=65536>>v,m=1<<v,c=m-1,o=1024>>v,_=w+o,D=_,T=2048>>6,O=D+T,R=65536>>x,U=1<<B,F=U-1,Y=function(q,J,ee){return q.slice?q.slice(J,ee):new Uint16Array(Array.prototype.slice.call(q,J,ee))},k=function(q,J,ee){return q.slice?q.slice(J,ee):new Uint32Array(Array.prototype.slice.call(q,J,ee))},K=function(q,J){var ee=i(q),$=Array.isArray(ee)?y(ee):new Uint32Array(ee),_e=Array.isArray(ee)?h(ee):new Uint16Array(ee),Pe=24,tt=Y(_e,Pe/2,$[4]/2),mt=$[5]===2?Y(_e,(Pe+$[4])/2):k($,Math.ceil((Pe+$[4])/4));return new z($[0],$[1],$[2],$[3],tt,mt)},z=function(){function q(J,ee,$,_e,Pe,tt){this.initialValue=J,this.errorValue=ee,this.highStart=$,this.highValueIndex=_e,this.index=Pe,this.data=tt}return q.prototype.get=function(J){var ee;if(J>=0){if(J<55296||J>56319&&J<=65535)return ee=this.index[J>>v],ee=(ee<<S)+(J&c),this.data[ee];if(J<=65535)return ee=this.index[w+(J-55296>>v)],ee=(ee<<S)+(J&c),this.data[ee];if(J<this.highStart)return ee=O-R+(J>>x),ee=this.index[ee],ee+=J>>v&F,ee=this.index[ee],ee=(ee<<S)+(J&c),this.data[ee];if(J<=1114111)return this.data[this.highValueIndex]}return this.errorValue},q}(),j="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Q=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),X=0;X<j.length;X++)Q[j.charCodeAt(X)]=X;var te="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==",oe=50,fe=1,le=2,we=3,Ae=4,be=5,me=7,he=8,ie=9,pe=10,ye=11,de=12,Me=13,ke=14,Ue=15,re=16,N=17,W=18,ce=19,ne=20,ue=21,De=22,ze=23,wt=24,He=25,Xe=26,gt=27,_t=28,ct=29,lt=30,rt=31,Ze=32,qe=33,Le=34,je=35,Ne=36,$e=37,At=38,Bt=39,Nt=40,It=41,jt=42,xt=43,Lt=[9001,65288],St="!",dt="\xD7",yt="\xF7",Fe=K(te),et=[lt,Ne],Ot=[fe,le,we,be],Et=[pe,he],Ut=[gt,Xe],Wt=Ot.concat(Et),bt=[At,Bt,Nt,Le,je],Gt=[Ue,Me],un=function(q,J){J===void 0&&(J="strict");var ee=[],$=[],_e=[];return q.forEach(function(Pe,tt){var mt=Fe.get(Pe);if(mt>oe?(_e.push(!0),mt-=oe):_e.push(!1),["normal","auto","loose"].indexOf(J)!==-1&&[8208,8211,12316,12448].indexOf(Pe)!==-1)return $.push(tt),ee.push(re);if(mt===Ae||mt===ye){if(tt===0)return $.push(tt),ee.push(lt);var pt=ee[tt-1];return Wt.indexOf(pt)===-1?($.push($[tt-1]),ee.push(pt)):($.push(tt),ee.push(lt))}if($.push(tt),mt===rt)return ee.push(J==="strict"?ue:$e);if(mt===jt)return ee.push(lt);if(mt===ct)return ee.push(lt);if(mt===xt)return Pe>=131072&&Pe<=196605||Pe>=196608&&Pe<=262141?ee.push($e):ee.push(lt);ee.push(mt)}),[$,ee,_e]},jn=function(q,J,ee,$){var _e=$[ee];if(Array.isArray(q)?q.indexOf(_e)!==-1:q===_e)for(var Pe=ee;Pe<=$.length;){Pe++;var tt=$[Pe];if(tt===J)return!0;if(tt!==pe)break}if(_e===pe)for(var Pe=ee;Pe>0;){Pe--;var mt=$[Pe];if(Array.isArray(q)?q.indexOf(mt)!==-1:q===mt)for(var pt=ee;pt<=$.length;){pt++;var tt=$[pt];if(tt===J)return!0;if(tt!==pe)break}if(mt!==pe)break}return!1},Bn=function(q,J){for(var ee=q;ee>=0;){var $=J[ee];if($===pe)ee--;else return $}return 0},Nr=function(q,J,ee,$,_e){if(ee[$]===0)return dt;var Pe=$-1;if(Array.isArray(_e)&&_e[Pe]===!0)return dt;var tt=Pe-1,mt=Pe+1,pt=J[Pe],Pt=tt>=0?J[tt]:0,Qt=J[mt];if(pt===le&&Qt===we)return dt;if(Ot.indexOf(pt)!==-1)return St;if(Ot.indexOf(Qt)!==-1)return dt;if(Et.indexOf(Qt)!==-1)return dt;if(Bn(Pe,J)===he)return yt;if(Fe.get(q[Pe])===ye)return dt;if((pt===Ze||pt===qe)&&Fe.get(q[mt])===ye)return dt;if(pt===me||Qt===me)return dt;if(pt===ie)return dt;if([pe,Me,Ue].indexOf(pt)===-1&&Qt===ie)return dt;if([N,W,ce,wt,_t].indexOf(Qt)!==-1)return dt;if(Bn(Pe,J)===De)return dt;if(jn(ze,De,Pe,J))return dt;if(jn([N,W],ue,Pe,J))return dt;if(jn(de,de,Pe,J))return dt;if(pt===pe)return yt;if(pt===ze||Qt===ze)return dt;if(Qt===re||pt===re)return yt;if([Me,Ue,ue].indexOf(Qt)!==-1||pt===ke)return dt;if(Pt===Ne&&Gt.indexOf(pt)!==-1)return dt;if(pt===_t&&Qt===Ne)return dt;if(Qt===ne)return dt;if(et.indexOf(Qt)!==-1&&pt===He||et.indexOf(pt)!==-1&&Qt===He)return dt;if(pt===gt&&[$e,Ze,qe].indexOf(Qt)!==-1||[$e,Ze,qe].indexOf(pt)!==-1&&Qt===Xe)return dt;if(et.indexOf(pt)!==-1&&Ut.indexOf(Qt)!==-1||Ut.indexOf(pt)!==-1&&et.indexOf(Qt)!==-1)return dt;if([gt,Xe].indexOf(pt)!==-1&&(Qt===He||[De,Ue].indexOf(Qt)!==-1&&J[mt+1]===He)||[De,Ue].indexOf(pt)!==-1&&Qt===He||pt===He&&[He,_t,wt].indexOf(Qt)!==-1)return dt;if([He,_t,wt,N,W].indexOf(Qt)!==-1)for(var qt=Pe;qt>=0;){var tn=J[qt];if(tn===He)return dt;if([_t,wt].indexOf(tn)!==-1)qt--;else break}if([gt,Xe].indexOf(Qt)!==-1)for(var qt=[N,W].indexOf(pt)!==-1?tt:Pe;qt>=0;){var tn=J[qt];if(tn===He)return dt;if([_t,wt].indexOf(tn)!==-1)qt--;else break}if(At===pt&&[At,Bt,Le,je].indexOf(Qt)!==-1||[Bt,Le].indexOf(pt)!==-1&&[Bt,Nt].indexOf(Qt)!==-1||[Nt,je].indexOf(pt)!==-1&&Qt===Nt)return dt;if(bt.indexOf(pt)!==-1&&[ne,Xe].indexOf(Qt)!==-1||bt.indexOf(Qt)!==-1&&pt===gt)return dt;if(et.indexOf(pt)!==-1&&et.indexOf(Qt)!==-1)return dt;if(pt===wt&&et.indexOf(Qt)!==-1)return dt;if(et.concat(He).indexOf(pt)!==-1&&Qt===De&&Lt.indexOf(q[mt])===-1||et.concat(He).indexOf(Qt)!==-1&&pt===W)return dt;if(pt===It&&Qt===It){for(var gr=ee[Pe],kn=1;gr>0&&(gr--,J[gr]===It);)kn++;if(kn%2!==0)return dt}return pt===Ze&&Qt===qe?dt:yt},zr=function(q,J){J||(J={lineBreak:"normal",wordBreak:"normal"});var ee=un(q,J.lineBreak),$=ee[0],_e=ee[1],Pe=ee[2];(J.wordBreak==="break-all"||J.wordBreak==="break-word")&&(_e=_e.map(function(mt){return[He,lt,jt].indexOf(mt)!==-1?$e:mt}));var tt=J.wordBreak==="keep-all"?Pe.map(function(mt,pt){return mt&&q[pt]>=19968&&q[pt]<=40959}):void 0;return[$,_e,tt]},_r=function(){function q(J,ee,$,_e){this.codePoints=J,this.required=ee===St,this.start=$,this.end=_e}return q.prototype.slice=function(){return n.apply(void 0,this.codePoints.slice(this.start,this.end))},q}(),Rn=function(q,J){var ee=r(q),$=zr(ee,J),_e=$[0],Pe=$[1],tt=$[2],mt=ee.length,pt=0,Pt=0;return{next:function(){if(Pt>=mt)return{done:!0,value:null};for(var Qt=dt;Pt<mt&&(Qt=Nr(ee,Pe,_e,++Pt,tt))===dt;);if(Qt!==dt||Pt===mt){var qt=new _r(ee,Qt,pt,Pt);return pt=Pt,{value:qt,done:!1}}return{done:!0,value:null}}}},ea=1<<0,Aa=1<<1,pa=1<<2,Kr=1<<3,Ea=10,Za=47,fi=92,Re=9,Qe=32,it=34,Tt=61,Vt=35,rn=36,ve=37,G=39,Z=40,ge=41,Se=95,Ee=45,ft=33,Kt=60,Rt=62,mn=64,Yt=91,Jn=93,Hn=61,$n=123,wr=63,aa=125,Br=124,ta=126,Sr=128,ma=65533,la=42,ja=43,Sa=44,Ua=58,ka=59,Ca=46,Jr=0,Wa=8,Ma=11,Ta=14,ui=31,Ai=127,Ba=-1,Xr=48,hr=97,Yr=101,na=102,La=117,ia=122,eo=65,za=69,Ga=70,Qi=85,wo=90,wa=function(q){return q>=Xr&&q<=57},Ro=function(q){return q>=55296&&q<=57343},Di=function(q){return wa(q)||q>=eo&&q<=Ga||q>=hr&&q<=na},$o=function(q){return q>=hr&&q<=ia},Fi=function(q){return q>=eo&&q<=wo},ls=function(q){return $o(q)||Fi(q)},uo=function(q){return q>=Sr},Mi=function(q){return q===Ea||q===Re||q===Qe},Go=function(q){return ls(q)||uo(q)||q===Se},ps=function(q){return Go(q)||wa(q)||q===Ee},qa=function(q){return q>=Jr&&q<=Wa||q===Ma||q>=Ta&&q<=ui||q===Ai},to=function(q,J){return q!==fi?!1:J!==Ea},Vo=function(q,J,ee){return q===Ee?Go(J)||to(J,ee):Go(q)?!0:!!(q===fi&&to(q,J))},Xo=function(q,J,ee){return q===ja||q===Ee?wa(J)?!0:J===Ca&&wa(ee):q===Ca?wa(J):wa(q)},ur=function(q){var J=0,ee=1;(q[J]===ja||q[J]===Ee)&&(q[J]===Ee&&(ee=-1),J++);for(var $=[];wa(q[J]);)$.push(q[J++]);var _e=$.length?parseInt(n.apply(void 0,$),10):0;q[J]===Ca&&J++;for(var Pe=[];wa(q[J]);)Pe.push(q[J++]);var tt=Pe.length,mt=tt?parseInt(n.apply(void 0,Pe),10):0;(q[J]===za||q[J]===Yr)&&J++;var pt=1;(q[J]===ja||q[J]===Ee)&&(q[J]===Ee&&(pt=-1),J++);for(var Pt=[];wa(q[J]);)Pt.push(q[J++]);var Qt=Pt.length?parseInt(n.apply(void 0,Pt),10):0;return ee*(_e+mt*Math.pow(10,-tt))*Math.pow(10,pt*Qt)},Fr={type:2},xr={type:3},oa={type:4},va={type:13},xa={type:8},ca={type:21},Fa={type:9},Si={type:10},sa={type:11},Io={type:12},br={type:14},Pr={type:23},Qr={type:1},$a={type:25},Mo={type:24},us={type:26},Is={type:27},xs={type:28},js={type:29},Zs={type:31},cs={type:32},dl=function(){function q(){this._value=[]}return q.prototype.write=function(J){this._value=this._value.concat(r(J))},q.prototype.read=function(){for(var J=[],ee=this.consumeToken();ee!==cs;)J.push(ee),ee=this.consumeToken();return J},q.prototype.consumeToken=function(){var J=this.consumeCodePoint();switch(J){case it:return this.consumeStringToken(it);case Vt:var ee=this.peekCodePoint(0),$=this.peekCodePoint(1),_e=this.peekCodePoint(2);if(ps(ee)||to($,_e)){var Pe=Vo(ee,$,_e)?Aa:ea,tt=this.consumeName();return{type:5,value:tt,flags:Pe}}break;case rn:if(this.peekCodePoint(0)===Tt)return this.consumeCodePoint(),va;break;case G:return this.consumeStringToken(G);case Z:return Fr;case ge:return xr;case la:if(this.peekCodePoint(0)===Tt)return this.consumeCodePoint(),br;break;case ja:if(Xo(J,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(J),this.consumeNumericToken();break;case Sa:return oa;case Ee:var mt=J,pt=this.peekCodePoint(0),Pt=this.peekCodePoint(1);if(Xo(mt,pt,Pt))return this.reconsumeCodePoint(J),this.consumeNumericToken();if(Vo(mt,pt,Pt))return this.reconsumeCodePoint(J),this.consumeIdentLikeToken();if(pt===Ee&&Pt===Rt)return this.consumeCodePoint(),this.consumeCodePoint(),Mo;break;case Ca:if(Xo(J,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(J),this.consumeNumericToken();break;case Za:if(this.peekCodePoint(0)===la)for(this.consumeCodePoint();;){var Qt=this.consumeCodePoint();if(Qt===la&&(Qt=this.consumeCodePoint(),Qt===Za))return this.consumeToken();if(Qt===Ba)return this.consumeToken()}break;case Ua:return us;case ka:return Is;case Kt:if(this.peekCodePoint(0)===ft&&this.peekCodePoint(1)===Ee&&this.peekCodePoint(2)===Ee)return this.consumeCodePoint(),this.consumeCodePoint(),$a;break;case mn:var qt=this.peekCodePoint(0),tn=this.peekCodePoint(1),gr=this.peekCodePoint(2);if(Vo(qt,tn,gr)){var tt=this.consumeName();return{type:7,value:tt}}break;case Yt:return xs;case fi:if(to(J,this.peekCodePoint(0)))return this.reconsumeCodePoint(J),this.consumeIdentLikeToken();break;case Jn:return js;case Hn:if(this.peekCodePoint(0)===Tt)return this.consumeCodePoint(),xa;break;case $n:return sa;case aa:return Io;case La:case Qi:var kn=this.peekCodePoint(0),lr=this.peekCodePoint(1);return kn===ja&&(Di(lr)||lr===wr)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(J),this.consumeIdentLikeToken();case Br:if(this.peekCodePoint(0)===Tt)return this.consumeCodePoint(),Fa;if(this.peekCodePoint(0)===Br)return this.consumeCodePoint(),ca;break;case ta:if(this.peekCodePoint(0)===Tt)return this.consumeCodePoint(),Si;break;case Ba:return cs}return Mi(J)?(this.consumeWhiteSpace(),Zs):wa(J)?(this.reconsumeCodePoint(J),this.consumeNumericToken()):Go(J)?(this.reconsumeCodePoint(J),this.consumeIdentLikeToken()):{type:6,value:n(J)}},q.prototype.consumeCodePoint=function(){var J=this._value.shift();return typeof J=="undefined"?-1:J},q.prototype.reconsumeCodePoint=function(J){this._value.unshift(J)},q.prototype.peekCodePoint=function(J){return J>=this._value.length?-1:this._value[J]},q.prototype.consumeUnicodeRangeToken=function(){for(var J=[],ee=this.consumeCodePoint();Di(ee)&&J.length<6;)J.push(ee),ee=this.consumeCodePoint();for(var $=!1;ee===wr&&J.length<6;)J.push(ee),ee=this.consumeCodePoint(),$=!0;if($){var _e=parseInt(n.apply(void 0,J.map(function(pt){return pt===wr?Xr:pt})),16),Pe=parseInt(n.apply(void 0,J.map(function(pt){return pt===wr?Ga:pt})),16);return{type:30,start:_e,end:Pe}}var tt=parseInt(n.apply(void 0,J),16);if(this.peekCodePoint(0)===Ee&&Di(this.peekCodePoint(1))){this.consumeCodePoint(),ee=this.consumeCodePoint();for(var mt=[];Di(ee)&&mt.length<6;)mt.push(ee),ee=this.consumeCodePoint();var Pe=parseInt(n.apply(void 0,mt),16);return{type:30,start:tt,end:Pe}}else return{type:30,start:tt,end:tt}},q.prototype.consumeIdentLikeToken=function(){var J=this.consumeName();return J.toLowerCase()==="url"&&this.peekCodePoint(0)===Z?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Z?(this.consumeCodePoint(),{type:19,value:J}):{type:20,value:J}},q.prototype.consumeUrlToken=function(){var J=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ba)return{type:22,value:""};var ee=this.peekCodePoint(0);if(ee===G||ee===it){var $=this.consumeStringToken(this.consumeCodePoint());return $.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ba||this.peekCodePoint(0)===ge)?(this.consumeCodePoint(),{type:22,value:$.value}):(this.consumeBadUrlRemnants(),Pr)}for(;;){var _e=this.consumeCodePoint();if(_e===Ba||_e===ge)return{type:22,value:n.apply(void 0,J)};if(Mi(_e))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ba||this.peekCodePoint(0)===ge?(this.consumeCodePoint(),{type:22,value:n.apply(void 0,J)}):(this.consumeBadUrlRemnants(),Pr);if(_e===it||_e===G||_e===Z||qa(_e))return this.consumeBadUrlRemnants(),Pr;if(_e===fi)if(to(_e,this.peekCodePoint(0)))J.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Pr;else J.push(_e)}},q.prototype.consumeWhiteSpace=function(){for(;Mi(this.peekCodePoint(0));)this.consumeCodePoint()},q.prototype.consumeBadUrlRemnants=function(){for(;;){var J=this.consumeCodePoint();if(J===ge||J===Ba)return;to(J,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},q.prototype.consumeStringSlice=function(J){for(var ee=5e4,$="";J>0;){var _e=Math.min(ee,J);$+=n.apply(void 0,this._value.splice(0,_e)),J-=_e}return this._value.shift(),$},q.prototype.consumeStringToken=function(J){var ee="",$=0;do{var _e=this._value[$];if(_e===Ba||_e===void 0||_e===J)return ee+=this.consumeStringSlice($),{type:0,value:ee};if(_e===Ea)return this._value.splice(0,$),Qr;if(_e===fi){var Pe=this._value[$+1];Pe!==Ba&&Pe!==void 0&&(Pe===Ea?(ee+=this.consumeStringSlice($),$=-1,this._value.shift()):to(_e,Pe)&&(ee+=this.consumeStringSlice($),ee+=n(this.consumeEscapedCodePoint()),$=-1))}$++}while(!0)},q.prototype.consumeNumber=function(){var J=[],ee=pa,$=this.peekCodePoint(0);for(($===ja||$===Ee)&&J.push(this.consumeCodePoint());wa(this.peekCodePoint(0));)J.push(this.consumeCodePoint());$=this.peekCodePoint(0);var _e=this.peekCodePoint(1);if($===Ca&&wa(_e))for(J.push(this.consumeCodePoint(),this.consumeCodePoint()),ee=Kr;wa(this.peekCodePoint(0));)J.push(this.consumeCodePoint());$=this.peekCodePoint(0),_e=this.peekCodePoint(1);var Pe=this.peekCodePoint(2);if(($===za||$===Yr)&&((_e===ja||_e===Ee)&&wa(Pe)||wa(_e)))for(J.push(this.consumeCodePoint(),this.consumeCodePoint()),ee=Kr;wa(this.peekCodePoint(0));)J.push(this.consumeCodePoint());return[ur(J),ee]},q.prototype.consumeNumericToken=function(){var J=this.consumeNumber(),ee=J[0],$=J[1],_e=this.peekCodePoint(0),Pe=this.peekCodePoint(1),tt=this.peekCodePoint(2);if(Vo(_e,Pe,tt)){var mt=this.consumeName();return{type:15,number:ee,flags:$,unit:mt}}return _e===ve?(this.consumeCodePoint(),{type:16,number:ee,flags:$}):{type:17,number:ee,flags:$}},q.prototype.consumeEscapedCodePoint=function(){var J=this.consumeCodePoint();if(Di(J)){for(var ee=n(J);Di(this.peekCodePoint(0))&&ee.length<6;)ee+=n(this.consumeCodePoint());Mi(this.peekCodePoint(0))&&this.consumeCodePoint();var $=parseInt(ee,16);return $===0||Ro($)||$>1114111?ma:$}return J===Ba?ma:J},q.prototype.consumeName=function(){for(var J="";;){var ee=this.consumeCodePoint();if(ps(ee))J+=n(ee);else if(to(ee,this.peekCodePoint(0)))J+=n(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(ee),J}},q}(),$s=function(){function q(J){this._tokens=J}return q.create=function(J){var ee=new dl;return ee.write(J),new q(ee.read())},q.parseValue=function(J){return q.create(J).parseComponentValue()},q.parseValues=function(J){return q.create(J).parseComponentValues()},q.prototype.parseComponentValue=function(){for(var J=this.consumeToken();J.type===31;)J=this.consumeToken();if(J.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(J);var ee=this.consumeComponentValue();do J=this.consumeToken();while(J.type===31);if(J.type===32)return ee;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},q.prototype.parseComponentValues=function(){for(var J=[];;){var ee=this.consumeComponentValue();if(ee.type===32)return J;J.push(ee),J.push()}},q.prototype.consumeComponentValue=function(){var J=this.consumeToken();switch(J.type){case 11:case 28:case 2:return this.consumeSimpleBlock(J.type);case 19:return this.consumeFunction(J)}return J},q.prototype.consumeSimpleBlock=function(J){for(var ee={type:J,values:[]},$=this.consumeToken();;){if($.type===32||Ye($,J))return ee;this.reconsumeToken($),ee.values.push(this.consumeComponentValue()),$=this.consumeToken()}},q.prototype.consumeFunction=function(J){for(var ee={name:J.value,values:[],type:18};;){var $=this.consumeToken();if($.type===32||$.type===3)return ee;this.reconsumeToken($),ee.values.push(this.consumeComponentValue())}},q.prototype.consumeToken=function(){var J=this._tokens.shift();return typeof J=="undefined"?cs:J},q.prototype.reconsumeToken=function(J){this._tokens.unshift(J)},q}(),xo=function(q){return q.type===15},ms=function(q){return q.type===17},Ha=function(q){return q.type===20},_s=function(q){return q.type===0},_o=function(q,J){return Ha(q)&&q.value===J},Hs=function(q){return q.type!==31},ut=function(q){return q.type!==31&&q.type!==4},Ge=function(q){var J=[],ee=[];return q.forEach(function($){if($.type===4){if(ee.length===0)throw new Error("Error parsing function args, zero tokens for arg");J.push(ee),ee=[];return}$.type!==31&&ee.push($)}),ee.length&&J.push(ee),J},Ye=function(q,J){return J===11&&q.type===12||J===28&&q.type===29?!0:J===2&&q.type===3},Je=function(q){return q.type===17||q.type===15},Te=function(q){return q.type===16||Je(q)},Ve=function(q){return q.length>1?[q[0],q[1]]:[q[0]]},Be={type:17,number:0,flags:pa},at={type:16,number:50,flags:pa},nt={type:16,number:100,flags:pa},st=function(q,J,ee){var $=q[0],_e=q[1];return[ot($,J),ot(typeof _e!="undefined"?_e:$,ee)]},ot=function(q,J){if(q.type===16)return q.number/100*J;if(xo(q))switch(q.unit){case"rem":case"em":return 16*q.number;case"px":default:return q.number}return q.number},ht="deg",Mt="grad",zt="rad",Dt="turn",en={name:"angle",parse:function(q,J){if(J.type===15)switch(J.unit){case ht:return Math.PI*J.number/180;case Mt:return Math.PI/200*J.number;case zt:return J.number;case Dt:return Math.PI*2*J.number}throw new Error("Unsupported angle type")}},ln=function(q){return q.type===15&&(q.unit===ht||q.unit===Mt||q.unit===zt||q.unit===Dt)},Sn=function(q){var J=q.filter(Ha).map(function(ee){return ee.value}).join(" ");switch(J){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Be,Be];case"to top":case"bottom":return Xt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Be,nt];case"to right":case"left":return Xt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[nt,nt];case"to bottom":case"top":return Xt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[nt,Be];case"to left":case"right":return Xt(270)}return 0},Xt=function(q){return Math.PI*q/180},$t={name:"color",parse:function(q,J){if(J.type===18){var ee=hn[J.name];if(typeof ee=="undefined")throw new Error('Attempting to parse an unsupported color function "'+J.name+'"');return ee(q,J.values)}if(J.type===5){if(J.value.length===3){var $=J.value.substring(0,1),_e=J.value.substring(1,2),Pe=J.value.substring(2,3);return nn(parseInt($+$,16),parseInt(_e+_e,16),parseInt(Pe+Pe,16),1)}if(J.value.length===4){var $=J.value.substring(0,1),_e=J.value.substring(1,2),Pe=J.value.substring(2,3),tt=J.value.substring(3,4);return nn(parseInt($+$,16),parseInt(_e+_e,16),parseInt(Pe+Pe,16),parseInt(tt+tt,16)/255)}if(J.value.length===6){var $=J.value.substring(0,2),_e=J.value.substring(2,4),Pe=J.value.substring(4,6);return nn(parseInt($,16),parseInt(_e,16),parseInt(Pe,16),1)}if(J.value.length===8){var $=J.value.substring(0,2),_e=J.value.substring(2,4),Pe=J.value.substring(4,6),tt=J.value.substring(6,8);return nn(parseInt($,16),parseInt(_e,16),parseInt(Pe,16),parseInt(tt,16)/255)}}if(J.type===20){var mt=Cn[J.value.toUpperCase()];if(typeof mt!="undefined")return mt}return Cn.TRANSPARENT}},gn=function(q){return(255&q)===0},On=function(q){var J=255&q,ee=255&q>>8,$=255&q>>16,_e=255&q>>24;return J<255?"rgba("+_e+","+$+","+ee+","+J/255+")":"rgb("+_e+","+$+","+ee+")"},nn=function(q,J,ee,$){return(q<<24|J<<16|ee<<8|Math.round($*255)<<0)>>>0},yn=function(q,J){if(q.type===17)return q.number;if(q.type===16){var ee=J===3?1:255;return J===3?q.number/100*ee:Math.round(q.number/100*ee)}return 0},Ln=function(q,J){var ee=J.filter(ut);if(ee.length===3){var $=ee.map(yn),_e=$[0],Pe=$[1],tt=$[2];return nn(_e,Pe,tt,1)}if(ee.length===4){var mt=ee.map(yn),_e=mt[0],Pe=mt[1],tt=mt[2],pt=mt[3];return nn(_e,Pe,tt,pt)}return 0};function Gn(q,J,ee){return ee<0&&(ee+=1),ee>=1&&(ee-=1),ee<1/6?(J-q)*ee*6+q:ee<1/2?J:ee<2/3?(J-q)*6*(2/3-ee)+q:q}var an=function(q,J){var ee=J.filter(ut),$=ee[0],_e=ee[1],Pe=ee[2],tt=ee[3],mt=($.type===17?Xt($.number):en.parse(q,$))/(Math.PI*2),pt=Te(_e)?_e.number/100:0,Pt=Te(Pe)?Pe.number/100:0,Qt=typeof tt!="undefined"&&Te(tt)?ot(tt,1):1;if(pt===0)return nn(Pt*255,Pt*255,Pt*255,1);var qt=Pt<=.5?Pt*(pt+1):Pt+pt-Pt*pt,tn=Pt*2-qt,gr=Gn(tn,qt,mt+1/3),kn=Gn(tn,qt,mt),lr=Gn(tn,qt,mt-1/3);return nn(gr*255,kn*255,lr*255,Qt)},hn={hsl:an,hsla:an,rgb:Ln,rgba:Ln},fn=function(q,J){return $t.parse(q,$s.create(J).parseComponentValue())},Cn={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(q,J){return J.map(function(ee){if(Ha(ee))switch(ee.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},cn={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Un=function(q,J){var ee=$t.parse(q,J[0]),$=J[1];return $&&Te($)?{color:ee,stop:$}:{color:ee,stop:null}},Dr=function(q,J){var ee=q[0],$=q[q.length-1];ee.stop===null&&(ee.stop=Be),$.stop===null&&($.stop=nt);for(var _e=[],Pe=0,tt=0;tt<q.length;tt++){var mt=q[tt].stop;if(mt!==null){var pt=ot(mt,J);pt>Pe?_e.push(pt):_e.push(Pe),Pe=pt}else _e.push(null)}for(var Pt=null,tt=0;tt<_e.length;tt++){var Qt=_e[tt];if(Qt===null)Pt===null&&(Pt=tt);else if(Pt!==null){for(var qt=tt-Pt,tn=_e[Pt-1],gr=(Qt-tn)/(qt+1),kn=1;kn<=qt;kn++)_e[Pt+kn-1]=gr*kn;Pt=null}}return q.map(function(lr,qr){var pr=lr.color;return{color:pr,stop:Math.max(Math.min(1,_e[qr]/J),0)}})},cr=function(q,J,ee){var $=J/2,_e=ee/2,Pe=ot(q[0],J)-$,tt=_e-ot(q[1],ee);return(Math.atan2(tt,Pe)+Math.PI*2)%(Math.PI*2)},Tr=function(q,J,ee){var $=typeof q=="number"?q:cr(q,J,ee),_e=Math.abs(J*Math.sin($))+Math.abs(ee*Math.cos($)),Pe=J/2,tt=ee/2,mt=_e/2,pt=Math.sin($-Math.PI/2)*mt,Pt=Math.cos($-Math.PI/2)*mt;return[_e,Pe-Pt,Pe+Pt,tt-pt,tt+pt]},or=function(q,J){return Math.sqrt(q*q+J*J)},kr=function(q,J,ee,$,_e){var Pe=[[0,0],[0,J],[q,0],[q,J]];return Pe.reduce(function(tt,mt){var pt=mt[0],Pt=mt[1],Qt=or(ee-pt,$-Pt);return(_e?Qt<tt.optimumDistance:Qt>tt.optimumDistance)?{optimumCorner:mt,optimumDistance:Qt}:tt},{optimumDistance:_e?Infinity:-Infinity,optimumCorner:null}).optimumCorner},Qn=function(q,J,ee,$,_e){var Pe=0,tt=0;switch(q.size){case 0:q.shape===0?Pe=tt=Math.min(Math.abs(J),Math.abs(J-$),Math.abs(ee),Math.abs(ee-_e)):q.shape===1&&(Pe=Math.min(Math.abs(J),Math.abs(J-$)),tt=Math.min(Math.abs(ee),Math.abs(ee-_e)));break;case 2:if(q.shape===0)Pe=tt=Math.min(or(J,ee),or(J,ee-_e),or(J-$,ee),or(J-$,ee-_e));else if(q.shape===1){var mt=Math.min(Math.abs(ee),Math.abs(ee-_e))/Math.min(Math.abs(J),Math.abs(J-$)),pt=kr($,_e,J,ee,!0),Pt=pt[0],Qt=pt[1];Pe=or(Pt-J,(Qt-ee)/mt),tt=mt*Pe}break;case 1:q.shape===0?Pe=tt=Math.max(Math.abs(J),Math.abs(J-$),Math.abs(ee),Math.abs(ee-_e)):q.shape===1&&(Pe=Math.max(Math.abs(J),Math.abs(J-$)),tt=Math.max(Math.abs(ee),Math.abs(ee-_e)));break;case 3:if(q.shape===0)Pe=tt=Math.max(or(J,ee),or(J,ee-_e),or(J-$,ee),or(J-$,ee-_e));else if(q.shape===1){var mt=Math.max(Math.abs(ee),Math.abs(ee-_e))/Math.max(Math.abs(J),Math.abs(J-$)),qt=kr($,_e,J,ee,!1),Pt=qt[0],Qt=qt[1];Pe=or(Pt-J,(Qt-ee)/mt),tt=mt*Pe}break}return Array.isArray(q.size)&&(Pe=ot(q.size[0],$),tt=q.size.length===2?ot(q.size[1],_e):Pe),[Pe,tt]},Ur=function(q,J){var ee=Xt(180),$=[];return Ge(J).forEach(function(_e,Pe){if(Pe===0){var tt=_e[0];if(tt.type===20&&tt.value==="to"){ee=Sn(_e);return}else if(ln(tt)){ee=en.parse(q,tt);return}}var mt=Un(q,_e);$.push(mt)}),{angle:ee,stops:$,type:1}},$r=function(q,J){var ee=Xt(180),$=[];return Ge(J).forEach(function(_e,Pe){if(Pe===0){var tt=_e[0];if(tt.type===20&&["top","left","right","bottom"].indexOf(tt.value)!==-1){ee=Sn(_e);return}else if(ln(tt)){ee=(en.parse(q,tt)+Xt(270))%Xt(360);return}}var mt=Un(q,_e);$.push(mt)}),{angle:ee,stops:$,type:1}},Gr=function(q,J){var ee=Xt(180),$=[],_e=1,Pe=0,tt=3,mt=[];return Ge(J).forEach(function(pt,Pt){var Qt=pt[0];if(Pt===0){if(Ha(Qt)&&Qt.value==="linear"){_e=1;return}else if(Ha(Qt)&&Qt.value==="radial"){_e=2;return}}if(Qt.type===18){if(Qt.name==="from"){var qt=$t.parse(q,Qt.values[0]);$.push({stop:Be,color:qt})}else if(Qt.name==="to"){var qt=$t.parse(q,Qt.values[0]);$.push({stop:nt,color:qt})}else if(Qt.name==="color-stop"){var tn=Qt.values.filter(ut);if(tn.length===2){var qt=$t.parse(q,tn[1]),gr=tn[0];ms(gr)&&$.push({stop:{type:16,number:gr.number*100,flags:gr.flags},color:qt})}}}}),_e===1?{angle:(ee+Xt(180))%Xt(360),stops:$,type:_e}:{size:tt,shape:Pe,stops:$,position:mt,type:_e}},mr="closest-side",Tn="farthest-side",tr="closest-corner",Mr="farthest-corner",Fn="circle",Zn="ellipse",nr="cover",Yn="contain",Kn=function(q,J){var ee=0,$=3,_e=[],Pe=[];return Ge(J).forEach(function(tt,mt){var pt=!0;if(mt===0){var Pt=!1;pt=tt.reduce(function(qt,tn){if(Pt)if(Ha(tn))switch(tn.value){case"center":return Pe.push(at),qt;case"top":case"left":return Pe.push(Be),qt;case"right":case"bottom":return Pe.push(nt),qt}else(Te(tn)||Je(tn))&&Pe.push(tn);else if(Ha(tn))switch(tn.value){case Fn:return ee=0,!1;case Zn:return ee=1,!1;case"at":return Pt=!0,!1;case mr:return $=0,!1;case nr:case Tn:return $=1,!1;case Yn:case tr:return $=2,!1;case Mr:return $=3,!1}else if(Je(tn)||Te(tn))return Array.isArray($)||($=[]),$.push(tn),!1;return qt},pt)}if(pt){var Qt=Un(q,tt);_e.push(Qt)}}),{size:$,shape:ee,stops:_e,position:Pe,type:2}},An=function(q,J){var ee=0,$=3,_e=[],Pe=[];return Ge(J).forEach(function(tt,mt){var pt=!0;if(mt===0?pt=tt.reduce(function(Qt,qt){if(Ha(qt))switch(qt.value){case"center":return Pe.push(at),!1;case"top":case"left":return Pe.push(Be),!1;case"right":case"bottom":return Pe.push(nt),!1}else if(Te(qt)||Je(qt))return Pe.push(qt),!1;return Qt},pt):mt===1&&(pt=tt.reduce(function(Qt,qt){if(Ha(qt))switch(qt.value){case Fn:return ee=0,!1;case Zn:return ee=1,!1;case Yn:case mr:return $=0,!1;case Tn:return $=1,!1;case tr:return $=2,!1;case nr:case Mr:return $=3,!1}else if(Je(qt)||Te(qt))return Array.isArray($)||($=[]),$.push(qt),!1;return Qt},pt)),pt){var Pt=Un(q,tt);_e.push(Pt)}}),{size:$,shape:ee,stops:_e,position:Pe,type:2}},sn=function(q){return q.type===1},Wn=function(q){return q.type===2},Xn={name:"image",parse:function(q,J){if(J.type===22){var ee={url:J.value,type:0};return q.cache.addImage(J.value),ee}if(J.type===18){var $=Ar[J.name];if(typeof $=="undefined")throw new Error('Attempting to parse an unsupported image function "'+J.name+'"');return $(q,J.values)}throw new Error("Unsupported image type "+J.type)}};function xn(q){return!(q.type===20&&q.value==="none")&&(q.type!==18||!!Ar[q.name])}var Ar={"linear-gradient":Ur,"-moz-linear-gradient":$r,"-ms-linear-gradient":$r,"-o-linear-gradient":$r,"-webkit-linear-gradient":$r,"radial-gradient":Kn,"-moz-radial-gradient":An,"-ms-radial-gradient":An,"-o-radial-gradient":An,"-webkit-radial-gradient":An,"-webkit-gradient":Gr},Wr={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(q,J){if(J.length===0)return[];var ee=J[0];return ee.type===20&&ee.value==="none"?[]:J.filter(function($){return ut($)&&xn($)}).map(function($){return Xn.parse(q,$)})}},Va={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(q,J){return J.map(function(ee){if(Ha(ee))switch(ee.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Da={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(q,J){return Ge(J).map(function(ee){return ee.filter(Te)}).map(Ve)}},ra={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(q,J){return Ge(J).map(function(ee){return ee.filter(Ha).map(function($){return $.value}).join(" ")}).map(gi)}},gi=function(q){switch(q){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}},ai;(function(q){q.AUTO="auto",q.CONTAIN="contain",q.COVER="cover"})(ai||(ai={}));var Qa={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(q,J){return Ge(J).map(function(ee){return ee.filter(no)})}},no=function(q){return Ha(q)||Te(q)},ro=function(q){return{name:"border-"+q+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Ri=ro("top"),Lo=ro("right"),Po=ro("bottom"),ao=ro("left"),Li=function(q){return{name:"border-radius-"+q,initialValue:"0 0",prefix:!1,type:1,parse:function(J,ee){return Ve(ee.filter(Te))}}},Ni=Li("top-left"),So=Li("top-right"),co=Li("bottom-right"),ho=Li("bottom-left"),Ki=function(q){return{name:"border-"+q+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(J,ee){switch(ee){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Pi=Ki("top"),Vi=Ki("right"),Wi=Ki("bottom"),vo=Ki("left"),ji=function(q){return{name:"border-"+q+"-width",initialValue:"0",type:0,prefix:!1,parse:function(J,ee){return xo(ee)?ee.number:0}}},go=ji("top"),Xa=ji("right"),io=ji("bottom"),Uo=ji("left"),zi={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ti={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(q,J){switch(J){case"rtl":return 1;case"ltr":default:return 0}}},fo={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(q,J){return J.filter(Ha).reduce(function(ee,$){return ee|es($.value)},0)}},es=function(q){switch(q){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},ts={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(q,J){switch(J){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Yo={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(q,J){return J.type===20&&J.value==="normal"?0:J.type===17||J.type===15?J.number:0}},Xi;(function(q){q.NORMAL="normal",q.STRICT="strict"})(Xi||(Xi={}));var ns={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(q,J){switch(J){case"strict":return Xi.STRICT;case"normal":default:return Xi.NORMAL}}},yi={name:"line-height",initialValue:"normal",prefix:!1,type:4},Pa=function(q,J){return Ha(q)&&q.value==="normal"?1.2*J:q.type===17?J*q.number:Te(q)?ot(q,J):J},ci={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(q,J){return J.type===20&&J.value==="none"?null:Xn.parse(q,J)}},Na={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(q,J){switch(J){case"inside":return 0;case"outside":default:return 1}}},Yi={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(q,J){switch(J){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}}},yo=function(q){return{name:"margin-"+q,initialValue:"0",prefix:!1,type:4}},Ui=yo("top"),Jo=yo("right"),ko=yo("bottom"),Zo=yo("left"),Bi={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(q,J){return J.filter(Ha).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}})}},Dn={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(q,J){switch(J){case"break-word":return"break-word";case"normal":default:return"normal"}}},Ji=function(q){return{name:"padding-"+q,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},vs=Ji("top"),rs=Ji("right"),da=Ji("bottom"),Lr=Ji("left"),di={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(q,J){switch(J){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},_a={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(q,J){switch(J){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(q,J){return J.length===1&&_o(J[0],"none")?[]:Ge(J).map(function(ee){for(var $={color:Cn.TRANSPARENT,offsetX:Be,offsetY:Be,blur:Be},_e=0,Pe=0;Pe<ee.length;Pe++){var tt=ee[Pe];Je(tt)?(_e===0?$.offsetX=tt:_e===1?$.offsetY=tt:$.blur=tt,_e++):$.color=$t.parse(q,tt)}return $})}},Zi={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(q,J){switch(J){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},bo={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(q,J){if(J.type===20&&J.value==="none")return null;if(J.type===18){var ee=Fo[J.name];if(typeof ee=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+J.name+'"');return ee(J.values)}return null}},oo=function(q){var J=q.filter(function(ee){return ee.type===17}).map(function(ee){return ee.number});return J.length===6?J:null},dn=function(q){var J=q.filter(function(pt){return pt.type===17}).map(function(pt){return pt.number}),ee=J[0],$=J[1];J[2],J[3];var _e=J[4],Pe=J[5];J[6],J[7],J[8],J[9],J[10],J[11];var tt=J[12],mt=J[13];return J[14],J[15],J.length===16?[ee,$,_e,Pe,tt,mt]:null},Fo={matrix:oo,matrix3d:dn},Ss={type:16,number:50,flags:pa},gs=[Ss,Ss],ei={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(q,J){var ee=J.filter(Te);return ee.length!==2?gs:[ee[0],ee[1]]}},_n={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(q,J){switch(J){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},kt;(function(q){q.NORMAL="normal",q.BREAK_ALL="break-all",q.KEEP_ALL="keep-all"})(kt||(kt={}));for(var Zt={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(q,J){switch(J){case"break-all":return kt.BREAK_ALL;case"keep-all":return kt.KEEP_ALL;case"normal":default:return kt.NORMAL}}},bn={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(q,J){if(J.type===20)return{auto:!0,order:0};if(ms(J))return{auto:!1,order:J.number};throw new Error("Invalid z-index number parsed")}},Jt={name:"time",parse:function(q,J){if(J.type===15)switch(J.unit.toLowerCase()){case"s":return 1e3*J.number;case"ms":return J.number}throw new Error("Unsupported time type")}},qn={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(q,J){return ms(J)?J.number:1}},ir={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},dr={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(q,J){return J.filter(Ha).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})}},Zr={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(q,J){var ee=[],$=[];return J.forEach(function(_e){switch(_e.type){case 20:case 0:ee.push(_e.value);break;case 17:ee.push(_e.number.toString());break;case 4:$.push(ee.join(" ")),ee.length=0;break}}),ee.length&&$.push(ee.join(" ")),$.map(function(_e){return _e.indexOf(" ")===-1?_e:"'"+_e+"'"})}},pn={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},ii={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(q,J){if(ms(J))return J.number;if(Ha(J))switch(J.value){case"bold":return 700;case"normal":default:return 400}return 400}},ki={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(q,J){return J.filter(Ha).map(function(ee){return ee.value})}},Ra={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(q,J){switch(J){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},ha=function(q,J){return(q&J)!==0},Oi={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(q,J){if(J.length===0)return[];var ee=J[0];return ee.type===20&&ee.value==="none"?[]:J}},qi={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(q,J){if(J.length===0)return null;var ee=J[0];if(ee.type===20&&ee.value==="none")return null;for(var $=[],_e=J.filter(Hs),Pe=0;Pe<_e.length;Pe++){var tt=_e[Pe],mt=_e[Pe+1];if(tt.type===20){var pt=mt&&ms(mt)?mt.number:1;$.push({counter:tt.value,increment:pt})}}return $}},ti={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(q,J){if(J.length===0)return[];for(var ee=[],$=J.filter(Hs),_e=0;_e<$.length;_e++){var Pe=$[_e],tt=$[_e+1];if(Ha(Pe)&&Pe.value!=="none"){var mt=tt&&ms(tt)?tt.number:0;ee.push({counter:Pe.value,reset:mt})}}return ee}},Ya={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(q,J){return J.filter(xo).map(function(ee){return Jt.parse(q,ee)})}},pi={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(q,J){if(J.length===0)return null;var ee=J[0];if(ee.type===20&&ee.value==="none")return null;var $=[],_e=J.filter(_s);if(_e.length%2!==0)return null;for(var Pe=0;Pe<_e.length;Pe+=2){var tt=_e[Pe].value,mt=_e[Pe+1].value;$.push({open:tt,close:mt})}return $}},No=function(q,J,ee){if(!q)return"";var $=q[Math.min(J,q.length-1)];return $?ee?$.open:$.close:""},jo={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(q,J){return J.length===1&&_o(J[0],"none")?[]:Ge(J).map(function(ee){for(var $={color:255,offsetX:Be,offsetY:Be,blur:Be,spread:Be,inset:!1},_e=0,Pe=0;Pe<ee.length;Pe++){var tt=ee[Pe];_o(tt,"inset")?$.inset=!0:Je(tt)?(_e===0?$.offsetX=tt:_e===1?$.offsetY=tt:_e===2?$.blur=tt:$.spread=tt,_e++):$.color=$t.parse(q,tt)}return $})}},Ho={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(q,J){var ee=[0,1,2],$=[];return J.filter(Ha).forEach(function(_e){switch(_e.value){case"stroke":$.push(1);break;case"fill":$.push(0);break;case"markers":$.push(2);break}}),ee.forEach(function(_e){$.indexOf(_e)===-1&&$.push(_e)}),$}},Qo={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(q,J){return xo(J)?J.number:0}},hl=function(){function q(J,ee){var $,_e;this.animationDuration=sr(J,Ya,ee.animationDuration),this.backgroundClip=sr(J,er,ee.backgroundClip),this.backgroundColor=sr(J,cn,ee.backgroundColor),this.backgroundImage=sr(J,Wr,ee.backgroundImage),this.backgroundOrigin=sr(J,Va,ee.backgroundOrigin),this.backgroundPosition=sr(J,Da,ee.backgroundPosition),this.backgroundRepeat=sr(J,ra,ee.backgroundRepeat),this.backgroundSize=sr(J,Qa,ee.backgroundSize),this.borderTopColor=sr(J,Ri,ee.borderTopColor),this.borderRightColor=sr(J,Lo,ee.borderRightColor),this.borderBottomColor=sr(J,Po,ee.borderBottomColor),this.borderLeftColor=sr(J,ao,ee.borderLeftColor),this.borderTopLeftRadius=sr(J,Ni,ee.borderTopLeftRadius),this.borderTopRightRadius=sr(J,So,ee.borderTopRightRadius),this.borderBottomRightRadius=sr(J,co,ee.borderBottomRightRadius),this.borderBottomLeftRadius=sr(J,ho,ee.borderBottomLeftRadius),this.borderTopStyle=sr(J,Pi,ee.borderTopStyle),this.borderRightStyle=sr(J,Vi,ee.borderRightStyle),this.borderBottomStyle=sr(J,Wi,ee.borderBottomStyle),this.borderLeftStyle=sr(J,vo,ee.borderLeftStyle),this.borderTopWidth=sr(J,go,ee.borderTopWidth),this.borderRightWidth=sr(J,Xa,ee.borderRightWidth),this.borderBottomWidth=sr(J,io,ee.borderBottomWidth),this.borderLeftWidth=sr(J,Uo,ee.borderLeftWidth),this.boxShadow=sr(J,jo,ee.boxShadow),this.color=sr(J,zi,ee.color),this.direction=sr(J,Ti,ee.direction),this.display=sr(J,fo,ee.display),this.float=sr(J,ts,ee.cssFloat),this.fontFamily=sr(J,Zr,ee.fontFamily),this.fontSize=sr(J,pn,ee.fontSize),this.fontStyle=sr(J,Ra,ee.fontStyle),this.fontVariant=sr(J,ki,ee.fontVariant),this.fontWeight=sr(J,ii,ee.fontWeight),this.letterSpacing=sr(J,Yo,ee.letterSpacing),this.lineBreak=sr(J,ns,ee.lineBreak),this.lineHeight=sr(J,yi,ee.lineHeight),this.listStyleImage=sr(J,ci,ee.listStyleImage),this.listStylePosition=sr(J,Na,ee.listStylePosition),this.listStyleType=sr(J,Yi,ee.listStyleType),this.marginTop=sr(J,Ui,ee.marginTop),this.marginRight=sr(J,Jo,ee.marginRight),this.marginBottom=sr(J,ko,ee.marginBottom),this.marginLeft=sr(J,Zo,ee.marginLeft),this.opacity=sr(J,qn,ee.opacity);var Pe=sr(J,Bi,ee.overflow);this.overflowX=Pe[0],this.overflowY=Pe[Pe.length>1?1:0],this.overflowWrap=sr(J,Dn,ee.overflowWrap),this.paddingTop=sr(J,vs,ee.paddingTop),this.paddingRight=sr(J,rs,ee.paddingRight),this.paddingBottom=sr(J,da,ee.paddingBottom),this.paddingLeft=sr(J,Lr,ee.paddingLeft),this.paintOrder=sr(J,Ho,ee.paintOrder),this.position=sr(J,_a,ee.position),this.textAlign=sr(J,di,ee.textAlign),this.textDecorationColor=sr(J,ir,($=ee.textDecorationColor)!==null&&$!==void 0?$:ee.color),this.textDecorationLine=sr(J,dr,(_e=ee.textDecorationLine)!==null&&_e!==void 0?_e:ee.textDecoration),this.textShadow=sr(J,To,ee.textShadow),this.textTransform=sr(J,Zi,ee.textTransform),this.transform=sr(J,bo,ee.transform),this.transformOrigin=sr(J,ei,ee.transformOrigin),this.visibility=sr(J,_n,ee.visibility),this.webkitTextStrokeColor=sr(J,Qo,ee.webkitTextStrokeColor),this.webkitTextStrokeWidth=sr(J,Ts,ee.webkitTextStrokeWidth),this.wordBreak=sr(J,Zt,ee.wordBreak),this.zIndex=sr(J,bn,ee.zIndex)}return q.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},q.prototype.isTransparent=function(){return gn(this.backgroundColor)},q.prototype.isTransformed=function(){return this.transform!==null},q.prototype.isPositioned=function(){return this.position!==0},q.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},q.prototype.isFloating=function(){return this.float!==0},q.prototype.isInlineLevel=function(){return ha(this.display,4)||ha(this.display,33554432)||ha(this.display,268435456)||ha(this.display,536870912)||ha(this.display,67108864)||ha(this.display,134217728)},q}(),fl=function(){function q(J,ee){this.content=sr(J,Oi,ee.content),this.quotes=sr(J,pi,ee.quotes)}return q}(),Qs=function(){function q(J,ee){this.counterIncrement=sr(J,qi,ee.counterIncrement),this.counterReset=sr(J,ti,ee.counterReset)}return q}(),sr=function(q,J,ee){var $=new dl,_e=ee!==null&&typeof ee!="undefined"?ee.toString():J.initialValue;$.write(_e);var Pe=new $s($.read());switch(J.type){case 2:var tt=Pe.parseComponentValue();return J.parse(q,Ha(tt)?tt.value:J.initialValue);case 0:return J.parse(q,Pe.parseComponentValue());case 1:return J.parse(q,Pe.parseComponentValues());case 4:return Pe.parseComponentValue();case 3:switch(J.format){case"angle":return en.parse(q,Pe.parseComponentValue());case"color":return $t.parse(q,Pe.parseComponentValue());case"image":return Xn.parse(q,Pe.parseComponentValue());case"length":var mt=Pe.parseComponentValue();return Je(mt)?mt:Be;case"length-percentage":var pt=Pe.parseComponentValue();return Te(pt)?pt:Be;case"time":return Jt.parse(q,Pe.parseComponentValue())}break}},ys="data-html2canvas-debug",Ks=function(q){var J=q.getAttribute(ys);switch(J){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Bs=function(q,J){var ee=Ks(q);return ee===1||J===ee},Ao=function(){function q(J,ee){if(this.context=J,this.textNodes=[],this.elements=[],this.flags=0,Bs(ee,3))debugger;this.styles=new hl(J,window.getComputedStyle(ee,null)),Wl(ee)&&(this.styles.animationDuration.some(function($){return $>0})&&(ee.style.animationDuration="0s"),this.styles.transform!==null&&(ee.style.transform="none")),this.bounds=f(this.context,ee),Bs(ee,4)&&(this.flags|=16)}return q}(),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 Hi=function(q){var J=q.length*.75,ee=q.length,$,_e=0,Pe,tt,mt,pt;q[q.length-1]==="="&&(J--,q[q.length-2]==="="&&J--);var Pt=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(J):new Array(J),Qt=Array.isArray(Pt)?Pt:new Uint8Array(Pt);for($=0;$<ee;$+=4)Pe=Ms[q.charCodeAt($)],tt=Ms[q.charCodeAt($+1)],mt=Ms[q.charCodeAt($+2)],pt=Ms[q.charCodeAt($+3)],Qt[_e++]=Pe<<2|tt>>4,Qt[_e++]=(tt&15)<<4|mt>>2,Qt[_e++]=(mt&3)<<6|pt&63;return Pt},zs=function(q){for(var J=q.length,ee=[],$=0;$<J;$+=2)ee.push(q[$+1]<<8|q[$]);return ee},ds=function(q){for(var J=q.length,ee=[],$=0;$<J;$+=4)ee.push(q[$+3]<<24|q[$+2]<<16|q[$+1]<<8|q[$]);return ee},Ko=5,Ls=6+5,Wo=2,Vr=Ls-Ko,vr=65536>>Ko,ua=1<<Ko,Or=ua-1,Mn=1024>>Ko,Pn=vr+Mn,En=Pn,rr=2048>>6,wn=En+rr,Rr=65536>>Ls,Er=1<<Vr,jr=Er-1,Ia=function(q,J,ee){return q.slice?q.slice(J,ee):new Uint16Array(Array.prototype.slice.call(q,J,ee))},Ja=function(q,J,ee){return q.slice?q.slice(J,ee):new Uint32Array(Array.prototype.slice.call(q,J,ee))},bi=function(q,J){var ee=Hi(q),$=Array.isArray(ee)?ds(ee):new Uint32Array(ee),_e=Array.isArray(ee)?zs(ee):new Uint16Array(ee),Pe=24,tt=Ia(_e,Pe/2,$[4]/2),mt=$[5]===2?Ia(_e,(Pe+$[4])/2):Ja($,Math.ceil((Pe+$[4])/4));return new mi($[0],$[1],$[2],$[3],tt,mt)},mi=function(){function q(J,ee,$,_e,Pe,tt){this.initialValue=J,this.errorValue=ee,this.highStart=$,this.highValueIndex=_e,this.index=Pe,this.data=tt}return q.prototype.get=function(J){var ee;if(J>=0){if(J<55296||J>56319&&J<=65535)return ee=this.index[J>>Ko],ee=(ee<<Wo)+(J&Or),this.data[ee];if(J<=65535)return ee=this.index[vr+(J-55296>>Ko)],ee=(ee<<Wo)+(J&Or),this.data[ee];if(J<this.highStart)return ee=wn-Rr+(J>>Ls),ee=this.index[ee],ee+=J>>Ko&jr,ee=this.index[ee],ee=(ee<<Wo)+(J&Or),this.data[ee];if(J<=1114111)return this.data[this.highValueIndex]}return this.errorValue},q}(),Ei="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zo=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),po=0;po<Ei.length;po++)zo[Ei.charCodeAt(po)]=po;var Cs=1,el=2,as=3,hs=4,tl=5,nl=7,Zl=8,ql=9,$l=10,mu=11,Bo=12,eu=13,vu=14,tu=15,Wu=function(q){for(var J=[],ee=0,$=q.length;ee<$;){var _e=q.charCodeAt(ee++);if(_e>=55296&&_e<=56319&&ee<$){var Pe=q.charCodeAt(ee++);(Pe&64512)===56320?J.push(((_e&1023)<<10)+(Pe&1023)+65536):(J.push(_e),ee--)}else J.push(_e)}return J},gu=function(){for(var q=[],J=0;J<arguments.length;J++)q[J]=arguments[J];if(String.fromCodePoint)return String.fromCodePoint.apply(String,q);var ee=q.length;if(!ee)return"";for(var $=[],_e=-1,Pe="";++_e<ee;){var tt=q[_e];tt<=65535?$.push(tt):(tt-=65536,$.push((tt>>10)+55296,tt%1024+56320)),(_e+1===ee||$.length>16384)&&(Pe+=String.fromCharCode.apply(String,$),$.length=0)}return Pe},yu=bi(bs),is="\xD7",nu="\xF7",zu=function(q){return yu.get(q)},Gu=function(q,J,ee){var $=ee-2,_e=J[$],Pe=J[ee-1],tt=J[ee];if(Pe===el&&tt===as)return is;if(Pe===el||Pe===as||Pe===hs)return nu;if(tt===el||tt===as||tt===hs)return nu;if(Pe===Zl&&[Zl,ql,mu,Bo].indexOf(tt)!==-1)return is;if((Pe===mu||Pe===ql)&&(tt===ql||tt===$l))return is;if((Pe===Bo||Pe===$l)&&tt===$l)return is;if(tt===eu||tt===tl)return is;if(tt===nl)return is;if(Pe===Cs)return is;if(Pe===eu&&tt===vu){for(;_e===tl;)_e=J[--$];if(_e===vu)return is}if(Pe===tu&&tt===tu){for(var mt=0;_e===tu;)mt++,_e=J[--$];if(mt%2===0)return is}return nu},Gs=function(q){var J=Wu(q),ee=J.length,$=0,_e=0,Pe=J.map(zu);return{next:function(){if($>=ee)return{done:!0,value:null};for(var tt=is;$<ee&&(tt=Gu(J,Pe,++$))===is;);if(tt!==is||$===ee){var mt=gu.apply(null,J.slice(_e,$));return _e=$,{value:mt,done:!1}}return{done:!0,value:null}}}},Cl=function(q){for(var J=Gs(q),ee=[],$;!($=J.next()).done;)$.value&&ee.push($.value.slice());return ee},kl=function(q){var J=123;if(q.createRange){var ee=q.createRange();if(ee.getBoundingClientRect){var $=q.createElement("boundtest");$.style.height=J+"px",$.style.display="block",q.body.appendChild($),ee.selectNode($);var _e=ee.getBoundingClientRect(),Pe=Math.round(_e.height);if(q.body.removeChild($),Pe===J)return!0}}return!1},wl=function(q){var J=q.createElement("boundtest");J.style.width="50px",J.style.display="block",J.style.fontSize="12px",J.style.letterSpacing="0px",J.style.wordSpacing="0px",q.body.appendChild(J);var ee=q.createRange();J.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var $=J.firstChild,_e=r($.data).map(function(pt){return n(pt)}),Pe=0,tt={},mt=_e.every(function(pt,Pt){ee.setStart($,Pe),ee.setEnd($,Pe+pt.length);var Qt=ee.getBoundingClientRect();Pe+=pt.length;var qt=Qt.x>tt.x||Qt.y>tt.y;return tt=Qt,Pt===0?!0:qt});return q.body.removeChild(J),mt},Ps=function(){return typeof new Image().crossOrigin!="undefined"},Vu=function(){return typeof new XMLHttpRequest().responseType=="string"},Xu=function(q){var J=new Image,ee=q.createElement("canvas"),$=ee.getContext("2d");if(!$)return!1;J.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{$.drawImage(J,0,0),ee.toDataURL()}catch(_e){return!1}return!0},rl=function(q){return q[0]===0&&q[1]===255&&q[2]===0&&q[3]===255},bu=function(q){var J=q.createElement("canvas"),ee=100;J.width=ee,J.height=ee;var $=J.getContext("2d");if(!$)return Promise.reject(!1);$.fillStyle="rgb(0, 255, 0)",$.fillRect(0,0,ee,ee);var _e=new Image,Pe=J.toDataURL();_e.src=Pe;var tt=Fl(ee,ee,0,0,_e);return $.fillStyle="red",$.fillRect(0,0,ee,ee),ru(tt).then(function(mt){$.drawImage(mt,0,0);var pt=$.getImageData(0,0,ee,ee).data;$.fillStyle="red",$.fillRect(0,0,ee,ee);var Pt=q.createElement("div");return Pt.style.backgroundImage="url("+Pe+")",Pt.style.height=ee+"px",rl(pt)?ru(Fl(ee,ee,0,0,Pt)):Promise.reject(!1)}).then(function(mt){return $.drawImage(mt,0,0),rl($.getImageData(0,0,ee,ee).data)}).catch(function(){return!1})},Fl=function(q,J,ee,$,_e){var Pe="http://www.w3.org/2000/svg",tt=document.createElementNS(Pe,"svg"),mt=document.createElementNS(Pe,"foreignObject");return tt.setAttributeNS(null,"width",q.toString()),tt.setAttributeNS(null,"height",J.toString()),mt.setAttributeNS(null,"width","100%"),mt.setAttributeNS(null,"height","100%"),mt.setAttributeNS(null,"x",ee.toString()),mt.setAttributeNS(null,"y",$.toString()),mt.setAttributeNS(null,"externalResourcesRequired","true"),tt.appendChild(mt),mt.appendChild(_e),tt},ru=function(q){return new Promise(function(J,ee){var $=new Image;$.onload=function(){return J($)},$.onerror=ee,$.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(q))})},$i={get SUPPORT_RANGE_BOUNDS(){var q=kl(document);return Object.defineProperty($i,"SUPPORT_RANGE_BOUNDS",{value:q}),q},get SUPPORT_WORD_BREAKING(){var q=$i.SUPPORT_RANGE_BOUNDS&&wl(document);return Object.defineProperty($i,"SUPPORT_WORD_BREAKING",{value:q}),q},get SUPPORT_SVG_DRAWING(){var q=Xu(document);return Object.defineProperty($i,"SUPPORT_SVG_DRAWING",{value:q}),q},get SUPPORT_FOREIGNOBJECT_DRAWING(){var q=typeof Array.from=="function"&&typeof window.fetch=="function"?bu(document):Promise.resolve(!1);return Object.defineProperty($i,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:q}),q},get SUPPORT_CORS_IMAGES(){var q=Ps();return Object.defineProperty($i,"SUPPORT_CORS_IMAGES",{value:q}),q},get SUPPORT_RESPONSE_TYPE(){var q=Vu();return Object.defineProperty($i,"SUPPORT_RESPONSE_TYPE",{value:q}),q},get SUPPORT_CORS_XHR(){var q="withCredentials"in new XMLHttpRequest;return Object.defineProperty($i,"SUPPORT_CORS_XHR",{value:q}),q},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var q=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty($i,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:q}),q}},Os=function(){function q(J,ee){this.text=J,this.bounds=ee}return q}(),au=function(q,J,ee,$){var _e=Eu(J,ee),Pe=[],tt=0;return _e.forEach(function(mt){if(ee.textDecorationLine.length||mt.trim().length>0)if($i.SUPPORT_RANGE_BOUNDS){var pt=Nl($,tt,mt.length).getClientRects();if(pt.length>1){var Pt=ou(mt),Qt=0;Pt.forEach(function(tn){Pe.push(new Os(tn,b.fromDOMRectList(q,Nl($,Qt+tt,tn.length).getClientRects()))),Qt+=tn.length})}else Pe.push(new Os(mt,b.fromDOMRectList(q,pt)))}else{var qt=$.splitText(mt.length);Pe.push(new Os(mt,iu(q,$))),$=qt}else $i.SUPPORT_RANGE_BOUNDS||($=$.splitText(mt.length));tt+=mt.length}),Pe},iu=function(q,J){var ee=J.ownerDocument;if(ee){var $=ee.createElement("html2canvaswrapper");$.appendChild(J.cloneNode(!0));var _e=J.parentNode;if(_e){_e.replaceChild($,J);var Pe=f(q,$);return $.firstChild&&_e.replaceChild($.firstChild,$),Pe}}return b.EMPTY},Nl=function(q,J,ee){var $=q.ownerDocument;if(!$)throw new Error("Node has no owner document");var _e=$.createRange();return _e.setStart(q,J),_e.setEnd(q,J+ee),_e},ou=function(q){if($i.SUPPORT_NATIVE_TEXT_SEGMENTATION){var J=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(J.segment(q)).map(function(ee){return ee.segment})}return Cl(q)},xl=function(q,J){if($i.SUPPORT_NATIVE_TEXT_SEGMENTATION){var ee=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(ee.segment(q)).map(function($){return $.segment})}return Cu(q,J)},Eu=function(q,J){return J.letterSpacing!==0?ou(q):xl(q,J)},Yu=[32,160,4961,65792,65793,4153,4241],Cu=function(q,J){for(var ee=Rn(q,{lineBreak:J.lineBreak,wordBreak:J.overflowWrap==="break-word"?"break-word":J.wordBreak}),$=[],_e,Pe=function(){if(_e.value){var tt=_e.value.slice(),mt=r(tt),pt="";mt.forEach(function(Pt){Yu.indexOf(Pt)===-1?pt+=n(Pt):(pt.length&&$.push(pt),$.push(n(Pt)),pt="")}),pt.length&&$.push(pt)}};!(_e=ee.next()).done;)Pe();return $},jl=function(){function q(J,ee,$){this.text=Ju(ee.data,$.textTransform),this.textBounds=au(J,this.text,$,ee)}return q}(),Ju=function(q,J){switch(J){case 1:return q.toLowerCase();case 3:return q.replace(Zu,_l);case 2:return q.toUpperCase();default:return q}},Zu=/(^|\s|:|-|\(|\))([a-z])/g,_l=function(q,J,ee){return q.length>0?J+ee.toUpperCase():q},su=function(q){V(J,q);function J(ee,$){var _e=q.call(this,ee,$)||this;return _e.src=$.currentSrc||$.src,_e.intrinsicWidth=$.naturalWidth,_e.intrinsicHeight=$.naturalHeight,_e.context.cache.addImage(_e.src),_e}return J}(Ao),lu=function(q){V(J,q);function J(ee,$){var _e=q.call(this,ee,$)||this;return _e.canvas=$,_e.intrinsicWidth=$.width,_e.intrinsicHeight=$.height,_e}return J}(Ao),wu=function(q){V(J,q);function J(ee,$){var _e=q.call(this,ee,$)||this,Pe=new XMLSerializer,tt=f(ee,$);return $.setAttribute("width",tt.width+"px"),$.setAttribute("height",tt.height+"px"),_e.svg="data:image/svg+xml,"+encodeURIComponent(Pe.serializeToString($)),_e.intrinsicWidth=$.width.baseVal.value,_e.intrinsicHeight=$.height.baseVal.value,_e.context.cache.addImage(_e.svg),_e}return J}(Ao),Hl=function(q){V(J,q);function J(ee,$){var _e=q.call(this,ee,$)||this;return _e.value=$.value,_e}return J}(Ao),Ql=function(q){V(J,q);function J(ee,$){var _e=q.call(this,ee,$)||this;return _e.start=$.start,_e.reversed=typeof $.reversed=="boolean"&&$.reversed===!0,_e}return J}(Ao),qu=[{type:15,flags:0,unit:"px",number:3}],xu=[{type:16,flags:0,number:50}],_u=function(q){return q.width>q.height?new b(q.left+(q.width-q.height)/2,q.top,q.height,q.height):q.width<q.height?new b(q.left,q.top+(q.height-q.width)/2,q.width,q.width):q},$u=function(q){var J=q.type===Sl?new Array(q.value.length+1).join("\u2022"):q.value;return J.length===0?q.placeholder||"":J},Al="checkbox",Vs="radio",Sl="password",Su=707406591,Kl=function(q){V(J,q);function J(ee,$){var _e=q.call(this,ee,$)||this;_e.type=$.type.toLowerCase(),_e.checked=$.checked,_e.value=$u($),(_e.type===Al||_e.type===Vs)&&(_e.styles.backgroundColor=3739148031,_e.styles.borderTopColor=_e.styles.borderRightColor=_e.styles.borderBottomColor=_e.styles.borderLeftColor=2779096575,_e.styles.borderTopWidth=_e.styles.borderRightWidth=_e.styles.borderBottomWidth=_e.styles.borderLeftWidth=1,_e.styles.borderTopStyle=_e.styles.borderRightStyle=_e.styles.borderBottomStyle=_e.styles.borderLeftStyle=1,_e.styles.backgroundClip=[0],_e.styles.backgroundOrigin=[0],_e.bounds=_u(_e.bounds));switch(_e.type){case Al:_e.styles.borderTopRightRadius=_e.styles.borderTopLeftRadius=_e.styles.borderBottomRightRadius=_e.styles.borderBottomLeftRadius=qu;break;case Vs:_e.styles.borderTopRightRadius=_e.styles.borderTopLeftRadius=_e.styles.borderBottomRightRadius=_e.styles.borderBottomLeftRadius=xu;break}return _e}return J}(Ao),Tu=function(q){V(J,q);function J(ee,$){var _e=q.call(this,ee,$)||this,Pe=$.options[$.selectedIndex||0];return _e.value=Pe&&Pe.text||"",_e}return J}(Ao),Bu=function(q){V(J,q);function J(ee,$){var _e=q.call(this,ee,$)||this;return _e.value=$.value,_e}return J}(Ao),Ou=function(q){V(J,q);function J(ee,$){var _e=q.call(this,ee,$)||this;_e.src=$.src,_e.width=parseInt($.width,10)||0,_e.height=parseInt($.height,10)||0,_e.backgroundColor=_e.styles.backgroundColor;try{if($.contentWindow&&$.contentWindow.document&&$.contentWindow.document.documentElement){_e.tree=Ru(ee,$.contentWindow.document.documentElement);var Pe=$.contentWindow.document.documentElement?fn(ee,getComputedStyle($.contentWindow.document.documentElement).backgroundColor):Cn.TRANSPARENT,tt=$.contentWindow.document.body?fn(ee,getComputedStyle($.contentWindow.document.body).backgroundColor):Cn.TRANSPARENT;_e.backgroundColor=gn(Pe)?gn(tt)?_e.styles.backgroundColor:tt:Pe}}catch(mt){}return _e}return J}(Ao),ec=["OL","UL","MENU"],Tl=function(q,J,ee,$){for(var _e=J.firstChild,Pe=void 0;_e;_e=Pe)if(Pe=_e.nextSibling,cu(_e)&&_e.data.trim().length>0)ee.textNodes.push(new jl(q,_e,ee.styles));else if(pl(_e))if(hu(_e)&&_e.assignedNodes)_e.assignedNodes().forEach(function(mt){return Tl(q,mt,ee,$)});else{var tt=Du(q,_e);tt.styles.isVisible()&&(Iu(_e,tt,$)?tt.flags|=4:uu(tt.styles)&&(tt.flags|=2),ec.indexOf(_e.tagName)!==-1&&(tt.flags|=8),ee.elements.push(tt),_e.slot,_e.shadowRoot?Tl(q,_e.shadowRoot,tt,$):!Ol(_e)&&!Lu(_e)&&!Dl(_e)&&Tl(q,_e,tt,$))}},Du=function(q,J){return al(J)?new su(q,J):Pu(J)?new lu(q,J):Lu(J)?new wu(q,J):Mu(J)?new Hl(q,J):zl(J)?new Ql(q,J):tc(J)?new Kl(q,J):Dl(J)?new Tu(q,J):Ol(J)?new Bu(q,J):fs(J)?new Ou(q,J):new Ao(q,J)},Ru=function(q,J){var ee=Du(q,J);return ee.flags|=4,Tl(q,J,ee,ee),ee},Iu=function(q,J,ee){return J.styles.isPositionedWithZIndex()||J.styles.opacity<1||J.styles.isTransformed()||vi(q)&&ee.styles.isTransparent()},uu=function(q){return q.isPositioned()||q.isFloating()},cu=function(q){return q.nodeType===Node.TEXT_NODE},pl=function(q){return q.nodeType===Node.ELEMENT_NODE},Wl=function(q){return pl(q)&&typeof q.style!="undefined"&&!Us(q)},Us=function(q){return typeof q.className=="object"},Mu=function(q){return q.tagName==="LI"},zl=function(q){return q.tagName==="OL"},tc=function(q){return q.tagName==="INPUT"},nc=function(q){return q.tagName==="HTML"},Lu=function(q){return q.tagName==="svg"},vi=function(q){return q.tagName==="BODY"},Pu=function(q){return q.tagName==="CANVAS"},Gl=function(q){return q.tagName==="VIDEO"},al=function(q){return q.tagName==="IMG"},fs=function(q){return q.tagName==="IFRAME"},Bl=function(q){return q.tagName==="STYLE"},du=function(q){return q.tagName==="SCRIPT"},Ol=function(q){return q.tagName==="TEXTAREA"},Dl=function(q){return q.tagName==="SELECT"},hu=function(q){return q.tagName==="SLOT"},fu=function(q){return q.tagName.indexOf("-")>0},Uu=function(){function q(){this.counters={}}return q.prototype.getCounterValue=function(J){var ee=this.counters[J];return ee&&ee.length?ee[ee.length-1]:1},q.prototype.getCounterValues=function(J){var ee=this.counters[J];return ee||[]},q.prototype.pop=function(J){var ee=this;J.forEach(function($){return ee.counters[$].pop()})},q.prototype.parse=function(J){var ee=this,$=J.counterIncrement,_e=J.counterReset,Pe=!0;$!==null&&$.forEach(function(mt){var pt=ee.counters[mt.counter];pt&&mt.increment!==0&&(Pe=!1,pt.length||pt.push(1),pt[Math.max(0,pt.length-1)]+=mt.increment)});var tt=[];return Pe&&_e.forEach(function(mt){var pt=ee.counters[mt.counter];tt.push(mt.counter),pt||(pt=ee.counters[mt.counter]=[]),pt.push(mt.reset)}),tt},q}(),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"]},ni={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"]},il=function(q,J,ee,$,_e,Pe){return q<J||q>ee?P(q,_e,Pe.length>0):$.integers.reduce(function(tt,mt,pt){for(;q>=mt;)q-=mt,tt+=$.values[pt];return tt},"")+Pe},Nu=function(q,J,ee,$){var _e="";do ee||q--,_e=$(q)+_e,q/=J;while(q*J>=J);return _e},Ci=function(q,J,ee,$,_e){var Pe=ee-J+1;return(q<0?"-":"")+(Nu(Math.abs(q),Pe,$,function(tt){return n(Math.floor(tt%Pe)+J)})+_e)},ol=function(q,J,ee){ee===void 0&&(ee=". ");var $=J.length;return Nu(Math.abs(q),$,!1,function(_e){return J[Math.floor(_e%$)]})+ee},ks=1<<0,Xs=1<<1,oi=1<<2,Rl=1<<3,Fs=function(q,J,ee,$,_e,Pe){if(q<-9999||q>9999)return P(q,4,_e.length>0);var tt=Math.abs(q),mt=_e;if(tt===0)return J[0]+mt;for(var pt=0;tt>0&&pt<=4;pt++){var Pt=tt%10;Pt===0&&ha(Pe,ks)&&mt!==""?mt=J[Pt]+mt:Pt>1||Pt===1&&pt===0||Pt===1&&pt===1&&ha(Pe,Xs)||Pt===1&&pt===1&&ha(Pe,oi)&&q>100||Pt===1&&pt>1&&ha(Pe,Rl)?mt=J[Pt]+(pt>0?ee[pt-1]:"")+mt:Pt===1&&pt>0&&(mt=ee[pt-1]+mt),tt=Math.floor(tt/10)}return(q<0?$:"")+mt},ju="\u5341\u767E\u5343\u842C",Il="\u62FE\u4F70\u4EDF\u842C",t="\u30DE\u30A4\u30CA\u30B9",g="\uB9C8\uC774\uB108\uC2A4",P=function(q,J,ee){var $=ee?". ":"",_e=ee?"\u3001":"",Pe=ee?", ":"",tt=ee?" ":"";switch(J){case 0:return"\u2022"+tt;case 1:return"\u25E6"+tt;case 2:return"\u25FE"+tt;case 5:var mt=Ci(q,48,57,!0,$);return mt.length<4?"0"+mt:mt;case 4:return ol(q,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",_e);case 6:return il(q,1,3999,ku,3,$).toLowerCase();case 7:return il(q,1,3999,ku,3,$);case 8:return Ci(q,945,969,!1,$);case 9:return Ci(q,97,122,!1,$);case 10:return Ci(q,65,90,!1,$);case 11:return Ci(q,1632,1641,!0,$);case 12:case 49:return il(q,1,9999,Vl,3,$);case 35:return il(q,1,9999,Vl,3,$).toLowerCase();case 13:return Ci(q,2534,2543,!0,$);case 14:case 30:return Ci(q,6112,6121,!0,$);case 15:return ol(q,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",_e);case 16:return ol(q,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",_e);case 17:case 48:return Fs(q,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",ju,"\u8CA0",_e,Xs|oi|Rl);case 47:return Fs(q,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",Il,"\u8CA0",_e,ks|Xs|oi|Rl);case 42:return Fs(q,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",ju,"\u8D1F",_e,Xs|oi|Rl);case 41:return Fs(q,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",Il,"\u8D1F",_e,ks|Xs|oi|Rl);case 26:return Fs(q,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",t,_e,0);case 25:return Fs(q,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",t,_e,ks|Xs|oi);case 31:return Fs(q,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",g,Pe,ks|Xs|oi);case 33:return Fs(q,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",g,Pe,0);case 32:return Fs(q,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",g,Pe,ks|Xs|oi);case 18:return Ci(q,2406,2415,!0,$);case 20:return il(q,1,19999,ni,3,$);case 21:return Ci(q,2790,2799,!0,$);case 22:return Ci(q,2662,2671,!0,$);case 22:return il(q,1,10999,Fu,3,$);case 23:return ol(q,"\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(q,"\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 Ci(q,3302,3311,!0,$);case 28:return ol(q,"\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",_e);case 29:return ol(q,"\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",_e);case 34:return Ci(q,3792,3801,!0,$);case 37:return Ci(q,6160,6169,!0,$);case 38:return Ci(q,4160,4169,!0,$);case 39:return Ci(q,2918,2927,!0,$);case 40:return Ci(q,1776,1785,!0,$);case 43:return Ci(q,3046,3055,!0,$);case 44:return Ci(q,3174,3183,!0,$);case 45:return Ci(q,3664,3673,!0,$);case 46:return Ci(q,3872,3881,!0,$);case 3:default:return Ci(q,48,57,!0,$)}},L="data-html2canvas-ignore",H=function(){function q(J,ee,$){if(this.context=J,this.options=$,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 q.prototype.toIFrame=function(J,ee){var $=this,_e=xe(J,ee);if(!_e.contentWindow)return Promise.reject("Unable to find iframe window");var Pe=J.defaultView.pageXOffset,tt=J.defaultView.pageYOffset,mt=_e.contentWindow,pt=mt.document,Pt=Ke(_e).then(function(){return p($,void 0,void 0,function(){var Qt,qt;return E(this,function(tn){switch(tn.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))),Qt=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:tn.sent(),tn.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Ie(pt)]:[3,4];case 3:tn.sent(),tn.label=4;case 4:return typeof Qt=="function"?[2,Promise.resolve().then(function(){return Qt(pt,qt)}).then(function(){return _e})]:[2,_e]}})})});return pt.open(),pt.write(Ht(document.doctype)+"<html></html>"),Ft(this.referenceElement.ownerDocument,Pe,tt),pt.replaceChild(pt.adoptNode(this.documentElement),pt.documentElement),pt.close(),Pt},q.prototype.createElementClone=function(J){if(Bs(J,2))debugger;if(Pu(J))return this.createCanvasClone(J);if(Gl(J))return this.createVideoClone(J);if(Bl(J))return this.createStyleClone(J);var ee=J.cloneNode(!1);return al(ee)&&(al(J)&&J.currentSrc&&J.currentSrc!==J.src&&(ee.src=J.currentSrc,ee.srcset=""),ee.loading==="lazy"&&(ee.loading="eager")),fu(ee)?this.createCustomElementClone(ee):ee},q.prototype.createCustomElementClone=function(J){var ee=document.createElement("html2canvascustomelement");return Ct(J.style,ee),ee},q.prototype.createStyleClone=function(J){try{var ee=J.sheet;if(ee&&ee.cssRules){var $=[].slice.call(ee.cssRules,0).reduce(function(Pe,tt){return tt&&typeof tt.cssText=="string"?Pe+tt.cssText:Pe},""),_e=J.cloneNode(!1);return _e.textContent=$,_e}}catch(Pe){if(this.context.logger.error("Unable to access cssRules property",Pe),Pe.name!=="SecurityError")throw Pe}return J.cloneNode(!1)},q.prototype.createCanvasClone=function(J){var ee;if(this.options.inlineImages&&J.ownerDocument){var $=J.ownerDocument.createElement("img");try{return $.src=J.toDataURL(),$}catch(Pt){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",J)}}var _e=J.cloneNode(!1);try{_e.width=J.width,_e.height=J.height;var Pe=J.getContext("2d"),tt=_e.getContext("2d");if(tt)if(!this.options.allowTaint&&Pe)tt.putImageData(Pe.getImageData(0,0,J.width,J.height),0,0);else{var mt=(ee=J.getContext("webgl2"))!==null&&ee!==void 0?ee:J.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",J)}tt.drawImage(J,0,0)}return _e}catch(Pt){this.context.logger.info("Unable to clone canvas as it is tainted",J)}return _e},q.prototype.createVideoClone=function(J){var ee=J.ownerDocument.createElement("canvas");ee.width=J.offsetWidth,ee.height=J.offsetHeight;var $=ee.getContext("2d");try{return $&&($.drawImage(J,0,0,ee.width,ee.height),this.options.allowTaint||$.getImageData(0,0,ee.width,ee.height)),ee}catch(Pe){this.context.logger.info("Unable to clone video as it is tainted",J)}var _e=J.ownerDocument.createElement("canvas");return _e.width=J.offsetWidth,_e.height=J.offsetHeight,_e},q.prototype.appendChildNode=function(J,ee,$){(!pl(ee)||!du(ee)&&!ee.hasAttribute(L)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(ee)))&&((!this.options.copyStyles||!pl(ee)||!Bl(ee))&&J.appendChild(this.cloneNode(ee,$)))},q.prototype.cloneChildNodes=function(J,ee,$){for(var _e=this,Pe=J.shadowRoot?J.shadowRoot.firstChild:J.firstChild;Pe;Pe=Pe.nextSibling)if(pl(Pe)&&hu(Pe)&&typeof Pe.assignedNodes=="function"){var tt=Pe.assignedNodes();tt.length&&tt.forEach(function(mt){return _e.appendChildNode(ee,mt,$)})}else this.appendChildNode(ee,Pe,$)},q.prototype.cloneNode=function(J,ee){if(cu(J))return document.createTextNode(J.data);if(!J.ownerDocument)return J.cloneNode(!1);var $=J.ownerDocument.defaultView;if($&&pl(J)&&(Wl(J)||Us(J))){var _e=this.createElementClone(J);_e.style.transitionProperty="none";var Pe=$.getComputedStyle(J),tt=$.getComputedStyle(J,":before"),mt=$.getComputedStyle(J,":after");this.referenceElement===J&&Wl(_e)&&(this.clonedReferenceElement=_e),vi(_e)&&fr(_e);var pt=this.counters.parse(new Qs(this.context,Pe)),Pt=this.resolvePseudoContent(J,_e,tt,se.BEFORE);fu(J)&&(ee=!0),Gl(J)||this.cloneChildNodes(J,_e,ee),Pt&&_e.insertBefore(Pt,_e.firstChild);var Qt=this.resolvePseudoContent(J,_e,mt,se.AFTER);return Qt&&_e.appendChild(Qt),this.counters.pop(pt),(Pe&&(this.options.copyStyles||Us(J))&&!fs(J)||ee)&&Ct(Pe,_e),(J.scrollTop!==0||J.scrollLeft!==0)&&this.scrolledElements.push([_e,J.scrollLeft,J.scrollTop]),(Ol(J)||Dl(J))&&(Ol(_e)||Dl(_e))&&(_e.value=J.value),_e}return J.cloneNode(!1)},q.prototype.resolvePseudoContent=function(J,ee,$,_e){var Pe=this;if(!$)return;var tt=$.content,mt=ee.ownerDocument;if(!mt||!tt||tt==="none"||tt==="-moz-alt-content"||$.display==="none")return;this.counters.parse(new Qs(this.context,$));var pt=new fl(this.context,$),Pt=mt.createElement("html2canvaspseudoelement");Ct($,Pt),pt.content.forEach(function(qt){if(qt.type===0)Pt.appendChild(mt.createTextNode(qt.value));else if(qt.type===22){var tn=mt.createElement("img");tn.src=qt.value,tn.style.opacity="1",Pt.appendChild(tn)}else if(qt.type===18){if(qt.name==="attr"){var gr=qt.values.filter(Ha);gr.length&&Pt.appendChild(mt.createTextNode(J.getAttribute(gr[0].value)||""))}else if(qt.name==="counter"){var kn=qt.values.filter(ut),lr=kn[0],qr=kn[1];if(lr&&Ha(lr)){var pr=Pe.counters.getCounterValue(lr.value),Cr=qr&&Ha(qr)?Yi.parse(Pe.context,qr.value):3;Pt.appendChild(mt.createTextNode(P(pr,Cr,!1)))}}else if(qt.name==="counters"){var Ka=qt.values.filter(ut),lr=Ka[0],ba=Ka[1],qr=Ka[2];if(lr&&Ha(lr)){var si=Pe.counters.getCounterValues(lr.value),yr=qr&&Ha(qr)?Yi.parse(Pe.context,qr.value):3,ri=ba&&ba.type===0?ba.value:"",li=si.map(function(ss){return P(ss,yr,!1)}).join(ri);Pt.appendChild(mt.createTextNode(li))}}}else if(qt.type===20)switch(qt.value){case"open-quote":Pt.appendChild(mt.createTextNode(No(pt.quotes,Pe.quoteDepth++,!0)));break;case"close-quote":Pt.appendChild(mt.createTextNode(No(pt.quotes,--Pe.quoteDepth,!1)));break;default:Pt.appendChild(mt.createTextNode(qt.value))}}),Pt.className=zn+" "+ar;var Qt=_e===se.BEFORE?" "+zn:" "+ar;return Us(ee)?ee.className.baseValue+=Qt:ee.className+=Qt,Pt},q.destroy=function(J){return J.parentNode?(J.parentNode.removeChild(J),!0):!1},q}(),se;(function(q){q[q.BEFORE=0]="BEFORE",q[q.AFTER=1]="AFTER"})(se||(se={}));var xe=function(q,J){var ee=q.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=J.width.toString(),ee.height=J.height.toString(),ee.scrolling="no",ee.setAttribute(L,"true"),q.body.appendChild(ee),ee},Oe=function(q){return new Promise(function(J){if(q.complete){J();return}if(!q.src){J();return}q.onload=J,q.onerror=J})},Ie=function(q){return Promise.all([].slice.call(q.images,0).map(Oe))},Ke=function(q){return new Promise(function(J,ee){var $=q.contentWindow;if(!$)return ee("No window assigned for iframe");var _e=$.document;$.onload=q.onload=function(){$.onload=q.onload=null;var Pe=setInterval(function(){_e.body.childNodes.length>0&&_e.readyState==="complete"&&(clearInterval(Pe),J(q))},50)}})},vt=["all","d","content"],Ct=function(q,J){for(var ee=q.length-1;ee>=0;ee--){var $=q.item(ee);vt.indexOf($)===-1&&J.style.setProperty($,q.getPropertyValue($))}return J},Ht=function(q){var J="";return q&&(J+="<!DOCTYPE ",q.name&&(J+=q.name),q.internalSubset&&(J+=q.internalSubset),q.publicId&&(J+='"'+q.publicId+'"'),q.systemId&&(J+='"'+q.systemId+'"'),J+=">"),J},Ft=function(q,J,ee){q&&q.defaultView&&(J!==q.defaultView.pageXOffset||ee!==q.defaultView.pageYOffset)&&q.defaultView.scrollTo(J,ee)},on=function(q){var J=q[0],ee=q[1],$=q[2];J.scrollLeft=ee,J.scrollTop=$},vn=":before",In=":after",zn="___html2canvas___pseudoelement_before",ar="___html2canvas___pseudoelement_after",Vn=`{
content: "" !important;
display: none !important;
}`,fr=function(q){Hr(q,"."+zn+vn+Vn+`
.`+ar+In+Vn)},Hr=function(q,J){var ee=q.ownerDocument;if(ee){var $=ee.createElement("style");$.textContent=J,q.appendChild($)}},Ir=function(){function q(){}return q.getOrigin=function(J){var ee=q._link;return ee?(ee.href=J,ee.href=ee.href,ee.protocol+ee.hostname+ee.port):"about:blank"},q.isSameOrigin=function(J){return q.getOrigin(J)===q._origin},q.setContext=function(J){q._link=J.document.createElement("a"),q._origin=q.getOrigin(J.location.href)},q._origin="about:blank",q}(),fa=function(){function q(J,ee){this.context=J,this._options=ee,this._cache={}}return q.prototype.addImage=function(J){var ee=Promise.resolve();return this.has(J)||(Co(J)||qo(J))&&(this._cache[J]=this.loadImage(J)).catch(function(){}),ee},q.prototype.match=function(J){return this._cache[J]},q.prototype.loadImage=function(J){return p(this,void 0,void 0,function(){var ee,$,_e,Pe,tt=this;return E(this,function(mt){switch(mt.label){case 0:return ee=Ir.isSameOrigin(J),$=!Eo(J)&&this._options.useCORS===!0&&$i.SUPPORT_CORS_IMAGES&&!ee,_e=!Eo(J)&&!ee&&!Co(J)&&typeof this._options.proxy=="string"&&$i.SUPPORT_CORS_XHR&&!$,!ee&&this._options.allowTaint===!1&&!Eo(J)&&!Co(J)&&!_e&&!$?[2]:(Pe=J,_e?[4,this.proxy(Pe)]:[3,2]);case 1:Pe=mt.sent(),mt.label=2;case 2:return this.context.logger.debug("Added image "+J.substring(0,256)),[4,new Promise(function(pt,Pt){var Qt=new Image;Qt.onload=function(){return pt(Qt)},Qt.onerror=Pt,(Gi(Pe)||$)&&(Qt.crossOrigin="anonymous"),Qt.src=Pe,Qt.complete===!0&&setTimeout(function(){return pt(Qt)},500),tt._options.imageTimeout>0&&setTimeout(function(){return Pt("Timed out ("+tt._options.imageTimeout+"ms) loading image")},tt._options.imageTimeout)})];case 3:return[2,mt.sent()]}})})},q.prototype.has=function(J){return typeof this._cache[J]!="undefined"},q.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},q.prototype.proxy=function(J){var ee=this,$=this._options.proxy;if(!$)throw new Error("No proxy defined");var _e=J.substring(0,256);return new Promise(function(Pe,tt){var mt=$i.SUPPORT_RESPONSE_TYPE?"blob":"text",pt=new XMLHttpRequest;pt.onload=function(){if(pt.status===200)if(mt==="text")Pe(pt.response);else{var qt=new FileReader;qt.addEventListener("load",function(){return Pe(qt.result)},!1),qt.addEventListener("error",function(tn){return tt(tn)},!1),qt.readAsDataURL(pt.response)}else tt("Failed to proxy resource "+_e+" with status code "+pt.status)},pt.onerror=tt;var Pt=$.indexOf("?")>-1?"&":"?";if(pt.open("GET",""+$+Pt+"url="+encodeURIComponent(J)+"&responseType="+mt),mt!=="text"&&pt instanceof XMLHttpRequest&&(pt.responseType=mt),ee._options.imageTimeout){var Qt=ee._options.imageTimeout;pt.timeout=Qt,pt.ontimeout=function(){return tt("Timed out ("+Qt+"ms) proxying "+_e)}}pt.send()})},q}(),hi=/^data:image\/svg\+xml/i,so=/^data:image\/.*;base64,/i,Ii=/^data:image\/.*/i,qo=function(q){return $i.SUPPORT_SVG_DRAWING||!mo(q)},Eo=function(q){return Ii.test(q)},Gi=function(q){return so.test(q)},Co=function(q){return q.substr(0,4)==="blob"},mo=function(q){return q.substr(-3).toLowerCase()==="svg"||hi.test(q)},Nn=function(){function q(J,ee){this.type=0,this.x=J,this.y=ee}return q.prototype.add=function(J,ee){return new q(this.x+J,this.y+ee)},q}(),wi=function(q,J,ee){return new Nn(q.x+(J.x-q.x)*ee,q.y+(J.y-q.y)*ee)},xi=function(){function q(J,ee,$,_e){this.type=1,this.start=J,this.startControl=ee,this.endControl=$,this.end=_e}return q.prototype.subdivide=function(J,ee){var $=wi(this.start,this.startControl,J),_e=wi(this.startControl,this.endControl,J),Pe=wi(this.endControl,this.end,J),tt=wi($,_e,J),mt=wi(_e,Pe,J),pt=wi(tt,mt,J);return ee?new q(this.start,$,tt,pt):new q(pt,mt,Pe,this.end)},q.prototype.add=function(J,ee){return new q(this.start.add(J,ee),this.startControl.add(J,ee),this.endControl.add(J,ee),this.end.add(J,ee))},q.prototype.reverse=function(){return new q(this.end,this.endControl,this.startControl,this.start)},q}(),_i=function(q){return q.type===1},ml=function(){function q(J){var ee=J.styles,$=J.bounds,_e=st(ee.borderTopLeftRadius,$.width,$.height),Pe=_e[0],tt=_e[1],mt=st(ee.borderTopRightRadius,$.width,$.height),pt=mt[0],Pt=mt[1],Qt=st(ee.borderBottomRightRadius,$.width,$.height),qt=Qt[0],tn=Qt[1],gr=st(ee.borderBottomLeftRadius,$.width,$.height),kn=gr[0],lr=gr[1],qr=[];qr.push((Pe+pt)/$.width),qr.push((kn+qt)/$.width),qr.push((tt+lr)/$.height),qr.push((Pt+tn)/$.height);var pr=Math.max.apply(Math,qr);pr>1&&(Pe/=pr,tt/=pr,pt/=pr,Pt/=pr,qt/=pr,tn/=pr,kn/=pr,lr/=pr);var Cr=$.width-pt,Ka=$.height-tn,ba=$.width-qt,si=$.height-lr,yr=ee.borderTopWidth,ri=ee.borderRightWidth,li=ee.borderBottomWidth,ya=ee.borderLeftWidth,As=ot(ee.paddingTop,J.bounds.width),ss=ot(ee.paddingRight,J.bounds.width),ws=ot(ee.paddingBottom,J.bounds.width),Do=ot(ee.paddingLeft,J.bounds.width);this.topLeftBorderDoubleOuterBox=Pe>0||tt>0?ga($.left+ya/3,$.top+yr/3,Pe-ya/3,tt-yr/3,Oa.TOP_LEFT):new Nn($.left+ya/3,$.top+yr/3),this.topRightBorderDoubleOuterBox=Pe>0||tt>0?ga($.left+Cr,$.top+yr/3,pt-ri/3,Pt-yr/3,Oa.TOP_RIGHT):new Nn($.left+$.width-ri/3,$.top+yr/3),this.bottomRightBorderDoubleOuterBox=qt>0||tn>0?ga($.left+ba,$.top+Ka,qt-ri/3,tn-li/3,Oa.BOTTOM_RIGHT):new Nn($.left+$.width-ri/3,$.top+$.height-li/3),this.bottomLeftBorderDoubleOuterBox=kn>0||lr>0?ga($.left+ya/3,$.top+si,kn-ya/3,lr-li/3,Oa.BOTTOM_LEFT):new Nn($.left+ya/3,$.top+$.height-li/3),this.topLeftBorderDoubleInnerBox=Pe>0||tt>0?ga($.left+ya*2/3,$.top+yr*2/3,Pe-ya*2/3,tt-yr*2/3,Oa.TOP_LEFT):new Nn($.left+ya*2/3,$.top+yr*2/3),this.topRightBorderDoubleInnerBox=Pe>0||tt>0?ga($.left+Cr,$.top+yr*2/3,pt-ri*2/3,Pt-yr*2/3,Oa.TOP_RIGHT):new Nn($.left+$.width-ri*2/3,$.top+yr*2/3),this.bottomRightBorderDoubleInnerBox=qt>0||tn>0?ga($.left+ba,$.top+Ka,qt-ri*2/3,tn-li*2/3,Oa.BOTTOM_RIGHT):new Nn($.left+$.width-ri*2/3,$.top+$.height-li*2/3),this.bottomLeftBorderDoubleInnerBox=kn>0||lr>0?ga($.left+ya*2/3,$.top+si,kn-ya*2/3,lr-li*2/3,Oa.BOTTOM_LEFT):new Nn($.left+ya*2/3,$.top+$.height-li*2/3),this.topLeftBorderStroke=Pe>0||tt>0?ga($.left+ya/2,$.top+yr/2,Pe-ya/2,tt-yr/2,Oa.TOP_LEFT):new Nn($.left+ya/2,$.top+yr/2),this.topRightBorderStroke=Pe>0||tt>0?ga($.left+Cr,$.top+yr/2,pt-ri/2,Pt-yr/2,Oa.TOP_RIGHT):new Nn($.left+$.width-ri/2,$.top+yr/2),this.bottomRightBorderStroke=qt>0||tn>0?ga($.left+ba,$.top+Ka,qt-ri/2,tn-li/2,Oa.BOTTOM_RIGHT):new Nn($.left+$.width-ri/2,$.top+$.height-li/2),this.bottomLeftBorderStroke=kn>0||lr>0?ga($.left+ya/2,$.top+si,kn-ya/2,lr-li/2,Oa.BOTTOM_LEFT):new Nn($.left+ya/2,$.top+$.height-li/2),this.topLeftBorderBox=Pe>0||tt>0?ga($.left,$.top,Pe,tt,Oa.TOP_LEFT):new Nn($.left,$.top),this.topRightBorderBox=pt>0||Pt>0?ga($.left+Cr,$.top,pt,Pt,Oa.TOP_RIGHT):new Nn($.left+$.width,$.top),this.bottomRightBorderBox=qt>0||tn>0?ga($.left+ba,$.top+Ka,qt,tn,Oa.BOTTOM_RIGHT):new Nn($.left+$.width,$.top+$.height),this.bottomLeftBorderBox=kn>0||lr>0?ga($.left,$.top+si,kn,lr,Oa.BOTTOM_LEFT):new Nn($.left,$.top+$.height),this.topLeftPaddingBox=Pe>0||tt>0?ga($.left+ya,$.top+yr,Math.max(0,Pe-ya),Math.max(0,tt-yr),Oa.TOP_LEFT):new Nn($.left+ya,$.top+yr),this.topRightPaddingBox=pt>0||Pt>0?ga($.left+Math.min(Cr,$.width-ri),$.top+yr,Cr>$.width+ri?0:Math.max(0,pt-ri),Math.max(0,Pt-yr),Oa.TOP_RIGHT):new Nn($.left+$.width-ri,$.top+yr),this.bottomRightPaddingBox=qt>0||tn>0?ga($.left+Math.min(ba,$.width-ya),$.top+Math.min(Ka,$.height-li),Math.max(0,qt-ri),Math.max(0,tn-li),Oa.BOTTOM_RIGHT):new Nn($.left+$.width-ri,$.top+$.height-li),this.bottomLeftPaddingBox=kn>0||lr>0?ga($.left+ya,$.top+Math.min(si,$.height-li),Math.max(0,kn-ya),Math.max(0,lr-li),Oa.BOTTOM_LEFT):new Nn($.left+ya,$.top+$.height-li),this.topLeftContentBox=Pe>0||tt>0?ga($.left+ya+Do,$.top+yr+As,Math.max(0,Pe-(ya+Do)),Math.max(0,tt-(yr+As)),Oa.TOP_LEFT):new Nn($.left+ya+Do,$.top+yr+As),this.topRightContentBox=pt>0||Pt>0?ga($.left+Math.min(Cr,$.width+ya+Do),$.top+yr+As,Cr>$.width+ya+Do?0:pt-ya+Do,Pt-(yr+As),Oa.TOP_RIGHT):new Nn($.left+$.width-(ri+ss),$.top+yr+As),this.bottomRightContentBox=qt>0||tn>0?ga($.left+Math.min(ba,$.width-(ya+Do)),$.top+Math.min(Ka,$.height+yr+As),Math.max(0,qt-(ri+ss)),tn-(li+ws),Oa.BOTTOM_RIGHT):new Nn($.left+$.width-(ri+ss),$.top+$.height-(li+ws)),this.bottomLeftContentBox=kn>0||lr>0?ga($.left+ya+Do,$.top+si,Math.max(0,kn-(ya+Do)),lr-(li+ws),Oa.BOTTOM_LEFT):new Nn($.left+ya+Do,$.top+$.height-(li+ws))}return q}(),Oa;(function(q){q[q.TOP_LEFT=0]="TOP_LEFT",q[q.TOP_RIGHT=1]="TOP_RIGHT",q[q.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",q[q.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Oa||(Oa={}));var ga=function(q,J,ee,$,_e){var Pe=4*((Math.sqrt(2)-1)/3),tt=ee*Pe,mt=$*Pe,pt=q+ee,Pt=J+$;switch(_e){case Oa.TOP_LEFT:return new xi(new Nn(q,Pt),new Nn(q,Pt-mt),new Nn(pt-tt,J),new Nn(pt,J));case Oa.TOP_RIGHT:return new xi(new Nn(q,J),new Nn(q+tt,J),new Nn(pt,Pt-mt),new Nn(pt,Pt));case Oa.BOTTOM_RIGHT:return new xi(new Nn(pt,J),new Nn(pt,J+mt),new Nn(q+tt,Pt),new Nn(q,Pt));case Oa.BOTTOM_LEFT:default:return new xi(new Nn(pt,Pt),new Nn(pt-tt,Pt),new Nn(q,J+mt),new Nn(q,J))}},os=function(q){return[q.topLeftBorderBox,q.topRightBorderBox,q.bottomRightBorderBox,q.bottomLeftBorderBox]},lo=function(q){return[q.topLeftContentBox,q.topRightContentBox,q.bottomRightContentBox,q.bottomLeftContentBox]},vl=function(q){return[q.topLeftPaddingBox,q.topRightPaddingBox,q.bottomRightPaddingBox,q.bottomLeftPaddingBox]},Ns=function(){function q(J,ee,$){this.offsetX=J,this.offsetY=ee,this.matrix=$,this.type=0,this.target=2|4}return q}(),Ds=function(){function q(J,ee){this.path=J,this.target=ee,this.type=1}return q}(),sl=function(){function q(J){this.opacity=J,this.type=2,this.target=2|4}return q}(),Oo=function(q){return q.type===0},ll=function(q){return q.type===1},Au=function(q){return q.type===2},ic=function(q,J){return q.length===J.length?q.some(function(ee,$){return ee===J[$]}):!1},fc=function(q,J,ee,$,_e){return q.map(function(Pe,tt){switch(tt){case 0:return Pe.add(J,ee);case 1:return Pe.add(J+$,ee);case 2:return Pe.add(J+$,ee+_e);case 3:return Pe.add(J,ee+_e)}return Pe})},oc=function(){function q(J){this.element=J,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return q}(),sc=function(){function q(J,ee){if(this.container=J,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 $=this.container.bounds.left+this.container.styles.transformOrigin[0].number,_e=this.container.bounds.top+this.container.styles.transformOrigin[1].number,Pe=this.container.styles.transform;this.effects.push(new Ns($,_e,Pe))}if(this.container.styles.overflowX!==0){var tt=os(this.curves),mt=vl(this.curves);ic(tt,mt)?this.effects.push(new Ds(tt,2|4)):(this.effects.push(new Ds(tt,2)),this.effects.push(new Ds(mt,4)))}}return q.prototype.getEffects=function(J){for(var ee=[2,3].indexOf(this.container.styles.position)===-1,$=this.parent,_e=this.effects.slice(0);$;){var Pe=$.effects.filter(function(pt){return!ll(pt)});if(ee||$.container.styles.position!==0||!$.parent){if(_e.unshift.apply(_e,Pe),ee=[2,3].indexOf($.container.styles.position)===-1,$.container.styles.overflowX!==0){var tt=os($.curves),mt=vl($.curves);ic(tt,mt)||_e.unshift(new Ds(mt,2|4))}}else _e.unshift.apply(_e,Pe);$=$.parent}return _e.filter(function(pt){return ha(pt.target,J)})},q}(),rc=function(q,J,ee,$){q.container.elements.forEach(function(_e){var Pe=ha(_e.flags,4),tt=ha(_e.flags,2),mt=new sc(_e,q);ha(_e.styles.display,2048)&&$.push(mt);var pt=ha(_e.flags,8)?[]:$;if(Pe||tt){var Pt=Pe||_e.styles.isPositioned()?ee:J,Qt=new oc(mt);if(_e.styles.isPositioned()||_e.styles.opacity<1||_e.styles.isTransformed()){var qt=_e.styles.zIndex.order;if(qt<0){var tn=0;Pt.negativeZIndex.some(function(kn,lr){return qt>kn.element.container.styles.zIndex.order?(tn=lr,!1):tn>0}),Pt.negativeZIndex.splice(tn,0,Qt)}else if(qt>0){var gr=0;Pt.positiveZIndex.some(function(kn,lr){return qt>=kn.element.container.styles.zIndex.order?(gr=lr+1,!1):gr>0}),Pt.positiveZIndex.splice(gr,0,Qt)}else Pt.zeroOrAutoZIndexOrTransformedOrOpacity.push(Qt)}else _e.styles.isFloating()?Pt.nonPositionedFloats.push(Qt):Pt.nonPositionedInlineLevel.push(Qt);rc(mt,Qt,Pe?Qt:ee,pt)}else _e.styles.isInlineLevel()?J.inlineLevel.push(mt):J.nonInlineLevel.push(mt),rc(mt,J,ee,pt);ha(_e.flags,8)&&lc(_e,pt)})},lc=function(q,J){for(var ee=q instanceof Ql?q.start:1,$=q instanceof Ql?q.reversed:!1,_e=0;_e<J.length;_e++){var Pe=J[_e];Pe.container instanceof Hl&&typeof Pe.container.value=="number"&&Pe.container.value!==0&&(ee=Pe.container.value),Pe.listValue=P(ee,Pe.container.styles.listStyleType,!0),ee+=$?-1:1}},Ac=function(q){var J=new sc(q,null),ee=new oc(J),$=[];return rc(J,ee,ee,$),lc(J.container,$),ee},uc=function(q,J){switch(J){case 0:return Rs(q.topLeftBorderBox,q.topLeftPaddingBox,q.topRightBorderBox,q.topRightPaddingBox);case 1:return Rs(q.topRightBorderBox,q.topRightPaddingBox,q.bottomRightBorderBox,q.bottomRightPaddingBox);case 2:return Rs(q.bottomRightBorderBox,q.bottomRightPaddingBox,q.bottomLeftBorderBox,q.bottomLeftPaddingBox);case 3:default:return Rs(q.bottomLeftBorderBox,q.bottomLeftPaddingBox,q.topLeftBorderBox,q.topLeftPaddingBox)}},pc=function(q,J){switch(J){case 0:return Rs(q.topLeftBorderBox,q.topLeftBorderDoubleOuterBox,q.topRightBorderBox,q.topRightBorderDoubleOuterBox);case 1:return Rs(q.topRightBorderBox,q.topRightBorderDoubleOuterBox,q.bottomRightBorderBox,q.bottomRightBorderDoubleOuterBox);case 2:return Rs(q.bottomRightBorderBox,q.bottomRightBorderDoubleOuterBox,q.bottomLeftBorderBox,q.bottomLeftBorderDoubleOuterBox);case 3:default:return Rs(q.bottomLeftBorderBox,q.bottomLeftBorderDoubleOuterBox,q.topLeftBorderBox,q.topLeftBorderDoubleOuterBox)}},mc=function(q,J){switch(J){case 0:return Rs(q.topLeftBorderDoubleInnerBox,q.topLeftPaddingBox,q.topRightBorderDoubleInnerBox,q.topRightPaddingBox);case 1:return Rs(q.topRightBorderDoubleInnerBox,q.topRightPaddingBox,q.bottomRightBorderDoubleInnerBox,q.bottomRightPaddingBox);case 2:return Rs(q.bottomRightBorderDoubleInnerBox,q.bottomRightPaddingBox,q.bottomLeftBorderDoubleInnerBox,q.bottomLeftPaddingBox);case 3:default:return Rs(q.bottomLeftBorderDoubleInnerBox,q.bottomLeftPaddingBox,q.topLeftBorderDoubleInnerBox,q.topLeftPaddingBox)}},vc=function(q,J){switch(J){case 0:return Hu(q.topLeftBorderStroke,q.topRightBorderStroke);case 1:return Hu(q.topRightBorderStroke,q.bottomRightBorderStroke);case 2:return Hu(q.bottomRightBorderStroke,q.bottomLeftBorderStroke);case 3:default:return Hu(q.bottomLeftBorderStroke,q.topLeftBorderStroke)}},Hu=function(q,J){var ee=[];return _i(q)?ee.push(q.subdivide(.5,!1)):ee.push(q),_i(J)?ee.push(J.subdivide(.5,!0)):ee.push(J),ee},Rs=function(q,J,ee,$){var _e=[];return _i(q)?_e.push(q.subdivide(.5,!1)):_e.push(q),_i(ee)?_e.push(ee.subdivide(.5,!0)):_e.push(ee),_i($)?_e.push($.subdivide(.5,!0).reverse()):_e.push($),_i(J)?_e.push(J.subdivide(.5,!1).reverse()):_e.push(J),_e},cc=function(q){var J=q.bounds,ee=q.styles;return J.add(ee.borderLeftWidth,ee.borderTopWidth,-(ee.borderRightWidth+ee.borderLeftWidth),-(ee.borderTopWidth+ee.borderBottomWidth))},Qu=function(q){var J=q.styles,ee=q.bounds,$=ot(J.paddingLeft,ee.width),_e=ot(J.paddingRight,ee.width),Pe=ot(J.paddingTop,ee.width),tt=ot(J.paddingBottom,ee.width);return ee.add($+J.borderLeftWidth,Pe+J.borderTopWidth,-(J.borderRightWidth+J.borderLeftWidth+$+_e),-(J.borderTopWidth+J.borderBottomWidth+Pe+tt))},gc=function(q,J){return q===0?J.bounds:q===2?Qu(J):cc(J)},yc=function(q,J){return q===0?J.bounds:q===2?Qu(J):cc(J)},ac=function(q,J,ee){var $=gc(Yl(q.styles.backgroundOrigin,J),q),_e=yc(Yl(q.styles.backgroundClip,J),q),Pe=bc(Yl(q.styles.backgroundSize,J),ee,$),tt=Pe[0],mt=Pe[1],pt=st(Yl(q.styles.backgroundPosition,J),$.width-tt,$.height-mt),Pt=Ec(Yl(q.styles.backgroundRepeat,J),pt,Pe,$,_e),Qt=Math.round($.left+pt[0]),qt=Math.round($.top+pt[1]);return[Pt,Qt,qt,tt,mt]},Xl=function(q){return Ha(q)&&q.value===ai.AUTO},Ku=function(q){return typeof q=="number"},bc=function(q,J,ee){var $=J[0],_e=J[1],Pe=J[2],tt=q[0],mt=q[1];if(!tt)return[0,0];if(Te(tt)&&mt&&Te(mt))return[ot(tt,ee.width),ot(mt,ee.height)];var pt=Ku(Pe);if(Ha(tt)&&(tt.value===ai.CONTAIN||tt.value===ai.COVER)){if(Ku(Pe)){var Pt=ee.width/ee.height;return Pt<Pe!==(tt.value===ai.COVER)?[ee.width,ee.width/Pe]:[ee.height*Pe,ee.height]}return[ee.width,ee.height]}var Qt=Ku($),qt=Ku(_e),tn=Qt||qt;if(Xl(tt)&&(!mt||Xl(mt))){if(Qt&&qt)return[$,_e];if(!pt&&!tn)return[ee.width,ee.height];if(tn&&pt){var gr=Qt?$:_e*Pe,kn=qt?_e:$/Pe;return[gr,kn]}var lr=Qt?$:ee.width,qr=qt?_e:ee.height;return[lr,qr]}if(pt){var pr=0,Cr=0;return Te(tt)?pr=ot(tt,ee.width):Te(mt)&&(Cr=ot(mt,ee.height)),Xl(tt)?pr=Cr*Pe:(!mt||Xl(mt))&&(Cr=pr/Pe),[pr,Cr]}var Ka=null,ba=null;if(Te(tt)?Ka=ot(tt,ee.width):mt&&Te(mt)&&(ba=ot(mt,ee.height)),Ka!==null&&(!mt||Xl(mt))&&(ba=Qt&&qt?Ka/$*_e:ee.height),ba!==null&&Xl(tt)&&(Ka=Qt&&qt?ba/_e*$:ee.width),Ka!==null&&ba!==null)return[Ka,ba];throw new Error("Unable to calculate background-size for element")},Yl=function(q,J){var ee=q[J];return typeof ee=="undefined"?q[0]:ee},Ec=function(q,J,ee,$,_e){var Pe=J[0],tt=J[1],mt=ee[0],pt=ee[1];switch(q){case 2:return[new Nn(Math.round($.left),Math.round($.top+tt)),new Nn(Math.round($.left+$.width),Math.round($.top+tt)),new Nn(Math.round($.left+$.width),Math.round(pt+$.top+tt)),new Nn(Math.round($.left),Math.round(pt+$.top+tt))];case 3:return[new Nn(Math.round($.left+Pe),Math.round($.top)),new Nn(Math.round($.left+Pe+mt),Math.round($.top)),new Nn(Math.round($.left+Pe+mt),Math.round($.height+$.top)),new Nn(Math.round($.left+Pe),Math.round($.height+$.top))];case 1:return[new Nn(Math.round($.left+Pe),Math.round($.top+tt)),new Nn(Math.round($.left+Pe+mt),Math.round($.top+tt)),new Nn(Math.round($.left+Pe+mt),Math.round($.top+tt+pt)),new Nn(Math.round($.left+Pe),Math.round($.top+tt+pt))];default:return[new Nn(Math.round(_e.left),Math.round(_e.top)),new Nn(Math.round(_e.left+_e.width),Math.round(_e.top)),new Nn(Math.round(_e.left+_e.width),Math.round(_e.height+_e.top)),new Nn(Math.round(_e.left),Math.round(_e.height+_e.top))]}},Cc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",dc="Hidden Text",wc=function(){function q(J){this._data={},this._document=J}return q.prototype.parseMetrics=function(J,ee){var $=this._document.createElement("div"),_e=this._document.createElement("img"),Pe=this._document.createElement("span"),tt=this._document.body;$.style.visibility="hidden",$.style.fontFamily=J,$.style.fontSize=ee,$.style.margin="0",$.style.padding="0",$.style.whiteSpace="nowrap",tt.appendChild($),_e.src=Cc,_e.width=1,_e.height=1,_e.style.margin="0",_e.style.padding="0",_e.style.verticalAlign="baseline",Pe.style.fontFamily=J,Pe.style.fontSize=ee,Pe.style.margin="0",Pe.style.padding="0",Pe.appendChild(this._document.createTextNode(dc)),$.appendChild(Pe),$.appendChild(_e);var mt=_e.offsetTop-Pe.offsetTop+2;$.removeChild(Pe),$.appendChild(this._document.createTextNode(dc)),$.style.lineHeight="normal",_e.style.verticalAlign="super";var pt=_e.offsetTop-$.offsetTop+2;return tt.removeChild($),{baseline:mt,middle:pt}},q.prototype.getMetrics=function(J,ee){var $=J+" "+ee;return typeof this._data[$]=="undefined"&&(this._data[$]=this.parseMetrics(J,ee)),this._data[$]},q}(),hc=function(){function q(J,ee){this.context=J,this.options=ee}return q}(),xc=1e4,_c=function(q){V(J,q);function J(ee,$){var _e=q.call(this,ee,$)||this;return _e._activeEffects=[],_e.canvas=$.canvas?$.canvas:document.createElement("canvas"),_e.ctx=_e.canvas.getContext("2d"),$.canvas||(_e.canvas.width=Math.floor($.width*$.scale),_e.canvas.height=Math.floor($.height*$.scale),_e.canvas.style.width=$.width+"px",_e.canvas.style.height=$.height+"px"),_e.fontMetrics=new wc(document),_e.ctx.scale(_e.options.scale,_e.options.scale),_e.ctx.translate(-$.x,-$.y),_e.ctx.textBaseline="bottom",_e._activeEffects=[],_e.context.logger.debug("Canvas renderer initialized ("+$.width+"x"+$.height+") with scale "+$.scale),_e}return J.prototype.applyEffects=function(ee){for(var $=this;this._activeEffects.length;)this.popEffect();ee.forEach(function(_e){return $.applyEffect(_e)})},J.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)},J.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},J.prototype.renderStack=function(ee){return p(this,void 0,void 0,function(){var $;return E(this,function(_e){switch(_e.label){case 0:return $=ee.element.container.styles,$.isVisible()?[4,this.renderStackContent(ee)]:[3,2];case 1:_e.sent(),_e.label=2;case 2:return[2]}})})},J.prototype.renderNode=function(ee){return p(this,void 0,void 0,function(){return E(this,function($){switch($.label){case 0:if(ha(ee.container.flags,16))debugger;return ee.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(ee)]:[3,3];case 1:return $.sent(),[4,this.renderNodeContent(ee)];case 2:$.sent(),$.label=3;case 3:return[2]}})})},J.prototype.renderTextWithLetterSpacing=function(ee,$,_e){var Pe=this;if($===0)this.ctx.fillText(ee.text,ee.bounds.left,ee.bounds.top+_e);else{var tt=ou(ee.text);tt.reduce(function(mt,pt){return Pe.ctx.fillText(pt,mt,ee.bounds.top+_e),mt+Pe.ctx.measureText(pt).width},ee.bounds.left)}},J.prototype.createFontStyle=function(ee){var $=ee.fontVariant.filter(function(tt){return tt==="normal"||tt==="small-caps"}).join(""),_e=Dc(ee.fontFamily).join(", "),Pe=xo(ee.fontSize)?""+ee.fontSize.number+ee.fontSize.unit:ee.fontSize.number+"px";return[[ee.fontStyle,$,ee.fontWeight,Pe,_e].join(" "),_e,Pe]},J.prototype.renderTextNode=function(ee,$){return p(this,void 0,void 0,function(){var _e,Pe,tt,mt,pt,Pt,Qt,qt,tn=this;return E(this,function(gr){return _e=this.createFontStyle($),Pe=_e[0],tt=_e[1],mt=_e[2],this.ctx.font=Pe,this.ctx.direction=$.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",pt=this.fontMetrics.getMetrics(tt,mt),Pt=pt.baseline,Qt=pt.middle,qt=$.paintOrder,ee.textBounds.forEach(function(kn){qt.forEach(function(lr){switch(lr){case 0:tn.ctx.fillStyle=On($.color),tn.renderTextWithLetterSpacing(kn,$.letterSpacing,Pt);var qr=$.textShadow;qr.length&&kn.text.trim().length&&(qr.slice(0).reverse().forEach(function(pr){tn.ctx.shadowColor=On(pr.color),tn.ctx.shadowOffsetX=pr.offsetX.number*tn.options.scale,tn.ctx.shadowOffsetY=pr.offsetY.number*tn.options.scale,tn.ctx.shadowBlur=pr.blur.number,tn.renderTextWithLetterSpacing(kn,$.letterSpacing,Pt)}),tn.ctx.shadowColor="",tn.ctx.shadowOffsetX=0,tn.ctx.shadowOffsetY=0,tn.ctx.shadowBlur=0),$.textDecorationLine.length&&(tn.ctx.fillStyle=On($.textDecorationColor||$.color),$.textDecorationLine.forEach(function(pr){switch(pr){case 1:tn.ctx.fillRect(kn.bounds.left,Math.round(kn.bounds.top+Pt),kn.bounds.width,1);break;case 2:tn.ctx.fillRect(kn.bounds.left,Math.round(kn.bounds.top),kn.bounds.width,1);break;case 3:tn.ctx.fillRect(kn.bounds.left,Math.ceil(kn.bounds.top+Qt),kn.bounds.width,1);break}}));break;case 1:$.webkitTextStrokeWidth&&kn.text.trim().length&&(tn.ctx.strokeStyle=On($.webkitTextStrokeColor),tn.ctx.lineWidth=$.webkitTextStrokeWidth,tn.ctx.lineJoin=window.chrome?"miter":"round",tn.ctx.strokeText(kn.text,kn.bounds.left,kn.bounds.top+Pt)),tn.ctx.strokeStyle="",tn.ctx.lineWidth=0,tn.ctx.lineJoin="miter";break}})}),[2]})})},J.prototype.renderReplacedElement=function(ee,$,_e){if(_e&&ee.intrinsicWidth>0&&ee.intrinsicHeight>0){var Pe=Qu(ee),tt=vl($);this.path(tt),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(_e,0,0,ee.intrinsicWidth,ee.intrinsicHeight,Pe.left,Pe.top,Pe.width,Pe.height),this.ctx.restore()}},J.prototype.renderNodeContent=function(ee){return p(this,void 0,void 0,function(){var $,_e,Pe,tt,mt,pt,Pt,Pt,Qt,qt,tn,gr,kn,lr,qr,pr,Cr,Ka,ba,Pt,si,kn,pr;return E(this,function(yr){switch(yr.label){case 0:this.applyEffects(ee.getEffects(4)),$=ee.container,_e=ee.curves,Pe=$.styles,tt=0,mt=$.textNodes,yr.label=1;case 1:return tt<mt.length?(pt=mt[tt],[4,this.renderTextNode(pt,Pe)]):[3,4];case 2:yr.sent(),yr.label=3;case 3:return tt++,[3,1];case 4:if(!($ instanceof su))return[3,8];yr.label=5;case 5:return yr.trys.push([5,7,,8]),[4,this.context.cache.match($.src)];case 6:return Pt=yr.sent(),this.renderReplacedElement($,_e,Pt),[3,8];case 7:return yr.sent(),this.context.logger.error("Error loading image "+$.src),[3,8];case 8:if($ instanceof lu&&this.renderReplacedElement($,_e,$.canvas),!($ instanceof wu))return[3,12];yr.label=9;case 9:return yr.trys.push([9,11,,12]),[4,this.context.cache.match($.svg)];case 10:return Pt=yr.sent(),this.renderReplacedElement($,_e,Pt),[3,12];case 11:return yr.sent(),this.context.logger.error("Error loading svg "+$.svg.substring(0,255)),[3,12];case 12:return $ instanceof Ou&&$.tree?(Qt=new J(this.context,{scale:this.options.scale,backgroundColor:$.backgroundColor,x:0,y:0,width:$.width,height:$.height}),[4,Qt.render($.tree)]):[3,14];case 13:qt=yr.sent(),$.width&&$.height&&this.ctx.drawImage(qt,0,0,$.width,$.height,$.bounds.left,$.bounds.top,$.bounds.width,$.bounds.height),yr.label=14;case 14:if($ instanceof Kl&&(tn=Math.min($.bounds.width,$.bounds.height),$.type===Al?$.checked&&(this.ctx.save(),this.path([new Nn($.bounds.left+tn*.39363,$.bounds.top+tn*.79),new Nn($.bounds.left+tn*.16,$.bounds.top+tn*.5549),new Nn($.bounds.left+tn*.27347,$.bounds.top+tn*.44071),new Nn($.bounds.left+tn*.39694,$.bounds.top+tn*.5649),new Nn($.bounds.left+tn*.72983,$.bounds.top+tn*.23),new Nn($.bounds.left+tn*.84,$.bounds.top+tn*.34085),new Nn($.bounds.left+tn*.39363,$.bounds.top+tn*.79)]),this.ctx.fillStyle=On(Su),this.ctx.fill(),this.ctx.restore()):$.type===Vs&&($.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc($.bounds.left+tn/2,$.bounds.top+tn/2,tn/4,0,Math.PI*2,!0),this.ctx.fillStyle=On(Su),this.ctx.fill(),this.ctx.restore()))),Sc($)&&$.value.length){gr=this.createFontStyle(Pe),kn=gr[0],lr=gr[1],qr=this.fontMetrics.getMetrics(kn,lr).baseline,this.ctx.font=kn,this.ctx.fillStyle=On(Pe.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Bc($.styles.textAlign),pr=Qu($),Cr=0;switch($.styles.textAlign){case 1:Cr+=pr.width/2;break;case 2:Cr+=pr.width;break}Ka=pr.add(Cr,0,0,-pr.height/2+1),this.ctx.save(),this.path([new Nn(pr.left,pr.top),new Nn(pr.left+pr.width,pr.top),new Nn(pr.left+pr.width,pr.top+pr.height),new Nn(pr.left,pr.top+pr.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Os($.value,Ka),Pe.letterSpacing,qr),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!ha($.styles.display,2048))return[3,20];if(!($.styles.listStyleImage!==null))return[3,19];if(ba=$.styles.listStyleImage,!(ba.type===0))return[3,18];Pt=void 0,si=ba.url,yr.label=15;case 15:return yr.trys.push([15,17,,18]),[4,this.context.cache.match(si)];case 16:return Pt=yr.sent(),this.ctx.drawImage(Pt,$.bounds.left-(Pt.width+10),$.bounds.top),[3,18];case 17:return yr.sent(),this.context.logger.error("Error loading list-style-image "+si),[3,18];case 18:return[3,20];case 19:ee.listValue&&$.styles.listStyleType!==-1&&(kn=this.createFontStyle(Pe)[0],this.ctx.font=kn,this.ctx.fillStyle=On(Pe.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",pr=new b($.bounds.left,$.bounds.top+ot($.styles.paddingTop,$.bounds.width),$.bounds.width,Pa(Pe.lineHeight,Pe.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Os(ee.listValue,pr),Pe.letterSpacing,Pa(Pe.lineHeight,Pe.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),yr.label=20;case 20:return[2]}})})},J.prototype.renderStackContent=function(ee){return p(this,void 0,void 0,function(){var $,_e,Pe,tt,mt,Pe,pt,Pt,Pe,Qt,qt,Pe,tn,gr,Pe,kn,lr,Pe,qr,pr,Pe;return E(this,function(Cr){switch(Cr.label){case 0:if(ha(ee.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(ee.element)];case 1:Cr.sent(),$=0,_e=ee.negativeZIndex,Cr.label=2;case 2:return $<_e.length?(Pe=_e[$],[4,this.renderStack(Pe)]):[3,5];case 3:Cr.sent(),Cr.label=4;case 4:return $++,[3,2];case 5:return[4,this.renderNodeContent(ee.element)];case 6:Cr.sent(),tt=0,mt=ee.nonInlineLevel,Cr.label=7;case 7:return tt<mt.length?(Pe=mt[tt],[4,this.renderNode(Pe)]):[3,10];case 8:Cr.sent(),Cr.label=9;case 9:return tt++,[3,7];case 10:pt=0,Pt=ee.nonPositionedFloats,Cr.label=11;case 11:return pt<Pt.length?(Pe=Pt[pt],[4,this.renderStack(Pe)]):[3,14];case 12:Cr.sent(),Cr.label=13;case 13:return pt++,[3,11];case 14:Qt=0,qt=ee.nonPositionedInlineLevel,Cr.label=15;case 15:return Qt<qt.length?(Pe=qt[Qt],[4,this.renderStack(Pe)]):[3,18];case 16:Cr.sent(),Cr.label=17;case 17:return Qt++,[3,15];case 18:tn=0,gr=ee.inlineLevel,Cr.label=19;case 19:return tn<gr.length?(Pe=gr[tn],[4,this.renderNode(Pe)]):[3,22];case 20:Cr.sent(),Cr.label=21;case 21:return tn++,[3,19];case 22:kn=0,lr=ee.zeroOrAutoZIndexOrTransformedOrOpacity,Cr.label=23;case 23:return kn<lr.length?(Pe=lr[kn],[4,this.renderStack(Pe)]):[3,26];case 24:Cr.sent(),Cr.label=25;case 25:return kn++,[3,23];case 26:qr=0,pr=ee.positiveZIndex,Cr.label=27;case 27:return qr<pr.length?(Pe=pr[qr],[4,this.renderStack(Pe)]):[3,30];case 28:Cr.sent(),Cr.label=29;case 29:return qr++,[3,27];case 30:return[2]}})})},J.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()},J.prototype.path=function(ee){this.ctx.beginPath(),this.formatPath(ee),this.ctx.closePath()},J.prototype.formatPath=function(ee){var $=this;ee.forEach(function(_e,Pe){var tt=_i(_e)?_e.start:_e;Pe===0?$.ctx.moveTo(tt.x,tt.y):$.ctx.lineTo(tt.x,tt.y),_i(_e)&&$.ctx.bezierCurveTo(_e.startControl.x,_e.startControl.y,_e.endControl.x,_e.endControl.y,_e.end.x,_e.end.y)})},J.prototype.renderRepeat=function(ee,$,_e,Pe){this.path(ee),this.ctx.fillStyle=$,this.ctx.translate(_e,Pe),this.ctx.fill(),this.ctx.translate(-_e,-Pe)},J.prototype.resizeImage=function(ee,$,_e){var Pe;if(ee.width===$&&ee.height===_e)return ee;var tt=(Pe=this.canvas.ownerDocument)!==null&&Pe!==void 0?Pe:document,mt=tt.createElement("canvas");mt.width=Math.max(1,$),mt.height=Math.max(1,_e);var pt=mt.getContext("2d");return pt.drawImage(ee,0,0,ee.width,ee.height,0,0,$,_e),mt},J.prototype.renderBackgroundImage=function(ee){return p(this,void 0,void 0,function(){var $,_e,Pe,tt,mt,pt;return E(this,function(Pt){switch(Pt.label){case 0:$=ee.styles.backgroundImage.length-1,_e=function(Qt){var qt,tn,gr,kn,lr,qr,pr,Cr,Ka,ba,kn,lr,qr,pr,Cr,si,yr,ri,li,ya,As,ss,ws,Do,Ka,Ys,kn,gl,yl,pr,Cr,bl,lr,qr,Ml,Js,El,Ll,Pl,ul,Ul,cl;return E(this,function(Jl){switch(Jl.label){case 0:if(!(Qt.type===0))return[3,5];qt=void 0,tn=Qt.url,Jl.label=1;case 1:return Jl.trys.push([1,3,,4]),[4,Pe.context.cache.match(tn)];case 2:return qt=Jl.sent(),[3,4];case 3:return Jl.sent(),Pe.context.logger.error("Error loading background-image "+tn),[3,4];case 4:return qt&&(gr=ac(ee,$,[qt.width,qt.height,qt.width/qt.height]),kn=gr[0],lr=gr[1],qr=gr[2],pr=gr[3],Cr=gr[4],Ka=Pe.ctx.createPattern(Pe.resizeImage(qt,pr,Cr),"repeat"),Pe.renderRepeat(kn,Ka,lr,qr)),[3,6];case 5:sn(Qt)?(ba=ac(ee,$,[null,null,null]),kn=ba[0],lr=ba[1],qr=ba[2],pr=ba[3],Cr=ba[4],si=Tr(Qt.angle,pr,Cr),yr=si[0],ri=si[1],li=si[2],ya=si[3],As=si[4],ss=document.createElement("canvas"),ss.width=pr,ss.height=Cr,ws=ss.getContext("2d"),Do=ws.createLinearGradient(ri,ya,li,As),Dr(Qt.stops,yr).forEach(function(pu){return Do.addColorStop(pu.stop,On(pu.color))}),ws.fillStyle=Do,ws.fillRect(0,0,pr,Cr),pr>0&&Cr>0&&(Ka=Pe.ctx.createPattern(ss,"repeat"),Pe.renderRepeat(kn,Ka,lr,qr))):Wn(Qt)&&(Ys=ac(ee,$,[null,null,null]),kn=Ys[0],gl=Ys[1],yl=Ys[2],pr=Ys[3],Cr=Ys[4],bl=Qt.position.length===0?[at]:Qt.position,lr=ot(bl[0],pr),qr=ot(bl[bl.length-1],Cr),Ml=Qn(Qt,lr,qr,pr,Cr),Js=Ml[0],El=Ml[1],Js>0&&El>0&&(Ll=Pe.ctx.createRadialGradient(gl+lr,yl+qr,0,gl+lr,yl+qr,Js),Dr(Qt.stops,Js*2).forEach(function(pu){return Ll.addColorStop(pu.stop,On(pu.color))}),Pe.path(kn),Pe.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,Pe.ctx.save(),Pe.ctx.translate(Pl,ul),Pe.ctx.transform(1,0,0,Ul,0,0),Pe.ctx.translate(-Pl,-ul),Pe.ctx.fillRect(gl,cl*(yl-ul)+ul,pr,Cr*cl),Pe.ctx.restore()):Pe.ctx.fill())),Jl.label=6;case 6:return $--,[2]}})},Pe=this,tt=0,mt=ee.styles.backgroundImage.slice(0).reverse(),Pt.label=1;case 1:return tt<mt.length?(pt=mt[tt],[5,_e(pt)]):[3,4];case 2:Pt.sent(),Pt.label=3;case 3:return tt++,[3,1];case 4:return[2]}})})},J.prototype.renderSolidBorder=function(ee,$,_e){return p(this,void 0,void 0,function(){return E(this,function(Pe){return this.path(uc(_e,$)),this.ctx.fillStyle=On(ee),this.ctx.fill(),[2]})})},J.prototype.renderDoubleBorder=function(ee,$,_e,Pe){return p(this,void 0,void 0,function(){var tt,mt;return E(this,function(pt){switch(pt.label){case 0:return $<3?[4,this.renderSolidBorder(ee,_e,Pe)]:[3,2];case 1:return pt.sent(),[2];case 2:return tt=pc(Pe,_e),this.path(tt),this.ctx.fillStyle=On(ee),this.ctx.fill(),mt=mc(Pe,_e),this.path(mt),this.ctx.fill(),[2]}})})},J.prototype.renderNodeBackgroundAndBorders=function(ee){return p(this,void 0,void 0,function(){var $,_e,Pe,tt,mt,pt,Pt,Qt,qt=this;return E(this,function(tn){switch(tn.label){case 0:return this.applyEffects(ee.getEffects(2)),$=ee.container.styles,_e=!gn($.backgroundColor)||$.backgroundImage.length,Pe=[{style:$.borderTopStyle,color:$.borderTopColor,width:$.borderTopWidth},{style:$.borderRightStyle,color:$.borderRightColor,width:$.borderRightWidth},{style:$.borderBottomStyle,color:$.borderBottomColor,width:$.borderBottomWidth},{style:$.borderLeftStyle,color:$.borderLeftColor,width:$.borderLeftWidth}],tt=Tc(Yl($.backgroundClip,0),ee.curves),_e||$.boxShadow.length?(this.ctx.save(),this.path(tt),this.ctx.clip(),gn($.backgroundColor)||(this.ctx.fillStyle=On($.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(ee.container)]):[3,2];case 1:tn.sent(),this.ctx.restore(),$.boxShadow.slice(0).reverse().forEach(function(gr){qt.ctx.save();var kn=os(ee.curves),lr=gr.inset?0:xc,qr=fc(kn,-lr+(gr.inset?1:-1)*gr.spread.number,(gr.inset?1:-1)*gr.spread.number,gr.spread.number*(gr.inset?-2:2),gr.spread.number*(gr.inset?-2:2));gr.inset?(qt.path(kn),qt.ctx.clip(),qt.mask(qr)):(qt.mask(kn),qt.ctx.clip(),qt.path(qr)),qt.ctx.shadowOffsetX=gr.offsetX.number+lr,qt.ctx.shadowOffsetY=gr.offsetY.number,qt.ctx.shadowColor=On(gr.color),qt.ctx.shadowBlur=gr.blur.number,qt.ctx.fillStyle=gr.inset?On(gr.color):"rgba(0,0,0,1)",qt.ctx.fill(),qt.ctx.restore()}),tn.label=2;case 2:mt=0,pt=0,Pt=Pe,tn.label=3;case 3:return pt<Pt.length?(Qt=Pt[pt],Qt.style!==0&&!gn(Qt.color)&&Qt.width>0?Qt.style===2?[4,this.renderDashedDottedBorder(Qt.color,Qt.width,mt,ee.curves,2)]:[3,5]:[3,11]):[3,13];case 4:return tn.sent(),[3,11];case 5:return Qt.style===3?[4,this.renderDashedDottedBorder(Qt.color,Qt.width,mt,ee.curves,3)]:[3,7];case 6:return tn.sent(),[3,11];case 7:return Qt.style===4?[4,this.renderDoubleBorder(Qt.color,Qt.width,mt,ee.curves)]:[3,9];case 8:return tn.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Qt.color,mt,ee.curves)];case 10:tn.sent(),tn.label=11;case 11:mt++,tn.label=12;case 12:return pt++,[3,3];case 13:return[2]}})})},J.prototype.renderDashedDottedBorder=function(ee,$,_e,Pe,tt){return p(this,void 0,void 0,function(){var mt,pt,Pt,Qt,qt,tn,gr,kn,lr,qr,pr,Cr,Ka,ba,si,yr,si,yr;return E(this,function(ri){return this.ctx.save(),mt=vc(Pe,_e),pt=uc(Pe,_e),tt===2&&(this.path(pt),this.ctx.clip()),_i(pt[0])?(Pt=pt[0].start.x,Qt=pt[0].start.y):(Pt=pt[0].x,Qt=pt[0].y),_i(pt[1])?(qt=pt[1].end.x,tn=pt[1].end.y):(qt=pt[1].x,tn=pt[1].y),_e===0||_e===2?gr=Math.abs(Pt-qt):gr=Math.abs(Qt-tn),this.ctx.beginPath(),tt===3?this.formatPath(mt):this.formatPath(pt.slice(0,2)),kn=$<3?$*3:$*2,lr=$<3?$*2:$,tt===3&&(kn=$,lr=$),qr=!0,gr<=kn*2?qr=!1:gr<=kn*2+lr?(pr=gr/(2*kn+lr),kn*=pr,lr*=pr):(Cr=Math.floor((gr+lr)/(kn+lr)),Ka=(gr-Cr*kn)/(Cr-1),ba=(gr-(Cr+1)*kn)/Cr,lr=ba<=0||Math.abs(lr-Ka)<Math.abs(lr-ba)?Ka:ba),qr&&(tt===3?this.ctx.setLineDash([0,kn+lr]):this.ctx.setLineDash([kn,lr])),tt===3?(this.ctx.lineCap="round",this.ctx.lineWidth=$):this.ctx.lineWidth=$*2+1.1,this.ctx.strokeStyle=On(ee),this.ctx.stroke(),this.ctx.setLineDash([]),tt===2&&(_i(pt[0])&&(si=pt[3],yr=pt[0],this.ctx.beginPath(),this.formatPath([new Nn(si.end.x,si.end.y),new Nn(yr.start.x,yr.start.y)]),this.ctx.stroke()),_i(pt[1])&&(si=pt[1],yr=pt[2],this.ctx.beginPath(),this.formatPath([new Nn(si.end.x,si.end.y),new Nn(yr.start.x,yr.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},J.prototype.render=function(ee){return p(this,void 0,void 0,function(){var $;return E(this,function(_e){switch(_e.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=On(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),$=Ac(ee),[4,this.renderStack($)];case 1:return _e.sent(),this.applyEffects([]),[2,this.canvas]}})})},J}(hc),Sc=function(q){return q instanceof Bu||q instanceof Tu?!0:q instanceof Kl&&q.type!==Vs&&q.type!==Al},Tc=function(q,J){switch(q){case 0:return os(J);case 2:return lo(J);case 1:default:return vl(J)}},Bc=function(q){switch(q){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Oc=["-apple-system","system-ui"],Dc=function(q){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?q.filter(function(J){return Oc.indexOf(J)===-1}):q},Rc=function(q){V(J,q);function J(ee,$){var _e=q.call(this,ee,$)||this;return _e.canvas=$.canvas?$.canvas:document.createElement("canvas"),_e.ctx=_e.canvas.getContext("2d"),_e.options=$,_e.canvas.width=Math.floor($.width*$.scale),_e.canvas.height=Math.floor($.height*$.scale),_e.canvas.style.width=$.width+"px",_e.canvas.style.height=$.height+"px",_e.ctx.scale(_e.options.scale,_e.options.scale),_e.ctx.translate(-$.x,-$.y),_e.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+$.width+"x"+$.height+" at "+$.x+","+$.y+") with scale "+$.scale),_e}return J.prototype.render=function(ee){return p(this,void 0,void 0,function(){var $,_e;return E(this,function(Pe){switch(Pe.label){case 0:return $=Fl(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,ee),[4,Ic($)];case 1:return _e=Pe.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=On(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(_e,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},J}(hc),Ic=function(q){return new Promise(function(J,ee){var $=new Image;$.onload=function(){J($)},$.onerror=ee,$.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(q))})},Mc=function(){function q(J){var ee=J.id,$=J.enabled;this.id=ee,this.enabled=$,this.start=Date.now()}return q.prototype.debug=function(){for(var J=[],ee=0;ee<arguments.length;ee++)J[ee]=arguments[ee];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,C([this.id,this.getTime()+"ms"],J)):this.info.apply(this,J))},q.prototype.getTime=function(){return Date.now()-this.start},q.prototype.info=function(){for(var J=[],ee=0;ee<arguments.length;ee++)J[ee]=arguments[ee];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,C([this.id,this.getTime()+"ms"],J)))},q.prototype.warn=function(){for(var J=[],ee=0;ee<arguments.length;ee++)J[ee]=arguments[ee];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,C([this.id,this.getTime()+"ms"],J)):this.info.apply(this,J))},q.prototype.error=function(){for(var J=[],ee=0;ee<arguments.length;ee++)J[ee]=arguments[ee];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,C([this.id,this.getTime()+"ms"],J)):this.info.apply(this,J))},q.instances={},q}(),Lc=function(){function q(J,ee){var $;this.windowBounds=ee,this.instanceName="#"+q.instanceCount++,this.logger=new Mc({id:this.instanceName,enabled:J.logging}),this.cache=($=J.cache)!==null&&$!==void 0?$:new fa(this,J)}return q.instanceCount=1,q}(),Pc=function(q,J){return J===void 0&&(J={}),Uc(q,J)};typeof window!="undefined"&&Ir.setContext(window);var Uc=function(q,J){return p(void 0,void 0,void 0,function(){var ee,$,_e,Pe,tt,mt,pt,Pt,Qt,qt,tn,gr,kn,lr,qr,pr,Cr,Ka,ba,si,yr,ri,yr,li,ya,As,ss,ws,Do,Ys,gl,yl,bl,Ml,Js,El,Ll,Pl,ul,Ul;return E(this,function(cl){switch(cl.label){case 0:if(!q||typeof q!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(ee=q.ownerDocument,!ee)throw new Error("Element is not attached to a Document");if($=ee.defaultView,!$)throw new Error("Document is not attached to a Window");return _e={allowTaint:(li=J.allowTaint)!==null&&li!==void 0?li:!1,imageTimeout:(ya=J.imageTimeout)!==null&&ya!==void 0?ya:15e3,proxy:J.proxy,useCORS:(As=J.useCORS)!==null&&As!==void 0?As:!1},Pe=M({logging:(ss=J.logging)!==null&&ss!==void 0?ss:!0,cache:J.cache},_e),tt={windowWidth:(ws=J.windowWidth)!==null&&ws!==void 0?ws:$.innerWidth,windowHeight:(Do=J.windowHeight)!==null&&Do!==void 0?Do:$.innerHeight,scrollX:(Ys=J.scrollX)!==null&&Ys!==void 0?Ys:$.pageXOffset,scrollY:(gl=J.scrollY)!==null&&gl!==void 0?gl:$.pageYOffset},mt=new b(tt.scrollX,tt.scrollY,tt.windowWidth,tt.windowHeight),pt=new Lc(Pe,mt),Pt=(yl=J.foreignObjectRendering)!==null&&yl!==void 0?yl:!1,Qt={allowTaint:(bl=J.allowTaint)!==null&&bl!==void 0?bl:!1,onclone:J.onclone,ignoreElements:J.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,q,Qt),tn=qt.clonedReferenceElement,tn?[4,qt.toIFrame(ee,mt)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return gr=cl.sent(),kn=vi(tn)||nc(tn)?l(tn.ownerDocument):f(pt,tn),lr=kn.width,qr=kn.height,pr=kn.left,Cr=kn.top,Ka=kc(pt,tn,J.backgroundColor),ba={canvas:J.canvas,backgroundColor:Ka,scale:(Js=(Ml=J.scale)!==null&&Ml!==void 0?Ml:$.devicePixelRatio)!==null&&Js!==void 0?Js:1,x:((El=J.x)!==null&&El!==void 0?El:0)+pr,y:((Ll=J.y)!==null&&Ll!==void 0?Ll:0)+Cr,width:(Pl=J.width)!==null&&Pl!==void 0?Pl:Math.ceil(lr),height:(ul=J.height)!==null&&ul!==void 0?ul:Math.ceil(qr)},Pt?(pt.logger.debug("Document cloned, using foreign object rendering"),yr=new Rc(pt,ba),[4,yr.render(tn)]):[3,3];case 2:return si=cl.sent(),[3,5];case 3:return pt.logger.debug("Document cloned, element located at "+pr+","+Cr+" with size "+lr+"x"+qr+" using computed rendering"),pt.logger.debug("Starting DOM parsing"),ri=Ru(pt,tn),Ka===ri.styles.backgroundColor&&(ri.styles.backgroundColor=Cn.TRANSPARENT),pt.logger.debug("Starting renderer for element at "+ba.x+","+ba.y+" with size "+ba.width+"x"+ba.height),yr=new _c(pt,ba),[4,yr.render(ri)];case 4:si=cl.sent(),cl.label=5;case 5:return((Ul=J.removeContainer)!==null&&Ul!==void 0?Ul:!0)&&(H.destroy(gr)||pt.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),pt.logger.debug("Finished rendering"),[2,si]}})})},kc=function(q,J,ee){var $=J.ownerDocument,_e=$.documentElement?fn(q,getComputedStyle($.documentElement).backgroundColor):Cn.TRANSPARENT,Pe=$.body?fn(q,getComputedStyle($.body).backgroundColor):Cn.TRANSPARENT,tt=typeof ee=="string"?fn(q,ee):ee===null?Cn.TRANSPARENT:4294967295;return J===$.documentElement?gn(_e)?gn(Pe)?tt:Pe:_e:tt};return Pc})},wRmb:function(We,Ce,I){"use strict";I.d(Ce,"a",function(){return r});var ae=I("rePB"),V=I("KQm4"),M=I("VTBJ"),p=I("Ff2n"),E=I("q1tI"),C=I.n(E),b=I("Kwbf"),f=I("Zm9Q"),l=I("hW8S");function r(a){return Object(f.a)(a).filter(function(A){return E.isValidElement(A)}).map(function(A){var d=A.key,i=A.props,h=i.children,y=Object(p.a)(i,["children"]),v=Object(M.a)({key:d},y);return h&&(v.children=r(h)),v})}function n(a){return a.reduce(function(A,d){var i=d.fixed,h=i===!0?"left":i,y=d.children;return y&&y.length>0?[].concat(Object(V.a)(A),Object(V.a)(n(y).map(function(v){return Object(M.a)({fixed:h},v)}))):[].concat(Object(V.a)(A),[Object(M.a)(Object(M.a)({},d),{},{fixed:h})])},[])}function e(a){for(var A=!0,d=0;d<a.length;d+=1){var i=a[d];if(A&&i.fixed!=="left")A=!1;else if(!A&&i.fixed==="left"){Object(b.a)(!1,"Index ".concat(d-1," of `columns` missing `fixed='left'` prop."));break}}for(var h=!0,y=a.length-1;y>=0;y-=1){var v=a[y];if(h&&v.fixed!=="right")h=!1;else if(!h&&v.fixed==="right"){Object(b.a)(!1,"Index ".concat(y+1," of `columns` missing `fixed='right'` prop."));break}}}function s(a){return a.map(function(A){var d=A.fixed,i=Object(p.a)(A,["fixed"]),h=d;return d==="left"?h="right":d==="right"&&(h="left"),Object(M.a)({fixed:h},i)})}function u(a,A){var d=a.prefixCls,i=a.columns,h=a.children,y=a.expandable,v=a.expandedKeys,x=a.getRowKey,S=a.onTriggerExpand,B=a.expandIcon,w=a.rowExpandable,m=a.expandIconColumnIndex,c=a.direction,o=a.expandRowByClick,_=E.useMemo(function(){return i||r(h)},[i,h]),D=E.useMemo(function(){if(y){var R,U=m||0,F=_[U],Y=(R={},Object(ae.a)(R,l.a,{className:"".concat(d,"-expand-icon-col")}),Object(ae.a)(R,"title",""),Object(ae.a)(R,"fixed",F?F.fixed:null),Object(ae.a)(R,"className","".concat(d,"-row-expand-icon-cell")),Object(ae.a)(R,"render",function(z,j,Q){var X=x(j,Q),te=v.has(X),oe=w?w(j):!0,fe=B({prefixCls:d,expanded:te,expandable:oe,record:j,onExpand:S});return o?E.createElement("span",{onClick:function(we){return we.stopPropagation()}},fe):fe}),R),k=_.slice();return U>=0&&k.splice(U,0,Y),k}return _},[y,_,x,v,B,c]),T=E.useMemo(function(){var R=D;return A&&(R=A(R)),R.length||(R=[{render:function(){return null}}]),R},[A,D,c]),O=E.useMemo(function(){return c==="rtl"?s(n(T)):n(T)},[T,c]);return[T,O]}Ce.b=u},wU8J:function(We,Ce){function I(){this.buffer=new Array,this.length=0}I.prototype={get:function(ae){var V=Math.floor(ae/8);return(this.buffer[V]>>>7-ae%8&1)==1},put:function(ae,V){for(var M=0;M<V;M++)this.putBit((ae>>>V-M-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(ae){var V=Math.floor(this.length/8);this.buffer.length<=V&&this.buffer.push(0),ae&&(this.buffer[V]|=128>>>this.length%8),this.length++}},We.exports=I},wYyv:function(We,Ce,I){"use strict";const ae=(M,p,E)=>{const C=p<0?M.length+p:p;if(C>=0&&C<M.length){const b=E<0?M.length+E:E,[f]=M.splice(p,1);M.splice(b,0,f)}},V=(M,p,E)=>(M=[...M],ae(M,p,E),M);We.exports=V,We.exports.mutate=ae},wzkS:function(We,Ce,I){"use strict";I.d(Ce,"c",function(){return E}),I.d(Ce,"b",function(){return C}),I.d(Ce,"d",function(){return b}),I.d(Ce,"a",function(){return l}),I.d(Ce,"e",function(){return r});var ae=I("9og8"),V=I("WmNS"),M=I.n(V),p=I("ErOA");function E(n){return Object(p.c)("libraries/".concat(n,".json"))}function C(){return Object(p.c)("library_tags.json")}function b(n){return f.apply(this,arguments)}function f(){return f=Object(ae.a)(M.a.mark(function n(e){var s;return M.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,Object(p.b)("attachments/".concat(e,".json"));case 2:return s=a.sent,a.abrupt("return",s.status===0);case 4:case"end":return a.stop()}},n)})),f.apply(this,arguments)}function l(n){return Object(p.f)("libraries.json",n)}function r(n,e){return Object(p.g)("libraries/".concat(n,".json"),e)}},x6Kt:function(We,Ce,I){var ae=I("y+Vt"),V=I("VpOo"),M=I("nPnh"),p=M.subPixelOptimizeRect,E={},C=ae.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(b,f){var l,r,n,e;this.subPixelOptimize?(p(E,f,this.style),l=E.x,r=E.y,n=E.width,e=E.height,E.r=f.r,f=E):(l=f.x,r=f.y,n=f.width,e=f.height),f.r?V.buildPath(b,f):b.rect(l,r,n,e),b.closePath();return}});We.exports=C},"y+Vt":function(We,Ce,I){var ae=I("Gev7"),V=I("bYtY"),M=I("IMiH"),p=I("2DNl"),E=I("3C/r"),C=E.prototype.getCanvasPattern,b=Math.abs,f=new M(!0);function l(n){ae.call(this,n),this.path=null}l.prototype={constructor:l,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(n,e){var s=this.style,u=this.path||f,a=s.hasStroke(),A=s.hasFill(),d=s.fill,i=s.stroke,h=A&&!!d.colorStops,y=a&&!!i.colorStops,v=A&&!!d.image,x=a&&!!i.image;if(s.bind(n,this,e),this.setTransform(n),this.__dirty){var S;h&&(S=S||this.getBoundingRect(),this._fillGradient=s.getGradient(n,d,S)),y&&(S=S||this.getBoundingRect(),this._strokeGradient=s.getGradient(n,i,S))}h?n.fillStyle=this._fillGradient:v&&(n.fillStyle=C.call(d,n)),y?n.strokeStyle=this._strokeGradient:x&&(n.strokeStyle=C.call(i,n));var B=s.lineDash,w=s.lineDashOffset,m=!!n.setLineDash,c=this.getGlobalScale();if(u.setScale(c[0],c[1],this.segmentIgnoreThreshold),this.__dirtyPath||B&&!m&&a?(u.beginPath(n),B&&!m&&(u.setLineDash(B),u.setLineDashOffset(w)),this.buildPath(u,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(n.beginPath(),this.path.rebuildPath(n)),A)if(s.fillOpacity!=null){var o=n.globalAlpha;n.globalAlpha=s.fillOpacity*s.opacity,u.fill(n),n.globalAlpha=o}else u.fill(n);if(B&&m&&(n.setLineDash(B),n.lineDashOffset=w),a)if(s.strokeOpacity!=null){var o=n.globalAlpha;n.globalAlpha=s.strokeOpacity*s.opacity,u.stroke(n),n.globalAlpha=o}else u.stroke(n);B&&m&&n.setLineDash([]),s.text!=null&&(this.restoreTransform(n),this.drawRectText(n,this.getBoundingRect()))},buildPath:function(n,e,s){},createPathProxy:function(){this.path=new M},getBoundingRect:function(){var n=this._rect,e=this.style,s=!n;if(s){var u=this.path;u||(u=this.path=new M),this.__dirtyPath&&(u.beginPath(),this.buildPath(u,this.shape,!1)),n=u.getBoundingRect()}if(this._rect=n,e.hasStroke()){var a=this._rectWithStroke||(this._rectWithStroke=n.clone());if(this.__dirty||s){a.copy(n);var A=e.lineWidth,d=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(A=Math.max(A,this.strokeContainThreshold||4)),d>1e-10&&(a.width+=A/d,a.height+=A/d,a.x-=A/d/2,a.y-=A/d/2)}return a}return n},contain:function(n,e){var s=this.transformCoordToLocal(n,e),u=this.getBoundingRect(),a=this.style;if(n=s[0],e=s[1],u.contain(n,e)){var A=this.path.data;if(a.hasStroke()){var d=a.lineWidth,i=a.strokeNoScale?this.getLineScale():1;if(i>1e-10&&(a.hasFill()||(d=Math.max(d,this.strokeContainThreshold)),p.containStroke(A,d/i,n,e)))return!0}if(a.hasFill())return p.contain(A,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):ae.prototype.attrKV.call(this,n,e)},setShape:function(n,e){var s=this.shape;if(s){if(V.isObject(n))for(var u in n)n.hasOwnProperty(u)&&(s[u]=n[u]);else s[n]=e;this.dirty(!0)}return this},getLineScale:function(){var n=this.transform;return n&&b(n[0]-1)>1e-10&&b(n[3]-1)>1e-10?Math.sqrt(b(n[0]*n[3]-n[2]*n[1])):1}},l.extend=function(n){var e=function(u){l.call(this,u),n.style&&this.style.extendFrom(n.style,!1);var a=n.shape;if(a){this.shape=this.shape||{};var A=this.shape;for(var d in a)!A.hasOwnProperty(d)&&a.hasOwnProperty(d)&&(A[d]=a[d])}n.init&&n.init.call(this,u)};V.inherits(e,l);for(var s in n)s!=="style"&&s!=="shape"&&(e.prototype[s]=n[s]);return e},V.inherits(l,ae);var r=l;We.exports=r},"y0+3":function(We,Ce,I){"use strict";I.d(Ce,"a",function(){return n}),I.d(Ce,"b",function(){return s});var ae=/margin|padding|width|height|max|min|offset/,V={left:!0,top:!0},M={cssFloat:1,styleFloat:1,float:1};function p(u){return u.nodeType===1?u.ownerDocument.defaultView.getComputedStyle(u,null):{}}function E(u,a,A){if(a=a.toLowerCase(),A==="auto"){if(a==="height")return u.offsetHeight;if(a==="width")return u.offsetWidth}return a in V||(V[a]=ae.test(a)),V[a]?parseFloat(A)||0:A}function C(u,a){var A=arguments.length,d=p(u);return a=M[a]?"cssFloat"in u.style?"cssFloat":"styleFloat":a,A===1?d:E(u,a,d[a]||u.style[a])}function b(u,a,A){var d=arguments.length;if(a=M[a]?"cssFloat"in u.style?"cssFloat":"styleFloat":a,d===3)return typeof A=="number"&&ae.test(a)&&(A="".concat(A,"px")),u.style[a]=A,A;for(var i in a)a.hasOwnProperty(i)&&b(u,i,a[i]);return p(u)}function f(u){return u===document.body?document.documentElement.clientWidth:u.offsetWidth}function l(u){return u===document.body?window.innerHeight||document.documentElement.clientHeight:u.offsetHeight}function r(){var u=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:u,height:a}}function n(){var u=document.documentElement.clientWidth,a=window.innerHeight||document.documentElement.clientHeight;return{width:u,height:a}}function e(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function s(u){var a=u.getBoundingClientRect(),A=document.documentElement;return{left:a.left+(window.pageXOffset||A.scrollLeft)-(A.clientLeft||document.body.clientLeft||0),top:a.top+(window.pageYOffset||A.scrollTop)-(A.clientTop||document.body.clientTop||0)}}},"y1J/":function(We,Ce,I){We.exports=I.p+"static/yz.688d901a.png"},y23F:function(We,Ce){function I(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}I.prototype={constructor:I,_dragStart:function(M){for(var p=M.target;p&&!p.draggable;)p=p.parent;p&&(this._draggingTarget=p,p.dragging=!0,this._x=M.offsetX,this._y=M.offsetY,this.dispatchToElement(ae(p,M),"dragstart",M.event))},_drag:function(M){var p=this._draggingTarget;if(p){var E=M.offsetX,C=M.offsetY,b=E-this._x,f=C-this._y;this._x=E,this._y=C,p.drift(b,f,M),this.dispatchToElement(ae(p,M),"drag",M.event);var l=this.findHover(E,C,p).target,r=this._dropTarget;this._dropTarget=l,p!==l&&(r&&l!==r&&this.dispatchToElement(ae(r,M),"dragleave",M.event),l&&l!==r&&this.dispatchToElement(ae(l,M),"dragenter",M.event))}},_dragEnd:function(M){var p=this._draggingTarget;p&&(p.dragging=!1),this.dispatchToElement(ae(p,M),"dragend",M.event),this._dropTarget&&this.dispatchToElement(ae(this._dropTarget,M),"drop",M.event),this._draggingTarget=null,this._dropTarget=null}};function ae(M,p){return{target:M,topTarget:p&&p.topTarget}}var V=I;We.exports=V},y5JW:function(We,Ce,I){"use strict";I.d(Ce,"c",function(){return A}),I.d(Ce,"a",function(){return d});var ae=I("DZo9"),V=I("8z0m"),M=I("+L6B"),p=I("2/Rp"),E=I("9og8"),C=I("k1fw"),b=I("oBTY"),f=I("miYZ"),l=I("tsqr"),r=I("WmNS"),n=I.n(r),e=I("q1tI"),s=I.n(e),u=I("m3rI"),a=I("wzkS"),A="\u3000\u3000";function d(i){var h=["Bytes","KB","MB","GB","TB"];if(i==0)return"0 Byte";var y=parseInt(""+Math.floor(Math.log(i)/Math.log(1024)),10);return(i/Math.pow(1024,y)).toFixed(1)+" "+h[y]}Ce.b=function(i){var h=i.value,y=h===void 0?[]:h,v=i.action,x=i.onChange,S=i.className,B=i.maxSize,w=B===void 0?150:B,m=i.title,c=m===void 0?"\u6587\u4EF6\u4E0A\u4F20":m,o=i.accept,_=o===void 0?null:o,D={multiple:!1,fileList:y,accept:_,withCredentials:!0,beforeUpload:function(R){var U=R.size/1024/1024;return U<w?!0:(l.b.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(w,"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(u.a.API_SERVER,"/api/attachments.json"),onChange:function(R){var U=Object(b.a)(R.fileList);U=U.map(function(F){return F.name.indexOf(A)===-1&&(F.name="".concat(F.name).concat(A).concat(d(F.size))),Object(C.a)({},F)}),x(U)},onRemove:function(){var O=Object(E.a)(n.a.mark(function U(F){var Y,k,K;return n.a.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(Y=F.size/1024/1024,!(F.status==="uploading")){j.next=3;break}return j.abrupt("return",!0);case 3:if(Y<w){j.next=7;break}return j.abrupt("return",!0);case 7:if(k=F.response?F.response.id:F.uid,!k){j.next=15;break}return j.next=11,Object(a.d)(F.response?F.response.id:F.id);case 11:return K=j.sent,j.abrupt("return",K);case 15:return j.abrupt("return",!0);case 16:case"end":return j.stop()}},U)}));function R(U){return O.apply(this,arguments)}return R}()};function T(O){O.preventDefault(),O.stopPropagation()}return s.a.createElement("div",{className:"single-upload ".concat(S||"")},s.a.createElement(V.a,D,s.a.createElement(p.a,{type:"primary",title:y.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:y.length>0,ghost:!0},c),s.a.createElement("span",{onClick:T,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",w,"M) ")))}},yslc:function(We,Ce){We.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(We,Ce,I){var ae=I("y+Vt"),V=I("nPnh"),M=V.subPixelOptimizeLine,p={},E=ae.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(C,b){var f,l,r,n;this.subPixelOptimize?(M(p,b,this.style),f=p.x1,l=p.y1,r=p.x2,n=p.y2):(f=b.x1,l=b.y1,r=b.x2,n=b.y2);var e=b.percent;if(e===0)return;C.moveTo(f,l),e<1&&(r=f*(1-e)+r*e,n=l*(1-e)+n*e),C.lineTo(r,n)},pointAt:function(C){var b=this.shape;return[b.x1*(1-C)+b.x2*C,b.y1*(1-C)+b.y2*C]}});We.exports=E},zarK:function(We,Ce,I){var ae=I("YH21"),V=ae.addEventListener,M=ae.removeEventListener,p=ae.normalizeEvent,E=ae.getNativeEvent,C=I("bYtY"),b=I("H6uX"),f=I("ItGF"),l=300,r=f.domSupported,n=function(){var O=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],R=["touchstart","touchend","touchmove"],U={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},F=C.map(O,function(Y){var k=Y.replace("mouse","pointer");return U.hasOwnProperty(k)?k:Y});return{mouse:O,touch:R,pointer:F}}(),e={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function s(O){return O==="mousewheel"&&f.browser.firefox?"DOMMouseScroll":O}function u(O){var R=O.pointerType;return R==="pen"||R==="touch"}function a(O){O.touching=!0,O.touchTimer!=null&&(clearTimeout(O.touchTimer),O.touchTimer=null),O.touchTimer=setTimeout(function(){O.touching=!1,O.touchTimer=null},700)}function A(O){O&&(O.zrByTouch=!0)}function d(O,R){return p(O.dom,new h(O,R),!0)}function i(O,R){for(var U=R,F=!1;U&&U.nodeType!==9&&!(F=U.domBelongToZr||U!==R&&U===O.painterRoot);)U=U.parentNode;return F}function h(O,R){this.type=R.type,this.target=this.currentTarget=O.dom,this.pointerType=R.pointerType,this.clientX=R.clientX,this.clientY=R.clientY}var y=h.prototype;y.stopPropagation=y.stopImmediatePropagation=y.preventDefault=C.noop;var v={mousedown:function(O){O=p(this.dom,O),this._mayPointerCapture=[O.zrX,O.zrY],this.trigger("mousedown",O)},mousemove:function(O){O=p(this.dom,O);var R=this._mayPointerCapture;R&&(O.zrX!==R[0]||O.zrY!==R[1])&&c(this,!0),this.trigger("mousemove",O)},mouseup:function(O){O=p(this.dom,O),c(this,!1),this.trigger("mouseup",O)},mouseout:function(O){O=p(this.dom,O),this._pointerCapturing&&(O.zrEventControl="no_globalout");var R=O.toElement||O.relatedTarget;O.zrIsToLocalDOM=i(this,R),this.trigger("mouseout",O)},touchstart:function(O){O=p(this.dom,O),A(O),this._lastTouchMoment=new Date,this.handler.processGesture(O,"start"),v.mousemove.call(this,O),v.mousedown.call(this,O)},touchmove:function(O){O=p(this.dom,O),A(O),this.handler.processGesture(O,"change"),v.mousemove.call(this,O)},touchend:function(O){O=p(this.dom,O),A(O),this.handler.processGesture(O,"end"),v.mouseup.call(this,O),+new Date-this._lastTouchMoment<l&&v.click.call(this,O)},pointerdown:function(O){v.mousedown.call(this,O)},pointermove:function(O){u(O)||v.mousemove.call(this,O)},pointerup:function(O){v.mouseup.call(this,O)},pointerout:function(O){u(O)||v.mouseout.call(this,O)}};C.each(["click","mousewheel","dblclick","contextmenu"],function(O){v[O]=function(R){R=p(this.dom,R),this.trigger(O,R)}});var x={pointermove:function(O){u(O)||x.mousemove.call(this,O)},pointerup:function(O){x.mouseup.call(this,O)},mousemove:function(O){this.trigger("mousemove",O)},mouseup:function(O){var R=this._pointerCapturing;c(this,!1),this.trigger("mouseup",O),R&&(O.zrEventControl="only_globalout",this.trigger("mouseout",O))}};function S(O,R){var U=R.domHandlers;f.pointerEventsSupported?C.each(n.pointer,function(F){w(R,F,function(Y){U[F].call(O,Y)})}):(f.touchEventsSupported&&C.each(n.touch,function(F){w(R,F,function(Y){U[F].call(O,Y),a(R)})}),C.each(n.mouse,function(F){w(R,F,function(Y){Y=E(Y),R.touching||U[F].call(O,Y)})}))}function B(O,R){f.pointerEventsSupported?C.each(e.pointer,U):f.touchEventsSupported||C.each(e.mouse,U);function U(F){function Y(k){k=E(k),i(O,k.target)||(k=d(O,k),R.domHandlers[F].call(O,k))}w(R,F,Y,{capture:!0})}}function w(O,R,U,F){O.mounted[R]=U,O.listenerOpts[R]=F,V(O.domTarget,s(R),U,F)}function m(O){var R=O.mounted;for(var U in R)R.hasOwnProperty(U)&&M(O.domTarget,s(U),R[U],O.listenerOpts[U]);O.mounted={}}function c(O,R){if(O._mayPointerCapture=null,r&&O._pointerCapturing^R){O._pointerCapturing=R;var U=O._globalHandlerScope;R?B(O,U):m(U)}}function o(O,R){this.domTarget=O,this.domHandlers=R,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function _(O,R){b.call(this),this.dom=O,this.painterRoot=R,this._localHandlerScope=new o(O,v),r&&(this._globalHandlerScope=new o(document,x)),this._pointerCapturing=!1,this._mayPointerCapture=null,S(this,this._localHandlerScope)}var D=_.prototype;D.dispose=function(){m(this._localHandlerScope),r&&m(this._globalHandlerScope)},D.setCursor=function(O){this.dom.style&&(this.dom.style.cursor=O||"default")},C.mixin(_,b);var T=_;We.exports=T}}]);