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

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([[182,3,5,6,7,8,9,10,16,18],{"+NIl":function(Ze,we,M){(function(ue){ue(M("VrN/"))})(function(ue){"use strict";ue.defineMode("stex",function(Y,P){"use strict";function y(u,o){u.cmdState.push(o)}function E(u){return u.cmdState.length>0?u.cmdState[u.cmdState.length-1]:null}function _(u){var o=u.cmdState.pop();o&&o.closeBracket()}function C(u){for(var o=u.cmdState,f=o.length-1;f>=0;f--){var d=o[f];if(d.name=="DEFAULT")continue;return d}return{styleIdentifier:function(){return null}}}function m(u,o,f){return function(){this.name=u,this.bracketNo=0,this.style=o,this.styles=f,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var c={};c.importmodule=m("importmodule","tag",["string","builtin"]),c.documentclass=m("documentclass","tag",["","atom"]),c.usepackage=m("usepackage","tag",["atom"]),c.begin=m("begin","tag",["atom"]),c.end=m("end","tag",["atom"]),c.label=m("label","tag",["atom"]),c.ref=m("ref","tag",["atom"]),c.eqref=m("eqref","tag",["atom"]),c.cite=m("cite","tag",["atom"]),c.bibitem=m("bibitem","tag",["atom"]),c.Bibitem=m("Bibitem","tag",["atom"]),c.RBibitem=m("RBibitem","tag",["atom"]),c.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function r(u,o){u.f=o}function n(u,o){var f;if(u.match(/^\\[a-zA-Z@]+/)){var d=u.current().slice(1);return f=c.hasOwnProperty(d)?c[d]:c.DEFAULT,f=new f,y(o,f),r(o,s),f.style}if(u.match(/^\\[$&%#{}_]/))return"tag";if(u.match(/^\\[,;!\/\\]/))return"tag";if(u.match("\\["))return r(o,function(h,g){return e(h,g,"\\]")}),"keyword";if(u.match("\\("))return r(o,function(h,g){return e(h,g,"\\)")}),"keyword";if(u.match("$$"))return r(o,function(h,g){return e(h,g,"$$")}),"keyword";if(u.match("$"))return r(o,function(h,g){return e(h,g,"$")}),"keyword";var a=u.next();if(a=="%")return u.skipToEnd(),"comment";if(a=="}"||a=="]"){if(f=E(o),f)f.closeBracket(a),r(o,s);else return"error";return"bracket"}else return a=="{"||a=="["?(f=c.DEFAULT,f=new f,y(o,f),"bracket"):/\d/.test(a)?(u.eatWhile(/[\w.%]/),"atom"):(u.eatWhile(/[\w\-_]/),f=C(o),f.name=="begin"&&(f.argument=u.current()),f.styleIdentifier())}function e(u,o,f){if(u.eatSpace())return null;if(f&&u.match(f))return r(o,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,o){var f=u.peek(),d;return f=="{"||f=="["?(d=E(o),d.openBracket(f),u.eat(f),r(o,n),"bracket"):/[ \t\r]/.test(f)?(u.eat(f),null):(r(o,n),_(o),n(u,o))}return{startState:function(){var u=P.inMathMode?function(o,f){return e(o,f)}:n;return{cmdState:[],f:u}},copyState:function(u){return{cmdState:u.cmdState.slice(),f:u.f}},token:function(u,o){return o.f(u,o)},blankLine:function(u){u.f=n,u.cmdState.length=0},lineComment:"%"}}),ue.defineMIME("text/x-stex","stex"),ue.defineMIME("text/x-latex","stex")})},"/GNS":function(Ze,we,M){Ze.exports=M.p+"static/search1.c4136dd4.png"},"06Qe":function(Ze,we,M){var ue=M("ItGF"),Y="urn:schemas-microsoft-com:vml",P=typeof window=="undefined"?null:window,y=!1,E=P&&P.document;function _(c){return C(c)}var C;if(E&&!ue.canvasSupported)try{!E.namespaces.zrvml&&E.namespaces.add("zrvml",Y),C=function(c){return E.createElement("<zrvml:"+c+' class="zrvml">')}}catch(c){C=function(r){return E.createElement("<"+r+' xmlns="'+Y+'" class="zrvml">')}}function m(){if(y||!E)return;y=!0;var c=E.styleSheets;c.length<31?E.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):c[0].addRule(".zrvml","behavior:url(#default#VML)")}we.doc=E,we.createNode=_,we.initVML=m},"07cG":function(Ze,we,M){Ze.exports={ldsRing:"ldsRing___2F8W7",idsRingWrapper:"idsRingWrapper___fC2cF",ldsring:"ldsring___3A88y"}},"0s+r":function(Ze,we,M){var ue=M("bYtY"),Y=M("QBsz"),P=M("y23F"),y=M("H6uX"),E=M("YH21"),_=M("C0SR"),C="silent";function m(f,d,a){return{type:f,event:a,target:d.target,topTarget:d.topTarget,cancelBubble:!1,offsetX:a.zrX,offsetY:a.zrY,gestureEvent:a.gestureEvent,pinchX:a.pinchX,pinchY:a.pinchY,pinchScale:a.pinchScale,wheelDelta:a.zrDelta,zrByTouch:a.zrByTouch,which:a.which,stop:c}}function c(){E.stop(this.event)}function r(){}r.prototype.dispose=function(){};var n=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=function(f,d,a,h){y.call(this),this.storage=f,this.painter=d,this.painterRoot=h,a=a||new r,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,P.call(this),this.setHandlerProxy(a)};e.prototype={constructor:e,setHandlerProxy:function(f){this.proxy&&this.proxy.dispose(),f&&(ue.each(n,function(d){f.on&&f.on(d,this[d],this)},this),f.handler=this),this.proxy=f},mousemove:function(f){var d=f.zrX,a=f.zrY,h=u(this,d,a),g=this._hovered,p=g.target;p&&!p.__zr&&(g=this.findHover(g.x,g.y),p=g.target);var S=this._hovered=h?{x:d,y:a}:this.findHover(d,a),w=S.target,B=this.proxy;B.setCursor&&B.setCursor(w?w.cursor:"default"),p&&w!==p&&this.dispatchToElement(g,"mouseout",f),this.dispatchToElement(S,"mousemove",f),w&&w!==p&&this.dispatchToElement(S,"mouseover",f)},mouseout:function(f){var d=f.zrEventControl,a=f.zrIsToLocalDOM;d!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",f),d!=="no_globalout"&&(!a&&this.trigger("globalout",{type:"globalout",event:f}))},resize:function(f){this._hovered={}},dispatch:function(f,d){var a=this[f];a&&a.call(this,d)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(f){var d=this.proxy;d.setCursor&&d.setCursor(f)},dispatchToElement:function(f,d,a){f=f||{};var h=f.target;if(h&&h.silent)return;for(var g="on"+d,p=m(d,f,a);h&&!(h[g]&&(p.cancelBubble=h[g].call(h,p)),h.trigger(d,p),h=h.parent,p.cancelBubble););p.cancelBubble||(this.trigger(d,p),this.painter&&this.painter.eachOtherLayer(function(S){typeof S[g]=="function"&&S[g].call(S,p),S.trigger&&S.trigger(d,p)}))},findHover:function(f,d,a){for(var h=this.storage.getDisplayList(),g={x:f,y:d},p=h.length-1;p>=0;p--){var S;if(h[p]!==a&&!h[p].ignore&&(S=s(h[p],f,d))&&(!g.topTarget&&(g.topTarget=h[p]),S!==C)){g.target=h[p];break}}return g},processGesture:function(f,d){this._gestureMgr||(this._gestureMgr=new _);var a=this._gestureMgr;d==="start"&&a.clear();var h=a.recognize(f,this.findHover(f.zrX,f.zrY,null).target,this.proxy.dom);if(d==="end"&&a.clear(),h){var g=h.type;f.gestureEvent=g,this.dispatchToElement({target:h.target},g,h.event)}}},ue.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(f){e.prototype[f]=function(d){var a=d.zrX,h=d.zrY,g=u(this,a,h),p,S;if((f!=="mouseup"||!g)&&(p=this.findHover(a,h),S=p.target),f==="mousedown")this._downEl=S,this._downPoint=[d.zrX,d.zrY],this._upEl=S;else if(f==="mouseup")this._upEl=S;else if(f==="click"){if(this._downEl!==this._upEl||!this._downPoint||Y.dist(this._downPoint,[d.zrX,d.zrY])>4)return;this._downPoint=null}this.dispatchToElement(p,f,d)}});function s(f,d,a){if(f[f.rectHover?"rectContain":"contain"](d,a)){for(var h=f,g;h;){if(h.clipPath&&!h.clipPath.contain(d,a))return!1;h.silent&&(g=!0),h=h.parent}return g?C:!0}return!1}function u(f,d,a){var h=f.painter;return d<0||d>h.getWidth()||a<0||a>h.getHeight()}ue.mixin(e,y),ue.mixin(e,P);var o=e;Ze.exports=o},"19Vz":function(Ze,we,M){(function(ue){ue(M("VrN/"))})(function(ue){ue.defineOption("placeholder","",function(m,c,r){var n=r&&r!=ue.Init;if(c&&!n)m.on("blur",E),m.on("change",_),m.on("swapDoc",_),ue.on(m.getInputField(),"compositionupdate",m.state.placeholderCompose=function(){y(m)}),_(m);else if(!c&&n){m.off("blur",E),m.off("change",_),m.off("swapDoc",_),ue.off(m.getInputField(),"compositionupdate",m.state.placeholderCompose),Y(m);var e=m.getWrapperElement();e.className=e.className.replace(" CodeMirror-empty","")}c&&!m.hasFocus()&&E(m)});function Y(m){m.state.placeholder&&(m.state.placeholder.parentNode.removeChild(m.state.placeholder),m.state.placeholder=null)}function P(m){Y(m);var c=m.state.placeholder=document.createElement("pre");c.style.cssText="height: 0; overflow: visible",c.style.direction=m.getOption("direction"),c.className="CodeMirror-placeholder CodeMirror-line-like";var r=m.getOption("placeholder");typeof r=="string"&&(r=document.createTextNode(r)),c.appendChild(r),m.display.lineSpace.insertBefore(c,m.display.lineSpace.firstChild)}function y(m){setTimeout(function(){var c=!1,r=m.getInputField();r.nodeName=="TEXTAREA"?c=!r.value:m.lineCount()==1&&(c=!/[^\u200b]/.test(r.querySelector(".CodeMirror-line").textContent)),c?P(m):Y(m)},20)}function E(m){C(m)&&P(m)}function _(m){var c=m.getWrapperElement(),r=C(m);c.className=c.className.replace(" CodeMirror-empty","")+(r?" CodeMirror-empty":""),r?P(m):Y(m)}function C(m){return m.lineCount()===1&&m.getLine(0)===""}})},"1Jh7":function(Ze,we,M){var ue=M("y+Vt"),Y=M("T6xi"),P=ue.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(y,E){Y.buildPath(y,E,!1)}});Ze.exports=P},"1MYJ":function(Ze,we,M){var ue=M("y+Vt"),Y=ue.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var P=this.__dirtyPath,y=this.shape.paths,E=0;E<y.length;E++)P=P||y[E].__dirtyPath;this.__dirtyPath=P,this.__dirty=this.__dirty||P},beforeBrush:function(){this._updatePathDirty();for(var P=this.shape.paths||[],y=this.getGlobalScale(),E=0;E<P.length;E++)P[E].path||P[E].createPathProxy(),P[E].path.setScale(y[0],y[1],P[E].segmentIgnoreThreshold)},buildPath:function(P,y){for(var E=y.paths||[],_=0;_<E.length;_++)E[_].buildPath(P,E[_].shape,!0)},afterBrush:function(){for(var P=this.shape.paths||[],y=0;y<P.length;y++)P[y].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),ue.prototype.getBoundingRect.call(this)}});Ze.exports=Y},"1RvN":function(Ze,we){var M=function(){this.head=null,this.tail=null,this._len=0},ue=M.prototype;ue.insert=function(_){var C=new Y(_);return this.insertEntry(C),C},ue.insertEntry=function(_){this.head?(this.tail.next=_,_.prev=this.tail,_.next=null,this.tail=_):this.head=this.tail=_,this._len++},ue.remove=function(_){var C=_.prev,m=_.next;C?C.next=m:this.head=m,m?m.prev=C:this.tail=C,_.next=_.prev=null,this._len--},ue.len=function(){return this._len},ue.clear=function(){this.head=this.tail=null,this._len=0};var Y=function(_){this.value=_,this.next,this.prev},P=function(_){this._list=new M,this._map={},this._maxSize=_||10,this._lastRemovedEntry=null},y=P.prototype;y.put=function(_,C){var m=this._list,c=this._map,r=null;if(c[_]==null){var n=m.len(),e=this._lastRemovedEntry;if(n>=this._maxSize&&n>0){var s=m.head;m.remove(s),delete c[s.key],r=s.value,this._lastRemovedEntry=s}e?e.value=C:e=new Y(C),e.key=_,m.insertEntry(e),c[_]=e}return r},y.get=function(_){var C=this._map[_],m=this._list;if(C!=null)return C!==m.tail&&(m.remove(C),m.insertEntry(C)),C.value},y.clear=function(){this._list.clear(),this._map={}};var E=P;Ze.exports=E},"1ZF9":function(Ze,we,M){Ze.exports=M.p+"static/Authorize.cc9c212f.png"},"1bdT":function(Ze,we,M){var ue=M("3gBT"),Y=M("H6uX"),P=M("DN4a"),y=M("vWvF"),E=M("bYtY"),_=function(m){P.call(this,m),Y.call(this,m),y.call(this,m),this.id=m.id||ue()};_.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(m,c){switch(this.draggable){case"horizontal":c=0;break;case"vertical":m=0;break}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=m,r[5]+=c,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(m,c){},attrKV:function(m,c){if(m==="position"||m==="scale"||m==="origin"){if(c){var r=this[m];r||(r=this[m]=[]),r[0]=c[0],r[1]=c[1]}}else this[m]=c},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(m,c){if(typeof m=="string")this.attrKV(m,c);else if(E.isObject(m))for(var r in m)m.hasOwnProperty(r)&&this.attrKV(r,m[r]);return this.dirty(!1),this},setClipPath:function(m){var c=this.__zr;c&&m.addSelfToZr(c),this.clipPath&&this.clipPath!==m&&this.removeClipPath(),this.clipPath=m,m.__zr=c,m.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var m=this.clipPath;m&&(m.__zr&&m.removeSelfFromZr(m.__zr),m.__zr=null,m.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(m){this.__zr=m;var c=this.animators;if(c)for(var r=0;r<c.length;r++)m.animation.addAnimator(c[r]);this.clipPath&&this.clipPath.addSelfToZr(m)},removeSelfFromZr:function(m){this.__zr=null;var c=this.animators;if(c)for(var r=0;r<c.length;r++)m.animation.removeAnimator(c[r]);this.clipPath&&this.clipPath.removeSelfFromZr(m)}},E.mixin(_,y),E.mixin(_,P),E.mixin(_,Y);var C=_;Ze.exports=C},"1eCo":function(Ze,we,M){(function(ue){ue(M("VrN/"))})(function(ue){"use strict";var Y={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},P={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ue.defineMode("xml",function(y,E){var _=y.indentUnit,C={},m=E.htmlMode?Y:P;for(var c in m)C[c]=m[c];for(var c in E)C[c]=E[c];var r,n;function e(x,O){function T(k){return O.tokenize=k,k(x,O)}var D=x.next();if(D=="<")return x.eat("!")?x.eat("[")?x.match("CDATA[")?T(o("atom","]]>")):null:x.match("--")?T(o("comment","-->")):x.match("DOCTYPE",!0,!0)?(x.eatWhile(/[\w\._\-]/),T(f(1))):null:x.eat("?")?(x.eatWhile(/[\w\._\-]/),O.tokenize=o("meta","?>"),"meta"):(r=x.eat("/")?"closeTag":"openTag",O.tokenize=s,"tag bracket");if(D=="&"){var R;return x.eat("#")?x.eat("x")?R=x.eatWhile(/[a-fA-F\d]/)&&x.eat(";"):R=x.eatWhile(/[\d]/)&&x.eat(";"):R=x.eatWhile(/[\w\.\-:]/)&&x.eat(";"),R?"atom":"error"}else return x.eatWhile(/[^&<]/),null}e.isInText=!0;function s(x,O){var T=x.next();if(T==">"||T=="/"&&x.eat(">"))return O.tokenize=e,r=T==">"?"endTag":"selfcloseTag","tag bracket";if(T=="=")return r="equals",null;if(T=="<"){O.tokenize=e,O.state=g,O.tagName=O.tagStart=null;var D=O.tokenize(x,O);return D?D+" tag error":"tag error"}else return/[\'\"]/.test(T)?(O.tokenize=u(T),O.stringStartCol=x.column(),O.tokenize(x,O)):(x.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function u(x){var O=function(T,D){for(;!T.eol();)if(T.next()==x){D.tokenize=s;break}return"string"};return O.isInAttribute=!0,O}function o(x,O){return function(T,D){for(;!T.eol();){if(T.match(O)){D.tokenize=e;break}T.next()}return x}}function f(x){return function(O,T){for(var D;(D=O.next())!=null;){if(D=="<")return T.tokenize=f(x+1),T.tokenize(O,T);if(D==">")if(x==1){T.tokenize=e;break}else return T.tokenize=f(x-1),T.tokenize(O,T)}return"meta"}}function d(x,O,T){this.prev=x.context,this.tagName=O,this.indent=x.indented,this.startOfLine=T,(C.doNotIndent.hasOwnProperty(O)||x.context&&x.context.noIndent)&&(this.noIndent=!0)}function a(x){x.context&&(x.context=x.context.prev)}function h(x,O){for(var T;;){if(!x.context)return;if(T=x.context.tagName,!C.contextGrabbers.hasOwnProperty(T)||!C.contextGrabbers[T].hasOwnProperty(O))return;a(x)}}function g(x,O,T){return x=="openTag"?(T.tagStart=O.column(),p):x=="closeTag"?S:g}function p(x,O,T){return x=="word"?(T.tagName=O.current(),n="tag",b):C.allowMissingTagName&&x=="endTag"?(n="tag bracket",b(x,O,T)):(n="error",p)}function S(x,O,T){if(x=="word"){var D=O.current();return T.context&&T.context.tagName!=D&&C.implicitlyClosed.hasOwnProperty(T.context.tagName)&&a(T),T.context&&T.context.tagName==D||C.matchClosing===!1?(n="tag",w):(n="tag error",B)}else return C.allowMissingTagName&&x=="endTag"?(n="tag bracket",w(x,O,T)):(n="error",B)}function w(x,O,T){return x!="endTag"?(n="error",w):(a(T),g)}function B(x,O,T){return n="error",w(x,O,T)}function b(x,O,T){if(x=="word")return n="attribute",A;if(x=="endTag"||x=="selfcloseTag"){var D=T.tagName,R=T.tagStart;return T.tagName=T.tagStart=null,x=="selfcloseTag"||C.autoSelfClosers.hasOwnProperty(D)?h(T,D):(h(T,D),T.context=new d(T,D,R==T.indented)),g}return n="error",b}function A(x,O,T){return x=="equals"?l:(C.allowMissing||(n="error"),b(x,O,T))}function l(x,O,T){return x=="string"?i:x=="word"&&C.allowUnquoted?(n="string",b):(n="error",b(x,O,T))}function i(x,O,T){return x=="string"?i:b(x,O,T)}return{startState:function(x){var O={tokenize:e,state:g,indented:x||0,tagName:null,tagStart:null,context:null};return x!=null&&(O.baseIndent=x),O},token:function(x,O){if(!O.tagName&&x.sol()&&(O.indented=x.indentation()),x.eatSpace())return null;r=null;var T=O.tokenize(x,O);return(T||r)&&T!="comment"&&(n=null,O.state=O.state(r||T,x,O),n&&(T=n=="error"?T+" error":n)),T},indent:function(x,O,T){var D=x.context;if(x.tokenize.isInAttribute)return x.tagStart==x.indented?x.stringStartCol+1:x.indented+_;if(D&&D.noIndent)return ue.Pass;if(x.tokenize!=s&&x.tokenize!=e)return T?T.match(/^(\s*)/)[0].length:0;if(x.tagName)return C.multilineTagIndentPastTag!==!1?x.tagStart+x.tagName.length+2:x.tagStart+_*(C.multilineTagIndentFactor||1);if(C.alignCDATA&&/<!\[CDATA\[/.test(O))return 0;var R=O&&/^<(\/)?([\w_:\.-]*)/.exec(O);if(R&&R[1])for(;D;)if(D.tagName==R[2]){D=D.prev;break}else if(C.implicitlyClosed.hasOwnProperty(D.tagName))D=D.prev;else break;else if(R)for(;D;){var k=C.contextGrabbers[D.tagName];if(k&&k.hasOwnProperty(R[2]))D=D.prev;else break}for(;D&&D.prev&&!D.startOfLine;)D=D.prev;return D?D.indent+_:x.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:C.htmlMode?"html":"xml",helperType:C.htmlMode?"html":"xml",skipAttribute:function(x){x.state==l&&(x.state=b)},xmlCurrentTag:function(x){return x.tagName?{name:x.tagName,close:x.type=="closeTag"}:null},xmlCurrentContext:function(x){for(var O=[],T=x.context;T;T=T.prev)T.tagName&&O.push(T.tagName);return O.reverse()}}}),ue.defineMIME("text/xml","xml"),ue.defineMIME("application/xml","xml"),ue.mimeModes.hasOwnProperty("text/html")||ue.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(Ze,we,M){"use strict";M.d(we,"d",function(){return de}),M.d(we,"b",function(){return mt}),M.d(we,"c",function(){return Ut}),M.d(we,"a",function(){return un});var ue=M("VTBJ"),Y=M("1OyB"),P=M("vuIU"),y=M("JX7q"),E=M("Ji7U"),_=M("LK+K"),C=M("q1tI"),m=M("I8Z2"),c=M("BGR+"),r=M("wx14"),n=M("rePB"),e=M("4IlW"),s=M("2GS6"),u=M("Gytx"),o=M.n(u),f=M("TSYQ"),d=M.n(f),a=M("U8pU"),h=M("ODXe"),g=/iPhone/i,p=/iPod/i,S=/iPad/i,w=/\bAndroid(?:.+)Mobile\b/i,B=/Android/i,b=/\bAndroid(?:.+)SD4930UR\b/i,A=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,l=/Windows Phone/i,i=/\bWindows(?:.+)ARM\b/i,x=/BlackBerry/i,O=/BB10/i,T=/Opera Mini/i,D=/\b(CriOS|Chrome)(?:.+)Mobile/i,R=/Mobile(?:.+)Firefox\b/i;function k(Zt,Mt){return Zt.test(Mt)}function H(Zt){var Mt=Zt||(typeof navigator!="undefined"?navigator.userAgent:""),Tt=Mt.split("[FBAN");if(typeof Tt[1]!="undefined"){var Ct=Tt,Re=Object(h.a)(Ct,1);Mt=Re[0]}if(Tt=Mt.split("Twitter"),typeof Tt[1]!="undefined"){var We=Tt,St=Object(h.a)(We,1);Mt=St[0]}var ft={apple:{phone:k(g,Mt)&&!k(l,Mt),ipod:k(p,Mt),tablet:!k(g,Mt)&&k(S,Mt)&&!k(l,Mt),device:(k(g,Mt)||k(p,Mt)||k(S,Mt))&&!k(l,Mt)},amazon:{phone:k(b,Mt),tablet:!k(b,Mt)&&k(A,Mt),device:k(b,Mt)||k(A,Mt)},android:{phone:!k(l,Mt)&&k(b,Mt)||!k(l,Mt)&&k(w,Mt),tablet:!k(l,Mt)&&!k(b,Mt)&&!k(w,Mt)&&(k(A,Mt)||k(B,Mt)),device:!k(l,Mt)&&(k(b,Mt)||k(A,Mt)||k(w,Mt)||k(B,Mt))||k(/\bokhttp\b/i,Mt)},windows:{phone:k(l,Mt),tablet:k(i,Mt),device:k(l,Mt)||k(i,Mt)},other:{blackberry:k(x,Mt),blackberry10:k(O,Mt),opera:k(T,Mt),firefox:k(R,Mt),chrome:k(D,Mt),device:k(x,Mt)||k(O,Mt)||k(T,Mt)||k(R,Mt)||k(D,Mt)},any:null,phone:null,tablet:null};return ft.any=ft.apple.device||ft.android.device||ft.windows.device||ft.other.device,ft.phone=ft.apple.phone||ft.android.phone||ft.windows.phone,ft.tablet=ft.apple.tablet||ft.android.tablet||ft.windows.tablet,ft}var J=Object(ue.a)(Object(ue.a)({},H()),{},{isMobile:H}),U=J;function K(){}function G(Zt,Mt,Tt){var Ct=Mt||"";return Zt.key||"".concat(Ct,"item_").concat(Tt)}function N(Zt){return"".concat(Zt,"-menu-")}function Q(Zt,Mt){var Tt=-1;C.Children.forEach(Zt,function(Ct){Tt+=1,Ct&&Ct.type&&Ct.type.isMenuItemGroup?C.Children.forEach(Ct.props.children,function(Re){Tt+=1,Mt(Re,Tt)}):Mt(Ct,Tt)})}function X(Zt,Mt,Tt){if(!Zt||Tt.find)return;C.Children.forEach(Zt,function(Ct){if(Ct){var Re=Ct.type;if(!Re||!(Re.isSubMenu||Re.isMenuItem||Re.isMenuItemGroup))return;Mt.indexOf(Ct.key)!==-1?Tt.find=!0:Ct.props.children&&X(Ct.props.children,Mt,Tt)}})}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(Mt){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ct=Mt&&typeof Mt.getBoundingClientRect=="function"&&Mt.getBoundingClientRect().width;if(Ct){if(Tt){var Re=getComputedStyle(Mt),We=Re.marginLeft,St=Re.marginRight;Ct+=+We.replace("px","")+ +St.replace("px","")}Ct=+Ct.toFixed(6)}return Ct||0},me=function(Mt,Tt,Ct){Mt&&Object(a.a)(Mt.style)==="object"&&(Mt.style[Tt]=Ct)},se=function(){return U.any},_e=M("KQm4"),Ae=M("Ff2n"),Ee=M("i8i4"),pe=M("bdgK"),he=M("uciX"),ie=M("8XRh"),fe={adjustX:1,adjustY:1},ge={topLeft:{points:["bl","tl"],overflow:fe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:fe,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:fe,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:fe,offset:[4,0]}},ce={topLeft:{points:["bl","tl"],overflow:fe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:fe,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:fe,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:fe,offset:[4,0]}},Ie=ge,Fe=0,ke={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},re=function(Mt,Tt,Ct){var Re=N(Tt),We=Mt.getState();Mt.setState({defaultActiveFirst:Object(ue.a)(Object(ue.a)({},We.defaultActiveFirst),{},Object(n.a)({},Re,Ct))})},F=function(Zt){Object(E.a)(Tt,Zt);var Mt=Object(_.a)(Tt);function Tt(Ct){var Re;Object(Y.a)(this,Tt),Re=Mt.call(this,Ct),Re.onDestroy=function(bt){Re.props.onDestroy(bt)},Re.onKeyDown=function(bt){var Ht=bt.keyCode,Gt=Re.menuInstance,xn=Re.props,vn=xn.isOpen,sr=xn.store;if(Ht===e.a.ENTER)return Re.onTitleClick(bt),re(sr,Re.props.eventKey,!0),!0;if(Ht===e.a.RIGHT)return vn?Gt.onKeyDown(bt):(Re.triggerOpenChange(!0),re(sr,Re.props.eventKey,!0)),!0;if(Ht===e.a.LEFT){var xr;if(vn)xr=Gt.onKeyDown(bt);else return;return xr||(Re.triggerOpenChange(!1),xr=!0),xr}return vn&&(Ht===e.a.UP||Ht===e.a.DOWN)?Gt.onKeyDown(bt):void 0},Re.onOpenChange=function(bt){Re.props.onOpenChange(bt)},Re.onPopupVisibleChange=function(bt){Re.triggerOpenChange(bt,bt?"mouseenter":"mouseleave")},Re.onMouseEnter=function(bt){var Ht=Re.props,Gt=Ht.eventKey,xn=Ht.onMouseEnter,vn=Ht.store;re(vn,Re.props.eventKey,!1),xn({key:Gt,domEvent:bt})},Re.onMouseLeave=function(bt){var Ht=Re.props,Gt=Ht.parentMenu,xn=Ht.eventKey,vn=Ht.onMouseLeave;Gt.subMenuInstance=Object(y.a)(Re),vn({key:xn,domEvent:bt})},Re.onTitleMouseEnter=function(bt){var Ht=Re.props,Gt=Ht.eventKey,xn=Ht.onItemHover,vn=Ht.onTitleMouseEnter;xn({key:Gt,hover:!0}),vn({key:Gt,domEvent:bt})},Re.onTitleMouseLeave=function(bt){var Ht=Re.props,Gt=Ht.parentMenu,xn=Ht.eventKey,vn=Ht.onItemHover,sr=Ht.onTitleMouseLeave;Gt.subMenuInstance=Object(y.a)(Re),vn({key:xn,hover:!1}),sr({key:xn,domEvent:bt})},Re.onTitleClick=function(bt){var Ht=Object(y.a)(Re),Gt=Ht.props;if(Gt.onTitleClick({key:Gt.eventKey,domEvent:bt}),Gt.triggerSubMenuAction==="hover")return;Re.triggerOpenChange(!Gt.isOpen,"click"),re(Gt.store,Re.props.eventKey,!1)},Re.onSubMenuClick=function(bt){typeof Re.props.onClick=="function"&&Re.props.onClick(Re.addKeyPath(bt))},Re.onSelect=function(bt){Re.props.onSelect(bt)},Re.onDeselect=function(bt){Re.props.onDeselect(bt)},Re.getPrefixCls=function(){return"".concat(Re.props.rootPrefixCls,"-submenu")},Re.getActiveClassName=function(){return"".concat(Re.getPrefixCls(),"-active")},Re.getDisabledClassName=function(){return"".concat(Re.getPrefixCls(),"-disabled")},Re.getSelectedClassName=function(){return"".concat(Re.getPrefixCls(),"-selected")},Re.getOpenClassName=function(){return"".concat(Re.props.rootPrefixCls,"-submenu-open")},Re.saveMenuInstance=function(bt){Re.menuInstance=bt},Re.addKeyPath=function(bt){return Object(ue.a)(Object(ue.a)({},bt),{},{keyPath:(bt.keyPath||[]).concat(Re.props.eventKey)})},Re.triggerOpenChange=function(bt,Ht){var Gt=Re.props.eventKey,xn=function(){Re.onOpenChange({key:Gt,item:Object(y.a)(Re),trigger:Ht,open:bt})};Ht==="mouseenter"?Re.mouseenterTimeout=setTimeout(function(){xn()},0):xn()},Re.isChildrenSelected=function(){var bt={find:!1};return X(Re.props.children,Re.props.selectedKeys,bt),bt.find},Re.isOpen=function(){return Re.props.openKeys.indexOf(Re.props.eventKey)!==-1},Re.adjustWidth=function(){if(!Re.subMenuTitle||!Re.menuInstance)return;var bt=Ee.findDOMNode(Re.menuInstance);if(bt.offsetWidth>=Re.subMenuTitle.offsetWidth)return;bt.style.minWidth="".concat(Re.subMenuTitle.offsetWidth,"px")},Re.saveSubMenuTitle=function(bt){Re.subMenuTitle=bt},Re.getBaseProps=function(){var bt=Object(y.a)(Re),Ht=bt.props;return{mode:Ht.mode==="horizontal"?"vertical":Ht.mode,visible:Re.props.isOpen,level:Ht.level+1,inlineIndent:Ht.inlineIndent,focusable:!1,onClick:Re.onSubMenuClick,onSelect:Re.onSelect,onDeselect:Re.onDeselect,onDestroy:Re.onDestroy,selectedKeys:Ht.selectedKeys,eventKey:"".concat(Ht.eventKey,"-menu-"),openKeys:Ht.openKeys,motion:Ht.motion,onOpenChange:Re.onOpenChange,subMenuOpenDelay:Ht.subMenuOpenDelay,parentMenu:Object(y.a)(Re),subMenuCloseDelay:Ht.subMenuCloseDelay,forceSubMenuRender:Ht.forceSubMenuRender,triggerSubMenuAction:Ht.triggerSubMenuAction,builtinPlacements:Ht.builtinPlacements,defaultActiveFirst:Ht.store.getState().defaultActiveFirst[N(Ht.eventKey)],multiple:Ht.multiple,prefixCls:Ht.rootPrefixCls,id:Re.internalMenuId,manualRef:Re.saveMenuInstance,itemIcon:Ht.itemIcon,expandIcon:Ht.expandIcon,direction:Ht.direction}},Re.getMotion=function(bt,Ht){var Gt=Object(y.a)(Re),xn=Gt.haveRendered,vn=Re.props,sr=vn.motion,xr=vn.rootPrefixCls,Kn=Object(ue.a)(Object(ue.a)({},sr),{},{leavedClassName:"".concat(xr,"-hidden"),removeOnLeave:!1,motionAppear:xn||!Ht||bt!=="inline"});return Kn};var We=Ct.store,St=Ct.eventKey,ft=We.getState(),It=ft.defaultActiveFirst;Re.isRootMenu=!1;var Ot=!1;return It&&(Ot=It[St]),re(We,St,Ot),Re}return Object(P.a)(Tt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Re=this,We=this.props,St=We.mode,ft=We.parentMenu,It=We.manualRef;if(It&&It(this),St!=="horizontal"||!ft.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Re.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Re=this.props,We=Re.onDestroy,St=Re.eventKey;We&&We(St),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Re){var We=this,St=this.getBaseProps(),ft=this.getMotion(St.mode,St.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||St.visible||St.forceSubMenuRender,!this.haveOpened)return C.createElement("div",null);var It=St.direction;return C.createElement(ie.default,Object.assign({visible:St.visible},ft),function(Ot){var bt=Ot.className,Ht=Ot.style,Gt=d()("".concat(St.prefixCls,"-sub"),bt,Object(n.a)({},"".concat(St.prefixCls,"-rtl"),It==="rtl"));return C.createElement(rt,Object.assign({},St,{id:We.internalMenuId,className:Gt,style:Ht}),Re)})}},{key:"render",value:function(){var Re,We=Object(ue.a)({},this.props),St=We.isOpen,ft=this.getPrefixCls(),It=We.mode==="inline",Ot=d()(ft,"".concat(ft,"-").concat(We.mode),(Re={},Object(n.a)(Re,We.className,!!We.className),Object(n.a)(Re,this.getOpenClassName(),St),Object(n.a)(Re,this.getActiveClassName(),We.active||St&&!It),Object(n.a)(Re,this.getDisabledClassName(),We.disabled),Object(n.a)(Re,this.getSelectedClassName(),this.isChildrenSelected()),Re));this.internalMenuId||(We.eventKey?this.internalMenuId="".concat(We.eventKey,"$Menu"):(Fe+=1,this.internalMenuId="$__$".concat(Fe,"$Menu")));var bt={},Ht={},Gt={};We.disabled||(bt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Ht={onClick:this.onTitleClick},Gt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var xn={},vn=We.direction;It&&(vn==="rtl"?xn.paddingRight=We.inlineIndent*We.level:xn.paddingLeft=We.inlineIndent*We.level);var sr={};this.props.isOpen&&(sr={"aria-owns":this.internalMenuId});var xr=null;We.mode!=="horizontal"&&(xr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(xr=C.createElement(this.props.expandIcon,Object(ue.a)({},this.props))));var Kn=C.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:xn,className:"".concat(ft,"-title"),role:"button"},Gt,Ht,{"aria-expanded":St},sr,{"aria-haspopup":"true",title:typeof We.title=="string"?We.title:void 0}),We.title,xr||C.createElement("i",{className:"".concat(ft,"-arrow")})),En=this.renderChildren(We.children),Qr=We.parentMenu.isRootMenu?We.parentMenu.props.getPopupContainer:function(Kt){return Kt.parentNode},sa=ke[We.mode],Xr=We.popupOffset?{offset:We.popupOffset}:{},Nr=We.mode==="inline"?"":We.popupClassName;Nr+=vn==="rtl"?" ".concat(ft,"-rtl"):"";var ba=We.disabled,ja=We.triggerSubMenuAction,oi=We.subMenuOpenDelay,Le=We.forceSubMenuRender,Qe=We.subMenuCloseDelay,ot=We.builtinPlacements;te.forEach(function(Kt){return delete We[Kt]}),delete We.onClick;var _t=vn==="rtl"?Object.assign({},ce,ot):Object.assign({},ge,ot);return delete We.direction,C.createElement("li",Object.assign({},We,bt,{className:Ot,role:"menuitem"}),It&&Kn,It&&En,!It&&C.createElement(he.a,{prefixCls:ft,popupClassName:d()("".concat(ft,"-popup"),Nr),getPopupContainer:Qr,builtinPlacements:_t,popupPlacement:sa,popupVisible:St,popupAlign:Xr,popup:En,action:ba?[]:[ja],mouseEnterDelay:oi,mouseLeaveDelay:Qe,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Le},Kn))}}]),Tt}(C.Component);F.defaultProps={onMouseEnter:K,onMouseLeave:K,onTitleMouseEnter:K,onTitleMouseLeave:K,onTitleClick:K,manualRef:K,mode:"vertical",title:""};var W=Object(m.b)(function(Zt,Mt){var Tt=Zt.openKeys,Ct=Zt.activeKey,Re=Zt.selectedKeys,We=Mt.eventKey,St=Mt.subMenuKey;return{isOpen:Tt.indexOf(We)>-1,active:Ct[St]===We,selectedKeys:Re}})(F);W.isSubMenu=!0;var de=W,ne="menuitem-overflowed",le=.5,De=function(Zt){Object(E.a)(Tt,Zt);var Mt=Object(_.a)(Tt);function Tt(){var Ct;return Object(Y.a)(this,Tt),Ct=Mt.apply(this,arguments),Ct.resizeObserver=null,Ct.mutationObserver=null,Ct.originalTotalWidth=0,Ct.overflowedItems=[],Ct.menuItemSizes=[],Ct.cancelFrameId=null,Ct.state={lastVisibleIndex:void 0},Ct.getMenuItemNodes=function(){var Re=Ct.props.prefixCls,We=Ee.findDOMNode(Object(y.a)(Ct));return We?[].slice.call(We.children).filter(function(St){return St.className.split(" ").indexOf("".concat(Re,"-overflowed-submenu"))<0}):[]},Ct.getOverflowedSubMenuItem=function(Re,We,St){var ft=Ct.props,It=ft.overflowedIndicator,Ot=ft.level,bt=ft.mode,Ht=ft.prefixCls,Gt=ft.theme;if(Ot!==1||bt!=="horizontal")return null;var xn=Ct.props.children[0],vn=xn.props,sr=vn.children,xr=vn.title,Kn=vn.style,En=Object(Ae.a)(vn,["children","title","style"]),Qr=Object(ue.a)({},Kn),sa="".concat(Re,"-overflowed-indicator"),Xr="".concat(Re,"-overflowed-indicator");We.length===0&&St!==!0?Qr=Object(ue.a)(Object(ue.a)({},Qr),{},{display:"none"}):St&&(Qr=Object(ue.a)(Object(ue.a)({},Qr),{},{visibility:"hidden",position:"absolute"}),sa="".concat(sa,"-placeholder"),Xr="".concat(Xr,"-placeholder"));var Nr=Gt?"".concat(Ht,"-").concat(Gt):"",ba={};return te.forEach(function(ja){En[ja]!==void 0&&(ba[ja]=En[ja])}),C.createElement(de,Object.assign({title:It,className:"".concat(Ht,"-overflowed-submenu"),popupClassName:Nr},ba,{key:sa,eventKey:Xr,disabled:!1,style:Qr}),We)},Ct.setChildrenWidthAndResize=function(){if(Ct.props.mode!=="horizontal")return;var Re=Ee.findDOMNode(Object(y.a)(Ct));if(!Re)return;var We=Re.children;if(!We||We.length===0)return;var St=Re.children[We.length-1];me(St,"display","inline-block");var ft=Ct.getMenuItemNodes(),It=ft.filter(function(Ot){return Ot.className.split(" ").indexOf(ne)>=0});It.forEach(function(Ot){me(Ot,"display","inline-block")}),Ct.menuItemSizes=ft.map(function(Ot){return oe(Ot,!0)}),It.forEach(function(Ot){me(Ot,"display","none")}),Ct.overflowedIndicatorWidth=oe(Re.children[Re.children.length-1],!0),Ct.originalTotalWidth=Ct.menuItemSizes.reduce(function(Ot,bt){return Ot+bt},0),Ct.handleResize(),me(St,"display","none")},Ct.handleResize=function(){if(Ct.props.mode!=="horizontal")return;var Re=Ee.findDOMNode(Object(y.a)(Ct));if(!Re)return;var We=oe(Re);Ct.overflowedItems=[];var St=0,ft;Ct.originalTotalWidth>We+le&&(ft=-1,Ct.menuItemSizes.forEach(function(It){St+=It,St+Ct.overflowedIndicatorWidth<=We&&(ft+=1)})),Ct.setState({lastVisibleIndex:ft})},Ct}return Object(P.a)(Tt,[{key:"componentDidMount",value:function(){var Re=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var We=Ee.findDOMNode(this);if(!We)return;this.resizeObserver=new pe.default(function(St){St.forEach(function(){var ft=Re.cancelFrameId;cancelAnimationFrame(ft),Re.cancelFrameId=requestAnimationFrame(Re.setChildrenWidthAndResize)})}),[].slice.call(We.children).concat(We).forEach(function(St){Re.resizeObserver.observe(St)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Re.resizeObserver.disconnect(),[].slice.call(We.children).concat(We).forEach(function(St){Re.resizeObserver.observe(St)}),Re.setChildrenWidthAndResize()}),this.mutationObserver.observe(We,{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(Re){var We=this,St=this.state.lastVisibleIndex;return(Re||[]).reduce(function(ft,It,Ot){var bt=It;if(We.props.mode==="horizontal"){var Ht=We.getOverflowedSubMenuItem(It.props.eventKey,[]);St!==void 0&&We.props.className.indexOf("".concat(We.props.prefixCls,"-root"))!==-1&&(Ot>St&&(bt=C.cloneElement(It,{style:{display:"none"},eventKey:"".concat(It.props.eventKey,"-hidden"),className:"".concat(ne)})),Ot===St+1&&(We.overflowedItems=Re.slice(St+1).map(function(xn){return C.cloneElement(xn,{key:xn.props.eventKey,mode:"vertical-left"})}),Ht=We.getOverflowedSubMenuItem(It.props.eventKey,We.overflowedItems)));var Gt=[].concat(Object(_e.a)(ft),[Ht,bt]);return Ot===Re.length-1&&Gt.push(We.getOverflowedSubMenuItem(It.props.eventKey,[],!0)),Gt}return[].concat(Object(_e.a)(ft),[bt])},[])}},{key:"render",value:function(){var Re=this.props,We=Re.visible,St=Re.prefixCls,ft=Re.overflowedIndicator,It=Re.mode,Ot=Re.level,bt=Re.tag,Ht=Re.children,Gt=Re.theme,xn=Object(Ae.a)(Re,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),vn=bt;return C.createElement(vn,Object.assign({},xn),this.renderChildren(Ht))}}]),Tt}(C.Component);De.defaultProps={tag:"div",className:""};var Xe=De;function xt(Zt){return Zt.length?Zt.every(function(Mt){return!!Mt.props.disabled}):!0}function Ke(Zt,Mt,Tt){var Ct=Zt.getState();Zt.setState({activeKey:Object(ue.a)(Object(ue.a)({},Ct.activeKey),{},Object(n.a)({},Mt,Tt))})}function ze(Zt){return Zt.eventKey||"0-menu-"}function yt(Zt,Mt){var Tt=Mt,Ct=Zt.children,Re=Zt.eventKey;if(Tt){var We;if(Q(Ct,function(St,ft){St&&St.props&&!St.props.disabled&&Tt===G(St,Re,ft)&&(We=!0)}),We)return Tt}return Tt=null,Zt.defaultActiveFirst&&Q(Ct,function(St,ft){!Tt&&St&&!St.props.disabled&&(Tt=G(St,Re,ft))}),Tt}function Et(Zt){if(Zt){var Mt=this.instanceArray.indexOf(Zt);Mt!==-1?this.instanceArray[Mt]=Zt:this.instanceArray.push(Zt)}}var ct=function(Zt){Object(E.a)(Tt,Zt);var Mt=Object(_.a)(Tt);function Tt(Ct){var Re;return Object(Y.a)(this,Tt),Re=Mt.call(this,Ct),Re.onKeyDown=function(We,St){var ft=We.keyCode,It;if(Re.getFlatInstanceArray().forEach(function(bt){bt&&bt.props.active&&bt.onKeyDown&&(It=bt.onKeyDown(We))}),It)return 1;var Ot=null;return(ft===e.a.UP||ft===e.a.DOWN)&&(Ot=Re.step(ft===e.a.UP?-1:1)),Ot?(We.preventDefault(),Ke(Re.props.store,ze(Re.props),Ot.props.eventKey),typeof St=="function"&&St(Ot),1):void 0},Re.onItemHover=function(We){var St=We.key,ft=We.hover;Ke(Re.props.store,ze(Re.props),ft?St:null)},Re.onDeselect=function(We){Re.props.onDeselect(We)},Re.onSelect=function(We){Re.props.onSelect(We)},Re.onClick=function(We){Re.props.onClick(We)},Re.onOpenChange=function(We){Re.props.onOpenChange(We)},Re.onDestroy=function(We){Re.props.onDestroy(We)},Re.getFlatInstanceArray=function(){return Re.instanceArray},Re.step=function(We){var St=Re.getFlatInstanceArray(),ft=Re.props.store.getState().activeKey[ze(Re.props)],It=St.length;if(!It)return null;We<0&&(St=St.concat().reverse());var Ot=-1;if(St.every(function(xn,vn){return xn&&xn.props.eventKey===ft?(Ot=vn,!1):!0}),!Re.props.defaultActiveFirst&&Ot!==-1&&xt(St.slice(Ot,It-1)))return;var bt=(Ot+1)%It,Ht=bt;do{var Gt=St[Ht];if(!Gt||Gt.props.disabled)Ht=(Ht+1)%It;else return Gt}while(Ht!==bt);return null},Re.renderCommonMenuItem=function(We,St,ft){var It=Re.props.store.getState(),Ot=Object(y.a)(Re),bt=Ot.props,Ht=G(We,bt.eventKey,St),Gt=We.props;if(!Gt||typeof We.type=="string")return We;var xn=Ht===It.activeKey,vn=Object(ue.a)(Object(ue.a)({mode:Gt.mode||bt.mode,level:bt.level,inlineIndent:bt.inlineIndent,renderMenuItem:Re.renderMenuItem,rootPrefixCls:bt.prefixCls,index:St,parentMenu:bt.parentMenu,manualRef:Gt.disabled?void 0:Object(s.a)(We.ref,Et.bind(Object(y.a)(Re))),eventKey:Ht,active:!Gt.disabled&&xn,multiple:bt.multiple,onClick:function(xr){(Gt.onClick||K)(xr),Re.onClick(xr)},onItemHover:Re.onItemHover,motion:bt.motion,subMenuOpenDelay:bt.subMenuOpenDelay,subMenuCloseDelay:bt.subMenuCloseDelay,forceSubMenuRender:bt.forceSubMenuRender,onOpenChange:Re.onOpenChange,onDeselect:Re.onDeselect,onSelect:Re.onSelect,builtinPlacements:bt.builtinPlacements,itemIcon:Gt.itemIcon||Re.props.itemIcon,expandIcon:Gt.expandIcon||Re.props.expandIcon},ft),{},{direction:bt.direction});return(bt.mode==="inline"||se())&&(vn.triggerSubMenuAction="click"),C.cloneElement(We,vn)},Re.renderMenuItem=function(We,St,ft){if(!We)return null;var It=Re.props.store.getState(),Ot={openKeys:It.openKeys,selectedKeys:It.selectedKeys,triggerSubMenuAction:Re.props.triggerSubMenuAction,subMenuKey:ft};return Re.renderCommonMenuItem(We,St,Ot)},Ct.store.setState({activeKey:Object(ue.a)(Object(ue.a)({},Ct.store.getState().activeKey),{},Object(n.a)({},Ct.eventKey,yt(Ct,Ct.activeKey)))}),Re.instanceArray=[],Re}return Object(P.a)(Tt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Re){return this.props.visible||Re.visible||this.props.className!==Re.className||!o()(this.props.style,Re.style)}},{key:"componentDidUpdate",value:function(Re){var We=this.props,St="activeKey"in We?We.activeKey:We.store.getState().activeKey[ze(We)],ft=yt(We,St);if(ft!==St)Ke(We.store,ze(We),ft);else if("activeKey"in Re){var It=yt(Re,Re.activeKey);ft!==It&&Ke(We.store,ze(We),ft)}}},{key:"render",value:function(){var Re=this,We=Object(r.a)({},this.props);this.instanceArray=[];var St=d()(We.prefixCls,We.className,"".concat(We.prefixCls,"-").concat(We.mode)),ft={className:St,role:We.role||"menu"};We.id&&(ft.id=We.id),We.focusable&&(ft.tabIndex=0,ft.onKeyDown=this.onKeyDown);var It=We.prefixCls,Ot=We.eventKey,bt=We.visible,Ht=We.level,Gt=We.mode,xn=We.overflowedIndicator,vn=We.theme;return te.forEach(function(sr){return delete We[sr]}),delete We.onClick,C.createElement(Xe,Object.assign({},We,{prefixCls:It,mode:Gt,tag:"ul",level:Ht,theme:vn,visible:bt,overflowedIndicator:xn},ft),C.Children.map(We.children,function(sr,xr){return Re.renderMenuItem(sr,xr,Ot||"0-menu-")}))}}]),Tt}(C.Component);ct.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:K};var lt=Object(m.b)()(ct),rt=lt,qe=M("Kwbf");function $e(Zt,Mt,Tt){var Ct=Zt.prefixCls,Re=Zt.motion,We=Zt.defaultMotions,St=We===void 0?{}:We,ft=Zt.openAnimation,It=Zt.openTransitionName,Ot=Mt.switchingModeFromInline;if(Re)return Re;if(Object(a.a)(ft)==="object"&&ft)Object(qe.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof ft=="string")return{motionName:"".concat(Ct,"-open-").concat(ft)};if(It)return{motionName:It};var bt=St[Tt];return bt||(Ot?null:St.other)}var Pe=function(Zt){Object(E.a)(Tt,Zt);var Mt=Object(_.a)(Tt);function Tt(Ct){var Re;Object(Y.a)(this,Tt),Re=Mt.call(this,Ct),Re.inlineOpenKeys=[],Re.onSelect=function(ft){var It=Object(y.a)(Re),Ot=It.props;if(Ot.selectable){var bt=Re.store.getState(),Ht=bt.selectedKeys,Gt=ft.key;Ot.multiple?Ht=Ht.concat([Gt]):Ht=[Gt],"selectedKeys"in Ot||Re.store.setState({selectedKeys:Ht}),Ot.onSelect(Object(ue.a)(Object(ue.a)({},ft),{},{selectedKeys:Ht}))}},Re.onClick=function(ft){var It=Re.getRealMenuMode(),Ot=Object(y.a)(Re),bt=Ot.store,Ht=Ot.props.onOpenChange;It!=="inline"&&!("openKeys"in Re.props)&&(bt.setState({openKeys:[]}),Ht([])),Re.props.onClick(ft)},Re.onKeyDown=function(ft,It){Re.innerMenu.getWrappedInstance().onKeyDown(ft,It)},Re.onOpenChange=function(ft){var It=Object(y.a)(Re),Ot=It.props,bt=Re.store.getState().openKeys.concat(),Ht=!1,Gt=function(vn){var sr=!1;if(vn.open)sr=bt.indexOf(vn.key)===-1,sr&&bt.push(vn.key);else{var xr=bt.indexOf(vn.key);sr=xr!==-1,sr&&bt.splice(xr,1)}Ht=Ht||sr};Array.isArray(ft)?ft.forEach(Gt):Gt(ft),Ht&&("openKeys"in Re.props||Re.store.setState({openKeys:bt}),Ot.onOpenChange(bt))},Re.onDeselect=function(ft){var It=Object(y.a)(Re),Ot=It.props;if(Ot.selectable){var bt=Re.store.getState().selectedKeys.concat(),Ht=ft.key,Gt=bt.indexOf(Ht);Gt!==-1&&bt.splice(Gt,1),"selectedKeys"in Ot||Re.store.setState({selectedKeys:bt}),Ot.onDeselect(Object(ue.a)(Object(ue.a)({},ft),{},{selectedKeys:bt}))}},Re.onMouseEnter=function(ft){Re.restoreModeVerticalFromInline();var It=Re.props.onMouseEnter;It&&It(ft)},Re.onTransitionEnd=function(ft){var It=ft.propertyName==="width"&&ft.target===ft.currentTarget,Ot=ft.target.className,bt=Object.prototype.toString.call(Ot)==="[object SVGAnimatedString]"?Ot.animVal:Ot,Ht=ft.propertyName==="font-size"&&bt.indexOf("anticon")>=0;(It||Ht)&&Re.restoreModeVerticalFromInline()},Re.setInnerMenu=function(ft){Re.innerMenu=ft},Re.isRootMenu=!0;var We=Ct.defaultSelectedKeys,St=Ct.defaultOpenKeys;return"selectedKeys"in Ct&&(We=Ct.selectedKeys||[]),"openKeys"in Ct&&(St=Ct.openKeys||[]),Re.store=Object(m.c)({selectedKeys:We,openKeys:St,activeKey:{"0-menu-":yt(Ct,Ct.activeKey)}}),Re.state={switchingModeFromInline:!1},Re}return Object(P.a)(Tt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Re){this.updateOpentKeysWhenSwitchMode(Re),this.updateMiniStore();var We=this.props,St=We.siderCollapsed,ft=We.inlineCollapsed,It=We.onOpenChange;(!Re.inlineCollapsed&&ft||!Re.siderCollapsed&&St)&&It([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Re){var We=this.props,St=this.store,ft=this.inlineOpenKeys,It=St.getState(),Ot={};Re.mode==="inline"&&We.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in We||((We.inlineCollapsed&&!Re.inlineCollapsed||We.siderCollapsed&&!Re.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=It.openKeys.concat(),Ot.openKeys=[]),(!We.inlineCollapsed&&Re.inlineCollapsed||!We.siderCollapsed&&Re.siderCollapsed)&&(Ot.openKeys=ft,this.inlineOpenKeys=[])),Object.keys(Ot).length&&St.setState(Ot)}},{key:"updateMenuDisplay",value:function(){var Re=this.props.collapsedWidth,We=this.store,St=this.prevOpenKeys,ft=this.getInlineCollapsed()&&(Re===0||Re==="0"||Re==="0px");ft?(this.prevOpenKeys=We.getState().openKeys.concat(),this.store.setState({openKeys:[]})):St&&(this.store.setState({openKeys:St}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Re=this.props.mode,We=this.state.switchingModeFromInline,St=this.getInlineCollapsed();return We&&St?"inline":St?"vertical":Re}},{key:"getInlineCollapsed",value:function(){var Re=this.props,We=Re.inlineCollapsed,St=Re.siderCollapsed;return St!==void 0?St:We}},{key:"restoreModeVerticalFromInline",value:function(){var Re=this.state.switchingModeFromInline;Re&&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 Re=Object(ue.a)({},Object(c.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),We=this.getRealMenuMode();return Re.className+=" ".concat(Re.prefixCls,"-root"),Re.direction==="rtl"&&(Re.className+=" ".concat(Re.prefixCls,"-rtl")),Re=Object(ue.a)(Object(ue.a)({},Re),{},{mode:We,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:$e(this.props,this.state,We)}),delete Re.openAnimation,delete Re.openTransitionName,C.createElement(m.a,{store:this.store},C.createElement(rt,Object.assign({},Re,{ref:this.setInnerMenu}),this.props.children))}}]),Tt}(C.Component);Pe.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:C.createElement("span",null,"\xB7\xB7\xB7")};var je=Pe,Ne=function(Zt){Object(E.a)(Tt,Zt);var Mt=Object(_.a)(Tt);function Tt(){var Ct;return Object(Y.a)(this,Tt),Ct=Mt.apply(this,arguments),Ct.onKeyDown=function(Re){var We=Re.keyCode;return We===e.a.ENTER?(Ct.onClick(Re),!0):void 0},Ct.onMouseLeave=function(Re){var We=Ct.props,St=We.eventKey,ft=We.onItemHover,It=We.onMouseLeave;ft({key:St,hover:!1}),It({key:St,domEvent:Re})},Ct.onMouseEnter=function(Re){var We=Ct.props,St=We.eventKey,ft=We.onItemHover,It=We.onMouseEnter;ft({key:St,hover:!0}),It({key:St,domEvent:Re})},Ct.onClick=function(Re){var We=Ct.props,St=We.eventKey,ft=We.multiple,It=We.onClick,Ot=We.onSelect,bt=We.onDeselect,Ht=We.isSelected,Gt={key:St,keyPath:[St],item:Object(y.a)(Ct),domEvent:Re};It(Gt),ft?Ht?bt(Gt):Ot(Gt):Ht||Ot(Gt)},Ct.saveNode=function(Re){Ct.node=Re},Ct}return Object(P.a)(Tt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Re=this.props;Re.onDestroy&&Re.onDestroy(Re.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 Re,We=Object(ue.a)({},this.props),St=d()(this.getPrefixCls(),We.className,(Re={},Object(n.a)(Re,this.getActiveClassName(),!We.disabled&&We.active),Object(n.a)(Re,this.getSelectedClassName(),We.isSelected),Object(n.a)(Re,this.getDisabledClassName(),We.disabled),Re)),ft=Object(ue.a)(Object(ue.a)({},We.attribute),{},{title:typeof We.title=="string"?We.title:void 0,className:St,role:We.role||"menuitem","aria-disabled":We.disabled});We.role==="option"?ft=Object(ue.a)(Object(ue.a)({},ft),{},{role:"option","aria-selected":We.isSelected}):(We.role===null||We.role==="none")&&(ft.role="none");var It={onClick:We.disabled?null:this.onClick,onMouseLeave:We.disabled?null:this.onMouseLeave,onMouseEnter:We.disabled?null:this.onMouseEnter},Ot=Object(ue.a)({},We.style);We.mode==="inline"&&(We.direction==="rtl"?Ot.paddingRight=We.inlineIndent*We.level:Ot.paddingLeft=We.inlineIndent*We.level),te.forEach(function(Ht){return delete We[Ht]}),delete We.direction;var bt=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(bt=C.createElement(this.props.itemIcon,this.props)),C.createElement("li",Object.assign({},Object(c.default)(We,["onClick","onMouseEnter","onMouseLeave","onSelect"]),ft,It,{style:Ot,ref:this.saveNode}),We.children,bt)}}]),Tt}(C.Component);Ne.isMenuItem=!0,Ne.defaultProps={onSelect:K,onMouseEnter:K,onMouseLeave:K,manualRef:K};var et=Object(m.b)(function(Zt,Mt){var Tt=Zt.activeKey,Ct=Zt.selectedKeys,Re=Mt.eventKey,We=Mt.subMenuKey;return{active:Tt[We]===Re,isSelected:Ct.indexOf(Re)!==-1}})(Ne),mt=et,At=function(Zt){Object(E.a)(Tt,Zt);var Mt=Object(_.a)(Tt);function Tt(){var Ct;return Object(Y.a)(this,Tt),Ct=Mt.apply(this,arguments),Ct.renderInnerMenuItem=function(Re){var We=Ct.props,St=We.renderMenuItem,ft=We.index;return St(Re,ft,Ct.props.subMenuKey)},Ct}return Object(P.a)(Tt,[{key:"render",value:function(){var Re=Object(r.a)({},this.props),We=Re.className,St=We===void 0?"":We,ft=Re.rootPrefixCls,It="".concat(ft,"-item-group-title"),Ot="".concat(ft,"-item-group-list"),bt=Re.title,Ht=Re.children;return te.forEach(function(Gt){return delete Re[Gt]}),delete Re.onClick,delete Re.direction,C.createElement("li",Object.assign({},Re,{className:"".concat(St," ").concat(ft,"-item-group")}),C.createElement("div",{className:It,title:typeof bt=="string"?bt:void 0},bt),C.createElement("ul",{className:Ot},C.Children.map(Ht,this.renderInnerMenuItem)))}}]),Tt}(C.Component);At.isMenuItemGroup=!0,At.defaultProps={disabled:!0};var Ut=At,Xt=function(Mt){var Tt=Mt.className,Ct=Mt.rootPrefixCls,Re=Mt.style;return C.createElement("li",{className:"".concat(Tt," ").concat(Ct,"-item-divider"),style:Re})};Xt.defaultProps={disabled:!0,className:"",style:{}};var un=Xt,jt=we.e=je},"24YM":function(Ze,we,M){"use strict";Object.defineProperty(we,"__esModule",{value:!0}),we.SensorTabIndex=we.SensorClassName=we.SizeSensorId=void 0;var ue="size-sensor-id";we.SizeSensorId=ue;var Y="size-sensor-object";we.SensorClassName=Y;var P="-1";we.SensorTabIndex=P},"2DNl":function(Ze,we,M){var ue=M("IMiH"),Y=M("loD1"),P=M("59Ip"),y=M("aKvl"),E=M("n1HI"),_=M("hX1E"),C=_.normalizeRadian,m=M("Sj9i"),c=M("hyiK"),r=ue.CMD,n=Math.PI*2,e=1e-4;function s(w,B){return Math.abs(w-B)<e}var u=[-1,-1,-1],o=[-1,-1];function f(){var w=o[0];o[0]=o[1],o[1]=w}function d(w,B,b,A,l,i,x,O,T,D){if(D>B&&D>A&&D>i&&D>O||D<B&&D<A&&D<i&&D<O)return 0;var R=m.cubicRootAt(B,A,i,O,D,u);if(R===0)return 0;for(var k=0,H=-1,J,U,K=0;K<R;K++){var G=u[K],N=G===0||G===1?.5:1,Q=m.cubicAt(w,b,l,x,G);if(Q<T)continue;H<0&&(H=m.cubicExtrema(B,A,i,O,o),o[1]<o[0]&&H>1&&f(),J=m.cubicAt(B,A,i,O,o[0]),H>1&&(U=m.cubicAt(B,A,i,O,o[1]))),H===2?G<o[0]?k+=J<B?N:-N:G<o[1]?k+=U<J?N:-N:k+=O<U?N:-N:G<o[0]?k+=J<B?N:-N:k+=O<J?N:-N}return k}function a(w,B,b,A,l,i,x,O){if(O>B&&O>A&&O>i||O<B&&O<A&&O<i)return 0;var T=m.quadraticRootAt(B,A,i,O,u);if(T===0)return 0;var D=m.quadraticExtremum(B,A,i);if(D>=0&&D<=1){for(var R=0,k=m.quadraticAt(B,A,i,D),H=0;H<T;H++){var J=u[H]===0||u[H]===1?.5:1,U=m.quadraticAt(w,b,l,u[H]);if(U<x)continue;u[H]<D?R+=k<B?J:-J:R+=i<k?J:-J}return R}else{var J=u[0]===0||u[0]===1?.5:1,U=m.quadraticAt(w,b,l,u[0]);return U<x?0:i<B?J:-J}}function h(w,B,b,A,l,i,x,O){if(O-=B,O>b||O<-b)return 0;var T=Math.sqrt(b*b-O*O);u[0]=-T,u[1]=T;var D=Math.abs(A-l);if(D<1e-4)return 0;if(D%n<1e-4){A=0,l=n;var R=i?1:-1;return x>=u[0]+w&&x<=u[1]+w?R:0}if(i){var T=A;A=C(l),l=C(T)}else A=C(A),l=C(l);A>l&&(l+=n);for(var k=0,H=0;H<2;H++){var J=u[H];if(J+w>x){var U=Math.atan2(O,J),R=i?1:-1;U<0&&(U=n+U),(U>=A&&U<=l||U+n>=A&&U+n<=l)&&(U>Math.PI/2&&U<Math.PI*1.5&&(R=-R),k+=R)}}return k}function g(w,B,b,A,l){for(var i=0,x=0,O=0,T=0,D=0,R=0;R<w.length;){var k=w[R++];k===r.M&&R>1&&(b||(i+=c(x,O,T,D,A,l))),R===1&&(x=w[R],O=w[R+1],T=x,D=O);switch(k){case r.M:T=w[R++],D=w[R++],x=T,O=D;break;case r.L:if(b){if(Y.containStroke(x,O,w[R],w[R+1],B,A,l))return!0}else i+=c(x,O,w[R],w[R+1],A,l)||0;x=w[R++],O=w[R++];break;case r.C:if(b){if(P.containStroke(x,O,w[R++],w[R++],w[R++],w[R++],w[R],w[R+1],B,A,l))return!0}else i+=d(x,O,w[R++],w[R++],w[R++],w[R++],w[R],w[R+1],A,l)||0;x=w[R++],O=w[R++];break;case r.Q:if(b){if(y.containStroke(x,O,w[R++],w[R++],w[R],w[R+1],B,A,l))return!0}else i+=a(x,O,w[R++],w[R++],w[R],w[R+1],A,l)||0;x=w[R++],O=w[R++];break;case r.A:var H=w[R++],J=w[R++],U=w[R++],K=w[R++],G=w[R++],N=w[R++];R+=1;var Q=1-w[R++],X=Math.cos(G)*U+H,te=Math.sin(G)*K+J;R>1?i+=c(x,O,X,te,A,l):(T=X,D=te);var oe=(A-H)*K/U+H;if(b){if(E.containStroke(H,J,K,G,G+N,Q,B,oe,l))return!0}else i+=h(H,J,K,G,G+N,Q,oe,l);x=Math.cos(G+N)*U+H,O=Math.sin(G+N)*K+J;break;case r.R:T=x=w[R++],D=O=w[R++];var me=w[R++],se=w[R++],X=T+me,te=D+se;if(b){if(Y.containStroke(T,D,X,D,B,A,l)||Y.containStroke(X,D,X,te,B,A,l)||Y.containStroke(X,te,T,te,B,A,l)||Y.containStroke(T,te,T,D,B,A,l))return!0}else i+=c(X,D,X,te,A,l),i+=c(T,te,T,D,A,l);break;case r.Z:if(b){if(Y.containStroke(x,O,T,D,B,A,l))return!0}else i+=c(x,O,T,D,A,l);x=T,O=D;break}}return!b&&!s(O,D)&&(i+=c(x,O,T,D,A,l)||0),i!==0}function p(w,B,b){return g(w,0,!1,B,b)}function S(w,B,b,A){return g(w,B,!0,b,A)}we.contain=p,we.containStroke=S},"2fw6":function(Ze,we,M){var ue=M("y+Vt"),Y=ue.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(P,y,E){E&&P.moveTo(y.cx+y.r,y.cy),P.arc(y.cx,y.cy,y.r,0,Math.PI*2,!0)}});Ze.exports=Y},"3C/r":function(Ze,we){var M=function(Y,P){this.image=Y,this.repeat=P,this.type="pattern"};M.prototype.getCanvasPattern=function(Y){return Y.createPattern(this.image,this.repeat||"repeat")};var ue=M;Ze.exports=ue},"3CBa":function(Ze,we,M){var ue=M("hydK"),Y=ue.createElement,P=M("bYtY"),y=M("SUKs"),E=M("y+Vt"),_=M("Dagg"),C=M("dqUG"),m=M("DBLp"),c=M("sW+o"),r=M("n6Mw"),n=M("vKoX"),e=M("P47w"),s=e.path,u=e.image,o=e.text;function f(l){return parseInt(l,10)}function d(l){return l instanceof E?s:l instanceof _?u:l instanceof C?o:s}function a(l,i){return i&&l&&i.parentNode!==l}function h(l,i,x){if(a(l,i)&&x){var O=x.nextSibling;O?l.insertBefore(i,O):l.appendChild(i)}}function g(l,i){if(a(l,i)){var x=l.firstChild;x?l.insertBefore(i,x):l.appendChild(i)}}function p(l,i){i&&l&&i.parentNode===l&&l.removeChild(i)}function S(l){return l.__textSvgEl}function w(l){return l.__svgEl}var B=function(l,i,x,O){this.root=l,this.storage=i,this._opts=x=P.extend({},x||{});var T=Y("svg");T.setAttribute("xmlns","http://www.w3.org/2000/svg"),T.setAttribute("version","1.1"),T.setAttribute("baseProfile","full"),T.style.cssText="user-select:none;position:absolute;left:0;top:0;";var D=Y("g");T.appendChild(D);var R=Y("g");T.appendChild(R),this.gradientManager=new c(O,R),this.clipPathManager=new r(O,R),this.shadowManager=new n(O,R);var k=document.createElement("div");k.style.cssText="overflow:hidden;position:relative",this._svgDom=T,this._svgRoot=R,this._backgroundRoot=D,this._viewport=k,l.appendChild(k),k.appendChild(T),this.resize(x.width,x.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 l=this.getViewportRoot();if(l)return{offsetLeft:l.offsetLeft||0,offsetTop:l.offsetTop||0}},refresh:function(){var l=this.storage.getDisplayList(!0);this._paintList(l)},setBackgroundColor:function(l){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var i=Y("rect");i.setAttribute("width",this.getWidth()),i.setAttribute("height",this.getHeight()),i.setAttribute("x",0),i.setAttribute("y",0),i.setAttribute("id",0),i.style.fill=l,this._backgroundRoot.appendChild(i),this._backgroundNode=i},_paintList:function(l){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var i=this._svgRoot,x=this._visibleList,O=l.length,T=[],D;for(D=0;D<O;D++){var R=l[D],k=d(R),H=w(R)||S(R);R.invisible||(R.__dirty&&(k&&k.brush(R),this.clipPathManager.update(R),R.style&&(this.gradientManager.update(R.style.fill),this.gradientManager.update(R.style.stroke),this.shadowManager.update(H,R)),R.__dirty=!1),T.push(R))}var J=m(x,T),U;for(D=0;D<J.length;D++){var K=J[D];if(K.removed)for(var G=0;G<K.count;G++){var R=x[K.indices[G]],H=w(R),N=S(R);p(i,H),p(i,N)}}for(D=0;D<J.length;D++){var K=J[D];if(K.added)for(var G=0;G<K.count;G++){var R=T[K.indices[G]],H=w(R),N=S(R);U?h(i,H,U):g(i,H),H?h(i,N,H):U?h(i,N,U):g(i,N),h(i,N,H),U=N||H||U,this.gradientManager.addWithoutUpdate(H||N,R),this.shadowManager.addWithoutUpdate(H||N,R),this.clipPathManager.markUsed(R)}else if(!K.removed)for(var G=0;G<K.count;G++){var R=T[K.indices[G]],H=w(R),N=S(R),H=w(R),N=S(R);this.gradientManager.markUsed(R),this.gradientManager.addWithoutUpdate(H||N,R),this.shadowManager.markUsed(R),this.shadowManager.addWithoutUpdate(H||N,R),this.clipPathManager.markUsed(R),N&&h(i,N,H),U=H||N||U}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=T},_getDefs:function(l){var i=this._svgDom,x=i.getElementsByTagName("defs");if(x.length===0)if(l){var x=i.insertBefore(Y("defs"),i.firstChild);return x.contains||(x.contains=function(T){var D=x.children;if(!D)return!1;for(var R=D.length-1;R>=0;--R)if(D[R]===T)return!0;return!1}),x}else return null;else return x[0]},resize:function(l,i){var x=this._viewport;x.style.display="none";var O=this._opts;if(l!=null&&(O.width=l),i!=null&&(O.height=i),l=this._getSize(0),i=this._getSize(1),x.style.display="",this._width!==l||this._height!==i){this._width=l,this._height=i;var T=x.style;T.width=l+"px",T.height=i+"px";var D=this._svgDom;D.setAttribute("width",l),D.setAttribute("height",i)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",l),this._backgroundNode.setAttribute("height",i))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(l){var i=this._opts,x=["width","height"][l],O=["clientWidth","clientHeight"][l],T=["paddingLeft","paddingTop"][l],D=["paddingRight","paddingBottom"][l];if(i[x]!=null&&i[x]!=="auto")return parseFloat(i[x]);var R=this.root,k=document.defaultView.getComputedStyle(R);return(R[O]||f(k[x])||f(R.style[x]))-(f(k[T])||0)-(f(k[D])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var l=encodeURIComponent(this._svgDom.outerHTML.replace(/></g,`>
\r<`));return"data:image/svg+xml;charset=UTF-8,"+l}};function b(l){return function(){y('In SVG mode painter not support method "'+l+'"')}}P.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(l){B.prototype[l]=b(l)});var A=B;Ze.exports=A},"3e3G":function(Ze,we,M){var ue=M("bYtY"),Y=M("QuXc"),P=function(E,_,C,m,c){this.x=E==null?.5:E,this.y=_==null?.5:_,this.r=C==null?.5:C,this.type="radial",this.global=c||!1,Y.call(this,m)};P.prototype={constructor:P},ue.inherits(P,Y);var y=P;Ze.exports=y},"3gBT":function(Ze,we){var M=2311;function ue(){return M++}Ze.exports=ue},"4fz+":function(Ze,we,M){var ue=M("bYtY"),Y=M("1bdT"),P=M("mFDi"),y=function(_){_=_||{},Y.call(this,_);for(var C in _)_.hasOwnProperty(C)&&(this[C]=_[C]);this._children=[],this.__storage=null,this.__dirty=!0};y.prototype={constructor:y,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(_){return this._children[_]},childOfName:function(_){for(var C=this._children,m=0;m<C.length;m++)if(C[m].name===_)return C[m]},childCount:function(){return this._children.length},add:function(_){return _&&_!==this&&_.parent!==this&&(this._children.push(_),this._doAdd(_)),this},addBefore:function(_,C){if(_&&_!==this&&_.parent!==this&&C&&C.parent===this){var m=this._children,c=m.indexOf(C);c>=0&&(m.splice(c,0,_),this._doAdd(_))}return this},_doAdd:function(_){_.parent&&_.parent.remove(_),_.parent=this;var C=this.__storage,m=this.__zr;C&&C!==_.__storage&&(C.addToStorage(_),_ instanceof y&&_.addChildrenToStorage(C)),m&&m.refresh()},remove:function(_){var C=this.__zr,m=this.__storage,c=this._children,r=ue.indexOf(c,_);return r<0?this:(c.splice(r,1),_.parent=null,m&&(m.delFromStorage(_),_ instanceof y&&_.delChildrenFromStorage(m)),C&&C.refresh(),this)},removeAll:function(){var _=this._children,C=this.__storage,m,c;for(c=0;c<_.length;c++)m=_[c],C&&(C.delFromStorage(m),m instanceof y&&m.delChildrenFromStorage(C)),m.parent=null;return _.length=0,this},eachChild:function(_,C){for(var m=this._children,c=0;c<m.length;c++){var r=m[c];_.call(C,r,c)}return this},traverse:function(_,C){for(var m=0;m<this._children.length;m++){var c=this._children[m];_.call(C,c),c.type==="group"&&c.traverse(_,C)}return this},addChildrenToStorage:function(_){for(var C=0;C<this._children.length;C++){var m=this._children[C];_.addToStorage(m),m instanceof y&&m.addChildrenToStorage(_)}},delChildrenFromStorage:function(_){for(var C=0;C<this._children.length;C++){var m=this._children[C];_.delFromStorage(m),m instanceof y&&m.delChildrenFromStorage(_)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(_){for(var C=null,m=new P(0,0,0,0),c=_||this._children,r=[],n=0;n<c.length;n++){var e=c[n];if(e.ignore||e.invisible)continue;var s=e.getBoundingRect(),u=e.getLocalTransform(r);u?(m.copy(s),m.applyTransform(u),C=C||m.clone(),C.union(m)):(C=C||s.clone(),C.union(s))}return C||m}},ue.inherits(y,Y);var E=y;Ze.exports=E},"4mN7":function(Ze,we,M){var ue=M("QBsz"),Y=M("Sj9i"),P=Math.min,y=Math.max,E=Math.sin,_=Math.cos,C=Math.PI*2,m=ue.create(),c=ue.create(),r=ue.create();function n(a,h,g){if(a.length===0)return;var p=a[0],S=p[0],w=p[0],B=p[1],b=p[1],A;for(A=1;A<a.length;A++)p=a[A],S=P(S,p[0]),w=y(w,p[0]),B=P(B,p[1]),b=y(b,p[1]);h[0]=S,h[1]=B,g[0]=w,g[1]=b}function e(a,h,g,p,S,w){S[0]=P(a,g),S[1]=P(h,p),w[0]=y(a,g),w[1]=y(h,p)}var s=[],u=[];function o(a,h,g,p,S,w,B,b,A,l){var i=Y.cubicExtrema,x=Y.cubicAt,O,T=i(a,g,S,B,s);for(A[0]=Infinity,A[1]=Infinity,l[0]=-Infinity,l[1]=-Infinity,O=0;O<T;O++){var D=x(a,g,S,B,s[O]);A[0]=P(D,A[0]),l[0]=y(D,l[0])}for(T=i(h,p,w,b,u),O=0;O<T;O++){var R=x(h,p,w,b,u[O]);A[1]=P(R,A[1]),l[1]=y(R,l[1])}A[0]=P(a,A[0]),l[0]=y(a,l[0]),A[0]=P(B,A[0]),l[0]=y(B,l[0]),A[1]=P(h,A[1]),l[1]=y(h,l[1]),A[1]=P(b,A[1]),l[1]=y(b,l[1])}function f(a,h,g,p,S,w,B,b){var A=Y.quadraticExtremum,l=Y.quadraticAt,i=y(P(A(a,g,S),1),0),x=y(P(A(h,p,w),1),0),O=l(a,g,S,i),T=l(h,p,w,x);B[0]=P(a,S,O),B[1]=P(h,w,T),b[0]=y(a,S,O),b[1]=y(h,w,T)}function d(a,h,g,p,S,w,B,b,A){var l=ue.min,i=ue.max,x=Math.abs(S-w);if(x%C<1e-4&&x>1e-4){b[0]=a-g,b[1]=h-p,A[0]=a+g,A[1]=h+p;return}if(m[0]=_(S)*g+a,m[1]=E(S)*p+h,c[0]=_(w)*g+a,c[1]=E(w)*p+h,l(b,m,c),i(A,m,c),S=S%C,S<0&&(S=S+C),w=w%C,w<0&&(w=w+C),S>w&&!B?w+=C:S<w&&B&&(S+=C),B){var O=w;w=S,S=O}for(var T=0;T<w;T+=Math.PI/2)T>S&&(r[0]=_(T)*g+a,r[1]=E(T)*p+h,l(b,r,b),i(A,r,A))}we.fromPoints=n,we.fromLine=e,we.fromCubic=o,we.fromQuadratic=f,we.fromArc=d},"4qgm":function(Ze,we){Ze.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(Ze,we){Ze.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(Ze,we,M){"use strict";M.d(we,"a",function(){return S});var ue=M("+L6B"),Y=M("2/Rp"),P=M("2qtc"),y=M("kLXV"),E=M("9og8"),_=M("k1fw"),C=M("miYZ"),m=M("tsqr"),c=M("oBTY"),r=M("tJVT"),n=M("DZo9"),e=M("8z0m"),s=M("WmNS"),u=M.n(s),o=M("q1tI"),f=M.n(o),d=M("m3rI"),a=M("wzkS"),h=M("y5JW"),g=M("LtfV"),p=e.a.Dragger;function S(w){var B=[];return w&&w.length>0&&(B=w.map(function(b){return{uid:b.id,id:b.id,name:b.title+h.c+b.filesize,url:b.url,filesize:b.filesize,status:"done",response:{id:b.id}}})),B}we.b=function(w){var B=w.value,b=w.onChange,A=w.action,l=w.className,i=w.maxSize,x=i===void 0?150:i,O=w.title,T=O===void 0?"\u4E0A\u4F20\u9644\u4EF6":O,D=w.showRemoveModal,R=D===void 0?!1:D,k=w.accept,H=k===void 0?"":k,J=w.additionalText,U=w.isDragger,K=w.number,G=K===void 0?1e3:K,N=w.aloneClear,Q=N===void 0?!1:N,X=w.restrict,te=X===void 0?!0:X,oe=Object(o.useState)(!1),me=Object(r.a)(oe,2),se=me[0],_e=me[1],Ae=Object(o.useState)(B||[]),Ee=Object(r.a)(Ae,2),pe=Ee[0],he=Ee[1];Object(o.useEffect)(function(){B&&(he(Object(c.a)(B)),G===(B==null?void 0:B.length)&&_e(!0))},[B]);var ie=function(){setTimeout(function(){pe.pop(),he(Object(c.a)(pe))},500)},fe={multiple:!0,disabled:se,accept:H,withCredentials:!0,fileList:pe,beforeUpload:function(Ie,Fe){var ke=Ie.size/1024/1024;return pe.concat(Fe).length>G?(pe.pop(),he(Object(c.a)(pe)),m.b.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(G,"\u4E2A\u6587\u4EF6")),Q?Promise.reject():(ie(),!1)):ke<x?!0:(m.b.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(x,"MB).")),Q?Promise.reject():(ie(),!1))},action:A||"".concat(d.a.API_SERVER,"/api/attachments.json"),onChange:function(Ie){var Fe=Object(c.a)(Ie.fileList);Fe.length>=G?_e(!0):_e(!1),he(Object(c.a)(Fe)),Fe=Fe.map(function(ke){var re;if(ke!=null&&(re=ke.response)!==null&&re!==void 0&&re.id){var F;ke.url="/api/attachments/".concat(ke==null||((F=ke.response)===null||F===void 0)?void 0:F.id)}return ke.name.indexOf(h.c)===-1&&(ke.name="".concat(ke.name).concat(h.c).concat(Object(h.a)(ke.size))),Object(_.a)({},ke)}),console.log("info:",Ie),b(Fe)},onRemove:function(){var ce=Object(E.a)(u.a.mark(function Fe(ke){var re;return u.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:if(re=function(){var de=Object(E.a)(u.a.mark(function ne(){var le,De;return u.a.wrap(function(xt){for(;;)switch(xt.prev=xt.next){case 0:if(le=ke.response?ke.response.id:ke.id,!le){xt.next=8;break}return xt.next=4,Object(a.d)(ke.response?ke.response.id:ke.uid);case 4:return De=xt.sent,xt.abrupt("return",De);case 8:return xt.abrupt("return",!0);case 9:case"end":return xt.stop()}},ne)}));return function(){return de.apply(this,arguments)}}(),!R){W.next=5;break}return W.abrupt("return",new Promise(function(de,ne){y.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:f.a.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var le=Object(E.a)(u.a.mark(function Xe(){var xt;return u.a.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:return ze.next=2,re();case 2:xt=ze.sent,m.b.success("\u5220\u9664\u6210\u529F"),de(!0);case 5:case"end":return ze.stop()}},Xe)}));function De(){return le.apply(this,arguments)}return De}(),onCancel:function(){return de(!1)}})}));case 5:return W.next=7,re();case 7:return W.abrupt("return",W.sent);case 8:case"end":return W.stop()}},Fe)}));function Ie(Fe){return ce.apply(this,arguments)}return Ie}()};function ge(ce){ce.preventDefault(),ce.stopPropagation()}return f.a.createElement("div",{className:"multi-upload ".concat(l||"")},U&&f.a.createElement(p,fe,f.a.createElement("p",{className:"ant-upload-drag-icon"},f.a.createElement(g.a,null)),f.a.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",f.a.createElement("br",null),f.a.createElement("span",{style:{display:te?"block":"none"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",x,"MB) ")),J),!U&&f.a.createElement(e.a,fe,f.a.createElement(Y.a,{disabled:se},T),f.a.createElement("span",{onClick:ge,style:{marginLeft:10,color:"#FA6400",display:te?"block":"none"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",x,"MB) ")))}},"55Ip":function(Ze,we,M){"use strict";M.d(we,"a",function(){return h}),M.d(we,"b",function(){return b});var ue=M("Ty5D"),Y=M("dI71"),P=M("q1tI"),y=M.n(P),E=M("YS25"),_=M("17x9"),C=M.n(_),m=M("wx14"),c=M("zLVn"),r=M("9R94"),n=function(l){Object(Y.a)(i,l);function i(){for(var O,T=arguments.length,D=new Array(T),R=0;R<T;R++)D[R]=arguments[R];return O=l.call.apply(l,[this].concat(D))||this,O.history=Object(E.a)(O.props),O}var x=i.prototype;return x.render=function(){return y.a.createElement(ue.c,{history:this.history,children:this.props.children})},i}(y.a.Component),e=function(l){Object(Y.a)(i,l);function i(){for(var O,T=arguments.length,D=new Array(T),R=0;R<T;R++)D[R]=arguments[R];return O=l.call.apply(l,[this].concat(D))||this,O.history=Object(E.b)(O.props),O}var x=i.prototype;return x.render=function(){return y.a.createElement(ue.c,{history:this.history,children:this.props.children})},i}(y.a.Component),s=function(i,x){return typeof i=="function"?i(x):i},u=function(i,x){return typeof i=="string"?Object(E.c)(i,null,null,x):i},o=function(i){return i},f=y.a.forwardRef;typeof f=="undefined"&&(f=o);function d(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}var a=f(function(l,i){var x=l.innerRef,O=l.navigate,T=l.onClick,D=Object(c.a)(l,["innerRef","navigate","onClick"]),R=D.target,k=Object(m.a)({},D,{onClick:function(J){try{T&&T(J)}catch(U){throw J.preventDefault(),U}!J.defaultPrevented&&J.button===0&&(!R||R==="_self")&&!d(J)&&(J.preventDefault(),O())}});return o!==f?k.ref=i||x:k.ref=x,y.a.createElement("a",k)}),h=f(function(l,i){var x=l.component,O=x===void 0?a:x,T=l.replace,D=l.to,R=l.innerRef,k=Object(c.a)(l,["component","replace","to","innerRef"]);return y.a.createElement(ue.e.Consumer,null,function(H){H||Object(r.a)(!1);var J=H.history,U=u(s(D,H.location),H.location),K=U?J.createHref(U):"",G=Object(m.a)({},k,{href:K,navigate:function(){var Q=s(D,H.location),X=T?J.replace:J.push;X(Q)}});return o!==f?G.ref=i||R:G.innerRef=R,y.a.createElement(O,G)})});if(!1)var g,p;var S=function(i){return i},w=y.a.forwardRef;typeof w=="undefined"&&(w=S);function B(){for(var l=arguments.length,i=new Array(l),x=0;x<l;x++)i[x]=arguments[x];return i.filter(function(O){return O}).join(" ")}var b=w(function(l,i){var x=l["aria-current"],O=x===void 0?"page":x,T=l.activeClassName,D=T===void 0?"active":T,R=l.activeStyle,k=l.className,H=l.exact,J=l.isActive,U=l.location,K=l.sensitive,G=l.strict,N=l.style,Q=l.to,X=l.innerRef,te=Object(c.a)(l,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return y.a.createElement(ue.e.Consumer,null,function(oe){oe||Object(r.a)(!1);var me=U||oe.location,se=u(s(Q,me),me),_e=se.pathname,Ae=_e&&_e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),Ee=Ae?Object(ue.f)(me.pathname,{path:Ae,exact:H,sensitive:K,strict:G}):null,pe=!!(J?J(Ee,me):Ee),he=pe?B(k,D):k,ie=pe?Object(m.a)({},N,{},R):N,fe=Object(m.a)({"aria-current":pe&&O||null,className:he,style:ie,to:se},te);return S!==w?fe.ref=i||X:fe.innerRef=X,y.a.createElement(h,fe)})});if(!1)var A},"59Ip":function(Ze,we,M){var ue=M("Sj9i");function Y(P,y,E,_,C,m,c,r,n,e,s){if(n===0)return!1;var u=n;if(s>y+u&&s>_+u&&s>m+u&&s>r+u||s<y-u&&s<_-u&&s<m-u&&s<r-u||e>P+u&&e>E+u&&e>C+u&&e>c+u||e<P-u&&e<E-u&&e<C-u&&e<c-u)return!1;var o=ue.cubicProjectPoint(P,y,E,_,C,m,c,r,e,s,null);return o<=u/2}we.containStroke=Y},"5D2P":function(Ze,we){Ze.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(Ze,we,M){"use strict";M.d(we,"a",function(){return w});var ue=M("wx14"),Y=M("rePB"),P=M("VTBJ"),y=M("1OyB"),E=M("vuIU"),_=M("Ji7U"),C=M("LK+K"),m=M("q1tI"),c=M.n(m),r=M("TSYQ"),n=M.n(r),e=function(b){var A,l="".concat(b.rootPrefixCls,"-item"),i=n()(l,"".concat(l,"-").concat(b.page),(A={},Object(Y.a)(A,"".concat(l,"-active"),b.active),Object(Y.a)(A,b.className,!!b.className),Object(Y.a)(A,"".concat(l,"-disabled"),!b.page),A)),x=function(){b.onClick(b.page)},O=function(D){b.onKeyPress(D,b.onClick,b.page)};return c.a.createElement("li",{title:b.showTitle?b.page:null,className:i,onClick:x,onKeyPress:O,tabIndex:"0"},b.itemRender(b.page,"page",c.a.createElement("a",{rel:"nofollow"},b.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},o=function(B){Object(_.a)(A,B);var b=Object(C.a)(A);function A(){var l;Object(y.a)(this,A);for(var i=arguments.length,x=new Array(i),O=0;O<i;O++)x[O]=arguments[O];return l=b.call.apply(b,[this].concat(x)),l.state={goInputText:""},l.buildOptionText=function(T){return"".concat(T," ").concat(l.props.locale.items_per_page)},l.changeSize=function(T){l.props.changeSize(Number(T))},l.handleChange=function(T){l.setState({goInputText:T.target.value})},l.handleBlur=function(T){var D=l.props,R=D.goButton,k=D.quickGo,H=D.rootPrefixCls,J=l.state.goInputText;if(R||J==="")return;if(T.relatedTarget&&(T.relatedTarget.className.indexOf("".concat(H,"-prev"))>=0||T.relatedTarget.className.indexOf("".concat(H,"-next"))>=0))return;l.setState({goInputText:""}),k(l.getValidValue())},l.go=function(T){var D=l.state.goInputText;if(D==="")return;(T.keyCode===u.ENTER||T.type==="click")&&(l.setState({goInputText:""}),l.props.quickGo(l.getValidValue()))},l}return Object(E.a)(A,[{key:"getValidValue",value:function(){var i=this.state,x=i.goInputText,O=i.current;return!x||isNaN(x)?O:Number(x)}},{key:"getPageSizeOptions",value:function(){var i=this.props,x=i.pageSize,O=i.pageSizeOptions;return O.some(function(T){return T.toString()===x.toString()})?O:O.concat([x.toString()]).sort(function(T,D){var R=isNaN(Number(T))?0:Number(T),k=isNaN(Number(D))?0:Number(D);return R-k})}},{key:"render",value:function(){var i=this,x=this.props,O=x.pageSize,T=x.locale,D=x.rootPrefixCls,R=x.changeSize,k=x.quickGo,H=x.goButton,J=x.selectComponentClass,U=x.buildOptionText,K=x.selectPrefixCls,G=x.disabled,N=this.state.goInputText,Q="".concat(D,"-options"),X=J,te=null,oe=null,me=null;if(!R&&!k)return null;var se=this.getPageSizeOptions();if(R&&X){var _e=se.map(function(Ae,Ee){return c.a.createElement(X.Option,{key:Ee,value:Ae.toString()},(U||i.buildOptionText)(Ae))});te=c.a.createElement(X,{disabled:G,prefixCls:K,showSearch:!1,className:"".concat(Q,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(O||se[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Ee){return Ee.parentNode}},_e)}return k&&(H&&(me=typeof H=="boolean"?c.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:G,className:"".concat(Q,"-quick-jumper-button")},T.jump_to_confirm):c.a.createElement("span",{onClick:this.go,onKeyUp:this.go},H)),oe=c.a.createElement("div",{className:"".concat(Q,"-quick-jumper")},T.jump_to,c.a.createElement("input",{disabled:G,type:"text",value:N,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),T.page,me)),c.a.createElement("li",{className:"".concat(Q)},te,oe)}}]),A}(c.a.Component);o.defaultProps={pageSizeOptions:["10","20","50","100"]};var f=o,d=M("N2Kk");function a(){}function h(B){return typeof B=="number"&&isFinite(B)&&Math.floor(B)===B}function g(B,b,A){return A}function p(B,b,A){var l=typeof B=="undefined"?b.pageSize:B;return Math.floor((A.total-1)/l)+1}var S=function(B){Object(_.a)(A,B);var b=Object(C.a)(A);function A(l){var i;Object(y.a)(this,A),i=b.call(this,l),i.getJumpPrevPage=function(){return Math.max(1,i.state.current-(i.props.showLessItems?3:5))},i.getJumpNextPage=function(){return Math.min(p(void 0,i.state,i.props),i.state.current+(i.props.showLessItems?3:5))},i.getItemIcon=function(R,k){var H=i.props.prefixCls,J=R||c.a.createElement("button",{type:"button","aria-label":k,className:"".concat(H,"-item-link")});return typeof R=="function"&&(J=c.a.createElement(R,Object(P.a)({},i.props))),J},i.savePaginationNode=function(R){i.paginationNode=R},i.isValid=function(R){return h(R)&&R!==i.state.current},i.shouldDisplayQuickJumper=function(){var R=i.props,k=R.showQuickJumper,H=R.pageSize,J=R.total;return J<=H?!1:k},i.handleKeyDown=function(R){(R.keyCode===u.ARROW_UP||R.keyCode===u.ARROW_DOWN)&&R.preventDefault()},i.handleKeyUp=function(R){var k=i.getValidValue(R),H=i.state.currentInputValue;k!==H&&i.setState({currentInputValue:k}),R.keyCode===u.ENTER?i.handleChange(k):R.keyCode===u.ARROW_UP?i.handleChange(k-1):R.keyCode===u.ARROW_DOWN&&i.handleChange(k+1)},i.changePageSize=function(R){var k=i.state.current,H=p(R,i.state,i.props);k=k>H?H:k,H===0&&(k=i.state.current),typeof R=="number"&&("pageSize"in i.props||i.setState({pageSize:R}),"current"in i.props||i.setState({current:k,currentInputValue:k})),i.props.onShowSizeChange(k,R),"onChange"in i.props&&i.props.onChange&&i.props.onChange(k,R)},i.handleChange=function(R){var k=i.props.disabled,H=R;if(i.isValid(H)&&!k){var J=p(void 0,i.state,i.props);H>J?H=J:H<1&&(H=1),"current"in i.props||i.setState({current:H,currentInputValue:H});var U=i.state.pageSize;return i.props.onChange(H,U),H}return i.state.current},i.prev=function(){i.hasPrev()&&i.handleChange(i.state.current-1)},i.next=function(){i.hasNext()&&i.handleChange(i.state.current+1)},i.jumpPrev=function(){i.handleChange(i.getJumpPrevPage())},i.jumpNext=function(){i.handleChange(i.getJumpNextPage())},i.hasPrev=function(){return i.state.current>1},i.hasNext=function(){return i.state.current<p(void 0,i.state,i.props)},i.runIfEnter=function(R,k){if(R.key==="Enter"||R.charCode===13){for(var H=arguments.length,J=new Array(H>2?H-2:0),U=2;U<H;U++)J[U-2]=arguments[U];k.apply(void 0,J)}},i.runIfEnterPrev=function(R){i.runIfEnter(R,i.prev)},i.runIfEnterNext=function(R){i.runIfEnter(R,i.next)},i.runIfEnterJumpPrev=function(R){i.runIfEnter(R,i.jumpPrev)},i.runIfEnterJumpNext=function(R){i.runIfEnter(R,i.jumpNext)},i.handleGoTO=function(R){(R.keyCode===u.ENTER||R.type==="click")&&i.handleChange(i.state.currentInputValue)};var x=l.onChange!==a,O="current"in l;O&&!x&&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=l.defaultCurrent;"current"in l&&(T=l.current);var D=l.defaultPageSize;return"pageSize"in l&&(D=l.pageSize),T=Math.min(T,p(D,void 0,l)),i.state={current:T,currentInputValue:T,pageSize:D},i}return Object(E.a)(A,[{key:"componentDidUpdate",value:function(i,x){var O=this.props.prefixCls;if(x.current!==this.state.current&&this.paginationNode){var T=this.paginationNode.querySelector(".".concat(O,"-item-").concat(x.current));T&&document.activeElement===T&&T.blur()}}},{key:"getValidValue",value:function(i){var x=i.target.value,O=p(void 0,this.state,this.props),T=this.state.currentInputValue,D;return x===""?D=x:isNaN(Number(x))?D=T:x>=O?D=O:D=Number(x),D}},{key:"getShowSizeChanger",value:function(){var i=this.props,x=i.showSizeChanger,O=i.total,T=i.totalBoundaryShowSizeChanger;return typeof x!="undefined"?x:O>T}},{key:"renderPrev",value:function(i){var x=this.props,O=x.prevIcon,T=x.itemRender,D=T(i,"prev",this.getItemIcon(O,"prev page")),R=!this.hasPrev();return Object(m.isValidElement)(D)?Object(m.cloneElement)(D,{disabled:R}):D}},{key:"renderNext",value:function(i){var x=this.props,O=x.nextIcon,T=x.itemRender,D=T(i,"next",this.getItemIcon(O,"next page")),R=!this.hasNext();return Object(m.isValidElement)(D)?Object(m.cloneElement)(D,{disabled:R}):D}},{key:"render",value:function(){var i=this,x=this.props,O=x.prefixCls,T=x.className,D=x.style,R=x.disabled,k=x.hideOnSinglePage,H=x.total,J=x.locale,U=x.showQuickJumper,K=x.showLessItems,G=x.showTitle,N=x.showTotal,Q=x.simple,X=x.itemRender,te=x.showPrevNextJumpers,oe=x.jumpPrevIcon,me=x.jumpNextIcon,se=x.selectComponentClass,_e=x.selectPrefixCls,Ae=x.pageSizeOptions,Ee=this.state,pe=Ee.current,he=Ee.pageSize,ie=Ee.currentInputValue;if(k===!0&&H<=he)return null;var fe=p(void 0,this.state,this.props),ge=[],ce=null,Ie=null,Fe=null,ke=null,re=null,F=U&&U.goButton,W=K?1:2,de=pe-1>0?pe-1:0,ne=pe+1<fe?pe+1:fe,le=Object.keys(this.props).reduce(function(Pe,je){return(je.substr(0,5)==="data-"||je.substr(0,5)==="aria-"||je==="role")&&(Pe[je]=i.props[je]),Pe},{});if(Q)return F&&(typeof F=="boolean"?re=c.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},J.jump_to_confirm):re=c.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},F),re=c.a.createElement("li",{title:G?"".concat(J.jump_to).concat(pe,"/").concat(fe):null,className:"".concat(O,"-simple-pager")},re)),c.a.createElement("ul",Object(ue.a)({className:n()(O,"".concat(O,"-simple"),Object(Y.a)({},"".concat(O,"-disabled"),R),T),style:D,ref:this.savePaginationNode},le),c.a.createElement("li",{title:G?J.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:n()("".concat(O,"-prev"),Object(Y.a)({},"".concat(O,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(de)),c.a.createElement("li",{title:G?"".concat(pe,"/").concat(fe):null,className:"".concat(O,"-simple-pager")},c.a.createElement("input",{type:"text",value:ie,disabled:R,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),c.a.createElement("span",{className:"".concat(O,"-slash")},"/"),fe),c.a.createElement("li",{title:G?J.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:n()("".concat(O,"-next"),Object(Y.a)({},"".concat(O,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(ne)),re);if(fe<=3+W*2){var De={locale:J,rootPrefixCls:O,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:G,itemRender:X};fe||ge.push(c.a.createElement(s,Object(ue.a)({},De,{key:"noPager",page:fe,className:"".concat(O,"-disabled")})));for(var Xe=1;Xe<=fe;Xe+=1){var xt=pe===Xe;ge.push(c.a.createElement(s,Object(ue.a)({},De,{key:Xe,page:Xe,active:xt})))}}else{var Ke=K?J.prev_3:J.prev_5,ze=K?J.next_3:J.next_5;te&&(ce=c.a.createElement("li",{title:G?Ke:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:n()("".concat(O,"-jump-prev"),Object(Y.a)({},"".concat(O,"-jump-prev-custom-icon"),!!oe))},X(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(oe,"prev page"))),Ie=c.a.createElement("li",{title:G?ze:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:n()("".concat(O,"-jump-next"),Object(Y.a)({},"".concat(O,"-jump-next-custom-icon"),!!me))},X(this.getJumpNextPage(),"jump-next",this.getItemIcon(me,"next page")))),ke=c.a.createElement(s,{locale:J,last:!0,rootPrefixCls:O,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:fe,page:fe,active:!1,showTitle:G,itemRender:X}),Fe=c.a.createElement(s,{locale:J,rootPrefixCls:O,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:G,itemRender:X});var yt=Math.max(1,pe-W),Et=Math.min(pe+W,fe);pe-1<=W&&(Et=1+W*2),fe-pe<=W&&(yt=fe-W*2);for(var ct=yt;ct<=Et;ct+=1){var lt=pe===ct;ge.push(c.a.createElement(s,{locale:J,rootPrefixCls:O,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ct,page:ct,active:lt,showTitle:G,itemRender:X}))}pe-1>=W*2&&pe!==1+2&&(ge[0]=Object(m.cloneElement)(ge[0],{className:"".concat(O,"-item-after-jump-prev")}),ge.unshift(ce)),fe-pe>=W*2&&pe!==fe-2&&(ge[ge.length-1]=Object(m.cloneElement)(ge[ge.length-1],{className:"".concat(O,"-item-before-jump-next")}),ge.push(Ie)),yt!==1&&ge.unshift(Fe),Et!==fe&&ge.push(ke)}var rt=null;N&&(rt=c.a.createElement("li",{className:"".concat(O,"-total-text")},N(H,[H===0?0:(pe-1)*he+1,pe*he>H?H:pe*he])));var qe=!this.hasPrev()||!fe,$e=!this.hasNext()||!fe;return c.a.createElement("ul",Object(ue.a)({className:n()(O,T,Object(Y.a)({},"".concat(O,"-disabled"),R)),style:D,unselectable:"unselectable",ref:this.savePaginationNode},le),rt,c.a.createElement("li",{title:G?J.prev_page:null,onClick:this.prev,tabIndex:qe?null:0,onKeyPress:this.runIfEnterPrev,className:n()("".concat(O,"-prev"),Object(Y.a)({},"".concat(O,"-disabled"),qe)),"aria-disabled":qe},this.renderPrev(de)),ge,c.a.createElement("li",{title:G?J.next_page:null,onClick:this.next,tabIndex:$e?null:0,onKeyPress:this.runIfEnterNext,className:n()("".concat(O,"-next"),Object(Y.a)({},"".concat(O,"-disabled"),$e)),"aria-disabled":$e},this.renderNext(ne)),c.a.createElement(f,{disabled:R,locale:J,rootPrefixCls:O,selectComponentClass:se,selectPrefixCls:_e,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:pe,pageSize:he,pageSizeOptions:Ae,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:F}))}}],[{key:"getDerivedStateFromProps",value:function(i,x){var O={};if("current"in i&&(O.current=i.current,i.current!==x.current&&(O.currentInputValue=O.current)),"pageSize"in i&&i.pageSize!==x.pageSize){var T=x.current,D=p(i.pageSize,x,i);T=T>D?D:T,"current"in i||(O.current=T,O.currentInputValue=T),O.pageSize=i.pageSize}return O}}]),A}(c.a.Component);S.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:a,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:a,locale:d.a,style:{},itemRender:g,totalBoundaryShowSizeChanger:50};var w=S},"6GrX":function(Ze,we,M){var ue=M("mFDi"),Y=M("Xnb7"),P=M("bYtY"),y=P.getContext,E=P.extend,_=P.retrieve2,C=P.retrieve3,m=P.trim,c={},r=0,n=5e3,e=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,s="12px sans-serif",u={};function o(k,H){u[k]=H}function f(k,H){H=H||s;var J=k+":"+H;if(c[J])return c[J];for(var U=(k+"").split(`
`),K=0,G=0,N=U.length;G<N;G++)K=Math.max(x(U[G],H).width,K);return r>n&&(r=0,c={}),r++,c[J]=K,K}function d(k,H,J,U,K,G,N,Q){return N?h(k,H,J,U,K,G,N,Q):a(k,H,J,U,K,G,Q)}function a(k,H,J,U,K,G,N){var Q=O(k,H,K,G,N),X=f(k,H);K&&(X+=K[1]+K[3]);var te=Q.outerHeight,oe=g(0,X,J),me=p(0,te,U),se=new ue(oe,me,X,te);return se.lineHeight=Q.lineHeight,se}function h(k,H,J,U,K,G,N,Q){var X=T(k,{rich:N,truncate:Q,font:H,textAlign:J,textPadding:K,textLineHeight:G}),te=X.outerWidth,oe=X.outerHeight,me=g(0,te,J),se=p(0,oe,U);return new ue(me,se,te,oe)}function g(k,H,J){return J==="right"?k-=H:J==="center"&&(k-=H/2),k}function p(k,H,J){return J==="middle"?k-=H/2:J==="bottom"&&(k-=H),k}function S(k,H,J){var U=H.textPosition,K=H.textDistance,G=J.x,N=J.y;K=K||0;var Q=J.height,X=J.width,te=Q/2,oe="left",me="top";switch(U){case"left":G-=K,N+=te,oe="right",me="middle";break;case"right":G+=K+X,N+=te,me="middle";break;case"top":G+=X/2,N-=K,oe="center",me="bottom";break;case"bottom":G+=X/2,N+=Q+K,oe="center";break;case"inside":G+=X/2,N+=te,oe="center",me="middle";break;case"insideLeft":G+=K,N+=te,me="middle";break;case"insideRight":G+=X-K,N+=te,oe="right",me="middle";break;case"insideTop":G+=X/2,N+=K,oe="center";break;case"insideBottom":G+=X/2,N+=Q-K,oe="center",me="bottom";break;case"insideTopLeft":G+=K,N+=K;break;case"insideTopRight":G+=X-K,N+=K,oe="right";break;case"insideBottomLeft":G+=K,N+=Q-K,me="bottom";break;case"insideBottomRight":G+=X-K,N+=Q-K,oe="right",me="bottom";break}return k=k||{},k.x=G,k.y=N,k.textAlign=oe,k.textVerticalAlign=me,k}function w(k,H,J){var U={textPosition:k,textDistance:J};return S({},U,H)}function B(k,H,J,U,K){if(!H)return"";var G=(k+"").split(`
`);K=b(H,J,U,K);for(var N=0,Q=G.length;N<Q;N++)G[N]=A(G[N],K);return G.join(`
`)}function b(k,H,J,U){U=E({},U),U.font=H;var J=_(J,"...");U.maxIterations=_(U.maxIterations,2);var K=U.minChar=_(U.minChar,0);U.cnCharWidth=f("\u56FD",H);var G=U.ascCharWidth=f("a",H);U.placeholder=_(U.placeholder,"");for(var N=k=Math.max(0,k-1),Q=0;Q<K&&N>=G;Q++)N-=G;var X=f(J,H);return X>N&&(J="",X=0),N=k-X,U.ellipsis=J,U.ellipsisWidth=X,U.contentWidth=N,U.containerWidth=k,U}function A(k,H){var J=H.containerWidth,U=H.font,K=H.contentWidth;if(!J)return"";var G=f(k,U);if(G<=J)return k;for(var N=0;;N++){if(G<=K||N>=H.maxIterations){k+=H.ellipsis;break}var Q=N===0?l(k,K,H.ascCharWidth,H.cnCharWidth):G>0?Math.floor(k.length*K/G):0;k=k.substr(0,Q),G=f(k,U)}return k===""&&(k=H.placeholder),k}function l(k,H,J,U){for(var K=0,G=0,N=k.length;G<N&&K<H;G++){var Q=k.charCodeAt(G);K+=0<=Q&&Q<=127?J:U}return G}function i(k){return f("\u56FD",k)}function x(k,H){return u.measureText(k,H)}u.measureText=function(k,H){var J=y();return J.font=H||s,J.measureText(k)};function O(k,H,J,U,K){k!=null&&(k+="");var G=_(U,i(H)),N=k?k.split(`
`):[],Q=N.length*G,X=Q,te=!0;if(J&&(X+=J[0]+J[2]),k&&K){te=!1;var oe=K.outerHeight,me=K.outerWidth;if(oe!=null&&X>oe)k="",N=[];else if(me!=null)for(var se=b(me-(J?J[1]+J[3]:0),H,K.ellipsis,{minChar:K.minChar,placeholder:K.placeholder}),_e=0,Ae=N.length;_e<Ae;_e++)N[_e]=A(N[_e],se)}return{lines:N,height:Q,outerHeight:X,lineHeight:G,canCacheByTextString:te}}function T(k,H){var J={lines:[],width:0,height:0};if(k!=null&&(k+=""),!k)return J;for(var U=e.lastIndex=0,K;(K=e.exec(k))!=null;){var G=K.index;G>U&&D(J,k.substring(U,G)),D(J,K[2],K[1]),U=e.lastIndex}U<k.length&&D(J,k.substring(U,k.length));var N=J.lines,Q=0,X=0,te=[],oe=H.textPadding,me=H.truncate,se=me&&me.outerWidth,_e=me&&me.outerHeight;oe&&(se!=null&&(se-=oe[1]+oe[3]),_e!=null&&(_e-=oe[0]+oe[2]));for(var Ae=0;Ae<N.length;Ae++){for(var Ee=N[Ae],pe=0,he=0,ie=0;ie<Ee.tokens.length;ie++){var fe=Ee.tokens[ie],ge=fe.styleName&&H.rich[fe.styleName]||{},ce=fe.textPadding=ge.textPadding,Ie=fe.font=ge.font||H.font,Fe=fe.textHeight=_(ge.textHeight,i(Ie));if(ce&&(Fe+=ce[0]+ce[2]),fe.height=Fe,fe.lineHeight=C(ge.textLineHeight,H.textLineHeight,Fe),fe.textAlign=ge&&ge.textAlign||H.textAlign,fe.textVerticalAlign=ge&&ge.textVerticalAlign||"middle",_e!=null&&Q+fe.lineHeight>_e)return{lines:[],width:0,height:0};fe.textWidth=f(fe.text,Ie);var ke=ge.textWidth,re=ke==null||ke==="auto";if(typeof ke=="string"&&ke.charAt(ke.length-1)==="%")fe.percentWidth=ke,te.push(fe),ke=0;else{if(re){ke=fe.textWidth;var F=ge.textBackgroundColor,W=F&&F.image;W&&(W=Y.findExistImage(W),Y.isImageReady(W)&&(ke=Math.max(ke,W.width*Fe/W.height)))}var de=ce?ce[1]+ce[3]:0;ke+=de;var ne=se!=null?se-he:null;ne!=null&&ne<ke&&(!re||ne<de?(fe.text="",fe.textWidth=ke=0):(fe.text=B(fe.text,ne-de,Ie,me.ellipsis,{minChar:me.minChar}),fe.textWidth=f(fe.text,Ie),ke=fe.textWidth+de))}he+=fe.width=ke,ge&&(pe=Math.max(pe,fe.lineHeight))}Ee.width=he,Ee.lineHeight=pe,Q+=pe,X=Math.max(X,he)}J.outerWidth=J.width=_(H.textWidth,X),J.outerHeight=J.height=_(H.textHeight,Q),oe&&(J.outerWidth+=oe[1]+oe[3],J.outerHeight+=oe[0]+oe[2]);for(var Ae=0;Ae<te.length;Ae++){var fe=te[Ae],le=fe.percentWidth;fe.width=parseInt(le,10)/100*X}return J}function D(k,H,J){for(var U=H==="",K=H.split(`
`),G=k.lines,N=0;N<K.length;N++){var Q=K[N],X={styleName:J,text:Q,isLineHolder:!Q&&!U};if(N)G.push({tokens:[X]});else{var te=(G[G.length-1]||(G[0]={tokens:[]})).tokens,oe=te.length;oe===1&&te[0].isLineHolder?te[0]=X:(Q||!oe||U)&&te.push(X)}}}function R(k){var H=(k.fontSize||k.fontFamily)&&[k.fontStyle,k.fontWeight,(k.fontSize||12)+"px",k.fontFamily||"sans-serif"].join(" ");return H&&m(H)||k.textFont||k.font}we.DEFAULT_FONT=s,we.$override=o,we.getWidth=f,we.getBoundingRect=d,we.adjustTextX=g,we.adjustTextY=p,we.calculateTextPosition=S,we.adjustTextPositionOnRect=w,we.truncateText=B,we.getLineHeight=i,we.measureText=x,we.parsePlainText=O,we.parseRichText=T,we.makeFont=R},"6RRn":function(Ze,we,M){"use strict";var ue=M("wCXF"),Y=M("n6Qo");M.d(we,"b",function(){return Y.a});var P=M("IBYe"),y=M("6eGT"),E=M("hW8S");M.d(we,"a",function(){return E.a}),we.c=ue.b},"6eGT":function(Ze,we,M){"use strict";function ue(Y){return null}we.a=ue},"6fms":function(Ze,we,M){var ue=M("SUKs"),Y=M("06Qe"),P=M("bYtY"),y=P.each;function E(c){return parseInt(c,10)}function _(c,r){Y.initVML(),this.root=c,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;",c.appendChild(n),this._vmlRoot=e,this._vmlViewport=n,this.resize();var s=r.delFromStorage,u=r.addToStorage;r.delFromStorage=function(o){s.call(r,o),o&&(o.onRemove&&o.onRemove(e))},r.addToStorage=function(o){o.onAdd&&o.onAdd(e),u.call(r,o)},this._firstPaint=!0}_.prototype={constructor:_,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},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,!0);this._paintList(c)},_paintList:function(c){for(var r=this._vmlRoot,n=0;n<c.length;n++){var e=c[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(c,r){var c=c==null?this._getWidth():c,r=r==null?this._getHeight():r;if(this._width!==c||this._height!==r){this._width=c,this._height=r;var n=this._vmlViewport.style;n.width=c+"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 c=this.root,r=c.currentStyle;return(c.clientWidth||E(r.width))-E(r.paddingLeft)-E(r.paddingRight)|0},_getHeight:function(){var c=this.root,r=c.currentStyle;return(c.clientHeight||E(r.height))-E(r.paddingTop)-E(r.paddingBottom)|0}};function C(c){return function(){ue('In IE8.0 VML mode painter not support method "'+c+'"')}}y(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(c){_.prototype[c]=C(c)});var m=_;Ze.exports=m},"7Cbv":function(Ze,we,M){"use strict";var ue=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),Y=new Uint8Array(16);function P(){if(!ue)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ue(Y)}var y=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function E(s){return typeof s=="string"&&y.test(s)}for(var _=E,C=[],m=0;m<256;++m)C.push((m+256).toString(16).substr(1));function c(s){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=(C[s[u+0]]+C[s[u+1]]+C[s[u+2]]+C[s[u+3]]+"-"+C[s[u+4]]+C[s[u+5]]+"-"+C[s[u+6]]+C[s[u+7]]+"-"+C[s[u+8]]+C[s[u+9]]+"-"+C[s[u+10]]+C[s[u+11]]+C[s[u+12]]+C[s[u+13]]+C[s[u+14]]+C[s[u+15]]).toLowerCase();if(!_(o))throw TypeError("Stringified UUID is invalid");return o}var r=c;function n(s,u,o){s=s||{};var f=s.random||(s.rng||P)();if(f[6]=f[6]&15|64,f[8]=f[8]&63|128,u){o=o||0;for(var d=0;d<16;++d)u[o+d]=f[d];return u}return r(f)}var e=we.a=n},"7SHv":function(Ze,we,M){var ue=M("LPTA"),Y=ue.devicePixelRatio,P=M("bYtY"),y=M("SUKs"),E=M("mFDi"),_=M("BPZU"),C=M("Xmg4"),m=M("mLcG"),c=M("Dagg"),r=M("ItGF"),n=1e5,e=314159,s=.01,u=.001;function o(b){return parseInt(b,10)}function f(b){return b?b.__builtin__?!0:!(typeof b.resize!="function"||typeof b.refresh!="function"):!1}var d=new E(0,0,0,0),a=new E(0,0,0,0);function h(b,A,l){return d.copy(b.getBoundingRect()),b.transform&&d.applyTransform(b.transform),a.width=A,a.height=l,!d.intersect(a)}function g(b,A){if(b===A)return!1;if(!b||!A||b.length!==A.length)return!0;for(var l=0;l<b.length;l++)if(b[l]!==A[l])return!0;return!1}function p(b,A){for(var l=0;l<b.length;l++){var i=b[l];i.setTransform(A),A.beginPath(),i.buildPath(A,i.shape),A.clip(),i.restoreTransform(A)}}function S(b,A){var l=document.createElement("div");return l.style.cssText=["position:relative","width:"+b+"px","height:"+A+"px","padding:0","margin:0","border-width:0"].join(";")+";",l}var w=function(b,A,l){this.type="canvas";var i=!b.nodeName||b.nodeName.toUpperCase()==="CANVAS";this._opts=l=P.extend({},l||{}),this.dpr=l.devicePixelRatio||Y,this._singleCanvas=i,this.root=b;var x=b.style;x&&(x["-webkit-tap-highlight-color"]="transparent",x["-webkit-user-select"]=x["user-select"]=x["-webkit-touch-callout"]="none",b.innerHTML=""),this.storage=A;var O=this._zlevelList=[],T=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,i){var R=b.width,k=b.height;l.width!=null&&(R=l.width),l.height!=null&&(k=l.height),this.dpr=l.devicePixelRatio||1,b.width=R*this.dpr,b.height=k*this.dpr,this._width=R,this._height=k;var H=new C(b,this,this.dpr);H.__builtin__=!0,H.initContext(),T[e]=H,H.zlevel=e,O.push(e),this._domRoot=b}else{this._width=this._getSize(0),this._height=this._getSize(1);var D=this._domRoot=S(this._width,this._height);b.appendChild(D)}this._hoverlayer=null,this._hoverElements=[]};w.prototype={constructor:w,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var b=this.getViewportRoot();if(b)return{offsetLeft:b.offsetLeft||0,offsetTop:b.offsetTop||0}},refresh:function(b){var A=this.storage.getDisplayList(!0),l=this._zlevelList;this._redrawId=Math.random(),this._paintList(A,b,this._redrawId);for(var i=0;i<l.length;i++){var x=l[i],O=this._layers[x];if(!O.__builtin__&&O.refresh){var T=i===0?this._backgroundColor:null;O.refresh(T)}}return this.refreshHover(),this},addHover:function(b,A){if(b.__hoverMir)return;var l=new b.constructor({style:b.style,shape:b.shape,z:b.z,z2:b.z2,silent:b.silent});return l.__from=b,b.__hoverMir=l,A&&l.setStyle(A),this._hoverElements.push(l),l},removeHover:function(b){var A=b.__hoverMir,l=this._hoverElements,i=P.indexOf(l,A);i>=0&&l.splice(i,1),b.__hoverMir=null},clearHover:function(b){for(var A=this._hoverElements,l=0;l<A.length;l++){var i=A[l].__from;i&&(i.__hoverMir=null)}A.length=0},refreshHover:function(){var b=this._hoverElements,A=b.length,l=this._hoverlayer;if(l&&l.clear(),!A)return;_(b,this.storage.displayableSortFunc),l||(l=this._hoverlayer=this.getLayer(n));var i={};l.ctx.save();for(var x=0;x<A;){var O=b[x],T=O.__from;if(!(T&&T.__zr)){b.splice(x,1),T.__hoverMir=null,A--;continue}x++,T.invisible||(O.transform=T.transform,O.invTransform=T.invTransform,O.__clipPaths=T.__clipPaths,this._doPaintEl(O,l,!0,i))}l.ctx.restore()},getHoverLayer:function(){return this.getLayer(n)},_paintList:function(b,A,l){if(this._redrawId!==l)return;A=A||!1,this._updateLayerStatus(b);var i=this._doPaintList(b,A);if(this._needsManuallyCompositing&&this._compositeManually(),!i){var x=this;m(function(){x._paintList(b,A,l)})}},_compositeManually:function(){var b=this.getLayer(e).ctx,A=this._domRoot.width,l=this._domRoot.height;b.clearRect(0,0,A,l),this.eachBuiltinLayer(function(i){i.virtual&&b.drawImage(i.dom,0,0,A,l)})},_doPaintList:function(b,A){for(var l=[],i=0;i<this._zlevelList.length;i++){var x=this._zlevelList[i],O=this._layers[x];O.__builtin__&&O!==this._hoverlayer&&(O.__dirty||A)&&l.push(O)}for(var T=!0,D=0;D<l.length;D++){var O=l[D],R=O.ctx,k={};R.save();var H=A?O.__startIndex:O.__drawIndex,J=!A&&O.incremental&&Date.now,U=J&&Date.now(),K=O.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(O.__startIndex===O.__endIndex)O.clear(!1,K);else if(H===O.__startIndex){var G=b[H];(!G.incremental||!G.notClear||A)&&O.clear(!1,K)}H===-1&&(console.error("For some unknown reason. drawIndex is -1"),H=O.__startIndex);for(var N=H;N<O.__endIndex;N++){var Q=b[N];if(this._doPaintEl(Q,O,A,k),Q.__dirty=Q.__dirtyText=!1,J){var X=Date.now()-U;if(X>15)break}}O.__drawIndex=N,O.__drawIndex<O.__endIndex&&(T=!1),k.prevElClipPaths&&R.restore(),R.restore()}return r.wxa&&P.each(this._layers,function(te){te&&te.ctx&&te.ctx.draw&&te.ctx.draw()}),T},_doPaintEl:function(b,A,l,i){var x=A.ctx,O=b.transform;if((A.__dirty||l)&&!b.invisible&&b.style.opacity!==0&&!(O&&!O[0]&&!O[3])&&!(b.culling&&h(b,this._width,this._height))){var T=b.__clipPaths,D=i.prevElClipPaths;(!D||g(T,D))&&(D&&(x.restore(),i.prevElClipPaths=null,i.prevEl=null),T&&(x.save(),p(T,x),i.prevElClipPaths=T)),b.beforeBrush&&b.beforeBrush(x),b.brush(x,i.prevEl||null),i.prevEl=b,b.afterBrush&&b.afterBrush(x)}},getLayer:function(b,A){this._singleCanvas&&!this._needsManuallyCompositing&&(b=e);var l=this._layers[b];return l||(l=new C("zr_"+b,this,this.dpr),l.zlevel=b,l.__builtin__=!0,this._layerConfig[b]?P.merge(l,this._layerConfig[b],!0):this._layerConfig[b-s]&&P.merge(l,this._layerConfig[b-s],!0),A&&(l.virtual=A),this.insertLayer(b,l),l.initContext()),l},insertLayer:function(b,A){var l=this._layers,i=this._zlevelList,x=i.length,O=null,T=-1,D=this._domRoot;if(l[b]){y("ZLevel "+b+" has been used already");return}if(!f(A)){y("Layer of zlevel "+b+" is not valid");return}if(x>0&&b>i[0]){for(T=0;T<x-1&&!(i[T]<b&&i[T+1]>b);T++);O=l[i[T]]}if(i.splice(T+1,0,b),l[b]=A,!A.virtual)if(O){var R=O.dom;R.nextSibling?D.insertBefore(A.dom,R.nextSibling):D.appendChild(A.dom)}else D.firstChild?D.insertBefore(A.dom,D.firstChild):D.appendChild(A.dom)},eachLayer:function(b,A){var l=this._zlevelList,i,x;for(x=0;x<l.length;x++)i=l[x],b.call(A,this._layers[i],i)},eachBuiltinLayer:function(b,A){var l=this._zlevelList,i,x,O;for(O=0;O<l.length;O++)x=l[O],i=this._layers[x],i.__builtin__&&b.call(A,i,x)},eachOtherLayer:function(b,A){var l=this._zlevelList,i,x,O;for(O=0;O<l.length;O++)x=l[O],i=this._layers[x],i.__builtin__||b.call(A,i,x)},getLayers:function(){return this._layers},_updateLayerStatus:function(b){this.eachBuiltinLayer(function(k,H){k.__dirty=k.__used=!1});function A(k){x&&(x.__endIndex!==k&&(x.__dirty=!0),x.__endIndex=k)}if(this._singleCanvas)for(var l=1;l<b.length;l++){var i=b[l];if(i.zlevel!==b[l-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}for(var x=null,O=0,T,l=0;l<b.length;l++){var i=b[l],D=i.zlevel,R;T!==D&&(T=D,O=0),i.incremental?(R=this.getLayer(D+u,this._needsManuallyCompositing),R.incremental=!0,O=1):R=this.getLayer(D+(O>0?s:0),this._needsManuallyCompositing),R.__builtin__||y("ZLevel "+D+" has been used by unkown layer "+R.id),R!==x&&(R.__used=!0,R.__startIndex!==l&&(R.__dirty=!0),R.__startIndex=l,R.incremental?R.__drawIndex=-1:R.__drawIndex=l,A(l),x=R),i.__dirty&&(R.__dirty=!0,R.incremental&&R.__drawIndex<0&&(R.__drawIndex=l))}A(l),this.eachBuiltinLayer(function(k,H){!k.__used&&k.getElementCount()>0&&(k.__dirty=!0,k.__startIndex=k.__endIndex=k.__drawIndex=0),k.__dirty&&k.__drawIndex<0&&(k.__drawIndex=k.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(b){b.clear()},setBackgroundColor:function(b){this._backgroundColor=b},configLayer:function(b,A){if(A){var l=this._layerConfig;l[b]?P.merge(l[b],A,!0):l[b]=A;for(var i=0;i<this._zlevelList.length;i++){var x=this._zlevelList[i];if(x===b||x===b+s){var O=this._layers[x];P.merge(O,l[b],!0)}}}},delLayer:function(b){var A=this._layers,l=this._zlevelList,i=A[b];if(!i)return;i.dom.parentNode.removeChild(i.dom),delete A[b],l.splice(P.indexOf(l,b),1)},resize:function(b,A){if(this._domRoot.style){var l=this._domRoot;l.style.display="none";var i=this._opts;if(b!=null&&(i.width=b),A!=null&&(i.height=A),b=this._getSize(0),A=this._getSize(1),l.style.display="",this._width!==b||A!==this._height){l.style.width=b+"px",l.style.height=A+"px";for(var x in this._layers)this._layers.hasOwnProperty(x)&&this._layers[x].resize(b,A);P.each(this._progressiveLayers,function(O){O.resize(b,A)}),this.refresh(!0)}this._width=b,this._height=A}else{if(b==null||A==null)return;this._width=b,this._height=A,this.getLayer(e).resize(b,A)}return this},clearLayer:function(b){var A=this._layers[b];A&&A.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(b){if(b=b||{},this._singleCanvas&&!this._compositeManually)return this._layers[e].dom;var A=new C("image",this,b.pixelRatio||this.dpr);if(A.initContext(),A.clear(!1,b.backgroundColor||this._backgroundColor),b.pixelRatio<=this.dpr){this.refresh();var l=A.dom.width,i=A.dom.height,x=A.ctx;this.eachLayer(function(k){k.__builtin__?x.drawImage(k.dom,0,0,l,i):k.renderToCanvas&&(A.ctx.save(),k.renderToCanvas(A.ctx),A.ctx.restore())})}else for(var O={},T=this.storage.getDisplayList(!0),D=0;D<T.length;D++){var R=T[D];this._doPaintEl(R,A,!0,O)}return A.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(b){var A=this._opts,l=["width","height"][b],i=["clientWidth","clientHeight"][b],x=["paddingLeft","paddingTop"][b],O=["paddingRight","paddingBottom"][b];if(A[l]!=null&&A[l]!=="auto")return parseFloat(A[l]);var T=this.root,D=document.defaultView.getComputedStyle(T);return(T[i]||o(D[l])||o(T.style[l]))-(o(D[x])||0)-(o(D[O])||0)|0},pathToImage:function(b,A){A=A||this.dpr;var l=document.createElement("canvas"),i=l.getContext("2d"),x=b.getBoundingRect(),O=b.style,T=O.shadowBlur*A,D=O.shadowOffsetX*A,R=O.shadowOffsetY*A,k=O.hasStroke()?O.lineWidth:0,H=Math.max(k/2,-D+T),J=Math.max(k/2,D+T),U=Math.max(k/2,-R+T),K=Math.max(k/2,R+T),G=x.width+H+J,N=x.height+U+K;l.width=G*A,l.height=N*A,i.scale(A,A),i.clearRect(0,0,G,N),i.dpr=A;var Q={position:b.position,rotation:b.rotation,scale:b.scale};b.position=[H-x.x,U-x.y],b.rotation=0,b.scale=[1,1],b.updateTransform(),b&&b.brush(i);var X=c,te=new X({style:{x:0,y:0,image:l}});return Q.position!=null&&(te.position=b.position=Q.position),Q.rotation!=null&&(te.rotation=b.rotation=Q.rotation),Q.scale!=null&&(te.scale=b.scale=Q.scale),te}};var B=w;Ze.exports=B},"7ZXX":function(Ze,we,M){Ze.exports=M.p+"static/err.6e7c5817.png"},"7ahc":function(Ze,we,M){"use strict";M.d(we,"a",function(){return p});var ue=M("k1fw"),Y=M("0Owb"),P=M("+L6B"),y=M("2/Rp"),E=M("y8nQ"),_=M("Vl3Y"),C=M("tJVT"),m=M("OaEy"),c=M("2fM7"),r=M("q1tI"),n=M.n(r),e=M("VrN/"),s=M.n(e),u=M("p77/"),o=M.n(u),f=M("c5Ni"),d=M.n(f),a=c.a.Option,h={labelCol:{span:4},wrapperCol:{span:20}},g={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"]};we.b=function(S){var w=S.callback,B=S.onCancel,b=Object(r.useState)("python"),A=Object(C.a)(b,2),l=A[0],i=A[1];function x(T){i(g[T][1])}function O(T){w(T)}return n.a.createElement(_.a,Object(Y.a)({},h,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:O}),n.a.createElement(_.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},n.a.createElement(c.a,{onChange:x},Object.keys(g).map(function(T){return n.a.createElement(a,{key:T,value:T},g[T][0])}))),n.a.createElement(_.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},n.a.createElement(p,{mode:l})),n.a.createElement("div",{className:"flex-container flex-end"},n.a.createElement(y.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),n.a.createElement(y.a,{type:"ghost",onClick:B},"\u53D6\u6D88")))};function p(S){var w=S.value,B=S.onChange,b=S.mode,A=S.options,l=A===void 0?{}:A,i=Object(r.useRef)(),x=Object(r.useState)(),O=Object(C.a)(x,2),T=O[0],D=O[1];return Object(r.useEffect)(function(){if(T){function R(k){var H=k.getValue();B&&B(H)}return T.on("change",R),function(){T.off("change",R)}}},[T,B]),Object(r.useEffect)(function(){T&&T.setOption("mode",b)},[T,b]),Object(r.useEffect)(function(){T&&((w!==T.getValue()||w==="")&&setTimeout(function(){T.setValue(w||" ")},300))},[T,w]),Object(r.useEffect)(function(){if(i.current&&!T){var R=s.a.fromTextArea(i.current,Object(ue.a)({mode:b,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},l));D(R)}},[i.current,T]),n.a.createElement("div",{className:"my-codemirror-container"},n.a.createElement("textarea",{ref:i}))}},"7ixt":function(Ze,we,M){"use strict";M.d(we,"a",function(){return P});var ue={adjustX:1,adjustY:1},Y=[0,0],P={left:{points:["cr","cl"],overflow:ue,offset:[-4,0],targetOffset:Y},right:{points:["cl","cr"],overflow:ue,offset:[4,0],targetOffset:Y},top:{points:["bc","tc"],overflow:ue,offset:[0,-4],targetOffset:Y},bottom:{points:["tc","bc"],overflow:ue,offset:[0,4],targetOffset:Y},topLeft:{points:["bl","tl"],overflow:ue,offset:[0,-4],targetOffset:Y},leftTop:{points:["tr","tl"],overflow:ue,offset:[-4,0],targetOffset:Y},topRight:{points:["br","tr"],overflow:ue,offset:[0,-4],targetOffset:Y},rightTop:{points:["tl","tr"],overflow:ue,offset:[4,0],targetOffset:Y},bottomRight:{points:["tr","br"],overflow:ue,offset:[0,4],targetOffset:Y},rightBottom:{points:["bl","br"],overflow:ue,offset:[4,0],targetOffset:Y},bottomLeft:{points:["tl","bl"],overflow:ue,offset:[0,4],targetOffset:Y},leftBottom:{points:["br","bl"],overflow:ue,offset:[-4,0],targetOffset:Y}},y=P},"7oTu":function(Ze,we,M){var ue=M("IMiH"),Y=M("QBsz"),P=Y.applyTransform,y=ue.CMD,E=[[],[],[]],_=Math.sqrt,C=Math.atan2;function m(c,r){var n=c.data,e,s,u,o,f,d,a=y.M,h=y.C,g=y.L,p=y.R,S=y.A,w=y.Q;for(u=0,o=0;u<n.length;){e=n[u++],o=u,s=0;switch(e){case a:s=1;break;case g:s=1;break;case h:s=3;break;case w:s=2;break;case S:var B=r[4],b=r[5],A=_(r[0]*r[0]+r[1]*r[1]),l=_(r[2]*r[2]+r[3]*r[3]),i=C(-r[1]/l,r[0]/A);n[u]*=A,n[u++]+=B,n[u]*=l,n[u++]+=b,n[u++]*=A,n[u++]*=l,n[u++]+=i,n[u++]+=i,u+=2,o=u;break;case p:d[0]=n[u++],d[1]=n[u++],P(d,d,r),n[o++]=d[0],n[o++]=d[1],d[0]+=n[u++],d[1]+=n[u++],P(d,d,r),n[o++]=d[0],n[o++]=d[1]}for(f=0;f<s;f++){var d=E[f];d[0]=n[u++],d[1]=n[u++],P(d,d,r),n[o++]=d[0],n[o++]=d[1]}}}Ze.exports=m},"7v3h":function(Ze,we,M){Ze.exports=M.p+"static/empty2.dd73f390.png"},"8/bI":function(Ze,we,M){Ze.exports=M.p+"static/empty.8918e228.png"},"815F":function(Ze,we,M){"use strict";M.d(we,"e",function(){return C}),M.d(we,"c",function(){return c}),M.d(we,"d",function(){return r}),M.d(we,"a",function(){return e}),M.d(we,"f",function(){return s}),M.d(we,"b",function(){return u});var ue=M("KQm4"),Y=M("VTBJ"),P=M("Ff2n"),y=M("Zm9Q"),E=M("Kwbf"),_=M("OZM5");function C(o,f){return o!=null?o:f}function m(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=new Map;function d(a){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(a||[]).forEach(function(g){var p=g.key,S=g.children;Object(E.a)(p!=null,"Tree node must have a certain key: [".concat(h).concat(p,"]"));var w=String(p);Object(E.a)(!f.has(w)||p===null||p===void 0,"Same 'key' exist in the Tree: ".concat(w)),f.set(w,!0),d(S,"".concat(h).concat(w," > "))})}d(o)}function c(o){function f(d){var a=Object(y.a)(d);return a.map(function(h){if(!Object(_.i)(h))return Object(E.a)(!h,"Tree/TreeNode can only accept TreeNode as children."),null;var g=h.key,p=h.props,S=p.children,w=Object(P.a)(p,["children"]),B=Object(Y.a)({key:g},w),b=f(S);return b.length&&(B.children=b),B}).filter(function(h){return h})}return f(o)}function r(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],d=new Set(f===!0?[]:f),a=[];function h(g){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return g.map(function(S,w){var B=Object(_.h)(p?p.pos:"0",w),b=C(S.key,B),A=Object(Y.a)(Object(Y.a)({},S),{},{parent:p,pos:B,children:null,data:S,isStart:[].concat(Object(ue.a)(p?p.isStart:[]),[w===0]),isEnd:[].concat(Object(ue.a)(p?p.isEnd:[]),[w===g.length-1])});return a.push(A),f===!0||d.has(b)?A.children=h(S.children||[],A):A.children=[],A})}return h(o),a}function n(o,f,d){var a;d?typeof d=="string"?a=function(p){return p[d]}:typeof d=="function"&&(a=function(p){return d(p)}):a=function(p,S){return C(p.key,S)};function h(g,p,S){var w=g?g.children:o,B=g?Object(_.h)(S.pos,p):"0";if(g){var b=a(g,B),A={node:g,index:p,pos:B,key:b,parentPos:S.node?S.pos:null,level:S.level+1};f(A)}w&&w.forEach(function(l,i){h(l,i,{node:g,pos:B,level:S?S.level+1:-1})})}h(null)}function e(o){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=f.initWrapper,a=f.processEntity,h=f.onProcessFinished,g=arguments.length>2?arguments[2]:void 0,p={},S={},w={posEntities:p,keyEntities:S};return d&&(w=d(w)||w),n(o,function(B){var b=B.node,A=B.index,l=B.pos,i=B.key,x=B.parentPos,O=B.level,T={node:b,index:A,key:i,pos:l,level:O},D=C(i,l);p[l]=T,S[D]=T,T.parent=p[x],T.parent&&(T.parent.children=T.parent.children||[],T.parent.children.push(T)),a&&a(T,w)},g),h&&h(w),w}function s(o,f){var d=f.expandedKeys,a=f.selectedKeys,h=f.loadedKeys,g=f.loadingKeys,p=f.checkedKeys,S=f.halfCheckedKeys,w=f.dragOverNodeKey,B=f.dropPosition,b=f.keyEntities,A=b[o],l={eventKey:o,expanded:d.indexOf(o)!==-1,selected:a.indexOf(o)!==-1,loaded:h.indexOf(o)!==-1,loading:g.indexOf(o)!==-1,checked:p.indexOf(o)!==-1,halfChecked:S.indexOf(o)!==-1,pos:String(A?A.pos:""),dragOver:w===o&&B===0,dragOverGapTop:w===o&&B===-1,dragOverGapBottom:w===o&&B===1};return l}function u(o){var f=o.data,d=o.expanded,a=o.selected,h=o.checked,g=o.loaded,p=o.loading,S=o.halfChecked,w=o.dragOver,B=o.dragOverGapTop,b=o.dragOverGapBottom,A=o.pos,l=o.active,i=Object(Y.a)(Object(Y.a)({},f),{},{expanded:d,selected:a,checked:h,loaded:g,loading:p,halfChecked:S,dragOver:w,dragOverGapTop:B,dragOverGapBottom:b,pos:A,active:l});return"props"in i||Object.defineProperty(i,"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`."),o}}),i}},"8Bcu":function(Ze,we,M){Ze.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(Ze,we,M){(function(ue){ue(M("VrN/"))})(function(ue){"use strict";ue.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 Y=0;Y<ue.modeInfo.length;Y++){var P=ue.modeInfo[Y];P.mimes&&(P.mime=P.mimes[0])}ue.findModeByMIME=function(y){y=y.toLowerCase();for(var E=0;E<ue.modeInfo.length;E++){var _=ue.modeInfo[E];if(_.mime==y)return _;if(_.mimes){for(var C=0;C<_.mimes.length;C++)if(_.mimes[C]==y)return _}}if(/\+xml$/.test(y))return ue.findModeByMIME("application/xml");if(/\+json$/.test(y))return ue.findModeByMIME("application/json")},ue.findModeByExtension=function(y){y=y.toLowerCase();for(var E=0;E<ue.modeInfo.length;E++){var _=ue.modeInfo[E];if(_.ext){for(var C=0;C<_.ext.length;C++)if(_.ext[C]==y)return _}}},ue.findModeByFileName=function(y){for(var E=0;E<ue.modeInfo.length;E++){var _=ue.modeInfo[E];if(_.file&&_.file.test(y))return _}var C=y.lastIndexOf("."),m=C>-1&&y.substring(C+1,y.length);if(m)return ue.findModeByExtension(m)},ue.findModeByName=function(y){y=y.toLowerCase();for(var E=0;E<ue.modeInfo.length;E++){var _=ue.modeInfo[E];if(_.name.toLowerCase()==y)return _;if(_.alias){for(var C=0;C<_.alias.length;C++)if(_.alias[C].toLowerCase()==y)return _}}}})},"8XDt":function(Ze,we,M){M("qH13");var ue=M("aX58"),Y=ue.registerPainter,P=M("6fms");Y("vml",P)},"8hTe":function(Ze,we,M){Ze.exports={button:"button___1wy9m"}},"8mKB":function(Ze,we,M){"use strict";var ue=M("rePB"),Y=M("1OyB"),P=M("vuIU"),y=M("Ji7U"),E=M("md7G"),_=M("foSv"),C=M("q1tI"),m=M.n(C),c=M("m+aA"),r=M("TSYQ"),n=M.n(r),e=M("4IlW");function s(l){var i=l.pageXOffset,x="scrollLeft";if(typeof i!="number"){var O=l.document;i=O.documentElement[x],typeof i!="number"&&(i=O.body[x])}return i}function u(l){var i,x,O=l.ownerDocument,T=O.body,D=O&&O.documentElement,R=l.getBoundingClientRect();return i=R.left,x=R.top,i-=D.clientLeft||T.clientLeft||0,x-=D.clientTop||T.clientTop||0,{left:i,top:x}}function o(l){var i=u(l),x=l.ownerDocument,O=x.defaultView||x.parentWindow;return i.left+=s(O),i.left}function f(l){var i=d();return function(){var O=Object(_.a)(l),T;if(i){var D=Object(_.a)(this).constructor;T=Reflect.construct(O,arguments,D)}else T=O.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(l){return!1}}var a=function(l){Object(y.a)(x,l);var i=f(x);function x(){var O;return Object(Y.a)(this,x),O=i.apply(this,arguments),O.onHover=function(T){var D=O.props,R=D.onHover,k=D.index;R(T,k)},O.onClick=function(T){var D=O.props,R=D.onClick,k=D.index;R(T,k)},O.onKeyDown=function(T){var D=O.props,R=D.onClick,k=D.index;T.keyCode===13&&R(T,k)},O}return Object(P.a)(x,[{key:"getClassName",value:function(){var T=this.props,D=T.prefixCls,R=T.index,k=T.value,H=T.allowHalf,J=T.focused,U=R+1,K=D;return k===0&&R===0&&J?K+=" ".concat(D,"-focused"):H&&k+.5>=U&&k<U?(K+=" ".concat(D,"-half ").concat(D,"-active"),J&&(K+=" ".concat(D,"-focused"))):(K+=U<=k?" ".concat(D,"-full"):" ".concat(D,"-zero"),U===k&&J&&(K+=" ".concat(D,"-focused"))),K}},{key:"render",value:function(){var T=this.onHover,D=this.onClick,R=this.onKeyDown,k=this.props,H=k.disabled,J=k.prefixCls,U=k.character,K=k.characterRender,G=k.index,N=k.count,Q=k.value,X=typeof U=="function"?U(this.props):U,te=m.a.createElement("li",{className:this.getClassName()},m.a.createElement("div",{onClick:H?null:D,onKeyDown:H?null:R,onMouseMove:H?null:T,role:"radio","aria-checked":Q>G?"true":"false","aria-posinset":G+1,"aria-setsize":N,tabIndex:H?-1:0},m.a.createElement("div",{className:"".concat(J,"-first")},X),m.a.createElement("div",{className:"".concat(J,"-second")},X)));return K&&(te=K(te,this.props)),te}}]),x}(m.a.Component);function h(l,i){var x=Object.keys(l);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(l);i&&(O=O.filter(function(T){return Object.getOwnPropertyDescriptor(l,T).enumerable})),x.push.apply(x,O)}return x}function g(l){for(var i=1;i<arguments.length;i++){var x=arguments[i]!=null?arguments[i]:{};i%2?h(Object(x),!0).forEach(function(O){Object(ue.a)(l,O,x[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(x)):h(Object(x)).forEach(function(O){Object.defineProperty(l,O,Object.getOwnPropertyDescriptor(x,O))})}return l}function p(l){var i=S();return function(){var O=Object(_.a)(l),T;if(i){var D=Object(_.a)(this).constructor;T=Reflect.construct(O,arguments,D)}else T=O.apply(this,arguments);return Object(E.a)(this,T)}}function S(){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(l){return!1}}function w(){}var B=function(l){Object(y.a)(x,l);var i=p(x);function x(O){var T;Object(Y.a)(this,x),T=i.call(this,O),T.onHover=function(R,k){var H=T.props.onHoverChange,J=T.getStarValue(k,R.pageX),U=T.state.cleanedValue;J!==U&&T.setState({hoverValue:J,cleanedValue:null}),H(J)},T.onMouseLeave=function(){var R=T.props.onHoverChange;T.setState({hoverValue:void 0,cleanedValue:null}),R(void 0)},T.onClick=function(R,k){var H=T.props.allowClear,J=T.state.value,U=T.getStarValue(k,R.pageX),K=!1;H&&(K=U===J),T.onMouseLeave(),T.changeValue(K?0:U),T.setState({cleanedValue:K?U: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 k=R.keyCode,H=T.props,J=H.count,U=H.allowHalf,K=H.onKeyDown,G=H.direction,N=G==="rtl",Q=T.state.value;k===e.a.RIGHT&&Q<J&&!N?(U?Q+=.5:Q+=1,T.changeValue(Q),R.preventDefault()):k===e.a.LEFT&&Q>0&&!N||k===e.a.RIGHT&&Q>0&&N?(U?Q-=.5:Q-=1,T.changeValue(Q),R.preventDefault()):k===e.a.LEFT&&Q<J&&N&&(U?Q+=.5:Q+=1,T.changeValue(Q),R.preventDefault()),K&&K(R)},T.saveRef=function(R){return function(k){T.stars[R]=k}},T.saveRate=function(R){T.rate=R};var D=O.value;return D===void 0&&(D=O.defaultValue),T.stars={},T.state={value:D,focused:!1,cleanedValue:null},T}return Object(P.a)(x,[{key:"componentDidMount",value:function(){var T=this.props,D=T.autoFocus,R=T.disabled;D&&!R&&this.focus()}},{key:"getStarDOM",value:function(T){return Object(c.a)(this.stars[T])}},{key:"getStarValue",value:function(T,D){var R=this.props,k=R.allowHalf,H=R.direction,J=H==="rtl",U=T+1;if(k){var K=this.getStarDOM(T),G=o(K),N=K.clientWidth;(J&&D-G>N/2||!J&&D-G<N/2)&&(U-=.5)}return U}},{key:"focus",value:function(){var T=this.props.disabled;T||this.rate.focus()}},{key:"blur",value:function(){var T=this.props.disabled;T||this.rate.blur()}},{key:"changeValue",value:function(T){var D=this.props.onChange;"value"in this.props||this.setState({value:T}),D(T)}},{key:"render",value:function(){for(var T=this.props,D=T.count,R=T.allowHalf,k=T.style,H=T.prefixCls,J=T.disabled,U=T.className,K=T.character,G=T.characterRender,N=T.tabIndex,Q=T.direction,X=this.state,te=X.value,oe=X.hoverValue,me=X.focused,se=[],_e=J?"".concat(H,"-disabled"):"",Ae=0;Ae<D;Ae+=1)se.push(m.a.createElement(a,{ref:this.saveRef(Ae),index:Ae,count:D,disabled:J,prefixCls:"".concat(H,"-star"),allowHalf:R,value:oe===void 0?te:oe,onClick:this.onClick,onHover:this.onHover,key:Ae,character:K,characterRender:G,focused:me}));var Ee=n()(H,_e,U,Object(ue.a)({},"".concat(H,"-rtl"),Q==="rtl"));return m.a.createElement("ul",{className:Ee,style:k,onMouseLeave:J?null:this.onMouseLeave,tabIndex:J?-1:N,onFocus:J?null:this.onFocus,onBlur:J?null:this.onBlur,onKeyDown:J?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},se)}}],[{key:"getDerivedStateFromProps",value:function(T,D){return"value"in T&&T.value!==void 0?g(g({},D),{},{value:T.value}):D}}]),x}(m.a.Component);B.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:w,character:"\u2605",onHoverChange:w,tabIndex:0,direction:"ltr"};var b=B,A=we.a=b},"9Bee":function(Ze,we,M){"use strict";var ue=M("DYRE"),Y=M("zeV3"),P=M("+L6B"),y=M("2/Rp"),E=M("k1fw"),_=M("9og8"),C=M("tJVT"),m=M("WmNS"),c=M.n(m),r=M("q1tI"),n=M.n(r),e=M("vg9a"),s=M("DlQD"),u=M.n(s),o=M("rUJ1");function f(ve,z){var Z=ve.match(/^(\s+)(?:```)/);if(Z===null)return z;var ye=Z[1];return z.split(`
`).map(function(Ce){var be=Ce.match(/^\s+/);if(be===null)return Ce;var ht=Object(C.a)(be,1),Nt=ht[0];return Nt.length>=ye.length?Ce.slice(ye.length):Ce}).join(`
`)}var d=[],a=["<ul>"],h=new u.a.Renderer,g=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function p(){d.length=0,a=["<ul>"]}var S={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function w(ve,z,Z,ye){if(z>=ve.length||ve[z].level<=Z)return z;var Ce=ve[z];ye.push("<li><a href='#"+Ce.anchor+"'>"+Ce.text+"</a>"),z++;var be=[];return z=w(ve,z,Ce.level,be),be.length>0&&(ye.push("<ul>"),be.forEach(function(ht){ye.push(ht)}),ye.push("</ul>")),ye.push("</li>"),z=w(ve,z,Z,ye),z}function B(){return w(d,0,0,a),a.push("</ul>"),a.join("")}var b={heading:function(z){var Z=g.exec(z);if(Z)return{type:"heading",raw:Z[0],depth:Z[1].length,text:Z[2]}},fences:function(z){var Z=this.rules.block.fences.exec(z);if(Z){var ye=Z[0],Ce=f(ye,Z[3]||""),be=Z[2]?Z[2].trim():Z[2];if(["latex","katex","math"].indexOf(be)>=0){var ht=i(),Nt=Ce;Ce=ht,x[ht]={type:"block",expression:Nt}}return{type:"code",raw:ye,lang:be,text:Ce}}}},A=/(?:\${2})([^\n`]+?)(?:\${2})/gi,l=0,i=function(){return"__special_katext_id_".concat(l++,"__")},x={};function O(){return x}function T(){l=0,x={}}function D(ve){return ve=ve.replace(A,function(z,Z){var ye=i();return x[ye]={type:"inline",expression:Z},ye}),ve}var R=h.listitem;h.listitem=function(ve){return R(D(ve))};var k=h.paragraph;h.paragraph=function(ve){return k(D(ve))};var H=h.tablecell;h.tablecell=function(ve,z){return H(D(ve),z)},h.code=function(ve,z,Z){var ye=(z||"").match(/\S*/)[0];return ye?["latex","katex","math"].indexOf(ye)>=0?"<p class='editormd-tex'>".concat(ve,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(z,'">').concat(Z?ve:Object(o.escape)(ve,!0),`</code></pre>
`):'<pre class="prettyprint linenums"><code>'+(Z?ve:Object(o.escape)(ve,!0))+"</code></pre>"},h.heading=function(ve,z,Z){var ye=this.options.headerPrefix+Z.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return d.push({anchor:ye,level:z,text:ve}),"<h"+z+' id="'+ye+'">'+ve+"</h"+z+">"},u.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),u.a.use({tokenizer:b,renderer:h});var J=u.a,U=M("SJMd"),K=M("ulZh"),G=M.n(K),N=M("m3rI"),Q=M("Oy/b"),X=M("p5ED"),te=M("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,z){return(oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Z,ye){Z.__proto__=ye}||function(Z,ye){for(var Ce in ye)Object.prototype.hasOwnProperty.call(ye,Ce)&&(Z[Ce]=ye[Ce])})(ve,z)};function me(ve,z){function Z(){this.constructor=ve}oe(ve,z),ve.prototype=z===null?Object.create(z):(Z.prototype=z.prototype,new Z)}function se(ve,z,Z,ye){return new(Z||(Z=Promise))(function(Ce,be){function ht(pn){try{sn(ye.next(pn))}catch(zt){be(zt)}}function Nt(pn){try{sn(ye.throw(pn))}catch(zt){be(zt)}}function sn(pn){var zt;pn.done?Ce(pn.value):(zt=pn.value,zt instanceof Z?zt:new Z(function(qn){qn(zt)})).then(ht,Nt)}sn((ye=ye.apply(ve,z||[])).next())})}function _e(ve,z){var Z,ye,Ce,be,ht={label:0,sent:function(){if(1&Ce[0])throw Ce[1];return Ce[1]},trys:[],ops:[]};return be={next:Nt(0),throw:Nt(1),return:Nt(2)},typeof Symbol=="function"&&(be[Symbol.iterator]=function(){return this}),be;function Nt(sn){return function(pn){return function(zt){if(Z)throw new TypeError("Generator is already executing.");for(;ht;)try{if(Z=1,ye&&(Ce=2&zt[0]?ye.return:zt[0]?ye.throw||((Ce=ye.return)&&Ce.call(ye),0):ye.next)&&!(Ce=Ce.call(ye,zt[1])).done)return Ce;switch(ye=0,Ce&&(zt=[2&zt[0],Ce.value]),zt[0]){case 0:case 1:Ce=zt;break;case 4:return ht.label++,{value:zt[1],done:!1};case 5:ht.label++,ye=zt[1],zt=[0];continue;case 7:zt=ht.ops.pop(),ht.trys.pop();continue;default:if(!(Ce=ht.trys,(Ce=Ce.length>0&&Ce[Ce.length-1])||zt[0]!==6&&zt[0]!==2)){ht=0;continue}if(zt[0]===3&&(!Ce||zt[1]>Ce[0]&&zt[1]<Ce[3])){ht.label=zt[1];break}if(zt[0]===6&&ht.label<Ce[1]){ht.label=Ce[1],Ce=zt;break}if(Ce&&ht.label<Ce[2]){ht.label=Ce[2],ht.ops.push(zt);break}Ce[2]&&ht.ops.pop(),ht.trys.pop();continue}zt=z.call(ve,ht)}catch(qn){zt=[6,qn],ye=0}finally{Z=Ce=0}if(5&zt[0])throw zt[1];return{value:zt[0]?zt[1]:void 0,done:!0}}([sn,pn])}}}function Ae(){for(var ve=0,z=0,Z=arguments.length;z<Z;z++)ve+=arguments[z].length;var ye=Array(ve),Ce=0;for(z=0;z<Z;z++)for(var be=arguments[z],ht=0,Nt=be.length;ht<Nt;ht++,Ce++)ye[Ce]=be[ht];return ye}var Ee=function(){function ve(){}return ve.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ve.setAttributes=function(z,Z){for(var ye=0,Ce=Z;ye<Ce.length;ye++){var be=Ce[ye],ht=be[0],Nt=be[1];z.setAttribute(ht,Nt)}},ve.createRect=function(z,Z,ye){var Ce=document.createElementNS("http://www.w3.org/2000/svg","rect");return Ce.setAttribute("width",z.toString()),Ce.setAttribute("height",Z.toString()),ye&&ve.setAttributes(Ce,ye),Ce},ve.createLine=function(z,Z,ye,Ce,be){var ht=document.createElementNS("http://www.w3.org/2000/svg","line");return ht.setAttribute("x1",z.toString()),ht.setAttribute("y1",Z.toString()),ht.setAttribute("x2",ye.toString()),ht.setAttribute("y2",Ce.toString()),be&&ve.setAttributes(ht,be),ht},ve.createPolygon=function(z,Z){var ye=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ye.setAttribute("points",z),Z&&ve.setAttributes(ye,Z),ye},ve.createCircle=function(z,Z){var ye=document.createElementNS("http://www.w3.org/2000/svg","circle");return ye.setAttribute("cx",(z/2).toString()),ye.setAttribute("cy",(z/2).toString()),ye.setAttribute("r",z.toString()),Z&&ve.setAttributes(ye,Z),ye},ve.createEllipse=function(z,Z,ye){var Ce=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Ce.setAttribute("cx",(z/2).toString()),Ce.setAttribute("cy",(Z/2).toString()),Ce.setAttribute("rx",(z/2).toString()),Ce.setAttribute("ry",(Z/2).toString()),ye&&ve.setAttributes(Ce,ye),Ce},ve.createGroup=function(z){var Z=document.createElementNS("http://www.w3.org/2000/svg","g");return z&&ve.setAttributes(Z,z),Z},ve.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ve.createMarker=function(z,Z,ye,Ce,be,ht,Nt){var sn=document.createElementNS("http://www.w3.org/2000/svg","marker");return ve.setAttributes(sn,[["id",z],["orient",Z],["markerWidth",ye.toString()],["markerHeight",Ce.toString()],["refX",be.toString()],["refY",ht.toString()]]),sn.appendChild(Nt),sn},ve.createText=function(z){var Z=document.createElementNS("http://www.w3.org/2000/svg","text");return Z.setAttribute("x","0"),Z.setAttribute("y","0"),z&&ve.setAttributes(Z,z),Z},ve.createTSpan=function(z,Z){var ye=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ye.textContent=z,Z&&ve.setAttributes(ye,Z),ye},ve.createImage=function(z){var Z=document.createElementNS("http://www.w3.org/2000/svg","image");return z&&ve.setAttributes(Z,z),Z},ve.createPoint=function(z,Z){var ye=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ye.x=z,ye.y=Z,ye},ve.createPath=function(z,Z){var ye=document.createElementNS("http://www.w3.org/2000/svg","path");return ye.setAttribute("d",z),Z&&ve.setAttributes(ye,Z),ye},ve}(),pe=function(){function ve(){}return ve.addKey=function(z){ve.key=z},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(z,Z,ye){var Ce=this;return new Promise(function(be){var ht=ye!==void 0?ye:document.createElement("canvas");z===null&&(Ce.markersOnly=!0,Ce.naturalSize=!1);var Nt=document.createElementNS("http://www.w3.org/2000/svg","svg");Nt.setAttribute("xmlns","http://www.w3.org/2000/svg"),Nt.setAttribute("width",Z.width.baseVal.valueAsString),Nt.setAttribute("height",Z.height.baseVal.valueAsString),Nt.setAttribute("viewBox","0 0 "+Z.viewBox.baseVal.width.toString()+" "+Z.viewBox.baseVal.height.toString()),Nt.innerHTML=Z.innerHTML,Ce.naturalSize===!0?(Nt.width.baseVal.value=z.naturalWidth,Nt.height.baseVal.value=z.naturalHeight):Ce.width!==void 0&&Ce.height!==void 0&&(Nt.width.baseVal.value=Ce.width,Nt.height.baseVal.value=Ce.height),ht.width=Nt.width.baseVal.value,ht.height=Nt.height.baseVal.value;var sn=Nt.outerHTML,pn=ht.getContext("2d");Ce.markersOnly!==!0&&pn.drawImage(z,0,0,ht.width,ht.height);var zt=window.URL,qn=new Image(ht.width,ht.height);qn.setAttribute("crossOrigin","anonymous");var Un=new Blob([sn],{type:"image/svg+xml"}),rr=zt.createObjectURL(Un);qn.onload=function(){pn.drawImage(qn,0,0),zt.revokeObjectURL(rr);var Sr=ht.toDataURL(Ce.imageType,Ce.imageQuality);be(Sr)},qn.src=rr})},ve}(),ie=function(){},fe=function(){function ve(z){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+z+"_"}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(z){return this.styleSheet===void 0&&this.addStyleSheet(),z.name=""+this.classNamePrefix+z.localName,this.classes.push(z),this.styleSheet.sheet.insertRule("."+z.name+" {"+z.style+"}",this.styleSheet.sheet.cssRules.length),z},ve.prototype.addRule=function(z){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(z),this.styleSheet.sheet.insertRule(z.selector+" {"+z.style+"}",this.styleSheet.sheet.cssRules.length)},ve.prototype.addStyleSheet=function(){var z;this.styleSheet=document.createElement("style"),((z=this.styleSheetRoot)!==null&&z!==void 0?z:document.head).appendChild(this.styleSheet),this.addRule(new ge("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new ge("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new ge("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new ce("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new ce("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},ve.prototype.removeStyleSheet=function(){var z;this.styleSheet&&(((z=this.styleSheetRoot)!==null&&z!==void 0?z:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ve}(),ge=function(ve,z){this.selector=ve,this.style=z},ce=function(ve,z){this.localName=ve,this.style=z},Ie=function(){function ve(z,Z,ye,Ce,be){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=z,this.displayMode=Z,this.markerItems=ye,this.uiStyleSettings=Ce,this.styles=be,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(z){var Z=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=z,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var ye=document.createElement("div");ye.className=this.toolbarBlockStyleClass.name,ye.style.whiteSpace="nowrap",this.uiContainer.appendChild(ye),this.addActionButton(ye,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(ye,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(ye,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(ye,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(ye,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(ye,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(ye,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(ye,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(be){var ht=document.createElement("div");ht.className=""+Z.toolbarButtonStyleClass.name,ht.setAttribute("data-type-name",be.typeName),ht.innerHTML=be.icon,ht.addEventListener("click",function(){Z.markerToolbarButtonClicked(ht,be)}),Z.buttons.push(ht),Z.markerButtons.push(ht)}),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 Ce=document.createElement("div");Ce.className=this.toolbarBlockStyleClass.name,Ce.style.whiteSpace="nowrap",Ce.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Ce),this.addActionButton(Ce,'<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(Ce,'<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(z){this.buttonClickListeners.push(z)},ve.prototype.removeButtonClickListener=function(z){this.buttonClickListeners.indexOf(z)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(z),1)},ve.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ve.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var z=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var Z=0;Z<this.markerButtons.length;Z++)Z<z||Z===z&&this.markerButtons.length-1===z?this.markerButtonBlock.appendChild(this.markerButtons[Z]):(Z===z&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[Z]))}},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 z=this;this.buttons.forEach(function(Z){Z.className=Z.className.replace(z.uiStyleSettings.toolbarButtonStyleColorsClassName?z.uiStyleSettings.toolbarButtonStyleColorsClassName:z.toolbarButtonStyleColorsClass.name,"").trim(),Z.className=Z.className.replace(z.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?z.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:z.toolbarActiveButtonStyleColorsClass.name,"").trim(),Z.className+=" "+(z.uiStyleSettings.toolbarButtonStyleColorsClassName?z.uiStyleSettings.toolbarButtonStyleColorsClassName:z.toolbarButtonStyleColorsClass.name)})},ve.prototype.addActionButton=function(z,Z,ye){var Ce=this,be=document.createElement("div");switch(be.className=""+this.toolbarButtonStyleClass.name,be.innerHTML=Z,be.setAttribute("data-action",ye),be.addEventListener("click",function(){Ce.actionToolbarButtonClicked(be,ye)}),ye){case"select":be.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":be.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":be.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":be.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":be.style.fill=this.uiStyleSettings.closeButtonColor}z.appendChild(be),this.buttons.push(be)},ve.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ce("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 ce("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ce("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ce("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 ce("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var z=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ce("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*z)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*z)+`px;
padding: `+z+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ce("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ce("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new ge("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new ge("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},ve.prototype.markerToolbarButtonClicked=function(z,Z){this.setActiveButton(z),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ye){return ye("marker",Z)}),this.markerButtonOverflowBlock.style.display="none"},ve.prototype.actionToolbarButtonClicked=function(z,Z){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ye){return ye("action",Z)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ve.prototype.setActiveButton=function(z){this.resetButtonStyles(),z.className=z.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),z.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ve.prototype.setActiveMarkerButton=function(z){var Z=this.markerButtons.find(function(ye){return ye.getAttribute("data-type-name")===z});Z&&this.setActiveButton(Z)},ve.prototype.setCurrentMarker=function(z){var Z=this;this.currentMarker=z,this.buttons.filter(function(ye){return/delete|notes/.test(ye.getAttribute("data-action"))}).forEach(function(ye){Z.currentMarker===void 0?(ye.style.fillOpacity="0.4",ye.style.pointerEvents="none"):(ye.style.fillOpacity="1",ye.style.pointerEvents="all")})},ve}(),Fe=function(){function ve(z,Z,ye,Ce){this.panels=[],this.panelButtons=[],this.markerjsContainer=z,this.displayMode=Z,this.uiStyleSettings=ye,this.styles=Ce,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ve.prototype.addStyles=function(){var z;this.toolboxStyleClass=this.styles.addClass(new ce("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 ce("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var Z=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ce("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ce("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ce("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 ce("toolbox-panel-row_colors",`
background-color: `+((z=this.uiStyleSettings.toolboxBackgroundColor)!==null&&z!==void 0?z:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ce("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 ce("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ce("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new ge("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new ge("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},ve.prototype.show=function(z){var Z;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=z,this.uiContainer.className=this.toolboxStyleClass.name+" "+((Z=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&Z!==void 0?Z:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ve.prototype.setPanelButtons=function(z){var Z,ye,Ce=this;this.panels=z,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((Z=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&Z!==void 0?Z:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((ye=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ye!==void 0?ye:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(be){var ht;be.uiStyleSettings=Ce.uiStyleSettings;var Nt=document.createElement("div");Nt.className=Ce.toolboxButtonStyleClass.name+" "+((ht=Ce.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ht!==void 0?ht:Ce.toolboxButtonStyleColorsClass.name),Nt.innerHTML=be.icon,Nt.title=be.title,Nt.addEventListener("click",function(){Ce.panelButtonClick(be)}),Ce.panelButtons.push(Nt),Ce.buttonRow.appendChild(Nt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ve.prototype.panelButtonClick=function(z){var Z=this,ye=-1;if(z!==this.activePanel){ye=this.panels.indexOf(z),this.panelRow.innerHTML="";var Ce=z.getUi();Ce.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Ce),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=z}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){Z.displayMode==="inline"?Z.panelRow.style.display="none":Z.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(be,ht){var Nt,sn;be.className=Z.toolboxButtonStyleClass.name+" "+(ht===ye?""+((Nt=Z.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Nt!==void 0?Nt:Z.toolboxActiveButtonStyleColorsClass.name):""+((sn=Z.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&sn!==void 0?sn:Z.toolboxButtonStyleColorsClass.name))})},ve}(),ke=function(ve,z){this.title=ve,this.icon=z},re=function(ve){function z(Z,ye,Ce,be){var ht=ve.call(this,Z,be||'<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 ht.colors=[],ht.addTransparent=!1,ht.colorBoxes=[],ht.colors=ye,ht.currentColor=Ce,ht.setCurrentColor=ht.setCurrentColor.bind(ht),ht.getColorBox=ht.getColorBox.bind(ht),ht}return me(z,ve),z.prototype.getUi=function(){var Z=this,ye=document.createElement("div");return ye.style.overflow="hidden",ye.style.whiteSpace="nowrap",this.colors.forEach(function(Ce){var be=Z.getColorBox(Ce);ye.appendChild(be),Z.colorBoxes.push(be)}),ye},z.prototype.getColorBox=function(Z){var ye=this,Ce=this.uiStyleSettings.toolbarHeight/4,be=this.uiStyleSettings.toolbarHeight-Ce,ht=document.createElement("div");ht.style.display="inline-block",ht.style.boxSizing="content-box",ht.style.width=be-2+"px",ht.style.height=be-2+"px",ht.style.padding="1px",ht.style.marginRight="2px",ht.style.marginBottom="2px",ht.style.borderWidth="2px",ht.style.borderStyle="solid",ht.style.borderRadius=(be+2)/2+"px",ht.style.borderColor=Z===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ht.addEventListener("click",function(){ye.setCurrentColor(Z,ht)});var Nt=document.createElement("div");return Nt.style.display="inline-block",Nt.style.width=be-2+"px",Nt.style.height=be-2+"px",Nt.style.backgroundColor=Z,Nt.style.borderRadius=be/2+"px",Z==="transparent"&&(Nt.style.fill=this.uiStyleSettings.toolboxAccentColor,Nt.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>`),ht.appendChild(Nt),ht},z.prototype.setCurrentColor=function(Z,ye){var Ce=this;this.currentColor=Z,this.colorBoxes.forEach(function(be){be.style.borderColor=be===ye?Ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(Z)},z}(ke),F=function(){function ve(z,Z,ye){this._state="new",this._isSelected=!1,this._container=z,this._overlayContainer=Z,this.globalSettings=ye,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(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(z){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(z,Z){},ve.prototype.dblClick=function(z,Z){},ve.prototype.manipulate=function(z){},ve.prototype.pointerUp=function(z){this.stateChanged()},ve.prototype.dispose=function(){},ve.prototype.addMarkerVisualToContainer=function(z){this.container.childNodes.length>0?this.container.insertBefore(z,this.container.childNodes[0]):this.container.appendChild(z)},ve.prototype.getState=function(){return{typeName:ve.typeName,state:this.state,notes:this.notes}},ve.prototype.restoreState=function(z){this._state=z.state,this.notes=z.notes},ve.prototype.scale=function(z,Z){},ve.prototype.colorChanged=function(z){this.onColorChanged&&this.onColorChanged(z),this.stateChanged()},ve.prototype.fillColorChanged=function(z){this.onFillColorChanged&&this.onFillColorChanged(z),this.stateChanged()},ve.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var z=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),z.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(z)&&this.onStateChanged(this)}},ve.typeName="MarkerBase",ve}(),W=function(){function ve(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ve.prototype.findGripByVisual=function(z){return this.topLeft.ownsTarget(z)?this.topLeft:this.topCenter.ownsTarget(z)?this.topCenter:this.topRight.ownsTarget(z)?this.topRight:this.centerLeft.ownsTarget(z)?this.centerLeft:this.centerRight.ownsTarget(z)?this.centerRight:this.bottomLeft.ownsTarget(z)?this.bottomLeft:this.bottomCenter.ownsTarget(z)?this.bottomCenter:this.bottomRight.ownsTarget(z)?this.bottomRight:void 0},ve}(),de=function(){function ve(){this.GRIP_SIZE=10,this.visual=Ee.createGroup(),this.visual.appendChild(Ee.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ee.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ve.prototype.ownsTarget=function(z){return z===this.visual||z===this.visual.childNodes[0]||z===this.visual.childNodes[1]},ve}(),ne=function(){function ve(){}return ve.toITransformMatrix=function(z){return{a:z.a,b:z.b,c:z.c,d:z.d,e:z.e,f:z.f}},ve.toSVGMatrix=function(z,Z){return z.a=Z.a,z.b=Z.b,z.c=Z.c,z.d=Z.d,z.e=Z.e,z.f=Z.f,z},ve}(),le=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,ye,Ce)||this;return be.left=0,be.top=0,be.width=0,be.height=0,be.defaultSize={x:50,y:20},be.offsetX=0,be.offsetY=0,be.rotationAngle=0,be.CB_DISTANCE=10,be._suppressMarkerCreateEvent=!1,be.container.transform.baseVal.appendItem(Ee.createTransform()),be.setupControlBox(),be}return me(z,ve),Object.defineProperty(z.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"visual",{get:function(){return this._visual},set:function(Z){this._visual=Z;var ye=Ee.createTransform();this._visual.transform.baseVal.appendItem(ye)},enumerable:!1,configurable:!0}),z.prototype.ownsTarget=function(Z){return!!ve.prototype.ownsTarget.call(this,Z)||!!(this.controlGrips.findGripByVisual(Z)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Z))},z.prototype.pointerDown=function(Z,ye){ve.prototype.pointerDown.call(this,Z,ye),this.state==="new"&&(this.left=Z.x,this.top=Z.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Ce=this.unrotatePoint(Z);if(this.manipulationStartX=Ce.x,this.manipulationStartY=Ce.y,this.offsetX=Ce.x-this.left,this.offsetY=Ce.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ye),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ye)){this.activeGrip=this.rotatorGrip;var be=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=be.x-this.width/2,this.top=be.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ht=this.container.transform.baseVal.getItem(0);ht.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ht,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},z.prototype.pointerUp=function(Z){var ye=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",ye==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},z.prototype.moveVisual=function(Z){this.visual.style.transform="translate("+Z.x+"px, "+Z.y+"px)"},z.prototype.manipulate=function(Z){var ye=this.unrotatePoint(Z);this.state==="creating"?this.resize(Z):this.state==="move"?(this.left=this.manipulationStartLeft+(ye.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ye.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ye):this.state==="rotate"&&this.rotate(Z)},z.prototype.resize=function(Z){var ye=this.manipulationStartLeft,Ce=this.manipulationStartWidth,be=this.manipulationStartTop,ht=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ye=this.manipulationStartLeft+Z.x-this.manipulationStartX,Ce=this.manipulationStartWidth+this.manipulationStartLeft-ye;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Ce=this.manipulationStartWidth+Z.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:be=this.manipulationStartTop+Z.y-this.manipulationStartY,ht=this.manipulationStartHeight+this.manipulationStartTop-be;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ht=this.manipulationStartHeight+Z.y-this.manipulationStartY}Ce>=0?(this.left=ye,this.width=Ce):(this.left=ye+Ce,this.width=-Ce),ht>=0?(this.top=be,this.height=ht):(this.top=be+ht,this.height=-ht),this.setSize()},z.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},z.prototype.rotate=function(Z){if(Math.abs(Z.x-this.centerX)>.1){var ye=Math.sign(Z.x-this.centerX);this.rotationAngle=180*Math.atan((Z.y-this.centerY)/(Z.x-this.centerX))/Math.PI+90*ye,this.applyRotation()}},z.prototype.applyRotation=function(){var Z=this.container.transform.baseVal.getItem(0);Z.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Z,0)},z.prototype.rotatePoint=function(Z){if(this.rotationAngle===0)return Z;var ye=this.container.getCTM(),Ce=Ee.createPoint(Z.x,Z.y);return{x:(Ce=Ce.matrixTransform(ye)).x,y:Ce.y}},z.prototype.unrotatePoint=function(Z){if(this.rotationAngle===0)return Z;var ye=this.container.getCTM();ye=ye.inverse();var Ce=Ee.createPoint(Z.x,Z.y);return{x:(Ce=Ce.matrixTransform(ye)).x,y:Ce.y}},z.prototype.select=function(){ve.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},z.prototype.deselect=function(){ve.prototype.deselect.call(this),this.controlBox.style.display="none"},z.prototype.setupControlBox=function(){this.controlBox=Ee.createGroup();var Z=Ee.createTransform();Z.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(Z),this.container.appendChild(this.controlBox),this.controlRect=Ee.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=Ee.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new W,this.addControlGrips(),this.controlBox.style.display="none"},z.prototype.adjustControlBox=function(){var Z=this.controlBox.transform.baseVal.getItem(0);Z.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(Z,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},z.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},z.prototype.createGrip=function(){var Z=new de;return Z.visual.transform.baseVal.appendItem(Ee.createTransform()),this.controlBox.appendChild(Z.visual),Z},z.prototype.positionGrips=function(){var Z=this.controlGrips.topLeft.GRIP_SIZE,ye=-Z/2,Ce=ye,be=(this.width+this.CB_DISTANCE)/2-Z/2,ht=(this.height+this.CB_DISTANCE)/2-Z/2,Nt=this.height+this.CB_DISTANCE-Z/2,sn=this.width+this.CB_DISTANCE-Z/2;this.positionGrip(this.controlGrips.topLeft.visual,ye,Ce),this.positionGrip(this.controlGrips.topCenter.visual,be,Ce),this.positionGrip(this.controlGrips.topRight.visual,sn,Ce),this.positionGrip(this.controlGrips.centerLeft.visual,ye,ht),this.positionGrip(this.controlGrips.centerRight.visual,sn,ht),this.positionGrip(this.controlGrips.bottomLeft.visual,ye,Nt),this.positionGrip(this.controlGrips.bottomCenter.visual,be,Nt),this.positionGrip(this.controlGrips.bottomRight.visual,sn,Nt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,be,Ce-3*this.CB_DISTANCE)},z.prototype.positionGrip=function(Z,ye,Ce){var be=Z.transform.baseVal.getItem(0);be.setTranslate(ye,Ce),Z.transform.baseVal.replaceItem(be,0)},z.prototype.hideControlBox=function(){this.controlBox.style.display="none"},z.prototype.showControlBox=function(){this.controlBox.style.display=""},z.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ne.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ne.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ve.prototype.getState.call(this))},z.prototype.restoreState=function(Z){ve.prototype.restoreState.call(this,Z);var ye=Z;this.left=ye.left,this.top=ye.top,this.width=ye.width,this.height=ye.height,this.rotationAngle=ye.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ne.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ye.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ne.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ye.containerTransformMatrix))},z.prototype.scale=function(Z,ye){ve.prototype.scale.call(this,Z,ye);var Ce=this.rotatePoint({x:this.left,y:this.top}),be=this.unrotatePoint({x:Ce.x*Z,y:Ce.y*ye});this.left=be.x,this.top=be.y,this.width=this.width*Z,this.height=this.height*ye,this.adjustControlBox()},z}(F),De=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,ye,Ce)||this;return be.fillColor="transparent",be.strokeColor="transparent",be.strokeWidth=0,be.strokeDasharray="",be.opacity=1,be.setStrokeColor=be.setStrokeColor.bind(be),be.setFillColor=be.setFillColor.bind(be),be.setStrokeWidth=be.setStrokeWidth.bind(be),be.setStrokeDasharray=be.setStrokeDasharray.bind(be),be.createVisual=be.createVisual.bind(be),be}return me(z,ve),z.prototype.ownsTarget=function(Z){return!(!ve.prototype.ownsTarget.call(this,Z)&&Z!==this.visual)},z.prototype.createVisual=function(){this.visual=Ee.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function(Z,ye){ve.prototype.pointerDown.call(this,Z,ye),this.state==="new"&&(this.createVisual(),this.moveVisual(Z),this._state="creating")},z.prototype.manipulate=function(Z){ve.prototype.manipulate.call(this,Z)},z.prototype.resize=function(Z){ve.prototype.resize.call(this,Z),this.setSize()},z.prototype.setSize=function(){ve.prototype.setSize.call(this),Ee.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},z.prototype.pointerUp=function(Z){ve.prototype.pointerUp.call(this,Z),this.setSize()},z.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.visual&&Ee.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Z),this.stateChanged()},z.prototype.setFillColor=function(Z){this.fillColor=Z,this.visual&&Ee.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},z.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.visual&&Ee.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},z.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.visual&&Ee.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},z.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ve.prototype.getState.call(this))},z.prototype.restoreState=function(Z){var ye=Z;this.fillColor=ye.fillColor,this.strokeColor=ye.strokeColor,this.strokeWidth=ye.strokeWidth,this.strokeDasharray=ye.strokeDasharray,this.opacity=ye.opacity,this.createVisual(),ve.prototype.restoreState.call(this,Z),this.setSize()},z.prototype.scale=function(Z,ye){ve.prototype.scale.call(this,Z,ye),this.setSize()},z.title="Rectangle marker",z}(le),Xe=function(ve){function z(Z,ye,Ce,be){var ht=ve.call(this,Z,be||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return ht.widths=[],ht.widthBoxes=[],ht.widths=ye,ht.currentWidth=Ce,ht.setCurrentWidth=ht.setCurrentWidth.bind(ht),ht}return me(z,ve),z.prototype.getUi=function(){var Z=this,ye=document.createElement("div");return ye.style.display="flex",ye.style.overflow="hidden",ye.style.flexGrow="2",this.widths.forEach(function(Ce){var be=document.createElement("div");be.style.display="flex",be.style.flexGrow="2",be.style.alignItems="center",be.style.justifyContent="space-between",be.style.padding="5px",be.style.borderWidth="2px",be.style.borderStyle="solid",be.style.borderColor=Ce===Z.currentWidth?Z.uiStyleSettings.toolboxAccentColor:"transparent",be.addEventListener("click",function(){Z.setCurrentWidth(Ce,be)}),ye.appendChild(be);var ht=document.createElement("div");ht.innerText=Ce.toString(),ht.style.marginRight="5px",be.appendChild(ht);var Nt=document.createElement("div");Nt.style.minHeight="20px",Nt.style.flexGrow="2",Nt.style.display="flex",Nt.style.alignItems="center";var sn=document.createElement("hr");sn.style.minWidth="20px",sn.style.border="0px",sn.style.borderTop=Ce+"px solid "+Z.uiStyleSettings.toolboxColor,sn.style.flexGrow="2",Nt.appendChild(sn),be.appendChild(Nt),Z.widthBoxes.push(be)}),ye},z.prototype.setCurrentWidth=function(Z,ye){var Ce=this;this.currentWidth=Z,this.widthBoxes.forEach(function(be){be.style.borderColor=be===ye?Ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},z}(ke),xt=function(ve){function z(Z,ye,Ce,be){var ht=ve.call(this,Z,be||'<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 ht.styles=[],ht.styleBoxes=[],ht.styles=ye,ht.currentStyle=Ce,ht.setCurrentStyle=ht.setCurrentStyle.bind(ht),ht}return me(z,ve),z.prototype.getUi=function(){var Z=this,ye=document.createElement("div");return ye.style.display="flex",ye.style.overflow="hidden",ye.style.flexGrow="2",this.styles.forEach(function(Ce){var be=document.createElement("div");be.style.display="flex",be.style.alignItems="center",be.style.justifyContent="space-between",be.style.padding="5px",be.style.borderWidth="2px",be.style.borderStyle="solid",be.style.overflow="hidden",be.style.maxWidth=100/Z.styles.length-5+"%",be.style.borderColor=Ce===Z.currentStyle?Z.uiStyleSettings.toolboxAccentColor:"transparent",be.addEventListener("click",function(){Z.setCurrentStyle(Ce,be)}),ye.appendChild(be);var ht=document.createElement("div");ht.style.minHeight="20px",ht.style.flexGrow="2",ht.style.overflow="hidden";var Nt=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+Z.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Ce!==""?'stroke-dasharray="'+Ce+'"':"")+` />
</svg>`;ht.innerHTML=Nt,be.appendChild(ht),Z.styleBoxes.push(be)}),ye},z.prototype.setCurrentStyle=function(Z,ye){var Ce=this;this.currentStyle=Z,this.styleBoxes.forEach(function(be){be.style.borderColor=be===ye?Ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},z}(ke),Ke=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,ye,Ce)||this;return be.strokeColor=Ce.defaultColor,be.strokeWidth=Ce.defaultStrokeWidth,be.strokeDasharray=Ce.defaultStrokeDasharray,be.strokePanel=new re("Line color",Ce.defaultColorSet,Ce.defaultColor),be.strokePanel.onColorChanged=be.setStrokeColor,be.strokeWidthPanel=new Xe("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),be.strokeWidthPanel.onWidthChanged=be.setStrokeWidth,be.strokeStylePanel=new xt("Line style",Ce.defaultStrokeDasharrays,Ce.defaultStrokeDasharray),be.strokeStylePanel.onStyleChanged=be.setStrokeDasharray,be}return me(z,ve),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=ve.prototype.getState.call(this);return Z.typeName=z.typeName,Z},z.typeName="FrameMarker",z.title="Frame marker",z.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',z}(De),ze=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},yt=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,ye,Ce)||this;return be.x1=0,be.y1=0,be.x2=0,be.y2=0,be.defaultLength=50,be.manipulationStartX=0,be.manipulationStartY=0,be.manipulationStartX1=0,be.manipulationStartY1=0,be.manipulationStartX2=0,be.manipulationStartY2=0,be.setupControlBox(),be}return me(z,ve),z.prototype.ownsTarget=function(Z){return!!ve.prototype.ownsTarget.call(this,Z)||!(!this.grip1.ownsTarget(Z)&&!this.grip2.ownsTarget(Z))},z.prototype.pointerDown=function(Z,ye){ve.prototype.pointerDown.call(this,Z,ye),this.manipulationStartX=Z.x,this.manipulationStartY=Z.y,this.state==="new"&&(this.x1=Z.x,this.y1=Z.y,this.x2=Z.x,this.y2=Z.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(ye)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ye)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},z.prototype.pointerUp=function(Z){var ye=this.state;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",ye==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},z.prototype.adjustVisual=function(){},z.prototype.manipulate=function(Z){this.state==="creating"?this.resize(Z):this.state==="move"?(this.x1=this.manipulationStartX1+Z.x-this.manipulationStartX,this.y1=this.manipulationStartY1+Z.y-this.manipulationStartY,this.x2=this.manipulationStartX2+Z.x-this.manipulationStartX,this.y2=this.manipulationStartY2+Z.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(Z)},z.prototype.resize=function(Z){switch(this.activeGrip){case this.grip1:this.x1=Z.x,this.y1=Z.y;break;case this.grip2:case void 0:this.x2=Z.x,this.y2=Z.y}this.adjustVisual(),this.adjustControlBox()},z.prototype.select=function(){ve.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},z.prototype.deselect=function(){ve.prototype.deselect.call(this),this.controlBox.style.display="none"},z.prototype.setupControlBox=function(){this.controlBox=Ee.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},z.prototype.adjustControlBox=function(){this.positionGrips()},z.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},z.prototype.createGrip=function(){var Z=new de;return Z.visual.transform.baseVal.appendItem(Ee.createTransform()),this.controlBox.appendChild(Z.visual),Z},z.prototype.positionGrips=function(){var Z=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-Z/2,this.y1-Z/2),this.positionGrip(this.grip2.visual,this.x2-Z/2,this.y2-Z/2)},z.prototype.positionGrip=function(Z,ye,Ce){var be=Z.transform.baseVal.getItem(0);be.setTranslate(ye,Ce),Z.transform.baseVal.replaceItem(be,0)},z.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ve.prototype.getState.call(this))},z.prototype.restoreState=function(Z){ve.prototype.restoreState.call(this,Z);var ye=Z;this.x1=ye.x1,this.y1=ye.y1,this.x2=ye.x2,this.y2=ye.y2},z.prototype.scale=function(Z,ye){ve.prototype.scale.call(this,Z,ye),this.x1=this.x1*Z,this.y1=this.y1*ye,this.x2=this.x2*Z,this.y2=this.y2*ye,this.adjustVisual(),this.adjustControlBox()},z}(F),Et=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,ye,Ce)||this;return be.strokeColor="transparent",be.strokeWidth=0,be.strokeDasharray="",be.setStrokeColor=be.setStrokeColor.bind(be),be.setStrokeWidth=be.setStrokeWidth.bind(be),be.setStrokeDasharray=be.setStrokeDasharray.bind(be),be.strokeColor=Ce.defaultColor,be.strokeWidth=Ce.defaultStrokeWidth,be.strokeDasharray=Ce.defaultStrokeDasharray,be.strokePanel=new re("Line color",Ce.defaultColorSet,Ce.defaultColor),be.strokePanel.onColorChanged=be.setStrokeColor,be.strokeWidthPanel=new Xe("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),be.strokeWidthPanel.onWidthChanged=be.setStrokeWidth,be.strokeStylePanel=new xt("Line style",Ce.defaultStrokeDasharrays,Ce.defaultStrokeDasharray),be.strokeStylePanel.onStyleChanged=be.setStrokeDasharray,be}return me(z,ve),z.prototype.ownsTarget=function(Z){return!(!ve.prototype.ownsTarget.call(this,Z)&&Z!==this.visual&&Z!==this.selectorLine&&Z!==this.visibleLine)},z.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.selectorLine=Ee.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Ee.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function(Z,ye){ve.prototype.pointerDown.call(this,Z,ye),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},z.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Ee.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Ee.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Ee.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},z.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.adjustVisual(),this.colorChanged(Z)},z.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.adjustVisual()},z.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.adjustVisual(),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ve.prototype.getState.call(this));return Z.typeName=z.typeName,Z},z.prototype.restoreState=function(Z){ve.prototype.restoreState.call(this,Z);var ye=Z;this.strokeColor=ye.strokeColor,this.strokeWidth=ye.strokeWidth,this.strokeDasharray=ye.strokeDasharray,this.createVisual(),this.adjustVisual()},z.typeName="LineMarker",z.title="Line marker",z.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',z}(yt),ct=function(ve){function z(Z,ye,Ce,be){var ht=ve.call(this,Z,be||'<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 ht.fonts=[],ht.fontBoxes=[],ht.fonts=ye,ht.currentFont=Ce,ht.setCurrentFont=ht.setCurrentFont.bind(ht),ht}return me(z,ve),z.prototype.getUi=function(){var Z=this,ye=document.createElement("div");return ye.style.overflow="hidden",ye.style.flexGrow="2",this.fonts.forEach(function(Ce){var be=document.createElement("div");be.style.display="inline-block",be.style.alignItems="center",be.style.justifyContent="space-between",be.style.padding="5px",be.style.borderWidth="2px",be.style.borderStyle="solid",be.style.overflow="hidden",be.style.maxWidth=100/Z.fonts.length-5+"%",be.style.borderColor=Ce===Z.currentFont?Z.uiStyleSettings.toolboxAccentColor:"transparent",be.addEventListener("click",function(){Z.setCurrentFont(Ce,be)}),ye.appendChild(be);var ht=document.createElement("div");ht.style.display="flex",ht.style.minHeight="20px",ht.style.flexGrow="2",ht.style.fontFamily=Ce,ht.style.overflow="hidden";var Nt=document.createElement("div");Nt.style.whiteSpace="nowrap",Nt.style.overflow="hidden",Nt.style.textOverflow="ellipsis",Nt.innerHTML="The quick brown fox jumps over the lazy dog",ht.appendChild(Nt),be.appendChild(ht),Z.fontBoxes.push(be)}),ye},z.prototype.setCurrentFont=function(Z,ye){var Ce=this;this.currentFont=Z,this.fontBoxes.forEach(function(be){be.style.borderColor=be===ye?Ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},z}(ke),lt=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,ye,Ce)||this;return be.color="transparent",be.padding=5,be.DEFAULT_TEXT="your text here",be.text=be.DEFAULT_TEXT,be.isMoved=!1,be.color=Ce.defaultColor,be.fontFamily=Ce.defaultFontFamily,be.defaultSize={x:100,y:30},be.setColor=be.setColor.bind(be),be.setFont=be.setFont.bind(be),be.renderText=be.renderText.bind(be),be.sizeText=be.sizeText.bind(be),be.textEditDivClicked=be.textEditDivClicked.bind(be),be.showTextEditor=be.showTextEditor.bind(be),be.setSize=be.setSize.bind(be),be.positionTextEditor=be.positionTextEditor.bind(be),be.colorPanel=new re("Color",Ce.defaultColorSet,Ce.defaultColor),be.colorPanel.onColorChanged=be.setColor,be.fontFamilyPanel=new ct("Font",Ce.defaultFontFamilies,Ce.defaultFontFamily),be.fontFamilyPanel.onFontChanged=be.setFont,be}return me(z,ve),z.prototype.ownsTarget=function(Z){if(ve.prototype.ownsTarget.call(this,Z)||Z===this.visual||Z===this.textElement||Z===this.bgRectangle)return!0;var ye=!1;return this.textElement.childNodes.forEach(function(Ce){Ce===Z&&(ye=!0)}),ye},z.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.bgRectangle=Ee.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Ee.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Ee.createTransform()),this.textElement.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},z.prototype.pointerDown=function(Z,ye){ve.prototype.pointerDown.call(this,Z,ye),this.isMoved=!1,this.pointerDownPoint=Z,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(Z),this._state="creating")},z.prototype.renderText=function(){var Z=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(ye){Z.textElement.appendChild(Ee.createTSpan(ye.trim()===""?" ":ye.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},z.prototype.getTextScale=function(){var Z=this.textElement.getBBox(),ye=1;if(Z.width>0&&Z.height>0){var Ce=(1*this.width-this.width*this.padding*2/100)/Z.width,be=(1*this.height-this.height*this.padding*2/100)/Z.height;ye=Math.min(Ce,be)}return ye},z.prototype.getTextPosition=function(Z){var ye=this.textElement.getBBox(),Ce=0,be=0;return ye.width>0&&ye.height>0&&(Ce=(this.width-ye.width*Z)/2,be=this.height/2-ye.height*Z/2),{x:Ce,y:be}},z.prototype.sizeText=function(){var Z=this.textElement.getBBox(),ye=this.getTextScale(),Ce=this.getTextPosition(ye);Ce.y-=Z.y*ye,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Ce.x+"px, "+Ce.y+"px) scale("+ye+", "+ye+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Ce.x,Ce.y),this.textElement.transform.baseVal.getItem(1).setScale(ye,ye))},z.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)},z.prototype.resize=function(Z){ve.prototype.resize.call(this,Z),this.isMoved=!0,this.setSize(),this.sizeText()},z.prototype.setSize=function(){ve.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Ee.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ee.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},z.prototype.pointerUp=function(Z){var ye=this.state;ye==="creating"&&(this._suppressMarkerCreateEvent=!0),ve.prototype.pointerUp.call(this,Z),this.setSize(),(ye==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},z.prototype.showTextEditor=function(){var Z=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(ye){ye.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ye=Number.parseFloat(Z.textEditor.style.fontSize);Z.textEditor.clientWidth>=Number.parseInt(Z.textEditor.style.maxWidth)&&ye>.9;)ye-=.1,Z.textEditor.style.fontSize=Math.max(ye,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ye){ye.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ye){if(ye.clipboardData){var Ce=ye.clipboardData.getData("text"),be=window.getSelection();if(!be.rangeCount)return!1;be.deleteFromDocument(),be.getRangeAt(0).insertNode(document.createTextNode(Ce)),ye.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){Z.textEditDivClicked(Z.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},z.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var Z=this.getTextScale(),ye=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Ce=this.textElement.getBBox(),be={x:Ce.width*Z,y:Ce.height*Z};ye.x-=be.x/2,ye.y-=be.y/2,this.textEditor.style.top=ye.y+"px",this.textEditor.style.left=ye.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ye.x+"px",this.textEditor.style.fontSize=Math.max(16*Z,12)+"px",this.textElement.style.display="none"}},z.prototype.textEditDivClicked=function(Z){this.text=Z.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},z.prototype.select=function(){ve.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},z.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ve.prototype.deselect.call(this)},z.prototype.dblClick=function(Z,ye){ve.prototype.dblClick.call(this,Z,ye),this.showTextEditor()},z.prototype.setColor=function(Z){this.textElement&&Ee.setAttributes(this.textElement,[["fill",Z]]),this.color=Z,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(Z)},z.prototype.setFont=function(Z){this.textElement&&Ee.setAttributes(this.textElement,[["font-family",Z]]),this.fontFamily=Z,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},z.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},z.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ve.prototype.getState.call(this));return Z.typeName=z.typeName,Z},z.prototype.restoreState=function(Z){var ye=Z;this.color=ye.color,this.fontFamily=ye.fontFamily,this.padding=ye.padding,this.text=ye.text,this.createVisual(),ve.prototype.restoreState.call(this,Z),this.setSize()},z.prototype.scale=function(Z,ye){ve.prototype.scale.call(this,Z,ye),this.setSize(),this.sizeText(),this.positionTextEditor()},z.typeName="TextMarker",z.title="Text marker",z.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',z}(le),rt=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,ye,Ce)||this;return be.color="transparent",be.lineWidth=3,be.drawing=!1,be.pixelRatio=1,be.color=Ce.defaultColor,be.lineWidth=Ce.defaultStrokeWidth,be.pixelRatio=Ce.freehandPixelRatio,be.setColor=be.setColor.bind(be),be.addCanvas=be.addCanvas.bind(be),be.finishCreation=be.finishCreation.bind(be),be.setLineWidth=be.setLineWidth.bind(be),be.colorPanel=new re("Color",Ce.defaultColorSet,Ce.defaultColor),be.colorPanel.onColorChanged=be.setColor,be.lineWidthPanel=new Xe("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),be.lineWidthPanel.onWidthChanged=be.setLineWidth,be}return me(z,ve),z.prototype.ownsTarget=function(Z){return!(!ve.prototype.ownsTarget.call(this,Z)&&Z!==this.visual&&Z!==this.drawingImage)},z.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.drawingImage=Ee.createImage(),this.visual.appendChild(this.drawingImage);var Z=Ee.createTransform();this.visual.transform.baseVal.appendItem(Z),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function(Z,ye){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(Z.x,Z.y),this.drawing=!0):ve.prototype.pointerDown.call(this,Z,ye)},z.prototype.manipulate=function(Z){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(Z.x,Z.y),this.canvasContext.stroke()):ve.prototype.manipulate.call(this,Z)},z.prototype.resize=function(Z){ve.prototype.resize.call(this,Z),Ee.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ee.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},z.prototype.pointerUp=function(Z){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ve.prototype.pointerUp.call(this,Z)},z.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},z.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ve.prototype.select.call(this)},z.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ve.prototype.deselect.call(this)},z.prototype.finishCreation=function(){for(var Z=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ye=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Ce=ye[0],be=ye[1],ht=ye[2],Nt=ye[3],sn=!1,pn=0;pn<this.canvasElement.height;pn++)for(var zt=0;zt<this.canvasElement.width;zt++)Z.data[pn*this.canvasElement.width*4+4*zt+3]>0&&(sn=!0,pn<be&&(be=pn),zt<Ce&&(Ce=zt),pn>Nt&&(Nt=pn),zt>ht&&(ht=zt));if(sn){this.left=Ce/this.pixelRatio,this.top=be/this.pixelRatio,this.width=(ht-Ce)/this.pixelRatio,this.height=(Nt-be)/this.pixelRatio;var qn=document.createElement("canvas");qn.width=ht-Ce,qn.height=Nt-be,qn.getContext("2d").putImageData(this.canvasContext.getImageData(Ce,be,ht-Ce,Nt-be),0,0),this.drawingImgUrl=qn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},z.prototype.setDrawingImage=function(){Ee.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Ee.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},z.prototype.setColor=function(Z){this.color=Z,this.colorChanged(Z)},z.prototype.setLineWidth=function(Z){this.lineWidth=Z},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=Object.assign({drawingImgUrl:this.drawingImgUrl},ve.prototype.getState.call(this));return Z.typeName=z.typeName,Z},z.prototype.restoreState=function(Z){this.createVisual(),ve.prototype.restoreState.call(this,Z),this.drawingImgUrl=Z.drawingImgUrl,this.setDrawingImage()},z.prototype.scale=function(Z,ye){ve.prototype.scale.call(this,Z,ye),this.setDrawingImage()},z.typeName="FreehandMarker",z.title="Freehand marker",z.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',z}(le),qe=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,Ce||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return be.typeBoxes=[],be.currentType=ye,be.setCurrentType=be.setCurrentType.bind(be),be}return me(z,ve),z.prototype.getUi=function(){var Z=this,ye=document.createElement("div");ye.style.display="flex",ye.style.overflow="hidden",ye.style.flexGrow="2";for(var Ce=function(Nt){var sn="both";switch(Nt){case 0:sn="both";break;case 1:sn="start";break;case 2:sn="end";break;case 3:sn="none"}var pn=document.createElement("div");if(pn.style.display="flex",pn.style.flexGrow="2",pn.style.alignItems="center",pn.style.justifyContent="space-between",pn.style.padding="5px",pn.style.borderWidth="2px",pn.style.borderStyle="solid",pn.style.borderColor=sn===be.currentType?be.uiStyleSettings.toolboxAccentColor:"transparent",pn.addEventListener("click",function(){Z.setCurrentType(sn,pn)}),ye.appendChild(pn),sn==="both"||sn==="start"){var zt=document.createElement("div");zt.style.display="flex",zt.style.alignItems="center",zt.style.minHeight="20px",zt.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="`+(be.uiStyleSettings!==void 0?be.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,zt.style.marginLeft="5px",pn.appendChild(zt)}var qn=document.createElement("div");qn.style.display="flex",qn.style.alignItems="center",qn.style.minHeight="20px",qn.style.flexGrow="2";var Un=document.createElement("hr");if(Un.style.minWidth="20px",Un.style.border="0px",Un.style.borderTop="3px solid "+(be.uiStyleSettings!==void 0?be.uiStyleSettings.toolboxColor:"#eeeeee"),Un.style.flexGrow="2",qn.appendChild(Un),pn.appendChild(qn),sn==="both"||sn==="end"){var rr=document.createElement("div");rr.style.display="flex",rr.style.alignItems="center",rr.style.minHeight="20px",rr.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="`+(be.uiStyleSettings!==void 0?be.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,rr.style.marginRight="5px",pn.appendChild(rr)}be.typeBoxes.push(pn)},be=this,ht=0;ht<4;ht++)Ce(ht);return ye},z.prototype.setCurrentType=function(Z,ye){var Ce=this;this.currentType=Z,this.typeBoxes.forEach(function(be){be.style.borderColor=be===ye?Ce.uiStyleSettings!==void 0?Ce.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},z}(ke),$e=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,ye,Ce)||this;return be.arrowType="end",be.arrowBaseHeight=10,be.arrowBaseWidth=10,be.getArrowPoints=be.getArrowPoints.bind(be),be.setArrowType=be.setArrowType.bind(be),be.arrowTypePanel=new qe("Arrow type","end"),be.arrowTypePanel.onArrowTypeChanged=be.setArrowType,be}return me(z,ve),z.prototype.ownsTarget=function(Z){return!(!ve.prototype.ownsTarget.call(this,Z)&&Z!==this.arrow1&&Z!==this.arrow2)},z.prototype.getArrowPoints=function(Z,ye){var Ce=this.arrowBaseWidth+2*this.strokeWidth,be=this.arrowBaseHeight+2*this.strokeWidth;return Z-Ce/2+","+(ye+be/2)+" "+Z+","+(ye-be/2)+" "+(Z+Ce/2)+","+(ye+be/2)},z.prototype.createTips=function(){this.arrow1=Ee.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Ee.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.arrow2)},z.prototype.pointerDown=function(Z,ye){ve.prototype.pointerDown.call(this,Z,ye),this.state==="creating"&&this.createTips()},z.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",Ee.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Ee.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var Z=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ye=this.arrow1.transform.baseVal.getItem(0);ye.setRotate(Z,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ye,0);var Ce=this.arrow2.transform.baseVal.getItem(0);Ce.setRotate(Z+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Ce,0)}},z.prototype.setArrowType=function(Z){this.arrowType=Z,this.adjustVisual(),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=Object.assign({arrowType:this.arrowType},ve.prototype.getState.call(this));return Z.typeName=z.typeName,Z},z.prototype.restoreState=function(Z){ve.prototype.restoreState.call(this,Z);var ye=Z;this.arrowType=ye.arrowType,this.createTips(),this.adjustVisual()},z.typeName="ArrowMarker",z.title="Arrow marker",z.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',z}(Et),Pe=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,ye,Ce)||this;return be.fillColor=Ce.defaultFillColor,be.strokeWidth=0,be.fillPanel=new re("Color",Ce.defaultColorSet,Ce.defaultFillColor),be.fillPanel.onColorChanged=be.setFillColor,be}return me(z,ve),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=ve.prototype.getState.call(this);return Z.typeName=z.typeName,Z},z.typeName="CoverMarker",z.title="Cover marker",z.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',z}(De),je=function(ve){function z(Z,ye,Ce,be){var ht=ve.call(this,Z,be||'<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 ht.opacities=[],ht.opacityBoxes=[],ht.opacities=ye,ht.currentOpacity=Ce,ht.setCurrentOpacity=ht.setCurrentOpacity.bind(ht),ht}return me(z,ve),z.prototype.getUi=function(){var Z=this,ye=document.createElement("div");return ye.style.display="flex",ye.style.overflow="hidden",ye.style.flexGrow="2",ye.style.justifyContent="space-between",this.opacities.forEach(function(Ce){var be=document.createElement("div");be.style.display="flex",be.style.alignItems="center",be.style.justifyContent="center",be.style.padding="5px",be.style.borderWidth="2px",be.style.borderStyle="solid",be.style.borderColor=Ce===Z.currentOpacity?Z.uiStyleSettings.toolboxAccentColor:"transparent",be.addEventListener("click",function(){Z.setCurrentOpacity(Ce,be)}),ye.appendChild(be);var ht=document.createElement("div");ht.innerText=100*Ce+"%",be.appendChild(ht),Z.opacityBoxes.push(be)}),ye},z.prototype.setCurrentOpacity=function(Z,ye){var Ce=this;this.currentOpacity=Z,this.opacityBoxes.forEach(function(be){be.style.borderColor=be===ye?Ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},z}(ke),Ne=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,ye,Ce)||this;return be.setOpacity=be.setOpacity.bind(be),be.fillColor=Ce.defaultHighlightColor,be.strokeWidth=0,be.opacity=Ce.defaultHighlightOpacity,be.fillPanel=new re("Color",Ce.defaultColorSet,be.fillColor),be.fillPanel.onColorChanged=be.setFillColor,be.opacityPanel=new je("Opacity",Ce.defaultOpacitySteps,be.opacity),be.opacityPanel.onOpacityChanged=be.setOpacity,be}return me(z,ve),z.prototype.setOpacity=function(Z){this.opacity=Z,this.visual&&Ee.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=ve.prototype.getState.call(this);return Z.typeName=z.typeName,Z},z.typeName="HighlightMarker",z.title="Highlight marker",z.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',z}(Pe),et='<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>',mt=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,ye,Ce)||this;return be.bgColor="transparent",be.tipPosition={x:0,y:0},be.tipBase1Position={x:0,y:0},be.tipBase2Position={x:0,y:0},be.tipMoving=!1,be.color=Ce.defaultStrokeColor,be.bgColor=Ce.defaultFillColor,be.fontFamily=Ce.defaultFontFamily,be.defaultSize={x:100,y:30},be.setBgColor=be.setBgColor.bind(be),be.getTipPoints=be.getTipPoints.bind(be),be.positionTip=be.positionTip.bind(be),be.setTipPoints=be.setTipPoints.bind(be),be.colorPanel=new re("Text color",Ce.defaultColorSet,be.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>'),be.colorPanel.onColorChanged=be.setColor,be.bgColorPanel=new re("Fill color",Ce.defaultColorSet,be.bgColor,et),be.bgColorPanel.onColorChanged=be.setBgColor,be.fontFamilyPanel=new ct("Font",Ce.defaultFontFamilies,Ce.defaultFontFamily),be.fontFamilyPanel.onFontChanged=be.setFont,be.tipGrip=new de,be.tipGrip.visual.transform.baseVal.appendItem(Ee.createTransform()),be.controlBox.appendChild(be.tipGrip.visual),be}return me(z,ve),z.prototype.ownsTarget=function(Z){return ve.prototype.ownsTarget.call(this,Z)||this.tipGrip.ownsTarget(Z)||this.tip===Z},z.prototype.createTip=function(){Ee.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Ee.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},z.prototype.pointerDown=function(Z,ye){this.state==="new"&&ve.prototype.pointerDown.call(this,Z,ye),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ye)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ve.prototype.pointerDown.call(this,Z,ye)},z.prototype.pointerUp=function(Z){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ve.prototype.pointerUp.call(this,Z);else{var ye=this.state==="creating";ve.prototype.pointerUp.call(this,Z),this.setTipPoints(ye),this.positionTip()}},z.prototype.manipulate=function(Z){if(this.tipMoving){var ye=this.unrotatePoint(Z);this.tipPosition={x:ye.x-this.manipulationStartLeft,y:ye.y-this.manipulationStartTop},this.positionTip()}else ve.prototype.manipulate.call(this,Z)},z.prototype.setBgColor=function(Z){this.bgRectangle&&this.tip&&(Ee.setAttributes(this.bgRectangle,[["fill",Z]]),Ee.setAttributes(this.tip,[["fill",Z]])),this.bgColor=Z,this.fillColorChanged(Z)},z.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},z.prototype.setTipPoints=function(Z){Z===void 0&&(Z=!1);var ye=Math.min(this.height/2,15),Ce=this.height/5;Z&&(this.tipPosition={x:ye+Ce/2,y:this.height+20});var be=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?be<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Ce=this.width/5,ye=Math.min(this.width/2,15),this.tipBase1Position={x:ye,y:0},this.tipBase2Position={x:ye+Ce,y:0}):(this.tipBase1Position={x:0,y:ye},this.tipBase2Position={x:0,y:ye+Ce}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?be<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Ce=this.width/5,ye=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ye-Ce,y:0},this.tipBase2Position={x:this.width-ye,y:0}):(this.tipBase1Position={x:this.width,y:ye},this.tipBase2Position={x:this.width,y:ye+Ce}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?be<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Ce=this.width/5,ye=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ye-Ce,y:this.height},this.tipBase2Position={x:this.width-ye,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-ye-Ce},this.tipBase2Position={x:this.width,y:this.height-ye}):be<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Ce=this.width/5,ye=Math.min(this.width/2,15),this.tipBase1Position={x:ye,y:this.height},this.tipBase2Position={x:ye+Ce,y:this.height}):(this.tipBase1Position={x:0,y:this.height-ye},this.tipBase2Position={x:0,y:this.height-ye-Ce})},z.prototype.resize=function(Z){ve.prototype.resize.call(this,Z),this.positionTip()},z.prototype.positionTip=function(){Ee.setAttributes(this.tip,[["points",this.getTipPoints()]]);var Z=this.tipGrip.visual.transform.baseVal.getItem(0);Z.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(Z,0)},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),z.prototype.select=function(){this.positionTip(),ve.prototype.select.call(this)},z.prototype.getState=function(){var Z=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ve.prototype.getState.call(this));return Z.typeName=z.typeName,Z},z.prototype.restoreState=function(Z){var ye=Z;this.bgColor=ye.bgColor,this.tipPosition=ye.tipPosition,ve.prototype.restoreState.call(this,Z),this.createTip(),this.setTipPoints()},z.prototype.scale=function(Z,ye){ve.prototype.scale.call(this,Z,ye),this.tipPosition={x:this.tipPosition.x*Z,y:this.tipPosition.y*ye},this.positionTip()},z.typeName="CalloutMarker",z.title="Callout marker",z.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',z}(lt),At=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,ye,Ce)||this;return be.fillColor="transparent",be.strokeColor="transparent",be.strokeWidth=0,be.strokeDasharray="",be.opacity=1,be.strokeColor=Ce.defaultColor,be.strokeWidth=Ce.defaultStrokeWidth,be.strokeDasharray=Ce.defaultStrokeDasharray,be.fillColor=Ce.defaultFillColor,be.setStrokeColor=be.setStrokeColor.bind(be),be.setFillColor=be.setFillColor.bind(be),be.setStrokeWidth=be.setStrokeWidth.bind(be),be.setStrokeDasharray=be.setStrokeDasharray.bind(be),be.setOpacity=be.setOpacity.bind(be),be.createVisual=be.createVisual.bind(be),be.strokePanel=new re("Line color",Ae(Ce.defaultColorSet,["transparent"]),Ce.defaultColor),be.strokePanel.onColorChanged=be.setStrokeColor,be.fillPanel=new re("Fill color",Ae(Ce.defaultColorSet,["transparent"]),be.fillColor,et),be.fillPanel.onColorChanged=be.setFillColor,be.strokeWidthPanel=new Xe("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),be.strokeWidthPanel.onWidthChanged=be.setStrokeWidth,be.strokeStylePanel=new xt("Line style",Ce.defaultStrokeDasharrays,Ce.defaultStrokeDasharray),be.strokeStylePanel.onStyleChanged=be.setStrokeDasharray,be.opacityPanel=new je("Opacity",Ce.defaultOpacitySteps,be.opacity),be.opacityPanel.onOpacityChanged=be.setOpacity,be}return me(z,ve),z.prototype.ownsTarget=function(Z){return!(!ve.prototype.ownsTarget.call(this,Z)&&Z!==this.visual)},z.prototype.createVisual=function(){this.visual=Ee.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function(Z,ye){ve.prototype.pointerDown.call(this,Z,ye),this.state==="new"&&(this.createVisual(),this.moveVisual(Z),this._state="creating")},z.prototype.manipulate=function(Z){ve.prototype.manipulate.call(this,Z)},z.prototype.resize=function(Z){ve.prototype.resize.call(this,Z),this.setSize()},z.prototype.setSize=function(){ve.prototype.setSize.call(this),Ee.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},z.prototype.pointerUp=function(Z){ve.prototype.pointerUp.call(this,Z),this.setSize()},z.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.visual&&Ee.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(Z),this.stateChanged()},z.prototype.setFillColor=function(Z){this.fillColor=Z,this.visual&&Ee.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(Z),this.stateChanged()},z.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.visual&&Ee.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},z.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.visual&&Ee.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},z.prototype.setOpacity=function(Z){this.opacity=Z,this.visual&&Ee.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ve.prototype.getState.call(this));return Z.typeName=z.typeName,Z},z.prototype.restoreState=function(Z){var ye=Z;this.fillColor=ye.fillColor,this.strokeColor=ye.strokeColor,this.strokeWidth=ye.strokeWidth,this.strokeDasharray=ye.strokeDasharray,this.opacity=ye.opacity,this.createVisual(),ve.prototype.restoreState.call(this,Z),this.setSize()},z.prototype.scale=function(Z,ye){ve.prototype.scale.call(this,Z,ye),this.setSize()},z.typeName="EllipseMarker",z.title="Ellipse marker",z.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',z}(le),Ut=function(ve){function z(Z,ye,Ce){return ve.call(this,Z,ye,Ce)||this}return me(z,ve),Object.defineProperty(z.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),z.prototype.ownsTarget=function(Z){return!(!ve.prototype.ownsTarget.call(this,Z)&&Z!==this.tip1&&Z!==this.tip2)},z.prototype.createTips=function(){this.tip1=Ee.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Ee.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.tip2)},z.prototype.pointerDown=function(Z,ye){ve.prototype.pointerDown.call(this,Z,ye),this.state==="creating"&&this.createTips()},z.prototype.adjustVisual=function(){if(ve.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Ee.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Ee.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var Z=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ye=this.tip1.transform.baseVal.getItem(0);ye.setRotate(Z,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ye,0);var Ce=this.tip2.transform.baseVal.getItem(0);Ce.setRotate(Z+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Ce,0)}},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=ve.prototype.getState.call(this);return Z.typeName=z.typeName,Z},z.prototype.restoreState=function(Z){ve.prototype.restoreState.call(this,Z),this.createTips(),this.adjustVisual()},z.typeName="MeasurementMarker",z.title="Measurement marker",z.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',z}(Et),Xt=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,ye,Ce)||this;return be.strokePanel.colors=Ce.defaultColorSet,be.fillColor="transparent",be}return me(z,ve),Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=ve.prototype.getState.call(this);return Z.typeName=z.typeName,Z},z.typeName="EllipseFrameMarker",z.title="Ellipse frame marker",z.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',z}(At),un=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(z){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(z)||(this.undoStack.push(z),JSON.stringify(this.lastRedoStep)!==JSON.stringify(z)&&this.redoStack.splice(0,this.redoStack.length))},ve.prototype.replaceLastUndoStep=function(z){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=z)},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 z=this.undoStack.pop();return z!==void 0&&this.redoStack.push(z),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}(),jt=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,ye,Ce)||this;return be.strokeColor="transparent",be.strokeWidth=0,be.strokeDasharray="",be.curveX=0,be.curveY=0,be.manipulationStartCurveX=0,be.manipulationStartCurveY=0,be.setStrokeColor=be.setStrokeColor.bind(be),be.setStrokeWidth=be.setStrokeWidth.bind(be),be.setStrokeDasharray=be.setStrokeDasharray.bind(be),be.positionGrips=be.positionGrips.bind(be),be.addControlGrips=be.addControlGrips.bind(be),be.adjustVisual=be.adjustVisual.bind(be),be.setupControlBox=be.setupControlBox.bind(be),be.resize=be.resize.bind(be),be.strokeColor=Ce.defaultColor,be.strokeWidth=Ce.defaultStrokeWidth,be.strokeDasharray=Ce.defaultStrokeDasharray,be.strokePanel=new re("Line color",Ce.defaultColorSet,Ce.defaultColor),be.strokePanel.onColorChanged=be.setStrokeColor,be.strokeWidthPanel=new Xe("Line width",Ce.defaultStrokeWidths,Ce.defaultStrokeWidth),be.strokeWidthPanel.onWidthChanged=be.setStrokeWidth,be.strokeStylePanel=new xt("Line style",Ce.defaultStrokeDasharrays,Ce.defaultStrokeDasharray),be.strokeStylePanel.onStyleChanged=be.setStrokeDasharray,be}return me(z,ve),z.prototype.ownsTarget=function(Z){return!(!ve.prototype.ownsTarget.call(this,Z)&&Z!==this.visual&&Z!==this.selectorCurve&&Z!==this.visibleCurve&&!this.curveGrip.ownsTarget(Z))},z.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},z.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.selectorCurve=Ee.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Ee.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},z.prototype.pointerDown=function(Z,ye){ve.prototype.pointerDown.call(this,Z,ye),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=Z.x,this.curveY=Z.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ye)&&(this.activeGrip=this.curveGrip,this._state="resize")},z.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Ee.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Ee.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Ee.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},z.prototype.setupControlBox=function(){ve.prototype.setupControlBox.call(this),this.curveControlLine1=Ee.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Ee.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},z.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ve.prototype.addControlGrips.call(this)},z.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()))},z.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)},z.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)},z.prototype.setStrokeColor=function(Z){this.strokeColor=Z,this.adjustVisual(),this.colorChanged(Z)},z.prototype.setStrokeWidth=function(Z){this.strokeWidth=Z,this.adjustVisual()},z.prototype.setStrokeDasharray=function(Z){this.strokeDasharray=Z,this.adjustVisual()},z.prototype.scale=function(Z,ye){this.curveX=this.curveX*Z,this.curveY=this.curveY*ye,ve.prototype.scale.call(this,Z,ye)},Object.defineProperty(z.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),z.prototype.getState=function(){var Z=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ve.prototype.getState.call(this));return Z.typeName=z.typeName,Z},z.prototype.restoreState=function(Z){ve.prototype.restoreState.call(this,Z);var ye=Z;this.strokeColor=ye.strokeColor,this.strokeWidth=ye.strokeWidth,this.strokeDasharray=ye.strokeDasharray,this.curveX=ye.curveX,this.curveY=ye.curveY,this.createVisual(),this.adjustVisual()},z.typeName="CurveMarker",z.title="Curve marker",z.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',z}(yt),Zt=function(){function ve(z,Z){Z===void 0&&(Z=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=z,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}(),Mt=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,!1)||this;return be.dataUrl=ye,be.state=Ce,be}return me(z,ve),z}(Zt),Tt=function(ve){function z(Z,ye,Ce){Ce===void 0&&(Ce=!1);var be=ve.call(this,Z,Ce)||this;return be.marker=ye,be}return me(z,ve),z}(Zt),Ct=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(z,Z){this[z].push(Z)},ve.prototype.removeEventListener=function(z,Z){var ye=this[z].indexOf(Z);ye>-1&&this[z].splice(ye,1)},ve}(),Re=function(){function ve(z){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new ze,this._isOpen=!1,this.undoRedoManager=new un,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 Ct,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ve.instanceCounter++,this.styles=new fe(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=z,this.targetRoot=document.body,this.width=z.clientWidth,this.height=z.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(ve.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ke,rt,$e,lt,Xt,At,Ne,mt,Ut,Pe,Et,jt]},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ke,rt,$e,lt,At,Ne,mt]},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ke,rt,$e,lt,Ne]},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(z){var Z=this;this._availableMarkerTypes.splice(0),z.forEach(function(ye){if(typeof ye=="string"){var Ce=Z.ALL_MARKER_TYPES.find(function(be){return be.typeName===ye});Ce!==void 0&&Z._availableMarkerTypes.push(Ce)}else Z._availableMarkerTypes.push(ye)})},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(z){this._zoomLevel=z,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(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(),pe.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ve.prototype.show=function(){var z=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 Zt(z))})},ve.prototype.render=function(){return se(this,void 0,void 0,function(){var z;return _e(this,function(Z){switch(Z.label){case 0:return this.setCurrentMarker(),(z=new he).naturalSize=this.renderAtNaturalSize,z.imageType=this.renderImageType,z.imageQuality=this.renderImageQuality,z.markersOnly=this.renderMarkersOnly,z.width=this.renderWidth,z.height=this.renderHeight,[4,z.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return Z.sent(),[4,z.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,Z.sent()]}})})},ve.prototype.close=function(z){var Z=this;if(z===void 0&&(z=!1),this.isOpen){var ye=!1;z||this.eventListeners.beforeclose.forEach(function(Ce){var be=new Zt(Z,!0);Ce(be),be.defaultPrevented&&(ye=!0)}),ye||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(Ce){return Ce(new Zt(Z))}),this.detachEvents(),this._isOpen=!1)}},ve.prototype.addMarkersToToolbar=function(){for(var z,Z=[],ye=0;ye<arguments.length;ye++)Z[ye]=arguments[ye];(z=this._availableMarkerTypes).push.apply(z,Z)},ve.prototype.addRenderEventListener=function(z){this.addEventListener("render",function(Z){z(Z.dataUrl,Z.state)})},ve.prototype.removeRenderEventListener=function(z){},ve.prototype.addCloseEventListener=function(z){this.addEventListener("close",function(){z()})},ve.prototype.removeCloseEventListener=function(z){},ve.prototype.setupResizeObserver=function(){var z=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){z.resize(z.target.clientWidth,z.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return z.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ve.prototype.onPopupTargetResize=function(){var z=1*this.target.clientWidth/this.target.clientHeight,Z=this.editorCanvas.clientWidth/z>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*z:this.editorCanvas.clientWidth,ye=Z<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/z;this.resize(Z,ye)},ve.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ve.prototype.resize=function(z,Z){this._isResizing=!0;var ye=z/this.imageWidth,Ce=Z/this.imageHeight;this.imageWidth=Math.round(z),this.imageHeight=Math.round(Z),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(ye,Ce),this._isResizing=!1},ve.prototype.scaleMarkers=function(z,Z){var ye,Ce=this;this._currentMarker&&this._currentMarker instanceof lt?this._currentMarker.scale(z,Z):(ye=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(be){be!==Ce._currentMarker&&be.scale(z,Z)}),ye!==void 0&&this.setCurrentMarker(ye)},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 z=this.editingTarget.getBoundingClientRect(),Z=this.editorCanvas.getBoundingClientRect();this.left=z.left-Z.left,this.top=z.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 z,Z=[],ye=0;ye<arguments.length;ye++)Z[ye]=arguments[ye];this.defs=Ee.createDefs(),this.addDefsToImage(),(z=this.defs).append.apply(z,Z)},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 z=document.createElement("a");z.href="https://markerjs.com/",z.target="_blank",z.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',z.title="Powered by marker.js",z.style.display="grid",z.style.alignItems="center",z.style.justifyItems="center",z.style.padding="3px",z.style.width="20px",z.style.height="20px",this.logoUI.appendChild(z),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},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 z=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=z+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new Ie(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 Fe(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(z){this.markerImage.removeChild(z.container),this.markers.indexOf(z)>-1&&this.markers.splice(this.markers.indexOf(z),1),z.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(z,Z){if(z==="marker"&&Z!==void 0)this.createNewMarker(Z);else if(z==="action")switch(Z){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},ve.prototype.deleteSelectedMarker=function(){var z=this;if(this._currentMarker!==void 0){var Z=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Ce){var be=new Tt(z,z._currentMarker,!0);Ce(be),be.defaultPrevented&&(Z=!0)}),!Z){var ye=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(Ce){return Ce(new Tt(z,ye))})}}},ve.prototype.clear=function(){var z=this,Z=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ht){var Nt=new Tt(z,void 0,!0);ht(Nt),Nt.defaultPrevented&&(Z=!0)}),!Z)){this.setCurrentMarker();for(var ye=function(ht){var Nt=Ce.markers[ht];Ce.setCurrentMarker(Ce.markers[ht]),Ce._currentMarker.dispose(),Ce.markerImage.removeChild(Ce._currentMarker.container),Ce.markers.splice(Ce.markers.indexOf(Ce._currentMarker),1),Ce.eventListeners.markerdelete.forEach(function(sn){return sn(new Tt(z,Nt))})},Ce=this,be=this.markers.length-1;be>=0;be--)ye(be);this.addUndoStep()}},Object.defineProperty(ve.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ve.prototype.showNotesEditor=function(){var z;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(z=this._currentMarker.notes)!==null&&z!==void 0?z:"",this.overlayContainer.appendChild(this.notesArea))},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 z=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var Z=this.getState(),ye=this.undoRedoManager.getLastUndoStep();if(!ye||ye.width===Z.width&&ye.height===Z.height){var Ce=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(Z),Ce<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(be){return be(new Zt(z))})}else this.undoRedoManager.replaceLastUndoStep(Z),this.eventListeners.statechange.forEach(function(be){return be(new Zt(z))})}},ve.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ve.prototype.undoStep=function(){var z=this,Z=this.undoRedoManager.undo();Z!==void 0&&(this.restoreState(Z),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ye){return ye(new Zt(z))}))},ve.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ve.prototype.redoStep=function(){var z=this,Z=this.undoRedoManager.redo();Z!==void 0&&(this.restoreState(Z),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ye){return ye(new Zt(z))}))},ve.prototype.stepZoom=function(){var z=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=z<this.zoomSteps.length-1?this.zoomSteps[z+1]:this.zoomSteps[0]},ve.prototype.panTo=function(z){this.contentDiv.scrollBy({left:this.prevPanPoint.x-z.x,top:this.prevPanPoint.y-z.y}),this.prevPanPoint=z},ve.prototype.startRenderAndClose=function(){return se(this,void 0,void 0,function(){var z,Z,ye=this;return _e(this,function(Ce){switch(Ce.label){case 0:return[4,this.render()];case 1:return z=Ce.sent(),Z=this.getState(),this.eventListeners.render.forEach(function(be){return be(new Mt(ye,z,Z))}),this.close(!0),[2]}})})},ve.prototype.getState=function(z){z===!0&&this.setCurrentMarker();var Z={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(ye){return Z.markers.push(ye.getState())}),Z},ve.prototype.restoreState=function(z){var Z=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);z.markers.forEach(function(ye){var Ce=Z._availableMarkerTypes.find(function(ht){return ht.typeName===ye.typeName});if(Ce!==void 0){var be=Z.addNewMarker(Ce);be.restoreState(ye),Z.markers.push(be)}}),z.width&&z.height&&(z.width!==this.imageWidth||z.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/z.width,this.imageHeight/z.height),this.eventListeners.restorestate.forEach(function(ye){return ye(new Zt(Z))})},ve.prototype.addNewMarker=function(z){var Z=Ee.createGroup();return this.markerImage.appendChild(Z),new z(Z,this.overlayContainer,this.settings)},ve.prototype.createNewMarker=function(z){var Z,ye=this;(Z=typeof z=="string"?this._availableMarkerTypes.find(function(Ce){return Ce.typeName===z}):z)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(Z),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(Z.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Ce){return Ce(new Tt(ye,ye._currentMarker))}))},ve.prototype.markerCreated=function(z){var Z=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(z),this.setCurrentMarker(z),z instanceof rt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(rt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(ye){return ye(new Tt(Z,Z._currentMarker))})},ve.prototype.colorChanged=function(z){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=z,this.settings.defaultStrokeColor=z)},ve.prototype.fillColorChanged=function(z){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=z)},ve.prototype.markerStateChanged=function(z){var Z=this;this.eventListeners.markerchange.forEach(function(ye){return ye(new Tt(Z,z))})},ve.prototype.setCurrentMarker=function(z){var Z=this;this._currentMarker!==z&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(ye){return ye(new Tt(Z,Z._currentMarker))})),this._currentMarker=z,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(ye){return ye(new Tt(Z,Z._currentMarker))}))},ve.prototype.onPointerDown=function(z){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||z.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var Z=this.markers.find(function(ye){return ye.ownsTarget(z.target)});Z!==void 0?(this.setCurrentMarker(Z),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(z.clientX,z.clientY),z.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:z.clientX,y:z.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(z.clientX,z.clientY))},ve.prototype.onDblClick=function(z){if(this._isFocused||this.focus(),this.mode==="select"){var Z=this.markers.find(function(ye){return ye.ownsTarget(z.target)});Z!==void 0&&Z!==this._currentMarker&&this.setCurrentMarker(Z),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(z.clientX,z.clientY),z.target):this.setCurrentMarker()}},ve.prototype.onPointerMove=function(z){this.touchPoints!==1&&z.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||z.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(z.clientX,z.clientY)):this.zoomLevel>1&&this.panTo({x:z.clientX,y:z.clientY}))},ve.prototype.onPointerUp=function(z){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(z.clientX,z.clientY)),this.isDragging=!1,this.addUndoStep()},ve.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ve.prototype.onKeyUp=function(z){this._currentMarker===void 0||this.notesArea!==void 0||z.key!=="Delete"&&z.key!=="Backspace"||this.deleteSelectedMarker()},ve.prototype.clientToLocalCoordinates=function(z,Z){var ye=this.markerImage.getBoundingClientRect();return{x:(z-ye.left)/this.zoomLevel,y:(Z-ye.top)/this.zoomLevel}},ve.prototype.onWindowResize=function(){this.positionUI()},ve.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var z=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=z+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},ve.prototype.addLicenseKey=function(z){pe.addKey(z)},ve.prototype.addEventListener=function(z,Z){this.eventListeners.addEventListener(z,Z)},ve.prototype.removeEventListener=function(z,Z){this.eventListeners.removeEventListener(z,Z)},ve.prototype.renderState=function(z){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(z),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ve.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ve.prototype.focus=function(){var z=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(Z){return Z(new Zt(z))}))},ve.prototype.blur=function(){var z=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(Z){return Z(new Zt(z))}))},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 We=function(ve,z){return(We=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Z,ye){Z.__proto__=ye}||function(Z,ye){for(var Ce in ye)Object.prototype.hasOwnProperty.call(ye,Ce)&&(Z[Ce]=ye[Ce])})(ve,z)};function St(ve,z){if(typeof z!="function"&&z!==null)throw new TypeError("Class extends value "+String(z)+" is not a constructor or null");function Z(){this.constructor=ve}We(ve,z),ve.prototype=z===null?Object.create(z):(Z.prototype=z.prototype,new Z)}function ft(ve,z,Z,ye){return new(Z||(Z=Promise))(function(Ce,be){function ht(pn){try{sn(ye.next(pn))}catch(zt){be(zt)}}function Nt(pn){try{sn(ye.throw(pn))}catch(zt){be(zt)}}function sn(pn){var zt;pn.done?Ce(pn.value):(zt=pn.value,zt instanceof Z?zt:new Z(function(qn){qn(zt)})).then(ht,Nt)}sn((ye=ye.apply(ve,z||[])).next())})}function It(ve,z){var Z,ye,Ce,be,ht={label:0,sent:function(){if(1&Ce[0])throw Ce[1];return Ce[1]},trys:[],ops:[]};return be={next:Nt(0),throw:Nt(1),return:Nt(2)},typeof Symbol=="function"&&(be[Symbol.iterator]=function(){return this}),be;function Nt(sn){return function(pn){return function(zt){if(Z)throw new TypeError("Generator is already executing.");for(;ht;)try{if(Z=1,ye&&(Ce=2&zt[0]?ye.return:zt[0]?ye.throw||((Ce=ye.return)&&Ce.call(ye),0):ye.next)&&!(Ce=Ce.call(ye,zt[1])).done)return Ce;switch(ye=0,Ce&&(zt=[2&zt[0],Ce.value]),zt[0]){case 0:case 1:Ce=zt;break;case 4:return ht.label++,{value:zt[1],done:!1};case 5:ht.label++,ye=zt[1],zt=[0];continue;case 7:zt=ht.ops.pop(),ht.trys.pop();continue;default:if(!(Ce=ht.trys,(Ce=Ce.length>0&&Ce[Ce.length-1])||zt[0]!==6&&zt[0]!==2)){ht=0;continue}if(zt[0]===3&&(!Ce||zt[1]>Ce[0]&&zt[1]<Ce[3])){ht.label=zt[1];break}if(zt[0]===6&&ht.label<Ce[1]){ht.label=Ce[1],Ce=zt;break}if(Ce&&ht.label<Ce[2]){ht.label=Ce[2],ht.ops.push(zt);break}Ce[2]&&ht.ops.pop(),ht.trys.pop();continue}zt=z.call(ve,ht)}catch(qn){zt=[6,qn],ye=0}finally{Z=Ce=0}if(5&zt[0])throw zt[1];return{value:zt[0]?zt[1]:void 0,done:!0}}([sn,pn])}}}var Ot=function(){function ve(){}return ve.addKey=function(z){ve.key=z},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(z,Z){for(var ye=0,Ce=Z;ye<Ce.length;ye++){var be=Ce[ye],ht=be[0],Nt=be[1];z.setAttribute(ht,Nt)}},ve.createRect=function(z,Z,ye){var Ce=document.createElementNS("http://www.w3.org/2000/svg","rect");return Ce.setAttribute("width",z.toString()),Ce.setAttribute("height",Z.toString()),ye&&ve.setAttributes(Ce,ye),Ce},ve.createLine=function(z,Z,ye,Ce,be){var ht=document.createElementNS("http://www.w3.org/2000/svg","line");return ht.setAttribute("x1",z.toString()),ht.setAttribute("y1",Z.toString()),ht.setAttribute("x2",ye.toString()),ht.setAttribute("y2",Ce.toString()),be&&ve.setAttributes(ht,be),ht},ve.createPolygon=function(z,Z){var ye=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ye.setAttribute("points",z),Z&&ve.setAttributes(ye,Z),ye},ve.createCircle=function(z,Z){var ye=document.createElementNS("http://www.w3.org/2000/svg","circle");return ye.setAttribute("cx",(z/2).toString()),ye.setAttribute("cy",(z/2).toString()),ye.setAttribute("r",z.toString()),Z&&ve.setAttributes(ye,Z),ye},ve.createEllipse=function(z,Z,ye){var Ce=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Ce.setAttribute("cx",(z/2).toString()),Ce.setAttribute("cy",(Z/2).toString()),Ce.setAttribute("rx",(z/2).toString()),Ce.setAttribute("ry",(Z/2).toString()),ye&&ve.setAttributes(Ce,ye),Ce},ve.createGroup=function(z){var Z=document.createElementNS("http://www.w3.org/2000/svg","g");return z&&ve.setAttributes(Z,z),Z},ve.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ve.createMarker=function(z,Z,ye,Ce,be,ht,Nt){var sn=document.createElementNS("http://www.w3.org/2000/svg","marker");return ve.setAttributes(sn,[["id",z],["orient",Z],["markerWidth",ye.toString()],["markerHeight",Ce.toString()],["refX",be.toString()],["refY",ht.toString()]]),sn.appendChild(Nt),sn},ve.createText=function(z){var Z=document.createElementNS("http://www.w3.org/2000/svg","text");return Z.setAttribute("x","0"),Z.setAttribute("y","0"),z&&ve.setAttributes(Z,z),Z},ve.createTSpan=function(z,Z){var ye=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ye.textContent=z,Z&&ve.setAttributes(ye,Z),ye},ve.createImage=function(z){var Z=document.createElementNS("http://www.w3.org/2000/svg","image");return z&&ve.setAttributes(Z,z),Z},ve.createPoint=function(z,Z){var ye=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ye.x=z,ye.y=Z,ye},ve.createPath=function(z,Z){var ye=document.createElementNS("http://www.w3.org/2000/svg","path");return ye.setAttribute("d",z),Z&&ve.setAttributes(ye,Z),ye},ve.createElement=function(z,Z){var ye=document.createElementNS("http://www.w3.org/2000/svg",z);return Z&&ve.setAttributes(ye,Z),ye},ve.getHollowRectanglePath=function(z,Z,ye,Ce,be,ht,Nt,sn){return"M"+z+","+Z+"V"+(Z+Ce)+"H"+(z+ye)+"V"+Z+"H"+be+"V"+ht+"H"+(be+Nt)+"V"+(ht+sn)+"H"+be+"V"+Z+"Z"},ve}(),Ht=function(){function ve(z){this._classNamePrefixBase="__cropro_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+z+"_"}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(z){return this.styleSheet===void 0&&this.addStyleSheet(),z.name=""+this.classNamePrefix+z.localName,this.classes.push(z),this.styleSheet.sheet.insertRule("."+z.name+" {"+z.style+"}",this.styleSheet.sheet.cssRules.length),z},ve.prototype.addRule=function(z){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(z),this.styleSheet.sheet.insertRule(z.selector+" {"+z.style+"}",this.styleSheet.sheet.cssRules.length)},ve.prototype.addStyleSheet=function(){var z;this.styleSheet=document.createElement("style"),((z=this.styleSheetRoot)!==null&&z!==void 0?z:document.head).appendChild(this.styleSheet),this.addRule(new Gt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Gt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new Gt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new xn("_fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new xn("_fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},ve.prototype.removeStyleSheet=function(){var z;this.styleSheet&&(((z=this.styleSheetRoot)!==null&&z!==void 0?z:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ve}(),Gt=function(ve,z){this.selector=ve,this.style=z},xn=function(ve,z){this.localName=ve,this.style=z},vn=function(){function ve(){this.blocks=[],this.display=""}return ve.prototype.addButtonBlock=function(z){z.className=this.blockClassName,z.buttonClassName=this.buttonClassName,z.buttonColorsClassName=this.buttonColorsClassName,z.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(z)},ve.prototype.addElementBlock=function(z){z.className===void 0&&(z.className=this.blockClassName),this.blocks.push(z)},ve.prototype.getUI=function(){var z=document.createElement("div");return z.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,z.style.display=this.display,this.blocks.forEach(function(Z){return z.appendChild(Z.getUI())}),z},ve}(),sr=function(){function ve(){}return ve.prototype.getUI=function(){var z=document.createElement("div");if(z.className=this.className,this.minWidth!==void 0&&(z.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":z.style.justifyContent="flex-start";break;case"center":z.style.justifyContent="center";break;case"end":z.style.justifyContent="flex-end"}return z.style.whiteSpace="nowrap",z},ve}(),xr=function(ve){function z(){var Z=ve!==null&&ve.apply(this,arguments)||this;return Z.buttons=[],Z}return St(z,ve),z.prototype.addButton=function(Z){Z.className=this.buttonClassName,Z.colorsClassName=this.buttonColorsClassName,Z.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(Z)},z.prototype.getUI=function(){var Z=ve.prototype.getUI.call(this);return this.buttons.forEach(function(ye){return Z.appendChild(ye.getUI())}),Z},z}(sr),Kn=function(){function ve(z,Z){this._isActive=!1,this._isHidden=!1,this._icon=z,this.title=Z,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(ve.prototype,"icon",{get:function(){return this._icon},set:function(z){this._icon=z,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"isActive",{get:function(){return this._isActive},set:function(z){this._isActive=z,this.adjustClassName()},enumerable:!1,configurable:!0}),ve.prototype.getUI=function(){var z=this;return this.buttonContainer=document.createElement("div"),this.buttonContainer.title=this.title,this.buttonContainer.className=this.className+" "+this.colorsClassName,this.adjustClassName(),this.buttonContainer.innerHTML=this._icon,this.onClick&&this.buttonContainer.addEventListener("click",function(){return z.onClick()}),this.uiContainer.appendChild(this.buttonContainer),this.uiContainer.style.display=this._isHidden?"none":"inline-block",this.uiContainer},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}(),En=function(ve){function z(){var Z=ve!==null&&ve.apply(this,arguments)||this;return Z.elements=[],Z}return St(z,ve),z.prototype.addElement=function(Z){this.elements.push(Z)},z.prototype.getUI=function(){var Z=ve.prototype.getUI.call(this);return this.elements.forEach(function(ye){return Z.appendChild(ye)}),Z},z}(sr),Qr=function(){function ve(z,Z){this.horizontal=z,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(z){return z/this.ratio},ve.prototype.getHorizontalLength=function(z){return z*this.ratio},ve}(),sa=function(){function ve(){}return ve.getIcon=function(z,Z){if(z>0&&Z>0){var ye=new Qr(z,Z),Ce=ye.ratio>=1?20:ye.getHorizontalLength(20),be=ye.ratio<1?20:ye.getVerticalLength(20),ht=document.createElementNS("http://www.w3.org/2000/svg","svg");ht.setAttribute("xmlns","http://www.w3.org/2000/svg"),ht.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(ht);var Nt=bt.createDefs();ht.appendChild(Nt);var sn=bt.createElement("clipPath",[["id","text-bg-clip"]]);Nt.appendChild(sn);var pn=bt.createPath(bt.getHollowRectanglePath((24-Ce)/2,(24-be)/2,Ce,be,(24-Ce)/2+2,(24-be)/2+2,Ce-4,be-4));ht.appendChild(pn);var zt=bt.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);zt.appendChild(bt.createTSpan(z+":"+Z)),ht.appendChild(zt);var qn=zt.getBBox();bt.setAttributes(zt,[["x",((24-qn.width)/2).toString()],["y",((24-qn.height)/2-qn.y).toString()]]);var Un=bt.createPath(bt.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(qn.width))/2,(24-Math.ceil(qn.height))/2,Math.ceil(qn.width),Math.ceil(qn.height)));return sn.appendChild(Un),bt.setAttributes(pn,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(ht),ht.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}(),Xr=function(ve){function z(Z,ye,Ce){var be=ve.call(this,Z,ye)||this;return be.isDropdownOpen=!1,be.onClick=be.dropdownButtonClicked,be.dropdownButtons=Ce,be}return St(z,ve),z.prototype.setupDropdown=function(){var Z=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(ye){ye.className=Z.className,ye.colorsClassName=Z.colorsClassName,Z.dropdownBlock.appendChild(ye.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},z.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},z.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},z.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},z.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},z.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},z}(Kn),Nr=function(){function ve(z,Z){this.GRIP_SIZE=10,this.color=z,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(z){return z===this.visual||z===this.visual.childNodes[0]||z===this.visual.childNodes[1]},ve.prototype.setCenter=function(z,Z){this.visual.childNodes.forEach(function(ye){return bt.setAttributes(ye,[["cx",z.toString()],["cy",Z.toString()]])})},ve}(),ba=function(){function ve(z,Z,ye,Ce){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=z,this.canvasHeight=Z,this.margin=ye,this.container=Ce,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(z){this._aspectRatio=z,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(z){this._isGridVisible=z,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(z){this._zoomFactor=z,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),ve.prototype.open=function(){var z=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(ye){return z.gridContainer.appendChild(ye)}),this.verticalGridLines.forEach(function(ye){return z.gridContainer.appendChild(ye)}),this.cropRectElement=bt.createRect(0,0,[["stroke",this.cropFrameColor],["stroke-width","3"],["fill","transparent"]]),this.container.appendChild(this.cropRectElement),this.topLeftGrip=new Nr(this.gripColor,this.gripFillColor),this.container.appendChild(this.topLeftGrip.visual),this.topRightGrip=new Nr(this.gripColor,this.gripFillColor),this.container.appendChild(this.topRightGrip.visual),this.bottomLeftGrip=new Nr(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomLeftGrip.visual),this.bottomRightGrip=new Nr(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomRightGrip.visual),this.attachEvents()},ve.prototype.setCropRectangle=function(z){this.cropRect=z;var Z=Object.assign({},this.cropRect);this.zoomFactor!==1&&(Z.width=this.cropRect.width*this.zoomFactor,Z.height=this.cropRect.height*this.zoomFactor,Z.x=this.cropRect.height/this.cropRect.width<this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasWidth/2-Z.width/2,Z.y=this.cropRect.height/this.cropRect.width>this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-Z.height/2),bt.setAttributes(this.cropRectElement,[["x",Z.x.toString()],["y",Z.y.toString()],["width",Z.width.toString()],["height",Z.height.toString()]]);var ye=Z.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(be,ht){var Nt=Z.y+ye*(ht+1);bt.setAttributes(be,[["x1",""+Z.x],["y1",""+Nt],["x2",""+(Z.x+Z.width)],["y2",""+Nt]])});var Ce=Z.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(be,ht){var Nt=Z.x+Ce*(ht+1);bt.setAttributes(be,[["x1",""+Nt],["y1",""+Z.y],["x2",""+Nt],["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(z,Z){var ye=this.container.getBoundingClientRect();return{x:z-ye.left+this.margin,y:Z-ye.top+this.margin}},ve.prototype.onPointerDown=function(z){this.container.setPointerCapture(z.pointerId),this.previousPoint=this.clientToLocalCoordinates(z.clientX,z.clientY),this.cropRectElement===z.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(z.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(z.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(z.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(z.target)&&(this.activeGrip=this.bottomRightGrip)},ve.prototype.onPointerMove=function(z){if(this.isMoving)this.move(this.clientToLocalCoordinates(z.clientX,z.clientY));else if(this.activeGrip){var Z=this.clientToLocalCoordinates(z.clientX,z.clientY);this.resize(Z)}z.preventDefault()},ve.prototype.onPointerUp=function(z){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(z.pointerId)},ve.prototype.move=function(z){var Z=z.x-this.previousPoint.x,ye=z.y-this.previousPoint.y;this.zoomFactor!==1&&(Z=-Z/this.zoomFactor,ye=-ye/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+Z),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+ye),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=z},ve.prototype.resize=function(z){var Z=Object.assign({},this.cropRect),ye=z.x-this.previousPoint.x,Ce=z.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:Z.x+ye<this.margin&&(ye=this.margin-Z.x),Z.x+=ye,Z.width=this.cropRect.x+this.cropRect.width-Z.x;break;case this.bottomRightGrip:case this.topRightGrip:Z.width+ye>this.canvasWidth*this.zoomFactor&&(ye=this.canvasWidth*this.zoomFactor-Z.width),Z.width+=ye}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(Z.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(ye),Z.height=this.aspectRatio.getVerticalLength(Z.width)):(Z.y+=Ce,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+=Ce}Z.width<10&&(Z.x=this.cropRect.x,Z.width=10),Z.height<10&&(Z.y=this.cropRect.y,Z.height=10),this.previousPoint=z,Z.x>=this.margin&&Z.y>=this.margin&&Z.x-this.margin+Z.width<=this.canvasWidth&&Z.y-this.margin+Z.height<=this.canvasHeight&&(this.cropRect=Z,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},ve.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var z=this.cropRect.x+this.cropRect.width/2,Z=this.cropRect.y+this.cropRect.height/2,ye=this.aspectRatio.getHorizontalLength(this.cropRect.height),Ce=this.aspectRatio.getVerticalLength(this.cropRect.width);ye/this.canvasWidth<Ce/this.canvasHeight?this.cropRect.width=ye:this.cropRect.height=Ce,this.cropRect.width>this.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=z-this.cropRect.width/2,this.cropRect.y=Z-this.cropRect.height/2,this.cropRect.x+this.cropRect.width>this.margin+this.canvasWidth&&(this.cropRect.x=this.margin+this.canvasWidth-this.cropRect.width),this.cropRect.y+this.cropRect.height>this.margin+this.canvasHeight&&(this.cropRect.y=this.margin+this.canvasHeight-this.cropRect.height),this.cropRect.x=Math.max(this.cropRect.x,this.margin),this.cropRect.y=Math.max(this.cropRect.y,this.margin)}},ve.prototype.getRescaledRect=function(z,Z,ye,Ce,be,ht){var Nt=ye/z,sn=Ce/Z;return{x:(be.x-ht)*Nt+ht,y:(be.y-ht)*sn+ht,width:be.width*Nt,height:be.height*sn}},ve.prototype.scaleCanvas=function(z,Z){var ye=this.getRescaledRect(this.canvasWidth,this.canvasHeight,z,Z,this.cropRect,this.margin);this.canvasWidth=z,this.canvasHeight=Z,this.onCropChange&&this.onCropChange(ye),this.setCropRectangle(ye)},ve}(),ja=function(){function ve(z){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=z,this.uiContainer=document.createElement("div"),this.getUI=this.getUI.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.setAngleLabel=this.setAngleLabel.bind(this),this.positionScaleShape=this.positionScaleShape.bind(this)}return Object.defineProperty(ve.prototype,"angle",{get:function(){return this._angle},set:function(z){this._angle=z,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(z){this.controlContainer.setPointerCapture(z.pointerId),this.isDragging=!0,this.previousPoint={x:z.clientX,y:z.clientY}},ve.prototype.onPointerMove=function(z){this.isDragging&&(this.onAngleChange&&this.onAngleChange((z.clientX-this.previousPoint.x)/5),this.previousPoint.x=z.clientX)},ve.prototype.onPointerUp=function(z){this.isDragging&&this.onAngleChange&&this.onAngleChange((z.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(z.pointerId)},ve.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var z=this.angleLabelText.getBBox();bt.setAttributes(this.angleLabelElement,[["x",((this.width-z.width)/2).toString()],["y",(this.height/2).toString()]])}},ve.prototype.positionScaleShape=function(){if(this.scaleShape){var z=this.scaleShape.transform.baseVal.getItem(0);z.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(z,0)}},ve.prototype.getVisual=function(){var z=document.createElementNS("http://www.w3.org/2000/svg","svg");z.setAttribute("xmlns","http://www.w3.org/2000/svg"),z.setAttribute("width",this.width+"px"),z.setAttribute("height",this.height+"px"),z.setAttribute("viewBox","0 0 "+this.width+" "+this.height),z.style.flexShrink="0",document.body.appendChild(z);for(var Z="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,ye=1;ye<=this.width/5+10;ye++){var Ce=ye%5==0?this.height/3:this.height/6;Z+="h4v"+-Ce+"h1v"+Ce}Z+="v1H0Z",this.scaleShape=bt.createPath(Z);var be=bt.createTransform();this.scaleShape.transform.baseVal.appendItem(be),z.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 ht=bt.createTSpan("");return ht.innerHTML="&deg;",this.angleLabelElement.appendChild(ht),z.appendChild(this.angleLabelElement),document.body.removeChild(z),z},ve}(),oi=function(){function ve(){this.naturalSize=!1,this.imageType="image/png"}return ve.prototype.rasterize=function(z,Z,ye,Ce,be,ht,Nt){var sn=this;return new Promise(function(pn){var zt=document.createElement("canvas");zt.width=z.width.baseVal.value-2*Ce,zt.height=z.height.baseVal.value-2*Ce;var qn=1,Un=1;sn.naturalSize===!0?(qn=Z.naturalWidth/(z.width.baseVal.value-2*Ce)/ht,Un=Z.naturalHeight/(z.height.baseVal.value-2*Ce)/Nt,zt.width=Z.naturalWidth/ht,zt.height=Z.naturalHeight/Nt):sn.width!==void 0&&sn.height!==void 0&&(qn=sn.width/ye.width,Un=sn.height/ye.height,zt.width*=qn,zt.height*=Un);var rr=zt.getContext("2d");rr.translate(zt.width/2,zt.height/2),rr.rotate(be*Math.PI/180),rr.scale(ht,Nt),rr.translate(-zt.width/2,-zt.height/2),rr.drawImage(Z,0,0,zt.width,zt.height);var Sr=document.createElement("canvas");Sr.width=ye.width*qn,Sr.height=ye.height*Un,Sr.getContext("2d").putImageData(rr.getImageData((ye.x-Ce)*qn,(ye.y-Ce)*Un,ye.width*qn,ye.height*Un),0,0),pn(Sr.toDataURL(sn.imageType,sn.imageQuality))})},ve}(),Le=function(){function ve(z){this._zoomToCropEnabled=!0,this.zoomFactor=1,this.flippedHorizontally=!1,this.flippedVertically=!1,this._isGridVisible=!0,this._gridLines=2,this._rotationAngle=0,this.scaleFactor=1,this.renderEventListeners=[],this.closeEventListeners=[],this._isOpen=!1,this.CANVAS_MARGIN=20,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.displayMode="inline",this.popupMargin=30,this.toolbarHeight=40,this.aspectRatios=[{horizontal:0,vertical:0},{horizontal:4,vertical:3},{horizontal:3,vertical:2},{horizontal:16,vertical:9},{horizontal:1,vertical:1},{horizontal:3,vertical:4},{horizontal:2,vertical:3},{horizontal:9,vertical:16}],this._instanceNo=ve.instanceCounter++,this.styles=new Ht(this.instanceNo),this.target=z,this.targetRoot=document.body,this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.rotateBy=this.rotateBy.bind(this),this.applyRotation=this.applyRotation.bind(this),this.cropRectChanged=this.cropRectChanged.bind(this),this.zoomToCrop=this.zoomToCrop.bind(this),this.unzoomFromCrop=this.unzoomFromCrop.bind(this),this.rotateLeftButtonClicked=this.rotateLeftButtonClicked.bind(this),this.rotateRightButtonClicked=this.rotateRightButtonClicked.bind(this),this.flipHorizontallyButtonClicked=this.flipHorizontallyButtonClicked.bind(this),this.flipVerticallyButtonClicked=this.flipVerticallyButtonClicked.bind(this),this.applyFlip=this.applyFlip.bind(this),this.startRenderAndClose=this.startRenderAndClose.bind(this),this.render=this.render.bind(this),this.onPopupResize=this.onPopupResize.bind(this),this.applyAspectRatio=this.applyAspectRatio.bind(this)}return Object.defineProperty(ve.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(z){this._zoomToCropEnabled=z,z?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(z){this._isGridVisible=z,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"gridLines",{get:function(){return this._gridLines},set:function(z){this._gridLines=z,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(z){this._rotationAngle=z,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(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 z;return(z=this._aspectRatio)!==null&&z!==void 0?z:this.aspectRatios[0]},set:function(z){this._aspectRatio=z},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(z){z===void 0&&(z=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),z||this.closeEventListeners.forEach(function(Z){return Z()}),this._isOpen=!1)},ve.prototype.addRenderEventListener=function(z){this.renderEventListeners.push(z)},ve.prototype.removeRenderEventListener=function(z){this.renderEventListeners.indexOf(z)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(z),1)},ve.prototype.addCloseEventListener=function(z){this.closeEventListeners.push(z)},ve.prototype.removeCloseEventListener=function(z){this.closeEventListeners.indexOf(z)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(z),1)},ve.prototype.setupResizeObserver=function(){var z=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){z.resize(z.target.clientWidth,z.target.clientHeight)}),this.targetObserver.observe(this.target)):this.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(this.onPopupResize),this.targetObserver.observe(this.contentDiv)),window.addEventListener("resize",this.setWindowHeight))},ve.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var z=1*this.target.clientWidth/this.target.clientHeight,Z=this.contentDiv.clientWidth/z>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*z:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,ye=Z+2*this.CANVAS_MARGIN<this.contentDiv.clientWidth?this.contentDiv.clientHeight-2*this.CANVAS_MARGIN:(this.contentDiv.clientWidth-2*this.CANVAS_MARGIN)/z;this.resize(Z,ye)}},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(z,Z){this.imageWidth=Math.round(z),this.imageHeight=Math.round(Z),this.setEditingTargetSize(),this.cropImage.setAttribute("width",this.paddedImageWidth.toString()),this.cropImage.setAttribute("height",this.paddedImageHeight.toString()),this.cropImage.setAttribute("viewBox","0 0 "+this.paddedImageWidth.toString()+" "+this.paddedImageHeight.toString()),this.cropImageHolder.style.width=this.paddedImageWidth+"px",this.cropImageHolder.style.height=this.paddedImageHeight+"px",this.displayMode!=="popup"?this.coverDiv.style.width=this.paddedImageWidth+"px":(this.setTopLeft(),this.positionCropImage()),this.cropLayer.scaleCanvas(this.imageWidth,this.imageHeight),this.applyRotation()},ve.prototype.setEditingTarget=function(){var z=document.createElement("canvas");z.width=this.target.naturalWidth,z.height=this.target.naturalHeight,z.getContext("2d").drawImage(this.target,0,0,this.target.naturalWidth,this.target.naturalHeight);var Z=z.toDataURL();bt.setAttributes(this.editingTarget,[["href",Z]]),this.setEditingTargetSize()},ve.prototype.setTopLeft=function(){var z=this.target.getBoundingClientRect(),Z=this.editorCanvas.getBoundingClientRect();this.left=z.left-Z.left-this.CANVAS_MARGIN,this.top=z.top-Z.top-this.CANVAS_MARGIN},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 z=bt.createTransform();this.editingTargetRotationContainer.transform.baseVal.appendItem(z);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 ba(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 z=this.cropRect.x-this.CANVAS_MARGIN+this.cropRect.width/2,Z=this.cropRect.y-this.CANVAS_MARGIN+this.cropRect.height/2;this.zoomFactor=Math.min(this.imageWidth/this.cropRect.width,this.imageHeight/this.cropRect.height),this.editingTargetContainer&&this.cropLayer&&(this.editingTargetContainer.style.transformOrigin=z+"px "+Z+"px",this.editingTargetContainer.style.transform="translate("+(this.imageWidth/2-z+this.CANVAS_MARGIN)+"px,"+(this.imageHeight/2-Z+this.CANVAS_MARGIN)+"px) scale("+this.zoomFactor+")",this.cropLayer.zoomFactor=this.zoomFactor)}},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(z){this.cropRect=z,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 z=this.styles.settings.hideTopToolbar?0:this.toolbarHeight,Z=this.target.offsetTop>z+this.CANVAS_MARGIN?this.target.offsetTop-(z+this.CANVAS_MARGIN):0;this.coverDiv.style.top=Z+"px",this.coverDiv.style.left=(this.target.offsetLeft>this.CANVAS_MARGIN?this.target.offsetLeft-this.CANVAS_MARGIN:0)+"px",this.coverDiv.style.width=this.target.offsetWidth+this.CANVAS_MARGIN+"px",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.displayMode==="popup"?this.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.addToolbars(),this.uiDiv.appendChild(this.topToolbar.getUI()),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.alignItems="center",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.contentDiv.style.overflow="hidden",this.contentDiv.style.backgroundColor=this.styles.settings.canvasBackgroundColor,this.displayMode==="popup"&&(this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.popupMargin+"px)"),this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.contentDiv.appendChild(this.editorCanvas),this.uiDiv.appendChild(this.bottomToolbar.getUI()),this.straightener.angle=this.rotationAngle},ve.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},ve.prototype.addTopToolbar=function(){var z=this;this.topToolbar=new vn,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 xr;Z.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(Z);var ye=[];this.aspectRatios.forEach(function(Un){var rr=new Kn(sa.getIcon(Un.horizontal,Un.vertical),Un.horizontal===0&&Un.vertical===0?"FREE":Un.horizontal+":"+Un.vertical);rr.onClick=function(){return z.ratioButtonClicked(Un)},ye.push(rr)}),this.aspectRatioButton=new Xr(sa.getIcon(0,0),"Aspect ratio",ye),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,Z.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var Ce=new Kn('<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");Ce.isActive=this.isGridVisible,Ce.onClick=function(){z.isGridVisible=!z.isGridVisible,Ce.isActive=z.isGridVisible},Z.addButton(Ce);var be=new Kn('<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(be.isActive=this.zoomToCropEnabled,be.onClick=function(){z.zoomToCropEnabled=!z.zoomToCropEnabled,be.isActive=z.zoomToCropEnabled},Z.addButton(be),!Ot.isLicensed){var ht=new En;this.topToolbar.addElementBlock(ht);var Nt=document.createElement("div");Nt.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var sn=document.createElement("a");sn.style.color="currentColor",sn.href="https://markerjs.com/products/cropro",sn.target="_blank",sn.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>',Nt.appendChild(sn),ht.addElement(Nt)}var pn=new xr;pn.minWidth=3*this.toolbarHeight+"px",pn.contentAlign="end",this.topToolbar.addButtonBlock(pn);var zt=new Kn('<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");zt.onClick=this.startRenderAndClose,pn.addButton(zt),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(zt.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var qn=new Kn('<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");qn.onClick=this.close,pn.addButton(qn),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(qn.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},ve.prototype.addBottomToolbar=function(){var z=this;this.bottomToolbar=new vn,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 xr;Z.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(Z);var ye=new Kn('<svg viewBox="0 0 24 24"><path d="M13 4.07V1L8.45 5.55 13 10V6.09c2.84.48 5 2.94 5 5.91s-2.16 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93s-3.05-7.44-7-7.93M7.1 18.32c1.16.9 2.51 1.44 3.9 1.61V17.9c-.87-.15-1.71-.49-2.46-1.03L7.1 18.32M6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.01-2.47m1.02-4.47L5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47z"/></svg>',"Rotate left");ye.onClick=this.rotateLeftButtonClicked,Z.addButton(ye);var Ce=new Kn('<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");Ce.onClick=this.rotateRightButtonClicked,Z.addButton(Ce);var be=new En;be.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(be),this.straightener=new ja("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(pn){z.rotateBy(pn),z.straightener.angle=z.rotationAngle},be.addElement(this.straightener.getUI());var ht=new xr;ht.minWidth=2*this.toolbarHeight+"px",ht.contentAlign="end",this.bottomToolbar.addButtonBlock(ht);var Nt=new Kn('<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");Nt.onClick=this.flipHorizontallyButtonClicked,ht.addButton(Nt);var sn=new Kn('<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");sn.onClick=this.flipVerticallyButtonClicked,ht.addButton(sn)},ve.prototype.ratioButtonClicked=function(z){this.aspectRatio=z,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},ve.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=sa.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 Qr(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(z){if(z){var Z=this.cropLayer.getRescaledRect(z.width,z.height,this.imageWidth,this.imageHeight,z.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(Z),this.cropRectChanged(Z),this.flippedHorizontally=z.flippedHorizontally,this.flippedVertically=z.flippedVertically,this.applyFlip(),this.rotationAngle=z.rotationAngle,this.applyRotation()}},ve.prototype.clientToLocalCoordinates=function(z,Z){var ye=this.cropImage.getBoundingClientRect();return{x:z-ye.left,y:Z-ye.top}},ve.prototype.onWindowResize=function(){this.positionUI()},ve.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var z=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=z+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)"}this.positionCropImage()},ve.prototype.rotateLeftButtonClicked=function(){var z=this.rotationAngle-90;this.rotationAngle%90!=0&&(z+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(z)},ve.prototype.rotateRightButtonClicked=function(){var z=this.rotationAngle+90;this.rotationAngle%90!=0&&(z-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(z)},ve.prototype.rotateTo=function(z){z=(z=z>180?z-360:z)<=-180?z+360:z,this.rotationAngle=z,this.applyRotation()},ve.prototype.rotateBy=function(z){this.rotateTo((this.rotationAngle+z)%360)},ve.prototype.applyRotation=function(){var z=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var Z=this.editingTargetRotationContainer.transform.baseVal.getItem(0);Z.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(Z,0);var ye=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/ye.width,this.imageHeight/ye.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=z},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 ft(this,void 0,void 0,function(){var z,Z;return It(this,function(ye){switch(ye.label){case 0:return[4,this.render()];case 1:return z=ye.sent(),Z=this.getState(),this.renderEventListeners.forEach(function(Ce){return Ce(z,Z)}),this.close(!0),[2]}})})},ve.prototype.render=function(){return ft(this,void 0,void 0,function(){var z;return It(this,function(Z){switch(Z.label){case 0:return(z=new oi).naturalSize=this.renderAtNaturalSize,z.imageType=this.renderImageType,z.imageQuality=this.renderImageQuality,z.width=this.renderWidth,z.height=this.renderHeight,this.unzoomFromCrop(),bt.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,z.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 1:return Z.sent(),[4,z.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 2:return[2,Z.sent()]}})})},ve.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new xn("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 xn("toolbar_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarBlockStyleClass=this.styles.addClass(new xn("toolbar-block",`
display: flex;
align-items: center;
box-sizing: content-box;
`));var z=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new xn("toolbar_button",`
display: inline-block;
width: `+(this.toolbarHeight-2*z)+`px;
height: `+(this.toolbarHeight-2*z)+`px;
padding: `+z+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new xn("toolbar_button_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new xn("toolbar_active_button",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
`)),this.styles.addRule(new Gt("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.toolbarHeight/2+`px;
`)),this.styles.addRule(new Gt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new xn("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 xn("toolbar_dropdown_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new xn("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 xn("toolbar_straightener",`
display: flex;
overflow: hidden;
justify-content: center;
height: `+(this.toolbarHeight-2*z)+`px;
padding: `+z+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new xn("toolbar_straightener_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`))},ve.instanceCounter=0,ve}(),Qe=M("8hTe"),ot=M.n(Qe),_t=/<pre[^>]*>/g;function Kt(ve){var z=document.createElement("div");return z.innerHTML=ve,z.childNodes.length===0?"":z.childNodes[0].nodeValue}var nn=we.a=function(ve){var z=ve.value,Z=z===void 0?"":z,ye=ve.edit,Ce=ye===void 0?!1:ye,be=ve.className,ht=ve.showTextOnly,Nt=ve.showLines,sn=ve.replaces,pn=ve.zoomImg,zt=ve.hasMask,qn=ve.style,Un=qn===void 0?{}:qn,rr=ve.stylesPrev,Sr=rr===void 0?{}:rr,ia=String(Z),Dr=Object(r.useRef)(),na=Object(r.useRef)(),Tr=Object(r.useState)(""),ma=Object(C.a)(Tr,2),ha=ma[0],Oa=ma[1],xa=Object(r.useState)("office"),ka=Object(C.a)(xa,2),Ha=ka[0],Ia=ka[1],Yr=function(){var Ar=new Le(na.current);Ar.displayMode="popup",Ar.addRenderEventListener(function(){var Gr=Object(_.a)(c.a.mark(function qr(_a){var Jr;return c.a.wrap(function(Fa){for(;;)switch(Fa.prev=Fa.next){case 0:return Dr.current.style.display="none",Fa.next=3,Object(te.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:_a}});case 3:Jr=Fa.sent,Jr!=null&&Jr.id&&sn(na.current.getAttribute("src").replace(N.a.API_SERVER,""),"/api/attachments/".concat(Jr==null?void 0:Jr.id,"?type=").concat(Jr.content_type));case 5:case"end":return Fa.stop()}},qr)}));return function(qr){return Gr.apply(this,arguments)}}()),Ar.show()},za=function(){var Ar=new Re(na.current);Ar.settings.displayMode="popup",Ar.addEventListener("render",function(){var Gr=Object(_.a)(c.a.mark(function qr(_a){var Jr;return c.a.wrap(function(Fa){for(;;)switch(Fa.prev=Fa.next){case 0:if(Dr.current.style.display="none",!na.current){Fa.next=6;break}return Fa.next=4,Object(te.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:_a.dataUrl}});case 4:Jr=Fa.sent,Jr!=null&&Jr.id&&sn(na.current.getAttribute("src").replace(N.a.API_SERVER,""),"/api/attachments/".concat(Jr==null?void 0:Jr.id,"?type=").concat(Jr.content_type));case 6:case"end":return Fa.stop()}},qr)}));return function(qr){return Gr.apply(this,arguments)}}()),Ar.show(),window.markerArea=Ar},Ga=Object(r.useMemo)(function(){try{var zr=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Ar=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Gr=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;ia=ia.replace(zr,"("+N.a.API_SERVER+"/api/attachments/").replace(Ar,'"'+N.a.API_SERVER+"/api/attachments/").replace(Gr,'"'+N.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),ia=ia.replace(new RegExp("(?<!\\n)\\n(?!\\n)","g"),`
`)}catch(ji){}var qr=J(ia),_a=O();if(ia.match(/\[TOC\]/)&&(qr=qr.replace("<p>[TOC]</p>",B()),p()),qr=qr.replace(/(__special_katext_id_\d+__)/g,function(ji,Fa){var vi=_a[Fa],vo=vi.type,Wo=vi.expression;return Object(Q.renderToString)(Kt(Wo)||"",{displayMode:vo==="block",throwOnError:!1,output:"html"})}),qr=qr.replace(/▁/g,"\u2581\u2581\u2581"),T(),ht){var Jr=document.createElement("div");return Jr.innerHTML=qr,Jr.innerText}return setTimeout(function(){return di()},500),qr},[ia]),Da=Object(r.useRef)();S.WebkitLineClamp=Nt,Nt&&(Un=Object(E.a)(Object(E.a)({},Un),S));function si(zr){var Ar=zr.target;if(Ar.tagName.toUpperCase()==="IMG"){if(pn){var Gr=Ar.getAttribute("src");Oa(Gr),Ia("image")}}else if(Ar.tagName.toUpperCase()==="A"){var qr=Ar.getAttribute("href");if(qr.indexOf("office")>-1)zr.preventDefault(),Oa(qr),Ia("office");else if(qr.indexOf("application/pdf")>-1)zr.preventDefault(),Oa(qr),Ia("pdf");else if(qr.indexOf("type=text")>-1)zr.preventDefault(),Oa(qr),Ia("html");else if(qr.startsWith("#")){zr.preventDefault();var _a=document.getElementById(qr.replace("#",""));_a&&_a.scrollIntoView(!0)}}}var di=function(){var Ar,Gr=(Ar=Da.current)===null||Ar===void 0?void 0:Ar.querySelectorAll("video");Gr==null||Gr.forEach(function(qr){if(qr.oncontextmenu=function(){return!1},qr.src.indexOf(".m3u8")>-1&&!qr.canPlayType("application/vnd.apple.mpegurl")){if(G.a.isSupported()){var _a=new G.a;_a.loadSource(qr.src),_a.attachMedia(qr)}}})};Object(r.useEffect)(function(){if(Da.current&&Ga&&(Ga.match(_t)&&window.PR.prettyPrint()),Da.current)return Da.current.addEventListener("click",si),function(){Da.current.removeEventListener("click",si),T(),p()}},[Ga,Da.current,si]);var Ma=function(Ar){if(!Ce)return;Ar.target.nodeName==="IMG"?(Dr.current.style.display="flex",Dr.current.style.width=Ar.target.clientWidth+"px",Dr.current.style.height=Ar.target.clientHeight+"px",Dr.current.style.top=Ar.target.offsetTop+"px",Dr.current.style.left=Ar.target.offsetLeft+"px",na.current.src=Ar.target.getAttribute("src")):Dr.current.style.display="none"};return n.a.createElement("div",{style:{position:"relative"}},n.a.createElement("div",{ref:Da,style:Object(E.a)({},Un),className:"".concat(be||""," markdown-body ").concat(ot.a.mdBody),onMouseOver:Ma,dangerouslySetInnerHTML:{__html:Ga}}),n.a.createElement("div",{ref:Dr,className:ot.a.button},n.a.createElement(Y.a,null,n.a.createElement(y.a,{onClick:function(){return Yr()}},"\u88C1\u526A"),n.a.createElement(y.a,{onClick:function(){return za()}},"\u7F16\u8F91"))),n.a.createElement("img",{ref:na,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),n.a.createElement(X.a,{close:!0,data:ha,hasMask:zt,type:ha!=null&&ha.length?Ha:"",style:Object(E.a)({},Sr),onClose:function(){return Oa("")}}))}},"9VGf":function(Ze,we,M){"use strict";M.d(we,"a",function(){return P});var ue=M("q1tI"),Y=M.n(ue);function P(y,E){var _=Object(ue.useRef)();Object(ue.useEffect)(function(){_.current=y}),Object(ue.useEffect)(function(){function C(){_.current()}if(E!==null){var m=setInterval(C,E);return function(){return clearInterval(m)}}},[E])}},"9nDM":function(Ze,we,M){},"A/g1":function(Ze,we){Ze.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(Ze,we,M){Ze.exports=M.p+"static/Certificate.80413b23.png"},AZ8Y:function(Ze,we,M){"use strict";M.r(we);var ue=M("T2oS"),Y=M("W9HT"),P=M("k1fw"),y=M("9og8"),E=M("tJVT"),_=M("PpiC"),C=M("Znn+"),m=M("ZTPi"),c=M("WmNS"),r=M.n(c),n=M("q1tI"),e=M.n(n),s=M("Ty5D"),u=M("9kvl"),o=M("oBTY"),f=M("pC0b"),d=M("GzdX"),a=M("+L6B"),h=M("2/Rp"),g=M("+BJd"),p=M("mr32"),S=M("qVdP"),w=M("jsC+"),B=M("lUTK"),b=M("BvKs"),A=M("5Dmo"),l=M("3S7+"),i=M("7Kak"),x=M("9yH6"),O=M("2qtc"),T=M("kLXV"),D=M("miYZ"),R=M("tsqr"),k=M("0NbB"),H=M("JTSX"),J=M.n(H),U=M("xKgJ"),K=M("Mgx3"),G=M("ozfa"),N=M("MJZm"),Q=M("sRBo"),X=M("kaz8"),te=M("14J3"),oe=M("BMrR"),me=M("jCWc"),se=M("kPKH"),_e=M("OaEy"),Ae=M("2fM7"),Ee=M("wd/R"),pe=M.n(Ee),he=M("kNP/"),ie=M.n(he),fe=M("1vsH"),ge=Ae.a.Option,ce=function(Ye){var Je=Ye.pathsDetail,Te=Ye.globalSetting,Ve=Ye.loading,Be=Ye.dispatch,at=Object(_.a)(Ye,["pathsDetail","globalSetting","loading","dispatch"]),nt=Object(s.i)(),st=Object(n.useState)(),it=Object(E.a)(st,2),dt=it[0],Dt=it[1],Qt=Object(n.useState)([]),Bt=Object(E.a)(Qt,2),$t=Bt[0],ln=Bt[1],On=Object(n.useState)([]),Wt=Object(E.a)(On,2),qt=Wt[0],yn=Wt[1],Rn=Object(n.useState)([]),tn=Object(E.a)(Rn,2),bn=tn[0],Ln=tn[1],Xn=Object(n.useState)(),rn=Object(E.a)(Xn,2),hn=rn[0],An=rn[1],_n=Object(n.useState)(),tr=Object(E.a)(_n,2),cn=tr[0],Fn=tr[1],Ir=Object(n.useState)(!0),hr=Object(E.a)(Ir,2),Br=hr[0],ur=hr[1];Object(n.useEffect)(function(){Je.actionTabs.key==="PathsDetail-SendToClass"&&Qn()},[Je.actionTabs.key]);var Fr=function(on){switch(on.item_type){case"Shixun":return e.a.createElement("span",null,e.a.createElement("span",{className:"mr5 c-light-primary"},"\u5B9E\u8BAD"),on.name);case"Attachment":return e.a.createElement("span",null,e.a.createElement("span",{className:"mr5 c-cyan-blue"},"\u8BFE\u4EF6"),on.name);case"VideoItem":return e.a.createElement("span",null,e.a.createElement("span",{className:"mr5 c-purple-8C1"},"\u89C6\u9891"),on.name);case"StageCatalog":return e.a.createElement("span",null,on.name);default:return""}},Qn=function(){var fn=Object(y.a)(r.a.mark(function on(){var Gn,Jn,Sn;return r.a.wrap(function(Kr){for(;;)switch(Kr.prev=Kr.next){case 0:return Kr.next=2,Object(K.G)({id:nt.pathId});case 2:Gn=Kr.sent,Gn&&(ln((Gn==null?void 0:Gn.courses)||[]),Sn=(Jn=Gn.stages)===null||Jn===void 0?void 0:Jn.map(function(Va,Ra){var aa;return{title:Va.state_name||"",key:Ra,children:(aa=Va.items)===null||aa===void 0?void 0:aa.map(function(gi,ti){var Ka;return Object(P.a)(Object(P.a)({},gi),{},{disabled:gi.is_jupyter,title:Fr(gi),key:"".concat(Ra,"-").concat(ti),children:(Ka=gi.children)===null||Ka===void 0?void 0:Ka.map(function(no,ro){return Object(P.a)(Object(P.a)({},no),{},{disabled:no.is_jupyter,title:Fr(no),key:"".concat(Ra,"-").concat(ti,"-").concat(ro)})})})})}}),yn(Sn||[]));case 4:case"end":return Kr.stop()}},on)}));return function(){return fn.apply(this,arguments)}}(),kr=function(on,Gn){Ln(on)},ta=function(on){var Gn=on.target.checked,Jn=[];qt==null||qt.map(function(Sn,mr){var Kr;Jn.push(mr),Sn==null||((Kr=Sn.children)===null||Kr===void 0)||Kr.map(function(Va,Ra){var aa;Jn.push("".concat(mr,"-").concat(Ra)),Va==null||((aa=Va.children)===null||aa===void 0)||aa.map(function(gi,ti){Jn.push("".concat(mr,"-").concat(Ra,"-").concat(ti))})})}),Ln(Gn?Jn:[])},Wr=function(){var on=bn.filter(function(Kr){return typeof Kr=="string"}),Gn=[],Jn=[],Sn=[],mr=[];return qt==null||qt.map(function(Kr,Va){var Ra;Kr==null||((Ra=Kr.children)===null||Ra===void 0)||Ra.map(function(aa,gi){var ti;on.includes("".concat(Va,"-").concat(gi))&&(Sn.push(aa.stage_item_id),aa.item_type==="Shixun"?Gn.push(aa.id):aa.item_type==="Attachment"?mr.push(aa.id):aa.item_type==="VideoItem"&&Jn.push(aa.id)),aa==null||((ti=aa.children)===null||ti===void 0)||ti.map(function(Ka,no){on.includes("".concat(Va,"-").concat(gi,"-").concat(no))&&(Sn.push(Ka.stage_item_id),Ka.item_type==="Shixun"?Gn.push(Ka.id):Ka.item_type==="Attachment"?mr.push(Ka.id):Ka.item_type==="VideoItem"&&Jn.push(Ka.id))})})}),{shixunIds:Gn,videoItemIds:Jn,stageItemIds:Sn,coursewareIds:mr}},yr=function(){var fn=Object(y.a)(r.a.mark(function on(){var Gn,Jn,Sn;return r.a.wrap(function(Kr){for(;;)switch(Kr.prev=Kr.next){case 0:if(Gn=Wr(),Jn=Gn.stageItemIds,console.log(Jn,"stageItemIds"),dt){Kr.next=5;break}return R.b.info("\u60A8\u8FD8\u672A\u9009\u62E9\u53D1\u9001\u7684\u8BFE\u5802"),Kr.abrupt("return");case 5:if(!(!jn.length&&!ir.length&&!zn.length)){Kr.next=8;break}return R.b.info("\u60A8\u8FD8\u672A\u9009\u62E9\u5B9E\u8BAD\u6216\u8005\u89C6\u9891"),Kr.abrupt("return");case 8:return Fn(!0),Kr.next=11,Object(K.P)({id:nt.pathId,course_id:dt,stage_item_id:Jn,sync_catelog:Br?1:0}).catch(function(Va){return Fn(!1)});case 11:Sn=Kr.sent,Fn(!1),Dn(),(Sn==null?void 0:Sn.status)===1&&T.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},Sn.message),onOk:function(){var Ra,aa=Sn==null||((Ra=Sn.url.split("/"))===null||Ra===void 0)?void 0:Ra[2];Object(fe.Q)("/classrooms/".concat(aa,"/shixun_homework"))}});case 15:case"end":return Kr.stop()}},on)}));return function(){return fn.apply(this,arguments)}}(),Dn=function(){Be({type:"pathsDetail/setActionTabs",payload:{}}),Dt(null),Ln([]),An(null)},ar=Wr(),Pr=ar.shixunIds,jn=Pr===void 0?[]:Pr,$n=ar.videoItemIds,ir=$n===void 0?[]:$n,Zn=ar.coursewareIds,zn=Zn===void 0?[]:Zn;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:yr,onCancel:Dn},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:dt,style:{width:"100%"},onSelect:function(on){return Dt(on)},optionLabelProp:"lable"},$t==null?void 0:$t.map(function(fn,on){return e.a.createElement(ge,{key:fn.course_id,value:fn.course_id,lable:fn.course_name},e.a.createElement(oe.a,{justify:"space-between"},e.a.createElement(se.a,null,fn.course_name),e.a.createElement(se.a,null,pe()(fn.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:ta,className:"font14 ml20"},"\u5168\u9009")),!!(qt!=null&&qt.length)&&e.a.createElement(N.a,{className:ie.a.tree,checkable:!0,defaultExpandAll:!0,treeData:qt,checkedKeys:bn,onCheck:function(on,Gn){return kr(on,Gn)}})),e.a.createElement("div",{className:ie.a.createMkdir},e.a.createElement(X.a,{checked:Br,onChange:function(on){return ur(on.target.checked)},className:"font14"},"\u9009\u4E2D\u7AE0\u8282\u5728\u8BFE\u5802\u4E2D\u540C\u6B65\u751F\u6210\u76EE\u5F55"),!!(jn.length+ir.length)&&e.a.createElement("span",null,e.a.createElement("span",null,"\u5DF2\u9009\u4E2D\uFF1A"),!!jn.length&&e.a.createElement(e.a.Fragment,null,e.a.createElement("span",{className:"c-light-primary"},jn.length," "),e.a.createElement("span",null,"\u4E2A\u5B9E\u8BAD")),!!ir.length&&e.a.createElement(e.a.Fragment,null,e.a.createElement("span",{className:"c-purple-8C1 ml5"},ir.length," "),e.a.createElement("span",null,"\u4E2A\u89C6\u9891")),!!zn.length&&e.a.createElement(e.a.Fragment,null,e.a.createElement("span",{className:"c-cyan-blue ml5"},zn.length," "),e.a.createElement("span",null,"\u4E2A\u8BFE\u4EF6"))))))},Ie=Object(u.a)(function(Ge){var Ye=Ge.pathsDetail,Je=Ge.loading,Te=Ge.globalSetting;return{pathsDetail:Ye,globalSetting:Te,loading:Je.effects}})(ce),Fe=M("NLgs"),ke=M("5NDa"),re=M("5rEg"),F=M("6UJt"),W=M("DFOY"),de=M("y8nQ"),ne=M("Vl3Y"),le=M("ErOA"),De=M("OC45"),Xe=M.n(De),xt=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),it=Object(E.a)(st,2),dt=it[0],Dt=it[1],Qt=Object(n.useState)(!1),Bt=Object(E.a)(Qt,2),$t=Bt[0],ln=Bt[1],On=Object(n.useState)([]),Wt=Object(E.a)(On,2),qt=Wt[0],yn=Wt[1];Object(n.useEffect)(function(){Rn()},[]);var Rn=function(){var bn=Object(y.a)(r.a.mark(function Ln(){var Xn;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(le.a)("/api/disciplines.json",{method:"get",params:{source:Je}});case 4:Xn=hn.sent,yn(Xn.disciplines||[]),ln(!1);case 7:case"end":return hn.stop()}},Ln)}));return function(){return bn.apply(this,arguments)}}(),tn=function(){var Ln=nt.getFieldsValue(),Xn=Ln.sub_discipline_id,rn=Ln.discipline_name,hn=Ln.sub_discipline_name;if((!Xn||Xn&&Xn.length===0)&&(!rn||!hn))return R.b.warn("\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B"),!1;Ve({user_customize:Xn&&Xn.length===0||!Xn,sub_discipline_id:Xn,discipline_name:rn,sub_discipline_name:hn})};return e.a.createElement(T.a,{width:600,className:Xe.a.applyPublicContainer,title:"\u6DFB\u52A0\u65B9\u5411&\u8BFE\u7A0B\u5F39\u7A97",okText:"\u7533\u8BF7\u516C\u5F00",visible:!0,onCancel:Te,onOk:tn},e.a.createElement("div",{className:Xe.a.applyPublicContent},e.a.createElement("div",{className:Xe.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:qt,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:function(Ln,Xn){return nt.setFieldsValue({sub_discipline_id:Ln})}}),e.a.createElement("div",{className:Xe.a.action,onClick:function(){return Dt(!dt)}},e.a.createElement("div",null,"\u81EA\u5B9A\u4E49\u65B9\u5411&\u8BFE\u7A0B"),e.a.createElement("div",null,e.a.createElement("span",null,dt?"\u5C55\u5F00":"\u6536\u8D77"),e.a.createElement("span",null,e.a.createElement("i",{className:"iconfont ".concat(dt?"icon-zhankai2":"icon-shouqi1")}))))),!dt&&e.a.createElement(e.a.Fragment,null,e.a.createElement(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"})))),$t&&e.a.createElement("div",{className:Xe.a.spin},e.a.createElement(Y.a,null))))},Ke=xt,ze=M("9Bee"),yt=M("m3rI"),Et=M("OljG"),ct=M.n(Et),lt=M("MKdu"),rt=M.n(lt),qe=M("m/50"),$e=M.n(qe),Pe=M("Nddv"),je=M.n(Pe),Ne=M("vUf6"),et=M.n(Ne),mt=function(Ye){var Je,Te,Ve,Be,at,nt,st,it,dt,Dt,Qt,Bt,$t,ln,On,Wt,qt,yn,Rn,tn,bn,Ln,Xn,rn,hn,An,_n,tr,cn,Fn,Ir,hr,Br,ur,Fr,Qn,kr,ta,Wr,yr,Dn,ar,Pr,jn,$n,ir,Zn,zn,fn,on,Gn,Jn,Sn,mr,Kr,Va,Ra,aa,gi,ti,Ka,no,ro,Di,Io,Mo,ao,Ii,ki,So,co,ho,Qi,Mi,Vi,Ki,go,Fi,yo,Xa,io,Lo,Wi,Ti,Ao,qo,$o,Go,Xi,es,yi,Ua,li,Na,Yi,bo,Li,Vo,Po,Xo,Bi,In,Ji,vs,ts,ca,Ur,ui,wa,To,Zi,Eo,oo,dn=Ye.pathsDetail,Uo=Ye.user,Ss=Ye.globalSetting,gs=Ye.loading,Za=Ye.dispatch,Tn=Object(_.a)(Ye,["pathsDetail","user","globalSetting","loading","dispatch"]),Lt=Object(s.i)(),Yt=Object(n.useState)({}),Cn=Object(E.a)(Yt,2),Vt=Cn[0],er=Cn[1],lr=Object(n.useRef)(1),fr=Object(n.useState)(),$r=Object(E.a)(fr,2),mn=$r[0],ni=$r[1],Pi=Object(n.useState)(!1),La=Object(E.a)(Pi,2),da=La[0],Oi=La[1],qi=Object(n.useState)(!1),qa=Object(E.a)(qi,2),Ya=qa[0],fi=qa[1],ko=Object(n.useState)({status:!1}),Fo=Object(E.a)(ko,2),No=Fo[0],jo=Fo[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(){jo({status:!1})},[]),Object(n.useEffect)(function(){function Zr(){return Rr.apply(this,arguments)}function Rr(){return Rr=Object(y.a)(r.a.mark(function Ta(){var Or,Wn,Pn,wn,nr,Bn,_r;return r.a.wrap(function(jr){for(;;)switch(jr.prev=jr.next){case 0:return jr.next=2,Za({type:"pathsDetail/getPathsDetail",payload:{id:Lt.pathId}});case 2:Or=jr.sent,Or!=null&&Or.toast&&(Or!=null&&(Wn=Or.toast)!==null&&Wn!==void 0&&Wn.is_open&&((Pn=Or.toast)===null||Pn===void 0?void 0:Pn.open_num)===-1?fi(!0):Or!=null&&(wn=Or.toast)!==null&&wn!==void 0&&wn.is_open&&(Or==null||((nr=Or.toast)===null||nr===void 0)?void 0:nr.open_num)===1?(_r=JSON.parse(localStorage.getItem("pathsshow"))||[],((Bn=_r.filter(function(Pa){return Pa===(Lt==null?void 0:Lt.pathId)}))===null||Bn===void 0?void 0:Bn.length)>0?fi(!1):(fi(!0),_r.push(Lt==null?void 0:Lt.pathId),localStorage.setItem("pathsshow",JSON.stringify(_r)))):fi(!1));case 4:case"end":return jr.stop()}},Ta)})),Rr.apply(this,arguments)}Zr()},[]),Object(n.useEffect)(function(){var Zr,Rr,Ta,Or,Wn=(Zr=dn.detail)===null||Zr===void 0||((Rr=Zr.courses)===null||Rr===void 0)?void 0:Rr.length;if(!Wn)return;var Pn;if((Ta=dn.detail)!==null&&Ta!==void 0&&Ta.has_start){var wn,nr,Bn=(wn=dn.detail)===null||wn===void 0||((nr=wn.courses)===null||nr===void 0)?void 0:nr.findIndex(function(pi){var Ei;return((Ei=pi.course_status)===null||Ei===void 0?void 0:Ei.status)===1});Pn=Bn>-1?Bn:0}else{var _r,Mr,jr,Pa,Ja,bi=(_r=dn.detail)===null||_r===void 0||((Mr=_r.courses)===null||Mr===void 0||((jr=Mr.map(function(pi){var Ei;return(Ei=pi.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=(Pa=dn.detail)===null||Pa===void 0||((Ja=Pa.courses)===null||Ja===void 0)?void 0:Ja.findIndex(function(pi){var Ei;return((Ei=pi.course_status)===null||Ei===void 0?void 0:Ei.status)===0}),Pn=bi>-1?bi:Pn}er(((Or=dn.detail)===null||Or===void 0?void 0:Or.courses[Pn])||{})},[dn.detail]);var hl=function(Rr){var Ta,Or,Wn=(Ta=dn.detail)===null||Ta===void 0||((Or=Ta.courses)===null||Or===void 0)?void 0:Or.find(function(Pn){return Pn.course_id===Rr});er(Wn||{}),Za({type:"classroomList/setActionTabs",payload:{key:"\u4FEE\u6539\u5F00\u8BFE\u65F6\u95F4",name:Rr}})},Al=function(){var Zr=Object(y.a)(r.a.mark(function Rr(){var Ta;return r.a.wrap(function(Wn){for(;;)switch(Wn.prev=Wn.next){case 0:return Wn.next=2,Object(K.k)({container_id:Lt.pathId,container_type:"Subject"});case 2:Ta=Wn.sent,Ta.status===0&&(ds(),R.b.success(Ta.message));case 4:case"end":return Wn.stop()}},Rr)}));return function(){return Zr.apply(this,arguments)}}(),Qs=function(){var Zr=Object(y.a)(r.a.mark(function Rr(){var Ta;return r.a.wrap(function(Wn){for(;;)switch(Wn.prev=Wn.next){case 0:return Wn.next=2,Object(K.n)({container_id:Lt.pathId,container_type:"Subject"});case 2:Ta=Wn.sent,Ta.status===0&&(ds(),R.b.success(Ta.message));case 4:case"end":return Wn.stop()}},Rr)}));return function(){return Zr.apply(this,arguments)}}(),cr=function(){var Zr=Object(y.a)(r.a.mark(function Rr(){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\u5220\u9664\u5B9E\u8DF5\u8BFE\u7A0B?"),onOk:function(){var Wn=Object(y.a)(r.a.mark(function wn(){var nr;return r.a.wrap(function(_r){for(;;)switch(_r.prev=_r.next){case 0:return _r.next=2,Object(K.q)({id:Lt.pathId});case 2:nr=_r.sent,nr.status===1&&u.d.push("/paths");case 4:case"end":return _r.stop()}},wn)}));function Pn(){return Wn.apply(this,arguments)}return Pn}()});case 1:case"end":return Or.stop()}},Rr)}));return function(){return Zr.apply(this,arguments)}}(),ys=function(){var Zr=Object(y.a)(r.a.mark(function Rr(){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 Wn=Object(y.a)(r.a.mark(function wn(){var nr;return r.a.wrap(function(_r){for(;;)switch(_r.prev=_r.next){case 0:return _r.next=2,Object(K.h)({id:Lt.pathId});case 2:nr=_r.sent,(nr==null?void 0:nr.status)===0&&(ds(),R.b.success(nr.message));case 4:case"end":return _r.stop()}},wn)}));function Pn(){return Wn.apply(this,arguments)}return Pn}()});case 1:case"end":return Or.stop()}},Rr)}));return function(){return Zr.apply(this,arguments)}}(),Ks=function(){var Zr=Object(y.a)(r.a.mark(function Rr(){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:da},onOk:function(){var Wn=Object(y.a)(r.a.mark(function wn(){var nr;return r.a.wrap(function(_r){for(;;)switch(_r.prev=_r.next){case 0:return Oi(!0),_r.next=3,Object(K.m)({id:Lt.pathId});case 3:nr=_r.sent,(nr==null?void 0:nr.status)===1&&(ds(),R.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F")),Oi(!1);case 6:case"end":return _r.stop()}},wn)}));function Pn(){return Wn.apply(this,arguments)}return Pn}()});case 1:case"end":return Or.stop()}},Rr)}));return function(){return Zr.apply(this,arguments)}}(),Bs=function(){dn.detail&&dn.detail.has_sub_discipline?bs({user_customize:!1}):fo(!0)},fo=function(Rr){jo({status:Rr})},bs=function(Rr){T.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A\u7533\u8BF7",cancelText:"\u53D6\u6D88\u7533\u8BF7",content:e.a.createElement("div",{className:"tc"},"\u516C\u5F00\u8BFE\u7A0B\u9700\u7ECF\u8FC7\u5E73\u53F0\u6807\u51C6\u5316\u5BA1\u6838\uFF0C\u5BA1\u6838\u5468\u671F\u4E3A1-2\u5929\uFF0C\u516C\u5F00",e.a.createElement("br",null),"\u7684\u8BFE\u7A0B\u5C06\u5BF9\u5E73\u53F0\u6240\u6709\u4EBA\u53EF\u89C1\u3002\u82E5\u4EC5\u672C\u4EBA\u6559\u5B66\u4F7F\u7528\u5219\u65E0\u9700",e.a.createElement("br",null),"\u7533\u8BF7\u516C\u5F00\uFF0C\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u5373\u53EF",e.a.createElement("br",null)),onOk:function(){var Ta=Object(y.a)(r.a.mark(function Wn(){var Pn,wn;return r.a.wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:return Pn={user_customize:Rr.user_customize},Rr.user_customize?Pn=Object(P.a)(Object(P.a)({},Pn),{},{discipline_name:Rr.discipline_name,sub_discipline_name:Rr.sub_discipline_name}):Rr.sub_discipline_id&&(Pn=Object(P.a)(Object(P.a)({},Pn),{},{sub_discipline_id:Rr.sub_discipline_id})),Bn.next=4,Object(K.g)(Object(P.a)({id:Lt.pathId},Pn));case 4:wn=Bn.sent,((wn==null?void 0:wn.status)===0||(wn==null?void 0:wn.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 Bn.stop()}},Wn)}));function Or(){return Ta.apply(this,arguments)}return Or}()})},Ws=function(){var Zr=Object(y.a)(r.a.mark(function Rr(){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 Wn=Object(y.a)(r.a.mark(function wn(){var nr;return r.a.wrap(function(_r){for(;;)switch(_r.prev=_r.next){case 0:return _r.next=2,Object(K.l)({id:Lt.pathId});case 2:nr=_r.sent,(nr==null?void 0:nr.status)===0&&(ds(),R.b.success("\u64A4\u9500\u7533\u8BF7\u516C\u5F00\u6210\u529F"));case 4:case"end":return _r.stop()}},wn)}));function Pn(){return Wn.apply(this,arguments)}return Pn}()});case 1:case"end":return Or.stop()}},Rr)}));return function(){return Zr.apply(this,arguments)}}(),Ms=function(){var Zr=Object(y.a)(r.a.mark(function Rr(){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(x.a.Group,{defaultValue:1,onChange:function(Pn){return lr.current=Pn.target.value}},e.a.createElement(x.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(x.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 Wn=Object(y.a)(r.a.mark(function wn(){return r.a.wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:Object(fe.Q)("/classrooms/news/".concat(Lt.pathId,"/newgold/").concat(lr.current));case 1:case"end":return Bn.stop()}},wn)}));function Pn(){return Wn.apply(this,arguments)}return Pn}()});case 1:case"end":return Or.stop()}},Rr)}));return function(){return Zr.apply(this,arguments)}}(),Es=function(){T.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u7ACB\u5373\u9884\u7EA6\uFF1F"),onOk:function(){var Rr=Object(y.a)(r.a.mark(function Or(){var Wn;return r.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:return wn.next=2,Object(K.i)({id:Lt.pathId});case 2:Wn=wn.sent,Wn.status===0&&(ni(!0),R.b.success(Wn.message));case 4:case"end":return wn.stop()}},Or)}));function Ta(){return Rr.apply(this,arguments)}return Ta}()})},Ni=function(){if(!Object(Fe.e)(Za))return;T.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u5B9A\u52A0\u5165\u8BE5\u8BFE\u5802"),onOk:function(){var Rr=Object(y.a)(r.a.mark(function Or(){var Wn,Pn;return r.a.wrap(function(nr){for(;;)switch(nr.prev=nr.next){case 0:return nr.next=2,Object(K.L)({id:Vt==null?void 0:Vt.course_id});case 2:Wn=nr.sent,Wn.status===0&&(R.b.success(Wn.message),Za({type:"pathsDetail/getPathsDetail",payload:{id:Lt.pathId}}),((Pn=Vt.course_status)===null||Pn===void 0?void 0:Pn.status)===1&&Object(fe.Q)("/classrooms/".concat(Vt==null?void 0:Vt.course_id,"/shixun_homework")));case 4:case"end":return nr.stop()}},Or)}));function Ta(){return Rr.apply(this,arguments)}return Ta}()})},zs=function(){var Rr;if((Rr=dn.detail)!==null&&Rr!==void 0&&Rr.need_authorize){Object(Fe.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(Fe.e)(Za))return;Za({type:"pathsDetail/setActionTabs",payload:{key:"PathsDetail-SendToClass"}})},ds=function(){Za({type:"pathsDetail/getPathsDetail",payload:{id:Lt.pathId}}),Za({type:"pathsDetail/getRightData",payload:{id:Lt.pathId}})},Ho=!!((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(Zr){return(Zr==null?void 0:Zr.course_id)===(Vt==null?void 0:Vt.course_id)}))+1,Qo=Ls===((st=dn.detail)===null||st===void 0||((it=st.courses)===null||it===void 0)?void 0:it.length);return e.a.createElement("section",null,e.a.createElement("aside",{className:J.a.banner,style:{backgroundImage:dn!=null&&(dt=dn.detail)!==null&&dt!==void 0&&(Dt=dt.attachments)!==null&&Dt!==void 0&&(Qt=Dt[0])!==null&&Qt!==void 0&&Qt.url?"url(".concat(yt.a.API_SERVER+(dn==null||((Bt=dn.detail)===null||Bt===void 0||(($t=Bt.attachments)===null||$t===void 0||((ln=$t[0])===null||ln===void 0)))?void 0:ln.url),")"):"url(".concat(ct.a,")"),marginBottom:(On=dn.detail)!==null&&On!==void 0&&(Wt=On.courses)!==null&&Wt!==void 0&&Wt.length?70:20}},e.a.createElement("aside",{className:J.a.wrp},e.a.createElement("div",{className:J.a.operationWrap},!!((qt=dn.detail)!==null&&qt!==void 0&&qt.is_free)&&((yn=dn.detail)===null||yn===void 0?void 0:yn.publish_status)!==0&&(((Rn=dn.detail)===null||Rn===void 0?void 0:Rn.allow_add_member)||!Object(U.m)())&&e.a.createElement(l.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")),((tn=dn.detail)===null||tn===void 0?void 0:tn.allow_statistics)&&((bn=dn.detail)===null||bn===void 0?void 0:bn.public_status)===2&&e.a.createElement("span",{onClick:function(){return u.d.push("/paths/".concat(Lt.pathId,"/statistics"))},style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"26px"}},e.a.createElement("img",{src:et.a,style:{marginRight:"10px"}}),"\u5B66\u4E60\u7EDF\u8BA1"),((Ln=dn.detail)===null||Ln===void 0?void 0:Ln.allow_add_member)&&e.a.createElement(w.a,{overlay:e.a.createElement(b.a,null,((Xn=dn.detail)===null||Xn===void 0?void 0:Xn.courses)&&(((rn=dn.detail)===null||rn===void 0?void 0:rn.is_creator)&&!!((hn=Uo.userInfo)!==null&&hn!==void 0&&hn.professional_certification)||Object(U.o)())&&e.a.createElement(b.a.Item,{style:{textAlign:"center"},onClick:Ms},"\u5F00\u8BFE"),((An=dn.detail)===null||An===void 0?void 0:An.allow_statistics)&&e.a.createElement(b.a.Item,{style:{textAlign:"center"},onClick:function(){return u.d.push("/paths/".concat(Lt.pathId,"/edit"))}},"\u7F16\u8F91\u8BFE\u7A0B"),((_n=dn.detail)===null||_n===void 0?void 0:_n.allow_add_member)&&((tr=dn.detail)===null||tr===void 0?void 0:tr.publish_status)===0&&e.a.createElement(b.a.Item,{style:{textAlign:"center"},onClick:ys},"\u53D1\u5E03\u8BFE\u7A0B"),((cn=dn.detail)===null||cn===void 0?void 0:cn.allow_statistics)&&((Fn=dn.detail)===null||Fn===void 0?void 0:Fn.publish_status)===2&&((Ir=dn.detail)===null||Ir===void 0?void 0:Ir.public_status)===0&&e.a.createElement(b.a.Item,{style:{textAlign:"center"},onClick:Ks},"\u64A4\u9500\u53D1\u5E03"),((hr=dn.detail)===null||hr===void 0?void 0:hr.allow_statistics)&&((Br=dn.detail)===null||Br===void 0?void 0:Br.publish_status)===2&&((ur=dn.detail)===null||ur===void 0?void 0:ur.public_status)===0&&e.a.createElement(b.a.Item,{style:{textAlign:"center"},onClick:Bs},"\u516C\u5F00\u8BFE\u7A0B"),((Fr=dn.detail)===null||Fr===void 0?void 0:Fr.allow_statistics)&&((Qn=dn.detail)===null||Qn===void 0?void 0:Qn.public_status)===1&&e.a.createElement(b.a.Item,{style:{textAlign:"center"},onClick:Ws},"\u64A4\u9500\u7533\u8BF7\u516C\u5F00"),Object(U.c)()&&((kr=dn.detail)===null||kr===void 0?void 0:kr.allow_statistics)&&((ta=dn.detail)===null||ta===void 0?void 0:ta.public_status)===2&&e.a.createElement(b.a.Item,{style:{textAlign:"center"},onClick:Ws},"\u64A4\u9500\u516C\u5F00"),((Wr=dn.detail)===null||Wr===void 0?void 0:Wr.allow_delete)&&e.a.createElement(b.a.Item,{style:{textAlign:"center"},onClick:cr},"\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:[J.a.titleWrap,((yr=dn.detail)===null||yr===void 0||((Dn=yr.name)===null||Dn===void 0)?void 0:Dn.indexOf(`
`))&&J.a.titleFlexEnd].join(" ")},e.a.createElement("span",{className:J.a.title},e.a.createElement("strong",null,(ar=dn.detail)===null||ar===void 0||((Pr=ar.name)===null||Pr===void 0)?void 0:Pr.split(`
`)[0]),e.a.createElement("span",{className:"font24"},e.a.createElement("br",null),(jn=dn.detail)===null||jn===void 0||(($n=jn.name)===null||$n===void 0)?void 0:$n.split(`
`).filter(function(Zr,Rr){return Rr!==0}).join(""))),e.a.createElement("div",null,((ir=dn.detail)===null||ir===void 0?void 0:ir.excellent)&&e.a.createElement(p.a,{className:"".concat(J.a.openCourseTag," font14"),style:{background:"#44D7B6",border:"1px solid #44D7B6"}},"\u5F00\u653E\u8BFE\u7A0B"),((Zn=dn.detail)===null||Zn===void 0?void 0:Zn.featured)>0&&e.a.createElement("div",null,((zn=dn.detail)===null||zn===void 0?void 0:zn.featured)===1&&e.a.createElement(p.a,{className:"".concat(J.a.openCourseTag," font14"),style:{background:"#FF8C29",border:"1px solid #FF8C29"}},"\u56FD\u5BB6\u4E00\u6D41"),((fn=dn.detail)===null||fn===void 0?void 0:fn.featured)===2&&e.a.createElement(p.a,{className:"".concat(J.a.openCourseTag," font14"),style:{background:"#4361F2",border:"1px solid #4361F2"}},"\u519B\u961F\u4E00\u6D41"),((on=dn.detail)===null||on===void 0?void 0:on.featured)===3&&e.a.createElement(p.a,{className:"".concat(J.a.openCourseTag," font14"),style:{background:"#B38D24",border:"1px solid #B38D24"}},"\u7701\u7EA7\u4E00\u6D41")),((Gn=Uo.userInfo)===null||Gn===void 0?void 0:Gn.login)&&((Jn=dn.detail)===null||Jn===void 0?void 0:Jn.is_collect)&&e.a.createElement(h.a,{className:"".concat(J.a.button," ").concat(J.a.buttonTransparent," mr15"),onClick:Al},"\u53D6\u6D88\u6536\u85CF"),((Sn=Uo.userInfo)===null||Sn===void 0?void 0:Sn.login)&&!((mr=dn.detail)!==null&&mr!==void 0&&mr.is_collect)&&e.a.createElement("span",{style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"20px",display:"flex"},onClick:Qs},e.a.createElement("img",{src:$e.a,style:{marginRight:"10px"}}),e.a.createElement("span",{style:{height:"24px"}},"\u6536\u85CF")),!Object(U.p)()&&e.a.createElement("span",{style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"20px",display:"flex"},className:"mr15",onClick:function(){if(!Object(Fe.e)(Za))return}},e.a.createElement("img",{src:$e.a,style:{marginRight:"10px"}}),e.a.createElement("span",{style:{height:"24px"}},"\u6536\u85CF")))),e.a.createElement("div",{className:J.a.contentWrap},e.a.createElement("div",{className:J.a.contentLeftWrap},!!((Kr=dn.detail)!==null&&Kr!==void 0&&Kr.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)),!!((Ra=dn.detail)!==null&&Ra!==void 0&&Ra.shixuns_count)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,"\u5355\u5143"),e.a.createElement("p",{className:"mt3"},(aa=dn.detail)===null||aa===void 0?void 0:aa.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"},(ti=dn.detail)===null||ti===void 0?void 0:ti.challenge_choose_count)),!!((Ka=dn.detail)!==null&&Ka!==void 0&&Ka.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"},(Di=dn.detail)===null||Di===void 0?void 0:Di.videos_count)),!!((Io=dn.detail)!==null&&Io!==void 0&&Io.attachment_count)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,"\u8BFE\u4EF6"),e.a.createElement("p",{className:"mt3"},(Mo=dn.detail)===null||Mo===void 0?void 0:Mo.attachment_count)),((ao=dn.detail)===null||ao===void 0?void 0:ao.publish_status)!==0&&!!((Ii=dn.detail)!==null&&Ii!==void 0&&Ii.subject_score)&&e.a.createElement("div",{className:"mr30"},e.a.createElement("span",null,"\u7ECF\u9A8C\u503C"),e.a.createElement("p",{className:"mt3"},(ki=dn.detail)===null||ki===void 0?void 0:ki.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"},(Qi=dn.detail)===null||Qi===void 0?void 0:Qi.member_count)),((Mi=dn.detail)===null||Mi===void 0?void 0:Mi.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(fe.B)((Vi=dn.detail)===null||Vi===void 0?void 0:Vi.averge_star),disabled:!0,className:J.a.rating})))),!!((Ki=dn.detail)!==null&&Ki!==void 0&&(go=Ki.courses)!==null&&go!==void 0&&go.length)&&e.a.createElement("aside",{className:J.a.nav},e.a.createElement("div",{className:J.a.navLeft},Vt.course_identity<4&&e.a.createElement(l.a,{placement:"bottom",title:"\u7F16\u8F91\u8BFE\u5802"},e.a.createElement("a",{href:"/classrooms/".concat(Vt==null?void 0:Vt.course_id,"/newgolds/settings"),target:"_blank"},e.a.createElement("i",{className:"iconfont icon-bianji1 ".concat(J.a.navLeftIcon)}))),e.a.createElement(w.a,{overlay:e.a.createElement(b.a,null,(Fi=Object(o.a)((Xa=dn.detail)===null||Xa===void 0?void 0:Xa.courses))===null||Fi===void 0||((yo=Fi.reverse())===null||yo===void 0)?void 0:yo.map(function(Zr,Rr){var Ta,Or;return e.a.createElement(b.a.Item,{key:Zr.course_id,onClick:function(){return hl(Zr.course_id)}},e.a.createElement("span",{className:"font14"},"\u7B2C",((Ta=dn.detail)===null||Ta===void 0||((Or=Ta.courses)===null||Or===void 0)?void 0:Or.length)-Rr,"\u671F"))}))},e.a.createElement("div",null,e.a.createElement("span",{className:"font14 current"},"\u7B2C",e.a.createElement("span",{className:J.a.colorOrange},Ls),"\u671F"),e.a.createElement(k.a,null))),e.a.createElement("div",{className:J.a.navContent},e.a.createElement("div",{className:J.a.contentItem},e.a.createElement("div",{className:J.a.contentItemTitle},"\u5F00\u8BFE\u65F6\u95F4\uFF1A"),e.a.createElement("div",{className:J.a.contentItemText},Vt==null?void 0:Vt.start_date)),e.a.createElement("div",{className:J.a.verticalLine}),e.a.createElement("div",{className:J.a.contentItem},e.a.createElement("div",{className:J.a.contentItemTitle},"\u7ED3\u8BFE\u65F6\u95F4\uFF1A"),e.a.createElement("div",{className:J.a.contentItemText},Vt==null?void 0:Vt.end_date)),e.a.createElement("div",{className:J.a.verticalLine}),e.a.createElement("div",{className:J.a.contentItem},e.a.createElement("div",{className:J.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:J.a.contentItemText},Vt==null?void 0:Vt.student_count," \u4EBA")))),e.a.createElement("div",{className:J.a.navRight,style:{display:"none"}},e.a.createElement("div",{className:J.a.flexRow},(Vt==null||((Lo=Vt.course_status)===null||Lo===void 0)?void 0:Lo.status)===1&&e.a.createElement("div",{className:"mr20 c-red-ee4"},Vt==null||((Wi=Vt.course_status)===null||Wi===void 0)?void 0:Wi.time),(Vt==null||((Ti=Vt.course_status)===null||Ti===void 0)?void 0:Ti.status)===2&&Vt.course_identity<6&&e.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F"),((Ao=Vt.course_status)===null||Ao===void 0?void 0:Ao.status)===2&&(Vt.course_identity<6?e.a.createElement("a",{className:J.a.classButton,href:"/classrooms/".concat(Vt==null||((qo=Vt.first_category_url)===null||qo===void 0||(($o=qo.split("/"))===null||$o===void 0))?void 0:$o[2],"/announcement"),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"):e.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F")),((Go=Vt.course_status)===null||Go===void 0?void 0:Go.status)===1&&Vt.course_identity>5&&e.a.createElement("div",{className:J.a.classButton,onClick:Ni},"\u7ACB\u5373\u52A0\u5165"),((Xi=Vt.course_status)===null||Xi===void 0?void 0:Xi.status)===1&&Vt.course_identity===5&&e.a.createElement("a",{className:J.a.classButton,href:"/classrooms/".concat(Vt==null||((es=Vt.first_category_url)===null||es===void 0||((yi=es.split("/"))===null||yi===void 0))?void 0:yi[2],"/announcement"),target:"_blank"},"\u7ACB\u5373\u5B66\u4E60"),((Ua=Vt.course_status)===null||Ua===void 0?void 0:Ua.status)===0&&Vt.course_identity>5&&e.a.createElement("div",{className:J.a.classButton,onClick:Ni},"\u7ACB\u5373\u62A5\u540D"),((li=Vt.course_status)===null||li===void 0?void 0:li.status)===0&&Vt.course_identity===5&&e.a.createElement("div",{className:J.a.classButton},"\u62A5\u540D\u6210\u529F"),((Vt==null||((Na=Vt.course_status)===null||Na===void 0)?void 0:Na.status)===0||(Vt==null||((Yi=Vt.course_status)===null||Yi===void 0)?void 0:Yi.status)===1)&&Vt.course_identity<5&&e.a.createElement("a",{className:J.a.classButton,href:"/classrooms/".concat(Vt==null||((bo=Vt.first_category_url)===null||bo===void 0||((Li=bo.split("/"))===null||Li===void 0))?void 0:Li[2],"/announcement"),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"),Ho&&Qo&&((Vo=dn.detail)===null||Vo===void 0?void 0:Vo.has_participate)&&e.a.createElement("span",{className:"".concat(J.a.classButton," ").concat(J.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),Ho&&Qo&&!((Po=dn.detail)!==null&&Po!==void 0&&Po.has_participate)&&(mn?e.a.createElement("span",{className:"".concat(J.a.classButton," ").concat(J.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):e.a.createElement("span",{className:"".concat(J.a.classButton," ").concat(J.a.bg28e),onClick:Es},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D"))),e.a.createElement("div",{className:J.a.flexRow},Ho&&!!((Xo=dn.detail)!==null&&Xo!==void 0&&(Bi=Xo.courses)!==null&&Bi!==void 0&&Bi.length)&&Qo&&e.a.createElement("span",{className:"mt20"},e.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(In=dn.detail)===null||In===void 0?void 0:In.student_count," ","\u4EBA\u65F6\u5373\u5C06\u5F00\u8BFE"),e.a.createElement("span",{className:""},"\u5F53\u524D\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\uFF1A",e.a.createElement("span",{className:"mr5 c-red-ee4"},mn===!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")),Ho&&!((ts=dn.detail)!==null&&ts!==void 0&&(ca=ts.courses)!==null&&ca!==void 0&&ca.length)&&Qo&&e.a.createElement("span",null,!((Ur=dn.detail)!==null&&Ur!==void 0&&Ur.has_participate)&&(mn===!0?e.a.createElement("span",{className:"".concat(J.a.classButton," ").concat(J.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):e.a.createElement("a",{className:"".concat(J.a.classButton," ").concat(J.a.bg28e),onClick:Es},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D")),((ui=dn.detail)===null||ui===void 0?void 0:ui.has_participate)&&e.a.createElement("span",{className:"".concat(J.a.classButton," ").concat(J.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),e.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(wa=dn.detail)===null||wa===void 0?void 0:wa.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"},mn===!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(Ie,null),No.status&&e.a.createElement(Ke,{type:"subject",onCancel:function(){return fo(!1)},onOk:function(Rr){fo(!1),bs(Rr)}}),e.a.createElement(T.a,{visible:Ya,title:"\u8BFE\u7A0B\u63D0\u793A",width:593,maskClosable:!1,onCancel:function(){fi(!1)},centered:!0,footer:e.a.createElement("div",null,e.a.createElement(h.a,{type:"primary",onClick:function(){fi(!1)}},"\u6211\u77E5\u9053\u4E86"))},e.a.createElement(ze.a,{style:{maxHeight:378,overflow:"auto"},value:dn==null||((Eo=dn.detail)===null||Eo===void 0||((oo=Eo.toast)===null||oo===void 0))?void 0:oo.content})))},At=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}})(mt),Ut=M("MXD1"),Xt=M("CFYs"),un=M("8Bcu"),jt=M.n(un),Zt=M("g9YV"),Mt=M("wCAj"),Tt=M("O3gP"),Ct=M("lrIw"),Re=M("RotF"),We=M.n(Re),St=M("oUNq"),ft=M("lzim"),It=M("55Ip"),Ot=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)([]),it=Object(E.a)(st,2),dt=it[0],Dt=it[1],Qt=Object(n.useState)(!0),Bt=Object(E.a)(Qt,2),$t=Bt[0],ln=Bt[1],On=Object(n.useState)(!1),Wt=Object(E.a)(On,2),qt=Wt[0],yn=Wt[1],Rn=ne.a.useForm(),tn=Object(E.a)(Rn,1),bn=tn[0],Ln=Object(n.useState)([]),Xn=Object(E.a)(Ln,2),rn=Xn[0],hn=Xn[1],An=Object(n.useState)(1),_n=Object(E.a)(An,2),tr=_n[0],cn=_n[1],Fn=Object(n.useState)([]),Ir=Object(E.a)(Fn,2),hr=Ir[0],Br=Ir[1],ur=Object(n.useState)(!0),Fr=Object(E.a)(ur,2),Qn=Fr[0],kr=Fr[1],ta=Object(n.useState)(!1),Wr=Object(E.a)(ta,2),yr=Wr[0],Dn=Wr[1];Object(n.useEffect)(function(){Je.actionTabs.key==="Collaborators-AddCollaborator"&&(kr(!0),ln(!0),ar())},[Je.actionTabs.key]);var ar=function(){var fn=Object(y.a)(r.a.mark(function on(){var Gn;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:Gn=Sn.sent,Dt(Gn.map(function(mr){return{value:mr}}));case 4:case"end":return Sn.stop()}},on)}));return function(){return fn.apply(this,arguments)}}(),Pr=function(){var on,Gn;if(!((on=bn.getFieldValue())!==null&&on!==void 0&&(Gn=on.keyword)!==null&&Gn!==void 0&&Gn.trim())){R.b.warn("\u8BF7\u8F93\u5165\u59D3\u540D"),hn([]);return}kr(!1),ln(!0),yn(!1),cn(1),Br([]),$n(!0)},jn=function(on){on=String(on);var Gn=hr.indexOf(on);Gn<0?hr.push(on):hr.splice(Gn,1),Br(Object(o.a)(hr))},$n=function(){var fn=Object(y.a)(r.a.mark(function on(){var Gn,Jn,Sn,mr,Kr,Va=arguments;return r.a.wrap(function(aa){for(;;)switch(aa.prev=aa.next){case 0:if(Gn=Va.length>0&&Va[0]!==void 0?Va[0]:!1,!($t&&!qt||Gn)){aa.next=11;break}return mr=bn.getFieldValue(),yn(!0),cn(Gn?1:tr+1),aa.next=7,Object(St.wb)({page:Gn?1:tr+1,container_id:nt.pathId,container_type:3,school_name:(mr==null?void 0:mr.school_name)||null,keyword:(mr==null||((Jn=mr.keyword)===null||Jn===void 0)?void 0:Jn.trim())||null});case 7:Kr=aa.sent,hn(Gn?Object(o.a)(Kr.users):[].concat(Object(o.a)(rn),Object(o.a)(Kr.users))),yn(!1),((Sn=Kr.users)===null||Sn===void 0?void 0:Sn.length)<10&&ln(!1);case 11:case"end":return aa.stop()}},on)}));return function(){return fn.apply(this,arguments)}}(),ir=function(){var fn=Object(y.a)(r.a.mark(function on(){var Gn;return r.a.wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:if(hr!=null&&hr.length){Sn.next=4;break}R.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"),Sn.next=10;break;case 4:return Dn(!0),Sn.next=7,Object(K.e)({id:nt.pathId,user_ids:hr});case 7:Gn=Sn.sent,Dn(!1),Gn&&(R.b.success("\u6DFB\u52A0\u6210\u529F"),Zn(),at&&at());case 10:case"end":return Sn.stop()}},on)}));return function(){return fn.apply(this,arguments)}}(),Zn=function(){bn.setFieldsValue({keyword:""}),Ve({type:"pathsDetail/setActionTabs",payload:{}})},zn=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(on,Gn){return e.a.createElement(X.a,{value:Gn.numid,checked:hr.includes(String(Gn.numid)),disabled:!!on})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,dataIndex:"username",render:function(on,Gn){return e.a.createElement(l.a,{placement:"bottom",title:on},e.a.createElement(It.a,{className:"bold c-black",to:"/users/".concat(Gn.login),target:"_blank"},on||"--"))}},{title:"\u624B\u673A\u53F7",width:100,dataIndex:"phone",ellipsis:!0,render:function(on){return e.a.createElement(l.a,{placement:"bottom",title:on},e.a.createElement("span",null,on||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(on){return e.a.createElement(l.a,{placement:"bottom",title:on},e.a.createElement("span",null,on||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(on){return e.a.createElement(l.a,{placement:"bottom",title:on},e.a.createElement("span",null,on||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(on){return e.a.createElement(l.a,{placement:"bottom",title:on},e.a.createElement("span",null,on||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(on){return e.a.createElement(l.a,{placement:"bottom",title:on},e.a.createElement("span",null,on||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"auth",width:100,render:function(on){return on?"\u662F":"\u5426"}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(on){return e.a.createElement(l.a,{placement:"bottom",title:on&&pe()(on).format("YYYY-MM-DD HH:mm")},e.a.createElement("span",null,on&&pe()(on).format("YYYY-MM-DD HH:mm")))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function(on){if(on===1)return e.a.createElement("span",{className:"c-green"},"\u5DF2\u6DFB\u52A0")}}];return e.a.createElement(T.a,{title:"\u6DFB\u52A0\u5408\u4F5C\u8005",visible:Je.actionTabs.key==="Collaborators-AddCollaborator",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:1100,centered:!0,keyboard:!1,maskClosable:!1,bodyStyle:{minHeight:200},confirmLoading:yr,onOk:ir,onCancel:Zn},e.a.createElement(ne.a,{layout:"inline",form:bn,initialValues:{school_name:"",keyword:""},className:"mt10",onFinish:Pr},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(Ct.a,{allowClear:!0,defaultOpen:!1,options:dt,style:{width:400},size:"large",placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0",filterOption:function(on,Gn){return Gn.value.toUpperCase().indexOf(on.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:ft.A,width:"100",alt:""}),e.a.createElement("br",null),"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458"),!Qn&&e.a.createElement("section",null,e.a.createElement("div",{className:"flexd-table-header mt20"},e.a.createElement(Mt.a,{pagination:!1,dataSource:[],columns:zn})),e.a.createElement("div",{style:{maxHeight:260,overflow:"auto"}},e.a.createElement(We.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(on){$n()},hasMore:$t,useWindow:!1},e.a.createElement(Mt.a,{loading:qt,showHeader:!1,pagination:!1,dataSource:rn,columns:zn,onRow:function(on){return{onClick:function(Jn){Jn.currentTarget.querySelector("input").disabled||jn(Jn.currentTarget.querySelector("input").value)}}}})))))},bt=Object(u.a)(function(Ge){var Ye=Ge.pathsDetail,Je=Ge.loading;return{pathsDetail:Ye,loading:Je}})(Ot),Ht=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)(),it=Object(n.useState)(!0),dt=Object(E.a)(it,2),Dt=dt[0],Qt=dt[1],Bt=Object(n.useState)(!1),$t=Object(E.a)(Bt,2),ln=$t[0],On=$t[1],Wt=ne.a.useForm(),qt=Object(E.a)(Wt,1),yn=qt[0],Rn=Object(n.useState)([]),tn=Object(E.a)(Rn,2),bn=tn[0],Ln=tn[1],Xn=Object(n.useState)(1),rn=Object(E.a)(Xn,2),hn=rn[0],An=rn[1],_n=Object(n.useState)([]),tr=Object(E.a)(_n,2),cn=tr[0],Fn=tr[1],Ir=Object(n.useState)(!0),hr=Object(E.a)(Ir,2),Br=hr[0],ur=hr[1],Fr=Object(n.useState)(!1),Qn=Object(E.a)(Fr,2),kr=Qn[0],ta=Qn[1];Object(n.useEffect)(function(){Je.actionTabs.key==="Collaborators-AddCourses"&&(ur(!0),Qt(!0),Wr())},[Je.actionTabs.key]);var Wr=function(){var ir=Object(y.a)(r.a.mark(function Zn(){var zn;return r.a.wrap(function(on){for(;;)switch(on.prev=on.next){case 0:return on.next=2,Ve({type:"classroomList/getSchoolList",payload:{}});case 2:zn=on.sent;case 3:case"end":return on.stop()}},Zn)}));return function(){return ir.apply(this,arguments)}}(),yr=function(){ur(!1),Qt(!0),On(!1),An(1),Fn([]),ar(!0)},Dn=function(Zn){Zn=String(Zn);var zn=cn.indexOf(Zn);zn<0?cn.push(Zn):cn.splice(zn,1),Fn(Object(o.a)(cn))},ar=function(){var ir=Object(y.a)(r.a.mark(function Zn(){var zn,fn,on,Gn,Jn,Sn=arguments;return r.a.wrap(function(Kr){for(;;)switch(Kr.prev=Kr.next){case 0:if(zn=Sn.length>0&&Sn[0]!==void 0?Sn[0]:!1,!(Dt&&!ln||zn)){Kr.next=11;break}return Gn=yn.getFieldValue(),On(!0),An(zn?1:hn+1),Kr.next=7,Object(St.vb)({page:zn?1:hn+1,container_id:st.pathId,container_type:3,manager_name:(Gn==null?void 0:Gn.manager_name)||null,course_name:(Gn==null||((fn=Gn.course_name)===null||fn===void 0)?void 0:fn.trim())||null});case 7:Jn=Kr.sent,Ln(zn?Object(o.a)(Jn.courses):[].concat(Object(o.a)(bn),Object(o.a)(Jn.courses))),On(!1),((on=Jn.courses)===null||on===void 0?void 0:on.length)<10&&Qt(!1);case 11:case"end":return Kr.stop()}},Zn)}));return function(){return ir.apply(this,arguments)}}(),Pr=function(){var ir=Object(y.a)(r.a.mark(function Zn(){var zn,fn,on,Gn;return r.a.wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:if(cn!=null&&cn.length){Sn.next=4;break}R.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u8BFE\u5802"),Sn.next=19;break;case 4:if(!(Je.actionTabs.type!=1)){Sn.next=10;break}if(!((Je==null||((zn=Je.Courses)===null||zn===void 0||((fn=zn.spoc_courses)===null||fn===void 0))?void 0:fn.length)+(cn==null?void 0:cn.length)>3)){Sn.next=8;break}return R.b.warn("\u4E00\u4E2A\u5B9E\u8DF5\u8BFE\u7A0B\u53EA\u80FD\u52A0\u51653\u4E2Aspoc\u8BFE\u5802"),Sn.abrupt("return");case 8:Sn.next=13;break;case 10:if(!((Be==null||((on=Be.spoc_courses)===null||on===void 0)?void 0:on.length)+(cn==null?void 0:cn.length)>3)){Sn.next=13;break}return R.b.warn("\u4E00\u4E2A\u5B9E\u8DF5\u8BFE\u7A0B\u53EA\u80FD\u52A0\u51653\u4E2A\u5386\u53F2\u8BFE\u5802"),Sn.abrupt("return");case 13:return ta(!0),Sn.next=16,Object(K.b)({id:st.pathId,course_ids:cn,course_type:Je.actionTabs.type});case 16:Gn=Sn.sent,ta(!1),Gn&&(R.b.success("\u6DFB\u52A0\u6210\u529F"),jn(),nt&&nt());case 19:case"end":return Sn.stop()}},Zn)}));return function(){return ir.apply(this,arguments)}}(),jn=function(){yn.setFieldsValue({course_name:"",manager_name:""}),Fn([]),Ve({type:"pathsDetail/setActionTabs",payload:{}})},$n=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(Zn,zn){return e.a.createElement(X.a,{value:zn.id,checked:cn.includes(String(zn.id)),disabled:!!Zn})}},{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"name",width:100,ellipsis:!0,render:function(Zn){return e.a.createElement(l.a,{placement:"bottom",title:Zn},e.a.createElement("span",null,Zn||"--"))}},{title:"\u7BA1\u7406\u8005",width:100,dataIndex:"managers",ellipsis:!0,render:function(Zn){return e.a.createElement(l.a,{placement:"bottom",title:Zn},e.a.createElement("span",null,Zn||"--"))}},{title:"\u8BFE\u5802\u6240\u5728\u5B66\u6821",width:150,dataIndex:"school_name",ellipsis:!0,render:function(Zn){return e.a.createElement(l.a,{placement:"bottom",title:Zn},e.a.createElement("span",null,Zn||"--"))}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",width:140,ellipsis:!0,render:function(Zn){return e.a.createElement(l.a,{placement:"bottom",title:Zn},e.a.createElement("span",null,Zn))}},{title:"\u6210\u5458\u6570\u91CF",dataIndex:"course_members_count",width:80,render:function(Zn){return e.a.createElement(l.a,{placement:"bottom",title:Zn},e.a.createElement("span",null,Zn||"--"))}}];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:kr,onOk:Pr,onCancel:jn},e.a.createElement(ne.a,{layout:"inline",form:yn,initialValues:{course_name:"",manager_name:""},className:"mt10",onFinish:yr},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"))),Br&&e.a.createElement("div",{className:"tc font16 c-light-black mt40"},e.a.createElement("img",{src:ft.A,width:"100",alt:""}),e.a.createElement("br",null),"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458"),!Br&&e.a.createElement("section",null,e.a.createElement("div",{className:"flexd-table-header mt20"},e.a.createElement(Mt.a,{pagination:!1,dataSource:[],columns:$n})),e.a.createElement("div",{style:{maxHeight:260,overflow:"auto"}},e.a.createElement(We.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(Zn){ar()},hasMore:Dt,useWindow:!1},e.a.createElement(Mt.a,{loading:ln,showHeader:!1,pagination:!1,dataSource:bn,columns:$n,onRow:function(Zn){return{onClick:function(fn){fn.currentTarget.querySelector("input").disabled||Dn(fn.currentTarget.querySelector("input").value)}}}})))))},Gt=Object(u.a)(function(Ge){var Ye=Ge.pathsDetail,Je=Ge.loading;return{pathsDetail:Ye,loading:Je}})(Ht),xn=M("2BaD"),vn=M("1n7x"),sr=M.n(vn),xr=M("y1J/"),Kn=M.n(xr),En=M("A2z3"),Qr=M.n(En),sa=M("Ye+n"),Xr=M.n(sa),Nr=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,it=Object(n.useRef)();Object(n.useEffect)(function(){return Je?document.body.setAttribute("class",Xr.a.bodyHeight):document.body.removeAttribute("class"),function(){document.body.removeAttribute("class")}},[Je]);var dt={"1":"January","2":"February","3":"March","4":"April","5":"May","6":"June","7":"July","8":"August","9":"September","10":"October","11":"November","12":"December"},Dt=function(){var Qt=Object(y.a)(r.a.mark(function Bt(){var $t,ln,On;return r.a.wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:return document.body.scrollIntoView(),$t={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=sr()().set($t).from(it.current).toPdf(),qt.next=5,ln.get("pdf");case 5:return ln=qt.sent,qt.next=8,ln.output("bloburl");case 8:On=qt.sent,Object(fe.v)("".concat(st.school_name,"-").concat(st.user_name,".pdf"),On);case 10:case"end":return qt.stop()}},Bt)}));return function(){return Qt.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:Dt},"\u4E0B\u8F7D\u8BC1\u4E66")),style:{background:"transparen",height:"740px"},centered:!0,width:1052,className:Xr.a.advertisementModal,maskClosable:!1,closeIcon:e.a.createElement(xn.a,{onClick:at,style:{fontSize:"25px",color:"#fff",marginLeft:"100px"}})},e.a.createElement("div",{ref:it},e.a.createElement("div",{style:{backgroundImage:"url(".concat(Qr.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",pe()(st==null?void 0:st.created_at).format("YYYY\u5E74MM\u6708DD\u65E5"),"\u5B8C\u6210\u4E86EduCoder\u5E73\u53F0\u300A",st==null?void 0:st.subject_name,"\u300B\u8BFE\u7A0B\u5B66\u4E60\u3002"),e.a.createElement("div",{style:{color:"#0D3580",fontSize:"30px",marginTop:"50px",width:"100%",textAlign:"center",fontWeight:900}},"\u7279\u6B64\u8BC1\u660E"),e.a.createElement("div",{style:{color:"#0D3580",fontSize:"14px",marginTop:"30px",width:"100%",textAlign:"center"}},"On ",dt[pe()(st==null?void 0:st.created_at).format("M")]," ",pe()(st==null?void 0:st.created_at).format("DD"),"\uFF0C",pe()(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:Kn.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")))))},ba=Nr,ja=M("YJCA"),oi=M("wYyv"),Le=M.n(oi),Qe=M("WPnJ"),ot=M.n(Qe),_t=Object(ja.b)(function(Ge){var Ye,Je,Te,Ve,Be,at,nt,st,it,dt=Ge.item,Dt=Ge.toIndex,Qt=Ge.params,Bt=Ge.isShow,$t=Ge.setShow,ln=Ge.dispatch,On=Ge.classroomList,Wt=Ge.handleDeleteMember,qt=Ge.pathsDetail;return e.a.createElement("span",{style:{display:"inline-block",width:"33%",padding:"5px",background:"#fff",marginTop:"10px"}},e.a.createElement("div",{className:ot.a.directionItemWrap},e.a.createElement(l.a,{color:"#ffffff",placement:"bottom",title:e.a.createElement("div",{className:ot.a.teamHeight},e.a.createElement("span",{title:dt==null?void 0:dt.name,style:{fontSize:"14px",color:"#333333",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"80px",overflow:"hidden"}},(dt==null||((Ye=dt.name)===null||Ye===void 0)?void 0:Ye.length)>6?(dt==null||((Je=dt.name)===null||Je===void 0)?void 0:Je.substr(0,6))+"...":(dt==null?void 0:dt.name)||"--"),e.a.createElement("span",{style:{marginLeft:"10px",color:"#999999",fontSize:"12px"}},(dt==null||((Te=dt.school)===null||Te===void 0)?void 0:Te.length)>9?(dt==null||((Ve=dt.school)===null||Ve===void 0)?void 0:Ve.substr(0,9))+"...":dt==null?void 0:dt.school),e.a.createElement("div",{style:{height:"1px",width:"100%",border:"1px solid #f5f5f5",marginTop:"3px",marginBottom:"3px"}}),!(dt!=null&&dt.brief_introduction)&&e.a.createElement("div",{style:{textAlign:"center",marginTop:"20px"}},"\u6682\u65E0\u7B80\u4ECB"),(dt==null?void 0:dt.brief_introduction)&&e.a.createElement("div",{className:ot.a.divHeight},dt==null?void 0:dt.brief_introduction))},e.a.createElement("img",{draggable:!1,className:ot.a.imgradius,onClick:function(){Object(U.p)()?u.d.push("".concat(dt.user_url)):ln({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})},src:yt.a.API_SERVER+"/images/"+(dt==null?void 0:dt.image_url)}),e.a.createElement("div",null,(dt==null||((Be=dt.name)===null||Be===void 0)?void 0:Be.length)>6?(dt==null||((at=dt.name)===null||at===void 0)?void 0:at.substr(0,6))+"...":(dt==null?void 0:dt.name)||"--",e.a.createElement("br",null),e.a.createElement("span",{style:{color:"#999999"}},(dt==null||((nt=dt.school)===null||nt===void 0)?void 0:nt.length)>6?(dt==null||((st=dt.school)===null||st===void 0)?void 0:st.substr(0,6))+"...":(dt==null?void 0:dt.school)||"--"))),e.a.createElement("br",null),e.a.createElement("span",{className:ot.a.groupActionWrap},e.a.createElement("i",{style:{display:!((it=qt.detail)!==null&&it!==void 0&&it.allow_add_member)&&"none"},className:"iconfont icon-shanchu5 mr1 c-red font15 current",onClick:function(Rn){Rn.stopPropagation(),Wt(dt.id)}}))))}),Kt=Object(ja.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(it,dt){return e.a.createElement(_t,{key:"".concat(it.id),isShow:Ye,setShow:Je,dispatch:at,pathsDetail:Te,handleDeleteMember:st,classroomList:nt,toIndex:dt+1,params:Be,index:dt,item:it})}))}),nn=function(Ye){var Je=Ye.data,Te=Ye.classroomList,Ve=Ye.pathsDetail,Be=Ye.operation,at=Ye.callback,nt=Ye.handleDeleteMember,st=Ye.onCancel,it=Ye.dispatch,dt=Ye.visible,Dt=dt===void 0?!1:dt,Qt=Object(n.useState)(Je),Bt=Object(E.a)(Qt,2),$t=Bt[0],ln=Bt[1],On=Object(s.i)(),Wt=Object(n.useState)(),qt=Object(E.a)(Wt,2),yn=qt[0],Rn=qt[1],tn=Object(n.useState)(!0),bn=Object(E.a)(tn,2),Ln=bn[0],Xn=bn[1];function rn(_n){var tr=_n.newIndex,cn=_n.oldIndex;if(!Be)return;hn(Le()($t,cn,tr).map(function(Fn){return Fn==null?void 0:Fn.id})),ln(Le()($t,cn,tr))}Object(n.useEffect)(function(){ln(Je)},[JSON.stringify(Je)]);function hn(_n){return An.apply(this,arguments)}function An(){return An=Object(y.a)(r.a.mark(function _n(tr){var cn;return r.a.wrap(function(Ir){for(;;)switch(Ir.prev=Ir.next){case 0:return Ir.next=2,Object(le.a)("/api/paths/".concat(On==null?void 0:On.pathId,"/move_subject_members.json"),{method:"post",body:{user_ids:tr}});case 2:cn=Ir.sent;case 3:case"end":return Ir.stop()}},_n)})),An.apply(this,arguments)}return e.a.createElement("div",{style:{zIndex:9999,width:"100%"},className:"sort-list-panel"},e.a.createElement(Kt,{axis:"xy",helperClass:"dragging-li",isShow:Ln,setShow:Xn,distance:2,dispatch:it,pathsDetail:Ve,handleDeleteMember:nt,classroomList:Te,params:On,items:$t,onSortEnd:rn}))},ve=Object(u.a)(function(Ge){var Ye=Ge.classroomList,Je=Ge.pathsDetail;return{classroomList:Ye,pathsDetail:Je}})(nn),z=M("lseA"),Z=M.n(z),ye=[2,5,8,11,14],Ce=Object(ja.b)(function(Ge){var Ye,Je,Te,Ve,Be=Ge.item,at=Ge.toIndex,nt=Ge.params,st=Ge.dispatch,it=Ge.classroomList,dt=Ge.handleDeleteMember,Dt=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:yt.a.API_SERVER+(Be==null?void 0:Be.default_image)}),e.a.createElement("span",{className:Z.a.groupActionWrap},e.a.createElement(l.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(l.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(l.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(l.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(l.a,{title:"\u5220\u9664",placement:"bottom"},e.a.createElement("span",null,e.a.createElement("i",{style:{color:"#bbbbbb",display:!(Dt!=null&&(Ve=Dt.detail)!==null&&Ve!==void 0&&Ve.allow_add_member)&&"none"},className:"iconfont icon-lajitong1 mr3 font15 current",onClick:function(Bt){Bt.stopPropagation(),dt(Be.id)}})))))}),be=Object(ja.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(Ce,{key:"".concat(nt.id),dispatch:Te,pathsDetail:at,handleDeleteMember:Be,classroomList:Ve,toIndex:st+1,params:Je,index:st,item:nt})}))}),ht=function(Ye){var Je=Ye.data,Te=Ye.classroomList,Ve=Ye.pathsDetail,Be=Ye.callback,at=Ye.handleDeleteMember,nt=Ye.onCancel,st=Ye.dispatch,it=Ye.visible,dt=it===void 0?!1:it,Dt=Object(n.useState)(Je),Qt=Object(E.a)(Dt,2),Bt=Qt[0],$t=Qt[1],ln=Object(s.i)(),On=Object(n.useState)(),Wt=Object(E.a)(On,2),qt=Wt[0],yn=Wt[1];function Rn(Ln){var Xn=Ln.newIndex,rn=Ln.oldIndex;tn(Le()(Bt,rn,Xn).map(function(hn){return hn==null?void 0:hn.id})),$t(Le()(Bt,rn,Xn))}Object(n.useEffect)(function(){$t(Je)},[JSON.stringify(Je)]);function tn(Ln){return bn.apply(this,arguments)}function bn(){return bn=Object(y.a)(r.a.mark(function Ln(Xn){var rn;return r.a.wrap(function(An){for(;;)switch(An.prev=An.next){case 0:return An.next=2,Object(le.a)("/api/paths/".concat(ln==null?void 0:ln.pathId,"/spoc_courses/move_position.json"),{method:"post",body:{ids:Xn}});case 2:rn=An.sent;case 3:case"end":return An.stop()}},Ln)})),bn.apply(this,arguments)}return e.a.createElement("div",{style:{zIndex:9999,width:"100%"},className:"sort-list-panel"},e.a.createElement(be,{axis:"y",helperClass:"dragging-li",pathsDetail:Ve,distance:2,dispatch:st,handleDeleteMember:at,classroomList:Te,params:ln,items:Bt,onSortEnd:Rn}))},Nt=Object(u.a)(function(Ge){var Ye=Ge.classroomList,Je=Ge.pathsDetail;return{classroomList:Ye,pathsDetail:Je}})(ht),sn=M("V0Rq"),pn=M("HBuW"),zt=M("W6us"),qn=M.n(zt),Un=M("CnIC"),rr=M.n(Un),Sr=M("LZjx"),ia=M.n(Sr),Dr=M("dhSg"),na=M("cVA7"),Tr=M.n(na),ma=M("h6EL");function ha(Ge){var Ye=function(at,nt){if(at.localName===nt)return at;for(var st=0,it=at;it=it.parentNode;st++){if(it.localName===nt)return it;if(it==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(),Dr.a.publish("preview-image",Ve))}}var Oa=function(Ye){var Je,Te,Ve,Be,at,nt,st,it,dt,Dt,Qt,Bt,$t,ln,On,Wt,qt,yn,Rn,tn,bn,Ln,Xn,rn,hn,An,_n,tr,cn,Fn,Ir,hr,Br,ur,Fr,Qn,kr,ta,Wr,yr,Dn,ar,Pr,jn,$n,ir,Zn,zn,fn,on,Gn,Jn,Sn,mr,Kr,Va,Ra,aa,gi,ti,Ka,no,ro,Di,Io,Mo,ao,Ii,ki,So,co,ho,Qi,Mi,Vi,Ki,go,Fi,yo,Xa,io,Lo,Wi,Ti,Ao,qo,$o,Go,Xi,es,yi,Ua,li,Na,Yi,bo,Li,Vo,Po,Xo,Bi,In=Ye.pathsDetail,Ji=Ye.user,vs=Ye.globalSetting,ts=Ye.loading,ca=Ye.classroomList,Ur=Ye.dispatch,ui=Object(_.a)(Ye,["pathsDetail","user","globalSetting","loading","classroomList","dispatch"]),wa=Object(s.i)(),To=Object(n.useState)(!0),Zi=Object(E.a)(To,2),Eo=Zi[0],oo=Zi[1],dn=Object(n.useState)(!1),Uo=Object(E.a)(dn,2),Ss=Uo[0],gs=Uo[1],Za=Object(n.useState)(),Tn=Object(E.a)(Za,2),Lt=Tn[0],Yt=Tn[1],Cn=Object(n.useState)(),Vt=Object(E.a)(Cn,2),er=Vt[0],lr=Vt[1],fr=Object(n.useState)({}),$r=Object(E.a)(fr,2),mn=$r[0],ni=$r[1],Pi=Object(n.useState)(),La=Object(E.a)(Pi,2),da=La[0],Oi=La[1],qi=Object(n.useRef)(),qa=Object(n.useState)(!1),Ya=Object(E.a)(qa,2),fi=Ya[0],ko=Ya[1],Fo=Object(n.useState)({}),No=Object(E.a)(Fo,2),jo=No[0],Ts=No[1];Object(n.useEffect)(function(){if(qi.current)return qi.current.addEventListener("mousedown",ha),function(){qi.current.removeEventListener("mousedown",ha)}},[qi.current]);var hl=function(){var Wn=Object(y.a)(r.a.mark(function Pn(){var wn;return r.a.wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:if(er!=null&&er.trim()){Bn.next=3;break}return R.b.warn("\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Bn.abrupt("return");case 3:return Bn.next=5,Object(K.V)({id:wa.pathId,team_title:er.trim()});case 5:wn=Bn.sent,Yt(!Lt),(wn==null?void 0:wn.status)===0&&(lr(null),R.b.success(wn.message),Ur({type:"pathsDetail/getRightData",payload:{id:wa.pathId}}));case 8:case"end":return Bn.stop()}},Pn)}));return function(){return Wn.apply(this,arguments)}}();Object(n.useEffect)(function(){Ur({type:"pathsDetail/getCoureses",payload:{id:wa.pathId}}),Al()},[]);function Al(){return Qs.apply(this,arguments)}function Qs(){return Qs=Object(y.a)(r.a.mark(function Wn(){return r.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:return wn.t0=Ts,wn.next=3,Object(K.w)({id:wa.pathId,course_type:1});case 3:wn.t1=wn.sent,(0,wn.t0)(wn.t1);case 5:case"end":return wn.stop()}},Wn)})),Qs.apply(this,arguments)}Object(n.useEffect)(function(){var Wn;if(((Wn=ca.actionTabs)===null||Wn===void 0?void 0:Wn.key)==="\u4FEE\u6539\u5F00\u8BFE\u65F6\u95F4"){var Pn,wn,nr=(Pn=In.detail)===null||Pn===void 0||((wn=Pn.courses)===null||wn===void 0)?void 0:wn.find(function(Bn){var _r;return Bn.course_id===((_r=ca.actionTabs)===null||_r===void 0?void 0:_r.name)});ni(nr||{})}},[ca.actionTabs]),Object(n.useEffect)(function(){var Wn,Pn,wn;if((Wn=In.detail)!==null&&Wn!==void 0&&Wn.has_start){var nr,Bn,_r=(nr=In.detail)===null||nr===void 0||((Bn=nr.courses)===null||Bn===void 0)?void 0:Bn.findIndex(function(Ko){var po;return parseInt((po=Ko.course_status)===null||po===void 0?void 0:po.status)===1});wn=_r>-1?_r:0}else{var Mr,jr,Pa,Ja,bi,pi=(Mr=In.detail)===null||Mr===void 0||((jr=Mr.courses)===null||jr===void 0||((Pa=jr.map(function(Ko){var po;return parseInt((po=Ko.course_status)===null||po===void 0?void 0:po.status)}))===null||Pa===void 0))?void 0:Pa.lastIndexOf(2);wn=pi>-1?pi:0,pi=(Ja=In.detail)===null||Ja===void 0||((bi=Ja.courses)===null||bi===void 0)?void 0:bi.findIndex(function(Ko){var po;return parseInt((po=Ko.course_status)===null||po===void 0?void 0:po.status)===0}),wn=pi>-1?pi:wn}if((Pn=In.detail)!==null&&Pn!==void 0&&Pn.courses){var Ei;ni(((Ei=In.detail)===null||Ei===void 0?void 0:Ei.courses[wn])||{})}},[In.detail]);var cr=function(){var Wn=Object(y.a)(r.a.mark(function Pn(wn){return r.a.wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:T.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6210\u5458\u5417\uFF1F"),onOk:function(){var _r=Object(y.a)(r.a.mark(function jr(){var Pa,Ja;return r.a.wrap(function(pi){for(;;)switch(pi.prev=pi.next){case 0:return pi.next=2,Object(K.p)({id:wa.pathId,user_id:wn});case 2:Pa=pi.sent,(Pa==null?void 0:Pa.status)===1&&(((Ja=Ji.userInfo)===null||Ja===void 0?void 0:Ja.user_id)===wn&&(window.location.href=window.location.href),R.b.info(Pa==null?void 0:Pa.message),bs());case 4:case"end":return pi.stop()}},jr)}));function Mr(){return _r.apply(this,arguments)}return Mr}()});case 1:case"end":return Bn.stop()}},Pn)}));return function(wn){return Wn.apply(this,arguments)}}(),ys=function(){var Wn=Object(y.a)(r.a.mark(function Pn(wn){return r.a.wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:T.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u8BFE\u5802\u5417\uFF1F"),onOk:function(){var _r=Object(y.a)(r.a.mark(function jr(){var Pa;return r.a.wrap(function(bi){for(;;)switch(bi.prev=bi.next){case 0:return bi.next=2,Object(K.o)({id:wa.pathId,courseid:wn});case 2:Pa=bi.sent,(Pa==null?void 0:Pa.status)===0&&(R.b.info("\u5220\u9664\u6210\u529F"),bs());case 4:case"end":return bi.stop()}},jr)}));function Mr(){return _r.apply(this,arguments)}return Mr}()});case 1:case"end":return Bn.stop()}},Pn)}));return function(wn){return Wn.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(y.a)(r.a.mark(function nr(){var Bn;return r.a.wrap(function(Mr){for(;;)switch(Mr.prev=Mr.next){case 0:return Mr.next=2,Object(K.i)({id:wa.pathId});case 2:Bn=Mr.sent,Bn.status===0&&(Oi(!0),R.b.success(Bn.message));case 4:case"end":return Mr.stop()}},nr)}));function wn(){return Pn.apply(this,arguments)}return wn}()})},Bs=function(){Ur({type:"pathsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator"}})},fo=function(Pn){Ur({type:"pathsDetail/setActionTabs",payload:{key:"Collaborators-AddCourses",type:Pn}})},bs=function(){Ur({type:"pathsDetail/getPathsDetail",payload:{id:wa.pathId}}),Ur({type:"pathsDetail/getRightData",payload:{id:wa.pathId}}),Ur({type:"pathsDetail/getCoureses",payload:{id:wa.pathId}}),Al()},Ws=function(){var Pn;return Lt?e.a.createElement("div",{className:jt.a.flexRow},e.a.createElement(re.a,{placeholder:"\u4F8B\u5982\uFF1A\u6559\u5B66\u56E2\u961F",value:er,onChange:function(nr){return lr(nr.target.value)}}),e.a.createElement(h.a,{className:"ml5",onClick:function(){return Yt(!Lt)}},"\u53D6\u6D88"),e.a.createElement(h.a,{className:"ml5",type:"primary",onClick:hl},"\u786E\u5B9A")):e.a.createElement("div",{className:jt.a.directionItemWrap},e.a.createElement("span",{style:{fontSize:"16px",display:"flex",alignItems:"center"}}," ",e.a.createElement("img",{style:{marginRight:"10px"},src:rr.a})," ",(Pn=In.rightData)===null||Pn===void 0?void 0:Pn.team_title),e.a.createElement("span",{className:jt.a.groupActionWrap},e.a.createElement("i",{className:"iconfont icon-xiugai mr1 c-light-primary font15 current",onClick:function(){return Yt(!Lt)}})))},Ms=function(){var Pn,wn,nr=new Image;nr.src=ft.q;var Bn=((Pn=In.rightData)===null||Pn===void 0||((wn=Pn.tags)===null||wn===void 0)?void 0:wn.map(function(Mr,jr){return{name:Mr.tag_name,value:jr}}))||[],_r={backgroundColor:"#fff",tooltip:{pointFormat:"{series.name}</b>"},series:[{type:"wordCloud",sizeRange:[10,30],rotationRange:[-90,90],rotationStep:45,gridSize:2,shape:"pentagon",maskImage:nr,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:Bn}]};return _r},Es=function(){if(!Object(Fe.e)(Ur))return;T.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u5B9A\u52A0\u5165\u8BE5\u8BFE\u5802"),onOk:function(){var Pn=Object(y.a)(r.a.mark(function nr(){var Bn,_r;return r.a.wrap(function(jr){for(;;)switch(jr.prev=jr.next){case 0:return jr.next=2,Object(K.L)({id:mn==null?void 0:mn.course_id});case 2:Bn=jr.sent,Bn.status===0&&(R.b.success(Bn.message),Ur({type:"pathsDetail/getPathsDetail",payload:{id:wa.pathId}}),parseInt((_r=mn.course_status)===null||_r===void 0?void 0:_r.status)===1&&Object(fe.Q)("".concat(mn==null?void 0:mn.first_category_url)));case 4:case"end":return jr.stop()}},nr)}));function wn(){return Pn.apply(this,arguments)}return wn}()})},Ni=function(){var Wn=Object(y.a)(r.a.mark(function Pn(){var wn;return r.a.wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:if(Object(Fe.e)(Ur)){Bn.next=2;break}return Bn.abrupt("return");case 2:return gs(!0),Bn.next=5,Object(le.a)("/api/payments.json",{method:"POST",body:{subject_id:wa.pathId,payment_method:"wechat_qr"}});case 5:wn=Bn.sent,wn!=null&&wn.num&&(gs(!1),u.d.push("/order/".concat(wa.pathId,"/pay?order_num=").concat(wn==null?void 0:wn.num)));case 7:case"end":return Bn.stop()}},Pn)}));return function(){return Wn.apply(this,arguments)}}(),zs=function(){var Wn=Object(y.a)(r.a.mark(function Pn(wn,nr){var Bn;return r.a.wrap(function(Mr){for(;;)switch(Mr.prev=Mr.next){case 0:if(Ur({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!nr){Mr.next=7;break}return Mr.next=4,Object(pn.C)({id:wn});case 4:Mr.t0=Mr.sent,Mr.next=10;break;case 7:return Mr.next=9,Object(pn.D)({id:wn});case 9:Mr.t0=Mr.sent;case 10:if(Bn=Mr.t0,Ur({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(Bn!=null&&Bn.game_identifier||Bn!=null&&Bn.identifier)){Mr.next=15;break}return Object(fe.Q)(nr?"/tasks/".concat(Bn==null?void 0:Bn.identifier,"/jupyter"):"/tasks/".concat(Bn.game_identifier)),Mr.abrupt("return");case 15:(Bn==null?void 0:Bn.status)===2?Ho(Bn==null?void 0:Bn.message):(Bn==null?void 0:Bn.status)===3&&ds(Bn==null?void 0:Bn.message);case 16:case"end":return Mr.stop()}},Pn)}));return function(wn,nr){return Wn.apply(this,arguments)}}(),ds=function(Pn){T.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",Pn,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},Ho=function Wn(Pn){var wn;Pn=(wn=Pn)!==null&&wn!==void 0&&wn.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 nr=Object(y.a)(r.a.mark(function _r(){var Mr,jr;return r.a.wrap(function(Ja){for(;;)switch(Ja.prev=Ja.next){case 0:return Ja.next=2,Object(sn.S)({url:Pn});case 2:if(Mr=Ja.sent,Mr){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(pn.D)({id:Mr.shixun_identifier});case 8:if(jr=Ja.sent,!(jr!=null&&jr.game_identifier)){Ja.next=12;break}return Object(fe.Q)("/tasks/".concat(jr.game_identifier)),Ja.abrupt("return");case 12:(jr==null?void 0:jr.status)===2?Wn(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()}},_r)}));function Bn(){return nr.apply(this,arguments)}return Bn}()})},Ls=function(){var Pn;if(!Object(Fe.e)(Ur))return;var wn=[];In==null||((Pn=In.stageData)===null||Pn===void 0)||Pn.forEach(function(Bn){var _r;if(Bn.items&&(_r=Bn.items)!==null&&_r!==void 0&&_r.length){var Mr;(Mr=Bn.items)===null||Mr===void 0||Mr.forEach(function(jr){var Pa;wn.push(jr),jr.children&&(Pa=jr.children)!==null&&Pa!==void 0&&Pa.length&&(wn=wn.concat(jr.children))})}});var nr=wn.find(function(Bn){return["VideoItem","Attachment","Shixun"].includes(Bn.item_type)});if(console.log(nr,"stageParam"),nr.item_type==="VideoItem"){Object(fe.Q)("/video/".concat(nr.id,"?subject_id=").concat(wa.pathId));return}if(nr.item_type==="Attachment"){Object(fe.Q)(nr.url);return}if(nr.item_type==="Shixun"){zs(nr.identifier,nr.is_jupyter);return}},Qo=function(){var Pn,wn,nr,Bn,_r=(Pn=In.detail)===null||Pn===void 0||((wn=Pn.learning_status)===null||wn===void 0)?void 0:wn[0],Mr=(nr=In.detail)===null||nr===void 0||((Bn=nr.learning_status)===null||Bn===void 0)?void 0:Bn[1];if(_r==="can")return e.a.createElement(h.a,{onClick:Ls,type:"primary"},"\u5F00\u59CB\u5B66\u4E60");if(_r==="disabled"){if(Mr==="try"||Mr==="unpayed")return e.a.createElement(h.a,{loading:Ss,onClick:Ni,type:"primary"},"\u7ACB\u5373\u8D2D\u4E70");if(Mr==="expired")return e.a.createElement(h.a,{disabled:!0,type:"primary"},"\u5DF2\u8FC7\u671F");if(Mr==="buyed")return e.a.createElement(h.a,{disabled:!0,type:"primary"},"\u672A\u5F00\u59CB")}},Zr=function(){var Wn=Object(y.a)(r.a.mark(function Pn(){var wn,nr,Bn,_r,Mr,jr,Pa,Ja,bi,pi,Ei,Ko;return r.a.wrap(function(Cs){for(;;)switch(Cs.prev=Cs.next){case 0:if(pi=function(){var el=Object(y.a)(r.a.mark(function ns(){var hs;return r.a.wrap(function(nl){for(;;)switch(nl.prev=nl.next){case 0:return nl.next=2,Object(le.a)("/api/users/".concat(Ji.userInfo.login,"/subjects/request_certificate.json?subject_id=").concat(wa.pathId),{method:"post"});case 2:hs=nl.sent,(hs==null?void 0:hs.status)===0&&(R.b.info("\u63D0\u4EA4\u6210\u529F"),Ur({type:"pathsDetail/getRightData",payload:{id:wa.pathId}}));case 4:case"end":return nl.stop()}},ns)}));return function(){return el.apply(this,arguments)}}(),(wn=Ji.userInfo)!==null&&wn!==void 0&&wn.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(fe.Q)("/account/certification")}}),Cs.abrupt("return",!1);case 4:if(!(((nr=In.rightData)===null||nr===void 0||((Bn=nr.progress)===null||Bn===void 0)?void 0:Bn.certificated)==="drafted")){Cs.next=6;break}return Cs.abrupt("return",!1);case 6:if(!(((_r=In.rightData)===null||_r===void 0||((Mr=_r.progress)===null||Mr===void 0)?void 0:Mr.certificated)==="none"||((jr=In.rightData)===null||jr===void 0||((Pa=jr.progress)===null||Pa===void 0)?void 0:Pa.certificated)==="rejected")){Cs.next=9;break}return((Ei=In.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:pi}):T.a.confirm({title:"\u7533\u8BF7\u8BC1\u4E66",icon:null,className:"custom-modal-divider",centered:!0,width:400,content:"\u4F60\u76EE\u524D\u5B66\u4E60\u8FDB\u5EA6\u4E3A".concat((Ko=In.rightData)===null||Ko===void 0?void 0:Ko.progress.learned,"%\uFF0C\u5EFA\u8BAE\u7533\u8BF7\u540E\u7EE7\u7EED\u8FDB\u884C\u8BFE\u7A0B\u5B66\u4E60"),okText:"\u786E\u5B9A\u7533\u8BF7",onOk:pi}),Cs.abrupt("return",!1);case 9:((Ja=In.rightData)===null||Ja===void 0||((bi=Ja.progress)===null||bi===void 0)?void 0:bi.certificated)==="passed"&&ko(!0);case 10:case"end":return Cs.stop()}},Pn)}));return function(){return Wn.apply(this,arguments)}}(),Rr=!!((Je=In.detail)!==null&&Je!==void 0&&Je.participant_count)&&!((Te=In.detail)!==null&&Te!==void 0&&Te.allow_statistics),Ta=((Ve=In.detail)===null||Ve===void 0||((Be=Ve.courses)===null||Be===void 0)?void 0:Be.findIndex(function(Wn){return(Wn==null?void 0:Wn.course_id)===(mn==null?void 0:mn.course_id)}))+1,Or=Ta===((at=In.detail)===null||at===void 0||((nt=at.courses)===null||nt===void 0)?void 0:nt.length);return e.a.createElement("section",{className:jt.a.rightWrap},((st=In.rightData)===null||st===void 0?void 0:st.qrcode_img)&&e.a.createElement("div",{className:jt.a.qrCode},e.a.createElement("img",{src:(it=In.rightData)===null||it===void 0?void 0:it.qrcode_img})),((dt=In.rightData)===null||dt===void 0?void 0:dt.progress)&&e.a.createElement("div",{className:"".concat(jt.a.card," ").concat(jt.a.cardTop),style:{top:(Dt=In.detail)!==null&&Dt!==void 0&&(Qt=Dt.courses)!==null&&Qt!==void 0&&Qt.length?"-140px":"-70px"}},parseInt(mn==null||((Bt=mn.course_status)===null||Bt===void 0)?void 0:Bt.status)===2&&mn.course_identity<6&&e.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F"),parseInt(($t=mn.course_status)===null||$t===void 0?void 0:$t.status)===2&&(mn.course_identity<6?"":e.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F")),e.a.createElement("div",{className:jt.a.flexRow},Rr&&!!((ln=In.detail)!==null&&ln!==void 0&&(On=ln.courses)!==null&&On!==void 0&&On.length)&&Or&&e.a.createElement("span",{className:"mt20"},e.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(Wt=In.detail)===null||Wt===void 0?void 0:Wt.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"},da===!0?((qt=In.detail)===null||qt===void 0?void 0:qt.participant_count)+1:(yn=In.detail)===null||yn===void 0?void 0:yn.participant_count),"\u4EBA")),Rr&&!((Rn=In.detail)!==null&&Rn!==void 0&&(tn=Rn.courses)!==null&&tn!==void 0&&tn.length)&&Or&&e.a.createElement("span",null,!((bn=In.detail)!==null&&bn!==void 0&&bn.has_participate)&&(da===!0?e.a.createElement("span",{className:"".concat(jt.a.classButton," ").concat(jt.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):e.a.createElement("a",{className:"".concat(jt.a.classButton," ").concat(jt.a.bg28e),onClick:Ks},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D")),((Ln=In.detail)===null||Ln===void 0?void 0:Ln.has_participate)&&e.a.createElement("span",{className:"".concat(jt.a.classButton," ").concat(jt.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),e.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(Xn=In.detail)===null||Xn===void 0?void 0:Xn.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"},da===!0?((rn=In.detail)===null||rn===void 0?void 0:rn.participant_count)+1:(hn=In.detail)===null||hn===void 0?void 0:hn.participant_count),"\u4EBA"))),parseInt(mn==null||((An=mn.course_status)===null||An===void 0)?void 0:An.status)===1&&e.a.createElement("div",{className:"mr20 c-red-ee4"},mn==null||((_n=mn.course_status)===null||_n===void 0)?void 0:_n.time),e.a.createElement("p",{style:{display:mn.course_identity<6?"":"none"},className:"mb10 mt10 ".concat(jt.a.flexRowAbout)},e.a.createElement("span",{style:{display:((tr=mn.course_status)===null||tr===void 0?void 0:tr.status)<=1?"":"none"},className:"c-light-green font14"},"\u5DF2\u5B66",(cn=In.rightData)===null||cn===void 0?void 0:cn.progress.learned,"%"),e.a.createElement("span",{style:{display:((Fn=mn.course_status)===null||Fn===void 0?void 0:Fn.status)<=1?"":"none"},className:"c-light-black"},"\u5B66\u4E60\u8017\u65F6",Object(fe.Z)((Ir=In.rightData)===null||Ir===void 0?void 0:Ir.progress.time)," "),((hr=In.rightData)===null||hr===void 0||((Br=hr.progress)===null||Br===void 0)?void 0:Br.certificated)!="disabled"&&e.a.createElement(h.a,{disabled:((ur=In.rightData)===null||ur===void 0||((Fr=ur.progress)===null||Fr===void 0)?void 0:Fr.certificated)==="drafted",onClick:Zr},((Qn=In.rightData)===null||Qn===void 0||((kr=Qn.progress)===null||kr===void 0)?void 0:kr.certificated)==="none"&&"\u7533\u8BF7\u8BC1\u4E66",((ta=In.rightData)===null||ta===void 0||((Wr=ta.progress)===null||Wr===void 0)?void 0:Wr.certificated)==="rejected"&&"\u7533\u8BF7\u8BC1\u4E66",((yr=In.rightData)===null||yr===void 0||((Dn=yr.progress)===null||Dn===void 0)?void 0:Dn.certificated)==="drafted"&&"\u5BA1\u6838\u4E2D",((ar=In.rightData)===null||ar===void 0||((Pr=ar.progress)===null||Pr===void 0)?void 0:Pr.certificated)==="passed"&&"\u67E5\u770B\u8BC1\u4E66")),e.a.createElement(l.a,{placement:"bottom",title:"\u5B8C\u6210\u8BFE\u7A0B\u540E\u53EF\u83B7\u53D6\u8BC1\u4E66\uFF01",color:"yellow"}," ",e.a.createElement(Xt.a,{percent:(jn=In.rightData)===null||jn===void 0?void 0:jn.progress.learned,showInfo:!1,style:{display:(($n=mn.course_status)===null||$n===void 0?void 0:$n.status)<=1&&mn.course_identity<6?"":"none"},status:"active",strokeColor:{"0%":"#29BD8B","100%":"#29BD8B"}})),parseInt((ir=mn.course_status)===null||ir===void 0?void 0:ir.status)===2&&((Zn=In.detail)===null||Zn===void 0?void 0:Zn.allow_add_member)&&e.a.createElement("a",{className:jt.a.classButton,href:"".concat(mn==null?void 0:mn.first_category_url),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"),parseInt((zn=mn.course_status)===null||zn===void 0?void 0:zn.status)===1&&mn.course_identity>5&&e.a.createElement("div",{className:jt.a.classButton,onClick:Es},"\u7ACB\u5373\u52A0\u5165"),parseInt((fn=mn.course_status)===null||fn===void 0?void 0:fn.status)===1&&mn.course_identity===5&&e.a.createElement("a",{className:jt.a.classButton,href:"".concat(mn==null?void 0:mn.first_category_url),target:"_blank"},"\u7ACB\u5373\u5B66\u4E60"),parseInt((on=mn.course_status)===null||on===void 0?void 0:on.status)===0&&mn.course_identity>5&&e.a.createElement("div",{className:jt.a.classButton,onClick:Es},"\u7ACB\u5373\u62A5\u540D"),parseInt((Gn=mn.course_status)===null||Gn===void 0?void 0:Gn.status)===0&&mn.course_identity===5&&e.a.createElement("div",{className:jt.a.classButton},"\u62A5\u540D\u6210\u529F"),(parseInt(mn==null||((Jn=mn.course_status)===null||Jn===void 0)?void 0:Jn.status)===0||parseInt(mn==null||((Sn=mn.course_status)===null||Sn===void 0)?void 0:Sn.status)===1)&&mn.course_identity<5&&e.a.createElement("a",{className:jt.a.classButton,href:"".concat(mn==null?void 0:mn.first_category_url),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"),Rr&&Or&&((mr=In.detail)===null||mr===void 0?void 0:mr.has_participate)&&e.a.createElement("span",{className:"".concat(jt.a.classButton," ").concat(jt.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),Rr&&Or&&!((Kr=In.detail)!==null&&Kr!==void 0&&Kr.has_participate)&&(da?e.a.createElement("span",{className:"".concat(jt.a.classButton," ").concat(jt.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):e.a.createElement("span",{className:"".concat(jt.a.classButton," ").concat(jt.a.bg28e),onClick:Ks},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D")),!((Va=In.detail)!==null&&Va!==void 0&&Va.excellent)&&((Ra=In.detail)===null||Ra===void 0?void 0:Ra.is_free)!==!0&&e.a.createElement("div",{className:jt.a.price},e.a.createElement("ul",null,e.a.createElement("li",{className:jt.a.li1},!!((aa=In.detail)!==null&&aa!==void 0&&aa.origin_price)&&e.a.createElement("div",{className:jt.a.discounts},"\u9650\u65F6\u4F18\u60E0"),e.a.createElement("div",{className:jt.a.realPrice},e.a.createElement("span",null,"\uFFE5"),(gi=In.detail)===null||gi===void 0?void 0:gi.price),!!((ti=In.detail)!==null&&ti!==void 0&&ti.origin_price)&&e.a.createElement("div",{className:jt.a.lineationPrice},e.a.createElement("span",null,"\uFFE5"),(Ka=In.detail)===null||Ka===void 0?void 0:Ka.origin_price)),e.a.createElement("li",{className:jt.a.li2},"\u8BFE\u7A0B\u6709\u6548\u671F\uFF1A",((no=In.detail)===null||no===void 0||((ro=no.expiration_type)===null||ro===void 0)?void 0:ro.clazz)==="1"&&"\u6C38\u4E45\u6709\u6548",((Di=In.detail)===null||Di===void 0||((Io=Di.expiration_type)===null||Io===void 0)?void 0:Io.clazz)==="2"&&"\u8D2D\u4E70\u540E".concat((Mo=In.detail)===null||Mo===void 0||((ao=Mo.expiration_type)===null||ao===void 0||((Ii=ao.days)===null||Ii===void 0))?void 0:Ii[0],"\u5929\u5185\u6709\u6548"),((ki=In.detail)===null||ki===void 0||((So=ki.expiration_type)===null||So===void 0)?void 0:So.clazz)==="3"&&"".concat((co=In.detail)===null||co===void 0||((ho=co.expiration_type)===null||ho===void 0||((Qi=ho.days)===null||Qi===void 0))?void 0:Qi.join("\u5230")))),Qo()),e.a.createElement("p",{className:"mb30",style:{marginTop:"15px"}},e.a.createElement("span",{className:"font16",style:{display:"flex",alignItems:"center"}},e.a.createElement("img",{style:{marginRight:"10px"},src:qn.a})," ",(Mi=In.detail)===null||Mi===void 0?void 0:Mi.learning_notes_title)),e.a.createElement("div",{ref:qi},e.a.createElement(ze.a,{className:"fon16",value:(Vi=In.detail)===null||Vi===void 0?void 0:Vi.learning_notes}))),!!((Ki=In.rightData)!==null&&Ki!==void 0&&(go=Ki.members)!==null&&go!==void 0&&go.length)&&e.a.createElement("div",{className:"".concat(jt.a.card," pb0"),style:{marginTop:(Fi=In.detail)!==null&&Fi!==void 0&&(yo=Fi.courses)!==null&&yo!==void 0&&yo.length?-135:-65}},(Xa=In.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:rr.a})," ",(io=In.rightData)===null||io===void 0?void 0:io.team_title),e.a.createElement(ve,{data:(Lo=In.rightData)===null||Lo===void 0?void 0:Lo.members,operation:(Wi=In.detail)===null||Wi===void 0?void 0:Wi.allow_add_member,handleDeleteMember:cr}),((Ti=In.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(se.a,{className:"c-blue current",onClick:Bs},"+ \u6DFB\u52A0\u5408\u4F5C\u8005"))),!!((Ao=In.rightData)!==null&&Ao!==void 0&&(qo=Ao.tags)!==null&&qo!==void 0&&qo.length)&&(($o=In.detail)===null||$o===void 0?void 0:$o.show_tag)&&e.a.createElement("div",{className:jt.a.skillWrap},e.a.createElement("p",{className:"".concat(jt.a.skillTopWrap," font16 mb20")},e.a.createElement("span",null,"\u6280\u80FD\u6807\u7B7E",e.a.createElement("span",{className:"ml5 c-grey-c"},(Go=In.rightData)===null||Go===void 0||((Xi=Go.tags)===null||Xi===void 0)?void 0:Xi.length))),e.a.createElement(Tr.a,{option:Ms(),style:{height:370},opts:{renderer:"svg"}})),((es=In.detail)===null||es===void 0?void 0:es.show_spoc)===1&&e.a.createElement("div",{className:"".concat(jt.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:ia.a}),"SPOC\u8BFE\u5802"),e.a.createElement(Nt,{data:(yi=In.Courses)===null||yi===void 0?void 0:yi.spoc_courses,handleDeleteMember:ys}),((Ua=In.detail)===null||Ua===void 0?void 0:Ua.show_spoc)===1&&(In==null||((li=In.Courses)===null||li===void 0||((Na=li.spoc_courses)===null||Na===void 0))?void 0:Na.length)<3&&((Yi=In.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(se.a,{className:"c-blue current",onClick:function(){return fo()}},"+ \u6DFB\u52A0\u8BFE\u5802"))),((bo=In.detail)===null||bo===void 0?void 0:bo.show_history)&&e.a.createElement("div",{className:"".concat(jt.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:ia.a}),"\u5386\u53F2\u8BFE\u5802"),e.a.createElement(Nt,{data:jo==null?void 0:jo.spoc_courses,handleDeleteMember:ys}),((Li=In.detail)===null||Li===void 0?void 0:Li.show_history)&&(jo==null||((Vo=jo.spoc_courses)===null||Vo===void 0)?void 0:Vo.length)<3&&((Po=In.detail)===null||Po===void 0?void 0:Po.allow_add_member)&&e.a.createElement(oe.a,{gutter:[0,40],justify:"center",align:"middle",className:"bg-white mt0"},e.a.createElement(se.a,{className:"c-blue current",onClick:function(){return fo(1)}},"+ \u6DFB\u52A0\u8BFE\u5802"))),e.a.createElement(bt,{onReloadData:bs}),e.a.createElement(Gt,{onReloadData:bs,data:jo}),e.a.createElement(ba,{visible:fi,onCancel:function(){ko(!1)},data:((Xo=In.rightData)===null||Xo===void 0||((Bi=Xo.progress)===null||Bi===void 0)?void 0:Bi.info)||{}}))},xa=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}})(Oa),ka=M("cWXX"),Ha=M("/ezw"),Ia=M("VlDO"),Yr=M.n(Ia),za=M("bbsP"),Ga=M("/wGt"),Da=M("DjyN"),si=M("NUBc"),di=M("/zsF"),Ma=M("PArb"),zr=M("cCSd"),Ar=M.n(zr),Gr=re.a.Search,qr=[{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"}]}],_a=function(Ye){var Je,Te=Ye.classroomList,Ve=Ye.loading,Be=Ye.dispatch,at=Ye.cb,nt=Ye.shixunIds,st=nt===void 0?[]:nt,it=Object(s.i)(),dt=Object(s.h)(),Dt=Te.actionTabs,Qt=ne.a.useForm(),Bt=Object(E.a)(Qt,1),$t=Bt[0],ln=Te.shixunLists,On=Object(n.useState)([]),Wt=Object(E.a)(On,2),qt=Wt[0],yn=Wt[1],Rn=Object(n.useState)({page:1,type:"all",diff:0,status:"all",order:"desc",limit:20,sort:"myshixuns_count"}),tn=Object(E.a)(Rn,2),bn=tn[0],Ln=tn[1];Object(n.useEffect)(function(){Te.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"&&(bn.page=1,Be({type:"classroomList/getShixunLists",payload:Object(P.a)({},bn)}))},[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 Xn=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(Ga.a,{placement:"bottom",height:"100%",closable:!1,visible:Te.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",key:"bottom",className:Ar.a.drawer,footer:e.a.createElement("div",{className:"tc"},e.a.createElement(h.a,{size:"large",onClick:function(){Xn(),yn([]),at("\u53D6\u6D88")},style:{marginRight:8}},"\u53D6\u6D88"),e.a.createElement(h.a,{size:"large",onClick:Object(y.a)(r.a.mark(function rn(){var hn,An,_n,tr;return r.a.wrap(function(Fn){for(;;)switch(Fn.prev=Fn.next){case 0:hn=function(hr){var Br=qt[hr];if(st.includes(Br)){var ur,Fr;return R.b.info("\u8BF7\u52FF\u91CD\u590D\u9009\u62E9\uFF1A".concat(ln==null||((ur=ln.shixun_list)===null||ur===void 0||((Fr=ur.find(function(Qn){return Qn.id===Br}))===null||Fr===void 0))?void 0:Fr.title)),{v:void 0}}},An=0;case 2:if(!(An<(qt==null?void 0:qt.length))){Fn.next=9;break}if(_n=hn(An),!(typeof _n=="object")){Fn.next=6;break}return Fn.abrupt("return",_n.v);case 6:An++,Fn.next=2;break;case 9:return Fn.next=11,Object(K.O)({id:Te.actionTabs.id,subject_id:Te.actionTabs.subject_id,shixun_ids:Object(o.a)(qt)});case 11:tr=Fn.sent,yn([]),tr!=null&&tr.shixuns_list&&(Xn(),at(tr.shixuns_list));case 14:case"end":return Fn.stop()}},rn)})),type:"primary"},"\u786E\u5B9A"))},e.a.createElement("section",{className:"tc"},e.a.createElement(Gr,{placeholder:"\u5B9E\u8BAD\u4FE1\u606F/\u9662\u6821\u540D\u79F0/\u521B\u5EFA\u8005",enterButton:"\u641C\u7D22",size:"large",className:Ar.a.search,onSearch:function(hn){bn.keyword=hn,bn.page=1,Be({type:"classroomList/getShixunLists",payload:Object(P.a)({},bn)})}})),e.a.createElement("section",{className:"edu-container"},qr.map(function(rn,hn){var An;return e.a.createElement("ul",{className:Ar.a.menu,key:hn},e.a.createElement("li",null,rn.name),rn==null||((An=rn.children)===null||An===void 0)?void 0:An.map(function(_n,tr){return e.a.createElement("li",{className:bn[rn.id]==_n.id?Ar.a.actived:"",onClick:function(){bn[rn.id]=_n.id,Ln(Object(P.a)({},bn)),Be({type:"classroomList/getShixunLists",payload:Object(P.a)({},bn)})}},e.a.createElement("strong",null,_n.name))}))}),ln==null||((Je=ln.shixun_list)===null||Je===void 0)?void 0:Je.map(function(rn,hn){return e.a.createElement("div",{className:Ar.a.listItem,key:hn},e.a.createElement(X.a,{checked:qt.includes(rn.id),value:rn.id,onChange:function(_n){var tr=qt.indexOf(rn.id);qt.indexOf(rn.id)>-1?yn(qt.filter(function(cn){return cn!==rn.id})):yn(qt.concat(rn.id))}}),e.a.createElement("div",{className:Ar.a.info},e.a.createElement("div",{className:Ar.a.title},e.a.createElement("div",{className:Ar.a.titleLeft},e.a.createElement("a",{className:"c-black",href:"/shixuns/".concat(rn==null?void 0:rn.identifier,"/challenges"),target:"_blank"},e.a.createElement("strong",{className:"font16",dangerouslySetInnerHTML:{__html:rn.title}})),Object(U.v)()&&(rn==null?void 0:rn.mark_status)===1&&e.a.createElement(l.a,{title:rn==null?void 0:rn.mark_content},e.a.createElement("span",{style:{marginRight:"auto",background:"#2FA34F"},className:"tag-style current ml10"},"\u6B63\u5E38")),Object(U.v)()&&(rn==null?void 0:rn.mark_status)===2&&e.a.createElement(l.a,{title:rn==null?void 0:rn.mark_content},e.a.createElement("span",{style:{marginRight:"auto",background:"#FF8C29"},className:"tag-style current ml10"},"\u9700\u5B8C\u5584")),Object(U.v)()&&(rn==null?void 0:rn.mark_status)===3&&e.a.createElement(l.a,{title:rn==null?void 0:rn.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:Ar.a.description,dangerouslySetInnerHTML:{__html:rn.description}})),e.a.createElement("div",{className:" mt15"},rn.challenge_names.map(function(An,_n){return e.a.createElement("span",{key:_n,className:"mr30 font12"},"\u7B2C",_n+1,"\u5173 ",An," ")})),e.a.createElement(Ma.a,{dashed:!0}),e.a.createElement("div",{className:"c-light-black mt20 font12"},e.a.createElement("span",null,rn.author_name),e.a.createElement("span",{className:"ml15 mr15"},"|"),e.a.createElement("span",null,rn.author_school_name),e.a.createElement("span",{className:"ml15 mr15"},"|"),e.a.createElement("span",null,"\u96BE\u5EA6\u7CFB\u6570:",rn.level),e.a.createElement("span",{className:"ml15 mr15"},"|"),e.a.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570:"),e.a.createElement("span",null,rn.study_count))))}),e.a.createElement("p",null)),e.a.createElement("div",{className:"tc"},e.a.createElement(si.a,{current:bn.page||1,hideOnSinglePage:!0,showSizeChanger:!1,defaultPageSize:20,showQuickJumper:!0,total:ln==null?void 0:ln.shixuns_count,onChange:function(hn){bn.page=hn,Be({type:"classroomList/getShixunLists",payload:Object(P.a)({},bn)})}})))},Jr=Object(u.a)(function(Ge){var Ye=Ge.classroomList,Je=Ge.loading;return{classroomList:Ye,loading:Je}})(_a),ji=M("Ot1p"),Fa=M("qdXH"),vi=M("sBCT"),vo=M("500L"),Wo=M("giR+"),Ca=M("fyUT"),Ro=M("dwhp"),hi=M("IxHN"),os=M("M8RZ"),eo=M("BdwD"),ss=M("9nDM"),Jo=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),it=st[0],dt=st[1];function Dt($t){dt($t)}var Qt=Object(s.i)();function Bt(){if(!it){R.b.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}Te(Be,it),Ve({type:"pathsDetail/getPathsDetail",payload:{id:Qt.pathId}}),dt("")}return e.a.createElement("div",{key:Be,className:"discuss-item-editor",style:{display:at===Be?"block":"none",width:"100%"}},e.a.createElement(ji.a,{miniToolbar:!0,startInit:at===Be,defaultValue:it,id:Be,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:Dt}),e.a.createElement("a",{onClick:Bt,className:"btn-send"},"\u53D1\u9001"))},Ui=Object(u.a)(function(Ge){var Ye=Ge.shixunsDetail,Je=Ge.loading,Te=Ge.globalSetting;return{shixunsDetail:Ye,globalSetting:Te,loading:Je.models.index}})(Jo),Zo=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 it=Object(y.a)(r.a.mark(function dt(Dt,Qt){var Bt;return r.a.wrap(function(ln){for(;;)switch(ln.prev=ln.next){case 0:return ln.next=2,Object(K.M)({id:Dt,content:Qt});case 2:Bt=ln.sent,(Bt==null?void 0:Bt.status)===0&&Te(1);case 4:case"end":return ln.stop()}},dt)}));return function(Dt,Qt){return it.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(yt.a.IMG_SERVER,"/images/").concat(Je.image_url),width:"50"})),e.a.createElement("section",null,e.a.createElement(Ui,{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}})(Zo),kn=M("fXAG");function Cr(Ge){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Object(le.c)("/discusses.json?page=".concat(Ye-1,"&container_identifier=").concat(Ge,"&container_type=Shixun"))}function gr(Ge,Ye){return Object(le.f)("/discusses/".concat(Ge,"/top_or_down_discuss.json"),{top:Ye})}function Vr(Ge,Ye){return Object(le.f)("/discusses/".concat(Ge,"/plus.json"),{container_type:"Discuss",type:Ye?1:0})}function Aa(Ge,Ye){return Object(le.f)("/discusses/".concat(Ge,"/hidden.json"),Ye)}function Sa(Ge,Ye){return Object(le.f)("/discusses/".concat(Ge,"/reward_code.json"),Ye)}function la(Ge){return Object(le.a)("/api/discusses/".concat(Ge,".json"),{method:"delete"})}function Ai(Ge,Ye){return Object(le.f)("/discusses/".concat(Ge,"/reply.json"),{container_type:"Shixun",content:Ye})}function Hi(Ge){return Object(le.f)("/discusses.json",Ge)}var ra=M("QcdW"),zo=M("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,it=Ge.onSetActionType,dt=Ge.deleteCommentAlert,Dt=Ge.shixunName,Qt=Ye.author,Bt=Ye.can_delete,$t=Ye.manage,ln=Ye.content,On=Ye.hidden,Wt=Ye.id,qt=Ye.reward,yn=Ye.time;function Rn(){st({id:Wt,index:Je,user_id:Qt.user_id,parentDiscussIndex:Ve})}function tn(){it({id:Wt,index:Je,params:{hidden:On?"0":"1",container_identifier:Be},type:"hidden-discuss",parentDiscussIndex:Ve,message:On?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}function bn(){if(dt){T.a.info({title:"\u63D0\u793A",content:e.a.createElement("div",{className:"tc"}," ","\u8BE5\u6761\u8BC4\u8BBA\u6765\u81EA\u300A",Dt,"\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}it({id:Wt,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(Qt.login),target:"_blank"},Qt.name),e.a.createElement("span",{className:"grey"},yn),qt?e.a.createElement("a",{className:"c-orange gift",title:"\u5DF2\u5956\u52B1\u91D1\u5E01".concat(qt)},e.a.createElement("i",{className:"iconfont icon-gift c-orange "}),e.a.createElement("span",null,qt)):null),e.a.createElement("div",{className:"btn-group"},Te?e.a.createElement("a",{onClick:Rn,title:"\u7ED9TA\u5956\u52B1\u91D1\u5E01"},e.a.createElement("i",{className:"iconfont icon-jiangli"})):null,Te?e.a.createElement("a",{onClick:tn,title:On?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},e.a.createElement("i",{className:On?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,$t?e.a.createElement("a",{onClick:bn,title:"\u5220\u9664"},e.a.createElement("i",{className:"iconfont icon-shanchu"})):null)),e.a.createElement(ze.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,it=Ge.onSetRewardData,dt=Ge.user,Dt=Ge.isDelete,Qt=Ge.activeDiscussIndex,Bt=Ge.onReplyDiscuss,$t=Ge.onSetActiveDiscussIndex,ln=Ye.content,On=Ye.children,Wt=Ye.game_url,qt=Ye.hidden,yn=Ye.id,Rn=Ye.position,tn=Ye.praise_count,bn=Ye.reward,Ln=Ye.sticky,Xn=Ye.time,rn=Ye.user_praise,hn=Ye.game_passed,An=Ye.delete_comment_alert,_n=Ye.author,tr=Ye.shixun_name,cn=Ye.manage;function Fn(){$t(yn)}function Ir(){at(yn,!Ln,Je)}function hr(){nt(yn,!rn,Je)}function Br(){it({id:yn,index:Je,user_id:_n.user_id})}function ur(){if(An){T.a.info({title:"\u63D0\u793A",content:e.a.createElement("div",{className:"tc"}," ","\u8BE5\u6761\u8BC4\u8BBA\u6765\u81EA\u300A",tr,"\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:yn,index:Je,type:"delete-discuss",message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}function Fr(){st({id:yn,index:Je,params:{hidden:qt?"0":"1",container_identifier:Te},type:"hidden-discuss",message:qt?"\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(ta){var Wr=ta.target,yr=Wr.nodeName,Dn=Wr.src;yr==="IMG"&&(Dr.a.publish("preview-image",Dn),console.log("src:",Dn))};return e.a.createElement("div",{className:"discuss-item-container",key:yn},e.a.createElement("a",{href:"/users/".concat(_n.login),target:"_blank"},e.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",src:"".concat(yt.a.IMG_SERVER,"/images/").concat(_n.image_url),width:"50"})),e.a.createElement("section",null,e.a.createElement("div",{className:"discuss-info"},e.a.createElement("a",{href:"/users/".concat(_n.login),target:"_blank"},_n.name),e.a.createElement("span",{className:"grey"},Xn),Rn?e.a.createElement("span",{className:"c-green"}," [\u7B2C",Rn,"\u5173] "):null,Wt?e.a.createElement("a",{href:Wt,target:"_blank",className:"view-code",title:"\u70B9\u51FB\u67E5\u770BTA\u7684\u4EE3\u7801\u9875\u9762"},"\u67E5\u770B"):null,bn?e.a.createElement("a",{className:"c-orange gift",title:"\u5DF2\u5956\u52B1\u91D1\u5E01".concat(bn)},e.a.createElement("i",{className:"iconfont icon-gift c-orange "}),e.a.createElement("span",null,bn)):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(ze.a,{className:"discuss-content",value:ln})),On&&On.length>0?e.a.createElement("div",{className:"reply-discuss-container",onClick:Qn},On.map(function(kr,ta){return e.a.createElement(fa,{key:kr.id,data:kr,index:ta,deleteCommentAlert:An,shixunName:tr,shixunIdentifier:Te,adminOrOperator:Ve,user:dt,isDelete:Dt,onSetRewardData:it,onSetActionType:st,parentDiscussIndex:Je})})):null,e.a.createElement("div",{className:"btn-group"},Ve?e.a.createElement("a",{onClick:Br,title:"\u7ED9TA\u5956\u52B1\u91D1\u5E01"},e.a.createElement("i",{className:"iconfont icon-jiangli"})):null,Ve?e.a.createElement("a",{onClick:Fr,title:qt?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},e.a.createElement("i",{className:qt?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,cn&&(!On||On.length==0)&&e.a.createElement("a",{onClick:ur,title:"\u5220\u9664"},e.a.createElement("i",{className:"iconfont icon-shanchu"})),e.a.createElement("a",{onClick:Fn,title:"\u56DE\u590D"},e.a.createElement("i",{className:"iconfont icon-huifu1"})),e.a.createElement("a",{onClick:hr,className:rn?"c-orange":""},e.a.createElement("i",{className:rn?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),e.a.createElement("span",null,tn||""))),e.a.createElement(Ui,{id:yn,activeDiscussIndex:Qt,onReplyDiscuss:Bt})))},uo={showRewardDialog:!1,data:null,page:1,loading:!1,actionType:null,activeDiscussIndex:null};function Gi(Ge,Ye){switch(Ye.type){case kn.Q:return Object(P.a)(Object(P.a)({},Ge),{},{loading:!0});case kn.X:return Object(P.a)(Object(P.a)({},Ge),{},{showRewardDialog:!0});case kn.b:return Object(P.a)(Object(P.a)({},Ge),{},{showRewardDialog:!1});case kn.l:return Object(P.a)(Object(P.a)({},Ge),Ye.payload);case kn.ab:return Object(P.a)(Object(P.a)({},Ge),Ye.payload);case kn.x:return Object(P.a)(Object(P.a)({},Ge),Ye.payload);case kn.z:return Object(P.a)(Object(P.a)({},Ge),Ye.payload);case kn.H:return Object(P.a)(Object(P.a)({},Ge),Ye.payload);case kn.a:return Object(P.a)(Object(P.a)({},Ge),Ye.payload);default:throw new Error}}var va=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,it=Object(n.useReducer)(Gi,uo),dt=Object(E.a)(it,2),Dt=dt[0],Qt=dt[1],Bt=Dt.page,$t=Dt.loading,ln=Dt.data,On=Dt.actionType,Wt=Dt.showRewardDialog,qt=Dt.activeDiscussIndex,yn=Object(n.useRef)(),Rn=Object(n.useRef)(),tn=Object(s.i)();function bn(jn){return Ln.apply(this,arguments)}function Ln(){return Ln=Object(y.a)(r.a.mark(function jn($n){var ir;return r.a.wrap(function(zn){for(;;)switch(zn.prev=zn.next){case 0:if(!$t){zn.next=2;break}return zn.abrupt("return");case 2:return zn.prev=2,Qt({type:kn.Q}),zn.next=6,Object(K.A)(Object(P.a)(Object(P.a)({},tn),{},{page:$n}));case 6:ir=zn.sent,Qt({type:kn.l,payload:{activeDiscussIndex:null,page:$n,data:ir,loading:!1}}),zn.next=13;break;case 10:zn.prev=10,zn.t0=zn.catch(2),console.log(zn.t0);case 13:case"end":return zn.stop()}},jn,null,[[2,10]])})),Ln.apply(this,arguments)}function Xn(jn){document.body.scrollIntoView(),bn(jn)}function rn(jn,$n,ir){return hn.apply(this,arguments)}function hn(){return hn=Object(y.a)(r.a.mark(function jn($n,ir,Zn){var zn;return r.a.wrap(function(on){for(;;)switch(on.prev=on.next){case 0:return on.prev=0,on.next=3,Vr($n,ir);case 3:zn=on.sent,Dn[Zn].user_praise=ir,Dn[Zn].praise_count=zn.praise_count,Qt({type:kn.x,payload:{data:Object(P.a)(Object(P.a)({},ln),{},{comments:Dn})}}),on.next=12;break;case 9:on.prev=9,on.t0=on.catch(0),console.log(on.t0);case 12:case"end":return on.stop()}},jn,null,[[0,9]])})),hn.apply(this,arguments)}function An(jn,$n,ir){return _n.apply(this,arguments)}function _n(){return _n=Object(y.a)(r.a.mark(function jn($n,ir,Zn){return r.a.wrap(function(fn){for(;;)switch(fn.prev=fn.next){case 0:return fn.prev=0,fn.next=3,gr($n,ir);case 3:Dn[Zn].sticky=ir,Qt({type:kn.ab,payload:{data:Object(P.a)(Object(P.a)({},ln),{},{comments:Dn})}}),fn.next=10;break;case 7:fn.prev=7,fn.t0=fn.catch(0),console.log(fn.t0);case 10:case"end":return fn.stop()}},jn,null,[[0,7]])})),_n.apply(this,arguments)}function tr(){Qt({type:kn.z,payload:{actionType:null}})}function cn(){return Fn.apply(this,arguments)}function Fn(){return Fn=Object(y.a)(r.a.mark(function jn(){var $n,ir,Zn,zn,fn,on,Gn,Jn;return r.a.wrap(function(mr){for(;;)switch(mr.prev=mr.next){case 0:if($n=On.id,ir=On.params,Zn=On.type,zn=On.index,fn=On.parentDiscussIndex,!(Zn==="hidden-discuss")){mr.next=6;break}return mr.next=4,Aa($n,ir);case 4:fn?Dn[fn].children[zn].hidden=ir.hidden==1:Dn[zn].hidden=ir.hidden==1,Qt({type:kn.z,payload:{actionType:null,data:Object(P.a)(Object(P.a)({},ln),{},{comments:Dn})}});case 6:if(!(Zn==="delete-discuss")){mr.next=31;break}return mr.next=9,la($n);case 9:if(!(fn||fn===0)){mr.next=22;break}on=Dn[fn].children,Gn=on.length-1;case 12:if(!(Gn>=0)){mr.next=19;break}if(!(on[Gn].id===$n)){mr.next=16;break}return on.splice(Gn,1),mr.abrupt("break",19);case 16:Gn--,mr.next=12;break;case 19:Dn[fn].children=on,mr.next=30;break;case 22:Jn=Dn.length-1;case 23:if(!(Jn>=0)){mr.next=30;break}if(!(Dn[Jn].id===$n)){mr.next=27;break}return Dn.splice(Jn,1),mr.abrupt("break",30);case 27:Jn--,mr.next=23;break;case 30:Qt({type:kn.z,payload:{actionType:null,data:Object(P.a)(Object(P.a)({},ln),{},{comments:Dn})}});case 31:case"end":return mr.stop()}},jn)})),Fn.apply(this,arguments)}function Ir(jn){Qt({type:kn.z,payload:{actionType:jn}})}function hr(){Qt({type:kn.b})}function Br(){return ur.apply(this,arguments)}function ur(){return ur=Object(y.a)(r.a.mark(function jn(){var $n,ir,Zn,zn,fn,on,Gn;return r.a.wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:return $n=yn.current,ir=$n.id,Zn=$n.index,zn=$n.score,fn=$n.user_id,on=$n.parentDiscussIndex,Sn.next=3,Sa(ir,{container_type:"Discusses",score:zn,user_id:fn});case 3:Gn=Sn.sent,on?Dn[on].children[Zn].reward=Gn.code:Dn[Zn].reward=Gn.code,Qt({type:kn.H,payload:{showRewardDialog:!1,data:Object(P.a)(Object(P.a)({},ln),{},{comments:Dn})}}),yn.current=null;case 7:case"end":return Sn.stop()}},jn)})),ur.apply(this,arguments)}function Fr(jn){yn.current=jn,Qt({type:kn.X})}function Qn(jn){yn.current.score=jn}function kr(jn,$n){return ta.apply(this,arguments)}function ta(){return ta=Object(y.a)(r.a.mark(function jn($n,ir){return r.a.wrap(function(zn){for(;;)switch(zn.prev=zn.next){case 0:return zn.prev=0,zn.next=3,Ai($n,ir);case 3:bn(Bt),zn.next=9;break;case 6:zn.prev=6,zn.t0=zn.catch(0),console.log(zn.t0);case 9:case"end":return zn.stop()}},jn,null,[[0,6]])})),ta.apply(this,arguments)}function Wr(jn){qt===jn?Qt({type:kn.a,payload:{activeDiscussIndex:null}}):Qt({type:kn.a,payload:{activeDiscussIndex:jn}})}if(Object(n.useEffect)(function(){function jn(){return $n.apply(this,arguments)}function $n(){return $n=Object(y.a)(r.a.mark(function ir(){return r.a.wrap(function(zn){for(;;)switch(zn.prev=zn.next){case 0:if(!(Te===3&&!ln&&Ye)){zn.next=3;break}return zn.next=3,bn(Bt);case 3:case"end":return zn.stop()}},ir)})),$n.apply(this,arguments)}jn()},[tn.pathId]),!ln)return e.a.createElement(Y.a,{spinning:!0},e.a.createElement("div",{style:{height:"300px",width:"100%"}}));var yr=ln.disscuss_count,Dn=ln.comments,ar=ln.all,Pr=ln.can_hidden;return e.a.createElement(n.Fragment,null,e.a.createElement("div",{className:"discuss-container",ref:Rn},yr===0?e.a.createElement(eo.a,null):null,Object(U.p)()&&e.a.createElement(ps,{getTypeNumber:st,upDataList:bn,page:Bt,user:Ve}),e.a.createElement("aside",{className:"bg-white"},Dn==null?void 0:Dn.map(function(jn,$n){return e.a.createElement(Si,{user:Ve,key:jn.id,data:jn,index:$n,identity:Je,onPaginationChange:Xn,shixunIdentifier:Ye,isDelete:nt,onSetActionType:Ir,onTopOrDownDiscuss:An,adminOrOperator:Pr,onPlusDiscuss:rn,onSetRewardData:Fr,activeDiscussIndex:qt,onSetActiveDiscussIndex:Wr,onReplyDiscuss:kr})})),yr>10?e.a.createElement("div",{className:"pagination-container tc"},e.a.createElement(si.a,{showQuickJumper:!0,showSizeChanger:!1,onChange:Xn,current:Bt,total:yr})):null),e.a.createElement(os.a,null,e.a.createElement(T.a,{centered:!0,title:"\u63D0\u793A",visible:!!On,onOk:cn,onCancel:tr},e.a.createElement("p",null,On?On.message:"")),e.a.createElement(T.a,{centered:!0,width:400,title:"\u5956\u52B1\u8BBE\u7F6E",visible:Wt,onCancel:hr,onOk:Br},e.a.createElement(Ca.a,{placeholder:"\u8BF7\u8F93\u5165\u5956\u52B1\u7684\u91D1\u5E01\u6570\u91CF",min:1,onChange:Qn,style:{width:"228px"}}))))},oa=M("jZGp"),ua=M("LvDl"),to=["application/pdf","application/msword","application/vnd.ms-excel","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/ZIP"],ls=function(Ye){var Je,Te,Ve,Be,at,nt=Ye.pathsDetail,st=Ye.user,it=Ye.globalSetting,dt=Ye.loading,Dt=Ye.dispatch,Qt=Object(_.a)(Ye,["pathsDetail","user","globalSetting","loading","dispatch"]),Bt=Object(s.i)(),$t=nt.stageData,ln=Object(n.useState)([]),On=Object(E.a)(ln,2),Wt=On[0],qt=On[1],yn=Object(n.useState)(-1),Rn=Object(E.a)(yn,2),tn=Rn[0],bn=Rn[1],Ln=Object(n.useState)(!1),Xn=Object(E.a)(Ln,2),rn=Xn[0],hn=Xn[1],An=Object(n.useState)(!1),_n=Object(E.a)(An,2),tr=_n[0],cn=_n[1],Fn=Object(n.useState)(!1),Ir=Object(E.a)(Fn,2),hr=Ir[0],Br=Ir[1],ur=Object(n.useState)({name:"",is_jupyter:!1}),Fr=Object(E.a)(ur,2),Qn=Fr[0],kr=Fr[1],ta=ne.a.useForm(),Wr=Object(E.a)(ta,1),yr=Wr[0],Dn=ne.a.useForm(),ar=Object(E.a)(Dn,1),Pr=ar[0],jn=ne.a.useForm(),$n=Object(E.a)(jn,1),ir=$n[0],Zn=ne.a.useForm(),zn=Object(E.a)(Zn,1),fn=zn[0],on=Object(n.useState)(!1),Gn=Object(E.a)(on,2),Jn=Gn[0],Sn=Gn[1],mr=Object(n.useState)([]),Kr=Object(E.a)(mr,2),Va=Kr[0],Ra=Kr[1],aa=Object(n.useState)(!1),gi=Object(E.a)(aa,2),ti=gi[0],Ka=gi[1],no=Object(n.useState)("All"),ro=Object(E.a)(no,2),Di=ro[0],Io=ro[1],Mo=Object(n.useState)(!1),ao=Object(E.a)(Mo,2),Ii=ao[0],ki=ao[1],So=Object(n.useState)(0),co=Object(E.a)(So,2),ho=co[0],Qi=co[1],Mi=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)(Mi,2),Ki=Vi[0],go=Vi[1],Fi=Object(n.useState)(),yo=Object(E.a)(Fi,2),Xa=yo[0],io=yo[1],Lo=Object(n.useState)([]),Wi=Object(E.a)(Lo,2),Ti=Wi[0],Ao=Wi[1],qo=function(Lt){if(Lt.key=="Enter"){var Yt=ir.getFieldValue("tag");if(ir.setFieldsValue({tag:""}),!Yt){R.b.info("\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A");return}if(Ti.filter(function(Cn){return Cn===Yt}).length>0){R.b.info("\u5DF2\u6709\u76F8\u540C\u540D\u79F0\u6807\u7B7E");return}Ti.push(Yt),Ao(Object(o.a)(Ti))}},$o=function(Lt,Yt){Lt.preventDefault(),Ao(Object(o.a)(Ti.filter(function(Cn){return Cn!=Yt})))},Go=((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 Lt=nt.detail,Yt=Lt.shixuns_count,Cn=Yt===void 0?0:Yt,Vt=Lt.videos_count,er=Vt===void 0?0:Vt,lr=Lt.attachment_count,fr=lr===void 0?0:lr,$r=Lt.disscuss_count,mn=$r===void 0?0:$r,ni={All:Cn+er+fr,Shixun:Cn,VideoItem:er,Attachment:fr,Discusses:mn},Pi=Ki.map(function(La){return Object(P.a)(Object(P.a)({},La),{},{number:ni[La.type]})});go(Pi)};Object(n.useEffect)(function(){Xi()},[nt.detail]),Object(n.useEffect)(function(){Xi(),qt(Object(o.a)($t))},[$t]);var es=function(){var Tn=Object(y.a)(r.a.mark(function Lt(Yt,Cn){var Vt;return r.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:if(Dt({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!Cn){lr.next=7;break}return lr.next=4,Object(pn.C)({id:Yt});case 4:lr.t0=lr.sent,lr.next=10;break;case 7:return lr.next=9,Object(pn.D)({id:Yt});case 9:lr.t0=lr.sent;case 10:if(Vt=lr.t0,Dt({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(Vt!=null&&Vt.game_identifier||Vt!=null&&Vt.identifier)){lr.next=15;break}return Object(fe.Q)(Cn?"/tasks/".concat(Vt==null?void 0:Vt.identifier,"/jupyter"):"/tasks/".concat(Vt.game_identifier)),lr.abrupt("return");case 15:(Vt==null?void 0:Vt.status)===-3?Object(fe.o)():(Vt==null?void 0:Vt.status)===2?yi(Vt==null?void 0:Vt.message):(Vt==null?void 0:Vt.status)===3&&Ua(Vt==null?void 0:Vt.message);case 16:case"end":return lr.stop()}},Lt)}));return function(Yt,Cn){return Tn.apply(this,arguments)}}(),yi=function Tn(Lt){var Yt;Lt=(Yt=Lt)!==null&&Yt!==void 0&&Yt.includes(".json")?Lt:"".concat(Lt,".json"),T.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:e.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var Cn=Object(y.a)(r.a.mark(function er(){var lr,fr;return r.a.wrap(function(mn){for(;;)switch(mn.prev=mn.next){case 0:return mn.next=2,Object(sn.S)({url:Lt});case 2:if(lr=mn.sent,lr){mn.next=5;break}return mn.abrupt("return");case 5:return R.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),mn.next=8,Object(pn.D)({id:lr.shixun_identifier});case 8:if(fr=mn.sent,!(fr!=null&&fr.game_identifier)){mn.next=12;break}return Object(fe.Q)("/tasks/".concat(fr.game_identifier)),mn.abrupt("return");case 12:(fr==null?void 0:fr.status)===2?Tn(fr==null?void 0:fr.message):(fr==null?void 0:fr.status)===3&&Ua(fr==null?void 0:fr.message);case 13:case"end":return mn.stop()}},er)}));function Vt(){return Cn.apply(this,arguments)}return Vt}()})},Ua=function(Lt){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",Lt,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},li=function(){if(!Eo())return;Sn(!0)};Object(n.useEffect)(function(){if(Jn){var Tn={shixuns_list:[],attachments_list:[],items:[]};Yi(Wt.length,Tn),qt([].concat(Object(o.a)(Wt),[Tn]))}},[Jn]);var Na=function(){setTimeout(function(){tn===Wt.length-1&&Jn&&(dn(),qt(Wt.filter(function(Lt,Yt){return Yt!==Wt.length-1}))),Bi(),bn(-1)},300)},Yi=function(Lt,Yt){if(!Eo())return;bn(Lt),yr.setFieldsValue({name:Yt.stage_name,description:Yt.stage_description,tagName:Yt.tag&&Yt.tag.name||""})},bo=function(Lt){if(setTimeout(function(){document.documentElement.scrollTop=ho},300),Lt==="\u53D6\u6D88")return;Wt[tn].items=Wt[tn].items.concat(Lt),qt(Object(o.a)(Wt))},Li=function(){var Tn=Object(y.a)(r.a.mark(function Lt(Yt){var Cn;return r.a.wrap(function(er){for(;;)switch(er.prev=er.next){case 0:return er.next=2,Object(K.Q)(Object(P.a)({},Yt));case 2:return Cn=er.sent,Wt[tn].items=Yt.list,er.abrupt("return",Cn);case 5:case"end":return er.stop()}},Lt)}));return function(Yt){return Tn.apply(this,arguments)}}(),Vo=function(Lt){Wt[tn].items=Wt[tn].items.concat(Object(P.a)(Object(P.a)({},Lt),{},{children:[]})),qt(Object(o.a)(Wt))},Po=function(Lt){Wt[tn].items=Wt[tn].items.concat(Lt),qt(Object(o.a)(Wt))},Xo=function(){var Tn=Object(y.a)(r.a.mark(function Lt(Yt){var Cn,Vt,er,lr,fr;return r.a.wrap(function(mn){for(;;)switch(mn.prev=mn.next){case 0:if(Xa){mn.next=8;break}return mn.next=3,Object(K.f)(Object(P.a)({id:Wt[tn].stage_id,subject_id:Bt.pathId},Yt));case 3:return Cn=mn.sent,Cn.id&&(Ka(!1),Vt=[Object(P.a)({},Cn)],Wt[tn].items=Wt[tn].items.concat(Vt),qt(Object(o.a)(Wt))),mn.abrupt("return",Cn);case 8:return mn.next=10,Object(K.S)(Object(P.a)(Object(P.a)({id:Xa==null?void 0:Xa.id,subject_id:Bt.pathId},Yt),{},{video_id:(Yt==null?void 0:Yt.video_id)||(Xa==null||((er=Xa.video_item)===null||er===void 0)?void 0:er.video_id),link:(Yt==null?void 0:Yt.link)||(Xa==null||((lr=Xa.video_item)===null||lr===void 0)?void 0:lr.link)}));case 10:return fr=mn.sent,fr&&(R.b.success("\u4FEE\u6539\u6210\u529F"),Ka(!1),Bi()),mn.abrupt("return",fr);case 13:case"end":return mn.stop()}},Lt)}));return function(Yt){return Tn.apply(this,arguments)}}(),Bi=function(){Dt({type:"pathsDetail/getStageData",payload:{subject_id:Bt.pathId}}),Dt({type:"pathsDetail/getPathsDetail",payload:{id:Bt.pathId}}),Dt({type:"pathsDetail/getRightData",payload:{id:Bt.pathId}}),dn()},In=function(){var Tn=Object(y.a)(r.a.mark(function Lt(Yt,Cn){var Vt,er,lr,fr,$r,mn,ni,Pi,La,da,Oi;return r.a.wrap(function(qa){for(;;)switch(qa.prev=qa.next){case 0:if(!(!(Yt!=null&&Yt.name)||(Yt==null?void 0:Yt.name.replace(/(^\s*)|(\s*$)/g,""))==="")){qa.next=2;break}return qa.abrupt("return",R.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01"));case 2:if(dn(),lr=[],(Vt=Wt[tn].shixuns_list)===null||Vt===void 0||Vt.map(function(Ya){lr.push({type:Ya.item_type,id:Ya.id})}),(er=Wt[tn].attachments_list)===null||er===void 0||er.map(function(Ya){lr.push({type:"Attachment",id:Ya.id})}),fr=Yt.tagName,$r=Object(_.a)(Yt,["tagName"]),!Jn){qa.next=16;break}return mn=Object(P.a)(Object(P.a)({},$r),{},{pathId:Bt.pathId,list:lr}),fr&&(mn=Object(P.a)(Object(P.a)({},mn),{},{stage_tag_attributes:{name:fr}})),qa.next=12,Object(K.d)(Object(P.a)({},mn));case 12:ni=qa.sent,ni!=null&&ni.subject_id&&(Wt[tn]=Object(P.a)(Object(P.a)(Object(P.a)({},Wt[tn]),ni),{},{stage_name:mn.name,stage_description:mn.description,tag:mn.stage_tag_attributes}),qt(Object(o.a)(Wt))),qa.next=24;break;case 16:return Pi=Array.from(new Set(lr.map(function(Ya){return Ya.type}))),La=Object(P.a)(Object(P.a)({},$r),{},{id:Wt[tn].stage_id,type:Array.from(new Set(lr.map(function(Ya){return Ya.type}))),list:lr}),da=Wt[tn].tag&&Wt[tn].tag.id||"",La=Object(P.a)(Object(P.a)({},La),{},{stage_tag_attributes:da?{id:da,name:fr}:{name:fr}}),qa.next=22,Object(K.U)(Object(P.a)({},La));case 22:Oi=qa.sent,Oi!=null&&Oi.subject_id&&(Wt[tn]=Object(P.a)(Object(P.a)(Object(P.a)({},Wt[tn]),Oi),{},{stage_name:La.name,stage_description:La.description,tag:La.stage_tag_attributes}),qt(Object(o.a)(Wt)));case 24:return Sn(!1),qa.abrupt("return");case 26:case"end":return qa.stop()}},Lt)}));return function(Yt,Cn){return Tn.apply(this,arguments)}}(),Ji=function(Lt,Yt,Cn){var Vt=Array.from(Lt),er=Vt.splice(Yt,1),lr=Object(E.a)(er,1),fr=lr[0];return Vt.splice(Cn,0,fr),Vt},vs=function(Lt,Yt){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(){Wt[tn][Yt||"shixuns_list"].splice(Lt,1),R.b.success("\u5220\u9664\u6210\u529F"),qt(Object(o.a)(Wt)),In(yr.getFieldsValue(),Yt)}})},ts=function(Lt){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 Yt=Object(y.a)(r.a.mark(function Vt(){var er;return r.a.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:return fr.next=2,Object(K.s)(Lt);case 2:er=fr.sent,er.status===0&&(R.b.success("\u5220\u9664\u6210\u529F"),Bi());case 4:case"end":return fr.stop()}},Vt)}));function Cn(){return Yt.apply(this,arguments)}return Cn}()})},ca=function(){var Tn=Object(y.a)(r.a.mark(function Lt(Yt){var Cn,Vt,er,lr,fr;return r.a.wrap(function(mn){for(;;)switch(mn.prev=mn.next){case 0:if(console.log(Yt),!((Yt==null?void 0:Yt.item_type)==="VideoItem")){mn.next=9;break}return mn.next=4,Object(Fa.g)({id:Yt==null?void 0:Yt.stage_item_id});case 4:Cn=mn.sent,io(Cn),(Yt==null?void 0:Yt.item_type)==="VideoItem"?Ka(!0):(Ao((Cn==null||((Vt=Cn.tags)===null||Vt===void 0)?void 0:Vt.map(function(ni){return ni==null?void 0:ni.name}))||[]),ir.setFieldsValue({files:[{uid:Cn==null||((er=Cn.attachment)===null||er===void 0)?void 0:er.id,name:Cn==null?void 0:Cn.name,response:{id:Cn==null||((lr=Cn.attachment)===null||lr===void 0)?void 0:lr.id}}]}),cn(!0)),mn.next=10;break;case 9:T.a.confirm({title:"\u4FEE\u6539\u8BFE\u4EF6\u540D\u79F0",icon:null,centered:!0,okText:"\u786E\u8BA4\u4FEE\u6539",cancelText:"\u53D6\u6D88",content:e.a.createElement(re.a,{value:fr,onChange:function(Pi){fr=Pi.target.value},placeholder:"\u8BF7\u8F93\u5165\u8BFE\u4EF6\u540D\u79F0"}),onOk:function(){var ni=Object(y.a)(r.a.mark(function La(){var da,Oi,qi;return r.a.wrap(function(Ya){for(;;)switch(Ya.prev=Ya.next){case 0:if(fr){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(le.a)("/api/attachments/".concat(Yt==null?void 0:Yt.id,".json"),{method:"put",body:{name:fr+(Yt==null||((da=Yt.name)===null||da===void 0)?void 0:da.substr(Yt==null||((Oi=Yt.name)===null||Oi===void 0)?void 0:Oi.lastIndexOf(".")))}});case 5:qi=Ya.sent,fr="",Bi();case 8:case"end":return Ya.stop()}},La)}));function Pi(){return ni.apply(this,arguments)}return Pi}()});case 10:case"end":return mn.stop()}},Lt)}));return function(Yt){return Tn.apply(this,arguments)}}(),Ur=function(Lt){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 Yt=Object(y.a)(r.a.mark(function Vt(){var er;return r.a.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:return fr.next=2,Object(K.r)({id:Lt});case 2:er=fr.sent,er.status===1&&(bn(-1),R.b.success("\u5220\u9664\u6210\u529F"),Bi());case 4:case"end":return fr.stop()}},Vt)}));function Cn(){return Yt.apply(this,arguments)}return Cn}()})},ui=function(){kr({name:"",is_jupyter:!1}),Pr.setFieldsValue({name:"",is_jupyter:!1}),ki(!1),hn(!1)},wa=function(Lt,Yt){var Cn;if(!Lt.destination)return;var Vt=Ji((Cn=Wt[tn])===null||Cn===void 0?void 0:Cn[Yt||"shixuns_list"],Lt.source.index,Lt.destination.index);Wt[tn][Yt||"shixuns_list"]=Vt,qt(Object(o.a)(Wt)),In(yr.getFieldsValue(),Yt)},To=function(){var Tn=Object(y.a)(r.a.mark(function Lt(Yt){var Cn;return r.a.wrap(function(er){for(;;)switch(er.prev=er.next){case 0:if(Eo()){er.next=2;break}return er.abrupt("return");case 2:return er.next=4,Object(K.T)({id:Yt});case 4:Cn=er.sent,Cn.status===1&&Bi();case 6:case"end":return er.stop()}},Lt)}));return function(Yt){return Tn.apply(this,arguments)}}(),Zi=function(){var Tn=Object(y.a)(r.a.mark(function Lt(Yt){var Cn;return r.a.wrap(function(er){for(;;)switch(er.prev=er.next){case 0:if(Eo()){er.next=2;break}return er.abrupt("return");case 2:return er.next=4,Object(K.t)({id:Yt});case 4:Cn=er.sent,Cn.status===1&&Bi();case 6:case"end":return er.stop()}},Lt)}));return function(Yt){return Tn.apply(this,arguments)}}(),Eo=function(){return tn!==-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 Yt="Edit_".concat(tn),Cn=document.getElementById(Yt);Cn&&setTimeout(function(){return Cn.scrollIntoView({block:"start",behavior:"smooth"})})}}),!1):!0},oo=function(){In(yr.getFieldsValue())},dn=function(){Sn(!1)},Uo=function(){var Lt,Yt,Cn,Vt,er,lr;return((Lt=nt.detail)===null||Lt===void 0||((Yt=Lt.courses)===null||Yt===void 0)?void 0:Yt.length)>0?(Cn=nt.detail)===null||Cn===void 0?void 0:Cn.allow_visit:!(((Vt=st.userInfo)===null||Vt===void 0?void 0:Vt.user_identity)==="\u5B66\u751F"&&(er=nt.detail)!==null&&er!==void 0&&er.allow_visit&&(lr=nt.detail)!==null&&lr!==void 0&&lr.courses)},Ss=function(Lt,Yt,Cn){var Vt,er,lr,fr,$r,mn,ni,Pi,La,da,Oi,qi;return Di!=="All"&&Lt.item_type!==Di?null:e.a.createElement(oe.a,{className:"list-item-row",align:"middle",key:Yt,gutter:[5,10]},e.a.createElement(se.a,null,Lt.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(se.a,{flex:1,className:!Lt.allow_visit&&!Lt.to_be_built&&(Lt.shixun_status==="\u6682\u672A\u516C\u5F00"||Lt.shixun_status==="\u5DF2\u5220\u9664")?Yr.a.color204:""},!!(nt!=null&&(Vt=nt.detail)!==null&&Vt!==void 0&&Vt.cust_seq)&&e.a.createElement("span",{className:"mr8"},Cn+1,"-",Yt+1),Lt.name,tn===-1&&Lt.complete_status===1&&e.a.createElement("span",{className:Yr.a.completed},e.a.createElement("i",{className:"iconfont icon-duigou1 mr5 font12"}),"\u5DF2\u5B8C\u6210")),e.a.createElement(se.a,null,tn===Cn&&e.a.createElement("div",null,e.a.createElement(l.a,{title:"\u5220\u9664"},e.a.createElement("span",{onClick:function(){vs(Yt,"shixuns_list")},className:"iconfont icon-shanchu c-grey-c"}))),(((er=st.userInfo)===null||er===void 0?void 0:er.admin)||((lr=st.userInfo)===null||lr===void 0?void 0:lr.business)||!(!((fr=nt.detail)!==null&&fr!==void 0&&fr.allow_statistics)&&(($r=st.userInfo)===null||$r===void 0?void 0:$r.user_identity)==="\u5B66\u751F"&&(mn=nt.detail)!==null&&mn!==void 0&&mn.allow_visit&&(ni=nt.detail)!==null&&ni!==void 0&&ni.courses))&&tn!==Cn&&Lt.item_type==="VideoItem"&&e.a.createElement("aside",null,e.a.createElement(h.a,{type:"primary",onClick:function(){var Ya,fi;if(!((Ya=st.userInfo)!==null&&Ya!==void 0&&Ya.admin)&&!((fi=st.userInfo)!==null&&fi!==void 0&&fi.business)&&!Lt.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")});Lt.link&&Object(Fa.n)({is_f:1,id:Lt.id,point:0,total:0}),Object(fe.Q)(Lt.link||"/video/".concat(Lt.id,"?subject_id=").concat(Bt.pathId))}},Lt.last_point>0?"\u7EE7\u7EED\u5B66\u4E60":"\u5F00\u59CB\u5B66\u4E60")),(((Pi=st.userInfo)===null||Pi===void 0?void 0:Pi.admin)||(Lt.allow_visit||Lt.to_be_built||Lt.shixun_status!=="\u6682\u672A\u516C\u5F00"&&Lt.shixun_status!=="\u5DF2\u5220\u9664")&&!(!((La=nt.detail)!==null&&La!==void 0&&La.allow_statistics)&&((da=st.userInfo)===null||da===void 0?void 0:da.user_identity)==="\u5B66\u751F"&&(Oi=nt.detail)!==null&&Oi!==void 0&&Oi.allow_visit&&(qi=nt.detail)!==null&&qi!==void 0&&qi.courses))&&tn!==Cn&&Lt.item_type==="Shixun"&&e.a.createElement("aside",null,e.a.createElement(It.a,{to:"/shixuns/".concat(Lt.identifier,"/challenges"),target:"_blank"},"\u67E5\u770B\u8BE6\u60C5"),Lt.shixun_status!=="\u6682\u672A\u516C\u5F00"&&e.a.createElement(h.a,{className:"ml20",type:"primary",onClick:function(){if(!Object(Fe.e)(Dt,!0))return;es(Lt.identifier,Lt.is_jupyter||Lt.is_jupyter_lab)}},"\u5F00\u59CB\u5B9E\u6218")),tn===-1&&!Lt.allow_visit&&!Lt.to_be_built&&Lt.shixun_status==="\u6682\u672A\u516C\u5F00"&&e.a.createElement("span",{className:Yr.a.color204},"\u6682\u672A\u516C\u5F00"),tn===-1&&!Lt.allow_visit&&!Lt.to_be_built&&Lt.shixun_status==="\u5DF2\u5220\u9664"&&e.a.createElement("span",{className:Yr.a.color204},"\u5DF2\u5220\u9664"),tn===-1&&Lt.item_type==="Shixun"&&!!Lt.challenges_count&&e.a.createElement("span",{className:"exper\u02C6iment-number ml5 c-grey-999"},"\u5B9E\u9A8C\u6570 ",Lt.challenges_count)))},gs=function(Lt){var Yt,Cn=[];if(Lt.items&&(Yt=Lt.items)!==null&&Yt!==void 0&&Yt.length){var Vt;(Vt=Lt.items)===null||Vt===void 0||Vt.forEach(function(lr){var fr;Cn.push(lr),lr.children&&(fr=lr.children)!==null&&fr!==void 0&&fr.length&&(Cn=Cn.concat(lr.children))})}var er=!!Cn.find(function(lr){return Object(ua.isEqual)(lr.learning_status,["can","try"])});return er?e.a.createElement("aside",{className:Yr.a.learn},"\u514D\u8D39\u8BD5\u5B66"):null},Za=function(Lt,Yt){var Cn,Vt,er,lr,fr,$r;if(Di!=="All"&&!((Cn=Lt.stage_tag)!==null&&Cn!==void 0&&Cn.includes(Di)))return null;var mn=!1,ni=!1,Pi=!1,La=!1;if(Di==="All"){var da,Oi,qi,qa;mn=(((da=st.userInfo)===null||da===void 0?void 0:da.admin)||((Oi=st.userInfo)===null||Oi===void 0?void 0:Oi.business)||((qi=nt.detail)===null||qi===void 0?void 0:qi.allow_statistics))&&tn===Yt&&!Jn,(qa=nt.detail)!==null&&qa!==void 0&&qa.allow_add_member&&Go&&tn!==Yt&&(ni=!0,Yt>0&&(Pi=!0),Yt<Wt.length-1&&(La=!0))}var Ya=function(){var ko=0,Fo=0,No=0;if(ni&&(No+=25),Pi&&(No+=18),La&&(No+=23.5),mn&&(No+=21),No&&(No+=5),Lt.tag){var jo=document.createElement("canvas").getContext("2d");jo.font="450 12px -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol",ko=Math.ceil(jo.measureText(Lt.tag.name).width)+16}var Ts=document.createElement("canvas").getContext("2d");return Ts.font="normal normal 450 18px -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol",Fo=Math.ceil(Ts.measureText(Lt.stage_name||"\u7B2C".concat(Wt==null?void 0:Wt.length,"\u90E8\u5206")).width),e.a.createElement("div",{className:Yr.a.labelContainer,style:{width:745-No}},e.a.createElement("div",{className:"".concat(Yr.a.text),style:{maxWidth:745-No-ko}},Lt.stage_name||"\u7B2C".concat(Wt==null?void 0:Wt.length,"\u90E8\u5206"),gs(Lt)),Lt.tag&&Lt.tag.name&&e.a.createElement("span",{className:Yr.a.tag},Lt.tag.name))};return e.a.createElement("section",{key:Yt,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(se.a,{flex:1,className:"tl font18 bold c-grey-333"},Ya()),Di==="All"&&e.a.createElement(se.a,null,mn&&e.a.createElement(l.a,{title:"\u5220\u9664"},e.a.createElement("span",{onClick:function(){Ur(Lt.stage_id)},className:"iconfont icon-shanchu c-grey-c"})),((Vt=nt.detail)===null||Vt===void 0?void 0:Vt.allow_add_member)&&Go&&tn!==Yt&&e.a.createElement("div",null,Pi&&e.a.createElement(l.a,{title:"\u5411\u4E0A\u79FB\u52A8"},e.a.createElement("span",{onClick:function(){return To(Lt.stage_id)},className:"iconfont icon-xiangshangyi c-light-green font18 current"})),La&&e.a.createElement(l.a,{title:"\u5411\u4E0B\u79FB\u52A8"},e.a.createElement("span",{onClick:function(){return Zi(Lt.stage_id)},className:"iconfont icon-xiangxiayi c-light-green font18 current ml5"})),e.a.createElement(l.a,{title:"\u7F16\u8F91"},e.a.createElement("span",{onClick:function(){return Yi(Yt,Lt)},className:"iconfont icon-bianjidaibeijing c-light-green font20 current ml5"}))))),!!Lt.stage_description&&e.a.createElement(oe.a,{gutter:[5,20]},e.a.createElement(se.a,{span:24},e.a.createElement(ze.a,{value:Lt==null?void 0:Lt.stage_description})))),tn===Yt&&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(Yt+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(ji.a,{defaultValue:Lt==null?void 0:Lt.stage_description,placeholder:"\u8BF7\u8F93\u5165\u7B2C".concat(Yt+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(!Wt[tn].stage_id)return R.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");if(!Object(Fe.e)(Dt))return;ki(!1),Br(!0),fn.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(!Wt[tn].stage_id)return R.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");if(!Object(Fe.e)(Dt))return;if(!Object(Fe.c)())return;ki(!1),hn(!0),Pr.setFieldsValue({name:"",is_jupyter:!1})}},e.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5"}),"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE"),e.a.createElement(h.a,{size:"large",className:"ml20",ghost:!0,type:"primary",onClick:function(){var ko;if(!Wt[tn].stage_id)return R.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");Qi(document.documentElement.scrollTop),Dt({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",id:Wt[tn].stage_id,subject_id:Bt.pathId}}),Ra(Lt==null||((ko=Lt.shixuns_list)===null||ko===void 0)?void 0:ko.map(function(Fo){return Fo.id}))}},e.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5"}),"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"),e.a.createElement(e.a.Fragment,null,e.a.createElement(h.a,{size:"large",className:" ml20",ghost:!0,type:"primary",onClick:function(){if(!Wt[tn].stage_id)return R.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");io(""),Ka(!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(!Wt[tn].stage_id)return R.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");if(!Object(Fe.e)(Dt))return;io(""),Ao([]),ki(!1),cn(!0),ir.resetFields()}},e.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5 "}),"\u65B0\u5EFA\u6559\u5B66\u8BFE\u4EF6"),e.a.createElement("br",null)),e.a.createElement("aside",{className:"c-light-black mt10 pb20",id:"Edit_".concat(Yt)},"\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:Yr.a.shixuns},e.a.createElement("div",{className:""},!!(Lt!=null&&(er=Lt.items)!==null&&er!==void 0&&er.length)&&e.a.createElement(oa.a,{visibleType:Di,data:Object(o.a)(Lt.items),stage_id:Lt.stage_id,disabled:!(tn===Yt),deleteStages:ts,editVidoItem:ca,updateSort:Li,index:Yt,cust_seq:!!(nt!=null&&(lr=nt.detail)!==null&&lr!==void 0&&lr.cust_seq),showVideoPlay:((fr=st.userInfo)===null||fr===void 0?void 0:fr.admin)||(($r=st.userInfo)===null||$r===void 0?void 0:$r.business)||Uo()}))),tn===Yt&&e.a.createElement("aside",{className:Yr.a.buttons},e.a.createElement(h.a,{onClick:Na,type:"primary",size:"large",ghost:!0},"\u53D6\u6D88"),e.a.createElement(h.a,{onClick:Object(y.a)(r.a.mark(function fi(){return r.a.wrap(function(Fo){for(;;)switch(Fo.prev=Fo.next){case 0:Na();case 1:case"end":return Fo.stop()}},fi)})),size:"large",type:"primary"},"\u4FDD\u5B58")))};return e.a.createElement("section",null,e.a.createElement(Ha.a,{active:!0,paragraph:{rows:250},avatar:!0,className:"".concat(dt["pathsDetail/getStageData"]||dt["pathsDetail/getPathsDetail"]?"mt20":""),loading:dt["pathsDetail/getStageData"]||dt["pathsDetail/getPathsDetail"]},e.a.createElement("aside",{className:Yr.a.actionTabs},Ki.map(function(Tn,Lt){if(Wt!=null&&Wt.some(function(Yt){var Cn;return(Cn=Yt.stage_tag)===null||Cn===void 0?void 0:Cn.includes(Tn.type)})||Tn.type=="All"||Tn.type=="Discusses"&&Tn.number>0)return e.a.createElement("div",{key:Lt,className:Tn.type===Di?Yr.a.tabActive:Yr.a.tab,onClick:function(){tn===-1?(Io(Tn.type),bn(-1)):R.b.warn("\u8BF7\u5148\u53D6\u6D88\u7F16\u8F91\u72B6\u6001")}},e.a.createElement("span",{className:Yr.a.s1},Tn.name),e.a.createElement("span",{className:Yr.a.s2},Tn.number))})),Di!=="Discusses"&&e.a.createElement(e.a.Fragment,null,e.a.createElement(ne.a,{form:yr,onFinish:In},Wt==null?void 0:Wt.map(function(Tn,Lt){return e.a.createElement("div",{key:Lt},Za(Tn,Lt))})),((Ve=nt.detail)===null||Ve===void 0?void 0:Ve.allow_statistics)&&Di==="All"&&!Jn&&e.a.createElement("div",{className:Yr.a.addStage,onClick:li},e.a.createElement("span",{className:Yr.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"))),Di==="Discusses"&&e.a.createElement("aside",{className:"mt20"},e.a.createElement(va,{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:rn,confirmLoading:Ii,destroyOnClose:!0,onOk:Object(y.a)(r.a.mark(function Tn(){var Lt;return r.a.wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:return Cn.next=2,Pr.validateFields();case 2:return ki(!0),Cn.next=5,Object(K.N)(Object(P.a)({id:Wt[tn].stage_id,subject_id:Bt.pathId},Qn));case 5:Lt=Cn.sent,ui(),Lt.id&&(Pr.resetFields(),R.b.success("\u6DFB\u52A0\u6210\u529F"),bo([Lt])),ki(!1);case 9:case"end":return Cn.stop()}},Tn)})),onCancel:ui},e.a.createElement(ne.a,{form:Pr,onValuesChange:function(Lt){kr(Object(P.a)(Object(P.a)({},Qn),Lt))}},e.a.createElement(ne.a.Item,{label:"\u7C7B\u578B",name:"is_jupyter",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7C7B\u578B"}]},e.a.createElement(x.a.Group,null,e.a.createElement(x.a,{defaultChecked:!0,value:!1},"\u5168\u6808\u5B9E\u8DF5\u9879\u76EE"),e.a.createElement(x.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:tr,confirmLoading:Ii,destroyOnClose:!0,onOk:Object(y.a)(r.a.mark(function Tn(){var Lt,Yt,Cn,Vt,er,lr;return r.a.wrap(function($r){for(;;)switch($r.prev=$r.next){case 0:return $r.next=2,ir.validateFields();case 2:return ki(!0),$r.next=5,ir.getFieldsValue();case 5:if(Lt=$r.sent,Yt=!1,Cn="",Lt.files.forEach(function(mn){(!mn.response||!mn.response.id)&&(Yt=!0,Cn=mn.name)}),!Yt){$r.next=11;break}return R.b.error("".concat(Cn," \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20")),$r.abrupt("return");case 11:if(Xa){$r.next=18;break}return $r.next=14,Object(K.c)({id:Wt[tn].stage_id,subject_id:Bt.pathId,tags:Ti,attachment_ids:Lt.files.map(function(mn){return mn.response.id})});case 14:Vt=$r.sent,Vt.status===0&&(R.b.success("\u4FEE\u6539\u6210\u529F"),cn(!1),Po(Object(o.a)(Vt.items))),$r.next=22;break;case 18:return $r.next=20,Object(K.S)({id:Xa==null?void 0:Xa.id,subject_id:Bt.pathId,tags:Ti,attachment_id:(er=Lt.files.map(function(mn){return mn.response.id}))===null||er===void 0?void 0:er[0]});case 20:lr=$r.sent,lr.status===0&&(R.b.success("\u4FEE\u6539\u6210\u529F"),cn(!1),Po(Object(o.a)(lr.items)));case 22:ki(!1);case 23:case"end":return $r.stop()}},Tn)})),onCancel:function(){cn(!1),Ao([]),io("")}},e.a.createElement(ne.a,{form:ir},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(vo.b,{aloneClear:!0,maxSize:Object(U.v)()?500:100,accept:to.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:qo})),e.a.createElement("div",{className:Yr.a["tagsList-content"]},Ti.map(function(Tn,Lt){return e.a.createElement(p.a,{key:Lt+Tn,closable:!0,onClose:function(Cn){$o(Cn,Tn)}},Tn)})),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(It.a,{to:"/users/mmipb3zhj/videos/protocol",target:"_blank"},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B",e.a.createElement("br",null),"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u5355\u4E2A\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7",Object(U.v)()?500:100,"M\uFF1B",e.a.createElement("br",null),"3\u3001\u5F53\u524D\u4EC5\u9650\u652F\u6301pdf\u3001word\u3001excel\u3001ppt\u3001zip\u6587\u4EF6\uFF1B",e.a.createElement("br",null),"4\u3001\u6587\u4EF6\u540D\u5C06\u88AB\u81EA\u52A8\u8BFB\u53D6\u4E3A\u7CFB\u7EDF\u5185\u8BE5\u8BFE\u4EF6\u7684\u540D\u79F0\uFF0C\u4E0A\u4F20\u524D\u8BF7\u6CE8\u610F\u8FD9\u4E00\u70B9\uFF1B",e.a.createElement("br",null),"5\u3001\u4E00\u6B21\u6700\u591A\u4E0A\u4F2010\u4E2A\u6587\u4EF6\u3002"))),e.a.createElement(T.a,{centered:!0,title:"\u65B0\u5EFA\u5C0F\u8282\u540D\u79F0",visible:hr,confirmLoading:Ii,onOk:Object(y.a)(r.a.mark(function Tn(){var Lt,Yt;return r.a.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:return Vt.next=2,fn.validateFields();case 2:return ki(!0),Vt.next=5,fn.getFieldsValue();case 5:return Lt=Vt.sent,Vt.next=8,Object(K.a)({id:Wt[tn].stage_id,subject_id:Bt.pathId,name:Lt.name});case 8:Yt=Vt.sent,Yt.status===0&&(R.b.success("\u6DFB\u52A0\u6210\u529F"),Br(!1),Vo(Object(P.a)({},Yt))),ki(!1);case 11:case"end":return Vt.stop()}},Tn)})),onCancel:function(){return Br(!1)}},e.a.createElement(ne.a,{form:fn},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(Jr,{shixunIds:Va,cb:bo}),e.a.createElement(vi.a,{visible:ti,editData:Xa,onCancel:function(){return Ka(!1)},onOk:Xo}))},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}})(ls),Is=M("uRQ9"),xs=M.n(Is),js=function(Ye){var Je=Ye.user,Te=Object(_.a)(Ye,["user"]),Ve=Object(n.useState)([]),Be=Object(E.a)(Ve,2),at=Be[0],nt=Be[1],st=Object(n.useState)(!0),it=Object(E.a)(st,2),dt=it[0],Dt=it[1],Qt=Object(n.useState)(!1),Bt=Object(E.a)(Qt,2),$t=Bt[0],ln=Bt[1],On=Object(n.useState)(!1),Wt=Object(E.a)(On,2),qt=Wt[0],yn=Wt[1],Rn=Object(n.useState)(0),tn=Object(E.a)(Rn,2),bn=tn[0],Ln=tn[1],Xn=Object(n.useState)({}),rn=Object(E.a)(Xn,2),hn=rn[0],An=rn[1],_n=Object(s.i)(),tr=Object(n.useState)({page:1,limit:10}),cn=Object(E.a)(tr,2),Fn=cn[0],Ir=cn[1],hr=[{title:"\u59D3\u540D",dataIndex:"user_name",key:"user_name",align:"left"},{title:"\u7533\u8BF7\u65F6\u95F4",dataIndex:"created_at",key:"created_at",align:"left"},{title:"\u7533\u8BF7\u72B6\u6001",dataIndex:"state",key:"state",align:"left",render:function(yr,Dn){return e.a.createElement(e.a.Fragment,null,(Dn==null?void 0:Dn.state)==="drafted"&&e.a.createElement("span",null,"\u7533\u8BF7\u4E2D"),(Dn==null?void 0:Dn.state)==="rejected"&&e.a.createElement("span",{style:{color:"#E53333"}},"\u672A\u901A\u8FC7"),(Dn==null?void 0:Dn.state)==="passed"&&e.a.createElement("span",{style:{color:"#2FA34F"}},"\u901A\u8FC7"))}},{title:"\u5B66\u4E60\u8FDB\u5EA6",dataIndex:"process",key:"process",align:"left",render:function(yr){return"".concat(yr,"%")}},{title:"\u5BA1\u6279\u64CD\u4F5C",dataIndex:"action",key:"action",align:"left",render:function(yr,Dn){return e.a.createElement("div",{className:xs.a.actionsBtns},(Dn==null?void 0:Dn.state)==="drafted"&&e.a.createElement("span",{onClick:function(){return Br(Dn)}},"\u540C\u610F"),(Dn==null?void 0:Dn.state)==="drafted"&&e.a.createElement("span",{onClick:function(){return ur(Dn)}},"\u62D2\u7EDD"),(Dn==null?void 0:Dn.state)==="rejected"&&e.a.createElement("span",{onClick:function(){return Fr(Dn)}},"\u62D2\u7EDD\u539F\u56E0"),(Dn==null?void 0:Dn.state)==="passed"&&e.a.createElement("span",{onClick:function(){return Qn(Dn)}},"\u67E5\u770B\u8BC1\u4E66"))}}].filter(function(Wr){return qt?!0:Wr.title!=="\u5B66\u4E60\u8FDB\u5EA6"&&Wr.title!=="\u5BA1\u6279\u64CD\u4F5C"});Object(n.useEffect)(function(){kr(Fn)},[Fn]);var Br=function(){var Wr=Object(y.a)(r.a.mark(function yr(Dn){var ar;return r.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:return jn.next=2,Object(le.a)("/api/paths/".concat(_n==null?void 0:_n.pathId,"/process_certificate.json"),{method:"post",body:{certificate_id:Dn==null?void 0:Dn.id,op:"pass"}});case 2:ar=jn.sent,(ar==null?void 0:ar.status)===0&&kr(Fn);case 4:case"end":return jn.stop()}},yr)}));return function(Dn){return Wr.apply(this,arguments)}}(),ur=function(yr){var Dn="";T.a.confirm({title:"\u8BC1\u4E66\u7533\u8BF7\u62D2\u7EDD",icon:null,className:"custom-modal-divider",centered:!0,width:400,content:e.a.createElement("div",null,e.a.createElement("p",null,"\u62D2\u7EDD\u8BC1\u4E66\u53D1\u653E\u9700\u586B\u5199\u62D2\u7EDD\u539F\u56E0\u3002"),e.a.createElement("aside",{className:"flex-container"},e.a.createElement("sup",{className:"c-red-ee4"},"*"),e.a.createElement("span",null,"\u62D2\u7EDD\u539F\u56E0:"),e.a.createElement(re.a,{maxLength:30,style:{width:284,marginLeft:10},onChange:function(Pr){return Dn=Pr.target.value}}))),okText:"\u786E\u5B9A\u62D2\u7EDD",cancelText:"\u53D6\u6D88",onOk:function(){var ar=Object(y.a)(r.a.mark(function jn(){var $n;return r.a.wrap(function(Zn){for(;;)switch(Zn.prev=Zn.next){case 0:if(Dn){Zn.next=3;break}return R.b.warn("\u62D2\u7EDD\u7406\u7531\u4E0D\u80FD\u4E3A\u7A7A"),Zn.abrupt("return",Promise.reject());case 3:return Zn.next=5,Object(le.a)("/api/paths/".concat(_n==null?void 0:_n.pathId,"/process_certificate.json"),{method:"post",body:{certificate_id:yr==null?void 0:yr.id,op:"reject",content:Dn}});case 5:$n=Zn.sent,($n==null?void 0:$n.status)===0&&kr(Fn);case 7:case"end":return Zn.stop()}},jn)}));function Pr(){return ar.apply(this,arguments)}return Pr}()})},Fr=function(yr){T.a.info({title:"\u62D2\u7EDD\u539F\u56E0",icon:null,className:"custom-modal-divider",centered:!0,width:400,content:e.a.createElement("div",null,yr==null?void 0:yr.content),okText:"\u786E\u5B9A"})},Qn=function(yr){An((yr==null?void 0:yr.info)||{}),ln(!0)},kr=function(){var Wr=Object(y.a)(r.a.mark(function yr(Dn){var ar;return r.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:return Dt(!0),jn.next=3,Object(le.a)("/api/paths/".concat(_n==null?void 0:_n.pathId,"/request_certificates.json"),{method:"get",params:Dn});case 3:ar=jn.sent,ar!=null&&ar.data&&(nt(ar==null?void 0:ar.data),Ln((ar==null?void 0:ar.total_count)||0),yn(ar==null?void 0:ar.is_manage)),Dt(!1);case 6:case"end":return jn.stop()}},yr)}));return function(Dn){return Wr.apply(this,arguments)}}(),ta=function(yr,Dn){var ar=Object(P.a)(Object(P.a)({},Fn),{},{page:yr,limit:Dn});Ir(ar),kr(ar)};return e.a.createElement("div",{className:xs.a.certificate},e.a.createElement(Mt.a,{dataSource:at,rowKey:function(yr){return yr.id},columns:hr,loading:dt,pagination:{pageSize:Fn.limit,total:bn,current:Fn.page,onChange:ta,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"]}}),e.a.createElement(ba,{visible:$t,onCancel:function(){ln(!1),An({})},data:hn}))},Zs=Object(u.a)(function(Ge){var Ye=Ge.user,Je=Ge.pathsDetail;return{user:Ye,pathsDetail:Je}})(js);pe.a.locale("ZH-cn");var cs=m.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),it=st[0],dt=st[1],Dt=Object(n.useState)(),Qt=Object(E.a)(Dt,2),Bt=Qt[0],$t=Qt[1],ln=Object(n.useState)(!0),On=Object(E.a)(ln,2),Wt=On[0],qt=On[1],yn=Object(s.i)();function Rn(){return tn.apply(this,arguments)}function tn(){return tn=Object(y.a)(r.a.mark(function Ln(){var Xn,rn;return r.a.wrap(function(An){for(;;)switch(An.prev=An.next){case 0:return qt(!0),Be==="1"?Xn="/api/paths/".concat(yn.pathId,"/study_ranking_shixuns_passed.json"):Be==="2"?Xn="/api/paths/".concat(yn.pathId,"/study_ranking_videos.json"):Be==="3"?Xn="/api/paths/".concat(yn.pathId,"/study_ranking_pdf_attachments.json"):Be==="4"&&(Xn="/api/paths/".concat(yn.pathId,"/study_ranking_discusses.json")),An.next=4,Object(le.a)(Xn,{method:"get",params:{page:it}});case 4:rn=An.sent,qt(!1),$t(rn);case 7:case"end":return An.stop()}},Ln)})),tn.apply(this,arguments)}Object(n.useEffect)(function(){Rn()},[it,Be]);var bn=function(){var Xn,rn,hn,An,_n,tr,cn,Fn,Ir,hr,Br,ur,Fr;return e.a.createElement(e.a.Fragment,null,e.a.createElement(Y.a,{spinning:Wt},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")),(Bt==null?void 0:Bt.user_show)&&e.a.createElement("div",{style:{height:"42px",display:"flex",padding:"0px 5px",alignItems:"center"}},e.a.createElement("span",{style:{flex:"1"}},(Bt==null||((Xn=Bt.data_user)===null||Xn===void 0)?void 0:Xn.rank)===0&&(Bt==null||((rn=Bt.data_user)===null||rn===void 0)?void 0:rn.num)===0?"--":(Bt==null||((hn=Bt.data_user)===null||hn===void 0)?void 0:hn.rank)<=100&&(Bt==null||((An=Bt.data_user)===null||An===void 0)?void 0:An.rank)!=0?Bt==null||((_n=Bt.data_user)===null||_n===void 0)?void 0:_n.rank:"\u672A\u4E0A\u699C"),e.a.createElement("span",{style:{flex:"1"}},Bt==null||((tr=Bt.data_user)===null||tr===void 0)?void 0:tr.user_real_name),Be==="1"&&e.a.createElement("span",{style:{flex:"3"}},(Bt==null||((cn=Bt.data_user)===null||cn===void 0)?void 0:cn.num)||"--"),Be==="2"&&e.a.createElement("span",{style:{flex:"3"}},Bt!=null&&(Fn=Bt.data_user)!==null&&Fn!==void 0&&Fn.num?Object(fe.Z)(Bt==null||((Ir=Bt.data_user)===null||Ir===void 0)?void 0:Ir.num):"--"),Be==="3"&&e.a.createElement("span",{style:{flex:"3"}},(Bt==null||((hr=Bt.data_user)===null||hr===void 0)?void 0:hr.num)||"--"),Be==="4"&&e.a.createElement("span",{style:{flex:"3"}},(Bt==null||((Br=Bt.data_user)===null||Br===void 0)?void 0:Br.num)||"--")),(Bt==null?void 0:Bt.user_show)&&e.a.createElement(Ma.a,null),(Bt==null||((ur=Bt.data)===null||ur===void 0)?void 0:ur.length)>0?Bt==null||((Fr=Bt.data)===null||Fr===void 0)?void 0:Fr.map(function(Qn,kr){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(fe.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(eo.a,null),(Bt==null?void 0:Bt.count)>10&&e.a.createElement(si.a,{current:it,pageSize:10,showSizeChanger:!1,total:Bt==null?void 0:Bt.count,style:{textAlign:"center",margin:"20px 0px"},onChange:function(kr){dt(kr)}})))};return e.a.createElement("div",null,e.a.createElement(m.a,{activeKey:Be,style:{background:"#fff",padding:"0px 20px"},onChange:function(Xn){at(Xn),dt(1)}},e.a.createElement(cs,{tab:"\u901A\u5173\u699C",style:{background:"#fff"},key:"1"},e.a.createElement(bn,null)),e.a.createElement(cs,{tab:"\u89C6\u9891\u5B66\u4E60\u699C",key:"2"},e.a.createElement(bn,null)),e.a.createElement(cs,{tab:"\u4E0B\u8F7D\u8D44\u6E90\u699C",key:"3"},e.a.createElement(bn,null)),e.a.createElement(cs,{tab:"\u4E92\u52A8\u8BA8\u8BBA\u699C",key:"4"},e.a.createElement(bn,null))))},$s=M("XzQ7"),xo=M.n($s),ms=M("ho57"),Qa=M.n(ms),_s=m.a.TabPane;function _o(Ge){var Ye=function(at,nt){if(at.localName===nt)return at;for(var st=0,it=at;it=it.parentNode;st++){if(it.localName===nt)return it;if(it==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(),Dr.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(_.a)(Ye,["pathsDetail","globalSetting","loading","dispatch"]),it=Object(s.i)(),dt=st.location.query,Dt=Object(n.useRef)(),Qt=Object(n.useState)("stage"),Bt=Object(E.a)(Qt,2),$t=Bt[0],ln=Bt[1],On=[{name:"\u8BFE\u7A0B\u7AE0\u8282",key:"stage"},{name:"\u6392\u884C\u699C",key:"ranking"},{name:"\u8BC1\u4E66\u7533\u8BF7",key:"certificate"}].filter(function(qt){var yn;return(yn=Ve.detail)!==null&&yn!==void 0&&yn.excellent?!0:qt.key!=="certificate"});Object(n.useEffect)(function(){if(Dt.current)return Dt.current.addEventListener("mousedown",_o),function(){Dt.current.removeEventListener("mousedown",_o)}},[Dt.current]),Object(n.useEffect)(function(){if(!it.pathId)return;Wt()},[it.pathId]),Object(n.useEffect)(function(){var qt;Object(fe.V)((qt=Ve.detail)===null||qt===void 0?void 0:qt.name)},[Ve]);var Wt=function(){var qt=Object(y.a)(r.a.mark(function yn(){var Rn;return r.a.wrap(function(bn){for(;;)switch(bn.prev=bn.next){case 0:return bn.next=2,nt({type:"pathsDetail/getPathsDetail",payload:Object(P.a)({id:it.pathId},dt)});case 2:Rn=bn.sent,nt({type:"pathsDetail/getRightData",payload:{id:it.pathId}}),nt({type:"pathsDetail/getStageData",payload:{subject_id:it.pathId}}),Rn!=null&&Rn.id&&dt.token&&(location.href=location.pathname);case 6:case"end":return bn.stop()}},yn)}));return function(){return qt.apply(this,arguments)}}();return e.a.createElement(Y.a,{spinning:!1},e.a.createElement("section",{className:xo.a.bg},e.a.createElement(At,null),e.a.createElement(zo.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:Qa.a,style:{marginRight:"10px"}}),"\u8BFE\u7A0B\u4ECB\u7ECD")),e.a.createElement("div",{ref:Dt},e.a.createElement(ze.a,{value:(Te=Ve.detail)===null||Te===void 0?void 0:Te.description}))),e.a.createElement(m.a,{className:xo.a.wrapTabs,activeKey:$t,onChange:function(yn){return ln(yn)},tabBarGutter:50,tabBarStyle:{height:76}},On.map(function(qt){return e.a.createElement(_s,{tab:qt.name,key:qt.key})})),$t==="stage"&&e.a.createElement(us,null),$t==="ranking"&&e.a.createElement(dl,null),$t==="certificate"&&e.a.createElement(Zs,null)),e.a.createElement(xa,null))))},ut=we.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(Ze,we,M){"use strict";M.d(we,"a",function(){return c});var ue=M("ErOA"),Y=M("ppsT"),P=M.n(Y),y="",E,_="";function C(r){m(r)}function m(r){E=new P.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 f="/api/users/".concat(y,"/video_auths.json");Object(ue.a)(f,{method:"put",body:{video_id:e.videoId,title:s,file_name:s,virtual_classroom_id:_}}).then(function(d){if(d.status==-1){r.onUploadError&&r.onUploadError(e);return}var a=d.data,h=a.UploadAuth,g=a.UploadAddress,p=a.VideoId;E.setUploadAuthAndAddress(e,h,g)}).catch(function(d){E.deleteFile(E._curIndex),E.nextUpload(),console.log(d)})}else{var u="/api/users/".concat(y,"/video_auths.json"),o="";Object(ue.a)(u,{method:"Post",body:{title:o+s,file_name:o+s,virtual_classroom_id:_}}).then(function(d){if(d){var a=d.data,h=a.UploadAuth,g=a.UploadAddress,p=a.VideoId;E.setUploadAuthAndAddress(e,h,g,p)}}).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 o=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(y,"/video_auths.json");Object(ue.a)(s,{method:"put",body:{video_id:e.videoId}}).then(function(u){var o=u.data,f=o.UploadAuth;E.resumeUploadWithAuth(f)}).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 c(r,n,e){r&&(y=r),n&&(_=n),C(e)}},BPZU:function(Ze,we){var M=32,ue=7,Y=256;function P(n){for(var e=0;n>=M;)e|=n&1,n>>=1;return n+e}function y(n,e,s,u){var o=e+1;if(o===s)return 1;if(u(n[o++],n[e])<0){for(;o<s&&u(n[o],n[o-1])<0;)o++;E(n,e,o)}else for(;o<s&&u(n[o],n[o-1])>=0;)o++;return o-e}function E(n,e,s){for(s--;e<s;){var u=n[e];n[e++]=n[s],n[s--]=u}}function _(n,e,s,u,o){for(u===e&&u++;u<s;u++){for(var f=n[u],d=e,a=u,h;d<a;)h=d+a>>>1,o(f,n[h])<0?a=h:d=h+1;var g=u-d;switch(g){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(;g>0;)n[d+g]=n[d+g-1],g--}n[d]=f}}function C(n,e,s,u,o,f){var d=0,a=0,h=1;if(f(n,e[s+o])>0){for(a=u-o;h<a&&f(n,e[s+o+h])>0;)d=h,h=(h<<1)+1,h<=0&&(h=a);h>a&&(h=a),d+=o,h+=o}else{for(a=o+1;h<a&&f(n,e[s+o-h])<=0;)d=h,h=(h<<1)+1,h<=0&&(h=a);h>a&&(h=a);var g=d;d=o-h,h=o-g}for(d++;d<h;){var p=d+(h-d>>>1);f(n,e[s+p])>0?d=p+1:h=p}return h}function m(n,e,s,u,o,f){var d=0,a=0,h=1;if(f(n,e[s+o])<0){for(a=o+1;h<a&&f(n,e[s+o-h])<0;)d=h,h=(h<<1)+1,h<=0&&(h=a);h>a&&(h=a);var g=d;d=o-h,h=o-g}else{for(a=u-o;h<a&&f(n,e[s+o+h])>=0;)d=h,h=(h<<1)+1,h<=0&&(h=a);h>a&&(h=a),d+=o,h+=o}for(d++;d<h;){var p=d+(h-d>>>1);f(n,e[s+p])<0?h=p:d=p+1}return h}function c(n,e){var s=ue,u=0,o=Y,f=0,d,a,h=0;u=n.length,u<2*Y&&(o=u>>>1);var g=[];f=u<120?5:u<1542?10:u<119151?19:40,d=[],a=[];function p(l,i){d[h]=l,a[h]=i,h+=1}function S(){for(;h>1;){var l=h-2;if(l>=1&&a[l-1]<=a[l]+a[l+1]||l>=2&&a[l-2]<=a[l]+a[l-1])a[l-1]<a[l+1]&&l--;else if(a[l]>a[l+1])break;B(l)}}function w(){for(;h>1;){var l=h-2;l>0&&a[l-1]<a[l+1]&&l--,B(l)}}function B(l){var i=d[l],x=a[l],O=d[l+1],T=a[l+1];a[l]=x+T,l===h-3&&(d[l+1]=d[l+2],a[l+1]=a[l+2]),h--;var D=m(n[O],n,i,x,0,e);if(i+=D,x-=D,x===0)return;if(T=C(n[i+x-1],n,O,T,T-1,e),T===0)return;x<=T?b(i,x,O,T):A(i,x,O,T)}function b(l,i,x,O){var T=0;for(T=0;T<i;T++)g[T]=n[l+T];var D=0,R=x,k=l;if(n[k++]=n[R++],--O===0){for(T=0;T<i;T++)n[k+T]=g[D+T];return}if(i===1){for(T=0;T<O;T++)n[k+T]=n[R+T];n[k+O]=g[D];return}for(var H=s,J,U,K;;){J=0,U=0,K=!1;do if(e(n[R],g[D])<0){if(n[k++]=n[R++],U++,J=0,--O===0){K=!0;break}}else if(n[k++]=g[D++],J++,U=0,--i===1){K=!0;break}while((J|U)<H);if(K)break;do{if(J=m(n[R],g,D,i,0,e),J!==0){for(T=0;T<J;T++)n[k+T]=g[D+T];if(k+=J,D+=J,i-=J,i<=1){K=!0;break}}if(n[k++]=n[R++],--O===0){K=!0;break}if(U=C(g[D],n,R,O,0,e),U!==0){for(T=0;T<U;T++)n[k+T]=n[R+T];if(k+=U,R+=U,O-=U,O===0){K=!0;break}}if(n[k++]=g[D++],--i===1){K=!0;break}H--}while(J>=ue||U>=ue);if(K)break;H<0&&(H=0),H+=2}if(s=H,s<1&&(s=1),i===1){for(T=0;T<O;T++)n[k+T]=n[R+T];n[k+O]=g[D]}else{if(i===0)throw new Error;for(T=0;T<i;T++)n[k+T]=g[D+T]}}function A(l,i,x,O){var T=0;for(T=0;T<O;T++)g[T]=n[x+T];var D=l+i-1,R=O-1,k=x+O-1,H=0,J=0;if(n[k--]=n[D--],--i===0){for(H=k-(O-1),T=0;T<O;T++)n[H+T]=g[T];return}if(O===1){for(k-=i,D-=i,J=k+1,H=D+1,T=i-1;T>=0;T--)n[J+T]=n[H+T];n[k]=g[R];return}for(var U=s;;){var K=0,G=0,N=!1;do if(e(g[R],n[D])<0){if(n[k--]=n[D--],K++,G=0,--i===0){N=!0;break}}else if(n[k--]=g[R--],G++,K=0,--O===1){N=!0;break}while((K|G)<U);if(N)break;do{if(K=i-m(g[R],n,l,i,i-1,e),K!==0){for(k-=K,D-=K,i-=K,J=k+1,H=D+1,T=K-1;T>=0;T--)n[J+T]=n[H+T];if(i===0){N=!0;break}}if(n[k--]=g[R--],--O===1){N=!0;break}if(G=O-C(n[D],g,0,O,O-1,e),G!==0){for(k-=G,R-=G,O-=G,J=k+1,H=R+1,T=0;T<G;T++)n[J+T]=g[H+T];if(O<=1){N=!0;break}}if(n[k--]=n[D--],--i===0){N=!0;break}U--}while(K>=ue||G>=ue);if(N)break;U<0&&(U=0),U+=2}if(s=U,s<1&&(s=1),O===1){for(k-=i,D-=i,J=k+1,H=D+1,T=i-1;T>=0;T--)n[J+T]=n[H+T];n[k]=g[R]}else{if(O===0)throw new Error;for(H=k-(O-1),T=0;T<O;T++)n[H+T]=g[T]}}this.mergeRuns=S,this.forceMergeRuns=w,this.pushRun=p}function r(n,e,s,u){s||(s=0),u||(u=n.length);var o=u-s;if(o<2)return;var f=0;if(o<M){f=y(n,s,u,e),_(n,s,u,s+f,e);return}var d=new c(n,e),a=P(o);do{if(f=y(n,s,u,e),f<a){var h=o;h>a&&(h=a),_(n,s,s+h,s+f,e),f=h}d.pushRun(s,f),d.mergeRuns(),o-=f,s+=f}while(o!==0);d.forceMergeRuns()}Ze.exports=r},BU3w:function(Ze,we,M){"use strict";M.d(we,"a",function(){return _});var ue=M("MNnm"),Y="rc-util-key";function P(C){if(C.attachTo)return C.attachTo;var m=document.querySelector("head");return m||document.body}function y(C){var m,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(ue.a)())return null;var r=document.createElement("style");if((m=c.csp)===null||m===void 0?void 0:m.nonce){var n;r.nonce=(n=c.csp)===null||n===void 0?void 0:n.nonce}r.innerHTML=C;var e=P(c),s=e.firstChild;return c.prepend&&e.prepend?e.prepend(r):c.prepend&&s?e.insertBefore(r,s):e.appendChild(r),r}var E=new Map;function _(C,m){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=P(c);if(!E.has(r)){var n=y("",c),e=n.parentNode;E.set(r,e),e.removeChild(n)}var s=Array.from(E.get(r).children).find(function(a){return a.tagName==="STYLE"&&a[Y]===m});if(s){var u,o;if(((u=c.csp)===null||u===void 0?void 0:u.nonce)&&s.nonce!==((o=c.csp)===null||o===void 0?void 0:o.nonce)){var f;s.nonce=(f=c.csp)===null||f===void 0?void 0:f.nonce}return s.innerHTML!==C&&(s.innerHTML=C),s}var d=y(C,c);return d[Y]=m,d}},Bd2K:function(Ze,we,M){(function(ue){ue(M("VrN/"),M("osHv"))})(function(ue){ue.defineOption("autoCloseTags",!1,function(c,r,n){if(n!=ue.Init&&n&&c.removeKeyMap("autoCloseTags"),!r)return;var e={name:"autoCloseTags"};(typeof r!="object"||r.whenClosing!==!1)&&(e["'/'"]=function(s){return _(s)}),(typeof r!="object"||r.whenOpening!==!1)&&(e["'>'"]=function(s){return y(s)}),c.addKeyMap(e)});var Y=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],P=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function y(c){if(c.getOption("disableInput"))return ue.Pass;for(var r=c.listSelections(),n=[],e=c.getOption("autoCloseTags"),s=0;s<r.length;s++){if(!r[s].empty())return ue.Pass;var u=r[s].head,o=c.getTokenAt(u),f=ue.innerMode(c.getMode(),o.state),d=f.state,a=f.mode.xmlCurrentTag&&f.mode.xmlCurrentTag(d),h=a&&a.name;if(!h)return ue.Pass;var g=f.mode.configuration=="html",p=typeof e=="object"&&e.dontCloseTags||g&&Y,S=typeof e=="object"&&e.indentTags||g&&P;o.end>u.ch&&(h=h.slice(0,h.length-o.end+u.ch));var w=h.toLowerCase();if(!h||o.type=="string"&&(o.end!=u.ch||!/[\"\']/.test(o.string.charAt(o.string.length-1))||o.string.length==1)||o.type=="tag"&&a.close||o.string.indexOf("/")==u.ch-o.start-1||p&&C(p,w)>-1||m(c,f.mode.xmlCurrentContext&&f.mode.xmlCurrentContext(d)||[],h,u,!0))return ue.Pass;var B=typeof e=="object"&&e.emptyTags;if(B&&C(B,h)>-1){n[s]={text:"/>",newPos:ue.Pos(u.line,u.ch+2)};continue}var b=S&&C(S,w)>-1;n[s]={indent:b,text:">"+(b?`
`:"")+"</"+h+">",newPos:b?ue.Pos(u.line+1,0):ue.Pos(u.line,u.ch+1)}}for(var A=typeof e=="object"&&e.dontIndentOnAutoClose,s=r.length-1;s>=0;s--){var l=n[s];c.replaceRange(l.text,r[s].head,r[s].anchor,"+insert");var i=c.listSelections().slice(0);i[s]={head:l.newPos,anchor:l.newPos},c.setSelections(i),!A&&l.indent&&(c.indentLine(l.newPos.line,null,!0),c.indentLine(l.newPos.line+1,null,!0))}}function E(c,r){for(var n=c.listSelections(),e=[],s=r?"/":"</",u=c.getOption("autoCloseTags"),o=typeof u=="object"&&u.dontIndentOnSlash,f=0;f<n.length;f++){if(!n[f].empty())return ue.Pass;var d=n[f].head,a=c.getTokenAt(d),h=ue.innerMode(c.getMode(),a.state),g=h.state;if(r&&(a.type=="string"||a.string.charAt(0)!="<"||a.start!=d.ch-1))return ue.Pass;var p,S=h.mode.name!="xml"&&c.getMode().name=="htmlmixed";if(S&&h.mode.name=="javascript")p=s+"script";else if(S&&h.mode.name=="css")p=s+"style";else{var w=h.mode.xmlCurrentContext&&h.mode.xmlCurrentContext(g);if(!w||w.length&&m(c,w,w[w.length-1],d))return ue.Pass;p=s+w[w.length-1]}c.getLine(d.line).charAt(a.end)!=">"&&(p+=">"),e[f]=p}if(c.replaceSelections(e),n=c.listSelections(),!o)for(var f=0;f<n.length;f++)(f==n.length-1||n[f].head.line<n[f+1].head.line)&&c.indentLine(n[f].head.line)}function _(c){return c.getOption("disableInput")?ue.Pass:E(c,!0)}ue.commands.closeTag=function(c){return E(c)};function C(c,r){if(c.indexOf)return c.indexOf(r);for(var n=0,e=c.length;n<e;++n)if(c[n]==r)return n;return-1}function m(c,r,n,e,s){if(!ue.scanForClosingTag)return!1;var u=Math.min(c.lastLine()+1,e.line+500),o=ue.scanForClosingTag(c,e,null,u);if(!o||o.tag!=n)return!1;for(var f=s?1:0,d=r.length-1;d>=0&&r[d]==n;d--)++f;e=o.to;for(var d=1;d<f;d++){var a=ue.scanForClosingTag(c,e,null,u);if(!a||a.tag!=n)return!1;e=a.to}return!0}})},BdwD:function(Ze,we,M){"use strict";var ue=M("+L6B"),Y=M("2/Rp"),P=M("0Owb"),y=M("k1fw"),E=M("q1tI"),_=M.n(E),C=M("FOrL"),m=M.n(C),c=function(n){var e=n.buttonProps,s=e===void 0?{}:e,u=n.styles,o=u===void 0?{}:u,f=n.customText,d=n.ButtonText,a=n.ButtonClick,h=n.Buttonclass,g=n.ButtonTwo;return _.a.createElement("section",{className:"tc animated fadeIn",style:Object(y.a)(Object(y.a)({},{color:"#999",margin:"200px auto"}),o)},_.a.createElement("img",{src:m.a}),_.a.createElement("p",{className:"mt20 font14"},f||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),d&&_.a.createElement(Y.a,Object(P.a)({className:h,onClick:a},s),d),g&&g)};we.a=c},BjJ7:function(Ze,we,M){"use strict";M.d(we,"d",function(){return Y}),M.d(we,"c",function(){return P}),M.d(we,"e",function(){return y}),M.d(we,"b",function(){return E}),M.d(we,"a",function(){return C});var ue=M("m3rI");function Y(m){var c=!0;if(m.length>0){for(var r=0;r<m.length;r++)if(m[r].compile_success==0||!m[r].compile_success){c=!1;break}}else c=!1;return c}function P(m){for(var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=[],n=0;n<m.length;n++){var e=m[n],s=c?"".concat(c,"/").concat(e.name):"".concat(e.name);r.push({title:e.name,isLeaf:!(e.type==="tree"),key:s})}return r}function y(m,c,r){for(var n=0;n<m.length;n++){var e=m[n];if(e.key===c){e.children=r;break}e.children&&y(e.children,c,r)}return m}function E(m,c,r){var n;return function(){var e=this,s=arguments,u=function(){n=null,r||m.apply(e,s)},o=r&&!n;clearTimeout(n),n=setTimeout(u,c),o&&m.apply(e,s)}}var _=!0,C=ue.a.API_SERVER},BlVb:function(Ze,we,M){var ue=M("hyiK"),Y=1e-8;function P(E,_){return Math.abs(E-_)<Y}function y(E,_,C){var m=0,c=E[0];if(!c)return!1;for(var r=1;r<E.length;r++){var n=E[r];m+=ue(c[0],c[1],n[0],n[1],_,C),c=n}var e=E[0];return(!P(c[0],e[0])||!P(c[1],e[1]))&&(m+=ue(c[0],c[1],e[0],e[1],_,C)),m!==0}we.contain=y},Bq2U:function(Ze,we,M){var ue=M("RDYZ"),Y=M("Qe9p"),P=M("bYtY"),y=P.isArrayLike,E=Array.prototype.slice;function _(p,S){return p[S]}function C(p,S,w){p[S]=w}function m(p,S,w){return(S-p)*w+p}function c(p,S,w){return w>.5?S:p}function r(p,S,w,B,b){var A=p.length;if(b===1)for(var l=0;l<A;l++)B[l]=m(p[l],S[l],w);else for(var i=A&&p[0].length,l=0;l<A;l++)for(var x=0;x<i;x++)B[l][x]=m(p[l][x],S[l][x],w)}function n(p,S,w){var B=p.length,b=S.length;if(B!==b){var A=B>b;if(A)p.length=b;else for(var l=B;l<b;l++)p.push(w===1?S[l]:E.call(S[l]))}for(var i=p[0]&&p[0].length,l=0;l<p.length;l++)if(w===1)isNaN(p[l])&&(p[l]=S[l]);else for(var x=0;x<i;x++)isNaN(p[l][x])&&(p[l][x]=S[l][x])}function e(p,S,w){if(p===S)return!0;var B=p.length;if(B!==S.length)return!1;if(w===1){for(var b=0;b<B;b++)if(p[b]!==S[b])return!1}else for(var A=p[0].length,b=0;b<B;b++)for(var l=0;l<A;l++)if(p[b][l]!==S[b][l])return!1;return!0}function s(p,S,w,B,b,A,l,i,x){var O=p.length;if(x===1)for(var T=0;T<O;T++)i[T]=u(p[T],S[T],w[T],B[T],b,A,l);else for(var D=p[0].length,T=0;T<O;T++)for(var R=0;R<D;R++)i[T][R]=u(p[T][R],S[T][R],w[T][R],B[T][R],b,A,l)}function u(p,S,w,B,b,A,l){var i=(w-p)*.5,x=(B-S)*.5;return(2*(S-w)+i+x)*l+(-3*(S-w)-2*i-x)*A+i*b+S}function o(p){if(y(p)){var S=p.length;if(y(p[0])){for(var w=[],B=0;B<S;B++)w.push(E.call(p[B]));return w}return E.call(p)}return p}function f(p){return p[0]=Math.floor(p[0]),p[1]=Math.floor(p[1]),p[2]=Math.floor(p[2]),"rgba("+p.join(",")+")"}function d(p){var S=p[p.length-1].value;return y(S&&S[0])?2:1}function a(p,S,w,B,b,A){var l=p._getter,i=p._setter,x=S==="spline",O=B.length;if(!O)return;var T=B[0].value,D=y(T),R=!1,k=!1,H=D?d(B):0,J;B.sort(function(Ie,Fe){return Ie.time-Fe.time}),J=B[O-1].time;for(var U=[],K=[],G=B[0].value,N=!0,Q=0;Q<O;Q++){U.push(B[Q].time/J);var X=B[Q].value;if(D&&e(X,G,H)||!D&&X===G||(N=!1),G=X,typeof X=="string"){var te=Y.parse(X);te?(X=te,R=!0):k=!0}K.push(X)}if(!A&&N)return;for(var oe=K[O-1],Q=0;Q<O-1;Q++)D?n(K[Q],oe,H):isNaN(K[Q])&&!isNaN(oe)&&!k&&!R&&(K[Q]=oe);D&&n(l(p._target,b),oe,H);var me=0,se=0,_e,Ae,Ee,pe,he,ie;if(R)var fe=[0,0,0,0];var ge=function(Ie,Fe){var ke;if(Fe<0)ke=0;else if(Fe<se){for(_e=Math.min(me+1,O-1),ke=_e;ke>=0&&!(U[ke]<=Fe);ke--);ke=Math.min(ke,O-2)}else{for(ke=me;ke<O&&!(U[ke]>Fe);ke++);ke=Math.min(ke-1,O-2)}me=ke,se=Fe;var re=U[ke+1]-U[ke];if(re===0)return;if(Ae=(Fe-U[ke])/re,x)if(pe=K[ke],Ee=K[ke===0?ke:ke-1],he=K[ke>O-2?O-1:ke+1],ie=K[ke>O-3?O-1:ke+2],D)s(Ee,pe,he,ie,Ae,Ae*Ae,Ae*Ae*Ae,l(Ie,b),H);else{var F;if(R)F=s(Ee,pe,he,ie,Ae,Ae*Ae,Ae*Ae*Ae,fe,1),F=f(fe);else{if(k)return c(pe,he,Ae);F=u(Ee,pe,he,ie,Ae,Ae*Ae,Ae*Ae*Ae)}i(Ie,b,F)}else if(D)r(K[ke],K[ke+1],Ae,l(Ie,b),H);else{var F;if(R)r(K[ke],K[ke+1],Ae,fe,1),F=f(fe);else{if(k)return c(K[ke],K[ke+1],Ae);F=m(K[ke],K[ke+1],Ae)}i(Ie,b,F)}},ce=new ue({target:p._target,life:J,loop:p._loop,delay:p._delay,onframe:ge,ondestroy:w});return S&&S!=="spline"&&(ce.easing=S),ce}var h=function(p,S,w,B){this._tracks={},this._target=p,this._loop=S||!1,this._getter=w||_,this._setter=B||C,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};h.prototype={when:function(p,S){var w=this._tracks;for(var B in S){if(!S.hasOwnProperty(B))continue;if(!w[B]){w[B]=[];var b=this._getter(this._target,B);if(b==null)continue;p!==0&&w[B].push({time:0,value:o(b)})}w[B].push({time:p,value:S[B]})}return this},during:function(p){return this._onframeList.push(p),this},pause:function(){for(var p=0;p<this._clipList.length;p++)this._clipList[p].pause();this._paused=!0},resume:function(){for(var p=0;p<this._clipList.length;p++)this._clipList[p].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var p=this._doneList,S=p.length,w=0;w<S;w++)p[w].call(this)},start:function(p,S){var w=this,B=0,b=function(){B--,B||w._doneCallback()},A;for(var l in this._tracks){if(!this._tracks.hasOwnProperty(l))continue;var i=a(this,p,b,this._tracks[l],l,S);i&&(this._clipList.push(i),B++,this.animation&&this.animation.addClip(i),A=i)}if(A){var x=A.onframe;A.onframe=function(O,T){x(O,T);for(var D=0;D<w._onframeList.length;D++)w._onframeList[D](O,T)}}return B||this._doneCallback(),this},stop:function(p){for(var S=this._clipList,w=this.animation,B=0;B<S.length;B++){var b=S[B];p&&b.onframe(this._target,1),w&&w.removeClip(b)}S.length=0},delay:function(p){return this._delay=p,this},done:function(p){return p&&this._doneList.push(p),this},getClips:function(){return this._clipList}};var g=h;Ze.exports=g},"C+DQ":function(Ze,we,M){},C0SR:function(Ze,we,M){var ue=M("YH21"),Y=function(){this._track=[]};Y.prototype={constructor:Y,recognize:function(C,m,c){return this._doTrack(C,m,c),this._recognize(C)},clear:function(){return this._track.length=0,this},_doTrack:function(C,m,c){var r=C.touches;if(!r)return;for(var n={points:[],touches:[],target:m,event:C},e=0,s=r.length;e<s;e++){var u=r[e],o=ue.clientToLocal(c,u,{});n.points.push([o.zrX,o.zrY]),n.touches.push(u)}this._track.push(n)},_recognize:function(C){for(var m in E)if(E.hasOwnProperty(m)){var c=E[m](this._track,C);if(c)return c}}};function P(C){var m=C[1][0]-C[0][0],c=C[1][1]-C[0][1];return Math.sqrt(m*m+c*c)}function y(C){return[(C[0][0]+C[1][0])/2,(C[0][1]+C[1][1])/2]}var E={pinch:function(C,m){var c=C.length;if(!c)return;var r=(C[c-1]||{}).points,n=(C[c-2]||{}).points||r;if(n&&n.length>1&&r&&r.length>1){var e=P(r)/P(n);!isFinite(e)&&(e=1),m.pinchScale=e;var s=y(r);return m.pinchX=s[0],m.pinchY=s[1],{type:"pinch",target:C[0].target,event:m}}}},_=Y;Ze.exports=_},CnIC:function(Ze,we){Ze.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAWCAYAAADTlvzyAAAAAXNSR0IArs4c6QAAA+JJREFUSA2dVltslEUUPmf+f7cXt+oKRKzVtCoICbARtVEJIA+mQiMaI00UXuCBRCT2AZPGaCJvWjUmQowPSBpN+kK8RKVNCIZLorIEVEqFmABVgxsuspi2wHZ3Z+f4za7/9r9sSe0k7Zz55pzzzZzL7M80zdHaJ7fnx+g9EeokptkklGGm/geX0PZDq1hP0w1MpzHm7pA5LLQfZKka6t/MaqZ1p7q4UGMvArkRBMC+IWnTpvC4EMeEzI+bD9NWoZpk1nzt1Yu0cXB44js27qMlY+pE0fAzqfjPtXxHCPcOFZdr0tuIlWOvfyXnnBWmTQjh1MNQtynSBVaynhFnROOFgZP6y84lbl/YSPmBPackAeBVOHc8vP8MuVgnvHWtGQdacO66ygT2jDw/eKLwUADDIkDYmNePIU/1fqWR626V3I8HZMT+eBYHCw3AHSEoSEjKzA0rzLuNcmGs1np+MnY5jDNJcxgL3NBRztWwwsuLdAy1PBbGQ+uRpclCJOwiEvEXINTaBPMAr66hFSieSPL9hErRVyLc7sfKsnL+CmMBwtzZ2K9EcsmvBLL2jpZiP4rvhh+vyrj9ylbqU8RPVzFPKBX3e6I3Bwi7uriE8O3yNu2MbuCuB/hZiBuwV/Lv4RATsxto/YZ79eZwsQnJt51LG/7061s5QGiBzlT8qGL+3MresC/MruV6HP2108PsjHZ4+532UhzifX4cUTl9PBX7xI95coTQbhjhBk/Bzqi20fGSm4UwJ4ALzUPLHqVQcaBY6lb+QfYgkYHDTI69JwsPs+GXgMyvoHLpWsF8/dqxullaUw9uumBSuyIhrMcScerdsayUE0OrEcrW/2z/IaW+uJw9v2/jqrYJz65MODh0o0UoZl+YhXYDoctlS/xpzw/OQuSwG0QtnsFUM4h/g7N3P1qhf4+zbIKXZFlXZIwV716Tih2wax4YlkeopF+HXAmByLm3foqlM9fofZDdXTb6H/9AfLolSVu2L9YdSMFizxSHObQ65X7AAycKH4O3fAPE/sK2tDo8mnc+g2LN/HoObjbb6r2jXq/pbZcX8Zjf5emyMT3WaeXqEFjR7rG88wbEGZNZ57ZFsjn3TXbUgF1XB6ukwo/JLziRwUlyrxyI5RHGch6rSjMXnjyYkcn3FalicjOVoknLrbq+cM+W7+MJVGN65hw+S/RSoo4WfbiMGuONdOap+3nU7pYJfWrUvFOeM4a2olKfwG0D/ejXm0qGQ/upkcaj0HuxmwfDehFCT2HdHnGO/E1tukhJx6Em9FgTctOEz4cmtM8t+BOkwn485TCPk6Er+Nk+n7yTRm72ffMvtr1U/uTpxS8AAAAASUVORK5CYII="},DBLp:function(Ze,we){function M(){}M.prototype={diff:function(E,_,C){C||(C=function(h,g){return h===g}),this.equals=C;var m=this;E=E.slice(),_=_.slice();var c=_.length,r=E.length,n=1,e=c+r,s=[{newPos:-1,components:[]}],u=this.extractCommon(s[0],_,E,0);if(s[0].newPos+1>=c&&u+1>=r){for(var o=[],f=0;f<_.length;f++)o.push(f);return[{indices:o,count:_.length}]}function d(){for(var h=-1*n;h<=n;h+=2){var g,p=s[h-1],S=s[h+1],w=(S?S.newPos:0)-h;p&&(s[h-1]=void 0);var B=p&&p.newPos+1<c,b=S&&0<=w&&w<r;if(!B&&!b){s[h]=void 0;continue}if(!B||b&&p.newPos<S.newPos?(g=Y(S),m.pushComponent(g.components,void 0,!0)):(g=p,g.newPos++,m.pushComponent(g.components,!0,void 0)),w=m.extractCommon(g,_,E,h),g.newPos+1>=c&&w+1>=r)return ue(m,g.components,_,E);s[h]=g}n++}for(;n<=e;){var a=d();if(a)return a}},pushComponent:function(E,_,C){var m=E[E.length-1];m&&m.added===_&&m.removed===C?E[E.length-1]={count:m.count+1,added:_,removed:C}:E.push({count:1,added:_,removed:C})},extractCommon:function(E,_,C,m){for(var c=_.length,r=C.length,n=E.newPos,e=n-m,s=0;n+1<c&&e+1<r&&this.equals(_[n+1],C[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 ue(E,_,C,m){for(var c=0,r=_.length,n=0,e=0;c<r;c++){var s=_[c];if(s.removed){for(var u=[],o=e;o<e+s.count;o++)u.push(o);s.indices=u,e+=s.count}else{for(var u=[],o=n;o<n+s.count;o++)u.push(o);s.indices=u,n+=s.count,s.added||(e+=s.count)}}return _}function Y(E){return{newPos:E.newPos,components:E.components.slice(0)}}var P=new M;function y(E,_,C){return P.diff(E,_,C)}Ze.exports=y},DN4a:function(Ze,we,M){var ue=M("Fofx"),Y=M("QBsz"),P=ue.identity,y=5e-5;function E(e){return e>y||e<-y}var _=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},C=_.prototype;C.transform=null,C.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 m=[];C.updateTransform=function(){var e=this.parent,s=e&&e.transform,u=this.needLocalTransform(),o=this.transform;if(!(u||s)){o&&P(o);return}o=o||ue.create(),u?this.getLocalTransform(o):P(o),s&&(u?ue.mul(o,e.transform,o):ue.copy(o,e.transform)),this.transform=o;var f=this.globalScaleRatio;if(f!=null&&f!==1){this.getGlobalScale(m);var d=m[0]<0?-1:1,a=m[1]<0?-1:1,h=((m[0]-d)*f+d)/m[0]||0,g=((m[1]-a)*f+a)/m[1]||0;o[0]*=h,o[1]*=h,o[2]*=g,o[3]*=g}this.invTransform=this.invTransform||ue.create(),ue.invert(this.invTransform,o)},C.getLocalTransform=function(e){return _.getLocalTransform(this,e)},C.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)},C.restoreTransform=function(e){var s=e.dpr||1;e.setTransform(s,0,0,s,0,0)};var c=[],r=ue.create();C.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],o=this.position,f=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),o[0]=e[4],o[1]=e[5],f[0]=s,f[1]=u,this.rotation=Math.atan2(-e[1]/u,e[0]/s)},C.decomposeTransform=function(){if(!this.transform)return;var e=this.parent,s=this.transform;e&&e.transform&&(ue.mul(c,e.invTransform,s),s=c);var u=this.origin;u&&(u[0]||u[1])&&(r[4]=u[0],r[5]=u[1],ue.mul(c,s,r),c[4]-=u[0],c[5]-=u[1],s=c),this.setLocalTransform(s)},C.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)},C.transformCoordToLocal=function(e,s){var u=[e,s],o=this.invTransform;return o&&Y.applyTransform(u,u,o),u},C.transformCoordToGlobal=function(e,s){var u=[e,s],o=this.transform;return o&&Y.applyTransform(u,u,o),u},_.getLocalTransform=function(e,s){s=s||[],P(s);var u=e.origin,o=e.scale||[1,1],f=e.rotation||0,d=e.position||[0,0];return u&&(s[4]-=u[0],s[5]-=u[1]),ue.scale(s,s,o),f&&ue.rotate(s,s,f),u&&(s[4]+=u[0],s[5]+=u[1]),s[4]+=d[0],s[5]+=d[1],s};var n=_;Ze.exports=n},Dagg:function(Ze,we,M){var ue=M("Gev7"),Y=M("mFDi"),P=M("bYtY"),y=M("Xnb7");function E(C){ue.call(this,C)}E.prototype={constructor:E,type:"image",brush:function(C,m){var c=this.style,r=c.image;c.bind(C,this,m);var n=this._image=y.createOrUpdateImage(r,this._image,this,this.onload);if(!n||!y.isImageReady(n))return;var e=c.x||0,s=c.y||0,u=c.width,o=c.height,f=n.width/n.height;if(u==null&&o!=null?u=o*f:o==null&&u!=null?o=u/f:u==null&&o==null&&(u=n.width,o=n.height),this.setTransform(C),c.sWidth&&c.sHeight){var d=c.sx||0,a=c.sy||0;C.drawImage(n,d,a,c.sWidth,c.sHeight,e,s,u,o)}else if(c.sx&&c.sy){var d=c.sx,a=c.sy,h=u-d,g=o-a;C.drawImage(n,d,a,h,g,e,s,u,o)}else C.drawImage(n,e,s,u,o);c.text!=null&&(this.restoreTransform(C),this.drawRectText(C,this.getBoundingRect()))},getBoundingRect:function(){var C=this.style;return this._rect||(this._rect=new Y(C.x||0,C.y||0,C.width||0,C.height||0)),this._rect}},P.inherits(E,ue);var _=E;Ze.exports=_},DlQD:function(Ze,we,M){(function(ue,Y){Ze.exports=Y()})(this,function(){"use strict";function ue(rt,qe){for(var $e=0;$e<qe.length;$e++){var Pe=qe[$e];Pe.enumerable=Pe.enumerable||!1,Pe.configurable=!0,"value"in Pe&&(Pe.writable=!0),Object.defineProperty(rt,Pe.key,Pe)}}function Y(rt,qe,$e){return qe&&ue(rt.prototype,qe),$e&&ue(rt,$e),rt}function P(rt,qe){if(!rt)return;if(typeof rt=="string")return y(rt,qe);var $e=Object.prototype.toString.call(rt).slice(8,-1);if($e==="Object"&&rt.constructor&&($e=rt.constructor.name),$e==="Map"||$e==="Set")return Array.from(rt);if($e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($e))return y(rt,qe)}function y(rt,qe){(qe==null||qe>rt.length)&&(qe=rt.length);for(var $e=0,Pe=new Array(qe);$e<qe;$e++)Pe[$e]=rt[$e];return Pe}function E(rt,qe){var $e;if(typeof Symbol=="undefined"||rt[Symbol.iterator]==null){if(Array.isArray(rt)||($e=P(rt))||qe&&rt&&typeof rt.length=="number"){$e&&(rt=$e);var Pe=0;return function(){return Pe>=rt.length?{done:!0}:{done:!1,value:rt[Pe++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return $e=rt[Symbol.iterator](),$e.next.bind($e)}function _(rt,qe){return qe={exports:{}},rt(qe,qe.exports),qe.exports}var C=_(function(rt){function qe(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function $e(Pe){rt.exports.defaults=Pe}rt.exports={defaults:qe(),getDefaults:qe,changeDefaults:$e}}),m=C.defaults,c=C.getDefaults,r=C.changeDefaults,n=/[&<>"']/,e=/[&<>"']/g,s=/[<>"']|&(?!#?\w+;)/,u=/[<>"']|&(?!#?\w+;)/g,o={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},f=function(qe){return o[qe]};function d(rt,qe){if(qe){if(n.test(rt))return rt.replace(e,f)}else if(s.test(rt))return rt.replace(u,f);return rt}var a=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function h(rt){return rt.replace(a,function(qe,$e){return $e=$e.toLowerCase(),$e==="colon"?":":$e.charAt(0)==="#"?$e.charAt(1)==="x"?String.fromCharCode(parseInt($e.substring(2),16)):String.fromCharCode(+$e.substring(1)):""})}var g=/(^|[^\[])\^/g;function p(rt,qe){rt=rt.source||rt,qe=qe||"";var $e={replace:function(je,Ne){return Ne=Ne.source||Ne,Ne=Ne.replace(g,"$1"),rt=rt.replace(je,Ne),$e},getRegex:function(){return new RegExp(rt,qe)}};return $e}var S=/[^\w:]/g,w=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function B(rt,qe,$e){if(rt){var Pe;try{Pe=decodeURIComponent(h($e)).replace(S,"").toLowerCase()}catch(je){return null}if(Pe.indexOf("javascript:")===0||Pe.indexOf("vbscript:")===0||Pe.indexOf("data:")===0)return null}qe&&!w.test($e)&&($e=x(qe,$e));try{$e=encodeURI($e).replace(/%25/g,"%")}catch(je){return null}return $e}var b={},A=/^[^:]+:\/*[^/]*$/,l=/^([^:]+:)[\s\S]*$/,i=/^([^:]+:\/*[^/]*)[\s\S]*$/;function x(rt,qe){b[" "+rt]||(A.test(rt)?b[" "+rt]=rt+"/":b[" "+rt]=R(rt,"/",!0)),rt=b[" "+rt];var $e=rt.indexOf(":")===-1;return qe.substring(0,2)==="//"?$e?qe:rt.replace(l,"$1")+qe:qe.charAt(0)==="/"?$e?qe:rt.replace(i,"$1")+qe:rt+qe}var O={exec:function(){}};function T(rt){for(var qe=1,$e,Pe;qe<arguments.length;qe++){$e=arguments[qe];for(Pe in $e)Object.prototype.hasOwnProperty.call($e,Pe)&&(rt[Pe]=$e[Pe])}return rt}function D(rt,qe){var $e=rt.replace(/\|/g,function(Ne,et,mt){for(var At=!1,Ut=et;--Ut>=0&&mt[Ut]==="\\";)At=!At;return At?"|":" |"}),Pe=$e.split(/ \|/),je=0;if(Pe.length>qe)Pe.splice(qe);else for(;Pe.length<qe;)Pe.push("");for(;je<Pe.length;je++)Pe[je]=Pe[je].trim().replace(/\\\|/g,"|");return Pe}function R(rt,qe,$e){var Pe=rt.length;if(Pe===0)return"";for(var je=0;je<Pe;){var Ne=rt.charAt(Pe-je-1);if(Ne===qe&&!$e)je++;else if(Ne!==qe&&$e)je++;else break}return rt.substr(0,Pe-je)}function k(rt,qe){if(rt.indexOf(qe[1])===-1)return-1;for(var $e=rt.length,Pe=0,je=0;je<$e;je++)if(rt[je]==="\\")je++;else if(rt[je]===qe[0])Pe++;else if(rt[je]===qe[1]&&(Pe--,Pe<0))return je;return-1}function H(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 J={escape:d,unescape:h,edit:p,cleanUrl:B,resolveUrl:x,noopTest:O,merge:T,splitCells:D,rtrim:R,findClosingBracket:k,checkSanitizeDeprecation:H},U=C.defaults,K=J.rtrim,G=J.splitCells,N=J.escape,Q=J.findClosingBracket;function X(rt,qe,$e){var Pe=qe.href,je=qe.title?N(qe.title):null,Ne=rt[1].replace(/\\([\[\]])/g,"$1");return rt[0].charAt(0)!=="!"?{type:"link",raw:$e,href:Pe,title:je,text:Ne}:{type:"image",raw:$e,href:Pe,title:je,text:N(Ne)}}function te(rt,qe){var $e=rt.match(/^(\s+)(?:```)/);if($e===null)return qe;var Pe=$e[1];return qe.split(`
`).map(function(je){var Ne=je.match(/^\s+/);if(Ne===null)return je;var et=Ne[0];return et.length>=Pe.length?je.slice(Pe.length):je}).join(`
`)}var oe=function(){function rt($e){this.options=$e||U}var qe=rt.prototype;return qe.space=function(Pe){var je=this.rules.block.newline.exec(Pe);if(je)return je[0].length>1?{type:"space",raw:je[0]}:{raw:`
`}},qe.code=function(Pe,je){var Ne=this.rules.block.code.exec(Pe);if(Ne){var et=je[je.length-1];if(et&&et.type==="paragraph")return{raw:Ne[0],text:Ne[0].trimRight()};var mt=Ne[0].replace(/^ {4}/gm,"");return{type:"code",raw:Ne[0],codeBlockStyle:"indented",text:this.options.pedantic?mt:K(mt,`
`)}}},qe.fences=function(Pe){var je=this.rules.block.fences.exec(Pe);if(je){var Ne=je[0],et=te(Ne,je[3]||"");return{type:"code",raw:Ne,lang:je[2]?je[2].trim():je[2],text:et}}},qe.heading=function(Pe){var je=this.rules.block.heading.exec(Pe);if(je)return{type:"heading",raw:je[0],depth:je[1].length,text:je[2]}},qe.nptable=function(Pe){var je=this.rules.block.nptable.exec(Pe);if(je){var Ne={type:"table",header:G(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 et=Ne.align.length,mt;for(mt=0;mt<et;mt++)/^ *-+: *$/.test(Ne.align[mt])?Ne.align[mt]="right":/^ *:-+: *$/.test(Ne.align[mt])?Ne.align[mt]="center":/^ *:-+ *$/.test(Ne.align[mt])?Ne.align[mt]="left":Ne.align[mt]=null;for(et=Ne.cells.length,mt=0;mt<et;mt++)Ne.cells[mt]=G(Ne.cells[mt],Ne.header.length);return Ne}}},qe.hr=function(Pe){var je=this.rules.block.hr.exec(Pe);if(je)return{type:"hr",raw:je[0]}},qe.blockquote=function(Pe){var je=this.rules.block.blockquote.exec(Pe);if(je){var Ne=je[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:je[0],text:Ne}}},qe.list=function(Pe){var je=this.rules.block.list.exec(Pe);if(je){for(var Ne=je[0],et=je[2],mt=et.length>1,At=et[et.length-1]===")",Ut={type:"list",raw:Ne,ordered:mt,start:mt?+et.slice(0,-1):"",loose:!1,items:[]},Xt=je[0].match(this.rules.block.item),un=!1,jt,Zt,Mt,Tt,Ct,Re,We,St=Xt.length,ft=0;ft<St;ft++)jt=Xt[ft],Ne=jt,Zt=jt.length,jt=jt.replace(/^ *([*+-]|\d+[.)]) */,""),~jt.indexOf(`
`)&&(Zt-=jt.length,jt=this.options.pedantic?jt.replace(/^ {1,4}/gm,""):jt.replace(new RegExp("^ {1,"+Zt+"}","gm"),"")),ft!==St-1&&(Mt=this.rules.block.bullet.exec(Xt[ft+1])[0],(mt?Mt.length===1||!At&&Mt[Mt.length-1]===")":Mt.length>1||this.options.smartLists&&Mt!==et)&&(Tt=Xt.slice(ft+1).join(`
`),Ut.raw=Ut.raw.substring(0,Ut.raw.length-Tt.length),ft=St-1)),Ct=un||/\n\n(?!\s*$)/.test(jt),ft!==St-1&&(un=jt.charAt(jt.length-1)===`
`,Ct||(Ct=un)),Ct&&(Ut.loose=!0),Re=/^\[[ xX]\] /.test(jt),We=void 0,Re&&(We=jt[1]!==" ",jt=jt.replace(/^\[[ xX]\] +/,"")),Ut.items.push({type:"list_item",raw:Ne,task:Re,checked:We,loose:Ct,text:jt});return Ut}},qe.html=function(Pe){var je=this.rules.block.html.exec(Pe);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]):N(je[0]):je[0]}},qe.def=function(Pe){var je=this.rules.block.def.exec(Pe);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]}}},qe.table=function(Pe){var je=this.rules.block.table.exec(Pe);if(je){var Ne={type:"table",header:G(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 et=Ne.align.length,mt;for(mt=0;mt<et;mt++)/^ *-+: *$/.test(Ne.align[mt])?Ne.align[mt]="right":/^ *:-+: *$/.test(Ne.align[mt])?Ne.align[mt]="center":/^ *:-+ *$/.test(Ne.align[mt])?Ne.align[mt]="left":Ne.align[mt]=null;for(et=Ne.cells.length,mt=0;mt<et;mt++)Ne.cells[mt]=G(Ne.cells[mt].replace(/^ *\| *| *\| *$/g,""),Ne.header.length);return Ne}}},qe.lheading=function(Pe){var je=this.rules.block.lheading.exec(Pe);if(je)return{type:"heading",raw:je[0],depth:je[2].charAt(0)==="="?1:2,text:je[1]}},qe.paragraph=function(Pe){var je=this.rules.block.paragraph.exec(Pe);if(je)return{type:"paragraph",raw:je[0],text:je[1].charAt(je[1].length-1)===`
`?je[1].slice(0,-1):je[1]}},qe.text=function(Pe,je){var Ne=this.rules.block.text.exec(Pe);if(Ne){var et=je[je.length-1];return et&&et.type==="text"?{raw:Ne[0],text:Ne[0]}:{type:"text",raw:Ne[0],text:Ne[0]}}},qe.escape=function(Pe){var je=this.rules.inline.escape.exec(Pe);if(je)return{type:"escape",raw:je[0],text:N(je[1])}},qe.tag=function(Pe,je,Ne){var et=this.rules.inline.tag.exec(Pe);if(et)return!je&&/^<a /i.test(et[0])?je=!0:je&&/^<\/a>/i.test(et[0])&&(je=!1),!Ne&&/^<(pre|code|kbd|script)(\s|>)/i.test(et[0])?Ne=!0:Ne&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(et[0])&&(Ne=!1),{type:this.options.sanitize?"text":"html",raw:et[0],inLink:je,inRawBlock:Ne,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(et[0]):N(et[0]):et[0]}},qe.link=function(Pe){var je=this.rules.inline.link.exec(Pe);if(je){var Ne=Q(je[2],"()");if(Ne>-1){var et=je[0].indexOf("!")===0?5:4,mt=et+je[1].length+Ne;je[2]=je[2].substring(0,Ne),je[0]=je[0].substring(0,mt).trim(),je[3]=""}var At=je[2],Ut="";if(this.options.pedantic){var Xt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(At);Xt?(At=Xt[1],Ut=Xt[3]):Ut=""}else Ut=je[3]?je[3].slice(1,-1):"";At=At.trim().replace(/^<([\s\S]*)>$/,"$1");var un=X(je,{href:At&&At.replace(this.rules.inline._escapes,"$1"),title:Ut&&Ut.replace(this.rules.inline._escapes,"$1")},je[0]);return un}},qe.reflink=function(Pe,je){var Ne;if((Ne=this.rules.inline.reflink.exec(Pe))||(Ne=this.rules.inline.nolink.exec(Pe))){var et=(Ne[2]||Ne[1]).replace(/\s+/g," ");if(et=je[et.toLowerCase()],!et||!et.href){var mt=Ne[0].charAt(0);return{type:"text",raw:mt,text:mt}}var At=X(Ne,et,Ne[0]);return At}},qe.strong=function(Pe,je,Ne){Ne===void 0&&(Ne="");var et=this.rules.inline.strong.start.exec(Pe);if(et&&(!et[1]||et[1]&&(Ne===""||this.rules.inline.punctuation.exec(Ne)))){je=je.slice(-1*Pe.length);var mt=et[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;mt.lastIndex=0;for(var At;(et=mt.exec(je))!=null;)if(At=this.rules.inline.strong.middle.exec(je.slice(0,et.index+3)),At)return{type:"strong",raw:Pe.slice(0,At[0].length),text:Pe.slice(2,At[0].length-2)}}},qe.em=function(Pe,je,Ne){Ne===void 0&&(Ne="");var et=this.rules.inline.em.start.exec(Pe);if(et&&(!et[1]||et[1]&&(Ne===""||this.rules.inline.punctuation.exec(Ne)))){je=je.slice(-1*Pe.length);var mt=et[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;mt.lastIndex=0;for(var At;(et=mt.exec(je))!=null;)if(At=this.rules.inline.em.middle.exec(je.slice(0,et.index+2)),At)return{type:"em",raw:Pe.slice(0,At[0].length),text:Pe.slice(1,At[0].length-1)}}},qe.codespan=function(Pe){var je=this.rules.inline.code.exec(Pe);if(je){var Ne=je[2].replace(/\n/g," "),et=/[^ ]/.test(Ne),mt=Ne.startsWith(" ")&&Ne.endsWith(" ");return et&&mt&&(Ne=Ne.substring(1,Ne.length-1)),Ne=N(Ne,!0),{type:"codespan",raw:je[0],text:Ne}}},qe.br=function(Pe){var je=this.rules.inline.br.exec(Pe);if(je)return{type:"br",raw:je[0]}},qe.del=function(Pe){var je=this.rules.inline.del.exec(Pe);if(je)return{type:"del",raw:je[0],text:je[1]}},qe.autolink=function(Pe,je){var Ne=this.rules.inline.autolink.exec(Pe);if(Ne){var et,mt;return Ne[2]==="@"?(et=N(this.options.mangle?je(Ne[1]):Ne[1]),mt="mailto:"+et):(et=N(Ne[1]),mt=et),{type:"link",raw:Ne[0],text:et,href:mt,tokens:[{type:"text",raw:et,text:et}]}}},qe.url=function(Pe,je){var Ne;if(Ne=this.rules.inline.url.exec(Pe)){var et,mt;if(Ne[2]==="@")et=N(this.options.mangle?je(Ne[0]):Ne[0]),mt="mailto:"+et;else{var At;do At=Ne[0],Ne[0]=this.rules.inline._backpedal.exec(Ne[0])[0];while(At!==Ne[0]);et=N(Ne[0]),Ne[1]==="www."?mt="http://"+et:mt=et}return{type:"link",raw:Ne[0],text:et,href:mt,tokens:[{type:"text",raw:et,text:et}]}}},qe.inlineText=function(Pe,je,Ne){var et=this.rules.inline.text.exec(Pe);if(et){var mt;return je?mt=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(et[0]):N(et[0]):et[0]:mt=N(this.options.smartypants?Ne(et[0]):et[0]),{type:"text",raw:et[0],text:mt}}},rt}(),me=J.noopTest,se=J.edit,_e=J.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:me,table:me,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=se(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=se(Ae.item,"gm").replace(/bull/g,Ae.bullet).getRegex(),Ae.list=se(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=se(Ae.html,"i").replace("comment",Ae._comment).replace("tag",Ae._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ae.paragraph=se(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=se(Ae.blockquote).replace("paragraph",Ae.paragraph).getRegex(),Ae.normal=_e({},Ae),Ae.gfm=_e({},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=se(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=se(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=_e({},Ae.normal,{html:se(`^ *(?: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:me,paragraph:se(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 Ee={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:me,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:me,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};Ee._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Ee.punctuation=se(Ee.punctuation).replace(/punctuation/g,Ee._punctuation).getRegex(),Ee._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",Ee._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",Ee.em.start=se(Ee.em.start).replace(/punctuation/g,Ee._punctuation).getRegex(),Ee.em.middle=se(Ee.em.middle).replace(/punctuation/g,Ee._punctuation).replace(/overlapSkip/g,Ee._overlapSkip).getRegex(),Ee.em.endAst=se(Ee.em.endAst,"g").replace(/punctuation/g,Ee._punctuation).getRegex(),Ee.em.endUnd=se(Ee.em.endUnd,"g").replace(/punctuation/g,Ee._punctuation).getRegex(),Ee.strong.start=se(Ee.strong.start).replace(/punctuation/g,Ee._punctuation).getRegex(),Ee.strong.middle=se(Ee.strong.middle).replace(/punctuation/g,Ee._punctuation).replace(/blockSkip/g,Ee._blockSkip).getRegex(),Ee.strong.endAst=se(Ee.strong.endAst,"g").replace(/punctuation/g,Ee._punctuation).getRegex(),Ee.strong.endUnd=se(Ee.strong.endUnd,"g").replace(/punctuation/g,Ee._punctuation).getRegex(),Ee.blockSkip=se(Ee._blockSkip,"g").getRegex(),Ee.overlapSkip=se(Ee._overlapSkip,"g").getRegex(),Ee._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Ee._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Ee._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,Ee.autolink=se(Ee.autolink).replace("scheme",Ee._scheme).replace("email",Ee._email).getRegex(),Ee._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Ee.tag=se(Ee.tag).replace("comment",Ae._comment).replace("attribute",Ee._attribute).getRegex(),Ee._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ee._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,Ee._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Ee.link=se(Ee.link).replace("label",Ee._label).replace("href",Ee._href).replace("title",Ee._title).getRegex(),Ee.reflink=se(Ee.reflink).replace("label",Ee._label).getRegex(),Ee.reflinkSearch=se(Ee.reflinkSearch,"g").replace("reflink",Ee.reflink).replace("nolink",Ee.nolink).getRegex(),Ee.normal=_e({},Ee),Ee.pedantic=_e({},Ee.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:se(/^!?\[(label)\]\((.*?)\)/).replace("label",Ee._label).getRegex(),reflink:se(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ee._label).getRegex()}),Ee.gfm=_e({},Ee.normal,{escape:se(Ee.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),Ee.gfm.url=se(Ee.gfm.url,"i").replace("email",Ee.gfm._extended_email).getRegex(),Ee.breaks=_e({},Ee.gfm,{br:se(Ee.br).replace("{2,}","*").getRegex(),text:se(Ee.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var pe={block:Ae,inline:Ee},he=C.defaults,ie=pe.block,fe=pe.inline;function ge(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 ce(rt){var qe="",$e,Pe,je=rt.length;for($e=0;$e<je;$e++)Pe=rt.charCodeAt($e),Math.random()>.5&&(Pe="x"+Pe.toString(16)),qe+="&#"+Pe+";";return qe}var Ie=function(){function rt($e){this.tokens=[],this.tokens.links=Object.create(null),this.options=$e||he,this.options.tokenizer=this.options.tokenizer||new oe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Pe={block:ie.normal,inline:fe.normal};this.options.pedantic?(Pe.block=ie.pedantic,Pe.inline=fe.pedantic):this.options.gfm&&(Pe.block=ie.gfm,this.options.breaks?Pe.inline=fe.breaks:Pe.inline=fe.gfm),this.tokenizer.rules=Pe}rt.lex=function(Pe,je){var Ne=new rt(je);return Ne.lex(Pe)};var qe=rt.prototype;return qe.lex=function(Pe){return Pe=Pe.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(Pe,this.tokens,!0),this.inline(this.tokens),this.tokens},qe.blockTokens=function(Pe,je,Ne){je===void 0&&(je=[]),Ne===void 0&&(Ne=!0),Pe=Pe.replace(/^ +$/gm,"");for(var et,mt,At,Ut;Pe;){if(et=this.tokenizer.space(Pe)){Pe=Pe.substring(et.raw.length),et.type&&je.push(et);continue}if(et=this.tokenizer.code(Pe,je)){Pe=Pe.substring(et.raw.length),et.type?je.push(et):(Ut=je[je.length-1],Ut.raw+=`
`+et.raw,Ut.text+=`
`+et.text);continue}if(et=this.tokenizer.fences(Pe)){Pe=Pe.substring(et.raw.length),je.push(et);continue}if(et=this.tokenizer.heading(Pe)){Pe=Pe.substring(et.raw.length),je.push(et);continue}if(et=this.tokenizer.nptable(Pe)){Pe=Pe.substring(et.raw.length),je.push(et);continue}if(et=this.tokenizer.hr(Pe)){Pe=Pe.substring(et.raw.length),je.push(et);continue}if(et=this.tokenizer.blockquote(Pe)){Pe=Pe.substring(et.raw.length),et.tokens=this.blockTokens(et.text,[],Ne),je.push(et);continue}if(et=this.tokenizer.list(Pe)){for(Pe=Pe.substring(et.raw.length),At=et.items.length,mt=0;mt<At;mt++)et.items[mt].tokens=this.blockTokens(et.items[mt].text,[],!1);je.push(et);continue}if(et=this.tokenizer.html(Pe)){Pe=Pe.substring(et.raw.length),je.push(et);continue}if(Ne&&(et=this.tokenizer.def(Pe))){Pe=Pe.substring(et.raw.length),this.tokens.links[et.tag]||(this.tokens.links[et.tag]={href:et.href,title:et.title});continue}if(et=this.tokenizer.table(Pe)){Pe=Pe.substring(et.raw.length),je.push(et);continue}if(et=this.tokenizer.lheading(Pe)){Pe=Pe.substring(et.raw.length),je.push(et);continue}if(Ne&&(et=this.tokenizer.paragraph(Pe))){Pe=Pe.substring(et.raw.length),je.push(et);continue}if(et=this.tokenizer.text(Pe,je)){Pe=Pe.substring(et.raw.length),et.type?je.push(et):(Ut=je[je.length-1],Ut.raw+=`
`+et.raw,Ut.text+=`
`+et.text);continue}if(Pe){var Xt="Infinite loop on byte: "+Pe.charCodeAt(0);if(this.options.silent){console.error(Xt);break}else throw new Error(Xt)}}return je},qe.inline=function(Pe){var je,Ne,et,mt,At,Ut,Xt=Pe.length;for(je=0;je<Xt;je++){Ut=Pe[je];switch(Ut.type){case"paragraph":case"text":case"heading":{Ut.tokens=[],this.inlineTokens(Ut.text,Ut.tokens);break}case"table":{for(Ut.tokens={header:[],cells:[]},mt=Ut.header.length,Ne=0;Ne<mt;Ne++)Ut.tokens.header[Ne]=[],this.inlineTokens(Ut.header[Ne],Ut.tokens.header[Ne]);for(mt=Ut.cells.length,Ne=0;Ne<mt;Ne++)for(At=Ut.cells[Ne],Ut.tokens.cells[Ne]=[],et=0;et<At.length;et++)Ut.tokens.cells[Ne][et]=[],this.inlineTokens(At[et],Ut.tokens.cells[Ne][et]);break}case"blockquote":{this.inline(Ut.tokens);break}case"list":{for(mt=Ut.items.length,Ne=0;Ne<mt;Ne++)this.inline(Ut.items[Ne].tokens);break}}}return Pe},qe.inlineTokens=function(Pe,je,Ne,et,mt){je===void 0&&(je=[]),Ne===void 0&&(Ne=!1),et===void 0&&(et=!1),mt===void 0&&(mt="");var At,Ut=Pe,Xt;if(this.tokens.links){var un=Object.keys(this.tokens.links);if(un.length>0)for(;(Xt=this.tokenizer.rules.inline.reflinkSearch.exec(Ut))!=null;)un.includes(Xt[0].slice(Xt[0].lastIndexOf("[")+1,-1))&&(Ut=Ut.slice(0,Xt.index)+"["+"a".repeat(Xt[0].length-2)+"]"+Ut.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Xt=this.tokenizer.rules.inline.blockSkip.exec(Ut))!=null;)Ut=Ut.slice(0,Xt.index)+"["+"a".repeat(Xt[0].length-2)+"]"+Ut.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Pe;){if(At=this.tokenizer.escape(Pe)){Pe=Pe.substring(At.raw.length),je.push(At);continue}if(At=this.tokenizer.tag(Pe,Ne,et)){Pe=Pe.substring(At.raw.length),Ne=At.inLink,et=At.inRawBlock,je.push(At);continue}if(At=this.tokenizer.link(Pe)){Pe=Pe.substring(At.raw.length),At.type==="link"&&(At.tokens=this.inlineTokens(At.text,[],!0,et)),je.push(At);continue}if(At=this.tokenizer.reflink(Pe,this.tokens.links)){Pe=Pe.substring(At.raw.length),At.type==="link"&&(At.tokens=this.inlineTokens(At.text,[],!0,et)),je.push(At);continue}if(At=this.tokenizer.strong(Pe,Ut,mt)){Pe=Pe.substring(At.raw.length),At.tokens=this.inlineTokens(At.text,[],Ne,et),je.push(At);continue}if(At=this.tokenizer.em(Pe,Ut,mt)){Pe=Pe.substring(At.raw.length),At.tokens=this.inlineTokens(At.text,[],Ne,et),je.push(At);continue}if(At=this.tokenizer.codespan(Pe)){Pe=Pe.substring(At.raw.length),je.push(At);continue}if(At=this.tokenizer.br(Pe)){Pe=Pe.substring(At.raw.length),je.push(At);continue}if(At=this.tokenizer.del(Pe)){Pe=Pe.substring(At.raw.length),At.tokens=this.inlineTokens(At.text,[],Ne,et),je.push(At);continue}if(At=this.tokenizer.autolink(Pe,ce)){Pe=Pe.substring(At.raw.length),je.push(At);continue}if(!Ne&&(At=this.tokenizer.url(Pe,ce))){Pe=Pe.substring(At.raw.length),je.push(At);continue}if(At=this.tokenizer.inlineText(Pe,et,ge)){Pe=Pe.substring(At.raw.length),mt=At.raw.slice(-1),je.push(At);continue}if(Pe){var jt="Infinite loop on byte: "+Pe.charCodeAt(0);if(this.options.silent){console.error(jt);break}else throw new Error(jt)}}return je},Y(rt,null,[{key:"rules",get:function(){return{block:ie,inline:fe}}}]),rt}(),Fe=C.defaults,ke=J.cleanUrl,re=J.escape,F=function(){function rt($e){this.options=$e||Fe}var qe=rt.prototype;return qe.code=function(Pe,je,Ne){var et=(je||"").match(/\S*/)[0];if(this.options.highlight){var mt=this.options.highlight(Pe,et);mt!=null&&mt!==Pe&&(Ne=!0,Pe=mt)}return et?'<pre><code class="'+this.options.langPrefix+re(et,!0)+'">'+(Ne?Pe:re(Pe,!0))+`</code></pre>
`:"<pre><code>"+(Ne?Pe:re(Pe,!0))+`</code></pre>
`},qe.blockquote=function(Pe){return`<blockquote>
`+Pe+`</blockquote>
`},qe.html=function(Pe){return Pe},qe.heading=function(Pe,je,Ne,et){return this.options.headerIds?"<h"+je+' id="'+this.options.headerPrefix+et.slug(Ne)+'">'+Pe+"</h"+je+`>
`:"<h"+je+">"+Pe+"</h"+je+`>
`},qe.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},qe.list=function(Pe,je,Ne){var et=je?"ol":"ul",mt=je&&Ne!==1?' start="'+Ne+'"':"";return"<"+et+mt+`>
`+Pe+"</"+et+`>
`},qe.listitem=function(Pe){return"<li>"+Pe+`</li>
`},qe.checkbox=function(Pe){return"<input "+(Pe?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},qe.paragraph=function(Pe){return"<p>"+Pe+`</p>
`},qe.table=function(Pe,je){return je&&(je="<tbody>"+je+"</tbody>"),`<table>
<thead>
`+Pe+`</thead>
`+je+`</table>
`},qe.tablerow=function(Pe){return`<tr>
`+Pe+`</tr>
`},qe.tablecell=function(Pe,je){var Ne=je.header?"th":"td",et=je.align?"<"+Ne+' align="'+je.align+'">':"<"+Ne+">";return et+Pe+"</"+Ne+`>
`},qe.strong=function(Pe){return"<strong>"+Pe+"</strong>"},qe.em=function(Pe){return"<em>"+Pe+"</em>"},qe.codespan=function(Pe){return"<code>"+Pe+"</code>"},qe.br=function(){return this.options.xhtml?"<br/>":"<br>"},qe.del=function(Pe){return"<del>"+Pe+"</del>"},qe.link=function(Pe,je,Ne){if(Pe=ke(this.options.sanitize,this.options.baseUrl,Pe),Pe===null)return Ne;var et='<a href="'+re(Pe)+'"';return je&&(et+=' title="'+je+'"'),et+=">"+Ne+"</a>",et},qe.image=function(Pe,je,Ne){if(Pe=ke(this.options.sanitize,this.options.baseUrl,Pe),Pe===null)return Ne;var et='<img src="'+Pe+'" alt="'+Ne+'"';return je&&(et+=' title="'+je+'"'),et+=this.options.xhtml?"/>":">",et},qe.text=function(Pe){return Pe},rt}(),W=function(){function rt(){}var qe=rt.prototype;return qe.strong=function(Pe){return Pe},qe.em=function(Pe){return Pe},qe.codespan=function(Pe){return Pe},qe.del=function(Pe){return Pe},qe.html=function(Pe){return Pe},qe.text=function(Pe){return Pe},qe.link=function(Pe,je,Ne){return""+Ne},qe.image=function(Pe,je,Ne){return""+Ne},qe.br=function(){return""},rt}(),de=function(){function rt(){this.seen={}}var qe=rt.prototype;return qe.slug=function(Pe){var je=Pe.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=C.defaults,le=J.unescape,De=function(){function rt($e){this.options=$e||ne,this.options.renderer=this.options.renderer||new F,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new W,this.slugger=new de}rt.parse=function(Pe,je){var Ne=new rt(je);return Ne.parse(Pe)};var qe=rt.prototype;return qe.parse=function(Pe,je){je===void 0&&(je=!0);var Ne="",et,mt,At,Ut,Xt,un,jt,Zt,Mt,Tt,Ct,Re,We,St,ft,It,Ot,bt,Ht=Pe.length;for(et=0;et<Ht;et++){Tt=Pe[et];switch(Tt.type){case"space":continue;case"hr":{Ne+=this.renderer.hr();continue}case"heading":{Ne+=this.renderer.heading(this.parseInline(Tt.tokens),Tt.depth,le(this.parseInline(Tt.tokens,this.textRenderer)),this.slugger);continue}case"code":{Ne+=this.renderer.code(Tt.text,Tt.lang,Tt.escaped);continue}case"table":{for(Zt="",jt="",Ut=Tt.header.length,mt=0;mt<Ut;mt++)jt+=this.renderer.tablecell(this.parseInline(Tt.tokens.header[mt]),{header:!0,align:Tt.align[mt]});for(Zt+=this.renderer.tablerow(jt),Mt="",Ut=Tt.cells.length,mt=0;mt<Ut;mt++){for(un=Tt.tokens.cells[mt],jt="",Xt=un.length,At=0;At<Xt;At++)jt+=this.renderer.tablecell(this.parseInline(un[At]),{header:!1,align:Tt.align[At]});Mt+=this.renderer.tablerow(jt)}Ne+=this.renderer.table(Zt,Mt);continue}case"blockquote":{Mt=this.parse(Tt.tokens),Ne+=this.renderer.blockquote(Mt);continue}case"list":{for(Ct=Tt.ordered,Re=Tt.start,We=Tt.loose,Ut=Tt.items.length,Mt="",mt=0;mt<Ut;mt++)ft=Tt.items[mt],It=ft.checked,Ot=ft.task,St="",ft.task&&(bt=this.renderer.checkbox(It),We?ft.tokens.length>0&&ft.tokens[0].type==="text"?(ft.tokens[0].text=bt+" "+ft.tokens[0].text,ft.tokens[0].tokens&&ft.tokens[0].tokens.length>0&&ft.tokens[0].tokens[0].type==="text"&&(ft.tokens[0].tokens[0].text=bt+" "+ft.tokens[0].tokens[0].text)):ft.tokens.unshift({type:"text",text:bt}):St+=bt),St+=this.parse(ft.tokens,We),Mt+=this.renderer.listitem(St,Ot,It);Ne+=this.renderer.list(Mt,Ct,Re);continue}case"html":{Ne+=this.renderer.html(Tt.text);continue}case"paragraph":{Ne+=this.renderer.paragraph(this.parseInline(Tt.tokens));continue}case"text":{for(Mt=Tt.tokens?this.parseInline(Tt.tokens):Tt.text;et+1<Ht&&Pe[et+1].type==="text";)Tt=Pe[++et],Mt+=`
`+(Tt.tokens?this.parseInline(Tt.tokens):Tt.text);Ne+=je?this.renderer.paragraph(Mt):Mt;continue}default:{var Gt='Token with "'+Tt.type+'" type was not found.';if(this.options.silent){console.error(Gt);return}else throw new Error(Gt)}}}return Ne},qe.parseInline=function(Pe,je){je=je||this.renderer;var Ne="",et,mt,At=Pe.length;for(et=0;et<At;et++){mt=Pe[et];switch(mt.type){case"escape":{Ne+=je.text(mt.text);break}case"html":{Ne+=je.html(mt.text);break}case"link":{Ne+=je.link(mt.href,mt.title,this.parseInline(mt.tokens,je));break}case"image":{Ne+=je.image(mt.href,mt.title,mt.text);break}case"strong":{Ne+=je.strong(this.parseInline(mt.tokens,je));break}case"em":{Ne+=je.em(this.parseInline(mt.tokens,je));break}case"codespan":{Ne+=je.codespan(mt.text);break}case"br":{Ne+=je.br();break}case"del":{Ne+=je.del(this.parseInline(mt.tokens,je));break}case"text":{Ne+=je.text(mt.text);break}default:{var Ut='Token with "'+mt.type+'" type was not found.';if(this.options.silent){console.error(Ut);return}else throw new Error(Ut)}}}return Ne},rt}(),Xe=J.merge,xt=J.checkSanitizeDeprecation,Ke=J.escape,ze=C.getDefaults,yt=C.changeDefaults,Et=C.defaults;function ct(rt,qe,$e){if(typeof rt=="undefined"||rt===null)throw new Error("marked(): input parameter is undefined or null");if(typeof rt!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(rt)+", string expected");if(typeof qe=="function"&&($e=qe,qe=null),qe=Xe({},ct.defaults,qe||{}),xt(qe),$e){var Pe=qe.highlight,je;try{je=Ie.lex(rt,qe)}catch(At){return $e(At)}var Ne=function(Ut){var Xt;if(!Ut)try{Xt=De.parse(je,qe)}catch(un){Ut=un}return qe.highlight=Pe,Ut?$e(Ut):$e(null,Xt)};if(!Pe||Pe.length<3)return Ne();if(delete qe.highlight,!je.length)return Ne();var et=0;ct.walkTokens(je,function(At){At.type==="code"&&(et++,setTimeout(function(){Pe(At.text,At.lang,function(Ut,Xt){if(Ut)return Ne(Ut);Xt!=null&&Xt!==At.text&&(At.text=Xt,At.escaped=!0),et--,et===0&&Ne()})},0))}),et===0&&Ne();return}try{var mt=Ie.lex(rt,qe);return qe.walkTokens&&ct.walkTokens(mt,qe.walkTokens),De.parse(mt,qe)}catch(At){if(At.message+=`
Please report this to https://github.com/markedjs/marked.`,qe.silent)return"<p>An error occurred:</p><pre>"+Ke(At.message+"",!0)+"</pre>";throw At}}ct.options=ct.setOptions=function(rt){return Xe(ct.defaults,rt),yt(ct.defaults),ct},ct.getDefaults=ze,ct.defaults=Et,ct.use=function(rt){var qe=Xe({},rt);if(rt.renderer&&function(){var Pe=ct.defaults.renderer||new F,je=function(mt){var At=Pe[mt];Pe[mt]=function(){for(var Ut=arguments.length,Xt=new Array(Ut),un=0;un<Ut;un++)Xt[un]=arguments[un];var jt=rt.renderer[mt].apply(Pe,Xt);return jt===!1&&(jt=At.apply(Pe,Xt)),jt}};for(var Ne in rt.renderer)je(Ne);qe.renderer=Pe}(),rt.tokenizer&&function(){var Pe=ct.defaults.tokenizer||new oe,je=function(mt){var At=Pe[mt];Pe[mt]=function(){for(var Ut=arguments.length,Xt=new Array(Ut),un=0;un<Ut;un++)Xt[un]=arguments[un];var jt=rt.tokenizer[mt].apply(Pe,Xt);return jt===!1&&(jt=At.apply(Pe,Xt)),jt}};for(var Ne in rt.tokenizer)je(Ne);qe.tokenizer=Pe}(),rt.walkTokens){var $e=ct.defaults.walkTokens;qe.walkTokens=function(Pe){rt.walkTokens(Pe),$e&&$e(Pe)}}ct.setOptions(qe)},ct.walkTokens=function(rt,qe){for(var $e=E(rt),Pe;!(Pe=$e()).done;){var je=Pe.value;qe(je);switch(je.type){case"table":{for(var Ne=E(je.tokens.header),et;!(et=Ne()).done;){var mt=et.value;ct.walkTokens(mt,qe)}for(var At=E(je.tokens.cells),Ut;!(Ut=At()).done;)for(var Xt=Ut.value,un=E(Xt),jt;!(jt=un()).done;){var Zt=jt.value;ct.walkTokens(Zt,qe)}break}case"list":{ct.walkTokens(je.items,qe);break}default:je.tokens&&ct.walkTokens(je.tokens,qe)}}},ct.Parser=De,ct.parser=De.parse,ct.Renderer=F,ct.TextRenderer=W,ct.Lexer=Ie,ct.lexer=Ie.lex,ct.Tokenizer=oe,ct.Slugger=de,ct.parse=ct;var lt=ct;return lt})},Dols:function(Ze,we,M){Ze.exports={tree:"tree___22OZV",learn:"learn___ky8Lf",name:"name___2Aqg-",sign:"sign___1WxvA"}},E7E6:function(Ze,we){Ze.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(Ze,we,M){(function(ue){ue(M("VrN/"))})(function(ue){var Y={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},P=ue.Pos;ue.defineOption("autoCloseBrackets",!1,function(o,f,d){d&&d!=ue.Init&&(o.removeKeyMap(E),o.state.closeBrackets=null),f&&(_(y(f,"pairs")),o.state.closeBrackets=f,o.addKeyMap(E))});function y(o,f){return f=="pairs"&&typeof o=="string"?o:typeof o=="object"&&o[f]!=null?o[f]:Y[f]}var E={Backspace:c,Enter:r};function _(o){for(var f=0;f<o.length;f++){var d=o.charAt(f),a="'"+d+"'";E[a]||(E[a]=C(d))}}_(Y.pairs+"`");function C(o){return function(f){return e(f,o)}}function m(o){var f=o.state.closeBrackets;if(!f||f.override)return f;var d=o.getModeAt(o.getCursor());return d.closeBrackets||f}function c(o){var f=m(o);if(!f||o.getOption("disableInput"))return ue.Pass;for(var d=y(f,"pairs"),a=o.listSelections(),h=0;h<a.length;h++){if(!a[h].empty())return ue.Pass;var g=s(o,a[h].head);if(!g||d.indexOf(g)%2!=0)return ue.Pass}for(var h=a.length-1;h>=0;h--){var p=a[h].head;o.replaceRange("",P(p.line,p.ch-1),P(p.line,p.ch+1),"+delete")}}function r(o){var f=m(o),d=f&&y(f,"explode");if(!d||o.getOption("disableInput"))return ue.Pass;for(var a=o.listSelections(),h=0;h<a.length;h++){if(!a[h].empty())return ue.Pass;var g=s(o,a[h].head);if(!g||d.indexOf(g)%2!=0)return ue.Pass}o.operation(function(){var p=o.lineSeparator()||`
`;o.replaceSelection(p+p,null),o.execCommand("goCharLeft"),a=o.listSelections();for(var S=0;S<a.length;S++){var w=a[S].head.line;o.indentLine(w,null,!0),o.indentLine(w+1,null,!0)}})}function n(o){var f=ue.cmpPos(o.anchor,o.head)>0;return{anchor:new P(o.anchor.line,o.anchor.ch+(f?-1:1)),head:new P(o.head.line,o.head.ch+(f?1:-1))}}function e(o,f){var d=m(o);if(!d||o.getOption("disableInput"))return ue.Pass;var a=y(d,"pairs"),h=a.indexOf(f);if(h==-1)return ue.Pass;for(var g=y(d,"closeBefore"),p=y(d,"triples"),S=a.charAt(h+1)==f,w=o.listSelections(),B=h%2==0,b,A=0;A<w.length;A++){var l=w[A],i=l.head,x,O=o.getRange(i,P(i.line,i.ch+1));if(B&&!l.empty())x="surround";else if((S||!B)&&O==f)S&&u(o,i)?x="both":p.indexOf(f)>=0&&o.getRange(i,P(i.line,i.ch+3))==f+f+f?x="skipThree":x="skip";else if(S&&i.ch>1&&p.indexOf(f)>=0&&o.getRange(P(i.line,i.ch-2),i)==f+f){if(i.ch>2&&/\bstring/.test(o.getTokenTypeAt(P(i.line,i.ch-2))))return ue.Pass;x="addFour"}else if(S){var T=i.ch==0?" ":o.getRange(P(i.line,i.ch-1),i);if(!ue.isWordChar(O)&&T!=f&&!ue.isWordChar(T))x="both";else return ue.Pass}else if(B&&(O.length===0||/\s/.test(O)||g.indexOf(O)>-1))x="both";else return ue.Pass;if(!b)b=x;else if(b!=x)return ue.Pass}var D=h%2?a.charAt(h-1):f,R=h%2?f:a.charAt(h+1);o.operation(function(){if(b=="skip")o.execCommand("goCharRight");else if(b=="skipThree")for(var k=0;k<3;k++)o.execCommand("goCharRight");else if(b=="surround"){for(var H=o.getSelections(),k=0;k<H.length;k++)H[k]=D+H[k]+R;o.replaceSelections(H,"around"),H=o.listSelections().slice();for(var k=0;k<H.length;k++)H[k]=n(H[k]);o.setSelections(H)}else b=="both"?(o.replaceSelection(D+R,null),o.triggerElectric(D+R),o.execCommand("goCharLeft")):b=="addFour"&&(o.replaceSelection(D+D+D+D,"before"),o.execCommand("goCharRight"))})}function s(o,f){var d=o.getRange(P(f.line,f.ch-1),P(f.line,f.ch+1));return d.length==2?d:null}function u(o,f){var d=o.getTokenAt(P(f.line,f.ch+1));return/\bstring/.test(d.type)&&d.start==f.ch&&(f.ch==0||!/\bstring/.test(o.getTokenTypeAt(f)))}})},FOrL:function(Ze,we,M){Ze.exports=M.p+"static/nodata.a6b3f948.png"},FPkq:function(Ze,we,M){Ze.exports=M.p+"static/qrCode.dd0fe9b2.png"},Fofx:function(Ze,we){var M=typeof Float32Array=="undefined"?Array:Float32Array;function ue(){var r=new M(6);return Y(r),r}function Y(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function P(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 y(r,n,e){var s=n[0]*e[0]+n[2]*e[1],u=n[1]*e[0]+n[3]*e[1],o=n[0]*e[2]+n[2]*e[3],f=n[1]*e[2]+n[3]*e[3],d=n[0]*e[4]+n[2]*e[5]+n[4],a=n[1]*e[4]+n[3]*e[5]+n[5];return r[0]=s,r[1]=u,r[2]=o,r[3]=f,r[4]=d,r[5]=a,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 _(r,n,e){var s=n[0],u=n[2],o=n[4],f=n[1],d=n[3],a=n[5],h=Math.sin(e),g=Math.cos(e);return r[0]=s*g+f*h,r[1]=-s*h+f*g,r[2]=u*g+d*h,r[3]=-u*h+g*d,r[4]=g*o+h*a,r[5]=g*a-h*o,r}function C(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 m(r,n){var e=n[0],s=n[2],u=n[4],o=n[1],f=n[3],d=n[5],a=e*f-o*s;return a?(a=1/a,r[0]=f*a,r[1]=-o*a,r[2]=-s*a,r[3]=e*a,r[4]=(s*d-f*u)*a,r[5]=(o*u-e*d)*a,r):null}function c(r){var n=ue();return P(n,r),n}we.create=ue,we.identity=Y,we.copy=P,we.mul=y,we.translate=E,we.rotate=_,we.scale=C,we.invert=m,we.clone=c},FxDU:function(Ze,we,M){"use strict";Object.defineProperty(we,"__esModule",{value:!0}),we.createSensor=void 0;var ue=M("QO+J"),Y=M("j5sG"),P=typeof ResizeObserver!="undefined"?Y.createSensor:ue.createSensor;we.createSensor=P},GABl:function(Ze,we){Ze.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(Ze,we,M){var ue=M("bYtY"),Y=M("K2GJ"),P=M("1bdT"),y=M("ni6a");function E(C){C=C||{},P.call(this,C);for(var m in C)C.hasOwnProperty(m)&&m!=="style"&&(this[m]=C[m]);this.style=new Y(C.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(C){},afterBrush:function(C){},brush:function(C,m){},getBoundingRect:function(){},contain:function(C,m){return this.rectContain(C,m)},traverse:function(C,m){C.call(m,this)},rectContain:function(C,m){var c=this.transformCoordToLocal(C,m),r=this.getBoundingRect();return r.contain(c[0],c[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(C){return this.animate("style",C)},attrKV:function(C,m){C!=="style"?P.prototype.attrKV.call(this,C,m):this.style.set(m)},setStyle:function(C,m){return this.style.set(C,m),this.dirty(!1),this},useStyle:function(C){return this.style=new Y(C,this),this.dirty(!1),this},calculateTextPosition:null},ue.inherits(E,P),ue.mixin(E,y);var _=E;Ze.exports=_},GfqC:function(Ze,we,M){"use strict";var ue=M("q1tI"),Y=M.n(ue),P=M("TSYQ"),y=M.n(P);function E(J,U){var K="cannot "+J.method+" "+J.action+" "+U.status+"'",G=new Error(K);return G.status=U.status,G.method=J.method,G.url=J.action,G}function _(J){var U=J.responseText||J.response;if(!U)return U;try{return JSON.parse(U)}catch(K){return U}}function C(J){var U=new XMLHttpRequest;J.onProgress&&U.upload&&(U.upload.onprogress=function(Q){Q.total>0&&(Q.percent=Q.loaded/Q.total*100),J.onProgress(Q)});var K=new FormData;J.data&&Object.keys(J.data).forEach(function(N){var Q=J.data[N];if(Array.isArray(Q)){Q.forEach(function(X){K.append(N+"[]",X)});return}K.append(N,J.data[N])}),J.file instanceof Blob?K.append(J.filename,J.file,J.file.name):K.append(J.filename,J.file),U.onerror=function(Q){J.onError(Q)},U.onload=function(){return U.status<200||U.status>=300?J.onError(E(J,U),_(U)):J.onSuccess(_(U),U)},U.open(J.method,J.action,!0),J.withCredentials&&"withCredentials"in U&&(U.withCredentials=!0);var G=J.headers||{};return G["X-Requested-With"]!==null&&U.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(G).forEach(function(N){G[N]!==null&&U.setRequestHeader(N,G[N])}),U.send(K),{abort:function(){U.abort()}}}var m=+new Date,c=0;function r(){return"rc-upload-"+m+"-"+ ++c}function n(J,U){return J.indexOf(U,J.length-U.length)!==-1}var e=function(J,U){if(J&&U){var K=Array.isArray(U)?U:U.split(","),G=J.name||"",N=J.type||"",Q=N.replace(/\/.*$/,"");return K.some(function(X){var te=X.trim();return te.charAt(0)==="."?n(G.toLowerCase(),te.toLowerCase()):/\/\*$/.test(te)?Q===te.replace(/\/.*$/,""):N===te})}return!0};function s(J,U){var K=J.createReader(),G=[];function N(){K.readEntries(function(Q){var X=Array.prototype.slice.apply(Q);G=G.concat(X);var te=!X.length;te?U(G):N()})}N()}var u=function(U,K,G){var N=function Q(X,te){te=te||"",X.isFile?X.file(function(oe){G(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(me){Q(me,""+te+X.name+"/")})})};U.forEach(function(Q){N(Q.webkitGetAsEntry())})},o=u,f=Object.assign||function(J){for(var U=1;U<arguments.length;U++){var K=arguments[U];for(var G in K)Object.prototype.hasOwnProperty.call(K,G)&&(J[G]=K[G])}return J},d=function(){function J(U,K){var G=[],N=!0,Q=!1,X=void 0;try{for(var te=U[Symbol.iterator](),oe;!(N=(oe=te.next()).done)&&!(G.push(oe.value),K&&G.length===K);N=!0);}catch(me){Q=!0,X=me}finally{try{!N&&te.return&&te.return()}finally{if(Q)throw X}}return G}return function(U,K){if(Array.isArray(U))return U;if(Symbol.iterator in Object(U))return J(U,K);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function J(U,K){for(var G=0;G<K.length;G++){var N=K[G];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(U,N.key,N)}}return function(U,K,G){return K&&J(U.prototype,K),G&&J(U,G),U}}();function h(J,U,K){return U in J?Object.defineProperty(J,U,{value:K,enumerable:!0,configurable:!0,writable:!0}):J[U]=K,J}function g(J,U){var K={};for(var G in J){if(U.indexOf(G)>=0)continue;if(!Object.prototype.hasOwnProperty.call(J,G))continue;K[G]=J[G]}return K}function p(J,U){if(!(J instanceof U))throw new TypeError("Cannot call a class as a function")}function S(J,U){if(!J)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U&&(typeof U=="object"||typeof U=="function")?U:J}function w(J,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof U);J.prototype=Object.create(U&&U.prototype,{constructor:{value:J,enumerable:!1,writable:!0,configurable:!0}}),U&&(Object.setPrototypeOf?Object.setPrototypeOf(J,U):J.__proto__=U)}var B=function(U){return Object.keys(U).reduce(function(K,G){return(G.substr(0,5)==="data-"||G.substr(0,5)==="aria-"||G==="role")&&(K[G]=U[G]),K},{})},b=function(J){w(U,J);function U(){var K,G,N,Q;p(this,U);for(var X=arguments.length,te=Array(X),oe=0;oe<X;oe++)te[oe]=arguments[oe];return Q=(G=(N=S(this,(K=U.__proto__||Object.getPrototypeOf(U)).call.apply(K,[this].concat(te))),N),N.state={uid:r()},N.reqs={},N.onChange=function(me){var se=me.target.files;N.uploadFiles(se),N.reset()},N.onClick=function(me){var se=N.fileInput;if(!se)return;var _e=N.props,Ae=_e.children,Ee=_e.onClick;Ae&&Ae.type==="button"&&(se.parentNode.focus(),se.parentNode.querySelector("button").blur()),se.click(),Ee&&Ee(me)},N.onKeyDown=function(me){me.key==="Enter"&&N.onClick()},N.onFileDrop=function(me){var se=N.props.multiple;if(me.preventDefault(),me.type==="dragover")return;if(N.props.directory)o(Array.prototype.slice.call(me.dataTransfer.items),N.uploadFiles,function(Ae){return e(Ae,N.props.accept)});else{var _e=Array.prototype.slice.call(me.dataTransfer.files).filter(function(Ae){return e(Ae,N.props.accept)});se===!1&&(_e=_e.slice(0,1)),N.uploadFiles(_e)}},N.uploadFiles=function(me){var se=Array.prototype.slice.call(me);se.map(function(_e){return _e.uid=r(),_e}).forEach(function(_e){N.upload(_e,se)})},N.saveFileInput=function(me){N.fileInput=me},G),S(N,Q)}return a(U,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(G,N){var Q=this,X=this.props;if(!X.beforeUpload)return setTimeout(function(){return Q.post(G)},0);var te=X.beforeUpload(G,N);te&&te.then?te.then(function(oe){var me=Object.prototype.toString.call(oe);return me==="[object File]"||me==="[object Blob]"?Q.post(oe):Q.post(G)}).catch(function(oe){console.log(oe)}):te!==!1&&setTimeout(function(){return Q.post(G)},0);return}},{key:"post",value:function(G){var N=this;if(!this._isMounted)return;var Q=this.props,X=Q.onStart,te=Q.onProgress,oe=Q.transformFile,me=oe===void 0?function(se){return se}:oe;new Promise(function(se){var _e=Q.action;return typeof _e=="function"&&(_e=_e(G)),se(_e)}).then(function(se){var _e=G.uid,Ae=Q.customRequest||C,Ee=Promise.resolve(me(G)).then(function(pe){var he=Q.data;return typeof he=="function"&&(he=he(pe)),Promise.all([pe,he])}).catch(function(pe){console.error(pe)});Ee.then(function(pe){var he=d(pe,2),ie=he[0],fe=he[1],ge={action:se,filename:Q.name,data:fe,file:ie,headers:Q.headers,withCredentials:Q.withCredentials,method:Q.method||"post",onProgress:te?function(ce){te(ce,G)}:null,onSuccess:function(Ie,Fe){delete N.reqs[_e],Q.onSuccess(Ie,G,Fe)},onError:function(Ie,Fe){delete N.reqs[_e],Q.onError(Ie,Fe,G)}};X(G),N.reqs[_e]=Ae(ge)})})}},{key:"reset",value:function(){this.setState({uid:r()})}},{key:"abort",value:function(G){var N=this.reqs;if(G){var Q=G;G&&G.uid&&(Q=G.uid),N[Q]&&N[Q].abort&&N[Q].abort(),delete N[Q]}else Object.keys(N).forEach(function(X){N[X]&&N[X].abort&&N[X].abort(),delete N[X]})}},{key:"render",value:function(){var G,N=this.props,Q=N.component,X=N.prefixCls,te=N.className,oe=N.disabled,me=N.id,se=N.style,_e=N.multiple,Ae=N.accept,Ee=N.children,pe=N.directory,he=N.openFileDialogOnClick,ie=N.onMouseEnter,fe=N.onMouseLeave,ge=g(N,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),ce=y()((G={},h(G,X,!0),h(G,X+"-disabled",oe),h(G,te,te),G)),Ie=oe?{}:{onClick:he?this.onClick:function(){},onKeyDown:he?this.onKeyDown:function(){},onMouseEnter:ie,onMouseLeave:fe,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return Y.a.createElement(Q,f({},Ie,{className:ce,role:"button",style:se}),Y.a.createElement("input",f({},B(ge),{id:me,type:"file",ref:this.saveFileInput,onClick:function(ke){return ke.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Ae,directory:pe?"directory":null,webkitdirectory:pe?"webkitdirectory":null,multiple:_e,onChange:this.onChange})),Ee)}}]),U}(ue.Component),A=b,l=Object.assign||function(J){for(var U=1;U<arguments.length;U++){var K=arguments[U];for(var G in K)Object.prototype.hasOwnProperty.call(K,G)&&(J[G]=K[G])}return J},i=function(){function J(U,K){for(var G=0;G<K.length;G++){var N=K[G];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(U,N.key,N)}}return function(U,K,G){return K&&J(U.prototype,K),G&&J(U,G),U}}();function x(J,U){if(!(J instanceof U))throw new TypeError("Cannot call a class as a function")}function O(J,U){if(!J)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U&&(typeof U=="object"||typeof U=="function")?U:J}function T(J,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof U);J.prototype=Object.create(U&&U.prototype,{constructor:{value:J,enumerable:!1,writable:!0,configurable:!0}}),U&&(Object.setPrototypeOf?Object.setPrototypeOf(J,U):J.__proto__=U)}function D(){}var R=function(J){T(U,J);function U(){var K,G,N,Q;x(this,U);for(var X=arguments.length,te=Array(X),oe=0;oe<X;oe++)te[oe]=arguments[oe];return Q=(G=(N=O(this,(K=U.__proto__||Object.getPrototypeOf(U)).call.apply(K,[this].concat(te))),N),N.saveUploader=function(me){N.uploader=me},G),O(N,Q)}return i(U,[{key:"abort",value:function(G){this.uploader.abort(G)}},{key:"render",value:function(){return Y.a.createElement(A,l({},this.props,{ref:this.saveUploader}))}}]),U}(ue.Component);R.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:D,onError:D,onSuccess:D,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var k=R,H=we.a=k},Gytx:function(Ze,we){Ze.exports=function(ue,Y,P,y){var E=P?P.call(y,ue,Y):void 0;if(E!==void 0)return!!E;if(ue===Y)return!0;if(typeof ue!="object"||!ue||typeof Y!="object"||!Y)return!1;var _=Object.keys(ue),C=Object.keys(Y);if(_.length!==C.length)return!1;for(var m=Object.prototype.hasOwnProperty.bind(Y),c=0;c<_.length;c++){var r=_[c];if(!m(r))return!1;var n=ue[r],e=Y[r];if(E=P?P.call(y,n,e,r):void 0,E===!1||E===void 0&&n!==e)return!1}return!0}},H6uX:function(Ze,we){var M=Array.prototype.slice,ue=function(E){this._$handlers={},this._$eventProcessor=E};ue.prototype={constructor:ue,one:function(E,_,C,m){return P(this,E,_,C,m,!0)},on:function(E,_,C,m){return P(this,E,_,C,m,!1)},isSilent:function(E){var _=this._$handlers;return!_[E]||!_[E].length},off:function(E,_){var C=this._$handlers;if(!E)return this._$handlers={},this;if(_){if(C[E]){for(var m=[],c=0,r=C[E].length;c<r;c++)C[E][c].h!==_&&m.push(C[E][c]);C[E]=m}C[E]&&C[E].length===0&&delete C[E]}else delete C[E];return this},trigger:function(E){var _=this._$handlers[E],C=this._$eventProcessor;if(_){var m=arguments,c=m.length;c>3&&(m=M.call(m,1));for(var r=_.length,n=0;n<r;){var e=_[n];if(C&&C.filter&&e.query!=null&&!C.filter(E,e.query)){n++;continue}switch(c){case 1:e.h.call(e.ctx);break;case 2:e.h.call(e.ctx,m[1]);break;case 3:e.h.call(e.ctx,m[1],m[2]);break;default:e.h.apply(e.ctx,m);break}e.one?(_.splice(n,1),r--):n++}}return C&&C.afterTrigger&&C.afterTrigger(E),this},triggerWithContext:function(E){var _=this._$handlers[E],C=this._$eventProcessor;if(_){var m=arguments,c=m.length;c>4&&(m=M.call(m,1,m.length-1));for(var r=m[m.length-1],n=_.length,e=0;e<n;){var s=_[e];if(C&&C.filter&&s.query!=null&&!C.filter(E,s.query)){e++;continue}switch(c){case 1:s.h.call(r);break;case 2:s.h.call(r,m[1]);break;case 3:s.h.call(r,m[1],m[2]);break;default:s.h.apply(r,m);break}s.one?(_.splice(e,1),n--):e++}}return C&&C.afterTrigger&&C.afterTrigger(E),this}};function Y(E,_){var C=E._$eventProcessor;return _!=null&&C&&C.normalizeQuery&&(_=C.normalizeQuery(_)),_}function P(E,_,C,m,c,r){var n=E._$handlers;if(typeof C=="function"&&(c=m,m=C,C=null),!m||!_)return E;C=Y(E,C),n[_]||(n[_]=[]);for(var e=0;e<n[_].length;e++)if(n[_][e].h===m)return E;var s={h:m,one:r,query:C,ctx:c||E,callAtLast:m.zrEventfulCallAtLast},u=n[_].length-1,o=n[_][u];return o&&o.callAtLast?n[_].splice(u,0,s):n[_].push(s),E}var y=ue;Ze.exports=y},HmJG:function(Ze,we,M){},HpTS:function(Ze,we,M){Ze.exports=M.p+"static/small_program.f74069ec.png"},I8Z2:function(Ze,we,M){"use strict";M.d(we,"a",function(){return y}),M.d(we,"b",function(){return s}),M.d(we,"c",function(){return o});var ue=M("q1tI"),Y=function(){var f=function(d,a){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var p in g)g.hasOwnProperty(p)&&(h[p]=g[p])},f(d,a)};return function(d,a){f(d,a);function h(){this.constructor=d}d.prototype=a===null?Object.create(a):(h.prototype=a.prototype,new h)}}(),P=ue.createContext(null),y=function(f){Y(d,f);function d(){return f!==null&&f.apply(this,arguments)||this}return d.prototype.render=function(){return ue.createElement(P.Provider,{value:this.props.store},this.props.children)},d}(ue.Component),E=M("Gytx"),_=M.n(E),C=M("2mql"),m=M.n(C),c=function(){var f=function(d,a){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var p in g)g.hasOwnProperty(p)&&(h[p]=g[p])},f(d,a)};return function(d,a){f(d,a);function h(){this.constructor=d}d.prototype=a===null?Object.create(a):(h.prototype=a.prototype,new h)}}(),r=function(){return r=Object.assign||function(f){for(var d,a=1,h=arguments.length;a<h;a++){d=arguments[a];for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(f[g]=d[g])}return f},r.apply(this,arguments)};function n(f){return f.displayName||f.name||"Component"}var e=function(){return{}};function s(f,d){d===void 0&&(d={});var a=!!f,h=f||e;return function(p){var S=function(B){c(b,B);function b(A,l){var i=B.call(this,A,l)||this;return i.unsubscribe=null,i.handleChange=function(){if(!i.unsubscribe)return;var x=h(i.store.getState(),i.props);i.setState({subscribed:x})},i.store=i.context,i.state={subscribed:h(i.store.getState(),A),store:i.store,props:A},i}return b.getDerivedStateFromProps=function(A,l){return f&&f.length===2&&A!==l.props?{subscribed:h(l.store.getState(),A),props:A}:{props:A}},b.prototype.componentDidMount=function(){this.trySubscribe()},b.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},b.prototype.shouldComponentUpdate=function(A,l){return!_()(this.props,A)||!_()(this.state.subscribed,l.subscribed)},b.prototype.trySubscribe=function(){a&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},b.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},b.prototype.render=function(){var A=r(r(r({},this.props),this.state.subscribed),{store:this.store});return ue.createElement(p,r({},A,{ref:this.props.miniStoreForwardedRef}))},b.displayName="Connect("+n(p)+")",b.contextType=P,b}(ue.Component);if(d.forwardRef){var w=ue.forwardRef(function(B,b){return ue.createElement(S,r({},B,{miniStoreForwardedRef:b}))});return m()(w,p)}return m()(S,p)}}var u=function(){return u=Object.assign||function(f){for(var d,a=1,h=arguments.length;a<h;a++){d=arguments[a];for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(f[g]=d[g])}return f},u.apply(this,arguments)};function o(f){var d=f,a=[];function h(S){d=u(u({},d),S);for(var w=0;w<a.length;w++)a[w]()}function g(){return d}function p(S){return a.push(S),function(){var B=a.indexOf(S);a.splice(B,1)}}return{setState:h,getState:g,subscribe:p}}},IBYe:function(Ze,we,M){"use strict";function ue(Y){return null}we.a=ue},IMiH:function(Ze,we,M){var ue=M("Sj9i"),Y=M("QBsz"),P=M("4mN7"),y=M("mFDi"),E=M("LPTA"),_=E.devicePixelRatio,C={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},m=[],c=[],r=[],n=[],e=Math.min,s=Math.max,u=Math.cos,o=Math.sin,f=Math.sqrt,d=Math.abs,a=typeof Float32Array!="undefined",h=function(p){this._saveData=!(p||!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(p,S,w){w=w||0,this._ux=d(w/_/p)||0,this._uy=d(w/_/S)||0},getContext:function(){return this._ctx},beginPath:function(p){return this._ctx=p,p&&p.beginPath(),p&&(this.dpr=p.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(p,S){return this.addData(C.M,p,S),this._ctx&&this._ctx.moveTo(p,S),this._x0=p,this._y0=S,this._xi=p,this._yi=S,this},lineTo:function(p,S){var w=d(p-this._xi)>this._ux||d(S-this._yi)>this._uy||this._len<5;return this.addData(C.L,p,S),this._ctx&&w&&(this._needsDash()?this._dashedLineTo(p,S):this._ctx.lineTo(p,S)),w&&(this._xi=p,this._yi=S),this},bezierCurveTo:function(p,S,w,B,b,A){return this.addData(C.C,p,S,w,B,b,A),this._ctx&&(this._needsDash()?this._dashedBezierTo(p,S,w,B,b,A):this._ctx.bezierCurveTo(p,S,w,B,b,A)),this._xi=b,this._yi=A,this},quadraticCurveTo:function(p,S,w,B){return this.addData(C.Q,p,S,w,B),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(p,S,w,B):this._ctx.quadraticCurveTo(p,S,w,B)),this._xi=w,this._yi=B,this},arc:function(p,S,w,B,b,A){return this.addData(C.A,p,S,w,w,B,b-B,0,A?0:1),this._ctx&&this._ctx.arc(p,S,w,B,b,A),this._xi=u(b)*w+p,this._yi=o(b)*w+S,this},arcTo:function(p,S,w,B,b){return this._ctx&&this._ctx.arcTo(p,S,w,B,b),this},rect:function(p,S,w,B){return this._ctx&&this._ctx.rect(p,S,w,B),this.addData(C.R,p,S,w,B),this},closePath:function(){this.addData(C.Z);var p=this._ctx,S=this._x0,w=this._y0;return p&&(this._needsDash()&&this._dashedLineTo(S,w),p.closePath()),this._xi=S,this._yi=w,this},fill:function(p){p&&p.fill(),this.toStatic()},stroke:function(p){p&&p.stroke(),this.toStatic()},setLineDash:function(p){if(p instanceof Array){this._lineDash=p,this._dashIdx=0;for(var S=0,w=0;w<p.length;w++)S+=p[w];this._dashSum=S}return this},setLineDashOffset:function(p){return this._dashOffset=p,this},len:function(){return this._len},setData:function(p){var S=p.length;!(this.data&&this.data.length===S)&&a&&(this.data=new Float32Array(S));for(var w=0;w<S;w++)this.data[w]=p[w];this._len=S},appendPath:function(p){p instanceof Array||(p=[p]);for(var S=p.length,w=0,B=this._len,b=0;b<S;b++)w+=p[b].len();a&&this.data instanceof Float32Array&&(this.data=new Float32Array(B+w));for(var b=0;b<S;b++)for(var A=p[b].data,l=0;l<A.length;l++)this.data[B++]=A[l];this._len=B},addData:function(p){if(!this._saveData)return;var S=this.data;this._len+arguments.length>S.length&&(this._expandData(),S=this.data);for(var w=0;w<arguments.length;w++)S[this._len++]=arguments[w];this._prevCmd=p},_expandData:function(){if(!(this.data instanceof Array)){for(var p=[],S=0;S<this._len;S++)p[S]=this.data[S];this.data=p}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(p,S){var w=this._dashSum,B=this._dashOffset,b=this._lineDash,A=this._ctx,l=this._xi,i=this._yi,x=p-l,O=S-i,T=f(x*x+O*O),D=l,R=i,k,H=b.length,J;for(x/=T,O/=T,B<0&&(B=w+B),B%=w,D-=B*x,R-=B*O;x>0&&D<=p||x<0&&D>=p||x===0&&(O>0&&R<=S||O<0&&R>=S);){if(J=this._dashIdx,k=b[J],D+=x*k,R+=O*k,this._dashIdx=(J+1)%H,x>0&&D<l||x<0&&D>l||O>0&&R<i||O<0&&R>i)continue;A[J%2?"moveTo":"lineTo"](x>=0?e(D,p):s(D,p),O>=0?e(R,S):s(R,S))}x=D-p,O=R-S,this._dashOffset=-f(x*x+O*O)},_dashedBezierTo:function(p,S,w,B,b,A){var l=this._dashSum,i=this._dashOffset,x=this._lineDash,O=this._ctx,T=this._xi,D=this._yi,R,k,H,J=ue.cubicAt,U=0,K=this._dashIdx,G=x.length,N,Q,X=0;for(i<0&&(i=l+i),i%=l,R=0;R<1;R+=.1)k=J(T,p,w,b,R+.1)-J(T,p,w,b,R),H=J(D,S,B,A,R+.1)-J(D,S,B,A,R),U+=f(k*k+H*H);for(;K<G&&!(X+=x[K],X>i);K++);for(R=(X-i)/U;R<=1;)N=J(T,p,w,b,R),Q=J(D,S,B,A,R),K%2?O.moveTo(N,Q):O.lineTo(N,Q),R+=x[K]/U,K=(K+1)%G;K%2!==0&&O.lineTo(b,A),k=b-N,H=A-Q,this._dashOffset=-f(k*k+H*H)},_dashedQuadraticTo:function(p,S,w,B){var b=w,A=B;w=(w+2*p)/3,B=(B+2*S)/3,p=(this._xi+2*p)/3,S=(this._yi+2*S)/3,this._dashedBezierTo(p,S,w,B,b,A)},toStatic:function(){var p=this.data;p instanceof Array&&(p.length=this._len,a&&(this.data=new Float32Array(p)))},getBoundingRect:function(){m[0]=m[1]=r[0]=r[1]=Number.MAX_VALUE,c[0]=c[1]=n[0]=n[1]=-Number.MAX_VALUE;for(var p=this.data,S=0,w=0,B=0,b=0,A=0;A<p.length;){var l=p[A++];A===1&&(S=p[A],w=p[A+1],B=S,b=w);switch(l){case C.M:B=p[A++],b=p[A++],S=B,w=b,r[0]=B,r[1]=b,n[0]=B,n[1]=b;break;case C.L:P.fromLine(S,w,p[A],p[A+1],r,n),S=p[A++],w=p[A++];break;case C.C:P.fromCubic(S,w,p[A++],p[A++],p[A++],p[A++],p[A],p[A+1],r,n),S=p[A++],w=p[A++];break;case C.Q:P.fromQuadratic(S,w,p[A++],p[A++],p[A],p[A+1],r,n),S=p[A++],w=p[A++];break;case C.A:var i=p[A++],x=p[A++],O=p[A++],T=p[A++],D=p[A++],R=p[A++]+D;A+=1;var k=1-p[A++];A===1&&(B=u(D)*O+i,b=o(D)*T+x),P.fromArc(i,x,O,T,D,R,k,r,n),S=u(R)*O+i,w=o(R)*T+x;break;case C.R:B=S=p[A++],b=w=p[A++];var H=p[A++],J=p[A++];P.fromLine(B,b,B+H,b+J,r,n);break;case C.Z:S=B,w=b;break}Y.min(m,m,r),Y.max(c,c,n)}return A===0&&(m[0]=m[1]=c[0]=c[1]=0),new y(m[0],m[1],c[0]-m[0],c[1]-m[1])},rebuildPath:function(p){for(var S=this.data,w,B,b,A,l,i,x=this._ux,O=this._uy,T=this._len,D=0;D<T;){var R=S[D++];D===1&&(b=S[D],A=S[D+1],w=b,B=A);switch(R){case C.M:w=b=S[D++],B=A=S[D++],p.moveTo(b,A);break;case C.L:l=S[D++],i=S[D++],(d(l-b)>x||d(i-A)>O||D===T-1)&&(p.lineTo(l,i),b=l,A=i);break;case C.C:p.bezierCurveTo(S[D++],S[D++],S[D++],S[D++],S[D++],S[D++]),b=S[D-2],A=S[D-1];break;case C.Q:p.quadraticCurveTo(S[D++],S[D++],S[D++],S[D++]),b=S[D-2],A=S[D-1];break;case C.A:var k=S[D++],H=S[D++],J=S[D++],U=S[D++],K=S[D++],G=S[D++],N=S[D++],Q=S[D++],X=J>U?J:U,te=J>U?1:J/U,oe=J>U?U/J:1,me=Math.abs(J-U)>.001,se=K+G;me?(p.translate(k,H),p.rotate(N),p.scale(te,oe),p.arc(0,0,X,K,se,1-Q),p.scale(1/te,1/oe),p.rotate(-N),p.translate(-k,-H)):p.arc(k,H,X,K,se,1-Q),D===1&&(w=u(K)*J+k,B=o(K)*U+H),b=u(se)*J+k,A=o(se)*U+H;break;case C.R:w=b=S[D],B=A=S[D+1],p.rect(S[D++],S[D++],S[D++],S[D++]);break;case C.Z:p.closePath(),b=w,A=B}}}},h.CMD=C;var g=h;Ze.exports=g},ItGF:function(Ze,we){var M={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?M={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?M={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?M={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:M=Y(navigator.userAgent);var ue=M;function Y(P){var y={},E={},_=P.match(/Firefox\/([\d.]+)/),C=P.match(/MSIE\s([\d.]+)/)||P.match(/Trident\/.+?rv:(([\d.]+))/),m=P.match(/Edge\/([\d.]+)/),c=/micromessenger/i.test(P);return _&&(E.firefox=!0,E.version=_[1]),C&&(E.ie=!0,E.version=C[1]),m&&(E.edge=!0,E.version=m[1]),c&&(E.weChat=!0),{browser:E,os:y,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"}}Ze.exports=ue},IxHN:function(Ze,we,M){"use strict";var ue=M("q1tI"),Y=M.n(ue),P=M("07cG"),y=M.n(P);we.a=function(E){var _=E.message,C=E.className,m=E.children,c=E.style,r=c===void 0?{}:c;return Y.a.createElement("div",{className:"".concat(y.a.idsRingWrapper," ").concat(C)},Y.a.createElement("div",{className:y.a.ldsRing},Y.a.createElement("div",null),Y.a.createElement("div",null),Y.a.createElement("div",null),Y.a.createElement("div",null)),_?Y.a.createElement("p",{style:r},_):null,m)}},JTSX:function(Ze,we,M){Ze.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(Ze,we,M){Ze.exports=M.p+"static/charpter-white.5fa14f93.svg"},JeFH:function(Ze,we){Ze.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(Ze,we,M){Ze.exports=M.p+"static/qrcode.54870d9b.png"},K2GJ:function(Ze,we,M){var ue=M("fW2E"),Y=M("gut8"),P=Y.ContextCachedBy,y=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],E=function(e){this.extendFrom(e,!1)};function _(e,s,u){var o=s.x==null?0:s.x,f=s.x2==null?1:s.x2,d=s.y==null?0:s.y,a=s.y2==null?0:s.y2;s.global||(o=o*u.width+u.x,f=f*u.width+u.x,d=d*u.height+u.y,a=a*u.height+u.y),o=isNaN(o)?0:o,f=isNaN(f)?1:f,d=isNaN(d)?0:d,a=isNaN(a)?0:a;var h=e.createLinearGradient(o,d,f,a);return h}function C(e,s,u){var o=u.width,f=u.height,d=Math.min(o,f),a=s.x==null?.5:s.x,h=s.y==null?.5:s.y,g=s.r==null?.5:s.r;s.global||(a=a*o+u.x,h=h*f+u.y,g=g*d);var p=e.createRadialGradient(a,h,0,a,h,g);return p}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 o=this,f=u&&u.style,d=!f||e.__attrCachedBy!==P.STYLE_BIND;e.__attrCachedBy=P.STYLE_BIND;for(var a=0;a<y.length;a++){var h=y[a],g=h[0];(d||o[g]!==f[g])&&(e[g]=ue(e,g,o[g]||h[1]))}if((d||o.fill!==f.fill)&&(e.fillStyle=o.fill),(d||o.stroke!==f.stroke)&&(e.strokeStyle=o.stroke),(d||o.opacity!==f.opacity)&&(e.globalAlpha=o.opacity==null?1:o.opacity),(d||o.blend!==f.blend)&&(e.globalCompositeOperation=o.blend||"source-over"),this.hasStroke()){var p=o.lineWidth;e.lineWidth=p/(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 o=s.type==="radial"?C:_,f=o(e,s,u),d=s.colorStops,a=0;a<d.length;a++)f.addColorStop(d[a].offset,d[a].color);return f}};for(var m=E.prototype,c=0;c<y.length;c++){var r=y[c];r[0]in m||(m[r[0]]=r[1])}E.getGradient=m.getGradient;var n=E;Ze.exports=n},LPTA:function(Ze,we){var M=1;typeof window!="undefined"&&(M=Math.max(window.devicePixelRatio||1,1));var ue=0,Y=M;we.debugMode=ue,we.devicePixelRatio=Y},LSTS:function(Ze,we,M){"use strict";Object.defineProperty(we,"__esModule",{value:!0});var ue=function(){function e(s,u){for(var o=0;o<u.length;o++){var f=u[o];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(s,f.key,f)}}return function(s,u,o){return u&&e(s.prototype,u),o&&e(s,o),s}}(),Y=M("q1tI"),P=_(Y),y=M("17x9"),E=_(y);function _(e){return e&&e.__esModule?e:{default:e}}function C(e,s){var u={};for(var o in e){if(s.indexOf(o)>=0)continue;if(!Object.prototype.hasOwnProperty.call(e,o))continue;u[o]=e[o]}return u}function m(e,s){if(!(e instanceof s))throw new TypeError("Cannot call a class as a function")}function c(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){m(this,s);var o=c(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,u));return o.scrollListener=o.scrollListener.bind(o),o.eventListenerOptions=o.eventListenerOptions.bind(o),o.mousewheelListener=o.mousewheelListener.bind(o),o}return ue(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 o=this.getParentElement(this.scrollComponent);o.scrollTop=o.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var o=!1,f={get passive(){o=!0}};try{document.addEventListener("test",null,f),document.removeEventListener("test",null,f)}catch(d){}return o}},{key:"eventListenerOptions",value:function(){var o=this.props.useCapture;return this.isPassiveSupported()&&(o={useCapture:this.props.useCapture,passive:!0}),o}},{key:"setDefaultLoader",value:function(o){this.defaultLoader=o}},{key:"detachMousewheelListener",value:function(){var o=window;this.props.useWindow===!1&&(o=this.scrollComponent.parentNode),o.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var o=window;this.props.useWindow===!1&&(o=this.getParentElement(this.scrollComponent)),o.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),o.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(o){var f=this.props.getScrollParent&&this.props.getScrollParent();return f!=null?f:o&&o.parentNode}},{key:"filterProps",value:function(o){return o}},{key:"attachScrollListener",value:function(){var o=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!o)return;var f=window;this.props.useWindow===!1&&(f=o),f.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),f.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),f.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(o){o.deltaY===1&&!this.isPassiveSupported()&&o.preventDefault()}},{key:"scrollListener",value:function(){var o=this.scrollComponent,f=window,d=this.getParentElement(o),a=void 0;if(this.props.useWindow){var h=document.documentElement||document.body.parentNode||document.body,g=f.pageYOffset!==void 0?f.pageYOffset:h.scrollTop;this.props.isReverse?a=g:a=this.calculateOffset(o,g)}else this.props.isReverse?a=d.scrollTop:a=o.scrollHeight-d.scrollTop-d.clientHeight;a<Number(this.props.threshold)&&o&&o.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(o,f){return o?this.calculateTopPosition(o)+(o.offsetHeight-f-window.innerHeight):0}},{key:"calculateTopPosition",value:function(o){return o?o.offsetTop+this.calculateTopPosition(o.offsetParent):0}},{key:"render",value:function(){var o=this,f=this.filterProps(this.props),d=f.children,a=f.element,h=f.hasMore,g=f.initialLoad,p=f.isReverse,S=f.loader,w=f.loadMore,B=f.pageStart,b=f.ref,A=f.threshold,l=f.useCapture,i=f.useWindow,x=f.getScrollParent,O=C(f,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);O.ref=function(D){o.scrollComponent=D,b&&b(D)};var T=[d];return h&&(S?p?T.unshift(S):T.push(S):this.defaultLoader&&(p?T.unshift(this.defaultLoader):T.push(this.defaultLoader))),P.default.createElement(a,O,T)}}]),s}(Y.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},we.default=n,Ze.exports=we.default},LZjx:function(Ze,we){Ze.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(Ze,we,M){"use strict";M.d(we,"b",function(){return g}),M.d(we,"a",function(){return S});var ue=M("1OyB"),Y=M("vuIU"),P=M("Ji7U"),y=M("LK+K"),E=M("q1tI"),_=M("rePB"),C=M("Ff2n"),m=M("ODXe"),c=M("4IlW"),r=M("bX4T"),n=M("YrtM"),e=M("TSYQ"),s=M.n(e),u=M("+nKL"),o=M("8OUc"),f=function(G,N){var Q=G.prefixCls,X=G.id,te=G.flattenOptions,oe=G.childrenAsData,me=G.values,se=G.searchValue,_e=G.multiple,Ae=G.defaultActiveFirstOption,Ee=G.height,pe=G.itemHeight,he=G.notFoundContent,ie=G.open,fe=G.menuItemSelectedIcon,ge=G.virtual,ce=G.onSelect,Ie=G.onToggleOpen,Fe=G.onActiveValue,ke=G.onScroll,re=G.onMouseEnter,F="".concat(Q,"-item"),W=Object(n.a)(function(){return te},[ie,te],function(lt,rt){return rt[0]&&lt[1]!==rt[1]}),de=E.useRef(null),ne=function(rt){rt.preventDefault()},le=function(rt){de.current&&de.current.scrollTo({index:rt})},De=function(rt){for(var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,$e=W.length,Pe=0;Pe<$e;Pe+=1){var je=(rt+Pe*qe+$e)%$e,Ne=W[je],et=Ne.group,mt=Ne.data;if(!et&&!mt.disabled)return je}return-1},Xe=E.useState(function(){return De(0)}),xt=Object(m.a)(Xe,2),Ke=xt[0],ze=xt[1],yt=function(rt){ze(rt);var qe=W[rt];if(!qe){Fe(null,-1);return}Fe(qe.data.value,rt)};E.useEffect(function(){yt(Ae!==!1?De(0):-1)},[W.length,se]),E.useEffect(function(){var lt=setTimeout(function(){if(!_e&&ie&&me.size===1){var rt=Array.from(me)[0],qe=W.findIndex(function($e){var Pe=$e.data;return Pe.value===rt});yt(qe),le(qe)}});return function(){return clearTimeout(lt)}},[ie]);var Et=function(rt){rt!==void 0&&ce(rt,{selected:!me.has(rt)}),_e||Ie(!1)};if(E.useImperativeHandle(N,function(){return{onKeyDown:function(rt){var qe=rt.which;switch(qe){case c.a.UP:case c.a.DOWN:{var $e=0;if(qe===c.a.UP?$e=-1:qe===c.a.DOWN&&($e=1),$e!==0){var Pe=De(Ke+$e,$e);le(Pe),yt(Pe)}break}case c.a.ENTER:{var je=W[Ke];je&&!je.data.disabled?Et(je.data.value):Et(void 0),ie&&rt.preventDefault();break}case c.a.ESC:Ie(!1)}},onKeyUp:function(){},scrollTo:function(rt){le(rt)}}}),W.length===0)return E.createElement("div",{role:"listbox",id:"".concat(X,"_list"),className:"".concat(F,"-empty"),onMouseDown:ne},he);function ct(lt){var rt=W[lt];if(!rt)return null;var qe=rt.data||{},$e=qe.value,Pe=qe.label,je=qe.children,Ne=Object(r.a)(qe,!0),et=oe?je:Pe;return rt?E.createElement("div",Object.assign({"aria-label":typeof et=="string"?et:null},Ne,{key:lt,role:"option",id:"".concat(X,"_list_").concat(lt),"aria-selected":me.has($e)}),$e):null}return E.createElement(E.Fragment,null,E.createElement("div",{role:"listbox",id:"".concat(X,"_list"),style:{height:0,width:0,overflow:"hidden"}},ct(Ke-1),ct(Ke),ct(Ke+1)),E.createElement(u.a,{itemKey:"key",ref:de,data:W,height:Ee,itemHeight:pe,fullHeight:!1,onMouseDown:ne,onScroll:ke,virtual:ge,onMouseEnter:re},function(lt,rt){var qe,$e=lt.group,Pe=lt.groupOption,je=lt.data,Ne=je.label,et=je.key;if($e)return E.createElement("div",{className:s()(F,"".concat(F,"-group"))},Ne!==void 0?Ne:et);var mt=je.disabled,At=je.value,Ut=je.title,Xt=je.children,un=je.style,jt=je.className,Zt=Object(C.a)(je,["disabled","value","title","children","style","className"]),Mt=me.has(At),Tt="".concat(F,"-option"),Ct=s()(F,Tt,jt,(qe={},Object(_.a)(qe,"".concat(Tt,"-grouped"),Pe),Object(_.a)(qe,"".concat(Tt,"-active"),Ke===rt&&!mt),Object(_.a)(qe,"".concat(Tt,"-disabled"),mt),Object(_.a)(qe,"".concat(Tt,"-selected"),Mt),qe)),Re=oe?Xt:Ne,We=!fe||typeof fe=="function"||Mt;return E.createElement("div",Object.assign({},Zt,{"aria-selected":Mt,className:Ct,title:Ut,onMouseMove:function(){if(Ke===rt||mt)return;yt(rt)},onClick:function(){mt||Et(At)},style:un}),E.createElement("div",{className:"".concat(Tt,"-content")},Re||At),E.isValidElement(fe)||Mt,We&&E.createElement(o.a,{className:"".concat(F,"-option-state"),customizeIcon:fe,customizeIconProps:{isSelected:Mt}},Mt?"\u2713":null))}))},d=E.forwardRef(f);d.displayName="OptionList";var a=d,h=function(){return null};h.isSelectOption=!0;var g=h,p=function(){return null};p.isSelectOptGroup=!0;var S=p,w=M("VTBJ"),B=M("Zm9Q");function b(K){var G=K.key,N=K.props,Q=N.children,X=N.value,te=Object(C.a)(N,["children","value"]);return Object(w.a)({key:G,value:X!==void 0?X:G,children:Q},te)}function A(K){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(B.a)(K).map(function(N,Q){if(!E.isValidElement(N)||!N.type)return null;var X=N.type.isSelectOptGroup,te=N.key,oe=N.props,me=oe.children,se=Object(C.a)(oe,["children"]);return G||!X?b(N):Object(w.a)(Object(w.a)({key:"__RC_SELECT_GRP__".concat(te===null?Q:te,"__"),label:te},se),{},{options:A(me)})}).filter(function(N){return N})}var l=M("2Qr1"),i=M("qNPg"),x=M("U8pU"),O=M("Kwbf"),T=M("WKfj");function D(K){var G=K.mode,N=K.options,Q=K.children,X=K.backfill,te=K.allowClear,oe=K.placeholder,me=K.getInputElement,se=K.showSearch,_e=K.onSearch,Ae=K.defaultOpen,Ee=K.autoFocus,pe=K.labelInValue,he=K.value,ie=K.inputValue,fe=K.optionLabelProp,ge=G==="multiple"||G==="tags",ce=se!==void 0?se:ge||G==="combobox",Ie=N||A(Q);if(Object(O.a)(G!=="tags"||Ie.every(function(F){return!F.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),G==="tags"||G==="combobox"){var Fe=Ie.some(function(F){return F.options?F.options.some(function(W){return typeof("value"in W?W.value:W.key)=="number"}):typeof("value"in F?F.value:F.key)=="number"});Object(O.a)(!Fe,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(O.a)(G!=="combobox"||!fe,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(O.a)(G==="combobox"||!X,"`backfill` only works with `combobox` mode."),Object(O.a)(G==="combobox"||!me,"`getInputElement` only work with `combobox` mode."),Object(O.b)(G!=="combobox"||!me||!te||!oe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),_e&&!ce&&G!=="combobox"&&G!=="tags"&&Object(O.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(O.b)(!Ae||Ee,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),he!=null){var ke=Object(T.d)(he);Object(O.a)(!pe||ke.every(function(F){return Object(x.a)(F)==="object"&&("key"in F||"value"in F)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(O.a)(!ge||Array.isArray(he),"`value` should be array when `mode` is `multiple` or `tags`")}if(Q){var re=null;Object(B.a)(Q).some(function(F){if(!E.isValidElement(F)||!F.type)return!1;var W=F.type;if(W.isSelectOption)return!1;if(W.isSelectOptGroup){var de=Object(B.a)(F.props.children).every(function(ne){return!E.isValidElement(ne)||!F.type||ne.type.isSelectOption?!0:(re=ne.type,!1)});return!de}return re=W,!0}),re&&Object(O.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(re.displayName||re.name||re,"`.")),Object(O.a)(ie===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var R=D,k=Object(i.a)({prefixCls:"rc-select",components:{optionList:a},convertChildrenToData:A,flattenOptions:l.d,getLabeledValue:l.e,filterOptions:l.b,isValueDisabled:l.g,findValueOption:l.c,warningProps:R,fillOptionsWithMissingValue:l.a}),H=function(K){Object(P.a)(N,K);var G=Object(y.a)(N);function N(){var Q;return Object(ue.a)(this,N),Q=G.apply(this,arguments),Q.selectRef=E.createRef(),Q.focus=function(){Q.selectRef.current.focus()},Q.blur=function(){Q.selectRef.current.blur()},Q}return Object(Y.a)(N,[{key:"render",value:function(){return E.createElement(k,Object.assign({ref:this.selectRef},this.props))}}]),N}(E.Component);H.Option=g,H.OptGroup=S;var J=H,U=we.c=J},M8RZ:function(Ze,we,M){"use strict";M.d(we,"a",function(){return c});var ue=M("fWQN"),Y=M("mtLc"),P=M("yKVA"),y=M("879j"),E=M("q1tI"),_=M.n(E),C=M("i8i4"),m=M.n(C),c=function(r){Object(P.a)(e,r);var n=Object(y.a)(e);function e(s){var u;Object(ue.a)(this,e),u=n.call(this,s);var o=window.document;return u.node=o.createElement("div"),o.body.appendChild(u.node),u}return Object(Y.a)(e,[{key:"render",value:function(){var u=this.props.children;return Object(C.createPortal)(u,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),e}(_.a.Component)},MEGo:function(Ze,we,M){var ue=M("4fz+"),Y=M("Dagg"),P=M("dqUG"),y=M("2fw6"),E=M("x6Kt"),_=M("rmlV"),C=M("yxFR"),m=M("y+Vt"),c=M("h7HQ"),r=M("1Jh7"),n=M("SKnc"),e=M("K2GJ"),s=M("Fofx"),u=M("NC18"),o=u.createFromString,f=M("bYtY"),d=f.isString,a=f.extend,h=f.defaults,g=f.trim,p=f.each,S=/[\s,]+/;function w(N){if(d(N)){var Q=new DOMParser;N=Q.parseFromString(N,"text/xml")}for(N.nodeType===9&&(N=N.firstChild);N.nodeName.toLowerCase()!=="svg"||N.nodeType!==1;)N=N.nextSibling;return N}function B(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}B.prototype.parse=function(N,Q){Q=Q||{};var X=w(N);if(!X)throw new Error("Illegal svg");var te=new ue;this._root=te;var oe=X.getAttribute("viewBox")||"",me=parseFloat(X.getAttribute("width")||Q.width),se=parseFloat(X.getAttribute("height")||Q.height);isNaN(me)&&(me=null),isNaN(se)&&(se=null),T(X,te,null,!0);for(var _e=X.firstChild;_e;)this._parseNode(_e,te),_e=_e.nextSibling;var Ae,Ee;if(oe){var pe=g(oe).split(S);pe.length>=4&&(Ae={x:parseFloat(pe[0]||0),y:parseFloat(pe[1]||0),width:parseFloat(pe[2]),height:parseFloat(pe[3])})}if(Ae&&me!=null&&se!=null&&(Ee=K(Ae,me,se),!Q.ignoreViewBox)){var he=te;te=new ue,te.add(he),he.scale=Ee.scale.slice(),he.position=Ee.position.slice()}return!Q.ignoreRootClip&&me!=null&&se!=null&&te.setClipPath(new E({shape:{x:0,y:0,width:me,height:se}})),{root:te,width:me,height:se,viewBoxRect:Ae,viewBoxTransform:Ee}},B.prototype._parseNode=function(N,Q){var X=N.nodeName.toLowerCase();X==="defs"?this._isDefine=!0:X==="text"&&(this._isText=!0);var te;if(this._isDefine){var oe=A[X];if(oe){var me=oe.call(this,N),se=N.getAttribute("id");se&&(this._defs[se]=me)}}else{var oe=b[X];oe&&(te=oe.call(this,N,Q),Q.add(te))}for(var _e=N.firstChild;_e;)_e.nodeType===1&&this._parseNode(_e,te),_e.nodeType===3&&this._isText&&this._parseText(_e,te),_e=_e.nextSibling;X==="defs"?this._isDefine=!1:X==="text"&&(this._isText=!1)},B.prototype._parseText=function(N,Q){if(N.nodeType===1){var X=N.getAttribute("dx")||0,te=N.getAttribute("dy")||0;this._textX+=parseFloat(X),this._textY+=parseFloat(te)}var oe=new P({style:{text:N.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});i(Q,oe),T(N,oe,this._defs);var me=oe.style.fontSize;me&&me<9&&(oe.style.fontSize=9,oe.scale=oe.scale||[1,1],oe.scale[0]*=me/9,oe.scale[1]*=me/9);var se=oe.getBoundingRect();return this._textX+=se.width,Q.add(oe),oe};var b={g:function(N,Q){var X=new ue;return i(Q,X),T(N,X,this._defs),X},rect:function(N,Q){var X=new E;return i(Q,X),T(N,X,this._defs),X.setShape({x:parseFloat(N.getAttribute("x")||0),y:parseFloat(N.getAttribute("y")||0),width:parseFloat(N.getAttribute("width")||0),height:parseFloat(N.getAttribute("height")||0)}),X},circle:function(N,Q){var X=new y;return i(Q,X),T(N,X,this._defs),X.setShape({cx:parseFloat(N.getAttribute("cx")||0),cy:parseFloat(N.getAttribute("cy")||0),r:parseFloat(N.getAttribute("r")||0)}),X},line:function(N,Q){var X=new C;return i(Q,X),T(N,X,this._defs),X.setShape({x1:parseFloat(N.getAttribute("x1")||0),y1:parseFloat(N.getAttribute("y1")||0),x2:parseFloat(N.getAttribute("x2")||0),y2:parseFloat(N.getAttribute("y2")||0)}),X},ellipse:function(N,Q){var X=new _;return i(Q,X),T(N,X,this._defs),X.setShape({cx:parseFloat(N.getAttribute("cx")||0),cy:parseFloat(N.getAttribute("cy")||0),rx:parseFloat(N.getAttribute("rx")||0),ry:parseFloat(N.getAttribute("ry")||0)}),X},polygon:function(N,Q){var X=N.getAttribute("points");X&&(X=x(X));var te=new c({shape:{points:X||[]}});return i(Q,te),T(N,te,this._defs),te},polyline:function(N,Q){var X=new m;i(Q,X),T(N,X,this._defs);var te=N.getAttribute("points");te&&(te=x(te));var oe=new r({shape:{points:te||[]}});return oe},image:function(N,Q){var X=new Y;return i(Q,X),T(N,X,this._defs),X.setStyle({image:N.getAttribute("xlink:href"),x:N.getAttribute("x"),y:N.getAttribute("y"),width:N.getAttribute("width"),height:N.getAttribute("height")}),X},text:function(N,Q){var X=N.getAttribute("x")||0,te=N.getAttribute("y")||0,oe=N.getAttribute("dx")||0,me=N.getAttribute("dy")||0;this._textX=parseFloat(X)+parseFloat(oe),this._textY=parseFloat(te)+parseFloat(me);var se=new ue;return i(Q,se),T(N,se,this._defs),se},tspan:function(N,Q){var X=N.getAttribute("x"),te=N.getAttribute("y");X!=null&&(this._textX=parseFloat(X)),te!=null&&(this._textY=parseFloat(te));var oe=N.getAttribute("dx")||0,me=N.getAttribute("dy")||0,se=new ue;return i(Q,se),T(N,se,this._defs),this._textX+=oe,this._textY+=me,se},path:function(N,Q){var X=N.getAttribute("d")||"",te=o(X);return i(Q,te),T(N,te,this._defs),te}},A={lineargradient:function(N){var Q=parseInt(N.getAttribute("x1")||0,10),X=parseInt(N.getAttribute("y1")||0,10),te=parseInt(N.getAttribute("x2")||10,10),oe=parseInt(N.getAttribute("y2")||0,10),me=new n(Q,X,te,oe);return l(N,me),me},radialgradient:function(N){}};function l(N,Q){for(var X=N.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 i(N,Q){N&&N.__inheritedStyle&&(Q.__inheritedStyle||(Q.__inheritedStyle={}),h(Q.__inheritedStyle,N.__inheritedStyle))}function x(N){for(var Q=g(N).split(S),X=[],te=0;te<Q.length;te+=2){var oe=parseFloat(Q[te]),me=parseFloat(Q[te+1]);X.push([oe,me])}return X}var O={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function T(N,Q,X,te){var oe=Q.__inheritedStyle||{},me=Q.type==="text";if(N.nodeType===1&&(H(N,Q),a(oe,U(N)),!te)){for(var se in O)if(O.hasOwnProperty(se)){var _e=N.getAttribute(se);_e!=null&&(oe[O[se]]=_e)}}var Ae=me?"textFill":"fill",Ee=me?"textStroke":"stroke";Q.style=Q.style||new e;var pe=Q.style;oe.fill!=null&&pe.set(Ae,R(oe.fill,X)),oe.stroke!=null&&pe.set(Ee,R(oe.stroke,X)),p(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(he){var ie=he==="lineWidth"&&me?"textStrokeWidth":he;oe[he]!=null&&pe.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"),p(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(he){oe[he]!=null&&pe.set(he,oe[he])}),oe.lineDash&&(Q.style.lineDash=g(oe.lineDash).split(S)),pe[Ee]&&pe[Ee]!=="none"&&(Q[Ee]=!0),Q.__inheritedStyle=oe}var D=/url\(\s*#(.*?)\)/;function R(N,Q){var X=Q&&N&&N.match(D);if(X){var te=g(X[1]),oe=Q[te];return oe}return N}var k=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function H(N,Q){var X=N.getAttribute("transform");if(X){X=X.replace(/,/g," ");var te=null,oe=[];X.replace(k,function(Ae,Ee,pe){oe.push(Ee,pe)});for(var me=oe.length-1;me>0;me-=2){var se=oe[me],_e=oe[me-1];te=te||s.create();switch(_e){case"translate":se=g(se).split(S),s.translate(te,te,[parseFloat(se[0]),parseFloat(se[1]||0)]);break;case"scale":se=g(se).split(S),s.scale(te,te,[parseFloat(se[0]),parseFloat(se[1]||se[0])]);break;case"rotate":se=g(se).split(S),s.rotate(te,te,parseFloat(se[0]));break;case"skew":se=g(se).split(S),console.warn("Skew transform is not supported yet");break;case"matrix":var se=g(se).split(S);te[0]=parseFloat(se[0]),te[1]=parseFloat(se[1]),te[2]=parseFloat(se[2]),te[3]=parseFloat(se[3]),te[4]=parseFloat(se[4]),te[5]=parseFloat(se[5]);break}}Q.setLocalTransform(te)}}var J=/([^\s:;]+)\s*:\s*([^:;]+)/g;function U(N){var Q=N.getAttribute("style"),X={};if(!Q)return X;var te={};J.lastIndex=0;for(var oe;(oe=J.exec(Q))!=null;)te[oe[1]]=oe[2];for(var me in O)O.hasOwnProperty(me)&&te[me]!=null&&(X[O[me]]=te[me]);return X}function K(N,Q,X){var te=Q/N.width,oe=X/N.height,me=Math.min(te,oe),se=[me,me],_e=[-(N.x+N.width/2)*me+Q/2,-(N.y+N.height/2)*me+X/2];return{scale:se,position:_e}}function G(N,Q){var X=new B;return X.parse(N,Q)}we.parseXML=w,we.makeViewBoxTransform=K,we.parseSVG=G},MKOG:function(Ze,we,M){var ue=M("bYtY"),Y=M("YH21"),P=Y.Dispatcher,y=M("mLcG"),E=M("Bq2U"),_=function(m){m=m||{},this.stage=m.stage||{},this.onframe=m.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,P.call(this)};_.prototype={constructor:_,addClip:function(m){this._clips.push(m)},addAnimator:function(m){m.animation=this;for(var c=m.getClips(),r=0;r<c.length;r++)this.addClip(c[r])},removeClip:function(m){var c=ue.indexOf(this._clips,m);c>=0&&this._clips.splice(c,1)},removeAnimator:function(m){for(var c=m.getClips(),r=0;r<c.length;r++)this.removeClip(c[r]);m.animation=null},_update:function(){for(var m=new Date().getTime()-this._pausedTime,c=m-this._time,r=this._clips,n=r.length,e=[],s=[],u=0;u<n;u++){var o=r[u],f=o.step(m,c);f&&(e.push(f),s.push(o))}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=m,this.onframe(c),this.trigger("frame",c),this.stage.update&&this.stage.update()},_startLoop:function(){var m=this;this._running=!0;function c(){m._running&&(y(c),!m._paused&&m._update())}y(c)},start:function(){this._time=new Date().getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=new Date().getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=new Date().getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(m,c){c=c||{};var r=new E(m,c.loop,c.getter,c.setter);return this.addAnimator(r),r}},ue.mixin(_,P);var C=_;Ze.exports=C},MKdu:function(Ze,we,M){Ze.exports=M.p+"static/fsz.c0b87223.svg"},NC18:function(Ze,we,M){var ue=M("y+Vt"),Y=M("IMiH"),P=M("7oTu"),y=Math.sqrt,E=Math.sin,_=Math.cos,C=Math.PI,m=function(h){return Math.sqrt(h[0]*h[0]+h[1]*h[1])},c=function(h,g){return(h[0]*g[0]+h[1]*g[1])/(m(h)*m(g))},r=function(h,g){return(h[0]*g[1]<h[1]*g[0]?-1:1)*Math.acos(c(h,g))};function n(h,g,p,S,w,B,b,A,l,i,x){var O=l*(C/180),T=_(O)*(h-p)/2+E(O)*(g-S)/2,D=-1*E(O)*(h-p)/2+_(O)*(g-S)/2,R=T*T/(b*b)+D*D/(A*A);R>1&&(b*=y(R),A*=y(R));var k=(w===B?-1:1)*y((b*b*(A*A)-b*b*(D*D)-A*A*(T*T))/(b*b*(D*D)+A*A*(T*T)))||0,H=k*b*D/A,J=k*-A*T/b,U=(h+p)/2+_(O)*H-E(O)*J,K=(g+S)/2+E(O)*H+_(O)*J,G=r([1,0],[(T-H)/b,(D-J)/A]),N=[(T-H)/b,(D-J)/A],Q=[(-1*T-H)/b,(-1*D-J)/A],X=r(N,Q);c(N,Q)<=-1&&(X=C),c(N,Q)>=1&&(X=0),B===0&&X>0&&(X=X-2*C),B===1&&X<0&&(X=X+2*C),x.addData(i,U,K,b,A,G,X,O,B)}var e=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,s=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function u(h){if(!h)return new Y;for(var g=0,p=0,S=g,w=p,B,b=new Y,A=Y.CMD,l=h.match(e),i=0;i<l.length;i++){for(var x=l[i],O=x.charAt(0),T,D=x.match(s)||[],R=D.length,k=0;k<R;k++)D[k]=parseFloat(D[k]);for(var H=0;H<R;){var J,U,K,G,N,Q,X,te=g,oe=p;switch(O){case"l":g+=D[H++],p+=D[H++],T=A.L,b.addData(T,g,p);break;case"L":g=D[H++],p=D[H++],T=A.L,b.addData(T,g,p);break;case"m":g+=D[H++],p+=D[H++],T=A.M,b.addData(T,g,p),S=g,w=p,O="l";break;case"M":g=D[H++],p=D[H++],T=A.M,b.addData(T,g,p),S=g,w=p,O="L";break;case"h":g+=D[H++],T=A.L,b.addData(T,g,p);break;case"H":g=D[H++],T=A.L,b.addData(T,g,p);break;case"v":p+=D[H++],T=A.L,b.addData(T,g,p);break;case"V":p=D[H++],T=A.L,b.addData(T,g,p);break;case"C":T=A.C,b.addData(T,D[H++],D[H++],D[H++],D[H++],D[H++],D[H++]),g=D[H-2],p=D[H-1];break;case"c":T=A.C,b.addData(T,D[H++]+g,D[H++]+p,D[H++]+g,D[H++]+p,D[H++]+g,D[H++]+p),g+=D[H-2],p+=D[H-1];break;case"S":J=g,U=p;var me=b.len(),se=b.data;B===A.C&&(J+=g-se[me-4],U+=p-se[me-3]),T=A.C,te=D[H++],oe=D[H++],g=D[H++],p=D[H++],b.addData(T,J,U,te,oe,g,p);break;case"s":J=g,U=p;var me=b.len(),se=b.data;B===A.C&&(J+=g-se[me-4],U+=p-se[me-3]),T=A.C,te=g+D[H++],oe=p+D[H++],g+=D[H++],p+=D[H++],b.addData(T,J,U,te,oe,g,p);break;case"Q":te=D[H++],oe=D[H++],g=D[H++],p=D[H++],T=A.Q,b.addData(T,te,oe,g,p);break;case"q":te=D[H++]+g,oe=D[H++]+p,g+=D[H++],p+=D[H++],T=A.Q,b.addData(T,te,oe,g,p);break;case"T":J=g,U=p;var me=b.len(),se=b.data;B===A.Q&&(J+=g-se[me-4],U+=p-se[me-3]),g=D[H++],p=D[H++],T=A.Q,b.addData(T,J,U,g,p);break;case"t":J=g,U=p;var me=b.len(),se=b.data;B===A.Q&&(J+=g-se[me-4],U+=p-se[me-3]),g+=D[H++],p+=D[H++],T=A.Q,b.addData(T,J,U,g,p);break;case"A":K=D[H++],G=D[H++],N=D[H++],Q=D[H++],X=D[H++],te=g,oe=p,g=D[H++],p=D[H++],T=A.A,n(te,oe,g,p,Q,X,K,G,N,T,b);break;case"a":K=D[H++],G=D[H++],N=D[H++],Q=D[H++],X=D[H++],te=g,oe=p,g+=D[H++],p+=D[H++],T=A.A,n(te,oe,g,p,Q,X,K,G,N,T,b);break}}(O==="z"||O==="Z")&&(T=A.Z,b.addData(T),g=S,p=w),B=T}return b.toStatic(),b}function o(h,g){var p=u(h);return g=g||{},g.buildPath=function(S){if(S.setData){S.setData(p.data);var w=S.getContext();w&&S.rebuildPath(w)}else{var w=S;p.rebuildPath(w)}},g.applyTransform=function(S){P(p,S),this.dirty(!0)},g}function f(h,g){return new ue(o(h,g))}function d(h,g){return ue.extend(o(h,g))}function a(h,g){for(var p=[],S=h.length,w=0;w<S;w++){var B=h[w];B.path||B.createPathProxy(),B.__dirtyPath&&B.buildPath(B.path,B.shape,!0),p.push(B.path)}var b=new ue(g);return b.createPathProxy(),b.buildPath=function(A){A.appendPath(p);var l=A.getContext();l&&A.rebuildPath(l)},b}we.createFromString=f,we.extendFromString=d,we.mergePath=a},NLgs:function(Ze,we,M){"use strict";M.d(we,"e",function(){return p}),M.d(we,"f",function(){return S}),M.d(we,"d",function(){return B}),M.d(we,"c",function(){return b}),M.d(we,"a",function(){return A}),M.d(we,"b",function(){return l});var ue=M("miYZ"),Y=M("tsqr"),P=M("9og8"),y=M("2qtc"),E=M("kLXV"),_=M("WmNS"),C=M.n(_),m=M("q1tI"),c=M.n(m),r=M("9kvl"),n=M("xKgJ"),e=M("1vsH"),s=M("RCxd"),u=M("mOS8"),o=M.n(u),f=M("1ZF9"),d=M.n(f),a=M("WdTA"),h=M.n(a),g=M("m3rI"),p=function(x){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!!(S(x)&&w(O))},S=function(x){return Object(n.p)()?!0:(x({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},w=function(){var x,O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,T=Object(r.c)()._store.getState(),D=T.user;return(x=D.userInfo)!==null&&x!==void 0&&x.profile_completed?!0:(E.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:O?"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801":"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){r.d.push("/account/profile/edit")}}),!1)},B=function(){var x,O=Object(r.c)()._store.getState(),T=O.user;return(x=T.userInfo)!==null&&x!==void 0&&x.professional_certification?!0:(E.a.confirm({title:"\u63D0\u793A",centered:!0,content:c.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)},b=function(){return Object(n.a)()?!0:(E.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:c.a.createElement("div",{className:"tc",style:{marginLeft:-38}},c.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u626B\u7801\u52A0\u7FA4@\u7FA4\u7BA1\u7406\u5458\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650\u54E6\uFF01"),c.a.createElement("img",{src:Object(n.t)()?h.a:"".concat(g.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1)},A=function(x,O){return x?!0:(E.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:c.a.createElement("div",null,c.a.createElement("p",null,O||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),c.a.createElement("div",{style:{marginLeft:"110px"}},c.a.createElement("img",{src:d.a,width:200}),c.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)},l=function(x){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",T=Object(r.c)()._store.getState(),D=T.shixunsDetail.detail;return(D==null?void 0:D.public)===2||(D==null?void 0:D.public)===1||(D==null?void 0:D.shixun_status)===3?(E.a.info({centered:!0,icon:c.a.createElement(s.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:c.a.createElement("div",{className:"tc",style:{marginLeft:-38}},c.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},c.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(D==null?void 0:D.public)===2?"\u5DF2\u516C\u5F00":(D==null?void 0:D.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",O,"\u3002"),c.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),c.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:o.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(D==null?void 0:D.shixun_status)===2?(E.a.confirm({centered:!0,icon:c.a.createElement(s.a,null),title:"\u63D0\u793A",content:c.a.createElement("div",null,c.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",O,"\u3002"),c.a.createElement("br",null),c.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:c.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 k=Object(P.a)(C.a.mark(function J(){var U;return C.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,x({type:"shixunsDetail/cancelRelease",payload:{id:D==null?void 0:D.identifier}});case 2:U=G.sent,U.status!==401&&(Y.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),x({type:"shixunsDetail/getShixunsDetail",payload:{id:D==null?void 0:D.identifier}}),x({type:"practiceSetting/getCommonData",payload:{id:D==null?void 0:D.identifier}}));case 4:case"end":return G.stop()}},J)}));function H(){return k.apply(this,arguments)}return H}()})}}),!0):!1}},Nddv:function(Ze,we,M){Ze.exports=M.p+"static/sz.d6b17ad9.svg"},Nmxd:function(Ze,we){Ze.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(Ze,we,M){"use strict";Object.defineProperty(we,"__esModule",{value:!0}),we.default=void 0;var ue=function(P){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,E=null;return function(){for(var _=this,C=arguments.length,m=new Array(C),c=0;c<C;c++)m[c]=arguments[c];clearTimeout(E),E=setTimeout(function(){P.apply(_,m)},y)}};we.default=ue},NvD2:function(Ze,we,M){"use strict";M.d(we,"a",function(){return _});var ue=M("Kwbf");function Y(C,m){var c=new Set;return C.forEach(function(r){m.has(r)||c.add(r)}),c}function P(C){var m=C||{},c=m.disabled,r=m.disableCheckbox,n=m.checkable;return!!(c||r)||n===!1}function y(C,m,c,r){for(var n=new Set(C),e=new Set,s=0;s<=c;s+=1){var u=m.get(s)||new Set;u.forEach(function(a){var h=a.key,g=a.node,p=a.children,S=p===void 0?[]:p;n.has(h)&&!r(g)&&S.filter(function(w){return!r(w.node)}).forEach(function(w){n.add(w.key)})})}for(var o=new Set,f=c;f>=0;f-=1){var d=m.get(f)||new Set;d.forEach(function(a){var h=a.parent,g=a.node;if(r(g)||!a.parent||o.has(a.parent.key))return;if(r(a.parent.node)){o.add(h.key);return}var p=!0,S=!1;(h.children||[]).filter(function(w){return!r(w.node)}).forEach(function(w){var B=w.key,b=n.has(B);p&&!b&&(p=!1),!S&&(b||e.has(B))&&(S=!0)}),p&&n.add(h.key),S&&e.add(h.key),o.add(h.key)})}return{checkedKeys:Array.from(n),halfCheckedKeys:Array.from(Y(e,n))}}function E(C,m,c,r,n){for(var e=new Set(C),s=new Set(m),u=0;u<=r;u+=1){var o=c.get(u)||new Set;o.forEach(function(h){var g=h.key,p=h.node,S=h.children,w=S===void 0?[]:S;!e.has(g)&&!s.has(g)&&!n(p)&&w.filter(function(B){return!n(B.node)}).forEach(function(B){e.delete(B.key)})})}s=new Set;for(var f=new Set,d=r;d>=0;d-=1){var a=c.get(d)||new Set;a.forEach(function(h){var g=h.parent,p=h.node;if(n(p)||!h.parent||f.has(h.parent.key))return;if(n(h.parent.node)){f.add(g.key);return}var S=!0,w=!1;(g.children||[]).filter(function(B){return!n(B.node)}).forEach(function(B){var b=B.key,A=e.has(b);S&&!A&&(S=!1),!w&&(A||s.has(b))&&(w=!0)}),S||e.delete(g.key),w&&s.add(g.key),f.add(g.key)})}return{checkedKeys:Array.from(e),halfCheckedKeys:Array.from(Y(s,e))}}function _(C,m,c,r){var n=[],e;r?e=r:e=P;var s=new Set(C.filter(function(d){var a=!!c[d];return a||n.push(d),a})),u=new Map,o=0;Object.keys(c).forEach(function(d){var a=c[d],h=a.level,g=u.get(h);g||(g=new Set,u.set(h,g)),g.add(a),o=Math.max(o,h)}),Object(ue.a)(!n.length,"Tree missing follow keys: ".concat(n.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var f;return m===!0?f=y(s,u,o,e):f=E(s,m.halfCheckedKeys,u,o,e),f}},OC45:function(Ze,we,M){Ze.exports={applyPublicContainer:"applyPublicContainer___3sK8L",applyPublicContent:"applyPublicContent___3Hye1",spin:"spin___3-Uh7",tips:"tips___3d-sF",action:"action___3Uny2"}},OLES:function(Ze,we,M){"use strict";var ue=M("U8pU"),Y=M("VTBJ"),P=M("Ff2n"),y=M("q1tI"),E=M("uciX"),_=M("7ixt"),C=function(s){var u=s.overlay,o=s.prefixCls,f=s.id,d=s.overlayInnerStyle;return y.createElement("div",{className:"".concat(o,"-inner"),id:f,role:"tooltip",style:d},typeof u=="function"?u():u)},m=C,c=function(s,u){var o=s.overlayClassName,f=s.trigger,d=f===void 0?["hover"]:f,a=s.mouseEnterDelay,h=a===void 0?0:a,g=s.mouseLeaveDelay,p=g===void 0?.1:g,S=s.overlayStyle,w=s.prefixCls,B=w===void 0?"rc-tooltip":w,b=s.children,A=s.onVisibleChange,l=s.afterVisibleChange,i=s.transitionName,x=s.animation,O=s.placement,T=O===void 0?"right":O,D=s.align,R=D===void 0?{}:D,k=s.destroyTooltipOnHide,H=k===void 0?!1:k,J=s.defaultVisible,U=s.getTooltipContainer,K=s.overlayInnerStyle,G=Object(P.a)(s,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),N=Object(y.useRef)(null);Object(y.useImperativeHandle)(u,function(){return N.current});var Q=Object(Y.a)({},G);"visible"in s&&(Q.popupVisible=s.visible);var X=function(){var _e=s.arrowContent,Ae=_e===void 0?null:_e,Ee=s.overlay,pe=s.id;return[y.createElement("div",{className:"".concat(B,"-arrow"),key:"arrow"},Ae),y.createElement(m,{key:"content",prefixCls:B,id:pe,overlay:Ee,overlayInnerStyle:K})]},te=!1,oe=!1;if(typeof H=="boolean")te=H;else if(H&&Object(ue.a)(H)==="object"){var me=H.keepParent;te=me===!0,oe=me===!1}return y.createElement(E.a,Object.assign({popupClassName:o,prefixCls:B,popup:X,action:d,builtinPlacements:_.a,popupPlacement:T,ref:N,popupAlign:R,getPopupContainer:U,onPopupVisibleChange:A,afterPopupVisibleChange:l,popupTransitionName:i,popupAnimation:x,defaultPopupVisible:J,destroyPopupOnHide:te,autoDestroy:oe,mouseLeaveDelay:p,popupStyle:S,mouseEnterDelay:h},Q),b)},r=Object(y.forwardRef)(c),n=we.a=r},OS9S:function(Ze,we,M){var ue=M("bYtY"),Y=ue.inherits,P=M("Gev7"),y=M("mFDi");function E(m){P.call(this,m),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(m,c){c?this._temporaryDisplayables.push(m):this._displayables.push(m),this.dirty()},E.prototype.addDisplayables=function(m,c){c=c||!1;for(var r=0;r<m.length;r++)this.addDisplayable(m[r],c)},E.prototype.eachPendingDisplayable=function(m){for(var c=this._cursor;c<this._displayables.length;c++)m&&m(this._displayables[c]);for(var c=0;c<this._temporaryDisplayables.length;c++)m&&m(this._temporaryDisplayables[c])},E.prototype.update=function(){this.updateTransform();for(var m=this._cursor;m<this._displayables.length;m++){var c=this._displayables[m];c.parent=this,c.update(),c.parent=null}for(var m=0;m<this._temporaryDisplayables.length;m++){var c=this._temporaryDisplayables[m];c.parent=this,c.update(),c.parent=null}},E.prototype.brush=function(m,c){for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.beforeBrush&&n.beforeBrush(m),n.brush(m,r===this._cursor?null:this._displayables[r-1]),n.afterBrush&&n.afterBrush(m)}this._cursor=r;for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.beforeBrush&&n.beforeBrush(m),n.brush(m,r===0?null:this._temporaryDisplayables[r-1]),n.afterBrush&&n.afterBrush(m)}this._temporaryDisplayables=[],this.notClear=!0};var _=[];E.prototype.getBoundingRect=function(){if(!this._rect){for(var m=new y(Infinity,Infinity,-Infinity,-Infinity),c=0;c<this._displayables.length;c++){var r=this._displayables[c],n=r.getBoundingRect().clone();r.needLocalTransform()&&n.applyTransform(r.getLocalTransform(_)),m.union(n)}this._rect=m}return this._rect},E.prototype.contain=function(m,c){var r=this.transformCoordToLocal(m,c),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(m,c))return!0}return!1},Y(E,P);var C=E;Ze.exports=C},OZM5:function(Ze,we,M){"use strict";M.d(we,"b",function(){return r}),M.d(we,"a",function(){return n}),M.d(we,"k",function(){return e}),M.d(we,"h",function(){return s}),M.d(we,"i",function(){return u}),M.d(we,"g",function(){return o}),M.d(we,"c",function(){return f}),M.d(we,"d",function(){return d}),M.d(we,"j",function(){return g}),M.d(we,"e",function(){return p}),M.d(we,"f",function(){return S});var ue=M("KQm4"),Y=M("U8pU"),P=M("Ff2n"),y=M("q1tI"),E=M.n(y),_=M("Kwbf"),C=M("WaYH"),m=.25,c=2;function r(w,B){var b=w.slice(),A=b.indexOf(B);return A>=0&&b.splice(A,1),b}function n(w,B){var b=w.slice();return b.indexOf(B)===-1&&b.push(B),b}function e(w){return w.split("-")}function s(w,B){return"".concat(w,"-").concat(B)}function u(w){return w&&w.type&&w.type.isTreeNode}function o(w,B){var b=[w],A=B[w];function l(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(x){var O=x.key,T=x.children;b.push(O),l(T)})}return l(A.children),b}function f(w,B){var b=w.clientY,A=B.selectHandle.getBoundingClientRect(),l=A.top,i=A.bottom,x=A.height,O=Math.max(x*m,c);return b<=l+O?-1:b>=i-O?1:0}function d(w,B){if(!w)return;var b=B.multiple;return b?w.slice():w.length?[w[0]]:w}var a=function(B){return B};function h(w,B){if(!w)return[];var b=B||{},A=b.processProps,l=A===void 0?a:A,i=Array.isArray(w)?w:[w];return i.map(function(x){var O=x.children,T=Object(P.a)(x,["children"]),D=h(O,B);return E.a.createElement(C.a,Object.assign({},l(T)),D)})}function g(w){if(!w)return null;var B;if(Array.isArray(w))B={checkedKeys:w,halfCheckedKeys:void 0};else if(Object(Y.a)(w)==="object")B={checkedKeys:w.checked||void 0,halfCheckedKeys:w.halfChecked||void 0};else return Object(_.a)(!1,"`checkedKeys` is not an array or an object"),null;return B}function p(w,B){var b=new Set;function A(l){if(b.has(l))return;var i=B[l];if(!i)return;b.add(l);var x=i.parent,O=i.node;if(O.disabled)return;x&&A(x.key)}return(w||[]).forEach(function(l){A(l)}),Object(ue.a)(b)}function S(w){var B={};return Object.keys(w).forEach(function(b){(b.startsWith("data-")||b.startsWith("aria-"))&&(B[b]=w[b])}),B}},Ohmc:function(Ze,we,M){Ze.exports=M.p+"static/certificate.fc32dc1b.jpg"},OljG:function(Ze,we,M){Ze.exports=M.p+"static/banner.4c45dd73.png"},Ot1p:function(Ze,we,M){"use strict";var ue=M("2qtc"),Y=M("kLXV"),P=M("rAM+"),y=M("miYZ"),E=M("tsqr"),_=M("9og8"),C=M("tJVT"),m=M("jrin"),c=M("WmNS"),r=M.n(c),n=M("q1tI"),e=M.n(n),s=M("VrN/"),u=M.n(s),o=M("bdgK"),f=M("p77/"),d=M("Bd2K"),a=M("ELLl"),h=M("19Vz"),g=M("lZu9"),p=M("+NIl"),S=M("kSUc"),w=M("9Bee"),B=function(At){var Ut=At.value,Xt=Ut===void 0?"":Ut,un=At.className,jt=At.showTextOnly,Zt=At.showLines,Mt=At.style,Tt=Mt===void 0?{}:Mt,Ct=Object(n.useMemo)(function(){return""},[Xt]);return e.a.createElement(e.a.Fragment,null,e.a.createElement("div",{dangerouslySetInnerHTML:{__html:Ct}}))},b=M("0Owb"),A=M("dejd"),l=M("C+DQ"),i=M("1vsH"),x=M("m3rI"),O=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function T(At){var Ut=At.onActionCallback,Xt=At.title,un=At.icon,jt=At.actionName,Zt=At.className,Mt=Zt===void 0?"":Zt,Tt=At.children;function Ct(){Ut(jt)}return e.a.createElement("a",{title:Xt,className:Mt,onClick:Ct},e.a.createElement("i",{className:"md-iconfont ".concat(un)}),Tt)}var D=function(At){var Ut=At.watch,Xt=At.showNullButton,un=At.onActionCallback,jt=At.fullScreen,Zt=At.insertTemp,Mt=At.hidetoolBar,Tt=At.uuid,Ct=At.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(i.E)("_educoder_session_login"),"&_educoder_session=").concat(Object(i.E)("_educoder_session"),"&key=").concat(Tt,"&api=").concat(encodeURIComponent(x.a.PROXY_SERVER)));var Re=[].concat(O,[{title:"".concat(Ut?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(Ut?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return e.a.createElement("ul",{className:"markdown-toolbar-container"},!Mt&&Re.map(function(We,St){return e.a.createElement("li",{key:St},We.actionName?e.a.createElement(T,Object(b.a)({},We,{onActionCallback:un})):e.a.createElement("span",{className:"v-line"}))}),Xt?e.a.createElement("li",null,e.a.createElement(T,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:un},e.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Zt&&e.a.createElement("li",null,e.a.createElement(T,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Zt),onActionCallback:un},e.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),e.a.createElement("li",{className:"btn-full-screen"},e.a.createElement(T,{icon:"".concat(jt?"icon-shrink":"icon-enlarge"),title:jt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:un})))},R=M("M8RZ"),k=M("+L6B"),H=M("2/Rp"),J=M("y8nQ"),U=M("Vl3Y"),K=M("5NDa"),G=M("5rEg"),N={labelCol:{span:4},wrapperCol:{span:20}},Q=function(At){var Ut=At.callback,Xt=At.onCancel;function un(jt){Ut(jt)}return e.a.createElement(U.a,Object(b.a)({},N,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:un}),e.a.createElement(U.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},e.a.createElement(G.a,null)),e.a.createElement(U.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},e.a.createElement(G.a,null)),e.a.createElement("div",{className:"flex-container flex-end"},e.a.createElement(H.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),e.a.createElement(H.a,{type:"ghost",onClick:Xt},"\u53D6\u6D88")))},X=M("7ahc"),te=M("k1fw"),oe=M("HmJG"),me=M("BjJ7"),se=U.a.useForm,_e={width:280,marginRight:10},Ae={labelCol:{span:5},wrapperCol:{span:19}},Ee=function(At){var Ut=At.callback,Xt=At.onCancel,un=se(),jt=Object(C.a)(un,1),Zt=jt[0],Mt=Object(n.useRef)();function Tt(We){Ut(Object(te.a)(Object(te.a)({},We),{},{name:Mt.current}))}function Ct(We,St){Zt.setFieldsValue({src:"/api/attachments/".concat(We.id,"?type=").concat(We.content_type),type:St.type})}function Re(We){var St=We.target.files[0];Mt.current=St.name,he(St,Ct)}return e.a.createElement(U.a,Object(b.a)({form:Zt},Ae,{className:"upload-image-panel",onFinish:Tt}),e.a.createElement(U.a.Item,{label:"\u6587\u4EF6\u5730\u5740",required:!0},e.a.createElement("div",{className:"flex-container"},e.a.createElement(U.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},e.a.createElement(G.a,{style:_e})),e.a.createElement(pe,{onFileChange:Re}))),e.a.createElement(U.a.Item,{label:"\u6587\u4EF6\u63CF\u8FF0",name:"alt"},e.a.createElement(G.a,{style:{width:264}})),e.a.createElement(U.a.Item,{style:{textAlign:"right"}},e.a.createElement(H.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),e.a.createElement(H.a,{type:"ghost",onClick:Xt},"\u53D6\u6D88")))};function pe(At){var Ut=At.onFileChange;return e.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",e.a.createElement("input",{type:"file",onChange:Ut}))}function he(At,Ut){if(!At)throw new String("\u6CA1\u6709\u6587\u4EF6");var Xt=new FormData;Xt.append("editormd-image-file",At),Xt.append("file_param_name","editormd-image-file"),Xt.append("byxhr","true");var un=new window.XMLHttpRequest;un.withCredentials=!0,un.addEventListener("load",function(jt){Ut(JSON.parse(jt.target.responseText),At)},!1),un.addEventListener("error",function(jt){console.error(jt)},!1),un.open("POST","".concat(me.a,"/api/attachments.json")),un.send(Xt)}var ie=M("giR+"),fe=M("fyUT"),ge=M("7Kak"),ce=M("9yH6"),Ie=ce.a.Group,Fe={margin:"0 8px"},ke=function(At){var Ut=At.callback,Xt=At.onCancel;function un(jt){Ut(jt)}return e.a.createElement(U.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:un},e.a.createElement("div",{className:"flex-container"},e.a.createElement("span",{style:Fe},"\u5355\u5143\u683C\u6570\uFF1A"),e.a.createElement("span",{style:Fe},"\u884C\u6570"),e.a.createElement(U.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},e.a.createElement(fe.a,null)),e.a.createElement("span",{style:Fe},"\u5217\u6570"),e.a.createElement(U.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},e.a.createElement(fe.a,null))),e.a.createElement("div",{className:"flex-container",style:{marginTop:12}},e.a.createElement("span",{style:Fe},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),e.a.createElement(U.a.Item,{name:"align"},e.a.createElement(Ie,null,e.a.createElement(ce.a,{value:"default"},e.a.createElement("i",{className:"fa fa-align-justify"})),e.a.createElement(ce.a,{value:"left"},e.a.createElement("i",{className:"fa fa-align-left"})),e.a.createElement(ce.a,{value:"center"},e.a.createElement("i",{className:"fa fa-align-center"})),e.a.createElement(ce.a,{value:"right"},e.a.createElement("i",{className:"fa fa-align-right"}))))),e.a.createElement("div",{className:"flex-container flex-end"},e.a.createElement(H.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),e.a.createElement(H.a,{type:"ghost",onClick:Xt},"\u53D6\u6D88")))},re=M("ErOA"),F=M("7Cbv"),W="link",de="upload-image",ne="code-block",le="add-table",De="------------",Xe={default:De,left:":".concat(De),center:":".concat(De,":"),right:"".concat(De,":")},xt=M("9VGf"),Ke,ze;function yt(){}var Et=0,ct=1e4,lt="\u2581",rt=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function qe(At){return/^\d+$/.test(At)?"".concat(At,"px"):At}var $e=navigator.platform.toUpperCase().indexOf("MAC")>=0,Pe=$e?"Cmd":"Ctrl",je=["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"],Ne=(Ke={},Object(m.a)(Ke,Pe+"-B","bold"),Object(m.a)(Ke,Pe+"-I","italic"),Ke),et=(ze={},Object(m.a)(ze,W,"\u6DFB\u52A0\u94FE\u63A5"),Object(m.a)(ze,ne,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(m.a)(ze,de,"\u6DFB\u52A0\u6587\u4EF6"),Object(m.a)(ze,le,"\u6DFB\u52A0\u8868\u683C"),ze),mt=we.a=function(At){var Ut=At.defaultValue,Xt=Ut===void 0?"":Ut,un=At.onChange,jt=At.width,Zt=jt===void 0?"100%":jt,Mt=At.height,Tt=Mt===void 0?400:Mt,Ct=At.miniToolbar,Re=Ct===void 0?!1:Ct,We=At.isFocus,St=We===void 0?!1:We,ft=At.watch,It=At.insertTemp,Ot=At.mode,bt=Ot===void 0?"markdown":Ot,Ht=At.id,Gt=Ht===void 0?"markdown-editor-id":Ht,xn=At.showResizeBar,vn=xn===void 0?!1:xn,sr=At.noStorage,xr=sr===void 0?!1:sr,Kn=At.showNullButton,En=Kn===void 0?!1:Kn,Qr=At.hidetoolBar,sa=Qr===void 0?!1:Qr,Xr=At.fullScreen,Nr=Xr===void 0?!1:Xr,ba=At.onBlur,ja=At.onCMBeforeChange,oi=At.onFullScreen,Le=At.className,Qe=Le===void 0?"":Le,ot=At.disablePaste,_t=ot===void 0?!1:ot,Kt=At.placeholder,nn=Kt===void 0?"":Kt,ve=At.values,z=ve===void 0?"":ve,Z=Object(n.useState)(null),ye=Object(C.a)(Z,2),Ce=ye[0],be=ye[1],ht=Object(n.useState)(Xt),Nt=Object(C.a)(ht,2),sn=Nt[0],pn=Nt[1],zt=Object(n.useState)(ft),qn=Object(C.a)(zt,2),Un=qn[0],rr=qn[1],Sr=Object(n.useState)(Nr),ia=Object(C.a)(Sr,2),Dr=ia[0],na=ia[1],Tr=Object(n.useState)(""),ma=Object(C.a)(Tr,2),ha=ma[0],Oa=ma[1],xa=Object(n.useState)(0),ka=Object(C.a)(xa,2),Ha=ka[0],Ia=ka[1],Yr=Object(n.useState)(Tt),za=Object(C.a)(Yr,2),Ga=za[0],Da=za[1],si=Object(n.useState)(!1),di=Object(C.a)(si,2),Ma=di[0],zr=di[1],Ar=Object(n.useRef)(Object(F.a)()),Gr=Object(n.useRef)(!1),qr=Object(n.useRef)(),_a=Object(n.useRef)(),Jr=Object(n.useRef)(),ji=Object(n.useRef)(),Fa=Object(n.useRef)(),vi=function(){var kn=Object(_.a)(r.a.mark(function Cr(){var gr,Vr;return r.a.wrap(function(Sa){for(;;)switch(Sa.prev=Sa.next){case 0:return Sa.next=2,Object(re.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Ar.current}});case 2:Vr=Sa.sent,Vr!=null&&(gr=Vr.attachments)!==null&&gr!==void 0&&gr.length&&(console.log("cm:",Ce,_a),Vr.attachments.map(function(la){la.content_type.indexOf("image")>-1?Ce.replaceSelection("![,](/api/attachments/".concat(la.id,"?type=").concat(la.content_type,")")):la.content_type.indexOf("video")>-1?Ce.replaceSelection('<video width="100%" controls src="'.concat(x.a.API_SERVER,"/api/attachments/").concat(data.id,'"></video>')):la.content_type.indexOf("pdf")>-1?Ce.replaceSelection('<a href="'.concat(x.a.API_SERVER,"/api/attachments/").concat(la.id,"?type=").concat(la.content_type,'&disposition=inline" target="_blank">').concat(la.name,"</a>")):Ce.replaceSelection("[".concat(la.name,"](").concat(x.a.API_SERVER,"/api/attachments/").concat(la.id,"?type=").concat(la.content_type,")"))}));case 4:case"end":return Sa.stop()}},Cr)}));return function(){return kn.apply(this,arguments)}}();Object(n.useEffect)(function(){pn(z),Ce==null||Ce.setValue(z)},[z]),Object(n.useEffect)(function(){oi==null||oi(Dr)},[Dr]),Object(n.useEffect)(function(){if(_a.current){var kn=u.a.fromTextArea(_a.current,{mode:bt,lineNumbers:!Re,lineWrapping:!0,value:Xt,autoCloseTags:!0,autoCloseBrackets:!0});St&&kn.focus();function Cr(gr,Vr){if(_t){Vr.preventDefault();return}var Aa=Vr.clipboardData;if(Aa){var Sa=Aa.types.toString(),la=Aa.items;if(Sa==="Files"||Aa.types.indexOf("Files")>-1){if(Vr.preventDefault(),bt=="stex")return;try{var Ai,Hi=la[1];((Ai=la[0])===null||Ai===void 0?void 0:Ai.kind)==="file"&&(Hi=la[0]);var ra=Hi.getAsFile(),zo=ra.name.split(".").pop();he(ra,function(fa){if(fa.id){var Si,uo,Gi;(ra==null||((Si=ra.type)===null||Si===void 0)?void 0:Si.indexOf("image"))>-1?kn.replaceSelection("![,](/api/attachments/".concat(fa.id,"?type=").concat(fa.content_type,")")):(ra==null||((uo=ra.type)===null||uo===void 0)?void 0:uo.indexOf("video"))>-1?kn.replaceSelection('<video width="100%" controls src="'.concat(x.a.API_SERVER,"/api/attachments/").concat(fa.id,'"></video>')):(ra==null||((Gi=ra.type)===null||Gi===void 0)?void 0:Gi.indexOf("pdf"))>-1?kn.replaceSelection('<a href="'.concat(x.a.API_SERVER,"/api/attachments/").concat(fa.id,"?type=").concat(ra.type,'&disposition=inline" target="_blank">').concat(ra.name,"</a>")):je.includes(zo)?kn.replaceSelection('<a href="'.concat(x.a.API_SERVER,"/api/attachments/").concat(fa.id,'?type=office&disposition=inline" target="_blank">').concat(ra.name,"</a>")):kn.replaceSelection("[".concat(ra.name,"](").concat(x.a.API_SERVER,"/api/attachments/").concat(fa.id,"?type=").concat(fa.content_type,")"))}else(fa==null?void 0:fa.status)===401&&(document.location.href="/user/login")})}catch(fa){E.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return kn.on("paste",Cr),kn.on("dragleave",function(gr,Vr){Jr.current.classList.remove("mouse-hover-md")}),kn.on("dragover",function(gr,Vr){Jr.current.classList.add("mouse-hover-md")}),kn.on("drop",function(gr,Vr){Jr.current.classList.add("mouse-hover-md");var Aa;if(Aa=Vr.dataTransfer.files,Aa.length>0){Vr.preventDefault(),Vr.stopPropagation();for(var Sa=function(Hi){var ra=Aa[Hi],zo=ra.name.split(".").pop();he(ra,function(fa){if(fa.id){var Si,uo,Gi;(ra==null||((Si=ra.type)===null||Si===void 0)?void 0:Si.indexOf("image"))>-1?kn.replaceSelection("![,](/api/attachments/".concat(fa.id,"?type=").concat(fa.content_type,")")):(ra==null||((uo=ra.type)===null||uo===void 0)?void 0:uo.indexOf("video"))>-1?kn.replaceSelection('<video width="100%" controls src="'.concat(x.a.API_SERVER,"/api/attachments/").concat(fa.id,'"></video>')):(ra==null||((Gi=ra.type)===null||Gi===void 0)?void 0:Gi.indexOf("pdf"))>-1?kn.replaceSelection('<a href="'.concat(x.a.API_SERVER,"/api/attachments/").concat(fa.id,"?type=").concat(ra.type,'&disposition=inline" target="_blank">').concat(ra.name,"</a>")):je.includes(zo)?kn.replaceSelection('<a href="'.concat(x.a.API_SERVER,"/api/attachments/").concat(fa.id,'?type=office&disposition=inline" target="_blank">').concat(ra.name,"</a>")):kn.replaceSelection("[".concat(ra.name,"](").concat(x.a.API_SERVER,"/api/attachments/").concat(fa.id,"?type=").concat(fa.content_type,")"))}else(fa==null?void 0:fa.status)===401&&(document.location.href="/user/login")})},la=0;la<Aa.length;la++)Sa(la)}}),be(kn),function(){kn.off("paste",Cr)}}},[]);var vo=Object(n.useCallback)(function(){if(Jr.current)try{}catch(kn){console.log(kn,"---- to set md editor body height")}},[Ga,Jr,Dr]);Object(n.useEffect)(function(){function kn(){var gr=new o.default(function(Vr){var Aa=Object(P.a)(Vr),Sa;try{for(Aa.s();!(Sa=Aa.n()).done;){var la=Sa.value;(la.target.offsetHeight>0||la.target.offsetWidth>0)&&(vo(),Ce.setSize("100%","100%"),Ce.refresh())}}catch(Ai){Aa.e(Ai)}finally{Aa.f()}});return gr.observe(_a.current.parentElement),gr}if(Ce){var Cr=kn();return function(){Cr.unobserve(_a.current.parentElement)}}},[Ce,vo]),Object(n.useEffect)(function(){if(Ce){for(var kn=[],Cr=function(){var la=Vr[gr];Aa=Object(C.a)(la,2);var Ai=Aa[0],Hi=Aa[1],ra=Object(m.a)({},Ai,function(){Wo(Hi)});kn.push(ra),Ce.addKeyMap(ra)},gr=0,Vr=Object.entries(Ne);gr<Vr.length;gr++){var Aa;Cr()}return qr.current=setInterval(function(){Gr.current&&vi()},4e3),function(){clearInterval(qr.current);var Sa=Object(P.a)(kn),la;try{for(Sa.s();!(la=Sa.n()).done;){var Ai=la.value;Ce.removeKeyMap(Ai)}}catch(Hi){Sa.e(Hi)}finally{Sa.f()}}}},[Ce]),Object(n.useEffect)(function(){Nr!==Dr&&na(Nr)},[Nr]),Object(xt.a)(function(){if(!xr&&Ha>0){var kn=new Date().getTime(),Cr=window.sessionStorage.getItem(Gt);kn>=Ha+ct&&(!Cr||Cr!==sn)&&(window.sessionStorage.setItem(Gt,sn),zr(!0))}},ct),Object(n.useEffect)(function(){rr(ft)},[Ce,ft]),Object(n.useEffect)(function(){Ce&&(St&&Ce.focus())},[Ce,St]),Object(n.useEffect)(function(){if(Un&&Ce){var kn=Ce.getScrollerElement();function Cr(gr){var Vr=gr.target;if(Fa.current){var Aa=Vr.scrollTop/Vr.scrollHeight;Fa.current.scrollTop=Fa.current.scrollHeight*Aa}}return kn.addEventListener("scroll",Cr),function(){kn.removeEventListener("scroll",Cr)}}},[Ce,Un]),Object(n.useEffect)(function(){if(Ce&&ja){function kn(Cr,gr){ja(Cr,gr)}return Ce.on("beforeChange",kn),function(){Ce.off("beforeChange",kn)}}},[Ce,ja]),Object(n.useEffect)(function(){if(Ce&&ba){function kn(){ba(Ce.getValue())}return Ce.on("blur",kn),function(){Ce.off("blur",kn)}}},[Ce,ba]),Object(n.useEffect)(function(){if(Ce){function kn(Cr){var gr=Cr.getValue();pn(gr),Ia(new Date().getTime()),Cr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),un&&un(gr)}return Ce.on("change",kn),function(){Ce.off("change",kn)}}},[Ce,un]),Object(n.useEffect)(function(){Ce&&(Xt==null?(Ce.setValue(""),pn("")):Xt!==Ce.getValue()&&(Ce.setValue(Xt),pn(Xt),Ce.setCursor(Ce.lineCount(),0)))},[Ce,Xt]);var Wo=Object(n.useCallback)(function(kn){var Cr=Ce.getCursor(),gr=Ce.getSelection(),Vr=gr.split(`
`);switch(kn){case"bold":return Ce.replaceSelection("**"+gr+"**"),gr===""&&Ce.setCursor(Cr.line,Cr.ch+2),Ce.focus();case"italic":return Ce.replaceSelection("*"+gr+"*"),gr===""&&Ce.setCursor(Cr.line,Cr.ch+1),Ce.focus();case"code":return Ce.replaceSelection("`"+gr+"`"),gr===""&&Ce.setCursor(Cr.line,Cr.ch+1),Ce.focus();case"inline-latex":return Ce.replaceSelection("`$$"+gr+"$$`"),gr===""&&Ce.setCursor(Cr.line,Cr.ch+3),Ce.focus();case"latex":return Ce.replaceSelection("```latex\n"+gr+"\n```"),Ce.setCursor(Cr.line+1,gr.length+1),Ce.focus();case"line-break":return Ce.replaceSelection(`<br/>
`),Ce.focus();case"list-ul":return gr===""?Ce.replaceSelection("- "+gr):Ce.replaceSelection(Vr.map(function(Aa){return Aa===""?"":"- ".concat(Aa)}).join(`
`)),Ce.focus();case"list-ol":return gr===""?Ce.replaceSelection("1. "+gr):Ce.replaceSelection(Vr.map(function(Aa,Sa){return Aa===""?"":"".concat(Sa+1,". ").concat(Aa)}).join(`
`)),Ce.focus();case"add-null-ch":return gr===""&&Ce.setCursor(Cr.line,Cr.ch+1),Ce.replaceSelection(lt),Ce.focus();case"inster-template-1":return gr===""&&Ce.setCursor(Cr.line,Cr.ch),Ce.replaceSelection(rt),Ce.focus();case"eraser":return Ce.setValue(""),Ce.focus();case"trigger-watch":return rr(!Un),Ce.focus();case"trigger-full-screen":return na(!Dr),Ce.focus();case W:Oa(W);return;case ne:Oa(ne);return;case de:Oa(de);return;case le:Oa(le);return;default:throw new Error}},[Ce,Un,Dr]),Ca=Object(n.useCallback)(function(kn){Oa("");switch(ha){case W:var Cr=kn.title,gr=kn.link;return Ce.replaceSelection("[".concat(Cr,"](").concat(gr,")")),Ce.focus();case ne:var Vr=kn.language,Aa=kn.content;return Ce.replaceSelection(["```"+Vr,Aa,"```"].join(`
`)),Ce.focus();case de:var Sa=kn.src,la=kn.alt,Ai=kn.name;return Sa.indexOf("type=image")>-1?Ce.replaceSelection("![ ".concat(la||""," ]( ").concat(Sa,' "').concat(la||"",'" )')):Sa.indexOf("type=application/pdf")>-1?Ce.replaceSelection('<a href="'.concat(Sa,'&disposition=inline" target="_blank">').concat(Ai,"</a>")):Ce.replaceSelection('<a href="'.concat(Sa,'" target="_blank">').concat(Ai,"</a>")),Ce.focus();case le:for(var Hi=kn.row,ra=kn.col,zo=kn.align,fa=`
`,Si=0;Si<Hi;Si++){for(var uo=[],Gi=[],va=0;va<ra;va++)Si===1&&Gi.push(Xe[zo]),uo.push(" ");Si===1&&(fa+="| ".concat(Gi.join(" | "),` |
`)),fa+="| ".concat(uo.join(ra===1?"":" | "),` |
`)}return Ce.replaceSelection(fa+`
`),Ce.focus();default:throw new Error}},[Ce,ha]),Ro=Object(n.useMemo)(function(){switch(ha){case W:return e.a.createElement(Q,{callback:Ca,onCancel:hi});case ne:return e.a.createElement(X.b,{callback:Ca,onCancel:hi});case de:return e.a.createElement(Ee,{callback:Ca,onCancel:hi});case le:return e.a.createElement(ke,{callback:Ca,onCancel:hi});default:return null}},[ha]);function hi(){Oa("")}Object(n.useEffect)(function(){if(ji.current){var kn=ji.current,Cr=!1,gr=0;function Vr(la){Cr=!0,gr=la.pageY}function Aa(){Cr=!1}function Sa(la){if(Cr){var Ai=la.pageY-gr;Ai<0&&(Ai=0),Ai>300&&(Ai=300);var Hi=Tt+Ai+"px";Da(Hi)}}return kn.addEventListener("mousedown",Vr),document.addEventListener("mousemove",Sa),document.addEventListener("mouseup",Aa),function(){kn.removeEventListener("mousedown",Vr),document.removeEventListener("mousemove",Sa),document.removeEventListener("mouseup",Aa)}}},[Ce,ji]),Object(n.useEffect)(function(){Da(Tt)},[Tt]);var os=qe(Zt),eo=qe(Ga),ss={width:os,height:eo},Jo=Object(n.useMemo)(function(){if(Ha){var kn=new Date(Ha),Cr=kn.getHours(),gr=kn.getMinutes(),Vr=kn.getSeconds();return Cr=Cr<10?"0"+Cr:Cr,gr=gr<10?"0"+gr:gr,Vr=Vr<10?"0"+Vr:Vr,"".concat(Cr,":").concat(gr,":").concat(Vr)}return 0},[Ha]);function Ui(){window.sessionStorage.removeItem(Gt),zr(!1),Ia(0)}function Zo(){zr(!1),Ia(0),Ce.setValue(window.sessionStorage.getItem(Gt))}function ps(kn,Cr){var gr=Ce.getValue();gr=gr.replace(kn,Cr),pn(gr),Ce==null||Ce.setValue(gr)}return e.a.createElement(n.Fragment,null,e.a.createElement("div",{className:"markdown-editor-wrapper",ref:Jr},e.a.createElement("div",{className:"markdown-editor-container ".concat(Qe," ").concat(Un?"on-preview":""," ").concat(Re?"mini":""," ").concat(Dr?"full-screen":""),style:ss},e.a.createElement(D,{insertTemp:It,watch:Un,fullScreen:Dr,showNullButton:En,onActionCallback:Wo,hidetoolBar:sa,uuid:Ar.current,setOpenPhones:function(){Gr.current=!0}}),e.a.createElement("div",{className:"markdown-editor-body"},e.a.createElement("div",{className:"codemirror-container"},e.a.createElement("textarea",{ref:_a,placeholder:nn})),Un?e.a.createElement("div",{ref:Fa,className:"preview-container"},bt==="stex"&&e.a.createElement(B,{value:sn}),bt!=="stex"&&e.a.createElement(w.a,{edit:!0,value:sn,replaces:ps})):null))),vn?e.a.createElement("a",{ref:ji,className:"editor-resize"}):null,e.a.createElement(R.a,null,et[ha]?e.a.createElement(Y.a,{centered:!0,title:et[ha],visible:!0,onCancel:hi,footer:null},Ro):null))}},P47w:function(Ze,we,M){var ue=M("hydK"),Y=ue.createElement,P=M("IMiH"),y=M("mFDi"),E=M("Fofx"),_=M("6GrX"),C=M("pzxd"),m=M("dqUG"),c=P.CMD,r=Array.prototype.join,n="none",e=Math.round,s=Math.sin,u=Math.cos,o=Math.PI,f=Math.PI*2,d=180/o,a=1e-4;function h(N){return e(N*1e4)/1e4}function g(N){return N<a&&N>-a}function p(N,Q){var X=Q?N.textFill:N.fill;return X!=null&&X!==n}function S(N,Q){var X=Q?N.textStroke:N.stroke;return X!=null&&X!==n}function w(N,Q){Q&&B(N,"transform","matrix("+r.call(Q,",")+")")}function B(N,Q,X){(!X||X.type!=="linear"&&X.type!=="radial")&&N.setAttribute(Q,X)}function b(N,Q,X){N.setAttributeNS("http://www.w3.org/1999/xlink",Q,X)}function A(N,Q,X,te){if(p(Q,X)){var oe=X?Q.textFill:Q.fill;oe=oe==="transparent"?n:oe,B(N,"fill",oe),B(N,"fill-opacity",Q.fillOpacity!=null?Q.fillOpacity*Q.opacity:Q.opacity)}else B(N,"fill",n);if(S(Q,X)){var me=X?Q.textStroke:Q.stroke;me=me==="transparent"?n:me,B(N,"stroke",me);var se=X?Q.textStrokeWidth:Q.lineWidth,_e=!X&&Q.strokeNoScale?te.getLineScale():1;B(N,"stroke-width",se/_e),B(N,"paint-order",X?"stroke":"fill"),B(N,"stroke-opacity",Q.strokeOpacity!=null?Q.strokeOpacity:Q.opacity);var Ae=Q.lineDash;Ae?(B(N,"stroke-dasharray",Q.lineDash.join(",")),B(N,"stroke-dashoffset",e(Q.lineDashOffset||0))):B(N,"stroke-dasharray",""),Q.lineCap&&B(N,"stroke-linecap",Q.lineCap),Q.lineJoin&&B(N,"stroke-linejoin",Q.lineJoin),Q.miterLimit&&B(N,"stroke-miterlimit",Q.miterLimit)}else B(N,"stroke",n)}function l(N){for(var Q=[],X=N.data,te=N.len(),oe=0;oe<te;){var me=X[oe++],se="",_e=0;switch(me){case c.M:se="M",_e=2;break;case c.L:se="L",_e=2;break;case c.Q:se="Q",_e=4;break;case c.C:se="C",_e=6;break;case c.A:var Ae=X[oe++],Ee=X[oe++],pe=X[oe++],he=X[oe++],ie=X[oe++],fe=X[oe++],ge=X[oe++],ce=X[oe++],Ie=Math.abs(fe),Fe=g(Ie-f)||(ce?fe>=f:-fe>=f),ke=fe>0?fe%f:fe%f+f,re=!1;Fe?re=!0:g(Ie)?re=!1:re=ke>=o===!!ce;var F=h(Ae+pe*u(ie)),W=h(Ee+he*s(ie));Fe&&(ce?fe=f-1e-4:fe=-f+1e-4,re=!0,oe===9&&Q.push("M",F,W));var de=h(Ae+pe*u(ie+fe)),ne=h(Ee+he*s(ie+fe));Q.push("A",h(pe),h(he),e(ge*d),+re,+ce,de,ne);break;case c.Z:se="Z";break;case c.R:var de=h(X[oe++]),ne=h(X[oe++]),le=h(X[oe++]),De=h(X[oe++]);Q.push("M",de,ne,"L",de+le,ne,"L",de+le,ne+De,"L",de,ne+De,"L",de,ne);break}se&&Q.push(se);for(var Xe=0;Xe<_e;Xe++)Q.push(h(X[oe++]))}return Q.join(" ")}var i={};i.brush=function(N){var Q=N.style,X=N.__svgEl;X||(X=Y("path"),N.__svgEl=X),N.path||N.createPathProxy();var te=N.path;if(N.__dirtyPath){te.beginPath(),te.subPixelOptimize=!1,N.buildPath(te,N.shape),N.__dirtyPath=!1;var oe=l(te);oe.indexOf("NaN")<0&&B(X,"d",oe)}A(X,Q,!1,N),w(X,N.transform),Q.text!=null?H(N,N.getBoundingRect()):G(N)};var x={};x.brush=function(N){var Q=N.style,X=Q.image;if(X instanceof HTMLImageElement){var te=X.src;X=te}if(!X)return;var oe=Q.x||0,me=Q.y||0,se=Q.width,_e=Q.height,Ae=N.__svgEl;Ae||(Ae=Y("image"),N.__svgEl=Ae),X!==N.__imageSrc&&(b(Ae,"href",X),N.__imageSrc=X),B(Ae,"width",se),B(Ae,"height",_e),B(Ae,"x",oe),B(Ae,"y",me),w(Ae,N.transform),Q.text!=null?H(N,N.getBoundingRect()):G(N)};var O={},T=new y,D={},R=[],k={left:"start",right:"end",center:"middle",middle:"middle"},H=function(N,Q){var X=N.style,te=N.transform,oe=N instanceof m||X.transformText;N.__dirty&&C.normalizeTextStyle(X,!0);var me=X.text;if(me!=null&&(me+=""),!C.needDrawText(me,X))return;me==null&&(me=""),!oe&&te&&(T.copy(Q),T.applyTransform(te),Q=T);var se=N.__textSvgEl;se||(se=Y("text"),N.__textSvgEl=se);var _e=se.style,Ae=X.font||_.DEFAULT_FONT,Ee=se.__computedFont;Ae!==se.__styleFont&&(_e.font=se.__styleFont=Ae,Ee=se.__computedFont=_e.font);var pe=X.textPadding,he=X.textLineHeight,ie=N.__textCotentBlock;(!ie||N.__dirtyText)&&(ie=N.__textCotentBlock=_.parsePlainText(me,Ee,pe,he,X.truncate));var fe=ie.outerHeight,ge=ie.lineHeight;C.getBoxPosition(D,N,X,Q);var ce=D.baseX,Ie=D.baseY,Fe=D.textAlign||"left",ke=D.textVerticalAlign;J(se,oe,te,X,Q,ce,Ie);var re=_.adjustTextY(Ie,fe,ke),F=ce,W=re;pe&&(F=U(ce,Fe,pe),W+=pe[0]),W+=ge/2,A(se,X,!0,N);var de=ie.canCacheByTextString,ne=N.__tspanList||(N.__tspanList=[]),le=ne.length;if(de&&N.__canCacheByTextString&&N.__text===me){if(N.__dirtyText&&le)for(var De=0;De<le;++De)K(ne[De],Fe,F,W+De*ge)}else{N.__text=me,N.__canCacheByTextString=de;for(var Xe=ie.lines,xt=Xe.length,De=0;De<xt;De++){var Ke=ne[De],ze=Xe[De];Ke?Ke.__zrText!==ze&&(Ke.innerHTML="",Ke.appendChild(document.createTextNode(ze))):(Ke=ne[De]=Y("tspan"),se.appendChild(Ke),Ke.appendChild(document.createTextNode(ze))),K(Ke,Fe,F,W+De*ge)}if(le>xt){for(;De<le;De++)se.removeChild(ne[De]);ne.length=xt}}};function J(N,Q,X,te,oe,me,se){E.identity(R),Q&&X&&E.copy(R,X);var _e=te.textRotation;if(oe&&_e){var Ae=te.textOrigin;Ae==="center"?(me=oe.width/2+oe.x,se=oe.height/2+oe.y):Ae&&(me=Ae[0]+oe.x,se=Ae[1]+oe.y),R[4]-=me,R[5]-=se,E.rotate(R,R,_e),R[4]+=me,R[5]+=se}w(N,R)}function U(N,Q,X){return Q==="right"?N-X[1]:Q==="center"?N+X[3]/2-X[1]/2:N+X[3]}function K(N,Q,X,te){B(N,"dominant-baseline","middle"),B(N,"text-anchor",k[Q]),B(N,"x",X),B(N,"y",te)}function G(N){N&&N.__textSvgEl&&(N.__textSvgEl.parentNode&&N.__textSvgEl.parentNode.removeChild(N.__textSvgEl),N.__textSvgEl=null,N.__tspanList=[],N.__text=null)}O.drawRectText=H,O.brush=function(N){var Q=N.style;Q.text!=null?H(N,!1):G(N)},we.path=i,we.image=x,we.text=O},P4Qj:function(Ze,we,M){"use strict";Object.defineProperty(we,"__esModule",{value:!0}),we.removeSensor=we.getSensor=void 0;var ue=y(M("chpo")),Y=M("FxDU"),P=M("24YM");function y(m){return m&&m.__esModule?m:{default:m}}var E={},_=function(c){var r=c.getAttribute(P.SizeSensorId);if(r&&E[r])return E[r];var n=(0,ue.default)();c.setAttribute(P.SizeSensorId,n);var e=(0,Y.createSensor)(c);return E[n]=e,e};we.getSensor=_;var C=function(c){var r=c.element.getAttribute(P.SizeSensorId);c.element.removeAttribute(P.SizeSensorId),c.destroy(),r&&E[r]&&delete E[r]};we.removeSensor=C},QBsz:function(Ze,we){var M=typeof Float32Array=="undefined"?Array:Float32Array;function ue(A,l){var i=new M(2);return A==null&&(A=0),l==null&&(l=0),i[0]=A,i[1]=l,i}function Y(A,l){return A[0]=l[0],A[1]=l[1],A}function P(A){var l=new M(2);return l[0]=A[0],l[1]=A[1],l}function y(A,l,i){return A[0]=l,A[1]=i,A}function E(A,l,i){return A[0]=l[0]+i[0],A[1]=l[1]+i[1],A}function _(A,l,i,x){return A[0]=l[0]+i[0]*x,A[1]=l[1]+i[1]*x,A}function C(A,l,i){return A[0]=l[0]-i[0],A[1]=l[1]-i[1],A}function m(A){return Math.sqrt(r(A))}var c=m;function r(A){return A[0]*A[0]+A[1]*A[1]}var n=r;function e(A,l,i){return A[0]=l[0]*i[0],A[1]=l[1]*i[1],A}function s(A,l,i){return A[0]=l[0]/i[0],A[1]=l[1]/i[1],A}function u(A,l){return A[0]*l[0]+A[1]*l[1]}function o(A,l,i){return A[0]=l[0]*i,A[1]=l[1]*i,A}function f(A,l){var i=m(l);return i===0?(A[0]=0,A[1]=0):(A[0]=l[0]/i,A[1]=l[1]/i),A}function d(A,l){return Math.sqrt((A[0]-l[0])*(A[0]-l[0])+(A[1]-l[1])*(A[1]-l[1]))}var a=d;function h(A,l){return(A[0]-l[0])*(A[0]-l[0])+(A[1]-l[1])*(A[1]-l[1])}var g=h;function p(A,l){return A[0]=-l[0],A[1]=-l[1],A}function S(A,l,i,x){return A[0]=l[0]+x*(i[0]-l[0]),A[1]=l[1]+x*(i[1]-l[1]),A}function w(A,l,i){var x=l[0],O=l[1];return A[0]=i[0]*x+i[2]*O+i[4],A[1]=i[1]*x+i[3]*O+i[5],A}function B(A,l,i){return A[0]=Math.min(l[0],i[0]),A[1]=Math.min(l[1],i[1]),A}function b(A,l,i){return A[0]=Math.max(l[0],i[0]),A[1]=Math.max(l[1],i[1]),A}we.create=ue,we.copy=Y,we.clone=P,we.set=y,we.add=E,we.scaleAndAdd=_,we.sub=C,we.len=m,we.length=c,we.lenSquare=r,we.lengthSquare=n,we.mul=e,we.div=s,we.dot=u,we.scale=o,we.normalize=f,we.distance=d,we.dist=a,we.distanceSquare=h,we.distSquare=g,we.negate=p,we.lerp=S,we.applyTransform=w,we.min=B,we.max=b},"QO+J":function(Ze,we,M){"use strict";Object.defineProperty(we,"__esModule",{value:!0}),we.createSensor=void 0;var ue=P(M("NohK")),Y=M("24YM");function P(E){return E&&E.__esModule?E:{default:E}}var y=function(_){var C=void 0,m=[],c=function(){getComputedStyle(_).position==="static"&&(_.style.position="relative");var o=document.createElement("object");return o.onload=function(){o.contentDocument.defaultView.addEventListener("resize",r),r()},o.style.display="block",o.style.position="absolute",o.style.top="0",o.style.left="0",o.style.height="100%",o.style.width="100%",o.style.overflow="hidden",o.style.pointerEvents="none",o.style.zIndex="-1",o.style.opacity="0",o.setAttribute("class",Y.SensorClassName),o.setAttribute("tabindex",Y.SensorTabIndex),o.type="text/html",_.appendChild(o),o.data="about:blank",o},r=(0,ue.default)(function(){m.forEach(function(u){u(_)})}),n=function(o){C||(C=c()),m.indexOf(o)===-1&&m.push(o)},e=function(){C&&C.parentNode&&(C.contentDocument&&C.contentDocument.defaultView.removeEventListener("resize",r),C.parentNode.removeChild(C),C=void 0,m=[])},s=function(o){var f=m.indexOf(o);f!==-1&&m.splice(f,1),m.length===0&&C&&e()};return{element:_,bind:n,destroy:e,unbind:s}};we.createSensor=y},QcdW:function(Ze,we,M){},Qe9p:function(Ze,we,M){var ue=M("1RvN"),Y={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 P(l){return l=Math.round(l),l<0?0:l>255?255:l}function y(l){return l=Math.round(l),l<0?0:l>360?360:l}function E(l){return l<0?0:l>1?1:l}function _(l){return l.length&&l.charAt(l.length-1)==="%"?P(parseFloat(l)/100*255):P(parseInt(l,10))}function C(l){return l.length&&l.charAt(l.length-1)==="%"?E(parseFloat(l)/100):E(parseFloat(l))}function m(l,i,x){return x<0?x+=1:x>1&&(x-=1),x*6<1?l+(i-l)*x*6:x*2<1?i:x*3<2?l+(i-l)*(2/3-x)*6:l}function c(l,i,x){return l+(i-l)*x}function r(l,i,x,O,T){return l[0]=i,l[1]=x,l[2]=O,l[3]=T,l}function n(l,i){return l[0]=i[0],l[1]=i[1],l[2]=i[2],l[3]=i[3],l}var e=new ue(20),s=null;function u(l,i){s&&n(s,i),s=e.put(l,s||i.slice())}function o(l,i){if(!l)return;i=i||[];var x=e.get(l);if(x)return n(i,x);l=l+"";var O=l.replace(/ /g,"").toLowerCase();if(O in Y)return n(i,Y[O]),u(l,i),i;if(O.charAt(0)==="#"){if(O.length===4){var T=parseInt(O.substr(1),16);if(!(T>=0&&T<=4095)){r(i,0,0,0,1);return}return r(i,(T&3840)>>4|(T&3840)>>8,T&240|(T&240)>>4,T&15|(T&15)<<4,1),u(l,i),i}else if(O.length===7){var T=parseInt(O.substr(1),16);if(!(T>=0&&T<=16777215)){r(i,0,0,0,1);return}return r(i,(T&16711680)>>16,(T&65280)>>8,T&255,1),u(l,i),i}return}var D=O.indexOf("("),R=O.indexOf(")");if(D!==-1&&R+1===O.length){var k=O.substr(0,D),H=O.substr(D+1,R-(D+1)).split(","),J=1;switch(k){case"rgba":if(H.length!==4){r(i,0,0,0,1);return}J=C(H.pop());case"rgb":if(H.length!==3){r(i,0,0,0,1);return}return r(i,_(H[0]),_(H[1]),_(H[2]),J),u(l,i),i;case"hsla":if(H.length!==4){r(i,0,0,0,1);return}return H[3]=C(H[3]),f(H,i),u(l,i),i;case"hsl":if(H.length!==3){r(i,0,0,0,1);return}return f(H,i),u(l,i),i;default:return}}r(i,0,0,0,1);return}function f(l,i){var x=(parseFloat(l[0])%360+360)%360/360,O=C(l[1]),T=C(l[2]),D=T<=.5?T*(O+1):T+O-T*O,R=T*2-D;return i=i||[],r(i,P(m(R,D,x+1/3)*255),P(m(R,D,x)*255),P(m(R,D,x-1/3)*255),1),l.length===4&&(i[3]=l[3]),i}function d(l){if(!l)return;var i=l[0]/255,x=l[1]/255,O=l[2]/255,T=Math.min(i,x,O),D=Math.max(i,x,O),R=D-T,k=(D+T)/2,H,J;if(R===0)H=0,J=0;else{k<.5?J=R/(D+T):J=R/(2-D-T);var U=((D-i)/6+R/2)/R,K=((D-x)/6+R/2)/R,G=((D-O)/6+R/2)/R;i===D?H=G-K:x===D?H=1/3+U-G:O===D&&(H=2/3+K-U),H<0&&(H+=1),H>1&&(H-=1)}var N=[H*360,J,k];return l[3]!=null&&N.push(l[3]),N}function a(l,i){var x=o(l);if(x){for(var O=0;O<3;O++)i<0?x[O]=x[O]*(1-i)|0:x[O]=(255-x[O])*i+x[O]|0,x[O]>255?x[O]=255:l[O]<0&&(x[O]=0);return A(x,x.length===4?"rgba":"rgb")}}function h(l){var i=o(l);if(i)return((1<<24)+(i[0]<<16)+(i[1]<<8)+ +i[2]).toString(16).slice(1)}function g(l,i,x){if(!(i&&i.length)||!(l>=0&&l<=1))return;x=x||[];var O=l*(i.length-1),T=Math.floor(O),D=Math.ceil(O),R=i[T],k=i[D],H=O-T;return x[0]=P(c(R[0],k[0],H)),x[1]=P(c(R[1],k[1],H)),x[2]=P(c(R[2],k[2],H)),x[3]=E(c(R[3],k[3],H)),x}var p=g;function S(l,i,x){if(!(i&&i.length)||!(l>=0&&l<=1))return;var O=l*(i.length-1),T=Math.floor(O),D=Math.ceil(O),R=o(i[T]),k=o(i[D]),H=O-T,J=A([P(c(R[0],k[0],H)),P(c(R[1],k[1],H)),P(c(R[2],k[2],H)),E(c(R[3],k[3],H))],"rgba");return x?{color:J,leftIndex:T,rightIndex:D,value:O}:J}var w=S;function B(l,i,x,O){if(l=o(l),l)return l=d(l),i!=null&&(l[0]=y(i)),x!=null&&(l[1]=C(x)),O!=null&&(l[2]=C(O)),A(f(l),"rgba")}function b(l,i){if(l=o(l),l&&i!=null)return l[3]=E(i),A(l,"rgba")}function A(l,i){if(!l||!l.length)return;var x=l[0]+","+l[1]+","+l[2];return(i==="rgba"||i==="hsva"||i==="hsla")&&(x+=","+l[3]),i+"("+x+")"}we.parse=o,we.lift=a,we.toHex=h,we.fastLerp=g,we.fastMapToColor=p,we.lerp=S,we.mapToColor=w,we.modifyHSL=B,we.modifyAlpha=b,we.stringify=A},QuXc:function(Ze,we){var M=function(Y){this.colorStops=Y||[]};M.prototype={constructor:M,addColorStop:function(Y,P){this.colorStops.push({offset:Y,color:P})}};var ue=M;Ze.exports=ue},RDYZ:function(Ze,we,M){var ue=M("dMvE");function Y(y){this._target=y.target,this._life=y.life||1e3,this._delay=y.delay||0,this._initialized=!1,this.loop=y.loop==null?!1:y.loop,this.gap=y.gap||0,this.easing=y.easing||"Linear",this.onframe=y.onframe,this.ondestroy=y.ondestroy,this.onrestart=y.onrestart,this._pausedTime=0,this._paused=!1}Y.prototype={constructor:Y,step:function(y,E){if(this._initialized||(this._startTime=y+this._delay,this._initialized=!0),this._paused){this._pausedTime+=E;return}var _=(y-this._startTime-this._pausedTime)/this._life;if(_<0)return;_=Math.min(_,1);var C=this.easing,m=typeof C=="string"?ue[C]:C,c=typeof m=="function"?m(_):_;return this.fire("frame",c),_===1?this.loop?(this.restart(y),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(y){var E=(y-this._startTime-this._pausedTime)%this._life;this._startTime=y-E+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(y,E){y="on"+y,this[y]&&this[y](this._target,E)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var P=Y;Ze.exports=P},RMFE:function(Ze,we){Ze.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(Ze,we,M){var ue=M("y+Vt"),Y=ue.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(P,y){var E=y.cx,_=y.cy,C=Math.PI*2;P.moveTo(E+y.r,_),P.arc(E,_,y.r,0,C,!1),P.moveTo(E+y.r0,_),P.arc(E,_,y.r0,0,C,!0)}});Ze.exports=Y},RotF:function(Ze,we,M){Ze.exports=M("LSTS")},RxwV:function(Ze,we,M){"use strict";var ue=M("q1tI"),Y=M("uciX"),P=M("2W6z"),y=M.n(P),E=M("4IlW"),_=M("uK0f"),C=M.n(_);function m(se,_e){if(se===_e)return!0;if(!se||!_e)return!1;var Ae=se.length;if(_e.length!==Ae)return!1;for(var Ee=0;Ee<Ae;Ee++)if(se[Ee]!==_e[Ee])return!1;return!0}function c(se){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?c=function(Ae){return typeof Ae}:c=function(Ae){return Ae&&typeof Symbol=="function"&&Ae.constructor===Symbol&&Ae!==Symbol.prototype?"symbol":typeof Ae},c(se)}function r(se,_e){if(!(se instanceof _e))throw new TypeError("Cannot call a class as a function")}function n(se,_e){for(var Ae=0;Ae<_e.length;Ae++){var Ee=_e[Ae];Ee.enumerable=Ee.enumerable||!1,Ee.configurable=!0,"value"in Ee&&(Ee.writable=!0),Object.defineProperty(se,Ee.key,Ee)}}function e(se,_e,Ae){return _e&&n(se.prototype,_e),Ae&&n(se,Ae),se}function s(se,_e){if(typeof _e!="function"&&_e!==null)throw new TypeError("Super expression must either be null or a function");se.prototype=Object.create(_e&&_e.prototype,{constructor:{value:se,writable:!0,configurable:!0}}),_e&&u(se,_e)}function u(se,_e){return u=Object.setPrototypeOf||function(Ee,pe){return Ee.__proto__=pe,Ee},u(se,_e)}function o(se){var _e=a();return function(){var Ae=h(se),Ee;if(_e){var pe=h(this).constructor;Ee=Reflect.construct(Ae,arguments,pe)}else Ee=Ae.apply(this,arguments);return f(this,Ee)}}function f(se,_e){return _e&&(c(_e)==="object"||typeof _e=="function")?_e:d(se)}function d(se){if(se===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return se}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(se){return!1}}function h(se){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(Ae){return Ae.__proto__||Object.getPrototypeOf(Ae)},h(se)}var g=function(){var se=function(_e){s(Ee,_e);var Ae=o(Ee);function Ee(){var pe;return r(this,Ee),pe=Ae.apply(this,arguments),pe.menuItems={},pe.saveMenuItem=function(he){return function(ie){pe.menuItems[he]=ie}},pe}return e(Ee,[{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,fe=ie.fieldNames,ge=ie.defaultFieldNames;return fe[he]||ge[he]}},{key:"getOption",value:function(he,ie){var fe=this.props,ge=fe.prefixCls,ce=fe.expandTrigger,Ie=fe.expandIcon,Fe=fe.loadingIcon,ke=this.props.onSelect.bind(this,he,ie),re=this.props.onItemDoubleClick.bind(this,he,ie),F={onClick:ke,onDoubleClick:re},W="".concat(ge,"-menu-item"),de=null,ne=he[this.getFieldName("children")]&&he[this.getFieldName("children")].length>0;(ne||he.isLeaf===!1)&&(W+=" ".concat(ge,"-menu-item-expand"),he.loading||(de=ue.createElement("span",{className:"".concat(ge,"-menu-item-expand-icon")},Ie))),ce==="hover"&&(ne||he.isLeaf===!1)&&(F={onMouseEnter:this.delayOnSelect.bind(this,ke),onMouseLeave:this.delayOnSelect.bind(this),onClick:ke}),this.isActiveOption(he,ie)&&(W+=" ".concat(ge,"-menu-item-active"),F.ref=this.saveMenuItem(ie)),he.disabled&&(W+=" ".concat(ge,"-menu-item-disabled"));var le=null;he.loading&&(W+=" ".concat(ge,"-menu-item-loading"),le=Fe||null);var De="";return"title"in he?De=he.title:typeof he[this.getFieldName("label")]=="string"&&(De=he[this.getFieldName("label")]),ue.createElement("li",Object.assign({key:he[this.getFieldName("value")],className:W,title:De},F,{role:"menuitem",onMouseDown:function(xt){return xt.preventDefault()}}),he[this.getFieldName("label")],de,le)}},{key:"getActiveOptions",value:function(he){var ie=this,fe=this.props.options,ge=he||this.props.activeValue;return C()(fe,function(ce,Ie){return ce[ie.getFieldName("value")]===ge[Ie]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var he=this,ie=this.props.options,fe=this.getActiveOptions().map(function(ge){return ge[he.getFieldName("children")]}).filter(function(ge){return!!ge});return fe.unshift(ie),fe}},{key:"delayOnSelect",value:function(he){for(var ie=this,fe=arguments.length,ge=new Array(fe>1?fe-1:0),ce=1;ce<fe;ce++)ge[ce-1]=arguments[ce];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof he=="function"&&(this.delayTimer=window.setTimeout(function(){he(ge),ie.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var he=this.getShowOptions().length,ie=0;ie<he;ie++){var fe=this.menuItems[ie];fe&&fe.parentElement&&(fe.parentElement.scrollTop=fe.offsetTop)}}},{key:"isActiveOption",value:function(he,ie){var fe=this.props.activeValue,ge=fe===void 0?[]:fe;return ge[ie]===he[this.getFieldName("value")]}},{key:"render",value:function(){var he=this,ie=this.props,fe=ie.prefixCls,ge=ie.dropdownMenuColumnStyle;return ue.createElement("div",null,this.getShowOptions().map(function(ce,Ie){return ue.createElement("ul",{className:"".concat(fe,"-menu"),key:Ie,style:ge},ce.map(function(Fe){return he.getOption(Fe,Ie)}))}))}}]),Ee}(ue.Component);return se.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},se}(),p=g,S={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}}},w=S;function B(se){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(se)}function b(se,_e){if(se==null)return{};var Ae=A(se,_e),Ee,pe;if(Object.getOwnPropertySymbols){var he=Object.getOwnPropertySymbols(se);for(pe=0;pe<he.length;pe++){if(Ee=he[pe],_e.indexOf(Ee)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(se,Ee))continue;Ae[Ee]=se[Ee]}}return Ae}function A(se,_e){if(se==null)return{};var Ae={},Ee=Object.keys(se),pe,he;for(he=0;he<Ee.length;he++){if(pe=Ee[he],_e.indexOf(pe)>=0)continue;Ae[pe]=se[pe]}return Ae}function l(se){return T(se)||O(se)||x(se)||i()}function i(){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 x(se,_e){if(!se)return;if(typeof se=="string")return D(se,_e);var Ae=Object.prototype.toString.call(se).slice(8,-1);if(Ae==="Object"&&se.constructor&&(Ae=se.constructor.name),Ae==="Map"||Ae==="Set")return Array.from(se);if(Ae==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ae))return D(se,_e)}function O(se){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(se))return Array.from(se)}function T(se){if(Array.isArray(se))return D(se)}function D(se,_e){(_e==null||_e>se.length)&&(_e=se.length);for(var Ae=0,Ee=new Array(_e);Ae<_e;Ae++)Ee[Ae]=se[Ae];return Ee}function R(se,_e){if(!(se instanceof _e))throw new TypeError("Cannot call a class as a function")}function k(se,_e){for(var Ae=0;Ae<_e.length;Ae++){var Ee=_e[Ae];Ee.enumerable=Ee.enumerable||!1,Ee.configurable=!0,"value"in Ee&&(Ee.writable=!0),Object.defineProperty(se,Ee.key,Ee)}}function H(se,_e,Ae){return _e&&k(se.prototype,_e),Ae&&k(se,Ae),se}function J(se,_e){if(typeof _e!="function"&&_e!==null)throw new TypeError("Super expression must either be null or a function");se.prototype=Object.create(_e&&_e.prototype,{constructor:{value:se,writable:!0,configurable:!0}}),_e&&U(se,_e)}function U(se,_e){return U=Object.setPrototypeOf||function(Ee,pe){return Ee.__proto__=pe,Ee},U(se,_e)}function K(se){var _e=Q();return function(){var Ae=X(se),Ee;if(_e){var pe=X(this).constructor;Ee=Reflect.construct(Ae,arguments,pe)}else Ee=Ae.apply(this,arguments);return G(this,Ee)}}function G(se,_e){return _e&&(B(_e)==="object"||typeof _e=="function")?_e:N(se)}function N(se){if(se===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return se}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(se){return!1}}function X(se){return X=Object.setPrototypeOf?Object.getPrototypeOf:function(Ae){return Ae.__proto__||Object.getPrototypeOf(Ae)},X(se)}var te=function(){var se=function(_e){J(Ee,_e);var Ae=K(Ee);function Ee(pe){var he;R(this,Ee),he=Ae.call(this,pe),he.setPopupVisible=function(fe){var ge=he.state.value;"popupVisible"in he.props||he.setState({popupVisible:fe}),fe&&!he.state.popupVisible&&he.setState({activeValue:ge}),he.props.onPopupVisibleChange(fe)},he.handleChange=function(fe,ge,ce){var Ie=ge.visible;(ce.type!=="keydown"||ce.keyCode===E.a.ENTER)&&(he.props.onChange(fe.map(function(Fe){return Fe[he.getFieldName("value")]}),fe),he.setPopupVisible(Ie))},he.handlePopupVisibleChange=function(fe){he.setPopupVisible(fe)},he.handleMenuSelect=function(fe,ge,ce){var Ie=he.trigger.getRootDomNode();Ie&&Ie.focus&&Ie.focus();var Fe=he.props,ke=Fe.changeOnSelect,re=Fe.loadData,F=Fe.expandTrigger;if(!fe||fe.disabled)return;var W=he.state.activeValue;W=W.slice(0,ge+1),W[ge]=fe[he.getFieldName("value")];var de=he.getActiveOptions(W);if(fe.isLeaf===!1&&!fe[he.getFieldName("children")]&&re){ke&&he.handleChange(de,{visible:!0},ce),he.setState({activeValue:W}),re(de);return}var ne={};!fe[he.getFieldName("children")]||!fe[he.getFieldName("children")].length?(he.handleChange(de,{visible:!1},ce),ne.value=W):ke&&(ce.type==="click"||ce.type==="keydown")&&(F==="hover"?he.handleChange(de,{visible:!1},ce):he.handleChange(de,{visible:!0},ce),ne.value=W),ne.activeValue=W,("value"in he.props||ce.type==="keydown"&&ce.keyCode!==E.a.ENTER)&&delete ne.value,he.setState(ne)},he.handleItemDoubleClick=function(){var fe=he.props.changeOnSelect;fe&&he.setPopupVisible(!1)},he.handleKeyDown=function(fe){var ge=he.props.children;if(ge&&ge.props.onKeyDown){ge.props.onKeyDown(fe);return}var ce=l(he.state.activeValue),Ie=ce.length-1<0?0:ce.length-1,Fe=he.getCurrentLevelOptions(),ke=Fe.map(function(de){return de[he.getFieldName("value")]}).indexOf(ce[Ie]);if(fe.keyCode!==E.a.DOWN&&fe.keyCode!==E.a.UP&&fe.keyCode!==E.a.LEFT&&fe.keyCode!==E.a.RIGHT&&fe.keyCode!==E.a.ENTER&&fe.keyCode!==E.a.SPACE&&fe.keyCode!==E.a.BACKSPACE&&fe.keyCode!==E.a.ESC&&fe.keyCode!==E.a.TAB)return;if(!he.state.popupVisible&&fe.keyCode!==E.a.BACKSPACE&&fe.keyCode!==E.a.LEFT&&fe.keyCode!==E.a.RIGHT&&fe.keyCode!==E.a.ESC&&fe.keyCode!==E.a.TAB){he.setPopupVisible(!0);return}if(fe.keyCode===E.a.DOWN||fe.keyCode===E.a.UP){fe.preventDefault();var re=ke;re!==-1?fe.keyCode===E.a.DOWN?(re+=1,re=re>=Fe.length?0:re):(re-=1,re=re<0?Fe.length-1:re):re=0,ce[Ie]=Fe[re][he.getFieldName("value")]}else if(fe.keyCode===E.a.LEFT||fe.keyCode===E.a.BACKSPACE)fe.preventDefault(),ce.splice(ce.length-1,1);else if(fe.keyCode===E.a.RIGHT)fe.preventDefault(),Fe[ke]&&Fe[ke][he.getFieldName("children")]&&ce.push(Fe[ke][he.getFieldName("children")][0][he.getFieldName("value")]);else if(fe.keyCode===E.a.ESC||fe.keyCode===E.a.TAB){he.setPopupVisible(!1);return}(!ce||ce.length===0)&&he.setPopupVisible(!1);var F=he.getActiveOptions(ce),W=F[F.length-1];he.handleMenuSelect(W,F.length-1,fe),he.props.onKeyDown&&he.props.onKeyDown(fe)},he.saveTrigger=function(fe){he.trigger=fe};var ie=[];return"value"in pe?ie=pe.value||[]:"defaultValue"in pe&&(ie=pe.defaultValue||[]),y()(!("filedNames"in pe),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),he.state={popupVisible:pe.popupVisible,activeValue:ie,value:ie,prevProps:pe},he.defaultFieldNames={label:"label",value:"value",children:"children"},he}return H(Ee,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(he){var ie=this.defaultFieldNames,fe=this.props,ge=fe.fieldNames,ce=fe.filedNames;return"filedNames"in this.props?ce[he]||ie[he]:ge[he]||ie[he]}},{key:"getFieldNames",value:function(){var he=this.props,ie=he.fieldNames,fe=he.filedNames;return"filedNames"in this.props?fe:ie}},{key:"getCurrentLevelOptions",value:function(){var he=this,ie=this.props.options,fe=ie===void 0?[]:ie,ge=this.state.activeValue,ce=ge===void 0?[]:ge,Ie=C()(fe,function(Fe,ke){return Fe[he.getFieldName("value")]===ce[ke]},{childrenKeyName:this.getFieldName("children")});return Ie[Ie.length-2]?Ie[Ie.length-2][this.getFieldName("children")]:l(fe).filter(function(Fe){return!Fe.disabled})}},{key:"getActiveOptions",value:function(he){var ie=this;return C()(this.props.options||[],function(fe,ge){return fe[ie.getFieldName("value")]===he[ge]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var he=this.props,ie=he.prefixCls,fe=he.transitionName,ge=he.popupClassName,ce=he.options,Ie=ce===void 0?[]:ce,Fe=he.disabled,ke=he.builtinPlacements,re=he.popupPlacement,F=he.children,W=he.dropdownRender,de=b(he,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),ne=ue.createElement("div",null),le="";Ie&&Ie.length>0?ne=ue.createElement(p,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):le=" ".concat(ie,"-menus-empty");var De=ne;return W&&(De=W(ne)),ue.createElement(Y.a,Object.assign({ref:this.saveTrigger},de,{popupPlacement:re,builtinPlacements:ke,popupTransitionName:fe,action:Fe?[]:["click"],popupVisible:Fe?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(ie,"-menus"),popupClassName:ge+le,popup:De}),ue.cloneElement(F,{onKeyDown:this.handleKeyDown,tabIndex:Fe?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(he,ie){var fe=ie.prevProps,ge=fe===void 0?{}:fe,ce={prevProps:he};return"value"in he&&!m(ge.value,he.value)&&(ce.value=he.value||[],"loadData"in he||(ce.activeValue=he.value||[])),"popupVisible"in he&&(ce.popupVisible=he.popupVisible),ce}}]),Ee}(ue.Component);return se.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:w,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},se}(),oe=te,me=we.a=oe},"SA+Z":function(Ze,we,M){var ue=M("wTVA"),Y=M("EbDI"),P=M("ZhPi"),y=M("wkBT");function E(_){return ue(_)||Y(_)||P(_)||y()}Ze.exports=E,Ze.exports.__esModule=!0,Ze.exports.default=Ze.exports},SJMd:function(Ze,we){/**
* @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 M,ue,Y,P=!1,y,E;window.PR_SHOULD_USE_CONTINUATION=!0;var _,C;(function(){var m=window,c=["break,continue,do,else,for,if,return,while"],r=[c,"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"],o="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",f=[n,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],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",a=[c,"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=[c,"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"],g=[c,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],p=[e,u,s,f,d,a,h,g],S=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,w="str",B="kwd",b="com",A="typ",l="lit",i="pun",x="pln",O="tag",T="dec",D="src",R="atn",k="atv",H="nocode",J="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function U(ce){for(var Ie=0,Fe=!1,ke=!1,re=0,F=ce.length;re<F;++re){var W=ce[re];if(W.ignoreCase)ke=!0;else if(/[a-z]/i.test(W.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){Fe=!0,ke=!1;break}}var de={b:8,t:9,n:10,v:11,f:12,r:13};function ne(Ke){var ze=Ke.charCodeAt(0);if(ze!==92)return ze;var yt=Ke.charAt(1);return ze=de[yt],ze||("0"<=yt&&yt<="7"?parseInt(Ke.substring(1),8):yt==="u"||yt==="x"?parseInt(Ke.substring(2),16):Ke.charCodeAt(1))}function le(Ke){if(Ke<32)return(Ke<16?"\\x0":"\\x")+Ke.toString(16);var ze=String.fromCharCode(Ke);return ze==="\\"||ze==="-"||ze==="]"||ze==="^"?"\\"+ze:ze}function De(Ke){var ze=Ke.substring(1,Ke.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")),yt=[],Et=ze[0]==="^",ct=["["];Et&&ct.push("^");for(var lt=Et?1:0,rt=ze.length;lt<rt;++lt){var qe=ze[lt];if(/\\[bdsw]/i.test(qe))ct.push(qe);else{var $e=ne(qe),Pe;lt+2<rt&&ze[lt+1]==="-"?(Pe=ne(ze[lt+2]),lt+=2):Pe=$e,yt.push([$e,Pe]),Pe<65||$e>122||(Pe<65||$e>90||yt.push([Math.max(65,$e)|32,Math.min(Pe,90)|32]),Pe<97||$e>122||yt.push([Math.max(97,$e)&~32,Math.min(Pe,122)&~32]))}}yt.sort(function(mt,At){return mt[0]-At[0]||At[1]-mt[1]});for(var je=[],Ne=[],lt=0;lt<yt.length;++lt){var et=yt[lt];et[0]<=Ne[1]+1?Ne[1]=Math.max(Ne[1],et[1]):je.push(Ne=et)}for(var lt=0;lt<je.length;++lt){var et=je[lt];ct.push(le(et[0])),et[1]>et[0]&&(et[1]+1>et[0]&&ct.push("-"),ct.push(le(et[1])))}return ct.push("]"),ct.join("")}function Xe(Ke){for(var ze=Ke.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")),yt=ze.length,Et=[],ct=0,lt=0;ct<yt;++ct){var rt=ze[ct];if(rt==="(")++lt;else if(rt.charAt(0)==="\\"){var qe=+rt.substring(1);qe&&(qe<=lt?Et[qe]=-1:ze[ct]=le(qe))}}for(var ct=1;ct<Et.length;++ct)Et[ct]===-1&&(Et[ct]=++Ie);for(var ct=0,lt=0;ct<yt;++ct){var rt=ze[ct];if(rt==="(")++lt,Et[lt]||(ze[ct]="(?:");else if(rt.charAt(0)==="\\"){var qe=+rt.substring(1);qe&&qe<=lt&&(ze[ct]="\\"+Et[qe])}}for(var ct=0;ct<yt;++ct)ze[ct]==="^"&&ze[ct+1]!=="^"&&(ze[ct]="");if(Ke.ignoreCase&&Fe)for(var ct=0;ct<yt;++ct){var rt=ze[ct],$e=rt.charAt(0);rt.length>=2&&$e==="["?ze[ct]=De(rt):$e!=="\\"&&(ze[ct]=rt.replace(/[a-zA-Z]/g,function(Ne){var et=Ne.charCodeAt(0);return"["+String.fromCharCode(et&~32,et|32)+"]"}))}return ze.join("")}for(var xt=[],re=0,F=ce.length;re<F;++re){var W=ce[re];if(W.global||W.multiline)throw new Error(""+W);xt.push("(?:"+Xe(W)+")")}return new RegExp(xt.join("|"),ke?"gi":"g")}function K(ce,Ie){var Fe=/(?:^|\s)nocode(?:\s|$)/,ke=[],re=0,F=[],W=0;function de(ne){var le=ne.nodeType;if(le==1){if(Fe.test(ne.className))return;for(var De=ne.firstChild;De;De=De.nextSibling)de(De);var Xe=ne.nodeName.toLowerCase();(Xe==="br"||Xe==="li")&&(ke[W]=`
`,F[W<<1]=re++,F[W++<<1|1]=ne)}else if(le==3||le==4){var xt=ne.nodeValue;xt.length&&(Ie?xt=xt.replace(/\r\n?/g,`
`):xt=xt.replace(/[ \t\r\n]+/g," "),ke[W]=xt,F[W<<1]=re,re+=xt.length,F[W++<<1|1]=ne)}}return de(ce),{sourceCode:ke.join("").replace(/\n$/,""),spans:F}}function G(ce,Ie,Fe,ke,re){if(!Fe)return;var F={sourceNode:ce,pre:1,langExtension:null,numberLines:null,sourceCode:Fe,spans:null,basePos:Ie,decorations:null};ke(F),re.push.apply(re,F.decorations)}var N=/\S/;function Q(ce){for(var Ie=void 0,Fe=ce.firstChild;Fe;Fe=Fe.nextSibling){var ke=Fe.nodeType;Ie=ke===1?Ie?ce:Fe:ke===3&&N.test(Fe.nodeValue)?ce:Ie}return Ie===ce?void 0:Ie}function X(ce,Ie){var Fe={},ke;(function(){for(var W=ce.concat(Ie),de=[],ne={},le=0,De=W.length;le<De;++le){var Xe=W[le],xt=Xe[3];if(xt)for(var Ke=xt.length;--Ke>=0;)Fe[xt.charAt(Ke)]=Xe;var ze=Xe[1],yt=""+ze;ne.hasOwnProperty(yt)||(de.push(ze),ne[yt]=null)}de.push(/[\0-\uffff]/),ke=U(de)})();var re=Ie.length,F=function(W){for(var de=W.sourceCode,ne=W.basePos,le=W.sourceNode,De=[ne,x],Xe=0,xt=de.match(ke)||[],Ke={},ze=0,yt=xt.length;ze<yt;++ze){var Et=xt[ze],ct=Ke[Et],lt=void 0,rt;if(typeof ct=="string")rt=!1;else{var qe=Fe[Et.charAt(0)];if(qe)lt=Et.match(qe[1]),ct=qe[0];else{for(var $e=0;$e<re;++$e)if(qe=Ie[$e],lt=Et.match(qe[1]),lt){ct=qe[0];break}lt||(ct=x)}rt=ct.length>=5&&ct.substring(0,5)==="lang-",rt&&!(lt&&typeof lt[1]=="string")&&(rt=!1,ct=D),rt||(Ke[Et]=ct)}var Pe=Xe;if(Xe+=Et.length,!rt)De.push(ne+Pe,ct);else{var je=lt[1],Ne=Et.indexOf(je),et=Ne+je.length;lt[2]&&(et=Et.length-lt[2].length,Ne=et-je.length);var mt=ct.substring(5);G(le,ne+Pe,Et.substring(0,Ne),F,De),G(le,ne+Pe+Ne,je,Ee(mt,je),De),G(le,ne+Pe+et,Et.substring(et),F,De)}}W.decorations=De};return F}function te(ce){var Ie=[],Fe=[];ce.tripleQuotedStrings?Ie.push([w,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):ce.multiLineStrings?Ie.push([w,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Ie.push([w,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),ce.verbatimStrings&&Fe.push([w,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var ke=ce.hashComments;ke&&(ce.cStyleComments?(ke>1?Ie.push([b,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Ie.push([b,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Fe.push([w,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Ie.push([b,/^#[^\r\n]*/,null,"#"])),ce.cStyleComments&&(Fe.push([b,/^\/\/[^\r\n]*/,null]),Fe.push([b,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var re=ce.regexLiterals;if(re){var F=re>1?"":`
\r`,W=F?".":"[\\S\\s]",de="/(?=[^/*"+F+"])(?:[^/\\x5B\\x5C"+F+"]|\\x5C"+W+"|\\x5B(?:[^\\x5C\\x5D"+F+"]|\\x5C"+W+")*(?:\\x5D|$))+/";Fe.push(["lang-regex",RegExp("^"+J+"("+de+")")])}var ne=ce.types;ne&&Fe.push([A,ne]);var le=(""+ce.keywords).replace(/^ | $/g,"");le.length&&Fe.push([B,new RegExp("^(?:"+le.replace(/[\s,]+/g,"|")+")\\b"),null]),Ie.push([x,/^\s+/,null,` \r
\xA0`]);var De="^.[^\\s\\w.$@'\"`/\\\\]*";return ce.regexLiterals&&(De+="(?!s*/)"),Fe.push([l,/^@[a-z_$][a-z_$@0-9]*/i,null],[A,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[x,/^[a-z_$][a-z_$@0-9]*/i,null],[l,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[x,/^\\[\s\S]?/,null],[i,new RegExp(De),null]),X(Ie,Fe)}var oe=te({keywords:p,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function me(ce,Ie,Fe){for(var ke=/(?:^|\s)nocode(?:\s|$)/,re=/\r\n?|\n/,F=ce.ownerDocument,W=F.createElement("li");ce.firstChild;)W.appendChild(ce.firstChild);var de=[W];function ne(ze){var yt=ze.nodeType;if(yt==1&&!ke.test(ze.className))if(ze.nodeName==="br")le(ze),ze.parentNode&&ze.parentNode.removeChild(ze);else for(var Et=ze.firstChild;Et;Et=Et.nextSibling)ne(Et);else if((yt==3||yt==4)&&Fe){var ct=ze.nodeValue,lt=ct.match(re);if(lt){var rt=ct.substring(0,lt.index);ze.nodeValue=rt;var qe=ct.substring(lt.index+lt[0].length);if(qe){var $e=ze.parentNode;$e.insertBefore(F.createTextNode(qe),ze.nextSibling)}le(ze),rt||ze.parentNode.removeChild(ze)}}}function le(ze){for(;!ze.nextSibling;)if(ze=ze.parentNode,!ze)return;function yt(lt,rt){var qe=rt?lt.cloneNode(!1):lt,$e=lt.parentNode;if($e){var Pe=yt($e,1),je=lt.nextSibling;Pe.appendChild(qe);for(var Ne=je;Ne;Ne=je)je=Ne.nextSibling,Pe.appendChild(Ne)}return qe}for(var Et=yt(ze.nextSibling,0),ct;(ct=Et.parentNode)&&ct.nodeType===1;)Et=ct;de.push(Et)}for(var De=0;De<de.length;++De)ne(de[De]);Ie===(Ie|0)&&de[0].setAttribute("value",Ie);var Xe=F.createElement("ol");Xe.className="linenums";for(var xt=Math.max(0,Ie-1|0)||0,De=0,Ke=de.length;De<Ke;++De)W=de[De],W.className="L"+(De+xt)%10,W.firstChild||W.appendChild(F.createTextNode("\xA0")),Xe.appendChild(W);ce.appendChild(Xe)}function se(ce){var Ie=/\bMSIE\s(\d+)/.exec(navigator.userAgent);Ie=Ie&&+Ie[1]<=8;var Fe=/\n/g,ke=ce.sourceCode,re=ke.length,F=0,W=ce.spans,de=W.length,ne=0,le=ce.decorations,De=le.length,Xe=0;le[De]=re;var xt,Ke;for(Ke=xt=0;Ke<De;)le[Ke]!==le[Ke+2]?(le[xt++]=le[Ke++],le[xt++]=le[Ke++]):Ke+=2;for(De=xt,Ke=xt=0;Ke<De;){for(var ze=le[Ke],yt=le[Ke+1],Et=Ke+2;Et+2<=De&&le[Et+1]===yt;)Et+=2;le[xt++]=ze,le[xt++]=yt,Ke=Et}De=le.length=xt;var ct=ce.sourceNode,lt="";ct&&(lt=ct.style.display,ct.style.display="none");try{for(var rt=null;ne<de;){var qe=W[ne],$e=W[ne+2]||re,Pe=le[Xe+2]||re,Et=Math.min($e,Pe),je=W[ne+1],Ne;if(je.nodeType!==1&&(Ne=ke.substring(F,Et))){Ie&&(Ne=Ne.replace(Fe,"\r")),je.nodeValue=Ne;var et=je.ownerDocument,mt=et.createElement("span");mt.className=le[Xe+1];var At=je.parentNode;At.replaceChild(mt,je),mt.appendChild(je),F<$e&&(W[ne+1]=je=et.createTextNode(ke.substring(Et,$e)),At.insertBefore(je,mt.nextSibling))}F=Et,F>=$e&&(ne+=2),F>=Pe&&(Xe+=2)}}finally{ct&&(ct.style.display=lt)}}var _e={};function Ae(ce,Ie){for(var Fe=Ie.length;--Fe>=0;){var ke=Ie[Fe];_e.hasOwnProperty(ke)?m.console&&console.warn("cannot override language handler %s",ke):_e[ke]=ce}}function Ee(ce,Ie){return ce&&_e.hasOwnProperty(ce)||(ce=/^\s*</.test(Ie)?"default-markup":"default-code"),_e[ce]}Ae(oe,["default-code"]),Ae(X([],[[x,/^[^<?]+/],[T,/^<!\w[^>]*(?:>|$)/],[b,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[i,/^(?:<[%?]|[%?]>)/],["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([[x,/^[\s]+/,null,` \r
`],[k,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[O,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[R,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[i,/^[=<>\/]+/],["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([],[[k,/^[\s\S]+/]]),["uq.val"]),Ae(te({keywords:e,hashComments:!0,cStyleComments:!0,types:S}),["c","cc","cpp","cxx","cyc","m"]),Ae(te({keywords:"null,true,false"}),["json"]),Ae(te({keywords:u,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:S}),["cs"]),Ae(te({keywords:s,cStyleComments:!0}),["java"]),Ae(te({keywords:g,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Ae(te({keywords:a,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:f,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Ae(te({keywords:o,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Ae(X([],[[w,/^[\s\S]+/]]),["regex"]);function pe(ce){var Ie=ce.langExtension;try{var Fe=K(ce.sourceNode,ce.pre),ke=Fe.sourceCode;ce.sourceCode=ke,ce.spans=Fe.spans,ce.basePos=0,Ee(Ie,ke)(ce),se(ce)}catch(re){m.console&&console.log(re&&re.stack||re)}}function he(ce,Ie,Fe){var ke=Fe||!1,re=Ie||null,F=document.createElement("div");F.innerHTML="<pre>"+ce+"</pre>",F=F.firstChild,ke&&me(F,ke,!0);var W={langExtension:re,numberLines:ke,sourceNode:F,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return pe(W),F.innerHTML}function ie(ce,Ie){var Fe=Ie||document.body,ke=Fe.ownerDocument||document;function re(qe){return Fe.getElementsByTagName(qe)}for(var F=[re("pre"),re("code"),re("xmp")],W=[],de=0;de<F.length;++de)for(var ne=0,le=F[de].length;ne<le;++ne)W.push(F[de][ne]);F=null;var De=Date;De.now||(De={now:function(){return+new Date}});var Xe=0,xt=/\blang(?:uage)?-([\w.]+)(?!\S)/,Ke=/\bprettyprint\b/,ze=/\bprettyprinted\b/,yt=/pre|xmp/i,Et=/^code$/i,ct=/^(?:pre|code|xmp)$/i,lt={};function rt(){for(var qe=m.PR_SHOULD_USE_CONTINUATION?De.now()+250:Infinity;Xe<W.length&&De.now()<qe;Xe++){for(var $e=W[Xe],Pe=lt,je=$e;je=je.previousSibling;){var Ne=je.nodeType,et=(Ne===7||Ne===8)&&je.nodeValue;if(et?!/^\??prettify\b/.test(et):Ne!==3||/\S/.test(je.nodeValue))break;if(et){Pe={},et.replace(/\b(\w+)=([\w:.%+-]+)/g,function(St,ft,It){Pe[ft]=It});break}}var mt=$e.className;if((Pe!==lt||Ke.test(mt))&&!ze.test(mt)){for(var At=!1,Ut=$e.parentNode;Ut;Ut=Ut.parentNode){var Xt=Ut.tagName;if(ct.test(Xt)&&Ut.className&&Ke.test(Ut.className)){At=!0;break}}if(!At){$e.className+=" prettyprinted";var un=Pe.lang;if(!un){un=mt.match(xt);var jt;!un&&(jt=Q($e))&&Et.test(jt.tagName)&&(un=jt.className.match(xt)),un&&(un=un[1])}var Zt;if(yt.test($e.tagName))Zt=1;else{var Mt=$e.currentStyle,Tt=ke.defaultView,Ct=Mt?Mt.whiteSpace:Tt&&Tt.getComputedStyle?Tt.getComputedStyle($e,null).getPropertyValue("white-space"):0;Zt=Ct&&Ct.substring(0,3)==="pre"}var Re=Pe.linenums;(Re=Re==="true"||+Re)||(Re=mt.match(/\blinenums\b(?::(\d+))?/),Re=Re?Re[1]&&Re[1].length?+Re[1]:!0:!1),Re&&me($e,Re,Zt);var We={langExtension:un,sourceNode:$e,numberLines:Re,pre:Zt,sourceCode:null,basePos:null,spans:null,decorations:null};pe(We)}}}Xe<W.length?m.setTimeout(rt,250):typeof ce=="function"&&ce()}rt()}var fe=m.PR={createSimpleLexer:X,registerLangHandler:Ae,sourceDecorator:te,PR_ATTRIB_NAME:R,PR_ATTRIB_VALUE:k,PR_COMMENT:b,PR_DECLARATION:T,PR_KEYWORD:B,PR_LITERAL:l,PR_NOCODE:H,PR_PLAIN:x,PR_PUNCTUATION:i,PR_SOURCE:D,PR_STRING:w,PR_TAG:O,PR_TYPE:A,prettyPrintOne:P?m.prettyPrintOne=he:_=he,prettyPrint:C=P?m.prettyPrint=ie:C=ie},ge=m.define;typeof ge=="function"&&ge.amd&&ge("google-code-prettify",[],function(){return fe})})()},SKnc:function(Ze,we,M){var ue=M("bYtY"),Y=M("QuXc"),P=function(E,_,C,m,c,r){this.x=E==null?0:E,this.y=_==null?0:_,this.x2=C==null?1:C,this.y2=m==null?0:m,this.type="linear",this.global=r||!1,Y.call(this,c)};P.prototype={constructor:P},ue.inherits(P,Y);var y=P;Ze.exports=y},SMhR:function(Ze,we){Ze.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(Ze,we,M){var ue=M("LPTA"),Y=ue.debugMode,P=function(){};Y===1&&(P=console.error);var y=P;Ze.exports=y},Sj9i:function(Ze,we,M){var ue=M("QBsz"),Y=ue.create,P=ue.distSquare,y=Math.pow,E=Math.sqrt,_=1e-8,C=1e-4,m=E(3),c=1/3,r=Y(),n=Y(),e=Y();function s(l){return l>-_&&l<_}function u(l){return l>_||l<-_}function o(l,i,x,O,T){var D=1-T;return D*D*(D*l+3*T*i)+T*T*(T*O+3*D*x)}function f(l,i,x,O,T){var D=1-T;return 3*(((i-l)*D+2*(x-i)*T)*D+(O-x)*T*T)}function d(l,i,x,O,T,D){var R=O+3*(i-x)-l,k=3*(x-i*2+l),H=3*(i-l),J=l-T,U=k*k-3*R*H,K=k*H-9*R*J,G=H*H-3*k*J,N=0;if(s(U)&&s(K))if(s(k))D[0]=0;else{var Q=-H/k;Q>=0&&Q<=1&&(D[N++]=Q)}else{var X=K*K-4*U*G;if(s(X)){var te=K/U,Q=-k/R+te,oe=-te/2;Q>=0&&Q<=1&&(D[N++]=Q),oe>=0&&oe<=1&&(D[N++]=oe)}else if(X>0){var me=E(X),se=U*k+1.5*R*(-K+me),_e=U*k+1.5*R*(-K-me);se<0?se=-y(-se,c):se=y(se,c),_e<0?_e=-y(-_e,c):_e=y(_e,c);var Q=(-k-(se+_e))/(3*R);Q>=0&&Q<=1&&(D[N++]=Q)}else{var Ae=(2*U*k-3*R*K)/(2*E(U*U*U)),Ee=Math.acos(Ae)/3,pe=E(U),he=Math.cos(Ee),Q=(-k-2*pe*he)/(3*R),oe=(-k+pe*(he+m*Math.sin(Ee)))/(3*R),ie=(-k+pe*(he-m*Math.sin(Ee)))/(3*R);Q>=0&&Q<=1&&(D[N++]=Q),oe>=0&&oe<=1&&(D[N++]=oe),ie>=0&&ie<=1&&(D[N++]=ie)}}return N}function a(l,i,x,O,T){var D=6*x-12*i+6*l,R=9*i+3*O-3*l-9*x,k=3*i-3*l,H=0;if(s(R)){if(u(D)){var J=-k/D;J>=0&&J<=1&&(T[H++]=J)}}else{var U=D*D-4*R*k;if(s(U))T[0]=-D/(2*R);else if(U>0){var K=E(U),J=(-D+K)/(2*R),G=(-D-K)/(2*R);J>=0&&J<=1&&(T[H++]=J),G>=0&&G<=1&&(T[H++]=G)}}return H}function h(l,i,x,O,T,D){var R=(i-l)*T+l,k=(x-i)*T+i,H=(O-x)*T+x,J=(k-R)*T+R,U=(H-k)*T+k,K=(U-J)*T+J;D[0]=l,D[1]=R,D[2]=J,D[3]=K,D[4]=K,D[5]=U,D[6]=H,D[7]=O}function g(l,i,x,O,T,D,R,k,H,J,U){var K,G=.005,N=Infinity,Q,X,te,oe;r[0]=H,r[1]=J;for(var me=0;me<1;me+=.05)n[0]=o(l,x,T,R,me),n[1]=o(i,O,D,k,me),te=P(r,n),te<N&&(K=me,N=te);N=Infinity;for(var se=0;se<32&&!(G<C);se++)Q=K-G,X=K+G,n[0]=o(l,x,T,R,Q),n[1]=o(i,O,D,k,Q),te=P(n,r),Q>=0&&te<N?(K=Q,N=te):(e[0]=o(l,x,T,R,X),e[1]=o(i,O,D,k,X),oe=P(e,r),X<=1&&oe<N?(K=X,N=oe):G*=.5);return U&&(U[0]=o(l,x,T,R,K),U[1]=o(i,O,D,k,K)),E(N)}function p(l,i,x,O){var T=1-O;return T*(T*l+2*O*i)+O*O*x}function S(l,i,x,O){return 2*((1-O)*(i-l)+O*(x-i))}function w(l,i,x,O,T){var D=l-2*i+x,R=2*(i-l),k=l-O,H=0;if(s(D)){if(u(R)){var J=-k/R;J>=0&&J<=1&&(T[H++]=J)}}else{var U=R*R-4*D*k;if(s(U)){var J=-R/(2*D);J>=0&&J<=1&&(T[H++]=J)}else if(U>0){var K=E(U),J=(-R+K)/(2*D),G=(-R-K)/(2*D);J>=0&&J<=1&&(T[H++]=J),G>=0&&G<=1&&(T[H++]=G)}}return H}function B(l,i,x){var O=l+x-2*i;return O===0?.5:(l-i)/O}function b(l,i,x,O,T){var D=(i-l)*O+l,R=(x-i)*O+i,k=(R-D)*O+D;T[0]=l,T[1]=D,T[2]=k,T[3]=k,T[4]=R,T[5]=x}function A(l,i,x,O,T,D,R,k,H){var J,U=.005,K=Infinity;r[0]=R,r[1]=k;for(var G=0;G<1;G+=.05){n[0]=p(l,x,T,G),n[1]=p(i,O,D,G);var N=P(r,n);N<K&&(J=G,K=N)}K=Infinity;for(var Q=0;Q<32&&!(U<C);Q++){var X=J-U,te=J+U;n[0]=p(l,x,T,X),n[1]=p(i,O,D,X);var N=P(n,r);if(X>=0&&N<K)J=X,K=N;else{e[0]=p(l,x,T,te),e[1]=p(i,O,D,te);var oe=P(e,r);te<=1&&oe<K?(J=te,K=oe):U*=.5}}return H&&(H[0]=p(l,x,T,J),H[1]=p(i,O,D,J)),E(K)}we.cubicAt=o,we.cubicDerivativeAt=f,we.cubicRootAt=d,we.cubicExtrema=a,we.cubicSubdivide=h,we.cubicProjectPoint=g,we.quadraticAt=p,we.quadraticDerivativeAt=S,we.quadraticRootAt=w,we.quadraticExtremum=B,we.quadraticSubdivide=b,we.quadraticProjectPoint=A},SqI9:function(Ze,we,M){var ue=M("y+Vt"),Y=M("iXp4"),P=ue.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},brush:Y(ue.prototype.brush),buildPath:function(y,E){var _=E.cx,C=E.cy,m=Math.max(E.r0||0,0),c=Math.max(E.r,0),r=E.startAngle,n=E.endAngle,e=E.clockwise,s=Math.cos(r),u=Math.sin(r);y.moveTo(s*m+_,u*m+C),y.lineTo(s*c+_,u*c+C),y.arc(_,C,c,r,n,!e),y.lineTo(Math.cos(n)*m+_,Math.sin(n)*m+C),m!==0&&y.arc(_,C,m,n,r,e),y.closePath()}});Ze.exports=P},SrGk:function(Ze,we,M){var ue=M("hydK"),Y=ue.createElement,P=M("bYtY"),y=M("y+Vt"),E=M("Dagg"),_=M("dqUG"),C=M("P47w"),m=C.path,c=C.image,r=C.text,n="0",e="1";function s(o,f,d,a,h){this._zrId=o,this._svgRoot=f,this._tagNames=typeof d=="string"?[d]:d,this._markLabel=a,this._domName=h||"_dom",this.nextId=0}s.prototype.createElement=Y,s.prototype.getDefs=function(o){var f=this._svgRoot,d=this._svgRoot.getElementsByTagName("defs");return d.length===0?o?(d=f.insertBefore(this.createElement("defs"),f.firstChild),d.contains||(d.contains=function(a){var h=d.children;if(!h)return!1;for(var g=h.length-1;g>=0;--g)if(h[g]===a)return!0;return!1}),d):null:d[0]},s.prototype.update=function(o,f){if(!o)return;var d=this.getDefs(!1);if(o[this._domName]&&d.contains(o[this._domName]))typeof f=="function"&&f(o);else{var a=this.add(o);a&&(o[this._domName]=a)}},s.prototype.addDom=function(o){var f=this.getDefs(!0);f.appendChild(o)},s.prototype.removeDom=function(o){var f=this.getDefs(!1);f&&o[this._domName]&&(f.removeChild(o[this._domName]),o[this._domName]=null)},s.prototype.getDoms=function(){var o=this.getDefs(!1);if(!o)return[];var f=[];return P.each(this._tagNames,function(d){var a=o.getElementsByTagName(d);f=f.concat([].slice.call(a))}),f},s.prototype.markAllUnused=function(){var o=this.getDoms(),f=this;P.each(o,function(d){d[f._markLabel]=n})},s.prototype.markUsed=function(o){o&&(o[this._markLabel]=e)},s.prototype.removeUnused=function(){var o=this.getDefs(!1);if(!o)return;var f=this.getDoms(),d=this;P.each(f,function(a){a[d._markLabel]!==e&&o.removeChild(a)})},s.prototype.getSvgProxy=function(o){return o instanceof y?m:o instanceof E?c:o instanceof _?r:m},s.prototype.getTextSvgElement=function(o){return o.__textSvgEl},s.prototype.getSvgElement=function(o){return o.__svgEl};var u=s;Ze.exports=u},T6xi:function(Ze,we,M){var ue=M("YgsL"),Y=M("nCxF");function P(y,E,_){var C=E.points,m=E.smooth;if(C&&C.length>=2){if(m&&m!=="spline"){var c=Y(C,m,_,E.smoothConstraint);y.moveTo(C[0][0],C[0][1]);for(var r=C.length,n=0;n<(_?r:r-1);n++){var e=c[n*2],s=c[n*2+1],u=C[(n+1)%r];y.bezierCurveTo(e[0],e[1],s[0],s[1],u[0],u[1])}}else{m==="spline"&&(C=ue(C,_)),y.moveTo(C[0][0],C[0][1]);for(var n=1,o=C.length;n<o;n++)y.lineTo(C[n][0],C[n][1])}_&&y.closePath()}}we.buildPath=P},TGq3:function(Ze,we,M){Ze.exports=M.p+"static/lockclose.365036e8.svg"},UZu5:function(Ze,we,M){},VlDO:function(Ze,we,M){Ze.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(Ze,we){function M(ue,Y){var P=Y.x,y=Y.y,E=Y.width,_=Y.height,C=Y.r,m,c,r,n;E<0&&(P=P+E,E=-E),_<0&&(y=y+_,_=-_),typeof C=="number"?m=c=r=n=C:C instanceof Array?C.length===1?m=c=r=n=C[0]:C.length===2?(m=r=C[0],c=n=C[1]):C.length===3?(m=C[0],c=n=C[1],r=C[2]):(m=C[0],c=C[1],r=C[2],n=C[3]):m=c=r=n=0;var e;m+c>E&&(e=m+c,m*=E/e,c*=E/e),r+n>E&&(e=r+n,r*=E/e,n*=E/e),c+r>_&&(e=c+r,c*=_/e,r*=_/e),m+n>_&&(e=m+n,m*=_/e,n*=_/e),ue.moveTo(P+m,y),ue.lineTo(P+E-c,y),c!==0&&ue.arc(P+E-c,y+c,c,-Math.PI/2,0),ue.lineTo(P+E,y+_-r),r!==0&&ue.arc(P+E-r,y+_-r,r,0,Math.PI/2),ue.lineTo(P+n,y+_),n!==0&&ue.arc(P+n,y+_-n,n,Math.PI/2,Math.PI),ue.lineTo(P,y+m),m!==0&&ue.arc(P+m,y+m,m,Math.PI,Math.PI*1.5)}we.buildPath=M},"VrN/":function(Ze,we,M){(function(ue,Y){Ze.exports=Y()})(this,function(){"use strict";var ue=navigator.userAgent,Y=navigator.platform,P=/gecko\/\d/i.test(ue),y=/MSIE \d/.test(ue),E=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ue),_=/Edge\/(\d+)/.exec(ue),C=y||E||_,m=C&&(y?document.documentMode||6:+(_||E)[1]),c=!_&&/WebKit\//.test(ue),r=c&&/Qt\/\d+\.\d+/.test(ue),n=!_&&/Chrome\//.test(ue),e=/Opera\//.test(ue),s=/Apple Computer/.test(navigator.vendor),u=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(ue),o=/PhantomJS/.test(ue),f=!_&&/AppleWebKit/.test(ue)&&/Mobile\/\w+/.test(ue),d=/Android/.test(ue),a=f||d||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(ue),h=f||/Mac/.test(Y),g=/\bCrOS\b/.test(ue),p=/win/i.test(Y),S=e&&ue.match(/Version\/(\d*\.\d*)/);S&&(S=Number(S[1])),S&&S>=15&&(e=!1,c=!0);var w=h&&(r||e&&(S==null||S<12.11)),B=P||C&&m>=9;function b(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var A=function(t,v){var L=t.className,I=b(v).exec(L);if(I){var j=L.slice(I.index+I[0].length);t.className=L.slice(0,I.index)+(j?I[1]+j:"")}};function l(t){for(var v=t.childNodes.length;v>0;--v)t.removeChild(t.firstChild);return t}function i(t,v){return l(t).appendChild(v)}function x(t,v,L,I){var j=document.createElement(t);if(L&&(j.className=L),I&&(j.style.cssText=I),typeof v=="string")j.appendChild(document.createTextNode(v));else if(v)for(var ae=0;ae<v.length;++ae)j.appendChild(v[ae]);return j}function O(t,v,L,I){var j=x(t,v,L,I);return j.setAttribute("role","presentation"),j}var T;document.createRange?T=function(t,v,L,I){var j=document.createRange();return j.setEnd(I||t,L),j.setStart(t,v),j}:T=function(t,v,L){var I=document.body.createTextRange();try{I.moveToElementText(t.parentNode)}catch(j){return I}return I.collapse(!0),I.moveEnd("character",L),I.moveStart("character",v),I};function D(t,v){if(v.nodeType==3&&(v=v.parentNode),t.contains)return t.contains(v);do if(v.nodeType==11&&(v=v.host),v==t)return!0;while(v=v.parentNode)}function R(){var t;try{t=document.activeElement}catch(v){t=document.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function k(t,v){var L=t.className;b(v).test(L)||(t.className+=(L?" ":"")+v)}function H(t,v){for(var L=t.split(" "),I=0;I<L.length;I++)L[I]&&!b(L[I]).test(v)&&(v+=" "+L[I]);return v}var J=function(t){t.select()};f?J=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:C&&(J=function(t){try{t.select()}catch(v){}});function U(t){var v=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,v)}}function K(t,v,L){v||(v={});for(var I in t)t.hasOwnProperty(I)&&(L!==!1||!v.hasOwnProperty(I))&&(v[I]=t[I]);return v}function G(t,v,L,I,j){v==null&&(v=t.search(/[^\s\u00a0]/),v==-1&&(v=t.length));for(var ae=I||0,xe=j||0;;){var Oe=t.indexOf(" ",ae);if(Oe<0||Oe>=v)return xe+(v-ae);xe+=Oe-ae,xe+=L-xe%L,ae=Oe+1}}var N=function(){this.id=null,this.f=null,this.time=0,this.handler=U(this.onTimeout,this)};N.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},N.prototype.set=function(t,v){this.f=v;var L=+new Date+t;(!this.id||L<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=L)};function Q(t,v){for(var L=0;L<t.length;++L)if(t[L]==v)return L;return-1}var X=50,te={toString:function(){return"CodeMirror.Pass"}},oe={scroll:!1},me={origin:"*mouse"},se={origin:"+move"};function _e(t,v,L){for(var I=0,j=0;;){var ae=t.indexOf(" ",I);ae==-1&&(ae=t.length);var xe=ae-I;if(ae==t.length||j+xe>=v)return I+Math.min(xe,v-j);if(j+=ae-I,j+=L-j%L,I=ae+1,j>=v)return I}}var Ae=[""];function Ee(t){for(;Ae.length<=t;)Ae.push(pe(Ae)+" ");return Ae[t]}function pe(t){return t[t.length-1]}function he(t,v){for(var L=[],I=0;I<t.length;I++)L[I]=v(t[I],I);return L}function ie(t,v,L){for(var I=0,j=L(v);I<t.length&&L(t[I])<=j;)I++;t.splice(I,0,v)}function fe(){}function ge(t,v){var L;return Object.create?L=Object.create(t):(fe.prototype=t,L=new fe),v&&K(v,L),L}var ce=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ie(t){return/\w/.test(t)||t>"\x80"&&(t.toUpperCase()!=t.toLowerCase()||ce.test(t))}function Fe(t,v){return v?v.source.indexOf("\\w")>-1&&Ie(t)?!0:v.test(t):Ie(t)}function ke(t){for(var v in t)if(t.hasOwnProperty(v)&&t[v])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 F(t){return t.charCodeAt(0)>=768&&re.test(t)}function W(t,v,L){for(;(L<0?v>0:v<t.length)&&F(t.charAt(v));)v+=L;return v}function de(t,v,L){for(var I=v>L?-1:1;;){if(v==L)return v;var j=(v+L)/2,ae=I<0?Math.ceil(j):Math.floor(j);if(ae==v)return t(ae)?v:L;t(ae)?L=ae:v=ae+I}}function ne(t,v,L,I){if(!t)return I(v,L,"ltr",0);for(var j=!1,ae=0;ae<t.length;++ae){var xe=t[ae];(xe.from<L&&xe.to>v||v==L&&xe.to==v)&&(I(Math.max(xe.from,v),Math.min(xe.to,L),xe.level==1?"rtl":"ltr",ae),j=!0)}j||I(v,L,"ltr")}var le=null;function De(t,v,L){var I;le=null;for(var j=0;j<t.length;++j){var ae=t[j];if(ae.from<v&&ae.to>v)return j;ae.to==v&&(ae.from!=ae.to&&L=="before"?I=j:le=j),ae.from==v&&(ae.from!=ae.to&&L!="before"?I=j:le=j)}return I!=null?I:le}var Xe=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",v="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function L(He){return He<=247?t.charAt(He):1424<=He&&He<=1524?"R":1536<=He&&He<=1785?v.charAt(He-1536):1774<=He&&He<=2220?"r":8192<=He&&He<=8203?"w":He==8204?"b":"L"}var I=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,j=/[stwN]/,ae=/[LRr]/,xe=/[Lb1n]/,Oe=/[1n]/;function Me(He,gt,wt){this.level=He,this.from=gt,this.to=wt}return function(He,gt){var wt=gt=="ltr"?"L":"R";if(He.length==0||gt=="ltr"&&!I.test(He))return!1;for(var kt=He.length,Pt=[],an=0;an<kt;++an)Pt.push(L(He.charCodeAt(an)));for(var gn=0,Mn=wt;gn<kt;++gn){var Vn=Pt[gn];Vn=="m"?Pt[gn]=Mn:Mn=Vn}for(var or=0,Yn=wt;or<kt;++or){var pr=Pt[or];pr=="1"&&Yn=="r"?Pt[or]="n":ae.test(pr)&&(Yn=pr,pr=="r"&&(Pt[or]="R"))}for(var Hr=1,Lr=Pt[0];Hr<kt-1;++Hr){var pa=Pt[Hr];pa=="+"&&Lr=="1"&&Pt[Hr+1]=="1"?Pt[Hr]="1":pa==","&&Lr==Pt[Hr+1]&&(Lr=="1"||Lr=="n")&&(Pt[Hr]=Lr),Lr=pa}for(var ci=0;ci<kt;++ci){var so=Pt[ci];if(so==",")Pt[ci]="N";else if(so=="%"){var Ri=void 0;for(Ri=ci+1;Ri<kt&&Pt[Ri]=="%";++Ri);for(var Yo=ci&&Pt[ci-1]=="!"||Ri<kt&&Pt[Ri]=="1"?"1":"N",Co=ci;Co<Ri;++Co)Pt[Co]=Yo;ci=Ri-1}}for(var zi=0,wo=wt;zi<kt;++zi){var mo=Pt[zi];wo=="L"&&mo=="1"?Pt[zi]="L":ae.test(mo)&&(wo=mo)}for(var Hn=0;Hn<kt;++Hn)if(j.test(Pt[Hn])){var wi=void 0;for(wi=Hn+1;wi<kt&&j.test(Pt[wi]);++wi);for(var xi=(Hn?Pt[Hn-1]:wt)=="L",_i=(wi<kt?Pt[wi]:wt)=="L",ml=xi==_i?xi?"L":"R":wt,Ba=Hn;Ba<wi;++Ba)Pt[Ba]=ml;Hn=wi-1}for(var ga=[],as,lo=0;lo<kt;)if(xe.test(Pt[lo])){var vl=lo;for(++lo;lo<kt&&xe.test(Pt[lo]);++lo);ga.push(new Me(0,vl,lo))}else{var Ns=lo,Ds=ga.length,sl=gt=="rtl"?1:0;for(++lo;lo<kt&&Pt[lo]!="L";++lo);for(var Oo=Ns;Oo<lo;)if(Oe.test(Pt[Oo])){Ns<Oo&&(ga.splice(Ds,0,new Me(1,Ns,Oo)),Ds+=sl);var ll=Oo;for(++Oo;Oo<lo&&Oe.test(Pt[Oo]);++Oo);ga.splice(Ds,0,new Me(2,ll,Oo)),Ds+=sl,Ns=Oo}else++Oo;Ns<lo&&ga.splice(Ds,0,new Me(1,Ns,lo))}return gt=="ltr"&&(ga[0].level==1&&(as=He.match(/^\s+/))&&(ga[0].from=as[0].length,ga.unshift(new Me(0,0,as[0].length))),pe(ga).level==1&&(as=He.match(/\s+$/))&&(pe(ga).to-=as[0].length,ga.push(new Me(0,kt-as[0].length,kt)))),gt=="rtl"?ga.reverse():ga}}();function xt(t,v){var L=t.order;return L==null&&(L=t.order=Xe(t.text,v)),L}var Ke=[],ze=function(t,v,L){if(t.addEventListener)t.addEventListener(v,L,!1);else if(t.attachEvent)t.attachEvent("on"+v,L);else{var I=t._handlers||(t._handlers={});I[v]=(I[v]||Ke).concat(L)}};function yt(t,v){return t._handlers&&t._handlers[v]||Ke}function Et(t,v,L){if(t.removeEventListener)t.removeEventListener(v,L,!1);else if(t.detachEvent)t.detachEvent("on"+v,L);else{var I=t._handlers,j=I&&I[v];if(j){var ae=Q(j,L);ae>-1&&(I[v]=j.slice(0,ae).concat(j.slice(ae+1)))}}}function ct(t,v){var L=yt(t,v);if(!L.length)return;for(var I=Array.prototype.slice.call(arguments,2),j=0;j<L.length;++j)L[j].apply(null,I)}function lt(t,v,L){return typeof v=="string"&&(v={type:v,preventDefault:function(){this.defaultPrevented=!0}}),ct(t,L||v.type,t,v),Ne(v)||v.codemirrorIgnore}function rt(t){var v=t._handlers&&t._handlers.cursorActivity;if(!v)return;for(var L=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),I=0;I<v.length;++I)Q(L,v[I])==-1&&L.push(v[I])}function qe(t,v){return yt(t,v).length>0}function $e(t){t.prototype.on=function(v,L){ze(this,v,L)},t.prototype.off=function(v,L){Et(this,v,L)}}function Pe(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 et(t){Pe(t),je(t)}function mt(t){return t.target||t.srcElement}function At(t){var v=t.which;return v==null&&(t.button&1?v=1:t.button&2?v=3:t.button&4&&(v=2)),h&&t.ctrlKey&&v==1&&(v=3),v}var Ut=function(){if(C&&m<9)return!1;var t=x("div");return"draggable"in t||"dragDrop"in t}(),Xt;function un(t){if(Xt==null){var v=x("span","\u200B");i(t,x("span",[v,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(Xt=v.offsetWidth<=1&&v.offsetHeight>2&&!(C&&m<8))}var L=Xt?x("span","\u200B"):x("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return L.setAttribute("cm-text",""),L}var jt;function Zt(t){if(jt!=null)return jt;var v=i(t,document.createTextNode("A\u062EA")),L=T(v,0,1).getBoundingClientRect(),I=T(v,1,2).getBoundingClientRect();return l(t),!L||L.left==L.right?!1:jt=I.right-L.right<3}var Mt=`
b`.split(/\n/).length!=3?function(t){for(var v=0,L=[],I=t.length;v<=I;){var j=t.indexOf(`
`,v);j==-1&&(j=t.length);var ae=t.slice(v,t.charAt(j-1)=="\r"?j-1:j),xe=ae.indexOf("\r");xe!=-1?(L.push(ae.slice(0,xe)),v+=xe+1):(L.push(ae),v=j+1)}return L}:function(t){return t.split(/\r\n?|\n/)},Tt=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(v){return!1}}:function(t){var v;try{v=t.ownerDocument.selection.createRange()}catch(L){}return!v||v.parentElement()!=t?!1:v.compareEndPoints("StartToEnd",v)!=0},Ct=function(){var t=x("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),Re=null;function We(t){if(Re!=null)return Re;var v=i(t,x("span","x")),L=v.getBoundingClientRect(),I=T(v,0,1).getBoundingClientRect();return Re=Math.abs(L.left-I.left)>1}var St={},ft={};function It(t,v){arguments.length>2&&(v.dependencies=Array.prototype.slice.call(arguments,2)),St[t]=v}function Ot(t,v){ft[t]=v}function bt(t){if(typeof t=="string"&&ft.hasOwnProperty(t))t=ft[t];else if(t&&typeof t.name=="string"&&ft.hasOwnProperty(t.name)){var v=ft[t.name];typeof v=="string"&&(v={name:v}),t=ge(v,t),t.name=v.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 Ht(t,v){v=bt(v);var L=St[v.name];if(!L)return Ht(t,"text/plain");var I=L(t,v);if(Gt.hasOwnProperty(v.name)){var j=Gt[v.name];for(var ae in j){if(!j.hasOwnProperty(ae))continue;I.hasOwnProperty(ae)&&(I["_"+ae]=I[ae]),I[ae]=j[ae]}}if(I.name=v.name,v.helperType&&(I.helperType=v.helperType),v.modeProps)for(var xe in v.modeProps)I[xe]=v.modeProps[xe];return I}var Gt={};function xn(t,v){var L=Gt.hasOwnProperty(t)?Gt[t]:Gt[t]={};K(v,L)}function vn(t,v){if(v===!0)return v;if(t.copyState)return t.copyState(v);var L={};for(var I in v){var j=v[I];j instanceof Array&&(j=j.concat([])),L[I]=j}return L}function sr(t,v){for(var L;t.innerMode&&!(L=t.innerMode(v),!L||L.mode==t);)v=L.state,t=L.mode;return L||{mode:t,state:v}}function xr(t,v,L){return t.startState?t.startState(v,L):!0}var Kn=function(t,v,L){this.pos=this.start=0,this.string=t,this.tabSize=v||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=L};Kn.prototype.eol=function(){return this.pos>=this.string.length},Kn.prototype.sol=function(){return this.pos==this.lineStart},Kn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Kn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Kn.prototype.eat=function(t){var v=this.string.charAt(this.pos),L;if(typeof t=="string"?L=v==t:L=v&&(t.test?t.test(v):t(v)),L)return++this.pos,v},Kn.prototype.eatWhile=function(t){for(var v=this.pos;this.eat(t););return this.pos>v},Kn.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},Kn.prototype.skipToEnd=function(){this.pos=this.string.length},Kn.prototype.skipTo=function(t){var v=this.string.indexOf(t,this.pos);if(v>-1)return this.pos=v,!0},Kn.prototype.backUp=function(t){this.pos-=t},Kn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=G(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?G(this.string,this.lineStart,this.tabSize):0)},Kn.prototype.indentation=function(){return G(this.string,null,this.tabSize)-(this.lineStart?G(this.string,this.lineStart,this.tabSize):0)},Kn.prototype.match=function(t,v,L){if(typeof t=="string"){var I=function(xe){return L?xe.toLowerCase():xe},j=this.string.substr(this.pos,t.length);if(I(j)==I(t))return v!==!1&&(this.pos+=t.length),!0}else{var ae=this.string.slice(this.pos).match(t);return ae&&ae.index>0?null:(ae&&v!==!1&&(this.pos+=ae[0].length),ae)}},Kn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Kn.prototype.hideFirstChars=function(t,v){this.lineStart+=t;try{return v()}finally{this.lineStart-=t}},Kn.prototype.lookAhead=function(t){var v=this.lineOracle;return v&&v.lookAhead(t)},Kn.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function En(t,v){if(v-=t.first,v<0||v>=t.size)throw new Error("There is no line "+(v+t.first)+" in the document.");for(var L=t;!L.lines;)for(var I=0;;++I){var j=L.children[I],ae=j.chunkSize();if(v<ae){L=j;break}v-=ae}return L.lines[v]}function Qr(t,v,L){var I=[],j=v.line;return t.iter(v.line,L.line+1,function(ae){var xe=ae.text;j==L.line&&(xe=xe.slice(0,L.ch)),j==v.line&&(xe=xe.slice(v.ch)),I.push(xe),++j}),I}function sa(t,v,L){var I=[];return t.iter(v,L,function(j){I.push(j.text)}),I}function Xr(t,v){var L=v-t.height;if(L)for(var I=t;I;I=I.parent)I.height+=L}function Nr(t){if(t.parent==null)return null;for(var v=t.parent,L=Q(v.lines,t),I=v.parent;I;v=I,I=I.parent)for(var j=0;!(I.children[j]==v);++j)L+=I.children[j].chunkSize();return L+v.first}function ba(t,v){var L=t.first;e:do{for(var I=0;I<t.children.length;++I){var j=t.children[I],ae=j.height;if(v<ae){t=j;continue e}v-=ae,L+=j.chunkSize()}return L}while(!t.lines);for(var xe=0;xe<t.lines.length;++xe){var Oe=t.lines[xe],Me=Oe.height;if(v<Me)break;v-=Me}return L+xe}function ja(t,v){return v>=t.first&&v<t.first+t.size}function oi(t,v){return String(t.lineNumberFormatter(v+t.firstLineNumber))}function Le(t,v,L){if(L===void 0&&(L=null),!(this instanceof Le))return new Le(t,v,L);this.line=t,this.ch=v,this.sticky=L}function Qe(t,v){return t.line-v.line||t.ch-v.ch}function ot(t,v){return t.sticky==v.sticky&&Qe(t,v)==0}function _t(t){return Le(t.line,t.ch)}function Kt(t,v){return Qe(t,v)<0?v:t}function nn(t,v){return Qe(t,v)<0?t:v}function ve(t,v){return Math.max(t.first,Math.min(v,t.first+t.size-1))}function z(t,v){if(v.line<t.first)return Le(t.first,0);var L=t.first+t.size-1;return v.line>L?Le(L,En(t,L).text.length):Z(v,En(t,v.line).text.length)}function Z(t,v){var L=t.ch;return L==null||L>v?Le(t.line,v):L<0?Le(t.line,0):t}function ye(t,v){for(var L=[],I=0;I<v.length;I++)L[I]=z(t,v[I]);return L}var Ce=function(t,v){this.state=t,this.lookAhead=v},be=function(t,v,L,I){this.state=v,this.doc=t,this.line=L,this.maxLookAhead=I||0,this.baseTokens=null,this.baseTokenPos=1};be.prototype.lookAhead=function(t){var v=this.doc.getLine(this.line+t);return v!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),v},be.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var v=this.baseTokens[this.baseTokenPos+1];return{type:v&&v.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},be.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},be.fromSaved=function(t,v,L){return v instanceof Ce?new be(t,vn(t.mode,v.state),L,v.lookAhead):new be(t,vn(t.mode,v),L)},be.prototype.save=function(t){var v=t!==!1?vn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ce(v,this.maxLookAhead):v};function ht(t,v,L,I){var j=[t.state.modeGen],ae={};ia(t,v.text,t.doc.mode,L,function(He,gt){return j.push(He,gt)},ae,I);for(var xe=L.state,Oe=function(He){L.baseTokens=j;var gt=t.state.overlays[He],wt=1,kt=0;L.state=!0,ia(t,v.text,gt.mode,L,function(Pt,an){for(var gn=wt;kt<Pt;){var Mn=j[wt];Mn>Pt&&j.splice(wt,1,Pt,j[wt+1],Mn),wt+=2,kt=Math.min(Pt,Mn)}if(!an)return;if(gt.opaque)j.splice(gn,wt-gn,Pt,"overlay "+an),wt=gn+2;else for(;gn<wt;gn+=2){var Vn=j[gn+1];j[gn+1]=(Vn?Vn+" ":"")+"overlay "+an}},ae),L.state=xe,L.baseTokens=null,L.baseTokenPos=1},Me=0;Me<t.state.overlays.length;++Me)Oe(Me);return{styles:j,classes:ae.bgClass||ae.textClass?ae:null}}function Nt(t,v,L){if(!v.styles||v.styles[0]!=t.state.modeGen){var I=sn(t,Nr(v)),j=v.text.length>t.options.maxHighlightLength&&vn(t.doc.mode,I.state),ae=ht(t,v,I);j&&(I.state=j),v.stateAfter=I.save(!j),v.styles=ae.styles,ae.classes?v.styleClasses=ae.classes:v.styleClasses&&(v.styleClasses=null),L===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return v.styles}function sn(t,v,L){var I=t.doc,j=t.display;if(!I.mode.startState)return new be(I,!0,v);var ae=Dr(t,v,L),xe=ae>I.first&&En(I,ae-1).stateAfter,Oe=xe?be.fromSaved(I,xe,ae):new be(I,xr(I.mode),ae);return I.iter(ae,v,function(Me){pn(t,Me.text,Oe);var He=Oe.line;Me.stateAfter=He==v-1||He%5==0||He>=j.viewFrom&&He<j.viewTo?Oe.save():null,Oe.nextLine()}),L&&(I.modeFrontier=Oe.line),Oe}function pn(t,v,L,I){var j=t.doc.mode,ae=new Kn(v,t.options.tabSize,L);for(ae.start=ae.pos=I||0,v==""&&zt(j,L.state);!ae.eol();)qn(j,ae,L.state),ae.start=ae.pos}function zt(t,v){if(t.blankLine)return t.blankLine(v);if(!t.innerMode)return;var L=sr(t,v);if(L.mode.blankLine)return L.mode.blankLine(L.state)}function qn(t,v,L,I){for(var j=0;j<10;j++){I&&(I[0]=sr(t,L).mode);var ae=t.token(v,L);if(v.pos>v.start)return ae}throw new Error("Mode "+t.name+" failed to advance stream.")}var Un=function(t,v,L){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=v||null,this.state=L};function rr(t,v,L,I){var j=t.doc,ae=j.mode,xe;v=z(j,v);var Oe=En(j,v.line),Me=sn(t,v.line,L),He=new Kn(Oe.text,t.options.tabSize,Me),gt;for(I&&(gt=[]);(I||He.pos<v.ch)&&!He.eol();)He.start=He.pos,xe=qn(ae,He,Me.state),I&&gt.push(new Un(He,xe,vn(j.mode,Me.state)));return I?gt:new Un(He,xe,Me.state)}function Sr(t,v){if(t)for(;;){var L=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!L)break;t=t.slice(0,L.index)+t.slice(L.index+L[0].length);var I=L[1]?"bgClass":"textClass";v[I]==null?v[I]=L[2]:new RegExp("(?:^|\\s)"+L[2]+"(?:$|\\s)").test(v[I])||(v[I]+=" "+L[2])}return t}function ia(t,v,L,I,j,ae,xe){var Oe=L.flattenSpans;Oe==null&&(Oe=t.options.flattenSpans);var Me=0,He=null,gt=new Kn(v,t.options.tabSize,I),wt,kt=t.options.addModeClass&&[null];for(v==""&&Sr(zt(L,I.state),ae);!gt.eol();){if(gt.pos>t.options.maxHighlightLength?(Oe=!1,xe&&pn(t,v,I,gt.pos),gt.pos=v.length,wt=null):wt=Sr(qn(L,gt,I.state,kt),ae),kt){var Pt=kt[0].name;Pt&&(wt="m-"+(wt?Pt+" "+wt:Pt))}if(!Oe||He!=wt){for(;Me<gt.start;)Me=Math.min(gt.start,Me+5e3),j(Me,He);He=wt}gt.start=gt.pos}for(;Me<gt.pos;){var an=Math.min(gt.pos,Me+5e3);j(an,He),Me=an}}function Dr(t,v,L){for(var I,j,ae=t.doc,xe=L?-1:v-(t.doc.mode.innerMode?1e3:100),Oe=v;Oe>xe;--Oe){if(Oe<=ae.first)return ae.first;var Me=En(ae,Oe-1),He=Me.stateAfter;if(He&&(!L||Oe+(He instanceof Ce?He.lookAhead:0)<=ae.modeFrontier))return Oe;var gt=G(Me.text,null,t.options.tabSize);(j==null||I>gt)&&(j=Oe-1,I=gt)}return j}function na(t,v){if(t.modeFrontier=Math.min(t.modeFrontier,v),t.highlightFrontier<v-10)return;for(var L=t.first,I=v-1;I>L;I--){var j=En(t,I).stateAfter;if(j&&(!(j instanceof Ce)||I+j.lookAhead<v)){L=I+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,L)}var Tr=!1,ma=!1;function ha(){Tr=!0}function Oa(){ma=!0}function xa(t,v,L){this.marker=t,this.from=v,this.to=L}function ka(t,v){if(t)for(var L=0;L<t.length;++L){var I=t[L];if(I.marker==v)return I}}function Ha(t,v){for(var L,I=0;I<t.length;++I)t[I]!=v&&(L||(L=[])).push(t[I]);return L}function Ia(t,v){t.markedSpans=t.markedSpans?t.markedSpans.concat([v]):[v],v.marker.attachLine(t)}function Yr(t,v,L){var I;if(t)for(var j=0;j<t.length;++j){var ae=t[j],xe=ae.marker,Oe=ae.from==null||(xe.inclusiveLeft?ae.from<=v:ae.from<v);if(Oe||ae.from==v&&xe.type=="bookmark"&&(!L||!ae.marker.insertLeft)){var Me=ae.to==null||(xe.inclusiveRight?ae.to>=v:ae.to>v);(I||(I=[])).push(new xa(xe,ae.from,Me?null:ae.to))}}return I}function za(t,v,L){var I;if(t)for(var j=0;j<t.length;++j){var ae=t[j],xe=ae.marker,Oe=ae.to==null||(xe.inclusiveRight?ae.to>=v:ae.to>v);if(Oe||ae.from==v&&xe.type=="bookmark"&&(!L||ae.marker.insertLeft)){var Me=ae.from==null||(xe.inclusiveLeft?ae.from<=v:ae.from<v);(I||(I=[])).push(new xa(xe,Me?null:ae.from-v,ae.to==null?null:ae.to-v))}}return I}function Ga(t,v){if(v.full)return null;var L=ja(t,v.from.line)&&En(t,v.from.line).markedSpans,I=ja(t,v.to.line)&&En(t,v.to.line).markedSpans;if(!L&&!I)return null;var j=v.from.ch,ae=v.to.ch,xe=Qe(v.from,v.to)==0,Oe=Yr(L,j,xe),Me=za(I,ae,xe),He=v.text.length==1,gt=pe(v.text).length+(He?j:0);if(Oe)for(var wt=0;wt<Oe.length;++wt){var kt=Oe[wt];if(kt.to==null){var Pt=ka(Me,kt.marker);Pt?He&&(kt.to=Pt.to==null?null:Pt.to+gt):kt.to=j}}if(Me)for(var an=0;an<Me.length;++an){var gn=Me[an];if(gn.to!=null&&(gn.to+=gt),gn.from==null){var Mn=ka(Oe,gn.marker);Mn||(gn.from=gt,He&&(Oe||(Oe=[])).push(gn))}else gn.from+=gt,He&&(Oe||(Oe=[])).push(gn)}Oe&&(Oe=Da(Oe)),Me&&Me!=Oe&&(Me=Da(Me));var Vn=[Oe];if(!He){var or=v.text.length-2,Yn;if(or>0&&Oe)for(var pr=0;pr<Oe.length;++pr)Oe[pr].to==null&&(Yn||(Yn=[])).push(new xa(Oe[pr].marker,null,null));for(var Hr=0;Hr<or;++Hr)Vn.push(Yn);Vn.push(Me)}return Vn}function Da(t){for(var v=0;v<t.length;++v){var L=t[v];L.from!=null&&L.from==L.to&&L.marker.clearWhenEmpty!==!1&&t.splice(v--,1)}return t.length?t:null}function si(t,v,L){var I=null;if(t.iter(v.line,L.line+1,function(Pt){if(Pt.markedSpans)for(var an=0;an<Pt.markedSpans.length;++an){var gn=Pt.markedSpans[an].marker;gn.readOnly&&(!I||Q(I,gn)==-1)&&(I||(I=[])).push(gn)}}),!I)return null;for(var j=[{from:v,to:L}],ae=0;ae<I.length;++ae)for(var xe=I[ae],Oe=xe.find(0),Me=0;Me<j.length;++Me){var He=j[Me];if(Qe(He.to,Oe.from)<0||Qe(He.from,Oe.to)>0)continue;var gt=[Me,1],wt=Qe(He.from,Oe.from),kt=Qe(He.to,Oe.to);(wt<0||!xe.inclusiveLeft&&!wt)&&gt.push({from:He.from,to:Oe.from}),(kt>0||!xe.inclusiveRight&&!kt)&&gt.push({from:Oe.to,to:He.to}),j.splice.apply(j,gt),Me+=gt.length-3}return j}function di(t){var v=t.markedSpans;if(!v)return;for(var L=0;L<v.length;++L)v[L].marker.detachLine(t);t.markedSpans=null}function Ma(t,v){if(!v)return;for(var L=0;L<v.length;++L)v[L].marker.attachLine(t);t.markedSpans=v}function zr(t){return t.inclusiveLeft?-1:0}function Ar(t){return t.inclusiveRight?1:0}function Gr(t,v){var L=t.lines.length-v.lines.length;if(L!=0)return L;var I=t.find(),j=v.find(),ae=Qe(I.from,j.from)||zr(t)-zr(v);if(ae)return-ae;var xe=Qe(I.to,j.to)||Ar(t)-Ar(v);return xe||v.id-t.id}function qr(t,v){var L=ma&&t.markedSpans,I;if(L)for(var j=void 0,ae=0;ae<L.length;++ae)j=L[ae],j.marker.collapsed&&(v?j.from:j.to)==null&&(!I||Gr(I,j.marker)<0)&&(I=j.marker);return I}function _a(t){return qr(t,!0)}function Jr(t){return qr(t,!1)}function ji(t,v){var L=ma&&t.markedSpans,I;if(L)for(var j=0;j<L.length;++j){var ae=L[j];ae.marker.collapsed&&(ae.from==null||ae.from<v)&&(ae.to==null||ae.to>v)&&(!I||Gr(I,ae.marker)<0)&&(I=ae.marker)}return I}function Fa(t,v,L,I,j){var ae=En(t,v),xe=ma&&ae.markedSpans;if(xe)for(var Oe=0;Oe<xe.length;++Oe){var Me=xe[Oe];if(!Me.marker.collapsed)continue;var He=Me.marker.find(0),gt=Qe(He.from,L)||zr(Me.marker)-zr(j),wt=Qe(He.to,I)||Ar(Me.marker)-Ar(j);if(gt>=0&&wt<=0||gt<=0&&wt>=0)continue;if(gt<=0&&(Me.marker.inclusiveRight&&j.inclusiveLeft?Qe(He.to,L)>=0:Qe(He.to,L)>0)||gt>=0&&(Me.marker.inclusiveRight&&j.inclusiveLeft?Qe(He.from,I)<=0:Qe(He.from,I)<0))return!0}}function vi(t){for(var v;v=_a(t);)t=v.find(-1,!0).line;return t}function vo(t){for(var v;v=Jr(t);)t=v.find(1,!0).line;return t}function Wo(t){for(var v,L;v=Jr(t);)t=v.find(1,!0).line,(L||(L=[])).push(t);return L}function Ca(t,v){var L=En(t,v),I=vi(L);return L==I?v:Nr(I)}function Ro(t,v){if(v>t.lastLine())return v;var L=En(t,v),I;if(!hi(t,L))return v;for(;I=Jr(L);)L=I.find(1,!0).line;return Nr(L)+1}function hi(t,v){var L=ma&&v.markedSpans;if(L)for(var I=void 0,j=0;j<L.length;++j){if(I=L[j],!I.marker.collapsed)continue;if(I.from==null)return!0;if(I.marker.widgetNode)continue;if(I.from==0&&I.marker.inclusiveLeft&&os(t,v,I))return!0}}function os(t,v,L){if(L.to==null){var I=L.marker.find(1,!0);return os(t,I.line,ka(I.line.markedSpans,L.marker))}if(L.marker.inclusiveRight&&L.to==v.text.length)return!0;for(var j=void 0,ae=0;ae<v.markedSpans.length;++ae)if(j=v.markedSpans[ae],j.marker.collapsed&&!j.marker.widgetNode&&j.from==L.to&&(j.to==null||j.to!=L.from)&&(j.marker.inclusiveLeft||L.marker.inclusiveRight)&&os(t,v,j))return!0}function eo(t){t=vi(t);for(var v=0,L=t.parent,I=0;I<L.lines.length;++I){var j=L.lines[I];if(j==t)break;v+=j.height}for(var ae=L.parent;ae;L=ae,ae=L.parent)for(var xe=0;xe<ae.children.length;++xe){var Oe=ae.children[xe];if(Oe==L)break;v+=Oe.height}return v}function ss(t){if(t.height==0)return 0;for(var v=t.text.length,L,I=t;L=_a(I);){var j=L.find(0,!0);I=j.from.line,v+=j.from.ch-j.to.ch}for(I=t;L=Jr(I);){var ae=L.find(0,!0);v-=I.text.length-ae.from.ch,I=ae.to.line,v+=I.text.length-ae.to.ch}return v}function Jo(t){var v=t.display,L=t.doc;v.maxLine=En(L,L.first),v.maxLineLength=ss(v.maxLine),v.maxLineChanged=!0,L.iter(function(I){var j=ss(I);j>v.maxLineLength&&(v.maxLineLength=j,v.maxLine=I)})}var Ui=function(t,v,L){this.text=t,Ma(this,v),this.height=L?L(this):1};Ui.prototype.lineNo=function(){return Nr(this)},$e(Ui);function Zo(t,v,L,I){t.text=v,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),di(t),Ma(t,L);var j=I?I(t):1;j!=t.height&&Xr(t,j)}function ps(t){t.parent=null,di(t)}var kn={},Cr={};function gr(t,v){if(!t||/^\s*$/.test(t))return null;var L=v.addModeClass?Cr:kn;return L[t]||(L[t]=t.replace(/\S+/g,"cm-$&"))}function Vr(t,v){var L=O("span",null,null,c?"padding-right: .1px":null),I={pre:O("pre",[L],"CodeMirror-line"),content:L,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};v.measure={};for(var j=0;j<=(v.rest?v.rest.length:0);j++){var ae=j?v.rest[j-1]:v.line,xe=void 0;I.pos=0,I.addToken=Sa,Zt(t.display.measure)&&(xe=xt(ae,t.doc.direction))&&(I.addToken=Ai(I.addToken,xe)),I.map=[];var Oe=v!=t.display.externalMeasured&&Nr(ae);ra(ae,I,Nt(t,ae,Oe)),ae.styleClasses&&(ae.styleClasses.bgClass&&(I.bgClass=H(ae.styleClasses.bgClass,I.bgClass||"")),ae.styleClasses.textClass&&(I.textClass=H(ae.styleClasses.textClass,I.textClass||""))),I.map.length==0&&I.map.push(0,0,I.content.appendChild(un(t.display.measure))),j==0?(v.measure.map=I.map,v.measure.cache={}):((v.measure.maps||(v.measure.maps=[])).push(I.map),(v.measure.caches||(v.measure.caches=[])).push({}))}if(c){var Me=I.content.lastChild;(/\bcm-tab\b/.test(Me.className)||Me.querySelector&&Me.querySelector(".cm-tab"))&&(I.content.className="cm-tab-wrap-hack")}return ct(t,"renderLine",t,v.line,I.pre),I.pre.className&&(I.textClass=H(I.pre.className,I.textClass||"")),I}function Aa(t){var v=x("span","\u2022","cm-invalidchar");return v.title="\\u"+t.charCodeAt(0).toString(16),v.setAttribute("aria-label",v.title),v}function Sa(t,v,L,I,j,ae,xe){if(!v)return;var Oe=t.splitSpaces?la(v,t.trailingSpace):v,Me=t.cm.state.specialChars,He=!1,gt;if(!Me.test(v))t.col+=v.length,gt=document.createTextNode(Oe),t.map.push(t.pos,t.pos+v.length,gt),C&&m<9&&(He=!0),t.pos+=v.length;else{gt=document.createDocumentFragment();for(var wt=0;;){Me.lastIndex=wt;var kt=Me.exec(v),Pt=kt?kt.index-wt:v.length-wt;if(Pt){var an=document.createTextNode(Oe.slice(wt,wt+Pt));C&&m<9?gt.appendChild(x("span",[an])):gt.appendChild(an),t.map.push(t.pos,t.pos+Pt,an),t.col+=Pt,t.pos+=Pt}if(!kt)break;wt+=Pt+1;var gn=void 0;if(kt[0]==" "){var Mn=t.cm.options.tabSize,Vn=Mn-t.col%Mn;gn=gt.appendChild(x("span",Ee(Vn),"cm-tab")),gn.setAttribute("role","presentation"),gn.setAttribute("cm-text"," "),t.col+=Vn}else kt[0]=="\r"||kt[0]==`
`?(gn=gt.appendChild(x("span",kt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),gn.setAttribute("cm-text",kt[0]),t.col+=1):(gn=t.cm.options.specialCharPlaceholder(kt[0]),gn.setAttribute("cm-text",kt[0]),C&&m<9?gt.appendChild(x("span",[gn])):gt.appendChild(gn),t.col+=1);t.map.push(t.pos,t.pos+1,gn),t.pos++}}if(t.trailingSpace=Oe.charCodeAt(v.length-1)==32,L||I||j||He||ae||xe){var or=L||"";I&&(or+=I),j&&(or+=j);var Yn=x("span",[gt],or,ae);if(xe)for(var pr in xe)xe.hasOwnProperty(pr)&&pr!="style"&&pr!="class"&&Yn.setAttribute(pr,xe[pr]);return t.content.appendChild(Yn)}t.content.appendChild(gt)}function la(t,v){if(t.length>1&&!/ /.test(t))return t;for(var L=v,I="",j=0;j<t.length;j++){var ae=t.charAt(j);ae==" "&&L&&(j==t.length-1||t.charCodeAt(j+1)==32)&&(ae="\xA0"),I+=ae,L=ae==" "}return I}function Ai(t,v){return function(L,I,j,ae,xe,Oe,Me){j=j?j+" cm-force-border":"cm-force-border";for(var He=L.pos,gt=He+I.length;;){for(var wt=void 0,kt=0;kt<v.length&&!(wt=v[kt],wt.to>He&&wt.from<=He);kt++);if(wt.to>=gt)return t(L,I,j,ae,xe,Oe,Me);t(L,I.slice(0,wt.to-He),j,ae,null,Oe,Me),ae=null,I=I.slice(wt.to-He),He=wt.to}}}function Hi(t,v,L,I){var j=!I&&L.widgetNode;j&&t.map.push(t.pos,t.pos+v,j),!I&&t.cm.display.input.needsContentAttribute&&(j||(j=t.content.appendChild(document.createElement("span"))),j.setAttribute("cm-marker",L.id)),j&&(t.cm.display.input.setUneditable(j),t.content.appendChild(j)),t.pos+=v,t.trailingSpace=!1}function ra(t,v,L){var I=t.markedSpans,j=t.text,ae=0;if(!I){for(var xe=1;xe<L.length;xe+=2)v.addToken(v,j.slice(ae,ae=L[xe]),gr(L[xe+1],v.cm.options));return}for(var Oe=j.length,Me=0,He=1,gt="",wt,kt,Pt=0,an,gn,Mn,Vn,or;;){if(Pt==Me){an=gn=Mn=kt="",or=null,Vn=null,Pt=Infinity;for(var Yn=[],pr=void 0,Hr=0;Hr<I.length;++Hr){var Lr=I[Hr],pa=Lr.marker;if(pa.type=="bookmark"&&Lr.from==Me&&pa.widgetNode)Yn.push(pa);else if(Lr.from<=Me&&(Lr.to==null||Lr.to>Me||pa.collapsed&&Lr.to==Me&&Lr.from==Me)){if(Lr.to!=null&&Lr.to!=Me&&Pt>Lr.to&&(Pt=Lr.to,gn=""),pa.className&&(an+=" "+pa.className),pa.css&&(kt=(kt?kt+";":"")+pa.css),pa.startStyle&&Lr.from==Me&&(Mn+=" "+pa.startStyle),pa.endStyle&&Lr.to==Pt&&(pr||(pr=[])).push(pa.endStyle,Lr.to),pa.title&&((or||(or={})).title=pa.title),pa.attributes)for(var ci in pa.attributes)(or||(or={}))[ci]=pa.attributes[ci];pa.collapsed&&(!Vn||Gr(Vn.marker,pa)<0)&&(Vn=Lr)}else Lr.from>Me&&Pt>Lr.from&&(Pt=Lr.from)}if(pr)for(var so=0;so<pr.length;so+=2)pr[so+1]==Pt&&(gn+=" "+pr[so]);if(!Vn||Vn.from==Me)for(var Ri=0;Ri<Yn.length;++Ri)Hi(v,0,Yn[Ri]);if(Vn&&(Vn.from||0)==Me){if(Hi(v,(Vn.to==null?Oe+1:Vn.to)-Me,Vn.marker,Vn.from==null),Vn.to==null)return;Vn.to==Me&&(Vn=!1)}}if(Me>=Oe)break;for(var Yo=Math.min(Oe,Pt);;){if(gt){var Co=Me+gt.length;if(!Vn){var zi=Co>Yo?gt.slice(0,Yo-Me):gt;v.addToken(v,zi,wt?wt+an:an,Mn,Me+zi.length==Pt?gn:"",kt,or)}if(Co>=Yo){gt=gt.slice(Yo-Me),Me=Yo;break}Me=Co,Mn=""}gt=j.slice(ae,ae=L[He++]),wt=gr(L[He++],v.cm.options)}}}function zo(t,v,L){this.line=v,this.rest=Wo(v),this.size=this.rest?Nr(pe(this.rest))-L+1:1,this.node=this.text=null,this.hidden=hi(t,v)}function fa(t,v,L){for(var I=[],j,ae=v;ae<L;ae=j){var xe=new zo(t.doc,En(t.doc,ae),ae);j=ae+xe.size,I.push(xe)}return I}var Si=null;function uo(t){Si?Si.ops.push(t):t.ownsGroup=Si={ops:[t],delayedCallbacks:[]}}function Gi(t){var v=t.delayedCallbacks,L=0;do{for(;L<v.length;L++)v[L].call(null);for(var I=0;I<t.ops.length;I++){var j=t.ops[I];if(j.cursorActivityHandlers)for(;j.cursorActivityCalled<j.cursorActivityHandlers.length;)j.cursorActivityHandlers[j.cursorActivityCalled++].call(null,j.cm)}}while(L<v.length)}function va(t,v){var L=t.ownsGroup;if(!L)return;try{Gi(L)}finally{Si=null,v(L)}}var oa=null;function ua(t,v){var L=yt(t,v);if(!L.length)return;var I=Array.prototype.slice.call(arguments,2),j;Si?j=Si.delayedCallbacks:oa?j=oa:(j=oa=[],setTimeout(to,0));for(var ae=function(Oe){j.push(function(){return L[Oe].apply(null,I)})},xe=0;xe<L.length;++xe)ae(xe)}function to(){var t=oa;oa=null;for(var v=0;v<t.length;++v)t[v]()}function ls(t,v,L,I){for(var j=0;j<v.changes.length;j++){var ae=v.changes[j];ae=="text"?js(t,v):ae=="gutter"?cs(t,v,L,I):ae=="class"?Zs(t,v):ae=="widget"&&dl(t,v,I)}v.changes=null}function us(t){return t.node==t.text&&(t.node=x("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),C&&m<8&&(t.node.style.zIndex=2)),t.node}function Is(t,v){var L=v.bgClass?v.bgClass+" "+(v.line.bgClass||""):v.line.bgClass;if(L&&(L+=" CodeMirror-linebackground"),v.background)L?v.background.className=L:(v.background.parentNode.removeChild(v.background),v.background=null);else if(L){var I=us(v);v.background=I.insertBefore(x("div",null,L),I.firstChild),t.display.input.setUneditable(v.background)}}function xs(t,v){var L=t.display.externalMeasured;return L&&L.line==v.line?(t.display.externalMeasured=null,v.measure=L.measure,L.built):Vr(t,v)}function js(t,v){var L=v.text.className,I=xs(t,v);v.text==v.node&&(v.node=I.pre),v.text.parentNode.replaceChild(I.pre,v.text),v.text=I.pre,I.bgClass!=v.bgClass||I.textClass!=v.textClass?(v.bgClass=I.bgClass,v.textClass=I.textClass,Zs(t,v)):L&&(v.text.className=L)}function Zs(t,v){Is(t,v),v.line.wrapClass?us(v).className=v.line.wrapClass:v.node!=v.text&&(v.node.className="");var L=v.textClass?v.textClass+" "+(v.line.textClass||""):v.line.textClass;v.text.className=L||""}function cs(t,v,L,I){if(v.gutter&&(v.node.removeChild(v.gutter),v.gutter=null),v.gutterBackground&&(v.node.removeChild(v.gutterBackground),v.gutterBackground=null),v.line.gutterClass){var j=us(v);v.gutterBackground=x("div",null,"CodeMirror-gutter-background "+v.line.gutterClass,"left: "+(t.options.fixedGutter?I.fixedPos:-I.gutterTotalWidth)+"px; width: "+I.gutterTotalWidth+"px"),t.display.input.setUneditable(v.gutterBackground),j.insertBefore(v.gutterBackground,v.text)}var ae=v.line.gutterMarkers;if(t.options.lineNumbers||ae){var xe=us(v),Oe=v.gutter=x("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?I.fixedPos:-I.gutterTotalWidth)+"px");if(t.display.input.setUneditable(Oe),xe.insertBefore(Oe,v.text),v.line.gutterClass&&(Oe.className+=" "+v.line.gutterClass),t.options.lineNumbers&&(!ae||!ae["CodeMirror-linenumbers"])&&(v.lineNumber=Oe.appendChild(x("div",oi(t.options,L),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+I.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),ae)for(var Me=0;Me<t.display.gutterSpecs.length;++Me){var He=t.display.gutterSpecs[Me].className,gt=ae.hasOwnProperty(He)&&ae[He];gt&&Oe.appendChild(x("div",[gt],"CodeMirror-gutter-elt","left: "+I.gutterLeft[He]+"px; width: "+I.gutterWidth[He]+"px"))}}}function dl(t,v,L){v.alignable&&(v.alignable=null);for(var I=b("CodeMirror-linewidget"),j=v.node.firstChild,ae=void 0;j;j=ae)ae=j.nextSibling,I.test(j.className)&&v.node.removeChild(j);xo(t,v,L)}function $s(t,v,L,I){var j=xs(t,v);return v.text=v.node=j.pre,j.bgClass&&(v.bgClass=j.bgClass),j.textClass&&(v.textClass=j.textClass),Zs(t,v),cs(t,v,L,I),xo(t,v,I),v.node}function xo(t,v,L){if(ms(t,v.line,v,L,!0),v.rest)for(var I=0;I<v.rest.length;I++)ms(t,v.rest[I],v,L,!1)}function ms(t,v,L,I,j){if(!v.widgets)return;for(var ae=us(L),xe=0,Oe=v.widgets;xe<Oe.length;++xe){var Me=Oe[xe],He=x("div",[Me.node],"CodeMirror-linewidget"+(Me.className?" "+Me.className:""));Me.handleMouseEvents||He.setAttribute("cm-ignore-events","true"),Qa(Me,He,L,I),t.display.input.setUneditable(He),j&&Me.above?ae.insertBefore(He,L.gutter||L.text):ae.appendChild(He),ua(Me,"redraw")}}function Qa(t,v,L,I){if(t.noHScroll){(L.alignable||(L.alignable=[])).push(v);var j=I.wrapperWidth;v.style.left=I.fixedPos+"px",t.coverGutter||(j-=I.gutterTotalWidth,v.style.paddingLeft=I.gutterTotalWidth+"px"),v.style.width=j+"px"}t.coverGutter&&(v.style.zIndex=5,v.style.position="relative",t.noHScroll||(v.style.marginLeft=-I.gutterTotalWidth+"px"))}function _s(t){if(t.height!=null)return t.height;var v=t.doc.cm;if(!v)return 0;if(!D(document.body,t.node)){var L="position: relative;";t.coverGutter&&(L+="margin-left: -"+v.display.gutters.offsetWidth+"px;"),t.noHScroll&&(L+="width: "+v.display.wrapper.clientWidth+"px;"),i(v.display.measure,x("div",[t.node],null,L))}return t.height=t.node.parentNode.offsetHeight}function _o(t,v){for(var L=mt(v);L!=t.wrapper;L=L.parentNode)if(!L||L.nodeType==1&&L.getAttribute("cm-ignore-events")=="true"||L.parentNode==t.sizer&&L!=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 v=i(t.measure,x("pre","x","CodeMirror-line-like")),L=window.getComputedStyle?window.getComputedStyle(v):v.currentStyle,I={left:parseInt(L.paddingLeft),right:parseInt(L.paddingRight)};return!isNaN(I.left)&&!isNaN(I.right)&&(t.cachedPaddingH=I),I}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,v,L){var I=t.options.lineWrapping,j=I&&Je(t);if(!v.measure.heights||I&&v.measure.width!=j){var ae=v.measure.heights=[];if(I){v.measure.width=j;for(var xe=v.text.firstChild.getClientRects(),Oe=0;Oe<xe.length-1;Oe++){var Me=xe[Oe],He=xe[Oe+1];Math.abs(Me.bottom-He.bottom)>2&&ae.push((Me.bottom+He.top)/2-L.top)}}ae.push(L.bottom-L.top)}}function Be(t,v,L){if(t.line==v)return{map:t.measure.map,cache:t.measure.cache};for(var I=0;I<t.rest.length;I++)if(t.rest[I]==v)return{map:t.measure.maps[I],cache:t.measure.caches[I]};for(var j=0;j<t.rest.length;j++)if(Nr(t.rest[j])>L)return{map:t.measure.maps[j],cache:t.measure.caches[j],before:!0}}function at(t,v){v=vi(v);var L=Nr(v),I=t.display.externalMeasured=new zo(t.doc,v,L);I.lineN=L;var j=I.built=Vr(t,I);return I.text=j.pre,i(t.display.lineMeasure,j.pre),I}function nt(t,v,L,I){return dt(t,it(t,v),L,I)}function st(t,v){if(v>=t.display.viewFrom&&v<t.display.viewTo)return t.display.view[ar(t,v)];var L=t.display.externalMeasured;if(L&&v>=L.lineN&&v<L.lineN+L.size)return L}function it(t,v){var L=Nr(v),I=st(t,L);I&&!I.text?I=null:I&&I.changes&&(ls(t,I,L,kr(t)),t.curOp.forceUpdate=!0),I||(I=at(t,v));var j=Be(I,v,L);return{line:v,view:I,rect:null,map:j.map,cache:j.cache,before:j.before,hasHeights:!1}}function dt(t,v,L,I,j){v.before&&(L=-1);var ae=L+(I||""),xe;return v.cache.hasOwnProperty(ae)?xe=v.cache[ae]:(v.rect||(v.rect=v.view.text.getBoundingClientRect()),v.hasHeights||(Ve(t,v.view,v.rect),v.hasHeights=!0),xe=$t(t,v,L,I),xe.bogus||(v.cache[ae]=xe)),{left:xe.left,right:xe.right,top:j?xe.rtop:xe.top,bottom:j?xe.rbottom:xe.bottom}}var Dt={left:0,right:0,top:0,bottom:0};function Qt(t,v,L){for(var I,j,ae,xe,Oe,Me,He=0;He<t.length;He+=3)if(Oe=t[He],Me=t[He+1],v<Oe?(j=0,ae=1,xe="left"):v<Me?(j=v-Oe,ae=j+1):(He==t.length-3||v==Me&&t[He+3]>v)&&(ae=Me-Oe,j=ae-1,v>=Me&&(xe="right")),j!=null){if(I=t[He+2],Oe==Me&&L==(I.insertLeft?"left":"right")&&(xe=L),L=="left"&&j==0)for(;He&&t[He-2]==t[He-3]&&t[He-1].insertLeft;)I=t[(He-=3)+2],xe="left";if(L=="right"&&j==Me-Oe)for(;He<t.length-3&&t[He+3]==t[He+4]&&!t[He+5].insertLeft;)I=t[(He+=3)+2],xe="right";break}return{node:I,start:j,end:ae,collapse:xe,coverStart:Oe,coverEnd:Me}}function Bt(t,v){var L=Dt;if(v=="left")for(var I=0;I<t.length&&!((L=t[I]).left!=L.right);I++);else for(var j=t.length-1;j>=0&&!((L=t[j]).left!=L.right);j--);return L}function $t(t,v,L,I){var j=Qt(v.map,L,I),ae=j.node,xe=j.start,Oe=j.end,Me=j.collapse,He;if(ae.nodeType==3){for(var gt=0;gt<4;gt++){for(;xe&&F(v.line.text.charAt(j.coverStart+xe));)--xe;for(;j.coverStart+Oe<j.coverEnd&&F(v.line.text.charAt(j.coverStart+Oe));)++Oe;if(C&&m<9&&xe==0&&Oe==j.coverEnd-j.coverStart?He=ae.parentNode.getBoundingClientRect():He=Bt(T(ae,xe,Oe).getClientRects(),I),He.left||He.right||xe==0)break;Oe=xe,xe=xe-1,Me="right"}C&&m<11&&(He=ln(t.display.measure,He))}else{xe>0&&(Me=I="right");var wt;t.options.lineWrapping&&(wt=ae.getClientRects()).length>1?He=wt[I=="right"?wt.length-1:0]:He=ae.getBoundingClientRect()}if(C&&m<9&&!xe&&(!He||!He.left&&!He.right)){var kt=ae.parentNode.getClientRects()[0];kt?He={left:kt.left,right:kt.left+Qn(t.display),top:kt.top,bottom:kt.bottom}:He=Dt}for(var Pt=He.top-v.rect.top,an=He.bottom-v.rect.top,gn=(Pt+an)/2,Mn=v.view.measure.heights,Vn=0;Vn<Mn.length-1&&!(gn<Mn[Vn]);Vn++);var or=Vn?Mn[Vn-1]:0,Yn=Mn[Vn],pr={left:(Me=="right"?He.right:He.left)-v.rect.left,right:(Me=="left"?He.left:He.right)-v.rect.left,top:or,bottom:Yn};return!He.left&&!He.right&&(pr.bogus=!0),t.options.singleCursorHeightPerLine||(pr.rtop=Pt,pr.rbottom=an),pr}function ln(t,v){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!We(t))return v;var L=screen.logicalXDPI/screen.deviceXDPI,I=screen.logicalYDPI/screen.deviceYDPI;return{left:v.left*L,right:v.right*L,top:v.top*I,bottom:v.bottom*I}}function On(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var v=0;v<t.rest.length;v++)t.measure.caches[v]={}}function Wt(t){t.display.externalMeasure=null,l(t.display.lineMeasure);for(var v=0;v<t.display.view.length;v++)On(t.display.view[v])}function qt(t){Wt(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function yn(){return n&&d?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Rn(){return n&&d?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function tn(t){var v=0;if(t.widgets)for(var L=0;L<t.widgets.length;++L)t.widgets[L].above&&(v+=_s(t.widgets[L]));return v}function bn(t,v,L,I,j){if(!j){var ae=tn(v);L.top+=ae,L.bottom+=ae}if(I=="line")return L;I||(I="local");var xe=eo(v);if(I=="local"?xe+=Hs(t.display):xe-=t.display.viewOffset,I=="page"||I=="window"){var Oe=t.display.lineSpace.getBoundingClientRect();xe+=Oe.top+(I=="window"?0:Rn());var Me=Oe.left+(I=="window"?0:yn());L.left+=Me,L.right+=Me}return L.top+=xe,L.bottom+=xe,L}function Ln(t,v,L){if(L=="div")return v;var I=v.left,j=v.top;if(L=="page")I-=yn(),j-=Rn();else if(L=="local"||!L){var ae=t.display.sizer.getBoundingClientRect();I+=ae.left,j+=ae.top}var xe=t.display.lineSpace.getBoundingClientRect();return{left:I-xe.left,top:j-xe.top}}function Xn(t,v,L,I,j){return I||(I=En(t.doc,v.line)),bn(t,I,nt(t,I,v.ch,j),L)}function rn(t,v,L,I,j,ae){I=I||En(t.doc,v.line),j||(j=it(t,I));function xe(an,gn){var Mn=dt(t,j,an,gn?"right":"left",ae);return gn?Mn.left=Mn.right:Mn.right=Mn.left,bn(t,I,Mn,L)}var Oe=xt(I,t.doc.direction),Me=v.ch,He=v.sticky;if(Me>=I.text.length?(Me=I.text.length,He="before"):Me<=0&&(Me=0,He="after"),!Oe)return xe(He=="before"?Me-1:Me,He=="before");function gt(an,gn,Mn){var Vn=Oe[gn],or=Vn.level==1;return xe(Mn?an-1:an,or!=Mn)}var wt=De(Oe,Me,He),kt=le,Pt=gt(Me,wt,He=="before");return kt!=null&&(Pt.other=gt(Me,kt,He!="before")),Pt}function hn(t,v){var L=0;v=z(t.doc,v),t.options.lineWrapping||(L=Qn(t.display)*v.ch);var I=En(t.doc,v.line),j=eo(I)+Hs(t.display);return{left:L,right:L,top:j,bottom:j+I.height}}function An(t,v,L,I,j){var ae=Le(t,v,L);return ae.xRel=j,I&&(ae.outside=I),ae}function _n(t,v,L){var I=t.doc;if(L+=t.display.viewOffset,L<0)return An(I.first,0,null,-1,-1);var j=ba(I,L),ae=I.first+I.size-1;if(j>ae)return An(I.first+I.size-1,En(I,ae).text.length,null,1,1);v<0&&(v=0);for(var xe=En(I,j);;){var Oe=Ir(t,xe,j,v,L),Me=ji(xe,Oe.ch+(Oe.xRel>0||Oe.outside>0?1:0));if(!Me)return Oe;var He=Me.find(1);if(He.line==j)return He;xe=En(I,j=He.line)}}function tr(t,v,L,I){I-=tn(v);var j=v.text.length,ae=de(function(xe){return dt(t,L,xe-1).bottom<=I},j,0);return j=de(function(xe){return dt(t,L,xe).top>I},ae,j),{begin:ae,end:j}}function cn(t,v,L,I){L||(L=it(t,v));var j=bn(t,v,dt(t,L,I),"line").top;return tr(t,v,L,j)}function Fn(t,v,L,I){return t.bottom<=L?!1:t.top>L?!0:(I?t.left:t.right)>v}function Ir(t,v,L,I,j){j-=eo(v);var ae=it(t,v),xe=tn(v),Oe=0,Me=v.text.length,He=!0,gt=xt(v,t.doc.direction);if(gt){var wt=(t.options.lineWrapping?Br:hr)(t,v,L,ae,gt,I,j);He=wt.level!=1,Oe=He?wt.from:wt.to-1,Me=He?wt.to:wt.from-1}var kt=null,Pt=null,an=de(function(Hr){var Lr=dt(t,ae,Hr);return Lr.top+=xe,Lr.bottom+=xe,Fn(Lr,I,j,!1)?(Lr.top<=j&&Lr.left<=I&&(kt=Hr,Pt=Lr),!0):!1},Oe,Me),gn,Mn,Vn=!1;if(Pt){var or=I-Pt.left<Pt.right-I,Yn=or==He;an=kt+(Yn?0:1),Mn=Yn?"after":"before",gn=or?Pt.left:Pt.right}else{!He&&(an==Me||an==Oe)&&an++,Mn=an==0?"after":an==v.text.length?"before":dt(t,ae,an-(He?1:0)).bottom+xe<=j==He?"after":"before";var pr=rn(t,Le(L,an,Mn),"line",v,ae);gn=pr.left,Vn=j<pr.top?-1:j>=pr.bottom?1:0}return an=W(v.text,an,1),An(L,an,Mn,Vn,I-gn)}function hr(t,v,L,I,j,ae,xe){var Oe=de(function(wt){var kt=j[wt],Pt=kt.level!=1;return Fn(rn(t,Le(L,Pt?kt.to:kt.from,Pt?"before":"after"),"line",v,I),ae,xe,!0)},0,j.length-1),Me=j[Oe];if(Oe>0){var He=Me.level!=1,gt=rn(t,Le(L,He?Me.from:Me.to,He?"after":"before"),"line",v,I);Fn(gt,ae,xe,!0)&&gt.top>xe&&(Me=j[Oe-1])}return Me}function Br(t,v,L,I,j,ae,xe){var Oe=tr(t,v,I,xe),Me=Oe.begin,He=Oe.end;/\s/.test(v.text.charAt(He-1))&&He--;for(var gt=null,wt=null,kt=0;kt<j.length;kt++){var Pt=j[kt];if(Pt.from>=He||Pt.to<=Me)continue;var an=Pt.level!=1,gn=dt(t,I,an?Math.min(He,Pt.to)-1:Math.max(Me,Pt.from)).right,Mn=gn<ae?ae-gn+1e9:gn-ae;(!gt||wt>Mn)&&(gt=Pt,wt=Mn)}return gt||(gt=j[j.length-1]),gt.from<Me&&(gt={from:Me,to:gt.to,level:gt.level}),gt.to>He&&(gt={from:gt.from,to:He,level:gt.level}),gt}var ur;function Fr(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(ur==null){ur=x("pre",null,"CodeMirror-line-like");for(var v=0;v<49;++v)ur.appendChild(document.createTextNode("x")),ur.appendChild(x("br"));ur.appendChild(document.createTextNode("x"))}i(t.measure,ur);var L=ur.offsetHeight/50;return L>3&&(t.cachedTextHeight=L),l(t.measure),L||1}function Qn(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var v=x("span","xxxxxxxxxx"),L=x("pre",[v],"CodeMirror-line-like");i(t.measure,L);var I=v.getBoundingClientRect(),j=(I.right-I.left)/10;return j>2&&(t.cachedCharWidth=j),j||10}function kr(t){for(var v=t.display,L={},I={},j=v.gutters.clientLeft,ae=v.gutters.firstChild,xe=0;ae;ae=ae.nextSibling,++xe){var Oe=t.display.gutterSpecs[xe].className;L[Oe]=ae.offsetLeft+ae.clientLeft+j,I[Oe]=ae.clientWidth}return{fixedPos:ta(v),gutterTotalWidth:v.gutters.offsetWidth,gutterLeft:L,gutterWidth:I,wrapperWidth:v.wrapper.clientWidth}}function ta(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Wr(t){var v=Fr(t.display),L=t.options.lineWrapping,I=L&&Math.max(5,t.display.scroller.clientWidth/Qn(t.display)-3);return function(j){if(hi(t.doc,j))return 0;var ae=0;if(j.widgets)for(var xe=0;xe<j.widgets.length;xe++)j.widgets[xe].height&&(ae+=j.widgets[xe].height);return L?ae+(Math.ceil(j.text.length/I)||1)*v:ae+v}}function yr(t){var v=t.doc,L=Wr(t);v.iter(function(I){var j=L(I);j!=I.height&&Xr(I,j)})}function Dn(t,v,L,I){var j=t.display;if(!L&&mt(v).getAttribute("cm-not-content")=="true")return null;var ae,xe,Oe=j.lineSpace.getBoundingClientRect();try{ae=v.clientX-Oe.left,xe=v.clientY-Oe.top}catch(wt){return null}var Me=_n(t,ae,xe),He;if(I&&Me.xRel>0&&(He=En(t.doc,Me.line).text).length==Me.ch){var gt=G(He,He.length,t.options.tabSize)-He.length;Me=Le(Me.line,Math.max(0,Math.round((ae-Ge(t.display).left)/Qn(t.display))-gt))}return Me}function ar(t,v){if(v>=t.display.viewTo)return null;if(v-=t.display.viewFrom,v<0)return null;for(var L=t.display.view,I=0;I<L.length;I++)if(v-=L[I].size,v<0)return I}function Pr(t,v,L,I){v==null&&(v=t.doc.first),L==null&&(L=t.doc.first+t.doc.size),I||(I=0);var j=t.display;if(I&&L<j.viewTo&&(j.updateLineNumbers==null||j.updateLineNumbers>v)&&(j.updateLineNumbers=v),t.curOp.viewChanged=!0,v>=j.viewTo)ma&&Ca(t.doc,v)<j.viewTo&&$n(t);else if(L<=j.viewFrom)ma&&Ro(t.doc,L+I)>j.viewFrom?$n(t):(j.viewFrom+=I,j.viewTo+=I);else if(v<=j.viewFrom&&L>=j.viewTo)$n(t);else if(v<=j.viewFrom){var ae=ir(t,L,L+I,1);ae?(j.view=j.view.slice(ae.index),j.viewFrom=ae.lineN,j.viewTo+=I):$n(t)}else if(L>=j.viewTo){var xe=ir(t,v,v,-1);xe?(j.view=j.view.slice(0,xe.index),j.viewTo=xe.lineN):$n(t)}else{var Oe=ir(t,v,v,-1),Me=ir(t,L,L+I,1);Oe&&Me?(j.view=j.view.slice(0,Oe.index).concat(fa(t,Oe.lineN,Me.lineN)).concat(j.view.slice(Me.index)),j.viewTo+=I):$n(t)}var He=j.externalMeasured;He&&(L<He.lineN?He.lineN+=I:v<He.lineN+He.size&&(j.externalMeasured=null))}function jn(t,v,L){t.curOp.viewChanged=!0;var I=t.display,j=t.display.externalMeasured;if(j&&v>=j.lineN&&v<j.lineN+j.size&&(I.externalMeasured=null),v<I.viewFrom||v>=I.viewTo)return;var ae=I.view[ar(t,v)];if(ae.node==null)return;var xe=ae.changes||(ae.changes=[]);Q(xe,L)==-1&&xe.push(L)}function $n(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function ir(t,v,L,I){var j=ar(t,v),ae,xe=t.display.view;if(!ma||L==t.doc.first+t.doc.size)return{index:j,lineN:L};for(var Oe=t.display.viewFrom,Me=0;Me<j;Me++)Oe+=xe[Me].size;if(Oe!=v){if(I>0){if(j==xe.length-1)return null;ae=Oe+xe[j].size-v,j++}else ae=Oe-v;v+=ae,L+=ae}for(;Ca(t.doc,L)!=L;){if(j==(I<0?0:xe.length-1))return null;L+=I*xe[j-(I<0?1:0)].size,j+=I}return{index:j,lineN:L}}function Zn(t,v,L){var I=t.display,j=I.view;j.length==0||v>=I.viewTo||L<=I.viewFrom?(I.view=fa(t,v,L),I.viewFrom=v):(I.viewFrom>v?I.view=fa(t,v,I.viewFrom).concat(I.view):I.viewFrom<v&&(I.view=I.view.slice(ar(t,v))),I.viewFrom=v,I.viewTo<L?I.view=I.view.concat(fa(t,I.viewTo,L)):I.viewTo>L&&(I.view=I.view.slice(0,ar(t,L)))),I.viewTo=L}function zn(t){for(var v=t.display.view,L=0,I=0;I<v.length;I++){var j=v[I];!j.hidden&&(!j.node||j.changes)&&++L}return L}function fn(t){t.display.input.showSelection(t.display.input.prepareSelection())}function on(t,v){v===void 0&&(v=!0);for(var L=t.doc,I={},j=I.cursors=document.createDocumentFragment(),ae=I.selection=document.createDocumentFragment(),xe=0;xe<L.sel.ranges.length;xe++){if(!v&&xe==L.sel.primIndex)continue;var Oe=L.sel.ranges[xe];if(Oe.from().line>=t.display.viewTo||Oe.to().line<t.display.viewFrom)continue;var Me=Oe.empty();(Me||t.options.showCursorWhenSelecting)&&Gn(t,Oe.head,j),Me||Sn(t,Oe,ae)}return I}function Gn(t,v,L){var I=rn(t,v,"div",null,null,!t.options.singleCursorHeightPerLine),j=L.appendChild(x("div","\xA0","CodeMirror-cursor"));if(j.style.left=I.left+"px",j.style.top=I.top+"px",j.style.height=Math.max(0,I.bottom-I.top)*t.options.cursorHeight+"px",I.other){var ae=L.appendChild(x("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ae.style.display="",ae.style.left=I.other.left+"px",ae.style.top=I.other.top+"px",ae.style.height=(I.other.bottom-I.other.top)*.85+"px"}}function Jn(t,v){return t.top-v.top||t.left-v.left}function Sn(t,v,L){var I=t.display,j=t.doc,ae=document.createDocumentFragment(),xe=Ge(t.display),Oe=xe.left,Me=Math.max(I.sizerWidth,Je(t)-I.sizer.offsetLeft)-xe.right,He=j.direction=="ltr";function gt(Yn,pr,Hr,Lr){pr<0&&(pr=0),pr=Math.round(pr),Lr=Math.round(Lr),ae.appendChild(x("div",null,"CodeMirror-selected","position: absolute; left: "+Yn+`px;
top: `+pr+"px; width: "+(Hr==null?Me-Yn:Hr)+`px;
height: `+(Lr-pr)+"px"))}function wt(Yn,pr,Hr){var Lr=En(j,Yn),pa=Lr.text.length,ci,so;function Ri(zi,wo){return Xn(t,Le(Yn,zi),"div",Lr,wo)}function Yo(zi,wo,mo){var Hn=cn(t,Lr,null,zi),wi=wo=="ltr"==(mo=="after")?"left":"right",xi=mo=="after"?Hn.begin:Hn.end-(/\s/.test(Lr.text.charAt(Hn.end-1))?2:1);return Ri(xi,wi)[wi]}var Co=xt(Lr,j.direction);return ne(Co,pr||0,Hr==null?pa:Hr,function(zi,wo,mo,Hn){var wi=mo=="ltr",xi=Ri(zi,wi?"left":"right"),_i=Ri(wo-1,wi?"right":"left"),ml=pr==null&&zi==0,Ba=Hr==null&&wo==pa,ga=Hn==0,as=!Co||Hn==Co.length-1;if(_i.top-xi.top<=3){var lo=(He?ml:Ba)&&ga,vl=(He?Ba:ml)&&as,Ns=lo?Oe:(wi?xi:_i).left,Ds=vl?Me:(wi?_i:xi).right;gt(Ns,xi.top,Ds-Ns,xi.bottom)}else{var sl,Oo,ll,fu;wi?(sl=He&&ml&&ga?Oe:xi.left,Oo=He?Me:Yo(zi,mo,"before"),ll=He?Oe:Yo(wo,mo,"after"),fu=He&&Ba&&as?Me:_i.right):(sl=He?Yo(zi,mo,"before"):Oe,Oo=!He&&ml&&ga?Me:xi.right,ll=!He&&Ba&&as?Oe:_i.left,fu=He?Yo(wo,mo,"after"):Me),gt(sl,xi.top,Oo-sl,xi.bottom),xi.bottom<_i.top&&gt(Oe,xi.bottom,null,_i.top),gt(ll,_i.top,fu-ll,_i.bottom)}(!ci||Jn(xi,ci)<0)&&(ci=xi),Jn(_i,ci)<0&&(ci=_i),(!so||Jn(xi,so)<0)&&(so=xi),Jn(_i,so)<0&&(so=_i)}),{start:ci,end:so}}var kt=v.from(),Pt=v.to();if(kt.line==Pt.line)wt(kt.line,kt.ch,Pt.ch);else{var an=En(j,kt.line),gn=En(j,Pt.line),Mn=vi(an)==vi(gn),Vn=wt(kt.line,kt.ch,Mn?an.text.length+1:null).end,or=wt(Pt.line,Mn?0:null,Pt.ch).start;Mn&&(Vn.top<or.top-2?(gt(Vn.right,Vn.top,null,Vn.bottom),gt(Oe,or.top,or.left,or.bottom)):gt(Vn.right,Vn.top,or.left-Vn.right,Vn.bottom)),Vn.bottom<or.top&&gt(Oe,Vn.bottom,null,or.top)}L.appendChild(ae)}function mr(t){if(!t.state.focused)return;var v=t.display;clearInterval(v.blinker);var L=!0;v.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?v.blinker=setInterval(function(){t.hasFocus()||aa(t),v.cursorDiv.style.visibility=(L=!L)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(v.cursorDiv.style.visibility="hidden")}function Kr(t){t.state.focused||(t.display.input.focus(),Ra(t))}function Va(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,aa(t))},100)}function Ra(t,v){if(t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),t.options.readOnly=="nocursor")return;t.state.focused||(ct(t,"focus",t,v),t.state.focused=!0,k(t.display.wrapper,"CodeMirror-focused"),!t.curOp&&t.display.selForContextMenu!=t.doc.sel&&(t.display.input.reset(),c&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),mr(t)}function aa(t,v){if(t.state.delayingBlurEvent)return;t.state.focused&&(ct(t,"blur",t,v),t.state.focused=!1,A(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150)}function gi(t){for(var v=t.display,L=v.lineDiv.offsetTop,I=0;I<v.view.length;I++){var j=v.view[I],ae=t.options.lineWrapping,xe=void 0,Oe=0;if(j.hidden)continue;if(C&&m<8){var Me=j.node.offsetTop+j.node.offsetHeight;xe=Me-L,L=Me}else{var He=j.node.getBoundingClientRect();xe=He.bottom-He.top,!ae&&j.text.firstChild&&(Oe=j.text.firstChild.getBoundingClientRect().right-He.left-1)}var gt=j.line.height-xe;if((gt>.005||gt<-.005)&&(Xr(j.line,xe),ti(j.line),j.rest))for(var wt=0;wt<j.rest.length;wt++)ti(j.rest[wt]);if(Oe>t.display.sizerWidth){var kt=Math.ceil(Oe/Qn(t.display));kt>t.display.maxLineLength&&(t.display.maxLineLength=kt,t.display.maxLine=j.line,t.display.maxLineChanged=!0)}}}function ti(t){if(t.widgets)for(var v=0;v<t.widgets.length;++v){var L=t.widgets[v],I=L.node.parentNode;I&&(L.height=I.offsetHeight)}}function Ka(t,v,L){var I=L&&L.top!=null?Math.max(0,L.top):t.scroller.scrollTop;I=Math.floor(I-Hs(t));var j=L&&L.bottom!=null?L.bottom:I+t.wrapper.clientHeight,ae=ba(v,I),xe=ba(v,j);if(L&&L.ensure){var Oe=L.ensure.from.line,Me=L.ensure.to.line;Oe<ae?(ae=Oe,xe=ba(v,eo(En(v,Oe))+t.wrapper.clientHeight)):Math.min(Me,v.lastLine())>=xe&&(ae=ba(v,eo(En(v,Me))-t.wrapper.clientHeight),xe=Me)}return{from:ae,to:Math.max(xe,ae+1)}}function no(t,v){if(lt(t,"scrollCursorIntoView"))return;var L=t.display,I=L.sizer.getBoundingClientRect(),j=null;if(v.top+I.top<0?j=!0:v.bottom+I.top>(window.innerHeight||document.documentElement.clientHeight)&&(j=!1),j!=null&&!o){var ae=x("div","\u200B",null,`position: absolute;
top: `+(v.top-L.viewOffset-Hs(t.display))+`px;
height: `+(v.bottom-v.top+Ye(t)+L.barHeight)+`px;
left: `+v.left+"px; width: "+Math.max(2,v.right-v.left)+"px;");t.display.lineSpace.appendChild(ae),ae.scrollIntoView(j),t.display.lineSpace.removeChild(ae)}}function ro(t,v,L,I){I==null&&(I=0);var j;!t.options.lineWrapping&&v==L&&(v=v.ch?Le(v.line,v.sticky=="before"?v.ch-1:v.ch,"after"):v,L=v.sticky=="before"?Le(v.line,v.ch+1,"before"):v);for(var ae=0;ae<5;ae++){var xe=!1,Oe=rn(t,v),Me=!L||L==v?Oe:rn(t,L);j={left:Math.min(Oe.left,Me.left),top:Math.min(Oe.top,Me.top)-I,right:Math.max(Oe.left,Me.left),bottom:Math.max(Oe.bottom,Me.bottom)+I};var He=Io(t,j),gt=t.doc.scrollTop,wt=t.doc.scrollLeft;if(He.scrollTop!=null&&(ho(t,He.scrollTop),Math.abs(t.doc.scrollTop-gt)>1&&(xe=!0)),He.scrollLeft!=null&&(Mi(t,He.scrollLeft),Math.abs(t.doc.scrollLeft-wt)>1&&(xe=!0)),!xe)break}return j}function Di(t,v){var L=Io(t,v);L.scrollTop!=null&&ho(t,L.scrollTop),L.scrollLeft!=null&&Mi(t,L.scrollLeft)}function Io(t,v){var L=t.display,I=Fr(t.display);v.top<0&&(v.top=0);var j=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:L.scroller.scrollTop,ae=Te(t),xe={};v.bottom-v.top>ae&&(v.bottom=v.top+ae);var Oe=t.doc.height+ut(L),Me=v.top<I,He=v.bottom>Oe-I;if(v.top<j)xe.scrollTop=Me?0:v.top;else if(v.bottom>j+ae){var gt=Math.min(v.top,(He?Oe:v.bottom)-ae);gt!=j&&(xe.scrollTop=gt)}var wt=t.options.fixedGutter?0:L.gutters.offsetWidth,kt=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:L.scroller.scrollLeft-wt,Pt=Je(t)-L.gutters.offsetWidth,an=v.right-v.left>Pt;return an&&(v.right=v.left+Pt),v.left<10?xe.scrollLeft=0:v.left<kt?xe.scrollLeft=Math.max(0,v.left+wt-(an?0:10)):v.right>Pt+kt-3&&(xe.scrollLeft=v.right+(an?0:10)-Pt),xe}function Mo(t,v){if(v==null)return;So(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+v}function ao(t){So(t);var v=t.getCursor();t.curOp.scrollToPos={from:v,to:v,margin:t.options.cursorScrollMargin}}function Ii(t,v,L){(v!=null||L!=null)&&So(t),v!=null&&(t.curOp.scrollLeft=v),L!=null&&(t.curOp.scrollTop=L)}function ki(t,v){So(t),t.curOp.scrollToPos=v}function So(t){var v=t.curOp.scrollToPos;if(v){t.curOp.scrollToPos=null;var L=hn(t,v.from),I=hn(t,v.to);co(t,L,I,v.margin)}}function co(t,v,L,I){var j=Io(t,{left:Math.min(v.left,L.left),top:Math.min(v.top,L.top)-I,right:Math.max(v.right,L.right),bottom:Math.max(v.bottom,L.bottom)+I});Ii(t,j.scrollLeft,j.scrollTop)}function ho(t,v){if(Math.abs(t.doc.scrollTop-v)<2)return;P||Ji(t,{top:v}),Qi(t,v,!0),P&&Ji(t),Yi(t,100)}function Qi(t,v,L){if(v=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,v)),t.display.scroller.scrollTop==v&&!L)return;t.doc.scrollTop=v,t.display.scrollbars.setScrollTop(v),t.display.scroller.scrollTop!=v&&(t.display.scroller.scrollTop=v)}function Mi(t,v,L,I){if(v=Math.max(0,Math.min(v,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(L?v==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-v)<2)&&!I)return;t.doc.scrollLeft=v,Ur(t),t.display.scroller.scrollLeft!=v&&(t.display.scroller.scrollLeft=v),t.display.scrollbars.setScrollLeft(v)}function Vi(t){var v=t.display,L=v.gutters.offsetWidth,I=Math.round(t.doc.height+ut(t.display));return{clientHeight:v.scroller.clientHeight,viewHeight:v.wrapper.clientHeight,scrollWidth:v.scroller.scrollWidth,clientWidth:v.scroller.clientWidth,viewWidth:v.wrapper.clientWidth,barLeft:t.options.fixedGutter?L:0,docHeight:I,scrollHeight:I+Ye(t)+v.barHeight,nativeBarWidth:v.nativeBarWidth,gutterWidth:L}}var Ki=function(t,v,L){this.cm=L;var I=this.vert=x("div",[x("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),j=this.horiz=x("div",[x("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");I.tabIndex=j.tabIndex=-1,t(I),t(j),ze(I,"scroll",function(){I.clientHeight&&v(I.scrollTop,"vertical")}),ze(j,"scroll",function(){j.clientWidth&&v(j.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,C&&m<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ki.prototype.update=function(t){var v=t.scrollWidth>t.clientWidth+1,L=t.scrollHeight>t.clientHeight+1,I=t.nativeBarWidth;if(L){this.vert.style.display="block",this.vert.style.bottom=v?I+"px":"0";var j=t.viewHeight-(v?I:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+j)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(v){this.horiz.style.display="block",this.horiz.style.right=L?I+"px":"0",this.horiz.style.left=t.barLeft+"px";var ae=t.viewWidth-t.barLeft-(L?I:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+ae)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(I==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:L?I:0,bottom:v?I:0}},Ki.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ki.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ki.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 N,this.disableVert=new N},Ki.prototype.enableZeroWidthBar=function(t,v,L){t.style.pointerEvents="auto";function I(){var j=t.getBoundingClientRect(),ae=L=="vert"?document.elementFromPoint(j.right-1,(j.top+j.bottom)/2):document.elementFromPoint((j.right+j.left)/2,j.bottom-1);ae!=t?t.style.pointerEvents="none":v.set(1e3,I)}v.set(1e3,I)},Ki.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var go=function(){};go.prototype.update=function(){return{bottom:0,right:0}},go.prototype.setScrollLeft=function(){},go.prototype.setScrollTop=function(){},go.prototype.clear=function(){};function Fi(t,v){v||(v=Vi(t));var L=t.display.barWidth,I=t.display.barHeight;yo(t,v);for(var j=0;j<4&&L!=t.display.barWidth||I!=t.display.barHeight;j++)L!=t.display.barWidth&&t.options.lineWrapping&&gi(t),yo(t,Vi(t)),L=t.display.barWidth,I=t.display.barHeight}function yo(t,v){var L=t.display,I=L.scrollbars.update(v);L.sizer.style.paddingRight=(L.barWidth=I.right)+"px",L.sizer.style.paddingBottom=(L.barHeight=I.bottom)+"px",L.heightForcer.style.borderBottom=I.bottom+"px solid transparent",I.right&&I.bottom?(L.scrollbarFiller.style.display="block",L.scrollbarFiller.style.height=I.bottom+"px",L.scrollbarFiller.style.width=I.right+"px"):L.scrollbarFiller.style.display="",I.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(L.gutterFiller.style.display="block",L.gutterFiller.style.height=I.bottom+"px",L.gutterFiller.style.width=v.gutterWidth+"px"):L.gutterFiller.style.display=""}var Xa={native:Ki,null:go};function io(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&A(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Xa[t.options.scrollbarStyle](function(v){t.display.wrapper.insertBefore(v,t.display.scrollbarFiller),ze(v,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),v.setAttribute("cm-not-content","true")},function(v,L){L=="horizontal"?Mi(t,v):ho(t,v)},t),t.display.scrollbars.addClass&&k(t.display.wrapper,t.display.scrollbars.addClass)}var Lo=0;function Wi(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Lo},uo(t.curOp)}function Ti(t){var v=t.curOp;v&&va(v,function(L){for(var I=0;I<L.ops.length;I++)L.ops[I].cm.curOp=null;Ao(L)})}function Ao(t){for(var v=t.ops,L=0;L<v.length;L++)qo(v[L]);for(var I=0;I<v.length;I++)$o(v[I]);for(var j=0;j<v.length;j++)Go(v[j]);for(var ae=0;ae<v.length;ae++)Xi(v[ae]);for(var xe=0;xe<v.length;xe++)es(v[xe])}function qo(t){var v=t.cm,L=v.display;Vo(v),t.updateMaxLine&&Jo(v),t.mustUpdate=t.viewChanged||t.forceUpdate||t.scrollTop!=null||t.scrollToPos&&(t.scrollToPos.from.line<L.viewFrom||t.scrollToPos.to.line>=L.viewTo)||L.maxLineChanged&&v.options.lineWrapping,t.update=t.mustUpdate&&new Li(v,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function $o(t){t.updatedDisplay=t.mustUpdate&&Bi(t.cm,t.update)}function Go(t){var v=t.cm,L=v.display;t.updatedDisplay&&gi(v),t.barMeasure=Vi(v),L.maxLineChanged&&!v.options.lineWrapping&&(t.adjustWidthTo=nt(v,L.maxLine,L.maxLine.text.length).left+3,v.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(L.scroller.clientWidth,L.sizer.offsetLeft+t.adjustWidthTo+Ye(v)+v.display.barWidth),t.maxScrollLeft=Math.max(0,L.sizer.offsetLeft+t.adjustWidthTo-Je(v))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=L.input.prepareSelection())}function Xi(t){var v=t.cm;t.adjustWidthTo!=null&&(v.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<v.doc.scrollLeft&&Mi(v,Math.min(v.display.scroller.scrollLeft,t.maxScrollLeft),!0),v.display.maxLineChanged=!1);var L=t.focus&&t.focus==R();t.preparedSelection&&v.display.input.showSelection(t.preparedSelection,L),(t.updatedDisplay||t.startHeight!=v.doc.height)&&Fi(v,t.barMeasure),t.updatedDisplay&&ca(v,t.barMeasure),t.selectionChanged&&mr(v),v.state.focused&&t.updateInput&&v.display.input.reset(t.typing),L&&Kr(t.cm)}function es(t){var v=t.cm,L=v.display,I=v.doc;if(t.updatedDisplay&&In(v,t.update),L.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(L.wheelStartX=L.wheelStartY=null),t.scrollTop!=null&&Qi(v,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&Mi(v,t.scrollLeft,!0,!0),t.scrollToPos){var j=ro(v,z(I,t.scrollToPos.from),z(I,t.scrollToPos.to),t.scrollToPos.margin);no(v,j)}var ae=t.maybeHiddenMarkers,xe=t.maybeUnhiddenMarkers;if(ae)for(var Oe=0;Oe<ae.length;++Oe)ae[Oe].lines.length||ct(ae[Oe],"hide");if(xe)for(var Me=0;Me<xe.length;++Me)xe[Me].lines.length&&ct(xe[Me],"unhide");L.wrapper.offsetHeight&&(I.scrollTop=v.display.scroller.scrollTop),t.changeObjs&&ct(v,"changes",v,t.changeObjs),t.update&&t.update.finish()}function yi(t,v){if(t.curOp)return v();Wi(t);try{return v()}finally{Ti(t)}}function Ua(t,v){return function(){if(t.curOp)return v.apply(t,arguments);Wi(t);try{return v.apply(t,arguments)}finally{Ti(t)}}}function li(t){return function(){if(this.curOp)return t.apply(this,arguments);Wi(this);try{return t.apply(this,arguments)}finally{Ti(this)}}}function Na(t){return function(){var v=this.cm;if(!v||v.curOp)return t.apply(this,arguments);Wi(v);try{return t.apply(this,arguments)}finally{Ti(v)}}}function Yi(t,v){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(v,U(bo,t))}function bo(t){var v=t.doc;if(v.highlightFrontier>=t.display.viewTo)return;var L=+new Date+t.options.workTime,I=sn(t,v.highlightFrontier),j=[];v.iter(I.line,Math.min(v.first+v.size,t.display.viewTo+500),function(ae){if(I.line>=t.display.viewFrom){var xe=ae.styles,Oe=ae.text.length>t.options.maxHighlightLength?vn(v.mode,I.state):null,Me=ht(t,ae,I,!0);Oe&&(I.state=Oe),ae.styles=Me.styles;var He=ae.styleClasses,gt=Me.classes;gt?ae.styleClasses=gt:He&&(ae.styleClasses=null);for(var wt=!xe||xe.length!=ae.styles.length||He!=gt&&(!He||!gt||He.bgClass!=gt.bgClass||He.textClass!=gt.textClass),kt=0;!wt&&kt<xe.length;++kt)wt=xe[kt]!=ae.styles[kt];wt&&j.push(I.line),ae.stateAfter=I.save(),I.nextLine()}else ae.text.length<=t.options.maxHighlightLength&&pn(t,ae.text,I),ae.stateAfter=I.line%5==0?I.save():null,I.nextLine();if(+new Date>L)return Yi(t,t.options.workDelay),!0}),v.highlightFrontier=I.line,v.modeFrontier=Math.max(v.modeFrontier,I.line),j.length&&yi(t,function(){for(var ae=0;ae<j.length;ae++)jn(t,j[ae],"text")})}var Li=function(t,v,L){var I=t.display;this.viewport=v,this.visible=Ka(I,t.doc,v),this.editorIsHidden=!I.wrapper.offsetWidth,this.wrapperHeight=I.wrapper.clientHeight,this.wrapperWidth=I.wrapper.clientWidth,this.oldDisplayWidth=Je(t),this.force=L,this.dims=kr(t),this.events=[]};Li.prototype.signal=function(t,v){qe(t,v)&&this.events.push(arguments)},Li.prototype.finish=function(){for(var t=0;t<this.events.length;t++)ct.apply(null,this.events[t])};function Vo(t){var v=t.display;!v.scrollbarsClipped&&v.scroller.offsetWidth&&(v.nativeBarWidth=v.scroller.offsetWidth-v.scroller.clientWidth,v.heightForcer.style.height=Ye(t)+"px",v.sizer.style.marginBottom=-v.nativeBarWidth+"px",v.sizer.style.borderRightWidth=Ye(t)+"px",v.scrollbarsClipped=!0)}function Po(t){if(t.hasFocus())return null;var v=R();if(!v||!D(t.display.lineDiv,v))return null;var L={activeElt:v};if(window.getSelection){var I=window.getSelection();I.anchorNode&&I.extend&&D(t.display.lineDiv,I.anchorNode)&&(L.anchorNode=I.anchorNode,L.anchorOffset=I.anchorOffset,L.focusNode=I.focusNode,L.focusOffset=I.focusOffset)}return L}function Xo(t){if(!t||!t.activeElt||t.activeElt==R())return;if(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&D(document.body,t.anchorNode)&&D(document.body,t.focusNode)){var v=window.getSelection(),L=document.createRange();L.setEnd(t.anchorNode,t.anchorOffset),L.collapse(!1),v.removeAllRanges(),v.addRange(L),v.extend(t.focusNode,t.focusOffset)}}function Bi(t,v){var L=t.display,I=t.doc;if(v.editorIsHidden)return $n(t),!1;if(!v.force&&v.visible.from>=L.viewFrom&&v.visible.to<=L.viewTo&&(L.updateLineNumbers==null||L.updateLineNumbers>=L.viewTo)&&L.renderedView==L.view&&zn(t)==0)return!1;ui(t)&&($n(t),v.dims=kr(t));var j=I.first+I.size,ae=Math.max(v.visible.from-t.options.viewportMargin,I.first),xe=Math.min(j,v.visible.to+t.options.viewportMargin);L.viewFrom<ae&&ae-L.viewFrom<20&&(ae=Math.max(I.first,L.viewFrom)),L.viewTo>xe&&L.viewTo-xe<20&&(xe=Math.min(j,L.viewTo)),ma&&(ae=Ca(t.doc,ae),xe=Ro(t.doc,xe));var Oe=ae!=L.viewFrom||xe!=L.viewTo||L.lastWrapHeight!=v.wrapperHeight||L.lastWrapWidth!=v.wrapperWidth;Zn(t,ae,xe),L.viewOffset=eo(En(t.doc,L.viewFrom)),t.display.mover.style.top=L.viewOffset+"px";var Me=zn(t);if(!Oe&&Me==0&&!v.force&&L.renderedView==L.view&&(L.updateLineNumbers==null||L.updateLineNumbers>=L.viewTo))return!1;var He=Po(t);return Me>4&&(L.lineDiv.style.display="none"),vs(t,L.updateLineNumbers,v.dims),Me>4&&(L.lineDiv.style.display=""),L.renderedView=L.view,Xo(He),l(L.cursorDiv),l(L.selectionDiv),L.gutters.style.height=L.sizer.style.minHeight=0,Oe&&(L.lastWrapHeight=v.wrapperHeight,L.lastWrapWidth=v.wrapperWidth,Yi(t,400)),L.updateLineNumbers=null,!0}function In(t,v){for(var L=v.viewport,I=!0;;I=!1){if(!I||!t.options.lineWrapping||v.oldDisplayWidth==Je(t)){if(L&&L.top!=null&&(L={top:Math.min(t.doc.height+ut(t.display)-Te(t),L.top)}),v.visible=Ka(t.display,t.doc,L),v.visible.from>=t.display.viewFrom&&v.visible.to<=t.display.viewTo)break}else I&&(v.visible=Ka(t.display,t.doc,L));if(!Bi(t,v))break;gi(t);var j=Vi(t);fn(t),Fi(t,j),ca(t,j),v.force=!1}v.signal(t,"update",t),(t.display.viewFrom!=t.display.reportedViewFrom||t.display.viewTo!=t.display.reportedViewTo)&&(v.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,v){var L=new Li(t,v);if(Bi(t,L)){gi(t),In(t,L);var I=Vi(t);fn(t),Fi(t,I),ca(t,I),L.finish()}}function vs(t,v,L){var I=t.display,j=t.options.lineNumbers,ae=I.lineDiv,xe=ae.firstChild;function Oe(an){var gn=an.nextSibling;return c&&h&&t.display.currentWheelTarget==an?an.style.display="none":an.parentNode.removeChild(an),gn}for(var Me=I.view,He=I.viewFrom,gt=0;gt<Me.length;gt++){var wt=Me[gt];if(!wt.hidden)if(!wt.node||wt.node.parentNode!=ae){var kt=$s(t,wt,He,L);ae.insertBefore(kt,xe)}else{for(;xe!=wt.node;)xe=Oe(xe);var Pt=j&&v!=null&&v<=He&&wt.lineNumber;wt.changes&&(Q(wt.changes,"gutter")>-1&&(Pt=!1),ls(t,wt,He,L)),Pt&&(l(wt.lineNumber),wt.lineNumber.appendChild(document.createTextNode(oi(t.options,He)))),xe=wt.node.nextSibling}He+=wt.size}for(;xe;)xe=Oe(xe)}function ts(t){var v=t.gutters.offsetWidth;t.sizer.style.marginLeft=v+"px"}function ca(t,v){t.display.sizer.style.minHeight=v.docHeight+"px",t.display.heightForcer.style.top=v.docHeight+"px",t.display.gutters.style.height=v.docHeight+t.display.barHeight+Ye(t)+"px"}function Ur(t){var v=t.display,L=v.view;if(!v.alignWidgets&&(!v.gutters.firstChild||!t.options.fixedGutter))return;for(var I=ta(v)-v.scroller.scrollLeft+t.doc.scrollLeft,j=v.gutters.offsetWidth,ae=I+"px",xe=0;xe<L.length;xe++)if(!L[xe].hidden){t.options.fixedGutter&&(L[xe].gutter&&(L[xe].gutter.style.left=ae),L[xe].gutterBackground&&(L[xe].gutterBackground.style.left=ae));var Oe=L[xe].alignable;if(Oe)for(var Me=0;Me<Oe.length;Me++)Oe[Me].style.left=ae}t.options.fixedGutter&&(v.gutters.style.left=I+j+"px")}function ui(t){if(!t.options.lineNumbers)return!1;var v=t.doc,L=oi(t.options,v.first+v.size-1),I=t.display;if(L.length!=I.lineNumChars){var j=I.measure.appendChild(x("div",[x("div",L)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ae=j.firstChild.offsetWidth,xe=j.offsetWidth-ae;return I.lineGutter.style.width="",I.lineNumInnerWidth=Math.max(ae,I.lineGutter.offsetWidth-xe)+1,I.lineNumWidth=I.lineNumInnerWidth+xe,I.lineNumChars=I.lineNumInnerWidth?L.length:-1,I.lineGutter.style.width=I.lineNumWidth+"px",ts(t.display),!0}return!1}function wa(t,v){for(var L=[],I=!1,j=0;j<t.length;j++){var ae=t[j],xe=null;if(typeof ae!="string"&&(xe=ae.style,ae=ae.className),ae=="CodeMirror-linenumbers")if(v)I=!0;else continue;L.push({className:ae,style:xe})}return v&&!I&&L.push({className:"CodeMirror-linenumbers",style:null}),L}function To(t){var v=t.gutters,L=t.gutterSpecs;l(v),t.lineGutter=null;for(var I=0;I<L.length;++I){var j=L[I],ae=j.className,xe=j.style,Oe=v.appendChild(x("div",null,"CodeMirror-gutter "+ae));xe&&(Oe.style.cssText=xe),ae=="CodeMirror-linenumbers"&&(t.lineGutter=Oe,Oe.style.width=(t.lineNumWidth||1)+"px")}v.style.display=L.length?"":"none",ts(t)}function Zi(t){To(t.display),Pr(t),Ur(t)}function Eo(t,v,L,I){var j=this;this.input=L,j.scrollbarFiller=x("div",null,"CodeMirror-scrollbar-filler"),j.scrollbarFiller.setAttribute("cm-not-content","true"),j.gutterFiller=x("div",null,"CodeMirror-gutter-filler"),j.gutterFiller.setAttribute("cm-not-content","true"),j.lineDiv=O("div",null,"CodeMirror-code"),j.selectionDiv=x("div",null,null,"position: relative; z-index: 1"),j.cursorDiv=x("div",null,"CodeMirror-cursors"),j.measure=x("div",null,"CodeMirror-measure"),j.lineMeasure=x("div",null,"CodeMirror-measure"),j.lineSpace=O("div",[j.measure,j.lineMeasure,j.selectionDiv,j.cursorDiv,j.lineDiv],null,"position: relative; outline: none");var ae=O("div",[j.lineSpace],"CodeMirror-lines");j.mover=x("div",[ae],null,"position: relative"),j.sizer=x("div",[j.mover],"CodeMirror-sizer"),j.sizerWidth=null,j.heightForcer=x("div",null,null,"position: absolute; height: "+X+"px; width: 1px;"),j.gutters=x("div",null,"CodeMirror-gutters"),j.lineGutter=null,j.scroller=x("div",[j.sizer,j.heightForcer,j.gutters],"CodeMirror-scroll"),j.scroller.setAttribute("tabIndex","-1"),j.wrapper=x("div",[j.scrollbarFiller,j.gutterFiller,j.scroller],"CodeMirror"),C&&m<8&&(j.gutters.style.zIndex=-1,j.scroller.style.paddingRight=0),!c&&!(P&&a)&&(j.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(j.wrapper):t(j.wrapper)),j.viewFrom=j.viewTo=v.first,j.reportedViewFrom=j.reportedViewTo=v.first,j.view=[],j.renderedView=null,j.externalMeasured=null,j.viewOffset=0,j.lastWrapHeight=j.lastWrapWidth=0,j.updateLineNumbers=null,j.nativeBarWidth=j.barHeight=j.barWidth=0,j.scrollbarsClipped=!1,j.lineNumWidth=j.lineNumInnerWidth=j.lineNumChars=null,j.alignWidgets=!1,j.cachedCharWidth=j.cachedTextHeight=j.cachedPaddingH=null,j.maxLine=null,j.maxLineLength=0,j.maxLineChanged=!1,j.wheelDX=j.wheelDY=j.wheelStartX=j.wheelStartY=null,j.shift=!1,j.selForContextMenu=null,j.activeTouch=null,j.gutterSpecs=wa(I.gutters,I.lineNumbers),To(j),L.init(j)}var oo=0,dn=null;C?dn=-.53:P?dn=15:n?dn=-.7:s&&(dn=-1/3);function Uo(t){var v=t.wheelDeltaX,L=t.wheelDeltaY;return v==null&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(v=t.detail),L==null&&t.detail&&t.axis==t.VERTICAL_AXIS?L=t.detail:L==null&&(L=t.wheelDelta),{x:v,y:L}}function Ss(t){var v=Uo(t);return v.x*=dn,v.y*=dn,v}function gs(t,v){var L=Uo(v),I=L.x,j=L.y,ae=t.display,xe=ae.scroller,Oe=xe.scrollWidth>xe.clientWidth,Me=xe.scrollHeight>xe.clientHeight;if(!(I&&Oe||j&&Me))return;if(j&&h&&c){e:for(var He=v.target,gt=ae.view;He!=xe;He=He.parentNode)for(var wt=0;wt<gt.length;wt++)if(gt[wt].node==He){t.display.currentWheelTarget=He;break e}}if(I&&!P&&!e&&dn!=null){j&&Me&&ho(t,Math.max(0,xe.scrollTop+j*dn)),Mi(t,Math.max(0,xe.scrollLeft+I*dn)),(!j||j&&Me)&&Pe(v),ae.wheelStartX=null;return}if(j&&dn!=null){var kt=j*dn,Pt=t.doc.scrollTop,an=Pt+ae.wrapper.clientHeight;kt<0?Pt=Math.max(0,Pt+kt-50):an=Math.min(t.doc.height,an+kt+50),Ji(t,{top:Pt,bottom:an})}oo<20&&(ae.wheelStartX==null?(ae.wheelStartX=xe.scrollLeft,ae.wheelStartY=xe.scrollTop,ae.wheelDX=I,ae.wheelDY=j,setTimeout(function(){if(ae.wheelStartX==null)return;var gn=xe.scrollLeft-ae.wheelStartX,Mn=xe.scrollTop-ae.wheelStartY,Vn=Mn&&ae.wheelDY&&Mn/ae.wheelDY||gn&&ae.wheelDX&&gn/ae.wheelDX;if(ae.wheelStartX=ae.wheelStartY=null,!Vn)return;dn=(dn*oo+Vn)/(oo+1),++oo},200)):(ae.wheelDX+=I,ae.wheelDY+=j))}var Za=function(t,v){this.ranges=t,this.primIndex=v};Za.prototype.primary=function(){return this.ranges[this.primIndex]},Za.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var v=0;v<this.ranges.length;v++){var L=this.ranges[v],I=t.ranges[v];if(!ot(L.anchor,I.anchor)||!ot(L.head,I.head))return!1}return!0},Za.prototype.deepCopy=function(){for(var t=[],v=0;v<this.ranges.length;v++)t[v]=new Tn(_t(this.ranges[v].anchor),_t(this.ranges[v].head));return new Za(t,this.primIndex)},Za.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},Za.prototype.contains=function(t,v){v||(v=t);for(var L=0;L<this.ranges.length;L++){var I=this.ranges[L];if(Qe(v,I.from())>=0&&Qe(t,I.to())<=0)return L}return-1};var Tn=function(t,v){this.anchor=t,this.head=v};Tn.prototype.from=function(){return nn(this.anchor,this.head)},Tn.prototype.to=function(){return Kt(this.anchor,this.head)},Tn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Lt(t,v,L){var I=t&&t.options.selectionsMayTouch,j=v[L];v.sort(function(kt,Pt){return Qe(kt.from(),Pt.from())}),L=Q(v,j);for(var ae=1;ae<v.length;ae++){var xe=v[ae],Oe=v[ae-1],Me=Qe(Oe.to(),xe.from());if(I&&!xe.empty()?Me>0:Me>=0){var He=nn(Oe.from(),xe.from()),gt=Kt(Oe.to(),xe.to()),wt=Oe.empty()?xe.from()==xe.head:Oe.from()==Oe.head;ae<=L&&--L,v.splice(--ae,2,new Tn(wt?gt:He,wt?He:gt))}}return new Za(v,L)}function Yt(t,v){return new Za([new Tn(t,v||t)],0)}function Cn(t){return t.text?Le(t.from.line+t.text.length-1,pe(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function Vt(t,v){if(Qe(t,v.from)<0)return t;if(Qe(t,v.to)<=0)return Cn(v);var L=t.line+v.text.length-(v.to.line-v.from.line)-1,I=t.ch;return t.line==v.to.line&&(I+=Cn(v).ch-v.to.ch),Le(L,I)}function er(t,v){for(var L=[],I=0;I<t.sel.ranges.length;I++){var j=t.sel.ranges[I];L.push(new Tn(Vt(j.anchor,v),Vt(j.head,v)))}return Lt(t.cm,L,t.sel.primIndex)}function lr(t,v,L){return t.line==v.line?Le(L.line,t.ch-v.ch+L.ch):Le(L.line+(t.line-v.line),t.ch)}function fr(t,v,L){for(var I=[],j=Le(t.first,0),ae=j,xe=0;xe<v.length;xe++){var Oe=v[xe],Me=lr(Oe.from,j,ae),He=lr(Cn(Oe),j,ae);if(j=Oe.to,ae=He,L=="around"){var gt=t.sel.ranges[xe],wt=Qe(gt.head,gt.anchor)<0;I[xe]=new Tn(wt?He:Me,wt?Me:He)}else I[xe]=new Tn(Me,Me)}return new Za(I,t.sel.primIndex)}function $r(t){t.doc.mode=Ht(t.options,t.doc.modeOption),mn(t)}function mn(t){t.doc.iter(function(v){v.stateAfter&&(v.stateAfter=null),v.styles&&(v.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,Yi(t,100),t.state.modeGen++,t.curOp&&Pr(t)}function ni(t,v){return v.from.ch==0&&v.to.ch==0&&pe(v.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function Pi(t,v,L,I){function j(or){return L?L[or]:null}function ae(or,Yn,pr){Zo(or,Yn,pr,I),ua(or,"change",or,v)}function xe(or,Yn){for(var pr=[],Hr=or;Hr<Yn;++Hr)pr.push(new Ui(He[Hr],j(Hr),I));return pr}var Oe=v.from,Me=v.to,He=v.text,gt=En(t,Oe.line),wt=En(t,Me.line),kt=pe(He),Pt=j(He.length-1),an=Me.line-Oe.line;if(v.full)t.insert(0,xe(0,He.length)),t.remove(He.length,t.size-He.length);else if(ni(t,v)){var gn=xe(0,He.length-1);ae(wt,wt.text,Pt),an&&t.remove(Oe.line,an),gn.length&&t.insert(Oe.line,gn)}else if(gt==wt)if(He.length==1)ae(gt,gt.text.slice(0,Oe.ch)+kt+gt.text.slice(Me.ch),Pt);else{var Mn=xe(1,He.length-1);Mn.push(new Ui(kt+gt.text.slice(Me.ch),Pt,I)),ae(gt,gt.text.slice(0,Oe.ch)+He[0],j(0)),t.insert(Oe.line+1,Mn)}else if(He.length==1)ae(gt,gt.text.slice(0,Oe.ch)+He[0]+wt.text.slice(Me.ch),j(0)),t.remove(Oe.line+1,an);else{ae(gt,gt.text.slice(0,Oe.ch)+He[0],j(0)),ae(wt,kt+wt.text.slice(Me.ch),Pt);var Vn=xe(1,He.length-1);an>1&&t.remove(Oe.line+1,an-1),t.insert(Oe.line+1,Vn)}ua(t,"change",t,v)}function La(t,v,L){function I(j,ae,xe){if(j.linked)for(var Oe=0;Oe<j.linked.length;++Oe){var Me=j.linked[Oe];if(Me.doc==ae)continue;var He=xe&&Me.sharedHist;if(L&&!He)continue;v(Me.doc,He),I(Me.doc,j,He)}}I(t,null,!0)}function da(t,v){if(v.cm)throw new Error("This document is already in use.");t.doc=v,v.cm=t,yr(t),$r(t),Oi(t),t.options.lineWrapping||Jo(t),t.options.mode=v.modeOption,Pr(t)}function Oi(t){(t.doc.direction=="rtl"?k:A)(t.display.lineDiv,"CodeMirror-rtl")}function qi(t){yi(t,function(){Oi(t),Pr(t)})}function qa(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,v){var L={from:_t(v.from),to:Cn(v),text:Qr(t,v.from,v.to)};return hl(t,L,v.from.line,v.to.line+1),La(t,function(I){return hl(I,L,v.from.line,v.to.line+1)},!0),L}function fi(t){for(;t.length;){var v=pe(t);if(v.ranges)t.pop();else break}}function ko(t,v){if(v)return fi(t.done),pe(t.done);if(t.done.length&&!pe(t.done).ranges)return pe(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),pe(t.done)}function Fo(t,v,L,I){var j=t.history;j.undone.length=0;var ae=+new Date,xe,Oe;if((j.lastOp==I||j.lastOrigin==v.origin&&v.origin&&(v.origin.charAt(0)=="+"&&j.lastModTime>ae-(t.cm?t.cm.options.historyEventDelay:500)||v.origin.charAt(0)=="*"))&&(xe=ko(j,j.lastOp==I)))Oe=pe(xe.changes),Qe(v.from,v.to)==0&&Qe(v.from,Oe.to)==0?Oe.to=Cn(v):xe.changes.push(Ya(t,v));else{var Me=pe(j.done);for((!Me||!Me.ranges)&&Ts(t.sel,j.done),xe={changes:[Ya(t,v)],generation:j.generation},j.done.push(xe);j.done.length>j.undoDepth;)j.done.shift(),j.done[0].ranges||j.done.shift()}j.done.push(L),j.generation=++j.maxGeneration,j.lastModTime=j.lastSelTime=ae,j.lastOp=j.lastSelOp=I,j.lastOrigin=j.lastSelOrigin=v.origin,Oe||ct(t,"historyAdded")}function No(t,v,L,I){var j=v.charAt(0);return j=="*"||j=="+"&&L.ranges.length==I.ranges.length&&L.somethingSelected()==I.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function jo(t,v,L,I){var j=t.history,ae=I&&I.origin;L==j.lastSelOp||ae&&j.lastSelOrigin==ae&&(j.lastModTime==j.lastSelTime&&j.lastOrigin==ae||No(t,ae,pe(j.done),v))?j.done[j.done.length-1]=v:Ts(v,j.done),j.lastSelTime=+new Date,j.lastSelOrigin=ae,j.lastSelOp=L,I&&I.clearRedo!==!1&&fi(j.undone)}function Ts(t,v){var L=pe(v);L&&L.ranges&&L.equals(t)||v.push(t)}function hl(t,v,L,I){var j=v["spans_"+t.id],ae=0;t.iter(Math.max(t.first,L),Math.min(t.first+t.size,I),function(xe){xe.markedSpans&&((j||(j=v["spans_"+t.id]={}))[ae]=xe.markedSpans),++ae})}function Al(t){if(!t)return null;for(var v,L=0;L<t.length;++L)t[L].marker.explicitlyCleared?v||(v=t.slice(0,L)):v&&v.push(t[L]);return v?v.length?v:null:t}function Qs(t,v){var L=v["spans_"+t.id];if(!L)return null;for(var I=[],j=0;j<v.text.length;++j)I.push(Al(L[j]));return I}function cr(t,v){var L=Qs(t,v),I=Ga(t,v);if(!L)return I;if(!I)return L;for(var j=0;j<L.length;++j){var ae=L[j],xe=I[j];if(ae&&xe){e:for(var Oe=0;Oe<xe.length;++Oe){for(var Me=xe[Oe],He=0;He<ae.length;++He)if(ae[He].marker==Me.marker)continue e;ae.push(Me)}}else xe&&(L[j]=xe)}return L}function ys(t,v,L){for(var I=[],j=0;j<t.length;++j){var ae=t[j];if(ae.ranges){I.push(L?Za.prototype.deepCopy.call(ae):ae);continue}var xe=ae.changes,Oe=[];I.push({changes:Oe});for(var Me=0;Me<xe.length;++Me){var He=xe[Me],gt=void 0;if(Oe.push({from:He.from,to:He.to,text:He.text}),v)for(var wt in He)(gt=wt.match(/^spans_(\d+)$/))&&(Q(v,Number(gt[1]))>-1&&(pe(Oe)[wt]=He[wt],delete He[wt]))}}return I}function Ks(t,v,L,I){if(I){var j=t.anchor;if(L){var ae=Qe(v,j)<0;ae!=Qe(L,j)<0?(j=v,v=L):ae!=Qe(v,L)<0&&(v=L)}return new Tn(j,v)}else return new Tn(L||v,v)}function Bs(t,v,L,I,j){j==null&&(j=t.cm&&(t.cm.display.shift||t.extend)),Ni(t,new Za([Ks(t.sel.primary(),v,L,j)],0),I)}function fo(t,v,L){for(var I=[],j=t.cm&&(t.cm.display.shift||t.extend),ae=0;ae<t.sel.ranges.length;ae++)I[ae]=Ks(t.sel.ranges[ae],v[ae],null,j);var xe=Lt(t.cm,I,t.sel.primIndex);Ni(t,xe,L)}function bs(t,v,L,I){var j=t.sel.ranges.slice(0);j[v]=L,Ni(t,Lt(t.cm,j,t.sel.primIndex),I)}function Ws(t,v,L,I){Ni(t,Yt(v,L),I)}function Ms(t,v,L){var I={ranges:v.ranges,update:function(j){this.ranges=[];for(var ae=0;ae<j.length;ae++)this.ranges[ae]=new Tn(z(t,j[ae].anchor),z(t,j[ae].head))},origin:L&&L.origin};return ct(t,"beforeSelectionChange",t,I),t.cm&&ct(t.cm,"beforeSelectionChange",t.cm,I),I.ranges!=v.ranges?Lt(t.cm,I.ranges,I.ranges.length-1):v}function Es(t,v,L){var I=t.history.done,j=pe(I);j&&j.ranges?(I[I.length-1]=v,zs(t,v,L)):Ni(t,v,L)}function Ni(t,v,L){zs(t,v,L),jo(t,t.sel,t.cm?t.cm.curOp.id:NaN,L)}function zs(t,v,L){(qe(t,"beforeSelectionChange")||t.cm&&qe(t.cm,"beforeSelectionChange"))&&(v=Ms(t,v,L));var I=L&&L.bias||(Qe(v.primary().head,t.sel.primary().head)<0?-1:1);ds(t,Ls(t,v,I,!0)),!(L&&L.scroll===!1)&&t.cm&&ao(t.cm)}function ds(t,v){if(v.equals(t.sel))return;t.sel=v,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,rt(t.cm)),ua(t,"cursorActivity",t)}function Ho(t){ds(t,Ls(t,t.sel,null,!1))}function Ls(t,v,L,I){for(var j,ae=0;ae<v.ranges.length;ae++){var xe=v.ranges[ae],Oe=v.ranges.length==t.sel.ranges.length&&t.sel.ranges[ae],Me=Zr(t,xe.anchor,Oe&&Oe.anchor,L,I),He=Zr(t,xe.head,Oe&&Oe.head,L,I);(j||Me!=xe.anchor||He!=xe.head)&&(j||(j=v.ranges.slice(0,ae)),j[ae]=new Tn(Me,He))}return j?Lt(t.cm,j,v.primIndex):v}function Qo(t,v,L,I,j){var ae=En(t,v.line);if(ae.markedSpans)for(var xe=0;xe<ae.markedSpans.length;++xe){var Oe=ae.markedSpans[xe],Me=Oe.marker,He="selectLeft"in Me?!Me.selectLeft:Me.inclusiveLeft,gt="selectRight"in Me?!Me.selectRight:Me.inclusiveRight;if((Oe.from==null||(He?Oe.from<=v.ch:Oe.from<v.ch))&&(Oe.to==null||(gt?Oe.to>=v.ch:Oe.to>v.ch))){if(j&&(ct(Me,"beforeCursorEnter"),Me.explicitlyCleared))if(ae.markedSpans){--xe;continue}else break;if(!Me.atomic)continue;if(L){var wt=Me.find(I<0?1:-1),kt=void 0;if((I<0?gt:He)&&(wt=Rr(t,wt,-I,wt&&wt.line==v.line?ae:null)),wt&&wt.line==v.line&&(kt=Qe(wt,L))&&(I<0?kt<0:kt>0))return Qo(t,wt,v,I,j)}var Pt=Me.find(I<0?-1:1);return(I<0?He:gt)&&(Pt=Rr(t,Pt,I,Pt.line==v.line?ae:null)),Pt?Qo(t,Pt,v,I,j):null}}return v}function Zr(t,v,L,I,j){var ae=I||1,xe=Qo(t,v,L,ae,j)||!j&&Qo(t,v,L,ae,!0)||Qo(t,v,L,-ae,j)||!j&&Qo(t,v,L,-ae,!0);return xe||(t.cantEdit=!0,Le(t.first,0))}function Rr(t,v,L,I){return L<0&&v.ch==0?v.line>t.first?z(t,Le(v.line-1)):null:L>0&&v.ch==(I||En(t,v.line)).text.length?v.line<t.first+t.size-1?Le(v.line+1,0):null:new Le(v.line,v.ch+L)}function Ta(t){t.setSelection(Le(t.firstLine(),0),Le(t.lastLine()),oe)}function Or(t,v,L){var I={canceled:!1,from:v.from,to:v.to,text:v.text,origin:v.origin,cancel:function(){return I.canceled=!0}};return L&&(I.update=function(j,ae,xe,Oe){j&&(I.from=z(t,j)),ae&&(I.to=z(t,ae)),xe&&(I.text=xe),Oe!==void 0&&(I.origin=Oe)}),ct(t,"beforeChange",t,I),t.cm&&ct(t.cm,"beforeChange",t.cm,I),I.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:I.from,to:I.to,text:I.text,origin:I.origin}}function Wn(t,v,L){if(t.cm){if(!t.cm.curOp)return Ua(t.cm,Wn)(t,v,L);if(t.cm.state.suppressEdits)return}if((qe(t,"beforeChange")||t.cm&&qe(t.cm,"beforeChange"))&&(v=Or(t,v,!0),!v))return;var I=Tr&&!L&&si(t,v.from,v.to);if(I)for(var j=I.length-1;j>=0;--j)Pn(t,{from:I[j].from,to:I[j].to,text:j?[""]:v.text,origin:v.origin});else Pn(t,v)}function Pn(t,v){if(v.text.length==1&&v.text[0]==""&&Qe(v.from,v.to)==0)return;var L=er(t,v);Fo(t,v,L,t.cm?t.cm.curOp.id:NaN),Bn(t,v,L,Ga(t,v));var I=[];La(t,function(j,ae){!ae&&Q(I,j.history)==-1&&(Ja(j.history,v),I.push(j.history)),Bn(j,v,null,Ga(j,v))})}function wn(t,v,L){var I=t.cm&&t.cm.state.suppressEdits;if(I&&!L)return;for(var j=t.history,ae,xe=t.sel,Oe=v=="undo"?j.done:j.undone,Me=v=="undo"?j.undone:j.done,He=0;He<Oe.length&&!(ae=Oe[He],L?ae.ranges&&!ae.equals(t.sel):!ae.ranges);He++);if(He==Oe.length)return;for(j.lastOrigin=j.lastSelOrigin=null;;)if(ae=Oe.pop(),ae.ranges){if(Ts(ae,Me),L&&!ae.equals(t.sel)){Ni(t,ae,{clearRedo:!1});return}xe=ae}else if(I){Oe.push(ae);return}else break;var gt=[];Ts(xe,Me),Me.push({changes:gt,generation:j.generation}),j.generation=ae.generation||++j.maxGeneration;for(var wt=qe(t,"beforeChange")||t.cm&&qe(t.cm,"beforeChange"),kt=function(gn){var Mn=ae.changes[gn];if(Mn.origin=v,wt&&!Or(t,Mn,!1))return Oe.length=0,{};gt.push(Ya(t,Mn));var Vn=gn?er(t,Mn):pe(Oe);Bn(t,Mn,Vn,cr(t,Mn)),!gn&&t.cm&&t.cm.scrollIntoView({from:Mn.from,to:Cn(Mn)});var or=[];La(t,function(Yn,pr){!pr&&Q(or,Yn.history)==-1&&(Ja(Yn.history,Mn),or.push(Yn.history)),Bn(Yn,Mn,null,cr(Yn,Mn))})},Pt=ae.changes.length-1;Pt>=0;--Pt){var an=kt(Pt);if(an)return an.v}}function nr(t,v){if(v==0)return;if(t.first+=v,t.sel=new Za(he(t.sel.ranges,function(j){return new Tn(Le(j.anchor.line+v,j.anchor.ch),Le(j.head.line+v,j.head.ch))}),t.sel.primIndex),t.cm){Pr(t.cm,t.first,t.first-v,v);for(var L=t.cm.display,I=L.viewFrom;I<L.viewTo;I++)jn(t.cm,I,"gutter")}}function Bn(t,v,L,I){if(t.cm&&!t.cm.curOp)return Ua(t.cm,Bn)(t,v,L,I);if(v.to.line<t.first){nr(t,v.text.length-1-(v.to.line-v.from.line));return}if(v.from.line>t.lastLine())return;if(v.from.line<t.first){var j=v.text.length-1-(t.first-v.from.line);nr(t,j),v={from:Le(t.first,0),to:Le(v.to.line+j,v.to.ch),text:[pe(v.text)],origin:v.origin}}var ae=t.lastLine();v.to.line>ae&&(v={from:v.from,to:Le(ae,En(t,ae).text.length),text:[v.text[0]],origin:v.origin}),v.removed=Qr(t,v.from,v.to),L||(L=er(t,v)),t.cm?_r(t.cm,v,I):Pi(t,v,I),zs(t,L,oe),t.cantEdit&&Zr(t,Le(t.firstLine(),0))&&(t.cantEdit=!1)}function _r(t,v,L){var I=t.doc,j=t.display,ae=v.from,xe=v.to,Oe=!1,Me=ae.line;t.options.lineWrapping||(Me=Nr(vi(En(I,ae.line))),I.iter(Me,xe.line+1,function(Pt){if(Pt==j.maxLine)return Oe=!0,!0})),I.sel.contains(v.from,v.to)>-1&&rt(t),Pi(I,v,L,Wr(t)),t.options.lineWrapping||(I.iter(Me,ae.line+v.text.length,function(Pt){var an=ss(Pt);an>j.maxLineLength&&(j.maxLine=Pt,j.maxLineLength=an,j.maxLineChanged=!0,Oe=!1)}),Oe&&(t.curOp.updateMaxLine=!0)),na(I,ae.line),Yi(t,400);var He=v.text.length-(xe.line-ae.line)-1;v.full?Pr(t):ae.line==xe.line&&v.text.length==1&&!ni(t.doc,v)?jn(t,ae.line,"text"):Pr(t,ae.line,xe.line+1,He);var gt=qe(t,"changes"),wt=qe(t,"change");if(wt||gt){var kt={from:ae,to:xe,text:v.text,removed:v.removed,origin:v.origin};wt&&ua(t,"change",t,kt),gt&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(kt)}t.display.selForContextMenu=null}function Mr(t,v,L,I,j){var ae;I||(I=L),Qe(I,L)<0&&(ae=[I,L],L=ae[0],I=ae[1]),typeof v=="string"&&(v=t.splitLines(v)),Wn(t,{from:L,to:I,text:v,origin:j})}function jr(t,v,L,I){L<t.line?t.line+=I:v<t.line&&(t.line=v,t.ch=0)}function Pa(t,v,L,I){for(var j=0;j<t.length;++j){var ae=t[j],xe=!0;if(ae.ranges){ae.copied||(ae=t[j]=ae.deepCopy(),ae.copied=!0);for(var Oe=0;Oe<ae.ranges.length;Oe++)jr(ae.ranges[Oe].anchor,v,L,I),jr(ae.ranges[Oe].head,v,L,I);continue}for(var Me=0;Me<ae.changes.length;++Me){var He=ae.changes[Me];if(L<He.from.line)He.from=Le(He.from.line+I,He.from.ch),He.to=Le(He.to.line+I,He.to.ch);else if(v<=He.to.line){xe=!1;break}}xe||(t.splice(0,j+1),j=0)}}function Ja(t,v){var L=v.from.line,I=v.to.line,j=v.text.length-(I-L)-1;Pa(t.done,L,I,j),Pa(t.undone,L,I,j)}function bi(t,v,L,I){var j=v,ae=v;return typeof v=="number"?ae=En(t,ve(t,v)):j=Nr(v),j==null?null:(I(ae,j)&&t.cm&&jn(t.cm,j,L),ae)}function pi(t){this.lines=t,this.parent=null;for(var v=0,L=0;L<t.length;++L)t[L].parent=this,v+=t[L].height;this.height=v}pi.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,v){for(var L=t,I=t+v;L<I;++L){var j=this.lines[L];this.height-=j.height,ps(j),ua(j,"delete")}this.lines.splice(t,v)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,v,L){this.height+=L,this.lines=this.lines.slice(0,t).concat(v).concat(this.lines.slice(t));for(var I=0;I<v.length;++I)v[I].parent=this},iterN:function(t,v,L){for(var I=t+v;t<I;++t)if(L(this.lines[t]))return!0}};function Ei(t){this.children=t;for(var v=0,L=0,I=0;I<t.length;++I){var j=t[I];v+=j.chunkSize(),L+=j.height,j.parent=this}this.size=v,this.height=L,this.parent=null}Ei.prototype={chunkSize:function(){return this.size},removeInner:function(t,v){this.size-=v;for(var L=0;L<this.children.length;++L){var I=this.children[L],j=I.chunkSize();if(t<j){var ae=Math.min(v,j-t),xe=I.height;if(I.removeInner(t,ae),this.height-=xe-I.height,j==ae&&(this.children.splice(L--,1),I.parent=null),(v-=ae)==0)break;t=0}else t-=j}if(this.size-v<25&&(this.children.length>1||!(this.children[0]instanceof pi))){var Oe=[];this.collapse(Oe),this.children=[new pi(Oe)],this.children[0].parent=this}},collapse:function(t){for(var v=0;v<this.children.length;++v)this.children[v].collapse(t)},insertInner:function(t,v,L){this.size+=v.length,this.height+=L;for(var I=0;I<this.children.length;++I){var j=this.children[I],ae=j.chunkSize();if(t<=ae){if(j.insertInner(t,v,L),j.lines&&j.lines.length>50){for(var xe=j.lines.length%25+25,Oe=xe;Oe<j.lines.length;){var Me=new pi(j.lines.slice(Oe,Oe+=25));j.height-=Me.height,this.children.splice(++I,0,Me),Me.parent=this}j.lines=j.lines.slice(0,xe),this.maybeSpill()}break}t-=ae}},maybeSpill:function(){if(this.children.length<=10)return;var t=this;do{var v=t.children.splice(t.children.length-5,5),L=new Ei(v);if(t.parent){t.size-=L.size,t.height-=L.height;var j=Q(t.parent.children,t);t.parent.children.splice(j+1,0,L)}else{var I=new Ei(t.children);I.parent=t,t.children=[I,L],t=I}L.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()},iterN:function(t,v,L){for(var I=0;I<this.children.length;++I){var j=this.children[I],ae=j.chunkSize();if(t<ae){var xe=Math.min(v,ae-t);if(j.iterN(t,xe,L))return!0;if((v-=xe)==0)break;t=0}else t-=ae}}};var Ko=function(t,v,L){if(L)for(var I in L)L.hasOwnProperty(I)&&(this[I]=L[I]);this.doc=t,this.node=v};Ko.prototype.clear=function(){var t=this.doc.cm,v=this.line.widgets,L=this.line,I=Nr(L);if(I==null||!v)return;for(var j=0;j<v.length;++j)v[j]==this&&v.splice(j--,1);v.length||(L.widgets=null);var ae=_s(this);Xr(L,Math.max(0,L.height-ae)),t&&(yi(t,function(){po(t,L,-ae),jn(t,I,"widget")}),ua(t,"lineWidgetCleared",t,this,I))},Ko.prototype.changed=function(){var t=this,v=this.height,L=this.doc.cm,I=this.line;this.height=null;var j=_s(this)-v;if(!j)return;hi(this.doc,I)||Xr(I,I.height+j),L&&yi(L,function(){L.curOp.forceUpdate=!0,po(L,I,j),ua(L,"lineWidgetChanged",L,t,Nr(I))})},$e(Ko);function po(t,v,L){eo(v)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&Mo(t,L)}function Cs(t,v,L,I){var j=new Ko(t,L,I),ae=t.cm;return ae&&j.noHScroll&&(ae.display.alignWidgets=!0),bi(t,v,"widget",function(xe){var Oe=xe.widgets||(xe.widgets=[]);if(j.insertAt==null?Oe.push(j):Oe.splice(Math.min(Oe.length-1,Math.max(0,j.insertAt)),0,j),j.line=xe,ae&&!hi(t,xe)){var Me=eo(xe)<t.scrollTop;Xr(xe,xe.height+_s(j)),Me&&Mo(ae,j.height),ae.curOp.forceUpdate=!0}return!0}),ae&&ua(ae,"lineWidgetAdded",ae,j,typeof v=="number"?v:Nr(v)),j}var el=0,ns=function(t,v){this.lines=[],this.type=v,this.doc=t,this.id=++el};ns.prototype.clear=function(){if(this.explicitlyCleared)return;var t=this.doc.cm,v=t&&!t.curOp;if(v&&Wi(t),qe(this,"clear")){var L=this.find();L&&ua(this,"clear",L.from,L.to)}for(var I=null,j=null,ae=0;ae<this.lines.length;++ae){var xe=this.lines[ae],Oe=ka(xe.markedSpans,this);t&&!this.collapsed?jn(t,Nr(xe),"text"):t&&(Oe.to!=null&&(j=Nr(xe)),Oe.from!=null&&(I=Nr(xe))),xe.markedSpans=Ha(xe.markedSpans,Oe),Oe.from==null&&this.collapsed&&!hi(this.doc,xe)&&t&&Xr(xe,Fr(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var Me=0;Me<this.lines.length;++Me){var He=vi(this.lines[Me]),gt=ss(He);gt>t.display.maxLineLength&&(t.display.maxLine=He,t.display.maxLineLength=gt,t.display.maxLineChanged=!0)}I!=null&&t&&this.collapsed&&Pr(t,I,j+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Ho(t.doc)),t&&ua(t,"markerCleared",t,this,I,j),v&&Ti(t),this.parent&&this.parent.clear()},ns.prototype.find=function(t,v){t==null&&this.type=="bookmark"&&(t=1);for(var L,I,j=0;j<this.lines.length;++j){var ae=this.lines[j],xe=ka(ae.markedSpans,this);if(xe.from!=null&&(L=Le(v?ae:Nr(ae),xe.from),t==-1))return L;if(xe.to!=null&&(I=Le(v?ae:Nr(ae),xe.to),t==1))return I}return L&&{from:L,to:I}},ns.prototype.changed=function(){var t=this,v=this.find(-1,!0),L=this,I=this.doc.cm;if(!v||!I)return;yi(I,function(){var j=v.line,ae=Nr(v.line),xe=st(I,ae);if(xe&&(On(xe),I.curOp.selectionChanged=I.curOp.forceUpdate=!0),I.curOp.updateMaxLine=!0,!hi(L.doc,j)&&L.height!=null){var Oe=L.height;L.height=null;var Me=_s(L)-Oe;Me&&Xr(j,j.height+Me)}ua(I,"markerChanged",I,t)})},ns.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var v=this.doc.cm.curOp;(!v.maybeHiddenMarkers||Q(v.maybeHiddenMarkers,this)==-1)&&(v.maybeUnhiddenMarkers||(v.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},ns.prototype.detachLine=function(t){if(this.lines.splice(Q(this.lines,t),1),!this.lines.length&&this.doc.cm){var v=this.doc.cm.curOp;(v.maybeHiddenMarkers||(v.maybeHiddenMarkers=[])).push(this)}},$e(ns);function hs(t,v,L,I,j){if(I&&I.shared)return nl(t,v,L,I,j);if(t.cm&&!t.cm.curOp)return Ua(t.cm,hs)(t,v,L,I,j);var ae=new ns(t,j),xe=Qe(v,L);if(I&&K(I,ae,!1),xe>0||xe==0&&ae.clearWhenEmpty!==!1)return ae;if(ae.replacedWith&&(ae.collapsed=!0,ae.widgetNode=O("span",[ae.replacedWith],"CodeMirror-widget"),I.handleMouseEvents||ae.widgetNode.setAttribute("cm-ignore-events","true"),I.insertLeft&&(ae.widgetNode.insertLeft=!0)),ae.collapsed){if(Fa(t,v.line,v,L,ae)||v.line!=L.line&&Fa(t,L.line,v,L,ae))throw new Error("Inserting collapsed marker partially overlapping an existing one");Oa()}ae.addToHistory&&Fo(t,{from:v,to:L,origin:"markText"},t.sel,NaN);var Oe=v.line,Me=t.cm,He;if(t.iter(Oe,L.line+1,function(wt){Me&&ae.collapsed&&!Me.options.lineWrapping&&vi(wt)==Me.display.maxLine&&(He=!0),ae.collapsed&&Oe!=v.line&&Xr(wt,0),Ia(wt,new xa(ae,Oe==v.line?v.ch:null,Oe==L.line?L.ch:null)),++Oe}),ae.collapsed&&t.iter(v.line,L.line+1,function(wt){hi(t,wt)&&Xr(wt,0)}),ae.clearOnEnter&&ze(ae,"beforeCursorEnter",function(){return ae.clear()}),ae.readOnly&&(ha(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),ae.collapsed&&(ae.id=++el,ae.atomic=!0),Me){if(He&&(Me.curOp.updateMaxLine=!0),ae.collapsed)Pr(Me,v.line,L.line+1);else if(ae.className||ae.startStyle||ae.endStyle||ae.css||ae.attributes||ae.title)for(var gt=v.line;gt<=L.line;gt++)jn(Me,gt,"text");ae.atomic&&Ho(Me.doc),ua(Me,"markerAdded",Me,ae)}return ae}var tl=function(t,v){this.markers=t,this.primary=v;for(var L=0;L<t.length;++L)t[L].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();ua(this,"clear")},tl.prototype.find=function(t,v){return this.primary.find(t,v)},$e(tl);function nl(t,v,L,I,j){I=K(I),I.shared=!1;var ae=[hs(t,v,L,I,j)],xe=ae[0],Oe=I.widgetNode;return La(t,function(Me){Oe&&(I.widgetNode=Oe.cloneNode(!0)),ae.push(hs(Me,z(Me,v),z(Me,L),I,j));for(var He=0;He<Me.linked.length;++He)if(Me.linked[He].isParent)return;xe=pe(ae)}),new tl(ae,xe)}function Zl(t){return t.findMarks(Le(t.first,0),t.clipPos(Le(t.lastLine())),function(v){return v.parent})}function ql(t,v){for(var L=0;L<v.length;L++){var I=v[L],j=I.find(),ae=t.clipPos(j.from),xe=t.clipPos(j.to);if(Qe(ae,xe)){var Oe=hs(t,ae,xe,I.primary,I.primary.type);I.markers.push(Oe),Oe.parent=I}}}function $l(t){for(var v=function(I){var j=t[I],ae=[j.primary.doc];La(j.primary.doc,function(Me){return ae.push(Me)});for(var xe=0;xe<j.markers.length;xe++){var Oe=j.markers[xe];Q(ae,Oe.doc)==-1&&(Oe.parent=null,j.markers.splice(xe--,1))}},L=0;L<t.length;L++)v(L)}var mu=0,Bo=function(t,v,L,I,j){if(!(this instanceof Bo))return new Bo(t,v,L,I,j);L==null&&(L=0),Ei.call(this,[new pi([new Ui("",null)])]),this.first=L,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=L;var ae=Le(L,0);this.sel=Yt(ae),this.history=new qa(null),this.id=++mu,this.modeOption=v,this.lineSep=I,this.direction=j=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),Pi(this,{from:ae,to:ae,text:t}),Ni(this,Yt(ae),oe)};Bo.prototype=ge(Ei.prototype,{constructor:Bo,iter:function(t,v,L){L?this.iterN(t-this.first,v-t,L):this.iterN(this.first,this.first+this.size,t)},insert:function(t,v){for(var L=0,I=0;I<v.length;++I)L+=v[I].height;this.insertInner(t-this.first,v,L)},remove:function(t,v){this.removeInner(t-this.first,v)},getValue:function(t){var v=sa(this,this.first,this.first+this.size);return t===!1?v:v.join(t||this.lineSeparator())},setValue:Na(function(t){var v=Le(this.first,0),L=this.first+this.size-1;Wn(this,{from:v,to:Le(L,En(this,L).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Ii(this.cm,0,0),Ni(this,Yt(v),oe)}),replaceRange:function(t,v,L,I){v=z(this,v),L=L?z(this,L):v,Mr(this,t,v,L,I)},getRange:function(t,v,L){var I=Qr(this,z(this,t),z(this,v));return L===!1?I:I.join(L||this.lineSeparator())},getLine:function(t){var v=this.getLineHandle(t);return v&&v.text},getLineHandle:function(t){if(ja(this,t))return En(this,t)},getLineNumber:function(t){return Nr(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=En(this,t)),vi(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return z(this,t)},getCursor:function(t){var v=this.sel.primary(),L;return t==null||t=="head"?L=v.head:t=="anchor"?L=v.anchor:t=="end"||t=="to"||t===!1?L=v.to():L=v.from(),L},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Na(function(t,v,L){Ws(this,z(this,typeof t=="number"?Le(t,v||0):t),null,L)}),setSelection:Na(function(t,v,L){Ws(this,z(this,t),z(this,v||t),L)}),extendSelection:Na(function(t,v,L){Bs(this,z(this,t),v&&z(this,v),L)}),extendSelections:Na(function(t,v){fo(this,ye(this,t),v)}),extendSelectionsBy:Na(function(t,v){var L=he(this.sel.ranges,t);fo(this,ye(this,L),v)}),setSelections:Na(function(t,v,L){if(!t.length)return;for(var I=[],j=0;j<t.length;j++)I[j]=new Tn(z(this,t[j].anchor),z(this,t[j].head));v==null&&(v=Math.min(t.length-1,this.sel.primIndex)),Ni(this,Lt(this.cm,I,v),L)}),addSelection:Na(function(t,v,L){var I=this.sel.ranges.slice(0);I.push(new Tn(z(this,t),z(this,v||t))),Ni(this,Lt(this.cm,I,I.length-1),L)}),getSelection:function(t){for(var v=this.sel.ranges,L,I=0;I<v.length;I++){var j=Qr(this,v[I].from(),v[I].to());L=L?L.concat(j):j}return t===!1?L:L.join(t||this.lineSeparator())},getSelections:function(t){for(var v=[],L=this.sel.ranges,I=0;I<L.length;I++){var j=Qr(this,L[I].from(),L[I].to());t!==!1&&(j=j.join(t||this.lineSeparator())),v[I]=j}return v},replaceSelection:function(t,v,L){for(var I=[],j=0;j<this.sel.ranges.length;j++)I[j]=t;this.replaceSelections(I,v,L||"+input")},replaceSelections:Na(function(t,v,L){for(var I=[],j=this.sel,ae=0;ae<j.ranges.length;ae++){var xe=j.ranges[ae];I[ae]={from:xe.from(),to:xe.to(),text:this.splitLines(t[ae]),origin:L}}for(var Oe=v&&v!="end"&&fr(this,I,v),Me=I.length-1;Me>=0;Me--)Wn(this,I[Me]);Oe?Es(this,Oe):this.cm&&ao(this.cm)}),undo:Na(function(){wn(this,"undo")}),redo:Na(function(){wn(this,"redo")}),undoSelection:Na(function(){wn(this,"undo",!0)}),redoSelection:Na(function(){wn(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,v=0,L=0,I=0;I<t.done.length;I++)t.done[I].ranges||++v;for(var j=0;j<t.undone.length;j++)t.undone[j].ranges||++L;return{undo:v,redo:L}},clearHistory:function(){var t=this;this.history=new qa(this.history.maxGeneration),La(this,function(v){return v.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 v=this.history=new qa(this.history.maxGeneration);v.done=ys(t.done.slice(0),null,!0),v.undone=ys(t.undone.slice(0),null,!0)},setGutterMarker:Na(function(t,v,L){return bi(this,t,"gutter",function(I){var j=I.gutterMarkers||(I.gutterMarkers={});return j[v]=L,!L&&ke(j)&&(I.gutterMarkers=null),!0})}),clearGutter:Na(function(t){var v=this;this.iter(function(L){L.gutterMarkers&&L.gutterMarkers[t]&&bi(v,L,"gutter",function(){return L.gutterMarkers[t]=null,ke(L.gutterMarkers)&&(L.gutterMarkers=null),!0})})}),lineInfo:function(t){var v;if(typeof t=="number"){if(!ja(this,t))return null;if(v=t,t=En(this,t),!t)return null}else if(v=Nr(t),v==null)return null;return{line:v,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:Na(function(t,v,L){return bi(this,t,v=="gutter"?"gutter":"class",function(I){var j=v=="text"?"textClass":v=="background"?"bgClass":v=="gutter"?"gutterClass":"wrapClass";if(!I[j])I[j]=L;else{if(b(L).test(I[j]))return!1;I[j]+=" "+L}return!0})}),removeLineClass:Na(function(t,v,L){return bi(this,t,v=="gutter"?"gutter":"class",function(I){var j=v=="text"?"textClass":v=="background"?"bgClass":v=="gutter"?"gutterClass":"wrapClass",ae=I[j];if(ae)if(L==null)I[j]=null;else{var xe=ae.match(b(L));if(!xe)return!1;var Oe=xe.index+xe[0].length;I[j]=ae.slice(0,xe.index)+(!xe.index||Oe==ae.length?"":" ")+ae.slice(Oe)||null}else return!1;return!0})}),addLineWidget:Na(function(t,v,L){return Cs(this,t,v,L)}),removeLineWidget:function(t){t.clear()},markText:function(t,v,L){return hs(this,z(this,t),z(this,v),L,L&&L.type||"range")},setBookmark:function(t,v){var L={replacedWith:v&&(v.nodeType==null?v.widget:v),insertLeft:v&&v.insertLeft,clearWhenEmpty:!1,shared:v&&v.shared,handleMouseEvents:v&&v.handleMouseEvents};return t=z(this,t),hs(this,t,t,L,"bookmark")},findMarksAt:function(t){t=z(this,t);var v=[],L=En(this,t.line).markedSpans;if(L)for(var I=0;I<L.length;++I){var j=L[I];(j.from==null||j.from<=t.ch)&&(j.to==null||j.to>=t.ch)&&v.push(j.marker.parent||j.marker)}return v},findMarks:function(t,v,L){t=z(this,t),v=z(this,v);var I=[],j=t.line;return this.iter(t.line,v.line+1,function(ae){var xe=ae.markedSpans;if(xe)for(var Oe=0;Oe<xe.length;Oe++){var Me=xe[Oe];!(Me.to!=null&&j==t.line&&t.ch>=Me.to||Me.from==null&&j!=t.line||Me.from!=null&&j==v.line&&Me.from>=v.ch)&&(!L||L(Me.marker))&&I.push(Me.marker.parent||Me.marker)}++j}),I},getAllMarks:function(){var t=[];return this.iter(function(v){var L=v.markedSpans;if(L)for(var I=0;I<L.length;++I)L[I].from!=null&&t.push(L[I].marker)}),t},posFromIndex:function(t){var v,L=this.first,I=this.lineSeparator().length;return this.iter(function(j){var ae=j.text.length+I;if(ae>t)return v=t,!0;t-=ae,++L}),z(this,Le(L,v))},indexFromPos:function(t){t=z(this,t);var v=t.ch;if(t.line<this.first||t.ch<0)return 0;var L=this.lineSeparator().length;return this.iter(this.first,t.line,function(I){v+=I.text.length+L}),v},copy:function(t){var v=new Bo(sa(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return v.scrollTop=this.scrollTop,v.scrollLeft=this.scrollLeft,v.sel=this.sel,v.extend=!1,t&&(v.history.undoDepth=this.history.undoDepth,v.setHistory(this.getHistory())),v},linkedDoc:function(t){t||(t={});var v=this.first,L=this.first+this.size;t.from!=null&&t.from>v&&(v=t.from),t.to!=null&&t.to<L&&(L=t.to);var I=new Bo(sa(this,v,L),t.mode||this.modeOption,v,this.lineSep,this.direction);return t.sharedHist&&(I.history=this.history),(this.linked||(this.linked=[])).push({doc:I,sharedHist:t.sharedHist}),I.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],ql(I,Zl(this)),I},unlinkDoc:function(t){if(t instanceof mi&&(t=t.doc),this.linked)for(var v=0;v<this.linked.length;++v){var L=this.linked[v];if(L.doc!=t)continue;this.linked.splice(v,1),t.unlinkDoc(this),$l(Zl(this));break}if(t.history==this.history){var I=[t.id];La(t,function(j){return I.push(j.id)},!0),t.history=new qa(null),t.history.done=ys(this.history.done,I),t.history.undone=ys(this.history.undone,I)}},iterLinkedDocs:function(t){La(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):Mt(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(v){return v.order=null}),this.cm&&qi(this.cm)})}),Bo.prototype.eachLine=Bo.prototype.iter;var eu=0;function vu(t){var v=this;if(gu(v),lt(v,t)||_o(v.display,t))return;Pe(t),C&&(eu=+new Date);var L=Dn(v,t,!0),I=t.dataTransfer.files;if(!L||v.isReadOnly())return;if(I&&I.length&&window.FileReader&&window.File)for(var j=I.length,ae=Array(j),xe=0,Oe=function(){++xe==j&&Ua(v,function(){L=z(v.doc,L);var Pt={from:L,to:L,text:v.doc.splitLines(ae.filter(function(an){return an!=null}).join(v.doc.lineSeparator())),origin:"paste"};Wn(v.doc,Pt),Es(v.doc,Yt(z(v.doc,L),z(v.doc,Cn(Pt))))})()},Me=function(Pt,an){if(v.options.allowDropFileTypes&&Q(v.options.allowDropFileTypes,Pt.type)==-1){Oe();return}var gn=new FileReader;gn.onerror=function(){return Oe()},gn.onload=function(){var Mn=gn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Mn)){Oe();return}ae[an]=Mn,Oe()},gn.readAsText(Pt)},He=0;He<I.length;He++)Me(I[He],He);else{if(v.state.draggingText&&v.doc.sel.contains(L)>-1){v.state.draggingText(t),setTimeout(function(){return v.display.input.focus()},20);return}try{var gt=t.dataTransfer.getData("Text");if(gt){var wt;if(v.state.draggingText&&!v.state.draggingText.copy&&(wt=v.listSelections()),zs(v.doc,Yt(L,L)),wt)for(var kt=0;kt<wt.length;++kt)Mr(v.doc,"",wt[kt].anchor,wt[kt].head,"drag");v.replaceSelection(gt,"around","paste"),v.display.input.focus()}}catch(Pt){}}}function tu(t,v){if(C&&(!t.state.draggingText||+new Date-eu<100)){et(v);return}if(lt(t,v)||_o(t.display,v))return;if(v.dataTransfer.setData("Text",t.getSelection()),v.dataTransfer.effectAllowed="copyMove",v.dataTransfer.setDragImage&&!s){var L=x("img",null,null,"position: fixed; left: 0; top: 0;");L.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",e&&(L.width=L.height=1,t.display.wrapper.appendChild(L),L._top=L.offsetTop),v.dataTransfer.setDragImage(L,0,0),e&&L.parentNode.removeChild(L)}}function Wu(t,v){var L=Dn(t,v);if(!L)return;var I=document.createDocumentFragment();Gn(t,L,I),t.display.dragCursor||(t.display.dragCursor=x("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),i(t.display.dragCursor,I)}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 v=document.getElementsByClassName("CodeMirror"),L=[],I=0;I<v.length;I++){var j=v[I].CodeMirror;j&&L.push(j)}L.length&&L[0].operation(function(){for(var ae=0;ae<L.length;ae++)t(L[ae])})}var rs=!1;function nu(){if(rs)return;zu(),rs=!0}function zu(){var t;ze(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,yu(Gu)},100))}),ze(window,"blur",function(){return yu(aa)})}function Gu(t){var v=t.display;v.cachedCharWidth=v.cachedTextHeight=v.cachedPaddingH=null,v.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 v=t.split(/-(?!$)/);t=v[v.length-1];for(var L,I,j,ae,xe=0;xe<v.length-1;xe++){var Oe=v[xe];if(/^(cmd|meta|m)$/i.test(Oe))ae=!0;else if(/^a(lt)?$/i.test(Oe))L=!0;else if(/^(c|ctrl|control)$/i.test(Oe))I=!0;else if(/^s(hift)?$/i.test(Oe))j=!0;else throw new Error("Unrecognized modifier name: "+Oe)}return L&&(t="Alt-"+t),I&&(t="Ctrl-"+t),ae&&(t="Cmd-"+t),j&&(t="Shift-"+t),t}function Xu(t){var v={};for(var L in t)if(t.hasOwnProperty(L)){var I=t[L];if(/^(name|fallthrough|(de|at)tach)$/.test(L))continue;if(I=="..."){delete t[L];continue}for(var j=he(L.split(" "),Vu),ae=0;ae<j.length;ae++){var xe=void 0,Oe=void 0;ae==j.length-1?(Oe=j.join(" "),xe=I):(Oe=j.slice(0,ae+1).join(" "),xe="...");var Me=v[Oe];if(!Me)v[Oe]=xe;else if(Me!=xe)throw new Error("Inconsistent bindings for "+Oe)}delete t[L]}for(var He in v)t[He]=v[He];return t}function rl(t,v,L,I){v=$i(v);var j=v.call?v.call(t,I):v[t];if(j===!1)return"nothing";if(j==="...")return"multi";if(j!=null&&L(j))return"handled";if(v.fallthrough){if(Object.prototype.toString.call(v.fallthrough)!="[object Array]")return rl(t,v.fallthrough,L,I);for(var ae=0;ae<v.fallthrough.length;ae++){var xe=rl(t,v.fallthrough[ae],L,I);if(xe)return xe}}}function bu(t){var v=typeof t=="string"?t:Gs[t.keyCode];return v=="Ctrl"||v=="Alt"||v=="Shift"||v=="Mod"}function Fl(t,v,L){var I=t;return v.altKey&&I!="Alt"&&(t="Alt-"+t),(w?v.metaKey:v.ctrlKey)&&I!="Ctrl"&&(t="Ctrl-"+t),(w?v.ctrlKey:v.metaKey)&&I!="Mod"&&(t="Cmd-"+t),!L&&v.shiftKey&&I!="Shift"&&(t="Shift-"+t),t}function ru(t,v){if(e&&t.keyCode==34&&t.char)return!1;var L=Gs[t.keyCode];return L==null||t.altGraphKey?!1:(t.keyCode==3&&t.code&&(L=t.code),Fl(L,t,v))}function $i(t){return typeof t=="string"?Ps[t]:t}function Os(t,v){for(var L=t.doc.sel.ranges,I=[],j=0;j<L.length;j++){for(var ae=v(L[j]);I.length&&Qe(ae.from,pe(I).to)<=0;){var xe=I.pop();if(Qe(xe.from,ae.from)<0){ae.from=xe.from;break}}I.push(ae)}yi(t,function(){for(var Oe=I.length-1;Oe>=0;Oe--)Mr(t.doc,"",I[Oe].from,I[Oe].to,"+delete");ao(t)})}function au(t,v,L){var I=W(t.text,v+L,L);return I<0||I>t.text.length?null:I}function iu(t,v,L){var I=au(t,v.ch,L);return I==null?null:new Le(v.line,I,L<0?"after":"before")}function Nl(t,v,L,I,j){if(t){v.doc.direction=="rtl"&&(j=-j);var ae=xt(L,v.doc.direction);if(ae){var xe=j<0?pe(ae):ae[0],Oe=j<0==(xe.level==1),Me=Oe?"after":"before",He;if(xe.level>0||v.doc.direction=="rtl"){var gt=it(v,L);He=j<0?L.text.length-1:0;var wt=dt(v,gt,He).top;He=de(function(kt){return dt(v,gt,kt).top==wt},j<0==(xe.level==1)?xe.from:xe.to-1,He),Me=="before"&&(He=au(L,He,1))}else He=j<0?xe.to:xe.from;return new Le(I,He,Me)}}return new Le(I,j<0?L.text.length:0,j<0?"before":"after")}function ou(t,v,L,I){var j=xt(v,t.doc.direction);if(!j)return iu(v,L,I);L.ch>=v.text.length?(L.ch=v.text.length,L.sticky="before"):L.ch<=0&&(L.ch=0,L.sticky="after");var ae=De(j,L.ch,L.sticky),xe=j[ae];if(t.doc.direction=="ltr"&&xe.level%2==0&&(I>0?xe.to>L.ch:xe.from<L.ch))return iu(v,L,I);var Oe=function(Vn,or){return au(v,Vn instanceof Le?Vn.ch:Vn,or)},Me,He=function(Vn){return t.options.lineWrapping?(Me=Me||it(t,v),cn(t,v,Me,Vn)):{begin:0,end:v.text.length}},gt=He(L.sticky=="before"?Oe(L,-1):L.ch);if(t.doc.direction=="rtl"||xe.level==1){var wt=xe.level==1==I<0,kt=Oe(L,wt?1:-1);if(kt!=null&&(wt?kt<=xe.to&&kt<=gt.end:kt>=xe.from&&kt>=gt.begin)){var Pt=wt?"before":"after";return new Le(L.line,kt,Pt)}}var an=function(Vn,or,Yn){for(var pr=function(ci,so){return so?new Le(L.line,Oe(ci,1),"before"):new Le(L.line,ci,"after")};Vn>=0&&Vn<j.length;Vn+=or){var Hr=j[Vn],Lr=or>0==(Hr.level!=1),pa=Lr?Yn.begin:Oe(Yn.end,-1);if(Hr.from<=pa&&pa<Hr.to)return pr(pa,Lr);if(pa=Lr?Hr.from:Oe(Hr.to,-1),Yn.begin<=pa&&pa<Yn.end)return pr(pa,Lr)}},gn=an(ae+I,I,gt);if(gn)return gn;var Mn=I>0?gt.end:Oe(gt.begin,-1);return Mn!=null&&!(I>0&&Mn==v.text.length)&&(gn=an(I>0?0:j.length-1,I,He(Mn)),gn)?gn:null}var xl={selectAll:Ta,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),oe)},killLine:function(t){return Os(t,function(v){if(v.empty()){var L=En(t.doc,v.head.line).text.length;return v.head.ch==L&&v.head.line<t.lastLine()?{from:v.head,to:Le(v.head.line+1,0)}:{from:v.head,to:Le(v.head.line,L)}}else return{from:v.from(),to:v.to()}})},deleteLine:function(t){return Os(t,function(v){return{from:Le(v.from().line,0),to:z(t.doc,Le(v.to().line+1,0))}})},delLineLeft:function(t){return Os(t,function(v){return{from:Le(v.from().line,0),to:v.from()}})},delWrappedLineLeft:function(t){return Os(t,function(v){var L=t.charCoords(v.head,"div").top+5,I=t.coordsChar({left:0,top:L},"div");return{from:I,to:v.from()}})},delWrappedLineRight:function(t){return Os(t,function(v){var L=t.charCoords(v.head,"div").top+5,I=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:L},"div");return{from:v.from(),to:I}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(Le(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(Le(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(v){return Eu(t,v.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(v){return Cu(t,v.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(v){return Yu(t,v.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(v){var L=t.cursorCoords(v.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:L},"div")},se)},goLineLeft:function(t){return t.extendSelectionsBy(function(v){var L=t.cursorCoords(v.head,"div").top+5;return t.coordsChar({left:0,top:L},"div")},se)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(v){var L=t.cursorCoords(v.head,"div").top+5,I=t.coordsChar({left:0,top:L},"div");return I.ch<t.getLine(I.line).search(/\S/)?Cu(t,v.head):I},se)},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 v=[],L=t.listSelections(),I=t.options.tabSize,j=0;j<L.length;j++){var ae=L[j].from(),xe=G(t.getLine(ae.line),ae.ch,I);v.push(Ee(I-xe%I))}t.replaceSelections(v)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return yi(t,function(){for(var v=t.listSelections(),L=[],I=0;I<v.length;I++){if(!v[I].empty())continue;var j=v[I].head,ae=En(t.doc,j.line).text;if(ae){if(j.ch==ae.length&&(j=new Le(j.line,j.ch-1)),j.ch>0)j=new Le(j.line,j.ch+1),t.replaceRange(ae.charAt(j.ch-1)+ae.charAt(j.ch-2),Le(j.line,j.ch-2),j,"+transpose");else if(j.line>t.doc.first){var xe=En(t.doc,j.line-1).text;xe&&(j=new Le(j.line,1),t.replaceRange(ae.charAt(0)+t.doc.lineSeparator()+xe.charAt(xe.length-1),Le(j.line-1,xe.length-1),j,"+transpose"))}}L.push(new Tn(j,j))}t.setSelections(L)})},newlineAndIndent:function(t){return yi(t,function(){for(var v=t.listSelections(),L=v.length-1;L>=0;L--)t.replaceRange(t.doc.lineSeparator(),v[L].anchor,v[L].head,"+input");v=t.listSelections();for(var I=0;I<v.length;I++)t.indentLine(v[I].from().line,null,!0);ao(t)})},openLine:function(t){return t.replaceSelection(`
`,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function Eu(t,v){var L=En(t.doc,v),I=vi(L);return I!=L&&(v=Nr(I)),Nl(!0,t,I,v,1)}function Yu(t,v){var L=En(t.doc,v),I=vo(L);return I!=L&&(v=Nr(I)),Nl(!0,t,L,v,-1)}function Cu(t,v){var L=Eu(t,v.line),I=En(t.doc,L.line),j=xt(I,t.doc.direction);if(!j||j[0].level==0){var ae=Math.max(L.ch,I.text.search(/\S/)),xe=v.line==L.line&&v.ch<=ae&&v.ch;return Le(L.line,xe?0:ae,L.sticky)}return L}function jl(t,v,L){if(typeof v=="string"&&(v=xl[v],!v))return!1;t.display.input.ensurePolled();var I=t.display.shift,j=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),L&&(t.display.shift=!1),j=v(t)!=te}finally{t.display.shift=I,t.state.suppressEdits=!1}return j}function Ju(t,v,L){for(var I=0;I<t.state.keyMaps.length;I++){var j=rl(v,t.state.keyMaps[I],L,t);if(j)return j}return t.options.extraKeys&&rl(v,t.options.extraKeys,L,t)||rl(v,t.options.keyMap,L,t)}var Zu=new N;function _l(t,v,L,I){var j=t.state.keySeq;if(j){if(bu(v))return"handled";if(/\'$/.test(v)?t.state.keySeq=null:Zu.set(50,function(){t.state.keySeq==j&&(t.state.keySeq=null,t.display.input.reset())}),su(t,j+" "+v,L,I))return!0}return su(t,v,L,I)}function su(t,v,L,I){var j=Ju(t,v,I);return j=="multi"&&(t.state.keySeq=v),j=="handled"&&ua(t,"keyHandled",t,v,L),(j=="handled"||j=="multi")&&(Pe(L),mr(t)),!!j}function lu(t,v){var L=ru(v,!0);return L?v.shiftKey&&!t.state.keySeq?_l(t,"Shift-"+L,v,function(I){return jl(t,I,!0)})||_l(t,L,v,function(I){if(typeof I=="string"?/^go[A-Z]/.test(I):I.motion)return jl(t,I)}):_l(t,L,v,function(I){return jl(t,I)}):!1}function wu(t,v,L){return _l(t,"'"+L+"'",v,function(I){return jl(t,I,!0)})}var Hl=null;function Ql(t){var v=this;if(t.target&&t.target!=v.display.input.getField())return;if(v.curOp.focus=R(),lt(v,t))return;C&&m<11&&t.keyCode==27&&(t.returnValue=!1);var L=t.keyCode;v.display.shift=L==16||t.shiftKey;var I=lu(v,t);e&&(Hl=I?L:null,!I&&L==88&&!Ct&&(h?t.metaKey:t.ctrlKey)&&v.replaceSelection("",null,"cut")),P&&!h&&!I&&L==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),L==18&&!/\bCodeMirror-crosshair\b/.test(v.display.lineDiv.className)&&qu(v)}function qu(t){var v=t.display.lineDiv;k(v,"CodeMirror-crosshair");function L(I){(I.keyCode==18||!I.altKey)&&(A(v,"CodeMirror-crosshair"),Et(document,"keyup",L),Et(document,"mouseover",L))}ze(document,"keyup",L),ze(document,"mouseover",L)}function xu(t){t.keyCode==16&&(this.doc.sel.shift=!1),lt(this,t)}function _u(t){var v=this;if(t.target&&t.target!=v.display.input.getField())return;if(_o(v.display,t)||lt(v,t)||t.ctrlKey&&!t.altKey||h&&t.metaKey)return;var L=t.keyCode,I=t.charCode;if(e&&L==Hl){Hl=null,Pe(t);return}if(e&&(!t.which||t.which<10)&&lu(v,t))return;var j=String.fromCharCode(I==null?L:I);if(j=="\b")return;if(wu(v,t,j))return;v.display.input.onKeyPress(t)}var $u=400,fl=function(t,v,L){this.time=t,this.pos=v,this.button=L};fl.prototype.compare=function(t,v,L){return this.time+$u>t&&Qe(v,this.pos)==0&&L==this.button};var Vs,Sl;function Su(t,v){var L=+new Date;return Sl&&Sl.compare(L,t,v)?(Vs=Sl=null,"triple"):Vs&&Vs.compare(L,t,v)?(Sl=new fl(L,t,v),Vs=null,"double"):(Vs=new fl(L,t,v),Sl=null,"single")}function Kl(t){var v=this,L=v.display;if(lt(v,t)||L.activeTouch&&L.input.supportsTouch())return;if(L.input.ensurePolled(),L.shift=t.shiftKey,_o(L,t)){c||(L.scroller.draggable=!1,setTimeout(function(){return L.scroller.draggable=!0},100));return}if(uu(v,t))return;var I=Dn(v,t),j=At(t),ae=I?Su(I,j):"single";if(window.focus(),j==1&&v.state.selectingText&&v.state.selectingText(t),I&&Tu(v,j,I,ae,t))return;j==1?I?Ou(v,I,ae,t):mt(t)==L.scroller&&Pe(t):j==2?(I&&Bs(v.doc,I),setTimeout(function(){return L.input.focus()},20)):j==3&&(B?v.display.input.onContextMenu(t):Va(v))}function Tu(t,v,L,I,j){var ae="Click";return I=="double"?ae="Double"+ae:I=="triple"&&(ae="Triple"+ae),ae=(v==1?"Left":v==2?"Middle":"Right")+ae,_l(t,Fl(ae,j),j,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,L)!=te}finally{t.state.suppressEdits=!1}return Oe})}function Bu(t,v,L){var I=t.getOption("configureMouse"),j=I?I(t,v,L):{};if(j.unit==null){var ae=g?L.shiftKey&&L.metaKey:L.altKey;j.unit=ae?"rectangle":v=="single"?"char":v=="double"?"word":"line"}return(j.extend==null||t.doc.extend)&&(j.extend=t.doc.extend||L.shiftKey),j.addNew==null&&(j.addNew=h?L.metaKey:L.ctrlKey),j.moveOnDrag==null&&(j.moveOnDrag=!(h?L.altKey:L.ctrlKey)),j}function Ou(t,v,L,I){C?setTimeout(U(Kr,t),0):t.curOp.focus=R();var j=Bu(t,L,I),ae=t.doc.sel,xe;t.options.dragDrop&&Ut&&!t.isReadOnly()&&L=="single"&&(xe=ae.contains(v))>-1&&(Qe((xe=ae.ranges[xe]).from(),v)<0||v.xRel>0)&&(Qe(xe.to(),v)>0||v.xRel<0)?ec(t,I,v,j):Du(t,I,v,j)}function ec(t,v,L,I){var j=t.display,ae=!1,xe=Ua(t,function(He){c&&(j.scroller.draggable=!1),t.state.draggingText=!1,Et(j.wrapper.ownerDocument,"mouseup",xe),Et(j.wrapper.ownerDocument,"mousemove",Oe),Et(j.scroller,"dragstart",Me),Et(j.scroller,"drop",xe),ae||(Pe(He),I.addNew||Bs(t.doc,L,null,null,I.extend),c&&!s||C&&m==9?setTimeout(function(){j.wrapper.ownerDocument.body.focus({preventScroll:!0}),j.input.focus()},20):j.input.focus())}),Oe=function(He){ae=ae||Math.abs(v.clientX-He.clientX)+Math.abs(v.clientY-He.clientY)>=10},Me=function(){return ae=!0};c&&(j.scroller.draggable=!0),t.state.draggingText=xe,xe.copy=!I.moveOnDrag,j.scroller.dragDrop&&j.scroller.dragDrop(),ze(j.wrapper.ownerDocument,"mouseup",xe),ze(j.wrapper.ownerDocument,"mousemove",Oe),ze(j.scroller,"dragstart",Me),ze(j.scroller,"drop",xe),Va(t),setTimeout(function(){return j.input.focus()},20)}function Tl(t,v,L){if(L=="char")return new Tn(v,v);if(L=="word")return t.findWordAt(v);if(L=="line")return new Tn(Le(v.line,0),z(t.doc,Le(v.line+1,0)));var I=L(t,v);return new Tn(I.from,I.to)}function Du(t,v,L,I){var j=t.display,ae=t.doc;Pe(v);var xe,Oe,Me=ae.sel,He=Me.ranges;if(I.addNew&&!I.extend?(Oe=ae.sel.contains(L),Oe>-1?xe=He[Oe]:xe=new Tn(L,L)):(xe=ae.sel.primary(),Oe=ae.sel.primIndex),I.unit=="rectangle")I.addNew||(xe=new Tn(L,L)),L=Dn(t,v,!0,!0),Oe=-1;else{var gt=Tl(t,L,I.unit);I.extend?xe=Ks(xe,gt.anchor,gt.head,I.extend):xe=gt}I.addNew?Oe==-1?(Oe=He.length,Ni(ae,Lt(t,He.concat([xe]),Oe),{scroll:!1,origin:"*mouse"})):He.length>1&&He[Oe].empty()&&I.unit=="char"&&!I.extend?(Ni(ae,Lt(t,He.slice(0,Oe).concat(He.slice(Oe+1)),0),{scroll:!1,origin:"*mouse"}),Me=ae.sel):bs(ae,Oe,xe,me):(Oe=0,Ni(ae,new Za([xe],0),me),Me=ae.sel);var wt=L;function kt(Yn){if(Qe(wt,Yn)==0)return;if(wt=Yn,I.unit=="rectangle"){for(var pr=[],Hr=t.options.tabSize,Lr=G(En(ae,L.line).text,L.ch,Hr),pa=G(En(ae,Yn.line).text,Yn.ch,Hr),ci=Math.min(Lr,pa),so=Math.max(Lr,pa),Ri=Math.min(L.line,Yn.line),Yo=Math.min(t.lastLine(),Math.max(L.line,Yn.line));Ri<=Yo;Ri++){var Co=En(ae,Ri).text,zi=_e(Co,ci,Hr);ci==so?pr.push(new Tn(Le(Ri,zi),Le(Ri,zi))):Co.length>zi&&pr.push(new Tn(Le(Ri,zi),Le(Ri,_e(Co,so,Hr))))}pr.length||pr.push(new Tn(L,L)),Ni(ae,Lt(t,Me.ranges.slice(0,Oe).concat(pr),Oe),{origin:"*mouse",scroll:!1}),t.scrollIntoView(Yn)}else{var wo=xe,mo=Tl(t,Yn,I.unit),Hn=wo.anchor,wi;Qe(mo.anchor,Hn)>0?(wi=mo.head,Hn=nn(wo.from(),mo.anchor)):(wi=mo.anchor,Hn=Kt(wo.to(),mo.head));var xi=Me.ranges.slice(0);xi[Oe]=Ru(t,new Tn(z(ae,Hn),wi)),Ni(ae,Lt(t,xi,Oe),me)}}var Pt=j.wrapper.getBoundingClientRect(),an=0;function gn(Yn){var pr=++an,Hr=Dn(t,Yn,!0,I.unit=="rectangle");if(!Hr)return;if(Qe(Hr,wt)!=0){t.curOp.focus=R(),kt(Hr);var Lr=Ka(j,ae);(Hr.line>=Lr.to||Hr.line<Lr.from)&&setTimeout(Ua(t,function(){an==pr&&gn(Yn)}),150)}else{var pa=Yn.clientY<Pt.top?-20:Yn.clientY>Pt.bottom?20:0;pa&&setTimeout(Ua(t,function(){if(an!=pr)return;j.scroller.scrollTop+=pa,gn(Yn)}),50)}}function Mn(Yn){t.state.selectingText=!1,an=Infinity,Yn&&(Pe(Yn),j.input.focus()),Et(j.wrapper.ownerDocument,"mousemove",Vn),Et(j.wrapper.ownerDocument,"mouseup",or),ae.history.lastSelOrigin=null}var Vn=Ua(t,function(Yn){Yn.buttons===0||!At(Yn)?Mn(Yn):gn(Yn)}),or=Ua(t,Mn);t.state.selectingText=or,ze(j.wrapper.ownerDocument,"mousemove",Vn),ze(j.wrapper.ownerDocument,"mouseup",or)}function Ru(t,v){var L=v.anchor,I=v.head,j=En(t.doc,L.line);if(Qe(L,I)==0&&L.sticky==I.sticky)return v;var ae=xt(j);if(!ae)return v;var xe=De(ae,L.ch,L.sticky),Oe=ae[xe];if(Oe.from!=L.ch&&Oe.to!=L.ch)return v;var Me=xe+(Oe.from==L.ch==(Oe.level!=1)?0:1);if(Me==0||Me==ae.length)return v;var He;if(I.line!=L.line)He=(I.line-L.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var gt=De(ae,I.ch,I.sticky),wt=gt-xe||(I.ch-L.ch)*(Oe.level==1?-1:1);gt==Me-1||gt==Me?He=wt<0:He=wt>0}var kt=ae[Me+(He?-1:0)],Pt=He==(kt.level==1),an=Pt?kt.from:kt.to,gn=Pt?"after":"before";return L.ch==an&&L.sticky==gn?v:new Tn(new Le(L.line,an,gn),I)}function Iu(t,v,L,I){var j,ae;if(v.touches)j=v.touches[0].clientX,ae=v.touches[0].clientY;else try{j=v.clientX,ae=v.clientY}catch(kt){return!1}if(j>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;I&&Pe(v);var xe=t.display,Oe=xe.lineDiv.getBoundingClientRect();if(ae>Oe.bottom||!qe(t,L))return Ne(v);ae-=Oe.top-xe.viewOffset;for(var Me=0;Me<t.display.gutterSpecs.length;++Me){var He=xe.gutters.childNodes[Me];if(He&&He.getBoundingClientRect().right>=j){var gt=ba(t.doc,ae),wt=t.display.gutterSpecs[Me];return ct(t,L,t,gt,wt.className,v),Ne(v)}}}function uu(t,v){return Iu(t,v,"gutterClick",!0)}function cu(t,v){if(_o(t.display,v)||pl(t,v))return;if(lt(t,v,"contextmenu"))return;B||t.display.input.onContextMenu(v)}function pl(t,v){return qe(t,"gutterContextMenu")?Iu(t,v,"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-"),qt(t)}var Us={toString:function(){return"CodeMirror.Init"}},Mu={},zl={};function tc(t){var v=t.optionHandlers;function L(I,j,ae,xe){t.defaults[I]=j,ae&&(v[I]=xe?function(Oe,Me,He){He!=Us&&ae(Oe,Me,He)}:ae)}t.defineOption=L,t.Init=Us,L("value","",function(I,j){return I.setValue(j)},!0),L("mode",null,function(I,j){I.doc.modeOption=j,$r(I)},!0),L("indentUnit",2,$r,!0),L("indentWithTabs",!1),L("smartIndent",!0),L("tabSize",4,function(I){mn(I),qt(I),Pr(I)},!0),L("lineSeparator",null,function(I,j){if(I.doc.lineSep=j,!j)return;var ae=[],xe=I.doc.first;I.doc.iter(function(Me){for(var He=0;;){var gt=Me.text.indexOf(j,He);if(gt==-1)break;He=gt+j.length,ae.push(Le(xe,gt))}xe++});for(var Oe=ae.length-1;Oe>=0;Oe--)Mr(I.doc,j,ae[Oe],Le(ae[Oe].line,ae[Oe].ch+j.length))}),L("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(I,j,ae){I.state.specialChars=new RegExp(j.source+(j.test(" ")?"":"| "),"g"),ae!=Us&&I.refresh()}),L("specialCharPlaceholder",Aa,function(I){return I.refresh()},!0),L("electricChars",!0),L("inputStyle",a?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),L("spellcheck",!1,function(I,j){return I.getInputField().spellcheck=j},!0),L("autocorrect",!1,function(I,j){return I.getInputField().autocorrect=j},!0),L("autocapitalize",!1,function(I,j){return I.getInputField().autocapitalize=j},!0),L("rtlMoveVisually",!p),L("wholeLineUpdateBefore",!0),L("theme","default",function(I){Wl(I),Zi(I)},!0),L("keyMap","default",function(I,j,ae){var xe=$i(j),Oe=ae!=Us&&$i(ae);Oe&&Oe.detach&&Oe.detach(I,xe),xe.attach&&xe.attach(I,Oe||null)}),L("extraKeys",null),L("configureMouse",null),L("lineWrapping",!1,Lu,!0),L("gutters",[],function(I,j){I.display.gutterSpecs=wa(j,I.options.lineNumbers),Zi(I)},!0),L("fixedGutter",!0,function(I,j){I.display.gutters.style.left=j?ta(I.display)+"px":"0",I.refresh()},!0),L("coverGutterNextToScrollbar",!1,function(I){return Fi(I)},!0),L("scrollbarStyle","native",function(I){io(I),Fi(I),I.display.scrollbars.setScrollTop(I.doc.scrollTop),I.display.scrollbars.setScrollLeft(I.doc.scrollLeft)},!0),L("lineNumbers",!1,function(I,j){I.display.gutterSpecs=wa(I.options.gutters,j),Zi(I)},!0),L("firstLineNumber",1,Zi,!0),L("lineNumberFormatter",function(I){return I},Zi,!0),L("showCursorWhenSelecting",!1,fn,!0),L("resetSelectionOnContextMenu",!0),L("lineWiseCopyCut",!0),L("pasteLinesPerSelection",!0),L("selectionsMayTouch",!1),L("readOnly",!1,function(I,j){j=="nocursor"&&(aa(I),I.display.input.blur()),I.display.input.readOnlyChanged(j)}),L("screenReaderLabel",null,function(I,j){j=j===""?null:j,I.display.input.screenReaderLabelChanged(j)}),L("disableInput",!1,function(I,j){j||I.display.input.reset()},!0),L("dragDrop",!0,nc),L("allowDropFileTypes",null),L("cursorBlinkRate",530),L("cursorScrollMargin",0),L("cursorHeight",1,fn,!0),L("singleCursorHeightPerLine",!0,fn,!0),L("workTime",100),L("workDelay",100),L("flattenSpans",!0,mn,!0),L("addModeClass",!1,mn,!0),L("pollInterval",100),L("undoDepth",200,function(I,j){return I.doc.history.undoDepth=j}),L("historyEventDelay",1250),L("viewportMargin",10,function(I){return I.refresh()},!0),L("maxHighlightLength",1e4,mn,!0),L("moveInputWithCursor",!0,function(I,j){j||I.display.input.resetPosition()}),L("tabindex",null,function(I,j){return I.display.input.getField().tabIndex=j||""}),L("autofocus",null),L("direction","ltr",function(I,j){return I.doc.setDirection(j)},!0),L("phrases",null)}function nc(t,v,L){var I=L&&L!=Us;if(!v!=!I){var j=t.display.dragFunctions,ae=v?ze:Et;ae(t.display.scroller,"dragstart",j.start),ae(t.display.scroller,"dragenter",j.enter),ae(t.display.scroller,"dragover",j.over),ae(t.display.scroller,"dragleave",j.leave),ae(t.display.scroller,"drop",j.drop)}}function Lu(t){t.options.lineWrapping?(k(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(A(t.display.wrapper,"CodeMirror-wrap"),Jo(t)),yr(t),Pr(t),qt(t),setTimeout(function(){return Fi(t)},100)}function mi(t,v){var L=this;if(!(this instanceof mi))return new mi(t,v);this.options=v=v?K(v):{},K(Mu,v,!1);var I=v.value;typeof I=="string"?I=new Bo(I,v.mode,null,v.lineSeparator,v.direction):v.mode&&(I.modeOption=v.mode),this.doc=I;var j=new mi.inputStyles[v.inputStyle](this),ae=this.display=new Eo(t,I,j,v);ae.wrapper.CodeMirror=this,Wl(this),v.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 N,keySeq:null,specialChars:null},v.autofocus&&!a&&ae.input.focus(),C&&m<11&&setTimeout(function(){return L.display.input.reset(!0)},20),Pu(this),nu(),Wi(this),this.curOp.forceUpdate=!0,da(this,I),v.autofocus&&!a||this.hasFocus()?setTimeout(function(){L.hasFocus()&&!L.state.focused&&Ra(L)},20):aa(this);for(var xe in zl)zl.hasOwnProperty(xe)&&zl[xe](this,v[xe],Us);ui(this),v.finishInit&&v.finishInit(this);for(var Oe=0;Oe<Gl.length;++Oe)Gl[Oe](this);Ti(this),c&&v.lineWrapping&&getComputedStyle(ae.lineDiv).textRendering=="optimizelegibility"&&(ae.lineDiv.style.textRendering="auto")}mi.defaults=Mu,mi.optionHandlers=zl;function Pu(t){var v=t.display;ze(v.scroller,"mousedown",Ua(t,Kl)),C&&m<11?ze(v.scroller,"dblclick",Ua(t,function(Me){if(lt(t,Me))return;var He=Dn(t,Me);if(!He||uu(t,Me)||_o(t.display,Me))return;Pe(Me);var gt=t.findWordAt(He);Bs(t.doc,gt.anchor,gt.head)})):ze(v.scroller,"dblclick",function(Me){return lt(t,Me)||Pe(Me)}),ze(v.scroller,"contextmenu",function(Me){return cu(t,Me)}),ze(v.input.getField(),"contextmenu",function(Me){v.scroller.contains(Me.target)||cu(t,Me)});var L,I={end:0};function j(){v.activeTouch&&(L=setTimeout(function(){return v.activeTouch=null},1e3),I=v.activeTouch,I.end=+new Date)}function ae(Me){if(Me.touches.length!=1)return!1;var He=Me.touches[0];return He.radiusX<=1&&He.radiusY<=1}function xe(Me,He){if(He.left==null)return!0;var gt=He.left-Me.left,wt=He.top-Me.top;return gt*gt+wt*wt>20*20}ze(v.scroller,"touchstart",function(Me){if(!lt(t,Me)&&!ae(Me)&&!uu(t,Me)){v.input.ensurePolled(),clearTimeout(L);var He=+new Date;v.activeTouch={start:He,moved:!1,prev:He-I.end<=300?I:null},Me.touches.length==1&&(v.activeTouch.left=Me.touches[0].pageX,v.activeTouch.top=Me.touches[0].pageY)}}),ze(v.scroller,"touchmove",function(){v.activeTouch&&(v.activeTouch.moved=!0)}),ze(v.scroller,"touchend",function(Me){var He=v.activeTouch;if(He&&!_o(v,Me)&&He.left!=null&&!He.moved&&new Date-He.start<300){var gt=t.coordsChar(v.activeTouch,"page"),wt;!He.prev||xe(He,He.prev)?wt=new Tn(gt,gt):!He.prev.prev||xe(He,He.prev.prev)?wt=t.findWordAt(gt):wt=new Tn(Le(gt.line,0),z(t.doc,Le(gt.line+1,0))),t.setSelection(wt.anchor,wt.head),t.focus(),Pe(Me)}j()}),ze(v.scroller,"touchcancel",j),ze(v.scroller,"scroll",function(){v.scroller.clientHeight&&(ho(t,v.scroller.scrollTop),Mi(t,v.scroller.scrollLeft,!0),ct(t,"scroll",t))}),ze(v.scroller,"mousewheel",function(Me){return gs(t,Me)}),ze(v.scroller,"DOMMouseScroll",function(Me){return gs(t,Me)}),ze(v.wrapper,"scroll",function(){return v.wrapper.scrollTop=v.wrapper.scrollLeft=0}),v.dragFunctions={enter:function(Me){lt(t,Me)||et(Me)},over:function(Me){lt(t,Me)||(Wu(t,Me),et(Me))},start:function(Me){return tu(t,Me)},drop:Ua(t,vu),leave:function(Me){lt(t,Me)||gu(t)}};var Oe=v.input.getField();ze(Oe,"keyup",function(Me){return xu.call(t,Me)}),ze(Oe,"keydown",Ua(t,Ql)),ze(Oe,"keypress",Ua(t,_u)),ze(Oe,"focus",function(Me){return Ra(t,Me)}),ze(Oe,"blur",function(Me){return aa(t,Me)})}var Gl=[];mi.defineInitHook=function(t){return Gl.push(t)};function al(t,v,L,I){var j=t.doc,ae;L==null&&(L="add"),L=="smart"&&(j.mode.indent?ae=sn(t,v).state:L="prev");var xe=t.options.tabSize,Oe=En(j,v),Me=G(Oe.text,null,xe);Oe.stateAfter&&(Oe.stateAfter=null);var He=Oe.text.match(/^\s*/)[0],gt;if(!I&&!/\S/.test(Oe.text))gt=0,L="not";else if(L=="smart"&&(gt=j.mode.indent(ae,Oe.text.slice(He.length),Oe.text),gt==te||gt>150)){if(!I)return;L="prev"}L=="prev"?v>j.first?gt=G(En(j,v-1).text,null,xe):gt=0:L=="add"?gt=Me+t.options.indentUnit:L=="subtract"?gt=Me-t.options.indentUnit:typeof L=="number"&&(gt=Me+L),gt=Math.max(0,gt);var wt="",kt=0;if(t.options.indentWithTabs)for(var Pt=Math.floor(gt/xe);Pt;--Pt)kt+=xe,wt+=" ";if(kt<gt&&(wt+=Ee(gt-kt)),wt!=He)return Mr(j,wt,Le(v,0),Le(v,He.length),"+input"),Oe.stateAfter=null,!0;for(var an=0;an<j.sel.ranges.length;an++){var gn=j.sel.ranges[an];if(gn.head.line==v&&gn.head.ch<He.length){var Mn=Le(v,He.length);bs(j,an,new Tn(Mn,Mn));break}}}var As=null;function Bl(t){As=t}function du(t,v,L,I,j){var ae=t.doc;t.display.shift=!1,I||(I=ae.sel);var xe=+new Date-200,Oe=j=="paste"||t.state.pasteIncoming>xe,Me=Mt(v),He=null;if(Oe&&I.ranges.length>1)if(As&&As.text.join(`
`)==v){if(I.ranges.length%As.text.length==0){He=[];for(var gt=0;gt<As.text.length;gt++)He.push(ae.splitLines(As.text[gt]))}}else Me.length==I.ranges.length&&t.options.pasteLinesPerSelection&&(He=he(Me,function(Vn){return[Vn]}));for(var wt=t.curOp.updateInput,kt=I.ranges.length-1;kt>=0;kt--){var Pt=I.ranges[kt],an=Pt.from(),gn=Pt.to();Pt.empty()&&(L&&L>0?an=Le(an.line,an.ch-L):t.state.overwrite&&!Oe?gn=Le(gn.line,Math.min(En(ae,gn.line).text.length,gn.ch+pe(Me).length)):Oe&&As&&As.lineWise&&As.text.join(`
`)==Me.join(`
`)&&(an=gn=Le(an.line,0)));var Mn={from:an,to:gn,text:He?He[kt%He.length]:Me,origin:j||(Oe?"paste":t.state.cutIncoming>xe?"cut":"+input")};Wn(t.doc,Mn),ua(t,"inputRead",t,Mn)}v&&!Oe&&Dl(t,v),ao(t),t.curOp.updateInput<2&&(t.curOp.updateInput=wt),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Ol(t,v){var L=t.clipboardData&&t.clipboardData.getData("Text");if(L)return t.preventDefault(),!v.isReadOnly()&&!v.options.disableInput&&yi(v,function(){return du(v,L,0,null,"paste")}),!0}function Dl(t,v){if(!t.options.electricChars||!t.options.smartIndent)return;for(var L=t.doc.sel,I=L.ranges.length-1;I>=0;I--){var j=L.ranges[I];if(j.head.ch>100||I&&L.ranges[I-1].head.line==j.head.line)continue;var ae=t.getModeAt(j.head),xe=!1;if(ae.electricChars){for(var Oe=0;Oe<ae.electricChars.length;Oe++)if(v.indexOf(ae.electricChars.charAt(Oe))>-1){xe=al(t,j.head.line,"smart");break}}else ae.electricInput&&(ae.electricInput.test(En(t.doc,j.head.line).text.slice(0,j.head.ch))&&(xe=al(t,j.head.line,"smart")));xe&&ua(t,"electricInput",t,j.head.line)}}function hu(t){for(var v=[],L=[],I=0;I<t.doc.sel.ranges.length;I++){var j=t.doc.sel.ranges[I].head.line,ae={anchor:Le(j,0),head:Le(j+1,0)};L.push(ae),v.push(t.getRange(ae.anchor,ae.head))}return{text:v,ranges:L}}function Au(t,v,L,I){t.setAttribute("autocorrect",L?"":"off"),t.setAttribute("autocapitalize",I?"":"off"),t.setAttribute("spellcheck",!!v)}function Uu(){var t=x("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),v=x("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return c?t.style.width="1000px":t.setAttribute("wrap","off"),f&&(t.style.border="1px solid black"),Au(t),v}function ku(t){var v=t.optionHandlers,L=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(I,j){var ae=this.options,xe=ae[I];if(ae[I]==j&&I!="mode")return;ae[I]=j,v.hasOwnProperty(I)&&Ua(this,v[I])(this,j,xe),ct(this,"optionChange",this,I)},getOption:function(I){return this.options[I]},getDoc:function(){return this.doc},addKeyMap:function(I,j){this.state.keyMaps[j?"push":"unshift"]($i(I))},removeKeyMap:function(I){for(var j=this.state.keyMaps,ae=0;ae<j.length;++ae)if(j[ae]==I||j[ae].name==I)return j.splice(ae,1),!0},addOverlay:li(function(I,j){var ae=I.token?I:t.getMode(this.options,I);if(ae.startState)throw new Error("Overlays may not be stateful.");ie(this.state.overlays,{mode:ae,modeSpec:I,opaque:j&&j.opaque,priority:j&&j.priority||0},function(xe){return xe.priority}),this.state.modeGen++,Pr(this)}),removeOverlay:li(function(I){for(var j=this.state.overlays,ae=0;ae<j.length;++ae){var xe=j[ae].modeSpec;if(xe==I||typeof I=="string"&&xe.name==I){j.splice(ae,1),this.state.modeGen++,Pr(this);return}}}),indentLine:li(function(I,j,ae){typeof j!="string"&&typeof j!="number"&&(j==null?j=this.options.smartIndent?"smart":"prev":j=j?"add":"subtract"),ja(this.doc,I)&&al(this,I,j,ae)}),indentSelection:li(function(I){for(var j=this.doc.sel.ranges,ae=-1,xe=0;xe<j.length;xe++){var Oe=j[xe];if(Oe.empty())Oe.head.line>ae&&(al(this,Oe.head.line,I,!0),ae=Oe.head.line,xe==this.doc.sel.primIndex&&ao(this));else{var Me=Oe.from(),He=Oe.to(),gt=Math.max(ae,Me.line);ae=Math.min(this.lastLine(),He.line-(He.ch?0:1))+1;for(var wt=gt;wt<ae;++wt)al(this,wt,I);var kt=this.doc.sel.ranges;Me.ch==0&&j.length==kt.length&&kt[xe].from().ch>0&&bs(this.doc,xe,new Tn(Me,kt[xe].to()),oe)}}}),getTokenAt:function(I,j){return rr(this,I,j)},getLineTokens:function(I,j){return rr(this,Le(I),j,!0)},getTokenTypeAt:function(I){I=z(this.doc,I);var j=Nt(this,En(this.doc,I.line)),ae=0,xe=(j.length-1)/2,Oe=I.ch,Me;if(Oe==0)Me=j[2];else for(;;){var He=ae+xe>>1;if((He?j[He*2-1]:0)>=Oe)xe=He;else if(j[He*2+1]<Oe)ae=He+1;else{Me=j[He*2+2];break}}var gt=Me?Me.indexOf("overlay "):-1;return gt<0?Me:gt==0?null:Me.slice(0,gt-1)},getModeAt:function(I){var j=this.doc.mode;return j.innerMode?t.innerMode(j,this.getTokenAt(I).state).mode:j},getHelper:function(I,j){return this.getHelpers(I,j)[0]},getHelpers:function(I,j){var ae=[];if(!L.hasOwnProperty(j))return ae;var xe=L[j],Oe=this.getModeAt(I);if(typeof Oe[j]=="string")xe[Oe[j]]&&ae.push(xe[Oe[j]]);else if(Oe[j])for(var Me=0;Me<Oe[j].length;Me++){var He=xe[Oe[j][Me]];He&&ae.push(He)}else Oe.helperType&&xe[Oe.helperType]?ae.push(xe[Oe.helperType]):xe[Oe.name]&&ae.push(xe[Oe.name]);for(var gt=0;gt<xe._global.length;gt++){var wt=xe._global[gt];wt.pred(Oe,this)&&Q(ae,wt.val)==-1&&ae.push(wt.val)}return ae},getStateAfter:function(I,j){var ae=this.doc;return I=ve(ae,I==null?ae.first+ae.size-1:I),sn(this,I+1,j).state},cursorCoords:function(I,j){var ae,xe=this.doc.sel.primary();return I==null?ae=xe.head:typeof I=="object"?ae=z(this.doc,I):ae=I?xe.from():xe.to(),rn(this,ae,j||"page")},charCoords:function(I,j){return Xn(this,z(this.doc,I),j||"page")},coordsChar:function(I,j){return I=Ln(this,I,j||"page"),_n(this,I.left,I.top)},lineAtHeight:function(I,j){return I=Ln(this,{top:I,left:0},j||"page").top,ba(this.doc,I+this.display.viewOffset)},heightAtLine:function(I,j,ae){var xe=!1,Oe;if(typeof I=="number"){var Me=this.doc.first+this.doc.size-1;I<this.doc.first?I=this.doc.first:I>Me&&(I=Me,xe=!0),Oe=En(this.doc,I)}else Oe=I;return bn(this,Oe,{top:0,left:0},j||"page",ae||xe).top+(xe?this.doc.height-eo(Oe):0)},defaultTextHeight:function(){return Fr(this.display)},defaultCharWidth:function(){return Qn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(I,j,ae,xe,Oe){var Me=this.display;I=rn(this,z(this.doc,I));var He=I.bottom,gt=I.left;if(j.style.position="absolute",j.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(j),Me.sizer.appendChild(j),xe=="over")He=I.top;else if(xe=="above"||xe=="near"){var wt=Math.max(Me.wrapper.clientHeight,this.doc.height),kt=Math.max(Me.sizer.clientWidth,Me.lineSpace.clientWidth);(xe=="above"||I.bottom+j.offsetHeight>wt)&&I.top>j.offsetHeight?He=I.top-j.offsetHeight:I.bottom+j.offsetHeight<=wt&&(He=I.bottom),gt+j.offsetWidth>kt&&(gt=kt-j.offsetWidth)}j.style.top=He+"px",j.style.left=j.style.right="",Oe=="right"?(gt=Me.sizer.clientWidth-j.offsetWidth,j.style.right="0px"):(Oe=="left"?gt=0:Oe=="middle"&&(gt=(Me.sizer.clientWidth-j.offsetWidth)/2),j.style.left=gt+"px"),ae&&Di(this,{left:gt,top:He,right:gt+j.offsetWidth,bottom:He+j.offsetHeight})},triggerOnKeyDown:li(Ql),triggerOnKeyPress:li(_u),triggerOnKeyUp:xu,triggerOnMouseDown:li(Kl),execCommand:function(I){if(xl.hasOwnProperty(I))return xl[I].call(null,this)},triggerElectric:li(function(I){Dl(this,I)}),findPosH:function(I,j,ae,xe){var Oe=1;j<0&&(Oe=-1,j=-j);for(var Me=z(this.doc,I),He=0;He<j&&!(Me=Vl(this.doc,Me,Oe,ae,xe),Me.hitSide);++He);return Me},moveH:li(function(I,j){var ae=this;this.extendSelectionsBy(function(xe){return ae.display.shift||ae.doc.extend||xe.empty()?Vl(ae.doc,xe.head,I,j,ae.options.rtlMoveVisually):I<0?xe.from():xe.to()},se)}),deleteH:li(function(I,j){var ae=this.doc.sel,xe=this.doc;ae.somethingSelected()?xe.replaceSelection("",null,"+delete"):Os(this,function(Oe){var Me=Vl(xe,Oe.head,I,j,!1);return I<0?{from:Me,to:Oe.head}:{from:Oe.head,to:Me}})}),findPosV:function(I,j,ae,xe){var Oe=1,Me=xe;j<0&&(Oe=-1,j=-j);for(var He=z(this.doc,I),gt=0;gt<j;++gt){var wt=rn(this,He,"div");if(Me==null?Me=wt.left:wt.left=Me,He=Fu(this,wt,Oe,ae),He.hitSide)break}return He},moveV:li(function(I,j){var ae=this,xe=this.doc,Oe=[],Me=!this.display.shift&&!xe.extend&&xe.sel.somethingSelected();if(xe.extendSelectionsBy(function(gt){if(Me)return I<0?gt.from():gt.to();var wt=rn(ae,gt.head,"div");gt.goalColumn!=null&&(wt.left=gt.goalColumn),Oe.push(wt.left);var kt=Fu(ae,wt,I,j);return j=="page"&&gt==xe.sel.primary()&&Mo(ae,Xn(ae,kt,"div").top-wt.top),kt},se),Oe.length)for(var He=0;He<xe.sel.ranges.length;He++)xe.sel.ranges[He].goalColumn=Oe[He]}),findWordAt:function(I){var j=this.doc,ae=En(j,I.line).text,xe=I.ch,Oe=I.ch;if(ae){var Me=this.getHelper(I,"wordChars");(I.sticky=="before"||Oe==ae.length)&&xe?--xe:++Oe;for(var He=ae.charAt(xe),gt=Fe(He,Me)?function(wt){return Fe(wt,Me)}:/\s/.test(He)?function(wt){return/\s/.test(wt)}:function(wt){return!/\s/.test(wt)&&!Fe(wt)};xe>0&&gt(ae.charAt(xe-1));)--xe;for(;Oe<ae.length&&gt(ae.charAt(Oe));)++Oe}return new Tn(Le(I.line,xe),Le(I.line,Oe))},toggleOverwrite:function(I){if(I!=null&&I==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?k(this.display.cursorDiv,"CodeMirror-overwrite"):A(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:li(function(I,j){Ii(this,I,j)}),getScrollInfo:function(){var I=this.display.scroller;return{left:I.scrollLeft,top:I.scrollTop,height:I.scrollHeight-Ye(this)-this.display.barHeight,width:I.scrollWidth-Ye(this)-this.display.barWidth,clientHeight:Te(this),clientWidth:Je(this)}},scrollIntoView:li(function(I,j){I==null?(I={from:this.doc.sel.primary().head,to:null},j==null&&(j=this.options.cursorScrollMargin)):typeof I=="number"?I={from:Le(I,0),to:null}:I.from==null&&(I={from:I,to:null}),I.to||(I.to=I.from),I.margin=j||0,I.from.line!=null?ki(this,I):co(this,I.from,I.to,I.margin)}),setSize:li(function(I,j){var ae=this,xe=function(Me){return typeof Me=="number"||/^\d+$/.test(String(Me))?Me+"px":Me};I!=null&&(this.display.wrapper.style.width=xe(I)),j!=null&&(this.display.wrapper.style.height=xe(j)),this.options.lineWrapping&&Wt(this);var Oe=this.display.viewFrom;this.doc.iter(Oe,this.display.viewTo,function(Me){if(Me.widgets){for(var He=0;He<Me.widgets.length;He++)if(Me.widgets[He].noHScroll){jn(ae,Oe,"widget");break}}++Oe}),this.curOp.forceUpdate=!0,ct(this,"refresh",this)}),operation:function(I){return yi(this,I)},startOperation:function(){return Wi(this)},endOperation:function(){return Ti(this)},refresh:li(function(){var I=this.display.cachedTextHeight;Pr(this),this.curOp.forceUpdate=!0,qt(this),Ii(this,this.doc.scrollLeft,this.doc.scrollTop),ts(this.display),(I==null||Math.abs(I-Fr(this.display))>.5||this.options.lineWrapping)&&yr(this),ct(this,"refresh",this)}),swapDoc:li(function(I){var j=this.doc;return j.cm=null,this.state.selectingText&&this.state.selectingText(),da(this,I),qt(this),this.display.input.reset(),Ii(this,I.scrollLeft,I.scrollTop),this.curOp.forceScroll=!0,ua(this,"swapDoc",this,j),j}),phrase:function(I){var j=this.options.phrases;return j&&Object.prototype.hasOwnProperty.call(j,I)?j[I]:I},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},$e(t),t.registerHelper=function(I,j,ae){L.hasOwnProperty(I)||(L[I]=t[I]={_global:[]}),L[I][j]=ae},t.registerGlobalHelper=function(I,j,ae,xe){t.registerHelper(I,j,xe),L[I]._global.push({pred:ae,val:xe})}}function Vl(t,v,L,I,j){var ae=v,xe=L,Oe=En(t,v.line),Me=j&&t.direction=="rtl"?-L:L;function He(){var or=v.line+Me;return or<t.first||or>=t.first+t.size?!1:(v=new Le(or,v.ch,v.sticky),Oe=En(t,or))}function gt(or){var Yn;if(I=="codepoint"){var pr=Oe.text.charCodeAt(v.ch+(I>0?0:-1));isNaN(pr)?Yn=null:Yn=new Le(v.line,Math.max(0,Math.min(Oe.text.length,v.ch+L*(pr>=55296&&pr<56320?2:1))),-L)}else j?Yn=ou(t.cm,Oe,v,L):Yn=iu(Oe,v,L);if(Yn==null)if(!or&&He())v=Nl(j,t.cm,Oe,v.line,Me);else return!1;else v=Yn;return!0}if(I=="char"||I=="codepoint")gt();else if(I=="column")gt(!0);else if(I=="word"||I=="group")for(var wt=null,kt=I=="group",Pt=t.cm&&t.cm.getHelper(v,"wordChars"),an=!0;!(L<0&&!gt(!an));an=!1){var gn=Oe.text.charAt(v.ch)||`
`,Mn=Fe(gn,Pt)?"w":kt&&gn==`
`?"n":!kt||/\s/.test(gn)?null:"p";if(kt&&!an&&!Mn&&(Mn="s"),wt&&wt!=Mn){L<0&&(L=1,gt(),v.sticky="after");break}if(Mn&&(wt=Mn),L>0&&!gt(!an))break}var Vn=Zr(t,v,ae,xe,!0);return ot(ae,Vn)&&(Vn.hitSide=!0),Vn}function Fu(t,v,L,I){var j=t.doc,ae=v.left,xe;if(I=="page"){var Oe=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Me=Math.max(Oe-.5*Fr(t.display),3);xe=(L>0?v.bottom:v.top)+L*Me}else I=="line"&&(xe=L>0?v.bottom+3:v.top-3);for(var He;!(He=_n(t,ae,xe),!He.outside);){if(L<0?xe<=0:xe>=j.height){He.hitSide=!0;break}xe+=L*5}return He}var $a=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new N,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};$a.prototype.init=function(t){var v=this,L=this,I=L.cm,j=L.div=t.lineDiv;Au(j,I.options.spellcheck,I.options.autocorrect,I.options.autocapitalize);function ae(Oe){for(var Me=Oe.target;Me;Me=Me.parentNode){if(Me==j)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Me.className))break}return!1}ze(j,"paste",function(Oe){if(!ae(Oe)||lt(I,Oe)||Ol(Oe,I))return;m<=11&&setTimeout(Ua(I,function(){return v.updateFromDOM()}),20)}),ze(j,"compositionstart",function(Oe){v.composing={data:Oe.data,done:!1}}),ze(j,"compositionupdate",function(Oe){v.composing||(v.composing={data:Oe.data,done:!1})}),ze(j,"compositionend",function(Oe){v.composing&&(Oe.data!=v.composing.data&&v.readFromDOMSoon(),v.composing.done=!0)}),ze(j,"touchstart",function(){return L.forceCompositionEnd()}),ze(j,"input",function(){v.composing||v.readFromDOMSoon()});function xe(Oe){if(!ae(Oe)||lt(I,Oe))return;if(I.somethingSelected())Bl({lineWise:!1,text:I.getSelections()}),Oe.type=="cut"&&I.replaceSelection("",null,"cut");else if(I.options.lineWiseCopyCut){var Me=hu(I);Bl({lineWise:!0,text:Me.text}),Oe.type=="cut"&&I.operation(function(){I.setSelections(Me.ranges,0,oe),I.replaceSelection("",null,"cut")})}else return;if(Oe.clipboardData){Oe.clipboardData.clearData();var He=As.text.join(`
`);if(Oe.clipboardData.setData("Text",He),Oe.clipboardData.getData("Text")==He){Oe.preventDefault();return}}var gt=Uu(),wt=gt.firstChild;I.display.lineSpace.insertBefore(gt,I.display.lineSpace.firstChild),wt.value=As.text.join(`
`);var kt=document.activeElement;J(wt),setTimeout(function(){I.display.lineSpace.removeChild(gt),kt.focus(),kt==j&&L.showPrimarySelection()},50)}ze(j,"copy",xe),ze(j,"cut",xe)},$a.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},$a.prototype.prepareSelection=function(){var t=on(this.cm,!1);return t.focus=document.activeElement==this.div,t},$a.prototype.showSelection=function(t,v){if(!t||!this.cm.display.view.length)return;(t.focus||v)&&this.showPrimarySelection(),this.showMultipleSelections(t)},$a.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},$a.prototype.showPrimarySelection=function(){var t=this.getSelection(),v=this.cm,L=v.doc.sel.primary(),I=L.from(),j=L.to();if(v.display.viewTo==v.display.viewFrom||I.line>=v.display.viewTo||j.line<v.display.viewFrom){t.removeAllRanges();return}var ae=ks(v,t.anchorNode,t.anchorOffset),xe=ks(v,t.focusNode,t.focusOffset);if(ae&&!ae.bad&&xe&&!xe.bad&&Qe(nn(ae,xe),I)==0&&Qe(Kt(ae,xe),j)==0)return;var Oe=v.display.view,Me=I.line>=v.display.viewFrom&&il(v,I)||{node:Oe[0].measure.map[2],offset:0},He=j.line<v.display.viewTo&&il(v,j);if(!He){var gt=Oe[Oe.length-1].measure,wt=gt.maps?gt.maps[gt.maps.length-1]:gt.map;He={node:wt[wt.length-1],offset:wt[wt.length-2]-wt[wt.length-3]}}if(!Me||!He){t.removeAllRanges();return}var kt=t.rangeCount&&t.getRangeAt(0),Pt;try{Pt=T(Me.node,Me.offset,He.offset,He.node)}catch(an){}Pt&&(!P&&v.state.focused?(t.collapse(Me.node,Me.offset),Pt.collapsed||(t.removeAllRanges(),t.addRange(Pt))):(t.removeAllRanges(),t.addRange(Pt)),kt&&t.anchorNode==null?t.addRange(kt):P&&this.startGracePeriod()),this.rememberSelection()},$a.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)},$a.prototype.showMultipleSelections=function(t){i(this.cm.display.cursorDiv,t.cursors),i(this.cm.display.selectionDiv,t.selection)},$a.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},$a.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var v=t.getRangeAt(0).commonAncestorContainer;return D(this.div,v)},$a.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},$a.prototype.blur=function(){this.div.blur()},$a.prototype.getField=function(){return this.div},$a.prototype.supportsTouch=function(){return!0},$a.prototype.receivedFocus=function(){var t=this;this.selectionInEditor()?this.pollSelection():yi(this.cm,function(){return t.cm.curOp.selectionChanged=!0});function v(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,v))}this.polling.set(this.cm.options.pollInterval,v)},$a.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},$a.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var t=this.getSelection(),v=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 L=ks(v,t.anchorNode,t.anchorOffset),I=ks(v,t.focusNode,t.focusOffset);L&&I&&yi(v,function(){Ni(v.doc,Yt(L,I),oe),(L.bad||I.bad)&&(v.curOp.selectionChanged=!0)})},$a.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,v=t.display,L=t.doc.sel.primary(),I=L.from(),j=L.to();if(I.ch==0&&I.line>t.firstLine()&&(I=Le(I.line-1,En(t.doc,I.line-1).length)),j.ch==En(t.doc,j.line).text.length&&j.line<t.lastLine()&&(j=Le(j.line+1,0)),I.line<v.viewFrom||j.line>v.viewTo-1)return!1;var ae,xe,Oe;I.line==v.viewFrom||(ae=ar(t,I.line))==0?(xe=Nr(v.view[0].line),Oe=v.view[0].node):(xe=Nr(v.view[ae].line),Oe=v.view[ae-1].node.nextSibling);var Me=ar(t,j.line),He,gt;if(Me==v.view.length-1?(He=v.viewTo-1,gt=v.lineDiv.lastChild):(He=Nr(v.view[Me+1].line)-1,gt=v.view[Me+1].node.previousSibling),!Oe)return!1;for(var wt=t.doc.splitLines(ol(t,Oe,gt,xe,He)),kt=Qr(t.doc,Le(xe,0),Le(He,En(t.doc,He).text.length));wt.length>1&&kt.length>1;)if(pe(wt)==pe(kt))wt.pop(),kt.pop(),He--;else if(wt[0]==kt[0])wt.shift(),kt.shift(),xe++;else break;for(var Pt=0,an=0,gn=wt[0],Mn=kt[0],Vn=Math.min(gn.length,Mn.length);Pt<Vn&&gn.charCodeAt(Pt)==Mn.charCodeAt(Pt);)++Pt;for(var or=pe(wt),Yn=pe(kt),pr=Math.min(or.length-(wt.length==1?Pt:0),Yn.length-(kt.length==1?Pt:0));an<pr&&or.charCodeAt(or.length-an-1)==Yn.charCodeAt(Yn.length-an-1);)++an;if(wt.length==1&&kt.length==1&&xe==I.line)for(;Pt&&Pt>I.ch&&or.charCodeAt(or.length-an-1)==Yn.charCodeAt(Yn.length-an-1);)Pt--,an++;wt[wt.length-1]=or.slice(0,or.length-an).replace(/^\u200b+/,""),wt[0]=wt[0].slice(Pt).replace(/\u200b+$/,"");var Hr=Le(xe,Pt),Lr=Le(He,kt.length?pe(kt).length-an:0);if(wt.length>1||wt[0]||Qe(Hr,Lr))return Mr(t.doc,wt,Hr,Lr,"+input"),!0},$a.prototype.ensurePolled=function(){this.forceCompositionEnd()},$a.prototype.reset=function(){this.forceCompositionEnd()},$a.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},$a.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)},$a.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&yi(this.cm,function(){return Pr(t.cm)})},$a.prototype.setUneditable=function(t){t.contentEditable="false"},$a.prototype.onKeyPress=function(t){if(t.charCode==0||this.composing)return;t.preventDefault(),this.cm.isReadOnly()||Ua(this.cm,du)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0)},$a.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},$a.prototype.onContextMenu=function(){},$a.prototype.resetPosition=function(){},$a.prototype.needsContentAttribute=!0;function il(t,v){var L=st(t,v.line);if(!L||L.hidden)return null;var I=En(t.doc,v.line),j=Be(L,I,v.line),ae=xt(I,t.doc.direction),xe="left";if(ae){var Oe=De(ae,v.ch);xe=Oe%2?"right":"left"}var Me=Qt(j.map,v.ch,xe);return Me.offset=Me.collapse=="right"?Me.end:Me.start,Me}function Nu(t){for(var v=t;v;v=v.parentNode)if(/CodeMirror-gutter-wrapper/.test(v.className))return!0;return!1}function Ci(t,v){return v&&(t.bad=!0),t}function ol(t,v,L,I,j){var ae="",xe=!1,Oe=t.doc.lineSeparator(),Me=!1;function He(Pt){return function(an){return an.id==Pt}}function gt(){xe&&(ae+=Oe,Me&&(ae+=Oe),xe=Me=!1)}function wt(Pt){Pt&&(gt(),ae+=Pt)}function kt(Pt){if(Pt.nodeType==1){var an=Pt.getAttribute("cm-text");if(an){wt(an);return}var gn=Pt.getAttribute("cm-marker"),Mn;if(gn){var Vn=t.findMarks(Le(I,0),Le(j+1,0),He(+gn));Vn.length&&(Mn=Vn[0].find(0))&&wt(Qr(t.doc,Mn.from,Mn.to).join(Oe));return}if(Pt.getAttribute("contenteditable")=="false")return;var or=/^(pre|div|p|li|table|br)$/i.test(Pt.nodeName);if(!/^br$/i.test(Pt.nodeName)&&Pt.textContent.length==0)return;or&&gt();for(var Yn=0;Yn<Pt.childNodes.length;Yn++)kt(Pt.childNodes[Yn]);/^(pre|p)$/i.test(Pt.nodeName)&&(Me=!0),or&&(xe=!0)}else Pt.nodeType==3&&wt(Pt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(kt(v),v==L);)v=v.nextSibling,Me=!1;return ae}function ks(t,v,L){var I;if(v==t.display.lineDiv){if(I=t.display.lineDiv.childNodes[L],!I)return Ci(t.clipPos(Le(t.display.viewTo-1)),!0);v=null,L=0}else for(I=v;;I=I.parentNode){if(!I||I==t.display.lineDiv)return null;if(I.parentNode&&I.parentNode==t.display.lineDiv)break}for(var j=0;j<t.display.view.length;j++){var ae=t.display.view[j];if(ae.node==I)return Xs(ae,v,L)}}function Xs(t,v,L){var I=t.text.firstChild,j=!1;if(!v||!D(I,v))return Ci(Le(Nr(t.line),0),!0);if(v==I&&(j=!0,v=I.childNodes[L],L=0,!v)){var ae=t.rest?pe(t.rest):t.line;return Ci(Le(Nr(ae),ae.text.length),j)}var xe=v.nodeType==3?v:null,Oe=v;for(!xe&&v.childNodes.length==1&&v.firstChild.nodeType==3&&(xe=v.firstChild,L&&(L=xe.nodeValue.length));Oe.parentNode!=I;)Oe=Oe.parentNode;var Me=t.measure,He=Me.maps;function gt(Mn,Vn,or){for(var Yn=-1;Yn<(He?He.length:0);Yn++)for(var pr=Yn<0?Me.map:He[Yn],Hr=0;Hr<pr.length;Hr+=3){var Lr=pr[Hr+2];if(Lr==Mn||Lr==Vn){var pa=Nr(Yn<0?t.line:t.rest[Yn]),ci=pr[Hr]+or;return(or<0||Lr!=Mn)&&(ci=pr[Hr+(or?1:0)]),Le(pa,ci)}}}var wt=gt(xe,Oe,L);if(wt)return Ci(wt,j);for(var kt=Oe.nextSibling,Pt=xe?xe.nodeValue.length-L:0;kt;kt=kt.nextSibling){if(wt=gt(kt,kt.firstChild,0),wt)return Ci(Le(wt.line,wt.ch-Pt),j);Pt+=kt.textContent.length}for(var an=Oe.previousSibling,gn=L;an;an=an.previousSibling){if(wt=gt(an,an.firstChild,-1),wt)return Ci(Le(wt.line,wt.ch+gn),j);gn+=an.textContent.length}}var ri=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new N,this.hasSelection=!1,this.composing=null};ri.prototype.init=function(t){var v=this,L=this,I=this.cm;this.createField(t);var j=this.textarea;t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),f&&(j.style.width="0px"),ze(j,"input",function(){C&&m>=9&&v.hasSelection&&(v.hasSelection=null),L.poll()}),ze(j,"paste",function(xe){if(lt(I,xe)||Ol(xe,I))return;I.state.pasteIncoming=+new Date,L.fastPoll()});function ae(xe){if(lt(I,xe))return;if(I.somethingSelected())Bl({lineWise:!1,text:I.getSelections()});else if(I.options.lineWiseCopyCut){var Oe=hu(I);Bl({lineWise:!0,text:Oe.text}),xe.type=="cut"?I.setSelections(Oe.ranges,null,oe):(L.prevInput="",j.value=Oe.text.join(`
`),J(j))}else return;xe.type=="cut"&&(I.state.cutIncoming=+new Date)}ze(j,"cut",ae),ze(j,"copy",ae),ze(t.scroller,"paste",function(xe){if(_o(t,xe)||lt(I,xe))return;if(!j.dispatchEvent){I.state.pasteIncoming=+new Date,L.focus();return}var Oe=new Event("paste");Oe.clipboardData=xe.clipboardData,j.dispatchEvent(Oe)}),ze(t.lineSpace,"selectstart",function(xe){_o(t,xe)||Pe(xe)}),ze(j,"compositionstart",function(){var xe=I.getCursor("from");L.composing&&L.composing.range.clear(),L.composing={start:xe,range:I.markText(xe,I.getCursor("to"),{className:"CodeMirror-composing"})}}),ze(j,"compositionend",function(){L.composing&&(L.poll(),L.composing.range.clear(),L.composing=null)})},ri.prototype.createField=function(t){this.wrapper=Uu(),this.textarea=this.wrapper.firstChild},ri.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},ri.prototype.prepareSelection=function(){var t=this.cm,v=t.display,L=t.doc,I=on(t);if(t.options.moveInputWithCursor){var j=rn(t,L.sel.primary().head,"div"),ae=v.wrapper.getBoundingClientRect(),xe=v.lineDiv.getBoundingClientRect();I.teTop=Math.max(0,Math.min(v.wrapper.clientHeight-10,j.top+xe.top-ae.top)),I.teLeft=Math.max(0,Math.min(v.wrapper.clientWidth-10,j.left+xe.left-ae.left))}return I},ri.prototype.showSelection=function(t){var v=this.cm,L=v.display;i(L.cursorDiv,t.cursors),i(L.selectionDiv,t.selection),t.teTop!=null&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},ri.prototype.reset=function(t){if(this.contextMenuPending||this.composing)return;var v=this.cm;if(v.somethingSelected()){this.prevInput="";var L=v.getSelection();this.textarea.value=L,v.state.focused&&J(this.textarea),C&&m>=9&&(this.hasSelection=L)}else t||(this.prevInput=this.textarea.value="",C&&m>=9&&(this.hasSelection=null))},ri.prototype.getField=function(){return this.textarea},ri.prototype.supportsTouch=function(){return!1},ri.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!a||R()!=this.textarea))try{this.textarea.focus()}catch(t){}},ri.prototype.blur=function(){this.textarea.blur()},ri.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ri.prototype.receivedFocus=function(){this.slowPoll()},ri.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()})},ri.prototype.fastPoll=function(){var t=!1,v=this;v.pollingFast=!0;function L(){var I=v.poll();!I&&!t?(t=!0,v.polling.set(60,L)):(v.pollingFast=!1,v.slowPoll())}v.polling.set(20,L)},ri.prototype.poll=function(){var t=this,v=this.cm,L=this.textarea,I=this.prevInput;if(this.contextMenuPending||!v.state.focused||Tt(L)&&!I&&!this.composing||v.isReadOnly()||v.options.disableInput||v.state.keySeq)return!1;var j=L.value;if(j==I&&!v.somethingSelected())return!1;if(C&&m>=9&&this.hasSelection===j||h&&/[\uf700-\uf7ff]/.test(j))return v.display.input.reset(),!1;if(v.doc.sel==v.display.selForContextMenu){var ae=j.charCodeAt(0);if(ae==8203&&!I&&(I="\u200B"),ae==8666)return this.reset(),this.cm.execCommand("undo")}for(var xe=0,Oe=Math.min(I.length,j.length);xe<Oe&&I.charCodeAt(xe)==j.charCodeAt(xe);)++xe;return yi(v,function(){du(v,j.slice(xe),I.length-xe,null,t.composing?"*compose":null),j.length>1e3||j.indexOf(`
`)>-1?L.value=t.prevInput="":t.prevInput=j,t.composing&&(t.composing.range.clear(),t.composing.range=v.markText(t.composing.start,v.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ri.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ri.prototype.onKeyPress=function(){C&&m>=9&&(this.hasSelection=null),this.fastPoll()},ri.prototype.onContextMenu=function(t){var v=this,L=v.cm,I=L.display,j=v.textarea;v.contextMenuPending&&v.contextMenuPending();var ae=Dn(L,t),xe=I.scroller.scrollTop;if(!ae||e)return;var Oe=L.options.resetSelectionOnContextMenu;Oe&&L.doc.sel.contains(ae)==-1&&Ua(L,Ni)(L.doc,Yt(ae),oe);var Me=j.style.cssText,He=v.wrapper.style.cssText,gt=v.wrapper.offsetParent.getBoundingClientRect();v.wrapper.style.cssText="position: static",j.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(t.clientY-gt.top-5)+"px; left: "+(t.clientX-gt.left-5)+`px;
z-index: 1000; background: `+(C?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var wt;c&&(wt=window.scrollY),I.input.focus(),c&&window.scrollTo(null,wt),I.input.reset(),L.somethingSelected()||(j.value=v.prevInput=" "),v.contextMenuPending=Pt,I.selForContextMenu=L.doc.sel,clearTimeout(I.detectingSelectAll);function kt(){if(j.selectionStart!=null){var gn=L.somethingSelected(),Mn="\u200B"+(gn?j.value:"");j.value="\u21DA",j.value=Mn,v.prevInput=gn?"":"\u200B",j.selectionStart=1,j.selectionEnd=Mn.length,I.selForContextMenu=L.doc.sel}}function Pt(){if(v.contextMenuPending!=Pt)return;if(v.contextMenuPending=!1,v.wrapper.style.cssText=He,j.style.cssText=Me,C&&m<9&&I.scrollbars.setScrollTop(I.scroller.scrollTop=xe),j.selectionStart!=null){(!C||C&&m<9)&&kt();var gn=0,Mn=function(){I.selForContextMenu==L.doc.sel&&j.selectionStart==0&&j.selectionEnd>0&&v.prevInput=="\u200B"?Ua(L,Ta)(L):gn++<10?I.detectingSelectAll=setTimeout(Mn,500):(I.selForContextMenu=null,I.input.reset())};I.detectingSelectAll=setTimeout(Mn,200)}}if(C&&m>=9&&kt(),B){et(t);var an=function(){Et(window,"mouseup",an),setTimeout(Pt,20)};ze(window,"mouseup",an)}else setTimeout(Pt,50)},ri.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},ri.prototype.setUneditable=function(){},ri.prototype.needsContentAttribute=!1;function Rl(t,v){if(v=v?K(v):{},v.value=t.value,!v.tabindex&&t.tabIndex&&(v.tabindex=t.tabIndex),!v.placeholder&&t.placeholder&&(v.placeholder=t.placeholder),v.autofocus==null){var L=R();v.autofocus=L==t||t.getAttribute("autofocus")!=null&&L==document.body}function I(){t.value=Oe.getValue()}var j;if(t.form&&(ze(t.form,"submit",I),!v.leaveSubmitMethodAlone)){var ae=t.form;j=ae.submit;try{var xe=ae.submit=function(){I(),ae.submit=j,ae.submit(),ae.submit=xe}}catch(Me){}}v.finishInit=function(Me){Me.save=I,Me.getTextArea=function(){return t},Me.toTextArea=function(){Me.toTextArea=isNaN,I(),t.parentNode.removeChild(Me.getWrapperElement()),t.style.display="",t.form&&(Et(t.form,"submit",I),!v.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=j))}},t.style.display="none";var Oe=mi(function(Me){return t.parentNode.insertBefore(Me,t.nextSibling)},v);return Oe}function Fs(t){t.off=Et,t.on=ze,t.wheelEventPixels=Ss,t.Doc=Bo,t.splitLines=Mt,t.countColumn=G,t.findColumn=_e,t.isWordChar=Ie,t.Pass=te,t.signal=ct,t.Line=Ui,t.changeEnd=Cn,t.scrollbarModel=Xa,t.Pos=Le,t.cmpPos=Qe,t.modes=St,t.mimeModes=ft,t.resolveMode=bt,t.getMode=Ht,t.modeExtensions=Gt,t.extendMode=xn,t.copyState=vn,t.startState=xr,t.innerMode=sr,t.commands=xl,t.keyMap=Ps,t.keyName=ru,t.isModifierKey=bu,t.lookupKey=rl,t.normalizeKeyMap=Xu,t.StringStream=Kn,t.SharedTextMarker=tl,t.TextMarker=ns,t.LineWidget=Ko,t.e_preventDefault=Pe,t.e_stopPropagation=je,t.e_stop=et,t.addClass=k,t.contains=D,t.rmClass=A,t.keyNames=Gs}tc(mi),ku(mi);var ju="iter insert remove copy getEditor constructor".split(" ");for(var Il in Bo.prototype)Bo.prototype.hasOwnProperty(Il)&&Q(ju,Il)<0&&(mi.prototype[Il]=function(t){return function(){return t.apply(this.doc,arguments)}}(Bo.prototype[Il]));return $e(Bo),mi.inputStyles={textarea:ri,contenteditable:$a},mi.defineMode=function(t){!mi.defaults.mode&&t!="null"&&(mi.defaults.mode=t),It.apply(this,arguments)},mi.defineMIME=Ot,mi.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),mi.defineMIME("text/plain","null"),mi.defineExtension=function(t,v){mi.prototype[t]=v},mi.defineDocExtension=function(t,v){Bo.prototype[t]=v},mi.fromTextArea=Rl,Fs(mi),mi.version="5.58.2",mi})},W6BS:function(Ze,we){Ze.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(Ze,we){Ze.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(Ze,we,M){Ze.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(Ze,we,M){"use strict";var ue=M("rePB"),Y=M("Ff2n"),P=M("VTBJ"),y=M("1OyB"),E=M("vuIU"),_=M("JX7q"),C=M("Ji7U"),m=M("LK+K"),c=M("q1tI"),r=M("TSYQ"),n=M.n(r),e=M("sboe"),s=M("OZM5"),u=function(B){var b=B.prefixCls,A=B.level,l=B.isStart,i=B.isEnd;if(!A)return null;for(var x="".concat(b,"-indent-unit"),O=[],T=0;T<A;T+=1){var D;O.push(c.createElement("span",{key:T,className:n()(x,(D={},Object(ue.a)(D,"".concat(x,"-start"),l[T+1]),Object(ue.a)(D,"".concat(x,"-end"),i[T+1]),Object(ue.a)(D,"".concat(x,"-end-first-level"),!T&&i[0]),D))}))}return c.createElement("span",{"aria-hidden":"true",className:"".concat(b,"-indent")},O)},o=u,f=M("815F"),d="open",a="close",h="---",g=function(w){Object(C.a)(b,w);var B=Object(m.a)(b);function b(){var A;return Object(y.a)(this,b),A=B.apply(this,arguments),A.state={dragNodeHighlight:!1},A.onSelectorClick=function(l){var i=A.props.context.onNodeClick;i(l,Object(f.b)(A.props)),A.isSelectable()?A.onSelect(l):A.onCheck(l)},A.onSelectorDoubleClick=function(l){var i=A.props.context.onNodeDoubleClick;i(l,Object(f.b)(A.props))},A.onSelect=function(l){if(A.isDisabled())return;var i=A.props.context.onNodeSelect;l.preventDefault(),i(l,Object(f.b)(A.props))},A.onCheck=function(l){if(A.isDisabled())return;var i=A.props,x=i.disableCheckbox,O=i.checked,T=A.props.context.onNodeCheck;if(!A.isCheckable()||x)return;l.preventDefault();var D=!O;T(l,Object(f.b)(A.props),D)},A.onMouseEnter=function(l){var i=A.props.context.onNodeMouseEnter;i(l,Object(f.b)(A.props))},A.onMouseLeave=function(l){var i=A.props.context.onNodeMouseLeave;i(l,Object(f.b)(A.props))},A.onContextMenu=function(l){var i=A.props.context.onNodeContextMenu;i(l,Object(f.b)(A.props))},A.onDragStart=function(l){var i=A.props.context.onNodeDragStart;l.stopPropagation(),A.setState({dragNodeHighlight:!0}),i(l,Object(_.a)(A));try{l.dataTransfer.setData("text/plain","")}catch(x){}},A.onDragEnter=function(l){var i=A.props.context.onNodeDragEnter;l.preventDefault(),l.stopPropagation(),i(l,Object(_.a)(A))},A.onDragOver=function(l){var i=A.props.context.onNodeDragOver;l.preventDefault(),l.stopPropagation(),i(l,Object(_.a)(A))},A.onDragLeave=function(l){var i=A.props.context.onNodeDragLeave;l.stopPropagation(),i(l,Object(_.a)(A))},A.onDragEnd=function(l){var i=A.props.context.onNodeDragEnd;l.stopPropagation(),A.setState({dragNodeHighlight:!1}),i(l,Object(_.a)(A))},A.onDrop=function(l){var i=A.props.context.onNodeDrop;l.preventDefault(),l.stopPropagation(),A.setState({dragNodeHighlight:!1}),i(l,Object(_.a)(A))},A.onExpand=function(l){var i=A.props.context.onNodeExpand;i(l,Object(f.b)(A.props))},A.setSelectHandle=function(l){A.selectHandle=l},A.getNodeState=function(){var l=A.props.expanded;return A.isLeaf()?null:l?d:a},A.hasChildren=function(){var l=A.props.eventKey,i=A.props.context.keyEntities,x=i[l]||{},O=x.children;return!!(O||[]).length},A.isLeaf=function(){var l=A.props,i=l.isLeaf,x=l.loaded,O=A.props.context.loadData,T=A.hasChildren();return i===!1?!1:i||!O&&!T||O&&x&&!T},A.isDisabled=function(){var l=A.props.disabled,i=A.props.context.disabled;return!!(i||l)},A.isCheckable=function(){var l=A.props.checkable,i=A.props.context.checkable;return!i||l===!1?!1:i},A.syncLoadData=function(l){var i=l.expanded,x=l.loading,O=l.loaded,T=A.props.context,D=T.loadData,R=T.onNodeLoad;if(x)return;D&&i&&!A.isLeaf()&&(!A.hasChildren()&&!O&&R(Object(f.b)(A.props)))},A.renderSwitcher=function(){var l=A.props,i=l.expanded,x=l.switcherIcon,O=A.props.context,T=O.prefixCls,D=O.switcherIcon,R=x||D;if(A.isLeaf())return c.createElement("span",{className:n()("".concat(T,"-switcher"),"".concat(T,"-switcher-noop"))},typeof R=="function"?R(Object(P.a)(Object(P.a)({},A.props),{},{isLeaf:!0})):R);var k=n()("".concat(T,"-switcher"),"".concat(T,"-switcher_").concat(i?d:a));return c.createElement("span",{onClick:A.onExpand,className:k},typeof R=="function"?R(Object(P.a)(Object(P.a)({},A.props),{},{isLeaf:!1})):R)},A.renderCheckbox=function(){var l=A.props,i=l.checked,x=l.halfChecked,O=l.disableCheckbox,T=A.props.context.prefixCls,D=A.isDisabled(),R=A.isCheckable();if(!R)return null;var k=typeof R!="boolean"?R:null;return c.createElement("span",{className:n()("".concat(T,"-checkbox"),i&&"".concat(T,"-checkbox-checked"),!i&&x&&"".concat(T,"-checkbox-indeterminate"),(D||O)&&"".concat(T,"-checkbox-disabled")),onClick:A.onCheck},k)},A.renderIcon=function(){var l=A.props.loading,i=A.props.context.prefixCls;return c.createElement("span",{className:n()("".concat(i,"-iconEle"),"".concat(i,"-icon__").concat(A.getNodeState()||"docu"),l&&"".concat(i,"-icon_loading"))})},A.renderSelector=function(){var l=A.state.dragNodeHighlight,i=A.props,x=i.title,O=i.selected,T=i.icon,D=i.loading,R=i.data,k=A.props.context,H=k.prefixCls,J=k.showIcon,U=k.icon,K=k.draggable,G=k.loadData,N=k.titleRender,Q=A.isDisabled(),X="".concat(H,"-node-content-wrapper"),te;if(J){var oe=T||U;te=oe?c.createElement("span",{className:n()("".concat(H,"-iconEle"),"".concat(H,"-icon__customize"))},typeof oe=="function"?oe(A.props):oe):A.renderIcon()}else G&&D&&(te=A.renderIcon());var me;typeof x=="function"?me=x(R):N?me=N(R):me=x;var se=c.createElement("span",{className:"".concat(H,"-title")},me);return c.createElement("span",{ref:A.setSelectHandle,title:typeof x=="string"?x:"",className:n()("".concat(X),"".concat(X,"-").concat(A.getNodeState()||"normal"),!Q&&(O||l)&&"".concat(H,"-node-selected"),!Q&&K&&"draggable"),draggable:!Q&&K||void 0,"aria-grabbed":!Q&&K||void 0,onMouseEnter:A.onMouseEnter,onMouseLeave:A.onMouseLeave,onContextMenu:A.onContextMenu,onClick:A.onSelectorClick,onDoubleClick:A.onSelectorDoubleClick,onDragStart:K?A.onDragStart:void 0},te,se)},A}return Object(E.a)(b,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var l=this.props.selectable,i=this.props.context.selectable;return typeof l=="boolean"?l:i}},{key:"render",value:function(){var l,i=this.props,x=i.eventKey,O=i.className,T=i.style,D=i.dragOver,R=i.dragOverGapTop,k=i.dragOverGapBottom,H=i.isLeaf,J=i.isStart,U=i.isEnd,K=i.expanded,G=i.selected,N=i.checked,Q=i.halfChecked,X=i.loading,te=i.domRef,oe=i.active,me=i.onMouseMove,se=Object(Y.a)(i,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),_e=this.props.context,Ae=_e.prefixCls,Ee=_e.filterTreeNode,pe=_e.draggable,he=_e.keyEntities,ie=this.isDisabled(),fe=Object(s.f)(se),ge=he[x]||{},ce=ge.level,Ie=U[U.length-1];return c.createElement("div",Object.assign({ref:te,className:n()(O,"".concat(Ae,"-treenode"),(l={},Object(ue.a)(l,"".concat(Ae,"-treenode-disabled"),ie),Object(ue.a)(l,"".concat(Ae,"-treenode-switcher-").concat(K?"open":"close"),!H),Object(ue.a)(l,"".concat(Ae,"-treenode-checkbox-checked"),N),Object(ue.a)(l,"".concat(Ae,"-treenode-checkbox-indeterminate"),Q),Object(ue.a)(l,"".concat(Ae,"-treenode-selected"),G),Object(ue.a)(l,"".concat(Ae,"-treenode-loading"),X),Object(ue.a)(l,"".concat(Ae,"-treenode-active"),oe),Object(ue.a)(l,"".concat(Ae,"-treenode-leaf-last"),Ie),Object(ue.a)(l,"drag-over",!ie&&D),Object(ue.a)(l,"drag-over-gap-top",!ie&&R),Object(ue.a)(l,"drag-over-gap-bottom",!ie&&k),Object(ue.a)(l,"filter-node",Ee&&Ee(Object(f.b)(this.props))),l)),style:T,onDragEnter:pe?this.onDragEnter:void 0,onDragOver:pe?this.onDragOver:void 0,onDragLeave:pe?this.onDragLeave:void 0,onDrop:pe?this.onDrop:void 0,onDragEnd:pe?this.onDragEnd:void 0,onMouseMove:me},fe),c.createElement(o,{prefixCls:Ae,level:ce,isStart:J,isEnd:U}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),b}(c.Component),p=function(B){return c.createElement(e.a.Consumer,null,function(b){return c.createElement(g,Object.assign({},B,{context:b}))})};p.displayName="TreeNode",p.defaultProps={title:h},p.isTreeNode=1;var S=we.a=p},WdTA:function(Ze,we,M){Ze.exports=M.p+"static/studnetqun.598eeb43.png"},Xmg4:function(Ze,we,M){var ue=M("bYtY"),Y=M("LPTA"),P=Y.devicePixelRatio,y=M("K2GJ"),E=M("3C/r");function _(){return!1}function C(r,n,e){var s=ue.createCanvas(),u=n.getWidth(),o=n.getHeight(),f=s.style;return f&&(f.position="absolute",f.left=0,f.top=0,f.width=u+"px",f.height=o+"px",s.setAttribute("data-zr-dom-id",r)),s.width=u*e,s.height=o*e,s}var m=function(r,n,e){var s;e=e||P,typeof r=="string"?s=C(r,n,e):ue.isObject(r)&&(s=r,r=s.id),this.id=r,this.dom=s;var u=s.style;u&&(s.onselectstart=_,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};m.prototype={constructor:m,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var r=this.dpr;this.domBack=C("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,o=this.domBack;u&&(u.width=r+"px",u.height=n+"px"),s.width=r*e,s.height=n*e,o&&(o.width=r*e,o.height=n*e,e!==1&&this.ctxBack.scale(e,e))},clear:function(r,n){var e=this.dom,s=this.ctx,u=e.width,o=e.height,n=n||this.clearColor,f=this.motionBlur&&!r,d=this.lastFrameAlpha,a=this.dpr;if(f&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,u/a,o/a)),s.clearRect(0,0,u,o),n&&n!=="transparent"){var h;n.colorStops?(h=n.__canvasGradient||y.getGradient(s,n,{x:0,y:0,width:u,height:o}),n.__canvasGradient=h):n.image&&(h=E.prototype.getCanvasPattern.call(n,s)),s.save(),s.fillStyle=h||n,s.fillRect(0,0,u,o),s.restore()}if(f){var g=this.domBack;s.save(),s.globalAlpha=d,s.drawImage(g,0,0,u,o),s.restore()}}};var c=m;Ze.exports=c},Xnb7:function(Ze,we,M){var ue=M("1RvN"),Y=new ue(50);function P(C){if(typeof C=="string"){var m=Y.get(C);return m&&m.image}else return C}function y(C,m,c,r,n){if(C)if(typeof C=="string"){if(m&&m.__zrImageSrc===C||!c)return m;var e=Y.get(C),s={hostEl:c,cb:r,cbPayload:n};return e?(m=e.image,!_(m)&&e.pending.push(s)):(m=new Image,m.onload=m.onerror=E,Y.put(C,m.__cachedImgObj={image:m,pending:[s]}),m.src=m.__zrImageSrc=C),m}else return C;else return m}function E(){var C=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var m=0;m<C.pending.length;m++){var c=C.pending[m],r=c.cb;r&&r(this,c.cbPayload),c.hostEl.dirty()}C.pending.length=0}function _(C){return C&&C.width&&C.height}we.findExistImage=P,we.createOrUpdateImage=y,we.isImageReady=_},Xsq0:function(Ze,we,M){Ze.exports=M.p+"static/mainbanner.0a951716.jpg"},XzQ7:function(Ze,we,M){Ze.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(Ze,we,M){"use strict";M.r(we),M.d(we,"ResizableTextArea",function(){return Q});var ue=M("wx14"),Y=M("1OyB"),P=M("vuIU"),y=M("Ji7U"),E=M("LK+K"),_=M("q1tI"),C=M("VTBJ"),m=M("rePB"),c=M("Zm9Q"),r=M("Kwbf"),n=M("c+Xe"),e=M("m+aA"),s=M("bdgK"),u=new Map;function o(oe){oe.forEach(function(me){var se,_e=me.target;(se=u.get(_e))===null||se===void 0||se.forEach(function(Ae){return Ae(_e)})})}var f=new s.default(o),d=null,a=null;function h(oe,me){u.has(oe)||(u.set(oe,new Set),f.observe(oe)),u.get(oe).add(me)}function g(oe,me){u.has(oe)&&(u.get(oe).delete(me),u.get(oe).size||(f.unobserve(oe),u.delete(oe)))}var p=function(oe){Object(y.a)(se,oe);var me=Object(E.a)(se);function se(){return Object(Y.a)(this,se),me.apply(this,arguments)}return Object(P.a)(se,[{key:"render",value:function(){return this.props.children}}]),se}(_.Component),S=_.createContext(null);function w(oe){var me=oe.children,se=oe.onBatchResize,_e=_.useRef(0),Ae=_.useRef([]),Ee=_.useContext(S),pe=_.useCallback(function(he,ie,fe){_e.current+=1;var ge=_e.current;Ae.current.push({size:he,element:ie,data:fe}),Promise.resolve().then(function(){ge===_e.current&&(se==null||se(Ae.current),Ae.current=[])}),Ee==null||Ee(he,ie,fe)},[se,Ee]);return _.createElement(S.Provider,{value:pe},me)}function B(oe){var me=oe.children,se=oe.disabled,_e=_.useRef(null),Ae=_.useRef(null),Ee=_.useContext(S),pe=_.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),he=_.isValidElement(me)&&Object(n.c)(me),ie=he?me.ref:null,fe=_.useMemo(function(){return Object(n.a)(ie,_e)},[ie,_e]),ge=_.useRef(oe);ge.current=oe;var ce=_.useCallback(function(Ie){var Fe=ge.current,ke=Fe.onResize,re=Fe.data,F=Ie.getBoundingClientRect(),W=F.width,de=F.height,ne=Ie.offsetWidth,le=Ie.offsetHeight,De=Math.floor(W),Xe=Math.floor(de);if(pe.current.width!==De||pe.current.height!==Xe||pe.current.offsetWidth!==ne||pe.current.offsetHeight!==le){var xt={width:De,height:Xe,offsetWidth:ne,offsetHeight:le};pe.current=xt;var Ke=ne===Math.round(W)?W:ne,ze=le===Math.round(de)?de:le,yt=Object(C.a)(Object(C.a)({},xt),{},{offsetWidth:Ke,offsetHeight:ze});Ee==null||Ee(yt,Ie,re),ke&&Promise.resolve().then(function(){ke(yt,Ie)})}},[]);return _.useEffect(function(){var Ie=Object(e.a)(_e.current)||Object(e.a)(Ae.current);return Ie&&!se&&h(Ie,ce),function(){return g(Ie,ce)}},[_e.current,se]),_.createElement(p,{ref:Ae},he?_.cloneElement(me,{ref:fe}):me)}var b="rc-observer-key";function A(oe){var me=oe.children,se=Object(c.a)(me);return se.map(function(_e,Ae){var Ee=(_e==null?void 0:_e.key)||"".concat(b,"-").concat(Ae);return _.createElement(B,Object(ue.a)({},oe,{key:Ee}),_e)})}A.Collection=w;var l=A,i=M("bT9E"),x=M("TSYQ"),O=M.n(x),T=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important
`,D=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],R={},k;function H(oe){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,se=oe.getAttribute("id")||oe.getAttribute("data-reactid")||oe.getAttribute("name");if(me&&R[se])return R[se];var _e=window.getComputedStyle(oe),Ae=_e.getPropertyValue("box-sizing")||_e.getPropertyValue("-moz-box-sizing")||_e.getPropertyValue("-webkit-box-sizing"),Ee=parseFloat(_e.getPropertyValue("padding-bottom"))+parseFloat(_e.getPropertyValue("padding-top")),pe=parseFloat(_e.getPropertyValue("border-bottom-width"))+parseFloat(_e.getPropertyValue("border-top-width")),he=D.map(function(fe){return"".concat(fe,":").concat(_e.getPropertyValue(fe))}).join(";"),ie={sizingStyle:he,paddingSize:Ee,borderSize:pe,boxSizing:Ae};return me&&se&&(R[se]=ie),ie}function J(oe){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,_e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;k||(k=document.createElement("textarea"),k.setAttribute("tab-index","-1"),k.setAttribute("aria-hidden","true"),document.body.appendChild(k)),oe.getAttribute("wrap")?k.setAttribute("wrap",oe.getAttribute("wrap")):k.removeAttribute("wrap");var Ae=H(oe,me),Ee=Ae.paddingSize,pe=Ae.borderSize,he=Ae.boxSizing,ie=Ae.sizingStyle;k.setAttribute("style","".concat(ie,";").concat(T)),k.value=oe.value||oe.placeholder||"";var fe=Number.MIN_SAFE_INTEGER,ge=Number.MAX_SAFE_INTEGER,ce=k.scrollHeight,Ie;if(he==="border-box"?ce+=pe:he==="content-box"&&(ce-=Ee),se!==null||_e!==null){k.value=" ";var Fe=k.scrollHeight-Ee;se!==null&&(fe=Fe*se,he==="border-box"&&(fe=fe+Ee+pe),ce=Math.max(fe,ce)),_e!==null&&(ge=Fe*_e,he==="border-box"&&(ge=ge+Ee+pe),Ie=ce>ge?"":"hidden",ce=Math.min(ge,ce))}return{height:ce,minHeight:fe,maxHeight:ge,overflowY:Ie,resize:"none"}}var U=M("Gytx"),K=M.n(U),G;(function(oe){oe[oe.NONE=0]="NONE",oe[oe.RESIZING=1]="RESIZING",oe[oe.RESIZED=2]="RESIZED"})(G||(G={}));var N=function(oe){Object(y.a)(se,oe);var me=Object(E.a)(se);function se(_e){var Ae;return Object(Y.a)(this,se),Ae=me.call(this,_e),Ae.nextFrameActionId=void 0,Ae.resizeFrameId=void 0,Ae.textArea=void 0,Ae.saveTextArea=function(Ee){Ae.textArea=Ee},Ae.handleResize=function(Ee){var pe=Ae.state.resizeStatus,he=Ae.props,ie=he.autoSize,fe=he.onResize;if(pe!==G.NONE)return;typeof fe=="function"&&fe(Ee),ie&&Ae.resizeOnNextFrame()},Ae.resizeOnNextFrame=function(){cancelAnimationFrame(Ae.nextFrameActionId),Ae.nextFrameActionId=requestAnimationFrame(Ae.resizeTextarea)},Ae.resizeTextarea=function(){var Ee=Ae.props.autoSize;if(!Ee||!Ae.textArea)return;var pe=Ee.minRows,he=Ee.maxRows,ie=J(Ae.textArea,!1,pe,he);Ae.setState({textareaStyles:ie,resizeStatus:G.RESIZING},function(){cancelAnimationFrame(Ae.resizeFrameId),Ae.resizeFrameId=requestAnimationFrame(function(){Ae.setState({resizeStatus:G.RESIZED},function(){Ae.resizeFrameId=requestAnimationFrame(function(){Ae.setState({resizeStatus:G.NONE}),Ae.fixFirefoxAutoScroll()})})})})},Ae.renderTextArea=function(){var Ee=Ae.props,pe=Ee.prefixCls,he=pe===void 0?"rc-textarea":pe,ie=Ee.autoSize,fe=Ee.onResize,ge=Ee.className,ce=Ee.disabled,Ie=Ae.state,Fe=Ie.textareaStyles,ke=Ie.resizeStatus,re=Object(i.a)(Ae.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),F=O()(he,ge,Object(m.a)({},"".concat(he,"-disabled"),ce));"value"in re&&(re.value=re.value||"");var W=Object(C.a)(Object(C.a)(Object(C.a)({},Ae.props.style),Fe),ke===G.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return _.createElement(l,{onResize:Ae.handleResize,disabled:!(ie||fe)},_.createElement("textarea",Object(ue.a)({},re,{className:F,style:W,ref:Ae.saveTextArea})))},Ae.state={textareaStyles:{},resizeStatus:G.NONE},Ae}return Object(P.a)(se,[{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,Ee=this.textArea.selectionEnd;this.textArea.setSelectionRange(Ae,Ee)}}catch(pe){}}},{key:"render",value:function(){return this.renderTextArea()}}]),se}(_.Component),Q=N,X=function(oe){Object(y.a)(se,oe);var me=Object(E.a)(se);function se(_e){var Ae;Object(Y.a)(this,se),Ae=me.call(this,_e),Ae.resizableTextArea=void 0,Ae.focus=function(){Ae.resizableTextArea.textArea.focus()},Ae.saveTextArea=function(pe){Ae.resizableTextArea=pe},Ae.handleChange=function(pe){var he=Ae.props.onChange;Ae.setValue(pe.target.value,function(){Ae.resizableTextArea.resizeTextarea()}),he&&he(pe)},Ae.handleKeyDown=function(pe){var he=Ae.props,ie=he.onPressEnter,fe=he.onKeyDown;pe.keyCode===13&&ie&&ie(pe),fe&&fe(pe)};var Ee=typeof _e.value=="undefined"||_e.value===null?_e.defaultValue:_e.value;return Ae.state={value:Ee},Ae}return Object(P.a)(se,[{key:"setValue",value:function(Ae,Ee){"value"in this.props||this.setState({value:Ae},Ee)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return _.createElement(Q,Object(ue.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}}]),se}(_.Component),te=we.default=X},YH21:function(Ze,we,M){var ue=M("H6uX");we.Dispatcher=ue;var Y=M("ItGF"),P=M("Ze12"),y=P.isCanvasEl,E=P.transformCoordWithViewport,_=typeof window!="undefined"&&!!window.addEventListener,C=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,m=[];function c(a,h,g,p){return g=g||{},p||!Y.canvasSupported?r(a,h,g):Y.browser.firefox&&h.layerX!=null&&h.layerX!==h.offsetX?(g.zrX=h.layerX,g.zrY=h.layerY):h.offsetX!=null?(g.zrX=h.offsetX,g.zrY=h.offsetY):r(a,h,g),g}function r(a,h,g){if(Y.domSupported&&a.getBoundingClientRect){var p=h.clientX,S=h.clientY;if(y(a)){var w=a.getBoundingClientRect();g.zrX=p-w.left,g.zrY=S-w.top;return}else if(E(m,a,p,S)){g.zrX=m[0],g.zrY=m[1];return}}g.zrX=g.zrY=0}function n(a){return a||window.event}function e(a,h,g){if(h=n(h),h.zrX!=null)return h;var p=h.type,S=p&&p.indexOf("touch")>=0;if(!S)c(a,h,h,g),h.zrDelta=h.wheelDelta?h.wheelDelta/120:-(h.detail||0)/3;else{var w=p!=="touchend"?h.targetTouches[0]:h.changedTouches[0];w&&c(a,w,h,g)}var B=h.button;return h.which==null&&B!==void 0&&C.test(h.type)&&(h.which=B&1?1:B&2?3:B&4?2:0),h}function s(a,h,g,p){_?a.addEventListener(h,g,p):a.attachEvent("on"+h,g)}function u(a,h,g,p){_?a.removeEventListener(h,g,p):a.detachEvent("on"+h,g)}var o=_?function(a){a.preventDefault(),a.stopPropagation(),a.cancelBubble=!0}:function(a){a.returnValue=!1,a.cancelBubble=!0};function f(a){return a.which===2||a.which===3}function d(a){return a.which>1}we.clientToLocal=c,we.getNativeEvent=n,we.normalizeEvent=e,we.addEventListener=s,we.removeEventListener=u,we.stop=o,we.isMiddleOrRightButtonOnMouseUpDown=f,we.notLeftMouse=d},"Ye+n":function(Ze,we,M){Ze.exports={advertisementModal:"advertisementModal___2ZrRs",bodyHeight:"bodyHeight___3x6vP"}},YgsL:function(Ze,we,M){var ue=M("QBsz"),Y=ue.distance;function P(E,_,C,m,c,r,n){var e=(C-E)*.5,s=(m-_)*.5;return(2*(_-C)+e+s)*n+(-3*(_-C)-2*e-s)*r+e*c+_}function y(E,_){for(var C=E.length,m=[],c=0,r=1;r<C;r++)c+=Y(E[r-1],E[r]);var n=c/2;n=n<C?C:n;for(var r=0;r<n;r++){var e=r/(n-1)*(_?C:C-1),s=Math.floor(e),u=e-s,o,f=E[s%C],d,a;_?(o=E[(s-1+C)%C],d=E[(s+1)%C],a=E[(s+2)%C]):(o=E[s===0?s:s-1],d=E[s>C-2?C-1:s+1],a=E[s>C-3?C-1:s+2]);var h=u*u,g=u*h;m.push([P(o[0],f[0],d[0],a[0],u,h,g),P(o[1],f[1],d[1],a[1],u,h,g)])}return m}Ze.exports=y},ZW9T:function(Ze,we,M){"use strict";M.d(we,"a",function(){return p});var ue=M("k1fw"),Y=M("miYZ"),P=M("tsqr"),y=M("rAM+"),E=M("tJVT"),_=M("PpiC"),C=M("q1tI"),m=M.n(C),c=M("bdgK");function r(S,w,B,b,A){var l=w.getWordUntilPosition(B),i={startLineNumber:B.lineNumber,endLineNumber:B.lineNumber,startColumn:l.startColumn,endColumn:l.endColumn},x=b.map(function(O){return{label:O,kind:S.languages.CompletionItemKind.Keyword,insertText:O,insertTextRules:S.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:i}});return A.map(function(O){x.push(Object(ue.a)(Object(ue.a)({},O),{},{range:i}))}),x}var n=function(S){var w={label:"ifelse",kind:S.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`),insertTextRules:S.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"];S.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(i,x){var O=r(S,i,x,B,[w]);return{suggestions:O}}});var b=["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"];S.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(i,x){var O=[{label:"print",kind:S.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(`
`),insertTextRules:S.languages.CompletionItemInsertTextRule.InsertAsSnippet}],T=r(S,i,x,b,O);return{suggestions:T}}});var A=["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"];S.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(i,x){var O=[w,{label:"main",kind:S.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(`
`),insertTextRules:S.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:S.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join(`
`),insertTextRules:S.languages.CompletionItemInsertTextRule.InsertAsSnippet}],T=r(S,i,x,A,O);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=M("LvDl");function u(S){return/^\d+$/.test(S)?"".concat(S,"px"):S}function o(){}var f=!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 a(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=S;if(Array.isArray(S)){for(var B=0;B<S.length;B++){var b=d[S[B]];if(b)return b}return w[0]}return d[w]||w}var h=null,g=we.b=function(S){var w=S.width,B=w===void 0?"100%":w,b=S.height,A=b===void 0?"100%":b,l=S.value,i=S.language,x=i===void 0?"javascript":i,O=S.style,T=O===void 0?{}:O,D=S.options,R=D===void 0?{}:D,k=S.overrideServices,H=k===void 0?{}:k,J=S.theme,U=J===void 0?"vs-dark":J,K=S.onEditBlur,G=S.onSave,N=S.autoHeight,Q=N===void 0?!1:N,X=S.forbidCopy,te=X===void 0?!1:X,oe=S.onChange,me=oe===void 0?o:oe,se=S.editorDidMount,_e=se===void 0?o:se,Ae=S.onFocus,Ee=Ae===void 0?o:Ae,pe=S.filename,he=pe===void 0?"educoder.txt":pe,ie=Object(_.a)(S,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename"]),fe=Object(C.useRef)(),ge=Object(C.useRef)({}),ce=Object(C.useRef)(),Ie=Object(C.useRef)(!1),Fe=Object(C.useRef)(),ke=Object(C.useState)(!1),re=Object(E.a)(ke,2),F=re[0],W=re[1];function de(){var Ne;return fe.current&&(Ne=new c.default(function(et){var mt=Object(y.a)(et),At;try{for(mt.s();!(At=mt.n()).done;){var Ut=At.value;(Ut.target.offsetHeight>0||Ut.target.offsetWidth>0)&&ge.current.instance.layout()}}catch(Xt){mt.e(Xt)}finally{mt.f()}}),Ne.observe(fe.current)),Ne}function ne(){P.b.warn(decodeURIComponent(e))}var le=function(){var et=ge.current.instance;if(l!=null&&et&&F){var mt=et.getModel();mt&&l!==mt.getValue()&&(f=!0,mt.setValue(l),et.layout(),f=!1)}};Object(C.useEffect)(function(){ce.current&&clearTimeout(ce.current),ce.current=setTimeout(function(){le()},500)},[l,F,ge.current]);function De(){var Ne=ge.current.instance;if(Ne){var et=Ne.getSelection(),mt=ge.current.pastePos||{},At=new h.Range(mt.startLineNumber||et.endLineNumber,mt.startColumn||et.endColumn,mt.endLineNumber||et.endLineNumber,mt.endColumn||et.endColumn);setTimeout(function(){Ne.executeEdits("",[{range:At,text:""}])},300)}}function Xe(Ne){(window.navigator.platform.match("Mac")?Ne.metaKey:Ne.ctrlKey)&&Ne.keyCode==83&&(Ne.preventDefault(),G())}var xt=function(){if(Q&&ge.current.instance){var et=ge.current.instance.getContentHeight();Pe(et<A?A:et)}else Pe(A)};function Ke(Ne){var et=document.createEvent("MouseEvents");et.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Ne.dispatchEvent(et)}function ze(Ne,et){var mt=window.URL||window.webkitURL||window,At=new Blob([et]),Ut=document.createElementNS("http://www.w3.org/1999/xhtml","a");Ut.href=mt.createObjectURL(At),Ut.download=Ne,Ke(Ut)}Object(C.useEffect)(function(){xt()},[xt]),Object(C.useEffect)(function(){fe.current&&!F&&M.e(27).then(M.t.bind(null,"M/lh",7)).then(function(Ne){try{h=Ne,ge.current.instance=h.editor.create(fe.current,{value:l,language:a(x),theme:U,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0},H);var et=ge.current.instance;if(_e(et,h),setTimeout(function(){xt(),ge.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){ze(he||"educoder.txt",et.getValue())}})},500),ge.current.subscription=et.onDidChangeModelContent(function(At){Ie.current?clearTimeout(Fe.current):(xt(),me(et.getValue(),At)),Fe.current=setTimeout(function(){Ie.current=!1},500)}),window.Monaco||n(h),te&&(et.addCommand(h.KeyMod.CtrlCmd|h.KeyMod.Shift|h.KeyCode.KEY_V,function(){return ne(),null}),et.addCommand(h.KeyMod.CtrlCmd|h.KeyCode.KEY_C,function(){return ne(),null})),window.Monaco=h,K&&et.onDidBlurEditorWidget(function(){K(et.getValue())}),Ee&&et.onDidFocusEditorText(function(){Ee(et.getValue())}),te){et.addCommand(h.KeyMod.CtrlCmd|h.KeyCode.KEY_V,function(){return ne(),null}),et.onDidPaste(function(At){ge.current.pastePos=At});try{window.addEventListener("paste",De)}catch(At){}}var mt=de();return W(!0),function(){var At=ge.current.instance;At.dispose();var Ut=At.getModel();Ut&&Ut.dispose(),ge.current.subscription&&ge.current.subscription.dispose(),te&&window.removeEventListener("paste",De),mt.unobserve(fe.current)}}catch(At){}})},[]),Object(C.useEffect)(function(){var Ne=ge.current.instance;if(Ne&&F)return document.addEventListener("keydown",Xe,!1),function(){document.removeEventListener("keydown",Xe)}},[G,F]),Object(C.useEffect)(function(){var Ne=ge.current.instance;if(Ne&&F){var et=a(x);h.editor.setModelLanguage(Ne.getModel(),et),console.log("language:",x,Ne.getModel(),et)}},[x,F]),Object(C.useEffect)(function(){var Ne=ge.current.instance;Ne&&F&&h.editor.setTheme(U)},[U,F]),Object(C.useEffect)(function(){var Ne=ge.current.instance;Ne&&F&&(Ne.updateOptions(Object(ue.a)({},R)),setTimeout(function(){Ne.getModel().updateOptions(Object(ue.a)({},R))},200))},[JSON.stringify(R),F]),Object(C.useEffect)(function(){var Ne=ge.current.instance;Ne&&F&&Ne.layout()},[B,A,F]);var yt=Object(C.useState)(u(B)),Et=Object(E.a)(yt,2),ct=Et[0],lt=Et[1],rt=Object(C.useState)(u(A)),qe=Object(E.a)(rt,2),$e=qe[0],Pe=qe[1],je=Object(ue.a)(Object(ue.a)({},T),{},{width:ct,height:$e});return m.a.createElement("div",{className:"my-monaco-editor",ref:fe,style:je})};function p(S){var w=S.width,B=w===void 0?"100%":w,b=S.height,A=b===void 0?"100%":b,l=S.original,i=S.modified,x=S.language,O=S.options,T=O===void 0?{}:O,D=Object(C.useRef)(),R=Object(C.useState)(null),k=Object(E.a)(R,2),H=k[0],J=k[1];function U(Q){var X;return D.current&&(X=new c.default(function(te){var oe=Object(y.a)(te),me;try{for(oe.s();!(me=oe.n()).done;){var se=me.value;(se.target.offsetHeight>0||se.target.offsetWidth>0)&&Q.layout()}}catch(_e){oe.e(_e)}finally{oe.f()}}),X.observe(D.current)),X}Object(C.useEffect)(function(){D.current&&M.e(27).then(M.t.bind(null,"M/lh",7)).then(function(Q){h=Q;var X=h.editor.createDiffEditor(D.current,Object(ue.a)(Object(ue.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}));J(X);var te=U(X);return function(){X.dispose();var oe=X.getModel();oe&&oe.dispose(),te.unobserve(D.current)}})},[]),Object(C.useEffect)(function(){H&&H.setModel({original:h.editor.createModel(l,x),modified:h.editor.createModel(i,x)})},[l,i,x,H]);var K=u(B),G=u(A),N={width:K,height:G};return m.a.createElement("div",{className:"my-diff-editor",ref:D,style:N})}},Ze12:function(Ze,we,M){var ue=M("ItGF"),Y=M("hOwI"),P=Y.buildTransformer,y="___zrEVENTSAVED",E=[];function _(n,e,s,u,o){return C(E,e,u,o,!0)&&C(n,s,E[0],E[1])}function C(n,e,s,u,o){if(e.getBoundingClientRect&&ue.domSupported&&!r(e)){var f=e[y]||(e[y]={}),d=m(e,f),a=c(d,f,o);if(a)return a(n,s,u),!0}return!1}function m(n,e){var s=e.markers;if(s)return s;s=e.markers=[];for(var u=["left","right"],o=["top","bottom"],f=0;f<4;f++){var d=document.createElement("div"),a=d.style,h=f%2,g=(f>>1)%2;a.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",u[h]+":0",o[g]+":0",u[1-h]+":auto",o[1-g]+":auto",""].join("!important;"),n.appendChild(d),s.push(d)}return s}function c(n,e,s){for(var u=s?"invTrans":"trans",o=e[u],f=e.srcCoords,d=!0,a=[],h=[],g=0;g<4;g++){var p=n[g].getBoundingClientRect(),S=2*g,w=p.left,B=p.top;a.push(w,B),d=d&&f&&w===f[S]&&B===f[S+1],h.push(n[g].offsetLeft,n[g].offsetTop)}return d&&o?o:(e.srcCoords=a,e[u]=s?P(h,a):P(a,h))}function r(n){return n.nodeName.toUpperCase()==="CANVAS"}we.transformLocalCoord=_,we.transformCoordWithViewport=C,we.isCanvasEl=r},ZpRC:function(Ze,we,M){"use strict";function ue(n){return typeof n=="object"&&n!=null&&n.nodeType===1}function Y(n,e){return(!e||n!=="hidden")&&n!=="visible"&&n!=="clip"}function P(n,e){if(n.clientHeight<n.scrollHeight||n.clientWidth<n.scrollWidth){var s=getComputedStyle(n,null);return Y(s.overflowY,e)||Y(s.overflowX,e)||function(u){var o=function(f){if(!f.ownerDocument||!f.ownerDocument.defaultView)return null;try{return f.ownerDocument.defaultView.frameElement}catch(d){return null}}(u);return!!o&&(o.clientHeight<u.scrollHeight||o.clientWidth<u.scrollWidth)}(n)}return!1}function y(n,e,s,u,o,f,d,a){return f<n&&d>e||f>n&&d<e?0:f<=n&&a<=s||d>=e&&a>=s?f-n-u:d>e&&a<s||f<n&&a>s?d-e+o:0}var E=function(n,e){var s=window,u=e.scrollMode,o=e.block,f=e.inline,d=e.boundary,a=e.skipOverflowHiddenElements,h=typeof d=="function"?d:function(Fe){return Fe!==d};if(!ue(n))throw new TypeError("Invalid target");for(var g=document.scrollingElement||document.documentElement,p=[],S=n;ue(S)&&h(S);){if((S=S.parentElement)===g){p.push(S);break}S!=null&&S===document.body&&P(S)&&!P(document.documentElement)||S!=null&&P(S,a)&&p.push(S)}for(var w=s.visualViewport?s.visualViewport.width:innerWidth,B=s.visualViewport?s.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,A=window.scrollY||pageYOffset,l=n.getBoundingClientRect(),i=l.height,x=l.width,O=l.top,T=l.right,D=l.bottom,R=l.left,k=o==="start"||o==="nearest"?O:o==="end"?D:O+i/2,H=f==="center"?R+x/2:f==="end"?T:R,J=[],U=0;U<p.length;U++){var K=p[U],G=K.getBoundingClientRect(),N=G.height,Q=G.width,X=G.top,te=G.right,oe=G.bottom,me=G.left;if(u==="if-needed"&&O>=0&&R>=0&&D<=B&&T<=w&&O>=X&&D<=oe&&R>=me&&T<=te)return J;var se=getComputedStyle(K),_e=parseInt(se.borderLeftWidth,10),Ae=parseInt(se.borderTopWidth,10),Ee=parseInt(se.borderRightWidth,10),pe=parseInt(se.borderBottomWidth,10),he=0,ie=0,fe="offsetWidth"in K?K.offsetWidth-K.clientWidth-_e-Ee:0,ge="offsetHeight"in K?K.offsetHeight-K.clientHeight-Ae-pe:0;if(g===K)he=o==="start"?k:o==="end"?k-B:o==="nearest"?y(A,A+B,B,Ae,pe,A+k,A+k+i,i):k-B/2,ie=f==="start"?H:f==="center"?H-w/2:f==="end"?H-w:y(b,b+w,w,_e,Ee,b+H,b+H+x,x),he=Math.max(0,he+A),ie=Math.max(0,ie+b);else{he=o==="start"?k-X-Ae:o==="end"?k-oe+pe+ge:o==="nearest"?y(X,oe,N,Ae,pe+ge,k,k+i,i):k-(X+N/2)+ge/2,ie=f==="start"?H-me-_e:f==="center"?H-(me+Q/2)+fe/2:f==="end"?H-te+Ee+fe:y(me,te,Q,_e,Ee+fe,H,H+x,x);var ce=K.scrollLeft,Ie=K.scrollTop;k+=Ie-(he=Math.max(0,Math.min(Ie+he,K.scrollHeight-N+ge))),H+=ce-(ie=Math.max(0,Math.min(ce+ie,K.scrollWidth-Q+fe)))}J.push({el:K,top:he,left:ie})}return J};function _(n){return n===Object(n)&&Object.keys(n).length!==0}function C(n,e){e===void 0&&(e="auto");var s="scrollBehavior"in document.body.style;n.forEach(function(u){var o=u.el,f=u.top,d=u.left;o.scroll&&s?o.scroll({top:f,left:d,behavior:e}):(o.scrollTop=f,o.scrollLeft=d)})}function m(n){return n===!1?{block:"end",inline:"nearest"}:_(n)?n:{block:"start",inline:"nearest"}}function c(n,e){var s=!n.ownerDocument.documentElement.contains(n);if(_(e)&&typeof e.behavior=="function")return e.behavior(s?[]:E(n,e));if(s)return;var u=m(e);return C(E(n,u),u.behavior)}var r=we.a=c},Zss7:function(Ze,we,M){var ue;(function(Y){var P=/^\s+/,y=/\s+$/,E=0,_=Y.round,C=Y.min,m=Y.max,c=Y.random;function r(pe,he){if(pe=pe||"",he=he||{},pe instanceof r)return pe;if(!(this instanceof r))return new r(pe,he);var ie=n(pe);this._originalInput=pe,this._r=ie.r,this._g=ie.g,this._b=ie.b,this._a=ie.a,this._roundA=_(100*this._a)/100,this._format=he.format||ie.format,this._gradientType=he.gradientType,this._r<1&&(this._r=_(this._r)),this._g<1&&(this._g=_(this._g)),this._b<1&&(this._b=_(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 pe=this.toRgb();return(pe.r*299+pe.g*587+pe.b*114)/1e3},getLuminance:function(){var pe=this.toRgb(),he,ie,fe,ge,ce,Ie;return he=pe.r/255,ie=pe.g/255,fe=pe.b/255,he<=.03928?ge=he/12.92:ge=Y.pow((he+.055)/1.055,2.4),ie<=.03928?ce=ie/12.92:ce=Y.pow((ie+.055)/1.055,2.4),fe<=.03928?Ie=fe/12.92:Ie=Y.pow((fe+.055)/1.055,2.4),.2126*ge+.7152*ce+.0722*Ie},setAlpha:function(pe){return this._a=J(pe),this._roundA=_(100*this._a)/100,this},toHsv:function(){var pe=o(this._r,this._g,this._b);return{h:pe.h*360,s:pe.s,v:pe.v,a:this._a}},toHsvString:function(){var pe=o(this._r,this._g,this._b),he=_(pe.h*360),ie=_(pe.s*100),fe=_(pe.v*100);return this._a==1?"hsv("+he+", "+ie+"%, "+fe+"%)":"hsva("+he+", "+ie+"%, "+fe+"%, "+this._roundA+")"},toHsl:function(){var pe=s(this._r,this._g,this._b);return{h:pe.h*360,s:pe.s,l:pe.l,a:this._a}},toHslString:function(){var pe=s(this._r,this._g,this._b),he=_(pe.h*360),ie=_(pe.s*100),fe=_(pe.l*100);return this._a==1?"hsl("+he+", "+ie+"%, "+fe+"%)":"hsla("+he+", "+ie+"%, "+fe+"%, "+this._roundA+")"},toHex:function(pe){return d(this._r,this._g,this._b,pe)},toHexString:function(pe){return"#"+this.toHex(pe)},toHex8:function(pe){return a(this._r,this._g,this._b,this._a,pe)},toHex8String:function(pe){return"#"+this.toHex8(pe)},toRgb:function(){return{r:_(this._r),g:_(this._g),b:_(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+_(this._r)+", "+_(this._g)+", "+_(this._b)+")":"rgba("+_(this._r)+", "+_(this._g)+", "+_(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:_(U(this._r,255)*100)+"%",g:_(U(this._g,255)*100)+"%",b:_(U(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+_(U(this._r,255)*100)+"%, "+_(U(this._g,255)*100)+"%, "+_(U(this._b,255)*100)+"%)":"rgba("+_(U(this._r,255)*100)+"%, "+_(U(this._g,255)*100)+"%, "+_(U(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:k[d(this._r,this._g,this._b,!0)]||!1},toFilter:function(pe){var he="#"+h(this._r,this._g,this._b,this._a),ie=he,fe=this._gradientType?"GradientType = 1, ":"";if(pe){var ge=r(pe);ie="#"+h(ge._r,ge._g,ge._b,ge._a)}return"progid:DXImageTransform.Microsoft.gradient("+fe+"startColorstr="+he+",endColorstr="+ie+")"},toString:function(pe){var he=!!pe;pe=pe||this._format;var ie=!1,fe=this._a<1&&this._a>=0,ge=!he&&fe&&(pe==="hex"||pe==="hex6"||pe==="hex3"||pe==="hex4"||pe==="hex8"||pe==="name");return ge?pe==="name"&&this._a===0?this.toName():this.toRgbString():(pe==="rgb"&&(ie=this.toRgbString()),pe==="prgb"&&(ie=this.toPercentageRgbString()),(pe==="hex"||pe==="hex6")&&(ie=this.toHexString()),pe==="hex3"&&(ie=this.toHexString(!0)),pe==="hex4"&&(ie=this.toHex8String(!0)),pe==="hex8"&&(ie=this.toHex8String()),pe==="name"&&(ie=this.toName()),pe==="hsl"&&(ie=this.toHslString()),pe==="hsv"&&(ie=this.toHsvString()),ie||this.toHexString())},clone:function(){return r(this.toString())},_applyModification:function(pe,he){var ie=pe.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(w,arguments)},brighten:function(){return this._applyModification(B,arguments)},darken:function(){return this._applyModification(b,arguments)},desaturate:function(){return this._applyModification(g,arguments)},saturate:function(){return this._applyModification(p,arguments)},greyscale:function(){return this._applyModification(S,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(pe,he){return pe.apply(null,[this].concat([].slice.call(he)))},analogous:function(){return this._applyCombination(T,arguments)},complement:function(){return this._applyCombination(l,arguments)},monochromatic:function(){return this._applyCombination(D,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(i,arguments)},tetrad:function(){return this._applyCombination(x,arguments)}},r.fromRatio=function(pe,he){if(typeof pe=="object"){var ie={};for(var fe in pe)pe.hasOwnProperty(fe)&&(fe==="a"?ie[fe]=pe[fe]:ie[fe]=te(pe[fe]));pe=ie}return r(pe,he)};function n(pe){var he={r:0,g:0,b:0},ie=1,fe=null,ge=null,ce=null,Ie=!1,Fe=!1;return typeof pe=="string"&&(pe=Ae(pe)),typeof pe=="object"&&(_e(pe.r)&&_e(pe.g)&&_e(pe.b)?(he=e(pe.r,pe.g,pe.b),Ie=!0,Fe=String(pe.r).substr(-1)==="%"?"prgb":"rgb"):_e(pe.h)&&_e(pe.s)&&_e(pe.v)?(fe=te(pe.s),ge=te(pe.v),he=f(pe.h,fe,ge),Ie=!0,Fe="hsv"):_e(pe.h)&&_e(pe.s)&&_e(pe.l)&&(fe=te(pe.s),ce=te(pe.l),he=u(pe.h,fe,ce),Ie=!0,Fe="hsl"),pe.hasOwnProperty("a")&&(ie=pe.a)),ie=J(ie),{ok:Ie,format:pe.format||Fe,r:C(255,m(he.r,0)),g:C(255,m(he.g,0)),b:C(255,m(he.b,0)),a:ie}}function e(pe,he,ie){return{r:U(pe,255)*255,g:U(he,255)*255,b:U(ie,255)*255}}function s(pe,he,ie){pe=U(pe,255),he=U(he,255),ie=U(ie,255);var fe=m(pe,he,ie),ge=C(pe,he,ie),ce,Ie,Fe=(fe+ge)/2;if(fe==ge)ce=Ie=0;else{var ke=fe-ge;Ie=Fe>.5?ke/(2-fe-ge):ke/(fe+ge);switch(fe){case pe:ce=(he-ie)/ke+(he<ie?6:0);break;case he:ce=(ie-pe)/ke+2;break;case ie:ce=(pe-he)/ke+4;break}ce/=6}return{h:ce,s:Ie,l:Fe}}function u(pe,he,ie){var fe,ge,ce;pe=U(pe,360),he=U(he,100),ie=U(ie,100);function Ie(re,F,W){return W<0&&(W+=1),W>1&&(W-=1),W<1/6?re+(F-re)*6*W:W<1/2?F:W<2/3?re+(F-re)*(2/3-W)*6:re}if(he===0)fe=ge=ce=ie;else{var Fe=ie<.5?ie*(1+he):ie+he-ie*he,ke=2*ie-Fe;fe=Ie(ke,Fe,pe+1/3),ge=Ie(ke,Fe,pe),ce=Ie(ke,Fe,pe-1/3)}return{r:fe*255,g:ge*255,b:ce*255}}function o(pe,he,ie){pe=U(pe,255),he=U(he,255),ie=U(ie,255);var fe=m(pe,he,ie),ge=C(pe,he,ie),ce,Ie,Fe=fe,ke=fe-ge;if(Ie=fe===0?0:ke/fe,fe==ge)ce=0;else{switch(fe){case pe:ce=(he-ie)/ke+(he<ie?6:0);break;case he:ce=(ie-pe)/ke+2;break;case ie:ce=(pe-he)/ke+4;break}ce/=6}return{h:ce,s:Ie,v:Fe}}function f(pe,he,ie){pe=U(pe,360)*6,he=U(he,100),ie=U(ie,100);var fe=Y.floor(pe),ge=pe-fe,ce=ie*(1-he),Ie=ie*(1-ge*he),Fe=ie*(1-(1-ge)*he),ke=fe%6,re=[ie,Ie,ce,ce,Fe,ie][ke],F=[Fe,ie,ie,Ie,ce,ce][ke],W=[ce,ce,Fe,ie,ie,Ie][ke];return{r:re*255,g:F*255,b:W*255}}function d(pe,he,ie,fe){var ge=[X(_(pe).toString(16)),X(_(he).toString(16)),X(_(ie).toString(16))];return fe&&ge[0].charAt(0)==ge[0].charAt(1)&&ge[1].charAt(0)==ge[1].charAt(1)&&ge[2].charAt(0)==ge[2].charAt(1)?ge[0].charAt(0)+ge[1].charAt(0)+ge[2].charAt(0):ge.join("")}function a(pe,he,ie,fe,ge){var ce=[X(_(pe).toString(16)),X(_(he).toString(16)),X(_(ie).toString(16)),X(oe(fe))];return ge&&ce[0].charAt(0)==ce[0].charAt(1)&&ce[1].charAt(0)==ce[1].charAt(1)&&ce[2].charAt(0)==ce[2].charAt(1)&&ce[3].charAt(0)==ce[3].charAt(1)?ce[0].charAt(0)+ce[1].charAt(0)+ce[2].charAt(0)+ce[3].charAt(0):ce.join("")}function h(pe,he,ie,fe){var ge=[X(oe(fe)),X(_(pe).toString(16)),X(_(he).toString(16)),X(_(ie).toString(16))];return ge.join("")}r.equals=function(pe,he){return!pe||!he?!1:r(pe).toRgbString()==r(he).toRgbString()},r.random=function(){return r.fromRatio({r:c(),g:c(),b:c()})};function g(pe,he){he=he===0?0:he||10;var ie=r(pe).toHsl();return ie.s-=he/100,ie.s=K(ie.s),r(ie)}function p(pe,he){he=he===0?0:he||10;var ie=r(pe).toHsl();return ie.s+=he/100,ie.s=K(ie.s),r(ie)}function S(pe){return r(pe).desaturate(100)}function w(pe,he){he=he===0?0:he||10;var ie=r(pe).toHsl();return ie.l+=he/100,ie.l=K(ie.l),r(ie)}function B(pe,he){he=he===0?0:he||10;var ie=r(pe).toRgb();return ie.r=m(0,C(255,ie.r-_(255*-(he/100)))),ie.g=m(0,C(255,ie.g-_(255*-(he/100)))),ie.b=m(0,C(255,ie.b-_(255*-(he/100)))),r(ie)}function b(pe,he){he=he===0?0:he||10;var ie=r(pe).toHsl();return ie.l-=he/100,ie.l=K(ie.l),r(ie)}function A(pe,he){var ie=r(pe).toHsl(),fe=(ie.h+he)%360;return ie.h=fe<0?360+fe:fe,r(ie)}function l(pe){var he=r(pe).toHsl();return he.h=(he.h+180)%360,r(he)}function i(pe){var he=r(pe).toHsl(),ie=he.h;return[r(pe),r({h:(ie+120)%360,s:he.s,l:he.l}),r({h:(ie+240)%360,s:he.s,l:he.l})]}function x(pe){var he=r(pe).toHsl(),ie=he.h;return[r(pe),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 O(pe){var he=r(pe).toHsl(),ie=he.h;return[r(pe),r({h:(ie+72)%360,s:he.s,l:he.l}),r({h:(ie+216)%360,s:he.s,l:he.l})]}function T(pe,he,ie){he=he||6,ie=ie||30;var fe=r(pe).toHsl(),ge=360/ie,ce=[r(pe)];for(fe.h=(fe.h-(ge*he>>1)+720)%360;--he;)fe.h=(fe.h+ge)%360,ce.push(r(fe));return ce}function D(pe,he){he=he||6;for(var ie=r(pe).toHsv(),fe=ie.h,ge=ie.s,ce=ie.v,Ie=[],Fe=1/he;he--;)Ie.push(r({h:fe,s:ge,v:ce})),ce=(ce+Fe)%1;return Ie}r.mix=function(pe,he,ie){ie=ie===0?0:ie||50;var fe=r(pe).toRgb(),ge=r(he).toRgb(),ce=ie/100,Ie={r:(ge.r-fe.r)*ce+fe.r,g:(ge.g-fe.g)*ce+fe.g,b:(ge.b-fe.b)*ce+fe.b,a:(ge.a-fe.a)*ce+fe.a};return r(Ie)},r.readability=function(pe,he){var ie=r(pe),fe=r(he);return(Y.max(ie.getLuminance(),fe.getLuminance())+.05)/(Y.min(ie.getLuminance(),fe.getLuminance())+.05)},r.isReadable=function(pe,he,ie){var fe=r.readability(pe,he),ge,ce;ce=!1,ge=Ee(ie);switch(ge.level+ge.size){case"AAsmall":case"AAAlarge":ce=fe>=4.5;break;case"AAlarge":ce=fe>=3;break;case"AAAsmall":ce=fe>=7;break}return ce},r.mostReadable=function(pe,he,ie){var fe=null,ge=0,ce,Ie,Fe,ke;ie=ie||{},Ie=ie.includeFallbackColors,Fe=ie.level,ke=ie.size;for(var re=0;re<he.length;re++)ce=r.readability(pe,he[re]),ce>ge&&(ge=ce,fe=r(he[re]));return r.isReadable(pe,fe,{level:Fe,size:ke})||!Ie?fe:(ie.includeFallbackColors=!1,r.mostReadable(pe,["#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"},k=r.hexNames=H(R);function H(pe){var he={};for(var ie in pe)pe.hasOwnProperty(ie)&&(he[pe[ie]]=ie);return he}function J(pe){return pe=parseFloat(pe),(isNaN(pe)||pe<0||pe>1)&&(pe=1),pe}function U(pe,he){N(pe)&&(pe="100%");var ie=Q(pe);return pe=C(he,m(0,parseFloat(pe))),ie&&(pe=parseInt(pe*he,10)/100),Y.abs(pe-he)<1e-6?1:pe%he/parseFloat(he)}function K(pe){return C(1,m(0,pe))}function G(pe){return parseInt(pe,16)}function N(pe){return typeof pe=="string"&&pe.indexOf(".")!=-1&&parseFloat(pe)===1}function Q(pe){return typeof pe=="string"&&pe.indexOf("%")!=-1}function X(pe){return pe.length==1?"0"+pe:""+pe}function te(pe){return pe<=1&&(pe=pe*100+"%"),pe}function oe(pe){return Y.round(parseFloat(pe)*255).toString(16)}function me(pe){return G(pe)/255}var se=function(){var pe="[-\\+]?\\d+%?",he="[-\\+]?\\d*\\.\\d+%?",ie="(?:"+he+")|(?:"+pe+")",fe="[\\s|\\(]+("+ie+")[,|\\s]+("+ie+")[,|\\s]+("+ie+")\\s*\\)?",ge="[\\s|\\(]+("+ie+")[,|\\s]+("+ie+")[,|\\s]+("+ie+")[,|\\s]+("+ie+")\\s*\\)?";return{CSS_UNIT:new RegExp(ie),rgb:new RegExp("rgb"+fe),rgba:new RegExp("rgba"+ge),hsl:new RegExp("hsl"+fe),hsla:new RegExp("hsla"+ge),hsv:new RegExp("hsv"+fe),hsva:new RegExp("hsva"+ge),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function _e(pe){return!!se.CSS_UNIT.exec(pe)}function Ae(pe){pe=pe.replace(P,"").replace(y,"").toLowerCase();var he=!1;if(R[pe])pe=R[pe],he=!0;else if(pe=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ie;return(ie=se.rgb.exec(pe))?{r:ie[1],g:ie[2],b:ie[3]}:(ie=se.rgba.exec(pe))?{r:ie[1],g:ie[2],b:ie[3],a:ie[4]}:(ie=se.hsl.exec(pe))?{h:ie[1],s:ie[2],l:ie[3]}:(ie=se.hsla.exec(pe))?{h:ie[1],s:ie[2],l:ie[3],a:ie[4]}:(ie=se.hsv.exec(pe))?{h:ie[1],s:ie[2],v:ie[3]}:(ie=se.hsva.exec(pe))?{h:ie[1],s:ie[2],v:ie[3],a:ie[4]}:(ie=se.hex8.exec(pe))?{r:G(ie[1]),g:G(ie[2]),b:G(ie[3]),a:me(ie[4]),format:he?"name":"hex8"}:(ie=se.hex6.exec(pe))?{r:G(ie[1]),g:G(ie[2]),b:G(ie[3]),format:he?"name":"hex"}:(ie=se.hex4.exec(pe))?{r:G(ie[1]+""+ie[1]),g:G(ie[2]+""+ie[2]),b:G(ie[3]+""+ie[3]),a:me(ie[4]+""+ie[4]),format:he?"name":"hex8"}:(ie=se.hex3.exec(pe))?{r:G(ie[1]+""+ie[1]),g:G(ie[2]+""+ie[2]),b:G(ie[3]+""+ie[3]),format:he?"name":"hex"}:!1}function Ee(pe){var he,ie;return pe=pe||{level:"AA",size:"small"},he=(pe.level||"AA").toUpperCase(),ie=(pe.size||"small").toLowerCase(),he!=="AA"&&he!=="AAA"&&(he="AA"),ie!=="small"&&ie!=="large"&&(ie="small"),{level:he,size:ie}}Ze.exports?Ze.exports=r:!(ue=function(){return r}.call(we,M,we,Ze),ue!==void 0&&(Ze.exports=ue))})(Math)},aKvl:function(Ze,we,M){var ue=M("Sj9i"),Y=ue.quadraticProjectPoint;function P(y,E,_,C,m,c,r,n,e){if(r===0)return!1;var s=r;if(e>E+s&&e>C+s&&e>c+s||e<E-s&&e<C-s&&e<c-s||n>y+s&&n>_+s&&n>m+s||n<y-s&&n<_-s&&n<m-s)return!1;var u=Y(y,E,_,C,m,c,n,e,null);return u<=s/2}we.containStroke=P},aX58:function(Ze,we,M){var ue=M("3gBT"),Y=M("ItGF"),P=M("bYtY"),y=M("0s+r"),E=M("r6Bn"),_=M("7SHv"),C=M("MKOG"),m=M("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 c=!Y.canvasSupported,r={canvas:_},n={},e="4.3.1";function s(h,g){var p=new a(ue(),h,g);return n[p.id]=p,p}function u(h){if(h)h.dispose();else{for(var g in n)n.hasOwnProperty(g)&&n[g].dispose();n={}}return this}function o(h){return n[h]}function f(h,g){r[h]=g}function d(h){delete n[h]}var a=function(h,g,p){p=p||{},this.dom=g,this.id=h;var S=this,w=new E,B=p.renderer;if(c){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 b=new r[B](g,w,p,h);this.storage=w,this.painter=b;var A=!Y.node&&!Y.worker?new m(b.getViewportRoot(),b.root):null;this.handler=new y(w,b,A,b.root),this.animation=new C({stage:{update:P.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var l=w.delFromStorage,i=w.addToStorage;w.delFromStorage=function(x){l.call(w,x),x&&x.removeSelfFromZr(S)},w.addToStorage=function(x){i.call(w,x),x.addSelfToZr(S)}};a.prototype={constructor:a,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,g){this.painter.configLayer&&this.painter.configLayer(h,g),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,g){if(this.painter.addHover){var p=this.painter.addHover(h,g);return this.refreshHover(),p}},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,g){return this.painter.pathToImage(h,g)},setCursorStyle:function(h){this.handler.setCursorStyle(h)},findHover:function(h,g){return this.handler.findHover(h,g)},on:function(h,g,p){this.handler.on(h,g,p)},off:function(h,g){this.handler.off(h,g)},trigger:function(h,g){this.handler.trigger(h,g)},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)}},we.version=e,we.init=s,we.dispose=u,we.getInstance=o,we.registerPainter=f},bT9E:function(Ze,we,M){"use strict";M.d(we,"a",function(){return Y});var ue=M("VTBJ");function Y(P,y){var E=Object(ue.a)({},P);return Array.isArray(y)&&y.forEach(function(_){delete E[_]}),E}},bYtY:function(Ze,we){var M={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},ue={"[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},Y=Object.prototype.toString,P=Array.prototype,y=P.forEach,E=P.filter,_=P.slice,C=P.map,m=P.reduce,c={};function r(ie,fe){ie==="createCanvas"&&(d=null),c[ie]=fe}function n(ie){if(ie==null||typeof ie!="object")return ie;var fe=ie,ge=Y.call(ie);if(ge==="[object Array]"){if(!_e(ie)){fe=[];for(var ce=0,Ie=ie.length;ce<Ie;ce++)fe[ce]=n(ie[ce])}}else if(ue[ge]){if(!_e(ie)){var Fe=ie.constructor;if(ie.constructor.from)fe=Fe.from(ie);else{fe=new Fe(ie.length);for(var ce=0,Ie=ie.length;ce<Ie;ce++)fe[ce]=n(ie[ce])}}}else if(!M[ge]&&!_e(ie)&&!J(ie)){fe={};for(var ke in ie)ie.hasOwnProperty(ke)&&(fe[ke]=n(ie[ke]))}return fe}function e(ie,fe,ge){if(!R(fe)||!R(ie))return ge?n(fe):ie;for(var ce in fe)if(fe.hasOwnProperty(ce)){var Ie=ie[ce],Fe=fe[ce];R(Fe)&&R(Ie)&&!O(Fe)&&!O(Ie)&&!J(Fe)&&!J(Ie)&&!k(Fe)&&!k(Ie)&&!_e(Fe)&&!_e(Ie)?e(Ie,Fe,ge):(ge||!(ce in ie))&&(ie[ce]=n(fe[ce],!0))}return ie}function s(ie,fe){for(var ge=ie[0],ce=1,Ie=ie.length;ce<Ie;ce++)ge=e(ge,ie[ce],fe);return ge}function u(ie,fe){for(var ge in fe)fe.hasOwnProperty(ge)&&(ie[ge]=fe[ge]);return ie}function o(ie,fe,ge){for(var ce in fe)fe.hasOwnProperty(ce)&&(ge?fe[ce]!=null:ie[ce]==null)&&(ie[ce]=fe[ce]);return ie}var f=function(){return c.createCanvas()};c.createCanvas=function(){return document.createElement("canvas")};var d;function a(){return d||(d=f().getContext("2d")),d}function h(ie,fe){if(ie){if(ie.indexOf)return ie.indexOf(fe);for(var ge=0,ce=ie.length;ge<ce;ge++)if(ie[ge]===fe)return ge}return-1}function g(ie,fe){var ge=ie.prototype;function ce(){}ce.prototype=fe.prototype,ie.prototype=new ce;for(var Ie in ge)ge.hasOwnProperty(Ie)&&(ie.prototype[Ie]=ge[Ie]);ie.prototype.constructor=ie,ie.superClass=fe}function p(ie,fe,ge){ie="prototype"in ie?ie.prototype:ie,fe="prototype"in fe?fe.prototype:fe,o(ie,fe,ge)}function S(ie){return ie?typeof ie=="string"?!1:typeof ie.length=="number":void 0}function w(ie,fe,ge){if(!(ie&&fe))return;if(ie.forEach&&ie.forEach===y)ie.forEach(fe,ge);else if(ie.length===+ie.length)for(var ce=0,Ie=ie.length;ce<Ie;ce++)fe.call(ge,ie[ce],ce,ie);else for(var Fe in ie)ie.hasOwnProperty(Fe)&&fe.call(ge,ie[Fe],Fe,ie)}function B(ie,fe,ge){if(!(ie&&fe))return;if(ie.map&&ie.map===C)return ie.map(fe,ge);for(var ce=[],Ie=0,Fe=ie.length;Ie<Fe;Ie++)ce.push(fe.call(ge,ie[Ie],Ie,ie));return ce}function b(ie,fe,ge,ce){if(!(ie&&fe))return;if(ie.reduce&&ie.reduce===m)return ie.reduce(fe,ge,ce);for(var Ie=0,Fe=ie.length;Ie<Fe;Ie++)ge=fe.call(ce,ge,ie[Ie],Ie,ie);return ge}function A(ie,fe,ge){if(!(ie&&fe))return;if(ie.filter&&ie.filter===E)return ie.filter(fe,ge);for(var ce=[],Ie=0,Fe=ie.length;Ie<Fe;Ie++)fe.call(ge,ie[Ie],Ie,ie)&&ce.push(ie[Ie]);return ce}function l(ie,fe,ge){if(!(ie&&fe))return;for(var ce=0,Ie=ie.length;ce<Ie;ce++)if(fe.call(ge,ie[ce],ce,ie))return ie[ce]}function i(ie,fe){var ge=_.call(arguments,2);return function(){return ie.apply(fe,ge.concat(_.call(arguments)))}}function x(ie){var fe=_.call(arguments,1);return function(){return ie.apply(this,fe.concat(_.call(arguments)))}}function O(ie){return Y.call(ie)==="[object Array]"}function T(ie){return typeof ie=="function"}function D(ie){return Y.call(ie)==="[object String]"}function R(ie){var fe=typeof ie;return fe==="function"||!!ie&&fe==="object"}function k(ie){return!!M[Y.call(ie)]}function H(ie){return!!ue[Y.call(ie)]}function J(ie){return typeof ie=="object"&&typeof ie.nodeType=="number"&&typeof ie.ownerDocument=="object"}function U(ie){return ie!==ie}function K(ie){for(var fe=0,ge=arguments.length;fe<ge;fe++)if(arguments[fe]!=null)return arguments[fe]}function G(ie,fe){return ie!=null?ie:fe}function N(ie,fe,ge){return ie!=null?ie:fe!=null?fe:ge}function Q(){return Function.call.apply(_,arguments)}function X(ie){if(typeof ie=="number")return[ie,ie,ie,ie];var fe=ie.length;return fe===2?[ie[0],ie[1],ie[0],ie[1]]:fe===3?[ie[0],ie[1],ie[2],ie[1]]:ie}function te(ie,fe){if(!ie)throw new Error(fe)}function oe(ie){return ie==null?null:typeof ie.trim=="function"?ie.trim():ie.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var me="__ec_primitive__";function se(ie){ie[me]=!0}function _e(ie){return ie[me]}function Ae(ie){var fe=O(ie);this.data={};var ge=this;ie instanceof Ae?ie.each(ce):ie&&w(ie,ce);function ce(Ie,Fe){fe?ge.set(Ie,Fe):ge.set(Fe,Ie)}}Ae.prototype={constructor:Ae,get:function(ie){return this.data.hasOwnProperty(ie)?this.data[ie]:null},set:function(ie,fe){return this.data[ie]=fe},each:function(ie,fe){fe!==void 0&&(ie=i(ie,fe));for(var ge in this.data)this.data.hasOwnProperty(ge)&&ie(this.data[ge],ge)},removeKey:function(ie){delete this.data[ie]}};function Ee(ie){return new Ae(ie)}function pe(ie,fe){for(var ge=new ie.constructor(ie.length+fe.length),ce=0;ce<ie.length;ce++)ge[ce]=ie[ce];var Ie=ie.length;for(ce=0;ce<fe.length;ce++)ge[ce+Ie]=fe[ce];return ge}function he(){}we.$override=r,we.clone=n,we.merge=e,we.mergeAll=s,we.extend=u,we.defaults=o,we.createCanvas=f,we.getContext=a,we.indexOf=h,we.inherits=g,we.mixin=p,we.isArrayLike=S,we.each=w,we.map=B,we.reduce=b,we.filter=A,we.find=l,we.bind=i,we.curry=x,we.isArray=O,we.isFunction=T,we.isString=D,we.isObject=R,we.isBuiltInObject=k,we.isTypedArray=H,we.isDom=J,we.eqNaN=U,we.retrieve=K,we.retrieve2=G,we.retrieve3=N,we.slice=Q,we.normalizeCssArray=X,we.assert=te,we.trim=oe,we.setAsPrimitive=se,we.isPrimitive=_e,we.createHashMap=Ee,we.concatArray=pe,we.noop=he},biw7:function(Ze,we,M){"use strict";var ue=M("q1tI"),Y=M.n(ue),P=ue.createContext(null);we.a=P},c5Ni:function(Ze,we,M){},cCSd:function(Ze,we,M){Ze.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(Ze,we,M){Ze.exports=M.p+"static/RepositoryNoneData.828085a8.png"},chpo:function(Ze,we,M){"use strict";Object.defineProperty(we,"__esModule",{value:!0}),we.default=void 0;var ue=1,Y=function(){return"".concat(ue++)};we.default=Y},crp1:function(Ze,we,M){"use strict";M.d(we,"b",function(){return We}),M.d(we,"a",function(){return Ot});var ue={},Y=function(Le,Qe,ot,_t,Kt){var nn=ue[Qe]||(ue[Qe]=URL.createObjectURL(new Blob([Le],{type:"text/javascript"}))),ve=new Worker(nn);return ve.onerror=function(z){return Kt(z.error,null)},ve.onmessage=function(z){return Kt(null,z.data)},ve.postMessage(ot,_t),ve},P=Uint8Array,y=Uint16Array,E=Uint32Array,_=new P([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]),C=new P([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),m=new P([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c=function(Le,Qe){for(var ot=new y(31),_t=0;_t<31;++_t)ot[_t]=Qe+=1<<Le[_t-1];for(var Kt=new E(ot[30]),_t=1;_t<30;++_t)for(var nn=ot[_t];nn<ot[_t+1];++nn)Kt[nn]=nn-ot[_t]<<5|_t;return[ot,Kt]},r=c(_,2),n=r[0],e=r[1];n[28]=258,e[258]=28;for(var s=c(C,0),u=s[0],o=s[1],f=new y(32768),d=0;d<32768;++d){var a=(d&43690)>>>1|(d&21845)<<1;a=(a&52428)>>>2|(a&13107)<<2,a=(a&61680)>>>4|(a&3855)<<4,f[d]=((a&65280)>>>8|(a&255)<<8)>>>1}for(var h=function(Le,Qe,ot){for(var _t=Le.length,Kt=0,nn=new y(Qe);Kt<_t;++Kt)++nn[Le[Kt]-1];var ve=new y(Qe);for(Kt=0;Kt<Qe;++Kt)ve[Kt]=ve[Kt-1]+nn[Kt-1]<<1;var z;if(ot){z=new y(1<<Qe);var Z=15-Qe;for(Kt=0;Kt<_t;++Kt)if(Le[Kt])for(var ye=Kt<<4|Le[Kt],Ce=Qe-Le[Kt],be=ve[Le[Kt]-1]++<<Ce,ht=be|(1<<Ce)-1;be<=ht;++be)z[f[be]>>>Z]=ye}else for(z=new y(_t),Kt=0;Kt<_t;++Kt)z[Kt]=f[ve[Le[Kt]-1]++]>>>15-Le[Kt];return z},g=new P(288),d=0;d<144;++d)g[d]=8;for(var d=144;d<256;++d)g[d]=9;for(var d=256;d<280;++d)g[d]=7;for(var d=280;d<288;++d)g[d]=8;for(var p=new P(32),d=0;d<32;++d)p[d]=5;var S=h(g,9,0),w=h(g,9,1),B=h(p,5,0),b=h(p,5,1),A=function(Le){for(var Qe=Le[0],ot=1;ot<Le.length;++ot)Le[ot]>Qe&&(Qe=Le[ot]);return Qe},l=function(Le,Qe,ot){var _t=Qe/8>>0;return(Le[_t]|Le[_t+1]<<8)>>>(Qe&7)&ot},i=function(Le,Qe){var ot=Qe/8>>0;return(Le[ot]|Le[ot+1]<<8|Le[ot+2]<<16)>>>(Qe&7)},x=function(Le){return(Le/8>>0)+(Le&7&&1)},O=function(Le,Qe,ot){(Qe==null||Qe<0)&&(Qe=0),(ot==null||ot>Le.length)&&(ot=Le.length);var _t=new(Le instanceof y?y:Le instanceof E?E:P)(ot-Qe);return _t.set(Le.subarray(Qe,ot)),_t},T=function(Le,Qe,ot){var _t=Le.length,Kt=!Qe||ot,nn=!ot||ot.i;ot||(ot={}),Qe||(Qe=new P(_t*3));var ve=function(qr){var _a=Qe.length;if(qr>_a){var Jr=new P(Math.max(_a*2,qr));Jr.set(Qe),Qe=Jr}},z=ot.f||0,Z=ot.p||0,ye=ot.b||0,Ce=ot.l,be=ot.d,ht=ot.m,Nt=ot.n,sn=_t*8;do{if(!Ce){ot.f=z=l(Le,Z,1);var pn=l(Le,Z+1,3);if(Z+=3,pn)if(pn==1)Ce=w,be=b,ht=9,Nt=5;else if(pn==2){var rr=l(Le,Z,31)+257,Sr=l(Le,Z+10,15)+4,ia=rr+l(Le,Z+5,31)+1;Z+=14;for(var Dr=new P(ia),na=new P(19),Tr=0;Tr<Sr;++Tr)na[m[Tr]]=l(Le,Z+Tr*3,7);Z+=Sr*3;var ma=A(na),ha=(1<<ma)-1;if(!nn&&Z+ia*(ma+7)>sn)break;for(var Oa=h(na,ma,1),Tr=0;Tr<ia;){var xa=Oa[l(Le,Z,ha)];Z+=xa&15;var zt=xa>>>4;if(zt<16)Dr[Tr++]=zt;else{var ka=0,Ha=0;for(zt==16?(Ha=3+l(Le,Z,3),Z+=2,ka=Dr[Tr-1]):zt==17?(Ha=3+l(Le,Z,7),Z+=3):zt==18&&(Ha=11+l(Le,Z,127),Z+=7);Ha--;)Dr[Tr++]=ka}}var Ia=Dr.subarray(0,rr),Yr=Dr.subarray(rr);ht=A(Ia),Nt=A(Yr),Ce=h(Ia,ht,1),be=h(Yr,Nt,1)}else throw"invalid block type";else{var zt=x(Z)+4,qn=Le[zt-4]|Le[zt-3]<<8,Un=zt+qn;if(Un>_t){if(nn)throw"unexpected EOF";break}Kt&&ve(ye+qn),Qe.set(Le.subarray(zt,Un),ye),ot.b=ye+=qn,ot.p=Z=Un*8;continue}if(Z>sn)throw"unexpected EOF"}Kt&&ve(ye+131072);for(var za=(1<<ht)-1,Ga=(1<<Nt)-1,Da=ht+Nt+18;nn||Z+Da<sn;){var ka=Ce[i(Le,Z)&za],si=ka>>>4;if(Z+=ka&15,Z>sn)throw"unexpected EOF";if(!ka)throw"invalid length/literal";if(si<256)Qe[ye++]=si;else if(si==256){Ce=null;break}else{var di=si-254;if(si>264){var Tr=si-257,Ma=_[Tr];di=l(Le,Z,(1<<Ma)-1)+n[Tr],Z+=Ma}var zr=be[i(Le,Z)&Ga],Ar=zr>>>4;if(!zr)throw"invalid distance";Z+=zr&15;var Yr=u[Ar];if(Ar>3){var Ma=C[Ar];Yr+=i(Le,Z)&(1<<Ma)-1,Z+=Ma}if(Z>sn)throw"unexpected EOF";Kt&&ve(ye+131072);for(var Gr=ye+di;ye<Gr;ye+=4)Qe[ye]=Qe[ye-Yr],Qe[ye+1]=Qe[ye+1-Yr],Qe[ye+2]=Qe[ye+2-Yr],Qe[ye+3]=Qe[ye+3-Yr];ye=Gr}}ot.l=Ce,ot.p=Z,ot.b=ye,Ce&&(z=1,ot.m=ht,ot.d=be,ot.n=Nt)}while(!z);return ye==Qe.length?Qe:O(Qe,0,ye)},D=function(Le,Qe,ot){ot<<=Qe&7;var _t=Qe/8>>0;Le[_t]|=ot,Le[_t+1]|=ot>>>8},R=function(Le,Qe,ot){ot<<=Qe&7;var _t=Qe/8>>0;Le[_t]|=ot,Le[_t+1]|=ot>>>8,Le[_t+2]|=ot>>>16},k=function(Le,Qe){for(var ot=[],_t=0;_t<Le.length;++_t)Le[_t]&&ot.push({s:_t,f:Le[_t]});var Kt=ot.length,nn=ot.slice();if(!Kt)return[new P(0),0];if(Kt==1){var ve=new P(ot[0].s+1);return ve[ot[0].s]=1,[ve,1]}ot.sort(function(ia,Dr){return ia.f-Dr.f}),ot.push({s:-1,f:25001});var z=ot[0],Z=ot[1],ye=0,Ce=1,be=2;for(ot[0]={s:-1,f:z.f+Z.f,l:z,r:Z};Ce!=Kt-1;)z=ot[ot[ye].f<ot[be].f?ye++:be++],Z=ot[ye!=Ce&&ot[ye].f<ot[be].f?ye++:be++],ot[Ce++]={s:-1,f:z.f+Z.f,l:z,r:Z};for(var ht=nn[0].s,_t=1;_t<Kt;++_t)nn[_t].s>ht&&(ht=nn[_t].s);var Nt=new y(ht+1),sn=H(ot[Ce-1],Nt,0);if(sn>Qe){var _t=0,pn=0,zt=sn-Qe,qn=1<<zt;for(nn.sort(function(Dr,na){return Nt[na.s]-Nt[Dr.s]||Dr.f-na.f});_t<Kt;++_t){var Un=nn[_t].s;if(Nt[Un]>Qe)pn+=qn-(1<<sn-Nt[Un]),Nt[Un]=Qe;else break}for(pn>>>=zt;pn>0;){var rr=nn[_t].s;Nt[rr]<Qe?pn-=1<<Qe-Nt[rr]++-1:++_t}for(;_t>=0&&pn;--_t){var Sr=nn[_t].s;Nt[Sr]==Qe&&(--Nt[Sr],++pn)}sn=Qe}return[new P(Nt),sn]},H=function(Le,Qe,ot){return Le.s==-1?Math.max(H(Le.l,Qe,ot+1),H(Le.r,Qe,ot+1)):Qe[Le.s]=ot},J=function(Le){for(var Qe=Le.length;Qe&&!Le[--Qe];);for(var ot=new y(++Qe),_t=0,Kt=Le[0],nn=1,ve=function(Z){ot[_t++]=Z},z=1;z<=Qe;++z)if(Le[z]==Kt&&z!=Qe)++nn;else{if(!Kt&&nn>2){for(;nn>138;nn-=138)ve(32754);nn>2&&(ve(nn>10?nn-11<<5|28690:nn-3<<5|12305),nn=0)}else if(nn>3){for(ve(Kt),--nn;nn>6;nn-=6)ve(8304);nn>2&&(ve(nn-3<<5|8208),nn=0)}for(;nn--;)ve(Kt);nn=1,Kt=Le[z]}return[ot.subarray(0,_t),Qe]},U=function(Le,Qe){for(var ot=0,_t=0;_t<Qe.length;++_t)ot+=Le[_t]*Qe[_t];return ot},K=function(Le,Qe,ot){var _t=ot.length,Kt=x(Qe+2);Le[Kt]=_t&255,Le[Kt+1]=_t>>>8,Le[Kt+2]=Le[Kt]^255,Le[Kt+3]=Le[Kt+1]^255;for(var nn=0;nn<_t;++nn)Le[Kt+nn+4]=ot[nn];return(Kt+4+_t)*8},G=function(Le,Qe,ot,_t,Kt,nn,ve,z,Z,ye,Ce){D(Qe,Ce++,ot),++Kt[256];for(var be=k(Kt,15),ht=be[0],Nt=be[1],sn=k(nn,15),pn=sn[0],zt=sn[1],qn=J(ht),Un=qn[0],rr=qn[1],Sr=J(pn),ia=Sr[0],Dr=Sr[1],na=new y(19),Tr=0;Tr<Un.length;++Tr)na[Un[Tr]&31]++;for(var Tr=0;Tr<ia.length;++Tr)na[ia[Tr]&31]++;for(var ma=k(na,7),ha=ma[0],Oa=ma[1],xa=19;xa>4&&!ha[m[xa-1]];--xa);var ka=ye+5<<3,Ha=U(Kt,g)+U(nn,p)+ve,Ia=U(Kt,ht)+U(nn,pn)+ve+14+3*xa+U(na,ha)+(2*na[16]+3*na[17]+7*na[18]);if(ka<=Ha&&ka<=Ia)return K(Qe,Ce,Le.subarray(Z,Z+ye));var Yr,za,Ga,Da;if(D(Qe,Ce,1+(Ia<Ha)),Ce+=2,Ia<Ha){Yr=h(ht,Nt,0),za=ht,Ga=h(pn,zt,0),Da=pn;var si=h(ha,Oa,0);D(Qe,Ce,rr-257),D(Qe,Ce+5,Dr-1),D(Qe,Ce+10,xa-4),Ce+=14;for(var Tr=0;Tr<xa;++Tr)D(Qe,Ce+3*Tr,ha[m[Tr]]);Ce+=3*xa;for(var di=[Un,ia],Ma=0;Ma<2;++Ma)for(var zr=di[Ma],Tr=0;Tr<zr.length;++Tr){var Ar=zr[Tr]&31;D(Qe,Ce,si[Ar]),Ce+=ha[Ar],Ar>15&&(D(Qe,Ce,zr[Tr]>>>5&127),Ce+=zr[Tr]>>>12)}}else Yr=S,za=g,Ga=B,Da=p;for(var Tr=0;Tr<z;++Tr)if(_t[Tr]>255){var Ar=_t[Tr]>>>18&31;R(Qe,Ce,Yr[Ar+257]),Ce+=za[Ar+257],Ar>7&&(D(Qe,Ce,_t[Tr]>>>23&31),Ce+=_[Ar]);var Gr=_t[Tr]&31;R(Qe,Ce,Ga[Gr]),Ce+=Da[Gr],Gr>3&&(R(Qe,Ce,_t[Tr]>>>5&8191),Ce+=C[Gr])}else R(Qe,Ce,Yr[_t[Tr]]),Ce+=za[_t[Tr]];return R(Qe,Ce,Yr[256]),Ce+za[256]},N=new E([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Q=new P(0),X=function(Le,Qe,ot,_t,Kt,nn){var ve=Le.length,z=new P(_t+ve+5*(1+Math.floor(ve/7e3))+Kt),Z=z.subarray(_t,z.length-Kt),ye=0;if(!Qe||ve<8)for(var Ce=0;Ce<=ve;Ce+=65535){var be=Ce+65535;be<ve?ye=K(Z,ye,Le.subarray(Ce,be)):(Z[Ce]=nn,ye=K(Z,ye,Le.subarray(Ce,ve)))}else{for(var ht=N[Qe-1],Nt=ht>>>13,sn=ht&8191,pn=(1<<ot)-1,zt=new y(32768),qn=new y(pn+1),Un=Math.ceil(ot/3),rr=2*Un,Sr=function(Ca){return(Le[Ca]^Le[Ca+1]<<Un^Le[Ca+2]<<rr)&pn},ia=new E(25e3),Dr=new y(288),na=new y(32),Tr=0,ma=0,Ce=0,ha=0,Oa=0,xa=0;Ce<ve;++Ce){var ka=Sr(Ce),Ha=Ce&32767,Ia=qn[ka];if(zt[Ha]=Ia,qn[ka]=Ha,Oa<=Ce){var Yr=ve-Ce;if((Tr>7e3||ha>24576)&&Yr>423){ye=G(Le,Z,0,ia,Dr,na,ma,ha,xa,Ce-xa,ye),ha=Tr=ma=0,xa=Ce;for(var za=0;za<286;++za)Dr[za]=0;for(var za=0;za<30;++za)na[za]=0}var Ga=2,Da=0,si=sn,di=Ha-Ia&32767;if(Yr>2&&ka==Sr(Ce-di))for(var Ma=Math.min(Nt,Yr)-1,zr=Math.min(32767,Ce),Ar=Math.min(258,Yr);di<=zr&&--si&&Ha!=Ia;){if(Le[Ce+Ga]==Le[Ce+Ga-di]){for(var Gr=0;Gr<Ar&&Le[Ce+Gr]==Le[Ce+Gr-di];++Gr);if(Gr>Ga){if(Ga=Gr,Da=di,Gr>Ma)break;for(var qr=Math.min(di,Gr-2),_a=0,za=0;za<qr;++za){var Jr=Ce-di+za+32768&32767,ji=zt[Jr],Fa=Jr-ji+32768&32767;Fa>_a&&(_a=Fa,Ia=Jr)}}}Ha=Ia,Ia=zt[Ha],di+=Ha-Ia+32768&32767}if(Da){ia[ha++]=268435456|e[Ga]<<18|o[Da];var vi=e[Ga]&31,vo=o[Da]&31;ma+=_[vi]+C[vo],++Dr[257+vi],++na[vo],Oa=Ce+Ga,++Tr}else ia[ha++]=Le[Ce],++Dr[Le[Ce]]}}ye=G(Le,Z,nn,ia,Dr,na,ma,ha,xa,Ce-xa,ye),nn||(ye=K(Z,ye,Q))}return O(z,0,_t+x(ye)+Kt)},te=function(){for(var Le=new E(256),Qe=0;Qe<256;++Qe){for(var ot=Qe,_t=9;--_t;)ot=(ot&1&&3988292384)^ot>>>1;Le[Qe]=ot}return Le}(),oe=function(){var Le=4294967295;return{p:function(Qe){for(var ot=Le,_t=0;_t<Qe.length;++_t)ot=te[ot&255^Qe[_t]]^ot>>>8;Le=ot},d:function(){return Le^4294967295}}},me=function(){var Le=1,Qe=0;return{p:function(ot){for(var _t=Le,Kt=Qe,nn=ot.length,ve=0;ve!=nn;){for(var z=Math.min(ve+5552,nn);ve<z;++ve)_t+=ot[ve],Kt+=_t;_t%=65521,Kt%=65521}Le=_t,Qe=Kt},d:function(){return(Le>>>8<<16|(Qe&255)<<8|Qe>>>8)+((Le&255)<<23)*2}}},se=function(Le,Qe,ot,_t,Kt){return X(Le,Qe.level==null?6:Qe.level,Qe.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(Le.length)))*1.5):12+Qe.mem,ot,_t,!Kt)},_e=function(Le,Qe){var ot={};for(var _t in Le)ot[_t]=Le[_t];for(var _t in Qe)ot[_t]=Qe[_t];return ot},Ae=function(Le,Qe,ot){for(var _t=Le(),Kt=Le.toString(),nn=Kt.slice(Kt.indexOf("[")+1,Kt.lastIndexOf("]")).replace(/ /g,"").split(","),ve=0;ve<_t.length;++ve){var z=_t[ve],Z=nn[ve];if(typeof z=="function"){Qe+=";"+Z+"=";var ye=z.toString();if(z.prototype)if(ye.indexOf("[native code]")!=-1){var Ce=ye.indexOf(" ",8)+1;Qe+=ye.slice(Ce,ye.indexOf("(",Ce))}else{Qe+=ye;for(var be in z.prototype)Qe+=";"+Z+".prototype."+be+"="+z.prototype[be].toString()}else Qe+=ye}else ot[Z]=z}return[Qe,ot]},Ee=[],pe=function(Le){var Qe=[];for(var ot in Le)(Le[ot]instanceof P||Le[ot]instanceof y||Le[ot]instanceof E)&&Qe.push((Le[ot]=new Le[ot].constructor(Le[ot])).buffer);return Qe},he=function(Le,Qe,ot,_t){var Kt;if(!Ee[ot]){for(var nn="",ve={},z=Le.length-1,Z=0;Z<z;++Z)Kt=Ae(Le[Z],nn,ve),nn=Kt[0],ve=Kt[1];Ee[ot]=Ae(Le[z],nn,ve)}var ye=_e({},Ee[ot][1]);return Y(Ee[ot][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+Qe.toString()+"}",ot,ye,pe(ye),_t)},ie=function(){return[P,y,E,_,C,m,n,u,w,b,f,h,A,l,i,x,O,T,et,ke,re]},fe=function(){return[P,y,E,_,C,m,e,o,S,g,B,p,f,N,Q,h,D,R,k,H,J,U,K,G,x,O,X,se,$e,ke]},ge=function(){return[Xe,ze,De,oe,te]},ce=function(){return[xt,Ke]},Ie=function(){return[yt,De,me]},Fe=function(){return[Et]},ke=function(Le){return postMessage(Le,[Le.buffer])},re=function(Le){return Le&&Le.size&&new P(Le.size)},F=function(Le,Qe,ot,_t,Kt,nn){var ve=he(ot,_t,Kt,function(z,Z){ve.terminate(),nn(z,Z)});return Qe.consume||(Le=new P(Le)),ve.postMessage([Le,Qe],[Le.buffer]),function(){ve.terminate()}},W=function(Le){return Le.ondata=function(Qe,ot){return postMessage([Qe,ot],[Qe.buffer])},function(Qe){return Le.push(Qe.data[0],Qe.data[1])}},de=function(Le,Qe,ot,_t,Kt){var nn,ve=he(Le,_t,Kt,function(z,Z){z?(ve.terminate(),Qe.ondata.call(Qe,z)):(Z[1]&&ve.terminate(),Qe.ondata.call(Qe,z,Z[0],Z[1]))});ve.postMessage(ot),Qe.push=function(z,Z){if(nn)throw"stream finished";if(!Qe.ondata)throw"no stream handler";ve.postMessage([z,nn=Z],[z.buffer])},Qe.terminate=function(){ve.terminate()}},ne=function(Le,Qe){return Le[Qe]|Le[Qe+1]<<8},le=function(Le,Qe){return(Le[Qe]|Le[Qe+1]<<8|Le[Qe+2]<<16)+(Le[Qe+3]<<23)*2},De=function(Le,Qe,ot){for(;ot;++Qe)Le[Qe]=ot,ot>>>=8},Xe=function(Le,Qe){var ot=Qe.filename;if(Le[0]=31,Le[1]=139,Le[2]=8,Le[8]=Qe.level<2?4:Qe.level==9?2:0,Le[9]=3,Qe.mtime!=0&&De(Le,4,Math.floor(new Date(Qe.mtime||Date.now())/1e3)),ot){Le[3]=8;for(var _t=0;_t<=ot.length;++_t)Le[_t+10]=ot.charCodeAt(_t)}},xt=function(Le){if(Le[0]!=31||Le[1]!=139||Le[2]!=8)throw"invalid gzip data";var Qe=Le[3],ot=10;Qe&4&&(ot+=Le[10]|(Le[11]<<8)+2);for(var _t=(Qe>>3&1)+(Qe>>4&1);_t>0;_t-=!Le[ot++]);return ot+(Qe&2)},Ke=function(Le){var Qe=Le.length;return(Le[Qe-4]|Le[Qe-3]<<8|Le[Qe-2]<<16)+2*(Le[Qe-1]<<23)},ze=function(Le){return 10+(Le.filename&&Le.filename.length+1||0)},yt=function(Le,Qe){var ot=Qe.level,_t=ot==0?0:ot<6?1:ot==9?3:2;Le[0]=120,Le[1]=_t<<6|(_t?32-2*_t:1)},Et=function(Le){if((Le[0]&15)!=8||Le[0]>>>4>7||(Le[0]<<8|Le[1])%31)throw"invalid zlib data";if(Le[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function ct(Le,Qe){return!Qe&&typeof Le=="function"&&(Qe=Le,Le={}),this.ondata=Qe,Le}var lt=function(){function Le(Qe,ot){!ot&&typeof Qe=="function"&&(ot=Qe,Qe={}),this.ondata=ot,this.o=Qe||{}}return Le.prototype.p=function(Qe,ot){this.ondata(se(Qe,this.o,0,0,!ot),ot)},Le.prototype.push=function(Qe,ot){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=ot,this.p(Qe,ot||!1)},Le}(),rt=function(){function Le(Qe,ot){de([fe,function(){return[W,lt]}],this,ct.call(this,Qe,ot),function(_t){var Kt=new lt(_t.data);onmessage=W(Kt)},6)}return Le}();function qe(Le,Qe,ot){if(ot||(ot=Qe,Qe={}),typeof ot!="function")throw"no callback";return F(Le,Qe,[fe],function(_t){return ke($e(_t.data[0],_t.data[1]))},0,ot)}function $e(Le,Qe){return Qe===void 0&&(Qe={}),se(Le,Qe,0,0)}var Pe=function(){function Le(Qe){this.s={},this.p=new P(0),this.ondata=Qe}return Le.prototype.e=function(Qe){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var ot=this.p.length,_t=new P(ot+Qe.length);_t.set(this.p),_t.set(Qe,ot),this.p=_t},Le.prototype.c=function(Qe){this.d=this.s.i=Qe||!1;var ot=this.s.b,_t=T(this.p,this.o,this.s);this.ondata(O(_t,ot,this.s.b),this.d),this.o=O(_t,this.s.b-32768),this.s.b=this.o.length,this.p=O(this.p,this.s.p/8>>0),this.s.p&=7},Le.prototype.push=function(Qe,ot){this.e(Qe),this.c(ot)},Le}(),je=function(){function Le(Qe){this.ondata=Qe,de([ie,function(){return[W,Pe]}],this,0,function(){var ot=new Pe;onmessage=W(ot)},7)}return Le}();function Ne(Le,Qe,ot){if(ot||(ot=Qe,Qe={}),typeof ot!="function")throw"no callback";return F(Le,Qe,[ie],function(_t){return ke(et(_t.data[0],re(_t.data[1])))},1,ot)}function et(Le,Qe){return T(Le,Qe)}var mt=function(){function Le(Qe,ot){this.c=oe(),this.l=0,this.v=1,lt.call(this,Qe,ot)}return Le.prototype.push=function(Qe,ot){lt.prototype.push.call(this,Qe,ot)},Le.prototype.p=function(Qe,ot){this.c.p(Qe),this.l+=Qe.length;var _t=se(Qe,this.o,this.v&&ze(this.o),ot&&8,!ot);this.v&&(Xe(_t,this.o),this.v=0),ot&&(De(_t,_t.length-8,this.c.d()),De(_t,_t.length-4,this.l)),this.ondata(_t,ot)},Le}(),At=function(){function Le(Qe,ot){de([fe,ge,function(){return[W,lt,mt]}],this,ct.call(this,Qe,ot),function(_t){var Kt=new mt(_t.data);onmessage=W(Kt)},8)}return Le}();function Ut(Le,Qe,ot){if(ot||(ot=Qe,Qe={}),typeof ot!="function")throw"no callback";return F(Le,Qe,[fe,ge,function(){return[Xt]}],function(_t){return ke(Xt(_t.data[0],_t.data[1]))},2,ot)}function Xt(Le,Qe){Qe===void 0&&(Qe={});var ot=oe(),_t=Le.length;ot.p(Le);var Kt=se(Le,Qe,ze(Qe),8),nn=Kt.length;return Xe(Kt,Qe),De(Kt,nn-8,ot.d()),De(Kt,nn-4,_t),Kt}var un=function(){function Le(Qe){this.v=1,Pe.call(this,Qe)}return Le.prototype.push=function(Qe,ot){if(Pe.prototype.e.call(this,Qe),this.v){var _t=xt(this.p);if(_t>=this.p.length&&!ot)return;this.p=this.p.subarray(_t),this.v=0}if(ot){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}Pe.prototype.c.call(this,ot)},Le}(),jt=function(){function Le(Qe){this.ondata=Qe,de([ie,ce,function(){return[W,Pe,un]}],this,0,function(){var ot=new un;onmessage=W(ot)},9)}return Le}();function Zt(Le,Qe,ot){if(ot||(ot=Qe,Qe={}),typeof ot!="function")throw"no callback";return F(Le,Qe,[ie,ce,function(){return[Mt]}],function(_t){return ke(Mt(_t.data[0]))},3,ot)}function Mt(Le,Qe){return T(Le.subarray(xt(Le),-8),Qe||new P(Ke(Le)))}var Tt=function(){function Le(Qe,ot){this.c=me(),this.v=1,lt.call(this,Qe,ot)}return Le.prototype.push=function(Qe,ot){lt.prototype.push.call(this,Qe,ot)},Le.prototype.p=function(Qe,ot){this.c.p(Qe);var _t=se(Qe,this.o,this.v&&2,ot&&4,!ot);this.v&&(yt(_t,this.o),this.v=0),ot&&De(_t,_t.length-4,this.c.d()),this.ondata(_t,ot)},Le}(),Ct=function(){function Le(Qe,ot){de([fe,Ie,function(){return[W,lt,Tt]}],this,ct.call(this,Qe,ot),function(_t){var Kt=new Tt(_t.data);onmessage=W(Kt)},10)}return Le}();function Re(Le,Qe,ot){if(ot||(ot=Qe,Qe={}),typeof ot!="function")throw"no callback";return F(Le,Qe,[fe,Ie,function(){return[We]}],function(_t){return ke(We(_t.data[0],_t.data[1]))},4,ot)}function We(Le,Qe){Qe===void 0&&(Qe={});var ot=me();ot.p(Le);var _t=se(Le,Qe,2,4);return yt(_t,Qe),De(_t,_t.length-4,ot.d()),_t}var St=function(){function Le(Qe){this.v=1,Pe.call(this,Qe)}return Le.prototype.push=function(Qe,ot){if(Pe.prototype.e.call(this,Qe),this.v){if(this.p.length<2&&!ot)return;this.p=this.p.subarray(2),this.v=0}if(ot){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}Pe.prototype.c.call(this,ot)},Le}(),ft=function(){function Le(Qe){this.ondata=Qe,de([ie,Fe,function(){return[W,Pe,St]}],this,0,function(){var ot=new St;onmessage=W(ot)},11)}return Le}();function It(Le,Qe,ot){if(ot||(ot=Qe,Qe={}),typeof ot!="function")throw"no callback";return F(Le,Qe,[ie,Fe,function(){return[Ot]}],function(_t){return ke(Ot(_t.data[0],re(_t.data[1])))},5,ot)}function Ot(Le,Qe){return T((Et(Le),Le.subarray(2,-4)),Qe)}var bt=function(){function Le(Qe){this.G=un,this.I=Pe,this.Z=St,this.ondata=Qe}return Le.prototype.push=function(Qe,ot){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(Qe,ot);else{if(this.p&&this.p.length){var _t=new P(this.p.length+Qe.length);_t.set(this.p),_t.set(Qe,this.p.length)}else this.p=Qe;if(this.p.length>2){var Kt=this,nn=function(){Kt.ondata.apply(Kt,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(nn):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(nn):new this.Z(nn),this.s.push(this.p,ot),this.p=null}}},Le}(),Ht=function(){function Le(Qe){this.G=jt,this.I=je,this.Z=ft,this.ondata=Qe}return Le.prototype.push=function(Qe,ot){bt.prototype.push.call(this,Qe,ot)},Le}();function Gt(Le,Qe,ot){if(ot||(ot=Qe,Qe={}),typeof ot!="function")throw"no callback";return Le[0]==31&&Le[1]==139&&Le[2]==8?Zt(Le,Qe,ot):(Le[0]&15)!=8||Le[0]>>4>7||(Le[0]<<8|Le[1])%31?Ne(Le,Qe,ot):It(Le,Qe,ot)}function xn(Le,Qe){return Le[0]==31&&Le[1]==139&&Le[2]==8?Mt(Le,Qe):(Le[0]&15)!=8||Le[0]>>4>7||(Le[0]<<8|Le[1])%31?et(Le,Qe):Ot(Le,Qe)}var vn=function(Le,Qe,ot,_t){for(var Kt in Le){var nn=Le[Kt],ve=Qe+Kt;nn instanceof P?ot[ve]=[nn,_t]:Array.isArray(nn)?ot[ve]=[nn[0],_e(_t,nn[1])]:vn(nn,ve+"/",ot,_t)}};function sr(Le,Qe){var ot=Le.length;if(!Qe&&typeof TextEncoder!="undefined")return new TextEncoder().encode(Le);for(var _t=new P(Le.length+(Le.length>>>1)),Kt=0,nn=function(ye){_t[Kt++]=ye},ve=0;ve<ot;++ve){if(Kt+5>_t.length){var z=new P(Kt+8+(ot-ve<<1));z.set(_t),_t=z}var Z=Le.charCodeAt(ve);Z<128||Qe?nn(Z):Z<2048?(nn(192|Z>>>6),nn(128|Z&63)):Z>55295&&Z<57344?(Z=65536+(Z&1023<<10)|Le.charCodeAt(++ve)&1023,nn(240|Z>>>18),nn(128|Z>>>12&63),nn(128|Z>>>6&63),nn(128|Z&63)):(nn(224|Z>>>12),nn(128|Z>>>6&63),nn(128|Z&63))}return O(_t,0,Kt)}function xr(Le,Qe){var ot="";if(!Qe&&typeof TextDecoder!="undefined")return new TextDecoder().decode(Le);for(var _t=0;_t<Le.length;){var Kt=Le[_t++];Kt<128||Qe?ot+=String.fromCharCode(Kt):Kt<224?ot+=String.fromCharCode((Kt&31)<<6|Le[_t++]&63):Kt<240?ot+=String.fromCharCode((Kt&15)<<12|(Le[_t++]&63)<<6|Le[_t++]&63):(Kt=((Kt&15)<<18|(Le[_t++]&63)<<12|(Le[_t++]&63)<<6|Le[_t++]&63)-65536,ot+=String.fromCharCode(55296|Kt>>10,56320|Kt&1023))}return ot}var Kn=function(Le,Qe){return Qe+30+ne(Le,Qe+26)+ne(Le,Qe+28)},En=function(Le,Qe,ot){var _t=ne(Le,Qe+28),Kt=xr(Le.subarray(Qe+46,Qe+46+_t),!(ne(Le,Qe+8)&2048)),nn=Qe+46+_t,ve=ot?Qr(Le,nn):[le(Le,Qe+20),le(Le,Qe+24),le(Le,Qe+42)],z=ve[0],Z=ve[1],ye=ve[2];return[ne(Le,Qe+10),z,Z,Kt,nn+ne(Le,Qe+30)+ne(Le,Qe+32),ye]},Qr=function(Le,Qe){for(;ne(Le,Qe)!=1;Qe+=4+ne(Le,Qe+2));return[le(Le,Qe+12),le(Le,Qe+4),le(Le,Qe+20)]},sa=function(Le,Qe,ot,_t,Kt,nn,ve,z,Z,ye){var Ce=nn.length,be=_t.length;De(Le,Qe,Z!=null?33639248:67324752),Qe+=4,Z!=null&&(Le[Qe]=20,Qe+=2),Le[Qe]=20,Qe+=2,Le[Qe++]=ye==8&&(z.level==1?6:z.level<6?4:z.level==9?2:0),Le[Qe++]=ve&&8,Le[Qe]=ye,Qe+=2;var ht=new Date(z.mtime||Date.now()),Nt=ht.getFullYear()-1980;if(Nt<0||Nt>119)throw"date not in range 1980-2099";De(Le,Qe,(Nt<<24)*2|ht.getMonth()+1<<21|ht.getDate()<<16|ht.getHours()<<11|ht.getMinutes()<<5|ht.getSeconds()>>>1),Qe+=4,De(Le,Qe,ot),De(Le,Qe+4,be),De(Le,Qe+8,Kt),De(Le,Qe+12,Ce),Qe+=16,Z!=null&&(De(Le,Qe+=10,Z),Qe+=4),Le.set(nn,Qe),Qe+=Ce,Z==null&&Le.set(_t,Qe)},Xr=function(Le,Qe,ot,_t,Kt){De(Le,Qe,101010256),De(Le,Qe+8,ot),De(Le,Qe+10,ot),De(Le,Qe+12,_t),De(Le,Qe+16,Kt)};function Nr(Le,Qe,ot){if(ot||(ot=Qe,Qe={}),typeof ot!="function")throw"no callback";var _t={};vn(Le,"",_t,Qe);var Kt=Object.keys(_t),nn=Kt.length,ve=0,z=0,Z=nn,ye=new Array(nn),Ce=[],be=function(){for(var pn=0;pn<Ce.length;++pn)Ce[pn]()},ht=function(){var pn=new P(z+22),zt=ve,qn=z-ve;z=0;for(var Un=0;Un<Z;++Un){var rr=ye[Un];try{sa(pn,z,rr.c,rr.d,rr.m,rr.n,rr.u,rr.p,null,rr.t),sa(pn,ve,rr.c,rr.d,rr.m,rr.n,rr.u,rr.p,z,rr.t),ve+=46+rr.n.length,z+=30+rr.n.length+rr.d.length}catch(Sr){return ot(Sr,null)}}Xr(pn,ve,ye.length,qn,zt),ot(null,pn)};nn||ht();for(var Nt=function(pn){var zt=Kt[pn],qn=_t[zt],Un=qn[0],rr=qn[1],Sr=oe(),ia=Un.length;Sr.p(Un);var Dr=sr(zt),na=Dr.length,Tr=rr.level==0?0:8,ma=function(ha,Oa){if(ha)be(),ot(ha,null);else{var xa=Oa.length;ye[pn]={t:Tr,d:Oa,m:ia,c:Sr.d(),u:zt.length!=xa,n:Dr,p:rr},ve+=30+na+xa,z+=76+2*na+xa,--nn||ht()}};if(Dr.length>65535&&ma("filename too long",null),!Tr)ma(null,Un);else if(ia<16e4)try{ma(null,$e(Un,rr))}catch(ha){ma(ha,null)}else Ce.push(qe(Un,rr,ma))},sn=0;sn<Z;++sn)Nt(sn);return be}function ba(Le,Qe){Qe===void 0&&(Qe={});var ot={},_t=[];vn(Le,"",ot,Qe);var Kt=0,nn=0;for(var ve in ot){var z=ot[ve],Z=z[0],ye=z[1],Ce=ye.level==0?0:8,be=sr(ve),ht=be.length;if(be.length>65535)throw"filename too long";var Nt=Ce?$e(Z,ye):Z,sn=Nt.length,pn=oe();pn.p(Z),_t.push({t:Ce,d:Nt,m:Z.length,c:pn.d(),u:ve.length!=ht,n:be,o:Kt,p:ye}),Kt+=30+ht+sn,nn+=76+2*ht+sn}for(var zt=new P(nn+22),qn=Kt,Un=nn-Kt,rr=0;rr<_t.length;++rr){var Sr=_t[rr];sa(zt,Sr.o,Sr.c,Sr.d,Sr.m,Sr.n,Sr.u,Sr.p,null,Sr.t),sa(zt,Kt,Sr.c,Sr.d,Sr.m,Sr.n,Sr.u,Sr.p,Sr.o,Sr.t),Kt+=46+Sr.n.length}return Xr(zt,Kt,_t.length,Un,qn),zt}function ja(Le,Qe){if(typeof Qe!="function")throw"no callback";for(var ot=[],_t=function(){for(var ht=0;ht<ot.length;++ht)ot[ht]()},Kt={},nn=Le.length-22;le(Le,nn)!=101010256;--nn)if(!nn||Le.length-nn>65558){Qe("invalid zip file",null);return}var ve=ne(Le,nn+8);ve||Qe(null,{});var z=ve,Z=le(Le,nn+16),ye=Z==4294967295;if(ye){if(nn=le(Le,nn-12),le(Le,nn)!=101075792)throw"invalid zip file";z=ve=le(Le,nn+32),Z=le(Le,nn+48)}for(var Ce=function(ht){var Nt=En(Le,Z,ye),sn=Nt[0],pn=Nt[1],zt=Nt[2],qn=Nt[3],Un=Nt[4],rr=Nt[5],Sr=Kn(Le,rr);Z=Un;var ia=function(na,Tr){na?(_t(),Qe(na,null)):(Kt[qn]=Tr,--ve||Qe(null,Kt))};if(!sn)ia(null,O(Le,Sr,Sr+pn));else if(sn==8){var Dr=Le.subarray(Sr,Sr+pn);if(pn<32e4)try{ia(null,et(Dr,new P(zt)))}catch(na){ia(na,null)}else ot.push(Ne(Dr,{size:zt},ia))}else ia("unknown compression type "+sn,null)},be=0;be<z;++be)Ce(be);return _t}function oi(Le){for(var Qe={},ot=Le.length-22;le(Le,ot)!=101010256;--ot)if(!ot||Le.length-ot>65558)throw"invalid zip file";var _t=ne(Le,ot+8);if(!_t)return{};var Kt=le(Le,ot+16),nn=Kt==4294967295;if(nn){if(ot=le(Le,ot-12),le(Le,ot)!=101075792)throw"invalid zip file";_t=le(Le,ot+32),Kt=le(Le,ot+48)}for(var ve=0;ve<_t;++ve){var z=En(Le,Kt,nn),Z=z[0],ye=z[1],Ce=z[2],be=z[3],ht=z[4],Nt=z[5],sn=Kn(Le,Nt);if(Kt=ht,!Z)Qe[be]=O(Le,sn,sn+ye);else if(Z==8)Qe[be]=et(Le.subarray(sn,sn+ye),new P(Ce));else throw"unknown compression type "+Z}return Qe}},csWT:function(Ze,we,M){Ze.exports=M.p+"static/choose.4ad1045f.svg"},dMvE:function(Ze,we){var M={linear:function(Y){return Y},quadraticIn:function(Y){return Y*Y},quadraticOut:function(Y){return Y*(2-Y)},quadraticInOut:function(Y){return(Y*=2)<1?.5*Y*Y:-.5*(--Y*(Y-2)-1)},cubicIn:function(Y){return Y*Y*Y},cubicOut:function(Y){return--Y*Y*Y+1},cubicInOut:function(Y){return(Y*=2)<1?.5*Y*Y*Y:.5*((Y-=2)*Y*Y+2)},quarticIn:function(Y){return Y*Y*Y*Y},quarticOut:function(Y){return 1- --Y*Y*Y*Y},quarticInOut:function(Y){return(Y*=2)<1?.5*Y*Y*Y*Y:-.5*((Y-=2)*Y*Y*Y-2)},quinticIn:function(Y){return Y*Y*Y*Y*Y},quinticOut:function(Y){return--Y*Y*Y*Y*Y+1},quinticInOut:function(Y){return(Y*=2)<1?.5*Y*Y*Y*Y*Y:.5*((Y-=2)*Y*Y*Y*Y+2)},sinusoidalIn:function(Y){return 1-Math.cos(Y*Math.PI/2)},sinusoidalOut:function(Y){return Math.sin(Y*Math.PI/2)},sinusoidalInOut:function(Y){return .5*(1-Math.cos(Math.PI*Y))},exponentialIn:function(Y){return Y===0?0:Math.pow(1024,Y-1)},exponentialOut:function(Y){return Y===1?1:1-Math.pow(2,-10*Y)},exponentialInOut:function(Y){return Y===0?0:Y===1?1:(Y*=2)<1?.5*Math.pow(1024,Y-1):.5*(-Math.pow(2,-10*(Y-1))+2)},circularIn:function(Y){return 1-Math.sqrt(1-Y*Y)},circularOut:function(Y){return Math.sqrt(1- --Y*Y)},circularInOut:function(Y){return(Y*=2)<1?-.5*(Math.sqrt(1-Y*Y)-1):.5*(Math.sqrt(1-(Y-=2)*Y)+1)},elasticIn:function(Y){var P,y=.1,E=.4;return Y===0?0:Y===1?1:(!y||y<1?(y=1,P=E/4):P=E*Math.asin(1/y)/(2*Math.PI),-(y*Math.pow(2,10*(Y-=1))*Math.sin((Y-P)*(2*Math.PI)/E)))},elasticOut:function(Y){var P,y=.1,E=.4;return Y===0?0:Y===1?1:(!y||y<1?(y=1,P=E/4):P=E*Math.asin(1/y)/(2*Math.PI),y*Math.pow(2,-10*Y)*Math.sin((Y-P)*(2*Math.PI)/E)+1)},elasticInOut:function(Y){var P,y=.1,E=.4;return Y===0?0:Y===1?1:(!y||y<1?(y=1,P=E/4):P=E*Math.asin(1/y)/(2*Math.PI),(Y*=2)<1?-.5*(y*Math.pow(2,10*(Y-=1))*Math.sin((Y-P)*(2*Math.PI)/E)):y*Math.pow(2,-10*(Y-=1))*Math.sin((Y-P)*(2*Math.PI)/E)*.5+1)},backIn:function(Y){var P=1.70158;return Y*Y*((P+1)*Y-P)},backOut:function(Y){var P=1.70158;return--Y*Y*((P+1)*Y+P)+1},backInOut:function(Y){var P=1.70158*1.525;return(Y*=2)<1?.5*(Y*Y*((P+1)*Y-P)):.5*((Y-=2)*Y*((P+1)*Y+P)+2)},bounceIn:function(Y){return 1-M.bounceOut(1-Y)},bounceOut:function(Y){return Y<1/2.75?7.5625*Y*Y:Y<2/2.75?7.5625*(Y-=1.5/2.75)*Y+.75:Y<2.5/2.75?7.5625*(Y-=2.25/2.75)*Y+.9375:7.5625*(Y-=2.625/2.75)*Y+.984375},bounceInOut:function(Y){return Y<.5?M.bounceIn(Y*2)*.5:M.bounceOut(Y*2-1)*.5+.5}},ue=M;Ze.exports=ue},dejd:function(Ze,we,M){},djh8:function(Ze,we,M){Ze.exports=M.p+"static/qrCode.42927872.png"},dmUQ:function(Ze,we,M){"use strict";var ue=M("Ff2n"),Y=M("rePB"),P=M("1OyB"),y=M("vuIU"),E=M("Ji7U"),_=M("md7G"),C=M("foSv"),m=M("q1tI"),c=M.n(m),r=M("TSYQ"),n=M.n(r),e=M("4IlW");function s(i,x){var O=Object.keys(i);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(i);x&&(T=T.filter(function(D){return Object.getOwnPropertyDescriptor(i,D).enumerable})),O.push.apply(O,T)}return O}function u(i){for(var x=1;x<arguments.length;x++){var O=arguments[x]!=null?arguments[x]:{};x%2?s(Object(O),!0).forEach(function(T){Object(Y.a)(i,T,O[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(O)):s(Object(O)).forEach(function(T){Object.defineProperty(i,T,Object.getOwnPropertyDescriptor(O,T))})}return i}function o(i){var x=f();return function(){var T=Object(C.a)(i),D;if(x){var R=Object(C.a)(this).constructor;D=Reflect.construct(T,arguments,R)}else D=T.apply(this,arguments);return Object(_.a)(this,D)}}function f(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(i){return!1}}function d(){}function a(i){i.preventDefault()}var h=function(x){return x.replace(/[^\w.-]+/g,"")},g=200,p=600,S=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,w=function(x){return x!=null},B=function(x,O){return O===x||typeof O=="number"&&typeof x=="number"&&isNaN(O)&&isNaN(x)},b=function(i){Object(E.a)(O,i);var x=o(O);function O(T){var D;Object(P.a)(this,O),D=x.call(this,T),D.onKeyDown=function(H){var J=D.props,U=J.onKeyDown,K=J.onPressEnter;if(H.keyCode===e.a.UP){var G=D.getRatio(H);D.up(H,G,null),D.stop()}else if(H.keyCode===e.a.DOWN){var N=D.getRatio(H);D.down(H,N,null),D.stop()}else H.keyCode===e.a.ENTER&&K&&K(H);if(D.recordCursorPosition(),D.lastKeyCode=H.keyCode,U){for(var Q=arguments.length,X=new Array(Q>1?Q-1:0),te=1;te<Q;te++)X[te-1]=arguments[te];U.apply(void 0,[H].concat(X))}},D.onKeyUp=function(H){var J=D.props.onKeyUp;if(D.stop(),D.recordCursorPosition(),J){for(var U=arguments.length,K=new Array(U>1?U-1:0),G=1;G<U;G++)K[G-1]=arguments[G];J.apply(void 0,[H].concat(K))}},D.onChange=function(H){var J=D.props.onChange;D.state.focused&&(D.inputting=!0),D.rawInput=D.props.parser(D.getValueFromEvent(H)),D.setState({inputValue:D.rawInput}),J(D.toNumber(D.rawInput))},D.onMouseUp=function(){var H=D.props.onMouseUp;D.recordCursorPosition(),H&&H.apply(void 0,arguments)},D.onFocus=function(){var H;D.setState({focused:!0}),(H=D.props).onFocus.apply(H,arguments)},D.onBlur=function(){var H=D.props.onBlur;D.inputting=!1,D.setState({focused:!1});var J=D.getCurrentValidValue(D.state.inputValue),U=D.setValue(J,d);if(H){var K=D.input.value,G=D.getInputDisplayValue({focus:!1,value:U});D.input.value=G&&Number(G),H.apply(void 0,arguments),D.input.value=K}},D.getRatio=function(H){var J=1;return H.metaKey||H.ctrlKey?J=.1:H.shiftKey&&(J=10),J},D.getFullNum=function(H){return isNaN(H)?H:/e/i.test(String(H))?Number(H).toFixed(18).replace(/\.?0+$/,""):H},D.getPrecision=function(H){if(w(D.props.precision))return D.props.precision;var J=String(H);if(J.indexOf("e-")>=0)return parseInt(J.slice(J.indexOf("e-")+2),10);var U=0;return J.indexOf(".")>=0&&(U=J.length-J.indexOf(".")-1),U},D.getInputDisplayValue=function(H){var J=H||D.state,U=J.focused,K=J.inputValue,G=J.value,N;U?N=K:N=D.toPrecisionAsStep(G),N==null&&(N="");var Q=D.formatWrapper(N);return w(D.props.decimalSeparator)&&(Q=Q.toString().replace(".",D.props.decimalSeparator)),Q},D.recordCursorPosition=function(){try{D.cursorStart=D.input.selectionStart,D.cursorEnd=D.input.selectionEnd,D.currentValue=D.input.value,D.cursorBefore=D.input.value.substring(0,D.cursorStart),D.cursorAfter=D.input.value.substring(D.cursorEnd)}catch(H){}},D.restoreByAfter=function(H){if(H===void 0)return!1;var J=D.input.value,U=J.lastIndexOf(H);if(U===-1)return!1;var K=D.cursorBefore.length;return D.lastKeyCode===e.a.DELETE&&D.cursorBefore.charAt(K-1)===H[0]?(D.fixCaret(K,K),!0):U+H.length===J.length?(D.fixCaret(U,U),!0):!1},D.partRestoreByAfter=function(H){return H===void 0?!1:Array.prototype.some.call(H,function(J,U){var K=H.substring(U);return D.restoreByAfter(K)})},D.isNotCompleteNumber=function(H){return isNaN(H)||H===""||H===null||H&&H.toString().indexOf(".")===H.toString().length-1},D.stop=function(){D.autoStepTimer&&clearTimeout(D.autoStepTimer)},D.down=function(H,J,U){D.pressingUpOrDown=!0,D.step("down",H,J,U)},D.up=function(H,J,U){D.pressingUpOrDown=!0,D.step("up",H,J,U)},D.saveInput=function(H){D.input=H};var R=T.value;R===void 0&&(R=T.defaultValue),D.state={focused:T.autoFocus};var k=D.getValidValue(D.toNumber(R));return D.state=u(u({},D.state),{},{inputValue:D.toPrecisionAsStep(k),value:k}),D}return Object(y.a)(O,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(D){var R=this.props,k=R.value,H=R.onChange,J=R.max,U=R.min,K=this.state.focused;if(D){if(!B(D.value,k)||!B(D.max,J)||!B(D.min,U)){var G=K?k:this.getValidValue(k),N;this.pressingUpOrDown?N=G:this.inputting?N=this.rawInput:N=this.toPrecisionAsStep(G),this.setState({value:G,inputValue:N})}var Q="value"in this.props?k:this.state.value;"max"in this.props&&D.max!==J&&typeof Q=="number"&&Q>J&&H&&H(J),"min"in this.props&&D.min!==U&&typeof Q=="number"&&Q<U&&H&&H(U)}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(D){var R=D;return R===""?R="":this.isNotCompleteNumber(parseFloat(R))?R=this.state.value:R=this.getValidValue(R),this.toNumber(R)}},{key:"getValueFromEvent",value:function(D){var R=D.target.value.trim().replace(/。/g,".");return w(this.props.decimalSeparator)&&(R=R.replace(this.props.decimalSeparator,".")),R}},{key:"getValidValue",value:function(D){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,H=parseFloat(D);return isNaN(H)?D:(H<R&&(H=R),H>k&&(H=k),H)}},{key:"setValue",value:function(D,R){var k=this.props.precision,H=this.isNotCompleteNumber(parseFloat(D))?null:parseFloat(D),J=this.state.value,U=J===void 0?null:J,K=this.state.inputValue,G=K===void 0?null:K,N=typeof H=="number"?H.toFixed(k):"".concat(H),Q=H!==U||N!=="".concat(G);return"value"in this.props?(G=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:G},R)):this.setState({value:H,inputValue:this.toPrecisionAsStep(D)},R),Q&&this.props.onChange(H),H}},{key:"getMaxPrecision",value:function(D){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,k=this.props,H=k.precision,J=k.step;if(w(H))return H;var U=this.getPrecision(R),K=this.getPrecision(J),G=this.getPrecision(D);return D?Math.max(G,U+K):U+K}},{key:"getPrecisionFactor",value:function(D){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,k=this.getMaxPrecision(D,R);return Math.pow(10,k)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(D){return this.props.formatter?this.props.formatter(D):D}},{key:"toPrecisionAsStep",value:function(D){if(this.isNotCompleteNumber(D)||D==="")return D;var R=Math.abs(this.getMaxPrecision(D));return isNaN(R)?D.toString():Number(D).toFixed(R)}},{key:"toNumber",value:function(D){var R=this.props.precision,k=this.state.focused,H=D&&D.length>16&&k;return this.isNotCompleteNumber(D)||H?D:w(R)?Math.round(D*Math.pow(10,R))/Math.pow(10,R):Number(D)}},{key:"upStep",value:function(D,R){var k=this.props.step,H=this.getPrecisionFactor(D,R),J=Math.abs(this.getMaxPrecision(D,R)),U=((H*D+H*k*R)/H).toFixed(J);return this.toNumber(U)}},{key:"downStep",value:function(D,R){var k=this.props.step,H=this.getPrecisionFactor(D,R),J=Math.abs(this.getMaxPrecision(D,R)),U=((H*D-H*k*R)/H).toFixed(J);return this.toNumber(U)}},{key:"step",value:function(D,R){var k=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,J=arguments.length>3?arguments[3]:void 0;this.stop(),R&&(R.persist(),R.preventDefault());var U=this.props;if(U.disabled)return;var K=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(K))return;var G=this["".concat(D,"Step")](K,H),N=G>U.max||G<U.min;if(G>U.max?G=U.max:G<U.min&&(G=U.min),this.setValue(G,null),this.setState({focused:!0},function(){k.pressingUpOrDown=!1}),N)return;this.autoStepTimer=setTimeout(function(){k[D](R,H,!0)},J?g:p)}},{key:"fixCaret",value:function(D,R){if(D===void 0||R===void 0||!this.input||!this.input.value)return;try{var k=this.input.selectionStart,H=this.input.selectionEnd;(D!==k||R!==H)&&this.input.setSelectionRange(D,R)}catch(J){}}},{key:"render",value:function(){var D,R=this.props,k=R.prefixCls,H=R.disabled,J=R.readOnly,U=R.useTouch,K=R.autoComplete,G=R.upHandler,N=R.downHandler,Q=R.className,X=R.max,te=R.min,oe=R.style,me=R.title,se=R.onMouseEnter,_e=R.onMouseLeave,Ae=R.onMouseOver,Ee=R.onMouseOut,pe=R.required,he=R.onClick,ie=R.tabIndex,fe=R.type,ge=R.placeholder,ce=R.id,Ie=R.inputMode,Fe=R.pattern,ke=R.step,re=R.maxLength,F=R.autoFocus,W=R.name,de=R.onPaste,ne=R.onInput,le=Object(ue.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,Xe=De.value,xt=De.focused,Ke=n()(k,(D={},Object(Y.a)(D,Q,!!Q),Object(Y.a)(D,"".concat(k,"-disabled"),H),Object(Y.a)(D,"".concat(k,"-focused"),xt),D)),ze={};Object.keys(le).forEach(function(et){(et.substr(0,5)==="data-"||et.substr(0,5)==="aria-"||et==="role")&&(ze[et]=le[et])});var yt=!J&&!H,Et=this.getInputDisplayValue(null),ct=(Xe||Xe===0)&&(isNaN(Xe)||Number(Xe)>=X),lt=(Xe||Xe===0)&&(isNaN(Xe)||Number(Xe)<=te),rt=ct||H||J,qe=lt||H||J,$e=n()("".concat(k,"-handler"),"".concat(k,"-handler-up"),Object(Y.a)({},"".concat(k,"-handler-up-disabled"),rt)),Pe=n()("".concat(k,"-handler"),"".concat(k,"-handler-down"),Object(Y.a)({},"".concat(k,"-handler-down-disabled"),qe)),je=U?{onTouchStart:rt?d:this.up,onTouchEnd:this.stop}:{onMouseDown:rt?d:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Ne=U?{onTouchStart:qe?d:this.down,onTouchEnd:this.stop}:{onMouseDown:qe?d:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return c.a.createElement("div",{className:Ke,style:oe,title:me,onMouseEnter:se,onMouseLeave:_e,onMouseOver:Ae,onMouseOut:Ee,onFocus:function(){return null},onBlur:function(){return null}},c.a.createElement("div",{className:"".concat(k,"-handler-wrap")},c.a.createElement("span",Object.assign({unselectable:"on"},je,{role:"button","aria-label":"Increase Value","aria-disabled":rt,className:$e}),G||c.a.createElement("span",{unselectable:"on",className:"".concat(k,"-handler-up-inner"),onClick:a})),c.a.createElement("span",Object.assign({unselectable:"on"},Ne,{role:"button","aria-label":"Decrease Value","aria-disabled":qe,className:Pe}),N||c.a.createElement("span",{unselectable:"on",className:"".concat(k,"-handler-down-inner"),onClick:a}))),c.a.createElement("div",{className:"".concat(k,"-input-wrap")},c.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":te,"aria-valuemax":X,"aria-valuenow":Xe,required:pe,type:fe,placeholder:ge,onPaste:de,onClick:he,onMouseUp:this.onMouseUp,className:"".concat(k,"-input"),tabIndex:ie,autoComplete:K,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:yt?this.onKeyDown:d,onKeyUp:yt?this.onKeyUp:d,autoFocus:F,maxLength:re,readOnly:J,disabled:H,max:X,min:te,step:ke,name:W,title:me,id:ce,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Et),pattern:Fe,inputMode:Ie,onInput:ne},ze))))}}]),O}(c.a.Component);b.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:S,min:-S,step:1,style:{},onChange:d,onKeyDown:d,onPressEnter:d,onFocus:d,onBlur:d,parser:h,required:!1,autoComplete:"off"};var A=b,l=we.a=A},dqUG:function(Ze,we,M){var ue=M("Gev7"),Y=M("bYtY"),P=M("6GrX"),y=M("pzxd"),E=M("gut8"),_=E.ContextCachedBy,C=function(c){ue.call(this,c)};C.prototype={constructor:C,type:"text",brush:function(c,r){var n=this.style;this.__dirty&&y.normalizeTextStyle(n,!0),n.fill=n.stroke=n.shadowBlur=n.shadowColor=n.shadowOffsetX=n.shadowOffsetY=null;var e=n.text;if(e!=null&&(e+=""),!y.needDrawText(e,n)){c.__attrCachedBy=_.NONE;return}this.setTransform(c),y.renderText(this,c,e,n,null,r),this.restoreTransform(c)},getBoundingRect:function(){var c=this.style;if(this.__dirty&&y.normalizeTextStyle(c,!0),!this._rect){var r=c.text;r!=null?r+="":r="";var n=P.getBoundingRect(c.text+"",c.font,c.textAlign,c.textVerticalAlign,c.textPadding,c.textLineHeight,c.rich);if(n.x+=c.x||0,n.y+=c.y||0,y.getStroke(c.textStroke,c.textStrokeWidth)){var e=c.textStrokeWidth;n.x-=e/2,n.y-=e/2,n.width+=e,n.height+=e}this._rect=n}return this._rect}},Y.inherits(C,ue);var m=C;Ze.exports=m},dwhp:function(Ze,we,M){},fAei:function(Ze,we,M){"use strict";M.d(we,"a",function(){return g.a});var ue=M("rePB"),Y=M("VTBJ"),P=M("KQm4"),y=M("1OyB"),E=M("vuIU"),_=M("Ji7U"),C=M("LK+K"),m=M("q1tI"),c=M("4IlW"),r=M("Kwbf"),n=M("TSYQ"),e=M.n(n),s=M("sboe"),u=M("OZM5"),o=M("815F"),f=M("ODXe"),d=M("Ff2n"),a=M("+nKL"),h=M("8XRh"),g=M("WaYH"),p=function(te,oe){var me=te.className,se=te.style,_e=te.motion,Ae=te.motionNodes,Ee=te.motionType,pe=te.onMotionStart,he=te.onMotionEnd,ie=te.active,fe=te.treeNodeRequiredProps,ge=Object(d.a)(te,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),ce=m.useState(!0),Ie=Object(f.a)(ce,2),Fe=Ie[0],ke=Ie[1],re=m.useContext(s.a),F=re.prefixCls,W=m.useRef(!1),de=function(){W.current||he(),W.current=!0};return Object(m.useEffect)(function(){Ae&&Ee==="hide"&&Fe&&ke(!1)},[Ae]),Object(m.useEffect)(function(){return Ae&&pe(),function(){Ae&&de()}},[]),Ae?m.createElement(h.default,Object.assign({ref:oe,visible:Fe},_e,{motionAppear:Ee==="show",onAppearEnd:de,onLeaveEnd:de}),function(ne,le){var De=ne.className,Xe=ne.style;return m.createElement("div",{ref:le,className:e()("".concat(F,"-treenode-motion"),De),style:Xe},Ae.map(function(xt){var Ke=xt.data,ze=Ke.key,yt=Object(d.a)(Ke,["key"]),Et=xt.isStart,ct=xt.isEnd;delete yt.children;var lt=Object(o.f)(ze,fe);return m.createElement(g.a,Object.assign({},yt,lt,{active:ie,data:xt.data,key:ze,isStart:Et,isEnd:ct}))}))}):m.createElement(g.a,Object.assign({domRef:oe,className:me,style:se},ge,{active:ie}))};p.displayName="MotionTreeNode";var S=m.forwardRef(p),w=S;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,me=te.length;if(Math.abs(oe-me)!==1)return{add:!1,key:null};function se(_e,Ae){var Ee=new Map;_e.forEach(function(he){Ee.set(he,!0)});var pe=Ae.filter(function(he){return!Ee.has(he)});return pe.length===1?pe[0]:null}return oe<me?{add:!0,key:se(X,te)}:{add:!1,key:se(te,X)}}function b(X,te,oe){var me=X.findIndex(function(Ee){var pe=Ee.data;return pe.key===oe}),se=X[me+1],_e=te.findIndex(function(Ee){var pe=Ee.data;return pe.key===oe});if(se){var Ae=te.findIndex(function(Ee){var pe=Ee.data;return pe.key===se.data.key});return te.slice(_e+1,Ae)}return te.slice(_e+1)}var A={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},l=function(){},i="RC_TREE_MOTION_".concat(Math.random()),x={key:i},O={key:i,level:0,index:0,pos:"0",node:x},T={parent:null,children:[],pos:O.pos,data:x,isStart:[],isEnd:[]};function D(X,te,oe,me){return te===!1||!oe?X:X.slice(0,Math.ceil(oe/me)+1)}function R(X){var te=X.data.key,oe=X.pos;return Object(o.e)(te,oe)}function k(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 H=function(te,oe){var me=te.prefixCls,se=te.data,_e=te.selectable,Ae=te.checkable,Ee=te.expandedKeys,pe=te.selectedKeys,he=te.checkedKeys,ie=te.loadedKeys,fe=te.loadingKeys,ge=te.halfCheckedKeys,ce=te.keyEntities,Ie=te.disabled,Fe=te.dragging,ke=te.dragOverNodeKey,re=te.dropPosition,F=te.motion,W=te.height,de=te.itemHeight,ne=te.virtual,le=te.focusable,De=te.activeItem,Xe=te.focused,xt=te.tabIndex,Ke=te.onKeyDown,ze=te.onFocus,yt=te.onBlur,Et=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"]),qe=m.useRef(null);m.useImperativeHandle(oe,function(){return{scrollTo:function(xn){qe.current.scrollTo(xn)}}});var $e=m.useState(Ee),Pe=Object(f.a)($e,2),je=Pe[0],Ne=Pe[1],et=m.useState(se),mt=Object(f.a)(et,2),At=mt[0],Ut=mt[1],Xt=m.useState(se),un=Object(f.a)(Xt,2),jt=un[0],Zt=un[1],Mt=m.useState([]),Tt=Object(f.a)(Mt,2),Ct=Tt[0],Re=Tt[1],We=m.useState(null),St=Object(f.a)(We,2),ft=St[0],It=St[1];function Ot(){Ut(se),Zt(se),Re([]),It(null),lt()}m.useEffect(function(){Ne(Ee);var Gt=B(je,Ee);if(Gt.key!==null)if(Gt.add){var xn=At.findIndex(function(Qr){var sa=Qr.data.key;return sa===Gt.key}),vn=D(b(At,se,Gt.key),ne,W,de),sr=At.slice();sr.splice(xn+1,0,T),Zt(sr),Re(vn),It("show")}else{var xr=se.findIndex(function(Qr){var sa=Qr.data.key;return sa===Gt.key}),Kn=D(b(se,At,Gt.key),ne,W,de),En=se.slice();En.splice(xr+1,0,T),Zt(En),Re(Kn),It("hide")}else At!==se&&(Ut(se),Zt(se))},[Ee,se]),m.useEffect(function(){Fe||Ot()},[Fe]);var bt=F?jt:se,Ht={expandedKeys:Ee,selectedKeys:pe,loadedKeys:ie,loadingKeys:fe,checkedKeys:he,halfCheckedKeys:ge,dragOverNodeKey:ke,dropPosition:re,keyEntities:ce};return m.createElement(m.Fragment,null,Xe&&De&&m.createElement("span",{style:A,"aria-live":"assertive"},k(De)),m.createElement("div",{role:"tree"},m.createElement("input",{style:A,disabled:le===!1||Ie,tabIndex:le!==!1?xt:null,onKeyDown:Ke,onFocus:ze,onBlur:yt,value:"",onChange:l})),m.createElement(a.a,Object.assign({},rt,{data:bt,itemKey:R,height:W,fullHeight:!1,virtual:ne,itemHeight:de,prefixCls:"".concat(me,"-list"),ref:qe}),function(Gt){var xn=Gt.pos,vn=Gt.data,sr=vn.key,xr=Object(d.a)(vn,["key"]),Kn=Gt.isStart,En=Gt.isEnd,Qr=Object(o.e)(sr,xn);delete xr.children;var sa=Object(o.f)(Qr,Ht);return m.createElement(w,Object.assign({},xr,sa,{active:De&&sr===De.data.key,pos:xn,data:Gt.data,isStart:Kn,isEnd:En,motion:F,motionNodes:sr===i?Ct:null,motionType:ft,onMotionStart:ct,onMotionEnd:Ot,treeNodeRequiredProps:Ht,onMouseMove:function(){Et(null)}}))}))},J=m.forwardRef(H);J.displayName="NodeList";var U=J,K=M("NvD2"),G=function(X){Object(_.a)(oe,X);var te=Object(C.a)(oe);function oe(){var me;return Object(y.a)(this,oe),me=te.apply(this,arguments),me.destroyed=!1,me.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},me.listRef=m.createRef(),me.onNodeDragStart=function(se,_e){var Ae=me.state,Ee=Ae.expandedKeys,pe=Ae.keyEntities,he=me.props.onDragStart,ie=_e.props.eventKey;me.dragNode=_e;var fe=Object(u.b)(Ee,ie);me.setState({dragging:!0,dragNodesKeys:Object(u.g)(ie,pe)}),me.setExpandedKeys(fe),he&&he({event:se,node:Object(o.b)(_e.props)})},me.onNodeDragEnter=function(se,_e){var Ae=me.state,Ee=Ae.expandedKeys,pe=Ae.keyEntities,he=Ae.dragNodesKeys,ie=me.props.onDragEnter,fe=_e.props,ge=fe.pos,ce=fe.eventKey;if(!me.dragNode||he.indexOf(ce)!==-1)return;var Ie=Object(u.c)(se,_e);if(me.dragNode.props.eventKey===ce&&Ie===0){me.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){me.setState({dragOverNodeKey:ce,dropPosition:Ie}),me.delayedDragEnterLogic||(me.delayedDragEnterLogic={}),Object.keys(me.delayedDragEnterLogic).forEach(function(Fe){clearTimeout(me.delayedDragEnterLogic[Fe])}),me.delayedDragEnterLogic[ge]=window.setTimeout(function(){if(!me.state.dragging)return;var Fe=Object(P.a)(Ee),ke=pe[ce];ke&&(ke.children||[]).length&&(Fe=Object(u.a)(Ee,ce)),"expandedKeys"in me.props||me.setExpandedKeys(Fe),ie&&ie({event:se,node:Object(o.b)(_e.props),expandedKeys:Fe})},400)},0)},me.onNodeDragOver=function(se,_e){var Ae=me.state.dragNodesKeys,Ee=me.props.onDragOver,pe=_e.props.eventKey;if(Ae.indexOf(pe)!==-1)return;if(me.dragNode&&pe===me.state.dragOverNodeKey){var he=Object(u.c)(se,_e);if(he===me.state.dropPosition)return;me.setState({dropPosition:he})}Ee&&Ee({event:se,node:Object(o.b)(_e.props)})},me.onNodeDragLeave=function(se,_e){var Ae=me.props.onDragLeave;me.setState({dragOverNodeKey:""}),Ae&&Ae({event:se,node:Object(o.b)(_e.props)})},me.onNodeDragEnd=function(se,_e){var Ae=me.props.onDragEnd;me.setState({dragOverNodeKey:""}),me.cleanDragState(),Ae&&Ae({event:se,node:Object(o.b)(_e.props)}),me.dragNode=null},me.onNodeDrop=function(se,_e){var Ae=me.state,Ee=Ae.dragNodesKeys,pe=Ee===void 0?[]:Ee,he=Ae.dropPosition,ie=me.props.onDrop,fe=_e.props,ge=fe.eventKey,ce=fe.pos;if(me.setState({dragOverNodeKey:""}),me.cleanDragState(),pe.indexOf(ge)!==-1){Object(r.a)(!1,"Can not drop to dragNode(include it's children node)");return}var Ie=Object(u.k)(ce),Fe={event:se,node:Object(o.b)(_e.props),dragNode:me.dragNode?Object(o.b)(me.dragNode.props):null,dragNodesKeys:pe.slice(),dropPosition:he+Number(Ie[Ie.length-1]),dropToGap:!1};he!==0&&(Fe.dropToGap=!0),ie&&ie(Fe),me.dragNode=null},me.cleanDragState=function(){var se=me.state.dragging;se&&me.setState({dragging:!1})},me.onNodeClick=function(se,_e){var Ae=me.props.onClick;Ae&&Ae(se,_e)},me.onNodeDoubleClick=function(se,_e){var Ae=me.props.onDoubleClick;Ae&&Ae(se,_e)},me.onNodeSelect=function(se,_e){var Ae=me.state.selectedKeys,Ee=me.state.keyEntities,pe=me.props,he=pe.onSelect,ie=pe.multiple,fe=_e.selected,ge=_e.key,ce=!fe;ce?ie?Ae=Object(u.a)(Ae,ge):Ae=[ge]:Ae=Object(u.b)(Ae,ge);var Ie=Ae.map(function(Fe){var ke=Ee[Fe];return ke?ke.node:null}).filter(function(Fe){return Fe});me.setUncontrolledState({selectedKeys:Ae}),he&&he(Ae,{event:"select",selected:ce,node:_e,selectedNodes:Ie,nativeEvent:se.nativeEvent})},me.onNodeCheck=function(se,_e,Ae){var Ee=me.state,pe=Ee.keyEntities,he=Ee.checkedKeys,ie=Ee.halfCheckedKeys,fe=me.props,ge=fe.checkStrictly,ce=fe.onCheck,Ie=_e.key,Fe,ke={event:"check",node:_e,checked:Ae,nativeEvent:se.nativeEvent};if(ge){var re=Ae?Object(u.a)(he,Ie):Object(u.b)(he,Ie),F=Object(u.b)(ie,Ie);Fe={checked:re,halfChecked:F},ke.checkedNodes=re.map(function(Xe){return pe[Xe]}).filter(function(Xe){return Xe}).map(function(Xe){return Xe.node}),me.setUncontrolledState({checkedKeys:re})}else{var W=Object(K.a)([].concat(Object(P.a)(he),[Ie]),!0,pe),de=W.checkedKeys,ne=W.halfCheckedKeys;if(!Ae){var le=new Set(de);le.delete(Ie);var De=Object(K.a)(Array.from(le),{checked:!1,halfCheckedKeys:ne},pe);de=De.checkedKeys,ne=De.halfCheckedKeys}Fe=de,ke.checkedNodes=[],ke.checkedNodesPositions=[],ke.halfCheckedKeys=ne,de.forEach(function(Xe){var xt=pe[Xe];if(!xt)return;var Ke=xt.node,ze=xt.pos;ke.checkedNodes.push(Ke),ke.checkedNodesPositions.push({node:Ke,pos:ze})}),me.setUncontrolledState({checkedKeys:de},!1,{halfCheckedKeys:ne})}ce&&ce(Fe,ke)},me.onNodeLoad=function(se){return new Promise(function(_e){me.setState(function(Ae){var Ee=Ae.loadedKeys,pe=Ee===void 0?[]:Ee,he=Ae.loadingKeys,ie=he===void 0?[]:he,fe=me.props,ge=fe.loadData,ce=fe.onLoad,Ie=se.key;if(!ge||pe.indexOf(Ie)!==-1||ie.indexOf(Ie)!==-1)return{};var Fe=ge(se);return Fe.then(function(){var ke=me.state,re=ke.loadedKeys,F=ke.loadingKeys,W=Object(u.a)(re,Ie),de=Object(u.b)(F,Ie);ce&&ce(W,{event:"load",node:se}),me.setUncontrolledState({loadedKeys:W}),me.setState({loadingKeys:de}),_e()}),{loadingKeys:Object(u.a)(ie,Ie)}})})},me.onNodeMouseEnter=function(se,_e){var Ae=me.props.onMouseEnter;Ae&&Ae({event:se,node:_e})},me.onNodeMouseLeave=function(se,_e){var Ae=me.props.onMouseLeave;Ae&&Ae({event:se,node:_e})},me.onNodeContextMenu=function(se,_e){var Ae=me.props.onRightClick;Ae&&(se.preventDefault(),Ae({event:se,node:_e}))},me.onFocus=function(){var se=me.props.onFocus;me.setState({focused:!0}),se&&se.apply(void 0,arguments)},me.onBlur=function(){var se=me.props.onBlur;me.setState({focused:!1}),me.onActiveChange(null),se&&se.apply(void 0,arguments)},me.getTreeNodeRequiredProps=function(){var se=me.state,_e=se.expandedKeys,Ae=se.selectedKeys,Ee=se.loadedKeys,pe=se.loadingKeys,he=se.checkedKeys,ie=se.halfCheckedKeys,fe=se.dragOverNodeKey,ge=se.dropPosition,ce=se.keyEntities;return{expandedKeys:_e||[],selectedKeys:Ae||[],loadedKeys:Ee||[],loadingKeys:pe||[],checkedKeys:he||[],halfCheckedKeys:ie||[],dragOverNodeKey:fe,dropPosition:ge,keyEntities:ce}},me.setExpandedKeys=function(se){var _e=me.state.treeData,Ae=Object(o.d)(_e,se);me.setUncontrolledState({expandedKeys:se,flattenNodes:Ae},!0)},me.onNodeExpand=function(se,_e){var Ae=me.state.expandedKeys,Ee=me.state.listChanging,pe=me.props,he=pe.onExpand,ie=pe.loadData,fe=_e.key,ge=_e.expanded;if(Ee)return;var ce=Ae.indexOf(fe),Ie=!ge;if(Object(r.a)(ge&&ce!==-1||!ge&&ce===-1,"Expand state not sync with index check"),Ie?Ae=Object(u.a)(Ae,fe):Ae=Object(u.b)(Ae,fe),me.setExpandedKeys(Ae),he&&he(Ae,{node:_e,expanded:Ie,nativeEvent:se.nativeEvent}),Ie&&ie){var Fe=me.onNodeLoad(_e);Fe&&Fe.then(function(){var ke=Object(o.d)(me.state.treeData,Ae);me.setUncontrolledState({flattenNodes:ke})})}},me.onListChangeStart=function(){me.setUncontrolledState({listChanging:!0})},me.onListChangeEnd=function(){setTimeout(function(){me.setUncontrolledState({listChanging:!1})})},me.onActiveChange=function(se){var _e=me.state.activeKey,Ae=me.props.onActiveChange;if(_e===se)return;me.setState({activeKey:se}),se!==null&&me.scrollTo({key:se}),Ae&&Ae(se)},me.getActiveItem=function(){var se=me.state,_e=se.activeKey,Ae=se.flattenNodes;return _e===null?null:Ae.find(function(Ee){var pe=Ee.data.key;return pe===_e})||null},me.offsetActiveKey=function(se){var _e=me.state,Ae=_e.flattenNodes,Ee=_e.activeKey,pe=Ae.findIndex(function(fe){var ge=fe.data.key;return ge===Ee});pe===-1&&se<0&&(pe=Ae.length),pe=(pe+se+Ae.length)%Ae.length;var he=Ae[pe];if(he){var ie=he.data.key;me.onActiveChange(ie)}else me.onActiveChange(null)},me.onKeyDown=function(se){var _e=me.state,Ae=_e.activeKey,Ee=_e.expandedKeys,pe=_e.checkedKeys,he=me.props,ie=he.onKeyDown,fe=he.checkable,ge=he.selectable;switch(se.which){case c.a.UP:{me.offsetActiveKey(-1),se.preventDefault();break}case c.a.DOWN:{me.offsetActiveKey(1),se.preventDefault();break}}var ce=me.getActiveItem();if(ce&&ce.data){var Ie=me.getTreeNodeRequiredProps(),Fe=ce.data.isLeaf===!1||!!(ce.data.children||[]).length,ke=Object(o.b)(Object(Y.a)(Object(Y.a)({},Object(o.f)(Ae,Ie)),{},{data:ce.data,active:!0}));switch(se.which){case c.a.LEFT:{Fe&&Ee.includes(Ae)?me.onNodeExpand({},ke):ce.parent&&me.onActiveChange(ce.parent.data.key),se.preventDefault();break}case c.a.RIGHT:{Fe&&!Ee.includes(Ae)?me.onNodeExpand({},ke):ce.children&&ce.children.length&&me.onActiveChange(ce.children[0].data.key),se.preventDefault();break}case c.a.ENTER:case c.a.SPACE:{fe&&!ke.disabled&&ke.checkable!==!1&&!ke.disableCheckbox?me.onNodeCheck({},ke,!pe.includes(Ae)):!fe&&ge&&!ke.disabled&&ke.selectable!==!1&&me.onNodeSelect({},ke);break}}}ie&&ie(se)},me.setUncontrolledState=function(se){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(me.destroyed)return;var Ee=!1,pe=!0,he={};Object.keys(se).forEach(function(ie){if(ie in me.props){pe=!1;return}Ee=!0,he[ie]=se[ie]}),Ee&&(!_e||pe)&&me.setState(Object(Y.a)(Object(Y.a)({},he),Ae))},me.scrollTo=function(se){me.listRef.current.scrollTo(se)},me}return Object(E.a)(oe,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var se,_e=this.state,Ae=_e.focused,Ee=_e.flattenNodes,pe=_e.keyEntities,he=_e.dragging,ie=_e.activeKey,fe=this.props,ge=fe.prefixCls,ce=fe.className,Ie=fe.style,Fe=fe.showLine,ke=fe.focusable,re=fe.tabIndex,F=re===void 0?0:re,W=fe.selectable,de=fe.showIcon,ne=fe.icon,le=fe.switcherIcon,De=fe.draggable,Xe=fe.checkable,xt=fe.checkStrictly,Ke=fe.disabled,ze=fe.motion,yt=fe.loadData,Et=fe.filterTreeNode,ct=fe.height,lt=fe.itemHeight,rt=fe.virtual,qe=fe.titleRender,$e=fe.onContextMenu,Pe=Object(u.f)(this.props);return m.createElement(s.a.Provider,{value:{prefixCls:ge,selectable:W,showIcon:de,icon:ne,switcherIcon:le,draggable:De,checkable:Xe,checkStrictly:xt,disabled:Ke,keyEntities:pe,loadData:yt,filterTreeNode:Et,titleRender:qe,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},m.createElement("div",{className:e()(ge,ce,(se={},Object(ue.a)(se,"".concat(ge,"-show-line"),Fe),Object(ue.a)(se,"".concat(ge,"-focused"),Ae),Object(ue.a)(se,"".concat(ge,"-active-focused"),ie!==null),se))},m.createElement(U,Object.assign({ref:this.listRef,prefixCls:ge,style:Ie,data:Ee,disabled:Ke,selectable:W,checkable:!!Xe,motion:ze,dragging:he,height:ct,itemHeight:lt,virtual:rt,focusable:ke,focused:Ae,tabIndex:F,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:$e},this.getTreeNodeRequiredProps(),Pe))))}}],[{key:"getDerivedStateFromProps",value:function(se,_e){var Ae=_e.prevProps,Ee={prevProps:se};function pe(ne){return!Ae&&ne in se||Ae&&Ae[ne]!==se[ne]}var he;if(pe("treeData")?he=se.treeData:pe("children")&&(Object(r.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),he=Object(o.c)(se.children)),he){Ee.treeData=he;var ie=Object(o.a)(he);Ee.keyEntities=Object(Y.a)(Object(ue.a)({},i,O),ie.keyEntities)}var fe=Ee.keyEntities||_e.keyEntities;if(pe("expandedKeys")||Ae&&pe("autoExpandParent"))Ee.expandedKeys=se.autoExpandParent||!Ae&&se.defaultExpandParent?Object(u.e)(se.expandedKeys,fe):se.expandedKeys;else if(!Ae&&se.defaultExpandAll){var ge=Object(Y.a)({},fe);delete ge[i],Ee.expandedKeys=Object.keys(ge).map(function(ne){return ge[ne].key})}else!Ae&&se.defaultExpandedKeys&&(Ee.expandedKeys=se.autoExpandParent||se.defaultExpandParent?Object(u.e)(se.defaultExpandedKeys,fe):se.defaultExpandedKeys);if(Ee.expandedKeys||delete Ee.expandedKeys,he||Ee.expandedKeys){var ce=Object(o.d)(he||_e.treeData,Ee.expandedKeys||_e.expandedKeys);Ee.flattenNodes=ce}if(se.selectable&&(pe("selectedKeys")?Ee.selectedKeys=Object(u.d)(se.selectedKeys,se):!Ae&&se.defaultSelectedKeys&&(Ee.selectedKeys=Object(u.d)(se.defaultSelectedKeys,se))),se.checkable){var Ie;if(pe("checkedKeys")?Ie=Object(u.j)(se.checkedKeys)||{}:!Ae&&se.defaultCheckedKeys?Ie=Object(u.j)(se.defaultCheckedKeys)||{}:he&&(Ie=Object(u.j)(se.checkedKeys)||{checkedKeys:_e.checkedKeys,halfCheckedKeys:_e.halfCheckedKeys}),Ie){var Fe=Ie,ke=Fe.checkedKeys,re=ke===void 0?[]:ke,F=Fe.halfCheckedKeys,W=F===void 0?[]:F;if(!se.checkStrictly){var de=Object(K.a)(re,!0,fe);re=de.checkedKeys,W=de.halfCheckedKeys}Ee.checkedKeys=re,Ee.halfCheckedKeys=W}}return pe("loadedKeys")&&(Ee.loadedKeys=se.loadedKeys),Ee}}]),oe}(m.Component);G.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:[]},G.TreeNode=g.a;var N=G,Q=we.b=N},fW2E:function(Ze,we){var M={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function ue(Y,P,y){return M.hasOwnProperty(P)?y*=Y.dpr:y}Ze.exports=ue},fXAG:function(Ze,we,M){"use strict";M.d(we,"j",function(){return ue}),M.d(we,"i",function(){return Y}),M.d(we,"k",function(){return P}),M.d(we,"eb",function(){return y}),M.d(we,"o",function(){return E}),M.d(we,"S",function(){return _}),M.d(we,"fb",function(){return C}),M.d(we,"u",function(){return m}),M.d(we,"v",function(){return c}),M.d(we,"cb",function(){return r}),M.d(we,"A",function(){return n}),M.d(we,"m",function(){return e}),M.d(we,"Y",function(){return s}),M.d(we,"s",function(){return u}),M.d(we,"N",function(){return o}),M.d(we,"bb",function(){return f}),M.d(we,"db",function(){return d}),M.d(we,"l",function(){return a}),M.d(we,"Q",function(){return h}),M.d(we,"ab",function(){return g}),M.d(we,"x",function(){return p}),M.d(we,"z",function(){return S}),M.d(we,"X",function(){return w}),M.d(we,"b",function(){return B}),M.d(we,"H",function(){return b}),M.d(we,"a",function(){return A}),M.d(we,"c",function(){return i}),M.d(we,"P",function(){return x}),M.d(we,"g",function(){return O}),M.d(we,"t",function(){return T}),M.d(we,"Z",function(){return D}),M.d(we,"y",function(){return R}),M.d(we,"B",function(){return k}),M.d(we,"f",function(){return H}),M.d(we,"e",function(){return J}),M.d(we,"W",function(){return U}),M.d(we,"h",function(){return K}),M.d(we,"d",function(){return G}),M.d(we,"R",function(){return Q}),M.d(we,"n",function(){return X}),M.d(we,"F",function(){return te}),M.d(we,"I",function(){return oe}),M.d(we,"D",function(){return me}),M.d(we,"E",function(){return se}),M.d(we,"C",function(){return _e}),M.d(we,"G",function(){return Ae}),M.d(we,"U",function(){return Ee}),M.d(we,"q",function(){return pe}),M.d(we,"r",function(){return he}),M.d(we,"V",function(){return ie}),M.d(we,"T",function(){return fe}),M.d(we,"p",function(){return ge}),M.d(we,"M",function(){return ce}),M.d(we,"L",function(){return Ie}),M.d(we,"J",function(){return Fe}),M.d(we,"K",function(){return ke}),M.d(we,"O",function(){return re}),M.d(we,"w",function(){return F});var ue="FETCH_TASK_START",Y="FETCH_TASK_FAILURE",P="FETCH_TASK_SUCCESS",y="UPDATE_TASK_DATA",E="HIDE_EVALUATE_RESULT",_="SHOW_EVALUATE_RESULT",C="UPDATE_TIMESTRAP",m="MOVE_X",c="MOVE_Y",r="TRIGGER_RIGHT_PANEL_MASK ",n="SET_ACTIVE_INDEX",e="GET_TASK_LIST",s="SHOW_TASK_LIST",u="HIDE_TASK_LIST",o="SET_TASK_STAR",f="TRIGGER_ENLARGE_UNITY3D ",d="TRIGGER_TAB_FIXED ",a="GET_DISCUSSES",h="SHOW_DISCUSSES_LOADING",g="TOP_OR_DOWN_DISCUSS",p="PLUS_DISCUSS",S="SET_ACTION_TYPE",w="SHOW_REWARD_DIALOG",B="CANCEL_REWARD_DIALOG",b="SET_REWARD",A="ACTIVE_DISCUSS_INDEX",l="CREATE_DISCUSS",i="DISABLE_DISCUSS",x="SHOW_ANSWER_LOADING",O="FETCH_ANSWER_INFO",T="HIGH_TIP_MODAL",D="SHOW_TIP_MODAL",R="SELECT_UNLOCK_ANSWER",k="SET_CHOOSE_ANSWERS",H="EVAL_CHOOSE_START",J="EVAL_CHOOSE_END",U="SHOW_REP_loading",K="FETCH_REP_CONTENT",G="EDIT_REP_CONTENT",N="SET_REP_PATH",Q="SHOW_EVALUATE_LOADING",X="HIDE_EVALUATE_LOADING",te="SET_EVALUATE_MESSAGE",oe="SET_SHOW_DIR",me="SET_EDITOR_SETTING",se="SET_EDITOR_THEME",_e="SET_EDITOR_FONTSIZE",Ae="SET_REPOS",Ee="SHOW_PATH_LIST",pe="HIDE_PATH_LIST",he="HIDE_PICTURE_VIEW",ie="SHOW_PICTURE_VIEW",fe="SHOW_NOTICE",ge="HIDE_NOTICE",ce="SET_TAB_INDEX",Ie="SET_SSH_TABS",Fe="SET_SSH_CONFIGDATA",ke="SET_SSH_CONFIGDATAARR",re="SET_VNC_LOADING ",F="ON_TAB_TO_SPACE "},fcSX:function(Ze,we,M){"use strict";var ue=M("Ff2n"),Y=M("1OyB"),P=M("vuIU"),y=M("Ji7U"),E=M("md7G"),_=M("foSv"),C=M("1W/9"),m=M("q1tI"),c=M("rePB"),r=M("JX7q"),n=M("TSYQ"),e=M.n(n),s=M("qx4F"),u=M("4IlW");function o(H){return Array.isArray(H)?H:[H]}var f={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},d=Object.keys(f).filter(function(H){if(typeof document=="undefined")return!1;var J=document.getElementsByTagName("html")[0];return H in(J?J.style:{})})[0],a=f[d];function h(H,J,U,K){H.addEventListener?H.addEventListener(J,U,K):H.attachEvent&&H.attachEvent("on".concat(J),U)}function g(H,J,U,K){H.removeEventListener?H.removeEventListener(J,U,K):H.attachEvent&&H.detachEvent("on".concat(J),U)}function p(H,J){var U=typeof H=="function"?H(J):H;return Array.isArray(U)?U.length===2?U:[U[0],U[1]]:[U]}var S=function(J){return!isNaN(parseFloat(J))&&isFinite(J)},w=!(typeof window!="undefined"&&window.document&&window.document.createElement),B=function H(J,U,K,G){if(!U||U===document||U instanceof Document)return!1;if(U===J.parentNode)return!0;var N=Math.max(Math.abs(K),Math.abs(G))===Math.abs(G),Q=Math.max(Math.abs(K),Math.abs(G))===Math.abs(K),X=U.scrollHeight-U.clientHeight,te=U.scrollWidth-U.clientWidth,oe=document.defaultView.getComputedStyle(U),me=oe.overflowY==="auto"||oe.overflowY==="scroll",se=oe.overflowX==="auto"||oe.overflowX==="scroll",_e=X&&me,Ae=te&&se;return N&&(!_e||_e&&(U.scrollTop>=X&&G<0||U.scrollTop<=0&&G>0))||Q&&(!Ae||Ae&&(U.scrollLeft>=te&&K<0||U.scrollLeft<=0&&K>0))?H(J,U.parentNode,K,G):!1};function b(H){var J=A();return function(){var K=Object(_.a)(H),G;if(J){var N=Object(_.a)(this).constructor;G=Reflect.construct(K,arguments,N)}else G=K.apply(this,arguments);return Object(E.a)(this,G)}}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(H){return!1}}var l={},i=function(H){Object(y.a)(U,H);var J=b(U);function U(K){var G;return Object(Y.a)(this,U),G=J.call(this,K),G.domFocus=function(){G.dom&&G.dom.focus()},G.removeStartHandler=function(N){if(N.touches.length>1)return;G.startPos={x:N.touches[0].clientX,y:N.touches[0].clientY}},G.removeMoveHandler=function(N){if(N.changedTouches.length>1)return;var Q=N.currentTarget,X=N.changedTouches[0].clientX-G.startPos.x,te=N.changedTouches[0].clientY-G.startPos.y;(Q===G.maskDom||Q===G.handlerDom||Q===G.contentDom&&B(Q,N.target,X,te))&&N.cancelable&&N.preventDefault()},G.transitionEnd=function(N){var Q=N.target;g(Q,a,G.transitionEnd),Q.style.transition=""},G.onKeyDown=function(N){if(N.keyCode===u.a.ESC){var Q=G.props.onClose;N.stopPropagation(),Q&&Q(N)}},G.onWrapperTransitionEnd=function(N){var Q=G.props,X=Q.open,te=Q.afterVisibleChange;N.target===G.contentWrapper&&N.propertyName.match(/transform$/)&&(G.dom.style.transition="",!X&&G.getCurrentDrawerSome()&&(document.body.style.overflowX="",G.maskDom&&(G.maskDom.style.left="",G.maskDom.style.width="")),te&&te(!!X))},G.openLevelTransition=function(){var N=G.props,Q=N.open,X=N.width,te=N.height,oe=G.getHorizontalBoolAndPlacementName(),me=oe.isHorizontal,se=oe.placementName,_e=G.contentDom?G.contentDom.getBoundingClientRect()[me?"width":"height"]:0,Ae=(me?X:te)||_e;G.setLevelAndScrolling(Q,se,Ae)},G.setLevelTransform=function(N,Q,X,te){var oe=G.props,me=oe.placement,se=oe.levelMove,_e=oe.duration,Ae=oe.ease,Ee=oe.showMask;G.levelDom.forEach(function(pe){pe.style.transition="transform ".concat(_e," ").concat(Ae),h(pe,a,G.transitionEnd);var he=N?X:0;if(se){var ie=p(se,{target:pe,open:N});he=N?ie[0]:ie[1]||0}var fe=typeof he=="number"?"".concat(he,"px"):he,ge=me==="left"||me==="top"?fe:"-".concat(fe);ge=Ee&&me==="right"&&te?"calc(".concat(ge," + ").concat(te,"px)"):ge,pe.style.transform=he?"".concat(Q,"(").concat(ge,")"):""})},G.setLevelAndScrolling=function(N,Q,X){var te=G.props.onChange;if(!w){var oe=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(s.a)(!0):0;G.setLevelTransform(N,Q,X,oe),G.toggleScrollingToDrawerAndBody(oe)}te&&te(N)},G.toggleScrollingToDrawerAndBody=function(N){var Q=G.props,X=Q.getOpenCount,te=Q.getContainer,oe=Q.showMask,me=Q.open,se=te&&te(),_e=X&&X();if(se&&se.parentNode===document.body&&oe){var Ae=["touchstart"],Ee=[document.body,G.maskDom,G.handlerDom,G.contentDom];me&&document.body.style.overflow!=="hidden"?(N&&G.addScrollingEffect(N),_e===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",Ee.forEach(function(pe,he){if(!pe)return;h(pe,Ae[he]||"touchmove",he?G.removeMoveHandler:G.removeStartHandler,G.passive)})):G.getCurrentDrawerSome()&&(_e||(document.body.style.overflow=""),document.body.style.touchAction="",N&&G.remScrollingEffect(N),Ee.forEach(function(pe,he){if(!pe)return;g(pe,Ae[he]||"touchmove",he?G.removeMoveHandler:G.removeStartHandler,G.passive)}))}},G.addScrollingEffect=function(N){var Q=G.props,X=Q.placement,te=Q.duration,oe=Q.ease,me=Q.getOpenCount,se=Q.switchScrollingEffect,_e=me&&me();_e===1&&se();var Ae="width ".concat(te," ").concat(oe),Ee="transform ".concat(te," ").concat(oe);G.dom.style.transition="none";switch(X){case"right":G.dom.style.transform="translateX(-".concat(N,"px)");break;case"top":case"bottom":G.dom.style.width="calc(100% - ".concat(N,"px)"),G.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(G.timeout),G.timeout=setTimeout(function(){G.dom&&(G.dom.style.transition="".concat(Ee,",").concat(Ae),G.dom.style.width="",G.dom.style.transform="")})},G.remScrollingEffect=function(N){var Q=G.props,X=Q.placement,te=Q.duration,oe=Q.ease,me=Q.getOpenCount,se=Q.switchScrollingEffect,_e=me&&me();_e||se(!0),d&&(document.body.style.overflowX="hidden"),G.dom.style.transition="none";var Ae,Ee="width ".concat(te," ").concat(oe),pe="transform ".concat(te," ").concat(oe);switch(X){case"left":{G.dom.style.width="100%",Ee="width 0s ".concat(oe," ").concat(te);break}case"right":{G.dom.style.transform="translateX(".concat(N,"px)"),G.dom.style.width="100%",Ee="width 0s ".concat(oe," ").concat(te),G.maskDom&&(G.maskDom.style.left="-".concat(N,"px"),G.maskDom.style.width="calc(100% + ".concat(N,"px)"));break}case"top":case"bottom":{G.dom.style.width="calc(100% + ".concat(N,"px)"),G.dom.style.height="100%",G.dom.style.transform="translateZ(0)",Ae="height 0s ".concat(oe," ").concat(te);break}default:break}clearTimeout(G.timeout),G.timeout=setTimeout(function(){G.dom&&(G.dom.style.transition="".concat(pe,",").concat(Ae?"".concat(Ae,","):"").concat(Ee),G.dom.style.transform="",G.dom.style.width="",G.dom.style.height="")})},G.getCurrentDrawerSome=function(){return!Object.keys(l).some(function(N){return l[N]})},G.getLevelDom=function(N){var Q=N.level,X=N.getContainer;if(w)return;var te=X&&X(),oe=te?te.parentNode:null;if(G.levelDom=[],Q==="all"){var me=oe?Array.prototype.slice.call(oe.children):[];me.forEach(function(se){se.nodeName!=="SCRIPT"&&se.nodeName!=="STYLE"&&se.nodeName!=="LINK"&&se!==te&&G.levelDom.push(se)})}else Q&&o(Q).forEach(function(se){document.querySelectorAll(se).forEach(function(_e){G.levelDom.push(_e)})})},G.getHorizontalBoolAndPlacementName=function(){var N=G.props.placement,Q=N==="left"||N==="right",X="translate".concat(Q?"X":"Y");return{isHorizontal:Q,placementName:X}},G.state={_self:Object(r.a)(G)},G}return Object(P.a)(U,[{key:"componentDidMount",value:function(){var G=this;if(!w){var N=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return N=!0,null}}))}catch(me){}this.passive=N?{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&&(l[this.drawerId]=X),this.openLevelTransition(),this.forceUpdate(function(){G.domFocus()}))}},{key:"componentDidUpdate",value:function(G){var N=this.props,Q=N.open,X=N.getContainer,te=X&&X();Q!==G.open&&(Q&&this.domFocus(),te&&te.parentNode===document.body&&(l[this.drawerId]=!!Q),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var G=this.props,N=G.getOpenCount,Q=G.open,X=G.switchScrollingEffect,te=typeof N=="function"&&N();delete l[this.drawerId],Q&&(this.setLevelTransform(!1),document.body.style.touchAction=""),te||(document.body.style.overflow="",X(!0))}},{key:"render",value:function(){var G,N=this,Q=this.props,X=Q.className,te=Q.children,oe=Q.style,me=Q.width,se=Q.height,_e=Q.defaultOpen,Ae=Q.open,Ee=Q.prefixCls,pe=Q.placement,he=Q.level,ie=Q.levelMove,fe=Q.ease,ge=Q.duration,ce=Q.getContainer,Ie=Q.handler,Fe=Q.onChange,ke=Q.afterVisibleChange,re=Q.showMask,F=Q.maskClosable,W=Q.maskStyle,de=Q.onClose,ne=Q.onHandleClick,le=Q.keyboard,De=Q.getOpenCount,Xe=Q.switchScrollingEffect,xt=Object(ue.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"]),Ke=this.dom?Ae:!1,ze=e()(Ee,(G={},Object(c.a)(G,"".concat(Ee,"-").concat(pe),!0),Object(c.a)(G,"".concat(Ee,"-open"),Ke),Object(c.a)(G,X||"",!!X),Object(c.a)(G,"no-mask",!re),G)),yt=this.getHorizontalBoolAndPlacementName(),Et=yt.placementName,ct=pe==="left"||pe==="top"?"-100%":"100%",lt=Ke?"":"".concat(Et,"(").concat(ct,")"),rt=Ie&&m.cloneElement(Ie,{onClick:function($e){Ie.props.onClick&&Ie.props.onClick(),ne&&ne($e)},ref:function($e){N.handlerDom=$e}});return m.createElement("div",Object.assign({},xt,{tabIndex:-1,className:ze,style:oe,ref:function($e){N.dom=$e},onKeyDown:Ke&&le?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),re&&m.createElement("div",{className:"".concat(Ee,"-mask"),onClick:F?de:void 0,style:W,ref:function($e){N.maskDom=$e}}),m.createElement("div",{className:"".concat(Ee,"-content-wrapper"),style:{transform:lt,msTransform:lt,width:S(me)?"".concat(me,"px"):me,height:S(se)?"".concat(se,"px"):se},ref:function($e){N.contentWrapper=$e}},m.createElement("div",{className:"".concat(Ee,"-content"),ref:function($e){N.contentDom=$e},onTouchStart:Ke&&re?this.removeStartHandler:void 0,onTouchMove:Ke&&re?this.removeMoveHandler:void 0},te),rt))}}],[{key:"getDerivedStateFromProps",value:function(G,N){var Q=N.prevProps,X=N._self,te={prevProps:G};if(Q!==void 0){var oe=G.placement,me=G.level;oe!==Q.placement&&(X.contentDom=null),me!==Q.level&&X.getLevelDom(G)}return te}}]),U}(m.Component);i.defaultProps={switchScrollingEffect:function(){}};var x=i;function O(H){var J=T();return function(){var K=Object(_.a)(H),G;if(J){var N=Object(_.a)(this).constructor;G=Reflect.construct(K,arguments,N)}else G=K.apply(this,arguments);return Object(E.a)(this,G)}}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(H){return!1}}var D=function(H){Object(y.a)(U,H);var J=O(U);function U(K){var G;Object(Y.a)(this,U),G=J.call(this,K),G.onHandleClick=function(Q){var X=G.props,te=X.onHandleClick,oe=X.open;if(te&&te(Q),typeof oe=="undefined"){var me=G.state.open;G.setState({open:!me})}},G.onClose=function(Q){var X=G.props,te=X.onClose,oe=X.open;te&&te(Q),typeof oe=="undefined"&&G.setState({open:!1})};var N=typeof K.open!="undefined"?K.open:!!K.defaultOpen;return G.state={open:N},"onMaskClick"in K&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),G}return Object(P.a)(U,[{key:"render",value:function(){var G=this,N=this.props,Q=N.defaultOpen,X=N.getContainer,te=N.wrapperClassName,oe=N.forceRender,me=N.handler,se=Object(ue.a)(N,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),_e=this.state.open;if(!X)return m.createElement("div",{className:te,ref:function(pe){G.dom=pe}},m.createElement(x,Object.assign({},se,{open:_e,handler:me,getContainer:function(){return G.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var Ae=!!me||oe;return m.createElement(C.a,{visible:_e,forceRender:Ae,getContainer:X,wrapperClassName:te},function(Ee){var pe=Ee.visible,he=Ee.afterClose,ie=Object(ue.a)(Ee,["visible","afterClose"]);return m.createElement(x,Object.assign({},se,ie,{open:pe!==void 0?pe:_e,afterVisibleChange:he!==void 0?he:se.afterVisibleChange,handler:me,onClose:G.onClose,onHandleClick:G.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(G,N){var Q=N.prevProps,X={prevProps:G};return typeof Q!="undefined"&&G.open!==Q.open&&(X.open=G.open),X}}]),U}(m.Component);D.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",defaultOpen:!1,level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:m.createElement("div",{className:"drawer-handle"},m.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1};var R=D,k=we.a=R},fyJ8:function(Ze,we,M){"use strict";var ue=M("rePB"),Y=M("VTBJ"),P=M("Ff2n"),y=M("U8pU"),E=M("q1tI"),_=M.n(E),C=M("TSYQ"),m=M.n(C),c=M("c+Xe"),r=M("sR1s");function n(f){return f&&Object(y.a)(f)==="object"&&!Array.isArray(f)&&!E.isValidElement(f)}function e(f){return typeof f=="string"?!0:Object(c.c)(f)}function s(f,d){var a,h=f.prefixCls,g=f.className,p=f.record,S=f.index,w=f.dataIndex,B=f.render,b=f.children,A=f.component,l=A===void 0?"td":A,i=f.colSpan,x=f.rowSpan,O=f.fixLeft,T=f.fixRight,D=f.firstFixLeft,R=f.lastFixLeft,k=f.firstFixRight,H=f.lastFixRight,J=f.appendNode,U=f.additionalProps,K=U===void 0?{}:U,G=f.ellipsis,N=f.align,Q=f.rowType,X=f.isSticky,te="".concat(h,"-cell"),oe,me;if(b)me=b;else{var se=Object(r.b)(p,w);if(me=se,B){var _e=B(se,p,S);n(_e)?(me=_e.children,oe=_e.props):me=_e}}Object(y.a)(me)==="object"&&!Array.isArray(me)&&!E.isValidElement(me)&&(me=null),G&&(R||k)&&(me=E.createElement("span",{className:"".concat(te,"-content")},me));var Ae=oe||{},Ee=Ae.colSpan,pe=Ae.rowSpan,he=Ae.style,ie=Ae.className,fe=Object(P.a)(Ae,["colSpan","rowSpan","style","className"]),ge=Ee!==void 0?Ee:i,ce=pe!==void 0?pe:x;if(ge===0||ce===0)return null;var Ie={},Fe=typeof O=="number",ke=typeof T=="number";Fe&&(Ie.position="sticky",Ie.left=O),ke&&(Ie.position="sticky",Ie.right=T);var re={};N&&(re.textAlign=N);var F,W=G===!0?{showTitle:!0}:G;W&&(W.showTitle||Q==="header")&&(typeof me=="string"||typeof me=="number"?F=me.toString():E.isValidElement(me)&&typeof me.props.children=="string"&&(F=me.props.children));var de=Object(Y.a)(Object(Y.a)(Object(Y.a)({title:F},fe),K),{},{colSpan:ge&&ge!==1?ge:null,rowSpan:ce&&ce!==1?ce:null,className:m()(te,g,(a={},Object(ue.a)(a,"".concat(te,"-fix-left"),Fe),Object(ue.a)(a,"".concat(te,"-fix-left-first"),D),Object(ue.a)(a,"".concat(te,"-fix-left-last"),R),Object(ue.a)(a,"".concat(te,"-fix-right"),ke),Object(ue.a)(a,"".concat(te,"-fix-right-first"),k),Object(ue.a)(a,"".concat(te,"-fix-right-last"),H),Object(ue.a)(a,"".concat(te,"-ellipsis"),G),Object(ue.a)(a,"".concat(te,"-with-append"),J),Object(ue.a)(a,"".concat(te,"-fix-sticky"),(Fe||ke)&&X),a),K.className,ie),style:Object(Y.a)(Object(Y.a)(Object(Y.a)(Object(Y.a)({},K.style),re),Ie),he),ref:e(l)?d:null});return E.createElement(l,Object.assign({},de),J,me)}var u=E.forwardRef(s);u.displayName="Cell";var o=E.memo(u,function(f,d){return d.shouldCellUpdate?!d.shouldCellUpdate(d.record,f.record):!1});we.a=o},gut8:function(Ze,we){var M={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},ue=9;we.ContextCachedBy=M,we.WILL_BE_RESTORED=ue},"h/US":function(Ze,we,M){"use strict";var ue=M("DZo9"),Y=M("8z0m"),P=M("+L6B"),y=M("2/Rp"),E=M("tJVT"),_=M("q1tI"),C=M.n(_),m=M("z7Xi"),c=M("jN4g"),r=M("m3rI"),n=M("w8Aa"),e=M.n(n),s=function(o){var f=o.value,d=o.onChange,a=o.getFileProgress,h=Object(_.useState)(!1),g=Object(E.a)(h,2),p=g[0],S=g[1],w=C.a.createElement(y.a,{loading:p,icon:C.a.createElement(m.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),B=function(){return C.a.createElement("div",{className:e.a.img},C.a.createElement("img",{src:r.a.API_SERVER+"/api/attachments/"+f,alt:"avatar",style:{width:288}}),C.a.createElement("div",null,C.a.createElement(c.a,{onClick:function(){return d("")},style:{fontSize:"16px",color:"red"}})))},b=function(l){if(a&&a(l),l.file.status==="uploading"){S(!0);return}if(l.file.status==="done"){var i,x;S(!1),d(l==null||((i=l.file)===null||i===void 0||((x=i.response)===null||x===void 0))?void 0:x.id)}};return C.a.createElement(C.a.Fragment,null,f?B():C.a.createElement("div",null,C.a.createElement(Y.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(r.a.API_SERVER,"/api/attachments.json"),onChange:b,accept:"image/*"},w),C.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"),C.a.createElement("div",{className:"c-light-black"},"\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002")))};we.a=s},h78n:function(Ze,we,M){"use strict";M.d(we,"a",function(){return D});var ue=M("q1tI"),Y=M.n(ue),P=M("TSYQ"),y=M.n(P),E={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},_=function(H){var J=H.map(function(){return Object(ue.useRef)()}),U=Object(ue.useRef)();return Object(ue.useEffect)(function(){var K=Date.now(),G=!1;Object.keys(J).forEach(function(N){var Q=J[N].current;if(!Q)return;G=!0;var X=Q.style;X.transitionDuration=".3s, .3s, .3s, .06s",U.current&&K-U.current<100&&(X.transitionDuration="0s, 0s")}),G&&(U.current=Date.now())}),[J]};function C(){return C=Object.assign||function(k){for(var H=1;H<arguments.length;H++){var J=arguments[H];for(var U in J)Object.prototype.hasOwnProperty.call(J,U)&&(k[U]=J[U])}return k},C.apply(this,arguments)}function m(k,H){return s(k)||e(k,H)||r(k,H)||c()}function c(){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(k,H){if(!k)return;if(typeof k=="string")return n(k,H);var J=Object.prototype.toString.call(k).slice(8,-1);if(J==="Object"&&k.constructor&&(J=k.constructor.name),J==="Map"||J==="Set")return Array.from(k);if(J==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J))return n(k,H)}function n(k,H){(H==null||H>k.length)&&(H=k.length);for(var J=0,U=new Array(H);J<H;J++)U[J]=k[J];return U}function e(k,H){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(k)))return;var J=[],U=!0,K=!1,G=void 0;try{for(var N=k[Symbol.iterator](),Q;!(U=(Q=N.next()).done)&&!(J.push(Q.value),H&&J.length===H);U=!0);}catch(X){K=!0,G=X}finally{try{!U&&N.return!=null&&N.return()}finally{if(K)throw G}}return J}function s(k){if(Array.isArray(k))return k}function u(k,H){if(k==null)return{};var J=o(k,H),U,K;if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(k);for(K=0;K<G.length;K++){if(U=G[K],H.indexOf(U)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(k,U))continue;J[U]=k[U]}}return J}function o(k,H){if(k==null)return{};var J={},U=Object.keys(k),K,G;for(G=0;G<U.length;G++){if(K=U[G],H.indexOf(K)>=0)continue;J[K]=k[K]}return J}var f=function(H){var J=H.className,U=H.percent,K=H.prefixCls,G=H.strokeColor,N=H.strokeLinecap,Q=H.strokeWidth,X=H.style,te=H.trailColor,oe=H.trailWidth,me=H.transition,se=u(H,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete se.gapPosition;var _e=Array.isArray(U)?U:[U],Ae=Array.isArray(G)?G:[G],Ee=_(_e),pe=m(Ee,1),he=pe[0],ie=Q/2,fe=100-Q/2,ge="M ".concat(N==="round"?ie:0,",").concat(ie,`
L `).concat(N==="round"?fe:100,",").concat(ie),ce="0 0 100 ".concat(Q),Ie=0;return Y.a.createElement("svg",C({className:y()("".concat(K,"-line"),J),viewBox:ce,preserveAspectRatio:"none",style:X},se),Y.a.createElement("path",{className:"".concat(K,"-line-trail"),d:ge,strokeLinecap:N,stroke:te,strokeWidth:oe||Q,fillOpacity:"0"}),_e.map(function(Fe,ke){var re={strokeDasharray:"".concat(Fe,"px, 100px"),strokeDashoffset:"-".concat(Ie,"px"),transition:me||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},F=Ae[ke]||Ae[Ae.length-1];return Ie+=Fe,Y.a.createElement("path",{key:ke,className:"".concat(K,"-line-path"),d:ge,strokeLinecap:N,stroke:F,strokeWidth:Q,fillOpacity:"0",ref:he[ke],style:re})}))};f.defaultProps=E;var d=f;function a(){return a=Object.assign||function(k){for(var H=1;H<arguments.length;H++){var J=arguments[H];for(var U in J)Object.prototype.hasOwnProperty.call(J,U)&&(k[U]=J[U])}return k},a.apply(this,arguments)}function h(k,H){return B(k)||w(k,H)||p(k,H)||g()}function g(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p(k,H){if(!k)return;if(typeof k=="string")return S(k,H);var J=Object.prototype.toString.call(k).slice(8,-1);if(J==="Object"&&k.constructor&&(J=k.constructor.name),J==="Map"||J==="Set")return Array.from(k);if(J==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J))return S(k,H)}function S(k,H){(H==null||H>k.length)&&(H=k.length);for(var J=0,U=new Array(H);J<H;J++)U[J]=k[J];return U}function w(k,H){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(k)))return;var J=[],U=!0,K=!1,G=void 0;try{for(var N=k[Symbol.iterator](),Q;!(U=(Q=N.next()).done)&&!(J.push(Q.value),H&&J.length===H);U=!0);}catch(X){K=!0,G=X}finally{try{!U&&N.return!=null&&N.return()}finally{if(K)throw G}}return J}function B(k){if(Array.isArray(k))return k}function b(k,H){if(k==null)return{};var J=A(k,H),U,K;if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(k);for(K=0;K<G.length;K++){if(U=G[K],H.indexOf(U)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(k,U))continue;J[U]=k[U]}}return J}function A(k,H){if(k==null)return{};var J={},U=Object.keys(k),K,G;for(G=0;G<U.length;G++){if(K=U[G],H.indexOf(K)>=0)continue;J[K]=k[K]}return J}var l=0;function i(k){return+k.replace("%","")}function x(k){return Array.isArray(k)?k:[k]}function O(k,H,J,U){var K=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,G=arguments.length>5?arguments[5]:void 0,N=50-U/2,Q=0,X=-N,te=0,oe=-2*N;switch(G){case"left":Q=-N,X=0,te=2*N,oe=0;break;case"right":Q=N,X=0,te=-2*N,oe=0;break;case"bottom":X=N,oe=2*N;break;default:}var me="M 50,50 m ".concat(Q,",").concat(X,`
a `).concat(N,",").concat(N," 0 1 1 ").concat(te,",").concat(-oe,`
a `).concat(N,",").concat(N," 0 1 1 ").concat(-te,",").concat(oe),se=Math.PI*2*N,_e={stroke:J,strokeDasharray:"".concat(H/100*(se-K),"px ").concat(se,"px"),strokeDashoffset:"-".concat(K/2+k/100*(se-K),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:me,pathStyle:_e}}var T=function(H){var J=H.prefixCls,U=H.strokeWidth,K=H.trailWidth,G=H.gapDegree,N=H.gapPosition,Q=H.trailColor,X=H.strokeLinecap,te=H.style,oe=H.className,me=H.strokeColor,se=H.percent,_e=b(H,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),Ae=Object(ue.useMemo)(function(){return l+=1,l},[]),Ee=O(0,100,Q,U,G,N),pe=Ee.pathString,he=Ee.pathStyle,ie=x(se),fe=x(me),ge=fe.find(function(re){return Object.prototype.toString.call(re)==="[object Object]"}),ce=_(ie),Ie=h(ce,1),Fe=Ie[0],ke=function(){var F=0;return ie.map(function(W,de){var ne=fe[de]||fe[fe.length-1],le=Object.prototype.toString.call(ne)==="[object Object]"?"url(#".concat(J,"-gradient-").concat(Ae,")"):"",De=O(F,W,ne,U,G,N);return F+=W,Y.a.createElement("path",{key:de,className:"".concat(J,"-circle-path"),d:De.pathString,stroke:le,strokeLinecap:X,strokeWidth:U,opacity:W===0?0:1,fillOpacity:"0",style:De.pathStyle,ref:Fe[de]})})};return Y.a.createElement("svg",a({className:y()("".concat(J,"-circle"),oe),viewBox:"0 0 100 100",style:te},_e),ge&&Y.a.createElement("defs",null,Y.a.createElement("linearGradient",{id:"".concat(J,"-gradient-").concat(Ae),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(ge).sort(function(re,F){return i(re)-i(F)}).map(function(re,F){return Y.a.createElement("stop",{key:F,offset:re,stopColor:ge[re]})}))),Y.a.createElement("path",{className:"".concat(J,"-circle-trail"),d:pe,stroke:Q,strokeLinecap:X,strokeWidth:K||U,fillOpacity:"0",style:he}),ke().reverse())};T.defaultProps=E;var D=T,R={Line:d,Circle:D}},h7HQ:function(Ze,we,M){var ue=M("y+Vt"),Y=M("T6xi"),P=ue.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(y,E){Y.buildPath(y,E,!0)}});Ze.exports=P},hOwI:function(Ze,we){var M=Math.log(2);function ue(P,y,E,_,C,m){var c=_+"-"+C,r=P.length;if(m.hasOwnProperty(c))return m[c];if(y===1){var n=Math.round(Math.log((1<<r)-1&~C)/M);return P[E][n]}for(var e=_|1<<E,s=E+1;_&1<<s;)s++;for(var u=0,o=0,f=0;o<r;o++){var d=1<<o;d&C||(u+=(f%2?-1:1)*P[E][o]*ue(P,y-1,s,e,C|d,m),f++)}return m[c]=u,u}function Y(P,y){var E=[[P[0],P[1],1,0,0,0,-y[0]*P[0],-y[0]*P[1]],[0,0,0,P[0],P[1],1,-y[1]*P[0],-y[1]*P[1]],[P[2],P[3],1,0,0,0,-y[2]*P[2],-y[2]*P[3]],[0,0,0,P[2],P[3],1,-y[3]*P[2],-y[3]*P[3]],[P[4],P[5],1,0,0,0,-y[4]*P[4],-y[4]*P[5]],[0,0,0,P[4],P[5],1,-y[5]*P[4],-y[5]*P[5]],[P[6],P[7],1,0,0,0,-y[6]*P[6],-y[6]*P[7]],[0,0,0,P[6],P[7],1,-y[7]*P[6],-y[7]*P[7]]],_={},C=ue(E,8,0,0,0,_);if(C===0)return;for(var m=[],c=0;c<8;c++)for(var r=0;r<8;r++)m[r]==null&&(m[r]=0),m[r]+=((c+r)%2?-1:1)*ue(E,7,c===0?1:0,1<<c,1<<r,_)/C*y[c];return function(n,e,s){var u=e*m[6]+s*m[7]+1;n[0]=(e*m[0]+s*m[1]+m[2])/u,n[1]=(e*m[3]+s*m[4]+m[5])/u}}we.buildTransformer=Y},hW8S:function(Ze,we,M){"use strict";M.d(we,"a",function(){return y}),M.d(we,"c",function(){return E}),M.d(we,"b",function(){return _});var ue=M("VTBJ"),Y=M("Ff2n"),P=M("Kwbf"),y="RC_TABLE_INTERNAL_COL_DEFINE";function E(C){var m=C.expandable,c=Object(Y.a)(C,["expandable"]);return"expandable"in C?Object(ue.a)(Object(ue.a)({},c),m):c}function _(C){return Object.keys(C).reduce(function(m,c){return(c.substr(0,5)==="data-"||c.substr(0,5)==="aria-")&&(m[c]=C[c]),m},{})}},hX1E:function(Ze,we){var M=Math.PI*2;function ue(Y){return Y%=M,Y<0&&(Y+=M),Y}we.normalizeRadian=ue},ho57:function(Ze,we){Ze.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(Ze,we){var M="http://www.w3.org/2000/svg";function ue(Y){return document.createElementNS(M,Y)}we.createElement=ue},hyiK:function(Ze,we){function M(ue,Y,P,y,E,_){if(_>Y&&_>y||_<Y&&_<y)return 0;if(y===Y)return 0;var C=y<Y?1:-1,m=(_-Y)/(y-Y);(m===1||m===0)&&(C=y<Y?.5:-.5);var c=m*(P-ue)+ue;return c===E?Infinity:c>E?C:0}Ze.exports=M},iXp4:function(Ze,we,M){var ue=M("ItGF"),Y=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function P(y){return ue.browser.ie&&ue.browser.version>=11?function(){var E=this.__clipPaths,_=this.style,C;if(E)for(var m=0;m<E.length;m++){var c=E[m],r=c&&c.shape,n=c&&c.type;if(r&&(n==="sector"&&r.startAngle===r.endAngle||n==="rect"&&(!r.width||!r.height))){for(var e=0;e<Y.length;e++)Y[e][2]=_[Y[e][0]],_[Y[e][0]]=Y[e][1];C=!0;break}}if(y.apply(this,arguments),C)for(var e=0;e<Y.length;e++)_[Y[e][0]]=Y[e][2]}:y}Ze.exports=P},j5sG:function(Ze,we,M){"use strict";Object.defineProperty(we,"__esModule",{value:!0}),we.createSensor=void 0;var ue=Y(M("NohK"));function Y(y){return y&&y.__esModule?y:{default:y}}var P=function(E){var _=void 0,C=[],m=(0,ue.default)(function(){C.forEach(function(s){s(E)})}),c=function(){var u=new ResizeObserver(m);return u.observe(E),m(),u},r=function(u){_||(_=c()),C.indexOf(u)===-1&&C.push(u)},n=function(){_.disconnect(),C=[],_=void 0},e=function(u){var o=C.indexOf(u);o!==-1&&C.splice(o,1),C.length===0&&_&&n()};return{element:E,bind:r,destroy:n,unbind:e}};we.createSensor=P},jTL6:function(Ze,we,M){var ue=M("y+Vt"),Y=ue.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(P,y){var E=y.cx,_=y.cy,C=Math.max(y.r,0),m=y.startAngle,c=y.endAngle,r=y.clockwise,n=Math.cos(m),e=Math.sin(m);P.moveTo(n*C+E,e*C+_),P.arc(E,_,C,m,c,!r)}});Ze.exports=Y},jZGp:function(Ze,we,M){"use strict";var ue=M("ozfa"),Y=M("MJZm"),P=M("14J3"),y=M("BMrR"),E=M("+L6B"),_=M("2/Rp"),C=M("jCWc"),m=M("kPKH"),c=M("0Owb"),r=M("k1fw"),n=M("5Dmo"),e=M("3S7+"),s=M("miYZ"),u=M("tsqr"),o=M("9og8"),f=M("2qtc"),d=M("kLXV"),a=M("oBTY"),h=M("tJVT"),g=M("PpiC"),p=M("OaEy"),S=M("2fM7"),w=M("WmNS"),B=M.n(w),b=M("q1tI"),A=M.n(b),l=M("Ty5D"),i=M("9kvl"),x=M("Fvcw"),O=M("Mgx3"),T=M("1vsH"),D=M("qdXH"),R=M("V0Rq"),k=M("HBuW"),H=M("Dols"),J=M.n(H),U=M("LvDl"),K=M.n(U),G=M("8Skl"),N=M("UESt"),Q=M("NLgs"),X=M("m3rI"),te=M("p5ED"),oe=S.a.Option,me=function(_e){var Ae=_e.pathsDetail,Ee=_e.globalSetting,pe=_e.user,he=_e.loading,ie=_e.visibleType,fe=_e.updateSort,ge=_e.dispatch,ce=Object(g.a)(_e,["pathsDetail","globalSetting","user","loading","visibleType","updateSort","dispatch"]),Ie=Object(b.useState)([]),Fe=Object(h.a)(Ie,2),ke=Fe[0],re=Fe[1],F=Object(b.useState)([]),W=Object(h.a)(F,2),de=W[0],ne=W[1],le=Object(l.i)(),De=Object(b.useState)([]),Xe=Object(h.a)(De,2),xt=Xe[0],Ke=Xe[1],ze=Object(b.useState)({}),yt=Object(h.a)(ze,2),Et=yt[0],ct=yt[1],lt=Object(b.useState)({name:"",filename:"",type:"",className:"",data:"",close:!0,style:{position:"fixed",zIndex:9999,background:"rgba(0,0,0,.7)"},monacoEditor:{value:"",language:"",theme:"vs",options:{readOnly:!0}}}),rt=Object(h.a)(lt,2),qe=rt[0],$e=rt[1];Object(b.useEffect)(function(){if(ce.data&&!Object(U.isEqual)(ce.data,xt)){de=[];var Ct=JSON.parse(JSON.stringify(ce.data));Xt(Ct,0),Ke(Object(a.a)(Ct)),ie!="All"?re(Object(a.a)(de)):re([])}},[JSON.stringify(ce.data),ie]),Object(b.useEffect)(function(){var Ct,Re,We;if((Ct=Ae.detail)!==null&&Ct!==void 0&&Ct.has_start){var St,ft,It=(St=Ae.detail)===null||St===void 0||((ft=St.courses)===null||ft===void 0)?void 0:ft.findIndex(function(xr){var Kn;return parseInt((Kn=xr.course_status)===null||Kn===void 0?void 0:Kn.status)===1});We=It>-1?It:0}else{var Ot,bt,Ht,Gt,xn,vn=(Ot=Ae.detail)===null||Ot===void 0||((bt=Ot.courses)===null||bt===void 0||((Ht=bt.map(function(xr){var Kn;return parseInt((Kn=xr.course_status)===null||Kn===void 0?void 0:Kn.status)}))===null||Ht===void 0))?void 0:Ht.lastIndexOf(2);We=vn>-1?vn:0,vn=(Gt=Ae.detail)===null||Gt===void 0||((xn=Gt.courses)===null||xn===void 0)?void 0:xn.findIndex(function(xr){var Kn;return parseInt((Kn=xr.course_status)===null||Kn===void 0?void 0:Kn.status)===0}),We=vn>-1?vn:We}if((Re=Ae.detail)!==null&&Re!==void 0&&Re.courses){var sr;ct(((sr=Ae.detail)===null||sr===void 0?void 0:sr.courses[We])||{})}},[Ae.detail]);var Pe=function(Re,We){d.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(){}})},je=function(Re){d.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 We=Object(o.a)(B.a.mark(function ft(){return B.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:case"end":return Ot.stop()}},ft)}));function St(){return We.apply(this,arguments)}return St}()})},Ne=function(){var Ct=Object(o.a)(B.a.mark(function Re(We,St){var ft;return B.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:if(ge({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!St){Ot.next=7;break}return Ot.next=4,Object(k.C)({id:We});case 4:Ot.t0=Ot.sent,Ot.next=10;break;case 7:return Ot.next=9,Object(k.D)({id:We});case 9:Ot.t0=Ot.sent;case 10:if(ft=Ot.t0,ge({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(ft!=null&&ft.game_identifier||ft!=null&&ft.identifier)){Ot.next=15;break}return Object(T.Q)(St?"/tasks/".concat(ft==null?void 0:ft.identifier,"/jupyter"):"/tasks/".concat(ft.game_identifier,"?subject_id=").concat(le.pathId||"")),Ot.abrupt("return");case 15:(ft==null?void 0:ft.status)===-3?Object(T.o)():(ft==null?void 0:ft.status)===2?et(ft==null?void 0:ft.message):(ft==null?void 0:ft.status)===3&&mt(ft==null?void 0:ft.message);case 16:case"end":return Ot.stop()}},Re)}));return function(We,St){return Ct.apply(this,arguments)}}(),et=function Ct(Re){var We;Re=(We=Re)!==null&&We!==void 0&&We.includes(".json")?Re:"".concat(Re,".json"),d.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:A.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var St=Object(o.a)(B.a.mark(function It(){var Ot,bt;return B.a.wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:return Gt.next=2,Object(R.S)({url:Re});case 2:if(Ot=Gt.sent,Ot){Gt.next=5;break}return Gt.abrupt("return");case 5:return u.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Gt.next=8,Object(k.D)({id:Ot.shixun_identifier});case 8:if(bt=Gt.sent,!(bt!=null&&bt.game_identifier)){Gt.next=12;break}return Object(T.Q)("/tasks/".concat(bt.game_identifier)),Gt.abrupt("return");case 12:(bt==null?void 0:bt.status)===2?Ct(bt==null?void 0:bt.message):(bt==null?void 0:bt.status)===3&&mt(bt==null?void 0:bt.message);case 13:case"end":return Gt.stop()}},It)}));function ft(){return St.apply(this,arguments)}return ft}()})},mt=function(Re){d.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:A.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",Re,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},At=function(Re){console.log("onDragEnter:",Re)},Ut=function(){var Ct=Object(o.a)(B.a.mark(function Re(We){var St,ft,It,Ot,bt,Ht,Gt,xn,vn;return B.a.wrap(function(xr){for(;;)switch(xr.prev=xr.next){case 0:if(console.log("onDrop:",We),St=We.node.props.eventKey,ft=We.dragNode.props.eventKey,It=We.node.props.pos.split("-"),Ot=We.dropPosition-Number(It[It.length-1]),!(It.length>2&&!We.node.dragOverGapBottom&&!We.node.dragOverGapTop)){xr.next=7;break}return xr.abrupt("return",!1);case 7:if(!(We.node.dragOver&&We.dragNodesKeys.length>1)){xr.next=9;break}return xr.abrupt("return",!1);case 9:if(!(It.length>2&&We.dragNodesKeys.length>1)){xr.next=11;break}return xr.abrupt("return",!1);case 11:return bt=function Kn(En,Qr,sa){for(var Xr=0;Xr<En.length;Xr++){if(En[Xr].key===Qr)return sa(En[Xr],Xr,En);En[Xr].children&&Kn(En[Xr].children,Qr,sa)}},Ht=Object(a.a)(xt),bt(Ht,ft,function(Kn,En,Qr){Qr.splice(En,1),Gt=Kn}),We.dropToGap?(We.node.props.children||[]).length>0&&We.node.props.expanded&&Ot===1?bt(Ht,St,function(Kn){Kn.children=Kn.children||[],Kn.children.unshift(Gt)}):(bt(Ht,St,function(Kn,En,Qr){xn=Qr,vn=En}),Ot===-1?xn.splice(vn,0,Gt):xn.splice(vn+1,0,Gt)):bt(Ht,St,function(Kn){Kn.children=Kn.children||[],Kn.children.unshift(Gt)}),xr.next=17,fe({stage_id:ce.stage_id,list:Ht});case 17:Xt(Ht,0,0,!0),console.log("data:",Ht),Ke(Object(a.a)(Ht)),re([].concat(Object(a.a)(ke),[We.node.key]));case 21:case"end":return xr.stop()}},Re)}));return function(We){return Ct.apply(this,arguments)}}(),Xt=function Ct(Re,We,St,ft){We=We||0,Re.map(function(It,Ot){try{var bt;return It.key2=We+1+"-"+(Ot+1),It.key3=ce.index+1+"-"+(Ot+1),It.title="",ft||(It.key=We+1+"-"+(Ot+1)),We?It.index=St+"-"+(Ot+1):It.index=It.key3,(bt=It.children)!==null&&bt!==void 0&&bt.length&&(de.push(It.key2),Ct(It.children,It.key2,It.index,ft)),It}catch(Ht){}})},un=function(Re){var We=Re.learning_status,St=Re.name,ft=(We==null?void 0:We[0])==="can"&&(We==null?void 0:We[1])==="try";return ft?A.a.createElement("div",{className:J.a.learn},A.a.createElement("span",{className:J.a.name},St),A.a.createElement("span",{className:J.a.sign},"\u514D\u8D39\u8BD5\u5B66")):St},jt=function(Re){if(ie!=="All")return;ke.includes(Re)?re(ke.filter(function(We){return We!=Re})):re(ke.concat(Re))},Zt=function(){var Ct=Object(o.a)(B.a.mark(function Re(We){return B.a.wrap(function(ft){for(;;)switch(ft.prev=ft.next){case 0:if(Object(Q.e)(ge,!0)){ft.next=2;break}return ft.abrupt("return");case 2:if(!(We!=null&&We.need_authorize)){ft.next=5;break}return Object(Q.a)(!1),ft.abrupt("return");case 5:if(!(Et!=null&&Et.course_id)){ft.next=8;break}return ft.next=8,Object(O.L)({id:Et==null?void 0:Et.course_id});case 8:Ne(We.identifier,We.is_jupyter||We.is_jupyter_lab);case 9:case"end":return ft.stop()}},Re)}));return function(We){return Ct.apply(this,arguments)}}(),Mt=function(){var Ct=Object(o.a)(B.a.mark(function Re(We){var St,ft,It,Ot,bt,Ht;return B.a.wrap(function(xn){for(;;)switch(xn.prev=xn.next){case 0:if(Object(Q.e)(ge)){xn.next=2;break}return xn.abrupt("return");case 2:if(!(!((St=pe.userInfo)!==null&&St!==void 0&&St.admin)&&!((ft=pe.userInfo)!==null&&ft!==void 0&&ft.business)&&!We.can_view&&We.item_type!=="Attachment")){xn.next=4;break}return xn.abrupt("return",d.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:A.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:We.link&&Object(D.n)({is_f:1,id:We.id,point:0,total:0}),bt=ce!=null&&ce.course_id?"course_id=".concat(ce==null?void 0:ce.course_id):"subject_id=".concat(le.pathId||ce.subject_id),Ht=We==null||((It=We.name)===null||It===void 0)?void 0:It.substr(We==null||((Ot=We.name)===null||Ot===void 0)?void 0:Ot.lastIndexOf(".")),Ht.toUpperCase()===".ZIP"?Object(T.t)(We.name,X.a.API_SERVER+We.url):Object(T.Q)(We.link||"/video/".concat(We.id,"?").concat(bt));case 8:case"end":return xn.stop()}},Re)}));return function(We){return Ct.apply(this,arguments)}}(),Tt=function(Re){var We;return Re.item_type==="Shixun"?Re.is_all_choice?We=A.a.createElement(e.a,{title:"\u9009\u62E9\u9898"},A.a.createElement("i",{className:"iconfont icon-xuanzeti3 c-lake-blue font20"})):We=A.a.createElement(e.a,{title:"\u5B9E\u8BAD\u9898"},A.a.createElement("i",{className:"iconfont icon-shixunti2 c-light-primary font20"})):Re.item_type==="VideoItem"?We=A.a.createElement("i",{className:"iconfont icon-shipin2 c-purple-8C1 font20"}):Re.item_type==="StageCatalog"?We=A.a.createElement("i",{className:"iconfont icon-kongbai c-brilliant-blue font20"}):We=A.a.createElement("i",{className:"iconfont icon-kejian1 c-cyan-blue font20"}),We;Re.item_type==="Shixun"||Re.item_type==="StageCatalog"};return A.a.createElement(A.a.Fragment,null,A.a.createElement(te.a,Object(c.a)({},qe,{onClose:function(){$e(Object(r.a)(Object(r.a)({},qe),{},{type:""})),ge({type:"attachment/setActionTabs",payload:{}})}})),A.a.createElement(Y.a,{className:J.a.tree,disabled:ce.disabled,expandedKeys:Object(a.a)(ke),draggable:!0,onDragEnter:At,onDrop:Ut,onExpand:jt,blockNode:!0,titleRender:function(Re){var We,St,ft,It,Ot=Re;if(Ot.item_type!==ie&&ie!=="All")return null;var bt=Re.index.slice(0,1)==="1",Ht=(Re==null||((We=Re.learning_status)===null||We===void 0)?void 0:We[0])==="can";return A.a.createElement(y.a,{align:"middle",className:"font14",onClick:function(){return jt(Ot.key)}},A.a.createElement(m.a,{flex:"30px"},Tt(Re)),A.a.createElement(m.a,{flex:"1",className:"c-grey-333"},ce.cust_seq&&A.a.createElement("span",{className:"mr10"},Re.index),Re.item_type!=="Attachment"&&un(Re),Re.item_type==="Attachment"&&A.a.createElement("a",{target:"_blank",onClick:Object(o.a)(B.a.mark(function Gt(){var xn;return B.a.wrap(function(sr){for(;;)switch(sr.prev=sr.next){case 0:if(Object(Q.e)(ge)){sr.next=2;break}return sr.abrupt("return");case 2:if(!(Et!=null&&Et.course_id)){sr.next=6;break}return sr.next=5,Object(O.L)({id:Et==null?void 0:Et.course_id});case 5:xn=sr.sent;case 6:sr.t0=Re.item_type,sr.next=sr.t0==="Attachment"?9:sr.t0==="VideoItem"?13:sr.t0==="Shixun"?15:17;break;case 9:return qe.type=Ot.file_type,qe.data=X.a.API_SERVER+Ot.url,$e(Object(r.a)({},qe)),sr.abrupt("break",17);case 13:return Mt(Re),sr.abrupt("break",17);case 15:return Zt(Re),sr.abrupt("break",17);case 17:case"end":return sr.stop()}},Gt)}))},Re.name),Re.item_type==="Shixun"&&Re.is_unity_3d&&A.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"),!!((St=Re.schools)!==null&&St!==void 0&&St.length)&&A.a.createElement(e.a,{title:"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E"},A.a.createElement("i",{className:"iconfont icon-zhidinggongkai1 ml10 c-orange",style:{transform:"translateY(1px)",display:"inline-block"}})),Re.item_type==="Shixun"&&!!(Re!=null&&Re.finished_challenges_count)&&A.a.createElement(e.a,{title:"\u5B8C\u6210\u5EA6:".concat(Math.round((Re==null?void 0:Re.finished_challenges_count)/(Re==null?void 0:Re.challenges_count)*100),"%")},A.a.createElement("i",{className:"iconfont icon-a-wanchengdu100 ml10 ".concat((Re==null?void 0:Re.finished_challenges_count)-(Re==null?void 0:Re.challenges_count)===0?"c-light-green":"c-grey-333"),style:{transform:"translateY(1px)",display:"inline-block"}}))),!ce.disabled&&A.a.createElement("aside",{style:{color:"#0152d9",fontSize:"14px",marginRight:"20px"}},"\u62D6\u52A8\u53EF\u4EE5\u6539\u53D8\u9879\u76EE\u663E\u793A\u987A\u5E8F"),A.a.createElement(m.a,{className:"tr"},(Ot.item_type==="VideoItem"||(Ot==null?void 0:Ot.item_type)==="Attachment")&&!ce.disabled&&A.a.createElement(e.a,{title:"\u7F16\u8F91"},A.a.createElement("span",{onClick:function(){ce.editVidoItem(Ot)},style:{color:"#ccc",marginRight:"10px"}},A.a.createElement(x.a,null))),!ce.disabled&&A.a.createElement(A.a.Fragment,null,A.a.createElement(e.a,{title:"\u5220\u9664"},A.a.createElement("span",{onClick:function(){ce.deleteStages({id:Ot.stage_item_id,stage_id:ce.stage_id})},className:"iconfont icon-shanchu c-grey-c"}))),ce.showVideoPlay&&ce.disabled&&Ot.item_type==="VideoItem"&&Ht&&A.a.createElement("aside",null,A.a.createElement(_.a,{type:"primary",onClick:Object(o.a)(B.a.mark(function Gt(){return B.a.wrap(function(vn){for(;;)switch(vn.prev=vn.next){case 0:Mt(Ot);case 1:case"end":return vn.stop()}},Gt)}))},Ot.last_point>0?"\u7EE7\u7EED\u5B66\u4E60":"\u5F00\u59CB\u5B66\u4E60")),(((ft=pe.userInfo)===null||ft===void 0?void 0:ft.admin)||Ot.allow_visit||Ot.to_be_built||Ot.shixun_status!=="\u6682\u672A\u516C\u5F00"&&Ot.shixun_status!=="\u5DF2\u5220\u9664")&&ce.disabled&&Ot.item_type==="Shixun"&&Ht&&A.a.createElement("aside",null,A.a.createElement(_.a,{className:"ml10",type:"primary",onClick:Object(o.a)(B.a.mark(function Gt(){return B.a.wrap(function(vn){for(;;)switch(vn.prev=vn.next){case 0:if(Object(Q.e)(ge)){vn.next=2;break}return vn.abrupt("return");case 2:if(!(Et!=null&&Et.course_id)){vn.next=5;break}return vn.next=5,Object(O.L)({id:Et==null?void 0:Et.course_id});case 5:window.open("/shixuns/".concat(Ot.identifier,"/challenges"));case 6:case"end":return vn.stop()}},Gt)}))},"\u67E5\u770B\u8BE6\u60C5"),Ot.shixun_status!=="\u6682\u672A\u516C\u5F00"&&A.a.createElement(_.a,{className:"ml10",type:"primary",onClick:Object(o.a)(B.a.mark(function Gt(){return B.a.wrap(function(vn){for(;;)switch(vn.prev=vn.next){case 0:Zt(Ot);case 1:case"end":return vn.stop()}},Gt)}))},Ot!=null&&Ot.need_authorize?"\u9700\u6388\u6743":Re!=null&&Re.finished_challenges_count?(Re==null?void 0:Re.finished_challenges_count)-(Re==null?void 0:Re.challenges_count)===0?"\u518D\u6B21\u5B9E\u6218":"\u7EE7\u7EED\u5B9E\u6218":"\u5F00\u59CB\u5B9E\u6218")),ce.disabled&&!Ot.allow_visit&&!Ot.to_be_built&&Ot.shixun_status==="\u6682\u672A\u516C\u5F00"&&A.a.createElement("span",{className:J.a.color204},"\u6682\u672A\u516C\u5F00"),!Ot.allow_visit&&!Ot.to_be_built&&Ot.shixun_status==="\u5DF2\u5220\u9664"&&A.a.createElement("span",{className:J.a.color204},"\u5DF2\u5220\u9664"),ce.disabled&&Ot.item_type==="Shixun"&&!!Ot.challenges_count&&A.a.createElement("span",{className:"exper\u02C6iment-number ml5 c-grey-999"},"\u5B9E\u9A8C\u6570 ",Ot.challenges_count),ie==="All"&&!!((It=Re.children)!==null&&It!==void 0&&It.length)&&A.a.createElement("span",{className:"ml10"},ke.includes(Re.key)?A.a.createElement(G.a,null):A.a.createElement(N.a,null))))},treeData:xt}))};we.a=Object(i.a)(function(se){var _e=se.pathsDetail,Ae=se.loading,Ee=se.user,pe=se.globalSetting;return{pathsDetail:_e,globalSetting:pe,user:Ee,loading:Ae.effects}})(me)},ji0R:function(Ze,we,M){Ze.exports=M.p+"static/douyu.3e6df9ee.jpg"},juDX:function(Ze,we,M){M("P47w");var ue=M("aX58"),Y=ue.registerPainter,P=M("3CBa");Y("svg",P)},k3GJ:function(Ze,we,M){"use strict";M.d(we,"a",function(){return $s});var ue=M("rePB"),Y=M("ODXe"),P=M("Ff2n"),y=M("VTBJ"),E=M("q1tI"),_=M("TSYQ"),C=M.n(_),m=M("Zm9Q"),c=M("6cGi"),r=M("KQm4"),n=M("xEkU"),e=M.n(n),s=M("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 o(ut){var Ge=Object(E.useRef)([]),Ye=Object(E.useState)({}),Je=Object(Y.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 f=M("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,it=at.disabled,dt=at.closeIcon,Dt=ut.tabBarGutter,Qt=ut.tabPosition,Bt=ut.closable,$t=ut.renderWrapper,ln=ut.removeAriaLabel,On=ut.editable,Wt=ut.onClick,qt=ut.onRemove,yn=ut.onFocus,Rn="".concat(Je,"-tab");E.useEffect(function(){return qt},[]);var tn={};Qt==="top"||Qt==="bottom"?tn[Be?"marginLeft":"marginRight"]=Dt:tn.marginBottom=Dt;var bn=On&&Bt!==!1&&!it;function Ln(hn){if(it)return;Wt(hn)}function Xn(hn){hn.preventDefault(),hn.stopPropagation(),On.onEdit("remove",{key:nt,event:hn})}var rn=E.createElement("div",{key:nt,ref:Ge,className:C()(Rn,(Ye={},Object(ue.a)(Ye,"".concat(Rn,"-with-remove"),bn),Object(ue.a)(Ye,"".concat(Rn,"-active"),Ve),Object(ue.a)(Ye,"".concat(Rn,"-disabled"),it),Ye)),style:tn,onClick:Ln},E.createElement("div",{role:"tab","aria-selected":Ve,id:Te&&"".concat(Te,"-tab-").concat(nt),className:"".concat(Rn,"-btn"),"aria-controls":Te&&"".concat(Te,"-panel-").concat(nt),"aria-disabled":it,tabIndex:it?null:0,onClick:function(An){An.stopPropagation(),Ln(An)},onKeyDown:function(An){[f.a.SPACE,f.a.ENTER].includes(An.which)&&(An.preventDefault(),Ln(An))},onFocus:yn},st),bn&&E.createElement("button",{type:"button","aria-label":ln||"remove",tabIndex:0,className:"".concat(Rn,"-remove"),onClick:function(An){An.stopPropagation(),Xn(An)}},dt||On.removeIcon||"\xD7"));return $t&&(rn=$t(rn)),rn}var a=E.forwardRef(d),h={width:0,height:0,left:0,top:0};function g(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 it;st=Ge.get((it=ut[at-1])===null||it===void 0?void 0:it.key)||h}var dt=Te.get(nt)||Object(y.a)({},st);dt.right=Be-dt.left-dt.width,Te.set(nt,dt)}return Te},[ut.map(function(Je){return Je.key}).join("_"),Ge,Ye])}var p={width:0,height:0,left:0,top:0,right:0};function S(ut,Ge,Ye,Je,Te){var Ve=Te.tabs,Be=Te.tabPosition,at=Te.rtl,nt,st,it;["top","bottom"].includes(Be)?(nt="width",st=at?"right":"left",it=Math.abs(Ge.left)):(nt="height",st="top",it=-Ge.top);var dt=Ge[nt],Dt=Ye[nt],Qt=Je[nt],Bt=dt;return Dt+Qt>dt&&(Bt=dt-Qt),Object(E.useMemo)(function(){if(!Ve.length)return[0,0];for(var $t=Ve.length,ln=$t,On=0;On<$t;On+=1){var Wt=ut.get(Ve[On].key)||p;if(Wt[st]+Wt[nt]>it+Bt){ln=On-1;break}}for(var qt=0,yn=$t-1;yn>=0;yn-=1){var Rn=ut.get(Ve[yn].key)||p;if(Rn[st]<it){qt=yn+1;break}}return[qt,ln]},[ut,it,Bt,Be,Ve.map(function($t){return $t.key}).join("_"),at])}var w=M("wx14"),B=M("1OyB"),b=M("vuIU"),A=M("JX7q"),l=M("Ji7U"),i=M("LK+K"),x=M("I8Z2"),O=M("bT9E"),T=M("2GS6"),D=M("Gytx"),R=M.n(D),k=M("U8pU"),H=/iPhone/i,J=/iPod/i,U=/iPad/i,K=/\bAndroid(?:.+)Mobile\b/i,G=/Android/i,N=/\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,me=/BB10/i,se=/Opera Mini/i,_e=/\b(CriOS|Chrome)(?:.+)Mobile/i,Ae=/Mobile(?:.+)Firefox\b/i;function Ee(ut,Ge){return ut.test(Ge)}function pe(ut){var Ge=ut||(typeof navigator!="undefined"?navigator.userAgent:""),Ye=(Ge||"").split("[FBAN");if(typeof Ye[1]!="undefined"){var Je=Ye,Te=Object(Y.a)(Je,1);Ge=Te[0]}if(Ye=Ge.split("Twitter"),typeof Ye[1]!="undefined"){var Ve=Ye,Be=Object(Y.a)(Ve,1);Ge=Be[0]}var at={apple:{phone:Ee(H,Ge)&&!Ee(X,Ge),ipod:Ee(J,Ge),tablet:!Ee(H,Ge)&&Ee(U,Ge)&&!Ee(X,Ge),device:(Ee(H,Ge)||Ee(J,Ge)||Ee(U,Ge))&&!Ee(X,Ge)},amazon:{phone:Ee(N,Ge),tablet:!Ee(N,Ge)&&Ee(Q,Ge),device:Ee(N,Ge)||Ee(Q,Ge)},android:{phone:!Ee(X,Ge)&&Ee(N,Ge)||!Ee(X,Ge)&&Ee(K,Ge),tablet:!Ee(X,Ge)&&!Ee(N,Ge)&&!Ee(K,Ge)&&(Ee(Q,Ge)||Ee(G,Ge)),device:!Ee(X,Ge)&&(Ee(N,Ge)||Ee(Q,Ge)||Ee(K,Ge)||Ee(G,Ge))||Ee(/\bokhttp\b/i,Ge)},windows:{phone:Ee(X,Ge),tablet:Ee(te,Ge),device:Ee(X,Ge)||Ee(te,Ge)},other:{blackberry:Ee(oe,Ge),blackberry10:Ee(me,Ge),opera:Ee(se,Ge),firefox:Ee(Ae,Ge),chrome:Ee(_e,Ge),device:Ee(oe,Ge)||Ee(me,Ge)||Ee(se,Ge)||Ee(Ae,Ge)||Ee(_e,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(y.a)(Object(y.a)({},pe()),{},{isMobile:pe}),ie=he;function fe(){}function ge(ut,Ge,Ye){var Je=Ge||"";return ut.key||"".concat(Je,"item_").concat(Ye)}function ce(ut){return"".concat(ut,"-menu-")}function Ie(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 Fe(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&&Fe(Je.props.children,Ge,Ye)}})}var ke=["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},F=function(Ge,Ye,Je){Ge&&Object(k.a)(Ge.style)==="object"&&(Ge.style[Ye]=Je)},W=function(){return ie.any},de=M("bdgK"),ne=M("i8i4"),le=M.n(ne),De=M("wgJM"),Xe=M("l4aY"),xt=M("m+aA"),Ke=M("c+Xe"),ze=M("zT1h"),yt=M("QC+M");function Et(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(y.a)(Object(y.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(Et(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)))},qe=M("MNnm");function $e(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 Pe(ut,Ge){var Ye={animationend:$e("Animation","AnimationEnd"),transitionend:$e("Transition","TransitionEnd")};return ut&&("AnimationEvent"in Ge||delete Ye.animationend.animation,"TransitionEvent"in Ge||delete Ye.transitionend.transition),Ye}var je=Pe(Object(qe.a)(),typeof window!="undefined"?window:{}),Ne={};if(Object(qe.a)()){var et=document.createElement("div");Ne=et.style}var mt={};function At(ut){if(mt[ut])return mt[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 mt[ut]=Ge[Ve],mt[ut]}return""}var Ut=At("animationend"),Xt=At("transitionend"),un=!!(Ut&&Xt),jt=Ut||"animationend",Zt=Xt||"transitionend";function Mt(ut,Ge){if(!ut)return null;if(Object(k.a)(ut)==="object"){var Ye=Ge.replace(/-\w/g,function(Je){return Je[1].toUpperCase()});return ut[Ye]}return"".concat(ut,"-").concat(Ge)}var Tt="none",Ct="appear",Re="enter",We="leave",St="none",ft="prepare",It="start",Ot="active",bt="end";function Ht(ut){var Ge=Object(E.useRef)(!1),Ye=Object(E.useState)(ut),Je=Object(Y.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 Gt=Object(qe.a)()?E.useLayoutEffect:E.useEffect,xn=Gt,vn=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]},sr=[ft,It,Ot,bt],xr=!1,Kn=!0;function En(ut){return ut===Ot||ut===bt}var Qr=function(ut,Ge){var Ye=E.useState(St),Je=Object(Y.a)(Ye,2),Te=Je[0],Ve=Je[1],Be=vn(),at=Object(Y.a)(Be,2),nt=at[0],st=at[1];function it(){Ve(ft)}return xn(function(){if(Te!==St&&Te!==bt){var dt=sr.indexOf(Te),Dt=sr[dt+1],Qt=Ge(Te);Qt===xr?Ve(Dt):nt(function(Bt){function $t(){if(Bt.isCanceled())return;Ve(Dt)}Qt===!0?$t():Promise.resolve(Qt).then($t)})}},[ut,Te]),E.useEffect(function(){return function(){st()}},[]),[it,Te]},sa=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(Zt,Je),Be.removeEventListener(jt,Je))}function Ve(Be){Ge.current&&Ge.current!==Be&&Te(Ge.current),Be&&Be!==Ge.current&&(Be.addEventListener(Zt,Je),Be.addEventListener(jt,Je),Ge.current=Be)}return E.useEffect(function(){return function(){Te(Ge.current)}},[]),[Ve,Te]};function Xr(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,it=Je.motionDeadline,dt=Je.motionLeaveImmediately,Dt=Je.onAppearPrepare,Qt=Je.onEnterPrepare,Bt=Je.onLeavePrepare,$t=Je.onAppearStart,ln=Je.onEnterStart,On=Je.onLeaveStart,Wt=Je.onAppearActive,qt=Je.onEnterActive,yn=Je.onLeaveActive,Rn=Je.onAppearEnd,tn=Je.onEnterEnd,bn=Je.onLeaveEnd,Ln=Je.onVisibleChanged,Xn=Ht(),rn=Object(Y.a)(Xn,2),hn=rn[0],An=rn[1],_n=Ht(Tt),tr=Object(Y.a)(_n,2),cn=tr[0],Fn=tr[1],Ir=Ht(null),hr=Object(Y.a)(Ir,2),Br=hr[0],ur=hr[1],Fr=Object(E.useRef)(!1),Qn=Object(E.useRef)(null),kr=Object(E.useRef)(!1),ta=Object(E.useRef)(null);function Wr(){var Jn=Ye();return Jn||ta.current}var yr=Object(E.useRef)(!1);function Dn(Jn){var Sn=Wr();if(Jn&&!Jn.deadline&&Jn.target!==Sn)return;var mr;cn===Ct&&yr.current?mr=Rn==null?void 0:Rn(Sn,Jn):cn===Re&&yr.current?mr=tn==null?void 0:tn(Sn,Jn):cn===We&&yr.current&&(mr=bn==null?void 0:bn(Sn,Jn)),mr!==!1&&!kr.current&&(Fn(Tt),ur(null))}var ar=sa(Dn),Pr=Object(Y.a)(ar,1),jn=Pr[0],$n=E.useMemo(function(){var Jn,Sn,mr;switch(cn){case"appear":return Jn={},Object(ue.a)(Jn,ft,Dt),Object(ue.a)(Jn,It,$t),Object(ue.a)(Jn,Ot,Wt),Jn;case"enter":return Sn={},Object(ue.a)(Sn,ft,Qt),Object(ue.a)(Sn,It,ln),Object(ue.a)(Sn,Ot,qt),Sn;case"leave":return mr={},Object(ue.a)(mr,ft,Bt),Object(ue.a)(mr,It,On),Object(ue.a)(mr,Ot,yn),mr;default:return{}}},[cn]),ir=Qr(cn,function(Jn){if(Jn===ft){var Sn=$n[ft];return Sn?Sn(Wr()):xr}if(fn in $n){var mr;ur(((mr=$n[fn])===null||mr===void 0?void 0:mr.call($n,Wr(),null))||null)}return fn===Ot&&(jn(Wr()),it>0&&(clearTimeout(Qn.current),Qn.current=setTimeout(function(){Dn({deadline:!0})},it))),Kn}),Zn=Object(Y.a)(ir,2),zn=Zn[0],fn=Zn[1],on=En(fn);yr.current=on,xn(function(){An(Ge);var Jn=Fr.current;if(Fr.current=!0,!ut)return;var Sn;!Jn&&Ge&&at&&(Sn=Ct),Jn&&Ge&&Ve&&(Sn=Re),(Jn&&!Ge&&st||!Jn&&dt&&!Ge&&st)&&(Sn=We),Sn&&(Fn(Sn),zn())},[Ge]),Object(E.useEffect)(function(){(cn===Ct&&!at||cn===Re&&!Ve||cn===We&&!st)&&Fn(Tt)},[at,Ve,st]),Object(E.useEffect)(function(){return function(){clearTimeout(Qn.current),kr.current=!0}},[]),Object(E.useEffect)(function(){hn!==void 0&&cn===Tt&&(Ln==null||Ln(hn))},[hn,cn]);var Gn=Br;return $n[ft]&&fn===It&&(Gn=Object(y.a)({transition:"none"},Gn)),[cn,fn,Gn,hn!=null?hn:Ge]}var Nr=function(ut){Object(l.a)(Ye,ut);var Ge=Object(i.a)(Ye);function Ye(){return Object(B.a)(this,Ye),Ge.apply(this,arguments)}return Object(b.a)(Ye,[{key:"render",value:function(){return this.props.children}}]),Ye}(E.Component),ba=Nr;function ja(ut){var Ge=ut;Object(k.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,it=Te.forceRender,dt=Te.children,Dt=Te.motionName,Qt=Te.leavedClassName,Bt=Te.eventProps,$t=Ye(Te),ln=Object(E.useRef)(),On=Object(E.useRef)();function Wt(){try{return Object(xt.a)(ln.current||On.current)}catch(Fn){return null}}var qt=Xr($t,at,Wt,Te),yn=Object(Y.a)(qt,4),Rn=yn[0],tn=yn[1],bn=yn[2],Ln=yn[3],Xn=E.useRef(Ln);Ln&&(Xn.current=!0);var rn=Object(E.useRef)(Ve);rn.current=Ve;var hn=E.useCallback(function(Fn){ln.current=Fn,Object(Ke.b)(rn.current,Fn)},[]),An,_n=Object(y.a)(Object(y.a)({},Bt),{},{visible:at});if(!dt)An=null;else if(Rn===Tt||!Ye(Te))Ln?An=dt(Object(y.a)({},_n),hn):!st&&Xn.current?An=dt(Object(y.a)(Object(y.a)({},_n),{},{className:Qt}),hn):it?An=dt(Object(y.a)(Object(y.a)({},_n),{},{style:{display:"none"}}),hn):An=null;else{var tr,cn;tn===ft?cn="prepare":En(tn)?cn="active":tn===It&&(cn="start"),An=dt(Object(y.a)(Object(y.a)({},_n),{},{className:C()(Mt(Dt,Rn),(tr={},Object(ue.a)(tr,Mt(Dt,"".concat(Rn,"-").concat(cn)),cn),Object(ue.a)(tr,Dt,typeof Dt=="string"),tr)),style:bn}),hn)}return E.createElement(ba,{ref:On},An)});return Je.displayName="CSSMotion",Je}var oi=ja(un),Le="add",Qe="keep",ot="remove",_t="removed";function Kt(ut){var Ge;return ut&&Object(k.a)(ut)==="object"&&"key"in ut?Ge=ut:Ge={key:ut},Object(y.a)(Object(y.a)({},Ge),{},{key:String(Ge.key)})}function nn(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ut.map(Kt)}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=nn(ut),Be=nn(Ge);Ve.forEach(function(st){for(var it=!1,dt=Je;dt<Te;dt+=1){var Dt=Be[dt];if(Dt.key===st.key){Je<dt&&(Ye=Ye.concat(Be.slice(Je,dt).map(function(Qt){return Object(y.a)(Object(y.a)({},Qt),{},{status:Le})})),Je=dt),Ye.push(Object(y.a)(Object(y.a)({},Dt),{},{status:Qe})),Je+=1,it=!0;break}}it||Ye.push(Object(y.a)(Object(y.a)({},st),{},{status:ot}))}),Je<Te&&(Ye=Ye.concat(Be.slice(Je).map(function(st){return Object(y.a)(Object(y.a)({},st),{},{status:Le})})));var at={};Ye.forEach(function(st){var it=st.key;at[it]=(at[it]||0)+1});var nt=Object.keys(at).filter(function(st){return at[st]>1});return nt.forEach(function(st){Ye=Ye.filter(function(it){var dt=it.key,Dt=it.status;return dt!==st||Dt!==ot}),Ye.forEach(function(it){it.key===st&&(it.status=Qe)})}),Ye}var z=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Z(ut){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:oi,Ye=function(Je){Object(l.a)(Ve,Je);var Te=Object(i.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(it){return it.key!==at?it:Object(y.a)(Object(y.a)({},it),{},{status:_t})})}})},Be}return Object(b.a)(Ve,[{key:"render",value:function(){var at=this,nt=this.state.keyEntities,st=this.props,it=st.component,dt=st.children,Dt=st.onVisibleChanged,Qt=Object(P.a)(st,["component","children","onVisibleChanged"]),Bt=it||E.Fragment,$t={};return z.forEach(function(ln){$t[ln]=Qt[ln],delete Qt[ln]}),delete Qt.keys,E.createElement(Bt,Qt,nt.map(function(ln){var On=ln.status,Wt=Object(P.a)(ln,["status"]),qt=On===Le||On===Qe;return E.createElement(Ge,Object(w.a)({},$t,{key:Wt.key,visible:qt,eventProps:Wt,onVisibleChanged:function(Rn){Dt==null||Dt(Rn,{key:Wt.key}),Rn||at.removeKey(Wt.key)}}),dt)}))}}],[{key:"getDerivedStateFromProps",value:function(at,nt){var st=at.keys,it=nt.keyEntities,dt=nn(st),Dt=ve(it,dt);return{keyEntities:Dt.filter(function(Qt){var Bt=it.find(function($t){var ln=$t.key;return Qt.key===ln});return!(Bt&&Bt.status===_t&&Qt.status===ot)})}}}]),Ve}(E.Component);return Ye.defaultProps={component:"div"},Ye}var ye=Z(un),Ce=oi;function be(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 ht(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(y.a)({motionAppear:!0},be({motion:Ve,prefixCls:Ge,transitionName:at,animation:Be}))),E.createElement(Ce,Object(w.a)({},nt,{visible:Ye,removeOnLeave:!0}),function(st){var it=st.className;return E.createElement("div",{style:{zIndex:Je},className:C()("".concat(Ge,"-mask"),it)})})}var Nt=M("9mu1"),sn=M("o0o1"),pn=M.n(sn),zt=M("HaE+"),qn=["measure","align",null,"motion"],Un=function(ut,Ge){var Ye=Object(E.useState)(null),Je=Object(Y.a)(Ye,2),Te=Je[0],Ve=Je[1],Be=Object(E.useRef)(),at=Object(E.useRef)(!1);function nt(dt){at.current||Ve(dt)}function st(){De.a.cancel(Be.current)}function it(dt){st(),Be.current=Object(De.a)(function(){nt(function(Dt){switch(Te){case"align":return"motion";case"motion":return"stable";default:}return Dt}),dt==null||dt()})}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(zt.a)(pn.a.mark(function dt(){var Dt,Qt;return pn.a.wrap(function($t){for(;;)switch($t.prev=$t.next){case 0:Dt=qn.indexOf(Te),Qt=qn[Dt+1],Qt&&Dt!==-1&&nt(Qt);case 3:case"end":return $t.stop()}},dt)}))))},[Te]),Object(E.useEffect)(function(){return function(){at.current=!0,st()}},[]),[Te,it]},rr=function(ut){var Ge=E.useState({width:0,height:0}),Ye=Object(Y.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]},Sr=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,it=ut.forceRender,dt=ut.align,Dt=ut.point,Qt=ut.getRootDomNode,Bt=ut.getClassNameFromAlign,$t=ut.onAlign,ln=ut.onMouseEnter,On=ut.onMouseLeave,Wt=ut.onMouseDown,qt=ut.onTouchStart,yn=Object(E.useRef)(),Rn=Object(E.useRef)(),tn=Object(E.useState)(),bn=Object(Y.a)(tn,2),Ln=bn[0],Xn=bn[1],rn=rr(nt),hn=Object(Y.a)(rn,2),An=hn[0],_n=hn[1];function tr(){nt&&_n(Qt())}var cn=Un(Ye,tr),Fn=Object(Y.a)(cn,2),Ir=Fn[0],hr=Fn[1],Br=Object(E.useRef)();function ur(){return Dt||Qt}function Fr(){var ar;(ar=yn.current)===null||ar===void 0||ar.forceAlign()}function Qn(ar,Pr){var jn=Bt(Pr);Ln!==jn&&Xn(jn),Ir==="align"&&(Ln!==jn?Promise.resolve().then(function(){Fr()}):hr(function(){var $n;($n=Br.current)===null||$n===void 0||$n.call(Br)}),$t==null||$t(ar,Pr))}var kr=Object(y.a)({},be(ut));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(ar){var Pr=kr[ar];kr[ar]=function(jn,$n){return hr(),Pr==null?void 0:Pr(jn,$n)}});function ta(){return new Promise(function(ar){Br.current=ar})}E.useEffect(function(){!kr.motionName&&Ir==="motion"&&hr()},[kr.motionName,Ir]),E.useImperativeHandle(Ge,function(){return{forceAlign:Fr,getElement:function(){return Rn.current}}});var Wr=Object(y.a)(Object(y.a)({},An),{},{zIndex:at,opacity:Ir==="motion"||Ir==="stable"||!Ye?void 0:0,pointerEvents:Ir==="stable"?void 0:"none"},Ve),yr=!0;(dt==null?void 0:dt.points)&&(Ir==="align"||Ir==="stable")&&(yr=!1);var Dn=Be;return E.Children.count(Be)>1&&(Dn=E.createElement("div",{className:"".concat(Je,"-content")},Be)),E.createElement(Ce,Object(w.a)({visible:Ye,ref:Rn,leavedClassName:"".concat(Je,"-hidden")},kr,{onAppearPrepare:ta,onEnterPrepare:ta,removeOnLeave:st,forceRender:it}),function(ar,Pr){var jn=ar.className,$n=ar.style,ir=C()(Je,Te,Ln,jn);return E.createElement(Nt.a,{target:ur(),key:"popup",ref:yn,monitorWindowResize:!0,disabled:yr,align:dt,onAlign:Qn},E.createElement("div",{ref:Pr,className:ir,onMouseEnter:ln,onMouseLeave:On,onMouseDownCapture:Wt,onTouchStartCapture:qt,style:Object(y.a)(Object(y.a)({},$n),Wr)},Dn))})});Sr.displayName="PopupInner";var ia=Sr,Dr=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,it=st===void 0?{}:st,dt=Be.popupRender,Dt=E.useRef();E.useImperativeHandle(Ge,function(){return{forceAlign:function(){},getElement:function(){return Dt.current}}});var Qt=Object(y.a)({zIndex:Te},nt),Bt=Ve;return E.Children.count(Ve)>1&&(Bt=E.createElement("div",{className:"".concat(Ye,"-content")},Ve)),dt&&(Bt=dt(Bt)),E.createElement(Ce,Object(w.a)({visible:Je,ref:Dt,removeOnLeave:!0},it),function($t,ln){var On=$t.className,Wt=$t.style,qt=C()(Ye,at,On);return E.createElement("div",{ref:ln,className:qt,style:Object(y.a)(Object(y.a)({},Wt),Qt)},Bt)})});Dr.displayName="MobilePopupInner";var na=Dr,Tr=["visible","mobile"],ma=E.forwardRef(function(ut,Ge){var Ye=ut.visible,Je=ut.mobile,Te=Object(P.a)(ut,Tr),Ve=Object(E.useState)(Ye),Be=Object(Y.a)(Ve,2),at=Be[0],nt=Be[1],st=Object(E.useState)(!1),it=Object(Y.a)(st,2),dt=it[0],Dt=it[1],Qt=Object(y.a)(Object(y.a)({},Te),{},{visible:at});Object(E.useEffect)(function(){nt(Ye),Ye&&Je&&Dt(rt())},[Ye,Je]);var Bt=dt?E.createElement(na,Object(w.a)({},Qt,{mobile:Je,ref:Ge})):E.createElement(ia,Object(w.a)({},Qt,{ref:Ge}));return E.createElement("div",null,E.createElement(ht,Qt),Bt)});ma.displayName="Popup";var ha=ma,Oa=E.createContext(null),xa=Oa;function ka(){}function Ha(){return""}function Ia(ut){return ut?ut.ownerDocument:window.document}var Yr=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function za(ut){var Ge=function(Ye){Object(l.a)(Te,Ye);var Je=Object(i.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(Xe.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 it=!Be.state.popupVisible;(Be.isClickToHide()&&!it||it&&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,it=Be.getRootDomNode(),dt=Be.getPopupDomNode();(!Object(Xe.a)(it,st)||Be.isContextMenuOnly())&&!Object(Xe.a)(dt,st)&&!Be.hasPopupMouseDown&&Be.close()},Be.getRootDomNode=function(){var nt=Be.props.getTriggerDOMNode;if(nt)return nt(Be.triggerRef.current);try{var st=Object(xt.a)(Be.triggerRef.current);if(st)return st}catch(it){}return le.a.findDOMNode(Object(A.a)(Be))},Be.getPopupClassNameFromAlign=function(nt){var st=[],it=Be.props,dt=it.popupPlacement,Dt=it.builtinPlacements,Qt=it.prefixCls,Bt=it.alignPoint,$t=it.getPopupClassNameFromAlign;return dt&&Dt&&st.push(lt(Dt,Qt,nt,Bt)),$t&&st.push($t(nt)),st.join(" ")},Be.getComponent=function(){var nt=Be.props,st=nt.prefixCls,it=nt.destroyPopupOnHide,dt=nt.popupClassName,Dt=nt.onPopupAlign,Qt=nt.popupMotion,Bt=nt.popupAnimation,$t=nt.popupTransitionName,ln=nt.popupStyle,On=nt.mask,Wt=nt.maskAnimation,qt=nt.maskTransitionName,yn=nt.maskMotion,Rn=nt.zIndex,tn=nt.popup,bn=nt.stretch,Ln=nt.alignPoint,Xn=nt.mobile,rn=nt.forceRender,hn=Be.state,An=hn.popupVisible,_n=hn.point,tr=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(ha,Object(w.a)({prefixCls:st,destroyPopupOnHide:it,visible:An,point:Ln&&_n,className:dt,align:tr,onAlign:Dt,animation:Bt,getClassNameFromAlign:Be.getPopupClassNameFromAlign},cn,{stretch:bn,getRootDomNode:Be.getRootDomNode,style:ln,mask:On,zIndex:Rn,transitionName:$t,maskAnimation:Wt,maskTransitionName:qt,maskMotion:yn,ref:Be.popupRef,motion:Qt,mobile:Xn,forceRender:rn}),typeof tn=="function"?tn():tn)},Be.attachParent=function(nt){De.a.cancel(Be.attachId);var st=Be.props,it=st.getPopupContainer,dt=st.getDocument,Dt=Be.getRootDomNode(),Qt;it?(Dt||it.length===0)&&(Qt=it(Dt)):Qt=dt(Be.getRootDomNode()).body,Qt?Qt.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},Yr.forEach(function(nt){Be["fire".concat(nt)]=function(st){Be.fireEvents(nt,st)}}),Be}return Object(b.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(ze.a)(nt,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(nt=nt||Be.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(ze.a)(nt,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(nt=nt||Be.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(ze.a)(nt,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(ze.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,it=at*1e3;if(this.clearDelayTimer(),it){var dt=nt?{pageX:nt.pageX,pageY:nt.pageY}:null;this.delayTimer=window.setTimeout(function(){st.setPopupVisible(Be,dt),st.clearDelayTimer()},it)}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,it=at.alignPoint,dt=at.className,Dt=at.autoDestroy,Qt=E.Children.only(nt),Bt={key:"trigger"};this.isContextMenuToShow()?Bt.onContextMenu=this.onContextMenu:Bt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Bt.onClick=this.onClick,Bt.onMouseDown=this.onMouseDown,Bt.onTouchStart=this.onTouchStart):(Bt.onClick=this.createTwoChains("onClick"),Bt.onMouseDown=this.createTwoChains("onMouseDown"),Bt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Bt.onMouseEnter=this.onMouseEnter,it&&(Bt.onMouseMove=this.onMouseMove)):Bt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Bt.onMouseLeave=this.onMouseLeave:Bt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Bt.onFocus=this.onFocus,Bt.onBlur=this.onBlur):(Bt.onFocus=this.createTwoChains("onFocus"),Bt.onBlur=this.createTwoChains("onBlur"));var $t=C()(Qt&&Qt.props&&Qt.props.className,dt);$t&&(Bt.className=$t);var ln=Object(y.a)({},Bt);Object(Ke.c)(Qt)&&(ln.ref=Object(Ke.a)(this.triggerRef,Qt.ref));var On=E.cloneElement(Qt,ln),Wt;return(Be||this.popupRef.current||st)&&(Wt=E.createElement(ut,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Be&&Dt&&(Wt=null),E.createElement(xa.Provider,{value:this.triggerContextValue},On,Wt)}}],[{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=xa,Ge.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Ha,getDocument:Ia,onPopupVisibleChange:ka,afterPopupVisibleChange:ka,onPopupAlign:ka,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 Ga=za(yt.a),Da={adjustX:1,adjustY:1},si={topLeft:{points:["bl","tl"],overflow:Da,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Da,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Da,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Da,offset:[4,0]}},di={topLeft:{points:["bl","tl"],overflow:Da,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Da,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Da,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Da,offset:[4,0]}},Ma=si,zr=0,Ar={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Gr=function(Ge,Ye,Je){var Te=ce(Ye),Ve=Ge.getState();Ge.setState({defaultActiveFirst:Object(y.a)(Object(y.a)({},Ve.defaultActiveFirst),{},Object(ue.a)({},Te,Je))})},qr=function(ut){Object(l.a)(Ye,ut);var Ge=Object(i.a)(Ye);function Ye(Je){var Te;Object(B.a)(this,Ye),Te=Ge.call(this,Je),Te.onDestroy=function(it){Te.props.onDestroy(it)},Te.onKeyDown=function(it){var dt=it.keyCode,Dt=Te.menuInstance,Qt=Te.props.store,Bt=Te.getVisible();if(dt===f.a.ENTER)return Te.onTitleClick(it),Gr(Qt,Te.props.eventKey,!0),!0;if(dt===f.a.RIGHT)return Bt?Dt.onKeyDown(it):(Te.triggerOpenChange(!0),Gr(Qt,Te.props.eventKey,!0)),!0;if(dt===f.a.LEFT){var $t;if(Bt)$t=Dt.onKeyDown(it);else return;return $t||(Te.triggerOpenChange(!1),$t=!0),$t}return Bt&&(dt===f.a.UP||dt===f.a.DOWN)?Dt.onKeyDown(it):void 0},Te.onOpenChange=function(it){Te.props.onOpenChange(it)},Te.onPopupVisibleChange=function(it){Te.triggerOpenChange(it,it?"mouseenter":"mouseleave")},Te.onMouseEnter=function(it){var dt=Te.props,Dt=dt.eventKey,Qt=dt.onMouseEnter,Bt=dt.store;Gr(Bt,Te.props.eventKey,!1),Qt({key:Dt,domEvent:it})},Te.onMouseLeave=function(it){var dt=Te.props,Dt=dt.parentMenu,Qt=dt.eventKey,Bt=dt.onMouseLeave;Dt.subMenuInstance=Object(A.a)(Te),Bt({key:Qt,domEvent:it})},Te.onTitleMouseEnter=function(it){var dt=Te.props,Dt=dt.eventKey,Qt=dt.onItemHover,Bt=dt.onTitleMouseEnter;Qt({key:Dt,hover:!0}),Bt({key:Dt,domEvent:it})},Te.onTitleMouseLeave=function(it){var dt=Te.props,Dt=dt.parentMenu,Qt=dt.eventKey,Bt=dt.onItemHover,$t=dt.onTitleMouseLeave;Dt.subMenuInstance=Object(A.a)(Te),Bt({key:Qt,hover:!1}),$t({key:Qt,domEvent:it})},Te.onTitleClick=function(it){var dt=Object(A.a)(Te),Dt=dt.props;if(Dt.onTitleClick({key:Dt.eventKey,domEvent:it}),Dt.triggerSubMenuAction==="hover")return;Te.triggerOpenChange(!Te.getVisible(),"click"),Gr(Dt.store,Te.props.eventKey,!1)},Te.onSubMenuClick=function(it){typeof Te.props.onClick=="function"&&Te.props.onClick(Te.addKeyPath(it))},Te.onSelect=function(it){Te.props.onSelect(it)},Te.onDeselect=function(it){Te.props.onDeselect(it)},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(it){Te.menuInstance=it},Te.addKeyPath=function(it){return Object(y.a)(Object(y.a)({},it),{},{keyPath:(it.keyPath||[]).concat(Te.props.eventKey)})},Te.triggerOpenChange=function(it,dt){var Dt=Te.props.eventKey,Qt=function(){Te.onOpenChange({key:Dt,item:Object(A.a)(Te),trigger:dt,open:it})};dt==="mouseenter"?Te.mouseenterTimeout=setTimeout(function(){Qt()},0):Qt()},Te.isChildrenSelected=function(){var it={find:!1};return Fe(Te.props.children,Te.props.selectedKeys,it),it.find},Te.isInlineMode=function(){return Te.getMode()==="inline"},Te.adjustWidth=function(){if(!Te.subMenuTitle||!Te.menuInstance)return;var it=ne.findDOMNode(Te.menuInstance);if(it.offsetWidth>=Te.subMenuTitle.offsetWidth)return;it.style.minWidth="".concat(Te.subMenuTitle.offsetWidth,"px")},Te.saveSubMenuTitle=function(it){Te.subMenuTitle=it},Te.getBaseProps=function(){var it=Object(A.a)(Te),dt=it.props,Dt=Te.getMode();return{mode:Dt==="horizontal"?"vertical":Dt,visible:Te.getVisible(),level:dt.level+1,inlineIndent:dt.inlineIndent,focusable:!1,onClick:Te.onSubMenuClick,onSelect:Te.onSelect,onDeselect:Te.onDeselect,onDestroy:Te.onDestroy,selectedKeys:dt.selectedKeys,eventKey:"".concat(dt.eventKey,"-menu-"),openKeys:dt.openKeys,motion:dt.motion,onOpenChange:Te.onOpenChange,subMenuOpenDelay:dt.subMenuOpenDelay,parentMenu:Object(A.a)(Te),subMenuCloseDelay:dt.subMenuCloseDelay,forceSubMenuRender:dt.forceSubMenuRender,triggerSubMenuAction:dt.triggerSubMenuAction,builtinPlacements:dt.builtinPlacements,defaultActiveFirst:dt.store.getState().defaultActiveFirst[ce(dt.eventKey)],multiple:dt.multiple,prefixCls:dt.rootPrefixCls,id:Te.internalMenuId,manualRef:Te.saveMenuInstance,itemIcon:dt.itemIcon,expandIcon:dt.expandIcon,direction:dt.direction}},Te.getMotion=function(it,dt){var Dt=Object(A.a)(Te),Qt=Dt.haveRendered,Bt=Te.props,$t=Bt.motion,ln=Bt.rootPrefixCls,On=Object(y.a)(Object(y.a)({},$t),{},{leavedClassName:"".concat(ln,"-hidden"),removeOnLeave:!1,motionAppear:Qt||!dt||it!=="inline"});return On};var Ve=Je.store,Be=Je.eventKey,at=Ve.getState(),nt=at.defaultActiveFirst;Te.isRootMenu=!1;var st=!1;return nt&&(st=nt[Be]),Gr(Ve,Be,st),Te.state={mode:Je.mode,isOpen:Je.isOpen},Te}return Object(b.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,it=function(){Te.setState({mode:Be,isOpen:st})},dt=st!==this.state.isOpen,Dt=Be!==this.state.mode;if((Dt||dt)&&(De.a.cancel(this.updateStateRaf),Dt?this.updateStateRaf=Object(De.a)(it):it()),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(Jo,Object(w.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,it=this.getMotion(Be,at);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||at||nt,!this.haveOpened)return E.createElement("div",null);var dt=C()("".concat(Ve.prefixCls,"-sub"),Object(ue.a)({},"".concat(Ve.prefixCls,"-rtl"),st==="rtl"));return this.isInlineMode()?E.createElement(Ce,Object(w.a)({visible:Ve.visible,forceRender:nt},it),function(Dt){var Qt=Dt.className,Bt=Dt.style,$t=C()(dt,Qt);return Te.renderPopupMenu($t,Bt)}):this.renderPopupMenu(dt)}},{key:"render",value:function(){var Te,Ve,Be,at=Object(y.a)({},this.props),nt=this.getVisible(),st=this.getPrefixCls(),it=this.isInlineMode(),dt=this.getMode(),Dt=C()(st,"".concat(st,"-").concat(dt),(Te={},Object(ue.a)(Te,at.className,!!at.className),Object(ue.a)(Te,this.getOpenClassName(),nt),Object(ue.a)(Te,this.getActiveClassName(),at.active||nt&&!it),Object(ue.a)(Te,this.getDisabledClassName(),at.disabled),Object(ue.a)(Te,this.getSelectedClassName(),this.isChildrenSelected()),Te));this.internalMenuId||(at.eventKey?this.internalMenuId="".concat(at.eventKey,"$Menu"):(zr+=1,this.internalMenuId="$__$".concat(zr,"$Menu")));var Qt={},Bt={},$t={};at.disabled||(Qt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Bt={onClick:this.onTitleClick},$t={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var ln={},On=at.direction,Wt=On==="rtl";it&&(Wt?ln.paddingRight=at.inlineIndent*at.level:ln.paddingLeft=at.inlineIndent*at.level);var qt={};this.getVisible()&&(qt={"aria-owns":this.internalMenuId});var yn=null;dt!=="horizontal"&&(yn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(yn=E.createElement(this.props.expandIcon,Object(y.a)({},this.props))));var Rn=E.createElement("div",Object(w.a)({ref:this.saveSubMenuTitle,style:ln,className:"".concat(st,"-title"),role:"button"},$t,Bt,{"aria-expanded":nt},qt,{"aria-haspopup":"true",title:typeof at.title=="string"?at.title:void 0}),at.title,yn||E.createElement("i",{className:"".concat(st,"-arrow")})),tn=this.renderChildren(),bn=((Ve=at.parentMenu)===null||Ve===void 0?void 0:Ve.isRootMenu)?at.parentMenu.props.getPopupContainer:function(ur){return ur.parentNode},Ln=Ar[dt],Xn=at.popupOffset?{offset:at.popupOffset}:{},rn=C()((Be={},Object(ue.a)(Be,at.popupClassName,at.popupClassName&&!it),Object(ue.a)(Be,"".concat(st,"-rtl"),Wt),Be)),hn=at.disabled,An=at.triggerSubMenuAction,_n=at.subMenuOpenDelay,tr=at.forceSubMenuRender,cn=at.subMenuCloseDelay,Fn=at.builtinPlacements;ke.forEach(function(ur){return delete at[ur]}),delete at.onClick;var Ir=Wt?Object(y.a)(Object(y.a)({},di),Fn):Object(y.a)(Object(y.a)({},si),Fn);delete at.direction;var hr=this.getBaseProps(),Br=it?null:this.getMotion(hr.mode,hr.visible);return E.createElement("li",Object(w.a)({},at,Qt,{className:Dt,role:"menuitem"}),E.createElement(Ga,{prefixCls:st,popupClassName:C()("".concat(st,"-popup"),rn),getPopupContainer:bn,builtinPlacements:Ir,popupPlacement:Ln,popupVisible:it?!1:nt,popupAlign:Xn,popup:it?null:tn,action:hn||it?[]:[An],mouseEnterDelay:_n,mouseLeaveDelay:cn,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:tr,popupMotion:Br},Rn),it?tn:null)}}]),Ye}(E.Component);qr.defaultProps={onMouseEnter:fe,onMouseLeave:fe,onTitleMouseEnter:fe,onTitleMouseLeave:fe,onTitleClick:fe,manualRef:fe,mode:"vertical",title:""};var _a=Object(x.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}})(qr);_a.isSubMenu=!0;var Jr=_a,ji="menuitem-overflowed",Fa=.5,vi=function(ut){Object(l.a)(Ye,ut);var Ge=Object(i.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,it=at.mode,dt=at.prefixCls,Dt=at.theme;if(st!==1||it!=="horizontal")return null;var Qt=Je.props.children[0],Bt=Qt.props,$t=Bt.children,ln=Bt.title,On=Bt.style,Wt=Object(P.a)(Bt,["children","title","style"]),qt=Object(y.a)({},On),yn="".concat(Te,"-overflowed-indicator"),Rn="".concat(Te,"-overflowed-indicator");Ve.length===0&&Be!==!0?qt=Object(y.a)(Object(y.a)({},qt),{},{display:"none"}):Be&&(qt=Object(y.a)(Object(y.a)({},qt),{},{visibility:"hidden",position:"absolute"}),yn="".concat(yn,"-placeholder"),Rn="".concat(Rn,"-placeholder"));var tn=Dt?"".concat(dt,"-").concat(Dt):"",bn={};return ke.forEach(function(Ln){Wt[Ln]!==void 0&&(bn[Ln]=Wt[Ln])}),E.createElement(Jr,Object(w.a)({title:nt,className:"".concat(dt,"-overflowed-submenu"),popupClassName:tn},bn,{key:yn,eventKey:Rn,disabled:!1,style:qt}),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];F(Be,"display","inline-block");var at=Je.getMenuItemNodes(),nt=at.filter(function(st){return st.className.split(" ").indexOf(ji)>=0});nt.forEach(function(st){F(st,"display","inline-block")}),Je.menuItemSizes=at.map(function(st){return re(st,!0)}),nt.forEach(function(st){F(st,"display","none")}),Je.overflowedIndicatorWidth=re(Te.children[Te.children.length-1],!0),Je.originalTotalWidth=Je.menuItemSizes.reduce(function(st,it){return st+it},0),Je.handleResize(),F(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+Fa&&(at=-1,Je.menuItemSizes.forEach(function(nt){Be+=nt,Be+Je.overflowedIndicatorWidth<=Ve&&(at+=1)})),Je.setState({lastVisibleIndex:at})},Je}return Object(b.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 de.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 it=nt;if(Ve.props.mode==="horizontal"){var dt=Ve.getOverflowedSubMenuItem(nt.props.eventKey,[]);Be!==void 0&&Ve.props.className.indexOf("".concat(Ve.props.prefixCls,"-root"))!==-1&&(st>Be&&(it=E.cloneElement(nt,{style:{display:"none"},eventKey:"".concat(nt.props.eventKey,"-hidden"),className:"".concat(ji)})),st===Be+1&&(Ve.overflowedItems=Te.slice(Be+1).map(function(Qt){return E.cloneElement(Qt,{key:Qt.props.eventKey,mode:"vertical-left"})}),dt=Ve.getOverflowedSubMenuItem(nt.props.eventKey,Ve.overflowedItems)));var Dt=[].concat(Object(r.a)(at),[dt,it]);return st===Te.length-1&&Dt.push(Ve.getOverflowedSubMenuItem(nt.props.eventKey,[],!0)),Dt}return[].concat(Object(r.a)(at),[it])},[])}},{key:"render",value:function(){var Te=this.props,Ve=Te.visible,Be=Te.prefixCls,at=Te.overflowedIndicator,nt=Te.mode,st=Te.level,it=Te.tag,dt=Te.children,Dt=Te.theme,Qt=Object(P.a)(Te,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Bt=it;return E.createElement(Bt,Object(w.a)({ref:this.childRef},Qt),this.renderChildren(dt))}}]),Ye}(E.Component);vi.defaultProps={tag:"div",className:""};var vo=vi;function Wo(ut){return ut.length?ut.every(function(Ge){return!!Ge.props.disabled}):!0}function Ca(ut,Ge,Ye){var Je=ut.getState();ut.setState({activeKey:Object(y.a)(Object(y.a)({},Je.activeKey),{},Object(ue.a)({},Ge,Ye))})}function Ro(ut){return ut.eventKey||"0-menu-"}function hi(ut,Ge){var Ye=Ge,Je=ut.children,Te=ut.eventKey;if(Ye){var Ve;if(Ie(Je,function(Be,at){Be&&Be.props&&!Be.props.disabled&&Ye===ge(Be,Te,at)&&(Ve=!0)}),Ve)return Ye}return Ye=null,ut.defaultActiveFirst&&Ie(Je,function(Be,at){!Ye&&Be&&!Be.props.disabled&&(Ye=ge(Be,Te,at))}),Ye}function os(ut){if(!ut)return;var Ge=this.instanceArray.indexOf(ut);Ge!==-1?this.instanceArray[Ge]=ut:this.instanceArray.push(ut)}var eo=function(ut){Object(l.a)(Ye,ut);var Ge=Object(i.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(it){it&&it.props.active&&it.onKeyDown&&(nt=it.onKeyDown(Ve))}),nt)return 1;var st=null;return(at===f.a.UP||at===f.a.DOWN)&&(st=Te.step(at===f.a.UP?-1:1)),st?(Ve.preventDefault(),Ca(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;Ca(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(Qt,Bt){return Qt&&Qt.props.eventKey===at?(st=Bt,!1):!0}),!Te.props.defaultActiveFirst&&st!==-1&&Wo(Be.slice(st,nt-1)))return;var it=(st+1)%nt,dt=it;do{var Dt=Be[dt];if(!Dt||Dt.props.disabled)dt=(dt+1)%nt;else return Dt}while(dt!==it);return null},Te.renderCommonMenuItem=function(Ve,Be,at){var nt=Te.props.store.getState(),st=Object(A.a)(Te),it=st.props,dt=ge(Ve,it.eventKey,Be),Dt=Ve.props;if(!Dt||typeof Ve.type=="string")return Ve;var Qt=dt===nt.activeKey,Bt=Object(y.a)(Object(y.a)({mode:Dt.mode||it.mode,level:it.level,inlineIndent:it.inlineIndent,renderMenuItem:Te.renderMenuItem,rootPrefixCls:it.prefixCls,index:Be,parentMenu:it.parentMenu,manualRef:Dt.disabled?void 0:Object(T.a)(Ve.ref,os.bind(Object(A.a)(Te))),eventKey:dt,active:!Dt.disabled&&Qt,multiple:it.multiple,onClick:function(ln){(Dt.onClick||fe)(ln),Te.onClick(ln)},onItemHover:Te.onItemHover,motion:it.motion,subMenuOpenDelay:it.subMenuOpenDelay,subMenuCloseDelay:it.subMenuCloseDelay,forceSubMenuRender:it.forceSubMenuRender,onOpenChange:Te.onOpenChange,onDeselect:Te.onDeselect,onSelect:Te.onSelect,builtinPlacements:it.builtinPlacements,itemIcon:Dt.itemIcon||Te.props.itemIcon,expandIcon:Dt.expandIcon||Te.props.expandIcon},at),{},{direction:it.direction});return(it.mode==="inline"||W())&&(Bt.triggerSubMenuAction="click"),E.cloneElement(Ve,Object(y.a)(Object(y.a)({},Bt),{},{key:dt||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(y.a)(Object(y.a)({},Je.store.getState().activeKey),{},Object(ue.a)({},Je.eventKey,hi(Je,Je.activeKey)))}),Te.instanceArray=[],Te}return Object(b.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=hi(Ve,Be);if(at!==Be)Ca(Ve.store,Ro(Ve),at);else if("activeKey"in Te){var nt=hi(Te,Te.activeKey);at!==nt&&Ca(Ve.store,Ro(Ve),at)}}},{key:"render",value:function(){var Te=this,Ve=Object(w.a)({},this.props);this.instanceArray=[];var Be=C()(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,it=Ve.visible,dt=Ve.level,Dt=Ve.mode,Qt=Ve.overflowedIndicator,Bt=Ve.theme;return ke.forEach(function($t){return delete Ve[$t]}),delete Ve.onClick,E.createElement(vo,Object(w.a)({},Ve,{prefixCls:nt,mode:Dt,tag:"ul",level:dt,theme:Bt,visible:it,overflowedIndicator:Qt},at),Object(m.a)(Ve.children).map(function($t,ln){return Te.renderMenuItem($t,ln,st||"0-menu-")}))}}]),Ye}(E.Component);eo.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:fe};var ss=Object(x.b)()(eo),Jo=ss,Ui=M("Kwbf");function Zo(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(k.a)(at)==="object"&&at)Object(Ui.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 it=Be[Ye];return it||(st?null:Be.other)}var ps=function(ut){Object(l.a)(Ye,ut);var Ge=Object(i.a)(Ye);function Ye(Je){var Te;Object(B.a)(this,Ye),Te=Ge.call(this,Je),Te.onSelect=function(at){var nt=Object(A.a)(Te),st=nt.props;if(st.selectable){var it=Te.store.getState(),dt=it.selectedKeys,Dt=at.key;st.multiple?dt=dt.concat([Dt]):dt=[Dt],"selectedKeys"in st||Te.store.setState({selectedKeys:dt}),st.onSelect(Object(y.a)(Object(y.a)({},at),{},{selectedKeys:dt}))}},Te.onClick=function(at){var nt=Te.getRealMenuMode(),st=Object(A.a)(Te),it=st.store,dt=st.props.onOpenChange;nt!=="inline"&&!("openKeys"in Te.props)&&(it.setState({openKeys:[]}),dt([])),Te.props.onClick(at)},Te.onKeyDown=function(at,nt){Te.innerMenu.getWrappedInstance().onKeyDown(at,nt)},Te.onOpenChange=function(at){var nt=Object(A.a)(Te),st=nt.props,it=Te.store.getState().openKeys.concat(),dt=!1,Dt=function(Bt){var $t=!1;if(Bt.open)$t=it.indexOf(Bt.key)===-1,$t&&it.push(Bt.key);else{var ln=it.indexOf(Bt.key);$t=ln!==-1,$t&&it.splice(ln,1)}dt=dt||$t};Array.isArray(at)?at.forEach(Dt):Dt(at),dt&&("openKeys"in Te.props||Te.store.setState({openKeys:it}),st.onOpenChange(it))},Te.onDeselect=function(at){var nt=Object(A.a)(Te),st=nt.props;if(st.selectable){var it=Te.store.getState().selectedKeys.concat(),dt=at.key,Dt=it.indexOf(dt);Dt!==-1&&it.splice(Dt,1),"selectedKeys"in st||Te.store.setState({selectedKeys:it}),st.onDeselect(Object(y.a)(Object(y.a)({},at),{},{selectedKeys:it}))}},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,it=Object.prototype.toString.call(st)==="[object SVGAnimatedString]"?st.animVal:st,dt=at.propertyName==="font-size"&&it.indexOf("anticon")>=0;(nt||dt)&&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(x.c)({selectedKeys:Ve,openKeys:Be,activeKey:{"0-menu-":hi(Je,Je.activeKey)}}),Te.state={switchingModeFromInline:!1,prevProps:Je,inlineOpenKeys:[],store:Te.store},Te}return Object(b.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(y.a)({},Object(O.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(y.a)(Object(y.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:Zo(this.props,this.state,Ve)}),delete Te.openAnimation,delete Te.openTransitionName,E.createElement(x.a,{store:this.store},E.createElement(Jo,Object(w.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={},it={prevProps:Te};return Be.mode==="inline"&&Te.mode!=="inline"&&(it.switchingModeFromInline=!0),"openKeys"in Te?st.openKeys=Te.openKeys||[]:((Te.inlineCollapsed&&!Be.inlineCollapsed||Te.siderCollapsed&&!Be.siderCollapsed)&&(it.switchingModeFromInline=!0,it.inlineOpenKeys=nt.openKeys,st.openKeys=[]),(!Te.inlineCollapsed&&Be.inlineCollapsed||!Te.siderCollapsed&&Be.siderCollapsed)&&(st.openKeys=Ve.inlineOpenKeys,it.inlineOpenKeys=[])),Object.keys(st).length&&at.setState(st),it}}]),Ye}(E.Component);ps.defaultProps={selectable:!0,onClick:fe,onSelect:fe,onOpenChange:fe,onDeselect:fe,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 kn=ps,Cr=function(ut){Object(l.a)(Ye,ut);var Ge=Object(i.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===f.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,it=Ve.onDeselect,dt=Ve.isSelected,Dt={key:Be,keyPath:[Be],item:Object(A.a)(Je),domEvent:Te};nt(Dt),at?dt?it(Dt):st(Dt):dt||st(Dt)},Je.saveNode=function(Te){Je.node=Te},Je}return Object(b.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(y.a)({},this.props),Be=C()(this.getPrefixCls(),Ve.className,(Te={},Object(ue.a)(Te,this.getActiveClassName(),!Ve.disabled&&Ve.active),Object(ue.a)(Te,this.getSelectedClassName(),Ve.isSelected),Object(ue.a)(Te,this.getDisabledClassName(),Ve.disabled),Te)),at=Object(y.a)(Object(y.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(y.a)(Object(y.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(y.a)({},Ve.style);Ve.mode==="inline"&&(Ve.direction==="rtl"?st.paddingRight=Ve.inlineIndent*Ve.level:st.paddingLeft=Ve.inlineIndent*Ve.level),ke.forEach(function(dt){return delete Ve[dt]}),delete Ve.direction;var it=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(it=E.createElement(this.props.itemIcon,this.props)),E.createElement("li",Object(w.a)({},Object(O.a)(Ve,["onClick","onMouseEnter","onMouseLeave","onSelect"]),at,nt,{style:st,ref:this.saveNode}),Ve.children,it)}}]),Ye}(E.Component);Cr.isMenuItem=!0,Cr.defaultProps={onSelect:fe,onMouseEnter:fe,onMouseLeave:fe,manualRef:fe};var gr=Object(x.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}})(Cr),Vr=gr,Aa=function(ut){Object(l.a)(Ye,ut);var Ge=Object(i.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(b.a)(Ye,[{key:"render",value:function(){var Te=Object(w.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"),it=Te.title,dt=Te.children;return ke.forEach(function(Dt){return delete Te[Dt]}),delete Te.direction,E.createElement("li",Object(w.a)({},Te,{onClick:function(Qt){return Qt.stopPropagation()},className:"".concat(Be," ").concat(at,"-item-group")}),E.createElement("div",{className:nt,title:typeof it=="string"?it:void 0},it),E.createElement("ul",{className:st},E.Children.map(dt,this.renderInnerMenuItem)))}}]),Ye}(E.Component);Aa.isMenuItemGroup=!0,Aa.defaultProps={disabled:!0};var Sa=Aa,la=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})};la.defaultProps={disabled:!0,className:"",style:{}};var Ai=la,Hi=kn,ra=M("eDIo");function zo(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(zo);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,it=ut.style,dt=ut.className,Dt=ut.editable,Qt=ut.tabBarGutter,Bt=ut.rtl,$t=ut.onTabClick,ln=Object(E.useState)(!1),On=Object(Y.a)(ln,2),Wt=On[0],qt=On[1],yn=Object(E.useState)(null),Rn=Object(Y.a)(yn,2),tn=Rn[0],bn=Rn[1],Ln="".concat(Je,"-more-popup"),Xn="".concat(Ye,"-dropdown"),rn=tn!==null?"".concat(Ln,"-").concat(tn):null,hn=Ve==null?void 0:Ve.dropdownAriaLabel,An=E.createElement(Hi,{onClick:function(Br){var ur=Br.key,Fr=Br.domEvent;$t(ur,Fr),qt(!1)},id:Ln,tabIndex:-1,role:"listbox","aria-activedescendant":rn,selectedKeys:[tn],"aria-label":hn!==void 0?hn:"expanded dropdown"},Te.map(function(hr){return E.createElement(Vr,{key:hr.key,id:"".concat(Ln,"-").concat(hr.key),role:"option","aria-controls":Je&&"".concat(Je,"-panel-").concat(hr.key),disabled:hr.disabled},hr.tab)}));function _n(hr){for(var Br=Te.filter(function(ta){return!ta.disabled}),ur=Br.findIndex(function(ta){return ta.key===tn})||0,Fr=Br.length,Qn=0;Qn<Fr;Qn+=1){ur=(ur+hr+Fr)%Fr;var kr=Br[ur];if(!kr.disabled){bn(kr.key);return}}}function tr(hr){var Br=hr.which;if(!Wt){[f.a.DOWN,f.a.SPACE,f.a.ENTER].includes(Br)&&(qt(!0),hr.preventDefault());return}switch(Br){case f.a.UP:_n(-1),hr.preventDefault();break;case f.a.DOWN:_n(1),hr.preventDefault();break;case f.a.ESC:qt(!1);break;case f.a.SPACE:case f.a.ENTER:tn!==null&&$t(tn,hr);break}}Object(E.useEffect)(function(){var hr=document.getElementById(rn);hr&&hr.scrollIntoView&&hr.scrollIntoView(!1)},[tn]),Object(E.useEffect)(function(){Wt||bn(null)},[Wt]);var cn=Object(ue.a)({},Bt?"marginLeft":"marginRight",Qt);Te.length||(cn.visibility="hidden",cn.order=1);var Fn=C()(Object(ue.a)({},"".concat(Xn,"-rtl"),Bt)),Ir=Be?null:E.createElement(ra.a,{prefixCls:Xn,overlay:An,trigger:["hover"],visible:Wt,transitionName:st,onVisibleChange:qt,overlayClassName:Fn,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":Wt,onKeyDown:tr},nt));return E.createElement("div",{className:C()("".concat(Ye,"-nav-operations"),dt),style:it,ref:Ge},Ir,E.createElement(fa,{prefixCls:Ye,locale:Ve,editable:Dt}))}var uo=E.forwardRef(Si),Gi=Object(E.createContext)(null),va=.1,oa=.01,ua=20,to=Math.pow(.995,ua);function ls(){var ut=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(ut)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(ut.substr(0,4)))}function us(ut,Ge){var Ye=Object(E.useState)(),Je=Object(Y.a)(Ye,2),Te=Je[0],Ve=Je[1],Be=Object(E.useState)(0),at=Object(Y.a)(Be,2),nt=at[0],st=at[1],it=Object(E.useState)(0),dt=Object(Y.a)(it,2),Dt=dt[0],Qt=dt[1],Bt=Object(E.useState)(),$t=Object(Y.a)(Bt,2),ln=$t[0],On=$t[1],Wt=Object(E.useRef)();function qt(hn){var An=hn.touches[0],_n=An.screenX,tr=An.screenY;Ve({x:_n,y:tr}),window.clearInterval(Wt.current)}function yn(hn){if(!Te)return;hn.preventDefault();var An=hn.touches[0],_n=An.screenX,tr=An.screenY;Ve({x:_n,y:tr});var cn=_n-Te.x,Fn=tr-Te.y;Ge(cn,Fn);var Ir=Date.now();st(Ir),Qt(Ir-nt),On({x:cn,y:Fn})}function Rn(){if(!Te)return;if(Ve(null),On(null),ln){var hn=ln.x/Dt,An=ln.y/Dt,_n=Math.abs(hn),tr=Math.abs(An);if(Math.max(_n,tr)<va)return;var cn=hn,Fn=An;Wt.current=window.setInterval(function(){if(Math.abs(cn)<oa&&Math.abs(Fn)<oa){window.clearInterval(Wt.current);return}cn*=to,Fn*=to,Ge(cn*ua,Fn*ua)},ua)}}var tn=Object(E.useRef)(0),bn=Object(E.useRef)(!1),Ln=Object(E.useRef)();function Xn(hn){var An=hn.deltaX,_n=hn.deltaY,tr=0,cn=Math.abs(An),Fn=Math.abs(_n);cn===Fn?tr=Ln.current==="x"?An:_n:cn>Fn?(tr=An,Ln.current="x"):(tr=_n,Ln.current="y");var Ir=Date.now();Ir-tn.current>100&&(bn.current=!1),(Ge(-tr,-tr)||bn.current)&&(hn.preventDefault(),bn.current=!0),tn.current=Ir}var rn=Object(E.useRef)(null);rn.current={onTouchStart:qt,onTouchMove:yn,onTouchEnd:Rn,onWheel:Xn},E.useEffect(function(){function hn(cn){rn.current.onTouchStart(cn)}function An(cn){rn.current.onTouchMove(cn)}function _n(cn){rn.current.onTouchEnd(cn)}function tr(cn){rn.current.onWheel(cn)}return document.addEventListener("touchmove",An,{passive:!1}),document.addEventListener("touchend",_n,{passive:!1}),ut.current.addEventListener("touchstart",hn,{passive:!1}),ut.current.addEventListener("wheel",tr),function(){document.removeEventListener("touchmove",An),document.removeEventListener("touchend",_n)}},[])}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(Y.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(Gi),Te=Je.prefixCls,Ve=Je.tabs,Be=ut.className,at=ut.style,nt=ut.id,st=ut.animated,it=ut.activeKey,dt=ut.rtl,Dt=ut.extra,Qt=ut.editable,Bt=ut.locale,$t=ut.tabPosition,ln=ut.tabBarGutter,On=ut.children,Wt=ut.onTabClick,qt=ut.onTabScroll,yn=Object(E.useRef)(),Rn=Object(E.useRef)(),tn=Object(E.useRef)(),bn=Object(E.useRef)(),Ln=Is(),Xn=Object(Y.a)(Ln,2),rn=Xn[0],hn=Xn[1],An=$t==="top"||$t==="bottom",_n=xs(0,function(ca,Ur){An&&qt&&qt({direction:ca>Ur?"left":"right"})}),tr=Object(Y.a)(_n,2),cn=tr[0],Fn=tr[1],Ir=xs(0,function(ca,Ur){!An&&qt&&qt({direction:ca>Ur?"top":"bottom"})}),hr=Object(Y.a)(Ir,2),Br=hr[0],ur=hr[1],Fr=Object(E.useState)(0),Qn=Object(Y.a)(Fr,2),kr=Qn[0],ta=Qn[1],Wr=Object(E.useState)(0),yr=Object(Y.a)(Wr,2),Dn=yr[0],ar=yr[1],Pr=Object(E.useState)(0),jn=Object(Y.a)(Pr,2),$n=jn[0],ir=jn[1],Zn=Object(E.useState)(0),zn=Object(Y.a)(Zn,2),fn=zn[0],on=zn[1],Gn=Object(E.useState)(null),Jn=Object(Y.a)(Gn,2),Sn=Jn[0],mr=Jn[1],Kr=Object(E.useState)(null),Va=Object(Y.a)(Kr,2),Ra=Va[0],aa=Va[1],gi=Object(E.useState)(0),ti=Object(Y.a)(gi,2),Ka=ti[0],no=ti[1],ro=Object(E.useState)(0),Di=Object(Y.a)(ro,2),Io=Di[0],Mo=Di[1],ao=o(new Map),Ii=Object(Y.a)(ao,2),ki=Ii[0],So=Ii[1],co=g(Ve,ki,kr),ho="".concat(Te,"-nav-operations-hidden"),Qi=0,Mi=0;An?dt?(Qi=0,Mi=Math.max(0,kr-Sn)):(Qi=Math.min(0,Sn-kr),Mi=0):(Qi=Math.min(0,Ra-Dn),Mi=0);function Vi(ca){return ca<Qi?[Qi,!1]:ca>Mi?[Mi,!1]:[ca,!0]}var Ki=Object(E.useRef)(),go=Object(E.useState)(),Fi=Object(Y.a)(go,2),yo=Fi[0],Xa=Fi[1];function io(){Xa(Date.now())}function Lo(){window.clearTimeout(Ki.current)}us(yn,function(ca,Ur){var ui=!1;function wa(To,Zi){To(function(Eo){var oo=Vi(Eo+Zi),dn=Object(Y.a)(oo,2),Uo=dn[0],Ss=dn[1];return ui=Ss,Uo})}if(An){if(Sn>=kr)return ui;wa(Fn,ca)}else{if(Ra>=Dn)return ui;wa(ur,Ur)}return Lo(),io(),ui}),Object(E.useEffect)(function(){return Lo(),yo&&(Ki.current=window.setTimeout(function(){Xa(0)},100)),Lo},[yo]);function Wi(){var ca=arguments.length>0&&arguments[0]!==void 0?arguments[0]:it,Ur=co.get(ca);if(!Ur)return;if(An){var ui=cn;dt?Ur.right<cn?ui=Ur.right:Ur.right+Ur.width>cn+Sn&&(ui=Ur.right+Ur.width-Sn):Ur.left<-cn?ui=-Ur.left:Ur.left+Ur.width>-cn+Sn&&(ui=-(Ur.left+Ur.width-Sn)),ur(0),Fn(Vi(ui)[0])}else{var wa=Br;Ur.top<-Br?wa=-Ur.top:Ur.top+Ur.height>-Br+Ra&&(wa=-(Ur.top+Ur.height-Ra)),Fn(0),ur(Vi(wa)[0])}}var Ti=S(co,{width:Sn,height:Ra,left:cn,top:Br},{width:$n,height:fn},{width:Ka,height:Io},Object(y.a)(Object(y.a)({},ut),{},{tabs:Ve})),Ao=Object(Y.a)(Ti,2),qo=Ao[0],$o=Ao[1],Go=Ve.map(function(ca){var Ur=ca.key;return E.createElement(a,{id:nt,prefixCls:Te,key:Ur,rtl:dt,tab:ca,closable:ca.closable,editable:Qt,active:Ur===it,tabPosition:$t,tabBarGutter:ln,renderWrapper:On,removeAriaLabel:Bt==null?void 0:Bt.removeAriaLabel,ref:rn(Ur),onClick:function(wa){Wt(Ur,wa)},onRemove:function(){hn(Ur)},onFocus:function(){Wi(Ur),io(),dt||(yn.current.scrollLeft=0),yn.current.scrollTop=0}})}),Xi=u(function(){var ca,Ur,ui,wa,To,Zi,Eo,oo,dn,Uo=((ca=yn.current)===null||ca===void 0?void 0:ca.offsetWidth)||0,Ss=((Ur=yn.current)===null||Ur===void 0?void 0:Ur.offsetHeight)||0,gs=((ui=bn.current)===null||ui===void 0?void 0:ui.offsetWidth)||0,Za=((wa=bn.current)===null||wa===void 0?void 0:wa.offsetHeight)||0,Tn=((To=tn.current)===null||To===void 0?void 0:To.offsetWidth)||0,Lt=((Zi=tn.current)===null||Zi===void 0?void 0:Zi.offsetHeight)||0;mr(Uo),aa(Ss),no(gs),Mo(Za);var Yt=(((Eo=Rn.current)===null||Eo===void 0?void 0:Eo.offsetWidth)||0)-gs,Cn=(((oo=Rn.current)===null||oo===void 0?void 0:oo.offsetHeight)||0)-Za;ta(Yt),ar(Cn);var Vt=(dn=tn.current)===null||dn===void 0?void 0:dn.className.includes(ho);ir(Yt-(Vt?0:Tn)),on(Cn-(Vt?0:Lt)),So(function(){var er=new Map;return Ve.forEach(function(lr){var fr=lr.key,$r=rn(fr).current;$r&&er.set(fr,{width:$r.offsetWidth,height:$r.offsetHeight,left:$r.offsetLeft,top:$r.offsetTop})}),er})}),es=Ve.slice(0,qo),yi=Ve.slice($o+1),Ua=[].concat(Object(r.a)(es),Object(r.a)(yi)),li=Object(E.useState)(),Na=Object(Y.a)(li,2),Yi=Na[0],bo=Na[1],Li=co.get(it),Vo=Object(E.useRef)();function Po(){e.a.cancel(Vo.current)}Object(E.useEffect)(function(){var ca={};return Li&&(An?(dt?ca.right=Li.right:ca.left=Li.left,ca.width=Li.width):(ca.top=Li.top,ca.height=Li.height)),Po(),Vo.current=e()(function(){bo(ca)}),Po},[Li,An,dt]),Object(E.useEffect)(function(){Wi()},[it,Li,co,An]),Object(E.useEffect)(function(){Xi()},[dt,ln,it,Ve.map(function(ca){return ca.key}).join("_")]);var Xo=!!Ua.length,Bi="".concat(Te,"-nav-wrap"),In,Ji,vs,ts;return An?dt?(Ji=cn>0,In=cn+Sn<kr):(In=cn<0,Ji=-cn+Sn<kr):(vs=Br<0,ts=-Br+Ra<Dn),E.createElement("div",{ref:Ge,role:"tablist",className:C()("".concat(Te,"-nav"),Be),style:at,onKeyDown:function(){io()}},E.createElement(js,{position:"left",extra:Dt,prefixCls:Te}),E.createElement(s.a,{onResize:Xi},E.createElement("div",{className:C()(Bi,(Ye={},Object(ue.a)(Ye,"".concat(Bi,"-ping-left"),In),Object(ue.a)(Ye,"".concat(Bi,"-ping-right"),Ji),Object(ue.a)(Ye,"".concat(Bi,"-ping-top"),vs),Object(ue.a)(Ye,"".concat(Bi,"-ping-bottom"),ts),Ye)),ref:yn},E.createElement(s.a,{onResize:Xi},E.createElement("div",{ref:Rn,className:"".concat(Te,"-nav-list"),style:{transform:"translate(".concat(cn,"px, ").concat(Br,"px)"),transition:yo?"none":void 0}},Go,E.createElement(fa,{ref:bn,prefixCls:Te,locale:Bt,editable:Qt,style:{visibility:Xo?"hidden":null}}),E.createElement("div",{className:C()("".concat(Te,"-ink-bar"),Object(ue.a)({},"".concat(Te,"-ink-bar-animated"),st.inkBar)),style:Yi}))))),E.createElement(uo,Object.assign({},ut,{ref:tn,prefixCls:Te,tabs:Ua,className:!Xo&&ho})),E.createElement(js,{position:"right",extra:Dt,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(Gi),nt=at.prefixCls,st=at.tabs,it=Je.tabPane,dt=st.findIndex(function(Dt){return Dt.key===Ye});return E.createElement("div",{className:C()("".concat(nt,"-content-holder"))},E.createElement("div",{className:C()("".concat(nt,"-content"),"".concat(nt,"-content-").concat(Te),Object(ue.a)({},"".concat(nt,"-content-animated"),it)),style:dt&&it?Object(ue.a)({},Ve?"marginRight":"marginLeft","-".concat(dt,"00%")):null},st.map(function(Dt){return E.cloneElement(Dt.node,{key:Dt.key,prefixCls:nt,tabKey:Dt.key,id:Ge,animated:it,active:Dt.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,it=ut.children,dt=E.useState(Ye),Dt=Object(Y.a)(dt,2),Qt=Dt[0],Bt=Dt[1];E.useEffect(function(){Be?Bt(!0):nt&&Bt(!1)},[Be,nt]);var $t={};return Be||(at?($t.visibility="hidden",$t.height=0,$t.overflowY="hidden"):$t.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(y.a)(Object(y.a)({},$t),Te),className:C()("".concat(Ge,"-tabpane"),Be&&"".concat(Ge,"-tabpane-active"),Je)},(Be||Qt||Ye)&&it)}var xo=0;function ms(ut){return Object(m.a)(ut).map(function(Ge){if(E.isValidElement(Ge)){var Ye=Ge.key!==void 0?String(Ge.key):void 0;return Object(y.a)(Object(y.a)({key:Ye},Ge.props),{},{node:Ge})}return null}).filter(function(Ge){return Ge})}function Qa(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,it=ut.defaultActiveKey,dt=ut.editable,Dt=ut.animated,Qt=ut.tabPosition,Bt=Qt===void 0?"top":Qt,$t=ut.tabBarGutter,ln=ut.tabBarStyle,On=ut.tabBarExtraContent,Wt=ut.locale,qt=ut.moreIcon,yn=ut.moreTransitionName,Rn=ut.destroyInactiveTabPane,tn=ut.renderTabBar,bn=ut.onChange,Ln=ut.onTabClick,Xn=ut.onTabScroll,rn=Object(P.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),An=nt==="rtl",_n;Dt===!1?_n={inkBar:!1,tabPane:!1}:_n=Object(y.a)({inkBar:!0,tabPane:!1},Dt!==!0?Dt:null);var tr=Object(E.useState)(!1),cn=Object(Y.a)(tr,2),Fn=cn[0],Ir=cn[1];Object(E.useEffect)(function(){Ir(ls())},[]);var hr=Object(c.a)(function(){var fn;return(fn=hn[0])===null||fn===void 0?void 0:fn.key},{value:st,defaultValue:it}),Br=Object(Y.a)(hr,2),ur=Br[0],Fr=Br[1],Qn=Object(E.useState)(function(){return hn.findIndex(function(fn){return fn.key===ur})}),kr=Object(Y.a)(Qn,2),ta=kr[0],Wr=kr[1];Object(E.useEffect)(function(){var fn=hn.findIndex(function(Gn){return Gn.key===ur});if(fn===-1){var on;fn=Math.max(0,Math.min(ta,hn.length-1)),Fr((on=hn[fn])===null||on===void 0?void 0:on.key)}Wr(fn)},[hn.map(function(fn){return fn.key}).join("_"),ur,ta]);var yr=Object(c.a)(null,{value:Je}),Dn=Object(Y.a)(yr,2),ar=Dn[0],Pr=Dn[1],jn=Bt;Fn&&!["left","right"].includes(Bt)&&(jn="top"),Object(E.useEffect)(function(){Je||(Pr("rc-tabs-".concat(xo)),xo+=1)},[]);function $n(fn,on){Ln==null||Ln(fn,on),Fr(fn),bn==null||bn(fn)}var ir={id:ar,activeKey:ur,animated:_n,tabPosition:jn,rtl:An,mobile:Fn},Zn,zn=Object(y.a)(Object(y.a)({},ir),{},{editable:dt,locale:Wt,moreIcon:qt,moreTransitionName:yn,tabBarGutter:$t,onTabClick:$n,onTabScroll:Xn,extra:On,style:ln,panes:at});return tn?Zn=tn(zn,cs):Zn=E.createElement(cs,Object.assign({},zn)),E.createElement(Gi.Provider,{value:{tabs:hn,prefixCls:Ve}},E.createElement("div",Object.assign({ref:Ge,id:Je,className:C()(Ve,"".concat(Ve,"-").concat(jn),(Ye={},Object(ue.a)(Ye,"".concat(Ve,"-mobile"),Fn),Object(ue.a)(Ye,"".concat(Ve,"-editable"),dt),Object(ue.a)(Ye,"".concat(Ve,"-rtl"),An),Ye),Be)},rn),Zn,E.createElement(dl,Object.assign({destroyInactiveTabPane:Rn},ir,{animated:_n}))))}var _s=E.forwardRef(Qa);_s.TabPane=$s;var _o=_s,Hs=we.b=_o},"kNP/":function(Ze,we,M){Ze.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(Ze,we,M){Ze.exports=M.p+"static/question.cb52bef9.gif"},kPYp:function(Ze,we){Ze.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(Ze,we,M){},"kaH+":function(Ze,we,M){"use strict";var ue=M("+L6B"),Y=M("2/Rp"),P=M("tJVT"),y=M("q1tI"),E=M.n(y),_=M("UZu5"),C=M.n(_),m=M("dhSg"),c=M("rLCj"),r=M("dF/Y"),n=M("4i/N");we.a=function(){var e=Object(y.useState)(""),s=Object(P.a)(e,2),u=s[0],o=s[1],f=Object(y.useState)(0),d=Object(P.a)(f,2),a=d[0],h=d[1],g=Object(y.useRef)("");Object(y.useEffect)(function(){var B=m.a.subscribe("preview-image",function(b){o(b),document.body.style.overflow="hidden"});return B},[]),Object(y.useEffect)(function(){return document.addEventListener("keydown",p),function(){document.removeEventListener("keydown",p)}},[]),Object(y.useEffect)(function(){g.current=u},[u]);function p(B){B.keyCode==27&&g.current&&S()}function S(){document.body.style.overflow="auto",o("")}function w(){h(a+90)}return E.a.createElement(y.Fragment,null,u?E.a.createElement("div",{className:"image-preview-container"},E.a.createElement("div",{className:"button-group"},E.a.createElement(Y.a,{onClick:w},"\u65CB\u8F6C",E.a.createElement(c.a,null)),E.a.createElement(Y.a,{href:u},"\u4E0B\u8F7D",E.a.createElement(r.a,null)),E.a.createElement(Y.a,{onClick:S},"\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(a,"deg)")}}))):null)}},kwm0:function(Ze,we,M){Ze.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(Ze,we,M){Ze.exports=M.p+"static/match_ad.24dc22fd.jpg"},lZu9:function(Ze,we,M){(function(ue){ue(M("VrN/"),M("1eCo"),M("8EBN"))})(function(ue){"use strict";ue.defineMode("markdown",function(Y,P){var y=ue.getMode(Y,"text/html"),E=y.name=="null";function _(U){if(ue.findModeByName){var K=ue.findModeByName(U);K&&(U=K.mime||K.mimes[0])}var G=ue.getMode(Y,U);return G.name=="null"?null:G}P.highlightFormatting===void 0&&(P.highlightFormatting=!1),P.maxBlockquoteDepth===void 0&&(P.maxBlockquoteDepth=0),P.taskLists===void 0&&(P.taskLists=!1),P.strikethrough===void 0&&(P.strikethrough=!1),P.emoji===void 0&&(P.emoji=!1),P.fencedCodeBlockHighlighting===void 0&&(P.fencedCodeBlockHighlighting=!0),P.fencedCodeBlockDefaultMode===void 0&&(P.fencedCodeBlockDefaultMode="text/plain"),P.xml===void 0&&(P.xml=!0),P.tokenTypeOverrides===void 0&&(P.tokenTypeOverrides={});var C={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var m in C)C.hasOwnProperty(m)&&P.tokenTypeOverrides[m]&&(C[m]=P.tokenTypeOverrides[m]);var c=/^([*\-_])(?:\s*\1){2,}\s*$/,r=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,n=/^\[(x| )\](?=\s)/i,e=P.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,s=/^ {0,3}(?:\={1,}|-{2,})\s*$/,u=/^[^#!\[\]*_\\<>` "'(~:]+/,o=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,f=/^\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]/,a=" ";function h(U,K,G){return K.f=K.inline=G,G(U,K)}function g(U,K,G){return K.f=K.block=G,G(U,K)}function p(U){return!U||!/\S/.test(U.string)}function S(U){if(U.linkTitle=!1,U.linkHref=!1,U.linkText=!1,U.em=!1,U.strong=!1,U.strikethrough=!1,U.quote=0,U.indentedCode=!1,U.f==B){var K=E;if(!K){var G=ue.innerMode(y,U.htmlState);K=G.mode.name=="xml"&&G.state.tagStart===null&&!G.state.context&&G.state.tokenize.isInText}K&&(U.f=i,U.block=w,U.htmlState=null)}return U.trailingSpace=0,U.trailingSpaceNewLine=!1,U.prevLine=U.thisLine,U.thisLine={stream:null},null}function w(U,K){var G=U.column()===K.indentation,N=p(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 me=K.indentation;if(K.indentationDiff===null&&(K.indentationDiff=K.indentation,te)){for(K.list=null;me<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=me-K.listStack[K.listStack.length-1])}var se=!N&&!X&&!K.prevLine.header&&(!te||!Q)&&!K.prevLine.fencedCodeEnd,_e=(K.list===!1||X||N)&&K.indentation<=oe&&U.match(c),Ae=null;if(K.indentationDiff>=4&&(Q||K.prevLine.fencedCodeEnd||K.prevLine.header||N))return U.skipToEnd(),K.indentedCode=!0,C.code;if(U.eatSpace())return null;if(G&&K.indentation<=oe&&(Ae=U.match(e))&&Ae[1].length<=6)return K.quote=0,K.header=Ae[1].length,K.thisLine.header=!0,P.highlightFormatting&&(K.formatting="header"),K.f=K.inline,A(K);if(K.indentation<=oe&&U.eat(">"))return K.quote=G?1:K.quote+1,P.highlightFormatting&&(K.formatting="quote"),U.eatSpace(),A(K);if(!_e&&!K.setext&&G&&K.indentation<=oe&&(Ae=U.match(r))){var Ee=Ae[1]?"ol":"ul";return K.indentation=me+U.current().length,K.list=!0,K.quote=0,K.listStack.push(K.indentation),K.em=!1,K.strong=!1,K.code=!1,K.strikethrough=!1,P.taskLists&&U.match(n,!1)&&(K.taskList=!0),K.f=K.inline,P.highlightFormatting&&(K.formatting=["list","list-"+Ee]),A(K)}else{if(G&&K.indentation<=oe&&(Ae=U.match(o,!0)))return K.quote=0,K.fencedEndRE=new RegExp(Ae[1]+"+ *$"),K.localMode=P.fencedCodeBlockHighlighting&&_(Ae[2]||P.fencedCodeBlockDefaultMode),K.localMode&&(K.localState=ue.startState(K.localMode)),K.f=K.block=b,P.highlightFormatting&&(K.formatting="code-block"),K.code=-1,A(K);if(K.setext||(!se||!te)&&!K.quote&&K.list===!1&&!K.code&&!_e&&!f.test(U.string)&&(Ae=U.lookAhead(1))&&(Ae=Ae.match(s)))return K.setext?(K.header=K.setext,K.setext=0,U.skipToEnd(),P.highlightFormatting&&(K.formatting="header")):(K.header=Ae[0].charAt(0)=="="?1:2,K.setext=K.header),K.thisLine.header=!0,K.f=K.inline,A(K);if(_e)return U.skipToEnd(),K.hr=!0,K.thisLine.hr=!0,C.hr;if(U.peek()==="[")return h(U,K,R)}return h(U,K,K.inline)}function B(U,K){var G=y.token(U,K.htmlState);if(!E){var N=ue.innerMode(y,K.htmlState);(N.mode.name=="xml"&&N.state.tagStart===null&&!N.state.context&&N.state.tokenize.isInText||K.md_inside&&U.current().indexOf(">")>-1)&&(K.f=i,K.block=w,K.htmlState=null)}return G}function b(U,K){var G=K.listStack[K.listStack.length-1]||0,N=K.indentation<G,Q=G+3;if(K.fencedEndRE&&K.indentation<=Q&&(N||U.match(K.fencedEndRE))){P.highlightFormatting&&(K.formatting="code-block");var X;return N||(X=A(K)),K.localMode=K.localState=null,K.block=w,K.f=i,K.fencedEndRE=null,K.code=0,K.thisLine.fencedCodeEnd=!0,N?g(U,K,K.block):X}else return K.localMode?K.localMode.token(U,K.localState):(U.skipToEnd(),C.code)}function A(U){var K=[];if(U.formatting){K.push(C.formatting),typeof U.formatting=="string"&&(U.formatting=[U.formatting]);for(var G=0;G<U.formatting.length;G++)K.push(C.formatting+"-"+U.formatting[G]),U.formatting[G]==="header"&&K.push(C.formatting+"-"+U.formatting[G]+"-"+U.header),U.formatting[G]==="quote"&&(!P.maxBlockquoteDepth||P.maxBlockquoteDepth>=U.quote?K.push(C.formatting+"-"+U.formatting[G]+"-"+U.quote):K.push("error"))}if(U.taskOpen)return K.push("meta"),K.length?K.join(" "):null;if(U.taskClosed)return K.push("property"),K.length?K.join(" "):null;if(U.linkHref?K.push(C.linkHref,"url"):(U.strong&&K.push(C.strong),U.em&&K.push(C.em),U.strikethrough&&K.push(C.strikethrough),U.emoji&&K.push(C.emoji),U.linkText&&K.push(C.linkText),U.code&&K.push(C.code),U.image&&K.push(C.image),U.imageAltText&&K.push(C.imageAltText,"link"),U.imageMarker&&K.push(C.imageMarker)),U.header&&K.push(C.header,C.header+"-"+U.header),U.quote&&(K.push(C.quote),!P.maxBlockquoteDepth||P.maxBlockquoteDepth>=U.quote?K.push(C.quote+"-"+U.quote):K.push(C.quote+"-"+P.maxBlockquoteDepth)),U.list!==!1){var N=(U.listStack.length-1)%3;N?N===1?K.push(C.list2):K.push(C.list3):K.push(C.list1)}return U.trailingSpaceNewLine?K.push("trailing-space-new-line"):U.trailingSpace&&K.push("trailing-space-"+(U.trailingSpace%2?"a":"b")),K.length?K.join(" "):null}function l(U,K){return U.match(u,!0)?A(K):void 0}function i(U,K){var G=K.text(U,K);if(typeof G!="undefined")return G;if(K.list)return K.list=null,A(K);if(K.taskList){var N=U.match(n,!0)[1]===" ";return N?K.taskOpen=!0:K.taskClosed=!0,P.highlightFormatting&&(K.formatting="task"),K.taskList=!1,A(K)}if(K.taskOpen=!1,K.taskClosed=!1,K.header&&U.match(/^#+$/,!0))return P.highlightFormatting&&(K.formatting="header"),A(K);var Q=U.next();if(K.linkTitle){K.linkTitle=!1;var X=Q;Q==="("&&(X=")"),X=(X+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var te="^\\s*(?:[^"+X+"\\\\]+|\\\\\\\\|\\\\.)"+X;if(U.match(new RegExp(te),!0))return C.linkHref}if(Q==="`"){var oe=K.formatting;P.highlightFormatting&&(K.formatting="code"),U.eatWhile("`");var me=U.current().length;if(K.code==0&&(!K.quote||me==1))return K.code=me,A(K);if(me==K.code){var se=A(K);return K.code=0,se}else return K.formatting=oe,A(K)}else if(K.code)return A(K);if(Q==="\\"&&(U.next(),P.highlightFormatting)){var _e=A(K),Ae=C.formatting+"-escape";return _e?_e+" "+Ae:Ae}if(Q==="!"&&U.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return K.imageMarker=!0,K.image=!0,P.highlightFormatting&&(K.formatting="image"),A(K);if(Q==="["&&K.imageMarker&&U.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return K.imageMarker=!1,K.imageAltText=!0,P.highlightFormatting&&(K.formatting="image"),A(K);if(Q==="]"&&K.imageAltText){P.highlightFormatting&&(K.formatting="image");var _e=A(K);return K.imageAltText=!1,K.image=!1,K.inline=K.f=O,_e}if(Q==="["&&!K.image)return K.linkText&&U.match(/^.*?\]/)||(K.linkText=!0,P.highlightFormatting&&(K.formatting="link")),A(K);if(Q==="]"&&K.linkText){P.highlightFormatting&&(K.formatting="link");var _e=A(K);return K.linkText=!1,K.inline=K.f=U.match(/\(.*?\)| ?\[.*?\]/,!1)?O:i,_e}if(Q==="<"&&U.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){K.f=K.inline=x,P.highlightFormatting&&(K.formatting="link");var _e=A(K);return _e?_e+=" ":_e="",_e+C.linkInline}if(Q==="<"&&U.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){K.f=K.inline=x,P.highlightFormatting&&(K.formatting="link");var _e=A(K);return _e?_e+=" ":_e="",_e+C.linkEmail}if(P.xml&&Q==="<"&&U.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ee=U.string.indexOf(">",U.pos);if(Ee!=-1){var pe=U.string.substring(U.start,Ee);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(pe)&&(K.md_inside=!0)}return U.backUp(1),K.htmlState=ue.startState(y),g(U,K,B)}if(P.xml&&Q==="<"&&U.match(/^\/\w*?>/))return K.md_inside=!1,"tag";if(Q==="*"||Q==="_"){for(var he=1,ie=U.pos==1?" ":U.string.charAt(U.pos-2);he<3&&U.eat(Q);)he++;var fe=U.peek()||" ",ge=!/\s/.test(fe)&&(!d.test(fe)||/\s/.test(ie)||d.test(ie)),ce=!/\s/.test(ie)&&(!d.test(ie)||/\s/.test(fe)||d.test(fe)),Ie=null,Fe=null;if(he%2&&(!K.em&&ge&&(Q==="*"||!ce||d.test(ie))?Ie=!0:K.em==Q&&ce&&(Q==="*"||!ge||d.test(fe))&&(Ie=!1)),he>1&&(!K.strong&&ge&&(Q==="*"||!ce||d.test(ie))?Fe=!0:K.strong==Q&&ce&&(Q==="*"||!ge||d.test(fe))&&(Fe=!1)),Fe!=null||Ie!=null){P.highlightFormatting&&(K.formatting=Ie==null?"strong":Fe==null?"em":"strong em"),Ie===!0&&(K.em=Q),Fe===!0&&(K.strong=Q);var se=A(K);return Ie===!1&&(K.em=!1),Fe===!1&&(K.strong=!1),se}}else if(Q===" "&&(U.eat("*")||U.eat("_"))){if(U.peek()===" ")return A(K);U.backUp(1)}if(P.strikethrough){if(Q==="~"&&U.eatWhile(Q)){if(K.strikethrough){P.highlightFormatting&&(K.formatting="strikethrough");var se=A(K);return K.strikethrough=!1,se}else if(U.match(/^[^\s]/,!1))return K.strikethrough=!0,P.highlightFormatting&&(K.formatting="strikethrough"),A(K)}else if(Q===" "&&U.match(/^~~/,!0)){if(U.peek()===" ")return A(K);U.backUp(2)}}if(P.emoji&&Q===":"&&U.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){K.emoji=!0,P.highlightFormatting&&(K.formatting="emoji");var ke=A(K);return K.emoji=!1,ke}return Q===" "&&(U.match(/^ +$/,!1)?K.trailingSpace++:K.trailingSpace&&(K.trailingSpaceNewLine=!0)),A(K)}function x(U,K){var G=U.next();if(G===">"){K.f=K.inline=i,P.highlightFormatting&&(K.formatting="link");var N=A(K);return N?N+=" ":N="",N+C.linkInline}return U.match(/^[^>]+/,!0),C.linkInline}function O(U,K){if(U.eatSpace())return null;var G=U.next();return G==="("||G==="["?(K.f=K.inline=D(G==="("?")":"]"),P.highlightFormatting&&(K.formatting="link-string"),K.linkHref=!0,A(K)):"error"}var T={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function D(U){return function(K,G){var N=K.next();if(N===U){G.f=G.inline=i,P.highlightFormatting&&(G.formatting="link-string");var Q=A(G);return G.linkHref=!1,Q}return K.match(T[U]),G.linkHref=!0,A(G)}}function R(U,K){return U.match(/^([^\]\\]|\\.)*\]:/,!1)?(K.f=k,U.next(),P.highlightFormatting&&(K.formatting="link"),K.linkText=!0,A(K)):h(U,K,i)}function k(U,K){if(U.match(/^\]:/,!0)){K.f=K.inline=H,P.highlightFormatting&&(K.formatting="link");var G=A(K);return K.linkText=!1,G}return U.match(/^([^\]\\]|\\.)+/,!0),C.linkText}function H(U,K){return U.eatSpace()?null:(U.match(/^[^\s]+/,!0),U.peek()===void 0?K.linkTitle=!0:U.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),K.f=K.inline=i,C.linkHref+" url")}var J={startState:function(){return{f:w,prevLine:{stream:null},thisLine:{stream:null},block:w,htmlState:null,indentation:0,inline:i,text:l,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(U){return{f:U.f,prevLine:U.prevLine,thisLine:U.thisLine,block:U.block,htmlState:U.htmlState&&ue.copyState(y,U.htmlState),indentation:U.indentation,localMode:U.localMode,localState:U.localMode?ue.copyState(U.localMode,U.localState):null,inline:U.inline,text:U.text,formatting:!1,linkText:U.linkText,linkTitle:U.linkTitle,linkHref:U.linkHref,code:U.code,em:U.em,strong:U.strong,strikethrough:U.strikethrough,emoji:U.emoji,header:U.header,setext:U.setext,hr:U.hr,taskList:U.taskList,list:U.list,listStack:U.listStack.slice(0),quote:U.quote,indentedCode:U.indentedCode,trailingSpace:U.trailingSpace,trailingSpaceNewLine:U.trailingSpaceNewLine,md_inside:U.md_inside,fencedEndRE:U.fencedEndRE}},token:function(U,K){if(K.formatting=!1,U!=K.thisLine.stream){if(K.header=0,K.hr=!1,U.match(/^\s*$/,!0))return S(K),null;if(K.prevLine=K.thisLine,K.thisLine={stream:U},K.taskList=!1,K.trailingSpace=0,K.trailingSpaceNewLine=!1,!K.localState&&(K.f=K.block,K.f!=B)){var G=U.match(/^\s*/,!0)[0].replace(/\t/g,a).length;if(K.indentation=G,K.indentationDiff=null,G>0)return null}}return K.f(U,K)},innerMode:function(U){return U.block==B?{state:U.htmlState,mode:y}:U.localState?{state:U.localState,mode:U.localMode}:{state:U,mode:J}},indent:function(U,K,G){return U.block==B&&y.indent?y.indent(U.htmlState,K,G):U.localState&&U.localMode.indent?U.localMode.indent(U.localState,K,G):ue.Pass},blankLine:S,getType:A,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return J},"xml"),ue.defineMIME("text/markdown","markdown"),ue.defineMIME("text/x-markdown","markdown")})},loD1:function(Ze,we){function M(ue,Y,P,y,E,_,C){if(E===0)return!1;var m=E,c=0,r=ue;if(C>Y+m&&C>y+m||C<Y-m&&C<y-m||_>ue+m&&_>P+m||_<ue-m&&_<P-m)return!1;if(ue!==P)c=(Y-y)/(ue-P),r=(ue*y-P*Y)/(ue-P);else return Math.abs(_-ue)<=m/2;var n=c*_-C+r,e=n*n/(c*c+1);return e<=m/2*m/2}we.containStroke=M},lseA:function(Ze,we,M){Ze.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(Ze,we,M){"use strict";var ue=M("E7E6"),Y=M.n(ue);M.d(we,"A",function(){return Y.a});var P=M("/GNS"),y=M.n(P);M.d(we,"z",function(){return y.a});var E=M("FOrL"),_=M.n(E);M.d(we,"t",function(){return _.a});var C=M("HpTS"),m=M.n(C);M.d(we,"B",function(){return m.a});var c=M("tWlo"),r=M.n(c);M.d(we,"b",function(){return r.a});var n=M("7ZXX"),e=M.n(n);M.d(we,"n",function(){return e.a});var s=M("GABl"),u=M.n(s);M.d(we,"g",function(){return u.a});var o=M("onxn"),f=M.n(o);M.d(we,"p",function(){return f.a});var d=M("nKGa"),a=M.n(d);M.d(we,"o",function(){return a.a});var h=M("4qgm"),g=M.n(h);M.d(we,"D",function(){return g.a});var p=M("JeFH"),S=M.n(p);M.d(we,"c",function(){return S.a});var w=M("ji0R"),B=M.n(w);M.d(we,"k",function(){return B.a});var b=M("W6BS"),A=M.n(b);M.d(we,"E",function(){return A.a});var l=M("kPYp"),i=M.n(l);M.d(we,"F",function(){return i.a});var x=M("nukY"),O=M.n(x),T=M("4u4S"),D=M.n(T),R=M("yslc"),k=M.n(R),H=M("l2Kq"),J=M.n(H),U=M("RMFE"),K=M.n(U);M.d(we,"q",function(){return K.a});var G=M("TGq3"),N=M.n(G);M.d(we,"r",function(){return N.a});var Q=M("SMhR"),X=M.n(Q);M.d(we,"C",function(){return X.a});var te=M("8/bI"),oe=M.n(te);M.d(we,"l",function(){return oe.a});var me=M("JWDV"),se=M.n(me);M.d(we,"e",function(){return se.a});var _e=M("Xsq0"),Ae=M.n(_e);M.d(we,"s",function(){return Ae.a});var Ee=M("Ohmc"),pe=M.n(Ee);M.d(we,"d",function(){return pe.a});var he=M("csWT"),ie=M.n(he);M.d(we,"f",function(){return ie.a});var fe=M("7v3h"),ge=M.n(fe);M.d(we,"m",function(){return ge.a});var ce=M("cRFk"),Ie=M.n(ce);M.d(we,"y",function(){return Ie.a});var Fe=M("kPWJ"),ke=M.n(Fe);M.d(we,"x",function(){return ke.a});var re=M("qgvg"),F=M.n(re);M.d(we,"u",function(){return F.a});var W=M("FPkq"),de=M.n(W);M.d(we,"w",function(){return de.a});var ne=M("A/g1"),le=M.n(ne);M.d(we,"h",function(){return le.a});var De=M("Nmxd"),Xe=M.n(De);M.d(we,"i",function(){return Xe.a});var xt=M("5D2P"),Ke=M.n(xt);M.d(we,"j",function(){return Ke.a});var ze=M("djh8"),yt=M.n(ze);M.d(we,"v",function(){return yt.a});var Et=M("Jq4h"),ct=M.n(Et);M.d(we,"a",function(){return ct.a})},"m/50":function(Ze,we,M){Ze.exports=M.p+"static/sc.7f773df2.svg"},mFDi:function(Ze,we,M){var ue=M("QBsz"),Y=M("Fofx"),P=ue.applyTransform,y=Math.min,E=Math.max;function _(m,c,r,n){r<0&&(m=m+r,r=-r),n<0&&(c=c+n,n=-n),this.x=m,this.y=c,this.width=r,this.height=n}_.prototype={constructor:_,union:function(m){var c=y(m.x,this.x),r=y(m.y,this.y);this.width=E(m.x+m.width,this.x+this.width)-c,this.height=E(m.y+m.height,this.y+this.height)-r,this.x=c,this.y=r},applyTransform:function(){var m=[],c=[],r=[],n=[];return function(e){if(!e)return;m[0]=r[0]=this.x,m[1]=n[1]=this.y,c[0]=n[0]=this.x+this.width,c[1]=r[1]=this.y+this.height,P(m,m,e),P(c,c,e),P(r,r,e),P(n,n,e),this.x=y(m[0],c[0],r[0],n[0]),this.y=y(m[1],c[1],r[1],n[1]);var s=E(m[0],c[0],r[0],n[0]),u=E(m[1],c[1],r[1],n[1]);this.width=s-this.x,this.height=u-this.y}}(),calculateTransform:function(m){var c=this,r=m.width/c.width,n=m.height/c.height,e=Y.create();return Y.translate(e,e,[-c.x,-c.y]),Y.scale(e,e,[r,n]),Y.translate(e,e,[m.x,m.y]),e},intersect:function(m){if(!m)return!1;m instanceof _||(m=_.create(m));var c=this,r=c.x,n=c.x+c.width,e=c.y,s=c.y+c.height,u=m.x,o=m.x+m.width,f=m.y,d=m.y+m.height;return!(n<u||o<r||s<f||d<e)},contain:function(m,c){var r=this;return m>=r.x&&m<=r.x+r.width&&c>=r.y&&c<=r.y+r.height},clone:function(){return new _(this.x,this.y,this.width,this.height)},copy:function(m){this.x=m.x,this.y=m.y,this.width=m.width,this.height=m.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},_.create=function(m){return new _(m.x,m.y,m.width,m.height)};var C=_;Ze.exports=C},mLcG:function(Ze,we){var M=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(ue){setTimeout(ue,16)};Ze.exports=M},mOS8:function(Ze,we,M){Ze.exports=M.p+"static/403Qrcode.6c17b6f4.png"},n1HI:function(Ze,we,M){var ue=M("hX1E"),Y=ue.normalizeRadian,P=Math.PI*2;function y(E,_,C,m,c,r,n,e,s){if(n===0)return!1;var u=n;e-=E,s-=_;var o=Math.sqrt(e*e+s*s);if(o-u>C||o+u<C)return!1;if(Math.abs(m-c)%P<1e-4)return!0;if(r){var f=m;m=Y(c),c=Y(f)}else m=Y(m),c=Y(c);m>c&&(c+=P);var d=Math.atan2(s,e);return d<0&&(d+=P),d>=m&&d<=c||d+P>=m&&d+P<=c}we.containStroke=y},n6Mw:function(Ze,we,M){var ue=M("SrGk"),Y=M("bYtY"),P=M("Fofx");function y(_,C){ue.call(this,_,C,"clipPath","__clippath_in_use__")}Y.inherits(y,ue),y.prototype.update=function(_){var C=this.getSvgElement(_);C&&this.updateDom(C,_.__clipPaths,!1);var m=this.getTextSvgElement(_);m&&this.updateDom(m,_.__clipPaths,!0),this.markUsed(_)},y.prototype.updateDom=function(_,C,m){if(C&&C.length>0){var c=this.getDefs(!0),r=C[0],n,e,s=m?"_textDom":"_dom";r[s]?(e=r[s].getAttribute("id"),n=r[s],c.contains(n)||c.appendChild(n)):(e="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,n=this.createElement("clipPath"),n.setAttribute("id",e),c.appendChild(n),r[s]=n);var u=this.getSvgProxy(r);if(r.transform&&r.parent.invTransform&&!m){var o=Array.prototype.slice.call(r.transform);P.mul(r.transform,r.parent.invTransform,r.transform),u.brush(r),r.transform=o}else u.brush(r);var f=this.getSvgElement(r);n.innerHTML="",n.appendChild(f.cloneNode()),_.setAttribute("clip-path","url(#"+e+")"),C.length>1&&this.updateDom(n,C.slice(1),m)}else _&&_.setAttribute("clip-path","none")},y.prototype.markUsed=function(_){var C=this;_.__clipPaths&&Y.each(_.__clipPaths,function(m){m._dom&&ue.prototype.markUsed.call(C,m._dom),m._textDom&&ue.prototype.markUsed.call(C,m._textDom)})};var E=y;Ze.exports=E},n6Qo:function(Ze,we,M){"use strict";M.d(we,"a",function(){return m});var ue=M("q1tI"),Y=M("biw7"),P=M("fyJ8");function y(c){var r=c.className,n=c.index,e=c.children,s=c.colSpan,u=c.rowSpan,o=ue.useContext(Y.a),f=o.prefixCls,d=o.fixedInfoList,a=d[n];return ue.createElement(P.a,Object.assign({className:r,index:n,component:"td",prefixCls:f,record:null,dataIndex:null,render:function(){return{children:e,props:{colSpan:s,rowSpan:u}}}},a))}function E(c){return ue.createElement("tr",Object.assign({},c))}function _(c){var r=c.children,n=ue.useContext(Y.a),e=n.prefixCls;return ue.createElement("tfoot",{className:"".concat(e,"-summary")},r)}var C=we.b=_,m={Cell:y,Row:E}},nCxF:function(Ze,we,M){var ue=M("QBsz"),Y=ue.min,P=ue.max,y=ue.scale,E=ue.distance,_=ue.add,C=ue.clone,m=ue.sub;function c(r,n,e,s){var u=[],o=[],f=[],d=[],a,h,g,p;if(s){g=[Infinity,Infinity],p=[-Infinity,-Infinity];for(var S=0,w=r.length;S<w;S++)Y(g,g,r[S]),P(p,p,r[S]);Y(g,g,s[0]),P(p,p,s[1])}for(var S=0,w=r.length;S<w;S++){var B=r[S];if(e)a=r[S?S-1:w-1],h=r[(S+1)%w];else if(S===0||S===w-1){u.push(C(r[S]));continue}else a=r[S-1],h=r[S+1];m(o,h,a),y(o,o,n);var b=E(B,a),A=E(B,h),l=b+A;l!==0&&(b/=l,A/=l),y(f,o,-b),y(d,o,A);var i=_([],B,f),x=_([],B,d);s&&(P(i,i,g),Y(i,i,p),P(x,x,g),Y(x,x,p)),u.push(i),u.push(x)}return e&&u.push(u.shift()),u}Ze.exports=c},nKGa:function(Ze,we,M){Ze.exports=M.p+"static/export_exercise-template.f7655c19.png"},nPnh:function(Ze,we){var M=Math.round;function ue(y,E,_){if(!E)return;var C=E.x1,m=E.x2,c=E.y1,r=E.y2;y.x1=C,y.x2=m,y.y1=c,y.y2=r;var n=_&&_.lineWidth;if(!n)return;M(C*2)===M(m*2)&&(y.x1=y.x2=P(C,n,!0)),M(c*2)===M(r*2)&&(y.y1=y.y2=P(c,n,!0))}function Y(y,E,_){if(!E)return;var C=E.x,m=E.y,c=E.width,r=E.height;y.x=C,y.y=m,y.width=c,y.height=r;var n=_&&_.lineWidth;if(!n)return;y.x=P(C,n,!0),y.y=P(m,n,!0),y.width=Math.max(P(C+c,n,!1)-y.x,c===0?0:1),y.height=Math.max(P(m+r,n,!1)-y.y,r===0?0:1)}function P(y,E,_){if(!E)return y;var C=M(y*2);return(C+M(E))%2===0?C/2:(C+(_?1:-1))/2}we.subPixelOptimizeLine=ue,we.subPixelOptimizeRect=Y,we.subPixelOptimize=P},ni6a:function(Ze,we,M){var ue=M("pzxd"),Y=M("mFDi"),P=M("gut8"),y=P.WILL_BE_RESTORED,E=new Y,_=function(){};_.prototype={constructor:_,drawRectText:function(m,c){var r=this.style;c=r.textRect||c,this.__dirty&&ue.normalizeTextStyle(r,!0);var n=r.text;if(n!=null&&(n+=""),!ue.needDrawText(n,r))return;m.save();var e=this.transform;r.transformText?this.setTransform(m):e&&(E.copy(c),E.applyTransform(e),c=E),ue.renderText(this,m,n,r,c,y),m.restore()}};var C=_;Ze.exports=C},nukY:function(Ze,we){Ze.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(Ze,we){Ze.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(Ze,we,M){(function(ue){ue(M("VrN/"))})(function(ue){"use strict";var Y=ue.Pos;function P(d,a){return d.line-a.line||d.ch-a.ch}var y="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=y+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",_=new RegExp("<(/?)(["+y+"]["+E+"]*)","g");function C(d,a,h,g){this.line=a,this.ch=h,this.cm=d,this.text=d.getLine(a),this.min=g?Math.max(g.from,d.firstLine()):d.firstLine(),this.max=g?Math.min(g.to-1,d.lastLine()):d.lastLine()}function m(d,a){var h=d.cm.getTokenTypeAt(Y(d.line,a));return h&&/\btag\b/.test(h)}function c(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 a=d.text.indexOf(">",d.ch);if(a==-1){if(c(d))continue;return}if(!m(d,a+1)){d.ch=a+1;continue}var h=d.text.lastIndexOf("/",a),g=h>-1&&!/\S/.test(d.text.slice(h+1,a));return d.ch=a+1,g?"selfClose":"regular"}}function e(d){for(;;){var a=d.ch?d.text.lastIndexOf("<",d.ch-1):-1;if(a==-1){if(r(d))continue;return}if(!m(d,a+1)){d.ch=a;continue}_.lastIndex=a,d.ch=a;var h=_.exec(d.text);if(h&&h.index==a)return h}}function s(d){for(;;){_.lastIndex=d.ch;var a=_.exec(d.text);if(!a){if(c(d))continue;return}if(!m(d,a.index+1)){d.ch=a.index+1;continue}return d.ch=a.index+a[0].length,a}}function u(d){for(;;){var a=d.ch?d.text.lastIndexOf(">",d.ch-1):-1;if(a==-1){if(r(d))continue;return}if(!m(d,a+1)){d.ch=a;continue}var h=d.text.lastIndexOf("/",a),g=h>-1&&!/\S/.test(d.text.slice(h+1,a));return d.ch=a+1,g?"selfClose":"regular"}}function o(d,a){for(var h=[];;){var g=s(d),p,S=d.line,w=d.ch-(g?g[0].length:0);if(!g||!(p=n(d)))return;if(p=="selfClose")continue;if(g[1]){for(var B=h.length-1;B>=0;--B)if(h[B]==g[2]){h.length=B;break}if(B<0&&(!a||a==g[2]))return{tag:g[2],from:Y(S,w),to:Y(d.line,d.ch)}}else h.push(g[2])}}function f(d,a){for(var h=[];;){var g=u(d);if(!g)return;if(g=="selfClose"){e(d);continue}var p=d.line,S=d.ch,w=e(d);if(!w)return;if(w[1])h.push(w[2]);else{for(var B=h.length-1;B>=0;--B)if(h[B]==w[2]){h.length=B;break}if(B<0&&(!a||a==w[2]))return{tag:w[2],from:Y(d.line,d.ch),to:Y(p,S)}}}}ue.registerHelper("fold","xml",function(d,a){for(var h=new C(d,a.line,0);;){var g=s(h);if(!g||h.line!=a.line)return;var p=n(h);if(!p)return;if(!g[1]&&p!="selfClose"){var S=Y(h.line,h.ch),w=o(h,g[2]);return w&&P(w.from,S)>0?{from:S,to:w.from}:null}}}),ue.findMatchingTag=function(d,a,h){var g=new C(d,a.line,a.ch,h);if(g.text.indexOf(">")==-1&&g.text.indexOf("<")==-1)return;var p=n(g),S=p&&Y(g.line,g.ch),w=p&&e(g);if(!p||!w||P(g,a)>0)return;var B={from:Y(g.line,g.ch),to:S,tag:w[2]};return p=="selfClose"?{open:B,close:null,at:"open"}:w[1]?{open:f(g,w[2]),close:B,at:"close"}:(g=new C(d,S.line,S.ch,h),{open:B,close:o(g,w[2]),at:"open"})},ue.findEnclosingTag=function(d,a,h,g){for(var p=new C(d,a.line,a.ch,h);;){var S=f(p,g);if(!S)break;var w=new C(d,a.line,a.ch,h),B=o(w,S.tag);if(B)return{open:S,close:B}}},ue.scanForClosingTag=function(d,a,h,g){var p=new C(d,a.line,a.ch,g?{from:0,to:g}:null);return o(p,h)}})},p5ED:function(Ze,we,M){"use strict";var ue=M("+L6B"),Y=M("2/Rp"),P=M("5Dmo"),y=M("3S7+"),E=M("k1fw"),_=M("9og8"),C=M("tJVT"),m=M("WmNS"),c=M.n(m),r=M("q1tI"),n=M.n(r),e=M("vHTk"),s=M.n(e),u=M("yEEn"),o=M("ZW9T"),f=M("1vsH"),d=M("V0Rq"),a=M("m3rI"),h=function(p){var S=p.name,w=p.data,B=p.theme,b=p.type,A=p.filename,l=p.monacoEditor,i=p.className,x=p.style,O=p.close,T=p.onClose,D=p.hasMask,R=p.otherData,k=R===void 0?{}:R,H=Object(r.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),J=Object(C.a)(H,2),U=J[0],K=J[1],G=Object(r.useState)(""),N=Object(C.a)(G,2),Q=N[0],X=N[1],te=Object(r.useState)(),oe=Object(C.a)(te,2),me=oe[0],se=oe[1],_e=window.ENV==="build"?"/react/build/office.html":"/office.html",Ae,Ee=1024*1024,pe=10*Ee,he=Object(r.useRef)();b==="office"&&(Ae=Object(f.R)(w).filesize,Ae>pe&&(b="other")),A&&(l.filename=A),Object(r.useEffect)(function(){var ce,Ie,Fe=(ce=document.cookie)===null||ce===void 0||((Ie=ce.replace(/\s/g,""))===null||Ie===void 0)?void 0:Ie.split(";");Fe==null||Fe.map(function(ke){var re=ke.split("=");re[0]==="_educoder_session"&&X(re[1])})},[]),Object(r.useEffect)(function(){b==="office"&&ie()},[b]);var ie=function(){var ce=Object(_.a)(c.a.mark(function Ie(){var Fe,ke,re;return c.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return console.log("data:",w),Fe=w,w.startsWith("http")||(Fe=location.origin+Fe),ke=new URL(Fe).pathname.split("/").pop(),W.next=6,Object(d.U)({attachment_id:ke});case 6:re=W.sent,se(re);case 8:case"end":return W.stop()}},Ie)}));return function(){return ce.apply(this,arguments)}}(),fe=function(){if(w.startsWith("http")||w.startsWith("/api")||w.startsWith("blob:")){ge();return}Object(f.x)(A||"educoder",w,A||"educoder")},ge=function(){Object(f.v)(A||"educoder",decodeURIComponent(w))};return n.a.createElement("div",{style:Object(E.a)({},x||{}),className:"".concat(D&&s.a.bgBlack," ").concat(b?s.a.wrp:"hide")},O&&n.a.createElement("div",{className:s.a.close,ref:he},n.a.createElement(y.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return he.current}},n.a.createElement("span",{onClick:ge},n.a.createElement("i",{className:"icon-quxiaozhiding"}))),n.a.createElement(y.a,{title:"\u5173\u95ED",getPopupContainer:function(){return he.current}},n.a.createElement("span",{className:"",onClick:function(){T(),se(null)}},n.a.createElement("i",{className:"icon-guanbi1"})))),n.a.createElement("div",{className:"".concat(s.a[i]," ").concat(i," ").concat(s.a.monaco," ").concat(b==="txt"?"show":"hide")},b==="txt"&&n.a.createElement(o.b,l)),b==="audio"&&n.a.createElement("audio",{src:"".concat((w==null?void 0:w.indexOf("http://"))>-1||(w==null?void 0:w.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(w),autoPlay:!0}),b==="video"&&n.a.createElement(n.a.Fragment,null,(w==null?void 0:w.indexOf("/api"))>-1?n.a.createElement("video",{controls:!0,src:"".concat(w),autoPlay:!0}):n.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(w),autoPlay:!0})),b==="office"&&me&&n.a.createElement("iframe",{src:"".concat(_e,"?key=").concat(me.key,"&url=").concat(a.a.API_SERVER+me.url,"&callbackUrl=").concat(a.a.API_SERVER+me.callbackUrl,"&fileType=").concat(me.fileType,"&title=").concat(me.title,"&model=view")}),(b==="xlsx"||b==="doc"||b==="pptx"||b==="docx")&&n.a.createElement("iframe",{src:"".concat(_e,"?key=").concat(k.key,"&url=").concat(a.a.API_SERVER+k.url,"&callbackUrl=").concat(a.a.API_SERVER+k.callbackUrl,"&fileType=").concat(k.fileType,"&title=").concat(k.title,"&model=").concat(k.model)}),b==="html"&&n.a.createElement("iframe",{src:w+"&disposition=inline"}),b==="pdf"&&n.a.createElement("embed",{className:s.a.embed,src:w,type:"application/pdf"}),b==="image"&&n.a.createElement("img",{src:"".concat((w==null?void 0:w.indexOf("http://"))>-1||(w==null?void 0:w.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(w)}),b==="other"&&n.a.createElement("div",null,n.a.createElement(Y.a,{type:"primary",size:"large",onClick:fe},n.a.createElement(u.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),b==="download"&&n.a.createElement(Y.a,{type:"primary",size:"large",onClick:fe},n.a.createElement(u.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))};we.a=h},"p77/":function(Ze,we,M){},ppsT:function(Ze,we,M){(function(ue){var Y,Y;!function(P){if(!0)window.OSS=P(),Ze.exports=P();else var y}(function(){var P;return function(){function y(E,_,C){function m(n,e){if(!_[n]){if(!E[n]){var s=typeof Y=="function"&&Y;if(!e&&s)return Y(n,!0);if(c)return c(n,!0);var u=new Error("Cannot find module '"+n+"'");throw u.code="MODULE_NOT_FOUND",u}var o=_[n]={exports:{}};E[n][0].call(o.exports,function(f){return m(E[n][1][f]||f)},o,o.exports,y,E,_,C)}return _[n].exports}for(var c=typeof Y=="function"&&Y,r=0;r<C.length;r++)m(C[r]);return m}return y}()({1:[function(y,E,_){"use strict";var C=y("./browser/client");C.Buffer=y("buffer").Buffer,C.co=y("co"),C.urllib=y("../shims/xhr"),C.version=y("./browser/version").version,E.exports=C},{"../shims/xhr":244,"./browser/client":2,"./browser/version":5,buffer:38,co:41}],2:[function(y,E,_){(function(C,m){"use strict";function c(N){return N&&N.__esModule?N:{default:N}}function r(N,Q){return N[Q]||N[Q.toLowerCase()]}function n(N,Q){var X=i.parse(N);if(!X.protocol){var te=Q?"https://":"http://";X=i.parse(te+N)}if(X.protocol!=="http:"&&X.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return X}function e(N,Q,X){var te=X?"https://":"http://",oe=Q?"-internal.aliyuncs.com":".aliyuncs.com";return N.substr(0,"vpc100-oss-cn-".length)==="vpc100-oss-cn-"&&(oe=".aliyuncs.com"),i.parse(te+N+oe)}function s(){return document&&document.location&&document.location.protocol==="https:"}function u(N,Q){if(!(this instanceof u))return new u(N,Q);N&&N.inited?this.options=N:this.options=u.initOptions(N),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=D,this.agent=this.options.agent||K),this.ctx=Q,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}var o=y("babel-runtime/regenerator"),f=c(o),d=y("babel-runtime/core-js/object/keys"),a=c(d),h=y("debug")("ali-oss"),g=y("./../../shims/crypto/crypto.js"),p=y("path"),S=y("copy-to"),w=y("mime"),B=y("xml2js"),b=y("humanize-ms"),A=y("agentkeepalive"),l=y("merge-descriptors"),i=y("url"),x=y("is-type-of"),O=y("platform"),T=y("utility"),D=y("urllib"),R=y("./version"),k=y("dateformat"),H=y("bowser"),J=y("../common/signUtils"),U=y("../common/utils"),K=new A;E.exports=u,u.initOptions=function(N){if(!N||!N.accessKeyId||!N.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,a.default)(N).forEach(function(te){N[te]!==void 0&&(X[te]=N[te])}),X.accessKeyId=X.accessKeyId.trim(),X.accessKeySecret=X.accessKeySecret.trim(),X.timeout&&(X.timeout=b(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 G=u.prototype;l(G,y("./object")),l(G,y("./managed_upload")),l(G,y("../common/multipart")),l(G,y("../common/thunkpool.js")),u.Wrapper=y("./wrapper"),G.signature=function(N){return h("authorization stringToSign: %s",N),J.computeSignature(this.options.accessKeySecret,N)},G.authorization=function(N,Q,X,te){var oe=J.buildCanonicalString(N.toUpperCase(),Q,{headers:te,parameters:X});return J.authorization(this.options.accessKeyId,this.options.accessKeySecret,oe)},G.createRequest=function(N){var Q={"x-oss-date":k(+new Date+this.options.amendTimeSkewed,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.options.stsToken&&(Q["x-oss-security-token"]=this.options.stsToken),S(N.headers).to(Q),r(Q,"Content-Type")||(N.mime===w.default_type&&(N.mime=""),N.mime&&N.mime.indexOf("/")>0?Q["Content-Type"]=N.mime:Q["Content-Type"]=w.getType(N.mime||p.extname(N.object||""))||"application/octet-stream"),N.content&&(Q["Content-Md5"]=g.createHash("md5").update(new m(N.content,"utf8")).digest("base64"),Q["Content-Length"]||(Q["Content-Length"]=N.content.length));var X=this._getResource(N);Q.authorization=this.authorization(N.method,X,N.subres,Q);var te=this._getReqUrl(N);h("request %s %s, with headers %j, !!stream: %s",N.method,te,Q,!!N.stream);var oe=N.timeout||this.options.timeout;return{url:te,params:{agent:this.agent,method:N.method,content:N.content,stream:N.stream,headers:Q,timeout:oe,writeStream:N.writeStream,customResponse:N.customResponse,ctx:N.ctx||this.ctx}}},G.request=f.default.mark(function N(Q){var X,te,oe,me;return f.default.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return X=this.createRequest(Q),te=void 0,oe=void 0,se.prev=3,se.next=6,this.urllib.request(X.url,X.params);case 6:te=se.sent,h("response %s %s, got %s, headers: %j",Q.method,X.url,te.status,te.headers),se.next=13;break;case 10:se.prev=10,se.t0=se.catch(3),oe=se.t0;case 13:if(me=void 0,!te||!Q.successStatuses||Q.successStatuses.indexOf(te.status)!==-1){se.next=26;break}return se.next=17,this.requestError(te);case 17:if(me=se.sent,me.code!=="RequestTimeTooSkewed"){se.next=23;break}return this.options.amendTimeSkewed=+new Date(me.serverTime)-new Date,se.next=22,this.request(Q);case 22:return se.abrupt("return",se.sent);case 23:me.params=Q,se.next=30;break;case 26:if(!oe){se.next=30;break}return se.next=29,this.requestError(oe);case 29:me=se.sent;case 30:if(!me){se.next=32;break}throw me;case 32:if(!Q.xmlResponse){se.next=36;break}return se.next=35,this.parseXML(te.data);case 35:te.data=se.sent;case 36:return se.abrupt("return",te);case 37:case"end":return se.stop()}},N,this,[[3,10]])}),G._getResource=function(N){var Q="/";return N.bucket&&(Q+=N.bucket+"/"),N.object&&(Q+=N.object),Q},G._isIP=function(N){return U._isIP(N)},G._escape=function(N){return T.encodeURIComponent(N).replace(/%2F/g,"/")},G._getReqUrl=function(N){var Q={};S(this.options.endpoint).to(Q);var X=this._isIP(Q.hostname),te=this.options.cname;!N.bucket||te||X||(Q.host=N.bucket+"."+Q.host);var oe="/";N.bucket&&X&&(oe+=N.bucket+"/"),N.object&&(oe+=this._escape(N.object).replace(/\+/g,"%2B")),Q.pathname=oe;var me={};if(N.query&&l(me,N.query),N.subres){var se={};x.string(N.subres)?se[N.subres]="":x.array(N.subres)?N.subres.forEach(function(_e){se[_e]=""}):se=N.subres,l(me,se)}return Q.query=me,i.format(Q)},G._getUserAgent=function(){var N=C&&C.browser?"js":"nodejs",Q="aliyun-sdk-"+N+"/"+R.version,X=O.description;return!X&&C&&(X="Node.js "+C.version.slice(1)+" on "+C.platform+" "+C.arch),this._checkUserAgent(Q+" "+X)},G._checkUserAgent=function(N){return N.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},G.checkBrowserAndVersion=function(N,Q){return H.name===N&&H.version.split(".")[0]===Q},G.parseXML=function(N){return function(Q){m.isBuffer(N)&&(N=N.toString()),B.parseString(N,{explicitRoot:!1,explicitArray:!1},Q)}},G.requestError=f.default.mark(function N(Q){var X,te,oe,me;return f.default.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:if(X=null,Q.data&&Q.data.length){se.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=""),se.next=30;break;case 5:return te=String(Q.data),h("request response error data: %s",te),oe=void 0,se.prev=8,se.next=11,this.parseXML(te)||{};case 11:oe=se.sent,se.next=21;break;case 14:return se.prev=14,se.t0=se.catch(8),h(te),se.t0.message+=`
raw xml: `+te,se.t0.status=Q.status,se.t0.requestId=Q.headers["x-oss-request-id"],se.abrupt("return",se.t0);case 21:me=oe.Message||"unknow request error, status: "+Q.status,oe.Condition&&(me+=" (condition: "+oe.Condition+")"),X=new Error(me),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),se.abrupt("return",X);case 32:case"end":return se.stop()}},N,this,[[8,14]])})}).call(this,y("_process"),y("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(y,E,_){(function(C){"use strict";function m(S){return S&&S.__esModule?S:{default:S}}function c(S,w){if(!(this instanceof c))return new c(S,w);p.call(this,w),this.file=S,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var r=y("babel-runtime/core-js/array/from"),n=m(r),e=y("babel-runtime/regenerator"),s=m(e),u=y("is-type-of"),o=y("util"),f=y("path"),d=y("mime"),a=y("copy-to"),h=_;h.multipartUpload=s.default.mark(function S(w,B,b){var A,l,i,x,O,T,D,R,k;return s.default.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:if(this.resetCancelFlag(),b=b||{},!b.checkpoint||!b.checkpoint.uploadId){H.next=6;break}return H.next=5,this._resumeMultipart(b.checkpoint,b);case 5:return H.abrupt("return",H.sent);case 6:return A=102400,b.mime||(u.file(B)?b.mime=d.getType(f.extname(B.name)):u.blob(B)?b.mime=B.type:b.mime=d.getType(f.extname(B))),b.headers=b.headers||{},this._convertMetaToHeaders(b.meta,b.headers),H.next=12,this._getFileSize(B);case 12:if(!((l=H.sent)<A)){H.next=25;break}return i=this._createStream(B,0,l),b.contentLength=l,H.next=18,this.putStream(w,i,b);case 18:if(x=H.sent,!b||!b.progress){H.next=22;break}return H.next=22,b.progress(1);case 22:return O={res:x.res,bucket:this.options.bucket,name:w,etag:x.res.headers.etag},(b.headers&&b.headers["x-oss-callback"]||b.callback)&&(O.data=x.data),H.abrupt("return",O);case 25:if(!(b.partSize&&b.partSize<A)){H.next=27;break}throw new Error("partSize must not be smaller than "+A);case 27:return H.next=29,this.initMultipartUpload(w,b);case 29:if(T=H.sent,D=T.uploadId,R=this._getPartSize(l,b.partSize),k={file:B,name:w,fileSize:l,partSize:R,uploadId:D,doneParts:[]},!b||!b.progress){H.next=36;break}return H.next=36,b.progress(0,k,T.res);case 36:return H.next=38,this._resumeMultipart(k,b);case 38:return H.abrupt("return",H.sent);case 39:case"end":return H.stop()}},S,this)}),h._resumeMultipart=s.default.mark(function S(w,B){var b,A,l,i,x,O,T,D,R,k,H,J,U,K,G,N,Q,X,te,oe,me;return s.default.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:if(!this.isCancel()){se.next=2;break}throw this._makeCancelEvent();case 2:if(b=w.file,A=w.fileSize,l=w.partSize,i=w.uploadId,x=w.doneParts,O=w.name,T=[],x.length>0&&a(x).to(T),D=this._divideParts(A,l),R=D.length,k=!1,H=s.default.mark(function _e(Ae,Ee){var pe,he,ie;return s.default.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(Ae.isCancel()){fe.next=21;break}return fe.prev=1,pe=D[Ee-1],he={stream:Ae._createStream(b,pe.start,pe.end),size:pe.end-pe.start},fe.next=6,Ae._uploadPart(O,i,Ee,he);case 6:if(ie=fe.sent,Ae.isCancel()||k){fe.next=13;break}if(w.doneParts.push({number:Ee,etag:ie.res.headers.etag}),T.push({number:Ee,etag:ie.res.headers.etag}),!B||!B.progress){fe.next=13;break}return fe.next=13,B.progress(x.length/R,w,ie.res);case 13:fe.next=21;break;case 15:if(fe.prev=15,fe.t0=fe.catch(1),Ae.isCancel()){fe.next=21;break}throw Ae.cancel(),fe.t0.partNum=Ee,fe.t0;case 21:case"end":return fe.stop()}},_e,this,[[1,15]])}),J=(0,n.default)(new Array(R),function(_e,Ae){return Ae+1}),U=T.map(function(_e){return _e.number}),K=J.filter(function(_e){return U.indexOf(_e)<0}),G=5,N=B.parallel||G,!this.checkBrowserAndVersion("Internet Explorer","10")&&N!==1){se.next=26;break}Q=0;case 16:if(!(Q<K.length)){se.next=24;break}if(!this.isCancel()){se.next=19;break}throw this._makeCancelEvent();case 19:return se.next=21,H(this,K[Q]);case 21:Q++,se.next=16;break;case 24:se.next=40;break;case 26:for(X=[],te=0;te<K.length;te++)X.push(H(this,K[te]));return se.next=30,this._thunkPool(X,N);case 30:if(oe=se.sent,k=!0,!(oe&&oe.length>0)){se.next=37;break}throw this.resetCancelFlag(),me=oe[0],me.message="Failed to upload some parts with error: "+me.toString()+" part_num: "+me.partNum,me;case 37:if(!this.isCancel()){se.next=40;break}throw X=null,this._makeCancelEvent();case 40:return se.next=42,this.completeMultipartUpload(O,i,T,B);case 42:return se.abrupt("return",se.sent);case 43:case"end":return se.stop()}},S,this)}),u.file=function(S){return typeof File!="undefined"&&S instanceof File},u.blob=function(S){return typeof Blob!="undefined"&&S instanceof Blob},h._getFileSize=s.default.mark(function S(w){var B;return s.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(!u.buffer(w)){b.next=4;break}return b.abrupt("return",w.length);case 4:if(!u.blob(w)&&!u.file(w)){b.next=6;break}return b.abrupt("return",w.size);case 6:if(!u.string(w)){b.next=11;break}return b.next=9,this._statFile(w);case 9:return B=b.sent,b.abrupt("return",B.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return b.stop()}},S,this)});var g=y("stream"),p=g.Readable;o.inherits(c,p),c.prototype.readFileAndPush=function(S){if(this.fileBuffer)for(var w=!0;w&&this.fileBuffer&&this.start<this.fileBuffer.length;){var B=this.start,b=B+S;b=b>this.fileBuffer.length?this.fileBuffer.length:b,this.start=b,w=this.push(this.fileBuffer.slice(B,b))}},c.prototype._read=function(S){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);S=S||16384;var w=this;this.reader.onload=function(B){w.fileBuffer=new C(new Uint8Array(B.target.result)),w.file=null,w.readFileAndPush(S)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(S)},h._createStream=function(S,w,B){if(u.blob(S)||u.file(S))return new c(S.slice(w,B));throw new Error("_createStream requires File/String.")},h._getPartSize=function(S,w){return w?Math.max(Math.ceil(S/1e4),w):1048576},h._divideParts=function(S,w){for(var B=Math.ceil(S/w),b=[],A=0;A<B;A++){var l=w*A,i=Math.min(l+w,S);b.push({start:l,end:i})}return b},h._makeCancelEvent=function(){return{status:0,name:"cancel"}}}).call(this,y("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(y,E,_){"use strict";function C(w){return w&&w.__esModule?w:{default:w}}var m=y("babel-runtime/core-js/object/keys"),c=C(m),r=y("babel-runtime/regenerator"),n=C(r),e=y("debug")("ali-oss:object"),s=y("utility"),u=y("fs"),o=y("is-type-of"),f=y("url"),d=y("copy-to"),a=y("path"),h=y("mime"),g=y("../common/callback"),p=y("../common/signUtils"),S=_;S.append=n.default.mark(function w(B,b,A){var l;return n.default.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return A=A||{},A.position===void 0&&(A.position="0"),A.subres={append:"",position:A.position},A.method="POST",i.next=6,this.put(B,b,A);case 6:return l=i.sent,l.nextAppendPosition=l.res.headers["x-oss-next-append-position"],i.abrupt("return",l);case 9:case"end":return i.stop()}},w,this)}),S.put=n.default.mark(function w(B,b,A){var l,i,x,O,T,D;return n.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(l=void 0,A=A||{},!o.buffer(b)){R.next=6;break}l=b,R.next=18;break;case 6:if(!o.blob(b)&&!o.file(b)){R.next=17;break}return A.mime||(o.file(b)?A.mime=h.getType(a.extname(b.name)):A.mime=b.type),i=this._createStream(b,0,b.size),R.next=11,this._getFileSize(b);case 11:return A.contentLength=R.sent,R.next=14,this.putStream(B,i,A);case 14:return R.abrupt("return",R.sent);case 17:throw new TypeError("Must provide Buffer/Blob for put.");case 18:return A.headers=A.headers||{},this._convertMetaToHeaders(A.meta,A.headers),x=A.method||"PUT",O=this._objectRequestParams(x,B,A),g.encodeCallback(O,A),O.mime=A.mime,O.content=l,O.successStatuses=[200],R.next=28,this.request(O);case 28:return T=R.sent,D={name:B,url:this._objectUrl(B),res:T.res},O.headers&&O.headers["x-oss-callback"]&&(D.data=JSON.parse(T.data.toString())),R.abrupt("return",D);case 32:case"end":return R.stop()}},w,this)}),S.putStream=n.default.mark(function w(B,b,A){var l,i,x,O;return n.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return A=A||{},A.headers=A.headers||{},A.contentLength?A.headers["Content-Length"]=A.contentLength:A.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(A.meta,A.headers),l=A.method||"PUT",i=this._objectRequestParams(l,B,A),g.encodeCallback(i,A),i.mime=A.mime,i.stream=b,i.successStatuses=[200],T.next=12,this.request(i);case 12:return x=T.sent,O={name:B,url:this._objectUrl(B),res:x.res},i.headers&&i.headers["x-oss-callback"]&&(O.data=JSON.parse(x.data.toString())),T.abrupt("return",O);case 16:case"end":return T.stop()}},w,this)}),S.head=n.default.mark(function w(B,b){var A,l,i;return n.default.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return A=this._objectRequestParams("HEAD",B,b),A.successStatuses=[200,304],x.next=4,this.request(A);case 4:return l=x.sent,i={meta:null,res:l.res,status:l.status},l.status===200&&(0,c.default)(l.headers).forEach(function(O){O.indexOf("x-oss-meta-")===0&&(i.meta||(i.meta={}),i.meta[O.substring(11)]=l.headers[O])}),x.abrupt("return",i);case 8:case"end":return x.stop()}},w,this)}),S.get=n.default.mark(function w(B,b,A){var l,i,x,O;return n.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return l=null,i=!1,o.writableStream(b)?l=b:o.string(b)?(l=u.createWriteStream(b),i=!0):A=b,A=A||{},A.process&&(A.subres=A.subres||{},A.subres["x-oss-process"]=A.process),x=void 0,T.prev=6,O=this._objectRequestParams("GET",B,A),O.writeStream=l,O.successStatuses=[200,206,304],T.next=12,this.request(O);case 12:x=T.sent,i&&l.destroy(),T.next=24;break;case 16:if(T.prev=16,T.t0=T.catch(6),!i){T.next=23;break}return l.destroy(),e("get error: %s, delete the exists file %s",T.t0,b),T.next=23,this._deleteFileSafe(b);case 23:throw T.t0;case 24:return T.abrupt("return",{res:x.res,content:x.data});case 25:case"end":return T.stop()}},w,this,[[6,16]])}),S.getStream=n.default.mark(function w(B,b){var A,l;return n.default.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return b=b||{},A=this._objectRequestParams("GET",B,b),A.customResponse=!0,A.successStatuses=[200,206,304],i.next=6,this.request(A);case 6:return l=i.sent,i.abrupt("return",{stream:l.res,res:{status:l.status,headers:l.headers}});case 8:case"end":return i.stop()}},w,this)}),S.delete=n.default.mark(function w(B,b){var A,l;return n.default.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return A=this._objectRequestParams("DELETE",B,b),A.successStatuses=[204],i.next=4,this.request(A);case 4:return l=i.sent,i.abrupt("return",{res:l.res});case 6:case"end":return i.stop()}},w,this)}),S.deleteMulti=n.default.mark(function w(B,b){var A,l,i,x,O,T;return n.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:for(b=b||{},A=`<?xml version="1.0" encoding="UTF-8"?>
<Delete>
`,b.quiet?A+=` <Quiet>true</Quiet>
`:A+=` <Quiet>false</Quiet>
`,l=0;l<B.length;l++)A+=" <Object><Key>"+s.escape(this._objectName(B[l]))+`</Key></Object>
`;return A+="</Delete>",e("delete multi objects: %s",A),b.subres="delete",i=this._objectRequestParams("POST","",b),i.mime="xml",i.content=A,i.xmlResponse=!0,i.successStatuses=[200],D.next=14,this.request(i);case 14:return x=D.sent,O=x.data,T=O&&O.Deleted||null,T&&(Array.isArray(T)||(T=[T]),T=T.map(function(R){return R.Key})),D.abrupt("return",{res:x.res,deleted:T});case 19:case"end":return D.stop()}},w,this)}),S.copy=n.default.mark(function w(B,b,A){var l,i,x;return n.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return A=A||{},A.headers=A.headers||{},(0,c.default)(A.headers).forEach(function(T){A.headers["x-oss-copy-source-"+T.toLowerCase()]=A.headers[T]}),A.meta&&(A.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(A.meta,A.headers),b=b[0]!=="/"?"/"+this.options.bucket+"/"+encodeURIComponent(b):"/"+encodeURIComponent(b.slice(1)),A.headers["x-oss-copy-source"]=b,l=this._objectRequestParams("PUT",B,A),l.xmlResponse=!0,l.successStatuses=[200,304],O.next=12,this.request(l);case 12:return i=O.sent,x=i.data,x&&(x={etag:x.ETag,lastModified:x.LastModified}),O.abrupt("return",{data:x,res:i.res});case 16:case"end":return O.stop()}},w,this)}),S.putMeta=n.default.mark(function w(B,b,A){return n.default.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,this.copy(B,B,{meta:b||{},timeout:A&&A.timeout,ctx:A&&A.ctx});case 2:return l.abrupt("return",l.sent);case 3:case"end":return l.stop()}},w,this)}),S.list=n.default.mark(function w(B,b){var A,l,i,x,O;return n.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return A=this._objectRequestParams("GET","",b),A.query=B,A.xmlResponse=!0,A.successStatuses=[200],T.next=6,this.request(A);case 6:return l=T.sent,i=l.data.Contents,x=this,i&&(Array.isArray(i)||(i=[i]),i=i.map(function(D){return{name:D.Key,url:x._objectUrl(D.Key),lastModified:D.LastModified,etag:D.ETag,type:D.Type,size:Number(D.Size),storageClass:D.StorageClass,owner:{id:D.Owner.ID,displayName:D.Owner.DisplayName}}})),O=l.data.CommonPrefixes||null,O&&(Array.isArray(O)||(O=[O]),O=O.map(function(D){return D.Prefix})),T.abrupt("return",{res:l.res,objects:i,prefixes:O,nextMarker:l.data.NextMarker||null,isTruncated:l.data.IsTruncated==="true"});case 13:case"end":return T.stop()}},w,this)}),S.putACL=n.default.mark(function w(B,b,A){var l,i;return n.default.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return A=A||{},A.subres="acl",A.headers=A.headers||{},A.headers["x-oss-object-acl"]=b,B=this._objectName(B),l=this._objectRequestParams("PUT",B,A),l.successStatuses=[200],x.next=9,this.request(l);case 9:return i=x.sent,x.abrupt("return",{res:i.res});case 11:case"end":return x.stop()}},w,this)}),S.getACL=n.default.mark(function w(B,b){var A,l;return n.default.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return b=b||{},b.subres="acl",B=this._objectName(B),A=this._objectRequestParams("GET",B,b),A.successStatuses=[200],A.xmlResponse=!0,i.next=8,this.request(A);case 8:return l=i.sent,i.abrupt("return",{acl:l.data.AccessControlList.Grant,owner:{id:l.data.Owner.ID,displayName:l.data.Owner.DisplayName},res:l.res});case 10:case"end":return i.stop()}},w,this)}),S.restore=n.default.mark(function w(B,b){var A,l;return n.default.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return b=b||{},b.subres="restore",A=this._objectRequestParams("POST",B,b),A.successStatuses=[202],i.next=6,this.request(A);case 6:return l=i.sent,i.abrupt("return",{res:l.res});case 8:case"end":return i.stop()}},w,this)}),S.signatureUrl=function(w,B){B=B||{},w=this._objectName(w),B.method=B.method||"GET";var b=s.timestamp()+(B.expires||1800),A={bucket:this.options.bucket,object:w},l=this._getResource(A);this.options.stsToken&&(B["security-token"]=this.options.stsToken);var i=p._signatureForURL(this.options.accessKeySecret,B,l,b),x=f.parse(this._getReqUrl(A));return x.query={OSSAccessKeyId:this.options.accessKeyId,Expires:b,Signature:i.Signature},d(i.subResource).to(x.query),x.format()},S.getObjectUrl=function(w,B){return B?B[B.length-1]!=="/"&&(B+="/"):B=this.options.endpoint.format(),B+this._escape(this._objectName(w))},S._objectUrl=function(w){return this._getReqUrl({bucket:this.options.bucket,object:w})},S.generateObjectUrl=function(w,B){if(B)B[B.length-1]!=="/"&&(B+="/");else{B=this.options.endpoint.format();var b=f.parse(B),A=this.options.bucket;b.hostname=A+"."+b.hostname,b.host=A+"."+b.host,B=b.format()}return B+this._escape(this._objectName(w))},S._objectRequestParams=function(w,B,b){if(!this.options.bucket)throw new Error("Please create a bucket first");b=b||{},B=this._objectName(B);var A={object:B,bucket:this.options.bucket,method:w,subres:b&&b.subres,timeout:b&&b.timeout,ctx:b&&b.ctx};return b.headers&&(A.headers={},d(b.headers).to(A.headers)),A},S._objectName=function(w){return w.replace(/^\/+/,"")},S._statFile=function(w){return function(B){u.stat(w,B)}},S._convertMetaToHeaders=function(w,B){w&&(0,c.default)(w).forEach(function(b){B["x-oss-meta-"+b]=w[b]})},S._deleteFileSafe=function(w){return function(B){u.exists(w,function(b){b?u.unlink(w,function(A){A&&e("unlink %j error: %s",w,A),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(y,E,_){"use strict";_.version="5.3.1"},{}],6:[function(y,E,_){"use strict";function C(a){return a&&a.__esModule?a:{default:a}}function m(a){return a&&typeof a.next=="function"&&typeof a.throw=="function"}function c(a){if(!a)return!1;var h=a.constructor;return!!h&&(h.name==="GeneratorFunction"||h.displayName==="GeneratorFunction"||m(h.prototype)||m(a.prototype))}function r(a,h){var g=new a(h),p=(0,o.default)(g),S=(0,o.default)((0,s.default)(g));p.concat(S).forEach(function(w){c(g[w])?this[w]=f.wrap(g[w]).bind(g):this[w]=g[w]},this)}function n(a){if(!(this instanceof n))return new n(a);r.call(this,d,a)}var e=y("babel-runtime/core-js/object/get-prototype-of"),s=C(e),u=y("babel-runtime/core-js/object/keys"),o=C(u),f=y("co"),d=y("./client");E.exports=n,n.STS=function a(h){if(!(this instanceof a))return new a(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(y,E,_){(function(C){"use strict";function m(s){return s&&s.__esModule?s:{default:s}}var c=y("babel-runtime/core-js/object/keys"),r=m(c),n=y("babel-runtime/core-js/json/stringify"),e=m(n);_.encodeCallback=function(s,u){if(s.headers=s.headers||{},!Object.prototype.hasOwnProperty.call(s.headers,"x-oss-callback")&&u.callback){var o={callbackUrl:encodeURI(u.callback.url),callbackBody:u.callback.body};u.callback.host&&(o.callbackHost=u.callback.host),u.callback.contentType&&(o.callbackBodyType=u.callback.contentType);var f=new C((0,e.default)(o)).toString("base64");if(s.headers["x-oss-callback"]=f,u.callback.customValue){var d={};(0,r.default)(u.callback.customValue).forEach(function(a){d["x:"+a]=u.callback.customValue[a]}),s.headers["x-oss-callback-var"]=new C((0,e.default)(d)).toString("base64")}}}}).call(this,y("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38}],8:[function(y,E,_){"use strict";var C=y("babel-runtime/regenerator"),m=function(e){return e&&e.__esModule?e:{default:e}}(C),c=y("copy-to"),r=y("./callback"),n=_;n.listUploads=m.default.mark(function e(s,u){var o,f,d,a;return m.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return u=u||{},o={},c(u).to(o),o.subres="uploads",f=this._objectRequestParams("GET","",o),f.query=s,f.xmlResponse=!0,f.successStatuses=[200],h.next=10,this.request(f);case 10:return d=h.sent,a=d.data.Upload||[],Array.isArray(a)||(a=[a]),a=a.map(function(g){return{name:g.Key,uploadId:g.UploadId,initiated:g.Initiated}}),h.abrupt("return",{res:d.res,uploads:a,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=m.default.mark(function e(s,u,o,f){var d,a,h;return m.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return f=f||{},d={},c(f).to(d),d.subres={uploadId:u},a=this._objectRequestParams("GET",s,d),a.query=o,a.xmlResponse=!0,a.successStatuses=[200],g.next=10,this.request(a);case 10:return h=g.sent,g.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 g.stop()}},e,this)}),n.abortMultipartUpload=m.default.mark(function e(s,u,o){var f,d,a;return m.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return this.cancel(),o=o||{},f={},c(o).to(f),f.subres={uploadId:u},d=this._objectRequestParams("DELETE",s,f),d.successStatuses=[204],h.next=9,this.request(d);case 9:return a=h.sent,h.abrupt("return",{res:a.res});case 11:case"end":return h.stop()}},e,this)}),n.initMultipartUpload=m.default.mark(function e(s,u){var o,f,d;return m.default.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return u=u||{},o={},c(u).to(o),o.headers=o.headers||{},this._convertMetaToHeaders(u.meta,o.headers),o.subres="uploads",f=this._objectRequestParams("POST",s,o),f.mime=u.mime,f.xmlResponse=!0,f.successStatuses=[200],a.next=12,this.request(f);case 12:return d=a.sent,a.abrupt("return",{res:d.res,bucket:d.data.Bucket,name:d.data.Key,uploadId:d.data.UploadId});case 14:case"end":return a.stop()}},e,this)}),n.uploadPart=m.default.mark(function e(s,u,o,f,d,a,h){var g;return m.default.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return g={stream:this._createStream(f,d,a),size:a-d},p.next=3,this._uploadPart(s,u,o,g,h);case 3:return p.abrupt("return",p.sent);case 4:case"end":return p.stop()}},e,this)}),n.completeMultipartUpload=m.default.mark(function e(s,u,o,f){var d,a,h,g,p,S,w,B;return m.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:for(d=o.concat().sort(function(A,l){return A.number-l.number}).filter(function(A,l,i){return!l||A.number!==i[l-1].number}),a=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,h=0;h<d.length;h++)g=d[h],a+=`<Part>
`,a+="<PartNumber>"+g.number+`</PartNumber>
`,a+="<ETag>"+g.etag+`</ETag>
`,a+=`</Part>
`;return a+="</CompleteMultipartUpload>",f=f||{},p={},c(f).to(p),p.subres={uploadId:u},S=this._objectRequestParams("POST",s,p),r.encodeCallback(S,p),S.mime="xml",S.content=a,S.headers&&S.headers["x-oss-callback"]||(S.xmlResponse=!0),S.successStatuses=[200],b.next=16,this.request(S);case 16:return w=b.sent,B={res:w.res,bucket:S.bucket,name:s,etag:w.res.headers.etag},S.headers&&S.headers["x-oss-callback"]&&(B.data=JSON.parse(w.data.toString())),b.abrupt("return",B);case 20:case"end":return b.stop()}},e,this)}),n._uploadPart=m.default.mark(function e(s,u,o,f,d){var a,h,g;return m.default.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return d=d||{},a={},c(d).to(a),a.headers={"Content-Length":f.size},a.subres={partNumber:o,uploadId:u},h=this._objectRequestParams("PUT",s,a),h.mime=a.mime,h.stream=f.stream,h.successStatuses=[200],p.next=11,this.request(h);case 11:return g=p.sent,f.stream=null,h.stream=null,p.abrupt("return",{name:s,etag:g.res.headers.etag,res:g.res});case 15:case"end":return p.stop()}},e,this)})},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(y,E,_){(function(C){"use strict";function m(o){return o&&o.__esModule?o:{default:o}}var c=y("babel-runtime/core-js/json/stringify"),r=m(c),n=y("babel-runtime/core-js/object/keys"),e=m(n),s=y("./../../shims/crypto/crypto.js"),u=y("is-type-of");_.buildCanonicalizedResource=function(o,f){var d=""+o,a="?";if(u.string(f)&&f.trim()!=="")d+=a+f;else if(u.array(f))f.sort(),d+=a+f.join("&");else if(f){var h=function(p,S){return p[0]>S[0]?1:p[0]<S[0]?-1:0},g=function(p){d+=a+p,f[p]&&(d+="="+f[p]),a="&"};(0,e.default)(f).sort(h).forEach(g)}return d},_.buildCanonicalString=function(o,f,d,a){d=d||{};var h=d.headers||{},g=[],p={},S=[o.toUpperCase(),h["Content-Md5"]||"",h["Content-Type"]||h["Content-Type".toLowerCase()],a||h["x-oss-date"]];return(0,e.default)(h).forEach(function(w){var B=w.toLowerCase();B.indexOf("x-oss-")===0&&(p[B]=String(h[w]).trim())}),(0,e.default)(p).sort().forEach(function(w){g.push(w+":"+p[w])}),S=S.concat(g),S.push(this.buildCanonicalizedResource(f,d.parameters)),S.join(`
`)},_.computeSignature=function(o,f){return s.createHmac("sha1",o).update(new C(f,"utf8")).digest("base64")},_.authorization=function(o,f,d){return"OSS "+o+":"+this.computeSignature(f,d)},_._signatureForURL=function(o,f,d,a){var h={},g={};if(f.process&&(g["x-oss-process"]=f.process),f.response&&(0,e.default)(f.response).forEach(function(B){var b="response-"+B.toLowerCase();g[b]=f.response[B]}),(0,e.default)(f).forEach(function(B){var b=B.toLowerCase(),A=f[B];b.indexOf("x-oss-")===0?h[b]=A:b.indexOf("content-md5")===0||b.indexOf("content-type")===0?h[B]=A:b!=="expires"&&b!=="response"&&b!=="process"&&b!=="method"&&(g[b]=A)}),Object.prototype.hasOwnProperty.call(f,"security-token")&&(g["security-token"]=f["security-token"]),Object.prototype.hasOwnProperty.call(f,"callback")){var p={callbackUrl:encodeURI(f.callback.url),callbackBody:f.callback.body};if(f.callback.host&&(p.callbackHost=f.callback.host),f.callback.contentType&&(p.callbackBodyType=f.callback.contentType),g.callback=new C((0,r.default)(p)).toString("base64"),f.callback.customValue){var S={};(0,e.default)(f.callback.customValue).forEach(function(B){S["x:"+B]=f.callback.customValue[B]}),g["callback-var"]=new C((0,r.default)(S)).toString("base64")}}var w=this.buildCanonicalString(f.method,d,{headers:h,parameters:g},a.toString());return{Signature:this.computeSignature(o,w),subResource:g}}}).call(this,y("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(y,E,_){"use strict";var C=y("babel-runtime/regenerator"),m=function(s){return s&&s.__esModule?s:{default:s}}(C),c=y("co"),r=y("co-priority-queue"),n=y("any-promise"),e=_;e._thunkPool=function(s,u){function o(g,p){++a===g.length&&p(h)}function f(g,p){function S(){var i;return m.default.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:i=void 0;case 1:if(d.isCancel()){x.next=9;break}return x.next=4,b.next();case 4:return i=x.sent,x.next=7,i();case 7:x.next=1;break;case 9:A+=1,A===g&&(b.fns=[],b.buffer=[],p(h));case 11:case"end":return x.stop()}},B,this)}function w(i){console.error(i.stack)}for(var B=m.default.mark(S),b=new r,A=0,l=0;l<g;l++)c(S).catch(w);return function(i,x){return function(O){b.push(m.default.mark(function T(){return m.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.prev=0,D.t0=O,D.next=4,i;case 4:D.t1=D.sent,(0,D.t0)(null,D.t1),D.next=11;break;case 8:D.prev=8,D.t2=D.catch(0),O(D.t2);case 11:case"end":return D.stop()}},T,this,[[0,8]])}),x)}}}var d=this,a=0,h=[];return new n(function(g){function p(A){return m.default.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,B(s[A]);case 2:o(s,g);case 3:case"end":return l.stop()}},w,this)}function S(A){h.push(A),o(s,g)}for(var w=m.default.mark(p),B=new f(u,g),b=0;b<s.length;b++)c(p(b)).catch(S)})},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(y,E,_){"use strict";_._isIP=function(C){var m=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,c=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return m.test(C)||c.test(C)}},{}],12:[function(y,E,_){function C(){}E.exports=C,E.exports.HttpsAgent=C},{}],13:[function(y,E,_){E.exports=y("./register")().Promise},{"./register":15}],14:[function(y,E,_){"use strict";var C=null;E.exports=function(m,c){return function(r,n){r=r||null,n=n||{};var e=n.global!==!1;if(C===null&&e&&(C=m["@@any-promise/REGISTRATION"]||null),C!==null&&r!==null&&C.implementation!==r)throw new Error('any-promise already defined as "'+C.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return C===null&&(C=r!==null&&n.Promise!==void 0?{Promise:n.Promise,implementation:r}:c(r),e&&(m["@@any-promise/REGISTRATION"]=C)),C}}},{}],15:[function(y,E,_){"use strict";function C(){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=y("./loader")(window,C)},{"./loader":14}],16:[function(y,E,_){E.exports={default:y("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":44}],17:[function(y,E,_){E.exports={default:y("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":45}],18:[function(y,E,_){E.exports={default:y("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":46}],19:[function(y,E,_){E.exports={default:y("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":47}],20:[function(y,E,_){E.exports={default:y("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":48}],21:[function(y,E,_){E.exports={default:y("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":49}],22:[function(y,E,_){E.exports={default:y("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":50}],23:[function(y,E,_){E.exports={default:y("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":51}],24:[function(y,E,_){E.exports={default:y("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":52}],25:[function(y,E,_){E.exports={default:y("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":53}],26:[function(y,E,_){E.exports={default:y("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":54}],27:[function(y,E,_){E.exports={default:y("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":56}],28:[function(y,E,_){E.exports={default:y("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":55}],29:[function(y,E,_){E.exports={default:y("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":57}],30:[function(y,E,_){"use strict";_.__esModule=!0,_.default=function(C,m){if(!(C instanceof m))throw new TypeError("Cannot call a class as a function")}},{}],31:[function(y,E,_){"use strict";_.__esModule=!0;var C=y("../core-js/object/define-property"),m=function(c){return c&&c.__esModule?c:{default:c}}(C);_.default=function(){function c(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,m.default)(r,s.key,s)}}return function(r,n,e){return n&&c(r.prototype,n),e&&c(r,e),r}}()},{"../core-js/object/define-property":20}],32:[function(y,E,_){"use strict";function C(s){return s&&s.__esModule?s:{default:s}}_.__esModule=!0;var m=y("../core-js/symbol/iterator"),c=C(m),r=y("../core-js/symbol"),n=C(r),e=typeof n.default=="function"&&typeof c.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};_.default=typeof n.default=="function"&&e(c.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(y,E,_){E.exports=y("regenerator-runtime")},{"regenerator-runtime":191}],34:[function(y,E,_){"use strict";function C(g){var p=g.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=g.indexOf("=");return S===-1&&(S=p),[S,S===p?0:4-S%4]}function m(g){var p=C(g),S=p[0],w=p[1];return 3*(S+w)/4-w}function c(g,p,S){return 3*(p+S)/4-S}function r(g){for(var p,S=C(g),w=S[0],B=S[1],b=new f(c(g,w,B)),A=0,l=B>0?w-4:w,i=0;i<l;i+=4)p=o[g.charCodeAt(i)]<<18|o[g.charCodeAt(i+1)]<<12|o[g.charCodeAt(i+2)]<<6|o[g.charCodeAt(i+3)],b[A++]=p>>16&255,b[A++]=p>>8&255,b[A++]=255&p;return B===2&&(p=o[g.charCodeAt(i)]<<2|o[g.charCodeAt(i+1)]>>4,b[A++]=255&p),B===1&&(p=o[g.charCodeAt(i)]<<10|o[g.charCodeAt(i+1)]<<4|o[g.charCodeAt(i+2)]>>2,b[A++]=p>>8&255,b[A++]=255&p),b}function n(g){return u[g>>18&63]+u[g>>12&63]+u[g>>6&63]+u[63&g]}function e(g,p,S){for(var w,B=[],b=p;b<S;b+=3)w=(g[b]<<16&16711680)+(g[b+1]<<8&65280)+(255&g[b+2]),B.push(n(w));return B.join("")}function s(g){for(var p,S=g.length,w=S%3,B=[],b=0,A=S-w;b<A;b+=16383)B.push(e(g,b,b+16383>A?A:b+16383));return w===1?(p=g[S-1],B.push(u[p>>2]+u[p<<4&63]+"==")):w===2&&(p=(g[S-2]<<8)+g[S-1],B.push(u[p>>10]+u[p>>4&63]+u[p<<2&63]+"=")),B.join("")}_.byteLength=m,_.toByteArray=r,_.fromByteArray=s;for(var u=[],o=[],f=typeof Uint8Array!="undefined"?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,h=d.length;a<h;++a)u[a]=d[a],o[d.charCodeAt(a)]=a;o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},{}],35:[function(y,E,_){!function(C,m,c){E!==void 0&&E.exports?E.exports=c():typeof P=="function"&&P.amd?P("bowser",c):C.bowser=c()}(this,0,function(){function C(o){function f(N){var Q=o.match(N);return Q&&Q.length>1&&Q[1]||""}function d(N){var Q=o.match(N);return Q&&Q.length>1&&Q[2]||""}var a,h=f(/(ipod|iphone|ipad)/i).toLowerCase(),g=/like android/i.test(o),p=!g&&/android/i.test(o),S=/nexus\s*[0-6]\s*/i.test(o),w=!S&&/nexus\s*[0-9]+/i.test(o),B=/CrOS/.test(o),b=/silk/i.test(o),A=/sailfish/i.test(o),l=/tizen/i.test(o),i=/(web|hpw)os/i.test(o),x=/windows phone/i.test(o),O=(/SamsungBrowser/i.test(o),!x&&/windows/i.test(o)),T=!h&&!b&&/macintosh/i.test(o),D=!p&&!A&&!l&&!i&&/linux/i.test(o),R=d(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),k=f(/version\/(\d+(\.\d+)?)/i),H=/tablet/i.test(o)&&!/tablet pc/i.test(o),J=!H&&/[^-]mobi/i.test(o),U=/xbox/i.test(o);/opera/i.test(o)?a={name:"Opera",opera:s,version:k||f(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(o)?a={name:"Opera",opera:s,version:f(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||k}:/SamsungBrowser/i.test(o)?a={name:"Samsung Internet for Android",samsungBrowser:s,version:k||f(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(o)?a={name:"Opera Coast",coast:s,version:k||f(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(o)?a={name:"Yandex Browser",yandexbrowser:s,version:k||f(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(o)?a={name:"UC Browser",ucbrowser:s,version:f(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(o)?a={name:"Maxthon",maxthon:s,version:f(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(o)?a={name:"Epiphany",epiphany:s,version:f(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(o)?a={name:"Puffin",puffin:s,version:f(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(o)?a={name:"Sleipnir",sleipnir:s,version:f(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(o)?a={name:"K-Meleon",kMeleon:s,version:f(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:x?(a={name:"Windows Phone",osname:"Windows Phone",windowsphone:s},R?(a.msedge=s,a.version=R):(a.msie=s,a.version=f(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(o)?a={name:"Internet Explorer",msie:s,version:f(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:B?a={name:"Chrome",osname:"Chrome OS",chromeos:s,chromeBook:s,chrome:s,version:f(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(o)?a={name:"Microsoft Edge",msedge:s,version:R}:/vivaldi/i.test(o)?a={name:"Vivaldi",vivaldi:s,version:f(/vivaldi\/(\d+(\.\d+)?)/i)||k}:A?a={name:"Sailfish",osname:"Sailfish OS",sailfish:s,version:f(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(o)?a={name:"SeaMonkey",seamonkey:s,version:f(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(o)?(a={name:"Firefox",firefox:s,version:f(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(o)&&(a.firefoxos=s,a.osname="Firefox OS")):b?a={name:"Amazon Silk",silk:s,version:f(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(o)?a={name:"PhantomJS",phantom:s,version:f(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(o)?a={name:"SlimerJS",slimer:s,version:f(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(o)||/rim\stablet/i.test(o)?a={name:"BlackBerry",osname:"BlackBerry OS",blackberry:s,version:k||f(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:i?(a={name:"WebOS",osname:"WebOS",webos:s,version:k||f(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(o)&&(a.touchpad=s)):/bada/i.test(o)?a={name:"Bada",osname:"Bada",bada:s,version:f(/dolfin\/(\d+(\.\d+)?)/i)}:l?a={name:"Tizen",osname:"Tizen",tizen:s,version:f(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||k}:/qupzilla/i.test(o)?a={name:"QupZilla",qupzilla:s,version:f(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||k}:/chromium/i.test(o)?a={name:"Chromium",chromium:s,version:f(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||k}:/chrome|crios|crmo/i.test(o)?a={name:"Chrome",chrome:s,version:f(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:p?a={name:"Android",version:k}:/safari|applewebkit/i.test(o)?(a={name:"Safari",safari:s},k&&(a.version=k)):h?(a={name:h=="iphone"?"iPhone":h=="ipad"?"iPad":"iPod"},k&&(a.version=k)):a=/googlebot/i.test(o)?{name:"Googlebot",googlebot:s,version:f(/googlebot\/(\d+(\.\d+))/i)||k}:{name:f(/^(.*)\/(.*) /),version:d(/^(.*)\/(.*) /)},!a.msedge&&/(apple)?webkit/i.test(o)?(/(apple)?webkit\/537\.36/i.test(o)?(a.name=a.name||"Blink",a.blink=s):(a.name=a.name||"Webkit",a.webkit=s),!a.version&&k&&(a.version=k)):!a.opera&&/gecko\//i.test(o)&&(a.name=a.name||"Gecko",a.gecko=s,a.version=a.version||f(/gecko\/(\d+(\.\d+)?)/i)),a.windowsphone||!p&&!a.silk?!a.windowsphone&&h?(a[h]=s,a.ios=s,a.osname="iOS"):T?(a.mac=s,a.osname="macOS"):U?(a.xbox=s,a.osname="Xbox"):O?(a.windows=s,a.osname="Windows"):D&&(a.linux=s,a.osname="Linux"):(a.android=s,a.osname="Android");var K="";a.windows?K=function(N){switch(N){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(f(/Windows ((NT|XP)( \d\d?.\d)?)/i)):a.windowsphone?K=f(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):a.mac?(K=f(/Mac OS X (\d+([_\.\s]\d+)*)/i),K=K.replace(/[_\s]/g,".")):h?(K=f(/os (\d+([_\s]\d+)*) like mac os x/i),K=K.replace(/[_\s]/g,".")):p?K=f(/android[ \/-](\d+(\.\d+)*)/i):a.webos?K=f(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):a.blackberry?K=f(/rim\stablet\sos\s(\d+(\.\d+)*)/i):a.bada?K=f(/bada\/(\d+(\.\d+)*)/i):a.tizen&&(K=f(/tizen[\/\s](\d+(\.\d+)*)/i)),K&&(a.osversion=K);var G=!a.windows&&K.split(".")[0];return H||w||h=="ipad"||p&&(G==3||G>=4&&!J)||a.silk?a.tablet=s:(J||h=="iphone"||h=="ipod"||p||S||a.blackberry||a.webos||a.bada)&&(a.mobile=s),a.msedge||a.msie&&a.version>=10||a.yandexbrowser&&a.version>=15||a.vivaldi&&a.version>=1||a.chrome&&a.version>=20||a.samsungBrowser&&a.version>=4||a.firefox&&a.version>=20||a.safari&&a.version>=6||a.opera&&a.version>=10||a.ios&&a.osversion&&a.osversion.split(".")[0]>=6||a.blackberry&&a.version>=10.1||a.chromium&&a.version>=20?a.a=s:a.msie&&a.version<10||a.chrome&&a.version<20||a.firefox&&a.version<20||a.safari&&a.version<6||a.opera&&a.version<10||a.ios&&a.osversion&&a.osversion.split(".")[0]<6||a.chromium&&a.version<20?a.c=s:a.x=s,a}function m(o){return o.split(".").length}function c(o,f){var d,a=[];if(Array.prototype.map)return Array.prototype.map.call(o,f);for(d=0;d<o.length;d++)a.push(f(o[d]));return a}function r(o){for(var f=Math.max(m(o[0]),m(o[1])),d=c(o,function(a){var h=f-m(a);return a+=new Array(h+1).join(".0"),c(a.split("."),function(g){return new Array(20-g.length).join("0")+g}).reverse()});--f>=0;){if(d[0][f]>d[1][f])return 1;if(d[0][f]!==d[1][f])return-1;if(f===0)return 0}}function n(o,f,d){var a=u;typeof f=="string"&&(d=f,f=void 0),f===void 0&&(f=!1),d&&(a=C(d));var h=""+a.version;for(var g in o)if(o.hasOwnProperty(g)&&a[g]){if(typeof o[g]!="string")throw new Error("Browser version in the minVersion map should be a string: "+g+": "+String(o));return r([h,o[g]])<0}return f}function e(o,f,d){return!n(o,f,d)}var s=!0,u=C(typeof navigator!="undefined"&&navigator.userAgent||"");return u.test=function(o){for(var f=0;f<o.length;++f){var d=o[f];if(typeof d=="string"&&d in u)return!0}return!1},u.isUnsupportedBrowser=n,u.compareVersions=r,u.check=e,u._detect=C,u.detect=C,u})},{}],36:[function(y,E,_){},{}],37:[function(y,E,_){function C(u){if(u&&!e(u))throw new Error("Unknown encoding: "+u)}function m(u){return u.toString(this.encoding)}function c(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=y("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=_.StringDecoder=function(u){switch(this.encoding=(u||"utf8").toLowerCase().replace(/[-_]/,""),C(u),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=c;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=r;break;default:return void(this.write=m)}this.charBuffer=new n(6),this.charReceived=0,this.charLength=0};s.prototype.write=function(u){for(var o="";this.charLength;){var f=u.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:u.length;if(u.copy(this.charBuffer,this.charReceived,0,f),this.charReceived+=f,this.charReceived<this.charLength)return"";u=u.slice(f,u.length),o=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var a=o.charCodeAt(o.length-1);if(!(a>=55296&&a<=56319)){if(this.charReceived=this.charLength=0,u.length===0)return o;break}this.charLength+=this.surrogateSize,o=""}this.detectIncompleteChar(u);var d=u.length;this.charLength&&(u.copy(this.charBuffer,0,u.length-this.charReceived,d),d-=this.charReceived),o+=u.toString(this.encoding,0,d);var d=o.length-1,a=o.charCodeAt(d);if(a>=55296&&a<=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),o.substring(0,d)}return o},s.prototype.detectIncompleteChar=function(u){for(var o=u.length>=3?3:u.length;o>0;o--){var f=u[u.length-o];if(o==1&&f>>5==6){this.charLength=2;break}if(o<=2&&f>>4==14){this.charLength=3;break}if(o<=3&&f>>3==30){this.charLength=4;break}}this.charReceived=o},s.prototype.end=function(u){var o="";if(u&&u.length&&(o=this.write(u)),this.charReceived){var f=this.charReceived,d=this.charBuffer,a=this.encoding;o+=d.slice(0,f).toString(a)}return o}},{buffer:38}],38:[function(y,E,_){(function(C){"use strict";function m(){return r.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(F,W){if(m()<W)throw new RangeError("Invalid typed array length");return r.TYPED_ARRAY_SUPPORT?(F=new Uint8Array(W),F.__proto__=r.prototype):(F===null&&(F=new r(W)),F.length=W),F}function r(F,W,de){if(!(r.TYPED_ARRAY_SUPPORT||this instanceof r))return new r(F,W,de);if(typeof F=="number"){if(typeof W=="string")throw new Error("If encoding is specified then the first argument must be a string");return u(this,F)}return n(this,F,W,de)}function n(F,W,de,ne){if(typeof W=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&W instanceof ArrayBuffer?d(F,W,de,ne):typeof W=="string"?o(F,W,de):a(F,W)}function e(F){if(typeof F!="number")throw new TypeError('"size" argument must be a number');if(F<0)throw new RangeError('"size" argument must not be negative')}function s(F,W,de,ne){return e(W),W<=0?c(F,W):de!==void 0?typeof ne=="string"?c(F,W).fill(de,ne):c(F,W).fill(de):c(F,W)}function u(F,W){if(e(W),F=c(F,W<0?0:0|h(W)),!r.TYPED_ARRAY_SUPPORT)for(var de=0;de<W;++de)F[de]=0;return F}function o(F,W,de){if(typeof de=="string"&&de!==""||(de="utf8"),!r.isEncoding(de))throw new TypeError('"encoding" must be a valid string encoding');var ne=0|p(W,de);F=c(F,ne);var le=F.write(W,de);return le!==ne&&(F=F.slice(0,le)),F}function f(F,W){var de=W.length<0?0:0|h(W.length);F=c(F,de);for(var ne=0;ne<de;ne+=1)F[ne]=255&W[ne];return F}function d(F,W,de,ne){if(W.byteLength,de<0||W.byteLength<de)throw new RangeError("'offset' is out of bounds");if(W.byteLength<de+(ne||0))throw new RangeError("'length' is out of bounds");return W=de===void 0&&ne===void 0?new Uint8Array(W):ne===void 0?new Uint8Array(W,de):new Uint8Array(W,de,ne),r.TYPED_ARRAY_SUPPORT?(F=W,F.__proto__=r.prototype):F=f(F,W),F}function a(F,W){if(r.isBuffer(W)){var de=0|h(W.length);return F=c(F,de),F.length===0||W.copy(F,0,0,de),F}if(W){if(typeof ArrayBuffer!="undefined"&&W.buffer instanceof ArrayBuffer||"length"in W)return typeof W.length!="number"||ge(W.length)?c(F,0):f(F,W);if(W.type==="Buffer"&&Fe(W.data))return f(F,W.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function h(F){if(F>=m())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m().toString(16)+" bytes");return 0|F}function g(F){return+F!=F&&(F=0),r.alloc(+F)}function p(F,W){if(r.isBuffer(F))return F.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(F)||F instanceof ArrayBuffer))return F.byteLength;typeof F!="string"&&(F=""+F);var de=F.length;if(de===0)return 0;for(var ne=!1;;)switch(W){case"ascii":case"latin1":case"binary":return de;case"utf8":case"utf-8":case void 0:return Ee(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*de;case"hex":return de>>>1;case"base64":return ie(F).length;default:if(ne)return Ee(F).length;W=(""+W).toLowerCase(),ne=!0}}function S(F,W,de){var ne=!1;if((W===void 0||W<0)&&(W=0),W>this.length)return"";if((de===void 0||de>this.length)&&(de=this.length),de<=0)return"";if(de>>>=0,W>>>=0,de<=W)return"";for(F||(F="utf8");;)switch(F){case"hex":return U(this,W,de);case"utf8":case"utf-8":return R(this,W,de);case"ascii":return H(this,W,de);case"latin1":case"binary":return J(this,W,de);case"base64":return D(this,W,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,W,de);default:if(ne)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),ne=!0}}function w(F,W,de){var ne=F[W];F[W]=F[de],F[de]=ne}function B(F,W,de,ne,le){if(F.length===0)return-1;if(typeof de=="string"?(ne=de,de=0):de>2147483647?de=2147483647:de<-2147483648&&(de=-2147483648),de=+de,isNaN(de)&&(de=le?0:F.length-1),de<0&&(de=F.length+de),de>=F.length){if(le)return-1;de=F.length-1}else if(de<0){if(!le)return-1;de=0}if(typeof W=="string"&&(W=r.from(W,ne)),r.isBuffer(W))return W.length===0?-1:b(F,W,de,ne,le);if(typeof W=="number")return W&=255,r.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?le?Uint8Array.prototype.indexOf.call(F,W,de):Uint8Array.prototype.lastIndexOf.call(F,W,de):b(F,[W],de,ne,le);throw new TypeError("val must be string, number or Buffer")}function b(F,W,de,ne,le){function De(lt,rt){return Xe===1?lt[rt]:lt.readUInt16BE(rt*Xe)}var Xe=1,xt=F.length,Ke=W.length;if(ne!==void 0&&((ne=String(ne).toLowerCase())==="ucs2"||ne==="ucs-2"||ne==="utf16le"||ne==="utf-16le")){if(F.length<2||W.length<2)return-1;Xe=2,xt/=2,Ke/=2,de/=2}var ze;if(le){var yt=-1;for(ze=de;ze<xt;ze++)if(De(F,ze)===De(W,yt===-1?0:ze-yt)){if(yt===-1&&(yt=ze),ze-yt+1===Ke)return yt*Xe}else yt!==-1&&(ze-=ze-yt),yt=-1}else for(de+Ke>xt&&(de=xt-Ke),ze=de;ze>=0;ze--){for(var Et=!0,ct=0;ct<Ke;ct++)if(De(F,ze+ct)!==De(W,ct)){Et=!1;break}if(Et)return ze}return-1}function A(F,W,de,ne){de=Number(de)||0;var le=F.length-de;ne?(ne=Number(ne))>le&&(ne=le):ne=le;var De=W.length;if(De%2!=0)throw new TypeError("Invalid hex string");ne>De/2&&(ne=De/2);for(var Xe=0;Xe<ne;++Xe){var xt=parseInt(W.substr(2*Xe,2),16);if(isNaN(xt))return Xe;F[de+Xe]=xt}return Xe}function l(F,W,de,ne){return fe(Ee(W,F.length-de),F,de,ne)}function i(F,W,de,ne){return fe(pe(W),F,de,ne)}function x(F,W,de,ne){return i(F,W,de,ne)}function O(F,W,de,ne){return fe(ie(W),F,de,ne)}function T(F,W,de,ne){return fe(he(W,F.length-de),F,de,ne)}function D(F,W,de){return W===0&&de===F.length?ce.fromByteArray(F):ce.fromByteArray(F.slice(W,de))}function R(F,W,de){de=Math.min(F.length,de);for(var ne=[],le=W;le<de;){var De=F[le],Xe=null,xt=De>239?4:De>223?3:De>191?2:1;if(le+xt<=de){var Ke,ze,yt,Et;switch(xt){case 1:De<128&&(Xe=De);break;case 2:Ke=F[le+1],(192&Ke)==128&&(Et=(31&De)<<6|63&Ke)>127&&(Xe=Et);break;case 3:Ke=F[le+1],ze=F[le+2],(192&Ke)==128&&(192&ze)==128&&(Et=(15&De)<<12|(63&Ke)<<6|63&ze)>2047&&(Et<55296||Et>57343)&&(Xe=Et);break;case 4:Ke=F[le+1],ze=F[le+2],yt=F[le+3],(192&Ke)==128&&(192&ze)==128&&(192&yt)==128&&(Et=(15&De)<<18|(63&Ke)<<12|(63&ze)<<6|63&yt)>65535&&Et<1114112&&(Xe=Et)}}Xe===null?(Xe=65533,xt=1):Xe>65535&&(Xe-=65536,ne.push(Xe>>>10&1023|55296),Xe=56320|1023&Xe),ne.push(Xe),le+=xt}return k(ne)}function k(F){var W=F.length;if(W<=ke)return String.fromCharCode.apply(String,F);for(var de="",ne=0;ne<W;)de+=String.fromCharCode.apply(String,F.slice(ne,ne+=ke));return de}function H(F,W,de){var ne="";de=Math.min(F.length,de);for(var le=W;le<de;++le)ne+=String.fromCharCode(127&F[le]);return ne}function J(F,W,de){var ne="";de=Math.min(F.length,de);for(var le=W;le<de;++le)ne+=String.fromCharCode(F[le]);return ne}function U(F,W,de){var ne=F.length;(!W||W<0)&&(W=0),(!de||de<0||de>ne)&&(de=ne);for(var le="",De=W;De<de;++De)le+=Ae(F[De]);return le}function K(F,W,de){for(var ne=F.slice(W,de),le="",De=0;De<ne.length;De+=2)le+=String.fromCharCode(ne[De]+256*ne[De+1]);return le}function G(F,W,de){if(F%1!=0||F<0)throw new RangeError("offset is not uint");if(F+W>de)throw new RangeError("Trying to access beyond buffer length")}function N(F,W,de,ne,le,De){if(!r.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(W>le||W<De)throw new RangeError('"value" argument is out of bounds');if(de+ne>F.length)throw new RangeError("Index out of range")}function Q(F,W,de,ne){W<0&&(W=65535+W+1);for(var le=0,De=Math.min(F.length-de,2);le<De;++le)F[de+le]=(W&255<<8*(ne?le:1-le))>>>8*(ne?le:1-le)}function X(F,W,de,ne){W<0&&(W=4294967295+W+1);for(var le=0,De=Math.min(F.length-de,4);le<De;++le)F[de+le]=W>>>8*(ne?le:3-le)&255}function te(F,W,de,ne,le,De){if(de+ne>F.length)throw new RangeError("Index out of range");if(de<0)throw new RangeError("Index out of range")}function oe(F,W,de,ne,le){return le||te(F,W,de,4,34028234663852886e22,-34028234663852886e22),Ie.write(F,W,de,ne,23,4),de+4}function me(F,W,de,ne,le){return le||te(F,W,de,8,17976931348623157e292,-17976931348623157e292),Ie.write(F,W,de,ne,52,8),de+8}function se(F){if(F=_e(F).replace(re,""),F.length<2)return"";for(;F.length%4!=0;)F+="=";return F}function _e(F){return F.trim?F.trim():F.replace(/^\s+|\s+$/g,"")}function Ae(F){return F<16?"0"+F.toString(16):F.toString(16)}function Ee(F,W){W=W||1/0;for(var de,ne=F.length,le=null,De=[],Xe=0;Xe<ne;++Xe){if((de=F.charCodeAt(Xe))>55295&&de<57344){if(!le){if(de>56319){(W-=3)>-1&&De.push(239,191,189);continue}if(Xe+1===ne){(W-=3)>-1&&De.push(239,191,189);continue}le=de;continue}if(de<56320){(W-=3)>-1&&De.push(239,191,189),le=de;continue}de=65536+(le-55296<<10|de-56320)}else le&&(W-=3)>-1&&De.push(239,191,189);if(le=null,de<128){if((W-=1)<0)break;De.push(de)}else if(de<2048){if((W-=2)<0)break;De.push(de>>6|192,63&de|128)}else if(de<65536){if((W-=3)<0)break;De.push(de>>12|224,de>>6&63|128,63&de|128)}else{if(!(de<1114112))throw new Error("Invalid code point");if((W-=4)<0)break;De.push(de>>18|240,de>>12&63|128,de>>6&63|128,63&de|128)}}return De}function pe(F){for(var W=[],de=0;de<F.length;++de)W.push(255&F.charCodeAt(de));return W}function he(F,W){for(var de,ne,le,De=[],Xe=0;Xe<F.length&&!((W-=2)<0);++Xe)de=F.charCodeAt(Xe),ne=de>>8,le=de%256,De.push(le),De.push(ne);return De}function ie(F){return ce.toByteArray(se(F))}function fe(F,W,de,ne){for(var le=0;le<ne&&!(le+de>=W.length||le>=F.length);++le)W[le+de]=F[le];return le}function ge(F){return F!==F}var ce=y("base64-js"),Ie=y("ieee754"),Fe=y("isarray");_.Buffer=r,_.SlowBuffer=g,_.INSPECT_MAX_BYTES=50,r.TYPED_ARRAY_SUPPORT=C.TYPED_ARRAY_SUPPORT!==void 0?C.TYPED_ARRAY_SUPPORT:function(){try{var F=new Uint8Array(1);return F.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},F.foo()===42&&typeof F.subarray=="function"&&F.subarray(1,1).byteLength===0}catch(W){return!1}}(),_.kMaxLength=m(),r.poolSize=8192,r._augment=function(F){return F.__proto__=r.prototype,F},r.from=function(F,W,de){return n(null,F,W,de)},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(F,W,de){return s(null,F,W,de)},r.allocUnsafe=function(F){return u(null,F)},r.allocUnsafeSlow=function(F){return u(null,F)},r.isBuffer=function(F){return!(F==null||!F._isBuffer)},r.compare=function(F,W){if(!r.isBuffer(F)||!r.isBuffer(W))throw new TypeError("Arguments must be Buffers");if(F===W)return 0;for(var de=F.length,ne=W.length,le=0,De=Math.min(de,ne);le<De;++le)if(F[le]!==W[le]){de=F[le],ne=W[le];break}return de<ne?-1:ne<de?1:0},r.isEncoding=function(F){switch(String(F).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(F,W){if(!Fe(F))throw new TypeError('"list" argument must be an Array of Buffers');if(F.length===0)return r.alloc(0);var de;if(W===void 0)for(W=0,de=0;de<F.length;++de)W+=F[de].length;var ne=r.allocUnsafe(W),le=0;for(de=0;de<F.length;++de){var De=F[de];if(!r.isBuffer(De))throw new TypeError('"list" argument must be an Array of Buffers');De.copy(ne,le),le+=De.length}return ne},r.byteLength=p,r.prototype._isBuffer=!0,r.prototype.swap16=function(){var F=this.length;if(F%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var W=0;W<F;W+=2)w(this,W,W+1);return this},r.prototype.swap32=function(){var F=this.length;if(F%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var W=0;W<F;W+=4)w(this,W,W+3),w(this,W+1,W+2);return this},r.prototype.swap64=function(){var F=this.length;if(F%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var W=0;W<F;W+=8)w(this,W,W+7),w(this,W+1,W+6),w(this,W+2,W+5),w(this,W+3,W+4);return this},r.prototype.toString=function(){var F=0|this.length;return F===0?"":arguments.length===0?R(this,0,F):S.apply(this,arguments)},r.prototype.equals=function(F){if(!r.isBuffer(F))throw new TypeError("Argument must be a Buffer");return this===F||r.compare(this,F)===0},r.prototype.inspect=function(){var F="",W=_.INSPECT_MAX_BYTES;return this.length>0&&(F=this.toString("hex",0,W).match(/.{2}/g).join(" "),this.length>W&&(F+=" ... ")),"<Buffer "+F+">"},r.prototype.compare=function(F,W,de,ne,le){if(!r.isBuffer(F))throw new TypeError("Argument must be a Buffer");if(W===void 0&&(W=0),de===void 0&&(de=F?F.length:0),ne===void 0&&(ne=0),le===void 0&&(le=this.length),W<0||de>F.length||ne<0||le>this.length)throw new RangeError("out of range index");if(ne>=le&&W>=de)return 0;if(ne>=le)return-1;if(W>=de)return 1;if(W>>>=0,de>>>=0,ne>>>=0,le>>>=0,this===F)return 0;for(var De=le-ne,Xe=de-W,xt=Math.min(De,Xe),Ke=this.slice(ne,le),ze=F.slice(W,de),yt=0;yt<xt;++yt)if(Ke[yt]!==ze[yt]){De=Ke[yt],Xe=ze[yt];break}return De<Xe?-1:Xe<De?1:0},r.prototype.includes=function(F,W,de){return this.indexOf(F,W,de)!==-1},r.prototype.indexOf=function(F,W,de){return B(this,F,W,de,!0)},r.prototype.lastIndexOf=function(F,W,de){return B(this,F,W,de,!1)},r.prototype.write=function(F,W,de,ne){if(W===void 0)ne="utf8",de=this.length,W=0;else if(de===void 0&&typeof W=="string")ne=W,de=this.length,W=0;else{if(!isFinite(W))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");W|=0,isFinite(de)?(de|=0,ne===void 0&&(ne="utf8")):(ne=de,de=void 0)}var le=this.length-W;if((de===void 0||de>le)&&(de=le),F.length>0&&(de<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 A(this,F,W,de);case"utf8":case"utf-8":return l(this,F,W,de);case"ascii":return i(this,F,W,de);case"latin1":case"binary":return x(this,F,W,de);case"base64":return O(this,F,W,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,F,W,de);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 ke=4096;r.prototype.slice=function(F,W){var de=this.length;F=~~F,W=W===void 0?de:~~W,F<0?(F+=de)<0&&(F=0):F>de&&(F=de),W<0?(W+=de)<0&&(W=0):W>de&&(W=de),W<F&&(W=F);var ne;if(r.TYPED_ARRAY_SUPPORT)ne=this.subarray(F,W),ne.__proto__=r.prototype;else{var le=W-F;ne=new r(le,void 0);for(var De=0;De<le;++De)ne[De]=this[De+F]}return ne},r.prototype.readUIntLE=function(F,W,de){F|=0,W|=0,de||G(F,W,this.length);for(var ne=this[F],le=1,De=0;++De<W&&(le*=256);)ne+=this[F+De]*le;return ne},r.prototype.readUIntBE=function(F,W,de){F|=0,W|=0,de||G(F,W,this.length);for(var ne=this[F+--W],le=1;W>0&&(le*=256);)ne+=this[F+--W]*le;return ne},r.prototype.readUInt8=function(F,W){return W||G(F,1,this.length),this[F]},r.prototype.readUInt16LE=function(F,W){return W||G(F,2,this.length),this[F]|this[F+1]<<8},r.prototype.readUInt16BE=function(F,W){return W||G(F,2,this.length),this[F]<<8|this[F+1]},r.prototype.readUInt32LE=function(F,W){return W||G(F,4,this.length),(this[F]|this[F+1]<<8|this[F+2]<<16)+16777216*this[F+3]},r.prototype.readUInt32BE=function(F,W){return W||G(F,4,this.length),16777216*this[F]+(this[F+1]<<16|this[F+2]<<8|this[F+3])},r.prototype.readIntLE=function(F,W,de){F|=0,W|=0,de||G(F,W,this.length);for(var ne=this[F],le=1,De=0;++De<W&&(le*=256);)ne+=this[F+De]*le;return le*=128,ne>=le&&(ne-=Math.pow(2,8*W)),ne},r.prototype.readIntBE=function(F,W,de){F|=0,W|=0,de||G(F,W,this.length);for(var ne=W,le=1,De=this[F+--ne];ne>0&&(le*=256);)De+=this[F+--ne]*le;return le*=128,De>=le&&(De-=Math.pow(2,8*W)),De},r.prototype.readInt8=function(F,W){return W||G(F,1,this.length),128&this[F]?-1*(255-this[F]+1):this[F]},r.prototype.readInt16LE=function(F,W){W||G(F,2,this.length);var de=this[F]|this[F+1]<<8;return 32768&de?4294901760|de:de},r.prototype.readInt16BE=function(F,W){W||G(F,2,this.length);var de=this[F+1]|this[F]<<8;return 32768&de?4294901760|de:de},r.prototype.readInt32LE=function(F,W){return W||G(F,4,this.length),this[F]|this[F+1]<<8|this[F+2]<<16|this[F+3]<<24},r.prototype.readInt32BE=function(F,W){return W||G(F,4,this.length),this[F]<<24|this[F+1]<<16|this[F+2]<<8|this[F+3]},r.prototype.readFloatLE=function(F,W){return W||G(F,4,this.length),Ie.read(this,F,!0,23,4)},r.prototype.readFloatBE=function(F,W){return W||G(F,4,this.length),Ie.read(this,F,!1,23,4)},r.prototype.readDoubleLE=function(F,W){return W||G(F,8,this.length),Ie.read(this,F,!0,52,8)},r.prototype.readDoubleBE=function(F,W){return W||G(F,8,this.length),Ie.read(this,F,!1,52,8)},r.prototype.writeUIntLE=function(F,W,de,ne){(F=+F,W|=0,de|=0,!ne)&&N(this,F,W,de,Math.pow(2,8*de)-1,0);var le=1,De=0;for(this[W]=255&F;++De<de&&(le*=256);)this[W+De]=F/le&255;return W+de},r.prototype.writeUIntBE=function(F,W,de,ne){(F=+F,W|=0,de|=0,!ne)&&N(this,F,W,de,Math.pow(2,8*de)-1,0);var le=de-1,De=1;for(this[W+le]=255&F;--le>=0&&(De*=256);)this[W+le]=F/De&255;return W+de},r.prototype.writeUInt8=function(F,W,de){return F=+F,W|=0,de||N(this,F,W,1,255,0),r.TYPED_ARRAY_SUPPORT||(F=Math.floor(F)),this[W]=255&F,W+1},r.prototype.writeUInt16LE=function(F,W,de){return F=+F,W|=0,de||N(this,F,W,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[W]=255&F,this[W+1]=F>>>8):Q(this,F,W,!0),W+2},r.prototype.writeUInt16BE=function(F,W,de){return F=+F,W|=0,de||N(this,F,W,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[W]=F>>>8,this[W+1]=255&F):Q(this,F,W,!1),W+2},r.prototype.writeUInt32LE=function(F,W,de){return F=+F,W|=0,de||N(this,F,W,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[W+3]=F>>>24,this[W+2]=F>>>16,this[W+1]=F>>>8,this[W]=255&F):X(this,F,W,!0),W+4},r.prototype.writeUInt32BE=function(F,W,de){return F=+F,W|=0,de||N(this,F,W,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[W]=F>>>24,this[W+1]=F>>>16,this[W+2]=F>>>8,this[W+3]=255&F):X(this,F,W,!1),W+4},r.prototype.writeIntLE=function(F,W,de,ne){if(F=+F,W|=0,!ne){var le=Math.pow(2,8*de-1);N(this,F,W,de,le-1,-le)}var De=0,Xe=1,xt=0;for(this[W]=255&F;++De<de&&(Xe*=256);)F<0&&xt===0&&this[W+De-1]!==0&&(xt=1),this[W+De]=(F/Xe>>0)-xt&255;return W+de},r.prototype.writeIntBE=function(F,W,de,ne){if(F=+F,W|=0,!ne){var le=Math.pow(2,8*de-1);N(this,F,W,de,le-1,-le)}var De=de-1,Xe=1,xt=0;for(this[W+De]=255&F;--De>=0&&(Xe*=256);)F<0&&xt===0&&this[W+De+1]!==0&&(xt=1),this[W+De]=(F/Xe>>0)-xt&255;return W+de},r.prototype.writeInt8=function(F,W,de){return F=+F,W|=0,de||N(this,F,W,1,127,-128),r.TYPED_ARRAY_SUPPORT||(F=Math.floor(F)),F<0&&(F=255+F+1),this[W]=255&F,W+1},r.prototype.writeInt16LE=function(F,W,de){return F=+F,W|=0,de||N(this,F,W,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[W]=255&F,this[W+1]=F>>>8):Q(this,F,W,!0),W+2},r.prototype.writeInt16BE=function(F,W,de){return F=+F,W|=0,de||N(this,F,W,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[W]=F>>>8,this[W+1]=255&F):Q(this,F,W,!1),W+2},r.prototype.writeInt32LE=function(F,W,de){return F=+F,W|=0,de||N(this,F,W,4,2147483647,-2147483648),r.TYPED_ARRAY_SUPPORT?(this[W]=255&F,this[W+1]=F>>>8,this[W+2]=F>>>16,this[W+3]=F>>>24):X(this,F,W,!0),W+4},r.prototype.writeInt32BE=function(F,W,de){return F=+F,W|=0,de||N(this,F,W,4,2147483647,-2147483648),F<0&&(F=4294967295+F+1),r.TYPED_ARRAY_SUPPORT?(this[W]=F>>>24,this[W+1]=F>>>16,this[W+2]=F>>>8,this[W+3]=255&F):X(this,F,W,!1),W+4},r.prototype.writeFloatLE=function(F,W,de){return oe(this,F,W,!0,de)},r.prototype.writeFloatBE=function(F,W,de){return oe(this,F,W,!1,de)},r.prototype.writeDoubleLE=function(F,W,de){return me(this,F,W,!0,de)},r.prototype.writeDoubleBE=function(F,W,de){return me(this,F,W,!1,de)},r.prototype.copy=function(F,W,de,ne){if(de||(de=0),ne||ne===0||(ne=this.length),W>=F.length&&(W=F.length),W||(W=0),ne>0&&ne<de&&(ne=de),ne===de)return 0;if(F.length===0||this.length===0)return 0;if(W<0)throw new RangeError("targetStart out of bounds");if(de<0||de>=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),F.length-W<ne-de&&(ne=F.length-W+de);var le,De=ne-de;if(this===F&&de<W&&W<ne)for(le=De-1;le>=0;--le)F[le+W]=this[le+de];else if(De<1e3||!r.TYPED_ARRAY_SUPPORT)for(le=0;le<De;++le)F[le+W]=this[le+de];else Uint8Array.prototype.set.call(F,this.subarray(de,de+De),W);return De},r.prototype.fill=function(F,W,de,ne){if(typeof F=="string"){if(typeof W=="string"?(ne=W,W=0,de=this.length):typeof de=="string"&&(ne=de,de=this.length),F.length===1){var le=F.charCodeAt(0);le<256&&(F=le)}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 F=="number"&&(F&=255);if(W<0||this.length<W||this.length<de)throw new RangeError("Out of range index");if(de<=W)return this;W>>>=0,de=de===void 0?this.length:de>>>0,F||(F=0);var De;if(typeof F=="number")for(De=W;De<de;++De)this[De]=F;else{var Xe=r.isBuffer(F)?F:Ee(new r(F,ne).toString()),xt=Xe.length;for(De=0;De<de-W;++De)this[De+W]=Xe[De%xt]}return this};var re=/[^+\/0-9A-Za-z-_]/g}).call(this,typeof ue!="undefined"?ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"base64-js":34,ieee754:161,isarray:166}],39:[function(y,E,_){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(y,E,_){"use strict";var C=function(){this.buffer=[],this.fns=[]};C.prototype.push=function(c,r){if(this.fns.length)return this.fns.shift()(null,c);var n={data:c,priority:r},e=m(this.buffer,n,function(s){return s.priority});this.buffer.splice(e,0,n)},C.prototype.next=function(){var c=this;return function(r){if(c.buffer.length)return r(null,c.buffer.pop().data);c.fns.push(r)}};var m=function(c,r,n){r=n(r);for(var e=0,s=c?c.length:e;e<s;){var u=e+s>>>1;n(c[u])<r?e=u+1:s=u}return e};E.exports=C},{}],41:[function(y,E,_){function C(d){var a=this,h=f.call(arguments,1);return new Promise(function(g,p){function S(b){var A;try{A=d.next(b)}catch(l){return p(l)}B(A)}function w(b){var A;try{A=d.throw(b)}catch(l){return p(l)}B(A)}function B(b){if(b.done)return g(b.value);var A=m.call(a,b.value);return A&&e(A)?A.then(S,w):w(new TypeError('You may only yield a function, promise, generator, array, or object, but the following object was passed: "'+String(b.value)+'"'))}if(typeof d=="function"&&(d=d.apply(a,h)),!d||typeof d.next!="function")return g(d);S()})}function m(d){return d&&(e(d)?d:u(d)||s(d)?C.call(this,d):typeof d=="function"?c.call(this,d):Array.isArray(d)?r.call(this,d):o(d)?n.call(this,d):d)}function c(d){var a=this;return new Promise(function(h,g){d.call(a,function(p,S){if(p)return g(p);arguments.length>2&&(S=f.call(arguments,1)),h(S)})})}function r(d){return Promise.all(d.map(m,this))}function n(d){for(var a=new d.constructor,h=Object.keys(d),g=[],p=0;p<h.length;p++){var S=h[p],w=m.call(this,d[S]);w&&e(w)?function(B,b){a[b]=void 0,g.push(B.then(function(A){a[b]=A}))}(w,S):a[S]=d[S]}return Promise.all(g).then(function(){return a})}function e(d){return typeof d.then=="function"}function s(d){return typeof d.next=="function"&&typeof d.throw=="function"}function u(d){var a=d.constructor;return!!a&&(a.name==="GeneratorFunction"||a.displayName==="GeneratorFunction"||s(a.prototype))}function o(d){return Object==d.constructor}var f=Array.prototype.slice;E.exports=C.default=C.co=C,C.wrap=function(d){function a(){return C.call(this,d.apply(this,arguments))}return a.__generatorFunction__=d,a}},{}],42:[function(y,E,_){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(y,E,_){"use strict";function C(r,n){if(!(this instanceof C))return new C(r,n);this.src=r,this._withAccess=n}function m(r,n){return r[n]===void 0&&r.__lookupGetter__(n)===void 0&&r.__lookupSetter__(n)===void 0}var c=Array.prototype.slice;E.exports=C,C.prototype.withAccess=function(r){return this._withAccess=r!==!1,this},C.prototype.pick=function(r){return Array.isArray(r)||(r=c.call(arguments)),r.length&&(this.keys=r),this},C.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(m(r,s)){var u=this.src.__lookupGetter__(s),o=this.src.__lookupSetter__(s);u&&r.__defineGetter__(s,u),o&&r.__defineSetter__(s,o),u||o||(r[s]=this.src[s])}}return r},C.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),o=this.src.__lookupSetter__(s);u&&r.__defineGetter__(s,u),o&&r.__defineSetter__(s,o),u||o||(r[s]=this.src[s])}},C.prototype.override=C.prototype.toCover,C.prototype.and=function(r){var n={};return this.to(n),this.src=r,this.to(n),this.src=n,this}},{}],44:[function(y,E,_){y("../../modules/es6.string.iterator"),y("../../modules/es6.array.from"),E.exports=y("../../modules/_core").Array.from},{"../../modules/_core":65,"../../modules/es6.array.from":133,"../../modules/es6.string.iterator":145}],45:[function(y,E,_){var C=y("../../modules/_core"),m=C.JSON||(C.JSON={stringify:JSON.stringify});E.exports=function(c){return m.stringify.apply(m,arguments)}},{"../../modules/_core":65}],46:[function(y,E,_){y("../../modules/es6.object.assign"),E.exports=y("../../modules/_core").Object.assign},{"../../modules/_core":65,"../../modules/es6.object.assign":136}],47:[function(y,E,_){y("../../modules/es6.object.create");var C=y("../../modules/_core").Object;E.exports=function(m,c){return C.create(m,c)}},{"../../modules/_core":65,"../../modules/es6.object.create":137}],48:[function(y,E,_){y("../../modules/es6.object.define-property");var C=y("../../modules/_core").Object;E.exports=function(m,c,r){return C.defineProperty(m,c,r)}},{"../../modules/_core":65,"../../modules/es6.object.define-property":138}],49:[function(y,E,_){y("../../modules/es6.object.get-own-property-names");var C=y("../../modules/_core").Object;E.exports=function(m){return C.getOwnPropertyNames(m)}},{"../../modules/_core":65,"../../modules/es6.object.get-own-property-names":139}],50:[function(y,E,_){y("../../modules/es6.object.get-prototype-of"),E.exports=y("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":65,"../../modules/es6.object.get-prototype-of":140}],51:[function(y,E,_){y("../../modules/es6.object.keys"),E.exports=y("../../modules/_core").Object.keys},{"../../modules/_core":65,"../../modules/es6.object.keys":141}],52:[function(y,E,_){y("../modules/es6.object.to-string"),y("../modules/es6.string.iterator"),y("../modules/web.dom.iterable"),y("../modules/es6.promise"),y("../modules/es7.promise.finally"),y("../modules/es7.promise.try"),E.exports=y("../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(y,E,_){y("../modules/web.immediate"),E.exports=y("../modules/_core").setImmediate},{"../modules/_core":65,"../modules/web.immediate":152}],54:[function(y,E,_){y("../../modules/es6.string.from-code-point"),E.exports=y("../../modules/_core").String.fromCodePoint},{"../../modules/_core":65,"../../modules/es6.string.from-code-point":144}],55:[function(y,E,_){y("../../modules/es6.function.has-instance"),E.exports=y("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":130,"../../modules/es6.function.has-instance":135}],56:[function(y,E,_){y("../../modules/es6.symbol"),y("../../modules/es6.object.to-string"),y("../../modules/es7.symbol.async-iterator"),y("../../modules/es7.symbol.observable"),E.exports=y("../../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(y,E,_){y("../../modules/es6.string.iterator"),y("../../modules/web.dom.iterable"),E.exports=y("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":130,"../../modules/es6.string.iterator":145,"../../modules/web.dom.iterable":151}],58:[function(y,E,_){E.exports=function(C){if(typeof C!="function")throw TypeError(C+" is not a function!");return C}},{}],59:[function(y,E,_){E.exports=function(){}},{}],60:[function(y,E,_){E.exports=function(C,m,c,r){if(!(C instanceof m)||r!==void 0&&r in C)throw TypeError(c+": incorrect invocation!");return C}},{}],61:[function(y,E,_){var C=y("./_is-object");E.exports=function(m){if(!C(m))throw TypeError(m+" is not an object!");return m}},{"./_is-object":85}],62:[function(y,E,_){var C=y("./_to-iobject"),m=y("./_to-length"),c=y("./_to-absolute-index");E.exports=function(r){return function(n,e,s){var u,o=C(n),f=m(o.length),d=c(s,f);if(r&&e!=e){for(;f>d;)if((u=o[d++])!=u)return!0}else for(;f>d;d++)if((r||d in o)&&o[d]===e)return r||d||0;return!r&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(y,E,_){var C=y("./_cof"),m=y("./_wks")("toStringTag"),c=C(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),m))=="string"?s:c?C(e):(u=C(e))=="Object"&&typeof e.callee=="function"?"Arguments":u}},{"./_cof":64,"./_wks":131}],64:[function(y,E,_){var C={}.toString;E.exports=function(m){return C.call(m).slice(8,-1)}},{}],65:[function(y,E,_){var C=E.exports={version:"2.5.7"};typeof __e=="number"&&(__e=C)},{}],66:[function(y,E,_){"use strict";var C=y("./_object-dp"),m=y("./_property-desc");E.exports=function(c,r,n){r in c?C.f(c,r,m(0,n)):c[r]=n}},{"./_object-dp":98,"./_property-desc":111}],67:[function(y,E,_){var C=y("./_a-function");E.exports=function(m,c,r){if(C(m),c===void 0)return m;switch(r){case 1:return function(n){return m.call(c,n)};case 2:return function(n,e){return m.call(c,n,e)};case 3:return function(n,e,s){return m.call(c,n,e,s)}}return function(){return m.apply(c,arguments)}}},{"./_a-function":58}],68:[function(y,E,_){E.exports=function(C){if(C==null)throw TypeError("Can't call method on "+C);return C}},{}],69:[function(y,E,_){E.exports=!y("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":74}],70:[function(y,E,_){var C=y("./_is-object"),m=y("./_global").document,c=C(m)&&C(m.createElement);E.exports=function(r){return c?m.createElement(r):{}}},{"./_global":76,"./_is-object":85}],71:[function(y,E,_){E.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(y,E,_){var C=y("./_object-keys"),m=y("./_object-gops"),c=y("./_object-pie");E.exports=function(r){var n=C(r),e=m.f;if(e)for(var s,u=e(r),o=c.f,f=0;u.length>f;)o.call(r,s=u[f++])&&n.push(s);return n}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(y,E,_){var C=y("./_global"),m=y("./_core"),c=y("./_ctx"),r=y("./_hide"),n=y("./_has"),e=function(s,u,o){var f,d,a,h=s&e.F,g=s&e.G,p=s&e.S,S=s&e.P,w=s&e.B,B=s&e.W,b=g?m:m[u]||(m[u]={}),A=b.prototype,l=g?C:p?C[u]:(C[u]||{}).prototype;g&&(o=u);for(f in o)(d=!h&&l&&l[f]!==void 0)&&n(b,f)||(a=d?l[f]:o[f],b[f]=g&&typeof l[f]!="function"?o[f]:w&&d?c(a,C):B&&l[f]==a?function(i){var x=function(O,T,D){if(this instanceof i){switch(arguments.length){case 0:return new i;case 1:return new i(O);case 2:return new i(O,T)}return new i(O,T,D)}return i.apply(this,arguments)};return x.prototype=i.prototype,x}(a):S&&typeof a=="function"?c(Function.call,a):a,S&&((b.virtual||(b.virtual={}))[f]=a,s&e.R&&A&&!A[f]&&r(A,f,a)))};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(y,E,_){E.exports=function(C){try{return!!C()}catch(m){return!0}}},{}],75:[function(y,E,_){var C=y("./_ctx"),m=y("./_iter-call"),c=y("./_is-array-iter"),r=y("./_an-object"),n=y("./_to-length"),e=y("./core.get-iterator-method"),s={},u={},_=E.exports=function(o,f,d,a,h){var g,p,S,w,B=h?function(){return o}:e(o),b=C(d,a,f?2:1),A=0;if(typeof B!="function")throw TypeError(o+" is not iterable!");if(c(B)){for(g=n(o.length);g>A;A++)if((w=f?b(r(p=o[A])[0],p[1]):b(o[A]))===s||w===u)return w}else for(S=B.call(o);!(p=S.next()).done;)if((w=m(S,b,p.value,f))===s||w===u)return w};_.BREAK=s,_.RETURN=u},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(y,E,_){var C=E.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=C)},{}],77:[function(y,E,_){var C={}.hasOwnProperty;E.exports=function(m,c){return C.call(m,c)}},{}],78:[function(y,E,_){var C=y("./_object-dp"),m=y("./_property-desc");E.exports=y("./_descriptors")?function(c,r,n){return C.f(c,r,m(1,n))}:function(c,r,n){return c[r]=n,c}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(y,E,_){var C=y("./_global").document;E.exports=C&&C.documentElement},{"./_global":76}],80:[function(y,E,_){E.exports=!y("./_descriptors")&&!y("./_fails")(function(){return Object.defineProperty(y("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":69,"./_dom-create":70,"./_fails":74}],81:[function(y,E,_){E.exports=function(C,m,c){var r=c===void 0;switch(m.length){case 0:return r?C():C.call(c);case 1:return r?C(m[0]):C.call(c,m[0]);case 2:return r?C(m[0],m[1]):C.call(c,m[0],m[1]);case 3:return r?C(m[0],m[1],m[2]):C.call(c,m[0],m[1],m[2]);case 4:return r?C(m[0],m[1],m[2],m[3]):C.call(c,m[0],m[1],m[2],m[3])}return C.apply(c,m)}},{}],82:[function(y,E,_){var C=y("./_cof");E.exports=Object("z").propertyIsEnumerable(0)?Object:function(m){return C(m)=="String"?m.split(""):Object(m)}},{"./_cof":64}],83:[function(y,E,_){var C=y("./_iterators"),m=y("./_wks")("iterator"),c=Array.prototype;E.exports=function(r){return r!==void 0&&(C.Array===r||c[m]===r)}},{"./_iterators":91,"./_wks":131}],84:[function(y,E,_){var C=y("./_cof");E.exports=Array.isArray||function(m){return C(m)=="Array"}},{"./_cof":64}],85:[function(y,E,_){E.exports=function(C){return typeof C=="object"?C!==null:typeof C=="function"}},{}],86:[function(y,E,_){var C=y("./_an-object");E.exports=function(m,c,r,n){try{return n?c(C(r)[0],r[1]):c(r)}catch(s){var e=m.return;throw e!==void 0&&C(e.call(m)),s}}},{"./_an-object":61}],87:[function(y,E,_){"use strict";var C=y("./_object-create"),m=y("./_property-desc"),c=y("./_set-to-string-tag"),r={};y("./_hide")(r,y("./_wks")("iterator"),function(){return this}),E.exports=function(n,e,s){n.prototype=C(r,{next:m(1,s)}),c(n,e+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(y,E,_){"use strict";var C=y("./_library"),m=y("./_export"),c=y("./_redefine"),r=y("./_hide"),n=y("./_iterators"),e=y("./_iter-create"),s=y("./_set-to-string-tag"),u=y("./_object-gpo"),o=y("./_wks")("iterator"),f=!([].keys&&"next"in[].keys()),d=function(){return this};E.exports=function(a,h,g,p,S,w,B){e(g,h,p);var b,A,l,i=function(U){if(!f&&U in D)return D[U];switch(U){case"keys":case"values":return function(){return new g(this,U)}}return function(){return new g(this,U)}},x=h+" Iterator",O=S=="values",T=!1,D=a.prototype,R=D[o]||D["@@iterator"]||S&&D[S],k=R||i(S),H=S?O?i("entries"):k:void 0,J=h=="Array"&&D.entries||R;if(J&&(l=u(J.call(new a)))!==Object.prototype&&l.next&&(s(l,x,!0),C||typeof l[o]=="function"||r(l,o,d)),O&&R&&R.name!=="values"&&(T=!0,k=function(){return R.call(this)}),C&&!B||!f&&!T&&D[o]||r(D,o,k),n[h]=k,n[x]=d,S)if(b={values:O?k:i("values"),keys:w?k:i("keys"),entries:H},B)for(A in b)A in D||c(D,A,b[A]);else m(m.P+m.F*(f||T),h,b);return b}},{"./_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(y,E,_){var C=y("./_wks")("iterator"),m=!1;try{var c=[7][C]();c.return=function(){m=!0},Array.from(c,function(){throw 2})}catch(r){}E.exports=function(r,n){if(!n&&!m)return!1;var e=!1;try{var s=[7],u=s[C]();u.next=function(){return{done:e=!0}},s[C]=function(){return u},r(s)}catch(o){}return e}},{"./_wks":131}],90:[function(y,E,_){E.exports=function(C,m){return{value:m,done:!!C}}},{}],91:[function(y,E,_){E.exports={}},{}],92:[function(y,E,_){E.exports=!0},{}],93:[function(y,E,_){var C=y("./_uid")("meta"),m=y("./_is-object"),c=y("./_has"),r=y("./_object-dp").f,n=0,e=Object.isExtensible||function(){return!0},s=!y("./_fails")(function(){return e(Object.preventExtensions({}))}),u=function(h){r(h,C,{value:{i:"O"+ ++n,w:{}}})},o=function(h,g){if(!m(h))return typeof h=="symbol"?h:(typeof h=="string"?"S":"P")+h;if(!c(h,C)){if(!e(h))return"F";if(!g)return"E";u(h)}return h[C].i},f=function(h,g){if(!c(h,C)){if(!e(h))return!0;if(!g)return!1;u(h)}return h[C].w},d=function(h){return s&&a.NEED&&e(h)&&!c(h,C)&&u(h),h},a=E.exports={KEY:C,NEED:!1,fastKey:o,getWeak:f,onFreeze:d}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(y,E,_){var C=y("./_global"),m=y("./_task").set,c=C.MutationObserver||C.WebKitMutationObserver,r=C.process,n=C.Promise,e=y("./_cof")(r)=="process";E.exports=function(){var s,u,o,f=function(){var g,p;for(e&&(g=r.domain)&&g.exit();s;){p=s.fn,s=s.next;try{p()}catch(S){throw s?o():u=void 0,S}}u=void 0,g&&g.enter()};if(e)o=function(){r.nextTick(f)};else if(!c||C.navigator&&C.navigator.standalone)if(n&&n.resolve){var d=n.resolve(void 0);o=function(){d.then(f)}}else o=function(){m.call(C,f)};else{var a=!0,h=document.createTextNode("");new c(f).observe(h,{characterData:!0}),o=function(){h.data=a=!a}}return function(g){var p={fn:g,next:void 0};u&&(u.next=p),s||(s=p,o()),u=p}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(y,E,_){"use strict";function C(c){var r,n;this.promise=new c(function(e,s){if(r!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");r=e,n=s}),this.resolve=m(r),this.reject=m(n)}var m=y("./_a-function");E.exports.f=function(c){return new C(c)}},{"./_a-function":58}],96:[function(y,E,_){"use strict";var C=y("./_object-keys"),m=y("./_object-gops"),c=y("./_object-pie"),r=y("./_to-object"),n=y("./_iobject"),e=Object.assign;E.exports=!e||y("./_fails")(function(){var s={},u={},o=Symbol(),f="abcdefghijklmnopqrst";return s[o]=7,f.split("").forEach(function(d){u[d]=d}),e({},s)[o]!=7||Object.keys(e({},u)).join("")!=f})?function(s,u){for(var o=r(s),f=arguments.length,d=1,a=m.f,h=c.f;f>d;)for(var g,p=n(arguments[d++]),S=a?C(p).concat(a(p)):C(p),w=S.length,B=0;w>B;)h.call(p,g=S[B++])&&(o[g]=p[g]);return o}:e},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(y,E,_){var C=y("./_an-object"),m=y("./_object-dps"),c=y("./_enum-bug-keys"),r=y("./_shared-key")("IE_PROTO"),n=function(){},e=function(){var s,u=y("./_dom-create")("iframe"),o=c.length;for(u.style.display="none",y("./_html").appendChild(u),u.src="javascript:",s=u.contentWindow.document,s.open(),s.write("<script>document.F=Object</script>"),s.close(),e=s.F;o--;)delete e.prototype[c[o]];return e()};E.exports=Object.create||function(s,u){var o;return s!==null?(n.prototype=C(s),o=new n,n.prototype=null,o[r]=s):o=e(),u===void 0?o:m(o,u)}},{"./_an-object":61,"./_dom-create":70,"./_enum-bug-keys":71,"./_html":79,"./_object-dps":99,"./_shared-key":116}],98:[function(y,E,_){var C=y("./_an-object"),m=y("./_ie8-dom-define"),c=y("./_to-primitive"),r=Object.defineProperty;_.f=y("./_descriptors")?Object.defineProperty:function(n,e,s){if(C(n),e=c(e,!0),C(s),m)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(y,E,_){var C=y("./_object-dp"),m=y("./_an-object"),c=y("./_object-keys");E.exports=y("./_descriptors")?Object.defineProperties:function(r,n){m(r);for(var e,s=c(n),u=s.length,o=0;u>o;)C.f(r,e=s[o++],n[e]);return r}},{"./_an-object":61,"./_descriptors":69,"./_object-dp":98,"./_object-keys":106}],100:[function(y,E,_){var C=y("./_object-pie"),m=y("./_property-desc"),c=y("./_to-iobject"),r=y("./_to-primitive"),n=y("./_has"),e=y("./_ie8-dom-define"),s=Object.getOwnPropertyDescriptor;_.f=y("./_descriptors")?s:function(u,o){if(u=c(u),o=r(o,!0),e)try{return s(u,o)}catch(f){}if(n(u,o))return m(!C.f.call(u,o),u[o])}},{"./_descriptors":69,"./_has":77,"./_ie8-dom-define":80,"./_object-pie":107,"./_property-desc":111,"./_to-iobject":123,"./_to-primitive":126}],101:[function(y,E,_){var C=y("./_to-iobject"),m=y("./_object-gopn").f,c={}.toString,r=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],n=function(e){try{return m(e)}catch(s){return r.slice()}};E.exports.f=function(e){return r&&c.call(e)=="[object Window]"?n(e):m(C(e))}},{"./_object-gopn":102,"./_to-iobject":123}],102:[function(y,E,_){var C=y("./_object-keys-internal"),m=y("./_enum-bug-keys").concat("length","prototype");_.f=Object.getOwnPropertyNames||function(c){return C(c,m)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],103:[function(y,E,_){_.f=Object.getOwnPropertySymbols},{}],104:[function(y,E,_){var C=y("./_has"),m=y("./_to-object"),c=y("./_shared-key")("IE_PROTO"),r=Object.prototype;E.exports=Object.getPrototypeOf||function(n){return n=m(n),C(n,c)?n[c]: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(y,E,_){var C=y("./_has"),m=y("./_to-iobject"),c=y("./_array-includes")(!1),r=y("./_shared-key")("IE_PROTO");E.exports=function(n,e){var s,u=m(n),o=0,f=[];for(s in u)s!=r&&C(u,s)&&f.push(s);for(;e.length>o;)C(u,s=e[o++])&&(~c(f,s)||f.push(s));return f}},{"./_array-includes":62,"./_has":77,"./_shared-key":116,"./_to-iobject":123}],106:[function(y,E,_){var C=y("./_object-keys-internal"),m=y("./_enum-bug-keys");E.exports=Object.keys||function(c){return C(c,m)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],107:[function(y,E,_){_.f={}.propertyIsEnumerable},{}],108:[function(y,E,_){var C=y("./_export"),m=y("./_core"),c=y("./_fails");E.exports=function(r,n){var e=(m.Object||{})[r]||Object[r],s={};s[r]=n(e),C(C.S+C.F*c(function(){e(1)}),"Object",s)}},{"./_core":65,"./_export":73,"./_fails":74}],109:[function(y,E,_){E.exports=function(C){try{return{e:!1,v:C()}}catch(m){return{e:!0,v:m}}}},{}],110:[function(y,E,_){var C=y("./_an-object"),m=y("./_is-object"),c=y("./_new-promise-capability");E.exports=function(r,n){if(C(r),m(n)&&n.constructor===r)return n;var e=c.f(r);return(0,e.resolve)(n),e.promise}},{"./_an-object":61,"./_is-object":85,"./_new-promise-capability":95}],111:[function(y,E,_){E.exports=function(C,m){return{enumerable:!(1&C),configurable:!(2&C),writable:!(4&C),value:m}}},{}],112:[function(y,E,_){var C=y("./_hide");E.exports=function(m,c,r){for(var n in c)r&&m[n]?m[n]=c[n]:C(m,n,c[n]);return m}},{"./_hide":78}],113:[function(y,E,_){E.exports=y("./_hide")},{"./_hide":78}],114:[function(y,E,_){"use strict";var C=y("./_global"),m=y("./_core"),c=y("./_object-dp"),r=y("./_descriptors"),n=y("./_wks")("species");E.exports=function(e){var s=typeof m[e]=="function"?m[e]:C[e];r&&s&&!s[n]&&c.f(s,n,{configurable:!0,get:function(){return this}})}},{"./_core":65,"./_descriptors":69,"./_global":76,"./_object-dp":98,"./_wks":131}],115:[function(y,E,_){var C=y("./_object-dp").f,m=y("./_has"),c=y("./_wks")("toStringTag");E.exports=function(r,n,e){r&&!m(r=e?r:r.prototype,c)&&C(r,c,{configurable:!0,value:n})}},{"./_has":77,"./_object-dp":98,"./_wks":131}],116:[function(y,E,_){var C=y("./_shared")("keys"),m=y("./_uid");E.exports=function(c){return C[c]||(C[c]=m(c))}},{"./_shared":117,"./_uid":127}],117:[function(y,E,_){var C=y("./_core"),m=y("./_global"),c=m["__core-js_shared__"]||(m["__core-js_shared__"]={});(E.exports=function(r,n){return c[r]||(c[r]=n!==void 0?n:{})})("versions",[]).push({version:C.version,mode:y("./_library")?"pure":"global",copyright:"\u6F0F 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":65,"./_global":76,"./_library":92}],118:[function(y,E,_){var C=y("./_an-object"),m=y("./_a-function"),c=y("./_wks")("species");E.exports=function(r,n){var e,s=C(r).constructor;return s===void 0||(e=C(s)[c])==null?n:m(e)}},{"./_a-function":58,"./_an-object":61,"./_wks":131}],119:[function(y,E,_){var C=y("./_to-integer"),m=y("./_defined");E.exports=function(c){return function(r,n){var e,s,u=String(m(r)),o=C(n),f=u.length;return o<0||o>=f?c?"":void 0:(e=u.charCodeAt(o),e<55296||e>56319||o+1===f||(s=u.charCodeAt(o+1))<56320||s>57343?c?u.charAt(o):e:c?u.slice(o,o+2):s-56320+(e-55296<<10)+65536)}}},{"./_defined":68,"./_to-integer":122}],120:[function(y,E,_){var C,m,c,r=y("./_ctx"),n=y("./_invoke"),e=y("./_html"),s=y("./_dom-create"),u=y("./_global"),o=u.process,f=u.setImmediate,d=u.clearImmediate,a=u.MessageChannel,h=u.Dispatch,g=0,p={},S=function(){var B=+this;if(p.hasOwnProperty(B)){var b=p[B];delete p[B],b()}},w=function(B){S.call(B.data)};f&&d||(f=function(B){for(var b=[],A=1;arguments.length>A;)b.push(arguments[A++]);return p[++g]=function(){n(typeof B=="function"?B:Function(B),b)},C(g),g},d=function(B){delete p[B]},y("./_cof")(o)=="process"?C=function(B){o.nextTick(r(S,B,1))}:h&&h.now?C=function(B){h.now(r(S,B,1))}:a?(m=new a,c=m.port2,m.port1.onmessage=w,C=r(c.postMessage,c,1)):u.addEventListener&&typeof postMessage=="function"&&!u.importScripts?(C=function(B){u.postMessage(B+"","*")},u.addEventListener("message",w,!1)):C="onreadystatechange"in s("script")?function(B){e.appendChild(s("script")).onreadystatechange=function(){e.removeChild(this),S.call(B)}}:function(B){setTimeout(r(S,B,1),0)}),E.exports={set:f,clear:d}},{"./_cof":64,"./_ctx":67,"./_dom-create":70,"./_global":76,"./_html":79,"./_invoke":81}],121:[function(y,E,_){var C=y("./_to-integer"),m=Math.max,c=Math.min;E.exports=function(r,n){return r=C(r),r<0?m(r+n,0):c(r,n)}},{"./_to-integer":122}],122:[function(y,E,_){var C=Math.ceil,m=Math.floor;E.exports=function(c){return isNaN(c=+c)?0:(c>0?m:C)(c)}},{}],123:[function(y,E,_){var C=y("./_iobject"),m=y("./_defined");E.exports=function(c){return C(m(c))}},{"./_defined":68,"./_iobject":82}],124:[function(y,E,_){var C=y("./_to-integer"),m=Math.min;E.exports=function(c){return c>0?m(C(c),9007199254740991):0}},{"./_to-integer":122}],125:[function(y,E,_){var C=y("./_defined");E.exports=function(m){return Object(C(m))}},{"./_defined":68}],126:[function(y,E,_){var C=y("./_is-object");E.exports=function(m,c){if(!C(m))return m;var r,n;if(c&&typeof(r=m.toString)=="function"&&!C(n=r.call(m)))return n;if(typeof(r=m.valueOf)=="function"&&!C(n=r.call(m)))return n;if(!c&&typeof(r=m.toString)=="function"&&!C(n=r.call(m)))return n;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":85}],127:[function(y,E,_){var C=0,m=Math.random();E.exports=function(c){return"Symbol(".concat(c===void 0?"":c,")_",(++C+m).toString(36))}},{}],128:[function(y,E,_){var C=y("./_global"),m=C.navigator;E.exports=m&&m.userAgent||""},{"./_global":76}],129:[function(y,E,_){var C=y("./_global"),m=y("./_core"),c=y("./_library"),r=y("./_wks-ext"),n=y("./_object-dp").f;E.exports=function(e){var s=m.Symbol||(m.Symbol=c?{}:C.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(y,E,_){_.f=y("./_wks")},{"./_wks":131}],131:[function(y,E,_){var C=y("./_shared")("wks"),m=y("./_uid"),c=y("./_global").Symbol,r=typeof c=="function";(E.exports=function(n){return C[n]||(C[n]=r&&c[n]||(r?c:m)("Symbol."+n))}).store=C},{"./_global":76,"./_shared":117,"./_uid":127}],132:[function(y,E,_){var C=y("./_classof"),m=y("./_wks")("iterator"),c=y("./_iterators");E.exports=y("./_core").getIteratorMethod=function(r){if(r!=null)return r[m]||r["@@iterator"]||c[C(r)]}},{"./_classof":63,"./_core":65,"./_iterators":91,"./_wks":131}],133:[function(y,E,_){"use strict";var C=y("./_ctx"),m=y("./_export"),c=y("./_to-object"),r=y("./_iter-call"),n=y("./_is-array-iter"),e=y("./_to-length"),s=y("./_create-property"),u=y("./core.get-iterator-method");m(m.S+m.F*!y("./_iter-detect")(function(o){Array.from(o)}),"Array",{from:function(o){var f,d,a,h,g=c(o),p=typeof this=="function"?this:Array,S=arguments.length,w=S>1?arguments[1]:void 0,B=w!==void 0,b=0,A=u(g);if(B&&(w=C(w,S>2?arguments[2]:void 0,2)),A==null||p==Array&&n(A))for(f=e(g.length),d=new p(f);f>b;b++)s(d,b,B?w(g[b],b):g[b]);else for(h=A.call(g),d=new p;!(a=h.next()).done;b++)s(d,b,B?r(h,w,[a.value,b],!0):a.value);return d.length=b,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(y,E,_){"use strict";var C=y("./_add-to-unscopables"),m=y("./_iter-step"),c=y("./_iterators"),r=y("./_to-iobject");E.exports=y("./_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,m(1)):e=="keys"?m(0,s):e=="values"?m(0,n[s]):m(0,[s,n[s]])},"values"),c.Arguments=c.Array,C("keys"),C("values"),C("entries")},{"./_add-to-unscopables":59,"./_iter-define":88,"./_iter-step":90,"./_iterators":91,"./_to-iobject":123}],135:[function(y,E,_){"use strict";var C=y("./_is-object"),m=y("./_object-gpo"),c=y("./_wks")("hasInstance"),r=Function.prototype;c in r||y("./_object-dp").f(r,c,{value:function(n){if(typeof this!="function"||!C(n))return!1;if(!C(this.prototype))return n instanceof this;for(;n=m(n);)if(this.prototype===n)return!0;return!1}})},{"./_is-object":85,"./_object-dp":98,"./_object-gpo":104,"./_wks":131}],136:[function(y,E,_){var C=y("./_export");C(C.S+C.F,"Object",{assign:y("./_object-assign")})},{"./_export":73,"./_object-assign":96}],137:[function(y,E,_){var C=y("./_export");C(C.S,"Object",{create:y("./_object-create")})},{"./_export":73,"./_object-create":97}],138:[function(y,E,_){var C=y("./_export");C(C.S+C.F*!y("./_descriptors"),"Object",{defineProperty:y("./_object-dp").f})},{"./_descriptors":69,"./_export":73,"./_object-dp":98}],139:[function(y,E,_){y("./_object-sap")("getOwnPropertyNames",function(){return y("./_object-gopn-ext").f})},{"./_object-gopn-ext":101,"./_object-sap":108}],140:[function(y,E,_){var C=y("./_to-object"),m=y("./_object-gpo");y("./_object-sap")("getPrototypeOf",function(){return function(c){return m(C(c))}})},{"./_object-gpo":104,"./_object-sap":108,"./_to-object":125}],141:[function(y,E,_){var C=y("./_to-object"),m=y("./_object-keys");y("./_object-sap")("keys",function(){return function(c){return m(C(c))}})},{"./_object-keys":106,"./_object-sap":108,"./_to-object":125}],142:[function(y,E,_){arguments[4][36][0].apply(_,arguments)},{dup:36}],143:[function(y,E,_){"use strict";var C,m,c,r,n=y("./_library"),e=y("./_global"),s=y("./_ctx"),u=y("./_classof"),o=y("./_export"),f=y("./_is-object"),d=y("./_a-function"),a=y("./_an-instance"),h=y("./_for-of"),g=y("./_species-constructor"),p=y("./_task").set,S=y("./_microtask")(),w=y("./_new-promise-capability"),B=y("./_perform"),b=y("./_user-agent"),A=y("./_promise-resolve"),l=e.TypeError,i=e.process,x=i&&i.versions,O=x&&x.v8||"",T=e.Promise,D=u(i)=="process",R=function(){},k=m=w.f,H=!!function(){try{var te=T.resolve(1),oe=(te.constructor={})[y("./_wks")("species")]=function(me){me(R,R)};return(D||typeof PromiseRejectionEvent=="function")&&te.then(R)instanceof oe&&O.indexOf("6.6")!==0&&b.indexOf("Chrome/66")===-1}catch(me){}}(),J=function(te){var oe;return!(!f(te)||typeof(oe=te.then)!="function")&&oe},U=function(te,oe){if(!te._n){te._n=!0;var me=te._c;S(function(){for(var se=te._v,_e=te._s==1,Ae=0;me.length>Ae;)!function(Ee){var pe,he,ie,fe=_e?Ee.ok:Ee.fail,ge=Ee.resolve,ce=Ee.reject,Ie=Ee.domain;try{fe?(_e||(te._h==2&&N(te),te._h=1),fe===!0?pe=se:(Ie&&Ie.enter(),pe=fe(se),Ie&&(Ie.exit(),ie=!0)),pe===Ee.promise?ce(l("Promise-chain cycle")):(he=J(pe))?he.call(pe,ge,ce):ge(pe)):ce(se)}catch(Fe){Ie&&!ie&&Ie.exit(),ce(Fe)}}(me[Ae++]);te._c=[],te._n=!1,oe&&!te._h&&K(te)})}},K=function(te){p.call(e,function(){var oe,me,se,_e=te._v,Ae=G(te);if(Ae&&(oe=B(function(){D?i.emit("unhandledRejection",_e,te):(me=e.onunhandledrejection)?me({promise:te,reason:_e}):(se=e.console)&&se.error&&se.error("Unhandled promise rejection",_e)}),te._h=D||G(te)?2:1),te._a=void 0,Ae&&oe.e)throw oe.v})},G=function(te){return te._h!==1&&(te._a||te._c).length===0},N=function(te){p.call(e,function(){var oe;D?i.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()),U(oe,!0))},X=function(te){var oe,me=this;if(!me._d){me._d=!0,me=me._w||me;try{if(me===te)throw l("Promise can't be resolved itself");(oe=J(te))?S(function(){var se={_w:me,_d:!1};try{oe.call(te,s(X,se,1),s(Q,se,1))}catch(_e){Q.call(se,_e)}}):(me._v=te,me._s=1,U(me,!1))}catch(se){Q.call({_w:me,_d:!1},se)}}};H||(T=function(te){a(this,T,"Promise","_h"),d(te),C.call(this);try{te(s(X,this,1),s(Q,this,1))}catch(oe){Q.call(this,oe)}},C=function(te){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},C.prototype=y("./_redefine-all")(T.prototype,{then:function(te,oe){var me=k(g(this,T));return me.ok=typeof te!="function"||te,me.fail=typeof oe=="function"&&oe,me.domain=D?i.domain:void 0,this._c.push(me),this._a&&this._a.push(me),this._s&&U(this,!1),me.promise},catch:function(te){return this.then(void 0,te)}}),c=function(){var te=new C;this.promise=te,this.resolve=s(X,te,1),this.reject=s(Q,te,1)},w.f=k=function(te){return te===T||te===r?new c(te):m(te)}),o(o.G+o.W+o.F*!H,{Promise:T}),y("./_set-to-string-tag")(T,"Promise"),y("./_set-species")("Promise"),r=y("./_core").Promise,o(o.S+o.F*!H,"Promise",{reject:function(te){var oe=k(this);return(0,oe.reject)(te),oe.promise}}),o(o.S+o.F*(n||!H),"Promise",{resolve:function(te){return A(n&&this===r?T:this,te)}}),o(o.S+o.F*!(H&&y("./_iter-detect")(function(te){T.all(te).catch(R)})),"Promise",{all:function(te){var oe=this,me=k(oe),se=me.resolve,_e=me.reject,Ae=B(function(){var Ee=[],pe=0,he=1;h(te,!1,function(ie){var fe=pe++,ge=!1;Ee.push(void 0),he++,oe.resolve(ie).then(function(ce){ge||(ge=!0,Ee[fe]=ce,--he||se(Ee))},_e)}),--he||se(Ee)});return Ae.e&&_e(Ae.v),me.promise},race:function(te){var oe=this,me=k(oe),se=me.reject,_e=B(function(){h(te,!1,function(Ae){oe.resolve(Ae).then(me.resolve,se)})});return _e.e&&se(_e.v),me.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(y,E,_){var C=y("./_export"),m=y("./_to-absolute-index"),c=String.fromCharCode,r=String.fromCodePoint;C(C.S+C.F*(!!r&&r.length!=1),"String",{fromCodePoint:function(n){for(var e,s=[],u=arguments.length,o=0;u>o;){if(e=+arguments[o++],m(e,1114111)!==e)throw RangeError(e+" is not a valid code point");s.push(e<65536?c(e):c(55296+((e-=65536)>>10),e%1024+56320))}return s.join("")}})},{"./_export":73,"./_to-absolute-index":121}],145:[function(y,E,_){"use strict";var C=y("./_string-at")(!0);y("./_iter-define")(String,"String",function(m){this._t=String(m),this._i=0},function(){var m,c=this._t,r=this._i;return r>=c.length?{value:void 0,done:!0}:(m=C(c,r),this._i+=m.length,{value:m,done:!1})})},{"./_iter-define":88,"./_string-at":119}],146:[function(y,E,_){"use strict";var C=y("./_global"),m=y("./_has"),c=y("./_descriptors"),r=y("./_export"),n=y("./_redefine"),e=y("./_meta").KEY,s=y("./_fails"),u=y("./_shared"),o=y("./_set-to-string-tag"),f=y("./_uid"),d=y("./_wks"),a=y("./_wks-ext"),h=y("./_wks-define"),g=y("./_enum-keys"),p=y("./_is-array"),S=y("./_an-object"),w=y("./_is-object"),B=y("./_to-iobject"),b=y("./_to-primitive"),A=y("./_property-desc"),l=y("./_object-create"),i=y("./_object-gopn-ext"),x=y("./_object-gopd"),O=y("./_object-dp"),T=y("./_object-keys"),D=x.f,R=O.f,k=i.f,H=C.Symbol,J=C.JSON,U=J&&J.stringify,K=d("_hidden"),G=d("toPrimitive"),N={}.propertyIsEnumerable,Q=u("symbol-registry"),X=u("symbols"),te=u("op-symbols"),oe=Object.prototype,me=typeof H=="function",se=C.QObject,_e=!se||!se.prototype||!se.prototype.findChild,Ae=c&&s(function(){return l(R({},"a",{get:function(){return R(this,"a",{value:7}).a}})).a!=7})?function(de,ne,le){var De=D(oe,ne);De&&delete oe[ne],R(de,ne,le),De&&de!==oe&&R(oe,ne,De)}:R,Ee=function(de){var ne=X[de]=l(H.prototype);return ne._k=de,ne},pe=me&&typeof H.iterator=="symbol"?function(de){return typeof de=="symbol"}:function(de){return de instanceof H},he=function(de,ne,le){return de===oe&&he(te,ne,le),S(de),ne=b(ne,!0),S(le),m(X,ne)?(le.enumerable?(m(de,K)&&de[K][ne]&&(de[K][ne]=!1),le=l(le,{enumerable:A(0,!1)})):(m(de,K)||R(de,K,A(1,{})),de[K][ne]=!0),Ae(de,ne,le)):R(de,ne,le)},ie=function(de,ne){S(de);for(var le,De=g(ne=B(ne)),Xe=0,xt=De.length;xt>Xe;)he(de,le=De[Xe++],ne[le]);return de},fe=function(de,ne){return ne===void 0?l(de):ie(l(de),ne)},ge=function(de){var ne=N.call(this,de=b(de,!0));return!(this===oe&&m(X,de)&&!m(te,de))&&(!(ne||!m(this,de)||!m(X,de)||m(this,K)&&this[K][de])||ne)},ce=function(de,ne){if(de=B(de),ne=b(ne,!0),de!==oe||!m(X,ne)||m(te,ne)){var le=D(de,ne);return!le||!m(X,ne)||m(de,K)&&de[K][ne]||(le.enumerable=!0),le}},Ie=function(de){for(var ne,le=k(B(de)),De=[],Xe=0;le.length>Xe;)m(X,ne=le[Xe++])||ne==K||ne==e||De.push(ne);return De},Fe=function(de){for(var ne,le=de===oe,De=k(le?te:B(de)),Xe=[],xt=0;De.length>xt;)!m(X,ne=De[xt++])||le&&!m(oe,ne)||Xe.push(X[ne]);return Xe};me||(H=function(){if(this instanceof H)throw TypeError("Symbol is not a constructor!");var de=f(arguments.length>0?arguments[0]:void 0),ne=function(le){this===oe&&ne.call(te,le),m(this,K)&&m(this[K],de)&&(this[K][de]=!1),Ae(this,de,A(1,le))};return c&&_e&&Ae(oe,de,{configurable:!0,set:ne}),Ee(de)},n(H.prototype,"toString",function(){return this._k}),x.f=ce,O.f=he,y("./_object-gopn").f=i.f=Ie,y("./_object-pie").f=ge,y("./_object-gops").f=Fe,c&&!y("./_library")&&n(oe,"propertyIsEnumerable",ge,!0),a.f=function(de){return Ee(d(de))}),r(r.G+r.W+r.F*!me,{Symbol:H});for(var ke="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ke.length>re;)d(ke[re++]);for(var F=T(d.store),W=0;F.length>W;)h(F[W++]);r(r.S+r.F*!me,"Symbol",{for:function(de){return m(Q,de+="")?Q[de]:Q[de]=H(de)},keyFor:function(de){if(!pe(de))throw TypeError(de+" is not a symbol!");for(var ne in Q)if(Q[ne]===de)return ne},useSetter:function(){_e=!0},useSimple:function(){_e=!1}}),r(r.S+r.F*!me,"Object",{create:fe,defineProperty:he,defineProperties:ie,getOwnPropertyDescriptor:ce,getOwnPropertyNames:Ie,getOwnPropertySymbols:Fe}),J&&r(r.S+r.F*(!me||s(function(){var de=H();return U([de])!="[null]"||U({a:de})!="{}"||U(Object(de))!="{}"})),"JSON",{stringify:function(de){for(var ne,le,De=[de],Xe=1;arguments.length>Xe;)De.push(arguments[Xe++]);if(le=ne=De[1],(w(ne)||de!==void 0)&&!pe(de))return p(ne)||(ne=function(xt,Ke){if(typeof le=="function"&&(Ke=le.call(this,xt,Ke)),!pe(Ke))return Ke}),De[1]=ne,U.apply(J,De)}}),H.prototype[G]||y("./_hide")(H.prototype,G,H.prototype.valueOf),o(H,"Symbol"),o(Math,"Math",!0),o(C.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(y,E,_){"use strict";var C=y("./_export"),m=y("./_core"),c=y("./_global"),r=y("./_species-constructor"),n=y("./_promise-resolve");C(C.P+C.R,"Promise",{finally:function(e){var s=r(this,m.Promise||c.Promise),u=typeof e=="function";return this.then(u?function(o){return n(s,e()).then(function(){return o})}:e,u?function(o){return n(s,e()).then(function(){throw o})}:e)}})},{"./_core":65,"./_export":73,"./_global":76,"./_promise-resolve":110,"./_species-constructor":118}],148:[function(y,E,_){"use strict";var C=y("./_export"),m=y("./_new-promise-capability"),c=y("./_perform");C(C.S,"Promise",{try:function(r){var n=m.f(this),e=c(r);return(e.e?n.reject:n.resolve)(e.v),n.promise}})},{"./_export":73,"./_new-promise-capability":95,"./_perform":109}],149:[function(y,E,_){y("./_wks-define")("asyncIterator")},{"./_wks-define":129}],150:[function(y,E,_){y("./_wks-define")("observable")},{"./_wks-define":129}],151:[function(y,E,_){y("./es6.array.iterator");for(var C=y("./_global"),m=y("./_hide"),c=y("./_iterators"),r=y("./_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=C[s],o=u&&u.prototype;o&&!o[r]&&m(o,r,s),c[s]=c.Array}},{"./_global":76,"./_hide":78,"./_iterators":91,"./_wks":131,"./es6.array.iterator":134}],152:[function(y,E,_){var C=y("./_export"),m=y("./_task");C(C.G+C.B,{setImmediate:m.set,clearImmediate:m.clear})},{"./_export":73,"./_task":120}],153:[function(y,E,_){(function(C){"use strict";function m(b){return Array.isArray?Array.isArray(b):S(b)==="[object Array]"}function c(b){return typeof b=="boolean"}function r(b){return b===null}function n(b){return b==null}function e(b){return typeof b=="number"}function s(b){return typeof b=="string"}function u(b){return(b===void 0?"undefined":(0,B.default)(b))==="symbol"}function o(b){return b===void 0}function f(b){return S(b)==="[object RegExp]"}function d(b){return(b===void 0?"undefined":(0,B.default)(b))==="object"&&b!==null}function a(b){return S(b)==="[object Date]"}function h(b){return S(b)==="[object Error]"||b instanceof Error}function g(b){return typeof b=="function"}function p(b){return b===null||typeof b=="boolean"||typeof b=="number"||typeof b=="string"||(b===void 0?"undefined":(0,B.default)(b))==="symbol"||b===void 0}function S(b){return Object.prototype.toString.call(b)}var w=y("babel-runtime/helpers/typeof"),B=function(b){return b&&b.__esModule?b:{default:b}}(w);_.isArray=m,_.isBoolean=c,_.isNull=r,_.isNullOrUndefined=n,_.isNumber=e,_.isString=s,_.isSymbol=u,_.isUndefined=o,_.isRegExp=f,_.isObject=d,_.isDate=a,_.isError=h,_.isFunction=g,_.isPrimitive=p,_.isBuffer=C.isBuffer}).call(this,{isBuffer:y("../../is-buffer/index.js")})},{"../../is-buffer/index.js":163,"babel-runtime/helpers/typeof":32}],154:[function(y,E,_){"use strict";var C=y("babel-runtime/helpers/typeof"),m=function(c){return c&&c.__esModule?c:{default:c}}(C);!function(c){function r(o,f){for(o=String(o),f=f||2;o.length<f;)o="0"+o;return o}function n(o){var f=new Date(o.getFullYear(),o.getMonth(),o.getDate());f.setDate(f.getDate()-(f.getDay()+6)%7+3);var d=new Date(f.getFullYear(),0,4);d.setDate(d.getDate()-(d.getDay()+6)%7+3);var a=f.getTimezoneOffset()-d.getTimezoneOffset();f.setHours(f.getHours()-a);var h=(f-d)/6048e5;return 1+Math.floor(h)}function e(o){var f=o.getDay();return f===0&&(f=7),f}function s(o){return o===null?"null":o===void 0?"undefined":(o===void 0?"undefined":(0,m.default)(o))!=="object"?o===void 0?"undefined":(0,m.default)(o):Array.isArray(o)?"array":{}.toString.call(o).slice(8,-1).toLowerCase()}var u=function(){var o=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,f=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,d=/[^-+\dA-Z]/g;return function(a,h,g,p){if(arguments.length!==1||s(a)!=="string"||/\d/.test(a)||(h=a,a=void 0),a=a||new Date,a instanceof Date||(a=new Date(a)),isNaN(a))throw TypeError("Invalid date");h=String(u.masks[h]||h||u.masks.default);var S=h.slice(0,4);S!=="UTC:"&&S!=="GMT:"||(h=h.slice(4),g=!0,S==="GMT:"&&(p=!0));var w=g?"getUTC":"get",B=a[w+"Date"](),b=a[w+"Day"](),A=a[w+"Month"](),l=a[w+"FullYear"](),i=a[w+"Hours"](),x=a[w+"Minutes"](),O=a[w+"Seconds"](),T=a[w+"Milliseconds"](),D=g?0:a.getTimezoneOffset(),R=n(a),k=e(a),H={d:B,dd:r(B),ddd:u.i18n.dayNames[b],dddd:u.i18n.dayNames[b+7],m:A+1,mm:r(A+1),mmm:u.i18n.monthNames[A],mmmm:u.i18n.monthNames[A+12],yy:String(l).slice(2),yyyy:l,h:i%12||12,hh:r(i%12||12),H:i,HH:r(i),M:x,MM:r(x),s:O,ss:r(O),l:r(T,3),L:r(Math.round(T/10)),t:i<12?"a":"p",tt:i<12?"am":"pm",T:i<12?"A":"P",TT:i<12?"AM":"PM",Z:p?"GMT":g?"UTC":(String(a).match(f)||[""]).pop().replace(d,""),o:(D>0?"-":"+")+r(100*Math.floor(Math.abs(D)/60)+Math.abs(D)%60,4),S:["th","st","nd","rd"][B%10>3?0:(B%100-B%10!=10)*B%10],W:R,N:k};return h.replace(o,function(J){return J in H?H[J]:J.slice(1,J.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 P=="function"&&P.amd?P(function(){return u}):(_===void 0?"undefined":(0,m.default)(_))==="object"?E.exports=u:c.dateFormat=u}(void 0)},{"babel-runtime/helpers/typeof":32}],155:[function(y,E,_){(function(C){function m(){return!(typeof window=="undefined"||!window.process||window.process.type!=="renderer")||typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function c(s){var u=this.useColors;if(s[0]=(u?"%c":"")+this.namespace+(u?" %c":" ")+s[0]+(u?"%c ":" ")+"+"+_.humanize(this.diff),u){var o="color: "+this.color;s.splice(1,0,o,"color: inherit");var f=0,d=0;s[0].replace(/%[a-zA-Z%]/g,function(a){a!=="%%"&&(f++,a==="%c"&&(d=f))}),s.splice(d,0,o)}}function r(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function n(s){try{s==null?_.storage.removeItem("debug"):_.storage.debug=s}catch(u){}}function e(){var s;try{s=_.storage.debug}catch(u){}return!s&&C!==void 0&&"env"in C&&(s=C.env.DEBUG),s}_=E.exports=y("./debug"),_.log=r,_.formatArgs=c,_.save=n,_.load=e,_.useColors=m,_.storage=typeof chrome!="undefined"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch(s){}}(),_.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],_.formatters.j=function(s){try{return JSON.stringify(s)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}},_.enable(e())}).call(this,y("_process"))},{"./debug":156,_process:173}],156:[function(y,E,_){function C(u){var o,f=0;for(o in u)f=(f<<5)-f+u.charCodeAt(o),f|=0;return _.colors[Math.abs(f)%_.colors.length]}function m(u){function o(){if(o.enabled){var f=o,d=+new Date,a=d-(s||d);f.diff=a,f.prev=s,f.curr=d,s=d;for(var h=new Array(arguments.length),g=0;g<h.length;g++)h[g]=arguments[g];h[0]=_.coerce(h[0]),typeof h[0]!="string"&&h.unshift("%O");var p=0;h[0]=h[0].replace(/%([a-zA-Z%])/g,function(S,w){if(S==="%%")return S;p++;var B=_.formatters[w];if(typeof B=="function"){var b=h[p];S=B.call(f,b),h.splice(p,1),p--}return S}),_.formatArgs.call(f,h),(o.log||_.log||console.log.bind(console)).apply(f,h)}}return o.namespace=u,o.enabled=_.enabled(u),o.useColors=_.useColors(),o.color=C(u),typeof _.init=="function"&&_.init(o),o}function c(u){_.save(u),_.names=[],_.skips=[];for(var o=(typeof u=="string"?u:"").split(/[\s,]+/),f=o.length,d=0;d<f;d++)o[d]&&(u=o[d].replace(/\*/g,".*?"),u[0]==="-"?_.skips.push(new RegExp("^"+u.substr(1)+"$")):_.names.push(new RegExp("^"+u+"$")))}function r(){_.enable("")}function n(u){var o,f;for(o=0,f=_.skips.length;o<f;o++)if(_.skips[o].test(u))return!1;for(o=0,f=_.names.length;o<f;o++)if(_.names[o].test(u))return!0;return!1}function e(u){return u instanceof Error?u.stack||u.message:u}_=E.exports=m.debug=m.default=m,_.coerce=e,_.disable=r,_.enable=c,_.enabled=n,_.humanize=y("ms"),_.names=[],_.skips=[],_.formatters={};var s},{ms:169}],157:[function(y,E,_){"use strict";function C(c){var r=""+c,n=m.exec(r);if(!n)return r;var e,s="",u=0,o=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}o!==u&&(s+=r.substring(o,u)),o=u+1,s+=e}return o!==u?s+r.substring(o,u):s}var m=/["'&<>]/;E.exports=C},{}],158:[function(y,E,_){function C(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function m(e){return typeof e=="function"}function c(e){return typeof e=="number"}function r(e){return typeof e=="object"&&e!==null}function n(e){return e===void 0}E.exports=C,C.EventEmitter=C,C.prototype._events=void 0,C.prototype._maxListeners=void 0,C.defaultMaxListeners=10,C.prototype.setMaxListeners=function(e){if(!c(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},C.prototype.emit=function(e){var s,u,o,f,d,a;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(m(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:f=Array.prototype.slice.call(arguments,1),u.apply(this,f)}else if(r(u))for(f=Array.prototype.slice.call(arguments,1),a=u.slice(),o=a.length,d=0;d<o;d++)a[d].apply(this,f);return!0},C.prototype.addListener=function(e,s){var u;if(!m(s))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,m(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)?C.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},C.prototype.on=C.prototype.addListener,C.prototype.once=function(e,s){function u(){this.removeListener(e,u),o||(o=!0,s.apply(this,arguments))}if(!m(s))throw TypeError("listener must be a function");var o=!1;return u.listener=s,this.on(e,u),this},C.prototype.removeListener=function(e,s){var u,o,f,d;if(!m(s))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(u=this._events[e],f=u.length,o=-1,u===s||m(u.listener)&&u.listener===s)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,s);else if(r(u)){for(d=f;d-- >0;)if(u[d]===s||u[d].listener&&u[d].listener===s){o=d;break}if(o<0)return this;u.length===1?(u.length=0,delete this._events[e]):u.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,s)}return this},C.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],m(u))this.removeListener(e,u);else if(u)for(;u.length;)this.removeListener(e,u[u.length-1]);return delete this._events[e],this},C.prototype.listeners=function(e){return this._events&&this._events[e]?m(this._events[e])?[this._events[e]]:this._events[e].slice():[]},C.prototype.listenerCount=function(e){if(this._events){var s=this._events[e];if(m(s))return 1;if(s)return s.length}return 0},C.listenerCount=function(e,s){return e.listenerCount(s)}},{}],159:[function(y,E,_){var C=y("http"),m=E.exports;for(var c in C)C.hasOwnProperty(c)&&(m[c]=C[c]);m.request=function(r,n){return r||(r={}),r.scheme="https",r.protocol="https:",C.request.call(this,r,n)}},{http:196}],160:[function(y,E,_){"use strict";var C=y("util"),m=y("ms");E.exports=function(c){if(typeof c=="number")return c;var r=m(c);if(r===void 0){var n=new Error(C.format("humanize-ms(%j) result undefined",c));console.warn(n.stack)}return r}},{ms:169,util:207}],161:[function(y,E,_){_.read=function(C,m,c,r,n){var e,s,u=8*n-r-1,o=(1<<u)-1,f=o>>1,d=-7,a=c?n-1:0,h=c?-1:1,g=C[m+a];for(a+=h,e=g&(1<<-d)-1,g>>=-d,d+=u;d>0;e=256*e+C[m+a],a+=h,d-=8);for(s=e&(1<<-d)-1,e>>=-d,d+=r;d>0;s=256*s+C[m+a],a+=h,d-=8);if(e===0)e=1-f;else{if(e===o)return s?NaN:1/0*(g?-1:1);s+=Math.pow(2,r),e-=f}return(g?-1:1)*s*Math.pow(2,e-r)},_.write=function(C,m,c,r,n,e){var s,u,o,f=8*e-n-1,d=(1<<f)-1,a=d>>1,h=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=r?0:e-1,p=r?1:-1,S=m<0||m===0&&1/m<0?1:0;for(m=Math.abs(m),isNaN(m)||m===1/0?(u=isNaN(m)?1:0,s=d):(s=Math.floor(Math.log(m)/Math.LN2),m*(o=Math.pow(2,-s))<1&&(s--,o*=2),m+=s+a>=1?h/o:h*Math.pow(2,1-a),m*o>=2&&(s++,o/=2),s+a>=d?(u=0,s=d):s+a>=1?(u=(m*o-1)*Math.pow(2,n),s+=a):(u=m*Math.pow(2,a-1)*Math.pow(2,n),s=0));n>=8;C[c+g]=255&u,g+=p,u/=256,n-=8);for(s=s<<n|u,f+=n;f>0;C[c+g]=255&s,g+=p,s/=256,f-=8);C[c+g-p]|=128*S}},{}],162:[function(y,E,_){typeof Object.create=="function"?E.exports=function(C,m){C.super_=m,C.prototype=Object.create(m.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}})}:E.exports=function(C,m){C.super_=m;var c=function(){};c.prototype=m.prototype,C.prototype=new c,C.prototype.constructor=C}},{}],163:[function(y,E,_){function C(c){return!!c.constructor&&typeof c.constructor.isBuffer=="function"&&c.constructor.isBuffer(c)}function m(c){return typeof c.readFloatLE=="function"&&typeof c.slice=="function"&&C(c.slice(0,0))}E.exports=function(c){return c!=null&&(C(c)||m(c)||!!c._isBuffer)}},{}],164:[function(y,E,_){!function(C){function m(n){return r.call(n).replace(/^[^{]*{\s*/,"").replace(/\s*}[^}]*$/,"")}function c(n){return typeof n=="function"&&(/^class(\s|\{\}$)/.test(r.call(n))||/^.*classCallCheck\(/.test(m(n)))}var r=Function.prototype.toString;_!==void 0?(E!==void 0&&E.exports&&(_=E.exports=c),_.isClass=c):typeof P=="function"&&P.amd?P([],function(){return c}):C.isClass=c}(this)},{}],165:[function(y,E,_){"use strict";function C(e){var s=e.slice(2);return s=s[0].toLowerCase()+s.slice(1)}var m=y("core-util-is"),c=y("isstream"),r=y("is-class");Object.keys(m).map(function(e){_[C(e)]=m[e]}),_.stream=c,_.readableStream=c.isReadable,_.writableStream=c.isWritable,_.duplexStream=c.isDuplex,_.class=r,_.finite=function(e){return Number.isFinite(e)},_.NaN=function(e){return Number.isNaN(e)},_.generator=function(e){return e&&typeof e.next=="function"&&typeof e.throw=="function"},_.generatorFunction=function(e){return e&&e.constructor&&e.constructor.name==="GeneratorFunction"},_.asyncFunction=function(e){return e&&e.constructor&&e.constructor.name==="AsyncFunction"},_.promise=function(e){return e&&typeof e.then=="function"};var n=Math.pow(2,31);_.int=function(e){return m.isNumber(e)&&e%1==0},_.int32=function(e){return _.int(e)&&e<n&&e>=-n},_.long=function(e){return _.int(e)&&(e>=n||e<-n)},_.Long=function(e){return _.object(e)&&_.number(e.high)&&_.number(e.low)},_.double=function(e){return m.isNumber(e)&&!isNaN(e)&&e%1!=0},_.date=function(e){return e instanceof Date},_.regExp=function(e){return e instanceof RegExp},_.regexp=_.regExp,_.error=function(e){return e instanceof Error},_.array=function(e){return Array.isArray(e)}},{"core-util-is":153,"is-class":164,isstream:167}],166:[function(y,E,_){var C={}.toString;E.exports=Array.isArray||function(m){return C.call(m)=="[object Array]"}},{}],167:[function(y,E,_){function C(e){return e instanceof n.Stream}function m(e){return C(e)&&typeof e._read=="function"&&typeof e._readableState=="object"}function c(e){return C(e)&&typeof e._write=="function"&&typeof e._writableState=="object"}function r(e){return m(e)&&c(e)}var n=y("stream");E.exports=C,E.exports.isReadable=m,E.exports.isWritable=c,E.exports.isDuplex=r},{stream:195}],168:[function(y,E,_){"use strict";function C(c,r,n){if(!c)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||!m.call(c,e)){var s=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(c,e,s)}}),c}E.exports=C;var m=Object.prototype.hasOwnProperty},{}],169:[function(y,E,_){function C(f){if(f=String(f),!(f.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(f);if(d){var a=parseFloat(d[1]);switch((d[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*o;case"days":case"day":case"d":return a*u;case"hours":case"hour":case"hrs":case"hr":case"h":return a*s;case"minutes":case"minute":case"mins":case"min":case"m":return a*e;case"seconds":case"second":case"secs":case"sec":case"s":return a*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}function m(f){return f>=u?Math.round(f/u)+"d":f>=s?Math.round(f/s)+"h":f>=e?Math.round(f/e)+"m":f>=n?Math.round(f/n)+"s":f+"ms"}function c(f){return r(f,u,"day")||r(f,s,"hour")||r(f,e,"minute")||r(f,n,"second")||f+" ms"}function r(f,d,a){if(!(f<d))return f<1.5*d?Math.floor(f/d)+" "+a:Math.ceil(f/d)+" "+a+"s"}var n=1e3,e=60*n,s=60*e,u=24*s,o=365.25*u;E.exports=function(f,d){d=d||{};var a=typeof f;if(a==="string"&&f.length>0)return C(f);if(a==="number"&&isNaN(f)===!1)return d.long?c(f):m(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))}},{}],170:[function(y,E,_){(function(C){function m(e,s){for(var u=0,o=e.length-1;o>=0;o--){var f=e[o];f==="."?e.splice(o,1):f===".."?(e.splice(o,1),u++):u&&(e.splice(o,1),u--)}if(s)for(;u--;u)e.unshift("..");return e}function c(e){typeof e!="string"&&(e+="");var s,u=0,o=-1,f=!0;for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===47){if(!f){u=s+1;break}}else o===-1&&(f=!1,o=s+1);return o===-1?"":e.slice(u,o)}function r(e,s){if(e.filter)return e.filter(s);for(var u=[],o=0;o<e.length;o++)s(e[o],o,e)&&u.push(e[o]);return u}_.resolve=function(){for(var e="",s=!1,u=arguments.length-1;u>=-1&&!s;u--){var o=u>=0?arguments[u]:C.cwd();if(typeof o!="string")throw new TypeError("Arguments to path.resolve must be strings");o&&(e=o+"/"+e,s=o.charAt(0)==="/")}return e=m(r(e.split("/"),function(f){return!!f}),!s).join("/"),(s?"/":"")+e||"."},_.normalize=function(e){var s=_.isAbsolute(e),u=n(e,-1)==="/";return e=m(r(e.split("/"),function(o){return!!o}),!s).join("/"),e||s||(e="."),e&&u&&(e+="/"),(s?"/":"")+e},_.isAbsolute=function(e){return e.charAt(0)==="/"},_.join=function(){var e=Array.prototype.slice.call(arguments,0);return _.normalize(r(e,function(s,u){if(typeof s!="string")throw new TypeError("Arguments to path.join must be strings");return s}).join("/"))},_.relative=function(e,s){function u(p){for(var S=0;S<p.length&&p[S]==="";S++);for(var w=p.length-1;w>=0&&p[w]==="";w--);return S>w?[]:p.slice(S,w-S+1)}e=_.resolve(e).substr(1),s=_.resolve(s).substr(1);for(var o=u(e.split("/")),f=u(s.split("/")),d=Math.min(o.length,f.length),a=d,h=0;h<d;h++)if(o[h]!==f[h]){a=h;break}for(var g=[],h=a;h<o.length;h++)g.push("..");return g=g.concat(f.slice(a)),g.join("/")},_.sep="/",_.delimiter=":",_.dirname=function(e){if(typeof e!="string"&&(e+=""),e.length===0)return".";for(var s=e.charCodeAt(0),u=s===47,o=-1,f=!0,d=e.length-1;d>=1;--d)if((s=e.charCodeAt(d))===47){if(!f){o=d;break}}else f=!1;return o===-1?u?"/":".":u&&o===1?"/":e.slice(0,o)},_.basename=function(e,s){var u=c(e);return s&&u.substr(-1*s.length)===s&&(u=u.substr(0,u.length-s.length)),u},_.extname=function(e){typeof e!="string"&&(e+="");for(var s=-1,u=0,o=-1,f=!0,d=0,a=e.length-1;a>=0;--a){var h=e.charCodeAt(a);if(h!==47)o===-1&&(f=!1,o=a+1),h===46?s===-1?s=a:d!==1&&(d=1):s!==-1&&(d=-1);else if(!f){u=a+1;break}}return s===-1||o===-1||d===0||d===1&&s===o-1&&s===u+1?"":e.slice(s,o)};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,y("_process"))},{_process:173}],171:[function(y,E,_){(function(C){(function(){"use strict";function m(O){return O=String(O),O.charAt(0).toUpperCase()+O.slice(1)}function c(O,T,D){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&&D&&/^Win/i.test(O)&&!/^Windows Phone /i.test(O)&&(R=R[/[\d.]+$/.exec(O)])&&(O="Windows "+R),O=String(O),T&&D&&(O=O.replace(RegExp(T,"i"),D)),O=n(O.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}function r(O,T){var D=-1,R=O?O.length:0;if(typeof R=="number"&&R>-1&&R<=B)for(;++D<R;)T(O[D],D,O);else e(O,T)}function n(O){return O=d(O),/^(?:webOS|i(?:OS|P))/.test(O)?O:m(O)}function e(O,T){for(var D in O)l.call(O,D)&&T(O[D],D,O)}function s(O){return O==null?m(O):i.call(O).slice(8,-1)}function u(O,T){var D=O!=null?typeof O[T]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(D)||D=="object"&&!O[T])}function o(O){return String(O).replace(/([ -])(?!$)/g,"$1?")}function f(O,T){var D=null;return r(O,function(R,k){D=T(D,R,k,O)}),D}function d(O){return String(O).replace(/^ +| +$/g,"")}function a(O){function T(de){return f(de,function(ne,le){var De=le.pattern||o(le);return!ne&&(ne=RegExp("\\b"+De+" *\\d+[.\\w_]*","i").exec(O)||RegExp("\\b"+De+" *\\w+-[\\w]*","i").exec(O)||RegExp("\\b"+De+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(O))&&((ne=String(le.label&&!RegExp(De,"i").test(le.label)?le.label:ne).split("/"))[1]&&!/[\d.]+/.test(ne[0])&&(ne[0]+=" "+ne[1]),le=le.label||le,ne=n(ne[0].replace(RegExp(De,"i"),le).replace(RegExp("; *(?:"+le+"[_-])?","i")," ").replace(RegExp("("+le+")[-_.]?(\\w)","i"),"$1 $2"))),ne})}function D(){return this.description||""}var R=g,k=O&&typeof O=="object"&&s(O)!="String";k&&(R=O,O=null);var H=R.navigator||{},J=H.userAgent||"";O||(O=J);var U,K,G=k?!!H.likeChrome:/\bChrome\b/.test(O)&&!/internal|\n/i.test(i.toString()),N=k?"Object":"ScriptBridgingProxyObject",Q=k?"Object":"Environment",X=k&&R.java?"JavaPackage":s(R.java),te=k?"Object":"RuntimeObject",oe=/\bJava/.test(X)&&R.java,me=oe&&s(R.environment)==Q,se=oe?"a":"\u4F2A",_e=oe?"b":"\u5C3E",Ae=R.document||{},Ee=R.operamini||R.opera,pe=b.test(pe=k&&Ee?Ee["[[Class]]"]:s(Ee))?pe:Ee=null,he=O,ie=[],fe=null,ge=O==J,ce=ge&&Ee&&typeof Ee.version=="function"&&Ee.version(),Ie=function(de){return f(de,function(ne,le){return ne||RegExp("\\b"+(le.pattern||o(le))+"\\b","i").exec(O)&&(le.label||le)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),Fe=function(de){return f(de,function(ne,le){return ne||RegExp("\\b"+(le.pattern||o(le))+"\\b","i").exec(O)&&(le.label||le)})}(["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"]),ke=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(de){return f(de,function(ne,le,De){return ne||(le[ke]||le[/^[a-z]+(?: +[a-z]+\b)*/i.exec(ke)]||RegExp("\\b"+o(De)+"(?:\\b|\\w*\\d)","i").exec(O))&&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}}),F=function(de){return f(de,function(ne,le){var De=le.pattern||o(le);return!ne&&(ne=RegExp("\\b"+De+"(?:/[\\d.]+|[ \\w.]*)","i").exec(O))&&(ne=c(ne,De,le.label||le)),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(Ie&&(Ie=[Ie]),re&&!ke&&(ke=T([re])),(U=/\bGoogle TV\b/.exec(ke))&&(ke=U[0]),/\bSimulator\b/i.test(O)&&(ke=(ke?ke+" ":"")+"Simulator"),Fe=="Opera Mini"&&/\bOPiOS\b/.test(O)&&ie.push("running in Turbo/Uncompressed mode"),Fe=="IE"&&/\blike iPhone OS\b/.test(O)?(U=a(O.replace(/like iPhone OS/,"")),re=U.manufacturer,ke=U.product):/^iP/.test(ke)?(Fe||(Fe="Safari"),F="iOS"+((U=/ OS ([\d_]+)/i.exec(O))?" "+U[1].replace(/_/g,"."):"")):Fe!="Konqueror"||/buntu/i.test(F)?re&&re!="Google"&&(/Chrome/.test(Fe)&&!/\bMobile Safari\b/i.test(O)||/\bVita\b/.test(ke))||/\bAndroid\b/.test(F)&&/^Chrome/.test(Fe)&&/\bVersion\//i.test(O)?(Fe="Android Browser",F=/\bAndroid\b/.test(F)?F:"Android"):Fe=="Silk"?(/\bMobi/i.test(O)||(F="Android",ie.unshift("desktop mode")),/Accelerated *= *true/i.test(O)&&ie.unshift("accelerated")):Fe=="PaleMoon"&&(U=/\bFirefox\/([\d.]+)\b/.exec(O))?ie.push("identifying as Firefox "+U[1]):Fe=="Firefox"&&(U=/\b(Mobile|Tablet|TV)\b/i.exec(O))?(F||(F="Firefox OS"),ke||(ke=U[1])):!Fe||(U=!/\bMinefield\b/i.test(O)&&/\b(?:Firefox|Safari)\b/.exec(Fe))?(Fe&&!ke&&/[\/,]|^[^(]+?\)/.test(O.slice(O.indexOf(U+"/")+8))&&(Fe=null),(U=ke||re||F)&&(ke||re||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(F))&&(Fe=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(F)?F:U)+" Browser")):Fe=="Electron"&&(U=(/\bChrome\/([\d.]+)\b/.exec(O)||0)[1])&&ie.push("Chromium "+U):F="Kubuntu",ce||(ce=function(de){return f(de,function(ne,le){return ne||(RegExp(le+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(O)||0)[1]||null})}(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",o(Fe),"(?:Firefox|Minefield|NetFront)"])),(U=Ie=="iCab"&&parseFloat(ce)>3&&"WebKit"||/\bOpera\b/.test(Fe)&&(/\bOPR\b/.test(O)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(O)&&!/^(?:Trident|EdgeHTML)$/.test(Ie)&&"WebKit"||!Ie&&/\bMSIE\b/i.test(O)&&(F=="Mac OS"?"Tasman":"Trident")||Ie=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(Fe)&&"NetFront")&&(Ie=[U]),Fe=="IE"&&(U=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(O)||0)[1])?(Fe+=" Mobile",F="Windows Phone "+(/\+$/.test(U)?U:U+".x"),ie.unshift("desktop mode")):/\bWPDesktop\b/i.test(O)?(Fe="IE Mobile",F="Windows Phone 8.x",ie.unshift("desktop mode"),ce||(ce=(/\brv:([\d.]+)/.exec(O)||0)[1])):Fe!="IE"&&Ie=="Trident"&&(U=/\brv:([\d.]+)/.exec(O))&&(Fe&&ie.push("identifying as "+Fe+(ce?" "+ce:"")),Fe="IE",ce=U[1]),ge){if(u(R,"global"))if(oe&&(U=oe.lang.System,he=U.getProperty("os.arch"),F=F||U.getProperty("os.name")+" "+U.getProperty("os.version")),me){try{ce=R.require("ringo/engine").version.join("."),Fe="RingoJS"}catch(de){(U=R.system)&&U.global.system==R.system&&(Fe="Narwhal",F||(F=U[0].os||null))}Fe||(Fe="Rhino")}else typeof R.process=="object"&&!R.process.browser&&(U=R.process)&&(typeof U.versions=="object"&&(typeof U.versions.electron=="string"?(ie.push("Node "+U.versions.node),Fe="Electron",ce=U.versions.electron):typeof U.versions.nw=="string"&&(ie.push("Chromium "+ce,"Node "+U.versions.node),Fe="NW.js",ce=U.versions.nw)),Fe||(Fe="Node.js",he=U.arch,F=U.platform,ce=/[\d.]+/.exec(U.version),ce=ce?ce[0]:null));else s(U=R.runtime)==N?(Fe="Adobe AIR",F=U.flash.system.Capabilities.os):s(U=R.phantom)==te?(Fe="PhantomJS",ce=(U=U.version||null)&&U.major+"."+U.minor+"."+U.patch):typeof Ae.documentMode=="number"&&(U=/\bTrident\/(\d+)/i.exec(O))?(ce=[ce,Ae.documentMode],(U=+U[1]+4)!=ce[1]&&(ie.push("IE "+ce[1]+" mode"),Ie&&(Ie[1]=""),ce[1]=U),ce=Fe=="IE"?String(ce[1].toFixed(1)):ce[0]):typeof Ae.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(Fe)&&(ie.push("masking as "+Fe+" "+ce),Fe="IE",ce="11.0",Ie=["Trident"],F="Windows");F=F&&n(F)}if(ce&&(U=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(ce)||/(?:alpha|beta)(?: ?\d)?/i.exec(O+";"+(ge&&H.appMinorVersion))||/\bMinefield\b/i.test(O)&&"a")&&(fe=/b/i.test(U)?"beta":"alpha",ce=ce.replace(RegExp(U+"\\+?$"),"")+(fe=="beta"?_e:se)+(/\d+\+?/.exec(U)||"")),Fe=="Fennec"||Fe=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(F))Fe="Firefox Mobile";else if(Fe=="Maxthon"&&ce)ce=ce.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(ke))ke=="Xbox 360"&&(F=null),ke=="Xbox 360"&&/\bIEMobile\b/.test(O)&&ie.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(Fe)&&(!Fe||ke||/Browser|Mobi/.test(Fe))||F!="Windows CE"&&!/Mobi/i.test(O))if(Fe=="IE"&&ge)try{R.external===null&&ie.unshift("platform preview")}catch(de){ie.unshift("embedded")}else(/\bBlackBerry\b/.test(ke)||/\bBB10\b/.test(O))&&(U=(RegExp(ke.replace(/ +/g," *")+"/([.\\d]+)","i").exec(O)||0)[1]||ce)?(U=[U,/BB10/.test(O)],F=(U[1]?(ke=null,re="BlackBerry"):"Device Software")+" "+U[0],ce=null):this!=e&&ke!="Wii"&&(ge&&Ee||/Opera/.test(Fe)&&/\b(?:MSIE|Firefox)\b/i.test(O)||Fe=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(F)||Fe=="IE"&&(F&&!/^Win/.test(F)&&ce>5.5||/\bWindows XP\b/.test(F)&&ce>8||ce==8&&!/\bTrident\b/.test(O)))&&!b.test(U=a.call(e,O.replace(b,"")+";"))&&U.name&&(U="ing as "+U.name+((U=U.version)?" "+U:""),b.test(Fe)?(/\bIE\b/.test(U)&&F=="Mac OS"&&(F=null),U="identify"+U):(U="mask"+U,Fe=pe?n(pe.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(U)&&(F=null),ge||(ce=null)),Ie=["Presto"],ie.push(U));else Fe+=" Mobile";(U=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(O)||0)[1])&&(U=[parseFloat(U.replace(/\.(\d)$/,".0$1")),U],Fe=="Safari"&&U[1].slice(-1)=="+"?(Fe="WebKit Nightly",fe="alpha",ce=U[1].slice(0,-1)):ce!=U[1]&&ce!=(U[2]=(/\bSafari\/([\d.]+\+?)/i.exec(O)||0)[1])||(ce=null),U[1]=(/\bChrome\/([\d.]+)/i.exec(O)||0)[1],U[0]==537.36&&U[2]==537.36&&parseFloat(U[1])>=28&&Ie=="WebKit"&&(Ie=["Blink"]),ge&&(G||U[1])?(Ie&&(Ie[1]="like Chrome"),U=U[1]||(U=U[0],U<530?1:U<532?2:U<532.05?3:U<533?4:U<534.03?5:U<534.07?6:U<534.1?7:U<534.13?8:U<534.16?9:U<534.24?10:U<534.3?11:U<535.01?12:U<535.02?"13+":U<535.07?15:U<535.11?16:U<535.19?17:U<536.05?18:U<536.1?19:U<537.01?20:U<537.11?"21+":U<537.13?23:U<537.18?24:U<537.24?25:U<537.36?26:Ie!="Blink"?"27":"28")):(Ie&&(Ie[1]="like Safari"),U=U[0],U=U<400?1:U<500?2:U<526?3:U<533?4:U<534?"4+":U<535?5:U<537?6:U<538?7:U<601?8:"8"),Ie&&(Ie[1]+=" "+(U+=typeof U=="number"?".x":/[.+]/.test(U)?"":"+")),Fe=="Safari"&&(!ce||parseInt(ce)>45)&&(ce=U)),Fe=="Opera"&&(U=/\bzbov|zvav$/.exec(F))?(Fe+=" ",ie.unshift("desktop mode"),U=="zvav"?(Fe+="Mini",ce=null):Fe+="Mobile",F=F.replace(RegExp(" *"+U+"$"),"")):Fe=="Safari"&&/\bChrome\b/.exec(Ie&&Ie[1])&&(ie.unshift("desktop mode"),Fe="Chrome Mobile",ce=null,/\bOS X\b/.test(F)?(re="Apple",F="iOS 4.3+"):F=null),ce&&ce.indexOf(U=/[\d.]+$/.exec(F))==0&&O.indexOf("/"+U+"-")>-1&&(F=d(F.replace(U,""))),Ie&&!/\b(?:Avant|Nook)\b/.test(Fe)&&(/Browser|Lunascape|Maxthon/.test(Fe)||Fe!="Safari"&&/^iOS/.test(F)&&/\bSafari\b/.test(Ie[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(Fe)&&Ie[1])&&(U=Ie[Ie.length-1])&&ie.push(U),ie.length&&(ie=["("+ie.join("; ")+")"]),re&&ke&&ke.indexOf(re)<0&&ie.push("on "+re),ke&&ie.push((/^on /.test(ie[ie.length-1])?"":"on ")+ke),F&&(U=/ ([\d.+]+)$/.exec(F),K=U&&F.charAt(F.length-U[0].length-1)=="/",F={architecture:32,family:U&&!K?F.replace(U[0],""):F,version:U?U[1]:null,toString:function(){var de=this.version;return this.family+(de&&!K?" "+de:"")+(this.architecture==64?" 64-bit":"")}}),(U=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(he))&&!/\bi686\b/i.test(he)?(F&&(F.architecture=64,F.family=F.family.replace(RegExp(" *"+U),"")),Fe&&(/\bWOW64\b/i.test(O)||ge&&/\w(?:86|32)$/.test(H.cpuClass||H.platform)&&!/\bWin64; x64\b/i.test(O))&&ie.unshift("32-bit")):F&&/^OS X/.test(F.family)&&Fe=="Chrome"&&parseFloat(ce)>=39&&(F.architecture=64),O||(O=null);var W={};return W.description=O,W.layout=Ie&&Ie[0],W.manufacturer=re,W.name=Fe,W.prerelease=fe,W.product=ke,W.ua=O,W.version=Fe&&ce,W.os=F||{architecture:null,family:null,version:null,toString:function(){return"null"}},W.parse=a,W.toString=D,W.version&&ie.unshift(ce),W.name&&ie.unshift(Fe),F&&Fe&&(F!=String(F).split(" ")[0]||F!=Fe.split(" ")[0]&&!ke)&&ie.push(ke?"("+F+")":"on "+F),ie.length&&(W.description=ie.join(" ")),W}var h={function:!0,object:!0},g=h[typeof window]&&window||this,p=h[typeof _]&&_,S=h[typeof E]&&E&&!E.nodeType&&E,w=p&&S&&typeof C=="object"&&C;!w||w.global!==w&&w.window!==w&&w.self!==w||(g=w);var B=Math.pow(2,53)-1,b=/\bOpera/,A=Object.prototype,l=A.hasOwnProperty,i=A.toString,x=a();typeof P=="function"&&typeof P.amd=="object"&&P.amd?(g.platform=x,P(function(){return x})):p&&S?e(x,function(O,T){p[T]=O}):g.platform=x}).call(this)}).call(this,typeof ue!="undefined"?ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],172:[function(y,E,_){(function(C){"use strict";function m(c,r,n,e){if(typeof c!="function")throw new TypeError('"callback" argument must be a function');var s,u,o=arguments.length;switch(o){case 0:case 1:return C.nextTick(c);case 2:return C.nextTick(function(){c.call(null,r)});case 3:return C.nextTick(function(){c.call(null,r,n)});case 4:return C.nextTick(function(){c.call(null,r,n,e)});default:for(s=new Array(o-1),u=0;u<s.length;)s[u++]=arguments[u];return C.nextTick(function(){c.apply(null,s)})}}!C.version||C.version.indexOf("v0.")===0||C.version.indexOf("v1.")===0&&C.version.indexOf("v1.8.")!==0?E.exports={nextTick:m}:E.exports=C}).call(this,y("_process"))},{_process:173}],173:[function(y,E,_){function C(){throw new Error("setTimeout has not been defined")}function m(){throw new Error("clearTimeout has not been defined")}function c(S){if(o===setTimeout)return setTimeout(S,0);if((o===C||!o)&&setTimeout)return o=setTimeout,setTimeout(S,0);try{return o(S,0)}catch(w){try{return o.call(null,S,0)}catch(B){return o.call(this,S,0)}}}function r(S){if(f===clearTimeout)return clearTimeout(S);if((f===m||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(S);try{return f(S)}catch(w){try{return f.call(null,S)}catch(B){return f.call(this,S)}}}function n(){g&&a&&(g=!1,a.length?h=a.concat(h):p=-1,h.length&&e())}function e(){if(!g){var S=c(n);g=!0;for(var w=h.length;w;){for(a=h,h=[];++p<w;)a&&a[p].run();p=-1,w=h.length}a=null,g=!1,r(S)}}function s(S,w){this.fun=S,this.array=w}function u(){}var o,f,d=E.exports={};!function(){try{o=typeof setTimeout=="function"?setTimeout:C}catch(S){o=C}try{f=typeof clearTimeout=="function"?clearTimeout:m}catch(S){f=m}}();var a,h=[],g=!1,p=-1;d.nextTick=function(S){var w=new Array(arguments.length-1);if(arguments.length>1)for(var B=1;B<arguments.length;B++)w[B-1]=arguments[B];h.push(new s(S,w)),h.length!==1||g||c(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(S){return[]},d.binding=function(S){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(S){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},{}],174:[function(y,E,_){(function(C){!function(m){function c(X){throw new RangeError(K[X])}function r(X,te){for(var oe=X.length,me=[];oe--;)me[oe]=te(X[oe]);return me}function n(X,te){var oe=X.split("@"),me="";return oe.length>1&&(me=oe[0]+"@",X=oe[1]),X=X.replace(U,"."),me+r(X.split("."),te).join(".")}function e(X){for(var te,oe,me=[],se=0,_e=X.length;se<_e;)te=X.charCodeAt(se++),te>=55296&&te<=56319&&se<_e?(oe=X.charCodeAt(se++),(64512&oe)==56320?me.push(((1023&te)<<10)+(1023&oe)+65536):(me.push(te),se--)):me.push(te);return me}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:l}function o(X,te){return X+22+75*(X<26)-((te!=0)<<5)}function f(X,te,oe){var me=0;for(X=oe?N(X/T):X>>1,X+=N(X/te);X>G*x>>1;me+=l)X=N(X/G);return N(me+(G+1)*X/(X+O))}function d(X){var te,oe,me,se,_e,Ae,Ee,pe,he,ie,fe=[],ge=X.length,ce=0,Ie=R,Fe=D;for(oe=X.lastIndexOf(k),oe<0&&(oe=0),me=0;me<oe;++me)X.charCodeAt(me)>=128&&c("not-basic"),fe.push(X.charCodeAt(me));for(se=oe>0?oe+1:0;se<ge;){for(_e=ce,Ae=1,Ee=l;se>=ge&&c("invalid-input"),pe=u(X.charCodeAt(se++)),(pe>=l||pe>N((A-ce)/Ae))&&c("overflow"),ce+=pe*Ae,he=Ee<=Fe?i:Ee>=Fe+x?x:Ee-Fe,!(pe<he);Ee+=l)ie=l-he,Ae>N(A/ie)&&c("overflow"),Ae*=ie;te=fe.length+1,Fe=f(ce-_e,te,_e==0),N(ce/te)>A-Ie&&c("overflow"),Ie+=N(ce/te),ce%=te,fe.splice(ce++,0,Ie)}return s(fe)}function a(X){var te,oe,me,se,_e,Ae,Ee,pe,he,ie,fe,ge,ce,Ie,Fe,ke=[];for(X=e(X),ge=X.length,te=R,oe=0,_e=D,Ae=0;Ae<ge;++Ae)(fe=X[Ae])<128&&ke.push(Q(fe));for(me=se=ke.length,se&&ke.push(k);me<ge;){for(Ee=A,Ae=0;Ae<ge;++Ae)(fe=X[Ae])>=te&&fe<Ee&&(Ee=fe);for(ce=me+1,Ee-te>N((A-oe)/ce)&&c("overflow"),oe+=(Ee-te)*ce,te=Ee,Ae=0;Ae<ge;++Ae)if(fe=X[Ae],fe<te&&++oe>A&&c("overflow"),fe==te){for(pe=oe,he=l;ie=he<=_e?i:he>=_e+x?x:he-_e,!(pe<ie);he+=l)Fe=pe-ie,Ie=l-ie,ke.push(Q(o(ie+Fe%Ie,0))),pe=N(Fe/Ie);ke.push(Q(o(pe,0))),_e=f(oe,ce,me==se),oe=0,++me}++oe,++te}return ke.join("")}function h(X){return n(X,function(te){return H.test(te)?d(te.slice(4).toLowerCase()):te})}function g(X){return n(X,function(te){return J.test(te)?"xn--"+a(te):te})}var p=typeof _=="object"&&_&&!_.nodeType&&_,S=typeof E=="object"&&E&&!E.nodeType&&E,w=typeof C=="object"&&C;w.global!==w&&w.window!==w&&w.self!==w||(m=w);var B,b,A=2147483647,l=36,i=1,x=26,O=38,T=700,D=72,R=128,k="-",H=/^xn--/,J=/[^\x20-\x7E]/,U=/[\x2E\u3002\uFF0E\uFF61]/g,K={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},G=l-i,N=Math.floor,Q=String.fromCharCode;if(B={version:"1.4.1",ucs2:{decode:e,encode:s},decode:d,encode:a,toASCII:g,toUnicode:h},typeof P=="function"&&typeof P.amd=="object"&&P.amd)P("punycode",function(){return B});else if(p&&S)if(E.exports==p)S.exports=B;else for(b in B)B.hasOwnProperty(b)&&(p[b]=B[b]);else m.punycode=B}(this)}).call(this,typeof ue!="undefined"?ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],175:[function(y,E,_){"use strict";function C(c,r){return Object.prototype.hasOwnProperty.call(c,r)}E.exports=function(c,r,n,e){r=r||"&",n=n||"=";var s={};if(typeof c!="string"||c.length===0)return s;var u=/\+/g;c=c.split(r);var o=1e3;e&&typeof e.maxKeys=="number"&&(o=e.maxKeys);var f=c.length;o>0&&f>o&&(f=o);for(var d=0;d<f;++d){var a,h,g,p,S=c[d].replace(u,"%20"),w=S.indexOf(n);w>=0?(a=S.substr(0,w),h=S.substr(w+1)):(a=S,h=""),g=decodeURIComponent(a),p=decodeURIComponent(h),C(s,g)?m(s[g])?s[g].push(p):s[g]=[s[g],p]:s[g]=p}return s};var m=Array.isArray||function(c){return Object.prototype.toString.call(c)==="[object Array]"}},{}],176:[function(y,E,_){"use strict";function C(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 m=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"?C(r(n),function(o){var f=encodeURIComponent(m(o))+s;return c(n[o])?C(n[o],function(d){return f+encodeURIComponent(m(d))}).join(e):f+encodeURIComponent(m(n[o]))}).join(e):u?encodeURIComponent(m(u))+s+encodeURIComponent(m(n)):""};var c=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(y,E,_){"use strict";_.decode=_.parse=y("./decode"),_.encode=_.stringify=y("./encode")},{"./decode":175,"./encode":176}],178:[function(y,E,_){E.exports=y("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":179}],179:[function(y,E,_){"use strict";function C(g){if(!(this instanceof C))return new C(g);o.call(this,g),f.call(this,g),g&&g.readable===!1&&(this.readable=!1),g&&g.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,g&&g.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",m)}function m(){this.allowHalfOpen||this._writableState.ended||e.nextTick(c,this)}function c(g){g.end()}var r=y("babel-runtime/core-js/object/keys"),n=function(g){return g&&g.__esModule?g:{default:g}}(r),e=y("process-nextick-args"),s=n.default||function(g){var p=[];for(var S in g)p.push(S);return p};E.exports=C;var u=y("core-util-is");u.inherits=y("inherits");var o=y("./_stream_readable"),f=y("./_stream_writable");u.inherits(C,o);for(var d=s(f.prototype),a=0;a<d.length;a++){var h=d[a];C.prototype[h]||(C.prototype[h]=f.prototype[h])}Object.defineProperty(C.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(C.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(g){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=g,this._writableState.destroyed=g)}}),C.prototype._destroy=function(g,p){this.push(null),this.end(),e.nextTick(p,g)}},{"./_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(y,E,_){"use strict";function C(r){if(!(this instanceof C))return new C(r);m.call(this,r)}E.exports=C;var m=y("./_stream_transform"),c=y("core-util-is");c.inherits=y("inherits"),c.inherits(C,m),C.prototype._transform=function(r,n,e){e(null,r)}},{"./_stream_transform":182,"core-util-is":153,inherits:162}],181:[function(y,E,_){(function(C,m){"use strict";function c(ge){return oe.from(ge)}function r(ge){return oe.isBuffer(ge)||ge instanceof me}function n(ge,ce,Ie){if(typeof ge.prependListener=="function")return ge.prependListener(ce,Ie);ge._events&&ge._events[ce]?Q(ge._events[ce])?ge._events[ce].unshift(Ie):ge._events[ce]=[Ie,ge._events[ce]]:ge.on(ce,Ie)}function e(ge,ce){N=N||y("./_stream_duplex"),ge=ge||{};var Ie=ce instanceof N;this.objectMode=!!ge.objectMode,Ie&&(this.objectMode=this.objectMode||!!ge.readableObjectMode);var Fe=ge.highWaterMark,ke=ge.readableHighWaterMark,re=this.objectMode?16:16384;this.highWaterMark=Fe||Fe===0?Fe:Ie&&(ke||ke===0)?ke:re,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new pe,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=ge.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,ge.encoding&&(Ee||(Ee=y("string_decoder/").StringDecoder),this.decoder=new Ee(ge.encoding),this.encoding=ge.encoding)}function s(ge){if(N=N||y("./_stream_duplex"),!(this instanceof s))return new s(ge);this._readableState=new e(ge,this),this.readable=!0,ge&&(typeof ge.read=="function"&&(this._read=ge.read),typeof ge.destroy=="function"&&(this._destroy=ge.destroy)),te.call(this)}function u(ge,ce,Ie,Fe,ke){var re=ge._readableState;if(ce===null)re.reading=!1,g(ge,re);else{var F;ke||(F=f(re,ce)),F?ge.emit("error",F):re.objectMode||ce&&ce.length>0?(typeof ce=="string"||re.objectMode||(0,K.default)(ce)===oe.prototype||(ce=c(ce)),Fe?re.endEmitted?ge.emit("error",new Error("stream.unshift() after end event")):o(ge,re,ce,!0):re.ended?ge.emit("error",new Error("stream.push() after EOF")):(re.reading=!1,re.decoder&&!Ie?(ce=re.decoder.write(ce),re.objectMode||ce.length!==0?o(ge,re,ce,!1):w(ge,re)):o(ge,re,ce,!1))):Fe||(re.reading=!1)}return d(re)}function o(ge,ce,Ie,Fe){ce.flowing&&ce.length===0&&!ce.sync?(ge.emit("data",Ie),ge.read(0)):(ce.length+=ce.objectMode?1:Ie.length,Fe?ce.buffer.unshift(Ie):ce.buffer.push(Ie),ce.needReadable&&p(ge)),w(ge,ce)}function f(ge,ce){var Ie;return r(ce)||typeof ce=="string"||ce===void 0||ge.objectMode||(Ie=new TypeError("Invalid non-string/buffer chunk")),Ie}function d(ge){return!ge.ended&&(ge.needReadable||ge.length<ge.highWaterMark||ge.length===0)}function a(ge){return ge>=fe?ge=fe:(ge--,ge|=ge>>>1,ge|=ge>>>2,ge|=ge>>>4,ge|=ge>>>8,ge|=ge>>>16,ge++),ge}function h(ge,ce){return ge<=0||ce.length===0&&ce.ended?0:ce.objectMode?1:ge!==ge?ce.flowing&&ce.length?ce.buffer.head.data.length:ce.length:(ge>ce.highWaterMark&&(ce.highWaterMark=a(ge)),ge<=ce.length?ge:ce.ended?ce.length:(ce.needReadable=!0,0))}function g(ge,ce){if(!ce.ended){if(ce.decoder){var Ie=ce.decoder.end();Ie&&Ie.length&&(ce.buffer.push(Ie),ce.length+=ce.objectMode?1:Ie.length)}ce.ended=!0,p(ge)}}function p(ge){var ce=ge._readableState;ce.needReadable=!1,ce.emittedReadable||(Ae("emitReadable",ce.flowing),ce.emittedReadable=!0,ce.sync?G.nextTick(S,ge):S(ge))}function S(ge){Ae("emit readable"),ge.emit("readable"),x(ge)}function w(ge,ce){ce.readingMore||(ce.readingMore=!0,G.nextTick(B,ge,ce))}function B(ge,ce){for(var Ie=ce.length;!ce.reading&&!ce.flowing&&!ce.ended&&ce.length<ce.highWaterMark&&(Ae("maybeReadMore read 0"),ge.read(0),Ie!==ce.length);)Ie=ce.length;ce.readingMore=!1}function b(ge){return function(){var ce=ge._readableState;Ae("pipeOnDrain",ce.awaitDrain),ce.awaitDrain&&ce.awaitDrain--,ce.awaitDrain===0&&X(ge,"data")&&(ce.flowing=!0,x(ge))}}function A(ge){Ae("readable nexttick read 0"),ge.read(0)}function l(ge,ce){ce.resumeScheduled||(ce.resumeScheduled=!0,G.nextTick(i,ge,ce))}function i(ge,ce){ce.reading||(Ae("resume read 0"),ge.read(0)),ce.resumeScheduled=!1,ce.awaitDrain=0,ge.emit("resume"),x(ge),ce.flowing&&!ce.reading&&ge.read(0)}function x(ge){var ce=ge._readableState;for(Ae("flow",ce.flowing);ce.flowing&&ge.read()!==null;);}function O(ge,ce){if(ce.length===0)return null;var Ie;return ce.objectMode?Ie=ce.buffer.shift():!ge||ge>=ce.length?(Ie=ce.decoder?ce.buffer.join(""):ce.buffer.length===1?ce.buffer.head.data:ce.buffer.concat(ce.length),ce.buffer.clear()):Ie=T(ge,ce.buffer,ce.decoder),Ie}function T(ge,ce,Ie){var Fe;return ge<ce.head.data.length?(Fe=ce.head.data.slice(0,ge),ce.head.data=ce.head.data.slice(ge)):Fe=ge===ce.head.data.length?ce.shift():Ie?D(ge,ce):R(ge,ce),Fe}function D(ge,ce){var Ie=ce.head,Fe=1,ke=Ie.data;for(ge-=ke.length;Ie=Ie.next;){var re=Ie.data,F=ge>re.length?re.length:ge;if(F===re.length?ke+=re:ke+=re.slice(0,ge),(ge-=F)===0){F===re.length?(++Fe,Ie.next?ce.head=Ie.next:ce.head=ce.tail=null):(ce.head=Ie,Ie.data=re.slice(F));break}++Fe}return ce.length-=Fe,ke}function R(ge,ce){var Ie=oe.allocUnsafe(ge),Fe=ce.head,ke=1;for(Fe.data.copy(Ie),ge-=Fe.data.length;Fe=Fe.next;){var re=Fe.data,F=ge>re.length?re.length:ge;if(re.copy(Ie,Ie.length-ge,0,F),(ge-=F)===0){F===re.length?(++ke,Fe.next?ce.head=Fe.next:ce.head=ce.tail=null):(ce.head=Fe,Fe.data=re.slice(F));break}++ke}return ce.length-=ke,Ie}function k(ge){var ce=ge._readableState;if(ce.length>0)throw new Error('"endReadable()" called on non-empty stream');ce.endEmitted||(ce.ended=!0,G.nextTick(H,ce,ge))}function H(ge,ce){ge.endEmitted||ge.length!==0||(ge.endEmitted=!0,ce.readable=!1,ce.emit("end"))}function J(ge,ce){for(var Ie=0,Fe=ge.length;Ie<Fe;Ie++)if(ge[Ie]===ce)return Ie;return-1}var U=y("babel-runtime/core-js/object/get-prototype-of"),K=function(ge){return ge&&ge.__esModule?ge:{default:ge}}(U),G=y("process-nextick-args");E.exports=s;var N,Q=y("isarray");s.ReadableState=e;var X=(y("events").EventEmitter,function(ge,ce){return ge.listeners(ce).length}),te=y("./internal/streams/stream"),oe=y("safe-buffer").Buffer,me=m.Uint8Array||function(){},se=y("core-util-is");se.inherits=y("inherits");var _e=y("util"),Ae=void 0;Ae=_e&&_e.debuglog?_e.debuglog("stream"):function(){};var Ee,pe=y("./internal/streams/BufferList"),he=y("./internal/streams/destroy");se.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(ge){this._readableState&&(this._readableState.destroyed=ge)}}),s.prototype.destroy=he.destroy,s.prototype._undestroy=he.undestroy,s.prototype._destroy=function(ge,ce){this.push(null),ce(ge)},s.prototype.push=function(ge,ce){var Ie,Fe=this._readableState;return Fe.objectMode?Ie=!0:typeof ge=="string"&&(ce=ce||Fe.defaultEncoding,ce!==Fe.encoding&&(ge=oe.from(ge,ce),ce=""),Ie=!0),u(this,ge,ce,!1,Ie)},s.prototype.unshift=function(ge){return u(this,ge,null,!0,!1)},s.prototype.isPaused=function(){return this._readableState.flowing===!1},s.prototype.setEncoding=function(ge){return Ee||(Ee=y("string_decoder/").StringDecoder),this._readableState.decoder=new Ee(ge),this._readableState.encoding=ge,this};var fe=8388608;s.prototype.read=function(ge){Ae("read",ge),ge=parseInt(ge,10);var ce=this._readableState,Ie=ge;if(ge!==0&&(ce.emittedReadable=!1),ge===0&&ce.needReadable&&(ce.length>=ce.highWaterMark||ce.ended))return Ae("read: emitReadable",ce.length,ce.ended),ce.length===0&&ce.ended?k(this):p(this),null;if((ge=h(ge,ce))===0&&ce.ended)return ce.length===0&&k(this),null;var Fe=ce.needReadable;Ae("need readable",Fe),(ce.length===0||ce.length-ge<ce.highWaterMark)&&(Fe=!0,Ae("length less than watermark",Fe)),ce.ended||ce.reading?(Fe=!1,Ae("reading or ended",Fe)):Fe&&(Ae("do read"),ce.reading=!0,ce.sync=!0,ce.length===0&&(ce.needReadable=!0),this._read(ce.highWaterMark),ce.sync=!1,ce.reading||(ge=h(Ie,ce)));var ke;return ke=ge>0?O(ge,ce):null,ke===null?(ce.needReadable=!0,ge=0):ce.length-=ge,ce.length===0&&(ce.ended||(ce.needReadable=!0),Ie!==ge&&ce.ended&&k(this)),ke!==null&&this.emit("data",ke),ke},s.prototype._read=function(ge){this.emit("error",new Error("_read() is not implemented"))},s.prototype.pipe=function(ge,ce){function Ie(Et,ct){Ae("onunpipe"),Et===le&&ct&&ct.hasUnpiped===!1&&(ct.hasUnpiped=!0,ke())}function Fe(){Ae("onend"),ge.end()}function ke(){Ae("cleanup"),ge.removeListener("close",W),ge.removeListener("finish",de),ge.removeListener("drain",Ke),ge.removeListener("error",F),ge.removeListener("unpipe",Ie),le.removeListener("end",Fe),le.removeListener("end",ne),le.removeListener("data",re),ze=!0,!De.awaitDrain||ge._writableState&&!ge._writableState.needDrain||Ke()}function re(Et){Ae("ondata"),yt=!1,ge.write(Et)!==!1||yt||((De.pipesCount===1&&De.pipes===ge||De.pipesCount>1&&J(De.pipes,ge)!==-1)&&!ze&&(Ae("false write response, pause",le._readableState.awaitDrain),le._readableState.awaitDrain++,yt=!0),le.pause())}function F(Et){Ae("onerror",Et),ne(),ge.removeListener("error",F),X(ge,"error")===0&&ge.emit("error",Et)}function W(){ge.removeListener("finish",de),ne()}function de(){Ae("onfinish"),ge.removeListener("close",W),ne()}function ne(){Ae("unpipe"),le.unpipe(ge)}var le=this,De=this._readableState;switch(De.pipesCount){case 0:De.pipes=ge;break;case 1:De.pipes=[De.pipes,ge];break;default:De.pipes.push(ge)}De.pipesCount+=1,Ae("pipe count=%d opts=%j",De.pipesCount,ce);var Xe=(!ce||ce.end!==!1)&&ge!==C.stdout&&ge!==C.stderr,xt=Xe?Fe:ne;De.endEmitted?G.nextTick(xt):le.once("end",xt),ge.on("unpipe",Ie);var Ke=b(le);ge.on("drain",Ke);var ze=!1,yt=!1;return le.on("data",re),n(ge,"error",F),ge.once("close",W),ge.once("finish",de),ge.emit("pipe",le),De.flowing||(Ae("pipe resume"),le.resume()),ge},s.prototype.unpipe=function(ge){var ce=this._readableState,Ie={hasUnpiped:!1};if(ce.pipesCount===0)return this;if(ce.pipesCount===1)return ge&&ge!==ce.pipes?this:(ge||(ge=ce.pipes),ce.pipes=null,ce.pipesCount=0,ce.flowing=!1,ge&&ge.emit("unpipe",this,Ie),this);if(!ge){var Fe=ce.pipes,ke=ce.pipesCount;ce.pipes=null,ce.pipesCount=0,ce.flowing=!1;for(var re=0;re<ke;re++)Fe[re].emit("unpipe",this,Ie);return this}var F=J(ce.pipes,ge);return F===-1?this:(ce.pipes.splice(F,1),ce.pipesCount-=1,ce.pipesCount===1&&(ce.pipes=ce.pipes[0]),ge.emit("unpipe",this,Ie),this)},s.prototype.on=function(ge,ce){var Ie=te.prototype.on.call(this,ge,ce);if(ge==="data")this._readableState.flowing!==!1&&this.resume();else if(ge==="readable"){var Fe=this._readableState;Fe.endEmitted||Fe.readableListening||(Fe.readableListening=Fe.needReadable=!0,Fe.emittedReadable=!1,Fe.reading?Fe.length&&p(this):G.nextTick(A,this))}return Ie},s.prototype.addListener=s.prototype.on,s.prototype.resume=function(){var ge=this._readableState;return ge.flowing||(Ae("resume"),ge.flowing=!0,l(this,ge)),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(ge){var ce=this,Ie=this._readableState,Fe=!1;ge.on("end",function(){if(Ae("wrapped end"),Ie.decoder&&!Ie.ended){var F=Ie.decoder.end();F&&F.length&&ce.push(F)}ce.push(null)}),ge.on("data",function(F){(Ae("wrapped data"),Ie.decoder&&(F=Ie.decoder.write(F)),(!Ie.objectMode||F!=null)&&(Ie.objectMode||F&&F.length))&&(ce.push(F)||(Fe=!0,ge.pause()))});for(var ke in ge)this[ke]===void 0&&typeof ge[ke]=="function"&&(this[ke]=function(F){return function(){return ge[F].apply(ge,arguments)}}(ke));for(var re=0;re<ie.length;re++)ge.on(ie[re],this.emit.bind(this,ie[re]));return this._read=function(F){Ae("wrapped _read",F),Fe&&(Fe=!1,ge.resume())},this},Object.defineProperty(s.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),s._fromList=O}).call(this,y("_process"),typeof ue!="undefined"?ue: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(y,E,_){"use strict";function C(s,u){var o=this._transformState;o.transforming=!1;var f=o.writecb;if(!f)return this.emit("error",new Error("write callback called multiple times"));o.writechunk=null,o.writecb=null,u!=null&&this.push(u),f(s);var d=this._readableState;d.reading=!1,(d.needReadable||d.length<d.highWaterMark)&&this._read(d.highWaterMark)}function m(s){if(!(this instanceof m))return new m(s);n.call(this,s),this._transformState={afterTransform:C.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",c)}function c(){var s=this;typeof this._flush=="function"?this._flush(function(u,o){r(s,u,o)}):r(this,null,null)}function r(s,u,o){if(u)return s.emit("error",u);if(o!=null&&s.push(o),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=m;var n=y("./_stream_duplex"),e=y("core-util-is");e.inherits=y("inherits"),e.inherits(m,n),m.prototype.push=function(s,u){return this._transformState.needTransform=!1,n.prototype.push.call(this,s,u)},m.prototype._transform=function(s,u,o){throw new Error("_transform() is not implemented")},m.prototype._write=function(s,u,o){var f=this._transformState;if(f.writecb=o,f.writechunk=s,f.writeencoding=u,!f.transforming){var d=this._readableState;(f.needTransform||d.needReadable||d.length<d.highWaterMark)&&this._read(d.highWaterMark)}},m.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},m.prototype._destroy=function(s,u){var o=this;n.prototype._destroy.call(this,s,function(f){u(f),o.emit("close")})}},{"./_stream_duplex":179,"core-util-is":153,inherits:162}],183:[function(y,E,_){(function(C,m){"use strict";function c(he){return he&&he.__esModule?he:{default:he}}function r(he){var ie=this;this.next=null,this.entry=null,this.finish=function(){D(ie,he)}}function n(he){return _e.from(he)}function e(he){return _e.isBuffer(he)||he instanceof Ae}function s(){}function u(he,ie){X=X||y("./_stream_duplex"),he=he||{};var fe=ie instanceof X;this.objectMode=!!he.objectMode,fe&&(this.objectMode=this.objectMode||!!he.writableObjectMode);var ge=he.highWaterMark,ce=he.writableHighWaterMark,Ie=this.objectMode?16:16384;this.highWaterMark=ge||ge===0?ge:fe&&(ce||ce===0)?ce:Ie,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 Fe=he.decodeStrings===!1;this.decodeStrings=!Fe,this.defaultEncoding=he.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ke){w(ie,ke)},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 o(he){if(X=X||y("./_stream_duplex"),!(pe.call(o,this)||this instanceof X))return new o(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)),se.call(this)}function f(he,ie){var fe=new Error("write after end");he.emit("error",fe),Q.nextTick(ie,fe)}function d(he,ie,fe,ge){var ce=!0,Ie=!1;return fe===null?Ie=new TypeError("May not write null values to stream"):typeof fe=="string"||fe===void 0||ie.objectMode||(Ie=new TypeError("Invalid non-string/buffer chunk")),Ie&&(he.emit("error",Ie),Q.nextTick(ge,Ie),ce=!1),ce}function a(he,ie,fe){return he.objectMode||he.decodeStrings===!1||typeof ie!="string"||(ie=_e.from(ie,fe)),ie}function h(he,ie,fe,ge,ce,Ie){if(!fe){var Fe=a(ie,ge,ce);ge!==Fe&&(fe=!0,ce="buffer",ge=Fe)}var ke=ie.objectMode?1:ge.length;ie.length+=ke;var re=ie.length<ie.highWaterMark;if(re||(ie.needDrain=!0),ie.writing||ie.corked){var F=ie.lastBufferedRequest;ie.lastBufferedRequest={chunk:ge,encoding:ce,isBuf:fe,callback:Ie,next:null},F?F.next=ie.lastBufferedRequest:ie.bufferedRequest=ie.lastBufferedRequest,ie.bufferedRequestCount+=1}else g(he,ie,!1,ke,ge,ce,Ie);return re}function g(he,ie,fe,ge,ce,Ie,Fe){ie.writelen=ge,ie.writecb=Fe,ie.writing=!0,ie.sync=!0,fe?he._writev(ce,ie.onwrite):he._write(ce,Ie,ie.onwrite),ie.sync=!1}function p(he,ie,fe,ge,ce){--ie.pendingcb,fe?(Q.nextTick(ce,ge),Q.nextTick(O,he,ie),he._writableState.errorEmitted=!0,he.emit("error",ge)):(ce(ge),he._writableState.errorEmitted=!0,he.emit("error",ge),O(he,ie))}function S(he){he.writing=!1,he.writecb=null,he.length-=he.writelen,he.writelen=0}function w(he,ie){var fe=he._writableState,ge=fe.sync,ce=fe.writecb;if(S(fe),ie)p(he,fe,ge,ie,ce);else{var Ie=l(fe);Ie||fe.corked||fe.bufferProcessing||!fe.bufferedRequest||A(he,fe),ge?te(B,he,fe,Ie,ce):B(he,fe,Ie,ce)}}function B(he,ie,fe,ge){fe||b(he,ie),ie.pendingcb--,ge(),O(he,ie)}function b(he,ie){ie.length===0&&ie.needDrain&&(ie.needDrain=!1,he.emit("drain"))}function A(he,ie){ie.bufferProcessing=!0;var fe=ie.bufferedRequest;if(he._writev&&fe&&fe.next){var ge=ie.bufferedRequestCount,ce=new Array(ge),Ie=ie.corkedRequestsFree;Ie.entry=fe;for(var Fe=0,ke=!0;fe;)ce[Fe]=fe,fe.isBuf||(ke=!1),fe=fe.next,Fe+=1;ce.allBuffers=ke,g(he,ie,!0,ie.length,ce,"",Ie.finish),ie.pendingcb++,ie.lastBufferedRequest=null,Ie.next?(ie.corkedRequestsFree=Ie.next,Ie.next=null):ie.corkedRequestsFree=new r(ie),ie.bufferedRequestCount=0}else{for(;fe;){var re=fe.chunk,F=fe.encoding,W=fe.callback;if(g(he,ie,!1,ie.objectMode?1:re.length,re,F,W),fe=fe.next,ie.bufferedRequestCount--,ie.writing)break}fe===null&&(ie.lastBufferedRequest=null)}ie.bufferedRequest=fe,ie.bufferProcessing=!1}function l(he){return he.ending&&he.length===0&&he.bufferedRequest===null&&!he.finished&&!he.writing}function i(he,ie){he._final(function(fe){ie.pendingcb--,fe&&he.emit("error",fe),ie.prefinished=!0,he.emit("prefinish"),O(he,ie)})}function x(he,ie){ie.prefinished||ie.finalCalled||(typeof he._final=="function"?(ie.pendingcb++,ie.finalCalled=!0,Q.nextTick(i,he,ie)):(ie.prefinished=!0,he.emit("prefinish")))}function O(he,ie){var fe=l(ie);return fe&&(x(he,ie),ie.pendingcb===0&&(ie.finished=!0,he.emit("finish"))),fe}function T(he,ie,fe){ie.ending=!0,O(he,ie),fe&&(ie.finished?Q.nextTick(fe):he.once("finish",fe)),ie.ended=!0,he.writable=!1}function D(he,ie,fe){var ge=he.entry;for(he.entry=null;ge;){var ce=ge.callback;ie.pendingcb--,ce(fe),ge=ge.next}ie.corkedRequestsFree?ie.corkedRequestsFree.next=he:ie.corkedRequestsFree=he}var R=y("babel-runtime/core-js/object/define-property"),k=c(R),H=y("babel-runtime/core-js/symbol/has-instance"),J=c(H),U=y("babel-runtime/core-js/symbol"),K=c(U),G=y("babel-runtime/core-js/set-immediate"),N=c(G),Q=y("process-nextick-args");E.exports=o;var X,te=!C.browser&&["v0.10","v0.9."].indexOf(C.version.slice(0,5))>-1?N.default:Q.nextTick;o.WritableState=u;var oe=y("core-util-is");oe.inherits=y("inherits");var me={deprecate:y("util-deprecate")},se=y("./internal/streams/stream"),_e=y("safe-buffer").Buffer,Ae=m.Uint8Array||function(){},Ee=y("./internal/streams/destroy");oe.inherits(o,se),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:me.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(he){}}();var pe;typeof K.default=="function"&&J.default&&typeof Function.prototype[J.default]=="function"?(pe=Function.prototype[J.default],(0,k.default)(o,J.default,{value:function(he){return!!pe.call(this,he)||this===o&&he&&he._writableState instanceof u}})):pe=function(he){return he instanceof this},o.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},o.prototype.write=function(he,ie,fe){var ge=this._writableState,ce=!1,Ie=!ge.objectMode&&e(he);return Ie&&!_e.isBuffer(he)&&(he=n(he)),typeof ie=="function"&&(fe=ie,ie=null),Ie?ie="buffer":ie||(ie=ge.defaultEncoding),typeof fe!="function"&&(fe=s),ge.ended?f(this,fe):(Ie||d(this,ge,he,fe))&&(ge.pendingcb++,ce=h(this,ge,Ie,he,ie,fe)),ce},o.prototype.cork=function(){this._writableState.corked++},o.prototype.uncork=function(){var he=this._writableState;he.corked&&(he.corked--,he.writing||he.corked||he.finished||he.bufferProcessing||!he.bufferedRequest||A(this,he))},o.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(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),o.prototype._write=function(he,ie,fe){fe(new Error("_write() is not implemented"))},o.prototype._writev=null,o.prototype.end=function(he,ie,fe){var ge=this._writableState;typeof he=="function"?(fe=he,he=null,ie=null):typeof ie=="function"&&(fe=ie,ie=null),he!=null&&this.write(he,ie),ge.corked&&(ge.corked=1,this.uncork()),ge.ending||ge.finished||T(this,ge,fe)},Object.defineProperty(o.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(he){this._writableState&&(this._writableState.destroyed=he)}}),o.prototype.destroy=Ee.destroy,o.prototype._undestroy=Ee.undestroy,o.prototype._destroy=function(he,ie){this.end(),ie(he)}}).call(this,y("_process"),typeof ue!="undefined"?ue: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(y,E,_){"use strict";function C(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function m(n,e,s){n.copy(e,s)}var c=y("safe-buffer").Buffer,r=y("util");E.exports=function(){function n(){C(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 c.alloc(0);if(this.length===1)return this.head.data;for(var s=c.allocUnsafe(e>>>0),u=this.head,o=0;u;)m(u.data,s,o),o+=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(y,E,_){"use strict";function C(n,e){var s=this,u=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return u||o?(e?e(n):!n||this._writableState&&this._writableState.errorEmitted||r.nextTick(c,this,n),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(n||null,function(f){!e&&f?(r.nextTick(c,s,f),s._writableState&&(s._writableState.errorEmitted=!0)):e&&e(f)}),this)}function m(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function c(n,e){n.emit("error",e)}var r=y("process-nextick-args");E.exports={destroy:C,undestroy:m}},{"process-nextick-args":172}],186:[function(y,E,_){"use strict";E.exports=y("events").EventEmitter},{events:158}],187:[function(y,E,_){E.exports=y("./readable").PassThrough},{"./readable":188}],188:[function(y,E,_){_=E.exports=y("./lib/_stream_readable.js"),_.Stream=_,_.Readable=_,_.Writable=y("./lib/_stream_writable.js"),_.Duplex=y("./lib/_stream_duplex.js"),_.Transform=y("./lib/_stream_transform.js"),_.PassThrough=y("./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(y,E,_){E.exports=y("./readable").Transform},{"./readable":188}],190:[function(y,E,_){E.exports=y("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":183}],191:[function(y,E,_){var C=function(){return this}()||Function("return this")(),m=C.regeneratorRuntime&&Object.getOwnPropertyNames(C).indexOf("regeneratorRuntime")>=0,c=m&&C.regeneratorRuntime;if(C.regeneratorRuntime=void 0,E.exports=y("./runtime"),m)C.regeneratorRuntime=c;else try{delete C.regeneratorRuntime}catch(r){C.regeneratorRuntime=void 0}},{"./runtime":192}],192:[function(y,E,_){!function(C){"use strict";function m(N,Q,X,te){var oe=Q&&Q.prototype instanceof r?Q:r,me=Object.create(oe.prototype),se=new h(te||[]);return me._invoke=o(N,X,se),me}function c(N,Q,X){try{return{type:"normal",arg:N.call(Q,X)}}catch(te){return{type:"throw",arg:te}}}function r(){}function n(){}function e(){}function s(N){["next","throw","return"].forEach(function(Q){N[Q]=function(X){return this._invoke(Q,X)}})}function u(N){function Q(oe,me,se,_e){var Ae=c(N[oe],N,me);if(Ae.type!=="throw"){var Ee=Ae.arg,pe=Ee.value;return pe&&typeof pe=="object"&&B.call(pe,"__await")?Promise.resolve(pe.__await).then(function(he){Q("next",he,se,_e)},function(he){Q("throw",he,se,_e)}):Promise.resolve(pe).then(function(he){Ee.value=he,se(Ee)},_e)}_e(Ae.arg)}function X(oe,me){function se(){return new Promise(function(_e,Ae){Q(oe,me,_e,Ae)})}return te=te?te.then(se,se):se()}var te;this._invoke=X}function o(N,Q,X){var te=T;return function(oe,me){if(te===R)throw new Error("Generator is already running");if(te===k){if(oe==="throw")throw me;return p()}for(X.method=oe,X.arg=me;;){var se=X.delegate;if(se){var _e=f(se,X);if(_e){if(_e===H)continue;return _e}}if(X.method==="next")X.sent=X._sent=X.arg;else if(X.method==="throw"){if(te===T)throw te=k,X.arg;X.dispatchException(X.arg)}else X.method==="return"&&X.abrupt("return",X.arg);te=R;var Ae=c(N,Q,X);if(Ae.type==="normal"){if(te=X.done?k:D,Ae.arg===H)continue;return{value:Ae.arg,done:X.done}}Ae.type==="throw"&&(te=k,X.method="throw",X.arg=Ae.arg)}}}function f(N,Q){var X=N.iterator[Q.method];if(X===S){if(Q.delegate=null,Q.method==="throw"){if(N.iterator.return&&(Q.method="return",Q.arg=S,f(N,Q),Q.method==="throw"))return H;Q.method="throw",Q.arg=new TypeError("The iterator does not provide a 'throw' method")}return H}var te=c(X,N.iterator,Q.arg);if(te.type==="throw")return Q.method="throw",Q.arg=te.arg,Q.delegate=null,H;var oe=te.arg;return oe?oe.done?(Q[N.resultName]=oe.value,Q.next=N.nextLoc,Q.method!=="return"&&(Q.method="next",Q.arg=S),Q.delegate=null,H):oe:(Q.method="throw",Q.arg=new TypeError("iterator result is not an object"),Q.delegate=null,H)}function d(N){var Q={tryLoc:N[0]};1 in N&&(Q.catchLoc=N[1]),2 in N&&(Q.finallyLoc=N[2],Q.afterLoc=N[3]),this.tryEntries.push(Q)}function a(N){var Q=N.completion||{};Q.type="normal",delete Q.arg,N.completion=Q}function h(N){this.tryEntries=[{tryLoc:"root"}],N.forEach(d,this),this.reset(!0)}function g(N){if(N){var Q=N[A];if(Q)return Q.call(N);if(typeof N.next=="function")return N;if(!isNaN(N.length)){var X=-1,te=function oe(){for(;++X<N.length;)if(B.call(N,X))return oe.value=N[X],oe.done=!1,oe;return oe.value=S,oe.done=!0,oe};return te.next=te}}return{next:p}}function p(){return{value:S,done:!0}}var S,w=Object.prototype,B=w.hasOwnProperty,b=typeof Symbol=="function"?Symbol:{},A=b.iterator||"@@iterator",l=b.asyncIterator||"@@asyncIterator",i=b.toStringTag||"@@toStringTag",x=typeof E=="object",O=C.regeneratorRuntime;if(O)return void(x&&(E.exports=O));O=C.regeneratorRuntime=x?E.exports:{},O.wrap=m;var T="suspendedStart",D="suspendedYield",R="executing",k="completed",H={},J={};J[A]=function(){return this};var U=Object.getPrototypeOf,K=U&&U(U(g([])));K&&K!==w&&B.call(K,A)&&(J=K);var G=e.prototype=r.prototype=Object.create(J);n.prototype=G.constructor=e,e.constructor=n,e[i]=n.displayName="GeneratorFunction",O.isGeneratorFunction=function(N){var Q=typeof N=="function"&&N.constructor;return!!Q&&(Q===n||(Q.displayName||Q.name)==="GeneratorFunction")},O.mark=function(N){return Object.setPrototypeOf?Object.setPrototypeOf(N,e):(N.__proto__=e,i in N||(N[i]="GeneratorFunction")),N.prototype=Object.create(G),N},O.awrap=function(N){return{__await:N}},s(u.prototype),u.prototype[l]=function(){return this},O.AsyncIterator=u,O.async=function(N,Q,X,te){var oe=new u(m(N,Q,X,te));return O.isGeneratorFunction(Q)?oe:oe.next().then(function(me){return me.done?me.value:oe.next()})},s(G),G[i]="Generator",G[A]=function(){return this},G.toString=function(){return"[object Generator]"},O.keys=function(N){var Q=[];for(var X in N)Q.push(X);return Q.reverse(),function te(){for(;Q.length;){var oe=Q.pop();if(oe in N)return te.value=oe,te.done=!1,te}return te.done=!0,te}},O.values=g,h.prototype={constructor:h,reset:function(N){if(this.prev=0,this.next=0,this.sent=this._sent=S,this.done=!1,this.delegate=null,this.method="next",this.arg=S,this.tryEntries.forEach(a),!N)for(var Q in this)Q.charAt(0)==="t"&&B.call(this,Q)&&!isNaN(+Q.slice(1))&&(this[Q]=S)},stop:function(){this.done=!0;var N=this.tryEntries[0],Q=N.completion;if(Q.type==="throw")throw Q.arg;return this.rval},dispatchException:function(N){function Q(Ae,Ee){return me.type="throw",me.arg=N,X.next=Ae,Ee&&(X.method="next",X.arg=S),!!Ee}if(this.done)throw N;for(var X=this,te=this.tryEntries.length-1;te>=0;--te){var oe=this.tryEntries[te],me=oe.completion;if(oe.tryLoc==="root")return Q("end");if(oe.tryLoc<=this.prev){var se=B.call(oe,"catchLoc"),_e=B.call(oe,"finallyLoc");if(se&&_e){if(this.prev<oe.catchLoc)return Q(oe.catchLoc,!0);if(this.prev<oe.finallyLoc)return Q(oe.finallyLoc)}else if(se){if(this.prev<oe.catchLoc)return Q(oe.catchLoc,!0)}else{if(!_e)throw new Error("try statement without catch or finally");if(this.prev<oe.finallyLoc)return Q(oe.finallyLoc)}}}},abrupt:function(N,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&&(N==="break"||N==="continue")&&oe.tryLoc<=Q&&Q<=oe.finallyLoc&&(oe=null);var me=oe?oe.completion:{};return me.type=N,me.arg=Q,oe?(this.method="next",this.next=oe.finallyLoc,H):this.complete(me)},complete:function(N,Q){if(N.type==="throw")throw N.arg;return N.type==="break"||N.type==="continue"?this.next=N.arg:N.type==="return"?(this.rval=this.arg=N.arg,this.method="return",this.next="end"):N.type==="normal"&&Q&&(this.next=Q),H},finish:function(N){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var X=this.tryEntries[Q];if(X.finallyLoc===N)return this.complete(X.completion,X.afterLoc),a(X),H}},catch:function(N){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var X=this.tryEntries[Q];if(X.tryLoc===N){var te=X.completion;if(te.type==="throw"){var oe=te.arg;a(X)}return oe}}throw new Error("illegal catch attempt")},delegateYield:function(N,Q,X){return this.delegate={iterator:g(N),resultName:Q,nextLoc:X},this.method==="next"&&(this.arg=S),H}}}(function(){return this}()||Function("return this")())},{}],193:[function(y,E,_){function C(n,e){for(var s in n)e[s]=n[s]}function m(n,e,s){return r(n,e,s)}var c=y("buffer"),r=c.Buffer;r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?E.exports=c:(C(c,_),_.Buffer=m),C(r,m),m.from=function(n,e,s){if(typeof n=="number")throw new TypeError("Argument must not be a number");return r(n,e,s)},m.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},m.allocUnsafe=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return r(n)},m.allocUnsafeSlow=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return c.SlowBuffer(n)}},{buffer:38}],194:[function(y,E,_){(function(C){"use strict";function m(p){return p&&p.__esModule?p:{default:p}}var c=y("babel-runtime/core-js/string/from-code-point"),r=m(c),n=y("babel-runtime/core-js/json/stringify"),e=m(n),s=y("babel-runtime/helpers/typeof"),u=m(s),o=y("babel-runtime/core-js/object/define-property"),f=m(o),d=y("babel-runtime/core-js/object/keys"),a=m(d),h=y("babel-runtime/core-js/object/create"),g=m(h);!function(p){function S(ne,le){if(!(this instanceof S))return new S(ne,le);var De=this;B(De),De.q=De.c="",De.bufferCheckPosition=p.MAX_BUFFER_LENGTH,De.opt=le||{},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,g.default)(p.XML_ENTITIES):(0,g.default)(p.ENTITIES),De.attribList=[],De.opt.xmlns&&(De.ns=(0,g.default)(Ie)),De.trackPosition=De.opt.position!==!1,De.trackPosition&&(De.position=De.line=De.column=0),R(De,"onready")}function w(ne){for(var le=Math.max(p.MAX_BUFFER_LENGTH,10),De=0,Xe=0,xt=Ee.length;Xe<xt;Xe++){var Ke=ne[Ee[Xe]].length;if(Ke>le)switch(Ee[Xe]){case"textNode":H(ne);break;case"cdata":k(ne,"oncdata",ne.cdata),ne.cdata="";break;case"script":k(ne,"onscript",ne.script),ne.script="";break;default:U(ne,"Max buffer length exceeded: "+Ee[Xe])}De=Math.max(De,Ke)}var ze=p.MAX_BUFFER_LENGTH-De;ne.bufferCheckPosition=ze+ne.position}function B(ne){for(var le=0,De=Ee.length;le<De;le++)ne[Ee[le]]=""}function b(ne){H(ne),ne.cdata!==""&&(k(ne,"oncdata",ne.cdata),ne.cdata=""),ne.script!==""&&(k(ne,"onscript",ne.script),ne.script="")}function A(ne,le){return new l(ne,le)}function l(ne,le){if(!(this instanceof l))return new l(ne,le);pe.apply(this),this._parser=new S(ne,le),this.writable=!0,this.readable=!0;var De=this;this._parser.onend=function(){De.emit("end")},this._parser.onerror=function(Xe){De.emit("error",Xe),De._parser.error=null},this._decoder=null,he.forEach(function(Xe){(0,f.default)(De,"on"+Xe,{get:function(){return De._parser["on"+Xe]},set:function(xt){if(!xt)return De.removeAllListeners(Xe),De._parser["on"+Xe]=xt,xt;De.on(Xe,xt)},enumerable:!0,configurable:!1})})}function i(ne){return ne===" "||ne===`
`||ne==="\r"||ne===" "}function x(ne){return ne==='"'||ne==="'"}function O(ne){return ne===">"||i(ne)}function T(ne,le){return ne.test(le)}function D(ne,le){return!T(ne,le)}function R(ne,le,De){ne[le]&&ne[le](De)}function k(ne,le,De){ne.textNode&&H(ne),R(ne,le,De)}function H(ne){ne.textNode=J(ne.opt,ne.textNode),ne.textNode&&R(ne,"ontext",ne.textNode),ne.textNode=""}function J(ne,le){return ne.trim&&(le=le.trim()),ne.normalize&&(le=le.replace(/\s+/g," ")),le}function U(ne,le){return H(ne),ne.trackPosition&&(le+=`
Line: `+ne.line+`
Column: `+ne.column+`
Char: `+ne.c),le=new Error(le),ne.error=le,R(ne,"onerror",le),ne}function K(ne){return ne.sawRoot&&!ne.closedRoot&&G(ne,"Unclosed root tag"),ne.state!==W.BEGIN&&ne.state!==W.BEGIN_WHITESPACE&&ne.state!==W.TEXT&&U(ne,"Unexpected end"),H(ne),ne.c="",ne.closed=!0,R(ne,"onend"),S.call(ne,ne.strict,ne.opt),ne}function G(ne,le){if((ne===void 0?"undefined":(0,u.default)(ne))!=="object"||!(ne instanceof S))throw new Error("bad call to strictFail");ne.strict&&U(ne,le)}function N(ne){ne.strict||(ne.tagName=ne.tagName[ne.looseCase]());var le=ne.tags[ne.tags.length-1]||ne,De=ne.tag={name:ne.tagName,attributes:{}};ne.opt.xmlns&&(De.ns=le.ns),ne.attribList.length=0,k(ne,"onopentagstart",De)}function Q(ne,le){var De=ne.indexOf(":"),Xe=De<0?["",ne]:ne.split(":"),xt=Xe[0],Ke=Xe[1];return le&&ne==="xmlns"&&(xt="xmlns",Ke=""),{prefix:xt,local:Ke}}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 le=Q(ne.attribName,!0),De=le.prefix,Xe=le.local;if(De==="xmlns")if(Xe==="xml"&&ne.attribValue!==ge)G(ne,"xml: prefix must be bound to "+ge+`
Actual: `+ne.attribValue);else if(Xe==="xmlns"&&ne.attribValue!==ce)G(ne,"xmlns: prefix must be bound to "+ce+`
Actual: `+ne.attribValue);else{var xt=ne.tag,Ke=ne.tags[ne.tags.length-1]||ne;xt.ns===Ke.ns&&(xt.ns=(0,g.default)(Ke.ns)),xt.ns[Xe]=ne.attribValue}ne.attribList.push([ne.attribName,ne.attribValue])}else ne.tag.attributes[ne.attribName]=ne.attribValue,k(ne,"onattribute",{name:ne.attribName,value:ne.attribValue});ne.attribName=ne.attribValue=""}function te(ne,le){if(ne.opt.xmlns){var De=ne.tag,Xe=Q(ne.tagName);De.prefix=Xe.prefix,De.local=Xe.local,De.uri=De.ns[Xe.prefix]||"",De.prefix&&!De.uri&&(G(ne,"Unbound namespace prefix: "+(0,e.default)(ne.tagName)),De.uri=Xe.prefix);var xt=ne.tags[ne.tags.length-1]||ne;De.ns&&xt.ns!==De.ns&&(0,a.default)(De.ns).forEach(function(je){k(ne,"onopennamespace",{prefix:je,uri:De.ns[je]})});for(var Ke=0,ze=ne.attribList.length;Ke<ze;Ke++){var yt=ne.attribList[Ke],Et=yt[0],ct=yt[1],lt=Q(Et,!0),rt=lt.prefix,qe=lt.local,$e=rt===""?"":De.ns[rt]||"",Pe={name:Et,value:ct,prefix:rt,local:qe,uri:$e};rt&&rt!=="xmlns"&&!$e&&(G(ne,"Unbound namespace prefix: "+(0,e.default)(rt)),Pe.uri=rt),ne.tag.attributes[Et]=Pe,k(ne,"onattribute",Pe)}ne.attribList.length=0}ne.tag.isSelfClosing=!!le,ne.sawRoot=!0,ne.tags.push(ne.tag),k(ne,"onopentag",ne.tag),le||(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 G(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);k(ne,"onscript",ne.script),ne.script=""}var le=ne.tags.length,De=ne.tagName;ne.strict||(De=De[ne.looseCase]());for(var Xe=De;le--&&!(ne.tags[le].name===Xe);)G(ne,"Unexpected close tag");if(le<0)return G(ne,"Unmatched closing tag: "+ne.tagName),ne.textNode+="</"+ne.tagName+">",void(ne.state=W.TEXT);ne.tagName=De;for(var xt=ne.tags.length;xt-- >le;){var Ke=ne.tag=ne.tags.pop();ne.tagName=ne.tag.name,k(ne,"onclosetag",ne.tagName);var ze={};for(var yt in Ke.ns)ze[yt]=Ke.ns[yt];var Et=ne.tags[ne.tags.length-1]||ne;ne.opt.xmlns&&Ke.ns!==Et.ns&&(0,a.default)(Ke.ns).forEach(function(ct){var lt=Ke.ns[ct];k(ne,"onclosenamespace",{prefix:ct,uri:lt})})}le===0&&(ne.closedRoot=!0),ne.tagName=ne.attribValue=ne.attribName="",ne.attribList.length=0,ne.state=W.TEXT}function me(ne){var le,De=ne.entity,Xe=De.toLowerCase(),xt="";return ne.ENTITIES[De]?ne.ENTITIES[De]:ne.ENTITIES[Xe]?ne.ENTITIES[Xe]:(De=Xe,De.charAt(0)==="#"&&(De.charAt(1)==="x"?(De=De.slice(2),le=parseInt(De,16),xt=le.toString(16)):(De=De.slice(1),le=parseInt(De,10),xt=le.toString(10))),De=De.replace(/^0+/,""),isNaN(le)||xt.toLowerCase()!==De?(G(ne,"Invalid character entity"),"&"+ne.entity+";"):(0,r.default)(le))}function se(ne,le){le==="<"?(ne.state=W.OPEN_WAKA,ne.startTagPosition=ne.position):i(le)||(G(ne,"Non-whitespace before first tag."),ne.textNode=le,ne.state=W.TEXT)}function _e(ne,le){var De="";return le<ne.length&&(De=ne.charAt(le)),De}function Ae(ne){var le=this;if(this.error)throw this.error;if(le.closed)return U(le,"Cannot write after close. Assign an onready handler.");if(ne===null)return K(le);(ne===void 0?"undefined":(0,u.default)(ne))==="object"&&(ne=ne.toString());for(var De=0,Xe="";!(Xe=_e(ne,De++),le.c=Xe,!Xe);)switch(le.trackPosition&&(le.position++,Xe===`
`?(le.line++,le.column=0):le.column++),le.state){case W.BEGIN:if(le.state=W.BEGIN_WHITESPACE,Xe==="\uFEFF")continue;se(le,Xe);continue;case W.BEGIN_WHITESPACE:se(le,Xe);continue;case W.TEXT:if(le.sawRoot&&!le.closedRoot){for(var xt=De-1;Xe&&Xe!=="<"&&Xe!=="&";)(Xe=_e(ne,De++))&&le.trackPosition&&(le.position++,Xe===`
`?(le.line++,le.column=0):le.column++);le.textNode+=ne.substring(xt,De-1)}Xe!=="<"||le.sawRoot&&le.closedRoot&&!le.strict?(i(Xe)||le.sawRoot&&!le.closedRoot||G(le,"Text data outside of root node."),Xe==="&"?le.state=W.TEXT_ENTITY:le.textNode+=Xe):(le.state=W.OPEN_WAKA,le.startTagPosition=le.position);continue;case W.SCRIPT:Xe==="<"?le.state=W.SCRIPT_ENDING:le.script+=Xe;continue;case W.SCRIPT_ENDING:Xe==="/"?le.state=W.CLOSE_TAG:(le.script+="<"+Xe,le.state=W.SCRIPT);continue;case W.OPEN_WAKA:if(Xe==="!")le.state=W.SGML_DECL,le.sgmlDecl="";else if(!i(Xe))if(T(Fe,Xe))le.state=W.OPEN_TAG,le.tagName=Xe;else if(Xe==="/")le.state=W.CLOSE_TAG,le.tagName="";else if(Xe==="?")le.state=W.PROC_INST,le.procInstName=le.procInstBody="";else{if(G(le,"Unencoded <"),le.startTagPosition+1<le.position){var Ke=le.position-le.startTagPosition;Xe=new Array(Ke).join(" ")+Xe}le.textNode+="<"+Xe,le.state=W.TEXT}continue;case W.SGML_DECL:(le.sgmlDecl+Xe).toUpperCase()===ie?(k(le,"onopencdata"),le.state=W.CDATA,le.sgmlDecl="",le.cdata=""):le.sgmlDecl+Xe==="--"?(le.state=W.COMMENT,le.comment="",le.sgmlDecl=""):(le.sgmlDecl+Xe).toUpperCase()===fe?(le.state=W.DOCTYPE,(le.doctype||le.sawRoot)&&G(le,"Inappropriately located doctype declaration"),le.doctype="",le.sgmlDecl=""):Xe===">"?(k(le,"onsgmldeclaration",le.sgmlDecl),le.sgmlDecl="",le.state=W.TEXT):(x(Xe)&&(le.state=W.SGML_DECL_QUOTED),le.sgmlDecl+=Xe);continue;case W.SGML_DECL_QUOTED:Xe===le.q&&(le.state=W.SGML_DECL,le.q=""),le.sgmlDecl+=Xe;continue;case W.DOCTYPE:Xe===">"?(le.state=W.TEXT,k(le,"ondoctype",le.doctype),le.doctype=!0):(le.doctype+=Xe,Xe==="["?le.state=W.DOCTYPE_DTD:x(Xe)&&(le.state=W.DOCTYPE_QUOTED,le.q=Xe));continue;case W.DOCTYPE_QUOTED:le.doctype+=Xe,Xe===le.q&&(le.q="",le.state=W.DOCTYPE);continue;case W.DOCTYPE_DTD:le.doctype+=Xe,Xe==="]"?le.state=W.DOCTYPE:x(Xe)&&(le.state=W.DOCTYPE_DTD_QUOTED,le.q=Xe);continue;case W.DOCTYPE_DTD_QUOTED:le.doctype+=Xe,Xe===le.q&&(le.state=W.DOCTYPE_DTD,le.q="");continue;case W.COMMENT:Xe==="-"?le.state=W.COMMENT_ENDING:le.comment+=Xe;continue;case W.COMMENT_ENDING:Xe==="-"?(le.state=W.COMMENT_ENDED,le.comment=J(le.opt,le.comment),le.comment&&k(le,"oncomment",le.comment),le.comment=""):(le.comment+="-"+Xe,le.state=W.COMMENT);continue;case W.COMMENT_ENDED:Xe!==">"?(G(le,"Malformed comment"),le.comment+="--"+Xe,le.state=W.COMMENT):le.state=W.TEXT;continue;case W.CDATA:Xe==="]"?le.state=W.CDATA_ENDING:le.cdata+=Xe;continue;case W.CDATA_ENDING:Xe==="]"?le.state=W.CDATA_ENDING_2:(le.cdata+="]"+Xe,le.state=W.CDATA);continue;case W.CDATA_ENDING_2:Xe===">"?(le.cdata&&k(le,"oncdata",le.cdata),k(le,"onclosecdata"),le.cdata="",le.state=W.TEXT):Xe==="]"?le.cdata+="]":(le.cdata+="]]"+Xe,le.state=W.CDATA);continue;case W.PROC_INST:Xe==="?"?le.state=W.PROC_INST_ENDING:i(Xe)?le.state=W.PROC_INST_BODY:le.procInstName+=Xe;continue;case W.PROC_INST_BODY:if(!le.procInstBody&&i(Xe))continue;Xe==="?"?le.state=W.PROC_INST_ENDING:le.procInstBody+=Xe;continue;case W.PROC_INST_ENDING:Xe===">"?(k(le,"onprocessinginstruction",{name:le.procInstName,body:le.procInstBody}),le.procInstName=le.procInstBody="",le.state=W.TEXT):(le.procInstBody+="?"+Xe,le.state=W.PROC_INST_BODY);continue;case W.OPEN_TAG:T(ke,Xe)?le.tagName+=Xe:(N(le),Xe===">"?te(le):Xe==="/"?le.state=W.OPEN_TAG_SLASH:(i(Xe)||G(le,"Invalid character in tag name"),le.state=W.ATTRIB));continue;case W.OPEN_TAG_SLASH:Xe===">"?(te(le,!0),oe(le)):(G(le,"Forward-slash in opening tag not followed by >"),le.state=W.ATTRIB);continue;case W.ATTRIB:if(i(Xe))continue;Xe===">"?te(le):Xe==="/"?le.state=W.OPEN_TAG_SLASH:T(Fe,Xe)?(le.attribName=Xe,le.attribValue="",le.state=W.ATTRIB_NAME):G(le,"Invalid attribute name");continue;case W.ATTRIB_NAME:Xe==="="?le.state=W.ATTRIB_VALUE:Xe===">"?(G(le,"Attribute without value"),le.attribValue=le.attribName,X(le),te(le)):i(Xe)?le.state=W.ATTRIB_NAME_SAW_WHITE:T(ke,Xe)?le.attribName+=Xe:G(le,"Invalid attribute name");continue;case W.ATTRIB_NAME_SAW_WHITE:if(Xe==="=")le.state=W.ATTRIB_VALUE;else{if(i(Xe))continue;G(le,"Attribute without value"),le.tag.attributes[le.attribName]="",le.attribValue="",k(le,"onattribute",{name:le.attribName,value:""}),le.attribName="",Xe===">"?te(le):T(Fe,Xe)?(le.attribName=Xe,le.state=W.ATTRIB_NAME):(G(le,"Invalid attribute name"),le.state=W.ATTRIB)}continue;case W.ATTRIB_VALUE:if(i(Xe))continue;x(Xe)?(le.q=Xe,le.state=W.ATTRIB_VALUE_QUOTED):(G(le,"Unquoted attribute value"),le.state=W.ATTRIB_VALUE_UNQUOTED,le.attribValue=Xe);continue;case W.ATTRIB_VALUE_QUOTED:if(Xe!==le.q){Xe==="&"?le.state=W.ATTRIB_VALUE_ENTITY_Q:le.attribValue+=Xe;continue}X(le),le.q="",le.state=W.ATTRIB_VALUE_CLOSED;continue;case W.ATTRIB_VALUE_CLOSED:i(Xe)?le.state=W.ATTRIB:Xe===">"?te(le):Xe==="/"?le.state=W.OPEN_TAG_SLASH:T(Fe,Xe)?(G(le,"No whitespace between attributes"),le.attribName=Xe,le.attribValue="",le.state=W.ATTRIB_NAME):G(le,"Invalid attribute name");continue;case W.ATTRIB_VALUE_UNQUOTED:if(!O(Xe)){Xe==="&"?le.state=W.ATTRIB_VALUE_ENTITY_U:le.attribValue+=Xe;continue}X(le),Xe===">"?te(le):le.state=W.ATTRIB;continue;case W.CLOSE_TAG:if(le.tagName)Xe===">"?oe(le):T(ke,Xe)?le.tagName+=Xe:le.script?(le.script+="</"+le.tagName,le.tagName="",le.state=W.SCRIPT):(i(Xe)||G(le,"Invalid tagname in closing tag"),le.state=W.CLOSE_TAG_SAW_WHITE);else{if(i(Xe))continue;D(Fe,Xe)?le.script?(le.script+="</"+Xe,le.state=W.SCRIPT):G(le,"Invalid tagname in closing tag."):le.tagName=Xe}continue;case W.CLOSE_TAG_SAW_WHITE:if(i(Xe))continue;Xe===">"?oe(le):G(le,"Invalid characters in closing tag");continue;case W.TEXT_ENTITY:case W.ATTRIB_VALUE_ENTITY_Q:case W.ATTRIB_VALUE_ENTITY_U:var ze,yt;switch(le.state){case W.TEXT_ENTITY:ze=W.TEXT,yt="textNode";break;case W.ATTRIB_VALUE_ENTITY_Q:ze=W.ATTRIB_VALUE_QUOTED,yt="attribValue";break;case W.ATTRIB_VALUE_ENTITY_U:ze=W.ATTRIB_VALUE_UNQUOTED,yt="attribValue"}Xe===";"?(le[yt]+=me(le),le.entity="",le.state=ze):T(le.entity.length?F:re,Xe)?le.entity+=Xe:(G(le,"Invalid character in entity name"),le[yt]+="&"+le.entity+Xe,le.entity="",le.state=ze);continue;default:throw new Error(le,"Unknown state: "+le.state)}return le.position>=le.bufferCheckPosition&&w(le),le}p.parser=function(ne,le){return new S(ne,le)},p.SAXParser=S,p.SAXStream=l,p.createStream=A,p.MAX_BUFFER_LENGTH=65536;var Ee=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];p.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],g.default||(Object.create=function(ne){function le(){}return le.prototype=ne,new le}),a.default||(Object.keys=function(ne){var le=[];for(var De in ne)ne.hasOwnProperty(De)&&le.push(De);return le}),S.prototype={end:function(){K(this)},write:Ae,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){b(this)}};var pe;try{pe=y("stream").Stream}catch(ne){pe=function(){}}var he=p.EVENTS.filter(function(ne){return ne!=="error"&&ne!=="end"});l.prototype=(0,g.default)(pe.prototype,{constructor:{value:l}}),l.prototype.write=function(ne){if(typeof C=="function"&&typeof C.isBuffer=="function"&&C.isBuffer(ne)){if(!this._decoder){var le=y("string_decoder").StringDecoder;this._decoder=new le("utf8")}ne=this._decoder.write(ne)}return this._parser.write(ne.toString()),this.emit("data",ne),!0},l.prototype.end=function(ne){return ne&&ne.length&&this.write(ne),this._parser.end(),!0},l.prototype.on=function(ne,le){var De=this;return De._parser["on"+ne]||he.indexOf(ne)===-1||(De._parser["on"+ne]=function(){var Xe=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);Xe.splice(0,0,ne),De.emit.apply(De,Xe)}),pe.prototype.on.call(De,ne,le)};var ie="[CDATA[",fe="DOCTYPE",ge="http://www.w3.org/XML/1998/namespace",ce="http://www.w3.org/2000/xmlns/",Ie={xml:ge,xmlns:ce},Fe=/[:_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]/,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\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]/,F=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,W=0;p.STATE={BEGIN:W++,BEGIN_WHITESPACE:W++,TEXT:W++,TEXT_ENTITY:W++,OPEN_WAKA:W++,SGML_DECL:W++,SGML_DECL_QUOTED:W++,DOCTYPE:W++,DOCTYPE_QUOTED:W++,DOCTYPE_DTD:W++,DOCTYPE_DTD_QUOTED:W++,COMMENT_STARTING:W++,COMMENT:W++,COMMENT_ENDING:W++,COMMENT_ENDED:W++,CDATA:W++,CDATA_ENDING:W++,CDATA_ENDING_2:W++,PROC_INST:W++,PROC_INST_BODY:W++,PROC_INST_ENDING:W++,OPEN_TAG:W++,OPEN_TAG_SLASH:W++,ATTRIB:W++,ATTRIB_NAME:W++,ATTRIB_NAME_SAW_WHITE:W++,ATTRIB_VALUE:W++,ATTRIB_VALUE_QUOTED:W++,ATTRIB_VALUE_CLOSED:W++,ATTRIB_VALUE_UNQUOTED:W++,ATTRIB_VALUE_ENTITY_Q:W++,ATTRIB_VALUE_ENTITY_U:W++,CLOSE_TAG:W++,CLOSE_TAG_SAW_WHITE:W++,SCRIPT:W++,SCRIPT_ENDING:W++},p.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},p.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,a.default)(p.ENTITIES).forEach(function(ne){var le=p.ENTITIES[ne],De=typeof le=="number"?String.fromCharCode(le):le;p.ENTITIES[ne]=De});for(var de in p.STATE)p.STATE[p.STATE[de]]=de;W=p.STATE,r.default||function(){var ne=String.fromCharCode,le=Math.floor,De=function(){var Xe,xt,Ke=[],ze=-1,yt=arguments.length;if(!yt)return"";for(var Et="";++ze<yt;){var ct=Number(arguments[ze]);if(!isFinite(ct)||ct<0||ct>1114111||le(ct)!==ct)throw RangeError("Invalid code point: "+ct);ct<=65535?Ke.push(ct):(ct-=65536,Xe=55296+(ct>>10),xt=ct%1024+56320,Ke.push(Xe,xt)),(ze+1===yt||Ke.length>16384)&&(Et+=ne.apply(null,Ke),Ke.length=0)}return Et};f.default?Object.defineProperty(String,"fromCodePoint",{value:De,configurable:!0,writable:!0}):String.fromCodePoint=De}()}(_===void 0?(void 0).sax={}:_)}).call(this,y("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(y,E,_){function C(){m.call(this)}E.exports=C;var m=y("events").EventEmitter;y("inherits")(C,m),C.Readable=y("readable-stream/readable.js"),C.Writable=y("readable-stream/writable.js"),C.Duplex=y("readable-stream/duplex.js"),C.Transform=y("readable-stream/transform.js"),C.PassThrough=y("readable-stream/passthrough.js"),C.Stream=C,C.prototype.pipe=function(c,r){function n(h){c.writable&&c.write(h)===!1&&d.pause&&d.pause()}function e(){d.readable&&d.resume&&d.resume()}function s(){a||(a=!0,c.end())}function u(){a||(a=!0,typeof c.destroy=="function"&&c.destroy())}function o(h){if(f(),m.listenerCount(this,"error")===0)throw h}function f(){d.removeListener("data",n),c.removeListener("drain",e),d.removeListener("end",s),d.removeListener("close",u),d.removeListener("error",o),c.removeListener("error",o),d.removeListener("end",f),d.removeListener("close",f),c.removeListener("close",f)}var d=this;d.on("data",n),c.on("drain",e),c._isStdio||r&&r.end===!1||(d.on("end",s),d.on("close",u));var a=!1;return d.on("error",o),c.on("error",o),d.on("end",f),d.on("close",f),c.on("close",f),c.emit("pipe",d),c}},{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(y,E,_){(function(C){var m=y("./lib/request"),c=y("./lib/response"),r=y("xtend"),n=y("builtin-status-codes"),e=y("url"),s=_;s.request=function(u,o){u=typeof u=="string"?e.parse(u):r(u);var f=C.location.protocol.search(/^https?:$/)===-1?"http:":"",d=u.protocol||f,a=u.hostname||u.host,h=u.port,g=u.path||"/";a&&a.indexOf(":")!==-1&&(a="["+a+"]"),u.url=(a?d+"//"+a:"")+(h?":"+h:"")+g,u.method=(u.method||"GET").toUpperCase(),u.headers=u.headers||{};var p=new m(u);return o&&p.on("response",o),p},s.get=function(u,o){var f=s.request(u,o);return f.end(),f},s.ClientRequest=m,s.IncomingMessage=c.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 ue!="undefined"?ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":198,"./lib/response":199,"builtin-status-codes":39,url:203,xtend:236}],197:[function(y,E,_){(function(C){"use strict";function m(){if(n!==void 0)return n;if(C.XMLHttpRequest){n=new C.XMLHttpRequest;try{n.open("GET",C.XDomainRequest?"/":"https://example.com")}catch(u){n=null}}else n=null;return n}function c(u){var o=m();if(!o)return!1;try{return o.responseType=u,o.responseType===u}catch(f){}return!1}function r(u){return typeof u=="function"}_.fetch=r(C.fetch)&&r(C.ReadableStream),_.writableStream=r(C.WritableStream),_.abortController=r(C.AbortController),_.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),_.blobConstructor=!0}catch(u){}var n,e=C.ArrayBuffer!==void 0,s=e&&r(C.ArrayBuffer.prototype.slice);_.arraybuffer=_.fetch||e&&c("arraybuffer"),_.msstream=!_.fetch&&s&&c("ms-stream"),_.mozchunkedarraybuffer=!_.fetch&&e&&c("moz-chunked-arraybuffer"),_.overrideMimeType=_.fetch||!!m()&&r(m().overrideMimeType),_.vbArray=r(C.VBArray),n=null}).call(this,typeof ue!="undefined"?ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],198:[function(y,E,_){(function(C,m,c){"use strict";function r(w,B){return u.fetch&&B?"fetch":u.mozchunkedarraybuffer?"moz-chunked-arraybuffer":u.msstream?"ms-stream":u.arraybuffer&&w?"arraybuffer":u.vbArray&&w?"text:vbarray":"text"}function n(w){try{var B=w.status;return B!==null&&B!==0}catch(b){return!1}}var e=y("babel-runtime/core-js/object/keys"),s=function(w){return w&&w.__esModule?w:{default:w}}(e),u=y("./capability"),o=y("inherits"),f=y("./response"),d=y("readable-stream"),a=y("to-arraybuffer"),h=f.IncomingMessage,g=f.readyStates,p=E.exports=function(w){var B=this;d.Writable.call(B),B._opts=w,B._body=[],B._headers={},w.auth&&B.setHeader("Authorization","Basic "+new c(w.auth).toString("base64")),(0,s.default)(w.headers).forEach(function(l){B.setHeader(l,w.headers[l])});var b,A=!0;if(w.mode==="disable-fetch"||"requestTimeout"in w&&!u.abortController)A=!1,b=!0;else if(w.mode==="prefer-streaming")b=!1;else if(w.mode==="allow-wrong-content-type")b=!u.overrideMimeType;else{if(w.mode&&w.mode!=="default"&&w.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");b=!0}B._mode=r(b,A),B._fetchTimer=null,B.on("finish",function(){B._onFinish()})};o(p,d.Writable),p.prototype.setHeader=function(w,B){var b=this,A=w.toLowerCase();S.indexOf(A)===-1&&(b._headers[A]={name:w,value:B})},p.prototype.getHeader=function(w){var B=this._headers[w.toLowerCase()];return B?B.value:null},p.prototype.removeHeader=function(w){delete this._headers[w.toLowerCase()]},p.prototype._onFinish=function(){var w=this;if(!w._destroyed){var B=w._opts,b=w._headers,A=null;B.method!=="GET"&&B.method!=="HEAD"&&(A=u.arraybuffer?a(c.concat(w._body)):u.blobConstructor?new m.Blob(w._body.map(function(T){return a(T)}),{type:(b["content-type"]||{}).value||""}):c.concat(w._body).toString());var l=[];if((0,s.default)(b).forEach(function(T){var D=b[T].name,R=b[T].value;Array.isArray(R)?R.forEach(function(k){l.push([D,k])}):l.push([D,R])}),w._mode==="fetch"){var i=null;if(u.abortController){var x=new AbortController;i=x.signal,w._fetchAbortController=x,"requestTimeout"in B&&B.requestTimeout!==0&&(w._fetchTimer=m.setTimeout(function(){w.emit("requestTimeout"),w._fetchAbortController&&w._fetchAbortController.abort()},B.requestTimeout))}m.fetch(w._opts.url,{method:w._opts.method,headers:l,body:A||void 0,mode:"cors",credentials:B.withCredentials?"include":"same-origin",signal:i}).then(function(T){w._fetchResponse=T,w._connect()},function(T){m.clearTimeout(w._fetchTimer),w._destroyed||w.emit("error",T)})}else{var O=w._xhr=new m.XMLHttpRequest;try{O.open(w._opts.method,w._opts.url,!0)}catch(T){return void C.nextTick(function(){w.emit("error",T)})}"responseType"in O&&(O.responseType=w._mode.split(":")[0]),"withCredentials"in O&&(O.withCredentials=!!B.withCredentials),w._mode==="text"&&"overrideMimeType"in O&&O.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in B&&(O.timeout=B.requestTimeout,O.ontimeout=function(){w.emit("requestTimeout")}),l.forEach(function(T){O.setRequestHeader(T[0],T[1])}),w._response=null,O.onreadystatechange=function(){switch(O.readyState){case g.LOADING:case g.DONE:w._onXHRProgress()}},w._mode==="moz-chunked-arraybuffer"&&(O.onprogress=function(){w._onXHRProgress()}),O.onerror=function(){w._destroyed||w.emit("error",new Error("XHR error"))};try{O.send(A)}catch(T){return void C.nextTick(function(){w.emit("error",T)})}}}},p.prototype._onXHRProgress=function(){var w=this;n(w._xhr)&&!w._destroyed&&(w._response||w._connect(),w._response._onXHRProgress())},p.prototype._connect=function(){var w=this;w._destroyed||(w._response=new h(w._xhr,w._fetchResponse,w._mode,w._fetchTimer),w._response.on("error",function(B){w.emit("error",B)}),w.emit("response",w._response))},p.prototype._write=function(w,B,b){this._body.push(w),b()},p.prototype.abort=p.prototype.destroy=function(){var w=this;w._destroyed=!0,m.clearTimeout(w._fetchTimer),w._response&&(w._response._destroyed=!0),w._xhr?w._xhr.abort():w._fetchAbortController&&w._fetchAbortController.abort()},p.prototype.end=function(w,B,b){var A=this;typeof w=="function"&&(b=w,w=void 0),d.Writable.prototype.end.call(A,w,B,b)},p.prototype.flushHeaders=function(){},p.prototype.setTimeout=function(){},p.prototype.setNoDelay=function(){},p.prototype.setSocketKeepAlive=function(){};var S=["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,y("_process"),typeof ue!="undefined"?ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{},y("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(y,E,_){(function(C,m,c){"use strict";var r=y("babel-runtime/core-js/promise"),n=function(d){return d&&d.__esModule?d:{default:d}}(r),e=y("./capability"),s=y("inherits"),u=y("readable-stream"),o=_.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},f=_.IncomingMessage=function(d,a,h,g){var p=this;if(u.Readable.call(p),p._mode=h,p.headers={},p.rawHeaders=[],p.trailers={},p.rawTrailers=[],p.on("end",function(){C.nextTick(function(){p.emit("close")})}),h==="fetch"){if(p._fetchResponse=a,p.url=a.url,p.statusCode=a.status,p.statusMessage=a.statusText,a.headers.forEach(function(A,l){p.headers[l.toLowerCase()]=A,p.rawHeaders.push(l,A)}),e.writableStream){var S=new WritableStream({write:function(A){return new n.default(function(l,i){p._destroyed?i():p.push(new c(A))?l():p._resumeFetch=l})},close:function(){m.clearTimeout(g),p._destroyed||p.push(null)},abort:function(A){p._destroyed||p.emit("error",A)}});try{return void a.body.pipeTo(S).catch(function(A){m.clearTimeout(g),p._destroyed||p.emit("error",A)})}catch(A){}}var w=a.body.getReader();!function A(){w.read().then(function(l){if(!p._destroyed){if(l.done)return m.clearTimeout(g),void p.push(null);p.push(new c(l.value)),A()}}).catch(function(l){m.clearTimeout(g),p._destroyed||p.emit("error",l)})}()}else if(p._xhr=d,p._pos=0,p.url=d.responseURL,p.statusCode=d.status,p.statusMessage=d.statusText,d.getAllResponseHeaders().split(/\r?\n/).forEach(function(A){var l=A.match(/^([^:]+):\s*(.*)/);if(l){var i=l[1].toLowerCase();i==="set-cookie"?(p.headers[i]===void 0&&(p.headers[i]=[]),p.headers[i].push(l[2])):p.headers[i]!==void 0?p.headers[i]+=", "+l[2]:p.headers[i]=l[2],p.rawHeaders.push(l[1],l[2])}}),p._charset="x-user-defined",!e.overrideMimeType){var B=p.rawHeaders["mime-type"];if(B){var b=B.match(/;\s*charset=([^;])(;|$)/);b&&(p._charset=b[1].toLowerCase())}p._charset||(p._charset="utf-8")}};s(f,u.Readable),f.prototype._read=function(){var d=this,a=d._resumeFetch;a&&(d._resumeFetch=null,a())},f.prototype._onXHRProgress=function(){var d=this,a=d._xhr,h=null;switch(d._mode){case"text:vbarray":if(a.readyState!==o.DONE)break;try{h=new m.VBArray(a.responseBody).toArray()}catch(B){}if(h!==null){d.push(new c(h));break}case"text":try{h=a.responseText}catch(B){d._mode="text:vbarray";break}if(h.length>d._pos){var g=h.substr(d._pos);if(d._charset==="x-user-defined"){for(var p=new c(g.length),S=0;S<g.length;S++)p[S]=255&g.charCodeAt(S);d.push(p)}else d.push(g,d._charset);d._pos=h.length}break;case"arraybuffer":if(a.readyState!==o.DONE||!a.response)break;h=a.response,d.push(new c(new Uint8Array(h)));break;case"moz-chunked-arraybuffer":if(h=a.response,a.readyState!==o.LOADING||!h)break;d.push(new c(new Uint8Array(h)));break;case"ms-stream":if(h=a.response,a.readyState!==o.LOADING)break;var w=new m.MSStreamReader;w.onprogress=function(){w.result.byteLength>d._pos&&(d.push(new c(new Uint8Array(w.result.slice(d._pos)))),d._pos=w.result.byteLength)},w.onload=function(){d.push(null)},w.readAsArrayBuffer(h)}d._xhr.readyState===o.DONE&&d._mode!=="ms-stream"&&d.push(null)}}).call(this,y("_process"),typeof ue!="undefined"?ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{},y("buffer").Buffer)},{"./capability":197,_process:173,"babel-runtime/core-js/promise":24,buffer:38,inherits:162,"readable-stream":188}],200:[function(y,E,_){"use strict";function C(B){if(!B)return"utf8";for(var b;;)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(b)return;B=(""+B).toLowerCase(),b=!0}}function m(B){var b=C(B);if(typeof b!="string"&&(S.isEncoding===w||!w(B)))throw new Error("Unknown encoding: "+B);return b||B}function c(B){this.encoding=m(B);var b;switch(this.encoding){case"utf16le":this.text=f,this.end=d,b=4;break;case"utf8":this.fillLast=s,b=4;break;case"base64":this.text=a,this.end=h,b=3;break;default:return this.write=g,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=S.allocUnsafe(b)}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,b,A){var l=b.length-1;if(l<A)return 0;var i=r(b[l]);return i>=0?(i>0&&(B.lastNeed=i-1),i):--l<A||i===-2?0:(i=r(b[l]))>=0?(i>0&&(B.lastNeed=i-2),i):--l<A||i===-2?0:(i=r(b[l]),i>=0?(i>0&&(i===2?i=0:B.lastNeed=i-3),i):0)}function e(B,b,A){if((192&b[0])!=128)return B.lastNeed=0,"\u951F\uFFFD";if(B.lastNeed>1&&b.length>1){if((192&b[1])!=128)return B.lastNeed=1,"\u951F\uFFFD";if(B.lastNeed>2&&b.length>2&&(192&b[2])!=128)return B.lastNeed=2,"\u951F\uFFFD"}}function s(B){var b=this.lastTotal-this.lastNeed,A=e(this,B,b);return A!==void 0?A:this.lastNeed<=B.length?(B.copy(this.lastChar,b,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(B.copy(this.lastChar,b,0,B.length),void(this.lastNeed-=B.length))}function u(B,b){var A=n(this,B,b);if(!this.lastNeed)return B.toString("utf8",b);this.lastTotal=A;var l=B.length-(A-this.lastNeed);return B.copy(this.lastChar,0,l),B.toString("utf8",b,l)}function o(B){var b=B&&B.length?this.write(B):"";return this.lastNeed?b+"\u951F\uFFFD":b}function f(B,b){if((B.length-b)%2==0){var A=B.toString("utf16le",b);if(A){var l=A.charCodeAt(A.length-1);if(l>=55296&&l<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=B[B.length-2],this.lastChar[1]=B[B.length-1],A.slice(0,-1)}return A}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=B[B.length-1],B.toString("utf16le",b,B.length-1)}function d(B){var b=B&&B.length?this.write(B):"";if(this.lastNeed){var A=this.lastTotal-this.lastNeed;return b+this.lastChar.toString("utf16le",0,A)}return b}function a(B,b){var A=(B.length-b)%3;return A===0?B.toString("base64",b):(this.lastNeed=3-A,this.lastTotal=3,A===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",b,B.length-A))}function h(B){var b=B&&B.length?this.write(B):"";return this.lastNeed?b+this.lastChar.toString("base64",0,3-this.lastNeed):b}function g(B){return B.toString(this.encoding)}function p(B){return B&&B.length?this.write(B):""}var S=y("safe-buffer").Buffer,w=S.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}};_.StringDecoder=c,c.prototype.write=function(B){if(B.length===0)return"";var b,A;if(this.lastNeed){if((b=this.fillLast(B))===void 0)return"";A=this.lastNeed,this.lastNeed=0}else A=0;return A<B.length?b?b+this.text(B,A):this.text(B,A):b||""},c.prototype.end=o,c.prototype.text=u,c.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(y,E,_){(function(C,m){function c(o,f){this._id=o,this._clearFn=f}var r=y("process/browser.js").nextTick,n=Function.prototype.apply,e=Array.prototype.slice,s={},u=0;_.setTimeout=function(){return new c(n.call(setTimeout,window,arguments),clearTimeout)},_.setInterval=function(){return new c(n.call(setInterval,window,arguments),clearInterval)},_.clearTimeout=_.clearInterval=function(o){o.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},_.enroll=function(o,f){clearTimeout(o._idleTimeoutId),o._idleTimeout=f},_.unenroll=function(o){clearTimeout(o._idleTimeoutId),o._idleTimeout=-1},_._unrefActive=_.active=function(o){clearTimeout(o._idleTimeoutId);var f=o._idleTimeout;f>=0&&(o._idleTimeoutId=setTimeout(function(){o._onTimeout&&o._onTimeout()},f))},_.setImmediate=typeof C=="function"?C:function(o){var f=u++,d=!(arguments.length<2)&&e.call(arguments,1);return s[f]=!0,r(function(){s[f]&&(d?o.apply(null,d):o.call(null),_.clearImmediate(f))}),f},_.clearImmediate=typeof m=="function"?m:function(o){delete s[o]}}).call(this,y("timers").setImmediate,y("timers").clearImmediate)},{"process/browser.js":173,timers:201}],202:[function(y,E,_){var C=y("buffer").Buffer;E.exports=function(m){if(m instanceof Uint8Array){if(m.byteOffset===0&&m.byteLength===m.buffer.byteLength)return m.buffer;if(typeof m.buffer.slice=="function")return m.buffer.slice(m.byteOffset,m.byteOffset+m.byteLength)}if(C.isBuffer(m)){for(var c=new Uint8Array(m.length),r=m.length,n=0;n<r;n++)c[n]=m[n];return c.buffer}throw new Error("Argument must be a Buffer")}},{buffer:38}],203:[function(y,E,_){"use strict";function C(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function m(i,x,O){if(i&&s.isObject(i)&&i instanceof C)return i;var T=new C;return T.parse(i,x,O),T}function c(i){return s.isString(i)&&(i=m(i)),i instanceof C?i.format():C.prototype.format.call(i)}function r(i,x){return m(i,!1,!0).resolve(x)}function n(i,x){return i?m(i,!1,!0).resolveObject(x):x}var e=y("punycode"),s=y("./util");_.parse=m,_.resolve=r,_.resolveObject=n,_.format=c,_.Url=C;var u=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,f=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["<",">",'"',"`"," ","\r",`
`," "],a=["{","}","|","\\","^","`"].concat(d),h=["'"].concat(a),g=["%","/","?",";","#"].concat(h),p=["/","?","#"],S=/^[+a-z0-9A-Z_-]{0,63}$/,w=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,B={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},A={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},l=y("querystring");C.prototype.parse=function(i,x,O){if(!s.isString(i))throw new TypeError("Parameter 'url' must be a string, not "+typeof i);var T=i.indexOf("?"),D=T!==-1&&T<i.indexOf("#")?"?":"#",R=i.split(D),k=/\\/g;R[0]=R[0].replace(k,"/"),i=R.join(D);var H=i;if(H=H.trim(),!O&&i.split("#").length===1){var J=f.exec(H);if(J)return this.path=H,this.href=H,this.pathname=J[1],J[2]?(this.search=J[2],this.query=x?l.parse(this.search.substr(1)):this.search.substr(1)):x&&(this.search="",this.query={}),this}var U=u.exec(H);if(U){U=U[0];var K=U.toLowerCase();this.protocol=K,H=H.substr(U.length)}if(O||U||H.match(/^\/\/[^@\/]+@[^@\/]+/)){var G=H.substr(0,2)==="//";!G||U&&b[U]||(H=H.substr(2),this.slashes=!0)}if(!b[U]&&(G||U&&!A[U])){for(var N=-1,Q=0;Q<p.length;Q++){var X=H.indexOf(p[Q]);X!==-1&&(N===-1||X<N)&&(N=X)}var te,oe;oe=N===-1?H.lastIndexOf("@"):H.lastIndexOf("@",N),oe!==-1&&(te=H.slice(0,oe),H=H.slice(oe+1),this.auth=decodeURIComponent(te)),N=-1;for(var Q=0;Q<g.length;Q++){var X=H.indexOf(g[Q]);X!==-1&&(N===-1||X<N)&&(N=X)}N===-1&&(N=H.length),this.host=H.slice(0,N),H=H.slice(N),this.parseHost(),this.hostname=this.hostname||"";var me=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!me)for(var se=this.hostname.split(/\./),Q=0,_e=se.length;Q<_e;Q++){var Ae=se[Q];if(Ae&&!Ae.match(S)){for(var Ee="",pe=0,he=Ae.length;pe<he;pe++)Ae.charCodeAt(pe)>127?Ee+="x":Ee+=Ae[pe];if(!Ee.match(S)){var ie=se.slice(0,Q),fe=se.slice(Q+1),ge=Ae.match(w);ge&&(ie.push(ge[1]),fe.unshift(ge[2])),fe.length&&(H="/"+fe.join(".")+H),this.hostname=ie.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),me||(this.hostname=e.toASCII(this.hostname));var ce=this.port?":"+this.port:"",Ie=this.hostname||"";this.host=Ie+ce,this.href+=this.host,me&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),H[0]!=="/"&&(H="/"+H))}if(!B[K])for(var Q=0,_e=h.length;Q<_e;Q++){var Fe=h[Q];if(H.indexOf(Fe)!==-1){var ke=encodeURIComponent(Fe);ke===Fe&&(ke=escape(Fe)),H=H.split(Fe).join(ke)}}var re=H.indexOf("#");re!==-1&&(this.hash=H.substr(re),H=H.slice(0,re));var F=H.indexOf("?");if(F!==-1?(this.search=H.substr(F),this.query=H.substr(F+1),x&&(this.query=l.parse(this.query)),H=H.slice(0,F)):x&&(this.search="",this.query={}),H&&(this.pathname=H),A[K]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var ce=this.pathname||"",W=this.search||"";this.path=ce+W}return this.href=this.format(),this},C.prototype.format=function(){var i=this.auth||"";i&&(i=encodeURIComponent(i),i=i.replace(/%3A/i,":"),i+="@");var x=this.protocol||"",O=this.pathname||"",T=this.hash||"",D=!1,R="";this.host?D=i+this.host:this.hostname&&(D=i+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(D+=":"+this.port)),this.query&&s.isObject(this.query)&&Object.keys(this.query).length&&(R=l.stringify(this.query));var k=this.search||R&&"?"+R||"";return x&&x.substr(-1)!==":"&&(x+=":"),this.slashes||(!x||A[x])&&D!==!1?(D="//"+(D||""),O&&O.charAt(0)!=="/"&&(O="/"+O)):D||(D=""),T&&T.charAt(0)!=="#"&&(T="#"+T),k&&k.charAt(0)!=="?"&&(k="?"+k),O=O.replace(/[?#]/g,function(H){return encodeURIComponent(H)}),k=k.replace("#","%23"),x+D+O+k+T},C.prototype.resolve=function(i){return this.resolveObject(m(i,!1,!0)).format()},C.prototype.resolveObject=function(i){if(s.isString(i)){var x=new C;x.parse(i,!1,!0),i=x}for(var O=new C,T=Object.keys(this),D=0;D<T.length;D++){var R=T[D];O[R]=this[R]}if(O.hash=i.hash,i.href==="")return O.href=O.format(),O;if(i.slashes&&!i.protocol){for(var k=Object.keys(i),H=0;H<k.length;H++){var J=k[H];J!=="protocol"&&(O[J]=i[J])}return A[O.protocol]&&O.hostname&&!O.pathname&&(O.path=O.pathname="/"),O.href=O.format(),O}if(i.protocol&&i.protocol!==O.protocol){if(!A[i.protocol]){for(var U=Object.keys(i),K=0;K<U.length;K++){var G=U[K];O[G]=i[G]}return O.href=O.format(),O}if(O.protocol=i.protocol,i.host||b[i.protocol])O.pathname=i.pathname;else{for(var _e=(i.pathname||"").split("/");_e.length&&!(i.host=_e.shift()););i.host||(i.host=""),i.hostname||(i.hostname=""),_e[0]!==""&&_e.unshift(""),_e.length<2&&_e.unshift(""),O.pathname=_e.join("/")}if(O.search=i.search,O.query=i.query,O.host=i.host||"",O.auth=i.auth,O.hostname=i.hostname||i.host,O.port=i.port,O.pathname||O.search){var N=O.pathname||"",Q=O.search||"";O.path=N+Q}return O.slashes=O.slashes||i.slashes,O.href=O.format(),O}var X=O.pathname&&O.pathname.charAt(0)==="/",te=i.host||i.pathname&&i.pathname.charAt(0)==="/",oe=te||X||O.host&&i.pathname,me=oe,se=O.pathname&&O.pathname.split("/")||[],_e=i.pathname&&i.pathname.split("/")||[],Ae=O.protocol&&!A[O.protocol];if(Ae&&(O.hostname="",O.port=null,O.host&&(se[0]===""?se[0]=O.host:se.unshift(O.host)),O.host="",i.protocol&&(i.hostname=null,i.port=null,i.host&&(_e[0]===""?_e[0]=i.host:_e.unshift(i.host)),i.host=null),oe=oe&&(_e[0]===""||se[0]==="")),te)O.host=i.host||i.host===""?i.host:O.host,O.hostname=i.hostname||i.hostname===""?i.hostname:O.hostname,O.search=i.search,O.query=i.query,se=_e;else if(_e.length)se||(se=[]),se.pop(),se=se.concat(_e),O.search=i.search,O.query=i.query;else if(!s.isNullOrUndefined(i.search)){if(Ae){O.hostname=O.host=se.shift();var Ee=!!(O.host&&O.host.indexOf("@")>0)&&O.host.split("@");Ee&&(O.auth=Ee.shift(),O.host=O.hostname=Ee.shift())}return O.search=i.search,O.query=i.query,s.isNull(O.pathname)&&s.isNull(O.search)||(O.path=(O.pathname?O.pathname:"")+(O.search?O.search:"")),O.href=O.format(),O}if(!se.length)return O.pathname=null,O.search?O.path="/"+O.search:O.path=null,O.href=O.format(),O;for(var pe=se.slice(-1)[0],he=(O.host||i.host||se.length>1)&&(pe==="."||pe==="..")||pe==="",ie=0,fe=se.length;fe>=0;fe--)pe=se[fe],pe==="."?se.splice(fe,1):pe===".."?(se.splice(fe,1),ie++):ie&&(se.splice(fe,1),ie--);if(!oe&&!me)for(;ie--;ie)se.unshift("..");!oe||se[0]===""||se[0]&&se[0].charAt(0)==="/"||se.unshift(""),he&&se.join("/").substr(-1)!=="/"&&se.push("");var ge=se[0]===""||se[0]&&se[0].charAt(0)==="/";if(Ae){O.hostname=O.host=ge?"":se.length?se.shift():"";var Ee=!!(O.host&&O.host.indexOf("@")>0)&&O.host.split("@");Ee&&(O.auth=Ee.shift(),O.host=O.hostname=Ee.shift())}return oe=oe||O.host&&se.length,oe&&!ge&&se.unshift(""),se.length?O.pathname=se.join("/"):(O.pathname=null,O.path=null),s.isNull(O.pathname)&&s.isNull(O.search)||(O.path=(O.pathname?O.pathname:"")+(O.search?O.search:"")),O.auth=i.auth||O.auth,O.slashes=O.slashes||i.slashes,O.href=O.format(),O},C.prototype.parseHost=function(){var i=this.host,x=o.exec(i);x&&(x=x[0],x!==":"&&(this.port=x.substr(1)),i=i.substr(0,i.length-x.length)),i&&(this.hostname=i)}},{"./util":204,punycode:174,querystring:177}],204:[function(y,E,_){"use strict";E.exports={isString:function(C){return typeof C=="string"},isObject:function(C){return typeof C=="object"&&C!==null},isNull:function(C){return C===null},isNullOrUndefined:function(C){return C==null}}},{}],205:[function(y,E,_){(function(C){function m(r,n){function e(){if(!s){if(c("throwDeprecation"))throw new Error(n);c("traceDeprecation")?console.trace(n):console.warn(n),s=!0}return r.apply(this,arguments)}if(c("noDeprecation"))return r;var s=!1;return e}function c(r){try{if(!C.localStorage)return!1}catch(e){return!1}var n=C.localStorage[r];return n!=null&&String(n).toLowerCase()==="true"}E.exports=m}).call(this,typeof ue!="undefined"?ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],206:[function(y,E,_){E.exports=function(C){return C&&typeof C=="object"&&typeof C.copy=="function"&&typeof C.fill=="function"&&typeof C.readUInt8=="function"}},{}],207:[function(y,E,_){(function(C,m){function c(Q,X){var te={seen:[],stylize:n};return arguments.length>=3&&(te.depth=arguments[2]),arguments.length>=4&&(te.colors=arguments[3]),g(X)?te.showHidden=X:X&&_._extend(te,X),A(te.showHidden)&&(te.showHidden=!1),A(te.depth)&&(te.depth=2),A(te.colors)&&(te.colors=!1),A(te.customInspect)&&(te.customInspect=!0),te.colors&&(te.stylize=r),s(te,Q,te.depth)}function r(Q,X){var te=c.styles[X];return te?"["+c.colors[te][0]+"m"+Q+"["+c.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!==_.inspect&&(!X.constructor||X.constructor.prototype!==X)){var oe=X.inspect(te,Q);return B(oe)||(oe=s(Q,oe,te)),oe}var me=u(Q,X);if(me)return me;var se=Object.keys(X),_e=e(se);if(Q.showHidden&&(se=Object.getOwnPropertyNames(X)),O(X)&&(se.indexOf("message")>=0||se.indexOf("description")>=0))return o(X);if(se.length===0){if(T(X)){var Ae=X.name?": "+X.name:"";return Q.stylize("[Function"+Ae+"]","special")}if(l(X))return Q.stylize(RegExp.prototype.toString.call(X),"regexp");if(x(X))return Q.stylize(Date.prototype.toString.call(X),"date");if(O(X))return o(X)}var Ee="",pe=!1,he=["{","}"];if((h(X)&&(pe=!0,he=["[","]"]),T(X))&&(Ee=" [Function"+(X.name?": "+X.name:"")+"]"),l(X)&&(Ee=" "+RegExp.prototype.toString.call(X)),x(X)&&(Ee=" "+Date.prototype.toUTCString.call(X)),O(X)&&(Ee=" "+o(X)),se.length===0&&(!pe||X.length==0))return he[0]+Ee+he[1];if(te<0)return l(X)?Q.stylize(RegExp.prototype.toString.call(X),"regexp"):Q.stylize("[Object]","special");Q.seen.push(X);var ie;return ie=pe?f(Q,X,te,_e,se):se.map(function(fe){return d(Q,X,te,_e,fe,pe)}),Q.seen.pop(),a(ie,Ee,he)}function u(Q,X){if(A(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 w(X)?Q.stylize(""+X,"number"):g(X)?Q.stylize(""+X,"boolean"):p(X)?Q.stylize("null","null"):void 0}function o(Q){return"["+Error.prototype.toString.call(Q)+"]"}function f(Q,X,te,oe,me){for(var se=[],_e=0,Ae=X.length;_e<Ae;++_e)J(X,String(_e))?se.push(d(Q,X,te,oe,String(_e),!0)):se.push("");return me.forEach(function(Ee){Ee.match(/^\d+$/)||se.push(d(Q,X,te,oe,Ee,!0))}),se}function d(Q,X,te,oe,me,se){var _e,Ae,Ee;if(Ee=Object.getOwnPropertyDescriptor(X,me)||{value:X[me]},Ee.get?Ae=Ee.set?Q.stylize("[Getter/Setter]","special"):Q.stylize("[Getter]","special"):Ee.set&&(Ae=Q.stylize("[Setter]","special")),J(oe,me)||(_e="["+me+"]"),Ae||(Q.seen.indexOf(Ee.value)<0?(Ae=p(te)?s(Q,Ee.value,null):s(Q,Ee.value,te-1),Ae.indexOf(`
`)>-1&&(Ae=se?Ae.split(`
`).map(function(pe){return" "+pe}).join(`
`).substr(2):`
`+Ae.split(`
`).map(function(pe){return" "+pe}).join(`
`))):Ae=Q.stylize("[Circular]","special")),A(_e)){if(se&&me.match(/^\d+$/))return Ae;_e=JSON.stringify(""+me),_e.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(_e=_e.substr(1,_e.length-2),_e=Q.stylize(_e,"name")):(_e=_e.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),_e=Q.stylize(_e,"string"))}return _e+": "+Ae}function a(Q,X,te){var oe=0;return Q.reduce(function(me,se){return oe++,se.indexOf(`
`)>=0&&oe++,me+se.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 g(Q){return typeof Q=="boolean"}function p(Q){return Q===null}function S(Q){return Q==null}function w(Q){return typeof Q=="number"}function B(Q){return typeof Q=="string"}function b(Q){return typeof Q=="symbol"}function A(Q){return Q===void 0}function l(Q){return i(Q)&&R(Q)==="[object RegExp]"}function i(Q){return typeof Q=="object"&&Q!==null}function x(Q){return i(Q)&&R(Q)==="[object Date]"}function O(Q){return i(Q)&&(R(Q)==="[object Error]"||Q instanceof Error)}function T(Q){return typeof Q=="function"}function D(Q){return Q===null||typeof Q=="boolean"||typeof Q=="number"||typeof Q=="string"||typeof Q=="symbol"||Q===void 0}function R(Q){return Object.prototype.toString.call(Q)}function k(Q){return Q<10?"0"+Q.toString(10):Q.toString(10)}function H(){var Q=new Date,X=[k(Q.getHours()),k(Q.getMinutes()),k(Q.getSeconds())].join(":");return[Q.getDate(),N[Q.getMonth()],X].join(" ")}function J(Q,X){return Object.prototype.hasOwnProperty.call(Q,X)}var U=/%[sdj%]/g;_.format=function(Q){if(!B(Q)){for(var X=[],te=0;te<arguments.length;te++)X.push(c(arguments[te]));return X.join(" ")}for(var te=1,oe=arguments,me=oe.length,se=String(Q).replace(U,function(Ee){if(Ee==="%%")return"%";if(te>=me)return Ee;switch(Ee){case"%s":return String(oe[te++]);case"%d":return Number(oe[te++]);case"%j":try{return JSON.stringify(oe[te++])}catch(pe){return"[Circular]"}default:return Ee}}),_e=oe[te];te<me;_e=oe[++te])p(_e)||!i(_e)?se+=" "+_e:se+=" "+c(_e);return se},_.deprecate=function(Q,X){function te(){if(!oe){if(C.throwDeprecation)throw new Error(X);C.traceDeprecation?console.trace(X):console.error(X),oe=!0}return Q.apply(this,arguments)}if(A(m.process))return function(){return _.deprecate(Q,X).apply(this,arguments)};if(C.noDeprecation===!0)return Q;var oe=!1;return te};var K,G={};_.debuglog=function(Q){if(A(K)&&(K=C.env.NODE_DEBUG||""),Q=Q.toUpperCase(),!G[Q])if(new RegExp("\\b"+Q+"\\b","i").test(K)){var X=C.pid;G[Q]=function(){var te=_.format.apply(_,arguments);console.error("%s %d: %s",Q,X,te)}}else G[Q]=function(){};return G[Q]},_.inspect=c,c.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]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},_.isArray=h,_.isBoolean=g,_.isNull=p,_.isNullOrUndefined=S,_.isNumber=w,_.isString=B,_.isSymbol=b,_.isUndefined=A,_.isRegExp=l,_.isObject=i,_.isDate=x,_.isError=O,_.isFunction=T,_.isPrimitive=D,_.isBuffer=y("./support/isBuffer");var N=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];_.log=function(){console.log("%s - %s",H(),_.format.apply(_,arguments))},_.inherits=y("inherits"),_._extend=function(Q,X){if(!X||!i(X))return Q;for(var te=Object.keys(X),oe=te.length;oe--;)Q[te[oe]]=X[te[oe]];return Q}}).call(this,y("_process"),typeof ue!="undefined"?ue:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":206,_process:173,inherits:162}],208:[function(y,E,_){"use strict";(function(){_.stripBOM=function(C){return C[0]==="\uFEFF"?C.substring(1):C}}).call(void 0)},{}],209:[function(y,E,_){"use strict";function C(e){return e&&e.__esModule?e:{default:e}}var m=y("babel-runtime/helpers/typeof"),c=C(m),r=y("babel-runtime/core-js/object/keys"),n=C(r);(function(){var e,s,u,o,f,d={}.hasOwnProperty;e=y("xmlbuilder"),s=y("./defaults").defaults,o=function(a){return typeof a=="string"&&(a.indexOf("&")>=0||a.indexOf(">")>=0||a.indexOf("<")>=0)},f=function(a){return"<![CDATA["+u(a)+"]]>"},u=function(a){return a.replace("]]>","]]]]><![CDATA[>")},_.Builder=function(){function a(h){var g,p,S;this.options={},p=s[.2];for(g in p)d.call(p,g)&&(S=p[g],this.options[g]=S);for(g in h)d.call(h,g)&&(S=h[g],this.options[g]=S)}return a.prototype.buildObject=function(h){var g,p,S,w,B;return g=this.options.attrkey,p=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,S=function(b){return function(A,l){var i,x,O,T,D,R;if((l===void 0?"undefined":(0,c.default)(l))!=="object")b.options.cdata&&o(l)?A.raw(f(l)):A.txt(l);else if(Array.isArray(l)){for(T in l)if(d.call(l,T)){x=l[T];for(D in x)O=x[D],A=S(A.ele(D),O).up()}}else for(D in l)if(d.call(l,D))if(x=l[D],D===g){if((x===void 0?"undefined":(0,c.default)(x))==="object")for(i in x)R=x[i],A=A.att(i,R)}else if(D===p)A=b.options.cdata&&o(x)?A.raw(f(x)):A.txt(x);else if(Array.isArray(x))for(T in x)d.call(x,T)&&(O=x[T],A=typeof O=="string"?b.options.cdata&&o(O)?A.ele(D).raw(f(O)).up():A.ele(D,O).up():S(A.ele(D),O).up());else(x===void 0?"undefined":(0,c.default)(x))==="object"?A=S(A.ele(D),x).up():typeof x=="string"&&b.options.cdata&&o(x)?A=A.ele(D).raw(f(x)).up():(x==null&&(x=""),A=A.ele(D,x.toString()).up());return A}}(this),w=e.create(B,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),S(w,h).end(this.options.renderOpts)},a}()}).call(void 0)},{"./defaults":210,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,xmlbuilder:235}],210:[function(y,E,_){"use strict";(function(){_.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(y,E,_){"use strict";function C(u){return u&&u.__esModule?u:{default:u}}var m=y("babel-runtime/core-js/object/get-own-property-names"),c=C(m),r=y("babel-runtime/core-js/object/keys"),n=C(r),e=y("babel-runtime/helpers/typeof"),s=C(e);(function(){var u,o,f,d,a,h,g,p,S=function(b,A){return function(){return b.apply(A,arguments)}},w=function(b,A){function l(){this.constructor=b}for(var i in A)B.call(A,i)&&(b[i]=A[i]);return l.prototype=A.prototype,b.prototype=new l,b.__super__=A.prototype,b},B={}.hasOwnProperty;g=y("sax"),f=y("events"),u=y("./bom"),h=y("./processors"),p=y("timers").setImmediate,o=y("./defaults").defaults,d=function(b){return(b===void 0?"undefined":(0,s.default)(b))==="object"&&b!=null&&(0,n.default)(b).length===0},a=function(b,A,l){var i,x,O;for(i=0,x=b.length;i<x;i++)O=b[i],A=O(A,l);return A},_.Parser=function(b){function A(l){this.parseString=S(this.parseString,this),this.reset=S(this.reset,this),this.assignOrPush=S(this.assignOrPush,this),this.processAsync=S(this.processAsync,this);var i,x,O;if(!(this instanceof _.Parser))return new _.Parser(l);this.options={},x=o[.2];for(i in x)B.call(x,i)&&(O=x[i],this.options[i]=O);for(i in l)B.call(l,i)&&(O=l[i],this.options[i]=O);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 w(A,b),A.prototype.processAsync=function(){var l,i;try{return this.remaining.length<=this.options.chunkSize?(l=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(l),this.saxParser.close()):(l=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(l),p(this.processAsync))}catch(x){if(i=x,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(i)}},A.prototype.assignOrPush=function(l,i,x){return i in l?(l[i]instanceof Array||(l[i]=[l[i]]),l[i].push(x)):this.options.explicitArray?l[i]=[x]:l[i]=x},A.prototype.reset=function(){var l,i,x,O;return this.removeAllListeners(),this.saxParser=g.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(T){return function(D){if(T.saxParser.resume(),!T.saxParser.errThrown)return T.saxParser.errThrown=!0,T.emit("error",D)}}(this),this.saxParser.onend=function(T){return function(){if(!T.saxParser.ended)return T.saxParser.ended=!0,T.emit("end",T.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,O=[],l=this.options.attrkey,i=this.options.charkey,this.saxParser.onopentag=function(T){return function(D){var R,k,H,J,U;if(H={},H[i]="",!T.options.ignoreAttrs){U=D.attributes;for(R in U)B.call(U,R)&&(l in H||T.options.mergeAttrs||(H[l]={}),k=T.options.attrValueProcessors?a(T.options.attrValueProcessors,D.attributes[R],R):D.attributes[R],J=T.options.attrNameProcessors?a(T.options.attrNameProcessors,R):R,T.options.mergeAttrs?T.assignOrPush(H,J,k):H[l][J]=k)}return H["#name"]=T.options.tagNameProcessors?a(T.options.tagNameProcessors,D.name):D.name,T.options.xmlns&&(H[T.options.xmlnskey]={uri:D.uri,local:D.local}),O.push(H)}}(this),this.saxParser.onclosetag=function(T){return function(){var D,R,k,H,J,U,K,G,N,Q;if(U=O.pop(),J=U["#name"],T.options.explicitChildren&&T.options.preserveChildrenOrder||delete U["#name"],U.cdata===!0&&(D=U.cdata,delete U.cdata),N=O[O.length-1],U[i].match(/^\s*$/)&&!D?(R=U[i],delete U[i]):(T.options.trim&&(U[i]=U[i].trim()),T.options.normalize&&(U[i]=U[i].replace(/\s{2,}/g," ").trim()),U[i]=T.options.valueProcessors?a(T.options.valueProcessors,U[i],J):U[i],(0,n.default)(U).length===1&&i in U&&!T.EXPLICIT_CHARKEY&&(U=U[i])),d(U)&&(U=T.options.emptyTag!==""?T.options.emptyTag:R),T.options.validator!=null&&(Q="/"+function(){var X,te,oe;for(oe=[],X=0,te=O.length;X<te;X++)H=O[X],oe.push(H["#name"]);return oe}().concat(J).join("/"),function(){var X;try{U=T.options.validator(Q,N&&N[J],U)}catch(te){return X=te,T.emit("error",X)}}()),T.options.explicitChildren&&!T.options.mergeAttrs&&(U===void 0?"undefined":(0,s.default)(U))==="object")if(T.options.preserveChildrenOrder){if(N){N[T.options.childkey]=N[T.options.childkey]||[],K={};for(k in U)B.call(U,k)&&(K[k]=U[k]);N[T.options.childkey].push(K),delete U["#name"],(0,n.default)(U).length===1&&i in U&&!T.EXPLICIT_CHARKEY&&(U=U[i])}}else H={},T.options.attrkey in U&&(H[T.options.attrkey]=U[T.options.attrkey],delete U[T.options.attrkey]),!T.options.charsAsChildren&&T.options.charkey in U&&(H[T.options.charkey]=U[T.options.charkey],delete U[T.options.charkey]),(0,c.default)(U).length>0&&(H[T.options.childkey]=U),U=H;return O.length>0?T.assignOrPush(N,J,U):(T.options.explicitRoot&&(G=U,U={},U[J]=G),T.resultObject=U,T.saxParser.ended=!0,T.emit("end",T.resultObject))}}(this),x=function(T){return function(D){var R,k;if(k=O[O.length-1])return k[i]+=D,T.options.explicitChildren&&T.options.preserveChildrenOrder&&T.options.charsAsChildren&&(T.options.includeWhiteChars||D.replace(/\\n/g,"").trim()!=="")&&(k[T.options.childkey]=k[T.options.childkey]||[],R={"#name":"__text__"},R[i]=D,T.options.normalize&&(R[i]=R[i].replace(/\s{2,}/g," ").trim()),k[T.options.childkey].push(R)),k}}(this),this.saxParser.ontext=x,this.saxParser.oncdata=function(T){return function(D){var R;if(R=x(D))return R.cdata=!0}}()},A.prototype.parseString=function(l,i){var x;i!=null&&typeof i=="function"&&(this.on("end",function(O){return this.reset(),i(null,O)}),this.on("error",function(O){return this.reset(),i(O)}));try{return l=l.toString(),l.trim()===""?(this.emit("end",null),!0):(l=u.stripBOM(l),this.options.async?(this.remaining=l,p(this.processAsync),this.saxParser):this.saxParser.write(l).close())}catch(O){if(x=O,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",x),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw x}},A}(f.EventEmitter),_.parseString=function(b,A,l){var i,x,O;return l!=null?(typeof l=="function"&&(i=l),(A===void 0?"undefined":(0,s.default)(A))==="object"&&(x=A)):(typeof A=="function"&&(i=A),x={}),O=new _.Parser(x),O.parseString(b,i)}}).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(y,E,_){"use strict";(function(){var C;C=new RegExp(/(?!xmlns)^.*:/),_.normalize=function(m){return m.toLowerCase()},_.firstCharLowerCase=function(m){return m.charAt(0).toLowerCase()+m.slice(1)},_.stripPrefix=function(m){return m.replace(C,"")},_.parseNumbers=function(m){return isNaN(m)||(m=m%1==0?parseInt(m,10):parseFloat(m)),m},_.parseBooleans=function(m){return/^(?:true|false)$/i.test(m)&&(m=m.toLowerCase()==="true"),m}}).call(void 0)},{}],213:[function(y,E,_){"use strict";(function(){var C,m,c,r,n=function(s,u){function o(){this.constructor=s}for(var f in u)e.call(u,f)&&(s[f]=u[f]);return o.prototype=u.prototype,s.prototype=new o,s.__super__=u.prototype,s},e={}.hasOwnProperty;m=y("./defaults"),C=y("./builder"),c=y("./parser"),r=y("./processors"),_.defaults=m.defaults,_.processors=r,_.ValidationError=function(s){function u(o){this.message=o}return n(u,s),u}(Error),_.Builder=C.Builder,_.Parser=c.Parser,_.parseString=c.parseString}).call(void 0)},{"./builder":209,"./defaults":210,"./parser":211,"./processors":212}],214:[function(y,E,_){"use strict";function C(u){return u&&u.__esModule?u:{default:u}}var m=y("babel-runtime/core-js/object/get-prototype-of"),c=C(m),r=y("babel-runtime/helpers/typeof"),n=C(r),e=y("babel-runtime/core-js/object/assign"),s=C(e);(function(){var u,o,f,d,a,h,g=[].slice,p={}.hasOwnProperty;u=function(){var S,w,B,b,A,l;if(l=arguments[0],A=2<=arguments.length?g.call(arguments,1):[],d(s.default))s.default.apply(null,arguments);else for(S=0,B=A.length;S<B;S++)if((b=A[S])!=null)for(w in b)p.call(b,w)&&(l[w]=b[w]);return l},d=function(S){return!!S&&Object.prototype.toString.call(S)==="[object Function]"},a=function(S){var w;return!!S&&((w=S===void 0?"undefined":(0,n.default)(S))==="function"||w==="object")},o=function(S){return d(Array.isArray)?Array.isArray(S):Object.prototype.toString.call(S)==="[object Array]"},f=function(S){var w;if(o(S))return!S.length;for(w in S)if(p.call(S,w))return!1;return!0},h=function(S){var w,B;return a(S)&&(B=(0,c.default)(S))&&(w=B.constructor)&&typeof w=="function"&&w instanceof w&&Function.prototype.toString.call(w)===Function.prototype.toString.call(Object)},E.exports.assign=u,E.exports.isFunction=d,E.exports.isObject=a,E.exports.isArray=o,E.exports.isEmpty=f,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(y,E,_){"use strict";var C=y("babel-runtime/core-js/object/create"),m=function(c){return c&&c.__esModule?c:{default:c}}(C);(function(){E.exports=function(){function c(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 c.prototype.clone=function(){return(0,m.default)(this)},c.prototype.toString=function(r){return this.options.writer.set(r).attribute(this)},c}()}).call(void 0)},{"babel-runtime/core-js/object/create":19}],216:[function(y,E,_){"use strict";var C=y("babel-runtime/core-js/object/create"),m=function(c){return c&&c.__esModule?c:{default:c}}(C);(function(){var c,r=function(e,s){function u(){this.constructor=e}for(var o in s)n.call(s,o)&&(e[o]=s[o]);return u.prototype=s.prototype,e.prototype=new u,e.__super__=s.prototype,e},n={}.hasOwnProperty;c=y("./XMLNode"),E.exports=function(e){function s(u,o){if(s.__super__.constructor.call(this,u),o==null)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(o)}return r(s,e),s.prototype.clone=function(){return(0,m.default)(this)},s.prototype.toString=function(u){return this.options.writer.set(u).cdata(this)},s}(c)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],217:[function(y,E,_){"use strict";var C=y("babel-runtime/core-js/object/create"),m=function(c){return c&&c.__esModule?c:{default:c}}(C);(function(){var c,r=function(e,s){function u(){this.constructor=e}for(var o in s)n.call(s,o)&&(e[o]=s[o]);return u.prototype=s.prototype,e.prototype=new u,e.__super__=s.prototype,e},n={}.hasOwnProperty;c=y("./XMLNode"),E.exports=function(e){function s(u,o){if(s.__super__.constructor.call(this,u),o==null)throw new Error("Missing comment text");this.text=this.stringify.comment(o)}return r(s,e),s.prototype.clone=function(){return(0,m.default)(this)},s.prototype.toString=function(u){return this.options.writer.set(u).comment(this)},s}(c)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],218:[function(y,E,_){"use strict";(function(){var C,m=function(r,n){function e(){this.constructor=r}for(var s in n)c.call(n,s)&&(r[s]=n[s]);return e.prototype=n.prototype,r.prototype=new e,r.__super__=n.prototype,r},c={}.hasOwnProperty;C=y("./XMLNode"),E.exports=function(r){function n(e,s,u,o,f,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(!o)throw new Error("Missing DTD attribute type");if(!f)throw new Error("Missing DTD attribute default");if(f.indexOf("#")!==0&&(f="#"+f),!f.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");if(d&&!f.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(o),this.defaultValue=this.stringify.dtdAttDefault(d),this.defaultValueType=f}return m(n,r),n.prototype.toString=function(e){return this.options.writer.set(e).dtdAttList(this)},n}(C)}).call(void 0)},{"./XMLNode":227}],219:[function(y,E,_){"use strict";(function(){var C,m=function(r,n){function e(){this.constructor=r}for(var s in n)c.call(n,s)&&(r[s]=n[s]);return e.prototype=n.prototype,r.prototype=new e,r.__super__=n.prototype,r},c={}.hasOwnProperty;C=y("./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 m(n,r),n.prototype.toString=function(e){return this.options.writer.set(e).dtdElement(this)},n}(C)}).call(void 0)},{"./XMLNode":227}],220:[function(y,E,_){"use strict";(function(){var C,m,c=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;m=y("./Utility").isObject,C=y("./XMLNode"),E.exports=function(n){function e(s,u,o,f){if(e.__super__.constructor.call(this,s),o==null)throw new Error("Missing entity name");if(f==null)throw new Error("Missing entity value");if(this.pe=!!u,this.name=this.stringify.eleName(o),m(f)){if(!f.pubID&&!f.sysID)throw new Error("Public and/or system identifiers are required for an external entity");if(f.pubID&&!f.sysID)throw new Error("System identifier is required for a public external entity");if(f.pubID!=null&&(this.pubID=this.stringify.dtdPubID(f.pubID)),f.sysID!=null&&(this.sysID=this.stringify.dtdSysID(f.sysID)),f.nData!=null&&(this.nData=this.stringify.dtdNData(f.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity")}else this.value=this.stringify.dtdEntityValue(f)}return c(e,n),e.prototype.toString=function(s){return this.options.writer.set(s).dtdEntity(this)},e}(C)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],221:[function(y,E,_){"use strict";(function(){var C,m=function(r,n){function e(){this.constructor=r}for(var s in n)c.call(n,s)&&(r[s]=n[s]);return e.prototype=n.prototype,r.prototype=new e,r.__super__=n.prototype,r},c={}.hasOwnProperty;C=y("./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 m(n,r),n.prototype.toString=function(e){return this.options.writer.set(e).dtdNotation(this)},n}(C)}).call(void 0)},{"./XMLNode":227}],222:[function(y,E,_){"use strict";(function(){var C,m,c=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;m=y("./Utility").isObject,C=y("./XMLNode"),E.exports=function(n){function e(s,u,o,f){var d;e.__super__.constructor.call(this,s),m(u)&&(d=u,u=d.version,o=d.encoding,f=d.standalone),u||(u="1.0"),this.version=this.stringify.xmlVersion(u),o!=null&&(this.encoding=this.stringify.xmlEncoding(o)),f!=null&&(this.standalone=this.stringify.xmlStandalone(f))}return c(e,n),e.prototype.toString=function(s){return this.options.writer.set(s).declaration(this)},e}(C)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],223:[function(y,E,_){"use strict";(function(){var C,m,c,r,n,e,s=function(o,f){function d(){this.constructor=o}for(var a in f)u.call(f,a)&&(o[a]=f[a]);return d.prototype=f.prototype,o.prototype=new d,o.__super__=f.prototype,o},u={}.hasOwnProperty;e=y("./Utility").isObject,n=y("./XMLNode"),C=y("./XMLDTDAttList"),c=y("./XMLDTDEntity"),m=y("./XMLDTDElement"),r=y("./XMLDTDNotation"),E.exports=function(o){function f(d,a,h){var g,p;f.__super__.constructor.call(this,d),this.documentObject=d,e(a)&&(g=a,a=g.pubID,h=g.sysID),h==null&&(p=[a,h],h=p[0],a=p[1]),a!=null&&(this.pubID=this.stringify.dtdPubID(a)),h!=null&&(this.sysID=this.stringify.dtdSysID(h))}return s(f,o),f.prototype.element=function(d,a){var h;return h=new m(this,d,a),this.children.push(h),this},f.prototype.attList=function(d,a,h,g,p){var S;return S=new C(this,d,a,h,g,p),this.children.push(S),this},f.prototype.entity=function(d,a){var h;return h=new c(this,!1,d,a),this.children.push(h),this},f.prototype.pEntity=function(d,a){var h;return h=new c(this,!0,d,a),this.children.push(h),this},f.prototype.notation=function(d,a){var h;return h=new r(this,d,a),this.children.push(h),this},f.prototype.toString=function(d){return this.options.writer.set(d).docType(this)},f.prototype.ele=function(d,a){return this.element(d,a)},f.prototype.att=function(d,a,h,g,p){return this.attList(d,a,h,g,p)},f.prototype.ent=function(d,a){return this.entity(d,a)},f.prototype.pent=function(d,a){return this.pEntity(d,a)},f.prototype.not=function(d,a){return this.notation(d,a)},f.prototype.up=function(){return this.root()||this.documentObject},f}(n)}).call(void 0)},{"./Utility":214,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLNode":227}],224:[function(y,E,_){"use strict";(function(){var C,m,c,r,n=function(s,u){function o(){this.constructor=s}for(var f in u)e.call(u,f)&&(s[f]=u[f]);return o.prototype=u.prototype,s.prototype=new o,s.__super__=u.prototype,s},e={}.hasOwnProperty;r=y("./Utility").isPlainObject,C=y("./XMLNode"),c=y("./XMLStringifier"),m=y("./XMLStringWriter"),E.exports=function(s){function u(o){u.__super__.constructor.call(this,null),o||(o={}),o.writer||(o.writer=new m),this.options=o,this.stringify=new c(o),this.isDocument=!0}return n(u,s),u.prototype.end=function(o){var f;return o?r(o)&&(f=o,o=this.options.writer.set(f)):o=this.options.writer,o.document(this)},u.prototype.toString=function(o){return this.options.writer.set(o).document(this)},u}(C)}).call(void 0)},{"./Utility":214,"./XMLNode":227,"./XMLStringWriter":231,"./XMLStringifier":232}],225:[function(y,E,_){"use strict";(function(){var C,m,c,r,n,e,s,u,o,f,d,a,h,g,p,S,w,B,b,A={}.hasOwnProperty;b=y("./Utility"),w=b.isObject,S=b.isFunction,B=b.isPlainObject,f=y("./XMLElement"),m=y("./XMLCData"),c=y("./XMLComment"),a=y("./XMLRaw"),p=y("./XMLText"),d=y("./XMLProcessingInstruction"),u=y("./XMLDeclaration"),o=y("./XMLDocType"),r=y("./XMLDTDAttList"),e=y("./XMLDTDEntity"),n=y("./XMLDTDElement"),s=y("./XMLDTDNotation"),C=y("./XMLAttribute"),g=y("./XMLStringifier"),h=y("./XMLStringWriter"),E.exports=function(){function l(i,x,O){var T;i||(i={}),i.writer?B(i.writer)&&(T=i.writer,i.writer=new h(T)):i.writer=new h(i),this.options=i,this.writer=i.writer,this.stringify=new g(i),this.onDataCallback=x||function(){},this.onEndCallback=O||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return l.prototype.node=function(i,x,O){var T;if(i==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(),i=i.valueOf(),x==null&&(x={}),x=x.valueOf(),w(x)||(T=[x,O],O=T[0],x=T[1]),this.currentNode=new f(this,i,x),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,O!=null&&this.text(O),this},l.prototype.element=function(i,x,O){return this.currentNode&&this.currentNode instanceof o?this.dtdElement.apply(this,arguments):this.node(i,x,O)},l.prototype.attribute=function(i,x){var O,T;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode");if(i!=null&&(i=i.valueOf()),w(i))for(O in i)A.call(i,O)&&(T=i[O],this.attribute(O,T));else S(x)&&(x=x.apply()),this.options.skipNullAttributes&&x==null||(this.currentNode.attributes[i]=new C(this,i,x));return this},l.prototype.text=function(i){var x;return this.openCurrent(),x=new p(this,i),this.onData(this.writer.text(x,this.currentLevel+1)),this},l.prototype.cdata=function(i){var x;return this.openCurrent(),x=new m(this,i),this.onData(this.writer.cdata(x,this.currentLevel+1)),this},l.prototype.comment=function(i){var x;return this.openCurrent(),x=new c(this,i),this.onData(this.writer.comment(x,this.currentLevel+1)),this},l.prototype.raw=function(i){var x;return this.openCurrent(),x=new a(this,i),this.onData(this.writer.raw(x,this.currentLevel+1)),this},l.prototype.instruction=function(i,x){var O,T,D,R,k;if(this.openCurrent(),i!=null&&(i=i.valueOf()),x!=null&&(x=x.valueOf()),Array.isArray(i))for(O=0,R=i.length;O<R;O++)T=i[O],this.instruction(T);else if(w(i))for(T in i)A.call(i,T)&&(D=i[T],this.instruction(T,D));else S(x)&&(x=x.apply()),k=new d(this,i,x),this.onData(this.writer.processingInstruction(k,this.currentLevel+1));return this},l.prototype.declaration=function(i,x,O){var T;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node");return T=new u(this,i,x,O),this.onData(this.writer.declaration(T,this.currentLevel+1)),this},l.prototype.doctype=function(i,x,O){if(this.openCurrent(),i==null)throw new Error("Missing root node name");if(this.root)throw new Error("dtd() must come before the root node");return this.currentNode=new o(this,x,O),this.currentNode.rootNodeName=i,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},l.prototype.dtdElement=function(i,x){var O;return this.openCurrent(),O=new n(this,i,x),this.onData(this.writer.dtdElement(O,this.currentLevel+1)),this},l.prototype.attList=function(i,x,O,T,D){var R;return this.openCurrent(),R=new r(this,i,x,O,T,D),this.onData(this.writer.dtdAttList(R,this.currentLevel+1)),this},l.prototype.entity=function(i,x){var O;return this.openCurrent(),O=new e(this,!1,i,x),this.onData(this.writer.dtdEntity(O,this.currentLevel+1)),this},l.prototype.pEntity=function(i,x){var O;return this.openCurrent(),O=new e(this,!0,i,x),this.onData(this.writer.dtdEntity(O,this.currentLevel+1)),this},l.prototype.notation=function(i,x){var O;return this.openCurrent(),O=new s(this,i,x),this.onData(this.writer.dtdNotation(O,this.currentLevel+1)),this},l.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},l.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},l.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},l.prototype.openNode=function(i){if(!i.isOpen)return!this.root&&this.currentLevel===0&&i instanceof f&&(this.root=i),this.onData(this.writer.openNode(i,this.currentLevel)),i.isOpen=!0},l.prototype.closeNode=function(i){if(!i.isClosed)return this.onData(this.writer.closeNode(i,this.currentLevel)),i.isClosed=!0},l.prototype.onData=function(i){return this.documentStarted=!0,this.onDataCallback(i)},l.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},l.prototype.ele=function(){return this.element.apply(this,arguments)},l.prototype.nod=function(i,x,O){return this.node(i,x,O)},l.prototype.txt=function(i){return this.text(i)},l.prototype.dat=function(i){return this.cdata(i)},l.prototype.com=function(i){return this.comment(i)},l.prototype.ins=function(i,x){return this.instruction(i,x)},l.prototype.dec=function(i,x,O){return this.declaration(i,x,O)},l.prototype.dtd=function(i,x,O){return this.doctype(i,x,O)},l.prototype.e=function(i,x,O){return this.element(i,x,O)},l.prototype.n=function(i,x,O){return this.node(i,x,O)},l.prototype.t=function(i){return this.text(i)},l.prototype.d=function(i){return this.cdata(i)},l.prototype.c=function(i){return this.comment(i)},l.prototype.r=function(i){return this.raw(i)},l.prototype.i=function(i,x){return this.instruction(i,x)},l.prototype.att=function(){return this.currentNode&&this.currentNode instanceof o?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},l.prototype.a=function(){return this.currentNode&&this.currentNode instanceof o?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},l.prototype.ent=function(i,x){return this.entity(i,x)},l.prototype.pent=function(i,x){return this.pEntity(i,x)},l.prototype.not=function(i,x){return this.notation(i,x)},l}()}).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(y,E,_){"use strict";var C=y("babel-runtime/core-js/object/create"),m=function(c){return c&&c.__esModule?c:{default:c}}(C);(function(){var c,r,n,e,s,u=function(f,d){function a(){this.constructor=f}for(var h in d)o.call(d,h)&&(f[h]=d[h]);return a.prototype=d.prototype,f.prototype=new a,f.__super__=d.prototype,f},o={}.hasOwnProperty;s=y("./Utility"),e=s.isObject,n=s.isFunction,r=y("./XMLNode"),c=y("./XMLAttribute"),E.exports=function(f){function d(a,h,g){if(d.__super__.constructor.call(this,a),h==null)throw new Error("Missing element name");this.name=this.stringify.eleName(h),this.attributes={},g!=null&&this.attribute(g),a.isDocument&&(this.isRoot=!0,this.documentObject=a,a.rootObject=this)}return u(d,f),d.prototype.clone=function(){var a,h,g,p;g=(0,m.default)(this),g.isRoot&&(g.documentObject=null),g.attributes={},p=this.attributes;for(h in p)o.call(p,h)&&(a=p[h],g.attributes[h]=a.clone());return g.children=[],this.children.forEach(function(S){var w;return w=S.clone(),w.parent=g,g.children.push(w)}),g},d.prototype.attribute=function(a,h){var g,p;if(a!=null&&(a=a.valueOf()),e(a))for(g in a)o.call(a,g)&&(p=a[g],this.attribute(g,p));else n(h)&&(h=h.apply()),this.options.skipNullAttributes&&h==null||(this.attributes[a]=new c(this,a,h));return this},d.prototype.removeAttribute=function(a){var h,g,p;if(a==null)throw new Error("Missing attribute name");if(a=a.valueOf(),Array.isArray(a))for(g=0,p=a.length;g<p;g++)h=a[g],delete this.attributes[h];else delete this.attributes[a];return this},d.prototype.toString=function(a){return this.options.writer.set(a).element(this)},d.prototype.att=function(a,h){return this.attribute(a,h)},d.prototype.a=function(a,h){return this.attribute(a,h)},d}(r)}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLNode":227,"babel-runtime/core-js/object/create":19}],227:[function(y,E,_){"use strict";(function(){var C,m,c,r,n,e,s,u,o,f,d,a,h={}.hasOwnProperty;a=y("./Utility"),d=a.isObject,f=a.isFunction,o=a.isEmpty,n=null,C=null,m=null,c=null,r=null,s=null,u=null,e=null,E.exports=function(){function g(p){this.parent=p,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],n||(n=y("./XMLElement"),C=y("./XMLCData"),m=y("./XMLComment"),c=y("./XMLDeclaration"),r=y("./XMLDocType"),s=y("./XMLRaw"),u=y("./XMLText"),e=y("./XMLProcessingInstruction"))}return g.prototype.element=function(p,S,w){var B,b,A,l,i,x,O,T,D,R;if(x=null,S==null&&(S={}),S=S.valueOf(),d(S)||(D=[S,w],w=D[0],S=D[1]),p!=null&&(p=p.valueOf()),Array.isArray(p))for(A=0,O=p.length;A<O;A++)b=p[A],x=this.element(b);else if(f(p))x=this.element(p.apply());else if(d(p)){for(i in p)if(h.call(p,i))if(R=p[i],f(R)&&(R=R.apply()),d(R)&&o(R)&&(R=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&i.indexOf(this.stringify.convertAttKey)===0)x=this.attribute(i.substr(this.stringify.convertAttKey.length),R);else if(!this.options.separateArrayItems&&Array.isArray(R))for(l=0,T=R.length;l<T;l++)b=R[l],B={},B[i]=b,x=this.element(B);else d(R)?(x=this.element(i),x.element(R)):x=this.element(i,R)}else x=!this.options.ignoreDecorators&&this.stringify.convertTextKey&&p.indexOf(this.stringify.convertTextKey)===0?this.text(w):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&p.indexOf(this.stringify.convertCDataKey)===0?this.cdata(w):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&p.indexOf(this.stringify.convertCommentKey)===0?this.comment(w):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&p.indexOf(this.stringify.convertRawKey)===0?this.raw(w):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&p.indexOf(this.stringify.convertPIKey)===0?this.instruction(p.substr(this.stringify.convertPIKey.length),w):this.node(p,S,w);if(x==null)throw new Error("Could not create any elements with: "+p);return x},g.prototype.insertBefore=function(p,S,w){var B,b,A;if(this.isRoot)throw new Error("Cannot insert elements at root level");return b=this.parent.children.indexOf(this),A=this.parent.children.splice(b),B=this.parent.element(p,S,w),Array.prototype.push.apply(this.parent.children,A),B},g.prototype.insertAfter=function(p,S,w){var B,b,A;if(this.isRoot)throw new Error("Cannot insert elements at root level");return b=this.parent.children.indexOf(this),A=this.parent.children.splice(b+1),B=this.parent.element(p,S,w),Array.prototype.push.apply(this.parent.children,A),B},g.prototype.remove=function(){var p;if(this.isRoot)throw new Error("Cannot remove the root element");return p=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[p,p-p+1].concat([])),this.parent},g.prototype.node=function(p,S,w){var B,b;return p!=null&&(p=p.valueOf()),S||(S={}),S=S.valueOf(),d(S)||(b=[S,w],w=b[0],S=b[1]),B=new n(this,p,S),w!=null&&B.text(w),this.children.push(B),B},g.prototype.text=function(p){var S;return S=new u(this,p),this.children.push(S),this},g.prototype.cdata=function(p){var S;return S=new C(this,p),this.children.push(S),this},g.prototype.comment=function(p){var S;return S=new m(this,p),this.children.push(S),this},g.prototype.commentBefore=function(p){var S,w;return S=this.parent.children.indexOf(this),w=this.parent.children.splice(S),this.parent.comment(p),Array.prototype.push.apply(this.parent.children,w),this},g.prototype.commentAfter=function(p){var S,w;return S=this.parent.children.indexOf(this),w=this.parent.children.splice(S+1),this.parent.comment(p),Array.prototype.push.apply(this.parent.children,w),this},g.prototype.raw=function(p){var S;return S=new s(this,p),this.children.push(S),this},g.prototype.instruction=function(p,S){var w,B,b,A,l;if(p!=null&&(p=p.valueOf()),S!=null&&(S=S.valueOf()),Array.isArray(p))for(A=0,l=p.length;A<l;A++)w=p[A],this.instruction(w);else if(d(p))for(w in p)h.call(p,w)&&(B=p[w],this.instruction(w,B));else f(S)&&(S=S.apply()),b=new e(this,p,S),this.children.push(b);return this},g.prototype.instructionBefore=function(p,S){var w,B;return w=this.parent.children.indexOf(this),B=this.parent.children.splice(w),this.parent.instruction(p,S),Array.prototype.push.apply(this.parent.children,B),this},g.prototype.instructionAfter=function(p,S){var w,B;return w=this.parent.children.indexOf(this),B=this.parent.children.splice(w+1),this.parent.instruction(p,S),Array.prototype.push.apply(this.parent.children,B),this},g.prototype.declaration=function(p,S,w){var B,b;return B=this.document(),b=new c(B,p,S,w),B.children[0]instanceof c?B.children[0]=b:B.children.unshift(b),B.root()||B},g.prototype.doctype=function(p,S){var w,B,b,A,l,i,x,O,T,D;for(B=this.document(),b=new r(B,p,S),T=B.children,A=l=0,x=T.length;l<x;A=++l)if((w=T[A])instanceof r)return B.children[A]=b,b;for(D=B.children,A=i=0,O=D.length;i<O;A=++i)if(w=D[A],w.isRoot)return B.children.splice(A,0,b),b;return B.children.push(b),b},g.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},g.prototype.root=function(){var p;for(p=this;p;){if(p.isDocument)return p.rootObject;if(p.isRoot)return p;p=p.parent}},g.prototype.document=function(){var p;for(p=this;p;){if(p.isDocument)return p;p=p.parent}},g.prototype.end=function(p){return this.document().end(p)},g.prototype.prev=function(){var p;if((p=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node");return this.parent.children[p-1]},g.prototype.next=function(){var p;if((p=this.parent.children.indexOf(this))===-1||p===this.parent.children.length-1)throw new Error("Already at the last node");return this.parent.children[p+1]},g.prototype.importDocument=function(p){var S;return S=p.root().clone(),S.parent=this,S.isRoot=!1,this.children.push(S),this},g.prototype.ele=function(p,S,w){return this.element(p,S,w)},g.prototype.nod=function(p,S,w){return this.node(p,S,w)},g.prototype.txt=function(p){return this.text(p)},g.prototype.dat=function(p){return this.cdata(p)},g.prototype.com=function(p){return this.comment(p)},g.prototype.ins=function(p,S){return this.instruction(p,S)},g.prototype.doc=function(){return this.document()},g.prototype.dec=function(p,S,w){return this.declaration(p,S,w)},g.prototype.dtd=function(p,S){return this.doctype(p,S)},g.prototype.e=function(p,S,w){return this.element(p,S,w)},g.prototype.n=function(p,S,w){return this.node(p,S,w)},g.prototype.t=function(p){return this.text(p)},g.prototype.d=function(p){return this.cdata(p)},g.prototype.c=function(p){return this.comment(p)},g.prototype.r=function(p){return this.raw(p)},g.prototype.i=function(p,S){return this.instruction(p,S)},g.prototype.u=function(){return this.up()},g.prototype.importXMLBuilder=function(p){return this.importDocument(p)},g}()}).call(void 0)},{"./Utility":214,"./XMLCData":216,"./XMLComment":217,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233}],228:[function(y,E,_){"use strict";var C=y("babel-runtime/core-js/object/create"),m=function(c){return c&&c.__esModule?c:{default:c}}(C);(function(){var c,r=function(e,s){function u(){this.constructor=e}for(var o in s)n.call(s,o)&&(e[o]=s[o]);return u.prototype=s.prototype,e.prototype=new u,e.__super__=s.prototype,e},n={}.hasOwnProperty;c=y("./XMLNode"),E.exports=function(e){function s(u,o,f){if(s.__super__.constructor.call(this,u),o==null)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(o),f&&(this.value=this.stringify.insValue(f))}return r(s,e),s.prototype.clone=function(){return(0,m.default)(this)},s.prototype.toString=function(u){return this.options.writer.set(u).processingInstruction(this)},s}(c)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],229:[function(y,E,_){"use strict";var C=y("babel-runtime/core-js/object/create"),m=function(c){return c&&c.__esModule?c:{default:c}}(C);(function(){var c,r=function(e,s){function u(){this.constructor=e}for(var o in s)n.call(s,o)&&(e[o]=s[o]);return u.prototype=s.prototype,e.prototype=new u,e.__super__=s.prototype,e},n={}.hasOwnProperty;c=y("./XMLNode"),E.exports=function(e){function s(u,o){if(s.__super__.constructor.call(this,u),o==null)throw new Error("Missing raw text");this.value=this.stringify.raw(o)}return r(s,e),s.prototype.clone=function(){return(0,m.default)(this)},s.prototype.toString=function(u){return this.options.writer.set(u).raw(this)},s}(c)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],230:[function(y,E,_){"use strict";(function(){var C,m,c,r,n,e,s,u,o,f,d,a,h,g=function(S,w){function B(){this.constructor=S}for(var b in w)p.call(w,b)&&(S[b]=w[b]);return B.prototype=w.prototype,S.prototype=new B,S.__super__=w.prototype,S},p={}.hasOwnProperty;s=y("./XMLDeclaration"),u=y("./XMLDocType"),C=y("./XMLCData"),m=y("./XMLComment"),o=y("./XMLElement"),d=y("./XMLRaw"),a=y("./XMLText"),f=y("./XMLProcessingInstruction"),c=y("./XMLDTDAttList"),r=y("./XMLDTDElement"),n=y("./XMLDTDEntity"),e=y("./XMLDTDNotation"),h=y("./XMLWriterBase"),E.exports=function(S){function w(B,b){w.__super__.constructor.call(this,b),this.stream=B}return g(w,S),w.prototype.document=function(B){var b,A,l,i,x,O,T,D;for(O=B.children,A=0,i=O.length;A<i;A++)b=O[A],b.isLastRootNode=!1;for(B.children[B.children.length-1].isLastRootNode=!0,T=B.children,D=[],l=0,x=T.length;l<x;l++)switch(b=T[l],!1){case!(b instanceof s):D.push(this.declaration(b));break;case!(b instanceof u):D.push(this.docType(b));break;case!(b instanceof m):D.push(this.comment(b));break;case!(b instanceof f):D.push(this.processingInstruction(b));break;default:D.push(this.element(b))}return D},w.prototype.attribute=function(B){return this.stream.write(" "+B.name+'="'+B.value+'"')},w.prototype.cdata=function(B,b){return this.stream.write(this.space(b)+"<![CDATA["+B.text+"]]>"+this.endline(B))},w.prototype.comment=function(B,b){return this.stream.write(this.space(b)+"<!-- "+B.text+" -->"+this.endline(B))},w.prototype.declaration=function(B,b){return this.stream.write(this.space(b)),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))},w.prototype.docType=function(B,b){var A,l,i,x;if(b||(b=0),this.stream.write(this.space(b)),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)),x=B.children,l=0,i=x.length;l<i;l++)switch(A=x[l],!1){case!(A instanceof c):this.dtdAttList(A,b+1);break;case!(A instanceof r):this.dtdElement(A,b+1);break;case!(A instanceof n):this.dtdEntity(A,b+1);break;case!(A instanceof e):this.dtdNotation(A,b+1);break;case!(A instanceof C):this.cdata(A,b+1);break;case!(A instanceof m):this.comment(A,b+1);break;case!(A instanceof f):this.processingInstruction(A,b+1);break;default:throw new Error("Unknown DTD node type: "+A.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(B))},w.prototype.element=function(B,b){var A,l,i,x,O,T,D,R;b||(b=0),R=this.space(b),this.stream.write(R+"<"+B.name),T=B.attributes;for(O in T)p.call(T,O)&&(A=T[O],this.attribute(A));if(B.children.length===0||B.children.every(function(k){return k.value===""}))this.allowEmpty?this.stream.write("></"+B.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&B.children.length===1&&B.children[0].value!=null)this.stream.write(">"),this.stream.write(B.children[0].value),this.stream.write("</"+B.name+">");else{for(this.stream.write(">"+this.newline),D=B.children,i=0,x=D.length;i<x;i++)switch(l=D[i],!1){case!(l instanceof C):this.cdata(l,b+1);break;case!(l instanceof m):this.comment(l,b+1);break;case!(l instanceof o):this.element(l,b+1);break;case!(l instanceof d):this.raw(l,b+1);break;case!(l instanceof a):this.text(l,b+1);break;case!(l instanceof f):this.processingInstruction(l,b+1);break;default:throw new Error("Unknown XML node type: "+l.constructor.name)}this.stream.write(R+"</"+B.name+">")}return this.stream.write(this.endline(B))},w.prototype.processingInstruction=function(B,b){return this.stream.write(this.space(b)+"<?"+B.target),B.value&&this.stream.write(" "+B.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(B))},w.prototype.raw=function(B,b){return this.stream.write(this.space(b)+B.value+this.endline(B))},w.prototype.text=function(B,b){return this.stream.write(this.space(b)+B.value+this.endline(B))},w.prototype.dtdAttList=function(B,b){return this.stream.write(this.space(b)+"<!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))},w.prototype.dtdElement=function(B,b){return this.stream.write(this.space(b)+"<!ELEMENT "+B.name+" "+B.value),this.stream.write(this.spacebeforeslash+">"+this.endline(B))},w.prototype.dtdEntity=function(B,b){return this.stream.write(this.space(b)+"<!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))},w.prototype.dtdNotation=function(B,b){return this.stream.write(this.space(b)+"<!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))},w.prototype.endline=function(B){return B.isLastRootNode?"":this.newline},w}(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(y,E,_){"use strict";(function(){var C,m,c,r,n,e,s,u,o,f,d,a,h,g=function(S,w){function B(){this.constructor=S}for(var b in w)p.call(w,b)&&(S[b]=w[b]);return B.prototype=w.prototype,S.prototype=new B,S.__super__=w.prototype,S},p={}.hasOwnProperty;s=y("./XMLDeclaration"),u=y("./XMLDocType"),C=y("./XMLCData"),m=y("./XMLComment"),o=y("./XMLElement"),d=y("./XMLRaw"),a=y("./XMLText"),f=y("./XMLProcessingInstruction"),c=y("./XMLDTDAttList"),r=y("./XMLDTDElement"),n=y("./XMLDTDEntity"),e=y("./XMLDTDNotation"),h=y("./XMLWriterBase"),E.exports=function(S){function w(B){w.__super__.constructor.call(this,B)}return g(w,S),w.prototype.document=function(B){var b,A,l,i,x;for(this.textispresent=!1,i="",x=B.children,A=0,l=x.length;A<l;A++)b=x[A],i+=function(){switch(!1){case!(b instanceof s):return this.declaration(b);case!(b instanceof u):return this.docType(b);case!(b instanceof m):return this.comment(b);case!(b instanceof f):return this.processingInstruction(b);default:return this.element(b,0)}}.call(this);return this.pretty&&i.slice(-this.newline.length)===this.newline&&(i=i.slice(0,-this.newline.length)),i},w.prototype.attribute=function(B){return" "+B.name+'="'+B.value+'"'},w.prototype.cdata=function(B,b){return this.space(b)+"<![CDATA["+B.text+"]]>"+this.newline},w.prototype.comment=function(B,b){return this.space(b)+"<!-- "+B.text+" -->"+this.newline},w.prototype.declaration=function(B,b){var A;return A=this.space(b),A+='<?xml version="'+B.version+'"',B.encoding!=null&&(A+=' encoding="'+B.encoding+'"'),B.standalone!=null&&(A+=' standalone="'+B.standalone+'"'),A+=this.spacebeforeslash+"?>",A+=this.newline},w.prototype.docType=function(B,b){var A,l,i,x,O;if(b||(b=0),x=this.space(b),x+="<!DOCTYPE "+B.root().name,B.pubID&&B.sysID?x+=' PUBLIC "'+B.pubID+'" "'+B.sysID+'"':B.sysID&&(x+=' SYSTEM "'+B.sysID+'"'),B.children.length>0){for(x+=" [",x+=this.newline,O=B.children,l=0,i=O.length;l<i;l++)A=O[l],x+=function(){switch(!1){case!(A instanceof c):return this.dtdAttList(A,b+1);case!(A instanceof r):return this.dtdElement(A,b+1);case!(A instanceof n):return this.dtdEntity(A,b+1);case!(A instanceof e):return this.dtdNotation(A,b+1);case!(A instanceof C):return this.cdata(A,b+1);case!(A instanceof m):return this.comment(A,b+1);case!(A instanceof f):return this.processingInstruction(A,b+1);default:throw new Error("Unknown DTD node type: "+A.constructor.name)}}.call(this);x+="]"}return x+=this.spacebeforeslash+">",x+=this.newline},w.prototype.element=function(B,b){var A,l,i,x,O,T,D,R,k,H,J,U,K;b||(b=0),K=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),U=this.space(b),R="",R+=U+"<"+B.name,k=B.attributes;for(D in k)p.call(k,D)&&(A=k[D],R+=this.attribute(A));if(B.children.length===0||B.children.every(function(G){return G.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(H=B.children,i=0,O=H.length;i<O;i++)if(l=H[i],l.value!=null){this.textispresent++,K=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,U=this.space(b)),R+=">"+this.newline,J=B.children,x=0,T=J.length;x<T;x++)l=J[x],R+=function(){switch(!1){case!(l instanceof C):return this.cdata(l,b+1);case!(l instanceof m):return this.comment(l,b+1);case!(l instanceof o):return this.element(l,b+1);case!(l instanceof d):return this.raw(l,b+1);case!(l instanceof a):return this.text(l,b+1);case!(l instanceof f):return this.processingInstruction(l,b+1);default:throw new Error("Unknown XML node type: "+l.constructor.name)}}.call(this);K&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),R+=U+"</"+B.name+">"+this.newline}return R},w.prototype.processingInstruction=function(B,b){var A;return A=this.space(b)+"<?"+B.target,B.value&&(A+=" "+B.value),A+=this.spacebeforeslash+"?>"+this.newline},w.prototype.raw=function(B,b){return this.space(b)+B.value+this.newline},w.prototype.text=function(B,b){return this.space(b)+B.value+this.newline},w.prototype.dtdAttList=function(B,b){var A;return A=this.space(b)+"<!ATTLIST "+B.elementName+" "+B.attributeName+" "+B.attributeType,B.defaultValueType!=="#DEFAULT"&&(A+=" "+B.defaultValueType),B.defaultValue&&(A+=' "'+B.defaultValue+'"'),A+=this.spacebeforeslash+">"+this.newline},w.prototype.dtdElement=function(B,b){return this.space(b)+"<!ELEMENT "+B.name+" "+B.value+this.spacebeforeslash+">"+this.newline},w.prototype.dtdEntity=function(B,b){var A;return A=this.space(b)+"<!ENTITY",B.pe&&(A+=" %"),A+=" "+B.name,B.value?A+=' "'+B.value+'"':(B.pubID&&B.sysID?A+=' PUBLIC "'+B.pubID+'" "'+B.sysID+'"':B.sysID&&(A+=' SYSTEM "'+B.sysID+'"'),B.nData&&(A+=" NDATA "+B.nData)),A+=this.spacebeforeslash+">"+this.newline},w.prototype.dtdNotation=function(B,b){var A;return A=this.space(b)+"<!NOTATION "+B.name,B.pubID&&B.sysID?A+=' PUBLIC "'+B.pubID+'" "'+B.sysID+'"':B.pubID?A+=' PUBLIC "'+B.pubID+'"':B.sysID&&(A+=' SYSTEM "'+B.sysID+'"'),A+=this.spacebeforeslash+">"+this.newline},w.prototype.openNode=function(B,b){var A,l,i,x;if(b||(b=0),B instanceof o){i=this.space(b)+"<"+B.name,x=B.attributes;for(l in x)p.call(x,l)&&(A=x[l],i+=this.attribute(A));return i+=(B.children?">":"/>")+this.newline}return i=this.space(b)+"<!DOCTYPE "+B.rootNodeName,B.pubID&&B.sysID?i+=' PUBLIC "'+B.pubID+'" "'+B.sysID+'"':B.sysID&&(i+=' SYSTEM "'+B.sysID+'"'),i+=(B.children?" [":">")+this.newline},w.prototype.closeNode=function(B,b){switch(b||(b=0),!1){case!(B instanceof o):return this.space(b)+"</"+B.name+">"+this.newline;case!(B instanceof u):return this.space(b)+"]>"+this.newline}},w}(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(y,E,_){"use strict";(function(){var C=function(c,r){return function(){return c.apply(r,arguments)}},m={}.hasOwnProperty;E.exports=function(){function c(r){this.assertLegalChar=C(this.assertLegalChar,this);var n,e,s;r||(r={}),this.noDoubleEncoding=r.noDoubleEncoding,e=r.stringify||{};for(n in e)m.call(e,n)&&(s=e[n],this[n]=s)}return c.prototype.eleName=function(r){return r=""+r||"",this.assertLegalChar(r)},c.prototype.eleText=function(r){return r=""+r||"",this.assertLegalChar(this.elEscape(r))},c.prototype.cdata=function(r){return r=""+r||"",r=r.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(r)},c.prototype.comment=function(r){if(r=""+r||"",r.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+r);return this.assertLegalChar(r)},c.prototype.raw=function(r){return""+r||""},c.prototype.attName=function(r){return r=""+r||""},c.prototype.attValue=function(r){return r=""+r||"",this.attEscape(r)},c.prototype.insTarget=function(r){return""+r||""},c.prototype.insValue=function(r){if(r=""+r||"",r.match(/\?>/))throw new Error("Invalid processing instruction value: "+r);return r},c.prototype.xmlVersion=function(r){if(r=""+r||"",!r.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+r);return r},c.prototype.xmlEncoding=function(r){if(r=""+r||"",!r.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+r);return r},c.prototype.xmlStandalone=function(r){return r?"yes":"no"},c.prototype.dtdPubID=function(r){return""+r||""},c.prototype.dtdSysID=function(r){return""+r||""},c.prototype.dtdElementValue=function(r){return""+r||""},c.prototype.dtdAttType=function(r){return""+r||""},c.prototype.dtdAttDefault=function(r){return r!=null?""+r||"":r},c.prototype.dtdEntityValue=function(r){return""+r||""},c.prototype.dtdNData=function(r){return""+r||""},c.prototype.convertAttKey="@",c.prototype.convertPIKey="?",c.prototype.convertTextKey="#text",c.prototype.convertCDataKey="#cdata",c.prototype.convertCommentKey="#comment",c.prototype.convertRawKey="#raw",c.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},c.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;")},c.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;")},c}()}).call(void 0)},{}],233:[function(y,E,_){"use strict";var C=y("babel-runtime/core-js/object/create"),m=function(c){return c&&c.__esModule?c:{default:c}}(C);(function(){var c,r=function(e,s){function u(){this.constructor=e}for(var o in s)n.call(s,o)&&(e[o]=s[o]);return u.prototype=s.prototype,e.prototype=new u,e.__super__=s.prototype,e},n={}.hasOwnProperty;c=y("./XMLNode"),E.exports=function(e){function s(u,o){if(s.__super__.constructor.call(this,u),o==null)throw new Error("Missing element text");this.value=this.stringify.eleText(o)}return r(s,e),s.prototype.clone=function(){return(0,m.default)(this)},s.prototype.toString=function(u){return this.options.writer.set(u).text(this)},s}(c)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],234:[function(y,E,_){"use strict";(function(){var C={}.hasOwnProperty;E.exports=function(){function m(c){var r,n,e,s,u,o,f,d,a;c||(c={}),this.pretty=c.pretty||!1,this.allowEmpty=(n=c.allowEmpty)!=null&&n,this.pretty?(this.indent=(e=c.indent)!=null?e:" ",this.newline=(s=c.newline)!=null?s:`
`,this.offset=(u=c.offset)!=null?u:0,this.dontprettytextnodes=(o=c.dontprettytextnodes)!=null?o:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=(f=c.spacebeforeslash)!=null?f:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,d=c.writer||{};for(r in d)C.call(d,r)&&(a=d[r],this[r]=a)}return m.prototype.set=function(c){var r,n,e;c||(c={}),"pretty"in c&&(this.pretty=c.pretty),"allowEmpty"in c&&(this.allowEmpty=c.allowEmpty),this.pretty?(this.indent="indent"in c?c.indent:" ",this.newline="newline"in c?c.newline:`
`,this.offset="offset"in c?c.offset:0,this.dontprettytextnodes="dontprettytextnodes"in c?c.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in c?c.spacebeforeslash:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,n=c.writer||{};for(r in n)C.call(n,r)&&(e=n[r],this[r]=e);return this},m.prototype.space=function(c){var r;return this.pretty?(r=(c||0)+this.offset+1,r>0?new Array(r).join(this.indent):""):""},m}()}).call(void 0)},{}],235:[function(y,E,_){"use strict";(function(){var C,m,c,r,n,e,s;s=y("./Utility"),n=s.assign,e=s.isFunction,C=y("./XMLDocument"),m=y("./XMLDocumentCB"),r=y("./XMLStringWriter"),c=y("./XMLStreamWriter"),E.exports.create=function(u,o,f,d){var a,h;if(u==null)throw new Error("Root element needs a name");return d=n({},o,f,d),a=new C(d),h=a.element(u),d.headless||(a.declaration(d),d.pubID==null&&d.sysID==null||a.doctype(d)),h},E.exports.begin=function(u,o,f){var d;return e(u)&&(d=[u,o],o=d[0],f=d[1],u={}),o?new m(u,o,f):new C(u)},E.exports.stringWriter=function(u){return new r(u)},E.exports.streamWriter=function(u,o){return new c(u,o)}}).call(void 0)},{"./Utility":214,"./XMLDocument":224,"./XMLDocumentCB":225,"./XMLStreamWriter":230,"./XMLStringWriter":231}],236:[function(y,E,_){function C(){for(var c={},r=0;r<arguments.length;r++){var n=arguments[r];for(var e in n)m.call(n,e)&&(c[e]=n[e])}return c}E.exports=C;var m=Object.prototype.hasOwnProperty},{}],237:[function(y,E,_){"use strict";function C(d,a,h){r.isBuffer(a)||(a=new r(a)),r.isBuffer(h)||(h=new r(h)),a.length>o?a=d(a):a.length<o&&(a=r.concat([a,f],o));for(var g=new r(o),p=new r(o),S=0;S<o;S++)g[S]=54^a[S],p[S]=92^a[S];var w=d(r.concat([g,h]));return d(r.concat([p,w]))}function m(d,a){d=d||"sha1";var h=u[d],g=[],p=0;return h||c("algorithm:",d,"is not yet supported"),{update:function(S){return r.isBuffer(S)||(S=new r(S)),g.push(S),p+=S.length,this},digest:function(S){var w=r.concat(g),B=a?C(h,a,w):h(w);return g=null,S?B.toString(S):B}}}function c(){var d=[].slice.call(arguments).join(" ");throw new Error([d,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}var r=y("buffer").Buffer,n=y("./sha"),e=y("./sha256"),s=y("./md5"),u={sha1:n,sha256:e,md5:s},o=64,f=new r(o);f.fill(0),_.createHash=function(d){return m(d)},_.createHmac=function(d,a){return m(d,a)},function(d,a){for(var h in d)a(d[h],h)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(d){_[d]=function(){c("sorry,",d,"is not implemented yet")}})},{"./md5":239,"./sha":240,"./sha256":241,buffer:38}],238:[function(y,E,_){"use strict";function C(u,o){if(u.length%n!=0){var f=u.length+(n-u.length%n);u=r.concat([u,e],f)}for(var d=[],a=o?u.readInt32BE:u.readInt32LE,h=0;h<u.length;h+=n)d.push(a.call(u,h));return d}function m(u,o,f){for(var d=new r(o),a=f?d.writeInt32BE:d.writeInt32LE,h=0;h<u.length;h++)a.call(d,u[h],4*h,!0);return d}function c(u,o,f,d){return r.isBuffer(u)||(u=new r(u)),m(o(C(u,d),u.length*s),f,d)}var r=y("buffer").Buffer,n=4,e=new r(n);e.fill(0);var s=8;E.exports={hash:c}},{buffer:38}],239:[function(y,E,_){"use strict";function C(f,d){f[d>>5]|=128<<d%32,f[14+(d+64>>>9<<4)]=d;for(var a=1732584193,h=-271733879,g=-1732584194,p=271733878,S=0;S<f.length;S+=16){var w=a,B=h,b=g,A=p;a=c(a,h,g,p,f[S+0],7,-680876936),p=c(p,a,h,g,f[S+1],12,-389564586),g=c(g,p,a,h,f[S+2],17,606105819),h=c(h,g,p,a,f[S+3],22,-1044525330),a=c(a,h,g,p,f[S+4],7,-176418897),p=c(p,a,h,g,f[S+5],12,1200080426),g=c(g,p,a,h,f[S+6],17,-1473231341),h=c(h,g,p,a,f[S+7],22,-45705983),a=c(a,h,g,p,f[S+8],7,1770035416),p=c(p,a,h,g,f[S+9],12,-1958414417),g=c(g,p,a,h,f[S+10],17,-42063),h=c(h,g,p,a,f[S+11],22,-1990404162),a=c(a,h,g,p,f[S+12],7,1804603682),p=c(p,a,h,g,f[S+13],12,-40341101),g=c(g,p,a,h,f[S+14],17,-1502002290),h=c(h,g,p,a,f[S+15],22,1236535329),a=r(a,h,g,p,f[S+1],5,-165796510),p=r(p,a,h,g,f[S+6],9,-1069501632),g=r(g,p,a,h,f[S+11],14,643717713),h=r(h,g,p,a,f[S+0],20,-373897302),a=r(a,h,g,p,f[S+5],5,-701558691),p=r(p,a,h,g,f[S+10],9,38016083),g=r(g,p,a,h,f[S+15],14,-660478335),h=r(h,g,p,a,f[S+4],20,-405537848),a=r(a,h,g,p,f[S+9],5,568446438),p=r(p,a,h,g,f[S+14],9,-1019803690),g=r(g,p,a,h,f[S+3],14,-187363961),h=r(h,g,p,a,f[S+8],20,1163531501),a=r(a,h,g,p,f[S+13],5,-1444681467),p=r(p,a,h,g,f[S+2],9,-51403784),g=r(g,p,a,h,f[S+7],14,1735328473),h=r(h,g,p,a,f[S+12],20,-1926607734),a=n(a,h,g,p,f[S+5],4,-378558),p=n(p,a,h,g,f[S+8],11,-2022574463),g=n(g,p,a,h,f[S+11],16,1839030562),h=n(h,g,p,a,f[S+14],23,-35309556),a=n(a,h,g,p,f[S+1],4,-1530992060),p=n(p,a,h,g,f[S+4],11,1272893353),g=n(g,p,a,h,f[S+7],16,-155497632),h=n(h,g,p,a,f[S+10],23,-1094730640),a=n(a,h,g,p,f[S+13],4,681279174),p=n(p,a,h,g,f[S+0],11,-358537222),g=n(g,p,a,h,f[S+3],16,-722521979),h=n(h,g,p,a,f[S+6],23,76029189),a=n(a,h,g,p,f[S+9],4,-640364487),p=n(p,a,h,g,f[S+12],11,-421815835),g=n(g,p,a,h,f[S+15],16,530742520),h=n(h,g,p,a,f[S+2],23,-995338651),a=e(a,h,g,p,f[S+0],6,-198630844),p=e(p,a,h,g,f[S+7],10,1126891415),g=e(g,p,a,h,f[S+14],15,-1416354905),h=e(h,g,p,a,f[S+5],21,-57434055),a=e(a,h,g,p,f[S+12],6,1700485571),p=e(p,a,h,g,f[S+3],10,-1894986606),g=e(g,p,a,h,f[S+10],15,-1051523),h=e(h,g,p,a,f[S+1],21,-2054922799),a=e(a,h,g,p,f[S+8],6,1873313359),p=e(p,a,h,g,f[S+15],10,-30611744),g=e(g,p,a,h,f[S+6],15,-1560198380),h=e(h,g,p,a,f[S+13],21,1309151649),a=e(a,h,g,p,f[S+4],6,-145523070),p=e(p,a,h,g,f[S+11],10,-1120210379),g=e(g,p,a,h,f[S+2],15,718787259),h=e(h,g,p,a,f[S+9],21,-343485551),a=s(a,w),h=s(h,B),g=s(g,b),p=s(p,A)}return Array(a,h,g,p)}function m(f,d,a,h,g,p){return s(u(s(s(d,f),s(h,p)),g),a)}function c(f,d,a,h,g,p,S){return m(d&a|~d&h,f,d,g,p,S)}function r(f,d,a,h,g,p,S){return m(d&h|a&~h,f,d,g,p,S)}function n(f,d,a,h,g,p,S){return m(d^a^h,f,d,g,p,S)}function e(f,d,a,h,g,p,S){return m(a^(d|~h),f,d,g,p,S)}function s(f,d){var a=(65535&f)+(65535&d);return(f>>16)+(d>>16)+(a>>16)<<16|65535&a}function u(f,d){return f<<d|f>>>32-d}var o=y("./helpers");E.exports=function(f){return o.hash(f,C,16)}},{"./helpers":238}],240:[function(y,E,_){"use strict";function C(s,u){s[u>>5]|=128<<24-u%32,s[15+(u+64>>9<<4)]=u;for(var o=Array(80),f=1732584193,d=-271733879,a=-1732584194,h=271733878,g=-1009589776,p=0;p<s.length;p+=16){for(var S=f,w=d,B=a,b=h,A=g,l=0;l<80;l++){o[l]=l<16?s[p+l]:n(o[l-3]^o[l-8]^o[l-14]^o[l-16],1);var i=r(r(n(f,5),m(l,d,a,h)),r(r(g,o[l]),c(l)));g=h,h=a,a=n(d,30),d=f,f=i}f=r(f,S),d=r(d,w),a=r(a,B),h=r(h,b),g=r(g,A)}return Array(f,d,a,h,g)}function m(s,u,o,f){return s<20?u&o|~u&f:s<40?u^o^f:s<60?u&o|u&f|o&f:u^o^f}function c(s){return s<20?1518500249:s<40?1859775393:s<60?-1894007588:-899497514}function r(s,u){var o=(65535&s)+(65535&u);return(s>>16)+(u>>16)+(o>>16)<<16|65535&o}function n(s,u){return s<<u|s>>>32-u}var e=y("./helpers");E.exports=function(s){return e.hash(s,C,20,!0)}},{"./helpers":238}],241:[function(y,E,_){"use strict";var C=y("./helpers"),m=function(a,h){var g=(65535&a)+(65535&h);return(a>>16)+(h>>16)+(g>>16)<<16|65535&g},c=function(a,h){return a>>>h|a<<32-h},r=function(a,h){return a>>>h},n=function(a,h,g){return a&h^~a&g},e=function(a,h,g){return a&h^a&g^h&g},s=function(a){return c(a,2)^c(a,13)^c(a,22)},u=function(a){return c(a,6)^c(a,11)^c(a,25)},o=function(a){return c(a,7)^c(a,18)^r(a,3)},f=function(a){return c(a,17)^c(a,19)^r(a,10)},d=function(a,h){var g,p,S,w,B,b,A,l,i,x,O,T,D=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),R=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),k=new Array(64);a[h>>5]|=128<<24-h%32,a[15+(h+64>>9<<4)]=h;for(var i=0;i<a.length;i+=16){g=R[0],p=R[1],S=R[2],w=R[3],B=R[4],b=R[5],A=R[6],l=R[7];for(var x=0;x<64;x++)k[x]=x<16?a[x+i]:m(m(m(f(k[x-2]),k[x-7]),o(k[x-15])),k[x-16]),O=m(m(m(m(l,u(B)),n(B,b,A)),D[x]),k[x]),T=m(s(g),e(g,p,S)),l=A,A=b,b=B,B=m(w,O),w=S,S=p,p=g,g=m(O,T);R[0]=m(g,R[0]),R[1]=m(p,R[1]),R[2]=m(S,R[2]),R[3]=m(w,R[3]),R[4]=m(B,R[4]),R[5]=m(b,R[5]),R[6]=m(A,R[6]),R[7]=m(l,R[7])}return R};E.exports=function(a){return C.hash(a,d,32,!0)}},{"./helpers":238}],242:[function(y,E,_){(function(C){"use strict";function m(d){return d&&d.__esModule?d:{default:d}}var c=y("babel-runtime/core-js/object/create"),r=m(c),n=y("babel-runtime/helpers/classCallCheck"),e=m(n),s=y("babel-runtime/helpers/createClass"),u=m(s),o=y("babel-runtime/helpers/typeof"),f=m(o);!function(d){if((_===void 0?"undefined":(0,f.default)(_))==="object"&&E!==void 0)E.exports=d();else if(typeof P=="function"&&P.amd)P([],d);else{var a;a=typeof window!="undefined"?window:C!==void 0?C:typeof self!="undefined"?self:this,a.mime=d()}}(function(){return function d(a,h,g){function p(B,b){if(!h[B]){if(!a[B]){var A=typeof y=="function"&&y;if(!b&&A)return A(B,!0);if(S)return S(B,!0);var l=new Error("Cannot find module '"+B+"'");throw l.code="MODULE_NOT_FOUND",l}var i=h[B]={exports:{}};a[B][0].call(i.exports,function(x){var O=a[B][1][x];return p(O||x)},i,i.exports,d,a,h,g)}return h[B].exports}for(var S=typeof y=="function"&&y,w=0;w<g.length;w++)p(g[w]);return p}({1:[function(d,a,h){var g=function(){function p(){(0,e.default)(this,p),this._types=(0,r.default)(null),this._extensions=(0,r.default)(null);for(var S=0;S<arguments.length;S++)this.define(arguments[S])}return(0,u.default)(p,[{key:"define",value:function(S,w){for(var B in S){for(var b=S[B],A=0;A<b.length;A++){var l=b[A];if(!w&&l in this._types)throw new Error('Attempt to change mapping for "'+l+'" extension from "'+this._types[l]+'" to "'+B+'". Pass `force=true` to allow this, otherwise remove "'+l+'" from the list of extensions for "'+B+'".');this._types[l]=B}!w&&this._extensions[B]||(this._extensions[B]=b[0])}}},{key:"getType",value:function(S){S=String(S);var w=S.replace(/^.*[\/\\]/,"").toLowerCase(),B=w.replace(/^.*\./,"").toLowerCase(),b=w.length<S.length;return(B.length<w.length-1||!b)&&this._types[B]||null}},{key:"getExtension",value:function(S){return(S=/^\s*([^;\s]*)/.test(S)&&RegExp.$1)&&this._extensions[S.toLowerCase()]||null}}]),p}();a.exports=g},{}],2:[function(d,a,h){var g=d("./Mime");a.exports=new g(d("./types/standard"),d("./types/other"))},{"./Mime":1,"./types/other":3,"./types/standard":4}],3:[function(d,a,h){a.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,a,h){a.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 ue!="undefined"?ue: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(y,E,_){"use strict";_.encodeURIComponent=function(C){try{return encodeURIComponent(C)}catch(m){return C}},_.escape=y("escape-html"),_.timestamp=function(C){if(C){var m=C;return typeof m=="string"&&(m=Number(m)),String(C).length===10&&(m*=1e3),new Date(m)}return Math.round(Date.now()/1e3)}},{"escape-html":157}],244:[function(y,E,_){(function(C,m){"use strict";function c(l){return l&&l.__esModule?l:{default:l}}function r(l,i){return l===void 0?i:l}function n(l,i){return function(x,O,T){if(x)return i(x);l({data:O,status:T.statusCode,headers:T.headers,res:T})}}var e,s=y("babel-runtime/core-js/json/stringify"),u=c(s),o=y("babel-runtime/helpers/typeof"),f=c(o),d=y("util"),a=y("url"),h=y("http"),g=y("https"),p=y("debug")("urllib"),S=y("humanize-ms"),w=0,B=Math.pow(2,31)-10,b=/^https?:\/\//i;_.TIMEOUTS=[S("300s"),S("300s")];var A=["json","text"];_.request=function(l,i,x){return arguments.length===2&&typeof i=="function"&&(x=i,i=null),typeof x=="function"?_.requestWithCallback(l,i,x):(e||(e=y("any-promise")),new e(function(O,T){_.requestWithCallback(l,i,n(O,T))}))},_.requestWithCallback=function(l,i,x){function O(){ke&&(clearTimeout(ke),ke=null)}function T(){re&&(clearTimeout(re),re=null)}function D(lt,rt,qe){if(T(),!x)return console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),G,C.pid,Ae.method,l),void(lt&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),G,C.pid,lt.name,lt.message,lt.stack));var $e=x;x=null;var Pe={};if(qe&&(le=qe.statusCode,Pe=qe.headers),le===401&&Pe["www-authenticate"]&&(!i.headers||!i.headers.Authorization)&&i.digestAuth){var je=Pe["www-authenticate"];if(je.indexOf("Digest ")>=0)return p("Request#%d %s: got digest auth header WWW-Authenticate: %s",G,l,je),i.headers=i.headers||{},i.headers.Authorization=digestAuthHeader(Ae.method,Ae.path,je,i.digestAuth),p("Request#%d %s: auth with digest header: %s",G,l,i.headers.Authorization),qe.headers["set-cookie"]&&(i.headers.Cookie=qe.headers["set-cookie"].join(";")),_.requestWithCallback(l,i,$e)}var Ne=Date.now()-X;Ke&&(Ke.contentDownload=Ne),p("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Ne,ne,le,Ae.method,Ae.host,Ae.path,de,Ke);var et={status:le,statusCode:le,headers:Pe,size:ne,aborted:De,rt:Ne,keepAliveSocket:de,data:rt,requestUrls:i.requestUrls,timing:Ke,remoteAddress:Xe,remotePort:xt};if(lt){var mt="";se&&typeof se.getCurrentStatus=="function"&&(mt=", agent status: "+(0,u.default)(se.getCurrentStatus())),lt.message+=", "+Ae.method+" "+l+" "+le+" (connected: "+W+", keepalive socket: "+de+mt+`)
headers: `+(0,u.default)(Pe),lt.data=rt,lt.path=Ae.path,lt.status=le,lt.headers=Pe,lt.res=et}$e(lt,rt,i.streaming?qe:et),i.emitter&&(N.url=l,N.socket=ct&&ct.connection,N.options=Ae,N.size=Ie,i.emitter.emit("response",{requestId:G,error:lt,ctx:i.ctx,req:N,res:et}))}function R(lt){var rt=null;if(i.followRedirect&&statuses.redirect[lt.statusCode]){i._followRedirectCount=(i._followRedirectCount||0)+1;var qe=lt.headers.location;if(qe){if(!(i._followRedirectCount>i.maxRedirects)){var $e=i.formatRedirectUrl?i.formatRedirectUrl(l,qe):a.resolve(l,qe);p("Request#%d %s: `redirected` from %s to %s",G,Ae.path,l,$e),T(),i.headers&&i.headers.Host&&b.test(qe)&&(i.headers.Host=null);var Pe=x;return x=null,_.requestWithCallback($e,i,Pe),{redirect:!0,error:null}}rt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+l),rt.name="MaxRedirectError"}else rt=new Error("Got statusCode "+lt.statusCode+" but cannot resolve next location from headers"),rt.name="FollowRedirectError"}return{redirect:!1,error:rt}}function k(lt,rt,qe){return qe(null,rt,lt.headers["content-encoding"])}function H(lt){if(Ke&&(Ke.waiting=Date.now()-X),p("Request#%d %s `req response` event emit: status %d, headers: %j",G,l,lt.statusCode,lt.headers),i.streaming){var rt=R(lt);return rt.redirect?void lt.resume():rt.error?(lt.resume(),D(rt.error,null,lt)):D(null,null,lt)}if(lt.on("close",function(){p("Request#%d %s: `res close` event emit, total size %d",G,l,ne)}),lt.on("error",function(){p("Request#%d %s: `res error` event emit, total size %d",G,l,ne)}),lt.on("aborted",function(){De=!0,p("Request#%d %s: `res aborted` event emit, total size %d",G,l,ne)}),ze){var rt=R(lt);return rt.redirect?void lt.resume():rt.error?(lt.resume(),ze.end(),D(rt.error,null,lt)):(i.consumeWriteStream===!1?lt.on("end",D.bind(null,null,null,lt)):isNode010||isNode012?first([[ze,"close"],[lt,"aborted"]],function(Pe,je,Ne){p("Request#%d %s: writeStream or res %s event emitted",G,l,Ne),D(F||null,null,lt)}):ze.on("close",function(){p("Request#%d %s: writeStream close event emitted",G,l),D(F||null,null,lt)}),lt.pipe(ze))}var qe=[];lt.on("data",function($e){p("Request#%d %s: `res data` event emit, size %d",G,l,$e.length),ne+=$e.length,qe.push($e)}),lt.on("end",function(){var $e=m.concat(qe,ne);if(p("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",G,l,ne,lt._dumped),F)return D(F,$e,lt);var Pe=R(lt);if(Pe.error)return D(Pe.error,$e,lt);Pe.redirect||k(lt,$e,function(je,Ne,et){if(je)return D(je,$e,lt);if(!et&&A.indexOf(i.dataType)>=0){try{Ne=decodeBodyByCharset(Ne,lt)}catch(At){return p("decodeBodyByCharset error: %s",At),D(null,Ne,lt)}if(i.dataType==="json")if(ne===0)Ne=null;else{var mt=parseJSON(Ne,_e);mt.error?je=mt.error:Ne=mt.data}}De&&p("Request#%d %s: Remote socket was terminated before `response.end()` was called",G,l),D(je,Ne,lt)})})}function J(){p("Response timer ticking, timeout: %d",Et),re=setTimeout(function(){re=null;var lt="Response timeout for "+Et+"ms";F=new Error(lt),F.name="ResponseTimeoutError",F.requestId=G,p("ResponseTimeout: Request#%d %s %s: %s, connected: %s",G,l,F.name,lt,W),U()},Et)}function U(){p("Request#%d %s abort, connected: %s",G,l,W),ct.socket||(F.noSocket=!0,D(F)),ct.abort()}if(!l||typeof l!="string"&&(l===void 0?"undefined":(0,f.default)(l))!=="object"){var K=d.format("expect request url to be a string or a http request options, but got %j",l);throw new Error(K)}arguments.length===2&&typeof i=="function"&&(x=i,i=null),i=i||{},w>=B&&(w=0);var G=++w;i.requestUrls=i.requestUrls||[];var N={requestId:G,url:l,args:i,ctx:i.ctx};i.emitter&&i.emitter.emit("request",N),i.timeout=i.timeout||_.TIMEOUTS,i.maxRedirects=i.maxRedirects||10,i.streaming=i.streaming||i.customResponse;var Q,X=Date.now();typeof l=="string"?(b.test(l)||(l="http://"+l),Q=a.parse(l)):Q=l;var te=(i.type||i.method||Q.method||"GET").toUpperCase(),oe=Q.port||80,me=h,se=r(i.agent,_.agent),_e=i.fixJSONCtlChars;Q.protocol==="https:"&&(me=g,se=r(i.httpsAgent,_.httpsAgent),Q.port||(oe=443));var Ae={host:Q.hostname||Q.host||"localhost",path:Q.path||"/",method:te,port:oe,agent:se,headers:i.headers||{},lookup:i.lookup};Array.isArray(i.timeout)?Ae.requestTimeout=i.timeout[i.timeout.length-1]:i.timeout!==void 0&&(Ae.requestTimeout=i.timeout);for(var Ee=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],pe=0;pe<Ee.length;pe++){var he=Ee[pe];i.hasOwnProperty(he)&&(Ae[he]=i[he])}Ae.rejectUnauthorized!==!1||Ae.hasOwnProperty("secureOptions")||(Ae.secureOptions=y("constants").SSL_OP_NO_TLSv1_2);var ie=i.auth||Q.auth;ie&&(Ae.auth=ie);var fe=i.content||i.data,ge=te==="GET"||te==="HEAD"||i.dataAsQueryString;if(!i.content&&fe&&typeof fe!="string"&&!m.isBuffer(fe))if(ge)fe=i.nestedQuerystring?qs.stringify(fe):querystring.stringify(fe);else{var ce=Ae.headers["Content-Type"]||Ae.headers["content-type"];ce||(ce=i.contentType==="json"?"application/json":"application/x-www-form-urlencoded",Ae.headers["Content-Type"]=ce),fe=parseContentType(ce).type==="application/json"?(0,u.default)(fe):i.nestedQuerystring?qs.stringify(fe):querystring.stringify(fe)}ge&&fe&&(Ae.path+=(Q.query?"&":"?")+fe,fe=null);var Ie=0;if(fe){var Fe=fe.length;m.isBuffer(fe)||(Fe=m.byteLength(fe)),Ie=Ae.headers["Content-Length"]=Fe}i.dataType==="json"&&(Ae.headers.Accept="application/json"),typeof i.beforeRequest=="function"&&i.beforeRequest(Ae);var ke=null,re=null,F=null,W=!1,de=!1,ne=0,le=-1,De=!1,Xe="",xt="",Ke=null;i.timing&&(Ke={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),i.gzip&&(Ae.headers["Accept-Encoding"]||Ae.headers["accept-encoding"]||(Ae.headers["Accept-Encoding"]="gzip"));var ze=i.writeStream;p("Request#%d %s %s with headers %j, options.path: %s",G,te,l,Ae.headers,Ae.path),i.requestUrls.push(l);var yt,Et;Array.isArray(i.timeout)?(yt=S(i.timeout[0]),Et=S(i.timeout[1])):yt=Et=S(i.timeout),p("ConnectTimeout: %d, ResponseTimeout: %d",yt,Et);var ct;try{ct=me.request(Ae,H)}catch(lt){return D(lt)}return typeof window=="undefined"?function(){p("Connect timer ticking, timeout: %d",yt),ke=setTimeout(function(){ke=null,le===-1&&(le=-2);var lt="Connect timeout for "+yt+"ms",rt="ConnectionTimeoutError";ct.socket||(rt="SocketAssignTimeoutError",lt+=", working sockets is full"),F=new Error(lt),F.name=rt,F.requestId=G,p("ConnectTimeout: Request#%d %s %s: %s, connected: %s",G,l,F.name,lt,W),U()},yt)}():ct.on("requestTimeout",function(){le===-1&&(le=-2);var lt="Connect timeout for "+yt+"ms";F=new Error(lt),F.name="ConnectionTimeoutError",F.requestId=G,U()}),Ke&&ct.on("finish",function(){Ke.requestSent=Date.now()-X}),ct.once("socket",function(lt){Ke&&(Ke.queuing=Date.now()-X),isNode010&&lt.socket&&(lt=lt.socket);var rt=lt.readyState;if(rt==="opening")return lt.once("lookup",function(qe,$e,Pe){p("Request#%d %s lookup: %s, %s, %s",G,l,qe,$e,Pe),Ke&&(Ke.dnslookup=Date.now()-X),$e&&(Xe=$e)}),void lt.once("connect",function(){Ke&&(Ke.connected=Date.now()-X),O(),J(),p("Request#%d %s new socket connected",G,l),W=!0,Xe||(Xe=lt.remoteAddress),xt=lt.remotePort});p("Request#%d %s reuse socket connected, readyState: %s",G,l,rt),W=!0,de=!0,Xe||(Xe=lt.remoteAddress),xt=lt.remotePort,O(),J()}),ct.on("error",function(lt){lt.name!=="Error"&&lt.name!=="TypeError"||(lt.name=W?"ResponseError":"RequestError"),lt.message+=' (req "error")',p("Request#%d %s `req error` event emit, %s: %s",G,l,lt.name,lt.message),D(F||lt)}),ze&&ze.once("error",function(lt){lt.message+=' (writeStream "error")',F=lt,p("Request#%d %s `writeStream error` event emit, %s: %s",G,l,lt.name,lt.message),U()}),i.stream?(i.stream.pipe(ct),i.stream.once("error",function(lt){lt.message+=' (stream "error")',F=lt,p("Request#%d %s `readStream error` event emit, %s: %s",G,l,lt.name,lt.message),U()})):ct.end(fe),ct.requestId=G,ct}}).call(this,y("_process"),y("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(P){function y(_){if(E[_])return E[_].exports;var C=E[_]={i:_,l:!1,exports:{}};return P[_].call(C.exports,C,C.exports,y),C.l=!0,C.exports}var E={};y.m=P,y.c=E,y.d=function(_,C,m){y.o(_,C)||Object.defineProperty(_,C,{configurable:!1,enumerable:!0,get:m})},y.n=function(_){var C=_&&_.__esModule?function(){return _.default}:function(){return _};return y.d(C,"a",C),C},y.o=function(_,C){return Object.prototype.hasOwnProperty.call(_,C)},y.p="",y(y.s=12)}([function(P,y,E){!function(_,C){P.exports=y=C()}(0,function(){var _=_||function(C,m){var c=Object.create||function(){function g(){}return function(p){var S;return g.prototype=p,S=new g,g.prototype=null,S}}(),r={},n=r.lib={},e=n.Base=function(){return{extend:function(g){var p=c(this);return g&&p.mixIn(g),p.hasOwnProperty("init")&&this.init!==p.init||(p.init=function(){p.$super.init.apply(this,arguments)}),p.init.prototype=p,p.$super=this,p},create:function(){var g=this.extend();return g.init.apply(g,arguments),g},init:function(){},mixIn:function(g){for(var p in g)g.hasOwnProperty(p)&&(this[p]=g[p]);g.hasOwnProperty("toString")&&(this.toString=g.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),s=n.WordArray=e.extend({init:function(g,p){g=this.words=g||[],this.sigBytes=p!=null?p:4*g.length},toString:function(g){return(g||o).stringify(this)},concat:function(g){var p=this.words,S=g.words,w=this.sigBytes,B=g.sigBytes;if(this.clamp(),w%4)for(var b=0;b<B;b++){var A=S[b>>>2]>>>24-b%4*8&255;p[w+b>>>2]|=A<<24-(w+b)%4*8}else for(var b=0;b<B;b+=4)p[w+b>>>2]=S[b>>>2];return this.sigBytes+=B,this},clamp:function(){var g=this.words,p=this.sigBytes;g[p>>>2]&=4294967295<<32-p%4*8,g.length=C.ceil(p/4)},clone:function(){var g=e.clone.call(this);return g.words=this.words.slice(0),g},random:function(g){for(var p,S=[],w=0;w<g;w+=4){var B=function(b){var b=b,A=987654321,l=4294967295;return function(){A=36969*(65535&A)+(A>>16)&l,b=18e3*(65535&b)+(b>>16)&l;var i=(A<<16)+b&l;return i/=4294967296,(i+=.5)*(C.random()>.5?1:-1)}}(4294967296*(p||C.random()));p=987654071*B(),S.push(4294967296*B()|0)}return new s.init(S,g)}}),u=r.enc={},o=u.Hex={stringify:function(g){for(var p=g.words,S=g.sigBytes,w=[],B=0;B<S;B++){var b=p[B>>>2]>>>24-B%4*8&255;w.push((b>>>4).toString(16)),w.push((15&b).toString(16))}return w.join("")},parse:function(g){for(var p=g.length,S=[],w=0;w<p;w+=2)S[w>>>3]|=parseInt(g.substr(w,2),16)<<24-w%8*4;return new s.init(S,p/2)}},f=u.Latin1={stringify:function(g){for(var p=g.words,S=g.sigBytes,w=[],B=0;B<S;B++){var b=p[B>>>2]>>>24-B%4*8&255;w.push(String.fromCharCode(b))}return w.join("")},parse:function(g){for(var p=g.length,S=[],w=0;w<p;w++)S[w>>>2]|=(255&g.charCodeAt(w))<<24-w%4*8;return new s.init(S,p)}},d=u.Utf8={stringify:function(g){try{return decodeURIComponent(escape(f.stringify(g)))}catch(p){throw new Error("Malformed UTF-8 data")}},parse:function(g){return f.parse(unescape(encodeURIComponent(g)))}},a=n.BufferedBlockAlgorithm=e.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(g){typeof g=="string"&&(g=d.parse(g)),this._data.concat(g),this._nDataBytes+=g.sigBytes},_process:function(g){var p=this._data,S=p.words,w=p.sigBytes,B=this.blockSize,b=4*B,A=w/b;A=g?C.ceil(A):C.max((0|A)-this._minBufferSize,0);var l=A*B,i=C.min(4*l,w);if(l){for(var x=0;x<l;x+=B)this._doProcessBlock(S,x);var O=S.splice(0,l);p.sigBytes-=i}return new s.init(O,i)},clone:function(){var g=e.clone.call(this);return g._data=this._data.clone(),g},_minBufferSize:0}),h=(n.Hasher=a.extend({cfg:e.extend(),init:function(g){this.cfg=this.cfg.extend(g),this.reset()},reset:function(){a.reset.call(this),this._doReset()},update:function(g){return this._append(g),this._process(),this},finalize:function(g){return g&&this._append(g),this._doFinalize()},blockSize:16,_createHelper:function(g){return function(p,S){return new g.init(S).finalize(p)}},_createHmacHelper:function(g){return function(p,S){return new h.HMAC.init(g,S).finalize(p)}}}),r.algo={});return r}(Math);return _})},function(P,y,E){"use strict";function _(c,r){if(!(c instanceof r))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(y,"__esModule",{value:!0});var C=function(){function c(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&&c(r.prototype,n),e&&c(r,e),r}}(),m=function(){function c(){_(this,c)}return C(c,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)}}]),c}();y.default=m},function(P,y,E){!function(_,C){P.exports=y=C(E(0))}(0,function(_){return function(C){function m(h,g,p,S,w,B,b){var A=h+(g&p|~g&S)+w+b;return(A<<B|A>>>32-B)+g}function c(h,g,p,S,w,B,b){var A=h+(g&S|p&~S)+w+b;return(A<<B|A>>>32-B)+g}function r(h,g,p,S,w,B,b){var A=h+(g^p^S)+w+b;return(A<<B|A>>>32-B)+g}function n(h,g,p,S,w,B,b){var A=h+(p^(g|~S))+w+b;return(A<<B|A>>>32-B)+g}var e=_,s=e.lib,u=s.WordArray,o=s.Hasher,f=e.algo,d=[];!function(){for(var h=0;h<64;h++)d[h]=4294967296*C.abs(C.sin(h+1))|0}();var a=f.MD5=o.extend({_doReset:function(){this._hash=new u.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,g){for(var p=0;p<16;p++){var S=g+p,w=h[S];h[S]=16711935&(w<<8|w>>>24)|4278255360&(w<<24|w>>>8)}var B=this._hash.words,b=h[g+0],A=h[g+1],l=h[g+2],i=h[g+3],x=h[g+4],O=h[g+5],T=h[g+6],D=h[g+7],R=h[g+8],k=h[g+9],H=h[g+10],J=h[g+11],U=h[g+12],K=h[g+13],G=h[g+14],N=h[g+15],Q=B[0],X=B[1],te=B[2],oe=B[3];Q=m(Q,X,te,oe,b,7,d[0]),oe=m(oe,Q,X,te,A,12,d[1]),te=m(te,oe,Q,X,l,17,d[2]),X=m(X,te,oe,Q,i,22,d[3]),Q=m(Q,X,te,oe,x,7,d[4]),oe=m(oe,Q,X,te,O,12,d[5]),te=m(te,oe,Q,X,T,17,d[6]),X=m(X,te,oe,Q,D,22,d[7]),Q=m(Q,X,te,oe,R,7,d[8]),oe=m(oe,Q,X,te,k,12,d[9]),te=m(te,oe,Q,X,H,17,d[10]),X=m(X,te,oe,Q,J,22,d[11]),Q=m(Q,X,te,oe,U,7,d[12]),oe=m(oe,Q,X,te,K,12,d[13]),te=m(te,oe,Q,X,G,17,d[14]),X=m(X,te,oe,Q,N,22,d[15]),Q=c(Q,X,te,oe,A,5,d[16]),oe=c(oe,Q,X,te,T,9,d[17]),te=c(te,oe,Q,X,J,14,d[18]),X=c(X,te,oe,Q,b,20,d[19]),Q=c(Q,X,te,oe,O,5,d[20]),oe=c(oe,Q,X,te,H,9,d[21]),te=c(te,oe,Q,X,N,14,d[22]),X=c(X,te,oe,Q,x,20,d[23]),Q=c(Q,X,te,oe,k,5,d[24]),oe=c(oe,Q,X,te,G,9,d[25]),te=c(te,oe,Q,X,i,14,d[26]),X=c(X,te,oe,Q,R,20,d[27]),Q=c(Q,X,te,oe,K,5,d[28]),oe=c(oe,Q,X,te,l,9,d[29]),te=c(te,oe,Q,X,D,14,d[30]),X=c(X,te,oe,Q,U,20,d[31]),Q=r(Q,X,te,oe,O,4,d[32]),oe=r(oe,Q,X,te,R,11,d[33]),te=r(te,oe,Q,X,J,16,d[34]),X=r(X,te,oe,Q,G,23,d[35]),Q=r(Q,X,te,oe,A,4,d[36]),oe=r(oe,Q,X,te,x,11,d[37]),te=r(te,oe,Q,X,D,16,d[38]),X=r(X,te,oe,Q,H,23,d[39]),Q=r(Q,X,te,oe,K,4,d[40]),oe=r(oe,Q,X,te,b,11,d[41]),te=r(te,oe,Q,X,i,16,d[42]),X=r(X,te,oe,Q,T,23,d[43]),Q=r(Q,X,te,oe,k,4,d[44]),oe=r(oe,Q,X,te,U,11,d[45]),te=r(te,oe,Q,X,N,16,d[46]),X=r(X,te,oe,Q,l,23,d[47]),Q=n(Q,X,te,oe,b,6,d[48]),oe=n(oe,Q,X,te,D,10,d[49]),te=n(te,oe,Q,X,G,15,d[50]),X=n(X,te,oe,Q,O,21,d[51]),Q=n(Q,X,te,oe,U,6,d[52]),oe=n(oe,Q,X,te,i,10,d[53]),te=n(te,oe,Q,X,H,15,d[54]),X=n(X,te,oe,Q,A,21,d[55]),Q=n(Q,X,te,oe,R,6,d[56]),oe=n(oe,Q,X,te,N,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,x,6,d[60]),oe=n(oe,Q,X,te,J,10,d[61]),te=n(te,oe,Q,X,l,15,d[62]),X=n(X,te,oe,Q,k,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,g=h.words,p=8*this._nDataBytes,S=8*h.sigBytes;g[S>>>5]|=128<<24-S%32;var w=C.floor(p/4294967296),B=p;g[15+(S+64>>>9<<4)]=16711935&(w<<8|w>>>24)|4278255360&(w<<24|w>>>8),g[14+(S+64>>>9<<4)]=16711935&(B<<8|B>>>24)|4278255360&(B<<24|B>>>8),h.sigBytes=4*(g.length+1),this._process();for(var b=this._hash,A=b.words,l=0;l<4;l++){var i=A[l];A[l]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}return b},clone:function(){var h=o.clone.call(this);return h._hash=this._hash.clone(),h}});e.MD5=o._createHelper(a),e.HmacMD5=o._createHmacHelper(a)}(Math),_.MD5})},function(P,y,E){"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.UPLOADSTATE={INIT:"init",UPLOADING:"uploading",COMPLETE:"complete",INTERRUPT:"interrupt"},y.UPLOADSTEP={INIT:"init",PART:"part",COMPLETE:"complete"},y.UPLOADDEFAULT={PARALLEL:5,PARTSIZE:1048576}},function(P,y,E){"use strict";function _(a){return a&&a.__esModule?a:{default:a}}function C(a,h){if(!(a instanceof h))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(y,"__esModule",{value:!0});var m=function(){function a(h,g){for(var p=0;p<g.length;p++){var S=g[p];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(h,S.key,S)}}return function(h,g,p){return g&&a(h.prototype,g),p&&a(h,p),h}}(),c=E(5),r=_(c),n=E(25),e=_(n),s=E(6),u=_(s),o=E(7),f=_(o),d=function(){function a(h){C(this,a);var g=f.default.os.name,p=f.default.os.version||"",S=f.default.browser.name,w=f.default.browser.version||"",B=window.location.href,b="";B&&(b=f.default.getHost(B));var A="pc";f.default.os.ipad?A="pad":(f.default.os.iphone||f.default.os.android)&&(A="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:a.getUuid(),os:g,ov:p,et:S,ev:w,uat:navigator.userAgent,app_n:b,tt:A,dm:"h5",ut:""}}return m(a,[{key:"log",value:function(h,g){g&&g.ri?(this._ri=g.ri,delete g.ri):this._ri=r.default.create(),g&&g.ut&&(this.initParam.ut=g.ut,delete g.ut),this.initParam.t=new Date().getTime(),this.initParam.ll=h=="20006"?"error":"info",this.initParam.ri=this._ri,this.initParam.e=h;var p=[];if(g)for(var S in g)p.push(S+"="+g[S]);var w=p.join("&");this.initParam.args=encodeURIComponent(w==""?"0":w);var B=[];for(var S in this.initParam)B.push(S+"="+this.initParam[S]);var b=B.join("&");AliyunUpload&&AliyunUpload.__logTestCallback__?AliyunUpload.__logTestCallback__(b):new Image(0,0).src="https://videocloud.cn-hangzhou.log.aliyuncs.com/logstores/upload/track?"+b}}],[{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}}]),a}();y.default=d},function(P,y,E){"use strict";function _(c,r){if(!(c instanceof r))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(y,"__esModule",{value:!0});var C=function(){function c(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&&c(r.prototype,n),e&&c(r,e),r}}(),m=function(){function c(){_(this,c)}return C(c,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 o;for(u[8]=u[13]=u[18]=u[23]="-",u[14]="4",e=0;e<36;e++)u[e]||(o=0|16*Math.random(),u[e]=s[e==19?3&o|8:o])}return u.join("")}}]),c}();y.default=m},function(P,y,E){"use strict";Object.defineProperty(y,"__esModule",{value:!0});var _={version:"1.5.0"};y.default=_},function(P,y,E){"use strict";function _(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(y,"__esModule",{value:!0});var C=function(){function s(u,o){for(var f=0;f<o.length;f++){var d=o[f];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(u,d.key,d)}}return function(u,o,f){return o&&s(u.prototype,o),f&&s(u,f),u}}(),m=function(s){var u=navigator.userAgent,o="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 f=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&&(o="macOS"),navigator.platform=="X11"&&!f&&!d&&(o="Unix"),String(navigator.platform).indexOf("Linux")>-1&&(o="Linux"),f?"windows":o},c=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={},o=navigator.userAgent,f=navigator.platform,d=o.match(/Web[kK]it[\/]{0,1}([\d.]+)/),a=o.match(/(Android);?[\s\/]+([\d.]+)?/),h=!!o.match(/\(Macintosh\; Intel /),g=o.match(/(iPad).*OS\s([\d_]+)/),p=o.match(/(iPod)(.*OS\s([\d_]+))?/),S=!g&&o.match(/(iPhone\sOS)\s([\d_]+)/),w=o.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),B=/Win\d{2}|Windows/.test(f),b=o.match(/Windows Phone ([\d.]+)/),A=w&&o.match(/TouchPad/),l=o.match(/Kindle\/([\d.]+)/),i=o.match(/Silk\/([\d._]+)/),x=o.match(/(BlackBerry).*Version\/([\d.]+)/),O=o.match(/(BB10).*Version\/([\d.]+)/),T=o.match(/(RIM\sTablet\sOS)\s([\d.]+)/),D=o.match(/PlayBook/),R=o.match(/Chrome\/([\d.]+)/)||o.match(/CriOS\/([\d.]+)/),k=o.match(/Firefox\/([\d.]+)/),H=o.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),J=o.match(/MSIE\s([\d.]+)/)||o.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),U=!R&&o.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),K=U||o.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);if((u.webkit=!!d)&&(u.version=d[1]),a&&(s.android=!0,s.version=a[2]),S&&!p&&(s.ios=s.iphone=!0,s.version=S[2].replace(/_/g,".")),g&&(s.ios=s.ipad=!0,s.version=g[2].replace(/_/g,".")),p&&(s.ios=s.ipod=!0,s.version=p[3]?p[3].replace(/_/g,"."):null),b&&(s.wp=!0,s.version=b[1]),w&&(s.webos=!0,s.version=w[2]),A&&(s.touchpad=!0),x&&(s.blackberry=!0,s.version=x[2]),O&&(s.bb10=!0,s.version=O[2]),T&&(s.rimtabletos=!0,s.version=T[2]),D&&(u.playbook=!0),l&&(s.kindle=!0,s.version=l[1]),i&&(u.silk=!0,u.version=i[1]),!i&&s.android&&o.match(/Kindle Fire/)&&(u.silk=!0),R&&(u.chrome=!0,u.version=R[1]),k&&(u.firefox=!0,u.version=k[1]),H&&(s.firefoxos=!0,s.version=H[1]),J&&(u.ie=!0,u.version=J[1]),K&&(h||s.ios||B||a)&&(u.safari=!0,s.ios||(u.version=K[1])),U&&(u.webview=!0),h){var G=o.match(/[\d]*_[\d]*_[\d]*/);G&&G.length>0&&G[0]&&(s.version=G[0].replace(/_/g,"."))}return s.tablet=!!(g||D||a&&!o.match(/Mobile/)||k&&o.match(/Tablet/)||J&&!o.match(/Phone/)&&o.match(/Touch/)),s.phone=!(s.tablet||s.ipod||!(a||S||w||x||O||R&&o.match(/Android/)||R&&o.match(/CriOS\/([\d.]+)/)||k&&o.match(/Mobile/)||J&&o.match(/Touch/))),s.pc=!s.tablet&&!s.phone,h?s.name="macOS":B?(s.name="windows",s.version=c()):s.name=m(s),u.name=r(u),{os:s,browser:u}}(),e=function(){function s(){_(this,s)}return C(s,null,[{key:"getHost",value:function(u){var o="";if(u===void 0||u==null||u=="")return"";var f=u.indexOf("//"),d=u;f>-1&&(d=u.substring(f+2));var o=d,a=d.split("/");return a&&a.length>0&&(o=a[0]),a=o.split(":"),a&&a.length>0&&(o=a[0]),o}},{key:"os",get:function(){return n.os}},{key:"browser",get:function(){var u=n.browser;return u.name||(u.name=r()),u}}]),s}();y.default=e},function(P,y,E){"use strict";function _(c,r){if(!(c instanceof r))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(y,"__esModule",{value:!0});var C=function(){function c(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&&c(r.prototype,n),e&&c(r,e),r}}(),m=function(){function c(){_(this,c)}return C(c,null,[{key:"get",value:function(r,n,e,s,u){var o;e=e||function(){},typeof XMLHttpRequest=="undefined"&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(f){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(f){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(f){}throw new Error("This browser does not support XMLHttpRequest.")}),o=new XMLHttpRequest,o.onreadystatechange=function(){o.readyState===4&&(o.status===200?n(o.responseText):e(o.responseText))};try{s===void 0&&(s=!0),o.open("GET",r,s),u&&(o.withCredentials=!0)}catch(f){return void e(f)}try{o.send()}catch(f){e(f)}}}]),c}();y.default=m},function(P,y,E){"use strict";function _(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(y,"__esModule",{value:!0});var C=function(){function n(e,s){for(var u=0;u<s.length;u++){var o=s[u];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(e,s,u){return s&&n(e.prototype,s),u&&n(e,u),e}}(),m=E(27),c=E(30),r=(E(10),function(){function n(){_(this,n)}return C(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 o=[];for(var f in e)o.push(f);for(var d=o.sort(),a="",h=d.length,f=0;f<h;f++){var g=n.aliyunEncodeURI(d[f]),p=n.aliyunEncodeURI(e[d[f]]);a==""?a=g+s+p:a+=u+g+s+p}return a}},{key:"makeChangeSiga",value:function(e,s){if(!e)throw new Error("PrismPlayer Error: vid should not be null!");return c.stringify(m("GET&"+n.aliyunEncodeURI("/")+"&"+n.aliyunEncodeURI(n.makeUTF8sort(e,"=","&")),s+"&"))}}]),n}());y.default=r},function(P,y,E){!function(_,C){P.exports=y=C(E(0))}(0,function(_){return _.enc.Utf8})},function(P,y,E){!function(_,C){P.exports=y=C(E(0))}(0,function(_){return _.enc.Hex})},function(P,y,E){P.exports=E(13)},function(P,y,E){"use strict";var _,C,m=(typeof Symbol=="function"&&Symbol.iterator,E(14)),c=function(n){return n&&n.__esModule?n:{default:n}}(m),r={Vod:c.default};_=[],(C=function(){return r}.apply(y,_))!==void 0&&(P.exports=C),window.AliyunUpload=r,Ze.exports=AliyunUpload},function(P,y,E){"use strict";function _(O){return O&&O.__esModule?O:{default:O}}function C(O,T){if(!(O instanceof T))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(y,"__esModule",{value:!0});var m=function(){function O(T,D){for(var R=0;R<D.length;R++){var k=D[R];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(T,k.key,k)}}return function(T,D,R){return D&&O(T.prototype,D),R&&O(T,R),T}}(),c=E(15),r=E(3),n=E(16),e=_(n),s=E(18),u=_(s),o=E(24),f=_(o),d=E(4),a=_(d),h=E(1),g=_(h),p=E(5),S=_(p),w=E(26),B=_(w),b=E(31),A=_(b),l=E(32),i=_(l),x=(E(2),function(){function O(T){C(this,O),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=c.VODSTATE.INIT,this._uploadList=[],this._curIndex=-1,this._ossUpload=null,this._log=new a.default,this._retryCount=0,this._retryTotal=this.options.retryCount||3,this._retryDuration=this.options.retryDuration||2,this._state=c.VODSTATE.INIT,this._uploadWay="vod",this._onbeforeunload=!1,this._invalidUserId=!1,this._initEvent()}return m(O,[{key:"init",value:function(T,D,R,k){return this._retryCount=0,!(R&&!k||!R&&k)&&!(T&&!D||!T&&D)&&(this._ossCreditor.accessKeyId=T,this._ossCreditor.accessKeySecret=D,this._ossCreditor.securityToken=R,this._ossCreditor.expireTime=k,!0)}},{key:"addFile",value:function(T,D,R,k,H,J){if(!T)return!1;if(T.size==0)try{this.options.onUploadFailed({file:T},"EmptyFile","\u6587\u4EF6\u5927\u5C0F\u4E3A0\uFF0C\u4E0D\u80FD\u4E0A\u4F20")}catch(N){console.log(N)}for(var U=(this.options,0);U<this._uploadList.length;U++)if(this._uploadList[U].file==T)return!1;var K=new Object;if(K.file=T,K._endpoint=D,K._bucket=R,K._object=k,K.state=c.UPLOADSTATE.INIT,K.isImage=g.default.isImage(T.name),!K.isImage&&this.options.enableUploadProgress){var G=this;i.default.getMd5(T,function(N){K.fileHash=N;var Q=G._getCheckoutpoint(K);G.options.localCheckpoint||Q||G._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,G._saveCheckoutpoint(K,te.checkpoint))}},function(X){try{if((X=JSON.parse(X))&&X.Code=="InvalidParameter"&&X.Message.indexOf("UserId")>0){G._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)}})})}H&&(K.videoInfo=H?JSON.parse(H).Vod:{},K.userData=u.default.encode(H)),K.ri=S.default.create(),this._uploadList.push(K),this._reportLog("20001",K,{ql:this._uploadList.length});try{this.options.addFileSuccess&&this.options.addFileSuccess(K)}catch(N){console.log(N)}return!0}},{key:"deleteFile",value:function(T){return!!this.cancelFile(T)&&(this._uploadList.splice(T,1),!0)}},{key:"cleanList",value:function(){this.stopUpload(),this._uploadList.length=0,this._curIndex=-1}},{key:"cancelFile",value:function(T){if(this.options,T<0||T>=this._uploadList.length)return!1;var D=this._uploadList[T];if(T==this._curIndex&&D.state==c.UPLOADSTATE.UPLOADING){D.state=c.UPLOADSTATE.CANCELED;var R=this._getCheckoutpoint(D);R&&R.checkpoint&&(R=R.checkpoint),R&&this._ossUpload.abort(D),this._removeCheckoutpoint(D),this.nextUpload()}else D.state!=c.UPLOADSTATE.SUCCESS&&(D.state=c.UPLOADSTATE.CANCELED);return this._reportLog("20008",D),!0}},{key:"resumeFile",value:function(T){if(this.options,T<0||T>=this._uploadList.length)return!1;var D=this._uploadList[T];return D.state==c.UPLOADSTATE.CANCELED&&(D.state=c.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==c.VODSTATE.START||this._state==c.VODSTATE.EXPIRE)return void console.log("already started or expired");if(this._initState(),this._curIndex=this._findUploadIndex(),this._curIndex==-1)return void(this._state=c.VODSTATE.END);var D=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(D),this._state=c.VODSTATE.START}},{key:"nextUpload",value:function(){var T=this.options;if(this._state==c.VODSTATE.START)if(this._curIndex=this._findUploadIndex(),this._curIndex!=-1){var D=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(D)}else{this._state=c.VODSTATE.END;try{T.onUploadEnd&&T.onUploadEnd(D)}catch(R){console.log(R)}}}},{key:"clear",value:function(T){for(var D=this.options,R=0,k=0;k<this._uploadList.length;k++)D.uploadList[k].state==c.UPLOADSTATE.SUCCESS&&R++,this._uploadList[k].state==T&&(D.uploadList.splice(k,1),k--);D.onClear&&D.onClear(D.uploadList.length,R)}},{key:"stopUpload",value:function(){if((this._state==c.VODSTATE.START||this._state==c.VODSTATE.FAILURE||this._curIndex==-1)&&this._curIndex!=-1){var T=this._uploadList[this._curIndex];this._state=c.VODSTATE.STOP,T.state=c.UPLOADSTATE.STOPED,this._changeState(T,c.UPLOADSTATE.STOPED),this._ossUpload.cancel()}}},{key:"resumeUploadWithAuth",value:function(T){var D=this;if(!T)return!1;var R=JSON.parse(u.default.decode(T));return!!(R.AccessKeyId&&R.AccessKeySecret&&R.SecurityToken&&R.Expiration)&&D.resumeUploadWithToken(R.AccessKeyId,R.AccessKeySecret,R.SecurityToken,R.Expiration)}},{key:"resumeUploadWithToken",value:function(T,D,R,k){if(this.options,!(T&&D&&R&&k))return!1;if(this._state!=c.VODSTATE.EXPIRE)return!1;if(this._curIndex==-1)return!1;var H="";return this._uploadList.length>this._curIndex&&(H=this._uploadList[this._curIndex]),H&&(this.init(T,D,R,k),this._state=c.VODSTATE.START,this._ossUpload=null,this._uploadCore(H,H.retry),H.retry=!1),!0}},{key:"resumeUploadWithSTSToken",value:function(T,D,R){if(this._curIndex==-1)return!1;if(this._state!=c.VODSTATE.EXPIRE)return!1;if(this._uploadList.length>this._curIndex){var k=this._uploadList[this._curIndex];k.object?this._refreshSTSTokenUpload(k,T,D,R):this.setSTSToken(k,T,D,R)}}},{key:"setSTSTokenDirectlyUpload",value:function(T,D,R,k,H){if(!(D&&R&&k&&H))return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken and expiration should not be empty."),!1;this._ut="oss";var J=T;this.init(D,R,k,H),J.endpoint=J._endpoint,J.bucket=J._bucket,J.object=J._object,this._ossUpload=null,this._uploadCore(J,T.retry),T.retry=!1}},{key:"setSTSToken",value:function(T,D,R,k){if(!D||!R||!k)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;this._ut="vod",this._uploadWay="sts";var H=T.videoInfo,J={accessKeyId:D,securityToken:k,accessKeySecret:R,fileName:T.file.name,title:H.Title,requestId:T.ri,region:this.options.region};H.ImageType&&(J.imageType=H.ImageType),H.ImageExt&&(J.imageExt=H.ImageExt),H.FileSize&&(J.fileSize=H.FileSize),H.Description&&(J.description=H.Description),H.CateId&&(J.cateId=H.CateId),H.Tags&&(J.tags=H.Tags),H.TemplateGroupId&&(J.templateGroupId=H.TemplateGroupId),H.StorageLocation&&(J.storageLocation=H.StorageLocation),H.CoverURL&&(J.coverUrl=H.CoverURL),H.TransCodeMode&&(J.transCodeMode=H.TransCodeMode),H.UserData&&(J.userData=H.UserData);var U=this,K="getUploadAuth";T.videoId?(J.videoId=T.videoId,K="refreshUploadAuth"):T.isImage&&(K="getImageUploadAuth"),B.default[K](J,function(G){T.videoId=G.VideoId?G.VideoId:T.videoId,U.setUploadAuthAndAddress(T,G.UploadAuth,G.UploadAddress),U._state=c.VODSTATE.START},function(G){U._error(T,{name:G.Code,code:G.Code,message:G.Message,requestId:G.RequestId})})}},{key:"setUploadAuthAndAddress",value:function(T,D,R,k){if(!T||!D||!R)return!1;var H=JSON.parse(u.default.decode(D));if(!(H.AccessKeyId&&H.AccessKeySecret&&H.SecurityToken&&H.Expiration))return console.error("uploadauth is invalid"),!1;var J={},U=T;if(R){if(J=JSON.parse(u.default.decode(R)),!J.Endpoint||!J.Bucket||!J.FileName)return console.error("uploadAddress is invalid"),!1}else J.Endpoint=U.endpoint,J.Bucket=U.bucket,J.FileName=U.object;this._ut="vod",this._uploadWay="vod",this.options.region=H.Region||this.options.region,this.init(H.AccessKeyId,H.AccessKeySecret,H.SecurityToken,H.Expiration),U.endpoint=U._endpoint?U._endpoint:J.Endpoint,U.bucket=U._bucket?U._bucket:J.Bucket,U.object=U._object?U._object:J.FileName,U.region=this.options.region,k&&(U.videoId=k),this._ossUpload=null,this._uploadCore(U,T.retry),T.retry=!1}},{key:"_refreshSTSTokenUpload",value:function(T,D,R,k){if(!D||!R||!k)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;var H={accessKeyId:D,securityToken:k,accessKeySecret:R,videoId:T.object,requestId:T.ri,region:this.options.region},J=this,U="refreshUploadAuth";T.isImage&&(U="getImageUploadAuth"),B.default[U](H,function(K){J.setUploadAuthAndAddress(T,K.UploadAuth,UploadAddress),J._state=c.VODSTATE.START},function(K){J._error(T,{name:K.Code,code:K.Code,message:K.Message,requestId:K.RequestId})})}},{key:"_upload",value:function(T){var D=arguments.length>1&&arguments[1]!==void 0&&arguments[1],R=this.options;if(T.retry=D,R.onUploadstarted&&!D)try{var k=this._getCheckoutpoint(T);k&&k.state!=c.UPLOADSTATE.UPLOADING&&(T.checkpoint=k,T.videoId=k.videoId),R.onUploadstarted(T)}catch(H){console.log(H)}}},{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=c.UPLOADSTATE.UPLOADING,!this._ossUpload){T.endpoint=T.endpoint||"http://oss-cn-hangzhou.aliyuncs.com";var D=this;this._ossUpload=new e.default({bucket:T.bucket,endpoint:T.endpoint,AccessKeyId:this._ossCreditor.accessKeyId,AccessKeySecret:this._ossCreditor.accessKeySecret,SecurityToken:this._ossCreditor.securityToken,timeout:this.options.timeout,cname:this.options.cname},{onerror:function(G,N){D._error.call(D,G,N)},oncomplete:function(G,N){D._complete.call(D,G,N)},onprogress:function(G,N,Q){D._progress.call(D,G,N,Q)}})}var R=g.default.getFileType(T.file.name),k=this._getCheckoutpoint(T),H="",J="";k&&k.checkpoint&&(J=k.state,H=k.videoId,k=k.checkpoint),k&&H==T.videoId&&J!=c.UPLOADSTATE.UPLOADING&&(k.file=T.file,T.checkpoint=k,k.uploadId);var U=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:U});var K={headers:{"x-oss-notification":T.userData?T.userData:""},partSize:U,parallel:this.options.parallel};this._ossUpload.upload(T,K)}},{key:"_findUploadIndex",value:function(){for(var T=-1,D=0;D<this._uploadList.length;D++)if(this._uploadList[D].state==c.UPLOADSTATE.INIT){T=D;break}return T}},{key:"_error",value:function(T,D){if(D.name=="cancel")try{this.options.onUploadCanceled(T,D)}catch(k){console.log(k)}else{if(D.message.indexOf("InvalidAccessKeyIdError")>0||D.name=="SignatureDoesNotMatchError"||D.code=="SecurityTokenExpired"||D.code=="InvalidSecurityToken.Expired"||D.code=="InvalidAccessKeyId"&&this._ossCreditor.securityToken){if(this.options.onUploadTokenExpired){this._state=c.VODSTATE.EXPIRE,T.state=c.UPLOADSTATE.FAIlURE;try{this.options.onUploadTokenExpired(T,D)}catch(k){console.log(k)}}return}if((D.name=="RequestTimeoutError"||D.name=="ConnectionTimeout"||D.name=="ConnectionTimeoutError")&&this._retryTotal>this._retryCount){var R=this;return setTimeout(function(){R._uploadCore(T,!0)},1e3*R._retryDuration),void this._retryCount++}D.name=="NoSuchUploadError"&&this._removeCheckoutpoint(T),this._handleError(T,D)}}},{key:"_handleError",value:function(T,D){var R=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],k=c.UPLOADSTATE.FAIlURE;if(T.state!=c.UPLOADSTATE.CANCELED&&(T.state=c.UPLOADSTATE.FAIlURE,this._state=c.VODSTATE.FAILURE,this.options.onUploadFailed&&D&&D.code&&D.message))try{this.options.onUploadFailed(T,D.code,D.message)}catch(J){console.log(J)}if(R&&this._changeState(T,k),this._reportLog("20006",T,{code:D.name,message:D.message,requestId:D.requestId,fs:T.file.size,bu:T.bucket,ok:T.object,fn:T.file.name}),this._reportLog("20004",T,{requestId:D.requestId,fs:T.file.size,bu:T.bucket,ok:T.object,fn:T.file.name}),T.ri=S.default.create(),this._findUploadIndex()!=-1){var H=this;this._state=c.VODSTATE.START,setTimeout(function(){H.nextUpload()},100)}}},{key:"_complete",value:function(T,D){if(T.state=c.UPLOADSTATE.SUCCESS,this.options.onUploadSucceed)try{this.options.onUploadSucceed(T)}catch(H){console.log(H)}var R=0;D&&D.res&&D.res.headers&&(R=D.res.headers["x-oss-request-id"]),this._removeCheckoutpoint(T);var k=this;setTimeout(function(){k.nextUpload()},100),this._retryCount=0,this._reportLog("20003",T,{requestId:R})}},{key:"_progress",value:function(T,D,R){if(this.options.onUploadProgress)try{T.loaded=D.loaded,this.options.onUploadProgress(T,D.total,D.loaded)}catch(N){console.log(N)}var k=D.checkpoint,H=0;k&&(T.checkpoint=k,this._saveCheckoutpoint(T,k,c.UPLOADSTATE.UPLOADING),H=k.uploadId),this._retryCount=0;var J=this._getPortNumber(k),U=0;if(R&&R.headers&&(U=R.headers["x-oss-request-id"]),D.loaded!=0&&this._reportLog("20007",T,{pn:J,requestId:U}),D.loaded!=1&&this._reportLog("20005",T,{UploadId:H,pn:J+1,pr:T.retry?1:0,fs:T.file.size,bu:T.bucket,ok:T.object,fn:T.file.name}),!this._invalidUserId&&!T.isImage&&this._ut=="vod"&&this.options.enableUploadProgress){var K={file:T.file,checkpoint:D,userId:this.options.userId,videoId:T.videoId,region:this.options.region,fileHash:T.fileHash};try{var G=this;A.default.upload(K,function(){},function(N){if((N=JSON.parse(N))&&N.Code=="InvalidParameter"&&N.Message.indexOf("UserId")>0){G._invalidUserId=!0;var Q=N.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(Q)}})}catch(N){console.log(N)}}}},{key:"_getPortNumber",value:function(T){if(T){var D=T.doneParts;if(D&&D.length>0)return D[D.length-1].number}return 0}},{key:"_removeCheckoutpoint",value:function(T){var D=this._getCheckoutpointKey(T);f.default.remove(D)}},{key:"_getCheckoutpoint",value:function(T){var D=this._getCheckoutpointKey(T),R=f.default.get(D);if(R)try{return JSON.parse(R)}catch(k){}return""}},{key:"_saveCheckoutpoint",value:function(T,D,R){if(D){var k=this._getCheckoutpointKey(T),H=T.file,J={fileName:H.name,lastModified:H.lastModified,size:H.size,object:T.object,videoId:T.videoId,bucket:T.bucket,endpoint:T.endpoint,checkpoint:D,loaded:T.loaded,state:R};f.default.set(k,JSON.stringify(J))}}},{key:"_changeState",value:function(T,D){var R=this._getCheckoutpoint(T);R&&((this._onbeforeunload=!0)&&(D=c.UPLOADSTATE.STOPED),this._saveCheckoutpoint(T,R.checkpoint,D))}},{key:"_getCheckoutpointKey",value:function(T){return"upload_"+T.file.lastModified+"_"+T.file.name+"_"+T.file.size}},{key:"_getCheckoutpointFromCloud",value:function(T,D,R){var k={userId:this.options.userId,uploadInfoList:[{FileName:T.file.name,FileSize:T.file.size,FileCreateTime:T.file.lastModified,FileHash:T.fileHash}],region:this.options.region};A.default.get(k,function(H){D(H)},R)}},{key:"_reportLog",value:function(T,D,R){R||(R={}),R.ri=D.ri,this._ut&&(R.ut=this._ut),this._log.log(T,R)}},{key:"_initEvent",value:function(){var T=this;window&&(window.onbeforeunload=function(D){if(T._onbeforeunload=!0,T._curIndex!=-1&&T._uploadList.length>T._curIndex){var R=T._uploadList[T._curIndex];T._changeState(R,c.UPLOADSTATE.STOPED)}})}},{key:"_initState",value:function(){for(var T=0;T<this._uploadList.length;T++){var D=this._uploadList[T];D.state!=c.UPLOADSTATE.FAIlURE&&D.state!=c.UPLOADSTATE.STOPED||(D.state=c.UPLOADSTATE.INIT)}this._state=c.VODSTATE.INIT}},{key:"_adjustPartSize",value:function(T){return T.file.size/this.options.partSize>1e4?T.file.size/9999:this.options.partSize}}]),O}());y.default=x},function(P,y,E){"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.UPLOADSTATE={INIT:"Ready",UPLOADING:"Uploading",SUCCESS:"Success",FAIlURE:"Failure",CANCELED:"Canceled",STOPED:"Stoped"},y.VODSTATE={INIT:"Init",START:"Start",STOP:"Stop",FAILURE:"Failure",EXPIRE:"Expire",END:"End"}},function(P,y,E){"use strict";function _(s){return s&&s.__esModule?s:{default:s}}function C(s,u){if(!(s instanceof u))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(y,"__esModule",{value:!0});var m=function(){function s(u,o){for(var f=0;f<o.length;f++){var d=o[f];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(u,d.key,d)}}return function(u,o,f){return o&&s(u.prototype,o),f&&s(u,f),u}}(),c=E(3),r=E(17),n=(_(r),E(1)),e=(_(n),function(){function s(u,o){if(C(this,s),u){this._config=u,this.create(this._config),this._uploadInfo=null,this._callback={};var f=function(){};this._callback.onerror=o.onerror||f,this._callback.oncomplete=o.oncomplete||f,this._callback.onprogress=o.onprogress||f}}return m(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 o={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&&(o.timeout=u.timeout),this.oss=new OSS.Wrapper(o)}},{key:"abort",value:function(u){if(u.checkpoint){var o=u.checkpoint.uploadId;this.oss.abortMultipartUpload(u.object,o)}}},{key:"getVersion",value:function(){}},{key:"cancel",value:function(){this.oss.cancel&&this.oss.cancel()}},{key:"upload",value:function(u,o){this._uploadInfo=u;var f=this,d=function(h,g,p){return function(S){f._progress(h,g,p),S()}},a={parallel:o.parallel||this._config.parallel||c.UPLOADDEFAULT.PARALLEL,partSize:o.partSize||this._config.partSize||c.UPLOADDEFAULT.PARTSIZE,progress:d};o.headers&&(a.headers=o.headers),u.checkpoint&&(a.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,a).then(function(h,g){f._complete(h)}).catch(function(h){f.oss.cancel&&(f.oss&&f.oss.isCancel()?console.log("oss is cancel as error"):f.oss.cancel()),f._error(h)})}},{key:"header",value:function(u,o,f){this.oss.get(u.object).then(function(d){o(d)}).catch(function(d){f(d)})}},{key:"_progress",value:function(u,o,f){this._callback.onprogress(this._uploadInfo,{loaded:u,total:this._uploadInfo.file.size,checkpoint:o},f)}},{key:"_error",value:function(u){this._callback.onerror(this._uploadInfo,u)}},{key:"_complete",value:function(u){this._callback.oncomplete(this._uploadInfo,u)}}]),s}());y.default=e},function(P,y,E){"use strict";function _(c,r){if(!(c instanceof r))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(y,"__esModule",{value:!0});var C=function(){function c(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&&c(r.prototype,n),e&&c(r,e),r}}(),m=function(){function c(){_(this,c)}return C(c,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."}}}]),c}();y.default=m},function(P,y,E){"use strict";(function(_){function C(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(y,"__esModule",{value:!0});var m=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}}(),c=function(){function r(){C(this,r)}return m(r,null,[{key:"encode",value:function(n){return new _(n).toString("base64")}},{key:"decode",value:function(n){return new _(n,"base64").toString()}}]),r}();y.default=c}).call(y,E(19).Buffer)},function(P,y,E){"use strict";(function(_){function C(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function m(re,F){if(C()<F)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(re=new Uint8Array(F),re.__proto__=c.prototype):(re===null&&(re=new c(F)),re.length=F),re}function c(re,F,W){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(re,F,W);if(typeof re=="number"){if(typeof F=="string")throw new Error("If encoding is specified then the first argument must be a string");return s(this,re)}return r(this,re,F,W)}function r(re,F,W,de){if(typeof F=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&F instanceof ArrayBuffer?f(re,F,W,de):typeof F=="string"?u(re,F,W):d(re,F)}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,F,W,de){return n(F),F<=0?m(re,F):W!==void 0?typeof de=="string"?m(re,F).fill(W,de):m(re,F).fill(W):m(re,F)}function s(re,F){if(n(F),re=m(re,F<0?0:0|a(F)),!c.TYPED_ARRAY_SUPPORT)for(var W=0;W<F;++W)re[W]=0;return re}function u(re,F,W){if(typeof W=="string"&&W!==""||(W="utf8"),!c.isEncoding(W))throw new TypeError('"encoding" must be a valid string encoding');var de=0|g(F,W);re=m(re,de);var ne=re.write(F,W);return ne!==de&&(re=re.slice(0,ne)),re}function o(re,F){var W=F.length<0?0:0|a(F.length);re=m(re,W);for(var de=0;de<W;de+=1)re[de]=255&F[de];return re}function f(re,F,W,de){if(F.byteLength,W<0||F.byteLength<W)throw new RangeError("'offset' is out of bounds");if(F.byteLength<W+(de||0))throw new RangeError("'length' is out of bounds");return F=W===void 0&&de===void 0?new Uint8Array(F):de===void 0?new Uint8Array(F,W):new Uint8Array(F,W,de),c.TYPED_ARRAY_SUPPORT?(re=F,re.__proto__=c.prototype):re=o(re,F),re}function d(re,F){if(c.isBuffer(F)){var W=0|a(F.length);return re=m(re,W),re.length===0||F.copy(re,0,0,W),re}if(F){if(typeof ArrayBuffer!="undefined"&&F.buffer instanceof ArrayBuffer||"length"in F)return typeof F.length!="number"||fe(F.length)?m(re,0):o(re,F);if(F.type==="Buffer"&&Ie(F.data))return o(re,F.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function a(re){if(re>=C())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+C().toString(16)+" bytes");return 0|re}function h(re){return+re!=re&&(re=0),c.alloc(+re)}function g(re,F){if(c.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 de=!1;;)switch(F){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(de)return Ae(re).length;F=(""+F).toLowerCase(),de=!0}}function p(re,F,W){var de=!1;if((F===void 0||F<0)&&(F=0),F>this.length)return"";if((W===void 0||W>this.length)&&(W=this.length),W<=0)return"";if(W>>>=0,F>>>=0,W<=F)return"";for(re||(re="utf8");;)switch(re){case"hex":return J(this,F,W);case"utf8":case"utf-8":return D(this,F,W);case"ascii":return k(this,F,W);case"latin1":case"binary":return H(this,F,W);case"base64":return T(this,F,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,F,W);default:if(de)throw new TypeError("Unknown encoding: "+re);re=(re+"").toLowerCase(),de=!0}}function S(re,F,W){var de=re[F];re[F]=re[W],re[W]=de}function w(re,F,W,de,ne){if(re.length===0)return-1;if(typeof W=="string"?(de=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 F=="string"&&(F=c.from(F,de)),c.isBuffer(F))return F.length===0?-1:B(re,F,W,de,ne);if(typeof F=="number")return F&=255,c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ne?Uint8Array.prototype.indexOf.call(re,F,W):Uint8Array.prototype.lastIndexOf.call(re,F,W):B(re,[F],W,de,ne);throw new TypeError("val must be string, number or Buffer")}function B(re,F,W,de,ne){function le(ct,lt){return De===1?ct[lt]:ct.readUInt16BE(lt*De)}var De=1,Xe=re.length,xt=F.length;if(de!==void 0&&((de=String(de).toLowerCase())==="ucs2"||de==="ucs-2"||de==="utf16le"||de==="utf-16le")){if(re.length<2||F.length<2)return-1;De=2,Xe/=2,xt/=2,W/=2}var Ke;if(ne){var ze=-1;for(Ke=W;Ke<Xe;Ke++)if(le(re,Ke)===le(F,ze===-1?0:Ke-ze)){if(ze===-1&&(ze=Ke),Ke-ze+1===xt)return ze*De}else ze!==-1&&(Ke-=Ke-ze),ze=-1}else for(W+xt>Xe&&(W=Xe-xt),Ke=W;Ke>=0;Ke--){for(var yt=!0,Et=0;Et<xt;Et++)if(le(re,Ke+Et)!==le(F,Et)){yt=!1;break}if(yt)return Ke}return-1}function b(re,F,W,de){W=Number(W)||0;var ne=re.length-W;de?(de=Number(de))>ne&&(de=ne):de=ne;var le=F.length;if(le%2!=0)throw new TypeError("Invalid hex string");de>le/2&&(de=le/2);for(var De=0;De<de;++De){var Xe=parseInt(F.substr(2*De,2),16);if(isNaN(Xe))return De;re[W+De]=Xe}return De}function A(re,F,W,de){return ie(Ae(F,re.length-W),re,W,de)}function l(re,F,W,de){return ie(Ee(F),re,W,de)}function i(re,F,W,de){return l(re,F,W,de)}function x(re,F,W,de){return ie(he(F),re,W,de)}function O(re,F,W,de){return ie(pe(F,re.length-W),re,W,de)}function T(re,F,W){return F===0&&W===re.length?ge.fromByteArray(re):ge.fromByteArray(re.slice(F,W))}function D(re,F,W){W=Math.min(re.length,W);for(var de=[],ne=F;ne<W;){var le=re[ne],De=null,Xe=le>239?4:le>223?3:le>191?2:1;if(ne+Xe<=W){var xt,Ke,ze,yt;switch(Xe){case 1:le<128&&(De=le);break;case 2:xt=re[ne+1],(192&xt)==128&&(yt=(31&le)<<6|63&xt)>127&&(De=yt);break;case 3:xt=re[ne+1],Ke=re[ne+2],(192&xt)==128&&(192&Ke)==128&&(yt=(15&le)<<12|(63&xt)<<6|63&Ke)>2047&&(yt<55296||yt>57343)&&(De=yt);break;case 4:xt=re[ne+1],Ke=re[ne+2],ze=re[ne+3],(192&xt)==128&&(192&Ke)==128&&(192&ze)==128&&(yt=(15&le)<<18|(63&xt)<<12|(63&Ke)<<6|63&ze)>65535&&yt<1114112&&(De=yt)}}De===null?(De=65533,Xe=1):De>65535&&(De-=65536,de.push(De>>>10&1023|55296),De=56320|1023&De),de.push(De),ne+=Xe}return R(de)}function R(re){var F=re.length;if(F<=Fe)return String.fromCharCode.apply(String,re);for(var W="",de=0;de<F;)W+=String.fromCharCode.apply(String,re.slice(de,de+=Fe));return W}function k(re,F,W){var de="";W=Math.min(re.length,W);for(var ne=F;ne<W;++ne)de+=String.fromCharCode(127&re[ne]);return de}function H(re,F,W){var de="";W=Math.min(re.length,W);for(var ne=F;ne<W;++ne)de+=String.fromCharCode(re[ne]);return de}function J(re,F,W){var de=re.length;(!F||F<0)&&(F=0),(!W||W<0||W>de)&&(W=de);for(var ne="",le=F;le<W;++le)ne+=_e(re[le]);return ne}function U(re,F,W){for(var de=re.slice(F,W),ne="",le=0;le<de.length;le+=2)ne+=String.fromCharCode(de[le]+256*de[le+1]);return ne}function K(re,F,W){if(re%1!=0||re<0)throw new RangeError("offset is not uint");if(re+F>W)throw new RangeError("Trying to access beyond buffer length")}function G(re,F,W,de,ne,le){if(!c.isBuffer(re))throw new TypeError('"buffer" argument must be a Buffer instance');if(F>ne||F<le)throw new RangeError('"value" argument is out of bounds');if(W+de>re.length)throw new RangeError("Index out of range")}function N(re,F,W,de){F<0&&(F=65535+F+1);for(var ne=0,le=Math.min(re.length-W,2);ne<le;++ne)re[W+ne]=(F&255<<8*(de?ne:1-ne))>>>8*(de?ne:1-ne)}function Q(re,F,W,de){F<0&&(F=4294967295+F+1);for(var ne=0,le=Math.min(re.length-W,4);ne<le;++ne)re[W+ne]=F>>>8*(de?ne:3-ne)&255}function X(re,F,W,de,ne,le){if(W+de>re.length)throw new RangeError("Index out of range");if(W<0)throw new RangeError("Index out of range")}function te(re,F,W,de,ne){return ne||X(re,F,W,4,34028234663852886e22,-34028234663852886e22),ce.write(re,F,W,de,23,4),W+4}function oe(re,F,W,de,ne){return ne||X(re,F,W,8,17976931348623157e292,-17976931348623157e292),ce.write(re,F,W,de,52,8),W+8}function me(re){if(re=se(re).replace(ke,""),re.length<2)return"";for(;re.length%4!=0;)re+="=";return re}function se(re){return re.trim?re.trim():re.replace(/^\s+|\s+$/g,"")}function _e(re){return re<16?"0"+re.toString(16):re.toString(16)}function Ae(re,F){F=F||1/0;for(var W,de=re.length,ne=null,le=[],De=0;De<de;++De){if((W=re.charCodeAt(De))>55295&&W<57344){if(!ne){if(W>56319){(F-=3)>-1&&le.push(239,191,189);continue}if(De+1===de){(F-=3)>-1&&le.push(239,191,189);continue}ne=W;continue}if(W<56320){(F-=3)>-1&&le.push(239,191,189),ne=W;continue}W=65536+(ne-55296<<10|W-56320)}else ne&&(F-=3)>-1&&le.push(239,191,189);if(ne=null,W<128){if((F-=1)<0)break;le.push(W)}else if(W<2048){if((F-=2)<0)break;le.push(W>>6|192,63&W|128)}else if(W<65536){if((F-=3)<0)break;le.push(W>>12|224,W>>6&63|128,63&W|128)}else{if(!(W<1114112))throw new Error("Invalid code point");if((F-=4)<0)break;le.push(W>>18|240,W>>12&63|128,W>>6&63|128,63&W|128)}}return le}function Ee(re){for(var F=[],W=0;W<re.length;++W)F.push(255&re.charCodeAt(W));return F}function pe(re,F){for(var W,de,ne,le=[],De=0;De<re.length&&!((F-=2)<0);++De)W=re.charCodeAt(De),de=W>>8,ne=W%256,le.push(ne),le.push(de);return le}function he(re){return ge.toByteArray(me(re))}function ie(re,F,W,de){for(var ne=0;ne<de&&!(ne+W>=F.length||ne>=re.length);++ne)F[ne+W]=re[ne];return ne}function fe(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 ge=E(21),ce=E(22),Ie=E(23);y.Buffer=c,y.SlowBuffer=h,y.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=_.TYPED_ARRAY_SUPPORT!==void 0?_.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(F){return!1}}(),y.kMaxLength=C(),c.poolSize=8192,c._augment=function(re){return re.__proto__=c.prototype,re},c.from=function(re,F,W){return r(null,re,F,W)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(re,F,W){return e(null,re,F,W)},c.allocUnsafe=function(re){return s(null,re)},c.allocUnsafeSlow=function(re){return s(null,re)},c.isBuffer=function(re){return!(re==null||!re._isBuffer)},c.compare=function(re,F){if(!c.isBuffer(re)||!c.isBuffer(F))throw new TypeError("Arguments must be Buffers");if(re===F)return 0;for(var W=re.length,de=F.length,ne=0,le=Math.min(W,de);ne<le;++ne)if(re[ne]!==F[ne]){W=re[ne],de=F[ne];break}return W<de?-1:de<W?1:0},c.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}},c.concat=function(re,F){if(!Ie(re))throw new TypeError('"list" argument must be an Array of Buffers');if(re.length===0)return c.alloc(0);var W;if(F===void 0)for(F=0,W=0;W<re.length;++W)F+=re[W].length;var de=c.allocUnsafe(F),ne=0;for(W=0;W<re.length;++W){var le=re[W];if(!c.isBuffer(le))throw new TypeError('"list" argument must be an Array of Buffers');le.copy(de,ne),ne+=le.length}return de},c.byteLength=g,c.prototype._isBuffer=!0,c.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 F=0;F<re;F+=2)S(this,F,F+1);return this},c.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 F=0;F<re;F+=4)S(this,F,F+3),S(this,F+1,F+2);return this},c.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 F=0;F<re;F+=8)S(this,F,F+7),S(this,F+1,F+6),S(this,F+2,F+5),S(this,F+3,F+4);return this},c.prototype.toString=function(){var re=0|this.length;return re===0?"":arguments.length===0?D(this,0,re):p.apply(this,arguments)},c.prototype.equals=function(re){if(!c.isBuffer(re))throw new TypeError("Argument must be a Buffer");return this===re||c.compare(this,re)===0},c.prototype.inspect=function(){var re="",F=y.INSPECT_MAX_BYTES;return this.length>0&&(re=this.toString("hex",0,F).match(/.{2}/g).join(" "),this.length>F&&(re+=" ... ")),"<Buffer "+re+">"},c.prototype.compare=function(re,F,W,de,ne){if(!c.isBuffer(re))throw new TypeError("Argument must be a Buffer");if(F===void 0&&(F=0),W===void 0&&(W=re?re.length:0),de===void 0&&(de=0),ne===void 0&&(ne=this.length),F<0||W>re.length||de<0||ne>this.length)throw new RangeError("out of range index");if(de>=ne&&F>=W)return 0;if(de>=ne)return-1;if(F>=W)return 1;if(F>>>=0,W>>>=0,de>>>=0,ne>>>=0,this===re)return 0;for(var le=ne-de,De=W-F,Xe=Math.min(le,De),xt=this.slice(de,ne),Ke=re.slice(F,W),ze=0;ze<Xe;++ze)if(xt[ze]!==Ke[ze]){le=xt[ze],De=Ke[ze];break}return le<De?-1:De<le?1:0},c.prototype.includes=function(re,F,W){return this.indexOf(re,F,W)!==-1},c.prototype.indexOf=function(re,F,W){return w(this,re,F,W,!0)},c.prototype.lastIndexOf=function(re,F,W){return w(this,re,F,W,!1)},c.prototype.write=function(re,F,W,de){if(F===void 0)de="utf8",W=this.length,F=0;else if(W===void 0&&typeof F=="string")de=F,W=this.length,F=0;else{if(!isFinite(F))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");F|=0,isFinite(W)?(W|=0,de===void 0&&(de="utf8")):(de=W,W=void 0)}var ne=this.length-F;if((W===void 0||W>ne)&&(W=ne),re.length>0&&(W<0||F<0)||F>this.length)throw new RangeError("Attempt to write outside buffer bounds");de||(de="utf8");for(var le=!1;;)switch(de){case"hex":return b(this,re,F,W);case"utf8":case"utf-8":return A(this,re,F,W);case"ascii":return l(this,re,F,W);case"latin1":case"binary":return i(this,re,F,W);case"base64":return x(this,re,F,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,re,F,W);default:if(le)throw new TypeError("Unknown encoding: "+de);de=(""+de).toLowerCase(),le=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Fe=4096;c.prototype.slice=function(re,F){var W=this.length;re=~~re,F=F===void 0?W:~~F,re<0?(re+=W)<0&&(re=0):re>W&&(re=W),F<0?(F+=W)<0&&(F=0):F>W&&(F=W),F<re&&(F=re);var de;if(c.TYPED_ARRAY_SUPPORT)de=this.subarray(re,F),de.__proto__=c.prototype;else{var ne=F-re;de=new c(ne,void 0);for(var le=0;le<ne;++le)de[le]=this[le+re]}return de},c.prototype.readUIntLE=function(re,F,W){re|=0,F|=0,W||K(re,F,this.length);for(var de=this[re],ne=1,le=0;++le<F&&(ne*=256);)de+=this[re+le]*ne;return de},c.prototype.readUIntBE=function(re,F,W){re|=0,F|=0,W||K(re,F,this.length);for(var de=this[re+--F],ne=1;F>0&&(ne*=256);)de+=this[re+--F]*ne;return de},c.prototype.readUInt8=function(re,F){return F||K(re,1,this.length),this[re]},c.prototype.readUInt16LE=function(re,F){return F||K(re,2,this.length),this[re]|this[re+1]<<8},c.prototype.readUInt16BE=function(re,F){return F||K(re,2,this.length),this[re]<<8|this[re+1]},c.prototype.readUInt32LE=function(re,F){return F||K(re,4,this.length),(this[re]|this[re+1]<<8|this[re+2]<<16)+16777216*this[re+3]},c.prototype.readUInt32BE=function(re,F){return F||K(re,4,this.length),16777216*this[re]+(this[re+1]<<16|this[re+2]<<8|this[re+3])},c.prototype.readIntLE=function(re,F,W){re|=0,F|=0,W||K(re,F,this.length);for(var de=this[re],ne=1,le=0;++le<F&&(ne*=256);)de+=this[re+le]*ne;return ne*=128,de>=ne&&(de-=Math.pow(2,8*F)),de},c.prototype.readIntBE=function(re,F,W){re|=0,F|=0,W||K(re,F,this.length);for(var de=F,ne=1,le=this[re+--de];de>0&&(ne*=256);)le+=this[re+--de]*ne;return ne*=128,le>=ne&&(le-=Math.pow(2,8*F)),le},c.prototype.readInt8=function(re,F){return F||K(re,1,this.length),128&this[re]?-1*(255-this[re]+1):this[re]},c.prototype.readInt16LE=function(re,F){F||K(re,2,this.length);var W=this[re]|this[re+1]<<8;return 32768&W?4294901760|W:W},c.prototype.readInt16BE=function(re,F){F||K(re,2,this.length);var W=this[re+1]|this[re]<<8;return 32768&W?4294901760|W:W},c.prototype.readInt32LE=function(re,F){return F||K(re,4,this.length),this[re]|this[re+1]<<8|this[re+2]<<16|this[re+3]<<24},c.prototype.readInt32BE=function(re,F){return F||K(re,4,this.length),this[re]<<24|this[re+1]<<16|this[re+2]<<8|this[re+3]},c.prototype.readFloatLE=function(re,F){return F||K(re,4,this.length),ce.read(this,re,!0,23,4)},c.prototype.readFloatBE=function(re,F){return F||K(re,4,this.length),ce.read(this,re,!1,23,4)},c.prototype.readDoubleLE=function(re,F){return F||K(re,8,this.length),ce.read(this,re,!0,52,8)},c.prototype.readDoubleBE=function(re,F){return F||K(re,8,this.length),ce.read(this,re,!1,52,8)},c.prototype.writeUIntLE=function(re,F,W,de){(re=+re,F|=0,W|=0,!de)&&G(this,re,F,W,Math.pow(2,8*W)-1,0);var ne=1,le=0;for(this[F]=255&re;++le<W&&(ne*=256);)this[F+le]=re/ne&255;return F+W},c.prototype.writeUIntBE=function(re,F,W,de){(re=+re,F|=0,W|=0,!de)&&G(this,re,F,W,Math.pow(2,8*W)-1,0);var ne=W-1,le=1;for(this[F+ne]=255&re;--ne>=0&&(le*=256);)this[F+ne]=re/le&255;return F+W},c.prototype.writeUInt8=function(re,F,W){return re=+re,F|=0,W||G(this,re,F,1,255,0),c.TYPED_ARRAY_SUPPORT||(re=Math.floor(re)),this[F]=255&re,F+1},c.prototype.writeUInt16LE=function(re,F,W){return re=+re,F|=0,W||G(this,re,F,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[F]=255&re,this[F+1]=re>>>8):N(this,re,F,!0),F+2},c.prototype.writeUInt16BE=function(re,F,W){return re=+re,F|=0,W||G(this,re,F,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[F]=re>>>8,this[F+1]=255&re):N(this,re,F,!1),F+2},c.prototype.writeUInt32LE=function(re,F,W){return re=+re,F|=0,W||G(this,re,F,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[F+3]=re>>>24,this[F+2]=re>>>16,this[F+1]=re>>>8,this[F]=255&re):Q(this,re,F,!0),F+4},c.prototype.writeUInt32BE=function(re,F,W){return re=+re,F|=0,W||G(this,re,F,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[F]=re>>>24,this[F+1]=re>>>16,this[F+2]=re>>>8,this[F+3]=255&re):Q(this,re,F,!1),F+4},c.prototype.writeIntLE=function(re,F,W,de){if(re=+re,F|=0,!de){var ne=Math.pow(2,8*W-1);G(this,re,F,W,ne-1,-ne)}var le=0,De=1,Xe=0;for(this[F]=255&re;++le<W&&(De*=256);)re<0&&Xe===0&&this[F+le-1]!==0&&(Xe=1),this[F+le]=(re/De>>0)-Xe&255;return F+W},c.prototype.writeIntBE=function(re,F,W,de){if(re=+re,F|=0,!de){var ne=Math.pow(2,8*W-1);G(this,re,F,W,ne-1,-ne)}var le=W-1,De=1,Xe=0;for(this[F+le]=255&re;--le>=0&&(De*=256);)re<0&&Xe===0&&this[F+le+1]!==0&&(Xe=1),this[F+le]=(re/De>>0)-Xe&255;return F+W},c.prototype.writeInt8=function(re,F,W){return re=+re,F|=0,W||G(this,re,F,1,127,-128),c.TYPED_ARRAY_SUPPORT||(re=Math.floor(re)),re<0&&(re=255+re+1),this[F]=255&re,F+1},c.prototype.writeInt16LE=function(re,F,W){return re=+re,F|=0,W||G(this,re,F,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[F]=255&re,this[F+1]=re>>>8):N(this,re,F,!0),F+2},c.prototype.writeInt16BE=function(re,F,W){return re=+re,F|=0,W||G(this,re,F,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[F]=re>>>8,this[F+1]=255&re):N(this,re,F,!1),F+2},c.prototype.writeInt32LE=function(re,F,W){return re=+re,F|=0,W||G(this,re,F,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[F]=255&re,this[F+1]=re>>>8,this[F+2]=re>>>16,this[F+3]=re>>>24):Q(this,re,F,!0),F+4},c.prototype.writeInt32BE=function(re,F,W){return re=+re,F|=0,W||G(this,re,F,4,2147483647,-2147483648),re<0&&(re=4294967295+re+1),c.TYPED_ARRAY_SUPPORT?(this[F]=re>>>24,this[F+1]=re>>>16,this[F+2]=re>>>8,this[F+3]=255&re):Q(this,re,F,!1),F+4},c.prototype.writeFloatLE=function(re,F,W){return te(this,re,F,!0,W)},c.prototype.writeFloatBE=function(re,F,W){return te(this,re,F,!1,W)},c.prototype.writeDoubleLE=function(re,F,W){return oe(this,re,F,!0,W)},c.prototype.writeDoubleBE=function(re,F,W){return oe(this,re,F,!1,W)},c.prototype.copy=function(re,F,W,de){if(W||(W=0),de||de===0||(de=this.length),F>=re.length&&(F=re.length),F||(F=0),de>0&&de<W&&(de=W),de===W)return 0;if(re.length===0||this.length===0)return 0;if(F<0)throw new RangeError("targetStart out of bounds");if(W<0||W>=this.length)throw new RangeError("sourceStart out of bounds");if(de<0)throw new RangeError("sourceEnd out of bounds");de>this.length&&(de=this.length),re.length-F<de-W&&(de=re.length-F+W);var ne,le=de-W;if(this===re&&W<F&&F<de)for(ne=le-1;ne>=0;--ne)re[ne+F]=this[ne+W];else if(le<1e3||!c.TYPED_ARRAY_SUPPORT)for(ne=0;ne<le;++ne)re[ne+F]=this[ne+W];else Uint8Array.prototype.set.call(re,this.subarray(W,W+le),F);return le},c.prototype.fill=function(re,F,W,de){if(typeof re=="string"){if(typeof F=="string"?(de=F,F=0,W=this.length):typeof W=="string"&&(de=W,W=this.length),re.length===1){var ne=re.charCodeAt(0);ne<256&&(re=ne)}if(de!==void 0&&typeof de!="string")throw new TypeError("encoding must be a string");if(typeof de=="string"&&!c.isEncoding(de))throw new TypeError("Unknown encoding: "+de)}else typeof re=="number"&&(re&=255);if(F<0||this.length<F||this.length<W)throw new RangeError("Out of range index");if(W<=F)return this;F>>>=0,W=W===void 0?this.length:W>>>0,re||(re=0);var le;if(typeof re=="number")for(le=F;le<W;++le)this[le]=re;else{var De=c.isBuffer(re)?re:Ae(new c(re,de).toString()),Xe=De.length;for(le=0;le<W-F;++le)this[le+F]=De[le%Xe]}return this};var ke=/[^+\/0-9A-Za-z-_]/g}).call(y,E(20))},function(P,y){var E;E=function(){return this}();try{E=E||Function("return this")()||(0,eval)("this")}catch(_){typeof window=="object"&&(E=window)}P.exports=E},function(P,y,E){"use strict";function _(a){var h=a.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return a[h-2]==="="?2:a[h-1]==="="?1:0}function C(a){return 3*a.length/4-_(a)}function m(a){var h,g,p,S,w,B=a.length;S=_(a),w=new u(3*B/4-S),g=S>0?B-4:B;var b=0;for(h=0;h<g;h+=4)p=s[a.charCodeAt(h)]<<18|s[a.charCodeAt(h+1)]<<12|s[a.charCodeAt(h+2)]<<6|s[a.charCodeAt(h+3)],w[b++]=p>>16&255,w[b++]=p>>8&255,w[b++]=255&p;return S===2?(p=s[a.charCodeAt(h)]<<2|s[a.charCodeAt(h+1)]>>4,w[b++]=255&p):S===1&&(p=s[a.charCodeAt(h)]<<10|s[a.charCodeAt(h+1)]<<4|s[a.charCodeAt(h+2)]>>2,w[b++]=p>>8&255,w[b++]=255&p),w}function c(a){return e[a>>18&63]+e[a>>12&63]+e[a>>6&63]+e[63&a]}function r(a,h,g){for(var p,S=[],w=h;w<g;w+=3)p=(a[w]<<16)+(a[w+1]<<8)+a[w+2],S.push(c(p));return S.join("")}function n(a){for(var h,g=a.length,p=g%3,S="",w=[],B=0,b=g-p;B<b;B+=16383)w.push(r(a,B,B+16383>b?b:B+16383));return p===1?(h=a[g-1],S+=e[h>>2],S+=e[h<<4&63],S+="=="):p===2&&(h=(a[g-2]<<8)+a[g-1],S+=e[h>>10],S+=e[h>>4&63],S+=e[h<<2&63],S+="="),w.push(S),w.join("")}y.byteLength=C,y.toByteArray=m,y.fromByteArray=n;for(var e=[],s=[],u=typeof Uint8Array!="undefined"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,d=o.length;f<d;++f)e[f]=o[f],s[o.charCodeAt(f)]=f;s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},function(P,y){y.read=function(E,_,C,m,c){var r,n,e=8*c-m-1,s=(1<<e)-1,u=s>>1,o=-7,f=C?c-1:0,d=C?-1:1,a=E[_+f];for(f+=d,r=a&(1<<-o)-1,a>>=-o,o+=e;o>0;r=256*r+E[_+f],f+=d,o-=8);for(n=r&(1<<-o)-1,r>>=-o,o+=m;o>0;n=256*n+E[_+f],f+=d,o-=8);if(r===0)r=1-u;else{if(r===s)return n?NaN:1/0*(a?-1:1);n+=Math.pow(2,m),r-=u}return(a?-1:1)*n*Math.pow(2,r-m)},y.write=function(E,_,C,m,c,r){var n,e,s,u=8*r-c-1,o=(1<<u)-1,f=o>>1,d=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,a=m?0:r-1,h=m?1:-1,g=_<0||_===0&&1/_<0?1:0;for(_=Math.abs(_),isNaN(_)||_===1/0?(e=isNaN(_)?1:0,n=o):(n=Math.floor(Math.log(_)/Math.LN2),_*(s=Math.pow(2,-n))<1&&(n--,s*=2),_+=n+f>=1?d/s:d*Math.pow(2,1-f),_*s>=2&&(n++,s/=2),n+f>=o?(e=0,n=o):n+f>=1?(e=(_*s-1)*Math.pow(2,c),n+=f):(e=_*Math.pow(2,f-1)*Math.pow(2,c),n=0));c>=8;E[C+a]=255&e,a+=h,e/=256,c-=8);for(n=n<<c|e,u+=c;u>0;E[C+a]=255&n,a+=h,n/=256,u-=8);E[C+a-h]|=128*g}},function(P,y){var E={}.toString;P.exports=Array.isArray||function(_){return E.call(_)=="[object Array]"}},function(P,y,E){"use strict";function _(c,r){if(!(c instanceof r))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(y,"__esModule",{value:!0});var C=function(){function c(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&&c(r.prototype,n),e&&c(r,e),r}}(),m=function(){function c(){_(this,c)}return C(c,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"]}}}]),c}();y.default=m},function(P,y,E){"use strict";function _(c,r){if(!(c instanceof r))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(y,"__esModule",{value:!0});var C=function(){function c(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&&c(r.prototype,n),e&&c(r,e),r}}(),m=function(){function c(){_(this,c)}return C(c,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}}]),c}();y.default=m},function(P,y,E){"use strict";function _(u){return u&&u.__esModule?u:{default:u}}function C(u,o){if(!(u instanceof o))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(y,"__esModule",{value:!0});var m=function(){function u(o,f){for(var d=0;d<f.length;d++){var a=f[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(o,a.key,a)}}return function(o,f,d){return f&&u(o.prototype,f),d&&u(o,d),o}}(),c=E(8),r=_(c),n=E(9),e=_(n),s=function(){function u(){C(this,u)}return m(u,null,[{key:"refreshUploadAuth",value:function(o,f,d){var a=(e.default.randomUUID(),e.default.randomUUID()),h={AccessKeyId:o.accessKeyId,SecurityToken:o.securityToken,Action:"RefreshUploadVideo",VideoId:o.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:a,RequestId:o.requestId},g=e.default.makeUTF8sort(h,"=","&")+"&Signature="+e.default.aliyunEncodeURI(e.default.makeChangeSiga(h,o.accessKeySecret)),p="https://vod."+o.region+".aliyuncs.com/?"+g;r.default.get(p,function(S){var S=JSON.parse(S);f&&f(S)},function(S){if(d){var w=JSON.parse(S);d(w)}})}},{key:"getUploadAuth",value:function(o,f,d){var a=(e.default.randomUUID(),e.default.randomUUID()),h={AccessKeyId:o.accessKeyId,SecurityToken:o.securityToken,Action:"CreateUploadVideo",Title:o.title,FileName:o.fileName,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:a,RequestId:o.requestId};o.fileSize&&(h.FileSize=o.fileSize),o.description&&(h.Description=o.description),o.cateId&&(h.CateId=o.cateId),o.tags&&(h.Tags=o.tags),o.templateGroupId&&(h.TemplateGroupId=o.templateGroupId),o.storageLocation&&(h.StorageLocation=o.storageLocation),o.coverUrl&&(h.CoverURL=o.coverUrl),o.transCodeMode&&(h.TransCodeMode=o.transCodeMode),o.userData&&(h.UserData=JSON.stringify(o.userData));var g=e.default.makeUTF8sort(h,"=","&")+"&Signature="+e.default.aliyunEncodeURI(e.default.makeChangeSiga(h,o.accessKeySecret)),p="https://vod."+o.region+".aliyuncs.com/?"+g;r.default.get(p,function(S){try{S=JSON.parse(S)}catch(w){if(d)return void d({Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"})}f&&f(S)},function(S){if(d){var w={Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"};try{w=JSON.parse(S)}catch(B){}d(w)}})}},{key:"getImageUploadAuth",value:function(o,f,d){var a=(e.default.randomUUID(),e.default.randomUUID()),h={AccessKeyId:o.accessKeyId,SecurityToken:o.securityToken,Action:"CreateUploadImage",ImageType:o.imageType?o.imageType:"default",Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:a,RequestId:o.requestId};o.title&&(h.Title=o.title),o.imageExt&&(h.ImageExt=o.imageExt),o.tags&&(h.Tags=o.tags),o.storageLocation&&(h.StorageLocation=o.storageLocation);var g=e.default.makeUTF8sort(h,"=","&")+"&Signature="+e.default.aliyunEncodeURI(e.default.makeChangeSiga(h,o.accessKeySecret)),p="https://vod."+o.region+".aliyuncs.com/?"+g;r.default.get(p,function(S){S=JSON.parse(S),f&&f(S)},function(S){if(d){var w=JSON.parse(S);d(w)}})}}]),u}();y.default=s},function(P,y,E){!function(_,C,m){P.exports=y=C(E(0),E(28),E(29))}(0,function(_){return _.HmacSHA1})},function(P,y,E){!function(_,C){P.exports=y=C(E(0))}(0,function(_){return function(){var C=_,m=C.lib,c=m.WordArray,r=m.Hasher,n=C.algo,e=[],s=n.SHA1=r.extend({_doReset:function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,o){for(var f=this._hash.words,d=f[0],a=f[1],h=f[2],g=f[3],p=f[4],S=0;S<80;S++){if(S<16)e[S]=0|u[o+S];else{var w=e[S-3]^e[S-8]^e[S-14]^e[S-16];e[S]=w<<1|w>>>31}var B=(d<<5|d>>>27)+p+e[S];B+=S<20?1518500249+(a&h|~a&g):S<40?1859775393+(a^h^g):S<60?(a&h|a&g|h&g)-1894007588:(a^h^g)-899497514,p=g,g=h,h=a<<30|a>>>2,a=d,d=B}f[0]=f[0]+d|0,f[1]=f[1]+a|0,f[2]=f[2]+h|0,f[3]=f[3]+g|0,f[4]=f[4]+p|0},_doFinalize:function(){var u=this._data,o=u.words,f=8*this._nDataBytes,d=8*u.sigBytes;return o[d>>>5]|=128<<24-d%32,o[14+(d+64>>>9<<4)]=Math.floor(f/4294967296),o[15+(d+64>>>9<<4)]=f,u.sigBytes=4*o.length,this._process(),this._hash},clone:function(){var u=r.clone.call(this);return u._hash=this._hash.clone(),u}});C.SHA1=r._createHelper(s),C.HmacSHA1=r._createHmacHelper(s)}(),_.SHA1})},function(P,y,E){!function(_,C){P.exports=y=C(E(0))}(0,function(_){!function(){var C=_,m=C.lib,c=m.Base,r=C.enc,n=r.Utf8,e=C.algo;e.HMAC=c.extend({init:function(s,u){s=this._hasher=new s.init,typeof u=="string"&&(u=n.parse(u));var o=s.blockSize,f=4*o;u.sigBytes>f&&(u=s.finalize(u)),u.clamp();for(var d=this._oKey=u.clone(),a=this._iKey=u.clone(),h=d.words,g=a.words,p=0;p<o;p++)h[p]^=1549556828,g[p]^=909522486;d.sigBytes=a.sigBytes=f,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,o=u.finalize(s);return u.reset(),u.finalize(this._oKey.clone().concat(o))}})}()})},function(P,y,E){!function(_,C){P.exports=y=C(E(0))}(0,function(_){return function(){function C(e,s,u){for(var o=[],f=0,d=0;d<s;d++)if(d%4){var a=u[e.charCodeAt(d-1)]<<d%4*2,h=u[e.charCodeAt(d)]>>>6-d%4*2;o[f>>>2]|=(a|h)<<24-f%4*8,f++}return r.create(o,f)}var m=_,c=m.lib,r=c.WordArray,n=m.enc;n.Base64={stringify:function(e){var s=e.words,u=e.sigBytes,o=this._map;e.clamp();for(var f=[],d=0;d<u;d+=3)for(var a=s[d>>>2]>>>24-d%4*8&255,h=s[d+1>>>2]>>>24-(d+1)%4*8&255,g=s[d+2>>>2]>>>24-(d+2)%4*8&255,p=a<<16|h<<8|g,S=0;S<4&&d+.75*S<u;S++)f.push(o.charAt(p>>>6*(3-S)&63));var w=o.charAt(64);if(w)for(;f.length%4;)f.push(w);return f.join("")},parse:function(e){var s=e.length,u=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var f=0;f<u.length;f++)o[u.charCodeAt(f)]=f}var d=u.charAt(64);if(d){var a=e.indexOf(d);a!==-1&&(s=a)}return C(e,s,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),_.enc.Base64})},function(P,y,E){"use strict";function _(b){return b&&b.__esModule?b:{default:b}}function C(b,A){if(!(b instanceof A))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(y,"__esModule",{value:!0});var m=function(){function b(A,l){for(var i=0;i<l.length;i++){var x=l[i];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(A,x.key,x)}}return function(A,l,i){return l&&b(A.prototype,l),i&&b(A,i),A}}(),c=E(8),r=_(c),n=E(7),e=_(n),s=E(4),u=_(s),o=E(6),f=_(o),d=E(1),a=_(d),h=E(9),g=_(h),p=E(2),S=E(11),w=E(10),B=function(){function b(){C(this,b)}return m(b,null,[{key:"getAuthInfo",value:function(A,l,i){var x=A+"|f#Ylm&^1TppeRhLg|"+i;return l&&(x=A+"|"+l+"|f#Ylm&^1TppeRhLg|"+i),p(w.parse(x)).toString(S)}},{key:"upload",value:function(A,l,i){var x=a.default.ISODateString(new Date),O=Math.floor(new Date().valueOf()/1e3),T=u.default.getClientId();T=u.default.setClientId(T);var D=b.getAuthInfo(A.userId,T,O),R=g.default.randomUUID(),k={Source:"WebSDK",BusinessType:"UploadVideo",Action:"ReportUploadProgress",TerminalType:"H5",DeviceModel:e.default.browser.name+(e.default.browser.version||""),AppVersion:f.default.version,AuthTimestamp:O,Timestamp:x,AuthInfo:D,FileName:A.file.name,FileSize:A.file.size,FileCreateTime:A.file.lastModified,FileHash:A.fileHash,UploadId:A.checkpoint.checkpoint.uploadId,PartSize:A.checkpoint.checkpoint.partSize,DonePartsCount:A.checkpoint.checkpoint.doneParts.length,UploadPoint:JSON.stringify(A.checkpoint),UploadRatio:A.checkpoint.loaded,UserId:A.userId,VideoId:A.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:R};T&&(k.ClientId=T);var H=g.default.makeUTF8sort(k,"=","&")+"&Signature="+g.default.aliyunEncodeURI(g.default.makeChangeSiga(k,A.accessKeySecret)),J="https://vod."+A.region+".aliyuncs.com/?"+H;r.default.get(J,function(U){l&&l()},function(U){U&&(i(U),console.log(U))})}},{key:"get",value:function(A,l,i){var x=a.default.ISODateString(new Date),O=Math.floor(new Date().valueOf()/1e3),T=u.default.getClientId(),D=b.getAuthInfo(A.userId,T,O),R=g.default.randomUUID(),k={Source:"WebSDK",BusinessType:"UploadVideo",Action:"GetUploadProgress",TerminalType:"H5",DeviceModel:e.default.browser.name+(e.default.browser.version||""),AppVersion:f.default.version,AuthTimestamp:O,Timestamp:x,AuthInfo:D,UserId:A.userId,UploadInfoList:JSON.stringify(A.uploadInfoList),Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:R};T&&(k.ClientId=T);var H=g.default.makeUTF8sort(k,"=","&")+"&Signature="+g.default.aliyunEncodeURI(g.default.makeChangeSiga(k,A.accessKeySecret)),J="https://vod."+A.region+".aliyuncs.com/?"+H;r.default.get(J,function(U){var K={},G=T;U=U?JSON.parse(U):{},U.UploadProgress&&U.UploadProgress.UploadProgressList&&U.UploadProgress.UploadProgressList.length>0&&(K=U.UploadProgress.UploadProgressList[0],G=K.ClientId),u.default.setClientId(G),l&&l(K)},function(U){U&&(i(U),console.log(U))})}}]),b}();y.default=B},function(P,y,E){"use strict";function _(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(y,"__esModule",{value:!0});var C=function(){function n(e,s){for(var u=0;u<s.length;u++){var o=s[u];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(e,s,u){return s&&n(e.prototype,s),u&&n(e,u),e}}(),m=E(2),c=E(33),r=(E(11),function(){function n(){_(this,n)}return C(n,null,[{key:"getMd5",value:function(e,s,u){var o=new FileReader;o.onload=function(a){try{if(a&&a.target){var h=m(c.parse(a.target.result)),g=h.toString();s(g)}}catch(p){console.log(p)}},o.onerror=function(a){console.log(a),errorCallback(a)};var f=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,d=f.call(e,0,1024);o.readAsBinaryString(d)}}]),n}());y.default=r},function(P,y,E){!function(_,C){P.exports=y=C(E(0))}(0,function(_){return _.enc.Latin1})}])}).call(this,M("IyRk"))},pzxd:function(Ze,we,M){var ue=M("bYtY"),Y=ue.retrieve2,P=ue.retrieve3,y=ue.each,E=ue.normalizeCssArray,_=ue.isString,C=ue.isObject,m=M("6GrX"),c=M("VpOo"),r=M("Xnb7"),n=M("fW2E"),e=M("gut8"),s=e.ContextCachedBy,u=e.WILL_BE_RESTORED,o=m.DEFAULT_FONT,f={left:1,right:1,center:1},d={top:1,bottom:1,middle:1},a=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],h={},g={};function p(G){return S(G),y(G.rich,S),G}function S(G){if(G){G.font=m.makeFont(G);var N=G.textAlign;N==="middle"&&(N="center"),G.textAlign=N==null||f[N]?N:"left";var Q=G.textVerticalAlign||G.textBaseline;Q==="center"&&(Q="middle"),G.textVerticalAlign=Q==null||d[Q]?Q:"top";var X=G.textPadding;X&&(G.textPadding=E(G.textPadding))}}function w(G,N,Q,X,te,oe){X.rich?b(G,N,Q,X,te,oe):B(G,N,Q,X,te,oe)}function B(G,N,Q,X,te,oe){"use strict";var me=x(X),se,_e=!1,Ae=N.__attrCachedBy===s.PLAIN_TEXT;oe!==u?(oe&&(se=oe.style,_e=!me&&Ae&&se),N.__attrCachedBy=me?s.NONE:s.PLAIN_TEXT):Ae&&(N.__attrCachedBy=s.NONE);var Ee=X.font||o;(!_e||Ee!==(se.font||o))&&(N.font=Ee);var pe=G.__computedFont;G.__styleFont!==Ee&&(G.__styleFont=Ee,pe=G.__computedFont=N.font);var he=X.textPadding,ie=X.textLineHeight,fe=G.__textCotentBlock;(!fe||G.__dirtyText)&&(fe=G.__textCotentBlock=m.parsePlainText(Q,pe,he,ie,X.truncate));var ge=fe.outerHeight,ce=fe.lines,Ie=fe.lineHeight,Fe=D(g,G,X,te),ke=Fe.baseX,re=Fe.baseY,F=Fe.textAlign||"left",W=Fe.textVerticalAlign;l(N,X,te,ke,re);var de=m.adjustTextY(re,ge,W),ne=ke,le=de;if(me||he){var De=m.getWidth(Q,pe),Xe=De;he&&(Xe+=he[1]+he[3]);var xt=m.adjustTextX(ke,Xe,F);me&&O(G,N,X,xt,de,Xe,ge),he&&(ne=U(ke,F,he),le+=he[0])}N.textAlign=F,N.textBaseline="middle",N.globalAlpha=X.opacity||1;for(var Ke=0;Ke<a.length;Ke++){var ze=a[Ke],yt=ze[0],Et=ze[1],ct=X[yt];(!_e||ct!==se[yt])&&(N[Et]=n(N,Et,ct||ze[2]))}le+=Ie/2;var lt=X.textStrokeWidth,rt=_e?se.textStrokeWidth:null,qe=!_e||lt!==rt,$e=!_e||qe||X.textStroke!==se.textStroke,Pe=k(X.textStroke,lt),je=H(X.textFill);if(Pe&&(qe&&(N.lineWidth=lt),$e&&(N.strokeStyle=Pe)),je&&((!_e||X.textFill!==se.textFill)&&(N.fillStyle=je)),ce.length===1)Pe&&N.strokeText(ce[0],ne,le),je&&N.fillText(ce[0],ne,le);else for(var Ke=0;Ke<ce.length;Ke++)Pe&&N.strokeText(ce[Ke],ne,le),je&&N.fillText(ce[Ke],ne,le),le+=Ie}function b(G,N,Q,X,te,oe){oe!==u&&(N.__attrCachedBy=s.NONE);var me=G.__textCotentBlock;(!me||G.__dirtyText)&&(me=G.__textCotentBlock=m.parseRichText(Q,X)),A(G,N,me,X,te)}function A(G,N,Q,X,te){var oe=Q.width,me=Q.outerWidth,se=Q.outerHeight,_e=X.textPadding,Ae=D(g,G,X,te),Ee=Ae.baseX,pe=Ae.baseY,he=Ae.textAlign,ie=Ae.textVerticalAlign;l(N,X,te,Ee,pe);var fe=m.adjustTextX(Ee,me,he),ge=m.adjustTextY(pe,se,ie),ce=fe,Ie=ge;_e&&(ce+=_e[3],Ie+=_e[0]);var Fe=ce+oe;x(X)&&O(G,N,X,fe,ge,me,se);for(var ke=0;ke<Q.lines.length;ke++){for(var re=Q.lines[ke],F=re.tokens,W=F.length,de=re.lineHeight,ne=re.width,le=0,De=ce,Xe=Fe,xt=W-1,Ke;le<W&&(Ke=F[le],!Ke.textAlign||Ke.textAlign==="left");)i(G,N,Ke,X,de,Ie,De,"left"),ne-=Ke.width,De+=Ke.width,le++;for(;xt>=0&&(Ke=F[xt],Ke.textAlign==="right");)i(G,N,Ke,X,de,Ie,Xe,"right"),ne-=Ke.width,Xe-=Ke.width,xt--;for(De+=(oe-(De-ce)-(Fe-Xe)-ne)/2;le<=xt;)Ke=F[le],i(G,N,Ke,X,de,Ie,De+Ke.width/2,"center"),De+=Ke.width,le++;Ie+=de}}function l(G,N,Q,X,te){if(Q&&N.textRotation){var oe=N.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),G.translate(X,te),G.rotate(-N.textRotation),G.translate(-X,-te)}}function i(G,N,Q,X,te,oe,me,se){var _e=X.rich[Q.styleName]||{};_e.text=Q.text;var Ae=Q.textVerticalAlign,Ee=oe+te/2;Ae==="top"?Ee=oe+Q.height/2:Ae==="bottom"&&(Ee=oe+te-Q.height/2),!Q.isLineHolder&&x(_e)&&O(G,N,_e,se==="right"?me-Q.width:se==="center"?me-Q.width/2:me,Ee-Q.height/2,Q.width,Q.height);var pe=Q.textPadding;pe&&(me=U(me,se,pe),Ee-=Q.height/2-pe[2]-Q.textHeight/2),R(N,"shadowBlur",P(_e.textShadowBlur,X.textShadowBlur,0)),R(N,"shadowColor",_e.textShadowColor||X.textShadowColor||"transparent"),R(N,"shadowOffsetX",P(_e.textShadowOffsetX,X.textShadowOffsetX,0)),R(N,"shadowOffsetY",P(_e.textShadowOffsetY,X.textShadowOffsetY,0)),R(N,"textAlign",se),R(N,"textBaseline","middle"),R(N,"font",Q.font||o);var he=k(_e.textStroke||X.textStroke,fe),ie=H(_e.textFill||X.textFill),fe=Y(_e.textStrokeWidth,X.textStrokeWidth);he&&(R(N,"lineWidth",fe),R(N,"strokeStyle",he),N.strokeText(Q.text,me,Ee)),ie&&(R(N,"fillStyle",ie),N.fillText(Q.text,me,Ee))}function x(G){return!!(G.textBackgroundColor||G.textBorderWidth&&G.textBorderColor)}function O(G,N,Q,X,te,oe,me){var se=Q.textBackgroundColor,_e=Q.textBorderWidth,Ae=Q.textBorderColor,Ee=_(se);if(R(N,"shadowBlur",Q.textBoxShadowBlur||0),R(N,"shadowColor",Q.textBoxShadowColor||"transparent"),R(N,"shadowOffsetX",Q.textBoxShadowOffsetX||0),R(N,"shadowOffsetY",Q.textBoxShadowOffsetY||0),Ee||_e&&Ae){N.beginPath();var pe=Q.textBorderRadius;pe?c.buildPath(N,{x:X,y:te,width:oe,height:me,r:pe}):N.rect(X,te,oe,me),N.closePath()}if(Ee)if(R(N,"fillStyle",se),Q.fillOpacity!=null){var he=N.globalAlpha;N.globalAlpha=Q.fillOpacity*Q.opacity,N.fill(),N.globalAlpha=he}else N.fill();else if(C(se)){var ie=se.image;ie=r.createOrUpdateImage(ie,null,G,T,se),ie&&r.isImageReady(ie)&&N.drawImage(ie,X,te,oe,me)}if(_e&&Ae)if(R(N,"lineWidth",_e),R(N,"strokeStyle",Ae),Q.strokeOpacity!=null){var he=N.globalAlpha;N.globalAlpha=Q.strokeOpacity*Q.opacity,N.stroke(),N.globalAlpha=he}else N.stroke()}function T(G,N){N.image=G}function D(G,N,Q,X){var te=Q.x||0,oe=Q.y||0,me=Q.textAlign,se=Q.textVerticalAlign;if(X){var _e=Q.textPosition;if(_e instanceof Array)te=X.x+J(_e[0],X.width),oe=X.y+J(_e[1],X.height);else{var Ae=N&&N.calculateTextPosition?N.calculateTextPosition(h,Q,X):m.calculateTextPosition(h,Q,X);te=Ae.x,oe=Ae.y,me=me||Ae.textAlign,se=se||Ae.textVerticalAlign}var Ee=Q.textOffset;Ee&&(te+=Ee[0],oe+=Ee[1])}return G=G||{},G.baseX=te,G.baseY=oe,G.textAlign=me,G.textVerticalAlign=se,G}function R(G,N,Q){return G[N]=n(G,N,Q),G[N]}function k(G,N){return G==null||N<=0||G==="transparent"||G==="none"?null:G.image||G.colorStops?"#000":G}function H(G){return G==null||G==="none"?null:G.image||G.colorStops?"#000":G}function J(G,N){return typeof G=="string"?G.lastIndexOf("%")>=0?parseFloat(G)/100*N:parseFloat(G):G}function U(G,N,Q){return N==="right"?G-Q[1]:N==="center"?G+Q[3]/2-Q[1]/2:G+Q[3]}function K(G,N){return G!=null&&(G||N.textBackgroundColor||N.textBorderWidth&&N.textBorderColor||N.textPadding)}we.normalizeTextStyle=p,we.renderText=w,we.getBoxPosition=D,we.getStroke=k,we.getFill=H,we.parsePercent=J,we.needDrawText=K},qH13:function(Ze,we,M){var ue=M("ItGF"),Y=M("QBsz"),P=Y.applyTransform,y=M("mFDi"),E=M("Qe9p"),_=M("6GrX"),C=M("pzxd"),m=M("ni6a"),c=M("Gev7"),r=M("Dagg"),n=M("dqUG"),e=M("y+Vt"),s=M("IMiH"),u=M("QuXc"),o=M("06Qe"),f=s.CMD,d=Math.round,a=Math.sqrt,h=Math.abs,g=Math.cos,p=Math.sin,S=Math.max;if(!ue.canvasSupported){var w=",",B="progid:DXImageTransform.Microsoft",b=21600,A=b/2,l=1e5,i=1e3,x=function(ke){ke.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",ke.coordsize=b+","+b,ke.coordorigin="0,0"},O=function(ke){return String(ke).replace(/&/g,"&amp;").replace(/"/g,"&quot;")},T=function(ke,re,F){return"rgb("+[ke,re,F].join(",")+")"},D=function(ke,re){re&&ke&&re.parentNode!==ke&&ke.appendChild(re)},R=function(ke,re){re&&ke&&re.parentNode===ke&&ke.removeChild(re)},k=function(ke,re,F){return(parseFloat(ke)||0)*l+(parseFloat(re)||0)*i+F},H=C.parsePercent,J=function(ke,re,F){var W=E.parse(re);F=+F,isNaN(F)&&(F=1),W&&(ke.color=T(W[0],W[1],W[2]),ke.opacity=F*W[3])},U=function(ke){var re=E.parse(ke);return[T(re[0],re[1],re[2]),re[3]]},K=function(ke,re,F){var W=re.fill;if(W!=null)if(W instanceof u){var de,ne=0,le=[0,0],De=0,Xe=1,xt=F.getBoundingRect(),Ke=xt.width,ze=xt.height;if(W.type==="linear"){de="gradient";var yt=F.transform,Et=[W.x*Ke,W.y*ze],ct=[W.x2*Ke,W.y2*ze];yt&&(P(Et,Et,yt),P(ct,ct,yt));var lt=ct[0]-Et[0],rt=ct[1]-Et[1];ne=Math.atan2(lt,rt)*180/Math.PI,ne<0&&(ne+=360),ne<1e-6&&(ne=0)}else{de="gradientradial";var Et=[W.x*Ke,W.y*ze],yt=F.transform,qe=F.scale,$e=Ke,Pe=ze;le=[(Et[0]-xt.x)/$e,(Et[1]-xt.y)/Pe],yt&&P(Et,Et,yt),$e/=qe[0]*b,Pe/=qe[1]*b;var je=S($e,Pe);De=2*0/je,Xe=2*W.r/je-De}var Ne=W.colorStops.slice();Ne.sort(function(Ct,Re){return Ct.offset-Re.offset});for(var et=Ne.length,mt=[],At=[],Ut=0;Ut<et;Ut++){var Xt=Ne[Ut],un=U(Xt.color);At.push(Xt.offset*Xe+De+" "+un[0]),(Ut===0||Ut===et-1)&&mt.push(un)}if(et>=2){var jt=mt[0][0],Zt=mt[1][0],Mt=mt[0][1]*re.opacity,Tt=mt[1][1]*re.opacity;ke.type=de,ke.method="none",ke.focus="100%",ke.angle=ne,ke.color=jt,ke.color2=Zt,ke.colors=At.join(","),ke.opacity=Tt,ke.opacity2=Mt}de==="radial"&&(ke.focusposition=le.join(","))}else J(ke,W,re.opacity)},G=function(ke,re){re.lineDash&&(ke.dashstyle=re.lineDash.join(" ")),re.stroke!=null&&!(re.stroke instanceof u)&&J(ke,re.stroke,re.opacity)},N=function(ke,re,F,W){var de=re==="fill",ne=ke.getElementsByTagName(re)[0];F[re]!=null&&F[re]!=="none"&&(de||!de&&F.lineWidth)?(ke[de?"filled":"stroked"]="true",F[re]instanceof u&&R(ke,ne),ne||(ne=o.createNode(re)),de?K(ne,F,W):G(ne,F),D(ke,ne)):(ke[de?"filled":"stroked"]="false",R(ke,ne))},Q=[[],[],[]],X=function(ke,re){var F=f.M,W=f.C,de=f.L,ne=f.A,le=f.Q,De=[],Xe,xt,Ke,ze,yt,Et,ct=ke.data,lt=ke.len();for(ze=0;ze<lt;){Ke=ct[ze++],xt="",Xe=0;switch(Ke){case F:xt=" m ",Xe=1,yt=ct[ze++],Et=ct[ze++],Q[0][0]=yt,Q[0][1]=Et;break;case de:xt=" l ",Xe=1,yt=ct[ze++],Et=ct[ze++],Q[0][0]=yt,Q[0][1]=Et;break;case le:case W:xt=" c ",Xe=3;var rt=ct[ze++],qe=ct[ze++],$e=ct[ze++],Pe=ct[ze++],je,Ne;Ke===le?(je=$e,Ne=Pe,$e=($e+2*rt)/3,Pe=(Pe+2*qe)/3,rt=(yt+2*rt)/3,qe=(Et+2*qe)/3):(je=ct[ze++],Ne=ct[ze++]),Q[0][0]=rt,Q[0][1]=qe,Q[1][0]=$e,Q[1][1]=Pe,Q[2][0]=je,Q[2][1]=Ne,yt=je,Et=Ne;break;case ne:var et=0,mt=0,At=1,Ut=1,Xt=0;re&&(et=re[4],mt=re[5],At=a(re[0]*re[0]+re[1]*re[1]),Ut=a(re[2]*re[2]+re[3]*re[3]),Xt=Math.atan2(-re[1]/Ut,re[0]/At));var un=ct[ze++],jt=ct[ze++],Zt=ct[ze++],Mt=ct[ze++],Tt=ct[ze++]+Xt,Ct=ct[ze++]+Tt+Xt;ze++;var Re=ct[ze++],We=un+g(Tt)*Zt,St=jt+p(Tt)*Mt,rt=un+g(Ct)*Zt,qe=jt+p(Ct)*Mt,ft=Re?" wa ":" at ";Math.abs(We-rt)<1e-4&&(Math.abs(Ct-Tt)>.01?Re&&(We+=270/b):Math.abs(St-jt)<1e-4?Re&&We<un||!Re&&We>un?qe-=270/b:qe+=270/b:Re&&St<jt||!Re&&St>jt?rt+=270/b:rt-=270/b),De.push(ft,d(((un-Zt)*At+et)*b-A),w,d(((jt-Mt)*Ut+mt)*b-A),w,d(((un+Zt)*At+et)*b-A),w,d(((jt+Mt)*Ut+mt)*b-A),w,d((We*At+et)*b-A),w,d((St*Ut+mt)*b-A),w,d((rt*At+et)*b-A),w,d((qe*Ut+mt)*b-A)),yt=rt,Et=qe;break;case f.R:var It=Q[0],Ot=Q[1];It[0]=ct[ze++],It[1]=ct[ze++],Ot[0]=It[0]+ct[ze++],Ot[1]=It[1]+ct[ze++],re&&(P(It,It,re),P(Ot,Ot,re)),It[0]=d(It[0]*b-A),Ot[0]=d(Ot[0]*b-A),It[1]=d(It[1]*b-A),Ot[1]=d(Ot[1]*b-A),De.push(" m ",It[0],w,It[1]," l ",Ot[0],w,It[1]," l ",Ot[0],w,Ot[1]," l ",It[0],w,Ot[1]);break;case f.Z:De.push(" x ")}if(Xe>0){De.push(xt);for(var bt=0;bt<Xe;bt++){var Ht=Q[bt];re&&P(Ht,Ht,re),De.push(d(Ht[0]*b-A),w,d(Ht[1]*b-A),bt<Xe-1?w:"")}}}return De.join("")};e.prototype.brushVML=function(ke){var re=this.style,F=this._vmlEl;F||(F=o.createNode("shape"),x(F),this._vmlEl=F),N(F,"fill",re,this),N(F,"stroke",re,this);var W=this.transform,de=W!=null,ne=F.getElementsByTagName("stroke")[0];if(ne){var le=re.lineWidth;if(de&&!re.strokeNoScale){var De=W[0]*W[3]-W[1]*W[2];le*=a(h(De))}ne.weight=le+"px"}var Xe=this.path||(this.path=new s);this.__dirtyPath&&(Xe.beginPath(),Xe.subPixelOptimize=!1,this.buildPath(Xe,this.shape),Xe.toStatic(),this.__dirtyPath=!1),F.path=X(Xe,this.transform),F.style.zIndex=k(this.zlevel,this.z,this.z2),D(ke,F),re.text!=null?this.drawRectText(ke,this.getBoundingRect()):this.removeRectText(ke)},e.prototype.onRemove=function(ke){R(ke,this._vmlEl),this.removeRectText(ke)},e.prototype.onAdd=function(ke){D(ke,this._vmlEl),this.appendRectText(ke)};var te=function(ke){return typeof ke=="object"&&ke.tagName&&ke.tagName.toUpperCase()==="IMG"};r.prototype.brushVML=function(ke){var re=this.style,F=re.image,W,de;if(te(F)){var ne=F.src;if(ne===this._imageSrc)W=this._imageWidth,de=this._imageHeight;else{var le=F.runtimeStyle,De=le.width,Xe=le.height;le.width="auto",le.height="auto",W=F.width,de=F.height,le.width=De,le.height=Xe,this._imageSrc=ne,this._imageWidth=W,this._imageHeight=de}F=ne}else F===this._imageSrc&&(W=this._imageWidth,de=this._imageHeight);if(!F)return;var xt=re.x||0,Ke=re.y||0,ze=re.width,yt=re.height,Et=re.sWidth,ct=re.sHeight,lt=re.sx||0,rt=re.sy||0,qe=Et&&ct,$e=this._vmlEl;$e||($e=o.doc.createElement("div"),x($e),this._vmlEl=$e);var Pe=$e.style,je=!1,Ne,et=1,mt=1;if(this.transform&&(Ne=this.transform,et=a(Ne[0]*Ne[0]+Ne[1]*Ne[1]),mt=a(Ne[2]*Ne[2]+Ne[3]*Ne[3]),je=Ne[1]||Ne[2]),je){var At=[xt,Ke],Ut=[xt+ze,Ke],Xt=[xt,Ke+yt],un=[xt+ze,Ke+yt];P(At,At,Ne),P(Ut,Ut,Ne),P(Xt,Xt,Ne),P(un,un,Ne);var jt=S(At[0],Ut[0],Xt[0],un[0]),Zt=S(At[1],Ut[1],Xt[1],un[1]),Mt=[];Mt.push("M11=",Ne[0]/et,w,"M12=",Ne[2]/mt,w,"M21=",Ne[1]/et,w,"M22=",Ne[3]/mt,w,"Dx=",d(xt*et+Ne[4]),w,"Dy=",d(Ke*mt+Ne[5])),Pe.padding="0 "+d(jt)+"px "+d(Zt)+"px 0",Pe.filter=B+".Matrix("+Mt.join("")+", SizingMethod=clip)"}else Ne&&(xt=xt*et+Ne[4],Ke=Ke*mt+Ne[5]),Pe.filter="",Pe.left=d(xt)+"px",Pe.top=d(Ke)+"px";var Tt=this._imageEl,Ct=this._cropEl;Tt||(Tt=o.doc.createElement("div"),this._imageEl=Tt);var Re=Tt.style;if(qe){if(W&&de)Re.width=d(et*W*ze/Et)+"px",Re.height=d(mt*de*yt/ct)+"px";else{var We=new Image,St=this;We.onload=function(){We.onload=null,W=We.width,de=We.height,Re.width=d(et*W*ze/Et)+"px",Re.height=d(mt*de*yt/ct)+"px",St._imageWidth=W,St._imageHeight=de,St._imageSrc=F},We.src=F}Ct||(Ct=o.doc.createElement("div"),Ct.style.overflow="hidden",this._cropEl=Ct);var ft=Ct.style;ft.width=d((ze+lt*ze/Et)*et),ft.height=d((yt+rt*yt/ct)*mt),ft.filter=B+".Matrix(Dx="+-lt*ze/Et*et+",Dy="+-rt*yt/ct*mt+")",Ct.parentNode||$e.appendChild(Ct),Tt.parentNode!==Ct&&Ct.appendChild(Tt)}else Re.width=d(et*ze)+"px",Re.height=d(mt*yt)+"px",$e.appendChild(Tt),Ct&&Ct.parentNode&&($e.removeChild(Ct),this._cropEl=null);var It="",Ot=re.opacity;Ot<1&&(It+=".Alpha(opacity="+d(Ot*100)+") "),It+=B+".AlphaImageLoader(src="+F+", SizingMethod=scale)",Re.filter=It,$e.style.zIndex=k(this.zlevel,this.z,this.z2),D(ke,$e),re.text!=null&&this.drawRectText(ke,this.getBoundingRect())},r.prototype.onRemove=function(ke){R(ke,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(ke)},r.prototype.onAdd=function(ke){D(ke,this._vmlEl),this.appendRectText(ke)};var oe="normal",me={},se=0,_e=100,Ae=document.createElement("div"),Ee=function(ke){var re=me[ke];if(!re){se>_e&&(se=0,me={});var F=Ae.style,W;try{F.font=ke,W=F.fontFamily.split(",")[0]}catch(de){}re={style:F.fontStyle||oe,variant:F.fontVariant||oe,weight:F.fontWeight||oe,size:parseFloat(F.fontSize||12)|0,family:W||"Microsoft YaHei"},me[ke]=re,se++}return re},pe;_.$override("measureText",function(ke,re){var F=o.doc;pe||(pe=F.createElement("div"),pe.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",o.doc.body.appendChild(pe));try{pe.style.font=re}catch(W){}return pe.innerHTML="",pe.appendChild(F.createTextNode(ke)),{width:pe.offsetWidth}});for(var he=new y,ie=function(ke,re,F,W){var de=this.style;this.__dirty&&C.normalizeTextStyle(de,!0);var ne=de.text;if(ne!=null&&(ne+=""),!ne)return;if(de.rich){var le=_.parseRichText(ne,de);ne=[];for(var De=0;De<le.lines.length;De++){for(var Xe=le.lines[De].tokens,xt=[],Ke=0;Ke<Xe.length;Ke++)xt.push(Xe[Ke].text);ne.push(xt.join(""))}ne=ne.join(`
`)}var ze,yt,Et=de.textAlign,ct=de.textVerticalAlign,lt=Ee(de.font),rt=lt.style+" "+lt.variant+" "+lt.weight+" "+lt.size+'px "'+lt.family+'"';F=F||_.getBoundingRect(ne,rt,Et,ct,de.textPadding,de.textLineHeight);var qe=this.transform;if(qe&&!W&&(he.copy(re),he.applyTransform(qe),re=he),W)ze=re.x,yt=re.y;else{var $e=de.textPosition;if($e instanceof Array)ze=re.x+H($e[0],re.width),yt=re.y+H($e[1],re.height),Et=Et||"left";else{var Pe=this.calculateTextPosition?this.calculateTextPosition({},de,re):_.calculateTextPosition({},de,re);ze=Pe.x,yt=Pe.y,Et=Et||Pe.textAlign,ct=ct||Pe.textVerticalAlign}}ze=_.adjustTextX(ze,F.width,Et),yt=_.adjustTextY(yt,F.height,ct),yt+=F.height/2;var je=o.createNode,Ne=this._textVmlEl,et,mt,At;Ne?(At=Ne.firstChild,et=At.nextSibling,mt=et.nextSibling):(Ne=je("line"),et=je("path"),mt=je("textpath"),At=je("skew"),mt.style["v-text-align"]="left",x(Ne),et.textpathok=!0,mt.on=!0,Ne.from="0 0",Ne.to="1000 0.05",D(Ne,At),D(Ne,et),D(Ne,mt),this._textVmlEl=Ne);var Ut=[ze,yt],Xt=Ne.style;qe&&W?(P(Ut,Ut,qe),At.on=!0,At.matrix=qe[0].toFixed(3)+w+qe[2].toFixed(3)+w+qe[1].toFixed(3)+w+qe[3].toFixed(3)+",0,0",At.offset=(d(Ut[0])||0)+","+(d(Ut[1])||0),At.origin="0 0",Xt.left="0px",Xt.top="0px"):(At.on=!1,Xt.left=d(ze)+"px",Xt.top=d(yt)+"px"),mt.string=O(ne);try{mt.style.font=rt}catch(un){}N(Ne,"fill",{fill:de.textFill,opacity:de.opacity},this),N(Ne,"stroke",{stroke:de.textStroke,opacity:de.opacity,lineDash:de.lineDash||null},this),Ne.style.zIndex=k(this.zlevel,this.z,this.z2),D(ke,Ne)},fe=function(ke){R(ke,this._textVmlEl),this._textVmlEl=null},ge=function(ke){D(ke,this._textVmlEl)},ce=[m,c,r,e,n],Ie=0;Ie<ce.length;Ie++){var Fe=ce[Ie].prototype;Fe.drawRectText=ie,Fe.removeRectText=fe,Fe.appendRectText=ge}n.prototype.brushVML=function(ke){var re=this.style;re.text!=null?this.drawRectText(ke,{x:re.x||0,y:re.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(ke)},n.prototype.onRemove=function(ke){this.removeRectText(ke)},n.prototype.onAdd=function(ke){this.appendRectText(ke)}}},qgvg:function(Ze,we){Ze.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(Ze,we,M){var ue=M("bYtY"),Y=M("ItGF"),P=M("4fz+"),y=M("BPZU");function E(m,c){return m.zlevel===c.zlevel?m.z===c.z?m.z2-c.z2:m.z-c.z:m.zlevel-c.zlevel}var _=function(){this._roots=[],this._displayList=[],this._displayListLen=0};_.prototype={constructor:_,traverse:function(m,c){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(m,c)},getDisplayList:function(m,c){return c=c||!1,m&&this.updateDisplayList(c),this._displayList},updateDisplayList:function(m){this._displayListLen=0;for(var c=this._roots,r=this._displayList,n=0,e=c.length;n<e;n++)this._updateAndAddDisplayable(c[n],null,m);r.length=this._displayListLen,Y.canvasSupported&&y(r,E)},_updateAndAddDisplayable:function(m,c,r){if(m.ignore&&!r)return;m.beforeUpdate(),m.__dirty&&m.update(),m.afterUpdate();var n=m.clipPath;if(n){c?c=c.slice():c=[];for(var e=n,s=m;e;)e.parent=s,e.updateTransform(),c.push(e),s=e,e=e.clipPath}if(m.isGroup){for(var u=m._children,o=0;o<u.length;o++){var f=u[o];m.__dirty&&(f.__dirty=!0),this._updateAndAddDisplayable(f,c,r)}m.__dirty=!1}else m.__clipPaths=c,this._displayList[this._displayListLen++]=m},addRoot:function(m){if(m.__storage===this)return;m instanceof P&&m.addChildrenToStorage(this),this.addToStorage(m),this._roots.push(m)},delRoot:function(m){if(m==null){for(var c=0;c<this._roots.length;c++){var r=this._roots[c];r instanceof P&&r.delChildrenFromStorage(this)}this._roots=[],this._displayList=[],this._displayListLen=0;return}if(m instanceof Array){for(var c=0,n=m.length;c<n;c++)this.delRoot(m[c]);return}var e=ue.indexOf(this._roots,m);e>=0&&(this.delFromStorage(m),this._roots.splice(e,1),m instanceof P&&m.delChildrenFromStorage(this))},addToStorage:function(m){return m&&(m.__storage=this,m.dirty(!1)),this},delFromStorage:function(m){return m&&(m.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:E};var C=_;Ze.exports=C},rA99:function(Ze,we,M){var ue=M("y+Vt"),Y=M("QBsz"),P=M("Sj9i"),y=P.quadraticSubdivide,E=P.cubicSubdivide,_=P.quadraticAt,C=P.cubicAt,m=P.quadraticDerivativeAt,c=P.cubicDerivativeAt,r=[];function n(s,u,o){var f=s.cpx2,d=s.cpy2;return f===null||d===null?[(o?c:C)(s.x1,s.cpx1,s.cpx2,s.x2,u),(o?c:C)(s.y1,s.cpy1,s.cpy2,s.y2,u)]:[(o?m:_)(s.x1,s.cpx1,s.x2,u),(o?m:_)(s.y1,s.cpy1,s.y2,u)]}var e=ue.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 o=u.x1,f=u.y1,d=u.x2,a=u.y2,h=u.cpx1,g=u.cpy1,p=u.cpx2,S=u.cpy2,w=u.percent;if(w===0)return;s.moveTo(o,f),p==null||S==null?(w<1&&(y(o,h,d,w,r),h=r[1],d=r[2],y(f,g,a,w,r),g=r[1],a=r[2]),s.quadraticCurveTo(h,g,d,a)):(w<1&&(E(o,h,p,d,w,r),h=r[1],p=r[2],d=r[3],E(f,g,S,a,w,r),g=r[1],S=r[2],a=r[3]),s.bezierCurveTo(h,g,p,S,d,a))},pointAt:function(s){return n(this.shape,s,!1)},tangentAt:function(s){var u=n(this.shape,s,!0);return Y.normalize(u,u)}});Ze.exports=e},"rAM+":function(Ze,we,M){"use strict";M.d(we,"a",function(){return Y});var ue=M("Qw5x");function Y(P,y){var E;if(typeof Symbol=="undefined"||P[Symbol.iterator]==null){if(Array.isArray(P)||(E=Object(ue.a)(P))||y&&P&&typeof P.length=="number"){E&&(P=E);var _=0,C=function(){};return{s:C,n:function(){return _>=P.length?{done:!0}:{done:!1,value:P[_++]}},e:function(e){throw e},f:C}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,c=!1,r;return{s:function(){E=P[Symbol.iterator]()},n:function(){var e=E.next();return m=e.done,e},e:function(e){c=!0,r=e},f:function(){try{!m&&E.return!=null&&E.return()}finally{if(c)throw r}}}}},rUJ1:function(Ze,we){const M=/[&<>"']/,ue=/[&<>"']/g,Y=/[<>"']|&(?!#?\w+;)/,P=/[<>"']|&(?!#?\w+;)/g,y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},E=b=>y[b];function _(b,A){if(A){if(M.test(b))return b.replace(ue,E)}else if(Y.test(b))return b.replace(P,E);return b}const C=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function m(b){return b.replace(C,(A,l)=>(l=l.toLowerCase(),l==="colon"?":":l.charAt(0)==="#"?l.charAt(1)==="x"?String.fromCharCode(parseInt(l.substring(2),16)):String.fromCharCode(+l.substring(1)):""))}const c=/(^|[^\[])\^/g;function r(b,A){b=b.source||b,A=A||"";const l={replace:(i,x)=>(x=x.source||x,x=x.replace(c,"$1"),b=b.replace(i,x),l),getRegex:()=>new RegExp(b,A)};return l}const n=/[^\w:]/g,e=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function s(b,A,l){if(b){let i;try{i=decodeURIComponent(m(l)).replace(n,"").toLowerCase()}catch(x){return null}if(i.indexOf("javascript:")===0||i.indexOf("vbscript:")===0||i.indexOf("data:")===0)return null}A&&!e.test(l)&&(l=a(A,l));try{l=encodeURI(l).replace(/%25/g,"%")}catch(i){return null}return l}const u={},o=/^[^:]+:\/*[^/]*$/,f=/^([^:]+:)[\s\S]*$/,d=/^([^:]+:\/*[^/]*)[\s\S]*$/;function a(b,A){u[" "+b]||(o.test(b)?u[" "+b]=b+"/":u[" "+b]=S(b,"/",!0)),b=u[" "+b];const l=b.indexOf(":")===-1;return A.substring(0,2)==="//"?l?A:b.replace(f,"$1")+A:A.charAt(0)==="/"?l?A:b.replace(d,"$1")+A:b+A}const h={exec:function(){}};function g(b){let A=1,l,i;for(;A<arguments.length;A++){l=arguments[A];for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(b[i]=l[i])}return b}function p(b,A){const l=b.replace(/\|/g,(O,T,D)=>{let R=!1,k=T;for(;--k>=0&&D[k]==="\\";)R=!R;return R?"|":" |"}),i=l.split(/ \|/);let x=0;if(i.length>A)i.splice(A);else for(;i.length<A;)i.push("");for(;x<i.length;x++)i[x]=i[x].trim().replace(/\\\|/g,"|");return i}function S(b,A,l){const i=b.length;if(i===0)return"";let x=0;for(;x<i;){const O=b.charAt(i-x-1);if(O===A&&!l)x++;else if(O!==A&&l)x++;else break}return b.substr(0,i-x)}function w(b,A){if(b.indexOf(A[1])===-1)return-1;const l=b.length;let i=0,x=0;for(;x<l;x++)if(b[x]==="\\")x++;else if(b[x]===A[0])i++;else if(b[x]===A[1]&&(i--,i<0))return x;return-1}function B(b){b&&b.sanitize&&!b.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")}Ze.exports={escape:_,unescape:m,edit:r,cleanUrl:s,resolveUrl:a,noopTest:h,merge:g,splitCells:p,rtrim:S,findClosingBracket:w,checkSanitizeDeprecation:B}},rmlV:function(Ze,we,M){var ue=M("y+Vt"),Y=ue.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(P,y){var E=.5522848,_=y.cx,C=y.cy,m=y.rx,c=y.ry,r=m*E,n=c*E;P.moveTo(_-m,C),P.bezierCurveTo(_-m,C-n,_-r,C-c,_,C-c),P.bezierCurveTo(_+r,C-c,_+m,C-n,_+m,C),P.bezierCurveTo(_+m,C+n,_+r,C+c,_,C+c),P.bezierCurveTo(_-r,C+c,_-m,C+n,_-m,C),P.closePath()}});Ze.exports=Y},sBCT:function(Ze,we,M){"use strict";var ue=M("DZo9"),Y=M("8z0m"),P=M("+L6B"),y=M("2/Rp"),E=M("MXD1"),_=M("CFYs"),C=M("9og8"),m=M("2qtc"),c=M("kLXV"),r=M("miYZ"),n=M("tsqr"),e=M("y8nQ"),s=M("Vl3Y"),u=M("tJVT"),o=M("k1fw"),f=M("oBTY"),d=M("5NDa"),a=M("5rEg"),h=M("WmNS"),g=M.n(h),p=M("q1tI"),S=M.n(p),w=M("Ty5D"),B=M("55Ip"),b=M("9kvl"),A=M("kwm0"),l=M.n(A),i=M("Aky1"),x=M("h/US"),O=M("m3rI"),T=a.a.TextArea,D=1024,R=function(J,U){var K,G=U.payload||{},N=G.uploadInfo,Q=N===void 0?{}:N;switch(U.type){case"addVideo":return{videoList:[].concat(Object(f.a)(J.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:J.videoList.filter(function(X){return X.name!==U.payload.name})};case"removeAll":return{videoList:[]};case"updateProgress":return{videoList:J.videoList.map(function(X){return X.name===U.payload.uploadInfo.file.name?Object(o.a)(Object(o.a)({},X),{loaded:U.payload.progressPercent,videoId:Q.videoId,fileHash:Q.fileHash}):X})};case"updateTitle":return{videoList:(K=J.videoList)===null||K===void 0?void 0:K.map(function(X){return X.name===U.payload.item.name?Object(o.a)(Object(o.a)({},X),{title:U.payload.title}):X})};default:return{videoList:[]}}},k=function(J){var U,K=J.user,G=J.globalSetting,N=J.loading,Q=J.dispatch,X=J.visible,te=J.editData,oe=J.onCancel,me=oe===void 0?function(){}:oe,se=J.onOk,_e=se===void 0?function(){}:se,Ae=Object(w.i)(),Ee=s.a.useForm(),pe=Object(u.a)(Ee,1),he=pe[0],ie=Object(p.useReducer)(R,{videoList:[]}),fe=Object(u.a)(ie,2),ge=fe[0],ce=fe[1],Ie=Object(p.useState)(!1),Fe=Object(u.a)(Ie,2),ke=Fe[0],re=Fe[1],F=Object(p.useRef)(),W=Object(p.useState)(),de=Object(u.a)(W,2),ne=de[0],le=de[1],De=Object(p.useState)(!1),Xe=Object(u.a)(De,2),xt=Xe[0],Ke=Xe[1],ze=Object(p.useState)(!1),yt=Object(u.a)(ze,2),Et=yt[0],ct=yt[1],lt=Object(p.useState)([]),rt=Object(u.a)(lt,2),qe=rt[0],$e=rt[1],Pe=Object(p.useState)([]),je=Object(u.a)(Pe,2),Ne=je[0],et=je[1];Object(p.useEffect)(function(){if(!te)return;Ke(te.is_link),le(te.link),!te.is_link&&ce({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 mt=function(){var Re=document.getElementById("fileUpload");Re.value=""},At=function(Re){var We;Ke(!1);var St=Re.target.files[0];if(!St){mt();return}var ft=St.name.toLowerCase();if(ft&&ft.indexOf(".avi")==-1&&ft.indexOf(".flv")==-1&&ft.indexOf(".f4v")==-1&&ft.indexOf(".m4v")==-1&&ft.indexOf(".mov")==-1&&ft.indexOf(".mp4")==-1&&ft.indexOf(".rmvb")==-1&&ft.indexOf(".swf")==-1&&ft.indexOf(".webm")==-1&&ft.indexOf(".wmv")==-1){n.b.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),mt();return}if(St.size>D*1024*1024){n.b.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC71G"),mt();return}if((We=ge.videoList)!==null&&We!==void 0&&We.find(function(It){return It.name===St.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"),mt();return}Xt(St)},Ut=function(Re,We){c.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:S.a.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",We?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:function(){mt(),ce({type:"removeVideo",payload:{name:Re}})}})},Xt=function(Re){var We,St='{"Vod":{}}';if(re(!0),F.current){F.current.addFile(Re,null,null,null,St);return}Object(i.a)((We=K.userInfo)===null||We===void 0?void 0:We.login,{create:!F,addFileSuccess:function(It){ce({type:"addVideo",payload:{uploadInfo:It}})},onUploadProgress:function(It,Ot,bt){var Ht=Math.ceil(bt*100);ce({type:"updateProgress",payload:{uploadInfo:It,progressPercent:Ht}}),mt()},onUploadFailed:function(It){n.b.info("\u89C6\u9891\u4E91\u670D\u52A1\u51FA\u73B0\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\u3002")},onUploadEnd:function(It){re(!1)},onUploadSucceed:function(It){re(!1)},onUploadError:function(It){re(!1)},gotUploader:function(It){It.addFile(Re,null,null,null,St),F.current=It}})},un=function(){var Ct=Object(C.a)(g.a.mark(function Re(){var We,St,ft,It;return g.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return bt.next=2,he.validateFields();case 2:if(!(!xt&&!((We=ge.videoList)!==null&&We!==void 0&&We.length)||xt&&!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),ft=xt?{link:ne}:{video_id:(St=ge.videoList)===null||St===void 0?void 0:St[0].videoId};debugger;return bt.next=10,_e(Object(o.a)(Object(o.a)({},ft),{name:he.getFieldValue("name"),attachment_id:he.getFieldValue("attachment_id"),description:he.getFieldValue("description")}));case 10:It=bt.sent,ct(!1),It.id&&jt();case 13:case"end":return bt.stop()}},Re)}));return function(){return Ct.apply(this,arguments)}}(),jt=function(){he.resetFields(),ce({type:"removeAll"}),le(null),Ke(null)},Zt=function(){me(),jt()},Mt={name:"file",multiple:!0,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*",action:O.a.API_SERVER+"/api/attachments.json",withCredentials:!0,onRemove:function(Re){et([])},onChange:function(Re){var We=Re.file.status;if(We!=="uploading",We==="removed"&&$e(Re.fileList),We==="done"){var St,ft,It;$e(Re==null||((St=Re.fileList)===null||St===void 0)?void 0:St.slice(-1)),ce({type:"addVideo",payload:{uploadInfo:{videoId:Re==null||((ft=Re.fileList[0])===null||ft===void 0||((It=ft.response)===null||It===void 0))?void 0:It.id,loaded:100,file:Object(o.a)({},Re==null?void 0:Re.fileList[0])}}}),Ke(!1),n.b.success("".concat(Re.file.name," \u6587\u4EF6\u4E0A\u4F20\u6210\u529F"))}else We==="error"&&n.b.error("".concat(Re.file.name," \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"))},beforeUpload:function(Re){var We=Re.size/1024/1024<1e3;return We||n.b.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E150MB"),We}},Tt=function(){var Re,We,St,ft,It,Ot,bt,Ht,Gt,xn,vn,sr;return S.a.createElement(S.a.Fragment,null,!xt&&!!((Re=ge.videoList)!==null&&Re!==void 0&&Re.length)&&S.a.createElement("div",{className:l.a.fileProgress},((We=ge.videoList)===null||We===void 0||((St=We[0])===null||St===void 0)?void 0:St.loaded)==100?S.a.createElement("div",{className:"".concat(l.a.videoName," font14")},(ft=ge.videoList)===null||ft===void 0||((It=ft[0])===null||It===void 0)?void 0:It.name):S.a.createElement(_.a,{style:{width:"80%"},percent:(Ot=ge.videoList)===null||Ot===void 0||((bt=Ot[0])===null||bt===void 0)?void 0:bt.loaded,status:((Ht=ge.videoList)===null||Ht===void 0||((Gt=Ht[0])===null||Gt===void 0)?void 0:Gt.loaded)==100?"normal":"active"}),S.a.createElement("div",{className:l.a.fileCancel,onClick:function(){var Kn,En,Qr,sa;return Ut((Kn=ge.videoList)===null||Kn===void 0||((En=Kn[0])===null||En===void 0)?void 0:En.name,((Qr=ge.videoList)===null||Qr===void 0||((sa=Qr[0])===null||sa===void 0)?void 0:sa.loaded)==100)}},((xn=ge.videoList)===null||xn===void 0||((vn=xn[0])===null||vn===void 0)?void 0:vn.loaded)===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20")),!((sr=ge.videoList)!==null&&sr!==void 0&&sr.length)&&S.a.createElement("div",{className:l.a.uploadWrap},S.a.createElement("label",{htmlFor:"fileUpload",style:{marginRight:"30px"}},S.a.createElement(Y.a,Mt,S.a.createElement(y.a,{className:l.a.upload,disabled:(Ne==null?void 0:Ne.length)>0},S.a.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4E0A\u4F20\u89C6\u9891"))),S.a.createElement("label",{className:"".concat(l.a.upload," ").concat(l.a.uploadLink),onClick:function(){return Ke(!0)}},S.a.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6DFB\u52A0\u5916\u94FE")),xt&&S.a.createElement(a.a,{className:"mt5",placeholder:"\u8BF7\u8F93\u5165\u89C6\u9891\u94FE\u63A5",value:ne,onChange:function(Kn){return le(Kn.target.value)}}))};return S.a.createElement(c.a,{centered:!0,maskClosable:!1,title:te?"\u7F16\u8F91\u89C6\u9891\u9879\u76EE":"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE",width:740,className:l.a.modal,visible:X,confirmLoading:Et,onOk:un,onCancel:Zt},S.a.createElement(s.a,{form:he},S.a.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:At,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),S.a.createElement(s.a.Item,{label:"\u9879\u76EE\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}]},S.a.createElement(a.a,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u9879\u76EE\u540D\u79F0"})),S.a.createElement(s.a.Item,{label:"\u9879\u76EE\u5185\u5BB9",name:"content",className:l.a.contentItem},Tt()),S.a.createElement(s.a.Item,{name:"attachment_id",label:"\u4E0A\u4F20\u5C01\u9762\u56FE:"},S.a.createElement(x.a,{getFileProgress:function(Re){if(Re.file.status==="uploading"){ct(!0);return}Re.file.status==="done"&&ct(!1)}})),S.a.createElement(s.a.Item,{label:"\u9879\u76EE\u7B80\u4ECB",name:"description",className:"ml8"},S.a.createElement(T,{rows:5,maxLength:800,placeholder:"\u8BF7\u8F93\u5165\u672C\u89C6\u9891\u7B80\u4ECB\uFF0C\u6700\u591A\u4E0D\u8D85\u8FC7800\u5B57"})),S.a.createElement("div",{className:"c-grey-999"},S.a.createElement("div",null,"\u6CE8\u610F\uFF1A"),S.a.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",S.a.createElement(B.a,{to:"/users/".concat((U=K.userInfo)===null||U===void 0?void 0:U.login,"/videos/protocol"),target:"_blank",className:l.a.colorBlue},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),S.a.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),S.a.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"),S.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"))))};we.a=Object(b.a)(function(H){var J=H.user,U=H.loading,K=H.globalSetting;return{user:J,globalSetting:K,loading:U}})(k)},sR1s:function(Ze,we,M){"use strict";M.d(we,"b",function(){return y}),M.d(we,"a",function(){return E}),M.d(we,"c",function(){return _}),M.d(we,"d",function(){return C});var ue=M("U8pU"),Y="RC_TABLE_KEY";function P(m){return m==null?[]:Array.isArray(m)?m:[m]}function y(m,c){if(!c&&typeof c!="number")return m;for(var r=P(c),n=m,e=0;e<r.length;e+=1){if(!n)return null;var s=r[e];n=n[s]}return n}function E(m){var c=[],r={};return m.forEach(function(n){for(var e=n||{},s=e.key,u=e.dataIndex,o=s||P(u).join("-")||Y;r[o];)o="".concat(o,"_next");r[o]=!0,c.push(o)}),c}function _(){var m={};function c(s,u){u&&Object.keys(u).forEach(function(o){var f=u[o];f&&Object(ue.a)(f)==="object"?(s[o]=s[o]||{},c(s[o],f)):s[o]=f})}for(var r=arguments.length,n=new Array(r),e=0;e<r;e++)n[e]=arguments[e];return n.forEach(function(s){c(m,s)}),m}function C(m){return m!=null}},"sW+o":function(Ze,we,M){var ue=M("SrGk"),Y=M("bYtY"),P=M("SUKs"),y=M("Qe9p");function E(C,m){ue.call(this,C,m,["linearGradient","radialGradient"],"__gradient_in_use__")}Y.inherits(E,ue),E.prototype.addWithoutUpdate=function(C,m){if(m&&m.style){var c=this;Y.each(["fill","stroke"],function(r){if(m.style[r]&&(m.style[r].type==="linear"||m.style[r].type==="radial")){var n=m.style[r],e=c.getDefs(!0),s;n._dom?(s=n._dom,e.contains(n._dom)||c.addDom(s)):s=c.add(n),c.markUsed(m);var u=s.getAttribute("id");C.setAttribute(r,"url(#"+u+")")}})}},E.prototype.add=function(C){var m;if(C.type==="linear")m=this.createElement("linearGradient");else if(C.type==="radial")m=this.createElement("radialGradient");else return P("Illegal gradient type."),null;return C.id=C.id||this.nextId++,m.setAttribute("id","zr"+this._zrId+"-gradient-"+C.id),this.updateDom(C,m),this.addDom(m),m},E.prototype.update=function(C){var m=this;ue.prototype.update.call(this,C,function(){var c=C.type,r=C._dom.tagName;c==="linear"&&r==="linearGradient"||c==="radial"&&r==="radialGradient"?m.updateDom(C,C._dom):(m.removeDom(C),m.add(C))})},E.prototype.updateDom=function(C,m){if(C.type==="linear")m.setAttribute("x1",C.x),m.setAttribute("y1",C.y),m.setAttribute("x2",C.x2),m.setAttribute("y2",C.y2);else if(C.type==="radial")m.setAttribute("cx",C.x),m.setAttribute("cy",C.y),m.setAttribute("r",C.r);else{P("Illegal gradient type.");return}C.global?m.setAttribute("gradientUnits","userSpaceOnUse"):m.setAttribute("gradientUnits","objectBoundingBox"),m.innerHTML="";for(var c=C.colorStops,r=0,n=c.length;r<n;++r){var e=this.createElement("stop");e.setAttribute("offset",c[r].offset*100+"%");var s=c[r].color;if(s.indexOf("rgba">-1)){var u=y.parse(s)[3],o=y.toHex(s);e.setAttribute("stop-color","#"+o),e.setAttribute("stop-opacity",u)}else e.setAttribute("stop-color",c[r].color);m.appendChild(e)}C._dom=m},E.prototype.markUsed=function(C){if(C.style){var m=C.style.fill;m&&m._dom&&ue.prototype.markUsed.call(this,m._dom),m=C.style.stroke,m&&m._dom&&ue.prototype.markUsed.call(this,m._dom)}};var _=E;Ze.exports=_},sboe:function(Ze,we,M){"use strict";M.d(we,"a",function(){return P});var ue=M("q1tI"),Y=M.n(ue),P=ue.createContext(null)},t23M:function(Ze,we,M){"use strict";var ue=M("VTBJ"),Y=M("1OyB"),P=M("vuIU"),y=M("Ji7U"),E=M("LK+K"),_=M("q1tI"),C=M.n(_),m=M("m+aA"),c=M("Zm9Q"),r=M("Kwbf"),n=M("c+Xe"),e=M("bdgK"),s="rc-observer-key",u=function(o){Object(y.a)(d,o);var f=Object(E.a)(d);function d(){var a;return Object(Y.a)(this,d),a=f.apply(this,arguments),a.resizeObserver=null,a.childNode=null,a.currentElement=null,a.state={width:0,height:0,offsetHeight:0,offsetWidth:0},a.onResize=function(h){var g=a.props.onResize,p=h[0].target,S=p.getBoundingClientRect(),w=S.width,B=S.height,b=p.offsetWidth,A=p.offsetHeight,l=Math.floor(w),i=Math.floor(B);if(a.state.width!==l||a.state.height!==i||a.state.offsetWidth!==b||a.state.offsetHeight!==A){var x={width:l,height:i,offsetWidth:b,offsetHeight:A};a.setState(x),g&&Promise.resolve().then(function(){g(Object(ue.a)(Object(ue.a)({},x),{},{offsetWidth:b,offsetHeight:A}))})}},a.setChildNode=function(h){a.childNode=h},a}return Object(P.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 g=Object(m.a)(this.childNode||this),p=g!==this.currentElement;p&&(this.destroyObserver(),this.currentElement=g),!this.resizeObserver&&g&&(this.resizeObserver=new e.default(this.onResize),this.resizeObserver.observe(g))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var h=this.props.children,g=Object(c.a)(h);if(g.length>1)Object(r.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(g.length===0)return Object(r.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var p=g[0];if(_.isValidElement(p)&&Object(n.c)(p)){var S=p.ref;g[0]=_.cloneElement(p,{ref:Object(n.a)(S,this.setChildNode)})}return g.length===1?g[0]:g.map(function(w,B){return!_.isValidElement(w)||"key"in w&&w.key!==null?w:_.cloneElement(w,{key:"".concat(s,"-").concat(B)})})}}]),d}(_.Component);u.displayName="ResizeObserver",we.a=u},tWlo:function(Ze,we){Ze.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(Ze,we,M){"use strict";Object.defineProperty(we,"__esModule",{value:!0}),we.ver=we.clear=we.bind=void 0;var ue=M("P4Qj"),Y=function(_,C){var m=(0,ue.getSensor)(_);return m.bind(C),function(){m.unbind(C)}};we.bind=Y;var P=function(_){var C=(0,ue.getSensor)(_);(0,ue.removeSensor)(C)};we.clear=P;var y="1.0.1";we.ver=y},uK0f:function(Ze,we,M){(function(ue,Y){Ze.exports=Y()})(this,function(){"use strict";function ue(Y,P,y){y=y||{},y.childrenKeyName=y.childrenKeyName||"children";var E=Y||[],_=[],C=0;do{var m=E.filter(function(c){return P(c,C)})[0];if(!m)break;_.push(m),E=m[y.childrenKeyName]||[],C+=1}while(E.length>0);return _}return ue})},uRQ9:function(Ze,we,M){Ze.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(Ze,we,M){typeof window!="undefined"&&function(Y,P){Ze.exports=P()}(this,function(){return function(ue){var Y={};function P(y){if(Y[y])return Y[y].exports;var E=Y[y]={i:y,l:!1,exports:{}};return ue[y].call(E.exports,E,E.exports,P),E.l=!0,E.exports}return P.m=ue,P.c=Y,P.d=function(y,E,_){P.o(y,E)||Object.defineProperty(y,E,{enumerable:!0,get:_})},P.r=function(y){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(y,"__esModule",{value:!0})},P.t=function(y,E){if(E&1&&(y=P(y)),E&8)return y;if(E&4&&typeof y=="object"&&y&&y.__esModule)return y;var _=Object.create(null);if(P.r(_),Object.defineProperty(_,"default",{enumerable:!0,value:y}),E&2&&typeof y!="string")for(var C in y)P.d(_,C,function(m){return y[m]}.bind(null,C));return _},P.n=function(y){var E=y&&y.__esModule?function(){return y.default}:function(){return y};return P.d(E,"a",E),E},P.o=function(y,E){return Object.prototype.hasOwnProperty.call(y,E)},P.p="/dist/",P(P.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(ue,Y,P){"use strict";var y=Object.prototype.hasOwnProperty,E="~";function _(){}Object.create&&(_.prototype=Object.create(null),new _().__proto__||(E=!1));function C(n,e,s){this.fn=n,this.context=e,this.once=s||!1}function m(n,e,s,u,o){if(typeof s!="function")throw new TypeError("The listener must be a function");var f=new C(s,u||n,o),d=E?E+e:e;return n._events[d]?n._events[d].fn?n._events[d]=[n._events[d],f]:n._events[d].push(f):(n._events[d]=f,n._eventsCount++),n}function c(n,e){--n._eventsCount===0?n._events=new _:delete n._events[e]}function r(){this._events=new _,this._eventsCount=0}r.prototype.eventNames=function(){var e=[],s,u;if(this._eventsCount===0)return e;for(u in s=this._events)y.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 o=0,f=u.length,d=new Array(f);o<f;o++)d[o]=u[o].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,o,f,d){var a=E?E+e:e;if(!this._events[a])return!1;var h=this._events[a],g=arguments.length,p,S;if(h.fn){h.once&&this.removeListener(e,h.fn,void 0,!0);switch(g){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,o),!0;case 5:return h.fn.call(h.context,s,u,o,f),!0;case 6:return h.fn.call(h.context,s,u,o,f,d),!0}for(S=1,p=new Array(g-1);S<g;S++)p[S-1]=arguments[S];h.fn.apply(h.context,p)}else{var w=h.length,B;for(S=0;S<w;S++){h[S].once&&this.removeListener(e,h[S].fn,void 0,!0);switch(g){case 1:h[S].fn.call(h[S].context);break;case 2:h[S].fn.call(h[S].context,s);break;case 3:h[S].fn.call(h[S].context,s,u);break;case 4:h[S].fn.call(h[S].context,s,u,o);break;default:if(!p)for(B=1,p=new Array(g-1);B<g;B++)p[B-1]=arguments[B];h[S].fn.apply(h[S].context,p)}}}return!0},r.prototype.on=function(e,s,u){return m(this,e,s,u,!1)},r.prototype.once=function(e,s,u){return m(this,e,s,u,!0)},r.prototype.removeListener=function(e,s,u,o){var f=E?E+e:e;if(!this._events[f])return this;if(!s)return c(this,f),this;var d=this._events[f];if(d.fn)d.fn===s&&(!o||d.once)&&(!u||d.context===u)&&c(this,f);else{for(var a=0,h=[],g=d.length;a<g;a++)(d[a].fn!==s||o&&!d[a].once||u&&d[a].context!==u)&&h.push(d[a]);h.length?this._events[f]=h.length===1?h[0]:h:c(this,f)}return this},r.prototype.removeAllListeners=function(e){var s;return e?(s=E?E+e:e,this._events[s]&&c(this,s)):(this._events=new _,this._eventsCount=0),this},r.prototype.off=r.prototype.removeListener,r.prototype.addListener=r.prototype.on,r.prefixed=E,r.EventEmitter=r,ue.exports=r},"./node_modules/url-toolkit/src/url-toolkit.js":function(ue,Y,P){(function(y){var E=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,_=/^([^\/?#]*)([^]*)$/,C=/(?:\/|^)\.(?=\/)/g,m=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,c={buildAbsoluteURL:function(r,n,e){if(e=e||{},r=r.trim(),n=n.trim(),!n){if(!e.alwaysNormalize)return r;var s=c.parseURL(r);if(!s)throw new Error("Error trying to parse base URL.");return s.path=c.normalizePath(s.path),c.buildURLFromParts(s)}var u=c.parseURL(n);if(!u)throw new Error("Error trying to parse relative URL.");if(u.scheme)return e.alwaysNormalize?(u.path=c.normalizePath(u.path),c.buildURLFromParts(u)):n;var o=c.parseURL(r);if(!o)throw new Error("Error trying to parse base URL.");if(!o.netLoc&&o.path&&o.path[0]!=="/"){var f=_.exec(o.path);o.netLoc=f[1],o.path=f[2]}o.netLoc&&!o.path&&(o.path="/");var d={scheme:o.scheme,netLoc:u.netLoc,path:null,params:u.params,query:u.query,fragment:u.fragment};if(!u.netLoc&&(d.netLoc=o.netLoc,u.path[0]!=="/"))if(!u.path)d.path=o.path,u.params||(d.params=o.params,u.query||(d.query=o.query));else{var a=o.path,h=a.substring(0,a.lastIndexOf("/")+1)+u.path;d.path=c.normalizePath(h)}return d.path===null&&(d.path=e.alwaysNormalize?c.normalizePath(u.path):u.path),c.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(C,"");r.length!==(r=r.replace(m,"")).length;);return r.split("").reverse().join("")},buildURLFromParts:function(r){return r.scheme+r.netLoc+r.path+r.params+r.query+r.fragment}};ue.exports=c})(this)},"./node_modules/webworkify-webpack/index.js":function(ue,Y,P){function y(e){var s={};function u(f){if(s[f])return s[f].exports;var d=s[f]={i:f,l:!1,exports:{}};return e[f].call(d.exports,d,d.exports,u),d.l=!0,d.exports}u.m=e,u.c=s,u.i=function(f){return f},u.d=function(f,d,a){u.o(f,d)||Object.defineProperty(f,d,{configurable:!1,enumerable:!0,get:a})},u.r=function(f){Object.defineProperty(f,"__esModule",{value:!0})},u.n=function(f){var d=f&&f.__esModule?function(){return f.default}:function(){return f};return u.d(d,"a",d),d},u.o=function(f,d){return Object.prototype.hasOwnProperty.call(f,d)},u.p="/",u.oe=function(f){throw console.error(f),f};var o=u(u.s=ENTRY_MODULE);return o.default||o}var E="[\\.|\\-|\\+|\\w|/|@]+",_="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+E+").*?\\)";function C(e){return(e+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function m(e){return!isNaN(1*e)}function c(e,s,u){var o={};o[u]=[];var f=s.toString(),d=f.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!d)return o;for(var a=d[1],h=new RegExp("(\\\\n|\\W)"+C(a)+_,"g"),g;g=h.exec(f);){if(g[3]==="dll-reference")continue;o[u].push(g[3])}for(h=new RegExp("\\("+C(a)+'\\("(dll-reference\\s('+E+'))"\\)\\)'+_,"g");g=h.exec(f);)e[g[2]]||(o[u].push(g[1]),e[g[2]]=P(g[1]).m),o[g[2]]=o[g[2]]||[],o[g[2]].push(g[4]);for(var p=Object.keys(o),S=0;S<p.length;S++)for(var w=0;w<o[p[S]].length;w++)m(o[p[S]][w])&&(o[p[S]][w]=1*o[p[S]][w]);return o}function r(e){var s=Object.keys(e);return s.reduce(function(u,o){return u||e[o].length>0},!1)}function n(e,s){for(var u={main:[s]},o={main:[]},f={main:{}};r(u);)for(var d=Object.keys(u),a=0;a<d.length;a++){var h=d[a],g=u[h],p=g.pop();if(f[h]=f[h]||{},f[h][p]||!e[h][p])continue;f[h][p]=!0,o[h]=o[h]||[],o[h].push(p);for(var S=c(e,e[h][p],h),w=Object.keys(S),B=0;B<w.length;B++)u[w[B]]=u[w[B]]||[],u[w[B]]=u[w[B]].concat(S[w[B]])}return o}ue.exports=function(e,s){s=s||{};var u={main:P.m},o=s.all?{main:Object.keys(u.main)}:n(u,e),f="";Object.keys(o).filter(function(p){return p!=="main"}).forEach(function(p){for(var S=0;o[p][S];)S++;o[p].push(S),u[p][S]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",f=f+"var "+p+" = ("+y.toString().replace("ENTRY_MODULE",JSON.stringify(S))+")({"+o[p].map(function(w){return""+JSON.stringify(w)+": "+u[p][w].toString()}).join(",")+`});
`}),f=f+"new (("+y.toString().replace("ENTRY_MODULE",JSON.stringify(e))+")({"+o.main.map(function(p){return""+JSON.stringify(p)+": "+u.main[p].toString()}).join(",")+"}))(self);";var d=new window.Blob([f],{type:"text/javascript"});if(s.bare)return d;var a=window.URL||window.webkitURL||window.mozURL||window.msURL,h=a.createObjectURL(d),g=new window.Worker(h);return g.objectURL=h,g}},"./src/config.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"hlsDefaultConfig",function(){return B}),P.d(Y,"mergeConfig",function(){return A}),P.d(Y,"enableStreamingMode",function(){return l});var y=P("./src/controller/abr-controller.ts"),E=P("./src/controller/audio-stream-controller.ts"),_=P("./src/controller/audio-track-controller.ts"),C=P("./src/controller/subtitle-stream-controller.ts"),m=P("./src/controller/subtitle-track-controller.ts"),c=P("./src/controller/buffer-controller.ts"),r=P("./src/controller/timeline-controller.ts"),n=P("./src/controller/cap-level-controller.ts"),e=P("./src/controller/fps-controller.ts"),s=P("./src/controller/eme-controller.ts"),u=P("./src/controller/cmcd-controller.ts"),o=P("./src/utils/xhr-loader.ts"),f=P("./src/utils/fetch-loader.ts"),d=P("./src/utils/cues.ts"),a=P("./src/utils/mediakeys-helper.ts"),h=P("./src/utils/logger.ts");function g(){return g=Object.assign||function(i){for(var x=1;x<arguments.length;x++){var O=arguments[x];for(var T in O)Object.prototype.hasOwnProperty.call(O,T)&&(i[T]=O[T])}return i},g.apply(this,arguments)}function p(i,x){var O=Object.keys(i);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(i);x&&(T=T.filter(function(D){return Object.getOwnPropertyDescriptor(i,D).enumerable})),O.push.apply(O,T)}return O}function S(i){for(var x=1;x<arguments.length;x++){var O=arguments[x]!=null?arguments[x]:{};x%2?p(Object(O),!0).forEach(function(T){w(i,T,O[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(O)):p(Object(O)).forEach(function(T){Object.defineProperty(i,T,Object.getOwnPropertyDescriptor(O,T))})}return i}function w(i,x,O){return x in i?Object.defineProperty(i,x,{value:O,enumerable:!0,configurable:!0,writable:!0}):i[x]=O,i}var B=S(S({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:Infinity,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:Infinity,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,enableSoftwareAES:!0,manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,startLevel:void 0,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:o.default,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:y.default,bufferController:c.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:a.requestMediaKeySystemAccess,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0},b()),{},{subtitleStreamController:C.SubtitleStreamController,subtitleTrackController:m.default,timelineController:r.TimelineController,audioStreamController:E.default,audioTrackController:_.default,emeController:s.default,cmcdController:u.default});function b(){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 A(i,x){if((x.liveSyncDurationCount||x.liveMaxLatencyDurationCount)&&(x.liveSyncDuration||x.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(x.liveMaxLatencyDurationCount!==void 0&&(x.liveSyncDurationCount===void 0||x.liveMaxLatencyDurationCount<=x.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(x.liveMaxLatencyDuration!==void 0&&(x.liveSyncDuration===void 0||x.liveMaxLatencyDuration<=x.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');return g({},i,x)}function l(i){var x=i.loader;if(x!==f.default&&x!==o.default)h.logger.log("[config]: Custom loader detected, cannot enable progressive streaming"),i.progressive=!1;else{var O=Object(f.fetchSupported)();O&&(i.loader=f.default,i.progressive=!0,i.enableSoftwareAES=!0,h.logger.log("[config]: Progressive streaming enabled, using FetchLoader"))}}},"./src/controller/abr-controller.ts":function(ue,Y,P){"use strict";P.r(Y);var y=P("./src/polyfills/number.ts"),E=P("./src/utils/ewma-bandwidth-estimator.ts"),_=P("./src/events.ts"),C=P("./src/utils/buffer-helper.ts"),m=P("./src/errors.ts"),c=P("./src/types/loader.ts"),r=P("./src/utils/logger.ts");function n(u,o){for(var f=0;f<o.length;f++){var d=o[f];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(u,d.key,d)}}function e(u,o,f){return o&&n(u.prototype,o),f&&n(u,f),u}var s=function(){function u(f){this.hls=void 0,this.lastLoadedFragLevel=0,this._nextAutoLevel=-1,this.timer=void 0,this.onCheck=this._abandonRulesCheck.bind(this),this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this.hls=f;var d=f.config;this.bwEstimator=new E.default(d.abrEwmaSlowVoD,d.abrEwmaFastVoD,d.abrEwmaDefaultEstimate),this.registerListeners()}var o=u.prototype;return o.registerListeners=function(){var d=this.hls;d.on(_.Events.FRAG_LOADING,this.onFragLoading,this),d.on(_.Events.FRAG_LOADED,this.onFragLoaded,this),d.on(_.Events.FRAG_BUFFERED,this.onFragBuffered,this),d.on(_.Events.LEVEL_LOADED,this.onLevelLoaded,this),d.on(_.Events.ERROR,this.onError,this)},o.unregisterListeners=function(){var d=this.hls;d.off(_.Events.FRAG_LOADING,this.onFragLoading,this),d.off(_.Events.FRAG_LOADED,this.onFragLoaded,this),d.off(_.Events.FRAG_BUFFERED,this.onFragBuffered,this),d.off(_.Events.LEVEL_LOADED,this.onLevelLoaded,this),d.off(_.Events.ERROR,this.onError,this)},o.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},o.onFragLoading=function(d,a){var h=a.frag;if(h.type===c.PlaylistLevelType.MAIN&&!this.timer){var g;this.fragCurrent=h,this.partCurrent=(g=a.part)!=null?g:null,this.timer=self.setInterval(this.onCheck,100)}},o.onLevelLoaded=function(d,a){var h=this.hls.config;a.details.live?this.bwEstimator.update(h.abrEwmaSlowLive,h.abrEwmaFastLive):this.bwEstimator.update(h.abrEwmaSlowVoD,h.abrEwmaFastVoD)},o._abandonRulesCheck=function(){var d=this.fragCurrent,a=this.partCurrent,h=this.hls,g=h.autoLevelEnabled,p=h.config,S=h.media;if(!d||!S)return;var w=a?a.stats:d.stats,B=a?a.duration:d.duration;if(w.aborted){r.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),this._nextAutoLevel=-1;return}if(!g||S.paused||!S.playbackRate||!S.readyState)return;var b=performance.now()-w.loading.start,A=Math.abs(S.playbackRate);if(b<=500*B/A)return;var l=h.levels,i=h.minAutoLevel,x=l[d.level],O=w.total||Math.max(w.loaded,Math.round(B*x.maxBitrate/8)),T=Math.max(1,w.bwEstimate?w.bwEstimate/8:w.loaded*1e3/b),D=(O-w.loaded)/T,R=S.currentTime,k=(C.BufferHelper.bufferInfo(S,R,p.maxBufferHole).end-R)/A;if(k>=2*B/A||D<=k)return;var H=Number.POSITIVE_INFINITY,J;for(J=d.level-1;J>i;J--){var U=l[J].maxBitrate;if(H=B*U/(8*.8*T),H<k)break}if(H>=D)return;var K=this.bwEstimator.getEstimate();r.logger.warn("Fragment "+d.sn+(a?" part "+a.index:"")+" of level "+d.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+J+`
Current BW estimate: `+(Object(y.isFiniteNumber)(K)?(K/1024).toFixed(3):"Unknown")+` Kb/s
Estimated load time for current fragment: `+D.toFixed(3)+` s
Estimated load time for the next fragment: `+H.toFixed(3)+` s
Time to underbuffer: `+k.toFixed(3)+" s"),h.nextLoadLevel=J,this.bwEstimator.sample(b,w.loaded),this.clearTimer(),d.loader&&(this.fragCurrent=this.partCurrent=null,d.loader.abort()),h.trigger(_.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:d,part:a,stats:w})},o.onFragLoaded=function(d,a){var h=a.frag,g=a.part;if(h.type===c.PlaylistLevelType.MAIN&&Object(y.isFiniteNumber)(h.sn)){var p=g?g.stats:h.stats,S=g?g.duration:h.duration;if(this.clearTimer(),this.lastLoadedFragLevel=h.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var w=this.hls.levels[h.level],B=(w.loaded?w.loaded.bytes:0)+p.loaded,b=(w.loaded?w.loaded.duration:0)+S;w.loaded={bytes:B,duration:b},w.realBitrate=Math.round(8*B/b)}if(h.bitrateTest){var A={stats:p,frag:h,part:g,id:h.type};this.onFragBuffered(_.Events.FRAG_BUFFERED,A),h.bitrateTest=!1}}},o.onFragBuffered=function(d,a){var h=a.frag,g=a.part,p=g?g.stats:h.stats;if(p.aborted)return;if(h.type!==c.PlaylistLevelType.MAIN||h.sn==="initSegment")return;var S=p.parsing.end-p.loading.start;this.bwEstimator.sample(S,p.loaded),p.bwEstimate=this.bwEstimator.getEstimate(),h.bitrateTest?this.bitrateTestDelay=S/1e3:this.bitrateTestDelay=0},o.onError=function(d,a){switch(a.details){case m.ErrorDetails.FRAG_LOAD_ERROR:case m.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},o.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},o.getNextABRAutoLevel=function(){var d=this.fragCurrent,a=this.partCurrent,h=this.hls,g=h.maxAutoLevel,p=h.config,S=h.minAutoLevel,w=h.media,B=a?a.duration:d?d.duration:0,b=w?w.currentTime:0,A=w&&w.playbackRate!==0?Math.abs(w.playbackRate):1,l=this.bwEstimator?this.bwEstimator.getEstimate():p.abrEwmaDefaultEstimate,i=(C.BufferHelper.bufferInfo(w,b,p.maxBufferHole).end-b)/A,x=this.findBestLevel(l,S,g,i,p.abrBandWidthFactor,p.abrBandWidthUpFactor);if(x>=0)return x;r.logger.trace((i?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var O=B?Math.min(B,p.maxStarvationDelay):p.maxStarvationDelay,T=p.abrBandWidthFactor,D=p.abrBandWidthUpFactor;if(!i){var R=this.bitrateTestDelay;if(R){var k=B?Math.min(B,p.maxLoadingDelay):p.maxLoadingDelay;O=k-R,r.logger.trace("bitrate test took "+Math.round(1e3*R)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*O)+" ms"),T=D=1}}return x=this.findBestLevel(l,S,g,i+O,T,D),Math.max(x,0)},o.findBestLevel=function(d,a,h,g,p,S){for(var w,B=this.fragCurrent,b=this.partCurrent,A=this.lastLoadedFragLevel,l=this.hls.levels,i=l[A],x=!!(i!=null&&(w=i.details)!==null&&w!==void 0&&w.live),O=i==null?void 0:i.codecSet,T=b?b.duration:B?B.duration:0,D=h;D>=a;D--){var R=l[D];if(!R||O&&R.codecSet!==O)continue;var k=R.details,H=(b?k==null?void 0:k.partTarget:k==null?void 0:k.averagetargetduration)||T,J=void 0;D<=A?J=p*d:J=S*d;var U=l[D].maxBitrate,K=U*H/J;if(r.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+D+"/"+Math.round(J)+"/"+U+"/"+H+"/"+g+"/"+K),J>U&&(!K||x&&!this.bitrateTestDelay||K<g))return D}return-1},e(u,[{key:"nextAutoLevel",get:function(){var d=this._nextAutoLevel,a=this.bwEstimator;if(d!==-1&&(!a||!a.canEstimate()))return d;var h=this.getNextABRAutoLevel();return d!==-1&&(h=Math.min(d,h)),h},set:function(d){this._nextAutoLevel=d}}]),u}();Y.default=s},"./src/controller/audio-stream-controller.ts":function(ue,Y,P){"use strict";P.r(Y);var y=P("./src/polyfills/number.ts"),E=P("./src/controller/base-stream-controller.ts"),_=P("./src/events.ts"),C=P("./src/utils/buffer-helper.ts"),m=P("./src/controller/fragment-tracker.ts"),c=P("./src/types/level.ts"),r=P("./src/types/loader.ts"),n=P("./src/loader/fragment.ts"),e=P("./src/demux/chunk-cache.ts"),s=P("./src/demux/transmuxer-interface.ts"),u=P("./src/types/transmuxer.ts"),o=P("./src/controller/fragment-finders.ts"),f=P("./src/utils/discontinuities.ts"),d=P("./src/errors.ts"),a=P("./src/utils/logger.ts");function h(){return h=Object.assign||function(B){for(var b=1;b<arguments.length;b++){var A=arguments[b];for(var l in A)Object.prototype.hasOwnProperty.call(A,l)&&(B[l]=A[l])}return B},h.apply(this,arguments)}function g(B,b){B.prototype=Object.create(b.prototype),B.prototype.constructor=B,p(B,b)}function p(B,b){return p=Object.setPrototypeOf||function(l,i){return l.__proto__=i,l},p(B,b)}var S=100,w=function(B){g(b,B);function b(l,i){var x;return x=B.call(this,l,i,"[audio-stream-controller]")||this,x.videoBuffer=null,x.videoTrackCC=-1,x.waitingVideoCC=-1,x.audioSwitch=!1,x.trackId=-1,x.waitingData=null,x.mainDetails=null,x.bufferFlushed=!1,x._registerListeners(),x}var A=b.prototype;return A.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},A._registerListeners=function(){var i=this.hls;i.on(_.Events.MEDIA_ATTACHED,this.onMediaAttached,this),i.on(_.Events.MEDIA_DETACHING,this.onMediaDetaching,this),i.on(_.Events.MANIFEST_LOADING,this.onManifestLoading,this),i.on(_.Events.LEVEL_LOADED,this.onLevelLoaded,this),i.on(_.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),i.on(_.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),i.on(_.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),i.on(_.Events.ERROR,this.onError,this),i.on(_.Events.BUFFER_RESET,this.onBufferReset,this),i.on(_.Events.BUFFER_CREATED,this.onBufferCreated,this),i.on(_.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),i.on(_.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),i.on(_.Events.FRAG_BUFFERED,this.onFragBuffered,this)},A._unregisterListeners=function(){var i=this.hls;i.off(_.Events.MEDIA_ATTACHED,this.onMediaAttached,this),i.off(_.Events.MEDIA_DETACHING,this.onMediaDetaching,this),i.off(_.Events.MANIFEST_LOADING,this.onManifestLoading,this),i.off(_.Events.LEVEL_LOADED,this.onLevelLoaded,this),i.off(_.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),i.off(_.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),i.off(_.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),i.off(_.Events.ERROR,this.onError,this),i.off(_.Events.BUFFER_RESET,this.onBufferReset,this),i.off(_.Events.BUFFER_CREATED,this.onBufferCreated,this),i.off(_.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),i.off(_.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),i.off(_.Events.FRAG_BUFFERED,this.onFragBuffered,this)},A.onInitPtsFound=function(i,x){var O=x.frag,T=x.id,D=x.initPTS;if(T==="main"){var R=O.cc;this.initPTS[O.cc]=D,this.log("InitPTS for cc: "+R+" found from main: "+D),this.videoTrackCC=R,this.state===E.State.WAITING_INIT_PTS&&this.tick()}},A.startLoad=function(i){if(!this.levels){this.startPosition=i,this.state=E.State.STOPPED;return}var x=this.lastCurrentTime;this.stopLoad(),this.setInterval(S),this.fragLoadError=0,x>0&&i===-1?(this.log("Override startPosition with lastCurrentTime @"+x.toFixed(3)),this.state=E.State.IDLE):(this.loadedmetadata=!1,this.state=E.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=i,this.tick()},A.doTick=function(){switch(this.state){case E.State.IDLE:this.doTickIdle();break;case E.State.WAITING_TRACK:{var i,x=this.levels,O=this.trackId,T=x==null||((i=x[O])===null||i===void 0)?void 0:i.details;if(T){if(this.waitForCdnTuneIn(T))break;this.state=E.State.WAITING_INIT_PTS}break}case E.State.FRAG_LOADING_WAITING_RETRY:{var D,R=performance.now(),k=this.retryDate;(!k||R>=k||(D=this.media)!==null&&D!==void 0&&D.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=E.State.IDLE);break}case E.State.WAITING_INIT_PTS:{var H=this.waitingData;if(H){var J=H.frag,U=H.part,K=H.cache,G=H.complete;if(this.initPTS[J.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=E.State.FRAG_LOADING;var N=K.flush(),Q={frag:J,part:U,payload:N,networkDetails:null};this._handleFragmentLoadProgress(Q),G&&B.prototype._handleFragmentLoadComplete.call(this,Q)}else if(this.videoTrackCC!==this.waitingVideoCC)a.logger.log("Waiting fragment cc ("+J.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var X=this.getLoadPosition(),te=C.BufferHelper.bufferInfo(this.mediaBuffer,X,this.config.maxBufferHole),oe=Object(o.fragmentWithinToleranceTest)(te.end,this.config.maxFragLookUpTolerance,J);oe<0&&(a.logger.log("Waiting fragment cc ("+J.cc+") @ "+J.start+" cancelled because another fragment at "+te.end+" is needed"),this.clearWaitingFragment())}}else this.state=E.State.IDLE}}this.onTickEnd()},A.clearWaitingFragment=function(){var i=this.waitingData;i&&(this.fragmentTracker.removeFragment(i.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=E.State.IDLE)},A.onTickEnd=function(){var i=this.media;if(!i||!i.readyState)return;var x=this.mediaBuffer?this.mediaBuffer:i,O=x.buffered;!this.loadedmetadata&&O.length&&(this.loadedmetadata=!0),this.lastCurrentTime=i.currentTime},A.doTickIdle=function(){var i,x,O=this.hls,T=this.levels,D=this.media,R=this.trackId,k=O.config;if(!T||!T[R])return;if(!D&&(this.startFragRequested||!k.startFragPrefetch))return;var H=T[R],J=H.details;if(!J||J.live&&this.levelLastLoaded!==R||this.waitForCdnTuneIn(J)){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 U=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,r.PlaylistLevelType.AUDIO);if(U===null)return;var K=U.len,G=this.getMaxBufferLength(),N=this.audioSwitch;if(K>=G&&!N)return;if(!N&&this._streamEnded(U,J)){O.trigger(_.Events.BUFFER_EOS,{type:"audio"}),this.state=E.State.ENDED;return}var Q=J.fragments,X=Q[0].start,te=U.end;if(N){var oe=this.getLoadPosition();te=oe,J.PTSKnown&&oe<X&&((U.end>X||U.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),D.currentTime=X+.05))}var me=this.getNextFragment(te,J);if(!me){this.bufferFlushed=!0;return}((i=me.decryptdata)===null||i===void 0?void 0:i.keyFormat)==="identity"&&!((x=me.decryptdata)!==null&&x!==void 0&&x.key)?this.loadKey(me,J):this.loadFragment(me,J,te)},A.getMaxBufferLength=function(){var i=B.prototype.getMaxBufferLength.call(this),x=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,r.PlaylistLevelType.MAIN);return x===null?i:Math.max(i,x.len)},A.onMediaDetaching=function(){this.videoBuffer=null,B.prototype.onMediaDetaching.call(this)},A.onAudioTracksUpdated=function(i,x){var O=x.audioTracks;this.resetTransmuxer(),this.levels=O.map(function(T){return new c.Level(T)})},A.onAudioTrackSwitching=function(i,x){var O=!!x.url;this.trackId=x.id;var T=this.fragCurrent;T!=null&&T.loader&&T.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),O?this.setInterval(S):this.resetTransmuxer(),O?(this.audioSwitch=!0,this.state=E.State.IDLE):this.state=E.State.STOPPED,this.tick()},A.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},A.onLevelLoaded=function(i,x){this.mainDetails=x.details},A.onAudioTrackLoaded=function(i,x){var O,T=this.levels,D=x.details,R=x.id;if(!T){this.warn("Audio tracks were reset while loading level "+R);return}this.log("Track "+R+" loaded ["+D.startSN+","+D.endSN+"],duration:"+D.totalduration);var k=T[R],H=0;if(D.live||(O=k.details)!==null&&O!==void 0&&O.live){var J=this.mainDetails;if(D.fragments[0]||(D.deltaUpdateFailed=!0),D.deltaUpdateFailed||!J)return;!k.details&&D.hasProgramDateTime&&J.hasProgramDateTime?(Object(f.alignMediaPlaylistByPDT)(D,J),H=D.fragments[0].start):H=this.alignPlaylists(D,k.details)}k.details=D,this.levelLastLoaded=R,!this.startFragRequested&&(this.mainDetails||!D.live)&&this.setStartPosition(k.details,H),this.state===E.State.WAITING_TRACK&&!this.waitForCdnTuneIn(D)&&(this.state=E.State.IDLE),this.tick()},A._handleFragmentLoadProgress=function(i){var x,O=i.frag,T=i.part,D=i.payload,R=this.config,k=this.trackId,H=this.levels;if(!H){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+O.sn+" of level "+O.level+" will not be buffered");return}var J=H[k];console.assert(J,"Audio track is defined on fragment load progress");var U=J.details;console.assert(U,"Audio track details are defined on fragment load progress");var K=R.defaultAudioCodec||J.audioCodec||"mp4a.40.2",G=this.transmuxer;G||(G=this.transmuxer=new s.default(this.hls,r.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var N=this.initPTS[O.cc],Q=(x=O.initSegment)===null||x===void 0?void 0:x.data;if(N!==void 0){var X=!1,te=T?T.index:-1,oe=te!==-1,me=new u.ChunkMetadata(O.level,O.sn,O.stats.chunkCount,D.byteLength,te,oe);G.push(D,Q,K,"",O,T,U.totalduration,X,me,N)}else{a.logger.log("Unknown video PTS for cc "+O.cc+", waiting for video PTS before demuxing audio frag "+O.sn+" of ["+U.startSN+" ,"+U.endSN+"],track "+k);var se=this.waitingData=this.waitingData||{frag:O,part:T,cache:new e.default,complete:!1},_e=se.cache;_e.push(new Uint8Array(D)),this.waitingVideoCC=this.videoTrackCC,this.state=E.State.WAITING_INIT_PTS}},A._handleFragmentLoadComplete=function(i){if(this.waitingData){this.waitingData.complete=!0;return}B.prototype._handleFragmentLoadComplete.call(this,i)},A.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},A.onBufferCreated=function(i,x){var O=x.tracks.audio;O&&(this.mediaBuffer=O.buffer),x.tracks.video&&(this.videoBuffer=x.tracks.video.buffer)},A.onFragBuffered=function(i,x){var O=x.frag,T=x.part;if(O.type!==r.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(O)){this.warn("Fragment "+O.sn+(T?" p: "+T.index:"")+" of level "+O.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}O.sn!=="initSegment"&&(this.fragPrevious=O,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(_.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(O,T)},A.onError=function(i,x){switch(x.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,x);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=x.fatal?E.State.ERROR:E.State.IDLE,this.warn(x.details+" while loading frag, switching to "+this.state+" state"));break;case d.ErrorDetails.BUFFER_FULL_ERROR:if(x.parent==="audio"&&(this.state===E.State.PARSING||this.state===E.State.PARSED)){var O=!0,T=this.getFwdBufferInfo(this.mediaBuffer,r.PlaylistLevelType.AUDIO);T&&T.len>.5&&(O=!this.reduceMaxBufferLength(T.len)),O&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,B.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},A.onBufferFlushed=function(i,x){var O=x.type;O===n.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},A._handleTransmuxComplete=function(i){var x,O="audio",T=this.hls,D=i.remuxResult,R=i.chunkMeta,k=this.getCurrentContext(R);if(!k){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 H=k.frag,J=k.part,U=D.audio,K=D.text,G=D.id3,N=D.initSegment;if(this.fragContextChanged(H))return;if(this.state=E.State.PARSING,this.audioSwitch&&U&&this.completeAudioSwitch(),N!=null&&N.tracks&&(this._bufferInitSegment(N.tracks,H,R),T.trigger(_.Events.FRAG_PARSING_INIT_SEGMENT,{frag:H,id:O,tracks:N.tracks})),U){var Q=U.startPTS,X=U.endPTS,te=U.startDTS,oe=U.endDTS;J&&(J.elementaryStreams[n.ElementaryStreamTypes.AUDIO]={startPTS:Q,endPTS:X,startDTS:te,endDTS:oe}),H.setElementaryStreamInfo(n.ElementaryStreamTypes.AUDIO,Q,X,te,oe),this.bufferFragmentData(U,H,J,R)}if(G!=null&&(x=G.samples)!==null&&x!==void 0&&x.length){var me=h({frag:H,id:O},G);T.trigger(_.Events.FRAG_PARSING_METADATA,me)}if(K){var se=h({frag:H,id:O},K);T.trigger(_.Events.FRAG_PARSING_USERDATA,se)}},A._bufferInitSegment=function(i,x,O){if(this.state!==E.State.PARSING)return;i.video&&delete i.video;var T=i.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(_.Events.BUFFER_CODECS,i);var D=T.initSegment;if(D!=null&&D.byteLength){var R={type:"audio",frag:x,part:null,chunkMeta:O,parent:x.type,data:D};this.hls.trigger(_.Events.BUFFER_APPENDING,R)}this.tick()},A.loadFragment=function(i,x,O){var T=this.fragmentTracker.getState(i);this.fragCurrent=i,(this.audioSwitch||T===m.FragmentState.NOT_LOADED||T===m.FragmentState.PARTIAL)&&(i.sn==="initSegment"?this._loadInitSegment(i):x.live&&!Object(y.isFiniteNumber)(this.initPTS[i.cc])?(this.log("Waiting for video PTS in continuity counter "+i.cc+" of live stream before loading audio fragment "+i.sn+" of level "+this.trackId),this.state=E.State.WAITING_INIT_PTS):(this.startFragRequested=!0,B.prototype.loadFragment.call(this,i,x,O)))},A.completeAudioSwitch=function(){var i=this.hls,x=this.media,O=this.trackId;x&&(this.log("Switching audio track : flushing all audio"),B.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,i.trigger(_.Events.AUDIO_TRACK_SWITCHED,{id:O})},b}(E.default);Y.default=w},"./src/controller/audio-track-controller.ts":function(ue,Y,P){"use strict";P.r(Y);var y=P("./src/events.ts"),E=P("./src/errors.ts"),_=P("./src/controller/base-playlist-controller.ts"),C=P("./src/types/loader.ts");function m(s,u){for(var o=0;o<u.length;o++){var f=u[o];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(s,f.key,f)}}function c(s,u,o){return u&&m(s.prototype,u),o&&m(s,o),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(f,d){return f.__proto__=d,f},n(s,u)}var e=function(s){r(u,s);function u(f){var d;return d=s.call(this,f,"[audio-track-controller]")||this,d.tracks=[],d.groupId=null,d.tracksInGroup=[],d.trackId=-1,d.trackName="",d.selectDefaultTrack=!0,d.registerListeners(),d}var o=u.prototype;return o.registerListeners=function(){var d=this.hls;d.on(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.on(y.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.on(y.Events.LEVEL_LOADING,this.onLevelLoading,this),d.on(y.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),d.on(y.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),d.on(y.Events.ERROR,this.onError,this)},o.unregisterListeners=function(){var d=this.hls;d.off(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.off(y.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.off(y.Events.LEVEL_LOADING,this.onLevelLoading,this),d.off(y.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),d.off(y.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),d.off(y.Events.ERROR,this.onError,this)},o.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,s.prototype.destroy.call(this)},o.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.trackName="",this.selectDefaultTrack=!0},o.onManifestParsed=function(d,a){this.tracks=a.audioTracks||[]},o.onAudioTrackLoaded=function(d,a){var h=a.id,g=a.details,p=this.tracksInGroup[h];if(!p){this.warn("Invalid audio track id "+h);return}var S=p.details;p.details=a.details,this.log("audioTrack "+h+" loaded ["+g.startSN+"-"+g.endSN+"]"),h===this.trackId&&(this.retryCount=0,this.playlistLoaded(h,a,S))},o.onLevelLoading=function(d,a){this.switchLevel(a.level)},o.onLevelSwitching=function(d,a){this.switchLevel(a.level)},o.switchLevel=function(d){var a=this.hls.levels[d];if(!(a!=null&&a.audioGroupIds))return;var h=a.audioGroupIds[a.urlId];if(this.groupId!==h){this.groupId=h;var g=this.tracks.filter(function(S){return!h||S.groupId===h});this.selectDefaultTrack&&!g.some(function(S){return S.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=g;var p={audioTracks:g};this.log("Updating audio tracks, "+g.length+' track(s) found in "'+h+'" group-id'),this.hls.trigger(y.Events.AUDIO_TRACKS_UPDATED,p),this.selectInitialTrack()}},o.onError=function(d,a){if(s.prototype.onError.call(this,d,a),a.fatal||!a.context)return;a.context.type===C.PlaylistContextType.AUDIO_TRACK&&a.context.id===this.trackId&&a.context.groupId===this.groupId&&this.retryLoadingOrFail(a)},o.setAudioTrack=function(d){var a=this.tracksInGroup;if(d<0||d>=a.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var h=a[this.trackId];this.log("Now switching to audio-track index "+d);var g=a[d],p=g.id,S=g.groupId,w=S===void 0?"":S,B=g.name,b=g.type,A=g.url;if(this.trackId=d,this.trackName=B,this.selectDefaultTrack=!1,this.hls.trigger(y.Events.AUDIO_TRACK_SWITCHING,{id:p,groupId:w,name:B,type:b,url:A}),g.details&&!g.details.live)return;var l=this.switchParams(g.url,h==null?void 0:h.details);this.loadPlaylist(l)},o.selectInitialTrack=function(){var d=this.tracksInGroup;console.assert(d.length,"Initial audio track should be selected when tracks are known");var a=this.trackName,h=this.findTrackId(a)||this.findTrackId();h!==-1?this.setAudioTrack(h):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(y.Events.ERROR,{type:E.ErrorTypes.MEDIA_ERROR,details:E.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},o.findTrackId=function(d){for(var a=this.tracksInGroup,h=0;h<a.length;h++){var g=a[h];if((!this.selectDefaultTrack||g.default)&&(!d||d===g.name))return g.id}return-1},o.loadPlaylist=function(d){var a=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(a)){var h=a.id,g=a.groupId,p=a.url;if(d)try{p=d.addDirectives(p)}catch(S){this.warn("Could not construct new URL with HLS Delivery Directives: "+S)}this.log("loading audio-track playlist for id: "+h),this.clearTimer(),this.hls.trigger(y.Events.AUDIO_TRACK_LOADING,{url:p,id:h,groupId:g,deliveryDirectives:d||null})}},c(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}(_.default);Y.default=e},"./src/controller/base-playlist-controller.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return c});var y=P("./src/polyfills/number.ts"),E=P("./src/types/level.ts"),_=P("./src/controller/level-helper.ts"),C=P("./src/utils/logger.ts"),m=P("./src/errors.ts"),c=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=C.logger.log.bind(C.logger,s+":"),this.warn=C.logger.warn.bind(C.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===m.ErrorTypes.NETWORK_ERROR&&this.clearTimer()},n.clearTimer=function(){clearTimeout(this.timer),this.timer=-1},n.startLoad=function(){this.canLoad=!0,this.retryCount=0,this.loadPlaylist()},n.stopLoad=function(){this.canLoad=!1,this.clearTimer()},n.switchParams=function(s,u){var o=u==null?void 0:u.renditionReports;if(o)for(var f=0;f<o.length;f++){var d=o[f],a=""+d.URI;if(a===s.substr(-a.length)){var h=parseInt(d["LAST-MSN"]),g=parseInt(d["LAST-PART"]);if(u&&this.hls.config.lowLatencyMode){var p=Math.min(u.age-u.partTarget,u.targetduration);g!==void 0&&p>u.partTarget&&(g+=1)}if(Object(y.isFiniteNumber)(h))return new E.HlsUrlParameters(h,Object(y.isFiniteNumber)(g)?g: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,o){var f=this,d=u.details,a=u.stats,h=a.loading.end?Math.max(0,self.performance.now()-a.loading.end):0;if(d.advancedDateTime=Date.now()-h,d.live||o!=null&&o.live){if(d.reloaded(o),o&&this.log("live playlist "+s+" "+(d.advanced?"REFRESHED "+d.lastPartSn+"-"+d.lastPartIndex:"MISSED")),o&&d.fragments.length>0&&Object(_.mergeDetails)(o,d),!this.canLoad||!d.live)return;var g,p=void 0,S=void 0;if(d.canBlockReload&&d.endSN&&d.advanced){var w=this.hls.config.lowLatencyMode,B=d.lastPartSn,b=d.endSN,A=d.lastPartIndex,l=A!==-1,i=B===b,x=w?0:A;l?(p=i?b+1:B,S=i?x:A+1):p=b+1;var O=d.age,T=O+d.ageHeader,D=Math.min(T-d.partTarget,d.targetduration*1.5);if(D>0){if(o&&D>o.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+o.tuneInGoal+" to: "+D+" with playlist age: "+d.age),D=0;else{var R=Math.floor(D/d.targetduration);if(p+=R,S!==void 0){var k=Math.round(D%d.targetduration/d.partTarget);S+=k}this.log("CDN Tune-in age: "+d.ageHeader+"s last advanced "+O.toFixed(2)+"s goal: "+D+" skip sn "+R+" to part "+S)}d.tuneInGoal=D}if(g=this.getDeliveryDirectives(d,u.deliveryDirectives,p,S),w||!i){this.loadPlaylist(g);return}}else g=this.getDeliveryDirectives(d,u.deliveryDirectives,p,S);var H=Object(_.computeReloadInterval)(d,a);p!==void 0&&d.canBlockReload&&(H-=d.partTarget||1),this.log("reload live playlist "+s+" in "+Math.round(H)+" ms"),this.timer=self.setTimeout(function(){return f.loadPlaylist(g)},H)}else this.clearTimer()},n.getDeliveryDirectives=function(s,u,o,f){var d=Object(E.getSkipValue)(s,o);return u!=null&&u.skip&&s.deltaUpdateFailed&&(o=u.msn,f=u.part,d=E.HlsSkip.No),new E.HlsUrlParameters(o,f,d)},n.retryLoadingOrFail=function(s){var u=this,o=this.hls.config,f=this.retryCount<o.levelLoadingMaxRetry;if(f){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 a=Math.min(Math.pow(2,this.retryCount)*o.levelLoadingRetryDelay,o.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return u.loadPlaylist()},a),this.warn("retry playlist loading #"+this.retryCount+" in "+a+' ms after "'+s.details+'"')}}else this.warn('cannot recover from error "'+s.details+'"'),this.clearTimer(),s.fatal=!0;return f},r}()},"./src/controller/base-stream-controller.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"State",function(){return b}),P.d(Y,"default",function(){return A});var y=P("./src/polyfills/number.ts"),E=P("./src/task-loop.ts"),_=P("./src/controller/fragment-tracker.ts"),C=P("./src/utils/buffer-helper.ts"),m=P("./src/utils/logger.ts"),c=P("./src/events.ts"),r=P("./src/errors.ts"),n=P("./src/types/transmuxer.ts"),e=P("./src/utils/mp4-tools.ts"),s=P("./src/utils/discontinuities.ts"),u=P("./src/controller/fragment-finders.ts"),o=P("./src/controller/level-helper.ts"),f=P("./src/loader/fragment-loader.ts"),d=P("./src/crypt/decrypter.ts"),a=P("./src/utils/time-ranges.ts"),h=P("./src/types/loader.ts");function g(l,i){for(var x=0;x<i.length;x++){var O=i[x];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(l,O.key,O)}}function p(l,i,x){return i&&g(l.prototype,i),x&&g(l,x),l}function S(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function w(l,i){l.prototype=Object.create(i.prototype),l.prototype.constructor=l,B(l,i)}function B(l,i){return B=Object.setPrototypeOf||function(O,T){return O.__proto__=T,O},B(l,i)}var b={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"},A=function(l){w(i,l);function i(O,T,D){var R;return R=l.call(this)||this,R.hls=void 0,R.fragPrevious=null,R.fragCurrent=null,R.fragmentTracker=void 0,R.transmuxer=null,R._state=b.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=D,R.log=m.logger.log.bind(m.logger,D+":"),R.warn=m.logger.warn.bind(m.logger,D+":"),R.hls=O,R.fragmentLoader=new f.default(O.config),R.fragmentTracker=T,R.config=O.config,R.decrypter=new d.default(O,O.config),O.on(c.Events.KEY_LOADED,R.onKeyLoaded,S(R)),R}var x=i.prototype;return x.doTick=function(){this.onTickEnd()},x.onTickEnd=function(){},x.startLoad=function(T){},x.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=b.STOPPED},x._streamEnded=function(T,D){var R=this.fragCurrent,k=this.fragmentTracker;if(!D.live&&R&&R.sn===D.endSN&&!T.nextStart){var H=k.getState(R);return H===_.FragmentState.PARTIAL||H===_.FragmentState.OK}return!1},x.onMediaAttached=function(T,D){var R=this.media=this.mediaBuffer=D.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),R.addEventListener("seeking",this.onvseeking),R.addEventListener("ended",this.onvended);var k=this.config;this.levels&&k.autoStartLoad&&this.state===b.STOPPED&&this.startLoad(k.startPosition)},x.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()},x.onMediaSeeking=function(){var T=this.config,D=this.fragCurrent,R=this.media,k=this.mediaBuffer,H=this.state,J=R?R.currentTime:0,U=C.BufferHelper.bufferInfo(k||R,J,T.maxBufferHole);if(this.log("media seeking to "+(Object(y.isFiniteNumber)(J)?J.toFixed(3):J)+", state: "+H),H===b.ENDED)this.resetLoadingState();else if(D&&!U.len){var K=T.maxFragLookUpTolerance,G=D.start-K,N=D.start+D.duration+K,Q=J>N;(J<G||Q)&&(Q&&D.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),D.loader.abort()),this.resetLoadingState())}R&&(this.lastCurrentTime=J),!this.loadedmetadata&&!U.len&&(this.nextLoadPosition=this.startPosition=J),this.tickImmediate()},x.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},x.onKeyLoaded=function(T,D){if(this.state!==b.KEY_LOADING||D.frag!==this.fragCurrent||!this.levels)return;this.state=b.IDLE;var R=this.levels[D.frag.level].details;R&&this.loadFragment(D.frag,R,D.frag.start)},x.onHandlerDestroying=function(){this.stopLoad(),l.prototype.onHandlerDestroying.call(this)},x.onHandlerDestroyed=function(){this.state=b.STOPPED,this.hls.off(c.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,l.prototype.onHandlerDestroyed.call(this)},x.loadKey=function(T,D){this.log("Loading key for "+T.sn+" of ["+D.startSN+"-"+D.endSN+"], "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+T.level),this.state=b.KEY_LOADING,this.fragCurrent=T,this.hls.trigger(c.Events.KEY_LOADING,{frag:T})},x.loadFragment=function(T,D,R){this._loadFragForPlayback(T,D,R)},x._loadFragForPlayback=function(T,D,R){var k=this,H=function(U){if(k.fragContextChanged(T)){k.warn("Fragment "+T.sn+(U.part?" p: "+U.part.index:"")+" of level "+T.level+" was dropped during download."),k.fragmentTracker.removeFragment(T);return}T.stats.chunkCount++,k._handleFragmentLoadProgress(U)};this._doFragLoad(T,D,R,H).then(function(J){if(!J)return;k.fragLoadError=0;var U=k.state;if(k.fragContextChanged(T)){(U===b.FRAG_LOADING||U===b.BACKTRACKING||!k.fragCurrent&&U===b.PARSING)&&(k.fragmentTracker.removeFragment(T),k.state=b.IDLE);return}if("payload"in J&&(k.log("Loaded fragment "+T.sn+" of level "+T.level),k.hls.trigger(c.Events.FRAG_LOADED,J),k.state===b.BACKTRACKING)){k.fragmentTracker.backtrack(T,J),k.resetFragmentLoading(T);return}k._handleFragmentLoadComplete(J)}).catch(function(J){k.warn(J),k.resetFragmentLoading(T)})},x.flushMainBuffer=function(T,D,R){if(R===void 0&&(R=null),!(T-D))return;var k={startOffset:T,endOffset:D,type:R};this.fragLoadError=0,this.hls.trigger(c.Events.BUFFER_FLUSHING,k)},x._loadInitSegment=function(T){var D=this;this._doFragLoad(T).then(function(R){if(!R||D.fragContextChanged(T)||!D.levels)throw new Error("init load aborted");return R}).then(function(R){var k=D.hls,H=R.payload,J=T.decryptdata;if(H&&H.byteLength>0&&J&&J.key&&J.iv&&J.method==="AES-128"){var U=self.performance.now();return D.decrypter.webCryptoDecrypt(new Uint8Array(H),J.key.buffer,J.iv.buffer).then(function(K){var G=self.performance.now();return k.trigger(c.Events.FRAG_DECRYPTED,{frag:T,payload:K,stats:{tstart:U,tdecrypt:G}}),R.payload=K,R})}return R}).then(function(R){var k=D.fragCurrent,H=D.hls,J=D.levels;if(!J)throw new Error("init load aborted, missing levels");var U=J[T.level].details;console.assert(U,"Level details are defined when init segment is loaded");var K=T.stats;D.state=b.IDLE,D.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===k&&H.trigger(c.Events.FRAG_BUFFERED,{stats:K,frag:k,part:null,id:T.type}),D.tick()}).catch(function(R){D.warn(R),D.resetFragmentLoading(T)})},x.fragContextChanged=function(T){var D=this.fragCurrent;return!T||!D||T.level!==D.level||T.sn!==D.sn||T.urlId!==D.urlId},x.fragBufferedComplete=function(T,D){var R=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+T.type+" sn: "+T.sn+(D?" part: "+D.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+T.level+" "+a.default.toString(C.BufferHelper.getBuffered(R))),this.state=b.IDLE,this.tick()},x._handleFragmentLoadComplete=function(T){var D=this.transmuxer;if(!D)return;var R=T.frag,k=T.part,H=T.partsLoaded,J=!H||H.length===0||H.some(function(K){return!K}),U=new n.ChunkMetadata(R.level,R.sn,R.stats.chunkCount+1,0,k?k.index:-1,!J);D.flush(U)},x._handleFragmentLoadProgress=function(T){},x._doFragLoad=function(T,D,R,k){var H=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&&D){var J=D.partList;if(J&&k){R>T.end&&D.fragmentHint&&(T=D.fragmentHint);var U=this.getNextPart(J,T,R);if(U>-1){var K=J[U];return this.log("Loading part sn: "+T.sn+" p: "+K.index+" cc: "+T.cc+" of playlist ["+D.startSN+"-"+D.endSN+"] parts [0-"+U+"-"+(J.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+T.level+", target: "+parseFloat(R.toFixed(3))),this.nextLoadPosition=K.start+K.duration,this.state=b.FRAG_LOADING,this.hls.trigger(c.Events.FRAG_LOADING,{frag:T,part:J[U],targetBufferTime:R}),this.doFragPartsLoad(T,J,U,k).catch(function(G){return H.handleFragLoadError(G)})}else if(!T.url||this.loadedEndOfParts(J,R))return Promise.resolve(null)}}return this.log("Loading fragment "+T.sn+" cc: "+T.cc+" "+(D?"of ["+D.startSN+"-"+D.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+T.level+", target: "+parseFloat(R.toFixed(3))),Object(y.isFiniteNumber)(T.sn)&&!this.bitrateTest&&(this.nextLoadPosition=T.start+T.duration),this.state=b.FRAG_LOADING,this.hls.trigger(c.Events.FRAG_LOADING,{frag:T,targetBufferTime:R}),this.fragmentLoader.load(T,k).catch(function(G){return H.handleFragLoadError(G)})},x.doFragPartsLoad=function(T,D,R,k){var H=this;return new Promise(function(J,U){var K=[],G=function N(Q){var X=D[Q];H.fragmentLoader.loadPart(T,X,k).then(function(te){K[X.index]=te;var oe=te.part;H.hls.trigger(c.Events.FRAG_LOADED,te);var me=D[Q+1];if(me&&me.fragment===T)N(Q+1);else return J({frag:T,part:oe,partsLoaded:K})}).catch(U)};G(R)})},x.handleFragLoadError=function(T){var D=T.data;return D&&D.details===r.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(D.frag,D.part):this.hls.trigger(c.Events.ERROR,D),null},x._handleTransmuxerFlush=function(T){var D=this.getCurrentContext(T);if(!D||this.state!==b.PARSING){this.fragCurrent||(this.state=b.IDLE);return}var R=D.frag,k=D.part,H=D.level,J=self.performance.now();R.stats.parsing.end=J,k&&(k.stats.parsing.end=J),this.updateLevelTiming(R,k,H,T.partial)},x.getCurrentContext=function(T){var D=this.levels,R=T.level,k=T.sn,H=T.part;if(!D||!D[R])return this.warn("Levels object was unset while buffering fragment "+k+" of level "+R+". The current chunk will not be buffered."),null;var J=D[R],U=H>-1?Object(o.getPartWith)(J,k,H):null,K=U?U.fragment:Object(o.getFragmentWithSN)(J,k,this.fragCurrent);return K?{frag:K,part:U,level:J}:null},x.bufferFragmentData=function(T,D,R,k){if(!T||this.state!==b.PARSING)return;var H=T.data1,J=T.data2,U=H;if(H&&J&&(U=Object(e.appendUint8Array)(H,J)),!U||!U.length)return;var K={type:T.type,frag:D,part:R,chunkMeta:k,parent:D.type,data:U};this.hls.trigger(c.Events.BUFFER_APPENDING,K),T.dropped&&T.independent&&!R&&this.flushBufferGap(D)},x.flushBufferGap=function(T){var D=this.media;if(!D)return;if(!C.BufferHelper.isBuffered(D,D.currentTime)){this.flushMainBuffer(0,T.start);return}var R=D.currentTime,k=C.BufferHelper.bufferInfo(D,R,0),H=T.duration,J=Math.min(this.config.maxFragLookUpTolerance*2,H*.25),U=Math.max(Math.min(T.start-J,k.end-J),R+J);T.start-U>J&&this.flushMainBuffer(U,T.start)},x.getFwdBufferInfo=function(T,D){var R=this.config,k=this.getLoadPosition();if(!Object(y.isFiniteNumber)(k))return null;var H=C.BufferHelper.bufferInfo(T,k,R.maxBufferHole);if(H.len===0&&H.nextStart!==void 0){var J=this.fragmentTracker.getBufferedFrag(k,D);if(J&&H.nextStart<J.end)return C.BufferHelper.bufferInfo(T,k,Math.max(H.nextStart,R.maxBufferHole))}return H},x.getMaxBufferLength=function(T){var D=this.config,R;return T?R=Math.max(8*D.maxBufferSize/T,D.maxBufferLength):R=D.maxBufferLength,Math.min(R,D.maxMaxBufferLength)},x.reduceMaxBufferLength=function(T){var D=this.config,R=T||D.maxBufferLength;return D.maxMaxBufferLength>=R?(D.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+D.maxMaxBufferLength+"s"),!0):!1},x.getNextFragment=function(T,D){var R,k,H=D.fragments,J=H.length;if(!J)return null;var U=this.config,K=H[0].start,G;if(D.live){var N=U.initialLiveManifestSize;if(J<N)return this.warn("Not enough fragments to start playback (have: "+J+", need: "+N+")"),null;!D.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(G=this.getInitialLiveFragment(D,H),this.startPosition=G?this.hls.liveSyncPosition||G.start:T)}else T<=K&&(G=H[0]);if(!G){var Q=U.lowLatencyMode?D.partEnd:D.fragmentEnd;G=this.getFragmentAtPosition(T,Q,D)}return(R=G)!==null&&R!==void 0&&R.initSegment&&!((k=G)!==null&&k!==void 0&&k.initSegment.data)&&!this.bitrateTest&&(G=G.initSegment),G},x.getNextPart=function(T,D,R){for(var k=-1,H=!1,J=!0,U=0,K=T.length;U<K;U++){var G=T[U];if(J=J&&!G.independent,k>-1&&R<G.start)break;var N=G.loaded;!N&&(H||G.independent||J)&&G.fragment===D&&(k=U),H=N}return k},x.loadedEndOfParts=function(T,D){var R=T[T.length-1];return R&&D>R.start&&R.loaded},x.getInitialLiveFragment=function(T,D){var R=this.fragPrevious,k=null;if(R){if(T.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+R.programDateTime),k=Object(u.findFragmentByPDT)(D,R.endProgramDateTime,this.config.maxFragLookUpTolerance)),!k){var H=R.sn+1;if(H>=T.startSN&&H<=T.endSN){var J=D[H-T.startSN];R.cc===J.cc&&(k=J,this.log("Live playlist, switching playlist, load frag with next SN: "+k.sn))}k||(k=Object(u.findFragWithCC)(D,R.cc),k&&this.log("Live playlist, switching playlist, load frag with same CC: "+k.sn))}}else{var U=this.hls.liveSyncPosition;U!==null&&(k=this.getFragmentAtPosition(U,this.bitrateTest?T.fragmentEnd:T.edge,T))}return k},x.getFragmentAtPosition=function(T,D,R){var k=this.config,H=this.fragPrevious,J=R.fragments,U=R.endSN,K=R.fragmentHint,G=k.maxFragLookUpTolerance,N=!!(k.lowLatencyMode&&R.partList&&K);N&&K&&!this.bitrateTest&&(J=J.concat(K),U=K.sn);var Q;if(T<D){var X=T>D-G?0:G;Q=Object(u.findFragmentByPTS)(H,J,T,X)}else Q=J[J.length-1];if(Q){var te=Q.sn-R.startSN,oe=H&&Q.level===H.level,me=J[te+1],se=this.fragmentTracker.getState(Q);if(se===_.FragmentState.BACKTRACKED){Q=null;for(var _e=te;J[_e]&&this.fragmentTracker.getState(J[_e])===_.FragmentState.BACKTRACKED;)H?Q=J[_e--]:Q=J[--_e];Q||(Q=me)}else H&&Q.sn===H.sn&&!N&&(oe&&(Q.sn<U&&this.fragmentTracker.getState(me)!==_.FragmentState.OK?(this.log("SN "+Q.sn+" just loaded, load next one: "+me.sn),Q=me):Q=null))}return Q},x.synchronizeToLiveEdge=function(T){var D=this.config,R=this.media;if(!R)return;var k=this.hls.liveSyncPosition,H=R.currentTime,J=T.fragments[0].start,U=T.edge,K=H>=J-D.maxFragLookUpTolerance&&H<=U;if(k!==null&&R.duration>k&&(H<k||!K)){var G=D.liveMaxLatencyDuration!==void 0?D.liveMaxLatencyDuration:D.liveMaxLatencyDurationCount*T.targetduration;(!K&&R.readyState<4||H<U-G)&&(this.loadedmetadata||(this.nextLoadPosition=k),R.readyState&&(this.warn("Playback: "+H.toFixed(3)+" is located too far from the end of live sliding playlist: "+U+", reset currentTime to : "+k.toFixed(3)),R.currentTime=k))}},x.alignPlaylists=function(T,D){var R=this.levels,k=this.levelLastLoaded,H=this.fragPrevious,J=k!==null?R[k]:null,U=T.fragments.length;if(!U)return this.warn("No fragments in live playlist"),0;var K=T.fragments[0].start,G=!D,N=T.alignedSliding&&Object(y.isFiniteNumber)(K);if(G||!N&&!K){Object(s.alignStream)(H,J,T);var Q=T.fragments[0].start;return this.log("Live playlist sliding: "+Q.toFixed(2)+" start-sn: "+(D?D.startSN:"na")+"->"+T.startSN+" prev-sn: "+(H?H.sn:"na")+" fragments: "+U),Q}return K},x.waitForCdnTuneIn=function(T){var D=3;return T.live&&T.canBlockReload&&T.tuneInGoal>Math.max(T.partHoldBack,T.partTarget*D)},x.setStartPosition=function(T,D){var R=this.startPosition;if(R<D&&(R=-1),R===-1||this.lastCurrentTime===-1){var k=T.startTimeOffset;Object(y.isFiniteNumber)(k)?(R=D+k,k<0&&(R+=T.totalduration),R=Math.min(Math.max(D,R),D+T.totalduration),this.log("Start time offset "+k+" found in playlist, adjust startPosition to "+R),this.startPosition=R):T.live?R=this.hls.liveSyncPosition||D:this.startPosition=R=0,this.lastCurrentTime=R}this.nextLoadPosition=R},x.getLoadPosition=function(){var T=this.media,D=0;return this.loadedmetadata&&T?D=T.currentTime:this.nextLoadPosition&&(D=this.nextLoadPosition),D},x.handleFragLoadAborted=function(T,D){this.transmuxer&&T.sn!=="initSegment"&&T.stats.aborted&&(this.warn("Fragment "+T.sn+(D?" part"+D.index:"")+" of level "+T.level+" was aborted"),this.resetFragmentLoading(T))},x.resetFragmentLoading=function(T){(!this.fragCurrent||!this.fragContextChanged(T))&&(this.state=b.IDLE)},x.onFragmentOrKeyLoadError=function(T,D){if(D.fatal)return;var R=D.frag;if(!R||R.type!==T)return;var k=this.fragCurrent;console.assert(k&&R.sn===k.sn&&R.level===k.level&&R.urlId===k.urlId,"Frag load error must match current frag to retry");var H=this.config;if(this.fragLoadError+1<=H.fragLoadingMaxRetry){if(this.resetLiveStartWhenNotLoaded(R.level))return;var J=Math.min(Math.pow(2,this.fragLoadError)*H.fragLoadingRetryDelay,H.fragLoadingMaxRetryTimeout);this.warn("Fragment "+R.sn+" of "+T+" "+R.level+" failed to load, retrying in "+J+"ms"),this.retryDate=self.performance.now()+J,this.fragLoadError++,this.state=b.FRAG_LOADING_WAITING_RETRY}else D.levelRetry?(T===h.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=b.IDLE):(m.logger.error(D.details+" reaches max retry, redispatch as fatal ..."),D.fatal=!0,this.hls.stopLoad(),this.state=b.ERROR)},x.afterBufferFlushed=function(T,D,R){if(!T)return;var k=C.BufferHelper.getBuffered(T);this.fragmentTracker.detectEvictedFragments(D,k,R),this.state===b.ENDED&&this.resetLoadingState()},x.resetLoadingState=function(){this.fragCurrent=null,this.fragPrevious=null,this.state=b.IDLE},x.resetLiveStartWhenNotLoaded=function(T){if(!this.loadedmetadata){this.startFragRequested=!1;var D=this.levels?this.levels[T].details:null;if(D!=null&&D.live)return this.startPosition=-1,this.setStartPosition(D,0),this.resetLoadingState(),!0;this.nextLoadPosition=this.startPosition}return!1},x.updateLevelTiming=function(T,D,R,k){var H=this,J=R.details;console.assert(!!J,"level.details must be defined");var U=Object.keys(T.elementaryStreams).reduce(function(K,G){var N=T.elementaryStreams[G];if(N){var Q=N.endPTS-N.startPTS;if(Q<=0)return H.warn("Could not parse fragment "+T.sn+" "+G+" duration reliably ("+Q+") resetting transmuxer to fallback to playlist timing"),H.resetTransmuxer(),K||!1;var X=k?0:Object(o.updateFragPTSDTS)(J,T,N.startPTS,N.endPTS,N.startDTS,N.endDTS);return H.hls.trigger(c.Events.LEVEL_PTS_UPDATED,{details:J,level:R,drift:X,type:G,frag:T,start:N.startPTS,end:N.endPTS}),!0}return K},!1);U?(this.state=b.PARSED,this.hls.trigger(c.Events.FRAG_PARSED,{frag:T,part:D})):this.resetLoadingState()},x.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},p(i,[{key:"state",get:function(){return this._state},set:function(T){var D=this._state;D!==T&&(this._state=T,this.log(D+"->"+T))}}]),i}(E.default)},"./src/controller/buffer-controller.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return u});var y=P("./src/polyfills/number.ts"),E=P("./src/events.ts"),_=P("./src/utils/logger.ts"),C=P("./src/errors.ts"),m=P("./src/utils/buffer-helper.ts"),c=P("./src/utils/mediasource-helper.ts"),r=P("./src/loader/fragment.ts"),n=P("./src/controller/buffer-operation-queue.ts"),e=Object(c.getMediaSource)(),s=/([ha]vc.)(?:\.[^.,]+)+/,u=function(){function o(d){var a=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=a.hls,g=a.media,p=a.mediaSource;_.logger.log("[buffer-controller]: Media source opened"),g&&(a.updateMediaElementDuration(),h.trigger(E.Events.MEDIA_ATTACHED,{media:g})),p&&p.removeEventListener("sourceopen",a._onMediaSourceOpen),a.checkPendingTracks()},this._onMediaSourceClose=function(){_.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){_.logger.log("[buffer-controller]: Media source ended")},this.hls=d,this._initSourceBuffer(),this.registerListeners()}var f=o.prototype;return f.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},f.destroy=function(){this.unregisterListeners(),this.details=null},f.registerListeners=function(){var a=this.hls;a.on(E.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),a.on(E.Events.MEDIA_DETACHING,this.onMediaDetaching,this),a.on(E.Events.MANIFEST_PARSED,this.onManifestParsed,this),a.on(E.Events.BUFFER_RESET,this.onBufferReset,this),a.on(E.Events.BUFFER_APPENDING,this.onBufferAppending,this),a.on(E.Events.BUFFER_CODECS,this.onBufferCodecs,this),a.on(E.Events.BUFFER_EOS,this.onBufferEos,this),a.on(E.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),a.on(E.Events.LEVEL_UPDATED,this.onLevelUpdated,this),a.on(E.Events.FRAG_PARSED,this.onFragParsed,this),a.on(E.Events.FRAG_CHANGED,this.onFragChanged,this)},f.unregisterListeners=function(){var a=this.hls;a.off(E.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),a.off(E.Events.MEDIA_DETACHING,this.onMediaDetaching,this),a.off(E.Events.MANIFEST_PARSED,this.onManifestParsed,this),a.off(E.Events.BUFFER_RESET,this.onBufferReset,this),a.off(E.Events.BUFFER_APPENDING,this.onBufferAppending,this),a.off(E.Events.BUFFER_CODECS,this.onBufferCodecs,this),a.off(E.Events.BUFFER_EOS,this.onBufferEos,this),a.off(E.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),a.off(E.Events.LEVEL_UPDATED,this.onLevelUpdated,this),a.off(E.Events.FRAG_PARSED,this.onFragParsed,this),a.off(E.Events.FRAG_CHANGED,this.onFragChanged,this)},f._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new n.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},f.onManifestParsed=function(a,h){var g=2;(h.audio&&!h.video||!h.altAudio)&&(g=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=g,this.details=null,_.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},f.onMediaAttaching=function(a,h){var g=this.media=h.media;if(g&&e){var p=this.mediaSource=new e;p.addEventListener("sourceopen",this._onMediaSourceOpen),p.addEventListener("sourceended",this._onMediaSourceEnded),p.addEventListener("sourceclose",this._onMediaSourceClose),g.src=self.URL.createObjectURL(p),this._objectUrl=g.src}},f.onMediaDetaching=function(){var a=this.media,h=this.mediaSource,g=this._objectUrl;if(h){if(_.logger.log("[buffer-controller]: media source detaching"),h.readyState==="open")try{h.endOfStream()}catch(p){_.logger.warn("[buffer-controller]: onMediaDetaching: "+p.message+" while calling endOfStream")}this.onBufferReset(),h.removeEventListener("sourceopen",this._onMediaSourceOpen),h.removeEventListener("sourceended",this._onMediaSourceEnded),h.removeEventListener("sourceclose",this._onMediaSourceClose),a&&(g&&self.URL.revokeObjectURL(g),a.src===g?(a.removeAttribute("src"),a.load()):_.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)},f.onBufferReset=function(){var a=this;this.getSourceBufferTypes().forEach(function(h){var g=a.sourceBuffer[h];try{g&&(a.removeBufferListeners(h),a.mediaSource&&a.mediaSource.removeSourceBuffer(g),a.sourceBuffer[h]=void 0)}catch(p){_.logger.warn("[buffer-controller]: Failed to reset the "+h+" buffer",p)}}),this._initSourceBuffer()},f.onBufferCodecs=function(a,h){var g=this,p=this.getSourceBufferTypes().length;if(Object.keys(h).forEach(function(S){if(p){var w=g.tracks[S];if(w&&typeof w.buffer.changeType=="function"){var B=h[S],b=B.codec,A=B.levelCodec,l=B.container,i=(w.levelCodec||w.codec).replace(s,"$1"),x=(A||b).replace(s,"$1");if(i!==x){var O=l+";codecs="+(A||b);g.appendChangeType(S,O)}}}else g.pendingTracks[S]=h[S]}),p)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},f.appendChangeType=function(a,h){var g=this,p=this.operationQueue,S={execute:function(){var B=g.sourceBuffer[a];B&&(_.logger.log("[buffer-controller]: changing "+a+" sourceBuffer type to "+h),B.changeType(h)),p.shiftAndExecuteNext(a)},onStart:function(){},onComplete:function(){},onError:function(B){_.logger.warn("[buffer-controller]: Failed to change "+a+" SourceBuffer type",B)}};p.append(S,a)},f.onBufferAppending=function(a,h){var g=this,p=this.hls,S=this.operationQueue,w=this.tracks,B=h.data,b=h.type,A=h.frag,l=h.part,i=h.chunkMeta,x=i.buffering[b],O=self.performance.now();x.start=O;var T=A.stats.buffering,D=l?l.stats.buffering:null;T.start===0&&(T.start=O),D&&D.start===0&&(D.start=O);var R=w.audio,k=b==="audio"&&i.id===1&&(R==null?void 0:R.container)==="audio/mpeg",H={execute:function(){if(x.executeStart=self.performance.now(),k){var U=g.sourceBuffer[b];if(U){var K=A.start-U.timestampOffset;Math.abs(K)>=.1&&(_.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+A.start+" (delta: "+K+") sn: "+A.sn+")"),U.timestampOffset=A.start)}}g.appendExecutor(B,b)},onStart:function(){},onComplete:function(){var U=self.performance.now();x.executeEnd=x.end=U,T.first===0&&(T.first=U),D&&D.first===0&&(D.first=U);var K=g.sourceBuffer,G={};for(var N in K)G[N]=m.BufferHelper.getBuffered(K[N]);g.appendError=0,g.hls.trigger(E.Events.BUFFER_APPENDED,{type:b,frag:A,part:l,chunkMeta:i,parent:A.type,timeRanges:G})},onError:function(U){_.logger.error("[buffer-controller]: Error encountered while trying to append to the "+b+" SourceBuffer",U);var K={type:C.ErrorTypes.MEDIA_ERROR,parent:A.type,details:C.ErrorDetails.BUFFER_APPEND_ERROR,err:U,fatal:!1};U.code===DOMException.QUOTA_EXCEEDED_ERR?K.details=C.ErrorDetails.BUFFER_FULL_ERROR:(g.appendError++,K.details=C.ErrorDetails.BUFFER_APPEND_ERROR,g.appendError>p.config.appendErrorMaxRetry&&(_.logger.error("[buffer-controller]: Failed "+p.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),K.fatal=!0)),p.trigger(E.Events.ERROR,K)}};S.append(H,b)},f.onBufferFlushing=function(a,h){var g=this,p=this.operationQueue,S=function(B){return{execute:g.removeExecutor.bind(g,B,h.startOffset,h.endOffset),onStart:function(){},onComplete:function(){g.hls.trigger(E.Events.BUFFER_FLUSHED,{type:B})},onError:function(A){_.logger.warn("[buffer-controller]: Failed to remove from "+B+" SourceBuffer",A)}}};h.type?p.append(S(h.type),h.type):this.getSourceBufferTypes().forEach(function(w){p.append(S(w),w)})},f.onFragParsed=function(a,h){var g=this,p=h.frag,S=h.part,w=[],B=S?S.elementaryStreams:p.elementaryStreams;B[r.ElementaryStreamTypes.AUDIOVIDEO]?w.push("audiovideo"):(B[r.ElementaryStreamTypes.AUDIO]&&w.push("audio"),B[r.ElementaryStreamTypes.VIDEO]&&w.push("video"));var b=function(){var l=self.performance.now();p.stats.buffering.end=l,S&&(S.stats.buffering.end=l);var i=S?S.stats:p.stats;g.hls.trigger(E.Events.FRAG_BUFFERED,{frag:p,part:S,stats:i,id:p.type})};w.length===0&&_.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+p.type+" level: "+p.level+" sn: "+p.sn),this.blockBuffers(b,w)},f.onFragChanged=function(a,h){this.flushBackBuffer()},f.onBufferEos=function(a,h){var g=this,p=this.getSourceBufferTypes().reduce(function(S,w){var B=g.sourceBuffer[w];return(!h.type||h.type===w)&&(B&&!B.ended&&(B.ended=!0,_.logger.log("[buffer-controller]: "+w+" sourceBuffer now EOS"))),S&&!!(!B||B.ended)},!0);p&&this.blockBuffers(function(){var S=g.mediaSource;if(!S||S.readyState!=="open")return;S.endOfStream()})},f.onLevelUpdated=function(a,h){var g=h.details;if(!g.fragments.length)return;this.details=g,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},f.flushBackBuffer=function(){var a=this.hls,h=this.details,g=this.media,p=this.sourceBuffer;if(!g||h===null)return;var S=this.getSourceBufferTypes();if(!S.length)return;var w=h.live&&a.config.liveBackBufferLength!==null?a.config.liveBackBufferLength:a.config.backBufferLength;if(!Object(y.isFiniteNumber)(w)||w<0)return;var B=g.currentTime,b=h.levelTargetDuration,A=Math.max(w,b),l=Math.floor(B/b)*b-A;S.forEach(function(i){var x=p[i];if(x){var O=m.BufferHelper.getBuffered(x);O.length>0&&l>O.start(0)&&(a.trigger(E.Events.BACK_BUFFER_REACHED,{bufferEnd:l}),h.live&&a.trigger(E.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:l}),a.trigger(E.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:l,type:i}))}})},f.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var a=this.details,h=this.hls,g=this.media,p=this.mediaSource,S=a.fragments[0].start+a.totalduration,w=g.duration,B=Object(y.isFiniteNumber)(p.duration)?p.duration:0;a.live&&h.config.liveDurationInfinity?(_.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),p.duration=Infinity,this.updateSeekableRange(a)):(S>B&&S>w||!Object(y.isFiniteNumber)(w))&&(_.logger.log("[buffer-controller]: Updating Media Source duration to "+S.toFixed(3)),p.duration=S)},f.updateSeekableRange=function(a){var h=this.mediaSource,g=a.fragments,p=g.length;if(p&&a.live&&h!==null&&h!==void 0&&h.setLiveSeekableRange){var S=Math.max(0,g[0].start),w=Math.max(S,S+a.totalduration);h.setLiveSeekableRange(S,w)}},f.checkPendingTracks=function(){var a=this.bufferCodecEventsExpected,h=this.operationQueue,g=this.pendingTracks,p=Object.keys(g).length;if(p&&!a||p===2){this.createSourceBuffers(g),this.pendingTracks={};var S=this.getSourceBufferTypes();if(S.length===0){this.hls.trigger(E.Events.ERROR,{type:C.ErrorTypes.MEDIA_ERROR,details:C.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}S.forEach(function(w){h.executeNext(w)})}},f.createSourceBuffers=function(a){var h=this.sourceBuffer,g=this.mediaSource;if(!g)throw Error("createSourceBuffers called when mediaSource was null");var p=0;for(var S in a)if(!h[S]){var w=a[S];if(!w)throw Error("source buffer exists for track "+S+", however track does not");var B=w.levelCodec||w.codec,b=w.container+";codecs="+B;_.logger.log("[buffer-controller]: creating sourceBuffer("+b+")");try{var A=h[S]=g.addSourceBuffer(b),l=S;this.addBufferListener(l,"updatestart",this._onSBUpdateStart),this.addBufferListener(l,"updateend",this._onSBUpdateEnd),this.addBufferListener(l,"error",this._onSBUpdateError),this.tracks[S]={buffer:A,codec:B,container:w.container,levelCodec:w.levelCodec,id:w.id},p++}catch(i){_.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+i.message),this.hls.trigger(E.Events.ERROR,{type:C.ErrorTypes.MEDIA_ERROR,details:C.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:i,mimeType:b})}}p&&this.hls.trigger(E.Events.BUFFER_CREATED,{tracks:this.tracks})},f._onSBUpdateStart=function(a){var h=this.operationQueue,g=h.current(a);g.onStart()},f._onSBUpdateEnd=function(a){var h=this.operationQueue,g=h.current(a);g.onComplete(),h.shiftAndExecuteNext(a)},f._onSBUpdateError=function(a,h){_.logger.error("[buffer-controller]: "+a+" SourceBuffer error",h),this.hls.trigger(E.Events.ERROR,{type:C.ErrorTypes.MEDIA_ERROR,details:C.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var g=this.operationQueue.current(a);g&&g.onError(h)},f.removeExecutor=function(a,h,g){var p=this.media,S=this.mediaSource,w=this.operationQueue,B=this.sourceBuffer,b=B[a];if(!p||!S||!b){_.logger.warn("[buffer-controller]: Attempting to remove from the "+a+" SourceBuffer, but it does not exist"),w.shiftAndExecuteNext(a);return}var A=Object(y.isFiniteNumber)(p.duration)?p.duration:Infinity,l=Object(y.isFiniteNumber)(S.duration)?S.duration:Infinity,i=Math.max(0,h),x=Math.min(g,A,l);x>i?(_.logger.log("[buffer-controller]: Removing ["+i+","+x+"] from the "+a+" SourceBuffer"),console.assert(!b.updating,a+" sourceBuffer must not be updating"),b.remove(i,x)):w.shiftAndExecuteNext(a)},f.appendExecutor=function(a,h){var g=this.operationQueue,p=this.sourceBuffer,S=p[h];if(!S){_.logger.warn("[buffer-controller]: Attempting to append to the "+h+" SourceBuffer, but it does not exist"),g.shiftAndExecuteNext(h);return}S.ended=!1,console.assert(!S.updating,h+" sourceBuffer must not be updating"),S.appendBuffer(a)},f.blockBuffers=function(a,h){var g=this;if(h===void 0&&(h=this.getSourceBufferTypes()),!h.length){_.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(a);return}var p=this.operationQueue,S=h.map(function(w){return p.appendBlocker(w)});Promise.all(S).then(function(){a(),h.forEach(function(w){var B=g.sourceBuffer[w];(!B||!B.updating)&&p.shiftAndExecuteNext(w)})})},f.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},f.addBufferListener=function(a,h,g){var p=this.sourceBuffer[a];if(!p)return;var S=g.bind(this,a);this.listeners[a].push({event:h,listener:S}),p.addEventListener(h,S)},f.removeBufferListeners=function(a){var h=this.sourceBuffer[a];if(!h)return;this.listeners[a].forEach(function(g){h.removeEventListener(g.event,g.listener)})},o}()},"./src/controller/buffer-operation-queue.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return E});var y=P("./src/utils/logger.ts"),E=function(){function _(m){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=m}var C=_.prototype;return C.append=function(c,r){var n=this.queues[r];n.push(c),n.length===1&&this.buffers[r]&&this.executeNext(r)},C.insertAbort=function(c,r){var n=this.queues[r];n.unshift(c),this.executeNext(r)},C.appendBlocker=function(c){var r,n=new Promise(function(s){r=s}),e={execute:r,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(e,c),n},C.executeNext=function(c){var r=this.buffers,n=this.queues,e=r[c],s=n[c];if(s.length){var u=s[0];try{u.execute()}catch(o){y.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),u.onError(o),(!e||!e.updating)&&(s.shift(),this.executeNext(c))}}},C.shiftAndExecuteNext=function(c){this.queues[c].shift(),this.executeNext(c)},C.current=function(c){return this.queues[c][0]},_}()},"./src/controller/cap-level-controller.ts":function(ue,Y,P){"use strict";P.r(Y);var y=P("./src/events.ts");function E(m,c){for(var r=0;r<c.length;r++){var n=c[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(m,n.key,n)}}function _(m,c,r){return c&&E(m.prototype,c),r&&E(m,r),m}var C=function(){function m(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 c=m.prototype;return c.setStreamController=function(n){this.streamController=n},c.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},c.registerListeners=function(){var n=this.hls;n.on(y.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),n.on(y.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.on(y.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.on(y.Events.BUFFER_CODECS,this.onBufferCodecs,this),n.on(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},c.unregisterListener=function(){var n=this.hls;n.off(y.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),n.off(y.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.off(y.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.off(y.Events.BUFFER_CODECS,this.onBufferCodecs,this),n.off(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},c.onFpsDropLevelCapping=function(n,e){m.isLevelAllowed(e.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(e.droppedLevel)},c.onMediaAttaching=function(n,e){this.media=e.media instanceof HTMLVideoElement?e.media:null},c.onManifestParsed=function(n,e){var s=this.hls;this.restrictedLevels=[],this.firstLevel=e.firstLevel,s.config.capLevelToPlayerSize&&e.video&&this.startCapping()},c.onBufferCodecs=function(n,e){var s=this.hls;s.config.capLevelToPlayerSize&&e.video&&this.startCapping()},c.onMediaDetaching=function(){this.stopCapping()},c.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}}},c.getMaxLevel=function(n){var e=this,s=this.hls.levels;if(!s.length)return-1;var u=s.filter(function(o,f){return m.isLevelAllowed(f,e.restrictedLevels)&&f<=n});return this.clientRect=null,m.getMaxLevelByMediaSize(u,this.mediaWidth,this.mediaHeight)},c.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()},c.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},c.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},m.isLevelAllowed=function(n,e){return e===void 0&&(e=[]),e.indexOf(n)===-1},m.getMaxLevelByMediaSize=function(n,e,s){if(!n||!n.length)return-1;for(var u=function(h,g){return g?h.width!==g.width||h.height!==g.height:!0},o=n.length-1,f=0;f<n.length;f+=1){var d=n[f];if((d.width>=e||d.height>=s)&&u(d,n[f+1])){o=f;break}}return o},_(m,[{key:"mediaWidth",get:function(){return this.getDimensions().width*m.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*m.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var n=1;try{n=self.devicePixelRatio}catch(e){}return n}}]),m}();Y.default=C},"./src/controller/cmcd-controller.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return u});var y=P("./src/events.ts"),E=P("./src/types/cmcd.ts"),_=P("./src/utils/buffer-helper.ts"),C=P("./src/utils/logger.ts");function m(o,f){for(var d=0;d<f.length;d++){var a=f[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(o,a.key,a)}}function c(o,f,d){return f&&m(o.prototype,f),d&&m(o,d),o}function r(o,f){var d=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(d)return(d=d.call(o)).next.bind(d);if(Array.isArray(o)||(d=n(o))||f&&o&&typeof o.length=="number"){d&&(o=d);var a=0;return function(){return a>=o.length?{done:!0}:{done:!1,value:o[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n(o,f){if(!o)return;if(typeof o=="string")return e(o,f);var d=Object.prototype.toString.call(o).slice(8,-1);if(d==="Object"&&o.constructor&&(d=o.constructor.name),d==="Map"||d==="Set")return Array.from(o);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return e(o,f)}function e(o,f){(f==null||f>o.length)&&(f=o.length);for(var d=0,a=new Array(f);d<f;d++)a[d]=o[d];return a}function s(){return s=Object.assign||function(o){for(var f=1;f<arguments.length;f++){var d=arguments[f];for(var a in d)Object.prototype.hasOwnProperty.call(d,a)&&(o[a]=d[a])}return o},s.apply(this,arguments)}var u=function(){function o(d){var a=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(){a.initialized&&(a.starved=!0),a.buffering=!0},this.onPlaying=function(){a.initialized||(a.initialized=!0),a.buffering=!1},this.applyPlaylistData=function(p){try{a.apply(p,{ot:E.CMCDObjectType.MANIFEST,su:!a.initialized})}catch(S){C.logger.warn("Could not generate manifest CMCD data.",S)}},this.applyFragmentData=function(p){try{var S=p.frag,w=a.hls.levels[S.level],B=a.getObjectType(S),b={d:S.duration*1e3,ot:B};(B===E.CMCDObjectType.VIDEO||B===E.CMCDObjectType.AUDIO||B==E.CMCDObjectType.MUXED)&&(b.br=w.bitrate/1e3,b.tb=a.getTopBandwidth(B),b.bl=a.getBufferLength(B)),a.apply(p,b)}catch(A){C.logger.warn("Could not generate segment CMCD data.",A)}},this.hls=d;var h=this.config=d.config,g=h.cmcd;g!=null&&(h.pLoader=this.createPlaylistLoader(),h.fLoader=this.createFragmentLoader(),this.sid=g.sessionId||o.uuid(),this.cid=g.contentId,this.useHeaders=g.useHeaders===!0,this.registerListeners())}var f=o.prototype;return f.registerListeners=function(){var a=this.hls;a.on(y.Events.MEDIA_ATTACHED,this.onMediaAttached,this),a.on(y.Events.MEDIA_DETACHED,this.onMediaDetached,this),a.on(y.Events.BUFFER_CREATED,this.onBufferCreated,this)},f.unregisterListeners=function(){var a=this.hls;a.off(y.Events.MEDIA_ATTACHED,this.onMediaAttached,this),a.off(y.Events.MEDIA_DETACHED,this.onMediaDetached,this),a.off(y.Events.BUFFER_CREATED,this.onBufferCreated,this),this.onMediaDetached()},f.destroy=function(){this.unregisterListeners(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},f.onMediaAttached=function(a,h){this.media=h.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},f.onMediaDetached=function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null},f.onBufferCreated=function(a,h){var g,p;this.audioBuffer=(g=h.tracks.audio)===null||g===void 0?void 0:g.buffer,this.videoBuffer=(p=h.tracks.video)===null||p===void 0?void 0:p.buffer},f.createData=function(){var a;return{v:E.CMCDVersion,sf:E.CMCDStreamingFormat.HLS,sid:this.sid,cid:this.cid,pr:(a=this.media)===null||a===void 0?void 0:a.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},f.apply=function(a,h){h===void 0&&(h={}),s(h,this.createData());var g=h.ot===E.CMCDObjectType.INIT||h.ot===E.CMCDObjectType.VIDEO||h.ot===E.CMCDObjectType.MUXED;if(this.starved&&g&&(h.bs=!0,h.su=!0,this.starved=!1),h.su==null&&(h.su=this.buffering),this.useHeaders){var p=o.toHeaders(h);if(!Object.keys(p).length)return;a.headers||(a.headers={}),s(a.headers,p)}else{var S=o.toQuery(h);if(!S)return;a.url=o.appendQueryToUri(a.url,S)}},f.getObjectType=function(a){var h=a.type;return h==="subtitle"?E.CMCDObjectType.TIMED_TEXT:a.sn==="initSegment"?E.CMCDObjectType.INIT:h==="audio"?E.CMCDObjectType.AUDIO:h==="main"?this.hls.audioTracks.length?E.CMCDObjectType.VIDEO:E.CMCDObjectType.MUXED:void 0},f.getTopBandwidth=function(a){for(var h=0,g=a===E.CMCDObjectType.AUDIO?this.hls.audioTracks:this.hls.levels,p=r(g),S;!(S=p()).done;){var w=S.value;w.bitrate>h&&(h=w.bitrate)}return h>0?h:NaN},f.getBufferLength=function(a){var h=this.hls.media,g=a===E.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!g||!h)return NaN;var p=_.BufferHelper.bufferInfo(g,h.currentTime,this.config.maxBufferHole);return p.len*1e3},f.createPlaylistLoader=function(){var a=this.config.pLoader,h=this.applyPlaylistData,g=a||this.config.loader;return function(){function p(w){this.loader=void 0,this.loader=new g(w)}var S=p.prototype;return S.destroy=function(){this.loader.destroy()},S.abort=function(){this.loader.abort()},S.load=function(B,b,A){h(B),this.loader.load(B,b,A)},c(p,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),p}()},f.createFragmentLoader=function(){var a=this.config.fLoader,h=this.applyFragmentData,g=a||this.config.loader;return function(){function p(w){this.loader=void 0,this.loader=new g(w)}var S=p.prototype;return S.destroy=function(){this.loader.destroy()},S.abort=function(){this.loader.abort()},S.load=function(B,b,A){h(B),this.loader.load(B,b,A)},c(p,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),p}()},o.uuid=function(){var a=URL.createObjectURL(new Blob),h=a.toString();return URL.revokeObjectURL(a),h.substr(h.lastIndexOf("/")+1)},o.serialize=function(a){for(var h=[],g=function(k){return!Number.isNaN(k)&&k!=null&&k!==""&&k!==!1},p=function(k){return Math.round(k)},S=function(k){return p(k/100)*100},w=function(k){return encodeURIComponent(k)},B={br:p,d:p,bl:S,dl:S,mtp:S,nor:w,rtp:S,tb:p},b=Object.keys(a||{}).sort(),A=r(b),l;!(l=A()).done;){var i=l.value,x=a[i];if(!g(x))continue;if(i==="v"&&x===1)continue;if(i=="pr"&&x===1)continue;var O=B[i];O&&(x=O(x));var T=typeof x,D=void 0;i==="ot"||i==="sf"||i==="st"?D=i+"="+x:T==="boolean"?D=i:T==="number"?D=i+"="+x:D=i+"="+JSON.stringify(x),h.push(D)}return h.join(",")},o.toHeaders=function(a){for(var h=Object.keys(a),g={},p=["Object","Request","Session","Status"],S=[{},{},{},{}],w={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},B=0,b=h;B<b.length;B++){var A=b[B],l=w[A]!=null?w[A]:1;S[l][A]=a[A]}for(var i=0;i<S.length;i++){var x=o.serialize(S[i]);x&&(g["CMCD-"+p[i]]=x)}return g},o.toQuery=function(a){return"CMCD="+encodeURIComponent(o.serialize(a))},o.appendQueryToUri=function(a,h){if(!h)return a;var g=a.includes("?")?"&":"?";return""+a+g+h},o}()},"./src/controller/eme-controller.ts":function(ue,Y,P){"use strict";P.r(Y);var y=P("./src/events.ts"),E=P("./src/errors.ts"),_=P("./src/utils/logger.ts"),C=P("./src/utils/mediakeys-helper.ts");function m(u,o){for(var f=0;f<o.length;f++){var d=o[f];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(u,d.key,d)}}function c(u,o,f){return o&&m(u.prototype,o),f&&m(u,f),u}var r=3,n=function(o,f,d){var a={audioCapabilities:[],videoCapabilities:[]};return o.forEach(function(h){a.audioCapabilities.push({contentType:'audio/mp4; codecs="'+h+'"',robustness:d.audioRobustness||""})}),f.forEach(function(h){a.videoCapabilities.push({contentType:'video/mp4; codecs="'+h+'"',robustness:d.videoRobustness||""})}),[a]},e=function(o,f,d,a){switch(o){case C.KeySystems.WIDEVINE:return n(f,d,a);default:throw new Error("Unknown key-system: "+o)}},s=function(){function u(f){this.hls=void 0,this._widevineLicenseUrl=void 0,this._licenseXhrSetup=void 0,this._licenseResponseCallback=void 0,this._emeEnabled=void 0,this._requestMediaKeySystemAccess=void 0,this._drmSystemOptions=void 0,this._config=void 0,this._mediaKeysList=[],this._media=null,this._hasSetMediaKeys=!1,this._requestLicenseFailureCount=0,this.mediaKeysPromise=null,this._onMediaEncrypted=this.onMediaEncrypted.bind(this),this.hls=f,this._config=f.config,this._widevineLicenseUrl=this._config.widevineLicenseUrl,this._licenseXhrSetup=this._config.licenseXhrSetup,this._licenseResponseCallback=this._config.licenseResponseCallback,this._emeEnabled=this._config.emeEnabled,this._requestMediaKeySystemAccess=this._config.requestMediaKeySystemAccessFunc,this._drmSystemOptions=this._config.drmSystemOptions,this._registerListeners()}var o=u.prototype;return o.destroy=function(){this._unregisterListeners(),this.hls=this._onMediaEncrypted=null,this._requestMediaKeySystemAccess=null},o._registerListeners=function(){this.hls.on(y.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(y.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(y.Events.MANIFEST_PARSED,this.onManifestParsed,this)},o._unregisterListeners=function(){this.hls.off(y.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(y.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(y.Events.MANIFEST_PARSED,this.onManifestParsed,this)},o.getLicenseServerUrl=function(d){switch(d){case C.KeySystems.WIDEVINE:if(!this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no license server URL configured for key-system "'+d+'"')},o._attemptKeySystemAccess=function(d,a,h){var g=this,p=e(d,a,h,this._drmSystemOptions);_.logger.log("Requesting encrypted media key-system access");var S=this.requestMediaKeySystemAccess(d,p);this.mediaKeysPromise=S.then(function(w){return g._onMediaKeySystemAccessObtained(d,w)}),S.catch(function(w){_.logger.error('Failed to obtain key-system "'+d+'" access:',w)})},o._onMediaKeySystemAccessObtained=function(d,a){var h=this;_.logger.log('Access for key-system "'+d+'" obtained');var g={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:a,mediaKeySystemDomain:d};this._mediaKeysList.push(g);var p=Promise.resolve().then(function(){return a.createMediaKeys()}).then(function(S){return g.mediaKeys=S,_.logger.log('Media-keys created for key-system "'+d+'"'),h._onMediaKeysCreated(),S});return p.catch(function(S){_.logger.error("Failed to create media-keys:",S)}),p},o._onMediaKeysCreated=function(){var d=this;this._mediaKeysList.forEach(function(a){a.mediaKeysSession||(a.mediaKeysSession=a.mediaKeys.createSession(),d._onNewMediaKeySession(a.mediaKeysSession))})},o._onNewMediaKeySession=function(d){var a=this;_.logger.log("New key-system session "+d.sessionId),d.addEventListener("message",function(h){a._onKeySessionMessage(d,h.message)},!1)},o._onKeySessionMessage=function(d,a){_.logger.log("Got EME message event, creating license request"),this._requestLicense(a,function(h){_.logger.log("Received license data (length: "+(h&&h.byteLength)+"), updating key-session"),d.update(h)})},o.onMediaEncrypted=function(d){var a=this;if(_.logger.log('Media is encrypted using "'+d.initDataType+'" init data type'),!this.mediaKeysPromise){_.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been requested"),this.hls.trigger(y.Events.ERROR,{type:E.ErrorTypes.KEY_SYSTEM_ERROR,details:E.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}var h=function(p){if(!a._media)return;a._attemptSetMediaKeys(p),a._generateRequestWithPreferredKeySession(d.initDataType,d.initData)};this.mediaKeysPromise.then(h).catch(h)},o._attemptSetMediaKeys=function(d){if(!this._media)throw new Error("Attempted to set mediaKeys without first attaching a media element");if(!this._hasSetMediaKeys){var a=this._mediaKeysList[0];if(!a||!a.mediaKeys){_.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been obtained yet"),this.hls.trigger(y.Events.ERROR,{type:E.ErrorTypes.KEY_SYSTEM_ERROR,details:E.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}_.logger.log("Setting keys for encrypted media"),this._media.setMediaKeys(a.mediaKeys),this._hasSetMediaKeys=!0}},o._generateRequestWithPreferredKeySession=function(d,a){var h=this,g=this._mediaKeysList[0];if(!g){_.logger.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),this.hls.trigger(y.Events.ERROR,{type:E.ErrorTypes.KEY_SYSTEM_ERROR,details:E.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}if(g.mediaKeysSessionInitialized){_.logger.warn("Key-Session already initialized but requested again");return}var p=g.mediaKeysSession;if(!p){_.logger.error("Fatal: Media is encrypted but no key-session existing"),this.hls.trigger(y.Events.ERROR,{type:E.ErrorTypes.KEY_SYSTEM_ERROR,details:E.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!0});return}if(!a){_.logger.warn("Fatal: initData required for generating a key session is null"),this.hls.trigger(y.Events.ERROR,{type:E.ErrorTypes.KEY_SYSTEM_ERROR,details:E.ErrorDetails.KEY_SYSTEM_NO_INIT_DATA,fatal:!0});return}_.logger.log('Generating key-session request for "'+d+'" init data type'),g.mediaKeysSessionInitialized=!0,p.generateRequest(d,a).then(function(){_.logger.debug("Key-session generation succeeded")}).catch(function(S){_.logger.error("Error generating key-session request:",S),h.hls.trigger(y.Events.ERROR,{type:E.ErrorTypes.KEY_SYSTEM_ERROR,details:E.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})})},o._createLicenseXhr=function(d,a,h){var g=new XMLHttpRequest;g.responseType="arraybuffer",g.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,g,d,a,h);var p=this._licenseXhrSetup;if(p)try{p.call(this.hls,g,d),p=void 0}catch(S){_.logger.error(S)}try{g.readyState||g.open("POST",d,!0),p&&p.call(this.hls,g,d)}catch(S){throw new Error("issue setting up KeySystem license XHR "+S)}return g},o._onLicenseRequestReadyStageChange=function(d,a,h,g){switch(d.readyState){case 4:if(d.status===200){this._requestLicenseFailureCount=0,_.logger.log("License request succeeded");var p=d.response,S=this._licenseResponseCallback;if(S)try{p=S.call(this.hls,d,a)}catch(B){_.logger.error(B)}g(p)}else{if(_.logger.error("License Request XHR failed ("+a+"). Status: "+d.status+" ("+d.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>r){this.hls.trigger(y.Events.ERROR,{type:E.ErrorTypes.KEY_SYSTEM_ERROR,details:E.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var w=r-this._requestLicenseFailureCount+1;_.logger.warn("Retrying license request, "+w+" attempts left"),this._requestLicense(h,g)}break}},o._generateLicenseRequestChallenge=function(d,a){switch(d.mediaKeySystemDomain){case C.KeySystems.WIDEVINE:return a}throw new Error("unsupported key-system: "+d.mediaKeySystemDomain)},o._requestLicense=function(d,a){_.logger.log("Requesting content license for key-system");var h=this._mediaKeysList[0];if(!h){_.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(y.Events.ERROR,{type:E.ErrorTypes.KEY_SYSTEM_ERROR,details:E.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var g=this.getLicenseServerUrl(h.mediaKeySystemDomain),p=this._createLicenseXhr(g,d,a);_.logger.log("Sending license request to URL: "+g);var S=this._generateLicenseRequestChallenge(h,d);p.send(S)}catch(w){_.logger.error("Failure requesting DRM license: "+w),this.hls.trigger(y.Events.ERROR,{type:E.ErrorTypes.KEY_SYSTEM_ERROR,details:E.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},o.onMediaAttached=function(d,a){if(!this._emeEnabled)return;var h=a.media;this._media=h,h.addEventListener("encrypted",this._onMediaEncrypted)},o.onMediaDetached=function(){var d=this._media,a=this._mediaKeysList;if(!d)return;d.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(a.map(function(h){if(h.mediaKeysSession)return h.mediaKeysSession.close().catch(function(){})})).then(function(){return d.setMediaKeys(null)}).catch(function(){})},o.onManifestParsed=function(d,a){if(!this._emeEnabled)return;var h=a.levels.map(function(p){return p.audioCodec}).filter(function(p){return!!p}),g=a.levels.map(function(p){return p.videoCodec}).filter(function(p){return!!p});this._attemptKeySystemAccess(C.KeySystems.WIDEVINE,h,g)},c(u,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),u}();Y.default=s},"./src/controller/fps-controller.ts":function(ue,Y,P){"use strict";P.r(Y);var y=P("./src/events.ts"),E=P("./src/utils/logger.ts"),_=function(){function C(c){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=c,this.registerListeners()}var m=C.prototype;return m.setStreamController=function(r){this.streamController=r},m.registerListeners=function(){this.hls.on(y.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},m.unregisterListeners=function(){this.hls.off(y.Events.MEDIA_ATTACHING,this.onMediaAttaching)},m.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},m.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)}},m.checkFPS=function(r,n,e){var s=performance.now();if(n){if(this.lastTime){var u=s-this.lastTime,o=e-this.lastDroppedFrames,f=n-this.lastDecodedFrames,d=1e3*o/u,a=this.hls;if(a.trigger(y.Events.FPS_DROP,{currentDropped:o,currentDecoded:f,totalDroppedFrames:e}),d>0&&o>a.config.fpsDroppedMonitoringThreshold*f){var h=a.currentLevel;E.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+h),h>0&&(a.autoLevelCapping===-1||a.autoLevelCapping>=h)&&(h=h-1,a.trigger(y.Events.FPS_DROP_LEVEL_CAPPING,{level:h,droppedLevel:a.currentLevel}),a.autoLevelCapping=h,this.streamController.nextLevelSwitch())}}this.lastTime=s,this.lastDroppedFrames=e,this.lastDecodedFrames=n}},m.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)},C}();Y.default=_},"./src/controller/fragment-finders.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"findFragmentByPDT",function(){return _}),P.d(Y,"findFragmentByPTS",function(){return C}),P.d(Y,"fragmentWithinToleranceTest",function(){return m}),P.d(Y,"pdtWithinToleranceTest",function(){return c}),P.d(Y,"findFragWithCC",function(){return r});var y=P("./src/polyfills/number.ts"),E=P("./src/utils/binary-search.ts");function _(n,e,s){if(e===null||!Array.isArray(n)||!n.length||!Object(y.isFiniteNumber)(e))return null;var u=n[0].programDateTime;if(e<(u||0))return null;var o=n[n.length-1].endProgramDateTime;if(e>=(o||0))return null;s=s||0;for(var f=0;f<n.length;++f){var d=n[f];if(c(e,s,d))return d}return null}function C(n,e,s,u){s===void 0&&(s=0),u===void 0&&(u=0);var o=null;if(n?o=e[n.sn-e[0].sn+1]||null:s===0&&e[0].start===0&&(o=e[0]),o&&m(s,u,o)===0)return o;var f=E.default.search(e,m.bind(null,s,u));return f||o}function m(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 c(n,e,s){var u=Math.min(e,s.duration+(s.deltaPTS?s.deltaPTS:0))*1e3,o=s.endProgramDateTime||0;return o-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(ue,Y,P){"use strict";P.r(Y),P.d(Y,"FragmentState",function(){return _}),P.d(Y,"FragmentTracker",function(){return C});var y=P("./src/events.ts"),E=P("./src/types/loader.ts"),_;(function(r){r.NOT_LOADED="NOT_LOADED",r.BACKTRACKED="BACKTRACKED",r.APPENDING="APPENDING",r.PARTIAL="PARTIAL",r.OK="OK"})(_||(_={}));var C=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(y.Events.BUFFER_APPENDED,this.onBufferAppended,this),s.on(y.Events.FRAG_BUFFERED,this.onFragBuffered,this),s.on(y.Events.FRAG_LOADED,this.onFragLoaded,this)},n._unregisterListeners=function(){var s=this.hls;s.off(y.Events.BUFFER_APPENDED,this.onBufferAppended,this),s.off(y.Events.FRAG_BUFFERED,this.onFragBuffered,this),s.off(y.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 o=this.activeFragment,f=this.activeParts;if(!o)return null;if(f)for(var d=f.length;d--;){var a=f[d],h=a?a.end:o.appendedPTS;if(a.start<=s&&h!==void 0&&s<=h)return d>9&&(this.activeParts=f.slice(d-9)),a}else if(o.start<=s&&o.appendedPTS!==void 0&&s<=o.appendedPTS)return o}return this.getBufferedFrag(s,u)},n.getBufferedFrag=function(s,u){for(var o=this.fragments,f=Object.keys(o),d=f.length;d--;){var a=o[f[d]];if((a==null?void 0:a.body.type)===u&&a.buffered){var h=a.body;if(h.start<=s&&s<=h.end)return h}}return null},n.detectEvictedFragments=function(s,u,o){var f=this;Object.keys(this.fragments).forEach(function(d){var a=f.fragments[d];if(!a)return;if(!a.buffered){a.body.type===o&&f.removeFragment(a.body);return}var h=a.range[s];if(!h)return;h.time.some(function(g){var p=!f.isTimeBuffered(g.startPTS,g.endPTS,u);return p&&f.removeFragment(a.body),p})})},n.detectPartialFragments=function(s){var u=this,o=this.timeRanges,f=s.frag,d=s.part;if(!o||f.sn==="initSegment")return;var a=c(f),h=this.fragments[a];if(!h)return;Object.keys(o).forEach(function(g){var p=f.elementaryStreams[g];if(!p)return;var S=o[g],w=d!==null||p.partial===!0;h.range[g]=u.getBufferedTimes(f,d,w,S)}),h.backtrack=h.loaded=null,Object.keys(h.range).length?h.buffered=!0:this.removeFragment(h.body)},n.fragBuffered=function(s){var u=c(s),o=this.fragments[u];o&&(o.backtrack=o.loaded=null,o.buffered=!0)},n.getBufferedTimes=function(s,u,o,f){for(var d={time:[],partial:o},a=u?u.start:s.start,h=u?u.end:s.end,g=s.minEndPTS||h,p=s.maxStartPTS||a,S=0;S<f.length;S++){var w=f.start(S)-this.bufferPadding,B=f.end(S)+this.bufferPadding;if(p>=w&&g<=B){d.time.push({startPTS:Math.max(a,f.start(S)),endPTS:Math.min(h,f.end(S))});break}else if(a<B&&h>w)d.partial=!0,d.time.push({startPTS:Math.max(a,f.start(S)),endPTS:Math.min(h,f.end(S))});else if(h<=w)break}return d},n.getPartialFragment=function(s){var u=null,o,f,d,a=0,h=this.bufferPadding,g=this.fragments;return Object.keys(g).forEach(function(p){var S=g[p];if(!S)return;m(S)&&(f=S.body.start-h,d=S.body.end+h,s>=f&&s<=d&&(o=Math.min(s-f,d-s),a<=o&&(u=S.body,a=o)))}),u},n.getState=function(s){var u=c(s),o=this.fragments[u];return o?o.buffered?m(o)?_.PARTIAL:_.OK:o.backtrack?_.BACKTRACKED:_.APPENDING:_.NOT_LOADED},n.backtrack=function(s,u){var o=c(s),f=this.fragments[o];if(!f||f.backtrack)return null;var d=f.backtrack=u||f.loaded;return f.loaded=null,d},n.getBacktrackData=function(s){var u=c(s),o=this.fragments[u];if(o){var f,d=o.backtrack;if(d!=null&&(f=d.payload)!==null&&f!==void 0&&f.byteLength)return d;this.removeFragment(s)}return null},n.isTimeBuffered=function(s,u,o){for(var f,d,a=0;a<o.length;a++){if(f=o.start(a)-this.bufferPadding,d=o.end(a)+this.bufferPadding,s>=f&&u<=d)return!0;if(u<=f)return!1}return!1},n.onFragLoaded=function(s,u){var o=u.frag,f=u.part;if(o.sn==="initSegment"||o.bitrateTest||f)return;var d=c(o);this.fragments[d]={body:o,loaded:u,backtrack:null,buffered:!1,range:Object.create(null)}},n.onBufferAppended=function(s,u){var o=this,f=u.frag,d=u.part,a=u.timeRanges;if(f.type===E.PlaylistLevelType.MAIN)if(this.activeFragment=f,d){var h=this.activeParts;h||(this.activeParts=h=[]),h.push(d)}else this.activeParts=null;this.timeRanges=a,Object.keys(a).forEach(function(g){var p=a[g];if(o.detectEvictedFragments(g,p),!d)for(var S=0;S<p.length;S++)f.appendedPTS=Math.max(p.end(S),f.appendedPTS||0)})},n.onFragBuffered=function(s,u){this.detectPartialFragments(u)},n.hasFragment=function(s){var u=c(s);return!!this.fragments[u]},n.removeFragmentsInRange=function(s,u,o){var f=this;Object.keys(this.fragments).forEach(function(d){var a=f.fragments[d];if(!a)return;if(a.buffered){var h=a.body;h.type===o&&h.start<u&&h.end>s&&f.removeFragment(h)}})},n.removeFragment=function(s){var u=c(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 m(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 c(r){return r.type+"_"+r.level+"_"+r.urlId+"_"+r.sn}},"./src/controller/gap-controller.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"STALL_MINIMUM_DURATION_MS",function(){return m}),P.d(Y,"MAX_START_GAP_JUMP",function(){return c}),P.d(Y,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return r}),P.d(Y,"SKIP_BUFFER_RANGE_START",function(){return n}),P.d(Y,"default",function(){return e});var y=P("./src/utils/buffer-helper.ts"),E=P("./src/errors.ts"),_=P("./src/events.ts"),C=P("./src/utils/logger.ts"),m=250,c=2,r=.1,n=.05,e=function(){function s(o,f,d,a){this.config=void 0,this.media=void 0,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=o,this.media=f,this.fragmentTracker=d,this.hls=a}var u=s.prototype;return u.destroy=function(){this.hls=this.fragmentTracker=this.media=null},u.poll=function(f){var d=this.config,a=this.media,h=this.stalled,g=a.currentTime,p=a.seeking,S=this.seeking&&!p,w=!this.seeking&&p;if(this.seeking=p,g!==f){if(this.moved=!0,h!==null){if(this.stallReported){var B=self.performance.now()-h;C.logger.warn("playback not stuck anymore @"+g+", after "+Math.round(B)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((w||S)&&(this.stalled=null),a.paused||a.ended||a.playbackRate===0||!y.BufferHelper.getBuffered(a).length)return;var b=y.BufferHelper.bufferInfo(a,g,0),A=b.len>0,l=b.nextStart||0;if(!A&&!l)return;if(p){var i=b.len>c,x=!l||l-g>c&&!this.fragmentTracker.getPartialFragment(g);if(i||x)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var O,T=Math.max(l,b.start||0)-g,D=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,R=D==null||((O=D.details)===null||O===void 0)?void 0:O.live,k=R?D.details.targetduration*2:c;if(T>0&&T<=k){this._trySkipBufferHole(null);return}}var H=self.performance.now();if(h===null){this.stalled=H;return}var J=H-h;!p&&J>=m&&this._reportStall(b.len);var U=y.BufferHelper.bufferInfo(a,g,d.maxBufferHole);this._tryFixBufferStall(U,J)},u._tryFixBufferStall=function(f,d){var a=this.config,h=this.fragmentTracker,g=this.media,p=g.currentTime,S=h.getPartialFragment(p);if(S){var w=this._trySkipBufferHole(S);if(w)return}f.len>a.maxBufferHole&&d>a.highBufferWatchdogPeriod*1e3&&(C.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},u._reportStall=function(f){var d=this.hls,a=this.media,h=this.stallReported;h||(this.stallReported=!0,C.logger.warn("Playback stalling at @"+a.currentTime+" due to low buffer (buffer="+f+")"),d.trigger(_.Events.ERROR,{type:E.ErrorTypes.MEDIA_ERROR,details:E.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:f}))},u._trySkipBufferHole=function(f){for(var d=this.config,a=this.hls,h=this.media,g=h.currentTime,p=0,S=y.BufferHelper.getBuffered(h),w=0;w<S.length;w++){var B=S.start(w);if(g+d.maxBufferHole>=p&&g<B){var b=Math.max(B+n,h.currentTime+r);return C.logger.warn("skipping hole, adjusting currentTime from "+g+" to "+b),this.moved=!0,this.stalled=null,h.currentTime=b,f&&a.trigger(_.Events.ERROR,{type:E.ErrorTypes.MEDIA_ERROR,details:E.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+g+" to "+b,frag:f}),b}p=S.end(w)}return 0},u._tryNudgeBuffer=function(){var f=this.config,d=this.hls,a=this.media,h=a.currentTime,g=(this.nudgeRetry||0)+1;if(this.nudgeRetry=g,g<f.nudgeMaxRetry){var p=h+g*f.nudgeOffset;C.logger.warn("Nudging 'currentTime' from "+h+" to "+p),a.currentTime=p,d.trigger(_.Events.ERROR,{type:E.ErrorTypes.MEDIA_ERROR,details:E.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else C.logger.error("Playhead still not moving while enough data buffered @"+h+" after "+f.nudgeMaxRetry+" nudges"),d.trigger(_.Events.ERROR,{type:E.ErrorTypes.MEDIA_ERROR,details:E.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},s}()},"./src/controller/id3-track-controller.ts":function(ue,Y,P){"use strict";P.r(Y);var y=P("./src/events.ts"),E=P("./src/utils/texttrack-utils.ts"),_=P("./src/demux/id3.ts"),C=.25,m=function(){function c(n){this.hls=void 0,this.id3Track=null,this.media=null,this.hls=n,this._registerListeners()}var r=c.prototype;return r.destroy=function(){this._unregisterListeners()},r._registerListeners=function(){var e=this.hls;e.on(y.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(y.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(y.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},r._unregisterListeners=function(){var e=this.hls;e.off(y.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(y.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(y.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,o=s.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var f=self.WebKitDataCue||self.VTTCue||self.TextTrackCue,d=0;d<o.length;d++){var a=_.getID3Frames(o[d].data);if(a){var h=o[d].pts,g=d<o.length-1?o[d+1].pts:u.end,p=g-h;p<=0&&(g=h+C);for(var S=0;S<a.length;S++){var w=a[S];if(!_.isTimeStampFrame(w)){var B=new f(h,g,"");B.value=w,this.id3Track.addCue(B)}}}}},r.onBufferFlushing=function(e,s){var u=s.startOffset,o=s.endOffset,f=s.type;if(!f||f==="audio"){var d=this.id3Track;d&&Object(E.removeCuesInRange)(d,u,o)}},c}();Y.default=m},"./src/controller/latency-controller.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return c});var y=P("./src/errors.ts"),E=P("./src/events.ts"),_=P("./src/utils/logger.ts");function C(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 m(r,n,e){return n&&C(r.prototype,n),e&&C(r,e),r}var c=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 o=u.details;this.levelDetails=o,o.advanced&&this.timeupdate(),!o.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},n.onError=function(s,u){if(u.details!==y.ErrorDetails.BUFFER_STALLED_ERROR)return;this.stallCount++,_.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 o=this.computeLatency();if(o===null)return;this._latency=o;var f=this.config,d=f.lowLatencyMode,a=f.maxLiveSyncPlaybackRate;if(!d||a===1)return;var h=this.targetLatency;if(h===null)return;var g=o-h,p=Math.min(this.maxLatency,h+u.targetduration),S=g<p;if(u.live&&S&&g>.05&&this.forwardBufferLength>1){var w=Math.min(2,Math.max(1,a)),B=Math.round(2/(1+Math.exp(-.75*g-this.edgeStalled))*20)/20;s.playbackRate=Math.min(w,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},m(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,o=s.partHoldBack,f=s.targetduration,d=this.config,a=d.liveSyncDuration,h=d.liveSyncDurationCount,g=d.lowLatencyMode,p=this.hls.userConfig,S=g&&o||u;(p.liveSyncDuration||p.liveSyncDurationCount||S===0)&&(S=a!==void 0?a:h*f);var w=f,B=1;return S+Math.min(this.stallCount*B,w)}},{key:"liveSyncPosition",get:function(){var s=this.estimateLiveEdge(),u=this.targetLatency,o=this.levelDetails;if(s===null||u===null||o===null)return null;var f=o.edge,d=s-u-this.edgeStalled,a=f-o.totalduration,h=f-(this.config.lowLatencyMode&&o.partTarget||o.targetduration);return Math.min(Math.max(a,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 o=s.buffered.length;return o?s.buffered.end(o-1):u.edge-this.currentTime}}]),r}()},"./src/controller/level-controller.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return d});var y=P("./src/types/level.ts"),E=P("./src/events.ts"),_=P("./src/errors.ts"),C=P("./src/utils/codecs.ts"),m=P("./src/controller/level-helper.ts"),c=P("./src/controller/base-playlist-controller.ts"),r=P("./src/types/loader.ts");function n(){return n=Object.assign||function(a){for(var h=1;h<arguments.length;h++){var g=arguments[h];for(var p in g)Object.prototype.hasOwnProperty.call(g,p)&&(a[p]=g[p])}return a},n.apply(this,arguments)}function e(a,h){for(var g=0;g<h.length;g++){var p=h[g];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}function s(a,h,g){return h&&e(a.prototype,h),g&&e(a,g),a}function u(a,h){a.prototype=Object.create(h.prototype),a.prototype.constructor=a,o(a,h)}function o(a,h){return o=Object.setPrototypeOf||function(p,S){return p.__proto__=S,p},o(a,h)}var f=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),d=function(a){u(h,a);function h(p){var S;return S=a.call(this,p,"[level-controller]")||this,S._levels=[],S._firstLevel=-1,S._startLevel=void 0,S.currentLevelIndex=-1,S.manualLevelIndex=-1,S.onParsedComplete=void 0,S._registerListeners(),S}var g=h.prototype;return g._registerListeners=function(){var S=this.hls;S.on(E.Events.MANIFEST_LOADED,this.onManifestLoaded,this),S.on(E.Events.LEVEL_LOADED,this.onLevelLoaded,this),S.on(E.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),S.on(E.Events.FRAG_LOADED,this.onFragLoaded,this),S.on(E.Events.ERROR,this.onError,this)},g._unregisterListeners=function(){var S=this.hls;S.off(E.Events.MANIFEST_LOADED,this.onManifestLoaded,this),S.off(E.Events.LEVEL_LOADED,this.onLevelLoaded,this),S.off(E.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),S.off(E.Events.FRAG_LOADED,this.onFragLoaded,this),S.off(E.Events.ERROR,this.onError,this)},g.destroy=function(){this._unregisterListeners(),this.manualLevelIndex=-1,this._levels.length=0,a.prototype.destroy.call(this)},g.startLoad=function(){var S=this._levels;S.forEach(function(w){w.loadError=0}),a.prototype.startLoad.call(this)},g.onManifestLoaded=function(S,w){var B=[],b=[],A=[],l,i={},x,O=!1,T=!1,D=!1;if(w.levels.forEach(function(J){var U=J.attrs;O=O||!!(J.width&&J.height),T=T||!!J.videoCodec,D=D||!!J.audioCodec,f&&J.audioCodec&&J.audioCodec.indexOf("mp4a.40.34")!==-1&&(J.audioCodec=void 0);var K=J.bitrate+"-"+J.attrs.RESOLUTION+"-"+J.attrs.CODECS;x=i[K],x?x.url.push(J.url):(x=new y.Level(J),i[K]=x,B.push(x)),U&&(U.AUDIO&&Object(m.addGroupId)(x,"audio",U.AUDIO),U.SUBTITLES&&Object(m.addGroupId)(x,"text",U.SUBTITLES))}),(O||T)&&D&&(B=B.filter(function(J){var U=J.videoCodec,K=J.width,G=J.height;return!!U||!!(K&&G)})),B=B.filter(function(J){var U=J.audioCodec,K=J.videoCodec;return(!U||Object(C.isCodecSupportedInMp4)(U,"audio"))&&(!K||Object(C.isCodecSupportedInMp4)(K,"video"))}),w.audioTracks&&(b=w.audioTracks.filter(function(J){return!J.audioCodec||Object(C.isCodecSupportedInMp4)(J.audioCodec,"audio")}),Object(m.assignTrackIdsByGroup)(b)),w.subtitles&&(A=w.subtitles,Object(m.assignTrackIdsByGroup)(A)),B.length>0){l=B[0].bitrate,B.sort(function(J,U){return J.bitrate-U.bitrate}),this._levels=B;for(var R=0;R<B.length;R++)if(B[R].bitrate===l){this._firstLevel=R,this.log("manifest loaded, "+B.length+" level(s) found, first bitrate: "+l);break}var k=D&&!T,H={levels:B,audioTracks:b,subtitleTracks:A,firstLevel:this._firstLevel,stats:w.stats,audio:D,video:T,altAudio:!k&&b.some(function(J){return!!J.url})};this.hls.trigger(E.Events.MANIFEST_PARSED,H),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else this.hls.trigger(E.Events.ERROR,{type:_.ErrorTypes.MEDIA_ERROR,details:_.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:w.url,reason:"no level with compatible codecs found in manifest"})},g.onError=function(S,w){if(a.prototype.onError.call(this,S,w),w.fatal)return;var B=w.context,b=this._levels[this.currentLevelIndex];if(B&&(B.type===r.PlaylistContextType.AUDIO_TRACK&&b.audioGroupIds&&B.groupId===b.audioGroupIds[b.urlId]||B.type===r.PlaylistContextType.SUBTITLE_TRACK&&b.textGroupIds&&B.groupId===b.textGroupIds[b.urlId])){this.redundantFailover(this.currentLevelIndex);return}var A=!1,l=!0,i;switch(w.details){case _.ErrorDetails.FRAG_LOAD_ERROR:case _.ErrorDetails.FRAG_LOAD_TIMEOUT:case _.ErrorDetails.KEY_LOAD_ERROR:case _.ErrorDetails.KEY_LOAD_TIMEOUT:if(w.frag){var x=this._levels[w.frag.level];x?(x.fragmentError++,x.fragmentError>this.hls.config.fragLoadingMaxRetry&&(i=w.frag.level)):i=w.frag.level}break;case _.ErrorDetails.LEVEL_LOAD_ERROR:case _.ErrorDetails.LEVEL_LOAD_TIMEOUT:B&&(B.deliveryDirectives&&(l=!1),i=B.level),A=!0;break;case _.ErrorDetails.REMUX_ALLOC_ERROR:i=w.level,A=!0;break}i!==void 0&&this.recoverLevel(w,i,A,l)},g.recoverLevel=function(S,w,B,b){var A=S.details,l=this._levels[w];if(l.loadError++,B){var i=this.retryLoadingOrFail(S);if(i)S.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(b){var x=l.url.length;if(x>1&&l.loadError<x)S.levelRetry=!0,this.redundantFailover(w);else if(this.manualLevelIndex===-1){var O=w===0?this._levels.length-1:w-1;this.currentLevelIndex!==O&&this._levels[O].loadError===0&&(this.warn(A+": switch to "+O),S.levelRetry=!0,this.hls.nextAutoLevel=O)}}},g.redundantFailover=function(S){var w=this._levels[S],B=w.url.length;if(B>1){var b=(w.urlId+1)%B;this.warn("Switching to redundant URL-id "+b),this._levels.forEach(function(A){A.urlId=b}),this.level=S}},g.onFragLoaded=function(S,w){var B=w.frag;if(B!==void 0&&B.type===r.PlaylistLevelType.MAIN){var b=this._levels[B.level];b!==void 0&&(b.fragmentError=0,b.loadError=0)}},g.onLevelLoaded=function(S,w){var B,b=w.level,A=w.details,l=this._levels[b];if(!l){var i;this.warn("Invalid level index "+b),(i=w.deliveryDirectives)!==null&&i!==void 0&&i.skip&&(A.deltaUpdateFailed=!0);return}b===this.currentLevelIndex?(l.fragmentError===0&&(l.loadError=0,this.retryCount=0),this.playlistLoaded(b,w,l.details)):(B=w.deliveryDirectives)!==null&&B!==void 0&&B.skip&&(A.deltaUpdateFailed=!0)},g.onAudioTrackSwitched=function(S,w){var B=this.hls.levels[this.currentLevelIndex];if(!B)return;if(B.audioGroupIds){for(var b=-1,A=this.hls.audioTracks[w.id].groupId,l=0;l<B.audioGroupIds.length;l++)if(B.audioGroupIds[l]===A){b=l;break}b!==B.urlId&&(B.urlId=b,this.startLoad())}},g.loadPlaylist=function(S){var w=this.currentLevelIndex,B=this._levels[w];if(this.canLoad&&B&&B.url.length>0){var b=B.urlId,A=B.url[b];if(S)try{A=S.addDirectives(A)}catch(l){this.warn("Could not construct new URL with HLS Delivery Directives: "+l)}this.log("Attempt loading level index "+w+(S?" at sn "+S.msn+" part "+S.part:"")+" with URL-id "+b+" "+A),this.clearTimer(),this.hls.trigger(E.Events.LEVEL_LOADING,{url:A,level:w,id:b,deliveryDirectives:S||null})}},g.removeLevel=function(S,w){var B=function(l,i){return i!==w},b=this._levels.filter(function(A,l){return l!==S?!0:A.url.length>1&&w!==void 0?(A.url=A.url.filter(B),A.audioGroupIds&&(A.audioGroupIds=A.audioGroupIds.filter(B)),A.textGroupIds&&(A.textGroupIds=A.textGroupIds.filter(B)),A.urlId=0,!0):!1}).map(function(A,l){var i=A.details;return i!=null&&i.fragments&&i.fragments.forEach(function(x){x.level=l}),A});this._levels=b,this.hls.trigger(E.Events.LEVELS_UPDATED,{levels:b})},s(h,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(S){var w,B=this._levels;if(B.length===0)return;if(this.currentLevelIndex===S&&(w=B[S])!==null&&w!==void 0&&w.details)return;if(S<0||S>=B.length){var b=S<0;if(this.hls.trigger(E.Events.ERROR,{type:_.ErrorTypes.OTHER_ERROR,details:_.ErrorDetails.LEVEL_SWITCH_ERROR,level:S,fatal:b,reason:"invalid level idx"}),b)return;S=Math.min(S,B.length-1)}this.clearTimer();var A=this.currentLevelIndex,l=B[A],i=B[S];this.log("switching to level "+S+" from "+A),this.currentLevelIndex=S;var x=n({},i,{level:S,maxBitrate:i.maxBitrate,uri:i.uri,urlId:i.urlId});delete x._urlId,this.hls.trigger(E.Events.LEVEL_SWITCHING,x);var O=i.details;if(!O||O.live){var T=this.switchParams(i.uri,l==null?void 0:l.details);this.loadPlaylist(T)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(S){this.manualLevelIndex=S,this._startLevel===void 0&&(this._startLevel=S),S!==-1&&(this.level=S)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(S){this._firstLevel=S}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var S=this.hls.config.startLevel;return S!==void 0?S:this._firstLevel}else return this._startLevel},set:function(S){this._startLevel=S}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(S){this.level=S,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=S)}}]),h}(c.default)},"./src/controller/level-helper.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"addGroupId",function(){return _}),P.d(Y,"assignTrackIdsByGroup",function(){return C}),P.d(Y,"updatePTS",function(){return m}),P.d(Y,"updateFragPTSDTS",function(){return r}),P.d(Y,"mergeDetails",function(){return n}),P.d(Y,"mapPartIntersection",function(){return e}),P.d(Y,"mapFragmentIntersection",function(){return s}),P.d(Y,"adjustSliding",function(){return u}),P.d(Y,"addSliding",function(){return o}),P.d(Y,"computeReloadInterval",function(){return f}),P.d(Y,"getFragmentWithSN",function(){return d}),P.d(Y,"getPartWith",function(){return a});var y=P("./src/polyfills/number.ts"),E=P("./src/utils/logger.ts");function _(h,g,p){switch(g){case"audio":h.audioGroupIds||(h.audioGroupIds=[]),h.audioGroupIds.push(p);break;case"text":h.textGroupIds||(h.textGroupIds=[]),h.textGroupIds.push(p);break}}function C(h){var g={};h.forEach(function(p){var S=p.groupId||"";p.id=g[S]=g[S]||0,g[S]++})}function m(h,g,p){var S=h[g],w=h[p];c(S,w)}function c(h,g){var p=g.startPTS;if(Object(y.isFiniteNumber)(p)){var S=0,w;g.sn>h.sn?(S=p-h.start,w=h):(S=h.start-p,w=g),w.duration!==S&&(w.duration=S)}else if(g.sn>h.sn){var B=h.cc===g.cc;B&&h.minEndPTS?g.start=h.start+(h.minEndPTS-h.start):g.start=h.start+h.duration}else g.start=Math.max(h.start-g.duration,0)}function r(h,g,p,S,w,B){var b=S-p;b<=0&&(E.logger.warn("Fragment should have a positive duration",g),S=p+g.duration,B=w+g.duration);var A=p,l=S,i=g.startPTS,x=g.endPTS;if(Object(y.isFiniteNumber)(i)){var O=Math.abs(i-p);Object(y.isFiniteNumber)(g.deltaPTS)?g.deltaPTS=Math.max(O,g.deltaPTS):g.deltaPTS=O,A=Math.max(p,i),p=Math.min(p,i),w=Math.min(w,g.startDTS),l=Math.min(S,x),S=Math.max(S,x),B=Math.max(B,g.endDTS)}g.duration=S-p;var T=p-g.start;g.appendedPTS=S,g.start=g.startPTS=p,g.maxStartPTS=A,g.startDTS=w,g.endPTS=S,g.minEndPTS=l,g.endDTS=B;var D=g.sn;if(!h||D<h.startSN||D>h.endSN)return 0;var R,k=D-h.startSN,H=h.fragments;for(H[k]=g,R=k;R>0;R--)c(H[R],H[R-1]);for(R=k;R<H.length-1;R++)c(H[R],H[R+1]);return h.fragmentHint&&c(H[H.length-1],h.fragmentHint),h.PTSKnown=h.alignedSliding=!0,T}function n(h,g){for(var p=null,S=h.fragments,w=S.length-1;w>=0;w--){var B=S[w].initSegment;if(B){p=B;break}}h.fragmentHint&&delete h.fragmentHint.endPTS;var b=0,A;if(s(h,g,function(R,k){R.relurl&&(b=R.cc-k.cc),Object(y.isFiniteNumber)(R.startPTS)&&Object(y.isFiniteNumber)(R.endPTS)&&(k.start=k.startPTS=R.startPTS,k.startDTS=R.startDTS,k.appendedPTS=R.appendedPTS,k.maxStartPTS=R.maxStartPTS,k.endPTS=R.endPTS,k.endDTS=R.endDTS,k.minEndPTS=R.minEndPTS,k.duration=R.endPTS-R.startPTS,k.duration&&(A=k),g.PTSKnown=g.alignedSliding=!0),k.elementaryStreams=R.elementaryStreams,k.loader=R.loader,k.stats=R.stats,k.urlId=R.urlId,R.initSegment&&(k.initSegment=R.initSegment,p=R.initSegment)}),p){var l=g.fragmentHint?g.fragments.concat(g.fragmentHint):g.fragments;l.forEach(function(R){var k;(!R.initSegment||R.initSegment.relurl===((k=p)===null||k===void 0?void 0:k.relurl))&&(R.initSegment=p)})}if(g.skippedSegments&&(g.deltaUpdateFailed=g.fragments.some(function(R){return!R}),g.deltaUpdateFailed)){E.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var i=g.skippedSegments;i--;)g.fragments.shift();g.startSN=g.fragments[0].sn,g.startCC=g.fragments[0].cc}var x=g.fragments;if(b){E.logger.warn("discontinuity sliding from playlist, take drift into account");for(var O=0;O<x.length;O++)x[O].cc+=b}g.skippedSegments&&(g.startCC=g.fragments[0].cc),e(h.partList,g.partList,function(R,k){k.elementaryStreams=R.elementaryStreams,k.stats=R.stats}),A?r(g,A,A.startPTS,A.endPTS,A.startDTS,A.endDTS):u(h,g),x.length&&(g.totalduration=g.edge-x[0].start),g.driftStartTime=h.driftStartTime,g.driftStart=h.driftStart;var T=g.advancedDateTime;if(g.advanced&&T){var D=g.edge;g.driftStart||(g.driftStartTime=T,g.driftStart=D),g.driftEndTime=T,g.driftEnd=D}else g.driftEndTime=h.driftEndTime,g.driftEnd=h.driftEnd,g.advancedDateTime=h.advancedDateTime}function e(h,g,p){if(h&&g)for(var S=0,w=0,B=h.length;w<=B;w++){var b=h[w],A=g[w+S];b&&A&&b.index===A.index&&b.fragment.sn===A.fragment.sn?p(b,A):S--}}function s(h,g,p){for(var S=g.skippedSegments,w=Math.max(h.startSN,g.startSN)-g.startSN,B=(h.fragmentHint?1:0)+(S?g.endSN:Math.min(h.endSN,g.endSN))-g.startSN,b=g.startSN-h.startSN,A=g.fragmentHint?g.fragments.concat(g.fragmentHint):g.fragments,l=h.fragmentHint?h.fragments.concat(h.fragmentHint):h.fragments,i=w;i<=B;i++){var x=l[b+i],O=A[i];S&&!O&&i<S&&(O=g.fragments[i]=x),x&&O&&p(x,O)}}function u(h,g){var p=g.startSN+g.skippedSegments-h.startSN,S=h.fragments;if(p<0||p>=S.length)return;o(g,S[p].start)}function o(h,g){if(g){for(var p=h.fragments,S=h.skippedSegments;S<p.length;S++)p[S].start+=g;h.fragmentHint&&(h.fragmentHint.start+=g)}}function f(h,g){var p=1e3*h.levelTargetDuration,S=p/2,w=h.age,B=w>0&&w<p*3,b=g.loading.end-g.loading.start,A,l=h.availabilityDelay;if(h.updated===!1)if(B){var i=333*h.misses;A=Math.max(Math.min(S,b*2),i),h.availabilityDelay=(h.availabilityDelay||0)+A}else A=S;else B?(l=Math.min(l||p/2,w),h.availabilityDelay=l,A=l+p-w):A=p-b;return Math.round(A)}function d(h,g,p){if(!h||!h.details)return null;var S=h.details,w=S.fragments[g-S.startSN];return w||(w=S.fragmentHint,w&&w.sn===g?w:g<S.startSN&&p&&p.sn===g?p:null)}function a(h,g,p){if(!h||!h.details)return null;var S=h.details.partList;if(S)for(var w=S.length;w--;){var B=S[w];if(B.index===p&&B.fragment.sn===g)return B}return null}},"./src/controller/stream-controller.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return S});var y=P("./src/polyfills/number.ts"),E=P("./src/controller/base-stream-controller.ts"),_=P("./src/is-supported.ts"),C=P("./src/events.ts"),m=P("./src/utils/buffer-helper.ts"),c=P("./src/controller/fragment-tracker.ts"),r=P("./src/types/loader.ts"),n=P("./src/loader/fragment.ts"),e=P("./src/demux/transmuxer-interface.ts"),s=P("./src/types/transmuxer.ts"),u=P("./src/controller/gap-controller.ts"),o=P("./src/errors.ts"),f=P("./src/utils/logger.ts");function d(w,B){for(var b=0;b<B.length;b++){var A=B[b];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(w,A.key,A)}}function a(w,B,b){return B&&d(w.prototype,B),b&&d(w,b),w}function h(w,B){w.prototype=Object.create(B.prototype),w.prototype.constructor=w,g(w,B)}function g(w,B){return g=Object.setPrototypeOf||function(A,l){return A.__proto__=l,A},g(w,B)}var p=100,S=function(w){h(B,w);function B(A,l){var i;return i=w.call(this,A,l,"[stream-controller]")||this,i.audioCodecSwap=!1,i.gapController=null,i.level=-1,i._forceStartLoad=!1,i.altAudio=!1,i.audioOnly=!1,i.fragPlaying=null,i.onvplaying=null,i.onvseeked=null,i.fragLastKbps=0,i.stalled=!1,i.couldBacktrack=!1,i.audioCodecSwitch=!1,i.videoBuffer=null,i._registerListeners(),i}var b=B.prototype;return b._registerListeners=function(){var l=this.hls;l.on(C.Events.MEDIA_ATTACHED,this.onMediaAttached,this),l.on(C.Events.MEDIA_DETACHING,this.onMediaDetaching,this),l.on(C.Events.MANIFEST_LOADING,this.onManifestLoading,this),l.on(C.Events.MANIFEST_PARSED,this.onManifestParsed,this),l.on(C.Events.LEVEL_LOADING,this.onLevelLoading,this),l.on(C.Events.LEVEL_LOADED,this.onLevelLoaded,this),l.on(C.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),l.on(C.Events.ERROR,this.onError,this),l.on(C.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),l.on(C.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),l.on(C.Events.BUFFER_CREATED,this.onBufferCreated,this),l.on(C.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),l.on(C.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),l.on(C.Events.FRAG_BUFFERED,this.onFragBuffered,this)},b._unregisterListeners=function(){var l=this.hls;l.off(C.Events.MEDIA_ATTACHED,this.onMediaAttached,this),l.off(C.Events.MEDIA_DETACHING,this.onMediaDetaching,this),l.off(C.Events.MANIFEST_LOADING,this.onManifestLoading,this),l.off(C.Events.MANIFEST_PARSED,this.onManifestParsed,this),l.off(C.Events.LEVEL_LOADED,this.onLevelLoaded,this),l.off(C.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),l.off(C.Events.ERROR,this.onError,this),l.off(C.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),l.off(C.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),l.off(C.Events.BUFFER_CREATED,this.onBufferCreated,this),l.off(C.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),l.off(C.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),l.off(C.Events.FRAG_BUFFERED,this.onFragBuffered,this)},b.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},b.startLoad=function(l){if(this.levels){var i=this.lastCurrentTime,x=this.hls;if(this.stopLoad(),this.setInterval(p),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var O=x.startLevel;O===-1&&(x.config.testBandwidth?(O=0,this.bitrateTest=!0):O=x.nextAutoLevel),this.level=x.nextLoadLevel=O,this.loadedmetadata=!1}i>0&&l===-1&&(this.log("Override startPosition with lastCurrentTime @"+i.toFixed(3)),l=i),this.state=E.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=l,this.tick()}else this._forceStartLoad=!0,this.state=E.State.STOPPED},b.stopLoad=function(){this._forceStartLoad=!1,w.prototype.stopLoad.call(this)},b.doTick=function(){switch(this.state){case E.State.IDLE:this.doTickIdle();break;case E.State.WAITING_LEVEL:{var l,i=this.levels,x=this.level,O=i==null||((l=i[x])===null||l===void 0)?void 0:l.details;if(O&&(!O.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(O))break;this.state=E.State.IDLE;break}break}case E.State.FRAG_LOADING_WAITING_RETRY:{var T,D=self.performance.now(),R=this.retryDate;(!R||D>=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()},b.onTickEnd=function(){w.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},b.doTickIdle=function(){var l,i,x=this.hls,O=this.levelLastLoaded,T=this.levels,D=this.media,R=x.config,k=x.nextLoadLevel;if(O===null||!D&&(this.startFragRequested||!R.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!T||!T[k])return;var H=T[k];this.level=x.nextLoadLevel=k;var J=H.details;if(!J||this.state===E.State.WAITING_LEVEL||J.live&&this.levelLastLoaded!==k){this.state=E.State.WAITING_LEVEL;return}var U=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:D,r.PlaylistLevelType.MAIN);if(U===null)return;var K=U.len,G=this.getMaxBufferLength(H.maxBitrate);if(K>=G)return;if(this._streamEnded(U,J)){var N={};this.altAudio&&(N.type="video"),this.hls.trigger(C.Events.BUFFER_EOS,N),this.state=E.State.ENDED;return}var Q=U.end,X=this.getNextFragment(Q,J);if(this.couldBacktrack&&!this.fragPrevious&&X&&X.sn!=="initSegment"){var te=X.sn-J.startSN;te>1&&(X=J.fragments[te-1],this.fragmentTracker.removeFragment(X))}if(X&&this.fragmentTracker.getState(X)===c.FragmentState.OK&&this.nextLoadPosition>Q){var oe=this.audioOnly&&!this.altAudio?n.ElementaryStreamTypes.AUDIO:n.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(D,oe,r.PlaylistLevelType.MAIN),X=this.getNextFragment(this.nextLoadPosition,J)}if(!X)return;X.initSegment&&!X.initSegment.data&&!this.bitrateTest&&(X=X.initSegment),((l=X.decryptdata)===null||l===void 0?void 0:l.keyFormat)==="identity"&&!((i=X.decryptdata)!==null&&i!==void 0&&i.key)?this.loadKey(X,J):this.loadFragment(X,J,Q)},b.loadFragment=function(l,i,x){var O,T=this.fragmentTracker.getState(l);if(this.fragCurrent=l,T===c.FragmentState.BACKTRACKED){var D=this.fragmentTracker.getBacktrackData(l);if(D){this._handleFragmentLoadProgress(D),this._handleFragmentLoadComplete(D);return}else T=c.FragmentState.NOT_LOADED}T===c.FragmentState.NOT_LOADED||T===c.FragmentState.PARTIAL?l.sn==="initSegment"?this._loadInitSegment(l):this.bitrateTest?(l.bitrateTest=!0,this.log("Fragment "+l.sn+" of level "+l.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(l)):(this.startFragRequested=!0,w.prototype.loadFragment.call(this,l,i,x)):T===c.FragmentState.APPENDING?this.reduceMaxBufferLength(l.duration)&&this.fragmentTracker.removeFragment(l):((O=this.media)===null||O===void 0?void 0:O.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},b.getAppendedFrag=function(l){var i=this.fragmentTracker.getAppendedFrag(l,r.PlaylistLevelType.MAIN);return i&&"fragment"in i?i.fragment:i},b.getBufferedFrag=function(l){return this.fragmentTracker.getBufferedFrag(l,r.PlaylistLevelType.MAIN)},b.followingBufferedFrag=function(l){return l?this.getBufferedFrag(l.end+.5):null},b.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},b.nextLevelSwitch=function(){var l=this.levels,i=this.media;if(i!=null&&i.readyState){var x,O=this.getAppendedFrag(i.currentTime);if(O&&O.start>1&&this.flushMainBuffer(0,O.start-1),!i.paused&&l){var T=this.hls.nextLoadLevel,D=l[T],R=this.fragLastKbps;R&&this.fragCurrent?x=this.fragCurrent.duration*D.maxBitrate/(1e3*R)+1:x=0}else x=0;var k=this.getBufferedFrag(i.currentTime+x);if(k){var H=this.followingBufferedFrag(k);if(H){this.abortCurrentFrag();var J=H.maxStartPTS?H.maxStartPTS:H.start,U=H.duration,K=Math.max(k.end,J+Math.min(Math.max(U-this.config.maxFragLookUpTolerance,U*.5),U*.75));this.flushMainBuffer(K,Number.POSITIVE_INFINITY)}}}},b.abortCurrentFrag=function(){var l=this.fragCurrent;this.fragCurrent=null,l!=null&&l.loader&&l.loader.abort(),this.state===E.State.KEY_LOADING&&(this.state=E.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},b.flushMainBuffer=function(l,i){w.prototype.flushMainBuffer.call(this,l,i,this.altAudio?"video":null)},b.onMediaAttached=function(l,i){w.prototype.onMediaAttached.call(this,l,i);var x=i.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),x.addEventListener("playing",this.onvplaying),x.addEventListener("seeked",this.onvseeked),this.gapController=new u.default(this.config,x,this.fragmentTracker,this.hls)},b.onMediaDetaching=function(){var l=this.media;l&&(l.removeEventListener("playing",this.onvplaying),l.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),w.prototype.onMediaDetaching.call(this)},b.onMediaPlaying=function(){this.tick()},b.onMediaSeeked=function(){var l=this.media,i=l?l.currentTime:null;Object(y.isFiniteNumber)(i)&&this.log("Media seeked to "+i.toFixed(3)),this.tick()},b.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(C.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},b.onManifestParsed=function(l,i){var x=!1,O=!1,T;i.levels.forEach(function(D){T=D.audioCodec,T&&(T.indexOf("mp4a.40.2")!==-1&&(x=!0),T.indexOf("mp4a.40.5")!==-1&&(O=!0))}),this.audioCodecSwitch=x&&O&&!Object(_.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=i.levels,this.startFragRequested=!1},b.onLevelLoading=function(l,i){var x=this.levels;if(!x||this.state!==E.State.IDLE)return;var O=x[i.level];(!O.details||O.details.live&&this.levelLastLoaded!==i.level||this.waitForCdnTuneIn(O.details))&&(this.state=E.State.WAITING_LEVEL)},b.onLevelLoaded=function(l,i){var x,O=this.levels,T=i.level,D=i.details,R=D.totalduration;if(!O){this.warn("Levels were reset while loading level "+T);return}this.log("Level "+T+" loaded ["+D.startSN+","+D.endSN+"], cc ["+D.startCC+", "+D.endCC+"] duration:"+R);var k=this.fragCurrent;k&&(this.state===E.State.FRAG_LOADING||this.state===E.State.FRAG_LOADING_WAITING_RETRY)&&(k.level!==i.level&&k.loader&&(this.state=E.State.IDLE,k.loader.abort()));var H=O[T],J=0;if(D.live||(x=H.details)!==null&&x!==void 0&&x.live){if(D.fragments[0]||(D.deltaUpdateFailed=!0),D.deltaUpdateFailed)return;J=this.alignPlaylists(D,H.details)}if(H.details=D,this.levelLastLoaded=T,this.hls.trigger(C.Events.LEVEL_UPDATED,{details:D,level:T}),this.state===E.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(D))return;this.state=E.State.IDLE}this.startFragRequested?D.live&&this.synchronizeToLiveEdge(D):this.setStartPosition(D,J),this.tick()},b._handleFragmentLoadProgress=function(l){var i,x=l.frag,O=l.part,T=l.payload,D=this.levels;if(!D){this.warn("Levels were reset while fragment load was in progress. Fragment "+x.sn+" of level "+x.level+" will not be buffered");return}var R=D[x.level],k=R.details;if(!k){this.warn("Dropping fragment "+x.sn+" of level "+x.level+" after level details were reset");return}var H=R.videoCodec,J=k.PTSKnown||!k.live,U=(i=x.initSegment)===null||i===void 0?void 0:i.data,K=this._getAudioCodec(R),G=this.transmuxer=this.transmuxer||new e.default(this.hls,r.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),N=O?O.index:-1,Q=N!==-1,X=new s.ChunkMetadata(x.level,x.sn,x.stats.chunkCount,T.byteLength,N,Q),te=this.initPTS[x.cc];G.push(T,U,K,H,x,O,k.totalduration,J,X,te)},b.onAudioTrackSwitching=function(l,i){var x=this.altAudio,O=!!i.url,T=i.id;if(!O){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var D=this.fragCurrent;D!=null&&D.loader&&(this.log("Switching to main audio track, cancel main fragment load"),D.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var R=this.hls;x&&R.trigger(C.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),R.trigger(C.Events.AUDIO_TRACK_SWITCHED,{id:T})}},b.onAudioTrackSwitched=function(l,i){var x=i.id,O=!!this.hls.audioTracks[x].url;if(O){var T=this.videoBuffer;T&&this.mediaBuffer!==T&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=T)}this.altAudio=O,this.tick()},b.onBufferCreated=function(l,i){var x=i.tracks,O,T,D=!1;for(var R in x){var k=x[R];if(k.id==="main"){if(T=R,O=k,R==="video"){var H=x[R];H&&(this.videoBuffer=H.buffer)}}else D=!0}D&&O?(this.log("Alternate track found, use "+T+".buffered to schedule main fragment loading"),this.mediaBuffer=O.buffer):this.mediaBuffer=this.media},b.onFragBuffered=function(l,i){var x=i.frag,O=i.part;if(x&&x.type!==r.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(x)){this.warn("Fragment "+x.sn+(O?" p: "+O.index:"")+" of level "+x.level+" finished buffering, but was aborted. state: "+this.state),this.state===E.State.PARSED&&(this.state=E.State.IDLE);return}var T=O?O.stats:x.stats;this.fragLastKbps=Math.round(8*T.total/(T.buffering.end-T.loading.first)),x.sn!=="initSegment"&&(this.fragPrevious=x),this.fragBufferedComplete(x,O)},b.onError=function(l,i){switch(i.details){case o.ErrorDetails.FRAG_LOAD_ERROR:case o.ErrorDetails.FRAG_LOAD_TIMEOUT:case o.ErrorDetails.KEY_LOAD_ERROR:case o.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(r.PlaylistLevelType.MAIN,i);break;case o.ErrorDetails.LEVEL_LOAD_ERROR:case o.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==E.State.ERROR&&(i.fatal?(this.warn(""+i.details),this.state=E.State.ERROR):!i.levelRetry&&this.state===E.State.WAITING_LEVEL&&(this.state=E.State.IDLE));break;case o.ErrorDetails.BUFFER_FULL_ERROR:if(i.parent==="main"&&(this.state===E.State.PARSING||this.state===E.State.PARSED)){var x=!0,O=this.getFwdBufferInfo(this.media,r.PlaylistLevelType.MAIN);O&&O.len>.5&&(x=!this.reduceMaxBufferLength(O.len)),x&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},b.checkBuffer=function(){var l=this.media,i=this.gapController;if(!l||!i||!l.readyState)return;var x=m.BufferHelper.getBuffered(l);!this.loadedmetadata&&x.length?(this.loadedmetadata=!0,this.seekToStartPos()):i.poll(this.lastCurrentTime),this.lastCurrentTime=l.currentTime},b.onFragLoadEmergencyAborted=function(){this.state=E.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},b.onBufferFlushed=function(l,i){var x=i.type;if(x!==n.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var O=(x===n.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(O,x,r.PlaylistLevelType.MAIN)}},b.onLevelsUpdated=function(l,i){this.levels=i.levels},b.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},b.seekToStartPos=function(){var l=this.media,i=l.currentTime,x=this.startPosition;if(x>=0&&i<x){if(l.seeking){f.logger.log("could not seek to "+x+", already seeking at "+i);return}var O=m.BufferHelper.getBuffered(l),T=O.length?O.start(0):0,D=T-x;D>0&&(D<this.config.maxBufferHole||D<this.config.maxFragLookUpTolerance)&&(f.logger.log("adjusting start position by "+D+" to match buffer start"),x+=D,this.startPosition=x),this.log("seek to target start position "+x+" from current time "+i),l.currentTime=x}},b._getAudioCodec=function(l){var i=this.config.defaultAudioCodec||l.audioCodec;return this.audioCodecSwap&&i&&(this.log("Swapping audio codec"),i.indexOf("mp4a.40.5")!==-1?i="mp4a.40.2":i="mp4a.40.5"),i},b._loadBitrateTestFrag=function(l){var i=this;this._doFragLoad(l).then(function(x){var O=i.hls;if(!x||O.nextLoadLevel||i.fragContextChanged(l))return;i.fragLoadError=0,i.state=E.State.IDLE,i.startFragRequested=!1,i.bitrateTest=!1;var T=l.stats;T.parsing.start=T.parsing.end=T.buffering.start=T.buffering.end=self.performance.now(),O.trigger(C.Events.FRAG_LOADED,x)})},b._handleTransmuxComplete=function(l){var i,x="main",O=this.hls,T=l.remuxResult,D=l.chunkMeta,R=this.getCurrentContext(D);if(!R){this.warn("The loading context changed while buffering fragment "+D.sn+" of level "+D.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(D.level);return}var k=R.frag,H=R.part,J=R.level,U=T.video,K=T.text,G=T.id3,N=T.initSegment,Q=this.altAudio?void 0:T.audio;if(this.fragContextChanged(k))return;if(this.state=E.State.PARSING,N){N.tracks&&(this._bufferInitSegment(J,N.tracks,k,D),O.trigger(C.Events.FRAG_PARSING_INIT_SEGMENT,{frag:k,id:x,tracks:N.tracks}));var X=N.initPTS,te=N.timescale;Object(y.isFiniteNumber)(X)&&(this.initPTS[k.cc]=X,O.trigger(C.Events.INIT_PTS_FOUND,{frag:k,id:x,initPTS:X,timescale:te}))}if(U&&T.independent!==!1){if(J.details){var oe=U.startPTS,me=U.endPTS,se=U.startDTS,_e=U.endDTS;if(H)H.elementaryStreams[U.type]={startPTS:oe,endPTS:me,startDTS:se,endDTS:_e};else if(U.firstKeyFrame&&U.independent&&(this.couldBacktrack=!0),U.dropped&&U.independent){var Ae=this.getLoadPosition()+this.config.maxBufferHole;if(Ae<oe){this.backtrack(k);return}k.setElementaryStreamInfo(U.type,k.start,me,k.start,_e,!0)}k.setElementaryStreamInfo(U.type,oe,me,se,_e),this.bufferFragmentData(U,k,H,D)}}else if(T.independent===!1){this.backtrack(k);return}if(Q){var Ee=Q.startPTS,pe=Q.endPTS,he=Q.startDTS,ie=Q.endDTS;H&&(H.elementaryStreams[n.ElementaryStreamTypes.AUDIO]={startPTS:Ee,endPTS:pe,startDTS:he,endDTS:ie}),k.setElementaryStreamInfo(n.ElementaryStreamTypes.AUDIO,Ee,pe,he,ie),this.bufferFragmentData(Q,k,H,D)}if(G!=null&&(i=G.samples)!==null&&i!==void 0&&i.length){var fe={frag:k,id:x,samples:G.samples};O.trigger(C.Events.FRAG_PARSING_METADATA,fe)}if(K){var ge={frag:k,id:x,samples:K.samples};O.trigger(C.Events.FRAG_PARSING_USERDATA,ge)}},b._bufferInitSegment=function(l,i,x,O){var T=this;if(this.state!==E.State.PARSING)return;this.audioOnly=!!i.audio&&!i.video,this.altAudio&&!this.audioOnly&&delete i.audio;var D=i.audio,R=i.video,k=i.audiovideo;if(D){var H=l.audioCodec,J=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(H&&(H.indexOf("mp4a.40.5")!==-1?H="mp4a.40.2":H="mp4a.40.5"),D.metadata.channelCount!==1&&J.indexOf("firefox")===-1&&(H="mp4a.40.5")),J.indexOf("android")!==-1&&D.container!=="audio/mpeg"&&(H="mp4a.40.2",this.log("Android: force audio codec to "+H)),l.audioCodec&&l.audioCodec!==H&&this.log('Swapping manifest audio codec "'+l.audioCodec+'" for "'+H+'"'),D.levelCodec=H,D.id="main",this.log("Init audio buffer, container:"+D.container+", codecs[selected/level/parsed]=["+(H||"")+"/"+(l.audioCodec||"")+"/"+D.codec+"]")}R&&(R.levelCodec=l.videoCodec,R.id="main",this.log("Init video buffer, container:"+R.container+", codecs[level/parsed]=["+(l.videoCodec||"")+"/"+R.codec+"]")),k&&this.log("Init audiovideo buffer, container:"+k.container+", codecs[level/parsed]=["+(l.attrs.CODECS||"")+"/"+k.codec+"]"),this.hls.trigger(C.Events.BUFFER_CODECS,i),Object.keys(i).forEach(function(U){var K=i[U],G=K.initSegment;G!=null&&G.byteLength&&T.hls.trigger(C.Events.BUFFER_APPENDING,{type:U,data:G,frag:x,part:null,chunkMeta:O,parent:x.type})}),this.tick()},b.backtrack=function(l){this.couldBacktrack=!0,this.resetTransmuxer(),this.flushBufferGap(l);var i=this.fragmentTracker.backtrack(l);this.fragPrevious=null,this.nextLoadPosition=l.start,i?this.resetFragmentLoading(l):this.state=E.State.BACKTRACKING},b.checkFragmentChanged=function(){var l=this.media,i=null;if(l&&l.readyState>1&&l.seeking===!1){var x=l.currentTime;if(m.BufferHelper.isBuffered(l,x)?i=this.getAppendedFrag(x):m.BufferHelper.isBuffered(l,x+.1)&&(i=this.getAppendedFrag(x+.1)),i){var O=this.fragPlaying,T=i.level;(!O||i.sn!==O.sn||O.level!==T||i.urlId!==O.urlId)&&(this.hls.trigger(C.Events.FRAG_CHANGED,{frag:i}),(!O||O.level!==T)&&this.hls.trigger(C.Events.LEVEL_SWITCHED,{level:T}),this.fragPlaying=i)}}},a(B,[{key:"nextLevel",get:function(){var l=this.nextBufferedFrag;return l?l.level:-1}},{key:"currentLevel",get:function(){var l=this.media;if(l){var i=this.getAppendedFrag(l.currentTime);if(i)return i.level}return-1}},{key:"nextBufferedFrag",get:function(){var l=this.media;if(l){var i=this.getAppendedFrag(l.currentTime);return this.followingBufferedFrag(i)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),B}(E.default)},"./src/controller/subtitle-stream-controller.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"SubtitleStreamController",function(){return h});var y=P("./src/events.ts"),E=P("./src/utils/logger.ts"),_=P("./src/utils/buffer-helper.ts"),C=P("./src/controller/fragment-finders.ts"),m=P("./src/utils/discontinuities.ts"),c=P("./src/controller/level-helper.ts"),r=P("./src/controller/fragment-tracker.ts"),n=P("./src/controller/base-stream-controller.ts"),e=P("./src/types/loader.ts"),s=P("./src/types/level.ts");function u(g,p){for(var S=0;S<p.length;S++){var w=p[S];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(g,w.key,w)}}function o(g,p,S){return p&&u(g.prototype,p),S&&u(g,S),g}function f(g,p){g.prototype=Object.create(p.prototype),g.prototype.constructor=g,d(g,p)}function d(g,p){return d=Object.setPrototypeOf||function(w,B){return w.__proto__=B,w},d(g,p)}var a=500,h=function(g){f(p,g);function p(w,B){var b;return b=g.call(this,w,B,"[subtitle-stream-controller]")||this,b.levels=[],b.currentTrackId=-1,b.tracksBuffered=[],b.mainDetails=null,b._registerListeners(),b}var S=p.prototype;return S.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},S._registerListeners=function(){var B=this.hls;B.on(y.Events.MEDIA_ATTACHED,this.onMediaAttached,this),B.on(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),B.on(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),B.on(y.Events.LEVEL_LOADED,this.onLevelLoaded,this),B.on(y.Events.ERROR,this.onError,this),B.on(y.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),B.on(y.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),B.on(y.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),B.on(y.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),B.on(y.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},S._unregisterListeners=function(){var B=this.hls;B.off(y.Events.MEDIA_ATTACHED,this.onMediaAttached,this),B.off(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),B.off(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),B.off(y.Events.LEVEL_LOADED,this.onLevelLoaded,this),B.off(y.Events.ERROR,this.onError,this),B.off(y.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),B.off(y.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),B.off(y.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),B.off(y.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),B.off(y.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},S.startLoad=function(){this.stopLoad(),this.state=n.State.IDLE,this.setInterval(a),this.tick()},S.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},S.onLevelLoaded=function(B,b){this.mainDetails=b.details},S.onSubtitleFragProcessed=function(B,b){var A=b.frag,l=b.success;if(this.fragPrevious=A,this.state=n.State.IDLE,!l)return;var i=this.tracksBuffered[this.currentTrackId];if(!i)return;for(var x,O=A.start,T=0;T<i.length;T++)if(O>=i[T].start&&O<=i[T].end){x=i[T];break}var D=A.start+A.duration;x?x.end=D:(x={start:O,end:D},i.push(x)),this.fragmentTracker.fragBuffered(A)},S.onBufferFlushing=function(B,b){var A=b.startOffset,l=b.endOffset;if(A===0&&l!==Number.POSITIVE_INFINITY){var i=this.currentTrackId,x=this.levels;if(!x.length||!x[i]||!x[i].details)return;var O=x[i].details,T=O.targetduration,D=l-T;if(D<=0)return;b.endOffsetSubtitles=Math.max(0,D),this.tracksBuffered.forEach(function(R){for(var k=0;k<R.length;){if(R[k].end<=D){R.shift();continue}else if(R[k].start<D)R[k].start=D;else break;k++}}),this.fragmentTracker.removeFragmentsInRange(A,D,e.PlaylistLevelType.SUBTITLE)}},S.onError=function(B,b){var A,l=b.frag;if(!l||l.type!==e.PlaylistLevelType.SUBTITLE)return;(A=this.fragCurrent)!==null&&A!==void 0&&A.loader&&this.fragCurrent.loader.abort(),this.state=n.State.IDLE},S.onSubtitleTracksUpdated=function(B,b){var A=this,l=b.subtitleTracks;this.tracksBuffered=[],this.levels=l.map(function(i){return new s.Level(i)}),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach(function(i){A.tracksBuffered[i.id]=[]}),this.mediaBuffer=null},S.onSubtitleTrackSwitch=function(B,b){if(this.currentTrackId=b.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var A=this.levels[this.currentTrackId];A!=null&&A.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,A&&this.setInterval(a)},S.onSubtitleTrackLoaded=function(B,b){var A,l=b.details,i=b.id,x=this.currentTrackId,O=this.levels;if(!O.length)return;var T=O[x];if(i>=O.length||i!==x||!T)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,l.live||(A=T.details)!==null&&A!==void 0&&A.live){var D=this.mainDetails;if(l.deltaUpdateFailed||!D)return;var R=D.fragments[0];if(!T.details)l.hasProgramDateTime&&D.hasProgramDateTime?Object(m.alignMediaPlaylistByPDT)(l,D):R&&Object(c.addSliding)(l,R.start);else{var k=this.alignPlaylists(l,T.details);k===0&&R&&Object(c.addSliding)(l,R.start)}}if(T.details=l,this.levelLastLoaded=i,this.tick(),l.live&&!this.fragCurrent&&this.media&&this.state===n.State.IDLE){var H=Object(C.findFragmentByPTS)(null,l.fragments,this.media.currentTime,0);H||(this.warn("Subtitle playlist not aligned with playback"),T.details=void 0)}},S._handleFragmentLoadComplete=function(B){var b=B.frag,A=B.payload,l=b.decryptdata,i=this.hls;if(this.fragContextChanged(b))return;if(A&&A.byteLength>0&&l&&l.key&&l.iv&&l.method==="AES-128"){var x=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(A),l.key.buffer,l.iv.buffer).then(function(O){var T=performance.now();i.trigger(y.Events.FRAG_DECRYPTED,{frag:b,payload:O,stats:{tstart:x,tdecrypt:T}})})}},S.doTick=function(){if(!this.media){this.state=n.State.IDLE;return}if(this.state===n.State.IDLE){var B,b=this.currentTrackId,A=this.levels;if(!A.length||!A[b]||!A[b].details)return;var l=A[b].details,i=l.targetduration,x=this.config,O=this.media,T=_.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,O.currentTime-i,x.maxBufferHole),D=T.end,R=T.len,k=this.getMaxBufferLength()+i;if(R>k)return;console.assert(l,"Subtitle track details are defined on idle subtitle stream controller tick");var H=l.fragments,J=H.length,U=l.edge,K,G=this.fragPrevious;if(D<U){var N=x.maxFragLookUpTolerance;G&&l.hasProgramDateTime&&(K=Object(C.findFragmentByPDT)(H,G.endProgramDateTime,N)),K||(K=Object(C.findFragmentByPTS)(G,H,D,N),!K&&G&&G.start<H[0].start&&(K=H[0]))}else K=H[J-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(y.Events.KEY_LOADING,{frag:K})):K&&this.fragmentTracker.getState(K)===r.FragmentState.NOT_LOADED&&this.loadFragment(K,l,D)}},S.loadFragment=function(B,b,A){this.fragCurrent=B,g.prototype.loadFragment.call(this,B,b,A)},o(p,[{key:"mediaBufferTimeRanges",get:function(){return this.tracksBuffered[this.currentTrackId]||[]}}]),p}(n.default)},"./src/controller/subtitle-track-controller.ts":function(ue,Y,P){"use strict";P.r(Y);var y=P("./src/events.ts"),E=P("./src/utils/texttrack-utils.ts"),_=P("./src/controller/base-playlist-controller.ts"),C=P("./src/types/loader.ts");function m(u,o){for(var f=0;f<o.length;f++){var d=o[f];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(u,d.key,d)}}function c(u,o,f){return o&&m(u.prototype,o),f&&m(u,f),u}function r(u,o){u.prototype=Object.create(o.prototype),u.prototype.constructor=u,n(u,o)}function n(u,o){return n=Object.setPrototypeOf||function(d,a){return d.__proto__=a,d},n(u,o)}var e=function(u){r(o,u);function o(d){var a;return a=u.call(this,d,"[subtitle-track-controller]")||this,a.media=null,a.tracks=[],a.groupId=null,a.tracksInGroup=[],a.trackId=-1,a.selectDefaultTrack=!0,a.queuedDefaultTrack=-1,a.trackChangeListener=function(){return a.onTextTracksChanged()},a.asyncPollTrackChange=function(){return a.pollTrackChange(0)},a.useTextTrackPolling=!1,a.subtitlePollingInterval=-1,a.subtitleDisplay=!0,a.registerListeners(),a}var f=o.prototype;return f.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,u.prototype.destroy.call(this)},f.registerListeners=function(){var a=this.hls;a.on(y.Events.MEDIA_ATTACHED,this.onMediaAttached,this),a.on(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),a.on(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),a.on(y.Events.MANIFEST_PARSED,this.onManifestParsed,this),a.on(y.Events.LEVEL_LOADING,this.onLevelLoading,this),a.on(y.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),a.on(y.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),a.on(y.Events.ERROR,this.onError,this)},f.unregisterListeners=function(){var a=this.hls;a.off(y.Events.MEDIA_ATTACHED,this.onMediaAttached,this),a.off(y.Events.MEDIA_DETACHING,this.onMediaDetaching,this),a.off(y.Events.MANIFEST_LOADING,this.onManifestLoading,this),a.off(y.Events.MANIFEST_PARSED,this.onManifestParsed,this),a.off(y.Events.LEVEL_LOADING,this.onLevelLoading,this),a.off(y.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),a.off(y.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),a.off(y.Events.ERROR,this.onError,this)},f.onMediaAttached=function(a,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)},f.pollTrackChange=function(a){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,a)},f.onMediaDetaching=function(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var a=s(this.media.textTracks);a.forEach(function(h){Object(E.clearCurrentCues)(h)}),this.subtitleTrack=-1,this.media=null},f.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},f.onManifestParsed=function(a,h){this.tracks=h.subtitleTracks},f.onSubtitleTrackLoaded=function(a,h){var g=h.id,p=h.details,S=this.trackId,w=this.tracksInGroup[S];if(!w){this.warn("Invalid subtitle track id "+g);return}var B=w.details;w.details=h.details,this.log("subtitle track "+g+" loaded ["+p.startSN+"-"+p.endSN+"]"),g===this.trackId&&(this.retryCount=0,this.playlistLoaded(g,h,B))},f.onLevelLoading=function(a,h){this.switchLevel(h.level)},f.onLevelSwitching=function(a,h){this.switchLevel(h.level)},f.switchLevel=function(a){var h=this.hls.levels[a];if(!(h!=null&&h.textGroupIds))return;var g=h.textGroupIds[h.urlId];if(this.groupId!==g){var p=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,S=this.tracks.filter(function(b){return!g||b.groupId===g});this.tracksInGroup=S;var w=this.findTrackId(p==null?void 0:p.name)||this.findTrackId();this.groupId=g;var B={subtitleTracks:S};this.log("Updating subtitle tracks, "+S.length+' track(s) found in "'+g+'" group-id'),this.hls.trigger(y.Events.SUBTITLE_TRACKS_UPDATED,B),w!==-1&&this.setSubtitleTrack(w,p)}},f.findTrackId=function(a){for(var h=this.tracksInGroup,g=0;g<h.length;g++){var p=h[g];if((!this.selectDefaultTrack||p.default)&&(!a||a===p.name))return p.id}return-1},f.onError=function(a,h){if(u.prototype.onError.call(this,a,h),h.fatal||!h.context)return;h.context.type===C.PlaylistContextType.SUBTITLE_TRACK&&h.context.id===this.trackId&&h.context.groupId===this.groupId&&this.retryLoadingOrFail(h)},f.loadPlaylist=function(a){var h=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(h)){var g=h.id,p=h.groupId,S=h.url;if(a)try{S=a.addDirectives(S)}catch(w){this.warn("Could not construct new URL with HLS Delivery Directives: "+w)}this.log("Loading subtitle playlist for id "+g),this.hls.trigger(y.Events.SUBTITLE_TRACK_LOADING,{url:S,id:g,groupId:p,deliveryDirectives:a||null})}},f.toggleTrackModes=function(a){var h=this,g=this.media,p=this.subtitleDisplay,S=this.trackId;if(!g)return;var w=s(g.textTracks),B=w.filter(function(l){return l.groupId===h.groupId});if(a===-1)[].slice.call(w).forEach(function(l){l.mode="disabled"});else{var b=B[S];b&&(b.mode="disabled")}var A=B[a];A&&(A.mode=p?"showing":"hidden")},f.setSubtitleTrack=function(a,h){var g,p=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=a;return}if(this.trackId!==a&&this.toggleTrackModes(a),this.trackId===a&&(a===-1||(g=p[a])!==null&&g!==void 0&&g.details)||a<-1||a>=p.length)return;this.clearTimer();var S=p[a];if(this.log("Switching to subtitle track "+a),this.trackId=a,S){var w=S.id,B=S.groupId,b=B===void 0?"":B,A=S.name,l=S.type,i=S.url;this.hls.trigger(y.Events.SUBTITLE_TRACK_SWITCH,{id:w,groupId:b,name:A,type:l,url:i});var x=this.switchParams(S.url,h==null?void 0:h.details);this.loadPlaylist(x)}else this.hls.trigger(y.Events.SUBTITLE_TRACK_SWITCH,{id:a})},f.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var a=-1,h=s(this.media.textTracks),g=0;g<h.length;g++)if(h[g].mode==="hidden")a=g;else if(h[g].mode==="showing"){a=g;break}this.subtitleTrack!==a&&(this.subtitleTrack=a)},c(o,[{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(a){this.selectDefaultTrack=!1;var h=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(a,h)}}]),o}(_.default);function s(u){for(var o=[],f=0;f<u.length;f++){var d=u[f];d.kind==="subtitles"&&d.label&&o.push(u[f])}return o}Y.default=e},"./src/controller/timeline-controller.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"TimelineController",function(){return s});var y=P("./src/polyfills/number.ts"),E=P("./src/events.ts"),_=P("./src/utils/cea-608-parser.ts"),C=P("./src/utils/output-filter.ts"),m=P("./src/utils/webvtt-parser.ts"),c=P("./src/utils/texttrack-utils.ts"),r=P("./src/utils/imsc1-ttml-parser.ts"),n=P("./src/types/loader.ts"),e=P("./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=f(),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 g=new C.default(this,"textTrack1"),p=new C.default(this,"textTrack2"),S=new C.default(this,"textTrack3"),w=new C.default(this,"textTrack4");this.cea608Parser1=new _.default(1,g,p),this.cea608Parser2=new _.default(3,S,w)}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 a=d.prototype;return a.destroy=function(){var g=this.hls;g.off(E.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),g.off(E.Events.MEDIA_DETACHING,this.onMediaDetaching,this),g.off(E.Events.MANIFEST_LOADING,this.onManifestLoading,this),g.off(E.Events.MANIFEST_LOADED,this.onManifestLoaded,this),g.off(E.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),g.off(E.Events.FRAG_LOADING,this.onFragLoading,this),g.off(E.Events.FRAG_LOADED,this.onFragLoaded,this),g.off(E.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),g.off(E.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),g.off(E.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),g.off(E.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),g.off(E.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},a.addCues=function(g,p,S,w,B){for(var b=!1,A=B.length;A--;){var l=B[A],i=o(l[0],l[1],p,S);if(i>=0&&(l[0]=Math.min(l[0],p),l[1]=Math.max(l[1],S),b=!0,i/(S-p)>.5))return}if(b||B.push([p,S]),this.config.renderTextTracksNatively){var x=this.captionsTracks[g];this.Cues.newCue(x,p,S,w)}else{var O=this.Cues.newCue(null,p,S,w);this.hls.trigger(E.Events.CUES_PARSED,{type:"captions",cues:O,track:g})}},a.onInitPtsFound=function(g,p){var S=this,w=p.frag,B=p.id,b=p.initPTS,A=p.timescale,l=this.unparsedVttFrags;B==="main"&&(this.initPTS[w.cc]=b,this.timescale[w.cc]=A),l.length&&(this.unparsedVttFrags=[],l.forEach(function(i){S.onFragLoaded(E.Events.FRAG_LOADED,i)}))},a.getExistingTrack=function(g){var p=this.media;if(p)for(var S=0;S<p.textTracks.length;S++){var w=p.textTracks[S];if(w[g])return w}return null},a.createCaptionsTrack=function(g){this.config.renderTextTracksNatively?this.createNativeTrack(g):this.createNonNativeTrack(g)},a.createNativeTrack=function(g){if(this.captionsTracks[g])return;var p=this.captionsProperties,S=this.captionsTracks,w=this.media,B=p[g],b=B.label,A=B.languageCode,l=this.getExistingTrack(g);if(l)S[g]=l,Object(c.clearCurrentCues)(S[g]),Object(c.sendAddTrackEvent)(S[g],w);else{var i=this.createTextTrack("captions",b,A);i&&(i[g]=!0,S[g]=i)}},a.createNonNativeTrack=function(g){if(this.nonNativeCaptionsTracks[g])return;var p=this.captionsProperties[g];if(!p)return;var S=p.label,w={_id:g,label:S,kind:"captions",default:p.media?!!p.media.default:!1,closedCaptions:p.media};this.nonNativeCaptionsTracks[g]=w,this.hls.trigger(E.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[w]})},a.createTextTrack=function(g,p,S){var w=this.media;return w?w.addTextTrack(g,p,S):void 0},a.onMediaAttaching=function(g,p){this.media=p.media,this._cleanTracks()},a.onMediaDetaching=function(){var g=this.captionsTracks;Object.keys(g).forEach(function(p){Object(c.clearCurrentCues)(g[p]),delete g[p]}),this.nonNativeCaptionsTracks={}},a.onManifestLoading=function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=f(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=this.unparsedVttFrags||[],this.initPTS=[],this.timescale=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())},a._cleanTracks=function(){var g=this.media;if(!g)return;var p=g.textTracks;if(p)for(var S=0;S<p.length;S++)Object(c.clearCurrentCues)(p[S])},a.onSubtitleTracksUpdated=function(g,p){var S=this;this.textTracks=[];var w=p.subtitleTracks||[],B=w.some(function(i){return i.textCodec===r.IMSC1_CODEC});if(this.config.enableWebVTT||B&&this.config.enableIMSC1){var b=this.tracks&&w&&this.tracks.length===w.length;if(this.tracks=w||[],this.config.renderTextTracksNatively){var A=this.media?this.media.textTracks:[];this.tracks.forEach(function(i,x){var O;if(x<A.length){for(var T=null,D=0;D<A.length;D++)if(u(A[D],i)){T=A[D];break}T&&(O=T)}O?Object(c.clearCurrentCues)(O):(O=S.createTextTrack("subtitles",i.name,i.lang),O&&(O.mode="disabled")),O&&(O.groupId=i.groupId,S.textTracks.push(O))})}else if(!b&&this.tracks&&this.tracks.length){var l=this.tracks.map(function(i){return{label:i.name,kind:i.type.toLowerCase(),default:i.default,subtitleTrack:i}});this.hls.trigger(E.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:l})}}},a.onManifestLoaded=function(g,p){var S=this;this.config.enableCEA708Captions&&p.captions&&p.captions.forEach(function(w){var B=/(?:CC|SERVICE)([1-4])/.exec(w.instreamId);if(!B)return;var b="textTrack"+B[1],A=S.captionsProperties[b];if(!A)return;A.label=w.name,w.lang&&(A.languageCode=w.lang),A.media=w})},a.onFragLoading=function(g,p){var S=this.cea608Parser1,w=this.cea608Parser2,B=this.lastSn,b=this.lastPartIndex;if(!this.enabled||!(S&&w))return;if(p.frag.type===n.PlaylistLevelType.MAIN){var A,l,i=p.frag.sn,x=(A=p==null||((l=p.part)===null||l===void 0)?void 0:l.index)!=null?A:-1;i===B+1||i===B&&x===b+1||(S.reset(),w.reset()),this.lastSn=i,this.lastPartIndex=x}},a.onFragLoaded=function(g,p){var S=p.frag,w=p.payload,B=this.initPTS,b=this.unparsedVttFrags;if(S.type===n.PlaylistLevelType.SUBTITLE)if(w.byteLength){if(!Object(y.isFiniteNumber)(B[S.cc])){b.push(p),B.length&&this.hls.trigger(E.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:S,error:new Error("Missing initial subtitle PTS")});return}var A=S.decryptdata;if(A==null||A.key==null||A.method!=="AES-128"){var l=this.tracks[S.level],i=this.vttCCs;i[S.cc]||(i[S.cc]={start:S.start,prevCC:this.prevCC,new:!0},this.prevCC=S.cc),l&&l.textCodec===r.IMSC1_CODEC?this._parseIMSC1(S,w):this._parseVTTs(S,w,i)}}else this.hls.trigger(E.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:S,error:new Error("Empty subtitle payload")})},a._parseIMSC1=function(g,p){var S=this,w=this.hls;Object(r.parseIMSC1)(p,this.initPTS[g.cc],this.timescale[g.cc],function(B){S._appendCues(B,g.level),w.trigger(E.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:g})},function(B){e.logger.log("Failed to parse IMSC1: "+B),w.trigger(E.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:g,error:B})})},a._parseVTTs=function(g,p,S){var w=this,B=this.hls;Object(m.parseWebVTT)(p,this.initPTS[g.cc],this.timescale[g.cc],S,g.cc,g.start,function(b){w._appendCues(b,g.level),B.trigger(E.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:g})},function(b){w._fallbackToIMSC1(g,p),e.logger.log("Failed to parse VTT cue: "+b),B.trigger(E.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:g,error:b})})},a._fallbackToIMSC1=function(g,p){var S=this,w=this.tracks[g.level];w.textCodec||Object(r.parseIMSC1)(p,this.initPTS[g.cc],this.timescale[g.cc],function(){w.textCodec=r.IMSC1_CODEC,S._parseIMSC1(g,p)},function(){w.textCodec="wvtt"})},a._appendCues=function(g,p){var S=this.hls;if(this.config.renderTextTracksNatively){var w=this.textTracks[p];if(w.mode==="disabled")return;g.forEach(function(A){return Object(c.addCueToTrack)(w,A)})}else{var B=this.tracks[p],b=B.default?"default":"subtitles"+p;S.trigger(E.Events.CUES_PARSED,{type:"subtitles",cues:g,track:b})}},a.onFragDecrypted=function(g,p){var S=p.frag;if(S.type===n.PlaylistLevelType.SUBTITLE){if(!Object(y.isFiniteNumber)(this.initPTS[S.cc])){this.unparsedVttFrags.push(p);return}this.onFragLoaded(E.Events.FRAG_LOADED,p)}},a.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},a.onFragParsingUserdata=function(g,p){var S=this.cea608Parser1,w=this.cea608Parser2;if(!this.enabled||!(S&&w))return;for(var B=0;B<p.samples.length;B++){var b=p.samples[B].bytes;if(b){var A=this.extractCea608Data(b);S.addData(p.samples[B].pts,A[0]),w.addData(p.samples[B].pts,A[1])}}},a.onBufferFlushing=function(g,p){var S=p.startOffset,w=p.endOffset,B=p.endOffsetSubtitles,b=p.type,A=this.media;if(!A||A.currentTime<w)return;if(!b||b==="video"){var l=this.captionsTracks;Object.keys(l).forEach(function(x){return Object(c.removeCuesInRange)(l[x],S,w)})}if(this.config.renderTextTracksNatively&&(S===0&&B!==void 0)){var i=this.textTracks;Object.keys(i).forEach(function(x){return Object(c.removeCuesInRange)(i[x],S,B)})}},a.extractCea608Data=function(g){for(var p=g[0]&31,S=2,w=[[],[]],B=0;B<p;B++){var b=g[S++],A=127&g[S++],l=127&g[S++],i=(4&b)!==0,x=3&b;if(A===0&&l===0)continue;i&&((x===0||x===1)&&(w[x].push(A),w[x].push(l)))}return w},d}();function u(d,a){return d&&d.label===a.name&&!(d.textTrack1||d.textTrack2)}function o(d,a,h,g){return Math.min(a,g)-Math.max(d,h)}function f(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}}}},"./src/crypt/aes-crypto.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return y});var y=function(){function E(C,m){this.subtle=void 0,this.aesIV=void 0,this.subtle=C,this.aesIV=m}var _=E.prototype;return _.decrypt=function(m,c){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},c,m)},E}()},"./src/crypt/aes-decryptor.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"removePadding",function(){return E}),P.d(Y,"default",function(){return _});var y=P("./src/utils/typed-array.ts");function E(C){var m=C.byteLength,c=m&&new DataView(C.buffer).getUint8(m-1);return c?Object(y.sliceUint8)(C,0,m-c):C}var _=function(){function C(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}var m=C.prototype;return m.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},m.initTable=function(){var r=this.sBox,n=this.invSBox,e=this.subMix,s=e[0],u=e[1],o=e[2],f=e[3],d=this.invSubMix,a=d[0],h=d[1],g=d[2],p=d[3],S=new Uint32Array(256),w=0,B=0,b=0;for(b=0;b<256;b++)b<128?S[b]=b<<1:S[b]=b<<1^283;for(b=0;b<256;b++){var A=B^B<<1^B<<2^B<<3^B<<4;A=A>>>8^A&255^99,r[w]=A,n[A]=w;var l=S[w],i=S[l],x=S[i],O=S[A]*257^A*16843008;s[w]=O<<24|O>>>8,u[w]=O<<16|O>>>16,o[w]=O<<8|O>>>24,f[w]=O,O=x*16843009^i*65537^l*257^w*16843008,a[A]=O<<24|O>>>8,h[A]=O<<16|O>>>16,g[A]=O<<8|O>>>24,p[A]=O,w?(w=l^S[S[S[x^l]]],B^=S[S[B]]):w=B=1}},m.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 o=this.ksRows=(u+6+1)*4,f,d,a=this.keySchedule=new Uint32Array(o),h=this.invKeySchedule=new Uint32Array(o),g=this.sBox,p=this.rcon,S=this.invSubMix,w=S[0],B=S[1],b=S[2],A=S[3],l,i;for(f=0;f<o;f++){if(f<u){l=a[f]=n[f];continue}i=l,f%u===0?(i=i<<8|i>>>24,i=g[i>>>24]<<24|g[i>>>16&255]<<16|g[i>>>8&255]<<8|g[i&255],i^=p[f/u|0]<<24):u>6&&f%u===4&&(i=g[i>>>24]<<24|g[i>>>16&255]<<16|g[i>>>8&255]<<8|g[i&255]),a[f]=l=(a[f-u]^i)>>>0}for(d=0;d<o;d++)f=o-d,d&3?i=a[f]:i=a[f-4],d<4||f<=4?h[d]=i:h[d]=w[g[i>>>24]]^B[g[i>>>16&255]]^b[g[i>>>8&255]]^A[g[i&255]],h[d]=h[d]>>>0},m.networkToHostOrderSwap=function(r){return r<<24|(r&65280)<<8|(r&16711680)>>8|r>>>24},m.decrypt=function(r,n,e){for(var s=this.keySize+6,u=this.invKeySchedule,o=this.invSBox,f=this.invSubMix,d=f[0],a=f[1],h=f[2],g=f[3],p=this.uint8ArrayToUint32Array_(e),S=p[0],w=p[1],B=p[2],b=p[3],A=new Int32Array(r),l=new Int32Array(A.length),i,x,O,T,D,R,k,H,J,U,K,G,N,Q,X=this.networkToHostOrderSwap;n<A.length;){for(J=X(A[n]),U=X(A[n+1]),K=X(A[n+2]),G=X(A[n+3]),D=J^u[0],R=G^u[1],k=K^u[2],H=U^u[3],N=4,Q=1;Q<s;Q++)i=d[D>>>24]^a[R>>16&255]^h[k>>8&255]^g[H&255]^u[N],x=d[R>>>24]^a[k>>16&255]^h[H>>8&255]^g[D&255]^u[N+1],O=d[k>>>24]^a[H>>16&255]^h[D>>8&255]^g[R&255]^u[N+2],T=d[H>>>24]^a[D>>16&255]^h[R>>8&255]^g[k&255]^u[N+3],D=i,R=x,k=O,H=T,N=N+4;i=o[D>>>24]<<24^o[R>>16&255]<<16^o[k>>8&255]<<8^o[H&255]^u[N],x=o[R>>>24]<<24^o[k>>16&255]<<16^o[H>>8&255]<<8^o[D&255]^u[N+1],O=o[k>>>24]<<24^o[H>>16&255]<<16^o[D>>8&255]<<8^o[R&255]^u[N+2],T=o[H>>>24]<<24^o[D>>16&255]<<16^o[R>>8&255]<<8^o[k&255]^u[N+3],l[n]=X(i^S),l[n+1]=X(T^w),l[n+2]=X(O^B),l[n+3]=X(x^b),S=J,w=U,B=K,b=G,n=n+4}return l.buffer},C}()},"./src/crypt/decrypter.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return n});var y=P("./src/crypt/aes-crypto.ts"),E=P("./src/crypt/fast-aes-key.ts"),_=P("./src/crypt/aes-decryptor.ts"),C=P("./src/utils/logger.ts"),m=P("./src/utils/mp4-tools.ts"),c=P("./src/utils/typed-array.ts"),r=16,n=function(){function e(u,o,f){var d=f===void 0?{}:f,a=d.removePKCS7Padding,h=a===void 0?!0:a;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=o,this.removePKCS7Padding=h,h)try{var g=self.crypto;g&&(this.subtle=g.subtle||g.webkitSubtle)}catch(p){}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 o=this.currentResult;if(!o){this.reset();return}var f=new Uint8Array(o);return this.reset(),this.removePKCS7Padding?Object(_.removePadding)(f):f},s.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},s.decrypt=function(o,f,d,a){if(this.config.enableSoftwareAES){this.softwareDecrypt(new Uint8Array(o),f,d);var h=this.flush();h&&a(h.buffer)}else this.webCryptoDecrypt(new Uint8Array(o),f,d).then(a)},s.softwareDecrypt=function(o,f,d){var a=this.currentIV,h=this.currentResult,g=this.remainderData;this.logOnce("JS AES decrypt"),g&&(o=Object(m.appendUint8Array)(g,o),this.remainderData=null);var p=this.getValidChunk(o);if(!p.length)return null;a&&(d=a);var S=this.softwareDecrypter;S||(S=this.softwareDecrypter=new _.default),S.expandKey(f);var w=h;return this.currentResult=S.decrypt(p.buffer,0,d),this.currentIV=Object(c.sliceUint8)(p,-16).buffer,w||null},s.webCryptoDecrypt=function(o,f,d){var a=this,h=this.subtle;return(this.key!==f||!this.fastAesKey)&&(this.key=f,this.fastAesKey=new E.default(h,f)),this.fastAesKey.expandKey().then(function(g){if(!h)return Promise.reject(new Error("web crypto not initialized"));var p=new y.default(h,d);return p.decrypt(o.buffer,g)}).catch(function(g){return a.onWebCryptoError(g,o,f,d)})},s.onWebCryptoError=function(o,f,d,a){return C.logger.warn("[decrypter.ts]: WebCrypto Error, disable WebCrypto API:",o),this.config.enableSoftwareAES=!0,this.logEnabled=!0,this.softwareDecrypt(f,d,a)},s.getValidChunk=function(o){var f=o,d=o.length-o.length%r;return d!==o.length&&(f=Object(c.sliceUint8)(o,0,d),this.remainderData=Object(c.sliceUint8)(o,d)),f},s.logOnce=function(o){if(!this.logEnabled)return;C.logger.log("[decrypter.ts]: "+o),this.logEnabled=!1},e}()},"./src/crypt/fast-aes-key.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return y});var y=function(){function E(C,m){this.subtle=void 0,this.key=void 0,this.subtle=C,this.key=m}var _=E.prototype;return _.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},E}()},"./src/demux/aacdemuxer.ts":function(ue,Y,P){"use strict";P.r(Y);var y=P("./src/demux/base-audio-demuxer.ts"),E=P("./src/demux/adts.ts"),_=P("./src/utils/logger.ts"),C=P("./src/demux/id3.ts");function m(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,c(n,e)}function c(n,e){return c=Object.setPrototypeOf||function(u,o){return u.__proto__=o,u},c(n,e)}var r=function(n){m(e,n);function e(u,o){var f;return f=n.call(this)||this,f.observer=void 0,f.config=void 0,f.observer=u,f.config=o,f}var s=e.prototype;return s.resetInitSegment=function(o,f,d){n.prototype.resetInitSegment.call(this,o,f,d),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!0,samples:[],manifestCodec:o,duration:d,inputTimeScale:9e4,dropped:0}},e.probe=function(o){if(!o)return!1;for(var f=C.getID3Data(o,0)||[],d=f.length,a=o.length;d<a;d++)if(E.probe(o,d))return _.logger.log("ADTS sync word found !"),!0;return!1},s.canParse=function(o,f){return E.canParse(o,f)},s.appendFrame=function(o,f,d){E.initTrackConfig(o,this.observer,f,d,o.manifestCodec);var a=E.appendFrame(o,f,d,this.initPTS,this.frameIndex);if(a&&a.missing===0)return a},e}(y.default);r.minProbeByteLength=9,Y.default=r},"./src/demux/adts.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"getAudioConfig",function(){return C}),P.d(Y,"isHeaderPattern",function(){return m}),P.d(Y,"getHeaderLength",function(){return c}),P.d(Y,"getFullFrameLength",function(){return r}),P.d(Y,"canGetFrameLength",function(){return n}),P.d(Y,"isHeader",function(){return e}),P.d(Y,"canParse",function(){return s}),P.d(Y,"probe",function(){return u}),P.d(Y,"initTrackConfig",function(){return o}),P.d(Y,"getFrameDuration",function(){return f}),P.d(Y,"parseFrameHeader",function(){return d}),P.d(Y,"appendFrame",function(){return a});var y=P("./src/utils/logger.ts"),E=P("./src/errors.ts"),_=P("./src/events.ts");function C(h,g,p,S){var w,B,b,A,l=navigator.userAgent.toLowerCase(),i=S,x=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];w=((g[p+2]&192)>>>6)+1;var O=(g[p+2]&60)>>>2;if(O>x.length-1){h.trigger(_.Events.ERROR,{type:E.ErrorTypes.MEDIA_ERROR,details:E.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+O});return}return b=(g[p+2]&1)<<2,b|=(g[p+3]&192)>>>6,y.logger.log("manifest codec:"+S+", ADTS type:"+w+", samplingIndex:"+O),/firefox/i.test(l)?O>=6?(w=5,A=new Array(4),B=O-3):(w=2,A=new Array(2),B=O):l.indexOf("android")!==-1?(w=2,A=new Array(2),B=O):(w=5,A=new Array(4),S&&(S.indexOf("mp4a.40.29")!==-1||S.indexOf("mp4a.40.5")!==-1)||!S&&O>=6?B=O-3:((S&&S.indexOf("mp4a.40.2")!==-1&&(O>=6&&b===1||/vivaldi/i.test(l))||!S&&b===1)&&(w=2,A=new Array(2)),B=O)),A[0]=w<<3,A[0]|=(O&14)>>1,A[1]|=(O&1)<<7,A[1]|=b<<3,w===5&&(A[1]|=(B&14)>>1,A[2]=(B&1)<<7,A[2]|=2<<2,A[3]=0),{config:A,samplerate:x[O],channelCount:b,codec:"mp4a.40."+w,manifestCodec:i}}function m(h,g){return h[g]===255&&(h[g+1]&246)===240}function c(h,g){return h[g+1]&1?7:9}function r(h,g){return(h[g+3]&3)<<11|h[g+4]<<3|(h[g+5]&224)>>>5}function n(h,g){return g+5<h.length}function e(h,g){return g+1<h.length&&m(h,g)}function s(h,g){return n(h,g)&&m(h,g)&&r(h,g)<=h.length-g}function u(h,g){if(e(h,g)){var p=c(h,g);if(g+p>=h.length)return!1;var S=r(h,g);if(S<=p)return!1;var w=g+S;return w===h.length||e(h,w)}return!1}function o(h,g,p,S,w){if(!h.samplerate){var B=C(g,p,S,w);if(!B)return;h.config=B.config,h.samplerate=B.samplerate,h.channelCount=B.channelCount,h.codec=B.codec,h.manifestCodec=B.manifestCodec,y.logger.log("parsed codec:"+h.codec+", rate:"+B.samplerate+", channels:"+B.channelCount)}}function f(h){return 1024*9e4/h}function d(h,g,p,S,w){var B=c(h,g),b=r(h,g);if(b-=B,b>0){var A=p+S*w;return{headerLength:B,frameLength:b,stamp:A}}}function a(h,g,p,S,w){var B=f(h.samplerate),b=d(g,p,S,w,B);if(b){var A=b.frameLength,l=b.headerLength,i=b.stamp,x=l+A,O=Math.max(0,p+x-g.length),T;O?(T=new Uint8Array(x-l),T.set(g.subarray(p+l,g.length),0)):T=g.subarray(p+l,p+x);var D={unit:T,pts:i};return O||h.samples.push(D),{sample:D,length:x,missing:O}}}},"./src/demux/base-audio-demuxer.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"initPTSFn",function(){return r});var y=P("./src/polyfills/number.ts"),E=P("./src/demux/id3.ts"),_=P("./src/demux/dummy-demuxed-track.ts"),C=P("./src/utils/mp4-tools.ts"),m=P("./src/utils/typed-array.ts"),c=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,o,f){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},e.resetTimeStamp=function(){},e.resetContiguity=function(){},e.canParse=function(u,o){return!1},e.appendFrame=function(u,o,f){},e.demux=function(u,o){this.cachedData&&(u=Object(C.appendUint8Array)(this.cachedData,u),this.cachedData=null);var f=E.getID3Data(u,0),d=f?f.length:0,a,h,g=this._audioTrack,p=this._id3Track,S=f?E.getTimeStamp(f):void 0,w=u.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=r(S,o)),f&&f.length>0&&p.samples.push({pts:this.initPTS,dts:this.initPTS,data:f}),h=this.initPTS;d<w;){if(this.canParse(u,d)){var B=this.appendFrame(g,u,d);B?(this.frameIndex++,h=B.sample.pts,d+=B.length,a=d):d=w}else E.canParse(u,d)?(f=E.getID3Data(u,d),p.samples.push({pts:h,dts:h,data:f}),d+=f.length,a=d):d++;if(d===w&&a!==w){var b=Object(m.sliceUint8)(u,a);this.cachedData?this.cachedData=Object(C.appendUint8Array)(this.cachedData,b):this.cachedData=b}}return{audioTrack:g,avcTrack:Object(_.dummyTrack)(),id3Track:p,textTrack:Object(_.dummyTrack)()}},e.demuxSampleAes=function(u,o,f){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},e.flush=function(u){var o=this.cachedData;return o&&(this.cachedData=null,this.demux(o,0)),this.frameIndex=0,{audioTrack:this._audioTrack,avcTrack:Object(_.dummyTrack)(),id3Track:this._id3Track,textTrack:Object(_.dummyTrack)()}},e.destroy=function(){},n}(),r=function(e,s){return Object(y.isFiniteNumber)(e)?e*90:s*9e4};Y.default=c},"./src/demux/chunk-cache.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return y});var y=function(){function _(){this.chunks=[],this.dataLength=0}var C=_.prototype;return C.push=function(c){this.chunks.push(c),this.dataLength+=c.length},C.flush=function(){var c=this.chunks,r=this.dataLength,n;if(c.length)c.length===1?n=c[0]:n=E(c,r);else return new Uint8Array(0);return this.reset(),n},C.reset=function(){this.chunks.length=0,this.dataLength=0},_}();function E(_,C){for(var m=new Uint8Array(C),c=0,r=0;r<_.length;r++){var n=_[r];m.set(n,c),c+=n.length}return m}},"./src/demux/dummy-demuxed-track.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"dummyTrack",function(){return y});function y(){return{type:"",id:-1,pid:-1,inputTimeScale:9e4,sequenceNumber:-1,samples:[],dropped:0}}},"./src/demux/exp-golomb.ts":function(ue,Y,P){"use strict";P.r(Y);var y=P("./src/utils/logger.ts"),E=function(){function _(m){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=m,this.bytesAvailable=m.byteLength,this.word=0,this.bitsAvailable=0}var C=_.prototype;return C.loadWord=function(){var c=this.data,r=this.bytesAvailable,n=c.byteLength-r,e=new Uint8Array(4),s=Math.min(4,r);if(s===0)throw new Error("no bytes available");e.set(c.subarray(n,n+s)),this.word=new DataView(e.buffer).getUint32(0),this.bitsAvailable=s*8,this.bytesAvailable-=s},C.skipBits=function(c){var r;this.bitsAvailable>c?(this.word<<=c,this.bitsAvailable-=c):(c-=this.bitsAvailable,r=c>>3,c-=r>>3,this.bytesAvailable-=r,this.loadWord(),this.word<<=c,this.bitsAvailable-=c)},C.readBits=function(c){var r=Math.min(this.bitsAvailable,c),n=this.word>>>32-r;return c>32&&y.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=c-r,r>0&&this.bitsAvailable?n<<r|this.readBits(r):n},C.skipLZ=function(){var c;for(c=0;c<this.bitsAvailable;++c)if((this.word&2147483648>>>c)!==0)return this.word<<=c,this.bitsAvailable-=c,c;return this.loadWord(),c+this.skipLZ()},C.skipUEG=function(){this.skipBits(1+this.skipLZ())},C.skipEG=function(){this.skipBits(1+this.skipLZ())},C.readUEG=function(){var c=this.skipLZ();return this.readBits(c+1)-1},C.readEG=function(){var c=this.readUEG();return 1&c?1+c>>>1:-1*(c>>>1)},C.readBoolean=function(){return this.readBits(1)===1},C.readUByte=function(){return this.readBits(8)},C.readUShort=function(){return this.readBits(16)},C.readUInt=function(){return this.readBits(32)},C.skipScalingList=function(c){for(var r=8,n=8,e,s=0;s<c;s++)n!==0&&(e=this.readEG(),n=(r+e+256)%256),r=n===0?r:n},C.readSPS=function(){var c=0,r=0,n=0,e=0,s,u,o,f=this.readUByte.bind(this),d=this.readBits.bind(this),a=this.readUEG.bind(this),h=this.readBoolean.bind(this),g=this.skipBits.bind(this),p=this.skipEG.bind(this),S=this.skipUEG.bind(this),w=this.skipScalingList.bind(this);f();var B=f();if(d(5),g(3),f(),S(),B===100||B===110||B===122||B===244||B===44||B===83||B===86||B===118||B===128){var b=a();if(b===3&&g(1),S(),S(),g(1),h())for(u=b!==3?8:12,o=0;o<u;o++)h()&&(o<6?w(16):w(64))}S();var A=a();if(A===0)a();else if(A===1)for(g(1),p(),p(),s=a(),o=0;o<s;o++)p();S(),g(1);var l=a(),i=a(),x=d(1);x===0&&g(1),g(1),h()&&(c=a(),r=a(),n=a(),e=a());var O=[1,1];if(h()&&h()){var T=f();switch(T){case 1:O=[1,1];break;case 2:O=[12,11];break;case 3:O=[10,11];break;case 4:O=[16,11];break;case 5:O=[40,33];break;case 6:O=[24,11];break;case 7:O=[20,11];break;case 8:O=[32,11];break;case 9:O=[80,33];break;case 10:O=[18,11];break;case 11:O=[15,11];break;case 12:O=[64,33];break;case 13:O=[160,99];break;case 14:O=[4,3];break;case 15:O=[3,2];break;case 16:O=[2,1];break;case 255:{O=[f()<<8|f(),f()<<8|f()];break}}}return{width:Math.ceil((l+1)*16-c*2-r*2),height:(2-x)*(i+1)*16-(x?2:4)*(n+e),pixelRatio:O}},C.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},_}();Y.default=E},"./src/demux/id3.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"isHeader",function(){return y}),P.d(Y,"isFooter",function(){return E}),P.d(Y,"getID3Data",function(){return _}),P.d(Y,"canParse",function(){return m}),P.d(Y,"getTimeStamp",function(){return c}),P.d(Y,"isTimeStampFrame",function(){return r}),P.d(Y,"getID3Frames",function(){return e}),P.d(Y,"decodeFrame",function(){return s}),P.d(Y,"utf8ArrayToStr",function(){return a}),P.d(Y,"testables",function(){return h});var y=function(w,B){return B+10<=w.length&&(w[B]===73&&w[B+1]===68&&w[B+2]===51&&(w[B+3]<255&&w[B+4]<255&&(w[B+6]<128&&w[B+7]<128&&w[B+8]<128&&w[B+9]<128)))},E=function(w,B){return B+10<=w.length&&(w[B]===51&&w[B+1]===68&&w[B+2]===73&&(w[B+3]<255&&w[B+4]<255&&(w[B+6]<128&&w[B+7]<128&&w[B+8]<128&&w[B+9]<128)))},_=function(w,B){for(var b=B,A=0;y(w,B);){A+=10;var l=C(w,B+6);A+=l,E(w,B+10)&&(A+=10),B+=A}return A>0?w.subarray(b,b+A):void 0},C=function(w,B){var b=0;return b=(w[B]&127)<<21,b|=(w[B+1]&127)<<14,b|=(w[B+2]&127)<<7,b|=w[B+3]&127,b},m=function(w,B){return y(w,B)&&C(w,B+6)+10<=w.length-B},c=function(w){for(var B=e(w),b=0;b<B.length;b++){var A=B[b];if(r(A))return d(A)}return},r=function(w){return w&&w.key==="PRIV"&&w.info==="com.apple.streaming.transportStreamTimestamp"},n=function(w){var B=String.fromCharCode(w[0],w[1],w[2],w[3]),b=C(w,4),A=10;return{type:B,size:b,data:w.subarray(A,A+b)}},e=function(w){for(var B=0,b=[];y(w,B);){var A=C(w,B+6);B+=10;for(var l=B+A;B+8<l;){var i=n(w.subarray(B)),x=s(i);x&&b.push(x),B+=i.size+10}E(w,B)&&(B+=10)}return b},s=function(w){return w.type==="PRIV"?u(w):w.type[0]==="W"?f(w):o(w)},u=function(w){if(w.size<2)return;var B=a(w.data,!0),b=new Uint8Array(w.data.subarray(B.length+1));return{key:w.type,info:B,data:b.buffer}},o=function(w){if(w.size<2)return;if(w.type==="TXXX"){var B=1,b=a(w.data.subarray(B),!0);B+=b.length+1;var A=a(w.data.subarray(B));return{key:w.type,info:b,data:A}}var l=a(w.data.subarray(1));return{key:w.type,data:l}},f=function(w){if(w.type==="WXXX"){if(w.size<2)return;var B=1,b=a(w.data.subarray(B),!0);B+=b.length+1;var A=a(w.data.subarray(B));return{key:w.type,info:b,data:A}}var l=a(w.data);return{key:w.type,data:l}},d=function(w){if(w.data.byteLength===8){var B=new Uint8Array(w.data),b=B[3]&1,A=(B[4]<<23)+(B[5]<<15)+(B[6]<<7)+B[7];return A/=45,b&&(A+=4772185884e-2),Math.round(A)}return},a=function(w,B){B===void 0&&(B=!1);var b=p();if(b){var A=b.decode(w);if(B){var l=A.indexOf("\0");return l!==-1?A.substring(0,l):A}return A.replace(/\0/g,"")}for(var i=w.length,x,O,T,D="",R=0;R<i;){if(x=w[R++],x===0&&B)return D;if(x===0||x===3)continue;switch(x>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:D+=String.fromCharCode(x);break;case 12:case 13:O=w[R++],D+=String.fromCharCode((x&31)<<6|O&63);break;case 14:O=w[R++],T=w[R++],D+=String.fromCharCode((x&15)<<12|(O&63)<<6|(T&63)<<0);break;default:}}return D},h={decodeTextFrame:o},g;function p(){return!g&&typeof self.TextDecoder!="undefined"&&(g=new self.TextDecoder("utf-8")),g}},"./src/demux/mp3demuxer.ts":function(ue,Y,P){"use strict";P.r(Y);var y=P("./src/demux/base-audio-demuxer.ts"),E=P("./src/demux/id3.ts"),_=P("./src/utils/logger.ts"),C=P("./src/demux/mpegaudio.ts");function m(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,c(n,e)}function c(n,e){return c=Object.setPrototypeOf||function(u,o){return u.__proto__=o,u},c(n,e)}var r=function(n){m(e,n);function e(){return n.apply(this,arguments)||this}var s=e.prototype;return s.resetInitSegment=function(o,f,d){n.prototype.resetInitSegment.call(this,o,f,d),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:o,duration:d,inputTimeScale:9e4,dropped:0}},e.probe=function(o){if(!o)return!1;for(var f=E.getID3Data(o,0)||[],d=f.length,a=o.length;d<a;d++)if(C.probe(o,d))return _.logger.log("MPEG Audio sync word found !"),!0;return!1},s.canParse=function(o,f){return C.canParse(o,f)},s.appendFrame=function(o,f,d){return this.initPTS===null?void 0:C.appendFrame(o,f,d,this.initPTS,this.frameIndex)},e}(y.default);r.minProbeByteLength=4,Y.default=r},"./src/demux/mp4demuxer.ts":function(ue,Y,P){"use strict";P.r(Y);var y=P("./src/utils/mp4-tools.ts"),E=P("./src/demux/dummy-demuxed-track.ts"),_=function(){function C(c,r){this.remainderData=null,this.config=void 0,this.config=r}var m=C.prototype;return m.resetTimeStamp=function(){},m.resetInitSegment=function(){},m.resetContiguity=function(){},C.probe=function(r){return Object(y.findBox)({data:r,start:0,end:Math.min(r.length,16384)},["moof"]).length>0},m.demux=function(r){var n=r,e=Object(E.dummyTrack)();if(this.config.progressive){this.remainderData&&(n=Object(y.appendUint8Array)(this.remainderData,r));var s=Object(y.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)()}},m.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)()}},m.demuxSampleAes=function(r,n,e){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},m.destroy=function(){},C}();_.minProbeByteLength=1024,Y.default=_},"./src/demux/mpegaudio.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"appendFrame",function(){return c}),P.d(Y,"parseHeader",function(){return r}),P.d(Y,"isHeaderPattern",function(){return n}),P.d(Y,"isHeader",function(){return e}),P.d(Y,"canParse",function(){return s}),P.d(Y,"probe",function(){return u});var y=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],_=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],C=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],m=[0,1,1,4];function c(o,f,d,a,h){if(d+24>f.length)return;var g=r(f,d);if(g&&d+g.frameLength<=f.length){var p=g.samplesPerFrame*9e4/g.sampleRate,S=a+h*p,w={unit:f.subarray(d,d+g.frameLength),pts:S,dts:S};return o.config=[],o.channelCount=g.channelCount,o.samplerate=g.sampleRate,o.samples.push(w),{sample:w,length:g.frameLength,missing:0}}}function r(o,f){var d=o[f+1]>>3&3,a=o[f+1]>>1&3,h=o[f+2]>>4&15,g=o[f+2]>>2&3;if(d!==1&&h!==0&&h!==15&&g!==3){var p=o[f+2]>>1&1,S=o[f+3]>>6,w=d===3?3-a:a===3?3:4,B=E[w*14+h-1]*1e3,b=d===3?0:d===2?1:2,A=_[b*3+g],l=S===3?1:2,i=C[d][a],x=m[a],O=i*8*x,T=Math.floor(i*B/A+p)*x;if(y===null){var D=navigator.userAgent||"",R=D.match(/Chrome\/(\d+)/i);y=R?parseInt(R[1]):0}var k=!!y&&y<=87;return k&&a===2&&B>=224e3&&S===0&&(o[f+3]=o[f+3]|128),{sampleRate:A,channelCount:l,frameLength:T,samplesPerFrame:O}}}function n(o,f){return o[f]===255&&(o[f+1]&224)===224&&(o[f+1]&6)!==0}function e(o,f){return f+1<o.length&&n(o,f)}function s(o,f){var d=4;return n(o,f)&&d<=o.length-f}function u(o,f){if(f+1<o.length&&n(o,f)){var d=4,a=r(o,f),h=d;a!=null&&a.frameLength&&(h=a.frameLength);var g=f+h;return g===o.length||e(o,g)}return!1}},"./src/demux/sample-aes.ts":function(ue,Y,P){"use strict";P.r(Y);var y=P("./src/crypt/decrypter.ts"),E=P("./src/demux/tsdemuxer.ts"),_=function(){function C(c,r,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new y.default(c,r,{removePKCS7Padding:!1})}var m=C.prototype;return m.decryptBuffer=function(r,n){this.decrypter.decrypt(r,this.keyData.key.buffer,this.keyData.iv.buffer,n)},m.decryptAacSample=function(r,n,e,s){var u=r[n].unit,o=u.subarray(16,u.length-u.length%16),f=o.buffer.slice(o.byteOffset,o.byteOffset+o.length),d=this;this.decryptBuffer(f,function(a){var h=new Uint8Array(a);u.set(h,16),s||d.decryptAacSamples(r,n+1,e)})},m.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}},m.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},m.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},m.decryptAvcSample=function(r,n,e,s,u,o){var f=Object(E.discardEPB)(u.data),d=this.getAvcEncryptedData(f),a=this;this.decryptBuffer(d.buffer,function(h){u.data=a.getAvcDecryptedUnit(f,h),o||a.decryptAvcSamples(r,n,e+1,s)})},m.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 o=u[e];if(o.data.length<=48||o.type!==1&&o.type!==5)continue;var f=this.decrypter.isSync();if(this.decryptAvcSample(r,n,e,s,o,f),!f)return}}},C}();Y.default=_},"./src/demux/transmuxer-interface.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return u});var y=P("./node_modules/webworkify-webpack/index.js"),E=P.n(y),_=P("./src/events.ts"),C=P("./src/demux/transmuxer.ts"),m=P("./src/utils/logger.ts"),c=P("./src/errors.ts"),r=P("./src/utils/mediasource-helper.ts"),n=P("./node_modules/eventemitter3/index.js"),e=P.n(n),s=Object(r.getMediaSource)()||{isTypeSupported:function(){return!1}},u=function(){function o(d,a,h,g){var p=this;this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.worker=void 0,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.hls=d,this.id=a,this.onTransmuxComplete=h,this.onFlush=g;var S=d.config,w=function(i,x){x=x||{},x.frag=p.frag,x.id=p.id,d.trigger(i,x)};this.observer=new n.EventEmitter,this.observer.on(_.Events.FRAG_DECRYPTED,w),this.observer.on(_.Events.ERROR,w);var B={mp4:s.isTypeSupported("video/mp4"),mpeg:s.isTypeSupported("audio/mpeg"),mp3:s.isTypeSupported('audio/mp4; codecs="mp3"')},b=navigator.vendor;if(S.enableWorker&&typeof Worker!="undefined"){m.logger.log("demuxing in webworker");var A;try{A=this.worker=y("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),A.addEventListener("message",this.onwmsg),A.onerror=function(l){d.trigger(_.Events.ERROR,{type:c.ErrorTypes.OTHER_ERROR,details:c.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(l.message+" ("+l.filename+":"+l.lineno+")")})},A.postMessage({cmd:"init",typeSupported:B,vendor:b,id:a,config:JSON.stringify(S)})}catch(l){m.logger.warn("Error in worker:",l),m.logger.error("Error while initializing DemuxerWorker, fallback to inline"),A&&self.URL.revokeObjectURL(A.objectURL),this.transmuxer=new C.default(this.observer,B,S,b,a),this.worker=null}}else this.transmuxer=new C.default(this.observer,B,S,b,a)}var f=o.prototype;return f.destroy=function(){var a=this.worker;if(a)a.removeEventListener("message",this.onwmsg),a.terminate(),this.worker=null;else{var h=this.transmuxer;h&&(h.destroy(),this.transmuxer=null)}var g=this.observer;g&&g.removeAllListeners(),this.observer=null},f.push=function(a,h,g,p,S,w,B,b,A,l){var i=this;A.transmuxing.start=self.performance.now();var x=this.transmuxer,O=this.worker,T=w?w.start:S.start,D=S.decryptdata,R=this.frag,k=!(R&&S.cc===R.cc),H=!(R&&A.level===R.level),J=R?A.sn-R.sn:-1,U=this.part?A.part-this.part.index:1,K=!H&&(J===1||J===0&&U===1),G=self.performance.now();(H||J||S.stats.parsing.start===0)&&(S.stats.parsing.start=G),w&&(U||!K)&&(w.stats.parsing.start=G);var N=new C.TransmuxState(k,K,b,H,T);if(!K||k){m.logger.log("[transmuxer-interface, "+S.type+"]: Starting new transmux session for sn: "+A.sn+" p: "+A.part+" level: "+A.level+" id: "+A.id+`
discontinuity: `+k+`
trackSwitch: `+H+`
contiguous: `+K+`
accurateTimeOffset: `+b+`
timeOffset: `+T);var Q=new C.TransmuxConfig(g,p,h,B,l);this.configureTransmuxer(Q)}if(this.frag=S,this.part=w,O)O.postMessage({cmd:"demux",data:a,decryptdata:D,chunkMeta:A,state:N},a instanceof ArrayBuffer?[a]:[]);else if(x){var X=x.push(a,D,A,N);Object(C.isPromise)(X)?X.then(function(te){i.handleTransmuxComplete(te)}):this.handleTransmuxComplete(X)}},f.flush=function(a){var h=this;a.transmuxing.start=self.performance.now();var g=this.transmuxer,p=this.worker;if(p)p.postMessage({cmd:"flush",chunkMeta:a});else if(g){var S=g.flush(a);Object(C.isPromise)(S)?S.then(function(w){h.handleFlushResult(w,a)}):this.handleFlushResult(S,a)}},f.handleFlushResult=function(a,h){var g=this;a.forEach(function(p){g.handleTransmuxComplete(p)}),this.onFlush(h)},f.onWorkerMessage=function(a){var h=a.data,g=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,g.trigger(h.event,h.data);break}}},f.configureTransmuxer=function(a){var h=this.worker,g=this.transmuxer;h?h.postMessage({cmd:"configure",config:a}):g&&g.configure(a)},f.handleTransmuxComplete=function(a){a.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(a)},o}()},"./src/demux/transmuxer-worker.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return c});var y=P("./src/demux/transmuxer.ts"),E=P("./src/events.ts"),_=P("./src/utils/logger.ts"),C=P("./node_modules/eventemitter3/index.js"),m=P.n(C);function c(u){var o=new C.EventEmitter,f=function(a,h){u.postMessage({event:a,data:h})};o.on(E.Events.FRAG_DECRYPTED,f),o.on(E.Events.ERROR,f),u.addEventListener("message",function(d){var a=d.data;switch(a.cmd){case"init":{var h=JSON.parse(a.config);u.transmuxer=new y.default(o,a.typeSupported,h,a.vendor,a.id),Object(_.enableLogs)(h.debug),f("init",null);break}case"configure":{u.transmuxer.configure(a.config);break}case"demux":{var g=u.transmuxer.push(a.data,a.decryptdata,a.chunkMeta,a.state);Object(y.isPromise)(g)?g.then(function(w){r(u,w)}):r(u,g);break}case"flush":{var p=a.chunkMeta,S=u.transmuxer.flush(p);Object(y.isPromise)(S)?S.then(function(w){e(u,w,p)}):e(u,S,p);break}default:break}})}function r(u,o){if(s(o.remuxResult))return;var f=[],d=o.remuxResult,a=d.audio,h=d.video;a&&n(f,a),h&&n(f,h),u.postMessage({event:"transmuxComplete",data:o},f)}function n(u,o){o.data1&&u.push(o.data1.buffer),o.data2&&u.push(o.data2.buffer)}function e(u,o,f){o.forEach(function(d){r(u,d)}),u.postMessage({event:"flush",data:f})}function s(u){return!u.audio&&!u.video&&!u.text&&!u.id3&&!u.initSegment}},"./src/demux/transmuxer.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return h}),P.d(Y,"isPromise",function(){return S}),P.d(Y,"TransmuxConfig",function(){return w}),P.d(Y,"TransmuxState",function(){return B});var y=P("./src/events.ts"),E=P("./src/errors.ts"),_=P("./src/crypt/decrypter.ts"),C=P("./src/demux/aacdemuxer.ts"),m=P("./src/demux/mp4demuxer.ts"),c=P("./src/demux/tsdemuxer.ts"),r=P("./src/demux/mp3demuxer.ts"),n=P("./src/remux/mp4-remuxer.ts"),e=P("./src/remux/passthrough-remuxer.ts"),s=P("./src/demux/chunk-cache.ts"),u=P("./src/utils/mp4-tools.ts"),o=P("./src/utils/logger.ts"),f;try{f=self.performance.now.bind(self.performance)}catch(b){o.logger.debug("Unable to use Performance API on this environment"),f=self.Date.now}var d=[{demux:c.default,remux:n.default},{demux:m.default,remux:e.default},{demux:C.default,remux:n.default},{demux:r.default,remux:n.default}],a=1024;d.forEach(function(b){var A=b.demux;a=Math.max(a,A.minProbeByteLength)});var h=function(){function b(l,i,x,O,T){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new s.default,this.observer=l,this.typeSupported=i,this.config=x,this.vendor=O,this.id=T}var A=b.prototype;return A.configure=function(i){this.transmuxConfig=i,this.decrypter&&this.decrypter.reset()},A.push=function(i,x,O,T){var D=this,R=O.transmuxing;R.executeStart=f();var k=new Uint8Array(i),H=this.cache,J=this.config,U=this.currentTransmuxState,K=this.transmuxConfig;T&&(this.currentTransmuxState=T);var G=g(k,x);if(G&&G.method==="AES-128"){var N=this.getDecrypter();if(J.enableSoftwareAES){var Q=N.softwareDecrypt(k,G.key.buffer,G.iv.buffer);if(!Q)return R.executeEnd=f(),p(O);k=new Uint8Array(Q)}else return this.decryptionPromise=N.webCryptoDecrypt(k,G.key.buffer,G.iv.buffer).then(function(Ie){var Fe=D.push(Ie,null,O);return D.decryptionPromise=null,Fe}),this.decryptionPromise}var X=T||U,te=X.contiguous,oe=X.discontinuity,me=X.trackSwitch,se=X.accurateTimeOffset,_e=X.timeOffset,Ae=K.audioCodec,Ee=K.videoCodec,pe=K.defaultInitPts,he=K.duration,ie=K.initSegmentData;if((oe||me)&&this.resetInitSegment(ie,Ae,Ee,he),oe&&this.resetInitialTimestamp(pe),te||this.resetContiguity(),this.needsProbing(k,oe,me)){if(H.dataLength){var fe=H.flush();k=Object(u.appendUint8Array)(fe,k)}this.configureTransmuxer(k,K)}var ge=this.transmux(k,G,_e,se,O),ce=this.currentTransmuxState;return ce.contiguous=!0,ce.discontinuity=!1,ce.trackSwitch=!1,R.executeEnd=f(),ge},A.flush=function(i){var x=this,O=i.transmuxing;O.executeStart=f();var T=this.decrypter,D=this.cache,R=this.currentTransmuxState,k=this.decryptionPromise;if(k)return k.then(function(){return x.flush(i)});var H=[],J=R.timeOffset;if(T){var U=T.flush();U&&H.push(this.push(U,null,i))}var K=D.dataLength;D.reset();var G=this.demuxer,N=this.remuxer;if(!G||!N)return K>=a&&this.observer.emit(y.Events.ERROR,y.Events.ERROR,{type:E.ErrorTypes.MEDIA_ERROR,details:E.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),O.executeEnd=f(),[p(i)];var Q=G.flush(J);return S(Q)?Q.then(function(X){return x.flushRemux(H,X,i),H}):(this.flushRemux(H,Q,i),H)},A.flushRemux=function(i,x,O){var T=x.audioTrack,D=x.avcTrack,R=x.id3Track,k=x.textTrack,H=this.currentTransmuxState,J=H.accurateTimeOffset,U=H.timeOffset;o.logger.log("[transmuxer.ts]: Flushed fragment "+O.sn+(O.part>-1?" p: "+O.part:"")+" of level "+O.level);var K=this.remuxer.remux(T,D,R,k,U,J,!0,this.id);i.push({remuxResult:K,chunkMeta:O}),O.transmuxing.executeEnd=f()},A.resetInitialTimestamp=function(i){var x=this.demuxer,O=this.remuxer;if(!x||!O)return;x.resetTimeStamp(i),O.resetTimeStamp(i)},A.resetContiguity=function(){var i=this.demuxer,x=this.remuxer;if(!i||!x)return;i.resetContiguity(),x.resetNextTimestamp()},A.resetInitSegment=function(i,x,O,T){var D=this.demuxer,R=this.remuxer;if(!D||!R)return;D.resetInitSegment(x,O,T),R.resetInitSegment(i,x,O)},A.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},A.transmux=function(i,x,O,T,D){var R;return x&&x.method==="SAMPLE-AES"?R=this.transmuxSampleAes(i,x,O,T,D):R=this.transmuxUnencrypted(i,O,T,D),R},A.transmuxUnencrypted=function(i,x,O,T){var D=this.demuxer.demux(i,x,!1,!this.config.progressive),R=D.audioTrack,k=D.avcTrack,H=D.id3Track,J=D.textTrack,U=this.remuxer.remux(R,k,H,J,x,O,!1,this.id);return{remuxResult:U,chunkMeta:T}},A.transmuxSampleAes=function(i,x,O,T,D){var R=this;return this.demuxer.demuxSampleAes(i,x,O).then(function(k){var H=R.remuxer.remux(k.audioTrack,k.avcTrack,k.id3Track,k.textTrack,O,T,!1,R.id);return{remuxResult:H,chunkMeta:D}})},A.configureTransmuxer=function(i,x){for(var O=this.config,T=this.observer,D=this.typeSupported,R=this.vendor,k=x.audioCodec,H=x.defaultInitPts,J=x.duration,U=x.initSegmentData,K=x.videoCodec,G,N=0,Q=d.length;N<Q;N++)if(d[N].demux.probe(i)){G=d[N];break}G||(o.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),G={demux:m.default,remux:e.default});var X=this.demuxer,te=this.remuxer,oe=G.remux,me=G.demux;(!te||!(te instanceof oe))&&(this.remuxer=new oe(T,O,D,R)),(!X||!(X instanceof me))&&(this.demuxer=new me(T,O,D),this.probe=me.probe),this.resetInitSegment(U,k,K,J),this.resetInitialTimestamp(H)},A.needsProbing=function(i,x,O){return!this.demuxer||!this.remuxer||x||O},A.getDecrypter=function(){var i=this.decrypter;return i||(i=this.decrypter=new _.default(this.observer,this.config)),i},b}();function g(b,A){var l=null;return b.byteLength>0&&A!=null&&A.key!=null&&A.iv!==null&&A.method!=null&&(l=A),l}var p=function(A){return{remuxResult:{},chunkMeta:A}};function S(b){return"then"in b&&b.then instanceof Function}var w=function(A,l,i,x,O){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=A,this.videoCodec=l,this.initSegmentData=i,this.duration=x,this.defaultInitPts=O},B=function(A,l,i,x,O){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=A,this.contiguous=l,this.accurateTimeOffset=i,this.trackSwitch=x,this.timeOffset=O}},"./src/demux/tsdemuxer.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"discardEPB",function(){return p});var y=P("./src/demux/adts.ts"),E=P("./src/demux/mpegaudio.ts"),_=P("./src/demux/exp-golomb.ts"),C=P("./src/demux/id3.ts"),m=P("./src/demux/sample-aes.ts"),c=P("./src/events.ts"),r=P("./src/utils/mp4-tools.ts"),n=P("./src/utils/logger.ts"),e=P("./src/errors.ts"),s={video:1,audio:2,id3:3,text:4},u=function(){function S(B,b,A){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=b,this.typeSupported=A}S.probe=function(b){var A=S.syncOffset(b);return A<0?!1:(A&&n.logger.warn("MPEG2-TS detected but first sync word found @ offset "+A+", junk ahead ?"),!0)},S.syncOffset=function(b){for(var A=Math.min(1e3,b.length-3*188),l=0;l<A;){if(b[l]===71&&b[l+188]===71&&b[l+2*188]===71)return l;l++}return-1},S.createTrack=function(b,A){return{container:b==="video"||b==="audio"?"video/mp2t":void 0,type:b,id:s[b],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:b==="audio"?A:void 0}};var w=S.prototype;return w.resetInitSegment=function(b,A,l){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=S.createTrack("video",l),this._audioTrack=S.createTrack("audio",l),this._id3Track=S.createTrack("id3",l),this._txtTrack=S.createTrack("text",l),this._audioTrack.isAAC=!0,this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=b,this.videoCodec=A,this._duration=l},w.resetTimeStamp=function(){},w.resetContiguity=function(){var b=this._audioTrack,A=this._avcTrack,l=this._id3Track;b&&(b.pesData=null),A&&(A.pesData=null),l&&(l.pesData=null),this.aacOverFlow=null,this.aacLastPTS=null},w.demux=function(b,A,l,i){l===void 0&&(l=!1),i===void 0&&(i=!1),l||(this.sampleAes=null);var x,O=this._avcTrack,T=this._audioTrack,D=this._id3Track,R=O.pid,k=O.pesData,H=T.pid,J=D.pid,U=T.pesData,K=D.pesData,G=!1,N=this.pmtParsed,Q=this._pmtId,X=b.length;if(this.remainderData&&(b=Object(r.appendUint8Array)(this.remainderData,b),X=b.length,this.remainderData=null),X<188&&!i)return this.remainderData=b,{audioTrack:T,avcTrack:O,id3Track:D,textTrack:this._txtTrack};var te=Math.max(0,S.syncOffset(b));X-=(X+te)%188,X<b.byteLength&&!i&&(this.remainderData=new Uint8Array(b.buffer,X,b.buffer.byteLength-X));for(var oe=te;oe<X;oe+=188)if(b[oe]===71){var me=!!(b[oe+1]&64),se=((b[oe+1]&31)<<8)+b[oe+2],_e=(b[oe+3]&48)>>4,Ae=void 0;if(_e>1){if(Ae=oe+5+b[oe+4],Ae===oe+188)continue}else Ae=oe+4;switch(se){case R:me&&(k&&(x=a(k))&&this.parseAVCPES(x,!1),k={data:[],size:0}),k&&(k.data.push(b.subarray(Ae,oe+188)),k.size+=oe+188-Ae);break;case H:me&&(U&&(x=a(U))&&(T.isAAC?this.parseAACPES(x):this.parseMPEGPES(x)),U={data:[],size:0}),U&&(U.data.push(b.subarray(Ae,oe+188)),U.size+=oe+188-Ae);break;case J:me&&(K&&(x=a(K))&&this.parseID3PES(x),K={data:[],size:0}),K&&(K.data.push(b.subarray(Ae,oe+188)),K.size+=oe+188-Ae);break;case 0:me&&(Ae+=b[Ae]+1),Q=this._pmtId=f(b,Ae);break;case Q:{me&&(Ae+=b[Ae]+1);var Ee=d(b,Ae,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,l);R=Ee.avc,R>0&&(O.pid=R),H=Ee.audio,H>0&&(T.pid=H,T.isAAC=Ee.isAAC),J=Ee.id3,J>0&&(D.pid=J),G&&!N&&(n.logger.log("reparse from beginning"),G=!1,oe=te-188),N=this.pmtParsed=!0;break}case 17:case 8191:break;default:G=!0;break}}else this.observer.emit(c.Events.ERROR,c.Events.ERROR,{type:e.ErrorTypes.MEDIA_ERROR,details:e.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});O.pesData=k,T.pesData=U,D.pesData=K;var pe={audioTrack:T,avcTrack:O,id3Track:D,textTrack:this._txtTrack};return i&&this.extractRemainingSamples(pe),pe},w.flush=function(){var b=this.remainderData;this.remainderData=null;var A;return b?A=this.demux(b,-1,!1,!0):A={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(A),this.sampleAes?this.decrypt(A,this.sampleAes):A},w.extractRemainingSamples=function(b){var A=b.audioTrack,l=b.avcTrack,i=b.id3Track,x=l.pesData,O=A.pesData,T=i.pesData,D;x&&(D=a(x))?(this.parseAVCPES(D,!0),l.pesData=null):l.pesData=x,O&&(D=a(O))?(A.isAAC?this.parseAACPES(D):this.parseMPEGPES(D),A.pesData=null):(O!=null&&O.size&&n.logger.log("last AAC PES packet truncated,might overlap between fragments"),A.pesData=O),T&&(D=a(T))?(this.parseID3PES(D),i.pesData=null):i.pesData=T},w.demuxSampleAes=function(b,A,l){var i=this.demux(b,l,!0,!this.config.progressive),x=this.sampleAes=new m.default(this.observer,this.config,A);return this.decrypt(i,x)},w.decrypt=function(b,A){return new Promise(function(l){var i=b.audioTrack,x=b.avcTrack;i.samples&&i.isAAC?A.decryptAacSamples(i.samples,0,function(){x.samples?A.decryptAvcSamples(x.samples,0,0,function(){l(b)}):l(b)}):x.samples&&A.decryptAvcSamples(x.samples,0,0,function(){l(b)})})},w.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},w.parseAVCPES=function(b,A){var l=this,i=this._avcTrack,x=this.parseAVCNALu(b.data),O=!1,T=this.avcSample,D,R=!1;b.data=null,T&&x.length&&!i.audFound&&(h(T,i),T=this.avcSample=o(!1,b.pts,b.dts,"")),x.forEach(function(k){switch(k.type){case 1:{D=!0,T||(T=l.avcSample=o(!0,b.pts,b.dts,"")),O&&(T.debug+="NDR "),T.frame=!0;var H=k.data;if(R&&H.length>4){var J=new _.default(H).readSliceType();(J===2||J===4||J===7||J===9)&&(T.key=!0)}break}case 5:D=!0,T||(T=l.avcSample=o(!0,b.pts,b.dts,"")),O&&(T.debug+="IDR "),T.key=!0,T.frame=!0;break;case 6:{D=!0,O&&T&&(T.debug+="SEI ");var U=new _.default(p(k.data));U.readUByte();for(var K=0,G=0,N=!1,Q=0;!N&&U.bytesAvailable>1;){K=0;do Q=U.readUByte(),K+=Q;while(Q===255);G=0;do Q=U.readUByte(),G+=Q;while(Q===255);if(K===4&&U.bytesAvailable!==0){N=!0;var X=U.readUByte();if(X===181){var te=U.readUShort();if(te===49){var oe=U.readUInt();if(oe===1195456820){var me=U.readUByte();if(me===3){for(var se=U.readUByte(),_e=U.readUByte(),Ae=31&se,Ee=[se,_e],pe=0;pe<Ae;pe++)Ee.push(U.readUByte()),Ee.push(U.readUByte()),Ee.push(U.readUByte());g(l._txtTrack.samples,{type:3,pts:b.pts,bytes:Ee})}}}}}else if(K===5&&U.bytesAvailable!==0){if(N=!0,G>16){for(var he=[],ie=0;ie<16;ie++)he.push(U.readUByte().toString(16)),(ie===3||ie===5||ie===7||ie===9)&&he.push("-");for(var fe=G-16,ge=new Uint8Array(fe),ce=0;ce<fe;ce++)ge[ce]=U.readUByte();g(l._txtTrack.samples,{pts:b.pts,payloadType:K,uuid:he.join(""),userData:Object(C.utf8ArrayToStr)(ge),userDataBytes:ge})}}else if(G<U.bytesAvailable)for(var Ie=0;Ie<G;Ie++)U.readUByte()}break}case 7:if(D=!0,R=!0,O&&T&&(T.debug+="SPS "),!i.sps){var Fe=new _.default(k.data),ke=Fe.readSPS();i.width=ke.width,i.height=ke.height,i.pixelRatio=ke.pixelRatio,i.sps=[k.data],i.duration=l._duration;for(var re=k.data.subarray(1,4),F="avc1.",W=0;W<3;W++){var de=re[W].toString(16);de.length<2&&(de="0"+de),F+=de}i.codec=F}break;case 8:D=!0,O&&T&&(T.debug+="PPS "),i.pps||(i.pps=[k.data]);break;case 9:D=!1,i.audFound=!0,T&&h(T,i),T=l.avcSample=o(!1,b.pts,b.dts,O?"AUD ":"");break;case 12:D=!1;break;default:D=!1,T&&(T.debug+="unknown NAL "+k.type+" ");break}if(T&&D){var ne=T.units;ne.push(k)}}),A&&T&&(h(T,i),this.avcSample=null)},w.getLastNalUnit=function(){var b,A=this.avcSample,l;if(!A||A.units.length===0){var i=this._avcTrack.samples;A=i[i.length-1]}if((b=A)!==null&&b!==void 0&&b.units){var x=A.units;l=x[x.length-1]}return l},w.parseAVCNALu=function(b){var A=b.byteLength,l=this._avcTrack,i=l.naluState||0,x=i,O=[],T=0,D,R,k,H=-1,J=0;for(i===-1&&(H=0,J=b[0]&31,i=0,T=1);T<A;){if(D=b[T++],!i){i=D?0:1;continue}if(i===1){i=D?0:2;continue}if(!D)i=3;else if(D===1){if(H>=0){var U={data:b.subarray(H,T-i-1),type:J};O.push(U)}else{var K=this.getLastNalUnit();if(K&&(x&&T<=4-x&&(K.state&&(K.data=K.data.subarray(0,K.data.byteLength-x))),R=T-i-1,R>0)){var G=new Uint8Array(K.data.byteLength+R);G.set(K.data,0),G.set(b.subarray(0,R),K.data.byteLength),K.data=G,K.state=0}}T<A?(k=b[T]&31,H=T,J=k,i=0):i=-1}else i=0}if(H>=0&&i>=0){var N={data:b.subarray(H,A),type:J,state:i};O.push(N)}if(O.length===0){var Q=this.getLastNalUnit();if(Q){var X=new Uint8Array(Q.data.byteLength+b.byteLength);X.set(Q.data,0),X.set(b,Q.data.byteLength),Q.data=X}}return l.naluState=i,O},w.parseAACPES=function(b){var A=0,l=this._audioTrack,i=this.aacOverFlow,x=b.data;if(i){this.aacOverFlow=null;var O=i.sample.unit.byteLength,T=Math.min(i.missing,O),D=O-T;i.sample.unit.set(x.subarray(0,T),D),l.samples.push(i.sample),A=i.missing}var R,k;for(R=A,k=x.length;R<k-1&&!y.isHeader(x,R);R++);if(R!==A){var H,J;if(R<k-1?(H="AAC PES did not start with ADTS header,offset:"+R,J=!1):(H="no ADTS header found in AAC PES",J=!0),n.logger.warn("parsing error:"+H),this.observer.emit(c.Events.ERROR,c.Events.ERROR,{type:e.ErrorTypes.MEDIA_ERROR,details:e.ErrorDetails.FRAG_PARSING_ERROR,fatal:J,reason:H}),J)return}y.initTrackConfig(l,this.observer,x,R,this.audioCodec);var U;if(b.pts!==void 0)U=b.pts;else if(i){var K=y.getFrameDuration(l.samplerate);U=i.sample.pts+K}else{n.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var G=0;R<k;)if(y.isHeader(x,R)){if(R+5<k){var N=y.appendFrame(l,x,R,U,G);if(N)if(N.missing)this.aacOverFlow=N;else{R+=N.length,G++;continue}}break}else R++},w.parseMPEGPES=function(b){var A=b.data,l=A.length,i=0,x=0,O=b.pts;if(O===void 0){n.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;x<l;)if(E.isHeader(A,x)){var T=E.appendFrame(this._audioTrack,A,x,O,i);if(T)x+=T.length,i++;else break}else x++},w.parseID3PES=function(b){if(b.pts===void 0){n.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}this._id3Track.samples.push(b)},S}();u.minProbeByteLength=188;function o(S,w,B,b){return{key:S,frame:!1,pts:w,dts:B,units:[],debug:b,length:0}}function f(S,w){return(S[w+10]&31)<<8|S[w+11]}function d(S,w,B,b){var A={audio:-1,avc:-1,id3:-1,isAAC:!0},l=(S[w+1]&15)<<8|S[w+2],i=w+3+l-4,x=(S[w+10]&15)<<8|S[w+11];for(w+=12+x;w<i;){var O=(S[w+1]&31)<<8|S[w+2];switch(S[w]){case 207:if(!b){n.logger.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:A.audio===-1&&(A.audio=O);break;case 21:A.id3===-1&&(A.id3=O);break;case 219:if(!b){n.logger.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:A.avc===-1&&(A.avc=O);break;case 3:case 4:B?A.audio===-1&&(A.audio=O,A.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}w+=((S[w+3]&15)<<8|S[w+4])+5}return A}function a(S){var w=0,B,b,A,l,i,x=S.data;if(!S||S.size===0)return null;for(;x[0].length<19&&x.length>1;){var O=new Uint8Array(x[0].length+x[1].length);O.set(x[0]),O.set(x[1],x[0].length),x[0]=O,x.splice(1,1)}B=x[0];var T=(B[0]<<16)+(B[1]<<8)+B[2];if(T===1){if(b=(B[4]<<8)+B[5],b&&b>S.size-6)return null;var D=B[7];D&192&&(l=(B[9]&14)*536870912+(B[10]&255)*4194304+(B[11]&254)*16384+(B[12]&255)*128+(B[13]&254)/2,D&64?(i=(B[14]&14)*536870912+(B[15]&255)*4194304+(B[16]&254)*16384+(B[17]&255)*128+(B[18]&254)/2,l-i>60*9e4&&(n.logger.warn(Math.round((l-i)/9e4)+"s delta between PTS and DTS, align them"),l=i)):i=l),A=B[8];var R=A+9;if(S.size<=R)return null;S.size-=R;for(var k=new Uint8Array(S.size),H=0,J=x.length;H<J;H++){B=x[H];var U=B.byteLength;if(R)if(R>U){R-=U;continue}else B=B.subarray(R),U-=R,R=0;k.set(B,w),w+=U}return b&&(b-=A+3),{data:k,pts:l,dts:i,len:b}}return null}function h(S,w){if(S.units.length&&S.frame){if(S.pts===void 0){var B=w.samples,b=B.length;if(b){var A=B[b-1];S.pts=A.pts,S.dts=A.dts}else{w.dropped++;return}}w.samples.push(S)}S.debug.length&&n.logger.log(S.pts+"/"+S.dts+":"+S.debug)}function g(S,w){var B=S.length;if(B>0){if(w.pts>=S[B-1].pts)S.push(w);else for(var b=B-1;b>=0;b--)if(w.pts<S[b].pts){S.splice(b,0,w);break}}else S.push(w)}function p(S){for(var w=S.byteLength,B=[],b=1;b<w-2;)S[b]===0&&S[b+1]===0&&S[b+2]===3?(B.push(b+2),b+=2):b++;if(B.length===0)return S;var A=w-B.length,l=new Uint8Array(A),i=0;for(b=0;b<A;i++,b++)i===B[0]&&(i++,B.shift()),l[b]=S[i];return l}Y.default=u},"./src/errors.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"ErrorTypes",function(){return y}),P.d(Y,"ErrorDetails",function(){return E});var y;(function(_){_.NETWORK_ERROR="networkError",_.MEDIA_ERROR="mediaError",_.KEY_SYSTEM_ERROR="keySystemError",_.MUX_ERROR="muxError",_.OTHER_ERROR="otherError"})(y||(y={}));var E;(function(_){_.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",_.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",_.KEY_SYSTEM_NO_SESSION="keySystemNoSession",_.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",_.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",_.MANIFEST_LOAD_ERROR="manifestLoadError",_.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",_.MANIFEST_PARSING_ERROR="manifestParsingError",_.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",_.LEVEL_EMPTY_ERROR="levelEmptyError",_.LEVEL_LOAD_ERROR="levelLoadError",_.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",_.LEVEL_SWITCH_ERROR="levelSwitchError",_.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",_.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",_.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",_.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",_.FRAG_LOAD_ERROR="fragLoadError",_.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",_.FRAG_DECRYPT_ERROR="fragDecryptError",_.FRAG_PARSING_ERROR="fragParsingError",_.REMUX_ALLOC_ERROR="remuxAllocError",_.KEY_LOAD_ERROR="keyLoadError",_.KEY_LOAD_TIMEOUT="keyLoadTimeOut",_.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",_.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",_.BUFFER_APPEND_ERROR="bufferAppendError",_.BUFFER_APPENDING_ERROR="bufferAppendingError",_.BUFFER_STALLED_ERROR="bufferStalledError",_.BUFFER_FULL_ERROR="bufferFullError",_.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",_.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",_.INTERNAL_EXCEPTION="internalException",_.INTERNAL_ABORTED="aborted",_.UNKNOWN="unknown"})(E||(E={}))},"./src/events.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"Events",function(){return y});var y;(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"})(y||(y={}))},"./src/hls.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return S});var y=P("./node_modules/url-toolkit/src/url-toolkit.js"),E=P.n(y),_=P("./src/loader/playlist-loader.ts"),C=P("./src/loader/key-loader.ts"),m=P("./src/controller/id3-track-controller.ts"),c=P("./src/controller/latency-controller.ts"),r=P("./src/controller/level-controller.ts"),n=P("./src/controller/fragment-tracker.ts"),e=P("./src/controller/stream-controller.ts"),s=P("./src/is-supported.ts"),u=P("./src/utils/logger.ts"),o=P("./src/config.ts"),f=P("./node_modules/eventemitter3/index.js"),d=P.n(f),a=P("./src/events.ts"),h=P("./src/errors.ts");function g(w,B){for(var b=0;b<B.length;b++){var A=B[b];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(w,A.key,A)}}function p(w,B,b){return B&&g(w.prototype,B),b&&g(w,b),w}var S=function(){w.isSupported=function(){return Object(s.isSupported)()};function w(b){b===void 0&&(b={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new f.EventEmitter,this._autoLevelCapping=void 0,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null;var A=this.config=Object(o.mergeConfig)(w.DefaultConfig,b);this.userConfig=b,Object(u.enableLogs)(A.debug),this._autoLevelCapping=-1,A.progressive&&Object(o.enableStreamingMode)(A);var l=A.abrController,i=A.bufferController,x=A.capLevelController,O=A.fpsController,T=this.abrController=new l(this),D=this.bufferController=new i(this),R=this.capLevelController=new x(this),k=new O(this),H=new _.default(this),J=new C.default(this),U=new m.default(this),K=this.levelController=new r.default(this),G=new n.FragmentTracker(this),N=this.streamController=new e.default(this,G);R.setStreamController(N),k.setStreamController(N);var Q=[K,N];this.networkControllers=Q;var X=[H,J,T,D,R,k,U,G];this.audioTrackController=this.createController(A.audioTrackController,null,Q),this.createController(A.audioStreamController,G,Q),this.subtitleTrackController=this.createController(A.subtitleTrackController,null,Q),this.createController(A.subtitleStreamController,G,Q),this.createController(A.timelineController,null,X),this.emeController=this.createController(A.emeController,null,X),this.cmcdController=this.createController(A.cmcdController,null,X),this.latencyController=this.createController(c.default,null,X),this.coreComponents=X}var B=w.prototype;return B.createController=function(A,l,i){if(A){var x=l?new A(this,l):new A(this);return i&&i.push(x),x}return null},B.on=function(A,l,i){i===void 0&&(i=this),this._emitter.on(A,l,i)},B.once=function(A,l,i){i===void 0&&(i=this),this._emitter.once(A,l,i)},B.removeAllListeners=function(A){this._emitter.removeAllListeners(A)},B.off=function(A,l,i,x){i===void 0&&(i=this),this._emitter.off(A,l,i,x)},B.listeners=function(A){return this._emitter.listeners(A)},B.emit=function(A,l,i){return this._emitter.emit(A,l,i)},B.trigger=function(A,l){if(this.config.debug)return this.emit(A,A,l);try{return this.emit(A,A,l)}catch(i){u.logger.error("An internal error happened while handling event "+A+'. Error message: "'+i.message+'". Here is a stacktrace:',i),this.trigger(a.Events.ERROR,{type:h.ErrorTypes.OTHER_ERROR,details:h.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:A,error:i})}return!1},B.listenerCount=function(A){return this._emitter.listenerCount(A)},B.destroy=function(){u.logger.log("destroy"),this.trigger(a.Events.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(A){return A.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(A){return A.destroy()}),this.coreComponents.length=0},B.attachMedia=function(A){u.logger.log("attachMedia"),this._media=A,this.trigger(a.Events.MEDIA_ATTACHING,{media:A})},B.detachMedia=function(){u.logger.log("detachMedia"),this.trigger(a.Events.MEDIA_DETACHING,void 0),this._media=null},B.loadSource=function(A){this.stopLoad();var l=this.media,i=this.url,x=this.url=y.buildAbsoluteURL(self.location.href,A,{alwaysNormalize:!0});u.logger.log("loadSource:"+x),l&&i&&i!==x&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(l)),this.trigger(a.Events.MANIFEST_LOADING,{url:A})},B.startLoad=function(A){A===void 0&&(A=-1),u.logger.log("startLoad("+A+")"),this.networkControllers.forEach(function(l){l.startLoad(A)})},B.stopLoad=function(){u.logger.log("stopLoad"),this.networkControllers.forEach(function(A){A.stopLoad()})},B.swapAudioCodec=function(){u.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},B.recoverMediaError=function(){u.logger.log("recoverMediaError");var A=this._media;this.detachMedia(),A&&this.attachMedia(A)},B.removeLevel=function(A,l){l===void 0&&(l=0),this.levelController.removeLevel(A,l)},p(w,[{key:"levels",get:function(){var A=this.levelController.levels;return A||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(A){u.logger.log("set currentLevel:"+A),this.loadLevel=A,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(A){u.logger.log("set nextLevel:"+A),this.levelController.manualLevel=A,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(A){u.logger.log("set loadLevel:"+A),this.levelController.manualLevel=A}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(A){this.levelController.nextLoadLevel=A}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(A){u.logger.log("set firstLevel:"+A),this.levelController.firstLevel=A}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(A){u.logger.log("set startLevel:"+A),A!==-1&&(A=Math.max(A,this.minAutoLevel)),this.levelController.startLevel=A}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(A){var l=!!A;l!==this.config.capLevelToPlayerSize&&(l?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=l)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(A){this._autoLevelCapping!==A&&(u.logger.log("set autoLevelCapping:"+A),this._autoLevelCapping=A)}},{key:"bandwidthEstimate",get:function(){var A=this.abrController.bwEstimator;return A?A.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var A=this.levels,l=this.config.minAutoBitrate;if(!A)return 0;for(var i=A.length,x=0;x<i;x++)if(A[x].maxBitrate>l)return x;return 0}},{key:"maxAutoLevel",get:function(){var A=this.levels,l=this.autoLevelCapping,i;return l===-1&&A&&A.length?i=A.length-1:i=l,i}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(A){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,A)}},{key:"audioTracks",get:function(){var A=this.audioTrackController;return A?A.audioTracks:[]}},{key:"audioTrack",get:function(){var A=this.audioTrackController;return A?A.audioTrack:-1},set:function(A){var l=this.audioTrackController;l&&(l.audioTrack=A)}},{key:"subtitleTracks",get:function(){var A=this.subtitleTrackController;return A?A.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var A=this.subtitleTrackController;return A?A.subtitleTrack:-1},set:function(A){var l=this.subtitleTrackController;l&&(l.subtitleTrack=A)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var A=this.subtitleTrackController;return A?A.subtitleDisplay:!1},set:function(A){var l=this.subtitleTrackController;l&&(l.subtitleDisplay=A)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(A){this.config.lowLatencyMode=A}},{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 a.Events}},{key:"ErrorTypes",get:function(){return h.ErrorTypes}},{key:"ErrorDetails",get:function(){return h.ErrorDetails}},{key:"DefaultConfig",get:function(){return w.defaultConfig?w.defaultConfig:o.hlsDefaultConfig},set:function(A){w.defaultConfig=A}}]),w}();S.defaultConfig=void 0},"./src/is-supported.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"isSupported",function(){return _}),P.d(Y,"changeTypeSupported",function(){return C});var y=P("./src/utils/mediasource-helper.ts");function E(){return self.SourceBuffer||self.WebKitSourceBuffer}function _(){var m=Object(y.getMediaSource)();if(!m)return!1;var c=E(),r=m&&typeof m.isTypeSupported=="function"&&m.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),n=!c||c.prototype&&typeof c.prototype.appendBuffer=="function"&&typeof c.prototype.remove=="function";return!!r&&!!n}function C(){var m,c=E();return typeof(c==null||((m=c.prototype)===null||m===void 0)?void 0:m.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return u}),P.d(Y,"LoadError",function(){return f});var y=P("./src/polyfills/number.ts"),E=P("./src/errors.ts");function _(d,a){d.prototype=Object.create(a.prototype),d.prototype.constructor=d,n(d,a)}function C(d){var a=typeof Map=="function"?new Map:void 0;return C=function(g){if(g===null||!r(g))return g;if(typeof g!="function")throw new TypeError("Super expression must either be null or a function");if(typeof a!="undefined"){if(a.has(g))return a.get(g);a.set(g,p)}function p(){return m(g,arguments,e(this).constructor)}return p.prototype=Object.create(g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),n(p,g)},C(d)}function m(d,a,h){return c()?m=Reflect.construct:m=function(p,S,w){var B=[null];B.push.apply(B,S);var b=Function.bind.apply(p,B),A=new b;return w&&n(A,w.prototype),A},m.apply(null,arguments)}function c(){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,a){return n=Object.setPrototypeOf||function(g,p){return g.__proto__=p,g},n(d,a)}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 a=d.prototype;return a.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},a.abort=function(){this.loader&&this.loader.abort()},a.load=function(g,p){var S=this,w=g.url;if(!w)return Promise.reject(new f({type:E.ErrorTypes.NETWORK_ERROR,details:E.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:g,networkDetails:null},"Fragment does not have a "+(w?"part list":"url")));this.abort();var B=this.config,b=B.fLoader,A=B.loader;return new Promise(function(l,i){S.loader&&S.loader.destroy();var x=S.loader=g.loader=b?new b(B):new A(B),O=o(g),T={timeout:B.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:B.fragLoadingMaxRetryTimeout,highWaterMark:s};g.stats=x.stats,x.load(O,T,{onSuccess:function(R,k,H,J){S.resetLoader(g,x),l({frag:g,part:null,payload:R.data,networkDetails:J})},onError:function(R,k,H){S.resetLoader(g,x),i(new f({type:E.ErrorTypes.NETWORK_ERROR,details:E.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:g,response:R,networkDetails:H}))},onAbort:function(R,k,H){S.resetLoader(g,x),i(new f({type:E.ErrorTypes.NETWORK_ERROR,details:E.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:g,networkDetails:H}))},onTimeout:function(R,k,H){S.resetLoader(g,x),i(new f({type:E.ErrorTypes.NETWORK_ERROR,details:E.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:g,networkDetails:H}))},onProgress:function(R,k,H,J){p&&p({frag:g,part:null,payload:H,networkDetails:J})}})})},a.loadPart=function(g,p,S){var w=this;this.abort();var B=this.config,b=B.fLoader,A=B.loader;return new Promise(function(l,i){w.loader&&w.loader.destroy();var x=w.loader=g.loader=b?new b(B):new A(B),O=o(g,p),T={timeout:B.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:B.fragLoadingMaxRetryTimeout,highWaterMark:s};p.stats=x.stats,x.load(O,T,{onSuccess:function(R,k,H,J){w.resetLoader(g,x),w.updateStatsFromPart(g,p);var U={frag:g,part:p,payload:R.data,networkDetails:J};S(U),l(U)},onError:function(R,k,H){w.resetLoader(g,x),i(new f({type:E.ErrorTypes.NETWORK_ERROR,details:E.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:g,part:p,response:R,networkDetails:H}))},onAbort:function(R,k,H){g.stats.aborted=p.stats.aborted,w.resetLoader(g,x),i(new f({type:E.ErrorTypes.NETWORK_ERROR,details:E.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:g,part:p,networkDetails:H}))},onTimeout:function(R,k,H){w.resetLoader(g,x),i(new f({type:E.ErrorTypes.NETWORK_ERROR,details:E.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:g,part:p,networkDetails:H}))}})})},a.updateStatsFromPart=function(g,p){var S=g.stats,w=p.stats,B=w.total;if(S.loaded+=w.loaded,B){var b=Math.round(g.duration/p.duration),A=Math.min(Math.round(S.loaded/B),b),l=b-A,i=l*Math.round(S.loaded/A);S.total=S.loaded+i}else S.total=Math.max(S.loaded,S.total);var x=S.loading,O=w.loading;x.start?x.first+=O.first-O.start:(x.start=O.start,x.first=O.first),x.end=O.end},a.resetLoader=function(g,p){g.loader=null,this.loader===p&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),p.destroy()},d}();function o(d,a){a===void 0&&(a=null);var h=a||d,g={frag:d,part:a,responseType:"arraybuffer",url:h.url,headers:{},rangeStart:0,rangeEnd:0},p=h.byteRangeStartOffset,S=h.byteRangeEndOffset;return Object(y.isFiniteNumber)(p)&&Object(y.isFiniteNumber)(S)&&(g.rangeStart=p,g.rangeEnd=S),g}var f=function(d){_(a,d);function a(h){for(var g,p=arguments.length,S=new Array(p>1?p-1:0),w=1;w<p;w++)S[w-1]=arguments[w];return g=d.call.apply(d,[this].concat(S))||this,g.data=void 0,g.data=h,g}return a}(C(Error))},"./src/loader/fragment.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"ElementaryStreamTypes",function(){return u}),P.d(Y,"BaseSegment",function(){return o}),P.d(Y,"Fragment",function(){return f}),P.d(Y,"Part",function(){return d});var y=P("./src/polyfills/number.ts"),E=P("./node_modules/url-toolkit/src/url-toolkit.js"),_=P.n(E),C=P("./src/utils/logger.ts"),m=P("./src/loader/level-key.ts"),c=P("./src/loader/load-stats.ts");function r(a,h){a.prototype=Object.create(h.prototype),a.prototype.constructor=a,n(a,h)}function n(a,h){return n=Object.setPrototypeOf||function(p,S){return p.__proto__=S,p},n(a,h)}function e(a,h){for(var g=0;g<h.length;g++){var p=h[g];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}function s(a,h,g){return h&&e(a.prototype,h),g&&e(a,g),a}var u;(function(a){a.AUDIO="audio",a.VIDEO="video",a.AUDIOVIDEO="audiovideo"})(u||(u={}));var o=function(){function a(g){var p;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(p={},p[u.AUDIO]=null,p[u.VIDEO]=null,p[u.AUDIOVIDEO]=null,p),this.baseurl=g}var h=a.prototype;return h.setByteRange=function(p,S){var w=p.split("@",2),B=[];w.length===1?B[0]=S?S.byteRangeEndOffset:0:B[0]=parseInt(w[1]),B[1]=parseInt(w[0])+B[0],this._byteRange=B},s(a,[{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(p){this._url=p}}]),a}(),f=function(a){r(h,a);function h(p,S){var w;return w=a.call(this,S)||this,w._decryptdata=null,w.rawProgramDateTime=null,w.programDateTime=null,w.tagList=[],w.duration=0,w.sn=0,w.levelkey=void 0,w.type=void 0,w.loader=null,w.level=-1,w.cc=0,w.startPTS=void 0,w.endPTS=void 0,w.appendedPTS=void 0,w.startDTS=void 0,w.endDTS=void 0,w.start=0,w.deltaPTS=void 0,w.maxStartPTS=void 0,w.minEndPTS=void 0,w.stats=new c.LoadStats,w.urlId=0,w.data=void 0,w.bitrateTest=!1,w.title=null,w.initSegment=null,w.type=p,w}var g=h.prototype;return g.createInitializationVector=function(S){for(var w=new Uint8Array(16),B=12;B<16;B++)w[B]=S>>8*(15-B)&255;return w},g.setDecryptDataFromLevelKey=function(S,w){var B=S;return(S==null?void 0:S.method)==="AES-128"&&S.uri&&!S.iv&&(B=m.LevelKey.fromURI(S.uri),B.method=S.method,B.iv=this.createInitializationVector(w),B.keyFormat="identity"),B},g.setElementaryStreamInfo=function(S,w,B,b,A,l){l===void 0&&(l=!1);var i=this.elementaryStreams,x=i[S];if(!x){i[S]={startPTS:w,endPTS:B,startDTS:b,endDTS:A,partial:l};return}x.startPTS=Math.min(x.startPTS,w),x.endPTS=Math.max(x.endPTS,B),x.startDTS=Math.min(x.startDTS,b),x.endDTS=Math.max(x.endDTS,A)},g.clearElementaryStreamInfo=function(){var S=this.elementaryStreams;S[u.AUDIO]=null,S[u.VIDEO]=null,S[u.AUDIOVIDEO]=null},s(h,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var S=this.sn;typeof S!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&C.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),S=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,S)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(y.isFiniteNumber)(this.programDateTime))return null;var S=Object(y.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+S*1e3}},{key:"encrypted",get:function(){var S;return!!((S=this.decryptdata)!==null&&S!==void 0&&S.keyFormat&&this.decryptdata.uri)}}]),h}(o),d=function(a){r(h,a);function h(g,p,S,w,B){var b;b=a.call(this,S)||this,b.fragOffset=0,b.duration=0,b.gap=!1,b.independent=!1,b.relurl=void 0,b.fragment=void 0,b.index=void 0,b.stats=new c.LoadStats,b.duration=g.decimalFloatingPoint("DURATION"),b.gap=g.bool("GAP"),b.independent=g.bool("INDEPENDENT"),b.relurl=g.enumeratedString("URI"),b.fragment=p,b.index=w;var A=g.enumeratedString("BYTERANGE");return A&&b.setByteRange(A,B),B&&(b.fragOffset=B.fragOffset+B.duration),b}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 p=this.elementaryStreams;return!!(p.audio||p.video||p.audiovideo)}}]),h}(o)},"./src/loader/key-loader.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return C});var y=P("./src/events.ts"),E=P("./src/errors.ts"),_=P("./src/utils/logger.ts"),C=function(){function m(r){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=r,this._registerListeners()}var c=m.prototype;return c._registerListeners=function(){this.hls.on(y.Events.KEY_LOADING,this.onKeyLoading,this)},c._unregisterListeners=function(){this.hls.off(y.Events.KEY_LOADING,this.onKeyLoading)},c.destroy=function(){this._unregisterListeners();for(var n in this.loaders){var e=this.loaders[n];e&&e.destroy()}this.loaders={}},c.onKeyLoading=function(n,e){var s=e.frag,u=s.type,o=this.loaders[u];if(!s.decryptdata){_.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var f=s.decryptdata.uri;if(f!==this.decrypturl||this.decryptkey===null){var d=this.hls.config;if(o&&(_.logger.warn("abort previous key loader for type:"+u),o.abort()),!f){_.logger.warn("key uri is falsy");return}var a=d.loader,h=s.loader=this.loaders[u]=new a(d);this.decrypturl=f,this.decryptkey=null;var g={url:f,frag:s,responseType:"arraybuffer"},p={timeout:d.fragLoadingTimeOut,maxRetry:0,retryDelay:d.fragLoadingRetryDelay,maxRetryDelay:d.fragLoadingMaxRetryTimeout,highWaterMark:0},S={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};h.load(g,p,S)}else this.decryptkey&&(s.decryptdata.key=this.decryptkey,this.hls.trigger(y.Events.KEY_LOADED,{frag:s}))},c.loadsuccess=function(n,e,s){var u=s.frag;if(!u.decryptdata){_.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(y.Events.KEY_LOADED,{frag:u})},c.loaderror=function(n,e){var s=e.frag,u=s.loader;u&&u.abort(),delete this.loaders[s.type],this.hls.trigger(y.Events.ERROR,{type:E.ErrorTypes.NETWORK_ERROR,details:E.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:s,response:n})},c.loadtimeout=function(n,e){var s=e.frag,u=s.loader;u&&u.abort(),delete this.loaders[s.type],this.hls.trigger(y.Events.ERROR,{type:E.ErrorTypes.NETWORK_ERROR,details:E.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:s})},m}()},"./src/loader/level-details.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"LevelDetails",function(){return m});var y=P("./src/polyfills/number.ts");function E(c,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(c,e.key,e)}}function _(c,r,n){return r&&E(c.prototype,r),n&&E(c,n),c}var C=10,m=function(){function c(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=c.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,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(y.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||C}},{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}}]),c}()},"./src/loader/level-key.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"LevelKey",function(){return m});var y=P("./node_modules/url-toolkit/src/url-toolkit.js"),E=P.n(y);function _(c,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(c,e.key,e)}}function C(c,r,n){return r&&_(c.prototype,r),n&&_(c,n),c}var m=function(){c.fromURL=function(n,e){return new c(n,e)},c.fromURI=function(n){return new c(n)};function c(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(y.buildAbsoluteURL)(r,n,{alwaysNormalize:!0}):this._uri=r}return C(c,[{key:"uri",get:function(){return this._uri}}]),c}()},"./src/loader/load-stats.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"LoadStats",function(){return y});var y=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(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return h});var y=P("./src/polyfills/number.ts"),E=P("./node_modules/url-toolkit/src/url-toolkit.js"),_=P.n(E),C=P("./src/loader/fragment.ts"),m=P("./src/loader/level-details.ts"),c=P("./src/loader/level-key.ts"),r=P("./src/utils/attr-list.ts"),n=P("./src/utils/logger.ts"),e=P("./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,o=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),f=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(PLAYLIST-TYPE):(.+)/.source,/#EXT-X-(MEDIA-SEQUENCE): *(\d+)/.source,/#EXT-X-(SKIP):(.+)/.source,/#EXT-X-(TARGETDURATION): *(\d+)/.source,/#EXT-X-(KEY):(.+)/.source,/#EXT-X-(START):(.+)/.source,/#EXT-X-(ENDLIST)/.source,/#EXT-X-(DISCONTINUITY-SEQ)UENCE: *(\d+)/.source,/#EXT-X-(DIS)CONTINUITY/.source,/#EXT-X-(VERSION):(\d+)/.source,/#EXT-X-(MAP):(.+)/.source,/#EXT-X-(SERVER-CONTROL):(.+)/.source,/#EXT-X-(PART-INF):(.+)/.source,/#EXT-X-(GAP)/.source,/#EXT-X-(BITRATE):\s*(\d+)/.source,/#EXT-X-(PART):(.+)/.source,/#EXT-X-(PRELOAD-HINT):(.+)/.source,/#EXT-X-(RENDITION-REPORT):(.+)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|")),d=/\.(mp4|m4s|m4v|m4a)$/i;function a(B){var b,A;return d.test((b=(A=E.parseURL(B))===null||A===void 0?void 0:A.path)!=null?b:"")}var h=function(){function B(){}return B.findGroup=function(A,l){for(var i=0;i<A.length;i++){var x=A[i];if(x.id===l)return x}},B.convertAVC1ToAVCOTI=function(A){var l=A.split(".");if(l.length>2){var i=l.shift()+".";return i+=parseInt(l.shift()).toString(16),i+=("000"+parseInt(l.shift()).toString(16)).substr(-4),i}return A},B.resolve=function(A,l){return E.buildAbsoluteURL(l,A,{alwaysNormalize:!0})},B.parseMasterPlaylist=function(A,l){var i=[],x={},O=!1;s.lastIndex=0;for(var T;(T=s.exec(A))!=null;)if(T[1]){var D=new r.AttrList(T[1]),R={attrs:D,bitrate:D.decimalInteger("AVERAGE-BANDWIDTH")||D.decimalInteger("BANDWIDTH"),name:D.NAME,url:B.resolve(T[2],l)},k=D.decimalResolution("RESOLUTION");k&&(R.width=k.width,R.height=k.height),g((D.CODECS||"").split(/[ ,]+/).filter(function(J){return J}),R),R.videoCodec&&R.videoCodec.indexOf("avc1")!==-1&&(R.videoCodec=B.convertAVC1ToAVCOTI(R.videoCodec)),i.push(R)}else if(T[3]){var H=new r.AttrList(T[3]);H["DATA-ID"]&&(O=!0,x[H["DATA-ID"]]=H)}return{levels:i,sessionData:O?x:null}},B.parseMasterPlaylistMedia=function(A,l,i,x){x===void 0&&(x=[]);var O,T=[],D=0;for(u.lastIndex=0;(O=u.exec(A))!==null;){var R=new r.AttrList(O[1]);if(R.TYPE===i){var k={attrs:R,bitrate:0,id:D++,groupId:R["GROUP-ID"],instreamId:R["INSTREAM-ID"],name:R.NAME||R.LANGUAGE||"",type:i,default:R.bool("DEFAULT"),autoselect:R.bool("AUTOSELECT"),forced:R.bool("FORCED"),lang:R.LANGUAGE,url:R.URI?B.resolve(R.URI,l):""};if(x.length){var H=B.findGroup(x,k.groupId)||x[0];p(k,H,"audioCodec"),p(k,H,"textCodec")}T.push(k)}}return T},B.parseLevelPlaylist=function(A,l,i,x,O){var T=new m.LevelDetails(l),D=T.fragments,R=null,k=0,H=0,J=0,U=0,K=null,G=new C.Fragment(x,l),N,Q,X,te=-1,oe=!1;for(o.lastIndex=0,T.m3u8=A;(N=o.exec(A))!==null;){oe&&(oe=!1,G=new C.Fragment(x,l),G.start=J,G.sn=k,G.cc=U,G.level=i,R&&(G.initSegment=R,G.rawProgramDateTime=R.rawProgramDateTime));var me=N[1];if(me){G.duration=parseFloat(me);var se=(" "+N[2]).slice(1);G.title=se||null,G.tagList.push(se?["INF",me,se]:["INF",me])}else if(N[3])Object(y.isFiniteNumber)(G.duration)&&(G.start=J,X&&(G.levelkey=X),G.sn=k,G.level=i,G.cc=U,G.urlId=O,D.push(G),G.relurl=(" "+N[3]).slice(1),w(G,K),K=G,J+=G.duration,k++,H=0,oe=!0);else if(N[4]){var _e=(" "+N[4]).slice(1);K?G.setByteRange(_e,K):G.setByteRange(_e)}else if(N[5])G.rawProgramDateTime=(" "+N[5]).slice(1),G.tagList.push(["PROGRAM-DATE-TIME",G.rawProgramDateTime]),te===-1&&(te=D.length);else{if(N=N[0].match(f),!N){n.logger.warn("No matches on slow regex match for level playlist!");continue}for(Q=1;Q<N.length&&!(typeof N[Q]!="undefined");Q++);var Ae=(" "+N[Q]).slice(1),Ee=(" "+N[Q+1]).slice(1),pe=N[Q+2]?(" "+N[Q+2]).slice(1):"";switch(Ae){case"PLAYLIST-TYPE":T.type=Ee.toUpperCase();break;case"MEDIA-SEQUENCE":k=T.startSN=parseInt(Ee);break;case"SKIP":{var he=new r.AttrList(Ee),ie=he.decimalInteger("SKIPPED-SEGMENTS");if(Object(y.isFiniteNumber)(ie)){T.skippedSegments=ie;for(var fe=ie;fe--;)D.unshift(null);k+=ie}var ge=he.enumeratedString("RECENTLY-REMOVED-DATERANGES");ge&&(T.recentlyRemovedDateranges=ge.split(" "));break}case"TARGETDURATION":T.targetduration=parseFloat(Ee);break;case"VERSION":T.version=parseInt(Ee);break;case"EXTM3U":break;case"ENDLIST":T.live=!1;break;case"#":(Ee||pe)&&G.tagList.push(pe?[Ee,pe]:[Ee]);break;case"DIS":U++;case"GAP":G.tagList.push([Ae]);break;case"BITRATE":G.tagList.push([Ae,Ee]);break;case"DISCONTINUITY-SEQ":U=parseInt(Ee);break;case"KEY":{var ce,Ie=new r.AttrList(Ee),Fe=Ie.enumeratedString("METHOD"),ke=Ie.URI,re=Ie.hexadecimalInteger("IV"),F=Ie.enumeratedString("KEYFORMATVERSIONS"),W=Ie.enumeratedString("KEYID"),de=(ce=Ie.enumeratedString("KEYFORMAT"))!=null?ce:"identity",ne=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(ne.indexOf(de)>-1){n.logger.warn("Keyformat "+de+" is not supported from the manifest");continue}else if(de!=="identity")continue;Fe&&(X=c.LevelKey.fromURL(l,ke),ke&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Fe)>=0&&(X.method=Fe,X.keyFormat=de,W&&(X.keyID=W),F&&(X.keyFormatVersions=F),X.iv=re));break}case"START":{var le=new r.AttrList(Ee),De=le.decimalFloatingPoint("TIME-OFFSET");Object(y.isFiniteNumber)(De)&&(T.startTimeOffset=De);break}case"MAP":{var Xe=new r.AttrList(Ee);G.relurl=Xe.URI,Xe.BYTERANGE&&G.setByteRange(Xe.BYTERANGE),G.level=i,G.sn="initSegment",X&&(G.levelkey=X),G.initSegment=null,R=G,oe=!0;break}case"SERVER-CONTROL":{var xt=new r.AttrList(Ee);T.canBlockReload=xt.bool("CAN-BLOCK-RELOAD"),T.canSkipUntil=xt.optionalFloat("CAN-SKIP-UNTIL",0),T.canSkipDateRanges=T.canSkipUntil>0&&xt.bool("CAN-SKIP-DATERANGES"),T.partHoldBack=xt.optionalFloat("PART-HOLD-BACK",0),T.holdBack=xt.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Ke=new r.AttrList(Ee);T.partTarget=Ke.decimalFloatingPoint("PART-TARGET");break}case"PART":{var ze=T.partList;ze||(ze=T.partList=[]);var yt=H>0?ze[ze.length-1]:void 0,Et=H++,ct=new C.Part(new r.AttrList(Ee),G,l,Et,yt);ze.push(ct),G.duration+=ct.duration;break}case"PRELOAD-HINT":{var lt=new r.AttrList(Ee);T.preloadHint=lt;break}case"RENDITION-REPORT":{var rt=new r.AttrList(Ee);T.renditionReports=T.renditionReports||[],T.renditionReports.push(rt);break}default:n.logger.warn("line parsed but not handled: "+N);break}}}K&&!K.relurl?(D.pop(),J-=K.duration,T.partList&&(T.fragmentHint=K)):T.partList&&(w(G,K),G.cc=U,T.fragmentHint=G);var qe=D.length,$e=D[0],Pe=D[qe-1];if(J+=T.skippedSegments*T.targetduration,J>0&&qe&&Pe){T.averagetargetduration=J/qe;var je=Pe.sn;T.endSN=je!=="initSegment"?je:0,$e&&(T.startCC=$e.cc,$e.initSegment||T.fragments.every(function(Ne){return Ne.relurl&&a(Ne.relurl)})&&(n.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),G=new C.Fragment(x,l),G.relurl=Pe.relurl,G.level=i,G.sn="initSegment",$e.initSegment=G,T.needSidxRanges=!0))}else T.endSN=0,T.startCC=0;return T.fragmentHint&&(J+=T.fragmentHint.duration),T.totalduration=J,T.endCC=U,te>0&&S(D,te),T},B}();function g(B,b){["video","audio","text"].forEach(function(A){var l=B.filter(function(x){return Object(e.isCodecType)(x,A)});if(l.length){var i=l.filter(function(x){return x.lastIndexOf("avc1",0)===0||x.lastIndexOf("mp4a",0)===0});b[A+"Codec"]=i.length>0?i[0]:l[0],B=B.filter(function(x){return l.indexOf(x)===-1})}}),b.unknownCodecs=B}function p(B,b,A){var l=b[A];l&&(B[A]=l)}function S(B,b){for(var A=B[b],l=b;l--;){var i=B[l];if(!i)return;i.programDateTime=A.programDateTime-i.duration*1e3,A=i}}function w(B,b){B.rawProgramDateTime?B.programDateTime=Date.parse(B.rawProgramDateTime):b!=null&&b.programDateTime&&(B.programDateTime=b.endProgramDateTime),Object(y.isFiniteNumber)(B.programDateTime)||(B.programDateTime=null,B.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(ue,Y,P){"use strict";P.r(Y);var y=P("./src/polyfills/number.ts"),E=P("./src/events.ts"),_=P("./src/errors.ts"),C=P("./src/utils/logger.ts"),m=P("./src/utils/mp4-tools.ts"),c=P("./src/loader/m3u8-parser.ts"),r=P("./src/types/loader.ts"),n=P("./src/utils/attr-list.ts");function e(o){var f=o.type;switch(f){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(o,f){var d=o.url;return(d===void 0||d.indexOf("data:")===0)&&(d=f.url),d}var u=function(){function o(d){this.hls=void 0,this.loaders=Object.create(null),this.hls=d,this.registerListeners()}var f=o.prototype;return f.registerListeners=function(){var a=this.hls;a.on(E.Events.MANIFEST_LOADING,this.onManifestLoading,this),a.on(E.Events.LEVEL_LOADING,this.onLevelLoading,this),a.on(E.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),a.on(E.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},f.unregisterListeners=function(){var a=this.hls;a.off(E.Events.MANIFEST_LOADING,this.onManifestLoading,this),a.off(E.Events.LEVEL_LOADING,this.onLevelLoading,this),a.off(E.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),a.off(E.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},f.createInternalLoader=function(a){var h=this.hls.config,g=h.pLoader,p=h.loader,S=g||p,w=new S(h);return a.loader=w,this.loaders[a.type]=w,w},f.getInternalLoader=function(a){return this.loaders[a.type]},f.resetInternalLoader=function(a){this.loaders[a]&&delete this.loaders[a]},f.destroyInternalLoaders=function(){for(var a in this.loaders){var h=this.loaders[a];h&&h.destroy(),this.resetInternalLoader(a)}},f.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},f.onManifestLoading=function(a,h){var g=h.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:r.PlaylistContextType.MANIFEST,url:g,deliveryDirectives:null})},f.onLevelLoading=function(a,h){var g=h.id,p=h.level,S=h.url,w=h.deliveryDirectives;this.load({id:g,groupId:null,level:p,responseType:"text",type:r.PlaylistContextType.LEVEL,url:S,deliveryDirectives:w})},f.onAudioTrackLoading=function(a,h){var g=h.id,p=h.groupId,S=h.url,w=h.deliveryDirectives;this.load({id:g,groupId:p,level:null,responseType:"text",type:r.PlaylistContextType.AUDIO_TRACK,url:S,deliveryDirectives:w})},f.onSubtitleTrackLoading=function(a,h){var g=h.id,p=h.groupId,S=h.url,w=h.deliveryDirectives;this.load({id:g,groupId:p,level:null,responseType:"text",type:r.PlaylistContextType.SUBTITLE_TRACK,url:S,deliveryDirectives:w})},f.load=function(a){var h,g=this.hls.config,p=this.getInternalLoader(a);if(p){var S=p.context;if(S&&S.url===a.url){C.logger.trace("[playlist-loader]: playlist request ongoing");return}C.logger.log("[playlist-loader]: aborting previous loader for type: "+a.type),p.abort()}var w,B,b,A;switch(a.type){case r.PlaylistContextType.MANIFEST:w=g.manifestLoadingMaxRetry,B=g.manifestLoadingTimeOut,b=g.manifestLoadingRetryDelay,A=g.manifestLoadingMaxRetryTimeout;break;case r.PlaylistContextType.LEVEL:case r.PlaylistContextType.AUDIO_TRACK:case r.PlaylistContextType.SUBTITLE_TRACK:w=0,B=g.levelLoadingTimeOut;break;default:w=g.levelLoadingMaxRetry,B=g.levelLoadingTimeOut,b=g.levelLoadingRetryDelay,A=g.levelLoadingMaxRetryTimeout;break}if(p=this.createInternalLoader(a),(h=a.deliveryDirectives)!==null&&h!==void 0&&h.part){var l;if(a.type===r.PlaylistContextType.LEVEL&&a.level!==null?l=this.hls.levels[a.level].details:a.type===r.PlaylistContextType.AUDIO_TRACK&&a.id!==null?l=this.hls.audioTracks[a.id].details:a.type===r.PlaylistContextType.SUBTITLE_TRACK&&a.id!==null&&(l=this.hls.subtitleTracks[a.id].details),l){var i=l.partTarget,x=l.targetduration;i&&x&&(B=Math.min(Math.max(i*3,x*.8)*1e3,B))}}var O={timeout:B,maxRetry:w,retryDelay:b,maxRetryDelay:A,highWaterMark:0},T={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};p.load(a,O,T)},f.loadsuccess=function(a,h,g,p){if(p===void 0&&(p=null),g.isSidxRequest){this.handleSidxRequest(a,g),this.handlePlaylistLoaded(a,h,g,p);return}this.resetInternalLoader(g.type);var S=a.data;if(S.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(a,g,"no EXTM3U delimiter",p);return}h.parsing.start=performance.now(),S.indexOf("#EXTINF:")>0||S.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(a,h,g,p):this.handleMasterPlaylist(a,h,g,p)},f.loaderror=function(a,h,g){g===void 0&&(g=null),this.handleNetworkError(h,g,!1,a)},f.loadtimeout=function(a,h,g){g===void 0&&(g=null),this.handleNetworkError(h,g,!0)},f.handleMasterPlaylist=function(a,h,g,p){var S=this.hls,w=a.data,B=s(a,g),b=c.default.parseMasterPlaylist(w,B),A=b.levels,l=b.sessionData;if(!A.length){this.handleManifestParsingError(a,g,"no level found in manifest",p);return}var i=A.map(function(k){return{id:k.attrs.AUDIO,audioCodec:k.audioCodec}}),x=A.map(function(k){return{id:k.attrs.SUBTITLES,textCodec:k.textCodec}}),O=c.default.parseMasterPlaylistMedia(w,B,"AUDIO",i),T=c.default.parseMasterPlaylistMedia(w,B,"SUBTITLES",x),D=c.default.parseMasterPlaylistMedia(w,B,"CLOSED-CAPTIONS");if(O.length){var R=O.some(function(k){return!k.url});!R&&A[0].audioCodec&&!A[0].attrs.AUDIO&&(C.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),O.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new n.AttrList({}),bitrate:0,url:""}))}S.trigger(E.Events.MANIFEST_LOADED,{levels:A,audioTracks:O,subtitles:T,captions:D,url:B,stats:h,networkDetails:p,sessionData:l})},f.handleTrackOrLevelPlaylist=function(a,h,g,p){var S=this.hls,w=g.id,B=g.level,b=g.type,A=s(a,g),l=Object(y.isFiniteNumber)(w)?w:0,i=Object(y.isFiniteNumber)(B)?B:l,x=e(g),O=c.default.parseLevelPlaylist(a.data,A,i,x,l);if(!O.fragments.length){S.trigger(E.Events.ERROR,{type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:A,reason:"no fragments found in level",level:typeof g.level=="number"?g.level:void 0});return}if(b===r.PlaylistContextType.MANIFEST){var T={attrs:new n.AttrList({}),bitrate:0,details:O,name:"",url:A};S.trigger(E.Events.MANIFEST_LOADED,{levels:[T],audioTracks:[],url:A,stats:h,networkDetails:p,sessionData:null})}if(h.parsing.end=performance.now(),O.needSidxRanges){var D,R=(D=O.fragments[0].initSegment)===null||D===void 0?void 0:D.url;this.load({url:R,isSidxRequest:!0,type:b,level:B,levelDetails:O,id:w,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}g.levelDetails=O,this.handlePlaylistLoaded(a,h,g,p)},f.handleSidxRequest=function(a,h){var g=Object(m.parseSegmentIndex)(new Uint8Array(a.data));if(!g)return;var p=g.references,S=h.levelDetails;p.forEach(function(w,B){var b=w.info,A=S.fragments[B];A.byteRange.length===0&&A.setByteRange(String(1+b.end-b.start)+"@"+String(b.start)),A.initSegment&&A.initSegment.setByteRange(String(g.moovEndOffset)+"@0")})},f.handleManifestParsingError=function(a,h,g,p){this.hls.trigger(E.Events.ERROR,{type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:h.type===r.PlaylistContextType.MANIFEST,url:a.url,reason:g,response:a,context:h,networkDetails:p})},f.handleNetworkError=function(a,h,g,p){g===void 0&&(g=!1),C.logger.warn("[playlist-loader]: A network "+(g?"timeout":"error")+" occurred while loading "+a.type+" level: "+a.level+" id: "+a.id+' group-id: "'+a.groupId+'"');var S=_.ErrorDetails.UNKNOWN,w=!1,B=this.getInternalLoader(a);switch(a.type){case r.PlaylistContextType.MANIFEST:S=g?_.ErrorDetails.MANIFEST_LOAD_TIMEOUT:_.ErrorDetails.MANIFEST_LOAD_ERROR,w=!0;break;case r.PlaylistContextType.LEVEL:S=g?_.ErrorDetails.LEVEL_LOAD_TIMEOUT:_.ErrorDetails.LEVEL_LOAD_ERROR,w=!1;break;case r.PlaylistContextType.AUDIO_TRACK:S=g?_.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:_.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,w=!1;break;case r.PlaylistContextType.SUBTITLE_TRACK:S=g?_.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:_.ErrorDetails.SUBTITLE_LOAD_ERROR,w=!1;break}B&&this.resetInternalLoader(a.type);var b={type:_.ErrorTypes.NETWORK_ERROR,details:S,fatal:w,url:a.url,loader:B,context:a,networkDetails:h};p&&(b.response=p),this.hls.trigger(E.Events.ERROR,b)},f.handlePlaylistLoaded=function(a,h,g,p){var S=g.type,w=g.level,B=g.id,b=g.groupId,A=g.loader,l=g.levelDetails,i=g.deliveryDirectives;if(!(l!=null&&l.targetduration)){this.handleManifestParsingError(a,g,"invalid target duration",p);return}if(!A)return;l.live&&(A.getCacheAge&&(l.ageHeader=A.getCacheAge()||0),(!A.getCacheAge||isNaN(l.ageHeader))&&(l.ageHeader=0));switch(S){case r.PlaylistContextType.MANIFEST:case r.PlaylistContextType.LEVEL:this.hls.trigger(E.Events.LEVEL_LOADED,{details:l,level:w||0,id:B||0,stats:h,networkDetails:p,deliveryDirectives:i});break;case r.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(E.Events.AUDIO_TRACK_LOADED,{details:l,id:B||0,groupId:b||"",stats:h,networkDetails:p,deliveryDirectives:i});break;case r.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(E.Events.SUBTITLE_TRACK_LOADED,{details:l,id:B||0,groupId:b||"",stats:h,networkDetails:p,deliveryDirectives:i});break}},o}();Y.default=u},"./src/polyfills/number.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"isFiniteNumber",function(){return y}),P.d(Y,"MAX_SAFE_INTEGER",function(){return E});var y=Number.isFinite||function(_){return typeof _=="number"&&isFinite(_)},E=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(ue,Y,P){"use strict";P.r(Y);var y=function(){function E(){}return E.getSilentFrame=function(C,m){switch(C){case"mp4a.40.2":if(m===1)return new Uint8Array([0,200,0,128,35,128]);if(m===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(m===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(m===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(m===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(m===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(m===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(m===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(m===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return},E}();Y.default=y},"./src/remux/mp4-generator.ts":function(ue,Y,P){"use strict";P.r(Y);var y=Math.pow(2,32)-1,E=function(){function _(){}return _.init=function(){_.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var m;for(m in _.types)_.types.hasOwnProperty(m)&&(_.types[m]=[m.charCodeAt(0),m.charCodeAt(1),m.charCodeAt(2),m.charCodeAt(3)]);var c=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]);_.HDLR_TYPES={video:c,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]);_.STTS=_.STSC=_.STCO=e,_.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),_.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),_.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),_.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]),o=new Uint8Array([0,0,0,1]);_.FTYP=_.box(_.types.ftyp,s,o,s,u),_.DINF=_.box(_.types.dinf,_.box(_.types.dref,n))},_.box=function(m){for(var c=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--;)c+=n[s].byteLength;var o=new Uint8Array(c);for(o[0]=c>>24&255,o[1]=c>>16&255,o[2]=c>>8&255,o[3]=c&255,o.set(m,4),s=0,c=8;s<u;s++)o.set(n[s],c),c+=n[s].byteLength;return o},_.hdlr=function(m){return _.box(_.types.hdlr,_.HDLR_TYPES[m])},_.mdat=function(m){return _.box(_.types.mdat,m)},_.mdhd=function(m,c){c*=m;var r=Math.floor(c/(y+1)),n=Math.floor(c%(y+1));return _.box(_.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,m>>24&255,m>>16&255,m>>8&255,m&255,r>>24,r>>16&255,r>>8&255,r&255,n>>24,n>>16&255,n>>8&255,n&255,85,196,0,0]))},_.mdia=function(m){return _.box(_.types.mdia,_.mdhd(m.timescale,m.duration),_.hdlr(m.type),_.minf(m))},_.mfhd=function(m){return _.box(_.types.mfhd,new Uint8Array([0,0,0,0,m>>24,m>>16&255,m>>8&255,m&255]))},_.minf=function(m){return m.type==="audio"?_.box(_.types.minf,_.box(_.types.smhd,_.SMHD),_.DINF,_.stbl(m)):_.box(_.types.minf,_.box(_.types.vmhd,_.VMHD),_.DINF,_.stbl(m))},_.moof=function(m,c,r){return _.box(_.types.moof,_.mfhd(m),_.traf(r,c))},_.moov=function(m){for(var c=m.length,r=[];c--;)r[c]=_.trak(m[c]);return _.box.apply(null,[_.types.moov,_.mvhd(m[0].timescale,m[0].duration)].concat(r).concat(_.mvex(m)))},_.mvex=function(m){for(var c=m.length,r=[];c--;)r[c]=_.trex(m[c]);return _.box.apply(null,[_.types.mvex].concat(r))},_.mvhd=function(m,c){c*=m;var r=Math.floor(c/(y+1)),n=Math.floor(c%(y+1)),e=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,m>>24&255,m>>16&255,m>>8&255,m&255,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 _.box(_.types.mvhd,e)},_.sdtp=function(m){var c=m.samples||[],r=new Uint8Array(4+c.length),n,e;for(n=0;n<c.length;n++)e=c[n].flags,r[n+4]=e.dependsOn<<4|e.isDependedOn<<2|e.hasRedundancy;return _.box(_.types.sdtp,r)},_.stbl=function(m){return _.box(_.types.stbl,_.stsd(m),_.box(_.types.stts,_.STTS),_.box(_.types.stsc,_.STSC),_.box(_.types.stsz,_.STSZ),_.box(_.types.stco,_.STCO))},_.avc1=function(m){var c=[],r=[],n,e,s;for(n=0;n<m.sps.length;n++)e=m.sps[n],s=e.byteLength,c.push(s>>>8&255),c.push(s&255),c=c.concat(Array.prototype.slice.call(e));for(n=0;n<m.pps.length;n++)e=m.pps[n],s=e.byteLength,r.push(s>>>8&255),r.push(s&255),r=r.concat(Array.prototype.slice.call(e));var u=_.box(_.types.avcC,new Uint8Array([1,c[3],c[4],c[5],252|3,224|m.sps.length].concat(c).concat([m.pps.length]).concat(r))),o=m.width,f=m.height,d=m.pixelRatio[0],a=m.pixelRatio[1];return _.box(_.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,o>>8&255,o&255,f>>8&255,f&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),u,_.box(_.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),_.box(_.types.pasp,new Uint8Array([d>>24,d>>16&255,d>>8&255,d&255,a>>24,a>>16&255,a>>8&255,a&255])))},_.esds=function(m){var c=m.config.length;return new Uint8Array([0,0,0,0,3,23+c,0,1,0,4,15+c,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([c]).concat(m.config).concat([6,1,2]))},_.mp4a=function(m){var c=m.samplerate;return _.box(_.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,m.channelCount,0,16,0,0,0,0,c>>8&255,c&255,0,0]),_.box(_.types.esds,_.esds(m)))},_.mp3=function(m){var c=m.samplerate;return _.box(_.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,m.channelCount,0,16,0,0,0,0,c>>8&255,c&255,0,0]))},_.stsd=function(m){return m.type==="audio"?!m.isAAC&&m.codec==="mp3"?_.box(_.types.stsd,_.STSD,_.mp3(m)):_.box(_.types.stsd,_.STSD,_.mp4a(m)):_.box(_.types.stsd,_.STSD,_.avc1(m))},_.tkhd=function(m){var c=m.id,r=m.duration*m.timescale,n=m.width,e=m.height,s=Math.floor(r/(y+1)),u=Math.floor(r%(y+1));return _.box(_.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,c>>24&255,c>>16&255,c>>8&255,c&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]))},_.traf=function(m,c){var r=_.sdtp(m),n=m.id,e=Math.floor(c/(y+1)),s=Math.floor(c%(y+1));return _.box(_.types.traf,_.box(_.types.tfhd,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255])),_.box(_.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])),_.trun(m,r.length+16+20+8+16+8+8),r)},_.trak=function(m){return m.duration=m.duration||4294967295,_.box(_.types.trak,_.tkhd(m),_.mdia(m))},_.trex=function(m){var c=m.id;return _.box(_.types.trex,new Uint8Array([0,0,0,0,c>>24,c>>16&255,c>>8&255,c&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},_.trun=function(m,c){var r=m.samples||[],n=r.length,e=12+16*n,s=new Uint8Array(e),u,o,f,d,a,h;for(c+=8+e,s.set([0,0,15,1,n>>>24&255,n>>>16&255,n>>>8&255,n&255,c>>>24&255,c>>>16&255,c>>>8&255,c&255],0),u=0;u<n;u++)o=r[u],f=o.duration,d=o.size,a=o.flags,h=o.cts,s.set([f>>>24&255,f>>>16&255,f>>>8&255,f&255,d>>>24&255,d>>>16&255,d>>>8&255,d&255,a.isLeading<<2|a.dependsOn,a.isDependedOn<<6|a.hasRedundancy<<4|a.paddingValue<<1|a.isNonSync,a.degradPrio&240<<8,a.degradPrio&15,h>>>24&255,h>>>16&255,h>>>8&255,h&255],12+16*u);return _.box(_.types.trun,s)},_.initSegment=function(m){_.types||_.init();var c=_.moov(m),r=new Uint8Array(_.FTYP.byteLength+c.byteLength);return r.set(_.FTYP),r.set(c,_.FTYP.byteLength),r},_}();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,Y.default=E},"./src/remux/mp4-remuxer.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return h}),P.d(Y,"normalizePts",function(){return g});var y=P("./src/polyfills/number.ts"),E=P("./src/remux/aac-helper.ts"),_=P("./src/remux/mp4-generator.ts"),C=P("./src/events.ts"),m=P("./src/errors.ts"),c=P("./src/utils/logger.ts"),r=P("./src/types/loader.ts"),n=P("./src/utils/timescale-conversion.ts");function e(){return e=Object.assign||function(B){for(var b=1;b<arguments.length;b++){var A=arguments[b];for(var l in A)Object.prototype.hasOwnProperty.call(A,l)&&(B[l]=A[l])}return B},e.apply(this,arguments)}var s=10*1e3,u=1024,o=1152,f=null,d=null,a=!1,h=function(){function B(A,l,i,x){if(x===void 0&&(x=""),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=A,this.config=l,this.typeSupported=i,this.ISGenerated=!1,f===null){var O=navigator.userAgent||"",T=O.match(/Chrome\/(\d+)/i);f=T?parseInt(T[1]):0}if(d===null){var D=navigator.userAgent.match(/Safari\/(\d+)/i);d=D?parseInt(D[1]):0}a=!!f&&f<75||!!d&&d<600}var b=B.prototype;return b.destroy=function(){},b.resetTimeStamp=function(l){c.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=l},b.resetNextTimestamp=function(){c.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},b.resetInitSegment=function(){c.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},b.getVideoStartPts=function(l){var i=!1,x=l.reduce(function(O,T){var D=T.pts-O;return D<-4294967296?(i=!0,g(O,T.pts)):D>0?O:T.pts},l[0].pts);return i&&c.logger.debug("PTS rollover detected"),x},b.remux=function(l,i,x,O,T,D,R,k){var H,J,U,K,G,N,Q=T,X=T,te=l.pid>-1,oe=i.pid>-1,me=i.samples.length,se=l.samples.length>0,_e=me>1,Ae=(!te||se)&&(!oe||_e)||this.ISGenerated||R;if(Ae){this.ISGenerated||(U=this.generateIS(l,i,T));var Ee=this.isVideoContiguous,pe=-1;if(_e&&(pe=p(i.samples),!Ee&&this.config.forceKeyFrameOnDiscontinuity))if(N=!0,pe>0){c.logger.warn("[mp4-remuxer]: Dropped "+pe+" out of "+me+" video samples due to a missing keyframe");var he=this.getVideoStartPts(i.samples);i.samples=i.samples.slice(pe),i.dropped+=pe,X+=(i.samples[0].pts-he)/(i.timescale||9e4)}else pe===-1&&(c.logger.warn("[mp4-remuxer]: No keyframe found out of "+me+" video samples"),N=!1);if(this.ISGenerated){if(se&&_e){var ie=this.getVideoStartPts(i.samples),fe=g(l.samples[0].pts,ie)-ie,ge=fe/i.inputTimeScale;Q+=Math.max(0,ge),X+=Math.max(0,-ge)}if(se){if(l.samplerate||(c.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),U=this.generateIS(l,i,T)),J=this.remuxAudio(l,Q,this.isAudioContiguous,D,oe||_e||k===r.PlaylistLevelType.AUDIO?X:void 0),_e){var ce=J?J.endPTS-J.startPTS:0;i.inputTimeScale||(c.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),U=this.generateIS(l,i,T)),H=this.remuxVideo(i,X,Ee,ce)}}else _e&&(H=this.remuxVideo(i,X,Ee,0));H&&(H.firstKeyFrame=pe,H.independent=pe!==-1)}}return this.ISGenerated&&(x.samples.length&&(G=this.remuxID3(x,T)),O.samples.length&&(K=this.remuxText(O,T))),{audio:J,video:H,initSegment:U,independent:N,text:K,id3:G}},b.generateIS=function(l,i,x){var O=l.samples,T=i.samples,D=this.typeSupported,R={},k=!Object(y.isFiniteNumber)(this._initPTS),H="audio/mp4",J,U,K;if(k&&(J=U=Infinity),l.config&&O.length&&(l.timescale=l.samplerate,l.isAAC||(D.mpeg?(H="audio/mpeg",l.codec=""):D.mp3&&(l.codec="mp3")),R.audio={id:"audio",container:H,codec:l.codec,initSegment:!l.isAAC&&D.mpeg?new Uint8Array(0):_.default.initSegment([l]),metadata:{channelCount:l.channelCount}},k&&(K=l.inputTimeScale,J=U=O[0].pts-Math.round(K*x))),i.sps&&i.pps&&T.length&&(i.timescale=i.inputTimeScale,R.video={id:"main",container:"video/mp4",codec:i.codec,initSegment:_.default.initSegment([i]),metadata:{width:i.width,height:i.height}},k)){K=i.inputTimeScale;var G=this.getVideoStartPts(T),N=Math.round(K*x);U=Math.min(U,g(T[0].dts,G)-N),J=Math.min(J,G-N)}if(Object.keys(R).length)return this.ISGenerated=!0,k&&(this._initPTS=J,this._initDTS=U),{tracks:R,initPTS:J,timescale:K}},b.remuxVideo=function(l,i,x,O){var T=l.inputTimeScale,D=l.samples,R=[],k=D.length,H=this._initPTS,J=this.nextAvcDts,U=8,K,G,N,Q=Number.POSITIVE_INFINITY,X=Number.NEGATIVE_INFINITY,te=0,oe=!1;if(!x||J===null){var me=i*T,se=D[0].pts-g(D[0].dts,D[0].pts);J=me-se}for(var _e=0;_e<k;_e++){var Ae=D[_e];if(Ae.pts=g(Ae.pts-H,J),Ae.dts=g(Ae.dts-H,J),Ae.dts>Ae.pts){var Ee=9e4*.2;te=Math.max(Math.min(te,Ae.pts-Ae.dts),-1*Ee)}Ae.dts<D[_e>0?_e-1:_e].dts&&(oe=!0)}oe&&D.sort(function(Zt,Mt){var Tt=Zt.dts-Mt.dts,Ct=Zt.pts-Mt.pts;return Tt||Ct}),G=D[0].dts,N=D[D.length-1].dts;var pe=Math.round((N-G)/(k-1));if(te<0){if(te<pe*-2){c.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(n.toMsFromMpegTsClock)(-pe,!0)+" ms");for(var he=te,ie=0;ie<k;ie++)D[ie].dts=he=Math.max(he,D[ie].pts-pe),D[ie].pts=Math.max(he,D[ie].pts)}else{c.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+Object(n.toMsFromMpegTsClock)(te,!0)+" ms to overcome this issue");for(var fe=0;fe<k;fe++)D[fe].dts=D[fe].dts+te}G=D[0].dts}if(x){var ge=G-J,ce=ge>pe,Ie=ge<-1;if(ce||Ie){ce?c.logger.warn("AVC: "+Object(n.toMsFromMpegTsClock)(ge,!0)+" ms ("+ge+"dts) hole between fragments detected, filling it"):c.logger.warn("AVC: "+Object(n.toMsFromMpegTsClock)(-ge,!0)+" ms ("+ge+"dts) overlapping between fragments detected"),G=J;var Fe=D[0].pts-ge;D[0].dts=G,D[0].pts=Fe,c.logger.log("Video: First PTS/DTS adjusted: "+Object(n.toMsFromMpegTsClock)(Fe,!0)+"/"+Object(n.toMsFromMpegTsClock)(G,!0)+", delta: "+Object(n.toMsFromMpegTsClock)(ge,!0)+" ms")}}a&&(G=Math.max(0,G));for(var ke=0,re=0,F=0;F<k;F++){for(var W=D[F],de=W.units,ne=de.length,le=0,De=0;De<ne;De++)le+=de[De].data.length;re+=le,ke+=ne,W.length=le,W.dts=Math.max(W.dts,G),W.pts=Math.max(W.pts,W.dts,0),Q=Math.min(W.pts,Q),X=Math.max(W.pts,X)}N=D[k-1].dts;var Xe=re+4*ke+8,xt;try{xt=new Uint8Array(Xe)}catch(Zt){this.observer.emit(C.Events.ERROR,C.Events.ERROR,{type:m.ErrorTypes.MUX_ERROR,details:m.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:Xe,reason:"fail allocating video mdat "+Xe});return}var Ke=new DataView(xt.buffer);Ke.setUint32(0,Xe),xt.set(_.default.types.mdat,4);for(var ze=0;ze<k;ze++){for(var yt=D[ze],Et=yt.units,ct=0,lt=0,rt=Et.length;lt<rt;lt++){var qe=Et[lt],$e=qe.data,Pe=qe.data.byteLength;Ke.setUint32(U,Pe),U+=4,xt.set($e,U),U+=Pe,ct+=4+Pe}if(ze<k-1)K=D[ze+1].dts-yt.dts;else{var je=this.config,Ne=yt.dts-D[ze>0?ze-1:ze].dts;if(je.stretchShortVideoTrack&&this.nextAudioPts!==null){var et=Math.floor(je.maxBufferHole*T),mt=(O?Q+O*T:this.nextAudioPts)-yt.pts;mt>et?(K=mt-Ne,K<0&&(K=Ne),c.logger.log("[mp4-remuxer]: It is approximately "+mt/90+" ms to the next segment; using duration "+K/90+" ms for the last video frame.")):K=Ne}else K=Ne}var At=Math.round(yt.pts-yt.dts);R.push(new S(yt.key,K,ct,At))}if(R.length&&f&&f<70){var Ut=R[0].flags;Ut.dependsOn=2,Ut.isNonSync=0}console.assert(K!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=J=N+K,this.isVideoContiguous=!0;var Xt=_.default.moof(l.sequenceNumber++,G,e({},l,{samples:R})),un="video",jt={data1:Xt,data2:xt,startPTS:Q/T,endPTS:(X+K)/T,startDTS:G/T,endDTS:J/T,type:un,hasAudio:!1,hasVideo:!0,nb:R.length,dropped:l.dropped};return l.samples=[],l.dropped=0,console.assert(xt.length,"MDAT length must not be zero"),jt},b.remuxAudio=function(l,i,x,O,T){var D=l.inputTimeScale,R=l.samplerate?l.samplerate:D,k=D/R,H=l.isAAC?u:o,J=H*k,U=this._initPTS,K=!l.isAAC&&this.typeSupported.mpeg,G=[],N=l.samples,Q=K?0:8,X=this.nextAudioPts||-1,te=i*D;if(this.isAudioContiguous=x=x||N.length&&X>0&&(O&&Math.abs(te-X)<9e3||Math.abs(g(N[0].pts-U,te)-X)<20*J),N.forEach(function($e){$e.pts=g($e.pts-U,te)}),!x||X<0){if(N=N.filter(function($e){return $e.pts>=0}),!N.length)return;T===0?X=0:O?X=Math.max(0,te):X=N[0].pts}if(l.isAAC)for(var oe=T!==void 0,me=this.config.maxAudioFramesDrift,se=0,_e=X;se<N.length;se++){var Ae=N[se],Ee=Ae.pts,pe=Ee-_e,he=Math.abs(1e3*pe/D);if(pe<=-me*J&&oe)se===0&&(c.logger.warn("Audio frame @ "+(Ee/D).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*pe/D)+" ms."),this.nextAudioPts=X=_e=Ee);else if(pe>=me*J&&he<s&&oe){var ie=Math.round(pe/J);_e=Ee-ie*J,_e<0&&(ie--,_e+=J),se===0&&(this.nextAudioPts=X=_e),c.logger.warn("[mp4-remuxer]: Injecting "+ie+" audio frame @ "+(_e/D).toFixed(3)+"s due to "+Math.round(1e3*pe/D)+" ms gap.");for(var fe=0;fe<ie;fe++){var ge=Math.max(_e,0),ce=E.default.getSilentFrame(l.manifestCodec||l.codec,l.channelCount);ce||(c.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),ce=Ae.unit.subarray()),N.splice(se,0,{unit:ce,pts:ge}),_e+=J,se++}}Ae.pts=_e,_e+=J}for(var Ie=null,Fe=null,ke,re=0,F=N.length;F--;)re+=N[F].unit.byteLength;for(var W=0,de=N.length;W<de;W++){var ne=N[W],le=ne.unit,De=ne.pts;if(Fe!==null){var Xe=G[W-1];Xe.duration=Math.round((De-Fe)/k)}else if(x&&l.isAAC&&(De=X),Ie=De,re>0){re+=Q;try{ke=new Uint8Array(re)}catch($e){this.observer.emit(C.Events.ERROR,C.Events.ERROR,{type:m.ErrorTypes.MUX_ERROR,details:m.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:re,reason:"fail allocating audio mdat "+re});return}if(!K){var xt=new DataView(ke.buffer);xt.setUint32(0,re),ke.set(_.default.types.mdat,4)}}else return;ke.set(le,Q);var Ke=le.byteLength;Q+=Ke,G.push(new S(!0,H,Ke,0)),Fe=De}var ze=G.length;if(!ze)return;var yt=G[G.length-1];this.nextAudioPts=X=Fe+k*yt.duration;var Et=K?new Uint8Array(0):_.default.moof(l.sequenceNumber++,Ie/k,e({},l,{samples:G}));l.samples=[];var ct=Ie/D,lt=X/D,rt="audio",qe={data1:Et,data2:ke,startPTS:ct,endPTS:lt,startDTS:ct,endDTS:lt,type:rt,hasAudio:!0,hasVideo:!1,nb:ze};return this.isAudioContiguous=!0,console.assert(ke.length,"MDAT length must not be zero"),qe},b.remuxEmptyAudio=function(l,i,x,O){var T=l.inputTimeScale,D=l.samplerate?l.samplerate:T,R=T/D,k=this.nextAudioPts,H=(k!==null?k:O.startDTS*T)+this._initDTS,J=O.endDTS*T+this._initDTS,U=R*u,K=Math.ceil((J-H)/U),G=E.default.getSilentFrame(l.manifestCodec||l.codec,l.channelCount);if(c.logger.warn("[mp4-remuxer]: remux empty Audio"),!G){c.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var N=[],Q=0;Q<K;Q++){var X=H+Q*U;N.push({unit:G,pts:X,dts:X})}return l.samples=N,this.remuxAudio(l,i,x,!1)},b.remuxID3=function(l,i){var x=l.samples.length;if(!x)return;for(var O=l.inputTimeScale,T=this._initPTS,D=this._initDTS,R=0;R<x;R++){var k=l.samples[R];k.pts=g(k.pts-T,i*O)/O,k.dts=g(k.dts-D,i*O)/O}var H=l.samples;return l.samples=[],{samples:H}},b.remuxText=function(l,i){var x=l.samples.length;if(!x)return;for(var O=l.inputTimeScale,T=this._initPTS,D=0;D<x;D++){var R=l.samples[D];R.pts=g(R.pts-T,i*O)/O}l.samples.sort(function(H,J){return H.pts-J.pts});var k=l.samples;return l.samples=[],{samples:k}},B}();function g(B,b){var A;if(b===null)return B;for(b<B?A=-8589934592:A=8589934592;Math.abs(B-b)>4294967296;)B+=A;return B}function p(B){for(var b=0;b<B.length;b++)if(B[b].key)return b;return-1}var S=function(b,A,l,i){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=A,this.size=l,this.cts=i,this.flags=new w(b)},w=function(b){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=b?2:1,this.isNonSync=b?0:1}},"./src/remux/passthrough-remuxer.ts":function(ue,Y,P){"use strict";P.r(Y);var y=P("./src/polyfills/number.ts"),E=P("./src/utils/mp4-tools.ts"),_=P("./src/loader/fragment.ts"),C=P("./src/utils/logger.ts"),m=function(){function n(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=void 0,this.initTracks=void 0,this.lastEndDTS=null}var e=n.prototype;return e.destroy=function(){},e.resetTimeStamp=function(u){this.initPTS=u,this.lastEndDTS=null},e.resetNextTimestamp=function(){this.lastEndDTS=null},e.resetInitSegment=function(u,o,f){this.audioCodec=o,this.videoCodec=f,this.generateInitSegment(u),this.emitInitSegment=!0},e.generateInitSegment=function(u){var o=this.audioCodec,f=this.videoCodec;if(!u||!u.byteLength){this.initTracks=void 0,this.initData=void 0;return}var d=this.initData=Object(E.parseInitSegment)(u);o||(o=r(d.audio,_.ElementaryStreamTypes.AUDIO)),f||(f=r(d.video,_.ElementaryStreamTypes.VIDEO));var a={};d.audio&&d.video?a.audiovideo={container:"video/mp4",codec:o+","+f,initSegment:u,id:"main"}:d.audio?a.audio={container:"audio/mp4",codec:o,initSegment:u,id:"audio"}:d.video?a.video={container:"video/mp4",codec:f,initSegment:u,id:"main"}:C.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=a},e.remux=function(u,o,f,d,a){var h=this.initPTS,g=this.lastEndDTS,p={audio:void 0,video:void 0,text:d,id3:f,initSegment:void 0};Object(y.isFiniteNumber)(g)||(g=this.lastEndDTS=a||0);var S=o.samples;if(!S||!S.length)return p;var w={initPTS:void 0,timescale:1},B=this.initData;if((!B||!B.length)&&(this.generateInitSegment(S),B=this.initData),!B||!B.length)return C.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),p;this.emitInitSegment&&(w.tracks=this.initTracks,this.emitInitSegment=!1),Object(y.isFiniteNumber)(h)||(this.initPTS=w.initPTS=h=c(B,S,g));var b=Object(E.getDuration)(S,B),A=g,l=b+A;Object(E.offsetStartDTS)(B,S,h),b>0?this.lastEndDTS=l:(C.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var i=!!B.audio,x=!!B.video,O="";i&&(O+="audio"),x&&(O+="video");var T={data1:S,startPTS:A,startDTS:A,endPTS:l,endDTS:l,type:O,hasAudio:i,hasVideo:x,nb:1,dropped:0};return p.audio=T.type==="audio"?T:void 0,p.video=T.type!=="audio"?T:void 0,p.text=d,p.id3=f,p.initSegment=w,p},n}(),c=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===_.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}Y.default=m},"./src/task-loop.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return y});var y=function(){function E(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var _=E.prototype;return _.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},_.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},_.onHandlerDestroyed=function(){},_.hasInterval=function(){return!!this._tickInterval},_.hasNextTick=function(){return!!this._tickTimer},_.setInterval=function(m){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,m),!0)},_.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},_.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},_.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},_.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},_.doTick=function(){},E}()},"./src/types/cmcd.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"CMCDVersion",function(){return y}),P.d(Y,"CMCDObjectType",function(){return E}),P.d(Y,"CMCDStreamingFormat",function(){return _}),P.d(Y,"CMCDStreamType",function(){return C});var y=1,E;(function(m){m.MANIFEST="m",m.AUDIO="a",m.VIDEO="v",m.MUXED="av",m.INIT="i",m.CAPTION="c",m.TIMED_TEXT="tt",m.KEY="k",m.OTHER="o"})(E||(E={}));var _;(function(m){m.DASH="d",m.HLS="h",m.SMOOTH="s",m.OTHER="o"})(_||(_={}));var C;(function(m){m.VOD="v",m.LIVE="l"})(C||(C={}))},"./src/types/level.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"HlsSkip",function(){return _}),P.d(Y,"getSkipValue",function(){return C}),P.d(Y,"HlsUrlParameters",function(){return m}),P.d(Y,"Level",function(){return c});function y(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&&y(r.prototype,n),e&&y(r,e),r}var _;(function(r){r.No="",r.Yes="YES",r.v2="v2"})(_||(_={}));function C(r,n){var e=r.canSkipUntil,s=r.canSkipDateRanges,u=r.endSN,o=n!==void 0?n-u:0;return e&&o<e?s?_.v2:_.Yes:_.No}var m=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}(),c=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(ue,Y,P){"use strict";P.r(Y),P.d(Y,"PlaylistContextType",function(){return y}),P.d(Y,"PlaylistLevelType",function(){return E});var y;(function(_){_.MANIFEST="manifest",_.LEVEL="level",_.AUDIO_TRACK="audioTrack",_.SUBTITLE_TRACK="subtitleTrack"})(y||(y={}));var E;(function(_){_.MAIN="main",_.AUDIO="audio",_.SUBTITLE="subtitle"})(E||(E={}))},"./src/types/transmuxer.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"ChunkMetadata",function(){return y});var y=function(C,m,c,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=C,this.sn=m,this.id=c,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(ue,Y,P){"use strict";P.r(Y),P.d(Y,"AttrList",function(){return _});var y=/^(\d+)x(\d+)$/,E=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,_=function(){function C(c){typeof c=="string"&&(c=C.parseAttrList(c));for(var r in c)c.hasOwnProperty(r)&&(this[r]=c[r])}var m=C.prototype;return m.decimalInteger=function(r){var n=parseInt(this[r],10);return n>Number.MAX_SAFE_INTEGER?Infinity:n},m.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},m.hexadecimalIntegerAsNumber=function(r){var n=parseInt(this[r],16);return n>Number.MAX_SAFE_INTEGER?Infinity:n},m.decimalFloatingPoint=function(r){return parseFloat(this[r])},m.optionalFloat=function(r,n){var e=this[r];return e?parseFloat(e):n},m.enumeratedString=function(r){return this[r]},m.bool=function(r){return this[r]==="YES"},m.decimalResolution=function(r){var n=y.exec(this[r]);return n===null?void 0:{width:parseInt(n[1],10),height:parseInt(n[2],10)}},C.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},C}()},"./src/utils/binary-search.ts":function(ue,Y,P){"use strict";P.r(Y);var y={search:function(_,C){for(var m=0,c=_.length-1,r=null,n=null;m<=c;){r=(m+c)/2|0,n=_[r];var e=C(n);if(e>0)m=r+1;else if(e<0)c=r-1;else return n}return null}};Y.default=y},"./src/utils/buffer-helper.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"BufferHelper",function(){return _});var y=P("./src/utils/logger.ts"),E={length:0,start:function(){return 0},end:function(){return 0}},_=function(){function C(){}return C.isBuffered=function(c,r){try{if(c){for(var n=C.getBuffered(c),e=0;e<n.length;e++)if(r>=n.start(e)&&r<=n.end(e))return!0}}catch(s){}return!1},C.bufferInfo=function(c,r,n){try{if(c){var e=C.getBuffered(c),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(o){}return{len:0,start:r,end:r,nextStart:void 0}},C.bufferedInfo=function(c,r,n){r=Math.max(0,r),c.sort(function(w,B){var b=w.start-B.start;return b||B.end-w.end});var e=[];if(n)for(var s=0;s<c.length;s++){var u=e.length;if(u){var o=e[u-1].end;c[s].start-o<n?c[s].end>o&&(e[u-1].end=c[s].end):e.push(c[s])}else e.push(c[s])}else e=c;for(var f=0,d,a=r,h=r,g=0;g<e.length;g++){var p=e[g].start,S=e[g].end;if(r+n>=p&&r<S)a=p,h=S,f=h-r;else if(r+n<p){d=p;break}}return{len:f,start:a||0,end:h||0,nextStart:d}},C.getBuffered=function(c){try{return c.buffered}catch(r){return y.logger.log("failed to get media.buffered",r),E}},C}()},"./src/utils/cea-608-parser.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"Row",function(){return h}),P.d(Y,"CaptionScreen",function(){return g});var y=P("./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},_=function(l){var i=l;return E.hasOwnProperty(l)&&(i=E[l]),String.fromCharCode(i)},C=15,m=100,c={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(A){A[A.ERROR=0]="ERROR",A[A.TEXT=1]="TEXT",A[A.WARNING=2]="WARNING",A[A.INFO=2]="INFO",A[A.DEBUG=3]="DEBUG",A[A.DATA=3]="DATA"})(u||(u={}));var o=function(){function A(){this.time=null,this.verboseLevel=u.ERROR}var l=A.prototype;return l.log=function(x,O){this.verboseLevel>=x&&y.logger.log(this.time+" ["+x+"] "+O)},A}(),f=function(l){for(var i=[],x=0;x<l.length;x++)i.push(l[x].toString(16));return i},d=function(){function A(i,x,O,T,D){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=i||"white",this.underline=x||!1,this.italics=O||!1,this.background=T||"black",this.flash=D||!1}var l=A.prototype;return l.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},l.setStyles=function(x){for(var O=["foreground","underline","italics","background","flash"],T=0;T<O.length;T++){var D=O[T];x.hasOwnProperty(D)&&(this[D]=x[D])}},l.isDefault=function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash},l.equals=function(x){return this.foreground===x.foreground&&this.underline===x.underline&&this.italics===x.italics&&this.background===x.background&&this.flash===x.flash},l.copy=function(x){this.foreground=x.foreground,this.underline=x.underline,this.italics=x.italics,this.background=x.background,this.flash=x.flash},l.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},A}(),a=function(){function A(i,x,O,T,D,R){this.uchar=void 0,this.penState=void 0,this.uchar=i||" ",this.penState=new d(x,O,T,D,R)}var l=A.prototype;return l.reset=function(){this.uchar=" ",this.penState.reset()},l.setChar=function(x,O){this.uchar=x,this.penState.copy(O)},l.setPenState=function(x){this.penState.copy(x)},l.equals=function(x){return this.uchar===x.uchar&&this.penState.equals(x.penState)},l.copy=function(x){this.uchar=x.uchar,this.penState.copy(x.penState)},l.isEmpty=function(){return this.uchar===" "&&this.penState.isDefault()},A}(),h=function(){function A(i){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var x=0;x<m;x++)this.chars.push(new a);this.logger=i,this.pos=0,this.currPenState=new d}var l=A.prototype;return l.equals=function(x){for(var O=!0,T=0;T<m;T++)if(!this.chars[T].equals(x.chars[T])){O=!1;break}return O},l.copy=function(x){for(var O=0;O<m;O++)this.chars[O].copy(x.chars[O])},l.isEmpty=function(){for(var x=!0,O=0;O<m;O++)if(!this.chars[O].isEmpty()){x=!1;break}return x},l.setCursor=function(x){this.pos!==x&&(this.pos=x),this.pos<0?(this.logger.log(u.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>m&&(this.logger.log(u.DEBUG,"Too large cursor position "+this.pos),this.pos=m)},l.moveCursor=function(x){var O=this.pos+x;if(x>1)for(var T=this.pos+1;T<O+1;T++)this.chars[T].setPenState(this.currPenState);this.setCursor(O)},l.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},l.insertChar=function(x){x>=144&&this.backSpace();var O=_(x);if(this.pos>=m){this.logger.log(u.ERROR,"Cannot insert "+x.toString(16)+" ("+O+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(O,this.currPenState),this.moveCursor(1)},l.clearFromPos=function(x){var O;for(O=x;O<m;O++)this.chars[O].reset()},l.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},l.clearToEndOfRow=function(){this.clearFromPos(this.pos)},l.getTextString=function(){for(var x=[],O=!0,T=0;T<m;T++){var D=this.chars[T].uchar;D!==" "&&(O=!1),x.push(D)}return O?"":x.join("")},l.setPenStyles=function(x){this.currPenState.setStyles(x);var O=this.chars[this.pos];O.setPenState(this.currPenState)},A}(),g=function(){function A(i){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var x=0;x<C;x++)this.rows.push(new h(i));this.logger=i,this.currRow=C-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var l=A.prototype;return l.reset=function(){for(var x=0;x<C;x++)this.rows[x].clear();this.currRow=C-1},l.equals=function(x){for(var O=!0,T=0;T<C;T++)if(!this.rows[T].equals(x.rows[T])){O=!1;break}return O},l.copy=function(x){for(var O=0;O<C;O++)this.rows[O].copy(x.rows[O])},l.isEmpty=function(){for(var x=!0,O=0;O<C;O++)if(!this.rows[O].isEmpty()){x=!1;break}return x},l.backSpace=function(){var x=this.rows[this.currRow];x.backSpace()},l.clearToEndOfRow=function(){var x=this.rows[this.currRow];x.clearToEndOfRow()},l.insertChar=function(x){var O=this.rows[this.currRow];O.insertChar(x)},l.setPen=function(x){var O=this.rows[this.currRow];O.setPenStyles(x)},l.moveCursor=function(x){var O=this.rows[this.currRow];O.moveCursor(x)},l.setCursor=function(x){this.logger.log(u.INFO,"setCursor: "+x);var O=this.rows[this.currRow];O.setCursor(x)},l.setPAC=function(x){this.logger.log(u.INFO,"pacData = "+JSON.stringify(x));var O=x.row-1;if(this.nrRollUpRows&&O<this.nrRollUpRows-1&&(O=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==O){for(var T=0;T<C;T++)this.rows[T].clear();var D=this.currRow+1-this.nrRollUpRows,R=this.lastOutputScreen;if(R){var k=R.rows[D].cueStartTime,H=this.logger.time;if(k&&H!==null&&k<H)for(var J=0;J<this.nrRollUpRows;J++)this.rows[O-this.nrRollUpRows+J+1].copy(R.rows[D+J])}}this.currRow=O;var U=this.rows[this.currRow];if(x.indent!==null){var K=x.indent,G=Math.max(K-1,0);U.setCursor(x.indent),x.color=U.chars[G].penState.foreground}var N={foreground:x.color,underline:x.underline,italics:x.italics,background:"black",flash:!1};this.setPen(N)},l.setBkgData=function(x){this.logger.log(u.INFO,"bkgData = "+JSON.stringify(x)),this.backSpace(),this.setPen(x),this.insertChar(32)},l.setRollUpRows=function(x){this.nrRollUpRows=x},l.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 x=this.currRow+1-this.nrRollUpRows,O=this.rows.splice(x,1)[0];O.clear(),this.rows.splice(this.currRow,0,O),this.logger.log(u.INFO,"Rolling up")},l.getDisplayText=function(x){x=x||!1;for(var O=[],T="",D=-1,R=0;R<C;R++){var k=this.rows[R].getTextString();k&&(D=R+1,x?O.push("Row "+D+": '"+k+"'"):O.push(k.trim()))}return O.length>0&&(x?T="["+O.join(" | ")+"]":T=O.join(`
`)),T},l.getTextAndFormat=function(){return this.rows},A}(),p=function(){function A(i,x,O){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=i,this.outputFilter=x,this.mode=null,this.verbose=0,this.displayedMemory=new g(O),this.nonDisplayedMemory=new g(O),this.lastOutputScreen=new g(O),this.currRollUpRow=this.displayedMemory.rows[C-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=O}var l=A.prototype;return l.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[C-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},l.getHandler=function(){return this.outputFilter},l.setHandler=function(x){this.outputFilter=x},l.setPAC=function(x){this.writeScreen.setPAC(x)},l.setBkgData=function(x){this.writeScreen.setBkgData(x)},l.setMode=function(x){if(x===this.mode)return;this.mode=x,this.logger.log(u.INFO,"MODE="+x),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=x},l.insertChars=function(x){for(var O=0;O<x.length;O++)this.writeScreen.insertChar(x[O]);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())},l.ccRCL=function(){this.logger.log(u.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},l.ccBS=function(){if(this.logger.log(u.INFO,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()},l.ccAOF=function(){},l.ccAON=function(){},l.ccDER=function(){this.logger.log(u.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},l.ccRU=function(x){this.logger.log(u.INFO,"RU("+x+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(x)},l.ccFON=function(){this.logger.log(u.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},l.ccRDC=function(){this.logger.log(u.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},l.ccTR=function(){this.logger.log(u.INFO,"TR"),this.setMode("MODE_TEXT")},l.ccRTD=function(){this.logger.log(u.INFO,"RTD"),this.setMode("MODE_TEXT")},l.ccEDM=function(){this.logger.log(u.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},l.ccCR=function(){this.logger.log(u.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},l.ccENM=function(){this.logger.log(u.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},l.ccEOC=function(){if(this.logger.log(u.INFO,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var x=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=x,this.writeScreen=this.nonDisplayedMemory,this.logger.log(u.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},l.ccTO=function(x){this.logger.log(u.INFO,"TO("+x+") - Tab Offset"),this.writeScreen.moveCursor(x)},l.ccMIDROW=function(x){var O={flash:!1};if(O.underline=x%2===1,O.italics=x>=46,O.italics)O.foreground="white";else{var T=Math.floor(x/2)-16,D=["white","green","blue","cyan","red","yellow","magenta"];O.foreground=D[T]}this.logger.log(u.INFO,"MIDROW: "+JSON.stringify(O)),this.writeScreen.setPen(O)},l.outputDataUpdate=function(x){x===void 0&&(x=!1);var O=this.logger.time;if(O===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=O:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,O,this.lastOutputScreen),x&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:O),this.lastOutputScreen.copy(this.displayedMemory))},l.cueSplitAtTime=function(x){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,x,this.displayedMemory),this.cueStartTime=x))},A}(),S=function(){function A(i,x,O){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var T=new o;this.channels=[null,new p(i,x,T),new p(i+1,O,T)],this.cmdHistory=b(),this.logger=T}var l=A.prototype;return l.getHandler=function(x){return this.channels[x].getHandler()},l.setHandler=function(x,O){this.channels[x].setHandler(O)},l.addData=function(x,O){var T,D,R,k=!1;this.logger.time=x;for(var H=0;H<O.length;H+=2){if(D=O[H]&127,R=O[H+1]&127,D===0&&R===0)continue;if(this.logger.log(u.DATA,"["+f([O[H],O[H+1]])+"] -> ("+f([D,R])+")"),T=this.parseCmd(D,R),T||(T=this.parseMidrow(D,R)),T||(T=this.parsePAC(D,R)),T||(T=this.parseBackgroundAttributes(D,R)),!T&&(k=this.parseChars(D,R),k)){var J=this.currentChannel;if(J&&J>0){var U=this.channels[J];U.insertChars(k)}else this.logger.log(u.WARNING,"No channel found yet. TEXT-MODE?")}!T&&!k&&this.logger.log(u.WARNING,"Couldn't parse cleaned data "+f([D,R])+" orig: "+f([O[H],O[H+1]]))}},l.parseCmd=function(x,O){var T=this.cmdHistory,D=(x===20||x===28||x===21||x===29)&&O>=32&&O<=47,R=(x===23||x===31)&&O>=33&&O<=35;if(!(D||R))return!1;if(B(x,O,T))return w(null,null,T),this.logger.log(u.DEBUG,"Repeated command ("+f([x,O])+") is dropped"),!0;var k=x===20||x===21||x===23?1:2,H=this.channels[k];return x===20||x===21||x===28||x===29?O===32?H.ccRCL():O===33?H.ccBS():O===34?H.ccAOF():O===35?H.ccAON():O===36?H.ccDER():O===37?H.ccRU(2):O===38?H.ccRU(3):O===39?H.ccRU(4):O===40?H.ccFON():O===41?H.ccRDC():O===42?H.ccTR():O===43?H.ccRTD():O===44?H.ccEDM():O===45?H.ccCR():O===46?H.ccENM():O===47&&H.ccEOC():H.ccTO(O-32),w(x,O,T),this.currentChannel=k,!0},l.parseMidrow=function(x,O){var T=0;if((x===17||x===25)&&O>=32&&O<=47){if(x===17?T=1:T=2,T!==this.currentChannel)return this.logger.log(u.ERROR,"Mismatch channel in midrow parsing"),!1;var D=this.channels[T];return D?(D.ccMIDROW(O),this.logger.log(u.DEBUG,"MIDROW ("+f([x,O])+")"),!0):!1}return!1},l.parsePAC=function(x,O){var T,D=this.cmdHistory,R=(x>=17&&x<=23||x>=25&&x<=31)&&O>=64&&O<=127,k=(x===16||x===24)&&O>=64&&O<=95;if(!(R||k))return!1;if(B(x,O,D))return w(null,null,D),!0;var H=x<=23?1:2;O>=64&&O<=95?T=H===1?c[x]:n[x]:T=H===1?r[x]:e[x];var J=this.channels[H];return J?(J.setPAC(this.interpretPAC(T,O)),w(x,O,D),this.currentChannel=H,!0):!1},l.interpretPAC=function(x,O){var T,D={color:null,italics:!1,indent:null,underline:!1,row:x};return O>95?T=O-96:T=O-64,D.underline=(T&1)===1,T<=13?D.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(T/2)]:T<=15?(D.italics=!0,D.color="white"):D.indent=Math.floor((T-16)/2)*4,D},l.parseChars=function(x,O){var T,D=null,R=null;if(x>=25?(T=2,R=x-8):(T=1,R=x),R>=17&&R<=19){var k;R===17?k=O+80:R===18?k=O+112:k=O+144,this.logger.log(u.INFO,"Special char '"+_(k)+"' in channel "+T),D=[k]}else x>=32&&x<=127&&(D=O===0?[x]:[x,O]);if(D){var H=f(D);this.logger.log(u.DEBUG,"Char codes = "+H.join(",")),w(x,O,this.cmdHistory)}return D},l.parseBackgroundAttributes=function(x,O){var T=(x===16||x===24)&&O>=32&&O<=47,D=(x===23||x===31)&&O>=45&&O<=47;if(!(T||D))return!1;var R,k={};x===16||x===24?(R=Math.floor((O-32)/2),k.background=s[R],O%2===1&&(k.background=k.background+"_semi")):O===45?k.background="transparent":(k.foreground="black",O===47&&(k.underline=!0));var H=x<=23?1:2,J=this.channels[H];return J.setBkgData(k),w(x,O,this.cmdHistory),!0},l.reset=function(){for(var x=0;x<Object.keys(this.channels).length;x++){var O=this.channels[x];O&&O.reset()}this.cmdHistory=b()},l.cueSplitAtTime=function(x){for(var O=0;O<this.channels.length;O++){var T=this.channels[O];T&&T.cueSplitAtTime(x)}},A}();function w(A,l,i){i.a=A,i.b=l}function B(A,l,i){return i.a===A&&i.b===l}function b(){return{a:null,b:null}}Y.default=S},"./src/utils/codecs.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"isCodecType",function(){return E}),P.d(Y,"isCodecSupportedInMp4",function(){return _});var y={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(C,m){var c=y[m];return!!c&&c[C.slice(0,4)]===!0}function _(C,m){return MediaSource.isTypeSupported((m||"video")+'/mp4;codecs="'+C+'"')}},"./src/utils/cues.ts":function(ue,Y,P){"use strict";P.r(Y);var y=P("./src/utils/vttparser.ts"),E=P("./src/utils/webvtt-parser.ts"),_=P("./src/utils/texttrack-utils.ts"),C=/\s/,m={newCue:function(r,n,e,s){for(var u=[],o,f,d,a,h,g=self.VTTCue||self.TextTrackCue,p=0;p<s.rows.length;p++)if(o=s.rows[p],d=!0,a=0,h="",!o.isEmpty()){for(var S=0;S<o.chars.length;S++)C.test(o.chars[S].uchar)&&d?a++:(h+=o.chars[S].uchar,d=!1);o.cueStartTime=n,n===e&&(e+=1e-4),a>=16?a--:a++;var w=Object(y.fixLineBreaks)(h.trim()),B=Object(E.generateCueId)(n,e,w);(!r||!r.cues||!r.cues.getCueById(B))&&(f=new g(n,e,w),f.id=B,f.line=p+1,f.align="left",f.position=10+Math.min(80,Math.floor(a*8/32)*10),u.push(f))}return r&&u.length&&(u.sort(function(b,A){return b.line==="auto"||A.line==="auto"?0:b.line>8&&A.line>8?A.line-b.line:b.line-A.line}),u.forEach(function(b){return Object(_.addCueToTrack)(r,b)})),u}};Y.default=m},"./src/utils/discontinuities.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"findFirstFragWithCC",function(){return C}),P.d(Y,"shouldAlignOnDiscontinuities",function(){return m}),P.d(Y,"findDiscontinuousReferenceFrag",function(){return c}),P.d(Y,"adjustSlidingStart",function(){return n}),P.d(Y,"alignStream",function(){return e}),P.d(Y,"alignPDT",function(){return u}),P.d(Y,"alignFragmentByPDTDelta",function(){return o}),P.d(Y,"alignMediaPlaylistByPDT",function(){return f});var y=P("./src/polyfills/number.ts"),E=P("./src/utils/logger.ts"),_=P("./src/controller/level-helper.ts");function C(d,a){for(var h=null,g=0,p=d.length;g<p;g++){var S=d[g];if(S&&S.cc===a){h=S;break}}return h}function m(d,a,h){return!!(a.details&&(h.endCC>h.startCC||d&&d.cc<h.startCC))}function c(d,a){var h=d.fragments,g=a.fragments;if(!g.length||!h.length){E.logger.log("No fragments to align");return}var p=C(h,g[0].cc);if(!p||p&&!p.startPTS){E.logger.log("No frag in previous level to align on");return}return p}function r(d,a){if(d){var h=d.start+a;d.start=d.startPTS=h,d.endPTS=h+d.duration}}function n(d,a){for(var h=a.fragments,g=0,p=h.length;g<p;g++)r(h[g],d);a.fragmentHint&&r(a.fragmentHint,d),a.alignedSliding=!0}function e(d,a,h){if(!a)return;s(d,h,a),!h.alignedSliding&&a.details&&u(h,a.details),!h.alignedSliding&&a.details&&!h.skippedSegments&&Object(_.adjustSliding)(a.details,h)}function s(d,a,h){if(m(d,h,a)){var g=c(h.details,a);g&&Object(y.isFiniteNumber)(g.start)&&(E.logger.log("Adjusting PTS using last level due to CC increase within current level "+a.url),n(g.start,a))}}function u(d,a){if(!a.fragments.length||!d.hasProgramDateTime||!a.hasProgramDateTime)return;var h=a.fragments[0].programDateTime,g=d.fragments[0].programDateTime,p=(g-h)/1e3+a.fragments[0].start;p&&Object(y.isFiniteNumber)(p)&&(E.logger.log("Adjusting PTS using programDateTime delta "+(g-h)+"ms, sliding:"+p.toFixed(3)+" "+d.url+" "),n(p,d))}function o(d,a){var h=d.programDateTime;if(!h)return;var g=(h-a)/1e3;d.start=d.startPTS=g,d.endPTS=g+d.duration}function f(d,a){if(!a.fragments.length||!d.hasProgramDateTime||!a.hasProgramDateTime)return;var h=a.fragments[0].programDateTime,g=a.fragments[0].start,p=h-g*1e3;d.fragments.forEach(function(S){o(S,p)}),d.fragmentHint&&o(d.fragmentHint,p),d.alignedSliding=!0}},"./src/utils/ewma-bandwidth-estimator.ts":function(ue,Y,P){"use strict";P.r(Y);var y=P("./src/utils/ewma.ts"),E=function(){function _(m,c,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 y.default(m),this.fast_=new y.default(c)}var C=_.prototype;return C.update=function(c,r){var n=this.slow_,e=this.fast_;this.slow_.halfLife!==c&&(this.slow_=new y.default(c,n.getEstimate(),n.getTotalWeight())),this.fast_.halfLife!==r&&(this.fast_=new y.default(r,e.getEstimate(),e.getTotalWeight()))},C.sample=function(c,r){c=Math.max(c,this.minDelayMs_);var n=8*r,e=c/1e3,s=n/e;this.fast_.sample(e,s),this.slow_.sample(e,s)},C.canEstimate=function(){var c=this.fast_;return c&&c.getTotalWeight()>=this.minWeight_},C.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},C.destroy=function(){},_}();Y.default=E},"./src/utils/ewma.ts":function(ue,Y,P){"use strict";P.r(Y);var y=function(){function E(C,m,c){m===void 0&&(m=0),c===void 0&&(c=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=C,this.alpha_=C?Math.exp(Math.log(.5)/C):0,this.estimate_=m,this.totalWeight_=c}var _=E.prototype;return _.sample=function(m,c){var r=Math.pow(this.alpha_,m);this.estimate_=c*(1-r)+r*this.estimate_,this.totalWeight_+=m},_.getTotalWeight=function(){return this.totalWeight_},_.getEstimate=function(){if(this.alpha_){var m=1-Math.pow(this.alpha_,this.totalWeight_);if(m)return this.estimate_/m}return this.estimate_},E}();Y.default=y},"./src/utils/fetch-loader.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"fetchSupported",function(){return o});var y=P("./src/polyfills/number.ts"),E=P("./src/loader/load-stats.ts"),_=P("./src/demux/chunk-cache.ts");function C(g,p){g.prototype=Object.create(p.prototype),g.prototype.constructor=g,e(g,p)}function m(g){var p=typeof Map=="function"?new Map:void 0;return m=function(w){if(w===null||!n(w))return w;if(typeof w!="function")throw new TypeError("Super expression must either be null or a function");if(typeof p!="undefined"){if(p.has(w))return p.get(w);p.set(w,B)}function B(){return c(w,arguments,s(this).constructor)}return B.prototype=Object.create(w.prototype,{constructor:{value:B,enumerable:!1,writable:!0,configurable:!0}}),e(B,w)},m(g)}function c(g,p,S){return r()?c=Reflect.construct:c=function(B,b,A){var l=[null];l.push.apply(l,b);var i=Function.bind.apply(B,l),x=new i;return A&&e(x,A.prototype),x},c.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(g){return!1}}function n(g){return Function.toString.call(g).indexOf("[native code]")!==-1}function e(g,p){return e=Object.setPrototypeOf||function(w,B){return w.__proto__=B,w},e(g,p)}function s(g){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(S){return S.__proto__||Object.getPrototypeOf(S)},s(g)}function u(){return u=Object.assign||function(g){for(var p=1;p<arguments.length;p++){var S=arguments[p];for(var w in S)Object.prototype.hasOwnProperty.call(S,w)&&(g[w]=S[w])}return g},u.apply(this,arguments)}function o(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(g){}return!1}var f=function(){function g(S){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=S.fetchSetup||a,this.controller=new self.AbortController,this.stats=new E.LoadStats}var p=g.prototype;return p.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},p.abortInternal=function(){var w=this.response;(!w||!w.ok)&&(this.stats.aborted=!0,this.controller.abort())},p.abort=function(){var w;this.abortInternal(),(w=this.callbacks)!==null&&w!==void 0&&w.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},p.load=function(w,B,b){var A=this,l=this.stats;if(l.loading.start)throw new Error("Loader can only be used once.");l.loading.start=self.performance.now();var i=d(w,this.controller.signal),x=b.onProgress,O=w.responseType==="arraybuffer",T=O?"byteLength":"length";this.context=w,this.config=B,this.callbacks=b,this.request=this.fetchSetup(w,i),self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(function(){A.abortInternal(),b.onTimeout(l,w,A.response)},B.timeout),self.fetch(this.request).then(function(D){if(A.response=A.loader=D,!D.ok){var R=D.status,k=D.statusText;throw new h(k||"fetch, bad network response",R,D)}return l.loading.first=Math.max(self.performance.now(),l.loading.start),l.total=parseInt(D.headers.get("Content-Length")||"0"),x&&Object(y.isFiniteNumber)(B.highWaterMark)?A.loadProgressively(D,l,w,B.highWaterMark,x):O?D.arrayBuffer():D.text()}).then(function(D){var R=A.response;self.clearTimeout(A.requestTimeout),l.loading.end=Math.max(self.performance.now(),l.loading.first),l.loaded=l.total=D[T];var k={url:R.url,data:D};x&&!Object(y.isFiniteNumber)(B.highWaterMark)&&x(l,w,D,R),b.onSuccess(k,l,w,R)}).catch(function(D){if(self.clearTimeout(A.requestTimeout),l.aborted)return;var R=D.code||0;b.onError({code:R,text:D.message},w,D.details)})},p.getCacheAge=function(){var w=null;if(this.response){var B=this.response.headers.get("age");w=B?parseFloat(B):null}return w},p.loadProgressively=function(w,B,b,A,l){A===void 0&&(A=0);var i=new _.default,x=w.body.getReader(),O=function T(){return x.read().then(function(D){if(D.done)return i.dataLength&&l(B,b,i.flush(),w),Promise.resolve(new ArrayBuffer(0));var R=D.value,k=R.length;return B.loaded+=k,k<A||i.dataLength?(i.push(R),i.dataLength>=A&&l(B,b,i.flush(),w)):l(B,b,R,w),T()}).catch(function(){return Promise.reject()})};return O()},g}();function d(g,p){var S={method:"GET",mode:"cors",credentials:"same-origin",signal:p,headers:new self.Headers(u({},g.headers))};return g.rangeEnd&&S.headers.set("Range","bytes="+g.rangeStart+"-"+String(g.rangeEnd-1)),S}function a(g,p){return new self.Request(g.url,p)}var h=function(g){C(p,g);function p(S,w,B){var b;return b=g.call(this,S)||this,b.code=void 0,b.details=void 0,b.code=w,b.details=B,b}return p}(m(Error));Y.default=f},"./src/utils/imsc1-ttml-parser.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"IMSC1_CODEC",function(){return n}),P.d(Y,"parseIMSC1",function(){return o});var y=P("./src/utils/mp4-tools.ts"),E=P("./src/utils/vttparser.ts"),_=P("./src/utils/vttcue.ts"),C=P("./src/demux/id3.ts"),m=P("./src/utils/timescale-conversion.ts"),c=P("./src/utils/webvtt-parser.ts");function r(){return r=Object.assign||function(A){for(var l=1;l<arguments.length;l++){var i=arguments[l];for(var x in i)Object.prototype.hasOwnProperty.call(i,x)&&(A[x]=i[x])}return A},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 o(A,l,i,x,O){var T=Object(y.findBox)(new Uint8Array(A),["mdat"]);if(T.length===0){O(new Error("Could not parse IMSC1 mdat"));return}var D=T[0],R=Object(C.utf8ArrayToStr)(new Uint8Array(A,D.start,D.end-D.start)),k=Object(m.toTimescaleFromScale)(l,1,i);try{x(f(R,k))}catch(H){O(H)}}function f(A,l){var i=new DOMParser,x=i.parseFromString(A,"text/xml"),O=x.getElementsByTagName("tt")[0];if(!O)throw new Error("Invalid ttml");var T={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},D=Object.keys(T).reduce(function(U,K){return U[K]=O.getAttribute("ttp:"+K)||T[K],U},{}),R=O.getAttribute("xml:space")!=="preserve",k=a(d(O,"styling","style")),H=a(d(O,"layout","region")),J=d(O,"body","[begin]");return[].map.call(J,function(U){var K=h(U,R);if(!K||!U.hasAttribute("begin"))return null;var G=w(U.getAttribute("begin"),D),N=w(U.getAttribute("dur"),D),Q=w(U.getAttribute("end"),D);if(G===null)throw S(U);if(Q===null){if(N===null)throw S(U);Q=G+N}var X=new _.default(G-l,Q-l,K);X.id=Object(c.generateCueId)(X.startTime,X.endTime,X.text);var te=H[U.getAttribute("region")],oe=k[U.getAttribute("style")];X.position=10,X.size=80;var me=g(te,oe),se=me.textAlign;if(se){var _e=u[se];_e&&(X.lineAlign=_e),X.align=se}return r(X,me),X}).filter(function(U){return U!==null})}function d(A,l,i){var x=A.getElementsByTagName(l)[0];return x?[].slice.call(x.querySelectorAll(i)):[]}function a(A){return A.reduce(function(l,i){var x=i.getAttribute("xml:id");return x&&(l[x]=i),l},{})}function h(A,l){return[].slice.call(A.childNodes).reduce(function(i,x,O){var T;return x.nodeName==="br"&&O?i+`
`:(T=x.childNodes)!==null&&T!==void 0&&T.length?h(x,l):l?i+x.textContent.trim().replace(/\s+/g," "):i+x.textContent},"")}function g(A,l){var i="http://www.w3.org/ns/ttml#styling",x=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"];return x.reduce(function(O,T){var D=p(l,i,T)||p(A,i,T);return D&&(O[T]=D),O},{})}function p(A,l,i){return A.hasAttributeNS(l,i)?A.getAttributeNS(l,i):null}function S(A){return new Error("Could not parse ttml timestamp "+A)}function w(A,l){if(!A)return null;var i=Object(E.parseTimeStamp)(A);return i===null&&(e.test(A)?i=B(A,l):s.test(A)&&(i=b(A,l))),i}function B(A,l){var i=e.exec(A),x=(i[4]|0)+(i[5]|0)/l.subFrameRate;return(i[1]|0)*3600+(i[2]|0)*60+(i[3]|0)+x/l.frameRate}function b(A,l){var i=s.exec(A),x=Number(i[1]),O=i[2];switch(O){case"h":return x*3600;case"m":return x*60;case"ms":return x*1e3;case"f":return x/l.frameRate;case"t":return x/l.tickRate}return x}},"./src/utils/logger.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"enableLogs",function(){return c}),P.d(Y,"logger",function(){return r});var y=function(){},E={trace:y,debug:y,log:y,warn:y,info:y,error:y},_=E;function C(n){var e=self.console[n];return e?e.bind(self.console,"["+n+"] >"):y}function m(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(o){_[o]=n[o]?n[o].bind(n):C(o)})}function c(n){if(self.console&&n===!0||typeof n=="object"){m(n,"debug","log","info","warn","error");try{_.log()}catch(e){_=E}}else _=E}var r=_},"./src/utils/mediakeys-helper.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"KeySystems",function(){return y}),P.d(Y,"requestMediaKeySystemAccess",function(){return E});var y;(function(_){_.WIDEVINE="com.widevine.alpha",_.PLAYREADY="com.microsoft.playready"})(y||(y={}));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(ue,Y,P){"use strict";P.r(Y),P.d(Y,"getMediaSource",function(){return y});function y(){return self.MediaSource||self.WebKitMediaSource}},"./src/utils/mp4-tools.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"bin2str",function(){return m}),P.d(Y,"readUint16",function(){return c}),P.d(Y,"readUint32",function(){return r}),P.d(Y,"writeUint32",function(){return n}),P.d(Y,"findBox",function(){return e}),P.d(Y,"parseSegmentIndex",function(){return s}),P.d(Y,"parseInitSegment",function(){return u}),P.d(Y,"getStartDTS",function(){return o}),P.d(Y,"getDuration",function(){return f}),P.d(Y,"computeRawDurationFromSamples",function(){return d}),P.d(Y,"offsetStartDTS",function(){return a}),P.d(Y,"segmentValidRange",function(){return h}),P.d(Y,"appendUint8Array",function(){return g});var y=P("./src/utils/typed-array.ts"),E=P("./src/loader/fragment.ts"),_=Math.pow(2,32)-1,C=[].push;function m(p){return String.fromCharCode.apply(null,p)}function c(p,S){"data"in p&&(S+=p.start,p=p.data);var w=p[S]<<8|p[S+1];return w<0?65536+w:w}function r(p,S){"data"in p&&(S+=p.start,p=p.data);var w=p[S]<<24|p[S+1]<<16|p[S+2]<<8|p[S+3];return w<0?4294967296+w:w}function n(p,S,w){"data"in p&&(S+=p.start,p=p.data),p[S]=w>>24,p[S+1]=w>>16&255,p[S+2]=w>>8&255,p[S+3]=w&255}function e(p,S){var w=[];if(!S.length)return w;var B,b,A;"data"in p?(B=p.data,b=p.start,A=p.end):(B=p,b=0,A=B.byteLength);for(var l=b;l<A;){var i=r(B,l),x=m(B.subarray(l+4,l+8)),O=i>1?l+i:A;if(x===S[0])if(S.length===1)w.push({data:B,start:l+8,end:O});else{var T=e({data:B,start:l+8,end:O},S.slice(1));T.length&&C.apply(w,T)}l=O}return w}function s(p){var S=e(p,["moov"]),w=S[0],B=w?w.end:null,b=e(p,["sidx"]);if(!b||!b[0])return null;var A=[],l=b[0],i=l.data[0],x=i===0?8:16,O=r(l,x);x+=4;var T=0,D=0;i===0?x+=8:x+=16,x+=2;var R=l.end+D,k=c(l,x);x+=2;for(var H=0;H<k;H++){var J=x,U=r(l,J);J+=4;var K=U&2147483647,G=(U&2147483648)>>>31;if(G===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var N=r(l,J);J+=4,A.push({referenceSize:K,subsegmentDuration:N,info:{duration:N/O,start:R,end:R+K-1}}),R+=K,J+=4,x=J}return{earliestPresentationTime:T,timescale:O,version:i,referencesCount:k,references:A,moovEndOffset:B}}function u(p){for(var S=[],w=e(p,["moov","trak"]),B=0;B<w.length;B++){var b=w[B],A=e(b,["tkhd"])[0];if(A){var l=A.data[A.start],i=l===0?12:20,x=r(A,i),O=e(b,["mdia","mdhd"])[0];if(O){l=O.data[O.start],i=l===0?12:20;var T=r(O,i),D=e(b,["mdia","hdlr"])[0];if(D){var R=m(D.data.subarray(D.start+8,D.start+12)),k={soun:E.ElementaryStreamTypes.AUDIO,vide:E.ElementaryStreamTypes.VIDEO}[R];if(k){var H=e(b,["mdia","minf","stbl","stsd"])[0],J=void 0;H&&(J=m(H.data.subarray(H.start+12,H.start+16))),S[x]={timescale:T,type:k},S[k]={timescale:T,id:x,codec:J}}}}}}var U=e(p,["moov","mvex","trex"]);return U.forEach(function(K){var G=r(K,4),N=S[G];N&&(N.default={duration:r(K,12),flags:r(K,20)})}),S}function o(p,S){return e(S,["moof","traf"]).reduce(function(w,B){var b=e(B,["tfdt"])[0],A=b.data[b.start],l=e(B,["tfhd"]).reduce(function(i,x){var O=r(x,4),T=p[O];if(T){var D=r(b,4);A===1&&(D*=Math.pow(2,32),D+=r(b,8));var R=T.timescale||9e4,k=D/R;if(isFinite(k)&&(i===null||k<i))return k}return i},null);return l!==null&&isFinite(l)&&(w===null||l<w)?l:w},null)||0}function f(p,S){for(var w=0,B=0,b=0,A=e(p,["moof","traf"]),l=0;l<A.length;l++){var i=A[l],x=e(i,["tfhd"])[0],O=r(x,4),T=S[O];if(!T)continue;var D=T.default,R=r(x,0)|(D==null?void 0:D.flags),k=D==null?void 0:D.duration;R&8&&(R&2?k=r(x,12):k=r(x,8));for(var H=T.timescale||9e4,J=e(i,["trun"]),U=0;U<J.length;U++){if(k){var K=r(J[U],4);w=k*K}else w=d(J[U]);T.type===E.ElementaryStreamTypes.VIDEO?B+=w/H:T.type===E.ElementaryStreamTypes.AUDIO&&(b+=w/H)}}if(B===0&&b===0){var G=s(p);if(G!=null&&G.references)return G.references.reduce(function(N,Q){return N+Q.info.duration||0},0)}return B||b}function d(p){var S=r(p,0),w=8;S&1&&(w+=4),S&4&&(w+=4);for(var B=0,b=r(p,4),A=0;A<b;A++){if(S&256){var l=r(p,w);B+=l,w+=4}S&512&&(w+=4),S&1024&&(w+=4),S&2048&&(w+=4)}return B}function a(p,S,w){e(S,["moof","traf"]).forEach(function(B){e(B,["tfhd"]).forEach(function(b){var A=r(b,4),l=p[A];if(!l)return;var i=l.timescale||9e4;e(B,["tfdt"]).forEach(function(x){var O=x.data[x.start],T=r(x,4);if(O===0)n(x,4,T-w*i);else{T*=Math.pow(2,32),T+=r(x,8),T-=w*i,T=Math.max(T,0);var D=Math.floor(T/(_+1)),R=Math.floor(T%(_+1));n(x,4,D),n(x,8,R)}})})})}function h(p){var S={valid:null,remainder:null},w=e(p,["moof"]);if(w){if(w.length<2)return S.remainder=p,S}else return S;var B=w[w.length-1];return S.valid=Object(y.sliceUint8)(p,0,B.start-8),S.remainder=Object(y.sliceUint8)(p,B.start-8),S}function g(p,S){var w=new Uint8Array(p.length+S.length);return w.set(p),w.set(S,p.length),w}},"./src/utils/output-filter.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"default",function(){return y});var y=function(){function E(C,m){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=C,this.trackName=m}var _=E.prototype;return _.dispatchCue=function(){if(this.startTime===null)return;this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null},_.newCue=function(m,c,r){(this.startTime===null||this.startTime>m)&&(this.startTime=m),this.endTime=c,this.screen=r,this.timelineController.createCaptionsTrack(this.trackName)},_.reset=function(){this.cueRanges=[]},E}()},"./src/utils/texttrack-utils.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"sendAddTrackEvent",function(){return E}),P.d(Y,"addCueToTrack",function(){return _}),P.d(Y,"clearCurrentCues",function(){return C}),P.d(Y,"removeCuesInRange",function(){return m}),P.d(Y,"getCuesInRange",function(){return r});var y=P("./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 _(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(o){y.logger.debug("[texttrack-utils]: "+o);var u=new self.TextTrackCue(e.startTime,e.endTime,e.text);u.id=e.id,n.addCue(u)}s==="disabled"&&(n.mode=s)}function C(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 m(n,e,s){var u=n.mode;if(u==="disabled"&&(n.mode="hidden"),n.cues&&n.cues.length>0)for(var o=r(n.cues,e,s),f=0;f<o.length;f++)n.removeCue(o[f]);u==="disabled"&&(n.mode=u)}function c(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,o=s;u<=o;){var f=Math.floor((o+u)/2);if(e<n[f].startTime)o=f-1;else if(e>n[f].startTime&&u<s)u=f+1;else return f}return n[u].startTime-e<e-n[o].startTime?u:o}function r(n,e,s){var u=[],o=c(n,e);if(o>-1)for(var f=o,d=n.length;f<d;f++){var a=n[f];if(a.startTime>=e&&a.endTime<=s)u.push(a);else if(a.startTime>s)return u}return u}},"./src/utils/time-ranges.ts":function(ue,Y,P){"use strict";P.r(Y);var y={toString:function(_){for(var C="",m=_.length,c=0;c<m;c++)C+="["+_.start(c).toFixed(3)+","+_.end(c).toFixed(3)+"]";return C}};Y.default=y},"./src/utils/timescale-conversion.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"toTimescaleFromBase",function(){return E}),P.d(Y,"toTimescaleFromScale",function(){return _}),P.d(Y,"toMsFromMpegTsClock",function(){return C}),P.d(Y,"toMpegTsClockFromTimescale",function(){return m});var y=9e4;function E(c,r,n,e){n===void 0&&(n=1),e===void 0&&(e=!1);var s=c*r*n;return e?Math.round(s):s}function _(c,r,n,e){return n===void 0&&(n=1),e===void 0&&(e=!1),E(c,r,1/n,e)}function C(c,r){return r===void 0&&(r=!1),E(c,1e3,1/y,r)}function m(c,r){return r===void 0&&(r=1),E(c,y,1/r)}},"./src/utils/typed-array.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"sliceUint8",function(){return y});function y(E,_,C){return Uint8Array.prototype.slice?E.slice(_,C):new Uint8Array(Array.prototype.slice.call(E,_,C))}},"./src/utils/vttcue.ts":function(ue,Y,P){"use strict";P.r(Y),Y.default=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var y=["","lr","rl"],E=["start","middle","end","left","right"];function _(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 C(n){return _(y,n)}function m(n){return _(E,n)}function c(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 o=1;o<arguments.length;o++){var f=arguments[o];for(var d in f)n[d]=f[d]}return n}function r(n,e,s){var u=this,o={enumerable:!0};u.hasBeenReset=!1;var f="",d=!1,a=n,h=e,g=s,p=null,S="",w=!0,B="auto",b="start",A=50,l="middle",i=50,x="middle";Object.defineProperty(u,"id",c({},o,{get:function(){return f},set:function(T){f=""+T}})),Object.defineProperty(u,"pauseOnExit",c({},o,{get:function(){return d},set:function(T){d=!!T}})),Object.defineProperty(u,"startTime",c({},o,{get:function(){return a},set:function(T){if(typeof T!="number")throw new TypeError("Start time must be set to a number.");a=T,this.hasBeenReset=!0}})),Object.defineProperty(u,"endTime",c({},o,{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",c({},o,{get:function(){return g},set:function(T){g=""+T,this.hasBeenReset=!0}})),Object.defineProperty(u,"region",c({},o,{get:function(){return p},set:function(T){p=T,this.hasBeenReset=!0}})),Object.defineProperty(u,"vertical",c({},o,{get:function(){return S},set:function(T){var D=C(T);if(D===!1)throw new SyntaxError("An invalid or illegal string was specified.");S=D,this.hasBeenReset=!0}})),Object.defineProperty(u,"snapToLines",c({},o,{get:function(){return w},set:function(T){w=!!T,this.hasBeenReset=!0}})),Object.defineProperty(u,"line",c({},o,{get:function(){return B},set:function(T){if(typeof T!="number"&&T!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");B=T,this.hasBeenReset=!0}})),Object.defineProperty(u,"lineAlign",c({},o,{get:function(){return b},set:function(T){var D=m(T);if(!D)throw new SyntaxError("An invalid or illegal string was specified.");b=D,this.hasBeenReset=!0}})),Object.defineProperty(u,"position",c({},o,{get:function(){return A},set:function(T){if(T<0||T>100)throw new Error("Position must be between 0 and 100.");A=T,this.hasBeenReset=!0}})),Object.defineProperty(u,"positionAlign",c({},o,{get:function(){return l},set:function(T){var D=m(T);if(!D)throw new SyntaxError("An invalid or illegal string was specified.");l=D,this.hasBeenReset=!0}})),Object.defineProperty(u,"size",c({},o,{get:function(){return i},set:function(T){if(T<0||T>100)throw new Error("Size must be between 0 and 100.");i=T,this.hasBeenReset=!0}})),Object.defineProperty(u,"align",c({},o,{get:function(){return x},set:function(T){var D=m(T);if(!D)throw new SyntaxError("An invalid or illegal string was specified.");x=D,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(ue,Y,P){"use strict";P.r(Y),P.d(Y,"parseTimeStamp",function(){return _}),P.d(Y,"fixLineBreaks",function(){return e}),P.d(Y,"VTTParser",function(){return s});var y=P("./src/utils/vttcue.ts"),E=function(){function u(){}var o=u.prototype;return o.decode=function(d,a){if(!d)return"";if(typeof d!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(d))},u}();function _(u){function o(d,a,h,g){return(d|0)*3600+(a|0)*60+(h|0)+parseFloat(g||0)}var f=u.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return f?parseFloat(f[2])>59?o(f[2],f[3],0,f[4]):o(f[1],f[2],f[3],f[4]):null}var C=function(){function u(){this.values=Object.create(null)}var o=u.prototype;return o.set=function(d,a){!this.get(d)&&a!==""&&(this.values[d]=a)},o.get=function(d,a,h){return h?this.has(d)?this.values[d]:a[h]:this.has(d)?this.values[d]:a},o.has=function(d){return d in this.values},o.alt=function(d,a,h){for(var g=0;g<h.length;++g)if(a===h[g]){this.set(d,a);break}},o.integer=function(d,a){/^-?\d+$/.test(a)&&this.set(d,parseInt(a,10))},o.percent=function(d,a){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(a)){var h=parseFloat(a);if(h>=0&&h<=100)return this.set(d,h),!0}return!1},u}();function m(u,o,f,d){var a=d?u.split(d):[u];for(var h in a){if(typeof a[h]!="string")continue;var g=a[h].split(f);if(g.length!==2)continue;var p=g[0],S=g[1];o(p,S)}}var c=new y.default(0,0,""),r=c.align==="middle"?"middle":"center";function n(u,o,f){var d=u;function a(){var p=_(u);if(p===null)throw new Error("Malformed timestamp: "+d);return u=u.replace(/^[^\sa-zA-Z-]+/,""),p}function h(p,S){var w=new C;m(p,function(A,l){var i;switch(A){case"region":for(var x=f.length-1;x>=0;x--)if(f[x].id===l){w.set(A,f[x].region);break}break;case"vertical":w.alt(A,l,["rl","lr"]);break;case"line":i=l.split(","),w.integer(A,i[0]),w.percent(A,i[0])&&w.set("snapToLines",!1),w.alt(A,i[0],["auto"]),i.length===2&&w.alt("lineAlign",i[1],["start",r,"end"]);break;case"position":i=l.split(","),w.percent(A,i[0]),i.length===2&&w.alt("positionAlign",i[1],["start",r,"end","line-left","line-right","auto"]);break;case"size":w.percent(A,l);break;case"align":w.alt(A,l,["start",r,"end","left","right"]);break}},/:/,/\s/),S.region=w.get("region",null),S.vertical=w.get("vertical","");var B=w.get("line","auto");B==="auto"&&c.line===-1&&(B=-1),S.line=B,S.lineAlign=w.get("lineAlign","start"),S.snapToLines=w.get("snapToLines",!0),S.size=w.get("size",100),S.align=w.get("align",r);var b=w.get("position","auto");b==="auto"&&c.position===50&&(b=S.align==="start"||S.align==="left"?0:S.align==="end"||S.align==="right"?100:50),S.position=b}function g(){u=u.replace(/^\s+/,"")}if(g(),o.startTime=a(),g(),u.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+d);u=u.substr(3),g(),o.endTime=a(),g(),h(u,o)}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 o=u.prototype;return o.parse=function(d){var a=this;d&&(a.buffer+=a.decoder.decode(d,{stream:!0}));function h(){var b=a.buffer,A=0;for(b=e(b);A<b.length&&b[A]!=="\r"&&b[A]!==`
`;)++A;var l=b.substr(0,A);return b[A]==="\r"&&++A,b[A]===`
`&&++A,a.buffer=b.substr(A),l}function g(b){m(b,function(A,l){},/:/)}try{var p="";if(a.state==="INITIAL"){if(!/\r\n|\n/.test(a.buffer))return this;p=h();var S=p.match(/^()?WEBVTT([ \t].*)?$/);if(!S||!S[0])throw new Error("Malformed WebVTT signature.");a.state="HEADER"}for(var w=!1;a.buffer;){if(!/\r\n|\n/.test(a.buffer))return this;w?w=!1:p=h();switch(a.state){case"HEADER":/:/.test(p)?g(p):p||(a.state="ID");continue;case"NOTE":p||(a.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(p)){a.state="NOTE";break}if(!p)continue;if(a.cue=new y.default(0,0,""),a.state="CUE",p.indexOf("-->")===-1){a.cue.id=p;continue}case"CUE":if(!a.cue){a.state="BADCUE";continue}try{n(p,a.cue,a.regionList)}catch(b){a.cue=null,a.state="BADCUE";continue}a.state="CUETEXT";continue;case"CUETEXT":{var B=p.indexOf("-->")!==-1;if(!p||B&&(w=!0)){a.oncue&&a.cue&&a.oncue(a.cue),a.cue=null,a.state="ID";continue}if(a.cue===null)continue;a.cue.text&&(a.cue.text+=`
`),a.cue.text+=p}continue;case"BADCUE":p||(a.state="ID")}}}catch(b){a.state==="CUETEXT"&&a.cue&&a.oncue&&a.oncue(a.cue),a.cue=null,a.state=a.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},o.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(a){d.onparsingerror&&d.onparsingerror(a)}return d.onflush&&d.onflush(),this},u}()},"./src/utils/webvtt-parser.ts":function(ue,Y,P){"use strict";P.r(Y),P.d(Y,"generateCueId",function(){return s}),P.d(Y,"parseWebVTT",function(){return o});var y=P("./src/polyfills/number.ts"),E=P("./src/utils/vttparser.ts"),_=P("./src/demux/id3.ts"),C=P("./src/utils/timescale-conversion.ts"),m=P("./src/remux/mp4-remuxer.ts"),c=/\r\n|\n\r|\n|\r/g,r=function(d,a,h){return h===void 0&&(h=0),d.substr(h,a.length)===a},n=function(d){var a=parseInt(d.substr(-3)),h=parseInt(d.substr(-6,2)),g=parseInt(d.substr(-9,2)),p=d.length>9?parseInt(d.substr(0,d.indexOf(":"))):0;if(!Object(y.isFiniteNumber)(a)||!Object(y.isFiniteNumber)(h)||!Object(y.isFiniteNumber)(g)||!Object(y.isFiniteNumber)(p))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+d);return a+=1e3*h,a+=60*1e3*g,a+=60*60*1e3*p,a},e=function(d){for(var a=5381,h=d.length;h;)a=a*33^d.charCodeAt(--h);return(a>>>0).toString()};function s(f,d,a){return e(f.toString())+e(d.toString())+e(a)}var u=function(d,a,h){var g=d[a],p=d[g.prevCC];if(!p||!p.new&&g.new){d.ccOffset=d.presentationOffset=g.start,g.new=!1;return}for(;(S=p)!==null&&S!==void 0&&S.new;){var S;d.ccOffset+=g.start-p.start,g.new=!1,g=p,p=d[g.prevCC]}d.presentationOffset=h};function o(f,d,a,h,g,p,S,w){var B=new E.VTTParser,b=Object(_.utf8ArrayToStr)(new Uint8Array(f)).trim().replace(c,`
`).split(`
`),A=[],l=Object(C.toMpegTsClockFromTimescale)(d,a),i="00:00.000",x=0,O=0,T,D=!0,R=!1;B.oncue=function(k){var H=h[g],J=h.ccOffset,U=(x-l)/9e4;if(H!=null&&H.new&&(O!==void 0?J=h.ccOffset=H.start:u(h,g,U)),U&&(J=U-h.presentationOffset),R){var K=k.endTime-k.startTime,G=Object(m.normalizePts)((k.startTime+J-O)*9e4,p*9e4)/9e4;k.startTime=G,k.endTime=G+K}var N=k.text.trim();k.text=decodeURIComponent(encodeURIComponent(N)),k.id||(k.id=s(k.startTime,k.endTime,N)),k.endTime>0&&A.push(k)},B.onparsingerror=function(k){T=k},B.onflush=function(){if(T){w(T);return}S(A)},b.forEach(function(k){if(D)if(r(k,"X-TIMESTAMP-MAP=")){D=!1,R=!0,k.substr(16).split(",").forEach(function(H){r(H,"LOCAL:")?i=H.substr(6):r(H,"MPEGTS:")&&(x=parseInt(H.substr(7)))});try{O=n(i)/1e3}catch(H){R=!1,T=H}return}else k===""&&(D=!1);B.parse(k+`
`)}),B.flush()}},"./src/utils/xhr-loader.ts":function(ue,Y,P){"use strict";P.r(Y);var y=P("./src/utils/logger.ts"),E=P("./src/loader/load-stats.ts"),_=/^age:\s*[\d.]+\s*$/m,C=function(){function m(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 c=m.prototype;return c.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},c.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()))},c.abort=function(){var n;this.abortInternal(),(n=this.callbacks)!==null&&n!==void 0&&n.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},c.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()},c.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 o=this.xhrSetup;try{if(o)try{o(s,e.url)}catch(a){s.open("GET",e.url,!0),o(s,e.url)}s.readyState||s.open("GET",e.url,!0);var f=this.context.headers;if(f)for(var d in f)s.setRequestHeader(d,f[d])}catch(a){this.callbacks.onError({code:s.status,text:a.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()},c.readystatechange=function(){var n=this.context,e=this.loader,s=this.stats;if(!n||!e)return;var u=e.readyState,o=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 f=e.status;if(f>=200&&f<300){s.loading.end=Math.max(self.performance.now(),s.loading.first);var d,a;if(n.responseType==="arraybuffer"?(d=e.response,a=d.byteLength):(d=e.responseText,a=d.length),s.loaded=s.total=a,!this.callbacks)return;var h=this.callbacks.onProgress;if(h&&h(s,n,d,e),!this.callbacks)return;var g={url:e.responseURL,data:d};this.callbacks.onSuccess(g,s,n,e)}else s.retry>=o.maxRetry||f>=400&&f<499?(y.logger.error(f+" while loading "+n.url),this.callbacks.onError({code:f,text:e.statusText},n,e)):(y.logger.warn(f+" while loading "+n.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,o.maxRetryDelay),s.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),o.timeout)},c.loadtimeout=function(){y.logger.warn("timeout while loading "+this.context.url);var n=this.callbacks;n&&(this.abortInternal(),n.onTimeout(this.stats,this.context,this.loader))},c.loadprogress=function(n){var e=this.stats;e.loaded=n.loaded,n.lengthComputable&&(e.total=n.total)},c.getCacheAge=function(){var n=null;if(this.loader&&_.test(this.loader.getAllResponseHeaders())){var e=this.loader.getResponseHeader("age");n=e?parseFloat(e):null}return n},m}();Y.default=C}}).default})},vHTk:function(Ze,we,M){Ze.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vKoX:function(Ze,we,M){var ue=M("SrGk"),Y=M("bYtY");function P(_,C){ue.call(this,_,C,["filter"],"__filter_in_use__","_shadowDom")}Y.inherits(P,ue),P.prototype.addWithoutUpdate=function(_,C){if(C&&y(C.style)){var m;if(C._shadowDom){m=C._shadowDom;var c=this.getDefs(!0);c.contains(C._shadowDom)||this.addDom(m)}else m=this.add(C);this.markUsed(C);var r=m.getAttribute("id");_.style.filter="url(#"+r+")"}},P.prototype.add=function(_){var C=this.createElement("filter");return _._shadowDomId=_._shadowDomId||this.nextId++,C.setAttribute("id","zr"+this._zrId+"-shadow-"+_._shadowDomId),this.updateDom(_,C),this.addDom(C),C},P.prototype.update=function(_,C){var m=C.style;if(y(m)){var c=this;ue.prototype.update.call(this,C,function(){c.updateDom(C,C._shadowDom)})}else this.remove(_,C)},P.prototype.remove=function(_,C){C._shadowDomId!=null&&(this.removeDom(_),_.style.filter="")},P.prototype.updateDom=function(_,C){var m=C.getElementsByTagName("feDropShadow");m.length===0?m=this.createElement("feDropShadow"):m=m[0];var c=_.style,r=_.scale&&_.scale[0]||1,n=_.scale&&_.scale[1]||1,e,s,u,o;if(c.shadowBlur||c.shadowOffsetX||c.shadowOffsetY)e=c.shadowOffsetX||0,s=c.shadowOffsetY||0,u=c.shadowBlur,o=c.shadowColor;else if(c.textShadowBlur)e=c.textShadowOffsetX||0,s=c.textShadowOffsetY||0,u=c.textShadowBlur,o=c.textShadowColor;else{this.removeDom(C,c);return}m.setAttribute("dx",e/r),m.setAttribute("dy",s/n),m.setAttribute("flood-color",o);var f=u/2/r,d=u/2/n,a=f+" "+d;m.setAttribute("stdDeviation",a),C.setAttribute("x","-100%"),C.setAttribute("y","-100%"),C.setAttribute("width",Math.ceil(u/2*200)+"%"),C.setAttribute("height",Math.ceil(u/2*200)+"%"),C.appendChild(m),_._shadowDom=C},P.prototype.markUsed=function(_){_._shadowDom&&ue.prototype.markUsed.call(this,_._shadowDom)};function y(_){return _&&(_.shadowBlur||_.shadowOffsetX||_.shadowOffsetY||_.textShadowBlur||_.textShadowOffsetX||_.textShadowOffsetY)}var E=P;Ze.exports=E},vUf6:function(Ze,we,M){Ze.exports=M.p+"static/xxtj.38a4bc0a.svg"},vWvF:function(Ze,we,M){var ue=M("Bq2U"),Y=M("SUKs"),P=M("bYtY"),y=P.isString,E=P.isFunction,_=P.isObject,C=P.isArrayLike,m=P.indexOf,c=function(){this.animators=[]};c.prototype={constructor:c,animate:function(u,o){var f,d=!1,a=this,h=this.__zr;if(u){var g=u.split("."),p=a;d=g[0]==="shape";for(var S=0,w=g.length;S<w;S++){if(!p)continue;p=p[g[S]]}p&&(f=p)}else f=a;if(!f){Y('Property "'+u+'" is not existed in element '+a.id);return}var B=a.animators,b=new ue(f,o);return b.during(function(A){a.dirty(d)}).done(function(){B.splice(m(B,b),1)}),B.push(b),h&&h.animation.addAnimator(b),b},stopAnimation:function(u){for(var o=this.animators,f=o.length,d=0;d<f;d++)o[d].stop(u);return o.length=0,this},animateTo:function(u,o,f,d,a,h){r(this,u,o,f,d,a,h)},animateFrom:function(u,o,f,d,a,h){r(this,u,o,f,d,a,h,!0)}};function r(u,o,f,d,a,h,g,p){y(d)?(h=a,a=d,d=0):E(a)?(h=a,a="linear",d=0):E(d)?(h=d,d=0):E(f)?(h=f,f=500):f||(f=500),u.stopAnimation(),n(u,"",u,o,f,d,p);var S=u.animators.slice(),w=S.length;function B(){w--,w||h&&h()}w||h&&h();for(var b=0;b<S.length;b++)S[b].done(B).start(a,g)}function n(u,o,f,d,a,h,g){var p={},S=0;for(var w in d){if(!d.hasOwnProperty(w))continue;f[w]!=null?_(d[w])&&!C(d[w])?n(u,o?o+"."+w:w,f[w],d[w],a,h,g):(g?(p[w]=f[w],e(u,o,w,d[w])):p[w]=d[w],S++):d[w]!=null&&!g&&e(u,o,w,d[w])}S>0&&u.animate(o,!1).when(a==null?500:a,p).delay(h||0)}function e(u,o,f,d){if(!o)u.attr(f,d);else{var a={};a[o]={},a[o][f]=d,u.attr(a)}}var s=c;Ze.exports=s},w8Aa:function(Ze,we,M){Ze.exports={img:"img___3e4yQ"}},wCXF:function(Ze,we,M){"use strict";M.d(we,"a",function(){return le});var ue=M("rePB"),Y=M("VTBJ"),P=M("KQm4"),y=M("U8pU"),E=M("ODXe"),_=M("q1tI"),C=M("TSYQ"),m=M.n(C),c=M("Gytx"),r=M.n(c),n=M("Kwbf"),e=M("t23M"),s=M("qx4F"),u=M("6eGT"),o=M("IBYe"),f=M("Ff2n"),d=M("c+Xe"),a=M("fyJ8"),h=M("biw7");function g(Ke,ze,yt,Et,ct){var lt=yt[Ke]||{},rt=yt[ze]||{},qe,$e;lt.fixed==="left"?qe=Et.left[Ke]:rt.fixed==="right"&&($e=Et.right[ze]);var Pe=!1,je=!1,Ne=!1,et=!1,mt=yt[ze+1],At=yt[Ke-1];if(ct==="rtl"){if(qe!==void 0){var Ut=At&&At.fixed==="left";et=!Ut}else if($e!==void 0){var Xt=mt&&mt.fixed==="right";Ne=!Xt}}else if(qe!==void 0){var un=mt&&mt.fixed==="left";Pe=!un}else if($e!==void 0){var jt=At&&At.fixed==="right";je=!jt}return{fixLeft:qe,fixRight:$e,lastFixLeft:Pe,firstFixRight:je,lastFixRight:Ne,firstFixLeft:et,isSticky:Et.isSticky}}var p=M("sR1s");function S(Ke){var ze=Ke.cells,yt=Ke.stickyOffsets,Et=Ke.flattenColumns,ct=Ke.rowComponent,lt=Ke.cellComponent,rt=Ke.onHeaderRow,qe=Ke.index,$e=_.useContext(h.a),Pe=$e.prefixCls,je=$e.direction,Ne;rt&&(Ne=rt(ze.map(function(mt){return mt.column}),qe));var et=Object(p.a)(ze.map(function(mt){return mt.column}));return _.createElement(ct,Object.assign({},Ne),ze.map(function(mt,At){var Ut=mt.column,Xt=g(mt.colStart,mt.colEnd,Et,yt,je),un;return Ut&&Ut.onHeaderCell&&(un=mt.column.onHeaderCell(Ut)),_.createElement(a.a,Object.assign({},mt,{ellipsis:Ut.ellipsis,align:Ut.align,component:lt,prefixCls:Pe,key:et[At]},Xt,{additionalProps:un,rowType:"header"}))}))}S.displayName="HeaderRow";var w=S;function B(Ke){var ze=[];function yt(rt,qe){var $e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ze[$e]=ze[$e]||[];var Pe=qe,je=rt.filter(Boolean).map(function(Ne){var et={key:Ne.key,className:Ne.className||"",children:Ne.title,column:Ne,colStart:Pe},mt=1,At=Ne.children;return At&&At.length>0&&(mt=yt(At,Pe,$e+1).reduce(function(Ut,Xt){return Ut+Xt},0),et.hasSubColumns=!0),"colSpan"in Ne&&(mt=Ne.colSpan),"rowSpan"in Ne&&(et.rowSpan=Ne.rowSpan),et.colSpan=mt,et.colEnd=et.colStart+mt-1,ze[$e].push(et),Pe+=mt,mt});return je}yt(Ke,0);for(var Et=ze.length,ct=function(qe){ze[qe].forEach(function($e){!("rowSpan"in $e)&&!$e.hasSubColumns&&($e.rowSpan=Et-qe)})},lt=0;lt<Et;lt+=1)ct(lt);return ze}function b(Ke){var ze=Ke.stickyOffsets,yt=Ke.columns,Et=Ke.flattenColumns,ct=Ke.onHeaderRow,lt=_.useContext(h.a),rt=lt.prefixCls,qe=lt.getComponent,$e=_.useMemo(function(){return B(yt)},[yt]),Pe=qe(["header","wrapper"],"thead"),je=qe(["header","row"],"tr"),Ne=qe(["header","cell"],"th");return _.createElement(Pe,{className:"".concat(rt,"-thead")},$e.map(function(et,mt){var At=_.createElement(w,{key:mt,flattenColumns:Et,cells:et,stickyOffsets:ze,rowComponent:je,cellComponent:Ne,onHeaderRow:ct,index:mt});return At}))}var A=b,l=M("hW8S");function i(Ke){for(var ze=Ke.colWidths,yt=Ke.columns,Et=Ke.columCount,ct=[],lt=Et||yt.length,rt=!1,qe=lt-1;qe>=0;qe-=1){var $e=ze[qe],Pe=yt&&yt[qe],je=Pe&&Pe[l.a];($e||je||rt)&&(ct.unshift(_.createElement("col",Object.assign({key:qe,style:{width:$e,minWidth:$e}},je))),rt=!0)}return _.createElement("colgroup",null,ct)}var x=i;function O(Ke,ze){return Object(_.useMemo)(function(){for(var yt=[],Et=0;Et<ze;Et+=1){var ct=Ke[Et];if(ct!==void 0)yt[Et]=ct;else return null}return yt},[Ke.join("_"),ze])}var T=_.forwardRef(function(Ke,ze){var yt=Ke.noData,Et=Ke.columns,ct=Ke.flattenColumns,lt=Ke.colWidths,rt=Ke.columCount,qe=Ke.stickyOffsets,$e=Ke.direction,Pe=Ke.fixHeader,je=Ke.offsetHeader,Ne=Ke.stickyClassName,et=Ke.onScroll,mt=Object(f.a)(Ke,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),At=_.useContext(h.a),Ut=At.prefixCls,Xt=At.scrollbarSize,un=At.isSticky,jt=un&&!Pe?0:Xt,Zt=_.useRef(null),Mt=_.useCallback(function(It){Object(d.b)(ze,It),Object(d.b)(Zt,It)},[]);_.useEffect(function(){var It;function Ot(bt){var Ht=bt.currentTarget,Gt=bt.deltaX;Gt&&(et({currentTarget:Ht,scrollLeft:Ht.scrollLeft+Gt}),bt.preventDefault())}return(It=Zt.current)===null||It===void 0||It.addEventListener("wheel",Ot),function(){var bt;(bt=Zt.current)===null||bt===void 0||bt.removeEventListener("wheel",Ot)}},[]);var Tt=ct[ct.length-1],Ct={fixed:Tt?Tt.fixed:null,onHeaderCell:function(){return{className:"".concat(Ut,"-cell-scrollbar")}}},Re=Object(_.useMemo)(function(){return jt?[].concat(Object(P.a)(Et),[Ct]):Et},[jt,Et]),We=Object(_.useMemo)(function(){return jt?[].concat(Object(P.a)(ct),[Ct]):ct},[jt,ct]),St=Object(_.useMemo)(function(){var It=qe.right,Ot=qe.left;return Object(Y.a)(Object(Y.a)({},qe),{},{left:$e==="rtl"?[].concat(Object(P.a)(Ot.map(function(bt){return bt+jt})),[0]):Ot,right:$e==="rtl"?It:[].concat(Object(P.a)(It.map(function(bt){return bt+jt})),[0]),isSticky:un})},[jt,qe,un]),ft=O(lt,rt);return _.createElement("div",{style:Object(Y.a)({overflow:"hidden"},un?{top:je}:{}),ref:Mt,className:m()("".concat(Ut,"-header"),Object(ue.a)({},Ne,!!Ne))},_.createElement("table",{style:{tableLayout:"fixed",visibility:yt||ft?null:"hidden"}},_.createElement(x,{colWidths:ft?[].concat(Object(P.a)(ft),[jt]):[],columCount:rt+1,columns:We}),_.createElement(A,Object.assign({},mt,{stickyOffsets:St,columns:Re,flattenColumns:We}))))});T.displayName="FixedHeader";var D=T,R=_.createContext(null),k=R;function H(Ke){var ze=Ke.prefixCls,yt=Ke.children,Et=Ke.component,ct=Ke.cellComponent,lt=Ke.fixHeader,rt=Ke.fixColumn,qe=Ke.horizonScroll,$e=Ke.className,Pe=Ke.expanded,je=Ke.componentWidth,Ne=Ke.colSpan,et=_.useContext(h.a),mt=et.scrollbarSize;return _.useMemo(function(){var At=yt;return rt&&(At=_.createElement("div",{style:{width:je-(lt?mt:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(ze,"-expanded-row-fixed")},At)),_.createElement(Et,{className:$e,style:{display:Pe?null:"none"}},_.createElement(a.a,{component:ct,prefixCls:ze,colSpan:Ne},At))},[yt,Et,lt,qe,$e,Pe,je,Ne,mt])}var J=H;function U(Ke){var ze=Ke.className,yt=Ke.style,Et=Ke.record,ct=Ke.index,lt=Ke.rowKey,rt=Ke.getRowKey,qe=Ke.rowExpandable,$e=Ke.expandedKeys,Pe=Ke.onRow,je=Ke.indent,Ne=je===void 0?0:je,et=Ke.rowComponent,mt=Ke.cellComponent,At=Ke.childrenColumnName,Ut=_.useContext(h.a),Xt=Ut.prefixCls,un=Ut.fixedInfoList,jt=_.useContext(k),Zt=jt.fixHeader,Mt=jt.fixColumn,Tt=jt.horizonScroll,Ct=jt.componentWidth,Re=jt.flattenColumns,We=jt.expandableType,St=jt.expandRowByClick,ft=jt.onTriggerExpand,It=jt.rowClassName,Ot=jt.expandedRowClassName,bt=jt.indentSize,Ht=jt.expandIcon,Gt=jt.expandedRowRender,xn=jt.expandIconColumnIndex,vn=_.useState(!1),sr=Object(E.a)(vn,2),xr=sr[0],Kn=sr[1],En=$e&&$e.has(Ke.recordKey);_.useEffect(function(){En&&Kn(!0)},[En]);var Qr=We==="row"&&(!qe||qe(Et)),sa=We==="nest",Xr=At&&Et&&Et[At],Nr=Qr||sa,ba;Pe&&(ba=Pe(Et,ct));var ja=function(z){if(St&&Nr&&ft(Et,z),ba&&ba.onClick){for(var Z,ye=arguments.length,Ce=new Array(ye>1?ye-1:0),be=1;be<ye;be++)Ce[be-1]=arguments[be];(Z=ba).onClick.apply(Z,[z].concat(Ce))}},oi;typeof It=="string"?oi=It:typeof It=="function"&&(oi=It(Et,ct,Ne));var Le=Object(p.a)(Re),Qe=_.createElement(et,Object.assign({},ba,{"data-row-key":lt,className:m()(ze,"".concat(Xt,"-row"),"".concat(Xt,"-row-level-").concat(Ne),oi,ba&&ba.className),style:Object(Y.a)(Object(Y.a)({},yt),ba?ba.style:null),onClick:ja}),Re.map(function(ve,z){var Z=ve.render,ye=ve.dataIndex,Ce=ve.className,be=Le[z],ht=un[z],Nt;z===(xn||0)&&sa&&(Nt=_.createElement(_.Fragment,null,_.createElement("span",{style:{paddingLeft:"".concat(bt*Ne,"px")},className:"".concat(Xt,"-row-indent indent-level-").concat(Ne)}),Ht({prefixCls:Xt,expanded:En,expandable:Xr,record:Et,onExpand:ft})));var sn;return ve.onCell&&(sn=ve.onCell(Et,ct)),_.createElement(a.a,Object.assign({className:Ce,ellipsis:ve.ellipsis,align:ve.align,component:mt,prefixCls:Xt,key:be,record:Et,index:ct,dataIndex:ye,render:Z,shouldCellUpdate:ve.shouldCellUpdate},ht,{appendNode:Nt,additionalProps:sn}))})),ot;if(Qr&&(xr||En)){var _t=Gt(Et,ct,Ne+1,En),Kt=Ot&&Ot(Et,ct,Ne);ot=_.createElement(J,{expanded:En,className:m()("".concat(Xt,"-expanded-row"),"".concat(Xt,"-expanded-row-level-").concat(Ne+1),Kt),prefixCls:Xt,fixHeader:Zt,fixColumn:Mt,horizonScroll:Tt,component:et,componentWidth:Ct,cellComponent:mt,colSpan:Re.length},_t)}var nn;return Xr&&En&&(nn=(Et[At]||[]).map(function(ve,z){var Z=rt(ve,z);return _.createElement(U,Object.assign({},Ke,{key:Z,rowKey:Z,record:ve,recordKey:Z,index:z,indent:Ne+1}))})),_.createElement(_.Fragment,null,Qe,ot,nn)}U.displayName="BodyRow";var K=U,G=_.createContext(null),N=G;function Q(Ke){var ze=Ke.columnKey,yt=Ke.onColumnResize,Et=_.useRef();return _.useEffect(function(){Et.current&&yt(ze,Et.current.offsetWidth)},[]),_.createElement(e.a,{onResize:function(lt){var rt=lt.offsetWidth;yt(ze,rt)}},_.createElement("td",{ref:Et,style:{padding:0,border:0,height:0}},_.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function X(Ke){var ze=Ke.data,yt=Ke.getRowKey,Et=Ke.measureColumnWidth,ct=Ke.expandedKeys,lt=Ke.onRow,rt=Ke.rowExpandable,qe=Ke.emptyNode,$e=Ke.childrenColumnName,Pe=_.useContext(N),je=Pe.onColumnResize,Ne=_.useContext(h.a),et=Ne.prefixCls,mt=Ne.getComponent,At=_.useContext(k),Ut=At.fixHeader,Xt=At.horizonScroll,un=At.flattenColumns,jt=At.componentWidth;return _.useMemo(function(){var Zt=mt(["body","wrapper"],"tbody"),Mt=mt(["body","row"],"tr"),Tt=mt(["body","cell"],"td"),Ct;ze.length?Ct=ze.map(function(We,St){var ft=yt(We,St);return _.createElement(K,{key:ft,rowKey:ft,record:We,recordKey:ft,index:St,rowComponent:Mt,cellComponent:Tt,expandedKeys:ct,onRow:lt,getRowKey:yt,rowExpandable:rt,childrenColumnName:$e})}):Ct=_.createElement(J,{expanded:!0,className:"".concat(et,"-placeholder"),prefixCls:et,fixHeader:Ut,fixColumn:Xt,horizonScroll:Xt,component:Mt,componentWidth:jt,cellComponent:Tt,colSpan:un.length},qe);var Re=Object(p.a)(un);return _.createElement(Zt,{className:"".concat(et,"-tbody")},Et&&_.createElement("tr",{"aria-hidden":"true",className:"".concat(et,"-measure-row"),style:{height:0}},Re.map(function(We){return _.createElement(Q,{key:We,columnKey:We,onColumnResize:je})})),Ct)},[ze,et,lt,Et,ct,yt,mt,jt,qe,un])}var te=_.memo(X);te.displayName="Body";var oe=te,me=M("wRmb"),se=M("xEkU"),_e=M.n(se);function Ae(Ke){var ze=Object(_.useRef)(Ke),yt=Object(_.useState)({}),Et=Object(E.a)(yt,2),ct=Et[1],lt=Object(_.useRef)(null),rt=Object(_.useRef)([]);function qe($e){lt.current===null&&(rt.current=[],lt.current=_e()(function(){rt.current.forEach(function(Pe){ze.current=Pe(ze.current)}),lt.current=null,ct({})})),rt.current.push($e)}return Object(_.useEffect)(function(){return function(){_e.a.cancel(lt.current)}},[]),[ze.current,qe]}function Ee(Ke){var ze=Object(_.useRef)(Ke),yt=Object(_.useRef)(null);function Et(){window.clearTimeout(yt.current)}function ct(rt){ze.current=rt,Et(),yt.current=window.setTimeout(function(){ze.current=null,yt.current=null},100)}function lt(){return ze.current}return Object(_.useEffect)(function(){return Et},[]),[ct,lt]}function pe(Ke,ze,yt){var Et=Object(_.useMemo)(function(){for(var ct=[],lt=[],rt=0,qe=0,$e=0;$e<ze;$e+=1)if(yt==="rtl"){lt[$e]=qe,qe+=Ke[$e]||0;var Pe=ze-$e-1;ct[Pe]=rt,rt+=Ke[Pe]||0}else{ct[$e]=rt,rt+=Ke[$e]||0;var je=ze-$e-1;lt[je]=qe,qe+=Ke[je]||0}return{left:ct,right:lt}},[Ke,ze,yt]);return Et}var he=pe;function ie(Ke){var ze=Ke.className,yt=Ke.children;return _.createElement("div",{className:ze},yt)}var fe=ie,ge=M("n6Qo");function ce(Ke){var ze,yt=Ke.prefixCls,Et=Ke.record,ct=Ke.onExpand,lt=Ke.expanded,rt=Ke.expandable,qe="".concat(yt,"-row-expand-icon");if(!rt)return _.createElement("span",{className:m()(qe,"".concat(yt,"-row-spaced"))});var $e=function(je){ct(Et,je),je.stopPropagation()};return _.createElement("span",{className:m()(qe,(ze={},Object(ue.a)(ze,"".concat(yt,"-row-expanded"),lt),Object(ue.a)(ze,"".concat(yt,"-row-collapsed"),!lt),ze)),onClick:$e})}function Ie(Ke,ze,yt){var Et=[];function ct(lt){(lt||[]).forEach(function(rt,qe){Et.push(ze(rt,qe)),ct(rt[yt])})}return ct(Ke),Et}var Fe=M("zT1h"),ke=M("y0+3"),re=function(ze,yt){var Et,ct,lt=ze.scrollBodyRef,rt=ze.onScroll,qe=ze.offsetScroll,$e=_.useContext(h.a),Pe=$e.prefixCls,je=((Et=lt.current)===null||Et===void 0?void 0:Et.scrollWidth)||0,Ne=((ct=lt.current)===null||ct===void 0?void 0:ct.clientWidth)||0,et=je&&Ne*(Ne/je),mt=_.useRef(),At=Ae({scrollLeft:0,isHiddenScrollBar:!1}),Ut=Object(E.a)(At,2),Xt=Ut[0],un=Ut[1],jt=_.useRef({delta:0,x:0}),Zt=_.useState(!1),Mt=Object(E.a)(Zt,2),Tt=Mt[0],Ct=Mt[1],Re=function(){Ct(!1)},We=function(bt){bt.persist(),jt.current.delta=bt.pageX-Xt.scrollLeft,jt.current.x=0,Ct(!0),bt.preventDefault()},St=function(bt){var Ht,Gt=bt||((Ht=window)===null||Ht===void 0?void 0:Ht.event),xn=Gt.buttons;if(!Tt||xn===0){Tt&&Ct(!1);return}var vn=jt.current.x+bt.pageX-jt.current.x-jt.current.delta;vn<=0&&(vn=0),vn+et>=Ne&&(vn=Ne-et),rt({scrollLeft:vn/Ne*(je+2)}),jt.current.x=bt.pageX},ft=function(){var bt=Object(ke.b)(lt.current).top,Ht=bt+lt.current.offsetHeight,Gt=document.documentElement.scrollTop+window.innerHeight;Ht-Object(s.a)()<=Gt||bt>=Gt-qe?un(function(xn){return Object(Y.a)(Object(Y.a)({},xn),{},{isHiddenScrollBar:!0})}):un(function(xn){return Object(Y.a)(Object(Y.a)({},xn),{},{isHiddenScrollBar:!1})})},It=function(bt){un(function(Ht){return Object(Y.a)(Object(Y.a)({},Ht),{},{scrollLeft:bt/je*Ne||0})})};return _.useImperativeHandle(yt,function(){return{setScrollLeft:It}}),_.useEffect(function(){var Ot=Object(Fe.a)(document.body,"mouseup",Re,!1),bt=Object(Fe.a)(document.body,"mousemove",St,!1);return ft(),function(){Ot.remove(),bt.remove()}},[et,Tt]),_.useEffect(function(){var Ot=Object(Fe.a)(window,"scroll",ft,!1),bt=Object(Fe.a)(window,"resize",ft,!1);return function(){Ot.remove(),bt.remove()}},[]),_.useEffect(function(){Xt.isHiddenScrollBar||un(function(Ot){var bt,Ht;return Object(Y.a)(Object(Y.a)({},Ot),{},{scrollLeft:lt.current.scrollLeft/((bt=lt.current)===null||bt===void 0?void 0:bt.scrollWidth)*((Ht=lt.current)===null||Ht===void 0?void 0:Ht.clientWidth)})})},[Xt.isHiddenScrollBar]),je<=Ne||!et||Xt.isHiddenScrollBar?null:_.createElement("div",{style:{height:Object(s.a)(),width:Ne,bottom:qe},className:"".concat(Pe,"-sticky-scroll")},_.createElement("div",{onMouseDown:We,ref:mt,className:m()("".concat(Pe,"-sticky-scroll-bar"),Object(ue.a)({},"".concat(Pe,"-sticky-scroll-bar-active"),Tt)),style:{width:"".concat(et,"px"),transform:"translate3d(".concat(Xt.scrollLeft,"px, 0, 0)")}}))},F=_.forwardRef(re);function W(Ke,ze){return _.useMemo(function(){var yt=!!Ke;return{isSticky:yt,stickyClassName:yt?"".concat(ze,"-sticky-header"):"",offsetHeader:Object(y.a)(Ke)==="object"&&Ke.offsetHeader||0,offsetScroll:Object(y.a)(Ke)==="object"&&Ke.offsetScroll||0}},[Ke,ze])}var de=[],ne={},le="rc-table-internal-hook",De=_.memo(function(Ke){var ze=Ke.children;return ze},function(Ke,ze){return r()(Ke.props,ze.props)?Ke.pingLeft!==ze.pingLeft||Ke.pingRight!==ze.pingRight:!1});function Xe(Ke){var ze,yt=Ke.prefixCls,Et=Ke.className,ct=Ke.rowClassName,lt=Ke.style,rt=Ke.data,qe=Ke.rowKey,$e=Ke.scroll,Pe=Ke.tableLayout,je=Ke.direction,Ne=Ke.title,et=Ke.footer,mt=Ke.summary,At=Ke.id,Ut=Ke.showHeader,Xt=Ke.components,un=Ke.emptyText,jt=Ke.onRow,Zt=Ke.onHeaderRow,Mt=Ke.internalHooks,Tt=Ke.transformColumns,Ct=Ke.internalRefs,Re=Ke.sticky,We=rt||de,St=!!We.length,ft=_.useState(0),It=Object(E.a)(ft,2),Ot=It[0],bt=It[1];_.useEffect(function(){bt(Object(s.a)())});var Ht=_.useMemo(function(){return Object(p.c)(Xt,{})},[Xt]),Gt=_.useCallback(function(va,oa){return Object(p.b)(Ht,va)||oa},[Ht]),xn=_.useMemo(function(){return typeof qe=="function"?qe:function(va){var oa=va&&va[qe];return oa}},[qe]),vn=Object(l.c)(Ke),sr=vn.expandIcon,xr=vn.expandedRowKeys,Kn=vn.defaultExpandedRowKeys,En=vn.defaultExpandAllRows,Qr=vn.expandedRowRender,sa=vn.onExpand,Xr=vn.onExpandedRowsChange,Nr=vn.expandRowByClick,ba=vn.rowExpandable,ja=vn.expandIconColumnIndex,oi=vn.expandedRowClassName,Le=vn.childrenColumnName,Qe=vn.indentSize,ot=sr||ce,_t=Le||"children",Kt=_.useMemo(function(){return Qr?"row":Ke.expandable&&Mt===le&&Ke.expandable.__PARENT_RENDER_ICON__||We.some(function(va){return va&&Object(y.a)(va)==="object"&&va[_t]})?"nest":!1},[!!Qr,We]),nn=_.useState(function(){return Kn||(En?Ie(We,xn,_t):[])}),ve=Object(E.a)(nn,2),z=ve[0],Z=ve[1],ye=_.useMemo(function(){return new Set(xr||z||[])},[xr,z]),Ce=_.useCallback(function(va){var oa=xn(va,We.indexOf(va)),ua,to=ye.has(oa);to?(ye.delete(oa),ua=Object(P.a)(ye)):ua=[].concat(Object(P.a)(ye),[oa]),Z(ua),sa&&sa(!to,va),Xr&&Xr(ua)},[xn,ye,We,sa,Xr]),be=_.useState(0),ht=Object(E.a)(be,2),Nt=ht[0],sn=ht[1],pn=Object(me.b)(Object(Y.a)(Object(Y.a)(Object(Y.a)({},Ke),vn),{},{expandable:!!Qr,expandedKeys:ye,getRowKey:xn,onTriggerExpand:Ce,expandIcon:ot,expandIconColumnIndex:ja,direction:je}),Mt===le?Tt:null),zt=Object(E.a)(pn,2),qn=zt[0],Un=zt[1],rr=_.useMemo(function(){return{columns:qn,flattenColumns:Un}},[qn,Un]),Sr=_.useRef(),ia=_.useRef(),Dr=_.useRef(),na=_.useState(!1),Tr=Object(E.a)(na,2),ma=Tr[0],ha=Tr[1],Oa=_.useState(!1),xa=Object(E.a)(Oa,2),ka=xa[0],Ha=xa[1],Ia=Ae(new Map),Yr=Object(E.a)(Ia,2),za=Yr[0],Ga=Yr[1],Da=Object(p.a)(Un),si=Da.map(function(va){return za.get(va)}),di=_.useMemo(function(){return si},[si.join("_")]),Ma=he(di,Un.length,je),zr=$e&&Object(p.d)($e.y),Ar=$e&&Object(p.d)($e.x),Gr=Ar&&Un.some(function(va){var oa=va.fixed;return oa}),qr=_.useRef(),_a=W(Re,yt),Jr=_a.isSticky,ji=_a.offsetHeader,Fa=_a.offsetScroll,vi=_a.stickyClassName,vo,Wo,Ca;zr&&(Wo={overflowY:"scroll",maxHeight:$e.y}),Ar&&(vo={overflowX:"auto"},zr||(Wo={overflowY:"hidden"}),Ca={width:$e.x===!0?"auto":$e.x,minWidth:"100%"});var Ro=_.useCallback(function(va,oa){Ga(function(ua){var to=new Map(ua);return to.set(va,oa),to})},[]),hi=Ee(null),os=Object(E.a)(hi,2),eo=os[0],ss=os[1];function Jo(va,oa){if(!oa)return;typeof oa=="function"?oa(va):oa.scrollLeft!==va&&(oa.scrollLeft=va)}var Ui=function(oa){var ua=oa.currentTarget,to=oa.scrollLeft,ls=typeof to=="number"?to:ua.scrollLeft,us=ua||ne;if(!ss()||ss()===us){var Is;eo(us),Jo(ls,ia.current),Jo(ls,Dr.current),Jo(ls,(Is=qr.current)===null||Is===void 0?void 0:Is.setScrollLeft)}if(ua){var xs=ua.scrollWidth,js=ua.clientWidth;ha(ls>0),Ha(ls<xs-js)}},Zo=function(){Dr.current&&Ui({currentTarget:Dr.current})},ps=function(oa){var ua=oa.width;Zo(),sn(Sr.current?Sr.current.offsetWidth:ua)};_.useEffect(function(){return Zo},[]),_.useEffect(function(){Ar&&Zo()},[Ar]),_.useEffect(function(){Mt===le&&Ct&&(Ct.body.current=Dr.current)});var kn=Gt(["table"],"table"),Cr=_.useMemo(function(){return Pe||(Gr?$e.x==="max-content"?"auto":"fixed":zr||Un.some(function(va){var oa=va.ellipsis;return oa})?"fixed":"auto")},[zr,Gr,Un,Pe]),gr,Vr={colWidths:di,columCount:Un.length,stickyOffsets:Ma,onHeaderRow:Zt,fixHeader:zr},Aa=_.useMemo(function(){return St?null:typeof un=="function"?un():un},[St,un]),Sa=_.createElement(oe,{data:We,measureColumnWidth:zr||Ar||Jr,expandedKeys:ye,rowExpandable:ba,getRowKey:xn,onRow:jt,emptyNode:Aa,childrenColumnName:_t}),la=_.createElement(x,{colWidths:Un.map(function(va){var oa=va.width;return oa}),columns:Un}),Ai=mt&&_.createElement(ge.b,null,mt(We)),Hi=Gt(["body"]);if(zr||Jr){var ra;typeof Hi=="function"?(ra=Hi(We,{scrollbarSize:Ot,ref:Dr,onScroll:Ui}),Vr.colWidths=Un.map(function(va,oa){var ua=va.width,to=oa===qn.length-1?ua-Ot:ua;return typeof to=="number"&&!Number.isNaN(to)?to:(Object(n.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):ra=_.createElement("div",{style:Object(Y.a)(Object(Y.a)({},vo),Wo),onScroll:Ui,ref:Dr,className:m()("".concat(yt,"-body"))},_.createElement(kn,{style:Object(Y.a)(Object(Y.a)({},Ca),{},{tableLayout:Cr})},la,Sa,Ai),Jr&&_.createElement(F,{ref:qr,offsetScroll:Fa,scrollBodyRef:Dr,onScroll:Ui})),gr=_.createElement(_.Fragment,null,Ut!==!1&&_.createElement(D,Object.assign({noData:!We.length},Vr,rr,{direction:je,offsetHeader:ji,stickyClassName:vi,ref:ia,onScroll:Ui})),ra)}else gr=_.createElement("div",{style:Object(Y.a)(Object(Y.a)({},vo),Wo),className:m()("".concat(yt,"-content")),onScroll:Ui,ref:Dr},_.createElement(kn,{style:Object(Y.a)(Object(Y.a)({},Ca),{},{tableLayout:Cr})},la,Ut!==!1&&_.createElement(A,Object.assign({},Vr,rr)),Sa,Ai));var zo=Object(l.b)(Ke),fa=_.createElement("div",Object.assign({className:m()(yt,Et,(ze={},Object(ue.a)(ze,"".concat(yt,"-rtl"),je==="rtl"),Object(ue.a)(ze,"".concat(yt,"-ping-left"),ma),Object(ue.a)(ze,"".concat(yt,"-ping-right"),ka),Object(ue.a)(ze,"".concat(yt,"-layout-fixed"),Pe==="fixed"),Object(ue.a)(ze,"".concat(yt,"-fixed-header"),zr),Object(ue.a)(ze,"".concat(yt,"-fixed-column"),Gr),Object(ue.a)(ze,"".concat(yt,"-scroll-horizontal"),Ar),Object(ue.a)(ze,"".concat(yt,"-has-fix-left"),Un[0]&&Un[0].fixed),Object(ue.a)(ze,"".concat(yt,"-has-fix-right"),Un[Un.length-1]&&Un[Un.length-1].fixed==="right"),ze)),style:lt,id:At,ref:Sr},zo),_.createElement(De,{pingLeft:ma,pingRight:ka,props:Object(Y.a)(Object(Y.a)({},Ke),{},{stickyOffsets:Ma,mergedExpandedKeys:ye})},Ne&&_.createElement(fe,{className:"".concat(yt,"-title")},Ne(We)),_.createElement("div",{className:"".concat(yt,"-container")},gr),et&&_.createElement(fe,{className:"".concat(yt,"-footer")},et(We))));Ar&&(fa=_.createElement(e.a,{onResize:ps},fa));var Si=_.useMemo(function(){return{prefixCls:yt,getComponent:Gt,scrollbarSize:Ot,direction:je,fixedInfoList:Un.map(function(va,oa){return g(oa,oa,Un,Ma,je)}),isSticky:Jr}},[yt,Gt,Ot,je,Un,Ma,je,Jr]),uo=_.useMemo(function(){return Object(Y.a)(Object(Y.a)({},rr),{},{tableLayout:Cr,rowClassName:ct,expandedRowClassName:oi,componentWidth:Nt,fixHeader:zr,fixColumn:Gr,horizonScroll:Ar,expandIcon:ot,expandableType:Kt,expandRowByClick:Nr,expandedRowRender:Qr,onTriggerExpand:Ce,expandIconColumnIndex:ja,indentSize:Qe})},[rr,Cr,ct,oi,Nt,zr,Gr,Ar,ot,Kt,Nr,Qr,Ce,ja,Qe]),Gi=_.useMemo(function(){return{onColumnResize:Ro}},[Ro]);return _.createElement(h.a.Provider,{value:Si},_.createElement(k.Provider,{value:uo},_.createElement(N.Provider,{value:Gi},fa)))}Xe.Column=o.a,Xe.ColumnGroup=u.a,Xe.Summary=ge.a,Xe.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var xt=we.b=Xe},wOnQ:function(Ze,we,M){/*!
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
* Released under MIT License
*/(function(ue,Y){Ze.exports=Y()})(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 ue=function(q,V){return ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,$){ee.__proto__=$}||function(ee,$){for(var Se in $)Object.prototype.hasOwnProperty.call($,Se)&&(ee[Se]=$[Se])},ue(q,V)};function Y(q,V){if(typeof V!="function"&&V!==null)throw new TypeError("Class extends value "+String(V)+" is not a constructor or null");ue(q,V);function ee(){this.constructor=q}q.prototype=V===null?Object.create(V):(ee.prototype=V.prototype,new ee)}var P=function(){return P=Object.assign||function(V){for(var ee,$=1,Se=arguments.length;$<Se;$++){ee=arguments[$];for(var Ue in ee)Object.prototype.hasOwnProperty.call(ee,Ue)&&(V[Ue]=ee[Ue])}return V},P.apply(this,arguments)};function y(q,V,ee,$){function Se(Ue){return Ue instanceof ee?Ue:new ee(function(tt){tt(Ue)})}return new(ee||(ee=Promise))(function(Ue,tt){function vt(Ft){try{Rt($.next(Ft))}catch(Jt){tt(Jt)}}function pt(Ft){try{Rt($.throw(Ft))}catch(Jt){tt(Jt)}}function Rt(Ft){Ft.done?Ue(Ft.value):Se(Ft.value).then(vt,pt)}Rt(($=$.apply(q,V||[])).next())})}function E(q,V){var ee={label:0,sent:function(){if(Ue[0]&1)throw Ue[1];return Ue[1]},trys:[],ops:[]},$,Se,Ue,tt;return tt={next:vt(0),throw:vt(1),return:vt(2)},typeof Symbol=="function"&&(tt[Symbol.iterator]=function(){return this}),tt;function vt(Rt){return function(Ft){return pt([Rt,Ft])}}function pt(Rt){if($)throw new TypeError("Generator is already executing.");for(;ee;)try{if($=1,Se&&(Ue=Rt[0]&2?Se.return:Rt[0]?Se.throw||((Ue=Se.return)&&Ue.call(Se),0):Se.next)&&!(Ue=Ue.call(Se,Rt[1])).done)return Ue;(Se=0,Ue)&&(Rt=[Rt[0]&2,Ue.value]);switch(Rt[0]){case 0:case 1:Ue=Rt;break;case 4:return ee.label++,{value:Rt[1],done:!1};case 5:ee.label++,Se=Rt[1],Rt=[0];continue;case 7:Rt=ee.ops.pop(),ee.trys.pop();continue;default:if(!(Ue=ee.trys,Ue=Ue.length>0&&Ue[Ue.length-1])&&(Rt[0]===6||Rt[0]===2)){ee=0;continue}if(Rt[0]===3&&(!Ue||Rt[1]>Ue[0]&&Rt[1]<Ue[3])){ee.label=Rt[1];break}if(Rt[0]===6&&ee.label<Ue[1]){ee.label=Ue[1],Ue=Rt;break}if(Ue&&ee.label<Ue[2]){ee.label=Ue[2],ee.ops.push(Rt);break}Ue[2]&&ee.ops.pop(),ee.trys.pop();continue}Rt=V.call(q,ee)}catch(Ft){Rt=[6,Ft],Se=0}finally{$=Ue=0}if(Rt[0]&5)throw Rt[1];return{value:Rt[0]?Rt[1]:void 0,done:!0}}}function _(q,V,ee){if(ee||arguments.length===2)for(var $=0,Se=V.length,Ue;$<Se;$++)(Ue||!($ in V))&&(Ue||(Ue=Array.prototype.slice.call(V,0,$)),Ue[$]=V[$]);return q.concat(Ue||V)}for(var C=function(){function q(V,ee,$,Se){this.left=V,this.top=ee,this.width=$,this.height=Se}return q.prototype.add=function(V,ee,$,Se){return new q(this.left+V,this.top+ee,this.width+$,this.height+Se)},q.fromClientRect=function(V,ee){return new q(ee.left+V.windowBounds.left,ee.top+V.windowBounds.top,ee.width,ee.height)},q.fromDOMRectList=function(V,ee){var $=Array.from(ee).find(function(Se){return Se.width!==0});return $?new q($.left+V.windowBounds.left,$.top+V.windowBounds.top,$.width,$.height):q.EMPTY},q.EMPTY=new q(0,0,0,0),q}(),m=function(q,V){return C.fromClientRect(q,V.getBoundingClientRect())},c=function(q){var V=q.body,ee=q.documentElement;if(!V||!ee)throw new Error("Unable to get document size");var $=Math.max(Math.max(V.scrollWidth,ee.scrollWidth),Math.max(V.offsetWidth,ee.offsetWidth),Math.max(V.clientWidth,ee.clientWidth)),Se=Math.max(Math.max(V.scrollHeight,ee.scrollHeight),Math.max(V.offsetHeight,ee.offsetHeight),Math.max(V.clientHeight,ee.clientHeight));return new C(0,0,$,Se)},r=function(q){for(var V=[],ee=0,$=q.length;ee<$;){var Se=q.charCodeAt(ee++);if(Se>=55296&&Se<=56319&&ee<$){var Ue=q.charCodeAt(ee++);(Ue&64512)===56320?V.push(((Se&1023)<<10)+(Ue&1023)+65536):(V.push(Se),ee--)}else V.push(Se)}return V},n=function(){for(var q=[],V=0;V<arguments.length;V++)q[V]=arguments[V];if(String.fromCodePoint)return String.fromCodePoint.apply(String,q);var ee=q.length;if(!ee)return"";for(var $=[],Se=-1,Ue="";++Se<ee;){var tt=q[Se];tt<=65535?$.push(tt):(tt-=65536,$.push((tt>>10)+55296,tt%1024+56320)),(Se+1===ee||$.length>16384)&&(Ue+=String.fromCharCode.apply(String,$),$.length=0)}return Ue},e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),u=0;u<e.length;u++)s[e.charCodeAt(u)]=u;for(var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),d=0;d<o.length;d++)f[o.charCodeAt(d)]=d;for(var a=function(q){var V=q.length*.75,ee=q.length,$,Se=0,Ue,tt,vt,pt;q[q.length-1]==="="&&(V--,q[q.length-2]==="="&&V--);var Rt=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(V):new Array(V),Ft=Array.isArray(Rt)?Rt:new Uint8Array(Rt);for($=0;$<ee;$+=4)Ue=f[q.charCodeAt($)],tt=f[q.charCodeAt($+1)],vt=f[q.charCodeAt($+2)],pt=f[q.charCodeAt($+3)],Ft[Se++]=Ue<<2|tt>>4,Ft[Se++]=(tt&15)<<4|vt>>2,Ft[Se++]=(vt&3)<<6|pt&63;return Rt},h=function(q){for(var V=q.length,ee=[],$=0;$<V;$+=2)ee.push(q[$+1]<<8|q[$]);return ee},g=function(q){for(var V=q.length,ee=[],$=0;$<V;$+=4)ee.push(q[$+3]<<24|q[$+2]<<16|q[$+1]<<8|q[$]);return ee},p=5,S=6+5,w=2,B=S-p,b=65536>>p,A=1<<p,l=A-1,i=1024>>p,x=b+i,O=x,T=2048>>6,D=O+T,R=65536>>S,k=1<<B,H=k-1,J=function(q,V,ee){return q.slice?q.slice(V,ee):new Uint16Array(Array.prototype.slice.call(q,V,ee))},U=function(q,V,ee){return q.slice?q.slice(V,ee):new Uint32Array(Array.prototype.slice.call(q,V,ee))},K=function(q,V){var ee=a(q),$=Array.isArray(ee)?g(ee):new Uint32Array(ee),Se=Array.isArray(ee)?h(ee):new Uint16Array(ee),Ue=24,tt=J(Se,Ue/2,$[4]/2),vt=$[5]===2?J(Se,(Ue+$[4])/2):U($,Math.ceil((Ue+$[4])/4));return new G($[0],$[1],$[2],$[3],tt,vt)},G=function(){function q(V,ee,$,Se,Ue,tt){this.initialValue=V,this.errorValue=ee,this.highStart=$,this.highValueIndex=Se,this.index=Ue,this.data=tt}return q.prototype.get=function(V){var ee;if(V>=0){if(V<55296||V>56319&&V<=65535)return ee=this.index[V>>p],ee=(ee<<w)+(V&l),this.data[ee];if(V<=65535)return ee=this.index[b+(V-55296>>p)],ee=(ee<<w)+(V&l),this.data[ee];if(V<this.highStart)return ee=D-R+(V>>S),ee=this.index[ee],ee+=V>>p&H,ee=this.index[ee],ee=(ee<<w)+(V&l),this.data[ee];if(V<=1114111)return this.data[this.highValueIndex]}return this.errorValue},q}(),N="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Q=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),X=0;X<N.length;X++)Q[N.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,me=1,se=2,_e=3,Ae=4,Ee=5,pe=7,he=8,ie=9,fe=10,ge=11,ce=12,Ie=13,Fe=14,ke=15,re=16,F=17,W=18,de=19,ne=20,le=21,De=22,Xe=23,xt=24,Ke=25,ze=26,yt=27,Et=28,ct=29,lt=30,rt=31,qe=32,$e=33,Pe=34,je=35,Ne=36,et=37,mt=38,At=39,Ut=40,Xt=41,un=42,jt=43,Zt=[9001,65288],Mt="!",Tt="\xD7",Ct="\xF7",Re=K(te),We=[lt,Ne],St=[me,se,_e,Ee],ft=[fe,he],It=[yt,ze],Ot=St.concat(ft),bt=[mt,At,Ut,Pe,je],Ht=[ke,Ie],Gt=function(q,V){V===void 0&&(V="strict");var ee=[],$=[],Se=[];return q.forEach(function(Ue,tt){var vt=Re.get(Ue);if(vt>oe?(Se.push(!0),vt-=oe):Se.push(!1),["normal","auto","loose"].indexOf(V)!==-1&&[8208,8211,12316,12448].indexOf(Ue)!==-1)return $.push(tt),ee.push(re);if(vt===Ae||vt===ge){if(tt===0)return $.push(tt),ee.push(lt);var pt=ee[tt-1];return Ot.indexOf(pt)===-1?($.push($[tt-1]),ee.push(pt)):($.push(tt),ee.push(lt))}if($.push(tt),vt===rt)return ee.push(V==="strict"?le:et);if(vt===un)return ee.push(lt);if(vt===ct)return ee.push(lt);if(vt===jt)return Ue>=131072&&Ue<=196605||Ue>=196608&&Ue<=262141?ee.push(et):ee.push(lt);ee.push(vt)}),[$,ee,Se]},xn=function(q,V,ee,$){var Se=$[ee];if(Array.isArray(q)?q.indexOf(Se)!==-1:q===Se)for(var Ue=ee;Ue<=$.length;){Ue++;var tt=$[Ue];if(tt===V)return!0;if(tt!==fe)break}if(Se===fe)for(var Ue=ee;Ue>0;){Ue--;var vt=$[Ue];if(Array.isArray(q)?q.indexOf(vt)!==-1:q===vt)for(var pt=ee;pt<=$.length;){pt++;var tt=$[pt];if(tt===V)return!0;if(tt!==fe)break}if(vt!==fe)break}return!1},vn=function(q,V){for(var ee=q;ee>=0;){var $=V[ee];if($===fe)ee--;else return $}return 0},sr=function(q,V,ee,$,Se){if(ee[$]===0)return Tt;var Ue=$-1;if(Array.isArray(Se)&&Se[Ue]===!0)return Tt;var tt=Ue-1,vt=Ue+1,pt=V[Ue],Rt=tt>=0?V[tt]:0,Ft=V[vt];if(pt===se&&Ft===_e)return Tt;if(St.indexOf(pt)!==-1)return Mt;if(St.indexOf(Ft)!==-1)return Tt;if(ft.indexOf(Ft)!==-1)return Tt;if(vn(Ue,V)===he)return Ct;if(Re.get(q[Ue])===ge)return Tt;if((pt===qe||pt===$e)&&Re.get(q[vt])===ge)return Tt;if(pt===pe||Ft===pe)return Tt;if(pt===ie)return Tt;if([fe,Ie,ke].indexOf(pt)===-1&&Ft===ie)return Tt;if([F,W,de,xt,Et].indexOf(Ft)!==-1)return Tt;if(vn(Ue,V)===De)return Tt;if(xn(Xe,De,Ue,V))return Tt;if(xn([F,W],le,Ue,V))return Tt;if(xn(ce,ce,Ue,V))return Tt;if(pt===fe)return Ct;if(pt===Xe||Ft===Xe)return Tt;if(Ft===re||pt===re)return Ct;if([Ie,ke,le].indexOf(Ft)!==-1||pt===Fe)return Tt;if(Rt===Ne&&Ht.indexOf(pt)!==-1)return Tt;if(pt===Et&&Ft===Ne)return Tt;if(Ft===ne)return Tt;if(We.indexOf(Ft)!==-1&&pt===Ke||We.indexOf(pt)!==-1&&Ft===Ke)return Tt;if(pt===yt&&[et,qe,$e].indexOf(Ft)!==-1||[et,qe,$e].indexOf(pt)!==-1&&Ft===ze)return Tt;if(We.indexOf(pt)!==-1&&It.indexOf(Ft)!==-1||It.indexOf(pt)!==-1&&We.indexOf(Ft)!==-1)return Tt;if([yt,ze].indexOf(pt)!==-1&&(Ft===Ke||[De,ke].indexOf(Ft)!==-1&&V[vt+1]===Ke)||[De,ke].indexOf(pt)!==-1&&Ft===Ke||pt===Ke&&[Ke,Et,xt].indexOf(Ft)!==-1)return Tt;if([Ke,Et,xt,F,W].indexOf(Ft)!==-1)for(var Jt=Ue;Jt>=0;){var en=V[Jt];if(en===Ke)return Tt;if([Et,xt].indexOf(en)!==-1)Jt--;else break}if([yt,ze].indexOf(Ft)!==-1)for(var Jt=[F,W].indexOf(pt)!==-1?tt:Ue;Jt>=0;){var en=V[Jt];if(en===Ke)return Tt;if([Et,xt].indexOf(en)!==-1)Jt--;else break}if(mt===pt&&[mt,At,Pe,je].indexOf(Ft)!==-1||[At,Pe].indexOf(pt)!==-1&&[At,Ut].indexOf(Ft)!==-1||[Ut,je].indexOf(pt)!==-1&&Ft===Ut)return Tt;if(bt.indexOf(pt)!==-1&&[ne,ze].indexOf(Ft)!==-1||bt.indexOf(Ft)!==-1&&pt===yt)return Tt;if(We.indexOf(pt)!==-1&&We.indexOf(Ft)!==-1)return Tt;if(pt===xt&&We.indexOf(Ft)!==-1)return Tt;if(We.concat(Ke).indexOf(pt)!==-1&&Ft===De&&Zt.indexOf(q[vt])===-1||We.concat(Ke).indexOf(Ft)!==-1&&pt===W)return Tt;if(pt===Xt&&Ft===Xt){for(var br=ee[Ue],Nn=1;br>0&&(br--,V[br]===Xt);)Nn++;if(Nn%2!==0)return Tt}return pt===qe&&Ft===$e?Tt:Ct},xr=function(q,V){V||(V={lineBreak:"normal",wordBreak:"normal"});var ee=Gt(q,V.lineBreak),$=ee[0],Se=ee[1],Ue=ee[2];(V.wordBreak==="break-all"||V.wordBreak==="break-word")&&(Se=Se.map(function(vt){return[Ke,lt,un].indexOf(vt)!==-1?et:vt}));var tt=V.wordBreak==="keep-all"?Ue.map(function(vt,pt){return vt&&q[pt]>=19968&&q[pt]<=40959}):void 0;return[$,Se,tt]},Kn=function(){function q(V,ee,$,Se){this.codePoints=V,this.required=ee===Mt,this.start=$,this.end=Se}return q.prototype.slice=function(){return n.apply(void 0,this.codePoints.slice(this.start,this.end))},q}(),En=function(q,V){var ee=r(q),$=xr(ee,V),Se=$[0],Ue=$[1],tt=$[2],vt=ee.length,pt=0,Rt=0;return{next:function(){if(Rt>=vt)return{done:!0,value:null};for(var Ft=Tt;Rt<vt&&(Ft=sr(ee,Ue,Se,++Rt,tt))===Tt;);if(Ft!==Tt||Rt===vt){var Jt=new Kn(ee,Ft,pt,Rt);return pt=Rt,{value:Jt,done:!1}}return{done:!0,value:null}}}},Qr=1<<0,sa=1<<1,Xr=1<<2,Nr=1<<3,ba=10,ja=47,oi=92,Le=9,Qe=32,ot=34,_t=61,Kt=35,nn=36,ve=37,z=39,Z=40,ye=41,Ce=95,be=45,ht=33,Nt=60,sn=62,pn=64,zt=91,qn=93,Un=61,rr=123,Sr=63,ia=125,Dr=124,na=126,Tr=128,ma=65533,ha=42,Oa=43,xa=44,ka=58,Ha=59,Ia=46,Yr=0,za=8,Ga=11,Da=14,si=31,di=127,Ma=-1,zr=48,Ar=97,Gr=101,qr=102,_a=117,Jr=122,ji=65,Fa=69,vi=70,vo=85,Wo=90,Ca=function(q){return q>=zr&&q<=57},Ro=function(q){return q>=55296&&q<=57343},hi=function(q){return Ca(q)||q>=ji&&q<=vi||q>=Ar&&q<=qr},os=function(q){return q>=Ar&&q<=Jr},eo=function(q){return q>=ji&&q<=Wo},ss=function(q){return os(q)||eo(q)},Jo=function(q){return q>=Tr},Ui=function(q){return q===ba||q===Le||q===Qe},Zo=function(q){return ss(q)||Jo(q)||q===Ce},ps=function(q){return Zo(q)||Ca(q)||q===be},kn=function(q){return q>=Yr&&q<=za||q===Ga||q>=Da&&q<=si||q===di},Cr=function(q,V){return q!==oi?!1:V!==ba},gr=function(q,V,ee){return q===be?Zo(V)||Cr(V,ee):Zo(q)?!0:!!(q===oi&&Cr(q,V))},Vr=function(q,V,ee){return q===Oa||q===be?Ca(V)?!0:V===Ia&&Ca(ee):q===Ia?Ca(V):Ca(q)},Aa=function(q){var V=0,ee=1;(q[V]===Oa||q[V]===be)&&(q[V]===be&&(ee=-1),V++);for(var $=[];Ca(q[V]);)$.push(q[V++]);var Se=$.length?parseInt(n.apply(void 0,$),10):0;q[V]===Ia&&V++;for(var Ue=[];Ca(q[V]);)Ue.push(q[V++]);var tt=Ue.length,vt=tt?parseInt(n.apply(void 0,Ue),10):0;(q[V]===Fa||q[V]===Gr)&&V++;var pt=1;(q[V]===Oa||q[V]===be)&&(q[V]===be&&(pt=-1),V++);for(var Rt=[];Ca(q[V]);)Rt.push(q[V++]);var Ft=Rt.length?parseInt(n.apply(void 0,Rt),10):0;return ee*(Se+vt*Math.pow(10,-tt))*Math.pow(10,pt*Ft)},Sa={type:2},la={type:3},Ai={type:4},Hi={type:13},ra={type:8},zo={type:21},fa={type:9},Si={type:10},uo={type:11},Gi={type:12},va={type:14},oa={type:23},ua={type:1},to={type:25},ls={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(V){this._value=this._value.concat(r(V))},q.prototype.read=function(){for(var V=[],ee=this.consumeToken();ee!==cs;)V.push(ee),ee=this.consumeToken();return V},q.prototype.consumeToken=function(){var V=this.consumeCodePoint();switch(V){case ot:return this.consumeStringToken(ot);case Kt:var ee=this.peekCodePoint(0),$=this.peekCodePoint(1),Se=this.peekCodePoint(2);if(ps(ee)||Cr($,Se)){var Ue=gr(ee,$,Se)?sa:Qr,tt=this.consumeName();return{type:5,value:tt,flags:Ue}}break;case nn:if(this.peekCodePoint(0)===_t)return this.consumeCodePoint(),Hi;break;case z:return this.consumeStringToken(z);case Z:return Sa;case ye:return la;case ha:if(this.peekCodePoint(0)===_t)return this.consumeCodePoint(),va;break;case Oa:if(Vr(V,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(V),this.consumeNumericToken();break;case xa:return Ai;case be:var vt=V,pt=this.peekCodePoint(0),Rt=this.peekCodePoint(1);if(Vr(vt,pt,Rt))return this.reconsumeCodePoint(V),this.consumeNumericToken();if(gr(vt,pt,Rt))return this.reconsumeCodePoint(V),this.consumeIdentLikeToken();if(pt===be&&Rt===sn)return this.consumeCodePoint(),this.consumeCodePoint(),ls;break;case Ia:if(Vr(V,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(V),this.consumeNumericToken();break;case ja:if(this.peekCodePoint(0)===ha)for(this.consumeCodePoint();;){var Ft=this.consumeCodePoint();if(Ft===ha&&(Ft=this.consumeCodePoint(),Ft===ja))return this.consumeToken();if(Ft===Ma)return this.consumeToken()}break;case ka:return us;case Ha:return Is;case Nt:if(this.peekCodePoint(0)===ht&&this.peekCodePoint(1)===be&&this.peekCodePoint(2)===be)return this.consumeCodePoint(),this.consumeCodePoint(),to;break;case pn:var Jt=this.peekCodePoint(0),en=this.peekCodePoint(1),br=this.peekCodePoint(2);if(gr(Jt,en,br)){var tt=this.consumeName();return{type:7,value:tt}}break;case zt:return xs;case oi:if(Cr(V,this.peekCodePoint(0)))return this.reconsumeCodePoint(V),this.consumeIdentLikeToken();break;case qn:return js;case Un:if(this.peekCodePoint(0)===_t)return this.consumeCodePoint(),ra;break;case rr:return uo;case ia:return Gi;case _a:case vo:var Nn=this.peekCodePoint(0),dr=this.peekCodePoint(1);return Nn===Oa&&(hi(dr)||dr===Sr)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(V),this.consumeIdentLikeToken();case Dr:if(this.peekCodePoint(0)===_t)return this.consumeCodePoint(),fa;if(this.peekCodePoint(0)===Dr)return this.consumeCodePoint(),zo;break;case na:if(this.peekCodePoint(0)===_t)return this.consumeCodePoint(),Si;break;case Ma:return cs}return Ui(V)?(this.consumeWhiteSpace(),Zs):Ca(V)?(this.reconsumeCodePoint(V),this.consumeNumericToken()):Zo(V)?(this.reconsumeCodePoint(V),this.consumeIdentLikeToken()):{type:6,value:n(V)}},q.prototype.consumeCodePoint=function(){var V=this._value.shift();return typeof V=="undefined"?-1:V},q.prototype.reconsumeCodePoint=function(V){this._value.unshift(V)},q.prototype.peekCodePoint=function(V){return V>=this._value.length?-1:this._value[V]},q.prototype.consumeUnicodeRangeToken=function(){for(var V=[],ee=this.consumeCodePoint();hi(ee)&&V.length<6;)V.push(ee),ee=this.consumeCodePoint();for(var $=!1;ee===Sr&&V.length<6;)V.push(ee),ee=this.consumeCodePoint(),$=!0;if($){var Se=parseInt(n.apply(void 0,V.map(function(pt){return pt===Sr?zr:pt})),16),Ue=parseInt(n.apply(void 0,V.map(function(pt){return pt===Sr?vi:pt})),16);return{type:30,start:Se,end:Ue}}var tt=parseInt(n.apply(void 0,V),16);if(this.peekCodePoint(0)===be&&hi(this.peekCodePoint(1))){this.consumeCodePoint(),ee=this.consumeCodePoint();for(var vt=[];hi(ee)&&vt.length<6;)vt.push(ee),ee=this.consumeCodePoint();var Ue=parseInt(n.apply(void 0,vt),16);return{type:30,start:tt,end:Ue}}else return{type:30,start:tt,end:tt}},q.prototype.consumeIdentLikeToken=function(){var V=this.consumeName();return V.toLowerCase()==="url"&&this.peekCodePoint(0)===Z?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Z?(this.consumeCodePoint(),{type:19,value:V}):{type:20,value:V}},q.prototype.consumeUrlToken=function(){var V=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ma)return{type:22,value:""};var ee=this.peekCodePoint(0);if(ee===z||ee===ot){var $=this.consumeStringToken(this.consumeCodePoint());return $.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ma||this.peekCodePoint(0)===ye)?(this.consumeCodePoint(),{type:22,value:$.value}):(this.consumeBadUrlRemnants(),oa)}for(;;){var Se=this.consumeCodePoint();if(Se===Ma||Se===ye)return{type:22,value:n.apply(void 0,V)};if(Ui(Se))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ma||this.peekCodePoint(0)===ye?(this.consumeCodePoint(),{type:22,value:n.apply(void 0,V)}):(this.consumeBadUrlRemnants(),oa);if(Se===ot||Se===z||Se===Z||kn(Se))return this.consumeBadUrlRemnants(),oa;if(Se===oi)if(Cr(Se,this.peekCodePoint(0)))V.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),oa;else V.push(Se)}},q.prototype.consumeWhiteSpace=function(){for(;Ui(this.peekCodePoint(0));)this.consumeCodePoint()},q.prototype.consumeBadUrlRemnants=function(){for(;;){var V=this.consumeCodePoint();if(V===ye||V===Ma)return;Cr(V,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},q.prototype.consumeStringSlice=function(V){for(var ee=5e4,$="";V>0;){var Se=Math.min(ee,V);$+=n.apply(void 0,this._value.splice(0,Se)),V-=Se}return this._value.shift(),$},q.prototype.consumeStringToken=function(V){var ee="",$=0;do{var Se=this._value[$];if(Se===Ma||Se===void 0||Se===V)return ee+=this.consumeStringSlice($),{type:0,value:ee};if(Se===ba)return this._value.splice(0,$),ua;if(Se===oi){var Ue=this._value[$+1];Ue!==Ma&&Ue!==void 0&&(Ue===ba?(ee+=this.consumeStringSlice($),$=-1,this._value.shift()):Cr(Se,Ue)&&(ee+=this.consumeStringSlice($),ee+=n(this.consumeEscapedCodePoint()),$=-1))}$++}while(!0)},q.prototype.consumeNumber=function(){var V=[],ee=Xr,$=this.peekCodePoint(0);for(($===Oa||$===be)&&V.push(this.consumeCodePoint());Ca(this.peekCodePoint(0));)V.push(this.consumeCodePoint());$=this.peekCodePoint(0);var Se=this.peekCodePoint(1);if($===Ia&&Ca(Se))for(V.push(this.consumeCodePoint(),this.consumeCodePoint()),ee=Nr;Ca(this.peekCodePoint(0));)V.push(this.consumeCodePoint());$=this.peekCodePoint(0),Se=this.peekCodePoint(1);var Ue=this.peekCodePoint(2);if(($===Fa||$===Gr)&&((Se===Oa||Se===be)&&Ca(Ue)||Ca(Se)))for(V.push(this.consumeCodePoint(),this.consumeCodePoint()),ee=Nr;Ca(this.peekCodePoint(0));)V.push(this.consumeCodePoint());return[Aa(V),ee]},q.prototype.consumeNumericToken=function(){var V=this.consumeNumber(),ee=V[0],$=V[1],Se=this.peekCodePoint(0),Ue=this.peekCodePoint(1),tt=this.peekCodePoint(2);if(gr(Se,Ue,tt)){var vt=this.consumeName();return{type:15,number:ee,flags:$,unit:vt}}return Se===ve?(this.consumeCodePoint(),{type:16,number:ee,flags:$}):{type:17,number:ee,flags:$}},q.prototype.consumeEscapedCodePoint=function(){var V=this.consumeCodePoint();if(hi(V)){for(var ee=n(V);hi(this.peekCodePoint(0))&&ee.length<6;)ee+=n(this.consumeCodePoint());Ui(this.peekCodePoint(0))&&this.consumeCodePoint();var $=parseInt(ee,16);return $===0||Ro($)||$>1114111?ma:$}return V===Ma?ma:V},q.prototype.consumeName=function(){for(var V="";;){var ee=this.consumeCodePoint();if(ps(ee))V+=n(ee);else if(Cr(ee,this.peekCodePoint(0)))V+=n(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(ee),V}},q}(),$s=function(){function q(V){this._tokens=V}return q.create=function(V){var ee=new dl;return ee.write(V),new q(ee.read())},q.parseValue=function(V){return q.create(V).parseComponentValue()},q.parseValues=function(V){return q.create(V).parseComponentValues()},q.prototype.parseComponentValue=function(){for(var V=this.consumeToken();V.type===31;)V=this.consumeToken();if(V.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(V);var ee=this.consumeComponentValue();do V=this.consumeToken();while(V.type===31);if(V.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 V=[];;){var ee=this.consumeComponentValue();if(ee.type===32)return V;V.push(ee),V.push()}},q.prototype.consumeComponentValue=function(){var V=this.consumeToken();switch(V.type){case 11:case 28:case 2:return this.consumeSimpleBlock(V.type);case 19:return this.consumeFunction(V)}return V},q.prototype.consumeSimpleBlock=function(V){for(var ee={type:V,values:[]},$=this.consumeToken();;){if($.type===32||Ye($,V))return ee;this.reconsumeToken($),ee.values.push(this.consumeComponentValue()),$=this.consumeToken()}},q.prototype.consumeFunction=function(V){for(var ee={name:V.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 V=this._tokens.shift();return typeof V=="undefined"?cs:V},q.prototype.reconsumeToken=function(V){this._tokens.unshift(V)},q}(),xo=function(q){return q.type===15},ms=function(q){return q.type===17},Qa=function(q){return q.type===20},_s=function(q){return q.type===0},_o=function(q,V){return Qa(q)&&q.value===V},Hs=function(q){return q.type!==31},ut=function(q){return q.type!==31&&q.type!==4},Ge=function(q){var V=[],ee=[];return q.forEach(function($){if($.type===4){if(ee.length===0)throw new Error("Error parsing function args, zero tokens for arg");V.push(ee),ee=[];return}$.type!==31&&ee.push($)}),ee.length&&V.push(ee),V},Ye=function(q,V){return V===11&&q.type===12||V===28&&q.type===29?!0:V===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:Xr},at={type:16,number:50,flags:Xr},nt={type:16,number:100,flags:Xr},st=function(q,V,ee){var $=q[0],Se=q[1];return[it($,V),it(typeof Se!="undefined"?Se:$,ee)]},it=function(q,V){if(q.type===16)return q.number/100*V;if(xo(q))switch(q.unit){case"rem":case"em":return 16*q.number;case"px":default:return q.number}return q.number},dt="deg",Dt="grad",Qt="rad",Bt="turn",$t={name:"angle",parse:function(q,V){if(V.type===15)switch(V.unit){case dt:return Math.PI*V.number/180;case Dt:return Math.PI/200*V.number;case Qt:return V.number;case Bt:return Math.PI*2*V.number}throw new Error("Unsupported angle type")}},ln=function(q){return q.type===15&&(q.unit===dt||q.unit===Dt||q.unit===Qt||q.unit===Bt)},On=function(q){var V=q.filter(Qa).map(function(ee){return ee.value}).join(" ");switch(V){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Be,Be];case"to top":case"bottom":return Wt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Be,nt];case"to right":case"left":return Wt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[nt,nt];case"to bottom":case"top":return Wt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[nt,Be];case"to left":case"right":return Wt(270)}return 0},Wt=function(q){return Math.PI*q/180},qt={name:"color",parse:function(q,V){if(V.type===18){var ee=hn[V.name];if(typeof ee=="undefined")throw new Error('Attempting to parse an unsupported color function "'+V.name+'"');return ee(q,V.values)}if(V.type===5){if(V.value.length===3){var $=V.value.substring(0,1),Se=V.value.substring(1,2),Ue=V.value.substring(2,3);return tn(parseInt($+$,16),parseInt(Se+Se,16),parseInt(Ue+Ue,16),1)}if(V.value.length===4){var $=V.value.substring(0,1),Se=V.value.substring(1,2),Ue=V.value.substring(2,3),tt=V.value.substring(3,4);return tn(parseInt($+$,16),parseInt(Se+Se,16),parseInt(Ue+Ue,16),parseInt(tt+tt,16)/255)}if(V.value.length===6){var $=V.value.substring(0,2),Se=V.value.substring(2,4),Ue=V.value.substring(4,6);return tn(parseInt($,16),parseInt(Se,16),parseInt(Ue,16),1)}if(V.value.length===8){var $=V.value.substring(0,2),Se=V.value.substring(2,4),Ue=V.value.substring(4,6),tt=V.value.substring(6,8);return tn(parseInt($,16),parseInt(Se,16),parseInt(Ue,16),parseInt(tt,16)/255)}}if(V.type===20){var vt=_n[V.value.toUpperCase()];if(typeof vt!="undefined")return vt}return _n.TRANSPARENT}},yn=function(q){return(255&q)===0},Rn=function(q){var V=255&q,ee=255&q>>8,$=255&q>>16,Se=255&q>>24;return V<255?"rgba("+Se+","+$+","+ee+","+V/255+")":"rgb("+Se+","+$+","+ee+")"},tn=function(q,V,ee,$){return(q<<24|V<<16|ee<<8|Math.round($*255)<<0)>>>0},bn=function(q,V){if(q.type===17)return q.number;if(q.type===16){var ee=V===3?1:255;return V===3?q.number/100*ee:Math.round(q.number/100*ee)}return 0},Ln=function(q,V){var ee=V.filter(ut);if(ee.length===3){var $=ee.map(bn),Se=$[0],Ue=$[1],tt=$[2];return tn(Se,Ue,tt,1)}if(ee.length===4){var vt=ee.map(bn),Se=vt[0],Ue=vt[1],tt=vt[2],pt=vt[3];return tn(Se,Ue,tt,pt)}return 0};function Xn(q,V,ee){return ee<0&&(ee+=1),ee>=1&&(ee-=1),ee<1/6?(V-q)*ee*6+q:ee<1/2?V:ee<2/3?(V-q)*6*(2/3-ee)+q:q}var rn=function(q,V){var ee=V.filter(ut),$=ee[0],Se=ee[1],Ue=ee[2],tt=ee[3],vt=($.type===17?Wt($.number):$t.parse(q,$))/(Math.PI*2),pt=Te(Se)?Se.number/100:0,Rt=Te(Ue)?Ue.number/100:0,Ft=typeof tt!="undefined"&&Te(tt)?it(tt,1):1;if(pt===0)return tn(Rt*255,Rt*255,Rt*255,1);var Jt=Rt<=.5?Rt*(pt+1):Rt+pt-Rt*pt,en=Rt*2-Jt,br=Xn(en,Jt,vt+1/3),Nn=Xn(en,Jt,vt),dr=Xn(en,Jt,vt-1/3);return tn(br*255,Nn*255,dr*255,Ft)},hn={hsl:rn,hsla:rn,rgb:Ln,rgba:Ln},An=function(q,V){return qt.parse(q,$s.create(V).parseComponentValue())},_n={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},tr={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(q,V){return V.map(function(ee){if(Qa(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"},Fn=function(q,V){var ee=qt.parse(q,V[0]),$=V[1];return $&&Te($)?{color:ee,stop:$}:{color:ee,stop:null}},Ir=function(q,V){var ee=q[0],$=q[q.length-1];ee.stop===null&&(ee.stop=Be),$.stop===null&&($.stop=nt);for(var Se=[],Ue=0,tt=0;tt<q.length;tt++){var vt=q[tt].stop;if(vt!==null){var pt=it(vt,V);pt>Ue?Se.push(pt):Se.push(Ue),Ue=pt}else Se.push(null)}for(var Rt=null,tt=0;tt<Se.length;tt++){var Ft=Se[tt];if(Ft===null)Rt===null&&(Rt=tt);else if(Rt!==null){for(var Jt=tt-Rt,en=Se[Rt-1],br=(Ft-en)/(Jt+1),Nn=1;Nn<=Jt;Nn++)Se[Rt+Nn-1]=br*Nn;Rt=null}}return q.map(function(dr,ea){var vr=dr.color;return{color:vr,stop:Math.max(Math.min(1,Se[ea]/V),0)}})},hr=function(q,V,ee){var $=V/2,Se=ee/2,Ue=it(q[0],V)-$,tt=Se-it(q[1],ee);return(Math.atan2(tt,Ue)+Math.PI*2)%(Math.PI*2)},Br=function(q,V,ee){var $=typeof q=="number"?q:hr(q,V,ee),Se=Math.abs(V*Math.sin($))+Math.abs(ee*Math.cos($)),Ue=V/2,tt=ee/2,vt=Se/2,pt=Math.sin($-Math.PI/2)*vt,Rt=Math.cos($-Math.PI/2)*vt;return[Se,Ue-Rt,Ue+Rt,tt-pt,tt+pt]},ur=function(q,V){return Math.sqrt(q*q+V*V)},Fr=function(q,V,ee,$,Se){var Ue=[[0,0],[0,V],[q,0],[q,V]];return Ue.reduce(function(tt,vt){var pt=vt[0],Rt=vt[1],Ft=ur(ee-pt,$-Rt);return(Se?Ft<tt.optimumDistance:Ft>tt.optimumDistance)?{optimumCorner:vt,optimumDistance:Ft}:tt},{optimumDistance:Se?Infinity:-Infinity,optimumCorner:null}).optimumCorner},Qn=function(q,V,ee,$,Se){var Ue=0,tt=0;switch(q.size){case 0:q.shape===0?Ue=tt=Math.min(Math.abs(V),Math.abs(V-$),Math.abs(ee),Math.abs(ee-Se)):q.shape===1&&(Ue=Math.min(Math.abs(V),Math.abs(V-$)),tt=Math.min(Math.abs(ee),Math.abs(ee-Se)));break;case 2:if(q.shape===0)Ue=tt=Math.min(ur(V,ee),ur(V,ee-Se),ur(V-$,ee),ur(V-$,ee-Se));else if(q.shape===1){var vt=Math.min(Math.abs(ee),Math.abs(ee-Se))/Math.min(Math.abs(V),Math.abs(V-$)),pt=Fr($,Se,V,ee,!0),Rt=pt[0],Ft=pt[1];Ue=ur(Rt-V,(Ft-ee)/vt),tt=vt*Ue}break;case 1:q.shape===0?Ue=tt=Math.max(Math.abs(V),Math.abs(V-$),Math.abs(ee),Math.abs(ee-Se)):q.shape===1&&(Ue=Math.max(Math.abs(V),Math.abs(V-$)),tt=Math.max(Math.abs(ee),Math.abs(ee-Se)));break;case 3:if(q.shape===0)Ue=tt=Math.max(ur(V,ee),ur(V,ee-Se),ur(V-$,ee),ur(V-$,ee-Se));else if(q.shape===1){var vt=Math.max(Math.abs(ee),Math.abs(ee-Se))/Math.max(Math.abs(V),Math.abs(V-$)),Jt=Fr($,Se,V,ee,!1),Rt=Jt[0],Ft=Jt[1];Ue=ur(Rt-V,(Ft-ee)/vt),tt=vt*Ue}break}return Array.isArray(q.size)&&(Ue=it(q.size[0],$),tt=q.size.length===2?it(q.size[1],Se):Ue),[Ue,tt]},kr=function(q,V){var ee=Wt(180),$=[];return Ge(V).forEach(function(Se,Ue){if(Ue===0){var tt=Se[0];if(tt.type===20&&tt.value==="to"){ee=On(Se);return}else if(ln(tt)){ee=$t.parse(q,tt);return}}var vt=Fn(q,Se);$.push(vt)}),{angle:ee,stops:$,type:1}},ta=function(q,V){var ee=Wt(180),$=[];return Ge(V).forEach(function(Se,Ue){if(Ue===0){var tt=Se[0];if(tt.type===20&&["top","left","right","bottom"].indexOf(tt.value)!==-1){ee=On(Se);return}else if(ln(tt)){ee=($t.parse(q,tt)+Wt(270))%Wt(360);return}}var vt=Fn(q,Se);$.push(vt)}),{angle:ee,stops:$,type:1}},Wr=function(q,V){var ee=Wt(180),$=[],Se=1,Ue=0,tt=3,vt=[];return Ge(V).forEach(function(pt,Rt){var Ft=pt[0];if(Rt===0){if(Qa(Ft)&&Ft.value==="linear"){Se=1;return}else if(Qa(Ft)&&Ft.value==="radial"){Se=2;return}}if(Ft.type===18){if(Ft.name==="from"){var Jt=qt.parse(q,Ft.values[0]);$.push({stop:Be,color:Jt})}else if(Ft.name==="to"){var Jt=qt.parse(q,Ft.values[0]);$.push({stop:nt,color:Jt})}else if(Ft.name==="color-stop"){var en=Ft.values.filter(ut);if(en.length===2){var Jt=qt.parse(q,en[1]),br=en[0];ms(br)&&$.push({stop:{type:16,number:br.number*100,flags:br.flags},color:Jt})}}}}),Se===1?{angle:(ee+Wt(180))%Wt(360),stops:$,type:Se}:{size:tt,shape:Ue,stops:$,position:vt,type:Se}},yr="closest-side",Dn="farthest-side",ar="closest-corner",Pr="farthest-corner",jn="circle",$n="ellipse",ir="cover",Zn="contain",zn=function(q,V){var ee=0,$=3,Se=[],Ue=[];return Ge(V).forEach(function(tt,vt){var pt=!0;if(vt===0){var Rt=!1;pt=tt.reduce(function(Jt,en){if(Rt)if(Qa(en))switch(en.value){case"center":return Ue.push(at),Jt;case"top":case"left":return Ue.push(Be),Jt;case"right":case"bottom":return Ue.push(nt),Jt}else(Te(en)||Je(en))&&Ue.push(en);else if(Qa(en))switch(en.value){case jn:return ee=0,!1;case $n:return ee=1,!1;case"at":return Rt=!0,!1;case yr:return $=0,!1;case ir:case Dn:return $=1,!1;case Zn:case ar:return $=2,!1;case Pr:return $=3,!1}else if(Je(en)||Te(en))return Array.isArray($)||($=[]),$.push(en),!1;return Jt},pt)}if(pt){var Ft=Fn(q,tt);Se.push(Ft)}}),{size:$,shape:ee,stops:Se,position:Ue,type:2}},fn=function(q,V){var ee=0,$=3,Se=[],Ue=[];return Ge(V).forEach(function(tt,vt){var pt=!0;if(vt===0?pt=tt.reduce(function(Ft,Jt){if(Qa(Jt))switch(Jt.value){case"center":return Ue.push(at),!1;case"top":case"left":return Ue.push(Be),!1;case"right":case"bottom":return Ue.push(nt),!1}else if(Te(Jt)||Je(Jt))return Ue.push(Jt),!1;return Ft},pt):vt===1&&(pt=tt.reduce(function(Ft,Jt){if(Qa(Jt))switch(Jt.value){case jn:return ee=0,!1;case $n:return ee=1,!1;case Zn:case yr:return $=0,!1;case Dn:return $=1,!1;case ar:return $=2,!1;case ir:case Pr:return $=3,!1}else if(Je(Jt)||Te(Jt))return Array.isArray($)||($=[]),$.push(Jt),!1;return Ft},pt)),pt){var Rt=Fn(q,tt);Se.push(Rt)}}),{size:$,shape:ee,stops:Se,position:Ue,type:2}},on=function(q){return q.type===1},Gn=function(q){return q.type===2},Jn={name:"image",parse:function(q,V){if(V.type===22){var ee={url:V.value,type:0};return q.cache.addImage(V.value),ee}if(V.type===18){var $=mr[V.name];if(typeof $=="undefined")throw new Error('Attempting to parse an unsupported image function "'+V.name+'"');return $(q,V.values)}throw new Error("Unsupported image type "+V.type)}};function Sn(q){return!(q.type===20&&q.value==="none")&&(q.type!==18||!!mr[q.name])}var mr={"linear-gradient":kr,"-moz-linear-gradient":ta,"-ms-linear-gradient":ta,"-o-linear-gradient":ta,"-webkit-linear-gradient":ta,"radial-gradient":zn,"-moz-radial-gradient":fn,"-ms-radial-gradient":fn,"-o-radial-gradient":fn,"-webkit-radial-gradient":fn,"-webkit-gradient":Wr},Kr={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(q,V){if(V.length===0)return[];var ee=V[0];return ee.type===20&&ee.value==="none"?[]:V.filter(function($){return ut($)&&Sn($)}).map(function($){return Jn.parse(q,$)})}},Va={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(q,V){return V.map(function(ee){if(Qa(ee))switch(ee.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ra={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(q,V){return Ge(V).map(function(ee){return ee.filter(Te)}).map(Ve)}},aa={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(q,V){return Ge(V).map(function(ee){return ee.filter(Qa).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}},ti;(function(q){q.AUTO="auto",q.CONTAIN="contain",q.COVER="cover"})(ti||(ti={}));var Ka={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(q,V){return Ge(V).map(function(ee){return ee.filter(no)})}},no=function(q){return Qa(q)||Te(q)},ro=function(q){return{name:"border-"+q+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Di=ro("top"),Io=ro("right"),Mo=ro("bottom"),ao=ro("left"),Ii=function(q){return{name:"border-radius-"+q,initialValue:"0 0",prefix:!1,type:1,parse:function(V,ee){return Ve(ee.filter(Te))}}},ki=Ii("top-left"),So=Ii("top-right"),co=Ii("bottom-right"),ho=Ii("bottom-left"),Qi=function(q){return{name:"border-"+q+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(V,ee){switch(ee){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Mi=Qi("top"),Vi=Qi("right"),Ki=Qi("bottom"),go=Qi("left"),Fi=function(q){return{name:"border-"+q+"-width",initialValue:"0",type:0,prefix:!1,parse:function(V,ee){return xo(ee)?ee.number:0}}},yo=Fi("top"),Xa=Fi("right"),io=Fi("bottom"),Lo=Fi("left"),Wi={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ti={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(q,V){switch(V){case"rtl":return 1;case"ltr":default:return 0}}},Ao={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(q,V){return V.filter(Qa).reduce(function(ee,$){return ee|qo($.value)},0)}},qo=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},$o={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(q,V){switch(V){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Go={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(q,V){return V.type===20&&V.value==="normal"?0:V.type===17||V.type===15?V.number:0}},Xi;(function(q){q.NORMAL="normal",q.STRICT="strict"})(Xi||(Xi={}));var es={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(q,V){switch(V){case"strict":return Xi.STRICT;case"normal":default:return Xi.NORMAL}}},yi={name:"line-height",initialValue:"normal",prefix:!1,type:4},Ua=function(q,V){return Qa(q)&&q.value==="normal"?1.2*V:q.type===17?V*q.number:Te(q)?it(q,V):V},li={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(q,V){return V.type===20&&V.value==="none"?null:Jn.parse(q,V)}},Na={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(q,V){switch(V){case"inside":return 0;case"outside":default:return 1}}},Yi={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(q,V){switch(V){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},bo=function(q){return{name:"margin-"+q,initialValue:"0",prefix:!1,type:4}},Li=bo("top"),Vo=bo("right"),Po=bo("bottom"),Xo=bo("left"),Bi={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(q,V){return V.filter(Qa).map(function(ee){switch(ee.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},In={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(q,V){switch(V){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"),ts=Ji("right"),ca=Ji("bottom"),Ur=Ji("left"),ui={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(q,V){switch(V){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},wa={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(q,V){switch(V){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,V){return V.length===1&&_o(V[0],"none")?[]:Ge(V).map(function(ee){for(var $={color:_n.TRANSPARENT,offsetX:Be,offsetY:Be,blur:Be},Se=0,Ue=0;Ue<ee.length;Ue++){var tt=ee[Ue];Je(tt)?(Se===0?$.offsetX=tt:Se===1?$.offsetY=tt:$.blur=tt,Se++):$.color=qt.parse(q,tt)}return $})}},Zi={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(q,V){switch(V){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Eo={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(q,V){if(V.type===20&&V.value==="none")return null;if(V.type===18){var ee=Uo[V.name];if(typeof ee=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+V.name+'"');return ee(V.values)}return null}},oo=function(q){var V=q.filter(function(ee){return ee.type===17}).map(function(ee){return ee.number});return V.length===6?V:null},dn=function(q){var V=q.filter(function(pt){return pt.type===17}).map(function(pt){return pt.number}),ee=V[0],$=V[1];V[2],V[3];var Se=V[4],Ue=V[5];V[6],V[7],V[8],V[9],V[10],V[11];var tt=V[12],vt=V[13];return V[14],V[15],V.length===16?[ee,$,Se,Ue,tt,vt]:null},Uo={matrix:oo,matrix3d:dn},Ss={type:16,number:50,flags:Xr},gs=[Ss,Ss],Za={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(q,V){var ee=V.filter(Te);return ee.length!==2?gs:[ee[0],ee[1]]}},Tn={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(q,V){switch(V){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Lt;(function(q){q.NORMAL="normal",q.BREAK_ALL="break-all",q.KEEP_ALL="keep-all"})(Lt||(Lt={}));for(var Yt={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(q,V){switch(V){case"break-all":return Lt.BREAK_ALL;case"keep-all":return Lt.KEEP_ALL;case"normal":default:return Lt.NORMAL}}},Cn={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(q,V){if(V.type===20)return{auto:!0,order:0};if(ms(V))return{auto:!1,order:V.number};throw new Error("Invalid z-index number parsed")}},Vt={name:"time",parse:function(q,V){if(V.type===15)switch(V.unit.toLowerCase()){case"s":return 1e3*V.number;case"ms":return V.number}throw new Error("Unsupported time type")}},er={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(q,V){return ms(V)?V.number:1}},lr={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},fr={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(q,V){return V.filter(Qa).map(function(ee){switch(ee.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(ee){return ee!==0})}},$r={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(q,V){var ee=[],$=[];return V.forEach(function(Se){switch(Se.type){case 20:case 0:ee.push(Se.value);break;case 17:ee.push(Se.number.toString());break;case 4:$.push(ee.join(" ")),ee.length=0;break}}),ee.length&&$.push(ee.join(" ")),$.map(function(Se){return Se.indexOf(" ")===-1?Se:"'"+Se+"'"})}},mn={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},ni={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(q,V){if(ms(V))return V.number;if(Qa(V))switch(V.value){case"bold":return 700;case"normal":default:return 400}return 400}},Pi={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(q,V){return V.filter(Qa).map(function(ee){return ee.value})}},La={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(q,V){switch(V){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},da=function(q,V){return(q&V)!==0},Oi={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(q,V){if(V.length===0)return[];var ee=V[0];return ee.type===20&&ee.value==="none"?[]:V}},qi={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(q,V){if(V.length===0)return null;var ee=V[0];if(ee.type===20&&ee.value==="none")return null;for(var $=[],Se=V.filter(Hs),Ue=0;Ue<Se.length;Ue++){var tt=Se[Ue],vt=Se[Ue+1];if(tt.type===20){var pt=vt&&ms(vt)?vt.number:1;$.push({counter:tt.value,increment:pt})}}return $}},qa={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(q,V){if(V.length===0)return[];for(var ee=[],$=V.filter(Hs),Se=0;Se<$.length;Se++){var Ue=$[Se],tt=$[Se+1];if(Qa(Ue)&&Ue.value!=="none"){var vt=tt&&ms(tt)?tt.number:0;ee.push({counter:Ue.value,reset:vt})}}return ee}},Ya={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(q,V){return V.filter(xo).map(function(ee){return Vt.parse(q,ee)})}},fi={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(q,V){if(V.length===0)return null;var ee=V[0];if(ee.type===20&&ee.value==="none")return null;var $=[],Se=V.filter(_s);if(Se.length%2!==0)return null;for(var Ue=0;Ue<Se.length;Ue+=2){var tt=Se[Ue].value,vt=Se[Ue+1].value;$.push({open:tt,close:vt})}return $}},ko=function(q,V,ee){if(!q)return"";var $=q[Math.min(V,q.length-1)];return $?ee?$.open:$.close:""},Fo={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(q,V){return V.length===1&&_o(V[0],"none")?[]:Ge(V).map(function(ee){for(var $={color:255,offsetX:Be,offsetY:Be,blur:Be,spread:Be,inset:!1},Se=0,Ue=0;Ue<ee.length;Ue++){var tt=ee[Ue];_o(tt,"inset")?$.inset=!0:Je(tt)?(Se===0?$.offsetX=tt:Se===1?$.offsetY=tt:Se===2?$.blur=tt:$.spread=tt,Se++):$.color=qt.parse(q,tt)}return $})}},No={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(q,V){var ee=[0,1,2],$=[];return V.filter(Qa).forEach(function(Se){switch(Se.value){case"stroke":$.push(1);break;case"fill":$.push(0);break;case"markers":$.push(2);break}}),ee.forEach(function(Se){$.indexOf(Se)===-1&&$.push(Se)}),$}},jo={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Ts={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(q,V){return xo(V)?V.number:0}},hl=function(){function q(V,ee){var $,Se;this.animationDuration=cr(V,Ya,ee.animationDuration),this.backgroundClip=cr(V,tr,ee.backgroundClip),this.backgroundColor=cr(V,cn,ee.backgroundColor),this.backgroundImage=cr(V,Kr,ee.backgroundImage),this.backgroundOrigin=cr(V,Va,ee.backgroundOrigin),this.backgroundPosition=cr(V,Ra,ee.backgroundPosition),this.backgroundRepeat=cr(V,aa,ee.backgroundRepeat),this.backgroundSize=cr(V,Ka,ee.backgroundSize),this.borderTopColor=cr(V,Di,ee.borderTopColor),this.borderRightColor=cr(V,Io,ee.borderRightColor),this.borderBottomColor=cr(V,Mo,ee.borderBottomColor),this.borderLeftColor=cr(V,ao,ee.borderLeftColor),this.borderTopLeftRadius=cr(V,ki,ee.borderTopLeftRadius),this.borderTopRightRadius=cr(V,So,ee.borderTopRightRadius),this.borderBottomRightRadius=cr(V,co,ee.borderBottomRightRadius),this.borderBottomLeftRadius=cr(V,ho,ee.borderBottomLeftRadius),this.borderTopStyle=cr(V,Mi,ee.borderTopStyle),this.borderRightStyle=cr(V,Vi,ee.borderRightStyle),this.borderBottomStyle=cr(V,Ki,ee.borderBottomStyle),this.borderLeftStyle=cr(V,go,ee.borderLeftStyle),this.borderTopWidth=cr(V,yo,ee.borderTopWidth),this.borderRightWidth=cr(V,Xa,ee.borderRightWidth),this.borderBottomWidth=cr(V,io,ee.borderBottomWidth),this.borderLeftWidth=cr(V,Lo,ee.borderLeftWidth),this.boxShadow=cr(V,Fo,ee.boxShadow),this.color=cr(V,Wi,ee.color),this.direction=cr(V,Ti,ee.direction),this.display=cr(V,Ao,ee.display),this.float=cr(V,$o,ee.cssFloat),this.fontFamily=cr(V,$r,ee.fontFamily),this.fontSize=cr(V,mn,ee.fontSize),this.fontStyle=cr(V,La,ee.fontStyle),this.fontVariant=cr(V,Pi,ee.fontVariant),this.fontWeight=cr(V,ni,ee.fontWeight),this.letterSpacing=cr(V,Go,ee.letterSpacing),this.lineBreak=cr(V,es,ee.lineBreak),this.lineHeight=cr(V,yi,ee.lineHeight),this.listStyleImage=cr(V,li,ee.listStyleImage),this.listStylePosition=cr(V,Na,ee.listStylePosition),this.listStyleType=cr(V,Yi,ee.listStyleType),this.marginTop=cr(V,Li,ee.marginTop),this.marginRight=cr(V,Vo,ee.marginRight),this.marginBottom=cr(V,Po,ee.marginBottom),this.marginLeft=cr(V,Xo,ee.marginLeft),this.opacity=cr(V,er,ee.opacity);var Ue=cr(V,Bi,ee.overflow);this.overflowX=Ue[0],this.overflowY=Ue[Ue.length>1?1:0],this.overflowWrap=cr(V,In,ee.overflowWrap),this.paddingTop=cr(V,vs,ee.paddingTop),this.paddingRight=cr(V,ts,ee.paddingRight),this.paddingBottom=cr(V,ca,ee.paddingBottom),this.paddingLeft=cr(V,Ur,ee.paddingLeft),this.paintOrder=cr(V,No,ee.paintOrder),this.position=cr(V,wa,ee.position),this.textAlign=cr(V,ui,ee.textAlign),this.textDecorationColor=cr(V,lr,($=ee.textDecorationColor)!==null&&$!==void 0?$:ee.color),this.textDecorationLine=cr(V,fr,(Se=ee.textDecorationLine)!==null&&Se!==void 0?Se:ee.textDecoration),this.textShadow=cr(V,To,ee.textShadow),this.textTransform=cr(V,Zi,ee.textTransform),this.transform=cr(V,Eo,ee.transform),this.transformOrigin=cr(V,Za,ee.transformOrigin),this.visibility=cr(V,Tn,ee.visibility),this.webkitTextStrokeColor=cr(V,jo,ee.webkitTextStrokeColor),this.webkitTextStrokeWidth=cr(V,Ts,ee.webkitTextStrokeWidth),this.wordBreak=cr(V,Yt,ee.wordBreak),this.zIndex=cr(V,Cn,ee.zIndex)}return q.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},q.prototype.isTransparent=function(){return yn(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 da(this.display,4)||da(this.display,33554432)||da(this.display,268435456)||da(this.display,536870912)||da(this.display,67108864)||da(this.display,134217728)},q}(),Al=function(){function q(V,ee){this.content=cr(V,Oi,ee.content),this.quotes=cr(V,fi,ee.quotes)}return q}(),Qs=function(){function q(V,ee){this.counterIncrement=cr(V,qi,ee.counterIncrement),this.counterReset=cr(V,qa,ee.counterReset)}return q}(),cr=function(q,V,ee){var $=new dl,Se=ee!==null&&typeof ee!="undefined"?ee.toString():V.initialValue;$.write(Se);var Ue=new $s($.read());switch(V.type){case 2:var tt=Ue.parseComponentValue();return V.parse(q,Qa(tt)?tt.value:V.initialValue);case 0:return V.parse(q,Ue.parseComponentValue());case 1:return V.parse(q,Ue.parseComponentValues());case 4:return Ue.parseComponentValue();case 3:switch(V.format){case"angle":return $t.parse(q,Ue.parseComponentValue());case"color":return qt.parse(q,Ue.parseComponentValue());case"image":return Jn.parse(q,Ue.parseComponentValue());case"length":var vt=Ue.parseComponentValue();return Je(vt)?vt:Be;case"length-percentage":var pt=Ue.parseComponentValue();return Te(pt)?pt:Be;case"time":return Vt.parse(q,Ue.parseComponentValue())}break}},ys="data-html2canvas-debug",Ks=function(q){var V=q.getAttribute(ys);switch(V){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Bs=function(q,V){var ee=Ks(q);return ee===1||V===ee},fo=function(){function q(V,ee){if(this.context=V,this.textNodes=[],this.elements=[],this.flags=0,Bs(ee,3))debugger;this.styles=new hl(V,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=m(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 Ni=function(q){var V=q.length*.75,ee=q.length,$,Se=0,Ue,tt,vt,pt;q[q.length-1]==="="&&(V--,q[q.length-2]==="="&&V--);var Rt=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(V):new Array(V),Ft=Array.isArray(Rt)?Rt:new Uint8Array(Rt);for($=0;$<ee;$+=4)Ue=Ms[q.charCodeAt($)],tt=Ms[q.charCodeAt($+1)],vt=Ms[q.charCodeAt($+2)],pt=Ms[q.charCodeAt($+3)],Ft[Se++]=Ue<<2|tt>>4,Ft[Se++]=(tt&15)<<4|vt>>2,Ft[Se++]=(vt&3)<<6|pt&63;return Rt},zs=function(q){for(var V=q.length,ee=[],$=0;$<V;$+=2)ee.push(q[$+1]<<8|q[$]);return ee},ds=function(q){for(var V=q.length,ee=[],$=0;$<V;$+=4)ee.push(q[$+3]<<24|q[$+2]<<16|q[$+1]<<8|q[$]);return ee},Ho=5,Ls=6+5,Qo=2,Zr=Ls-Ho,Rr=65536>>Ho,Ta=1<<Ho,Or=Ta-1,Wn=1024>>Ho,Pn=Rr+Wn,wn=Pn,nr=2048>>6,Bn=wn+nr,_r=65536>>Ls,Mr=1<<Zr,jr=Mr-1,Pa=function(q,V,ee){return q.slice?q.slice(V,ee):new Uint16Array(Array.prototype.slice.call(q,V,ee))},Ja=function(q,V,ee){return q.slice?q.slice(V,ee):new Uint32Array(Array.prototype.slice.call(q,V,ee))},bi=function(q,V){var ee=Ni(q),$=Array.isArray(ee)?ds(ee):new Uint32Array(ee),Se=Array.isArray(ee)?zs(ee):new Uint16Array(ee),Ue=24,tt=Pa(Se,Ue/2,$[4]/2),vt=$[5]===2?Pa(Se,(Ue+$[4])/2):Ja($,Math.ceil((Ue+$[4])/4));return new pi($[0],$[1],$[2],$[3],tt,vt)},pi=function(){function q(V,ee,$,Se,Ue,tt){this.initialValue=V,this.errorValue=ee,this.highStart=$,this.highValueIndex=Se,this.index=Ue,this.data=tt}return q.prototype.get=function(V){var ee;if(V>=0){if(V<55296||V>56319&&V<=65535)return ee=this.index[V>>Ho],ee=(ee<<Qo)+(V&Or),this.data[ee];if(V<=65535)return ee=this.index[Rr+(V-55296>>Ho)],ee=(ee<<Qo)+(V&Or),this.data[ee];if(V<this.highStart)return ee=Bn-_r+(V>>Ls),ee=this.index[ee],ee+=V>>Ho&jr,ee=this.index[ee],ee=(ee<<Qo)+(V&Or),this.data[ee];if(V<=1114111)return this.data[this.highValueIndex]}return this.errorValue},q}(),Ei="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ko=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),po=0;po<Ei.length;po++)Ko[Ei.charCodeAt(po)]=po;var Cs=1,el=2,ns=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 V=[],ee=0,$=q.length;ee<$;){var Se=q.charCodeAt(ee++);if(Se>=55296&&Se<=56319&&ee<$){var Ue=q.charCodeAt(ee++);(Ue&64512)===56320?V.push(((Se&1023)<<10)+(Ue&1023)+65536):(V.push(Se),ee--)}else V.push(Se)}return V},gu=function(){for(var q=[],V=0;V<arguments.length;V++)q[V]=arguments[V];if(String.fromCodePoint)return String.fromCodePoint.apply(String,q);var ee=q.length;if(!ee)return"";for(var $=[],Se=-1,Ue="";++Se<ee;){var tt=q[Se];tt<=65535?$.push(tt):(tt-=65536,$.push((tt>>10)+55296,tt%1024+56320)),(Se+1===ee||$.length>16384)&&(Ue+=String.fromCharCode.apply(String,$),$.length=0)}return Ue},yu=bi(bs),rs="\xD7",nu="\xF7",zu=function(q){return yu.get(q)},Gu=function(q,V,ee){var $=ee-2,Se=V[$],Ue=V[ee-1],tt=V[ee];if(Ue===el&&tt===ns)return rs;if(Ue===el||Ue===ns||Ue===hs)return nu;if(tt===el||tt===ns||tt===hs)return nu;if(Ue===Zl&&[Zl,ql,mu,Bo].indexOf(tt)!==-1)return rs;if((Ue===mu||Ue===ql)&&(tt===ql||tt===$l))return rs;if((Ue===Bo||Ue===$l)&&tt===$l)return rs;if(tt===eu||tt===tl)return rs;if(tt===nl)return rs;if(Ue===Cs)return rs;if(Ue===eu&&tt===vu){for(;Se===tl;)Se=V[--$];if(Se===vu)return rs}if(Ue===tu&&tt===tu){for(var vt=0;Se===tu;)vt++,Se=V[--$];if(vt%2===0)return rs}return nu},Gs=function(q){var V=Wu(q),ee=V.length,$=0,Se=0,Ue=V.map(zu);return{next:function(){if($>=ee)return{done:!0,value:null};for(var tt=rs;$<ee&&(tt=Gu(V,Ue,++$))===rs;);if(tt!==rs||$===ee){var vt=gu.apply(null,V.slice(Se,$));return Se=$,{value:vt,done:!1}}return{done:!0,value:null}}}},Cl=function(q){for(var V=Gs(q),ee=[],$;!($=V.next()).done;)$.value&&ee.push($.value.slice());return ee},kl=function(q){var V=123;if(q.createRange){var ee=q.createRange();if(ee.getBoundingClientRect){var $=q.createElement("boundtest");$.style.height=V+"px",$.style.display="block",q.body.appendChild($),ee.selectNode($);var Se=ee.getBoundingClientRect(),Ue=Math.round(Se.height);if(q.body.removeChild($),Ue===V)return!0}}return!1},wl=function(q){var V=q.createElement("boundtest");V.style.width="50px",V.style.display="block",V.style.fontSize="12px",V.style.letterSpacing="0px",V.style.wordSpacing="0px",q.body.appendChild(V);var ee=q.createRange();V.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var $=V.firstChild,Se=r($.data).map(function(pt){return n(pt)}),Ue=0,tt={},vt=Se.every(function(pt,Rt){ee.setStart($,Ue),ee.setEnd($,Ue+pt.length);var Ft=ee.getBoundingClientRect();Ue+=pt.length;var Jt=Ft.x>tt.x||Ft.y>tt.y;return tt=Ft,Rt===0?!0:Jt});return q.body.removeChild(V),vt},Ps=function(){return typeof new Image().crossOrigin!="undefined"},Vu=function(){return typeof new XMLHttpRequest().responseType=="string"},Xu=function(q){var V=new Image,ee=q.createElement("canvas"),$=ee.getContext("2d");if(!$)return!1;V.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{$.drawImage(V,0,0),ee.toDataURL()}catch(Se){return!1}return!0},rl=function(q){return q[0]===0&&q[1]===255&&q[2]===0&&q[3]===255},bu=function(q){var V=q.createElement("canvas"),ee=100;V.width=ee,V.height=ee;var $=V.getContext("2d");if(!$)return Promise.reject(!1);$.fillStyle="rgb(0, 255, 0)",$.fillRect(0,0,ee,ee);var Se=new Image,Ue=V.toDataURL();Se.src=Ue;var tt=Fl(ee,ee,0,0,Se);return $.fillStyle="red",$.fillRect(0,0,ee,ee),ru(tt).then(function(vt){$.drawImage(vt,0,0);var pt=$.getImageData(0,0,ee,ee).data;$.fillStyle="red",$.fillRect(0,0,ee,ee);var Rt=q.createElement("div");return Rt.style.backgroundImage="url("+Ue+")",Rt.style.height=ee+"px",rl(pt)?ru(Fl(ee,ee,0,0,Rt)):Promise.reject(!1)}).then(function(vt){return $.drawImage(vt,0,0),rl($.getImageData(0,0,ee,ee).data)}).catch(function(){return!1})},Fl=function(q,V,ee,$,Se){var Ue="http://www.w3.org/2000/svg",tt=document.createElementNS(Ue,"svg"),vt=document.createElementNS(Ue,"foreignObject");return tt.setAttributeNS(null,"width",q.toString()),tt.setAttributeNS(null,"height",V.toString()),vt.setAttributeNS(null,"width","100%"),vt.setAttributeNS(null,"height","100%"),vt.setAttributeNS(null,"x",ee.toString()),vt.setAttributeNS(null,"y",$.toString()),vt.setAttributeNS(null,"externalResourcesRequired","true"),tt.appendChild(vt),vt.appendChild(Se),tt},ru=function(q){return new Promise(function(V,ee){var $=new Image;$.onload=function(){return V($)},$.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(V,ee){this.text=V,this.bounds=ee}return q}(),au=function(q,V,ee,$){var Se=Eu(V,ee),Ue=[],tt=0;return Se.forEach(function(vt){if(ee.textDecorationLine.length||vt.trim().length>0)if($i.SUPPORT_RANGE_BOUNDS){var pt=Nl($,tt,vt.length).getClientRects();if(pt.length>1){var Rt=ou(vt),Ft=0;Rt.forEach(function(en){Ue.push(new Os(en,C.fromDOMRectList(q,Nl($,Ft+tt,en.length).getClientRects()))),Ft+=en.length})}else Ue.push(new Os(vt,C.fromDOMRectList(q,pt)))}else{var Jt=$.splitText(vt.length);Ue.push(new Os(vt,iu(q,$))),$=Jt}else $i.SUPPORT_RANGE_BOUNDS||($=$.splitText(vt.length));tt+=vt.length}),Ue},iu=function(q,V){var ee=V.ownerDocument;if(ee){var $=ee.createElement("html2canvaswrapper");$.appendChild(V.cloneNode(!0));var Se=V.parentNode;if(Se){Se.replaceChild($,V);var Ue=m(q,$);return $.firstChild&&Se.replaceChild($.firstChild,$),Ue}}return C.EMPTY},Nl=function(q,V,ee){var $=q.ownerDocument;if(!$)throw new Error("Node has no owner document");var Se=$.createRange();return Se.setStart(q,V),Se.setEnd(q,V+ee),Se},ou=function(q){if($i.SUPPORT_NATIVE_TEXT_SEGMENTATION){var V=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(V.segment(q)).map(function(ee){return ee.segment})}return Cl(q)},xl=function(q,V){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,V)},Eu=function(q,V){return V.letterSpacing!==0?ou(q):xl(q,V)},Yu=[32,160,4961,65792,65793,4153,4241],Cu=function(q,V){for(var ee=En(q,{lineBreak:V.lineBreak,wordBreak:V.overflowWrap==="break-word"?"break-word":V.wordBreak}),$=[],Se,Ue=function(){if(Se.value){var tt=Se.value.slice(),vt=r(tt),pt="";vt.forEach(function(Rt){Yu.indexOf(Rt)===-1?pt+=n(Rt):(pt.length&&$.push(pt),$.push(n(Rt)),pt="")}),pt.length&&$.push(pt)}};!(Se=ee.next()).done;)Ue();return $},jl=function(){function q(V,ee,$){this.text=Ju(ee.data,$.textTransform),this.textBounds=au(V,this.text,$,ee)}return q}(),Ju=function(q,V){switch(V){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,V,ee){return q.length>0?V+ee.toUpperCase():q},su=function(q){Y(V,q);function V(ee,$){var Se=q.call(this,ee,$)||this;return Se.src=$.currentSrc||$.src,Se.intrinsicWidth=$.naturalWidth,Se.intrinsicHeight=$.naturalHeight,Se.context.cache.addImage(Se.src),Se}return V}(fo),lu=function(q){Y(V,q);function V(ee,$){var Se=q.call(this,ee,$)||this;return Se.canvas=$,Se.intrinsicWidth=$.width,Se.intrinsicHeight=$.height,Se}return V}(fo),wu=function(q){Y(V,q);function V(ee,$){var Se=q.call(this,ee,$)||this,Ue=new XMLSerializer,tt=m(ee,$);return $.setAttribute("width",tt.width+"px"),$.setAttribute("height",tt.height+"px"),Se.svg="data:image/svg+xml,"+encodeURIComponent(Ue.serializeToString($)),Se.intrinsicWidth=$.width.baseVal.value,Se.intrinsicHeight=$.height.baseVal.value,Se.context.cache.addImage(Se.svg),Se}return V}(fo),Hl=function(q){Y(V,q);function V(ee,$){var Se=q.call(this,ee,$)||this;return Se.value=$.value,Se}return V}(fo),Ql=function(q){Y(V,q);function V(ee,$){var Se=q.call(this,ee,$)||this;return Se.start=$.start,Se.reversed=typeof $.reversed=="boolean"&&$.reversed===!0,Se}return V}(fo),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 C(q.left+(q.width-q.height)/2,q.top,q.height,q.height):q.width<q.height?new C(q.left,q.top+(q.height-q.width)/2,q.width,q.width):q},$u=function(q){var V=q.type===Sl?new Array(q.value.length+1).join("\u2022"):q.value;return V.length===0?q.placeholder||"":V},fl="checkbox",Vs="radio",Sl="password",Su=707406591,Kl=function(q){Y(V,q);function V(ee,$){var Se=q.call(this,ee,$)||this;Se.type=$.type.toLowerCase(),Se.checked=$.checked,Se.value=$u($),(Se.type===fl||Se.type===Vs)&&(Se.styles.backgroundColor=3739148031,Se.styles.borderTopColor=Se.styles.borderRightColor=Se.styles.borderBottomColor=Se.styles.borderLeftColor=2779096575,Se.styles.borderTopWidth=Se.styles.borderRightWidth=Se.styles.borderBottomWidth=Se.styles.borderLeftWidth=1,Se.styles.borderTopStyle=Se.styles.borderRightStyle=Se.styles.borderBottomStyle=Se.styles.borderLeftStyle=1,Se.styles.backgroundClip=[0],Se.styles.backgroundOrigin=[0],Se.bounds=_u(Se.bounds));switch(Se.type){case fl:Se.styles.borderTopRightRadius=Se.styles.borderTopLeftRadius=Se.styles.borderBottomRightRadius=Se.styles.borderBottomLeftRadius=qu;break;case Vs:Se.styles.borderTopRightRadius=Se.styles.borderTopLeftRadius=Se.styles.borderBottomRightRadius=Se.styles.borderBottomLeftRadius=xu;break}return Se}return V}(fo),Tu=function(q){Y(V,q);function V(ee,$){var Se=q.call(this,ee,$)||this,Ue=$.options[$.selectedIndex||0];return Se.value=Ue&&Ue.text||"",Se}return V}(fo),Bu=function(q){Y(V,q);function V(ee,$){var Se=q.call(this,ee,$)||this;return Se.value=$.value,Se}return V}(fo),Ou=function(q){Y(V,q);function V(ee,$){var Se=q.call(this,ee,$)||this;Se.src=$.src,Se.width=parseInt($.width,10)||0,Se.height=parseInt($.height,10)||0,Se.backgroundColor=Se.styles.backgroundColor;try{if($.contentWindow&&$.contentWindow.document&&$.contentWindow.document.documentElement){Se.tree=Ru(ee,$.contentWindow.document.documentElement);var Ue=$.contentWindow.document.documentElement?An(ee,getComputedStyle($.contentWindow.document.documentElement).backgroundColor):_n.TRANSPARENT,tt=$.contentWindow.document.body?An(ee,getComputedStyle($.contentWindow.document.body).backgroundColor):_n.TRANSPARENT;Se.backgroundColor=yn(Ue)?yn(tt)?Se.styles.backgroundColor:tt:Ue}}catch(vt){}return Se}return V}(fo),ec=["OL","UL","MENU"],Tl=function(q,V,ee,$){for(var Se=V.firstChild,Ue=void 0;Se;Se=Ue)if(Ue=Se.nextSibling,cu(Se)&&Se.data.trim().length>0)ee.textNodes.push(new jl(q,Se,ee.styles));else if(pl(Se))if(hu(Se)&&Se.assignedNodes)Se.assignedNodes().forEach(function(vt){return Tl(q,vt,ee,$)});else{var tt=Du(q,Se);tt.styles.isVisible()&&(Iu(Se,tt,$)?tt.flags|=4:uu(tt.styles)&&(tt.flags|=2),ec.indexOf(Se.tagName)!==-1&&(tt.flags|=8),ee.elements.push(tt),Se.slot,Se.shadowRoot?Tl(q,Se.shadowRoot,tt,$):!Ol(Se)&&!Lu(Se)&&!Dl(Se)&&Tl(q,Se,tt,$))}},Du=function(q,V){return al(V)?new su(q,V):Pu(V)?new lu(q,V):Lu(V)?new wu(q,V):Mu(V)?new Hl(q,V):zl(V)?new Ql(q,V):tc(V)?new Kl(q,V):Dl(V)?new Tu(q,V):Ol(V)?new Bu(q,V):As(V)?new Ou(q,V):new fo(q,V)},Ru=function(q,V){var ee=Du(q,V);return ee.flags|=4,Tl(q,V,ee,ee),ee},Iu=function(q,V,ee){return V.styles.isPositionedWithZIndex()||V.styles.opacity<1||V.styles.isTransformed()||mi(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"},mi=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"},As=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"},Au=function(q){return q.tagName.indexOf("-")>0},Uu=function(){function q(){this.counters={}}return q.prototype.getCounterValue=function(V){var ee=this.counters[V];return ee&&ee.length?ee[ee.length-1]:1},q.prototype.getCounterValues=function(V){var ee=this.counters[V];return ee||[]},q.prototype.pop=function(V){var ee=this;V.forEach(function($){return ee.counters[$].pop()})},q.prototype.parse=function(V){var ee=this,$=V.counterIncrement,Se=V.counterReset,Ue=!0;$!==null&&$.forEach(function(vt){var pt=ee.counters[vt.counter];pt&&vt.increment!==0&&(Ue=!1,pt.length||pt.push(1),pt[Math.max(0,pt.length-1)]+=vt.increment)});var tt=[];return Ue&&Se.forEach(function(vt){var pt=ee.counters[vt.counter];tt.push(vt.counter),pt||(pt=ee.counters[vt.counter]=[]),pt.push(vt.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"]},$a={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,V,ee,$,Se,Ue){return q<V||q>ee?L(q,Se,Ue.length>0):$.integers.reduce(function(tt,vt,pt){for(;q>=vt;)q-=vt,tt+=$.values[pt];return tt},"")+Ue},Nu=function(q,V,ee,$){var Se="";do ee||q--,Se=$(q)+Se,q/=V;while(q*V>=V);return Se},Ci=function(q,V,ee,$,Se){var Ue=ee-V+1;return(q<0?"-":"")+(Nu(Math.abs(q),Ue,$,function(tt){return n(Math.floor(tt%Ue)+V)})+Se)},ol=function(q,V,ee){ee===void 0&&(ee=". ");var $=V.length;return Nu(Math.abs(q),$,!1,function(Se){return V[Math.floor(Se%$)]})+ee},ks=1<<0,Xs=1<<1,ri=1<<2,Rl=1<<3,Fs=function(q,V,ee,$,Se,Ue){if(q<-9999||q>9999)return L(q,4,Se.length>0);var tt=Math.abs(q),vt=Se;if(tt===0)return V[0]+vt;for(var pt=0;tt>0&&pt<=4;pt++){var Rt=tt%10;Rt===0&&da(Ue,ks)&&vt!==""?vt=V[Rt]+vt:Rt>1||Rt===1&&pt===0||Rt===1&&pt===1&&da(Ue,Xs)||Rt===1&&pt===1&&da(Ue,ri)&&q>100||Rt===1&&pt>1&&da(Ue,Rl)?vt=V[Rt]+(pt>0?ee[pt-1]:"")+vt:Rt===1&&pt>0&&(vt=ee[pt-1]+vt),tt=Math.floor(tt/10)}return(q<0?$:"")+vt},ju="\u5341\u767E\u5343\u842C",Il="\u62FE\u4F70\u4EDF\u842C",t="\u30DE\u30A4\u30CA\u30B9",v="\uB9C8\uC774\uB108\uC2A4",L=function(q,V,ee){var $=ee?". ":"",Se=ee?"\u3001":"",Ue=ee?", ":"",tt=ee?" ":"";switch(V){case 0:return"\u2022"+tt;case 1:return"\u25E6"+tt;case 2:return"\u25FE"+tt;case 5:var vt=Ci(q,48,57,!0,$);return vt.length<4?"0"+vt:vt;case 4:return ol(q,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Se);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",Se);case 16:return ol(q,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",Se);case 17:case 48:return Fs(q,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",ju,"\u8CA0",Se,Xs|ri|Rl);case 47:return Fs(q,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",Il,"\u8CA0",Se,ks|Xs|ri|Rl);case 42:return Fs(q,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",ju,"\u8D1F",Se,Xs|ri|Rl);case 41:return Fs(q,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",Il,"\u8D1F",Se,ks|Xs|ri|Rl);case 26:return Fs(q,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",t,Se,0);case 25:return Fs(q,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",t,Se,ks|Xs|ri);case 31:return Fs(q,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",v,Ue,ks|Xs|ri);case 33:return Fs(q,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",v,Ue,0);case 32:return Fs(q,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",v,Ue,ks|Xs|ri);case 18:return Ci(q,2406,2415,!0,$);case 20:return il(q,1,19999,$a,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",Se);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",Se);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,$)}},I="data-html2canvas-ignore",j=function(){function q(V,ee,$){if(this.context=V,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(V,ee){var $=this,Se=xe(V,ee);if(!Se.contentWindow)return Promise.reject("Unable to find iframe window");var Ue=V.defaultView.pageXOffset,tt=V.defaultView.pageYOffset,vt=Se.contentWindow,pt=vt.document,Rt=He(Se).then(function(){return y($,void 0,void 0,function(){var Ft,Jt;return E(this,function(en){switch(en.label){case 0:return this.scrolledElements.forEach(an),vt&&(vt.scrollTo(ee.left,ee.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(vt.scrollY!==ee.top||vt.scrollX!==ee.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(vt.scrollX-ee.left,vt.scrollY-ee.top,0,0))),Ft=this.options.onclone,Jt=this.clonedReferenceElement,typeof Jt=="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:en.sent(),en.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Me(pt)]:[3,4];case 3:en.sent(),en.label=4;case 4:return typeof Ft=="function"?[2,Promise.resolve().then(function(){return Ft(pt,Jt)}).then(function(){return Se})]:[2,Se]}})})});return pt.open(),pt.write(kt(document.doctype)+"<html></html>"),Pt(this.referenceElement.ownerDocument,Ue,tt),pt.replaceChild(pt.adoptNode(this.documentElement),pt.documentElement),pt.close(),Rt},q.prototype.createElementClone=function(V){if(Bs(V,2))debugger;if(Pu(V))return this.createCanvasClone(V);if(Gl(V))return this.createVideoClone(V);if(Bl(V))return this.createStyleClone(V);var ee=V.cloneNode(!1);return al(ee)&&(al(V)&&V.currentSrc&&V.currentSrc!==V.src&&(ee.src=V.currentSrc,ee.srcset=""),ee.loading==="lazy"&&(ee.loading="eager")),Au(ee)?this.createCustomElementClone(ee):ee},q.prototype.createCustomElementClone=function(V){var ee=document.createElement("html2canvascustomelement");return wt(V.style,ee),ee},q.prototype.createStyleClone=function(V){try{var ee=V.sheet;if(ee&&ee.cssRules){var $=[].slice.call(ee.cssRules,0).reduce(function(Ue,tt){return tt&&typeof tt.cssText=="string"?Ue+tt.cssText:Ue},""),Se=V.cloneNode(!1);return Se.textContent=$,Se}}catch(Ue){if(this.context.logger.error("Unable to access cssRules property",Ue),Ue.name!=="SecurityError")throw Ue}return V.cloneNode(!1)},q.prototype.createCanvasClone=function(V){var ee;if(this.options.inlineImages&&V.ownerDocument){var $=V.ownerDocument.createElement("img");try{return $.src=V.toDataURL(),$}catch(Rt){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",V)}}var Se=V.cloneNode(!1);try{Se.width=V.width,Se.height=V.height;var Ue=V.getContext("2d"),tt=Se.getContext("2d");if(tt)if(!this.options.allowTaint&&Ue)tt.putImageData(Ue.getImageData(0,0,V.width,V.height),0,0);else{var vt=(ee=V.getContext("webgl2"))!==null&&ee!==void 0?ee:V.getContext("webgl");if(vt){var pt=vt.getContextAttributes();(pt==null?void 0:pt.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",V)}tt.drawImage(V,0,0)}return Se}catch(Rt){this.context.logger.info("Unable to clone canvas as it is tainted",V)}return Se},q.prototype.createVideoClone=function(V){var ee=V.ownerDocument.createElement("canvas");ee.width=V.offsetWidth,ee.height=V.offsetHeight;var $=ee.getContext("2d");try{return $&&($.drawImage(V,0,0,ee.width,ee.height),this.options.allowTaint||$.getImageData(0,0,ee.width,ee.height)),ee}catch(Ue){this.context.logger.info("Unable to clone video as it is tainted",V)}var Se=V.ownerDocument.createElement("canvas");return Se.width=V.offsetWidth,Se.height=V.offsetHeight,Se},q.prototype.appendChildNode=function(V,ee,$){(!pl(ee)||!du(ee)&&!ee.hasAttribute(I)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(ee)))&&((!this.options.copyStyles||!pl(ee)||!Bl(ee))&&V.appendChild(this.cloneNode(ee,$)))},q.prototype.cloneChildNodes=function(V,ee,$){for(var Se=this,Ue=V.shadowRoot?V.shadowRoot.firstChild:V.firstChild;Ue;Ue=Ue.nextSibling)if(pl(Ue)&&hu(Ue)&&typeof Ue.assignedNodes=="function"){var tt=Ue.assignedNodes();tt.length&&tt.forEach(function(vt){return Se.appendChildNode(ee,vt,$)})}else this.appendChildNode(ee,Ue,$)},q.prototype.cloneNode=function(V,ee){if(cu(V))return document.createTextNode(V.data);if(!V.ownerDocument)return V.cloneNode(!1);var $=V.ownerDocument.defaultView;if($&&pl(V)&&(Wl(V)||Us(V))){var Se=this.createElementClone(V);Se.style.transitionProperty="none";var Ue=$.getComputedStyle(V),tt=$.getComputedStyle(V,":before"),vt=$.getComputedStyle(V,":after");this.referenceElement===V&&Wl(Se)&&(this.clonedReferenceElement=Se),mi(Se)&&pr(Se);var pt=this.counters.parse(new Qs(this.context,Ue)),Rt=this.resolvePseudoContent(V,Se,tt,ae.BEFORE);Au(V)&&(ee=!0),Gl(V)||this.cloneChildNodes(V,Se,ee),Rt&&Se.insertBefore(Rt,Se.firstChild);var Ft=this.resolvePseudoContent(V,Se,vt,ae.AFTER);return Ft&&Se.appendChild(Ft),this.counters.pop(pt),(Ue&&(this.options.copyStyles||Us(V))&&!As(V)||ee)&&wt(Ue,Se),(V.scrollTop!==0||V.scrollLeft!==0)&&this.scrolledElements.push([Se,V.scrollLeft,V.scrollTop]),(Ol(V)||Dl(V))&&(Ol(Se)||Dl(Se))&&(Se.value=V.value),Se}return V.cloneNode(!1)},q.prototype.resolvePseudoContent=function(V,ee,$,Se){var Ue=this;if(!$)return;var tt=$.content,vt=ee.ownerDocument;if(!vt||!tt||tt==="none"||tt==="-moz-alt-content"||$.display==="none")return;this.counters.parse(new Qs(this.context,$));var pt=new Al(this.context,$),Rt=vt.createElement("html2canvaspseudoelement");wt($,Rt),pt.content.forEach(function(Jt){if(Jt.type===0)Rt.appendChild(vt.createTextNode(Jt.value));else if(Jt.type===22){var en=vt.createElement("img");en.src=Jt.value,en.style.opacity="1",Rt.appendChild(en)}else if(Jt.type===18){if(Jt.name==="attr"){var br=Jt.values.filter(Qa);br.length&&Rt.appendChild(vt.createTextNode(V.getAttribute(br[0].value)||""))}else if(Jt.name==="counter"){var Nn=Jt.values.filter(ut),dr=Nn[0],ea=Nn[1];if(dr&&Qa(dr)){var vr=Ue.counters.getCounterValue(dr.value),wr=ea&&Qa(ea)?Yi.parse(Ue.context,ea.value):3;Rt.appendChild(vt.createTextNode(L(vr,wr,!1)))}}else if(Jt.name==="counters"){var Wa=Jt.values.filter(ut),dr=Wa[0],Ea=Wa[1],ea=Wa[2];if(dr&&Qa(dr)){var ai=Ue.counters.getCounterValues(dr.value),Er=ea&&Qa(ea)?Yi.parse(Ue.context,ea.value):3,ei=Ea&&Ea.type===0?Ea.value:"",ii=ai.map(function(is){return L(is,Er,!1)}).join(ei);Rt.appendChild(vt.createTextNode(ii))}}}else if(Jt.type===20)switch(Jt.value){case"open-quote":Rt.appendChild(vt.createTextNode(ko(pt.quotes,Ue.quoteDepth++,!0)));break;case"close-quote":Rt.appendChild(vt.createTextNode(ko(pt.quotes,--Ue.quoteDepth,!1)));break;default:Rt.appendChild(vt.createTextNode(Jt.value))}}),Rt.className=Vn+" "+or;var Ft=Se===ae.BEFORE?" "+Vn:" "+or;return Us(ee)?ee.className.baseValue+=Ft:ee.className+=Ft,Rt},q.destroy=function(V){return V.parentNode?(V.parentNode.removeChild(V),!0):!1},q}(),ae;(function(q){q[q.BEFORE=0]="BEFORE",q[q.AFTER=1]="AFTER"})(ae||(ae={}));var xe=function(q,V){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=V.width.toString(),ee.height=V.height.toString(),ee.scrolling="no",ee.setAttribute(I,"true"),q.body.appendChild(ee),ee},Oe=function(q){return new Promise(function(V){if(q.complete){V();return}if(!q.src){V();return}q.onload=V,q.onerror=V})},Me=function(q){return Promise.all([].slice.call(q.images,0).map(Oe))},He=function(q){return new Promise(function(V,ee){var $=q.contentWindow;if(!$)return ee("No window assigned for iframe");var Se=$.document;$.onload=q.onload=function(){$.onload=q.onload=null;var Ue=setInterval(function(){Se.body.childNodes.length>0&&Se.readyState==="complete"&&(clearInterval(Ue),V(q))},50)}})},gt=["all","d","content"],wt=function(q,V){for(var ee=q.length-1;ee>=0;ee--){var $=q.item(ee);gt.indexOf($)===-1&&V.style.setProperty($,q.getPropertyValue($))}return V},kt=function(q){var V="";return q&&(V+="<!DOCTYPE ",q.name&&(V+=q.name),q.internalSubset&&(V+=q.internalSubset),q.publicId&&(V+='"'+q.publicId+'"'),q.systemId&&(V+='"'+q.systemId+'"'),V+=">"),V},Pt=function(q,V,ee){q&&q.defaultView&&(V!==q.defaultView.pageXOffset||ee!==q.defaultView.pageYOffset)&&q.defaultView.scrollTo(V,ee)},an=function(q){var V=q[0],ee=q[1],$=q[2];V.scrollLeft=ee,V.scrollTop=$},gn=":before",Mn=":after",Vn="___html2canvas___pseudoelement_before",or="___html2canvas___pseudoelement_after",Yn=`{
content: "" !important;
display: none !important;
}`,pr=function(q){Hr(q,"."+Vn+gn+Yn+`
.`+or+Mn+Yn)},Hr=function(q,V){var ee=q.ownerDocument;if(ee){var $=ee.createElement("style");$.textContent=V,q.appendChild($)}},Lr=function(){function q(){}return q.getOrigin=function(V){var ee=q._link;return ee?(ee.href=V,ee.href=ee.href,ee.protocol+ee.hostname+ee.port):"about:blank"},q.isSameOrigin=function(V){return q.getOrigin(V)===q._origin},q.setContext=function(V){q._link=V.document.createElement("a"),q._origin=q.getOrigin(V.location.href)},q._origin="about:blank",q}(),pa=function(){function q(V,ee){this.context=V,this._options=ee,this._cache={}}return q.prototype.addImage=function(V){var ee=Promise.resolve();return this.has(V)||(wo(V)||Yo(V))&&(this._cache[V]=this.loadImage(V)).catch(function(){}),ee},q.prototype.match=function(V){return this._cache[V]},q.prototype.loadImage=function(V){return y(this,void 0,void 0,function(){var ee,$,Se,Ue,tt=this;return E(this,function(vt){switch(vt.label){case 0:return ee=Lr.isSameOrigin(V),$=!Co(V)&&this._options.useCORS===!0&&$i.SUPPORT_CORS_IMAGES&&!ee,Se=!Co(V)&&!ee&&!wo(V)&&typeof this._options.proxy=="string"&&$i.SUPPORT_CORS_XHR&&!$,!ee&&this._options.allowTaint===!1&&!Co(V)&&!wo(V)&&!Se&&!$?[2]:(Ue=V,Se?[4,this.proxy(Ue)]:[3,2]);case 1:Ue=vt.sent(),vt.label=2;case 2:return this.context.logger.debug("Added image "+V.substring(0,256)),[4,new Promise(function(pt,Rt){var Ft=new Image;Ft.onload=function(){return pt(Ft)},Ft.onerror=Rt,(zi(Ue)||$)&&(Ft.crossOrigin="anonymous"),Ft.src=Ue,Ft.complete===!0&&setTimeout(function(){return pt(Ft)},500),tt._options.imageTimeout>0&&setTimeout(function(){return Rt("Timed out ("+tt._options.imageTimeout+"ms) loading image")},tt._options.imageTimeout)})];case 3:return[2,vt.sent()]}})})},q.prototype.has=function(V){return typeof this._cache[V]!="undefined"},q.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},q.prototype.proxy=function(V){var ee=this,$=this._options.proxy;if(!$)throw new Error("No proxy defined");var Se=V.substring(0,256);return new Promise(function(Ue,tt){var vt=$i.SUPPORT_RESPONSE_TYPE?"blob":"text",pt=new XMLHttpRequest;pt.onload=function(){if(pt.status===200)if(vt==="text")Ue(pt.response);else{var Jt=new FileReader;Jt.addEventListener("load",function(){return Ue(Jt.result)},!1),Jt.addEventListener("error",function(en){return tt(en)},!1),Jt.readAsDataURL(pt.response)}else tt("Failed to proxy resource "+Se+" with status code "+pt.status)},pt.onerror=tt;var Rt=$.indexOf("?")>-1?"&":"?";if(pt.open("GET",""+$+Rt+"url="+encodeURIComponent(V)+"&responseType="+vt),vt!=="text"&&pt instanceof XMLHttpRequest&&(pt.responseType=vt),ee._options.imageTimeout){var Ft=ee._options.imageTimeout;pt.timeout=Ft,pt.ontimeout=function(){return tt("Timed out ("+Ft+"ms) proxying "+Se)}}pt.send()})},q}(),ci=/^data:image\/svg\+xml/i,so=/^data:image\/.*;base64,/i,Ri=/^data:image\/.*/i,Yo=function(q){return $i.SUPPORT_SVG_DRAWING||!mo(q)},Co=function(q){return Ri.test(q)},zi=function(q){return so.test(q)},wo=function(q){return q.substr(0,4)==="blob"},mo=function(q){return q.substr(-3).toLowerCase()==="svg"||ci.test(q)},Hn=function(){function q(V,ee){this.type=0,this.x=V,this.y=ee}return q.prototype.add=function(V,ee){return new q(this.x+V,this.y+ee)},q}(),wi=function(q,V,ee){return new Hn(q.x+(V.x-q.x)*ee,q.y+(V.y-q.y)*ee)},xi=function(){function q(V,ee,$,Se){this.type=1,this.start=V,this.startControl=ee,this.endControl=$,this.end=Se}return q.prototype.subdivide=function(V,ee){var $=wi(this.start,this.startControl,V),Se=wi(this.startControl,this.endControl,V),Ue=wi(this.endControl,this.end,V),tt=wi($,Se,V),vt=wi(Se,Ue,V),pt=wi(tt,vt,V);return ee?new q(this.start,$,tt,pt):new q(pt,vt,Ue,this.end)},q.prototype.add=function(V,ee){return new q(this.start.add(V,ee),this.startControl.add(V,ee),this.endControl.add(V,ee),this.end.add(V,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(V){var ee=V.styles,$=V.bounds,Se=st(ee.borderTopLeftRadius,$.width,$.height),Ue=Se[0],tt=Se[1],vt=st(ee.borderTopRightRadius,$.width,$.height),pt=vt[0],Rt=vt[1],Ft=st(ee.borderBottomRightRadius,$.width,$.height),Jt=Ft[0],en=Ft[1],br=st(ee.borderBottomLeftRadius,$.width,$.height),Nn=br[0],dr=br[1],ea=[];ea.push((Ue+pt)/$.width),ea.push((Nn+Jt)/$.width),ea.push((tt+dr)/$.height),ea.push((Rt+en)/$.height);var vr=Math.max.apply(Math,ea);vr>1&&(Ue/=vr,tt/=vr,pt/=vr,Rt/=vr,Jt/=vr,en/=vr,Nn/=vr,dr/=vr);var wr=$.width-pt,Wa=$.height-en,Ea=$.width-Jt,ai=$.height-dr,Er=ee.borderTopWidth,ei=ee.borderRightWidth,ii=ee.borderBottomWidth,ya=ee.borderLeftWidth,fs=it(ee.paddingTop,V.bounds.width),is=it(ee.paddingRight,V.bounds.width),ws=it(ee.paddingBottom,V.bounds.width),Do=it(ee.paddingLeft,V.bounds.width);this.topLeftBorderDoubleOuterBox=Ue>0||tt>0?ga($.left+ya/3,$.top+Er/3,Ue-ya/3,tt-Er/3,Ba.TOP_LEFT):new Hn($.left+ya/3,$.top+Er/3),this.topRightBorderDoubleOuterBox=Ue>0||tt>0?ga($.left+wr,$.top+Er/3,pt-ei/3,Rt-Er/3,Ba.TOP_RIGHT):new Hn($.left+$.width-ei/3,$.top+Er/3),this.bottomRightBorderDoubleOuterBox=Jt>0||en>0?ga($.left+Ea,$.top+Wa,Jt-ei/3,en-ii/3,Ba.BOTTOM_RIGHT):new Hn($.left+$.width-ei/3,$.top+$.height-ii/3),this.bottomLeftBorderDoubleOuterBox=Nn>0||dr>0?ga($.left+ya/3,$.top+ai,Nn-ya/3,dr-ii/3,Ba.BOTTOM_LEFT):new Hn($.left+ya/3,$.top+$.height-ii/3),this.topLeftBorderDoubleInnerBox=Ue>0||tt>0?ga($.left+ya*2/3,$.top+Er*2/3,Ue-ya*2/3,tt-Er*2/3,Ba.TOP_LEFT):new Hn($.left+ya*2/3,$.top+Er*2/3),this.topRightBorderDoubleInnerBox=Ue>0||tt>0?ga($.left+wr,$.top+Er*2/3,pt-ei*2/3,Rt-Er*2/3,Ba.TOP_RIGHT):new Hn($.left+$.width-ei*2/3,$.top+Er*2/3),this.bottomRightBorderDoubleInnerBox=Jt>0||en>0?ga($.left+Ea,$.top+Wa,Jt-ei*2/3,en-ii*2/3,Ba.BOTTOM_RIGHT):new Hn($.left+$.width-ei*2/3,$.top+$.height-ii*2/3),this.bottomLeftBorderDoubleInnerBox=Nn>0||dr>0?ga($.left+ya*2/3,$.top+ai,Nn-ya*2/3,dr-ii*2/3,Ba.BOTTOM_LEFT):new Hn($.left+ya*2/3,$.top+$.height-ii*2/3),this.topLeftBorderStroke=Ue>0||tt>0?ga($.left+ya/2,$.top+Er/2,Ue-ya/2,tt-Er/2,Ba.TOP_LEFT):new Hn($.left+ya/2,$.top+Er/2),this.topRightBorderStroke=Ue>0||tt>0?ga($.left+wr,$.top+Er/2,pt-ei/2,Rt-Er/2,Ba.TOP_RIGHT):new Hn($.left+$.width-ei/2,$.top+Er/2),this.bottomRightBorderStroke=Jt>0||en>0?ga($.left+Ea,$.top+Wa,Jt-ei/2,en-ii/2,Ba.BOTTOM_RIGHT):new Hn($.left+$.width-ei/2,$.top+$.height-ii/2),this.bottomLeftBorderStroke=Nn>0||dr>0?ga($.left+ya/2,$.top+ai,Nn-ya/2,dr-ii/2,Ba.BOTTOM_LEFT):new Hn($.left+ya/2,$.top+$.height-ii/2),this.topLeftBorderBox=Ue>0||tt>0?ga($.left,$.top,Ue,tt,Ba.TOP_LEFT):new Hn($.left,$.top),this.topRightBorderBox=pt>0||Rt>0?ga($.left+wr,$.top,pt,Rt,Ba.TOP_RIGHT):new Hn($.left+$.width,$.top),this.bottomRightBorderBox=Jt>0||en>0?ga($.left+Ea,$.top+Wa,Jt,en,Ba.BOTTOM_RIGHT):new Hn($.left+$.width,$.top+$.height),this.bottomLeftBorderBox=Nn>0||dr>0?ga($.left,$.top+ai,Nn,dr,Ba.BOTTOM_LEFT):new Hn($.left,$.top+$.height),this.topLeftPaddingBox=Ue>0||tt>0?ga($.left+ya,$.top+Er,Math.max(0,Ue-ya),Math.max(0,tt-Er),Ba.TOP_LEFT):new Hn($.left+ya,$.top+Er),this.topRightPaddingBox=pt>0||Rt>0?ga($.left+Math.min(wr,$.width-ei),$.top+Er,wr>$.width+ei?0:Math.max(0,pt-ei),Math.max(0,Rt-Er),Ba.TOP_RIGHT):new Hn($.left+$.width-ei,$.top+Er),this.bottomRightPaddingBox=Jt>0||en>0?ga($.left+Math.min(Ea,$.width-ya),$.top+Math.min(Wa,$.height-ii),Math.max(0,Jt-ei),Math.max(0,en-ii),Ba.BOTTOM_RIGHT):new Hn($.left+$.width-ei,$.top+$.height-ii),this.bottomLeftPaddingBox=Nn>0||dr>0?ga($.left+ya,$.top+Math.min(ai,$.height-ii),Math.max(0,Nn-ya),Math.max(0,dr-ii),Ba.BOTTOM_LEFT):new Hn($.left+ya,$.top+$.height-ii),this.topLeftContentBox=Ue>0||tt>0?ga($.left+ya+Do,$.top+Er+fs,Math.max(0,Ue-(ya+Do)),Math.max(0,tt-(Er+fs)),Ba.TOP_LEFT):new Hn($.left+ya+Do,$.top+Er+fs),this.topRightContentBox=pt>0||Rt>0?ga($.left+Math.min(wr,$.width+ya+Do),$.top+Er+fs,wr>$.width+ya+Do?0:pt-ya+Do,Rt-(Er+fs),Ba.TOP_RIGHT):new Hn($.left+$.width-(ei+is),$.top+Er+fs),this.bottomRightContentBox=Jt>0||en>0?ga($.left+Math.min(Ea,$.width-(ya+Do)),$.top+Math.min(Wa,$.height+Er+fs),Math.max(0,Jt-(ei+is)),en-(ii+ws),Ba.BOTTOM_RIGHT):new Hn($.left+$.width-(ei+is),$.top+$.height-(ii+ws)),this.bottomLeftContentBox=Nn>0||dr>0?ga($.left+ya+Do,$.top+ai,Math.max(0,Nn-(ya+Do)),dr-(ii+ws),Ba.BOTTOM_LEFT):new Hn($.left+ya+Do,$.top+$.height-(ii+ws))}return q}(),Ba;(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"})(Ba||(Ba={}));var ga=function(q,V,ee,$,Se){var Ue=4*((Math.sqrt(2)-1)/3),tt=ee*Ue,vt=$*Ue,pt=q+ee,Rt=V+$;switch(Se){case Ba.TOP_LEFT:return new xi(new Hn(q,Rt),new Hn(q,Rt-vt),new Hn(pt-tt,V),new Hn(pt,V));case Ba.TOP_RIGHT:return new xi(new Hn(q,V),new Hn(q+tt,V),new Hn(pt,Rt-vt),new Hn(pt,Rt));case Ba.BOTTOM_RIGHT:return new xi(new Hn(pt,V),new Hn(pt,V+vt),new Hn(q+tt,Rt),new Hn(q,Rt));case Ba.BOTTOM_LEFT:default:return new xi(new Hn(pt,Rt),new Hn(pt-tt,Rt),new Hn(q,V+vt),new Hn(q,V))}},as=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(V,ee,$){this.offsetX=V,this.offsetY=ee,this.matrix=$,this.type=0,this.target=2|4}return q}(),Ds=function(){function q(V,ee){this.path=V,this.target=ee,this.type=1}return q}(),sl=function(){function q(V){this.opacity=V,this.type=2,this.target=2|4}return q}(),Oo=function(q){return q.type===0},ll=function(q){return q.type===1},fu=function(q){return q.type===2},ic=function(q,V){return q.length===V.length?q.some(function(ee,$){return ee===V[$]}):!1},Ac=function(q,V,ee,$,Se){return q.map(function(Ue,tt){switch(tt){case 0:return Ue.add(V,ee);case 1:return Ue.add(V+$,ee);case 2:return Ue.add(V+$,ee+Se);case 3:return Ue.add(V,ee+Se)}return Ue})},oc=function(){function q(V){this.element=V,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return q}(),sc=function(){function q(V,ee){if(this.container=V,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,Se=this.container.bounds.top+this.container.styles.transformOrigin[1].number,Ue=this.container.styles.transform;this.effects.push(new Ns($,Se,Ue))}if(this.container.styles.overflowX!==0){var tt=as(this.curves),vt=vl(this.curves);ic(tt,vt)?this.effects.push(new Ds(tt,2|4)):(this.effects.push(new Ds(tt,2)),this.effects.push(new Ds(vt,4)))}}return q.prototype.getEffects=function(V){for(var ee=[2,3].indexOf(this.container.styles.position)===-1,$=this.parent,Se=this.effects.slice(0);$;){var Ue=$.effects.filter(function(pt){return!ll(pt)});if(ee||$.container.styles.position!==0||!$.parent){if(Se.unshift.apply(Se,Ue),ee=[2,3].indexOf($.container.styles.position)===-1,$.container.styles.overflowX!==0){var tt=as($.curves),vt=vl($.curves);ic(tt,vt)||Se.unshift(new Ds(vt,2|4))}}else Se.unshift.apply(Se,Ue);$=$.parent}return Se.filter(function(pt){return da(pt.target,V)})},q}(),rc=function(q,V,ee,$){q.container.elements.forEach(function(Se){var Ue=da(Se.flags,4),tt=da(Se.flags,2),vt=new sc(Se,q);da(Se.styles.display,2048)&&$.push(vt);var pt=da(Se.flags,8)?[]:$;if(Ue||tt){var Rt=Ue||Se.styles.isPositioned()?ee:V,Ft=new oc(vt);if(Se.styles.isPositioned()||Se.styles.opacity<1||Se.styles.isTransformed()){var Jt=Se.styles.zIndex.order;if(Jt<0){var en=0;Rt.negativeZIndex.some(function(Nn,dr){return Jt>Nn.element.container.styles.zIndex.order?(en=dr,!1):en>0}),Rt.negativeZIndex.splice(en,0,Ft)}else if(Jt>0){var br=0;Rt.positiveZIndex.some(function(Nn,dr){return Jt>=Nn.element.container.styles.zIndex.order?(br=dr+1,!1):br>0}),Rt.positiveZIndex.splice(br,0,Ft)}else Rt.zeroOrAutoZIndexOrTransformedOrOpacity.push(Ft)}else Se.styles.isFloating()?Rt.nonPositionedFloats.push(Ft):Rt.nonPositionedInlineLevel.push(Ft);rc(vt,Ft,Ue?Ft:ee,pt)}else Se.styles.isInlineLevel()?V.inlineLevel.push(vt):V.nonInlineLevel.push(vt),rc(vt,V,ee,pt);da(Se.flags,8)&&lc(Se,pt)})},lc=function(q,V){for(var ee=q instanceof Ql?q.start:1,$=q instanceof Ql?q.reversed:!1,Se=0;Se<V.length;Se++){var Ue=V[Se];Ue.container instanceof Hl&&typeof Ue.container.value=="number"&&Ue.container.value!==0&&(ee=Ue.container.value),Ue.listValue=L(ee,Ue.container.styles.listStyleType,!0),ee+=$?-1:1}},fc=function(q){var V=new sc(q,null),ee=new oc(V),$=[];return rc(V,ee,ee,$),lc(V.container,$),ee},uc=function(q,V){switch(V){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,V){switch(V){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,V){switch(V){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,V){switch(V){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,V){var ee=[];return _i(q)?ee.push(q.subdivide(.5,!1)):ee.push(q),_i(V)?ee.push(V.subdivide(.5,!0)):ee.push(V),ee},Rs=function(q,V,ee,$){var Se=[];return _i(q)?Se.push(q.subdivide(.5,!1)):Se.push(q),_i(ee)?Se.push(ee.subdivide(.5,!0)):Se.push(ee),_i($)?Se.push($.subdivide(.5,!0).reverse()):Se.push($),_i(V)?Se.push(V.subdivide(.5,!1).reverse()):Se.push(V),Se},cc=function(q){var V=q.bounds,ee=q.styles;return V.add(ee.borderLeftWidth,ee.borderTopWidth,-(ee.borderRightWidth+ee.borderLeftWidth),-(ee.borderTopWidth+ee.borderBottomWidth))},Qu=function(q){var V=q.styles,ee=q.bounds,$=it(V.paddingLeft,ee.width),Se=it(V.paddingRight,ee.width),Ue=it(V.paddingTop,ee.width),tt=it(V.paddingBottom,ee.width);return ee.add($+V.borderLeftWidth,Ue+V.borderTopWidth,-(V.borderRightWidth+V.borderLeftWidth+$+Se),-(V.borderTopWidth+V.borderBottomWidth+Ue+tt))},gc=function(q,V){return q===0?V.bounds:q===2?Qu(V):cc(V)},yc=function(q,V){return q===0?V.bounds:q===2?Qu(V):cc(V)},ac=function(q,V,ee){var $=gc(Yl(q.styles.backgroundOrigin,V),q),Se=yc(Yl(q.styles.backgroundClip,V),q),Ue=bc(Yl(q.styles.backgroundSize,V),ee,$),tt=Ue[0],vt=Ue[1],pt=st(Yl(q.styles.backgroundPosition,V),$.width-tt,$.height-vt),Rt=Ec(Yl(q.styles.backgroundRepeat,V),pt,Ue,$,Se),Ft=Math.round($.left+pt[0]),Jt=Math.round($.top+pt[1]);return[Rt,Ft,Jt,tt,vt]},Xl=function(q){return Qa(q)&&q.value===ti.AUTO},Ku=function(q){return typeof q=="number"},bc=function(q,V,ee){var $=V[0],Se=V[1],Ue=V[2],tt=q[0],vt=q[1];if(!tt)return[0,0];if(Te(tt)&&vt&&Te(vt))return[it(tt,ee.width),it(vt,ee.height)];var pt=Ku(Ue);if(Qa(tt)&&(tt.value===ti.CONTAIN||tt.value===ti.COVER)){if(Ku(Ue)){var Rt=ee.width/ee.height;return Rt<Ue!==(tt.value===ti.COVER)?[ee.width,ee.width/Ue]:[ee.height*Ue,ee.height]}return[ee.width,ee.height]}var Ft=Ku($),Jt=Ku(Se),en=Ft||Jt;if(Xl(tt)&&(!vt||Xl(vt))){if(Ft&&Jt)return[$,Se];if(!pt&&!en)return[ee.width,ee.height];if(en&&pt){var br=Ft?$:Se*Ue,Nn=Jt?Se:$/Ue;return[br,Nn]}var dr=Ft?$:ee.width,ea=Jt?Se:ee.height;return[dr,ea]}if(pt){var vr=0,wr=0;return Te(tt)?vr=it(tt,ee.width):Te(vt)&&(wr=it(vt,ee.height)),Xl(tt)?vr=wr*Ue:(!vt||Xl(vt))&&(wr=vr/Ue),[vr,wr]}var Wa=null,Ea=null;if(Te(tt)?Wa=it(tt,ee.width):vt&&Te(vt)&&(Ea=it(vt,ee.height)),Wa!==null&&(!vt||Xl(vt))&&(Ea=Ft&&Jt?Wa/$*Se:ee.height),Ea!==null&&Xl(tt)&&(Wa=Ft&&Jt?Ea/Se*$:ee.width),Wa!==null&&Ea!==null)return[Wa,Ea];throw new Error("Unable to calculate background-size for element")},Yl=function(q,V){var ee=q[V];return typeof ee=="undefined"?q[0]:ee},Ec=function(q,V,ee,$,Se){var Ue=V[0],tt=V[1],vt=ee[0],pt=ee[1];switch(q){case 2:return[new Hn(Math.round($.left),Math.round($.top+tt)),new Hn(Math.round($.left+$.width),Math.round($.top+tt)),new Hn(Math.round($.left+$.width),Math.round(pt+$.top+tt)),new Hn(Math.round($.left),Math.round(pt+$.top+tt))];case 3:return[new Hn(Math.round($.left+Ue),Math.round($.top)),new Hn(Math.round($.left+Ue+vt),Math.round($.top)),new Hn(Math.round($.left+Ue+vt),Math.round($.height+$.top)),new Hn(Math.round($.left+Ue),Math.round($.height+$.top))];case 1:return[new Hn(Math.round($.left+Ue),Math.round($.top+tt)),new Hn(Math.round($.left+Ue+vt),Math.round($.top+tt)),new Hn(Math.round($.left+Ue+vt),Math.round($.top+tt+pt)),new Hn(Math.round($.left+Ue),Math.round($.top+tt+pt))];default:return[new Hn(Math.round(Se.left),Math.round(Se.top)),new Hn(Math.round(Se.left+Se.width),Math.round(Se.top)),new Hn(Math.round(Se.left+Se.width),Math.round(Se.height+Se.top)),new Hn(Math.round(Se.left),Math.round(Se.height+Se.top))]}},Cc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",dc="Hidden Text",wc=function(){function q(V){this._data={},this._document=V}return q.prototype.parseMetrics=function(V,ee){var $=this._document.createElement("div"),Se=this._document.createElement("img"),Ue=this._document.createElement("span"),tt=this._document.body;$.style.visibility="hidden",$.style.fontFamily=V,$.style.fontSize=ee,$.style.margin="0",$.style.padding="0",$.style.whiteSpace="nowrap",tt.appendChild($),Se.src=Cc,Se.width=1,Se.height=1,Se.style.margin="0",Se.style.padding="0",Se.style.verticalAlign="baseline",Ue.style.fontFamily=V,Ue.style.fontSize=ee,Ue.style.margin="0",Ue.style.padding="0",Ue.appendChild(this._document.createTextNode(dc)),$.appendChild(Ue),$.appendChild(Se);var vt=Se.offsetTop-Ue.offsetTop+2;$.removeChild(Ue),$.appendChild(this._document.createTextNode(dc)),$.style.lineHeight="normal",Se.style.verticalAlign="super";var pt=Se.offsetTop-$.offsetTop+2;return tt.removeChild($),{baseline:vt,middle:pt}},q.prototype.getMetrics=function(V,ee){var $=V+" "+ee;return typeof this._data[$]=="undefined"&&(this._data[$]=this.parseMetrics(V,ee)),this._data[$]},q}(),hc=function(){function q(V,ee){this.context=V,this.options=ee}return q}(),xc=1e4,_c=function(q){Y(V,q);function V(ee,$){var Se=q.call(this,ee,$)||this;return Se._activeEffects=[],Se.canvas=$.canvas?$.canvas:document.createElement("canvas"),Se.ctx=Se.canvas.getContext("2d"),$.canvas||(Se.canvas.width=Math.floor($.width*$.scale),Se.canvas.height=Math.floor($.height*$.scale),Se.canvas.style.width=$.width+"px",Se.canvas.style.height=$.height+"px"),Se.fontMetrics=new wc(document),Se.ctx.scale(Se.options.scale,Se.options.scale),Se.ctx.translate(-$.x,-$.y),Se.ctx.textBaseline="bottom",Se._activeEffects=[],Se.context.logger.debug("Canvas renderer initialized ("+$.width+"x"+$.height+") with scale "+$.scale),Se}return V.prototype.applyEffects=function(ee){for(var $=this;this._activeEffects.length;)this.popEffect();ee.forEach(function(Se){return $.applyEffect(Se)})},V.prototype.applyEffect=function(ee){this.ctx.save(),fu(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)},V.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},V.prototype.renderStack=function(ee){return y(this,void 0,void 0,function(){var $;return E(this,function(Se){switch(Se.label){case 0:return $=ee.element.container.styles,$.isVisible()?[4,this.renderStackContent(ee)]:[3,2];case 1:Se.sent(),Se.label=2;case 2:return[2]}})})},V.prototype.renderNode=function(ee){return y(this,void 0,void 0,function(){return E(this,function($){switch($.label){case 0:if(da(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]}})})},V.prototype.renderTextWithLetterSpacing=function(ee,$,Se){var Ue=this;if($===0)this.ctx.fillText(ee.text,ee.bounds.left,ee.bounds.top+Se);else{var tt=ou(ee.text);tt.reduce(function(vt,pt){return Ue.ctx.fillText(pt,vt,ee.bounds.top+Se),vt+Ue.ctx.measureText(pt).width},ee.bounds.left)}},V.prototype.createFontStyle=function(ee){var $=ee.fontVariant.filter(function(tt){return tt==="normal"||tt==="small-caps"}).join(""),Se=Dc(ee.fontFamily).join(", "),Ue=xo(ee.fontSize)?""+ee.fontSize.number+ee.fontSize.unit:ee.fontSize.number+"px";return[[ee.fontStyle,$,ee.fontWeight,Ue,Se].join(" "),Se,Ue]},V.prototype.renderTextNode=function(ee,$){return y(this,void 0,void 0,function(){var Se,Ue,tt,vt,pt,Rt,Ft,Jt,en=this;return E(this,function(br){return Se=this.createFontStyle($),Ue=Se[0],tt=Se[1],vt=Se[2],this.ctx.font=Ue,this.ctx.direction=$.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",pt=this.fontMetrics.getMetrics(tt,vt),Rt=pt.baseline,Ft=pt.middle,Jt=$.paintOrder,ee.textBounds.forEach(function(Nn){Jt.forEach(function(dr){switch(dr){case 0:en.ctx.fillStyle=Rn($.color),en.renderTextWithLetterSpacing(Nn,$.letterSpacing,Rt);var ea=$.textShadow;ea.length&&Nn.text.trim().length&&(ea.slice(0).reverse().forEach(function(vr){en.ctx.shadowColor=Rn(vr.color),en.ctx.shadowOffsetX=vr.offsetX.number*en.options.scale,en.ctx.shadowOffsetY=vr.offsetY.number*en.options.scale,en.ctx.shadowBlur=vr.blur.number,en.renderTextWithLetterSpacing(Nn,$.letterSpacing,Rt)}),en.ctx.shadowColor="",en.ctx.shadowOffsetX=0,en.ctx.shadowOffsetY=0,en.ctx.shadowBlur=0),$.textDecorationLine.length&&(en.ctx.fillStyle=Rn($.textDecorationColor||$.color),$.textDecorationLine.forEach(function(vr){switch(vr){case 1:en.ctx.fillRect(Nn.bounds.left,Math.round(Nn.bounds.top+Rt),Nn.bounds.width,1);break;case 2:en.ctx.fillRect(Nn.bounds.left,Math.round(Nn.bounds.top),Nn.bounds.width,1);break;case 3:en.ctx.fillRect(Nn.bounds.left,Math.ceil(Nn.bounds.top+Ft),Nn.bounds.width,1);break}}));break;case 1:$.webkitTextStrokeWidth&&Nn.text.trim().length&&(en.ctx.strokeStyle=Rn($.webkitTextStrokeColor),en.ctx.lineWidth=$.webkitTextStrokeWidth,en.ctx.lineJoin=window.chrome?"miter":"round",en.ctx.strokeText(Nn.text,Nn.bounds.left,Nn.bounds.top+Rt)),en.ctx.strokeStyle="",en.ctx.lineWidth=0,en.ctx.lineJoin="miter";break}})}),[2]})})},V.prototype.renderReplacedElement=function(ee,$,Se){if(Se&&ee.intrinsicWidth>0&&ee.intrinsicHeight>0){var Ue=Qu(ee),tt=vl($);this.path(tt),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(Se,0,0,ee.intrinsicWidth,ee.intrinsicHeight,Ue.left,Ue.top,Ue.width,Ue.height),this.ctx.restore()}},V.prototype.renderNodeContent=function(ee){return y(this,void 0,void 0,function(){var $,Se,Ue,tt,vt,pt,Rt,Rt,Ft,Jt,en,br,Nn,dr,ea,vr,wr,Wa,Ea,Rt,ai,Nn,vr;return E(this,function(Er){switch(Er.label){case 0:this.applyEffects(ee.getEffects(4)),$=ee.container,Se=ee.curves,Ue=$.styles,tt=0,vt=$.textNodes,Er.label=1;case 1:return tt<vt.length?(pt=vt[tt],[4,this.renderTextNode(pt,Ue)]):[3,4];case 2:Er.sent(),Er.label=3;case 3:return tt++,[3,1];case 4:if(!($ instanceof su))return[3,8];Er.label=5;case 5:return Er.trys.push([5,7,,8]),[4,this.context.cache.match($.src)];case 6:return Rt=Er.sent(),this.renderReplacedElement($,Se,Rt),[3,8];case 7:return Er.sent(),this.context.logger.error("Error loading image "+$.src),[3,8];case 8:if($ instanceof lu&&this.renderReplacedElement($,Se,$.canvas),!($ instanceof wu))return[3,12];Er.label=9;case 9:return Er.trys.push([9,11,,12]),[4,this.context.cache.match($.svg)];case 10:return Rt=Er.sent(),this.renderReplacedElement($,Se,Rt),[3,12];case 11:return Er.sent(),this.context.logger.error("Error loading svg "+$.svg.substring(0,255)),[3,12];case 12:return $ instanceof Ou&&$.tree?(Ft=new V(this.context,{scale:this.options.scale,backgroundColor:$.backgroundColor,x:0,y:0,width:$.width,height:$.height}),[4,Ft.render($.tree)]):[3,14];case 13:Jt=Er.sent(),$.width&&$.height&&this.ctx.drawImage(Jt,0,0,$.width,$.height,$.bounds.left,$.bounds.top,$.bounds.width,$.bounds.height),Er.label=14;case 14:if($ instanceof Kl&&(en=Math.min($.bounds.width,$.bounds.height),$.type===fl?$.checked&&(this.ctx.save(),this.path([new Hn($.bounds.left+en*.39363,$.bounds.top+en*.79),new Hn($.bounds.left+en*.16,$.bounds.top+en*.5549),new Hn($.bounds.left+en*.27347,$.bounds.top+en*.44071),new Hn($.bounds.left+en*.39694,$.bounds.top+en*.5649),new Hn($.bounds.left+en*.72983,$.bounds.top+en*.23),new Hn($.bounds.left+en*.84,$.bounds.top+en*.34085),new Hn($.bounds.left+en*.39363,$.bounds.top+en*.79)]),this.ctx.fillStyle=Rn(Su),this.ctx.fill(),this.ctx.restore()):$.type===Vs&&($.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc($.bounds.left+en/2,$.bounds.top+en/2,en/4,0,Math.PI*2,!0),this.ctx.fillStyle=Rn(Su),this.ctx.fill(),this.ctx.restore()))),Sc($)&&$.value.length){br=this.createFontStyle(Ue),Nn=br[0],dr=br[1],ea=this.fontMetrics.getMetrics(Nn,dr).baseline,this.ctx.font=Nn,this.ctx.fillStyle=Rn(Ue.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Bc($.styles.textAlign),vr=Qu($),wr=0;switch($.styles.textAlign){case 1:wr+=vr.width/2;break;case 2:wr+=vr.width;break}Wa=vr.add(wr,0,0,-vr.height/2+1),this.ctx.save(),this.path([new Hn(vr.left,vr.top),new Hn(vr.left+vr.width,vr.top),new Hn(vr.left+vr.width,vr.top+vr.height),new Hn(vr.left,vr.top+vr.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Os($.value,Wa),Ue.letterSpacing,ea),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!da($.styles.display,2048))return[3,20];if(!($.styles.listStyleImage!==null))return[3,19];if(Ea=$.styles.listStyleImage,!(Ea.type===0))return[3,18];Rt=void 0,ai=Ea.url,Er.label=15;case 15:return Er.trys.push([15,17,,18]),[4,this.context.cache.match(ai)];case 16:return Rt=Er.sent(),this.ctx.drawImage(Rt,$.bounds.left-(Rt.width+10),$.bounds.top),[3,18];case 17:return Er.sent(),this.context.logger.error("Error loading list-style-image "+ai),[3,18];case 18:return[3,20];case 19:ee.listValue&&$.styles.listStyleType!==-1&&(Nn=this.createFontStyle(Ue)[0],this.ctx.font=Nn,this.ctx.fillStyle=Rn(Ue.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",vr=new C($.bounds.left,$.bounds.top+it($.styles.paddingTop,$.bounds.width),$.bounds.width,Ua(Ue.lineHeight,Ue.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Os(ee.listValue,vr),Ue.letterSpacing,Ua(Ue.lineHeight,Ue.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Er.label=20;case 20:return[2]}})})},V.prototype.renderStackContent=function(ee){return y(this,void 0,void 0,function(){var $,Se,Ue,tt,vt,Ue,pt,Rt,Ue,Ft,Jt,Ue,en,br,Ue,Nn,dr,Ue,ea,vr,Ue;return E(this,function(wr){switch(wr.label){case 0:if(da(ee.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(ee.element)];case 1:wr.sent(),$=0,Se=ee.negativeZIndex,wr.label=2;case 2:return $<Se.length?(Ue=Se[$],[4,this.renderStack(Ue)]):[3,5];case 3:wr.sent(),wr.label=4;case 4:return $++,[3,2];case 5:return[4,this.renderNodeContent(ee.element)];case 6:wr.sent(),tt=0,vt=ee.nonInlineLevel,wr.label=7;case 7:return tt<vt.length?(Ue=vt[tt],[4,this.renderNode(Ue)]):[3,10];case 8:wr.sent(),wr.label=9;case 9:return tt++,[3,7];case 10:pt=0,Rt=ee.nonPositionedFloats,wr.label=11;case 11:return pt<Rt.length?(Ue=Rt[pt],[4,this.renderStack(Ue)]):[3,14];case 12:wr.sent(),wr.label=13;case 13:return pt++,[3,11];case 14:Ft=0,Jt=ee.nonPositionedInlineLevel,wr.label=15;case 15:return Ft<Jt.length?(Ue=Jt[Ft],[4,this.renderStack(Ue)]):[3,18];case 16:wr.sent(),wr.label=17;case 17:return Ft++,[3,15];case 18:en=0,br=ee.inlineLevel,wr.label=19;case 19:return en<br.length?(Ue=br[en],[4,this.renderNode(Ue)]):[3,22];case 20:wr.sent(),wr.label=21;case 21:return en++,[3,19];case 22:Nn=0,dr=ee.zeroOrAutoZIndexOrTransformedOrOpacity,wr.label=23;case 23:return Nn<dr.length?(Ue=dr[Nn],[4,this.renderStack(Ue)]):[3,26];case 24:wr.sent(),wr.label=25;case 25:return Nn++,[3,23];case 26:ea=0,vr=ee.positiveZIndex,wr.label=27;case 27:return ea<vr.length?(Ue=vr[ea],[4,this.renderStack(Ue)]):[3,30];case 28:wr.sent(),wr.label=29;case 29:return ea++,[3,27];case 30:return[2]}})})},V.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()},V.prototype.path=function(ee){this.ctx.beginPath(),this.formatPath(ee),this.ctx.closePath()},V.prototype.formatPath=function(ee){var $=this;ee.forEach(function(Se,Ue){var tt=_i(Se)?Se.start:Se;Ue===0?$.ctx.moveTo(tt.x,tt.y):$.ctx.lineTo(tt.x,tt.y),_i(Se)&&$.ctx.bezierCurveTo(Se.startControl.x,Se.startControl.y,Se.endControl.x,Se.endControl.y,Se.end.x,Se.end.y)})},V.prototype.renderRepeat=function(ee,$,Se,Ue){this.path(ee),this.ctx.fillStyle=$,this.ctx.translate(Se,Ue),this.ctx.fill(),this.ctx.translate(-Se,-Ue)},V.prototype.resizeImage=function(ee,$,Se){var Ue;if(ee.width===$&&ee.height===Se)return ee;var tt=(Ue=this.canvas.ownerDocument)!==null&&Ue!==void 0?Ue:document,vt=tt.createElement("canvas");vt.width=Math.max(1,$),vt.height=Math.max(1,Se);var pt=vt.getContext("2d");return pt.drawImage(ee,0,0,ee.width,ee.height,0,0,$,Se),vt},V.prototype.renderBackgroundImage=function(ee){return y(this,void 0,void 0,function(){var $,Se,Ue,tt,vt,pt;return E(this,function(Rt){switch(Rt.label){case 0:$=ee.styles.backgroundImage.length-1,Se=function(Ft){var Jt,en,br,Nn,dr,ea,vr,wr,Wa,Ea,Nn,dr,ea,vr,wr,ai,Er,ei,ii,ya,fs,is,ws,Do,Wa,Ys,Nn,gl,yl,vr,wr,bl,dr,ea,Ml,Js,El,Ll,Pl,ul,Ul,cl;return E(this,function(Jl){switch(Jl.label){case 0:if(!(Ft.type===0))return[3,5];Jt=void 0,en=Ft.url,Jl.label=1;case 1:return Jl.trys.push([1,3,,4]),[4,Ue.context.cache.match(en)];case 2:return Jt=Jl.sent(),[3,4];case 3:return Jl.sent(),Ue.context.logger.error("Error loading background-image "+en),[3,4];case 4:return Jt&&(br=ac(ee,$,[Jt.width,Jt.height,Jt.width/Jt.height]),Nn=br[0],dr=br[1],ea=br[2],vr=br[3],wr=br[4],Wa=Ue.ctx.createPattern(Ue.resizeImage(Jt,vr,wr),"repeat"),Ue.renderRepeat(Nn,Wa,dr,ea)),[3,6];case 5:on(Ft)?(Ea=ac(ee,$,[null,null,null]),Nn=Ea[0],dr=Ea[1],ea=Ea[2],vr=Ea[3],wr=Ea[4],ai=Br(Ft.angle,vr,wr),Er=ai[0],ei=ai[1],ii=ai[2],ya=ai[3],fs=ai[4],is=document.createElement("canvas"),is.width=vr,is.height=wr,ws=is.getContext("2d"),Do=ws.createLinearGradient(ei,ya,ii,fs),Ir(Ft.stops,Er).forEach(function(pu){return Do.addColorStop(pu.stop,Rn(pu.color))}),ws.fillStyle=Do,ws.fillRect(0,0,vr,wr),vr>0&&wr>0&&(Wa=Ue.ctx.createPattern(is,"repeat"),Ue.renderRepeat(Nn,Wa,dr,ea))):Gn(Ft)&&(Ys=ac(ee,$,[null,null,null]),Nn=Ys[0],gl=Ys[1],yl=Ys[2],vr=Ys[3],wr=Ys[4],bl=Ft.position.length===0?[at]:Ft.position,dr=it(bl[0],vr),ea=it(bl[bl.length-1],wr),Ml=Qn(Ft,dr,ea,vr,wr),Js=Ml[0],El=Ml[1],Js>0&&El>0&&(Ll=Ue.ctx.createRadialGradient(gl+dr,yl+ea,0,gl+dr,yl+ea,Js),Ir(Ft.stops,Js*2).forEach(function(pu){return Ll.addColorStop(pu.stop,Rn(pu.color))}),Ue.path(Nn),Ue.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,Ue.ctx.save(),Ue.ctx.translate(Pl,ul),Ue.ctx.transform(1,0,0,Ul,0,0),Ue.ctx.translate(-Pl,-ul),Ue.ctx.fillRect(gl,cl*(yl-ul)+ul,vr,wr*cl),Ue.ctx.restore()):Ue.ctx.fill())),Jl.label=6;case 6:return $--,[2]}})},Ue=this,tt=0,vt=ee.styles.backgroundImage.slice(0).reverse(),Rt.label=1;case 1:return tt<vt.length?(pt=vt[tt],[5,Se(pt)]):[3,4];case 2:Rt.sent(),Rt.label=3;case 3:return tt++,[3,1];case 4:return[2]}})})},V.prototype.renderSolidBorder=function(ee,$,Se){return y(this,void 0,void 0,function(){return E(this,function(Ue){return this.path(uc(Se,$)),this.ctx.fillStyle=Rn(ee),this.ctx.fill(),[2]})})},V.prototype.renderDoubleBorder=function(ee,$,Se,Ue){return y(this,void 0,void 0,function(){var tt,vt;return E(this,function(pt){switch(pt.label){case 0:return $<3?[4,this.renderSolidBorder(ee,Se,Ue)]:[3,2];case 1:return pt.sent(),[2];case 2:return tt=pc(Ue,Se),this.path(tt),this.ctx.fillStyle=Rn(ee),this.ctx.fill(),vt=mc(Ue,Se),this.path(vt),this.ctx.fill(),[2]}})})},V.prototype.renderNodeBackgroundAndBorders=function(ee){return y(this,void 0,void 0,function(){var $,Se,Ue,tt,vt,pt,Rt,Ft,Jt=this;return E(this,function(en){switch(en.label){case 0:return this.applyEffects(ee.getEffects(2)),$=ee.container.styles,Se=!yn($.backgroundColor)||$.backgroundImage.length,Ue=[{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),Se||$.boxShadow.length?(this.ctx.save(),this.path(tt),this.ctx.clip(),yn($.backgroundColor)||(this.ctx.fillStyle=Rn($.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(ee.container)]):[3,2];case 1:en.sent(),this.ctx.restore(),$.boxShadow.slice(0).reverse().forEach(function(br){Jt.ctx.save();var Nn=as(ee.curves),dr=br.inset?0:xc,ea=Ac(Nn,-dr+(br.inset?1:-1)*br.spread.number,(br.inset?1:-1)*br.spread.number,br.spread.number*(br.inset?-2:2),br.spread.number*(br.inset?-2:2));br.inset?(Jt.path(Nn),Jt.ctx.clip(),Jt.mask(ea)):(Jt.mask(Nn),Jt.ctx.clip(),Jt.path(ea)),Jt.ctx.shadowOffsetX=br.offsetX.number+dr,Jt.ctx.shadowOffsetY=br.offsetY.number,Jt.ctx.shadowColor=Rn(br.color),Jt.ctx.shadowBlur=br.blur.number,Jt.ctx.fillStyle=br.inset?Rn(br.color):"rgba(0,0,0,1)",Jt.ctx.fill(),Jt.ctx.restore()}),en.label=2;case 2:vt=0,pt=0,Rt=Ue,en.label=3;case 3:return pt<Rt.length?(Ft=Rt[pt],Ft.style!==0&&!yn(Ft.color)&&Ft.width>0?Ft.style===2?[4,this.renderDashedDottedBorder(Ft.color,Ft.width,vt,ee.curves,2)]:[3,5]:[3,11]):[3,13];case 4:return en.sent(),[3,11];case 5:return Ft.style===3?[4,this.renderDashedDottedBorder(Ft.color,Ft.width,vt,ee.curves,3)]:[3,7];case 6:return en.sent(),[3,11];case 7:return Ft.style===4?[4,this.renderDoubleBorder(Ft.color,Ft.width,vt,ee.curves)]:[3,9];case 8:return en.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Ft.color,vt,ee.curves)];case 10:en.sent(),en.label=11;case 11:vt++,en.label=12;case 12:return pt++,[3,3];case 13:return[2]}})})},V.prototype.renderDashedDottedBorder=function(ee,$,Se,Ue,tt){return y(this,void 0,void 0,function(){var vt,pt,Rt,Ft,Jt,en,br,Nn,dr,ea,vr,wr,Wa,Ea,ai,Er,ai,Er;return E(this,function(ei){return this.ctx.save(),vt=vc(Ue,Se),pt=uc(Ue,Se),tt===2&&(this.path(pt),this.ctx.clip()),_i(pt[0])?(Rt=pt[0].start.x,Ft=pt[0].start.y):(Rt=pt[0].x,Ft=pt[0].y),_i(pt[1])?(Jt=pt[1].end.x,en=pt[1].end.y):(Jt=pt[1].x,en=pt[1].y),Se===0||Se===2?br=Math.abs(Rt-Jt):br=Math.abs(Ft-en),this.ctx.beginPath(),tt===3?this.formatPath(vt):this.formatPath(pt.slice(0,2)),Nn=$<3?$*3:$*2,dr=$<3?$*2:$,tt===3&&(Nn=$,dr=$),ea=!0,br<=Nn*2?ea=!1:br<=Nn*2+dr?(vr=br/(2*Nn+dr),Nn*=vr,dr*=vr):(wr=Math.floor((br+dr)/(Nn+dr)),Wa=(br-wr*Nn)/(wr-1),Ea=(br-(wr+1)*Nn)/wr,dr=Ea<=0||Math.abs(dr-Wa)<Math.abs(dr-Ea)?Wa:Ea),ea&&(tt===3?this.ctx.setLineDash([0,Nn+dr]):this.ctx.setLineDash([Nn,dr])),tt===3?(this.ctx.lineCap="round",this.ctx.lineWidth=$):this.ctx.lineWidth=$*2+1.1,this.ctx.strokeStyle=Rn(ee),this.ctx.stroke(),this.ctx.setLineDash([]),tt===2&&(_i(pt[0])&&(ai=pt[3],Er=pt[0],this.ctx.beginPath(),this.formatPath([new Hn(ai.end.x,ai.end.y),new Hn(Er.start.x,Er.start.y)]),this.ctx.stroke()),_i(pt[1])&&(ai=pt[1],Er=pt[2],this.ctx.beginPath(),this.formatPath([new Hn(ai.end.x,ai.end.y),new Hn(Er.start.x,Er.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},V.prototype.render=function(ee){return y(this,void 0,void 0,function(){var $;return E(this,function(Se){switch(Se.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Rn(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),$=fc(ee),[4,this.renderStack($)];case 1:return Se.sent(),this.applyEffects([]),[2,this.canvas]}})})},V}(hc),Sc=function(q){return q instanceof Bu||q instanceof Tu?!0:q instanceof Kl&&q.type!==Vs&&q.type!==fl},Tc=function(q,V){switch(q){case 0:return as(V);case 2:return lo(V);case 1:default:return vl(V)}},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(V){return Oc.indexOf(V)===-1}):q},Rc=function(q){Y(V,q);function V(ee,$){var Se=q.call(this,ee,$)||this;return Se.canvas=$.canvas?$.canvas:document.createElement("canvas"),Se.ctx=Se.canvas.getContext("2d"),Se.options=$,Se.canvas.width=Math.floor($.width*$.scale),Se.canvas.height=Math.floor($.height*$.scale),Se.canvas.style.width=$.width+"px",Se.canvas.style.height=$.height+"px",Se.ctx.scale(Se.options.scale,Se.options.scale),Se.ctx.translate(-$.x,-$.y),Se.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+$.width+"x"+$.height+" at "+$.x+","+$.y+") with scale "+$.scale),Se}return V.prototype.render=function(ee){return y(this,void 0,void 0,function(){var $,Se;return E(this,function(Ue){switch(Ue.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 Se=Ue.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Rn(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(Se,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},V}(hc),Ic=function(q){return new Promise(function(V,ee){var $=new Image;$.onload=function(){V($)},$.onerror=ee,$.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(q))})},Mc=function(){function q(V){var ee=V.id,$=V.enabled;this.id=ee,this.enabled=$,this.start=Date.now()}return q.prototype.debug=function(){for(var V=[],ee=0;ee<arguments.length;ee++)V[ee]=arguments[ee];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,_([this.id,this.getTime()+"ms"],V)):this.info.apply(this,V))},q.prototype.getTime=function(){return Date.now()-this.start},q.prototype.info=function(){for(var V=[],ee=0;ee<arguments.length;ee++)V[ee]=arguments[ee];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,_([this.id,this.getTime()+"ms"],V)))},q.prototype.warn=function(){for(var V=[],ee=0;ee<arguments.length;ee++)V[ee]=arguments[ee];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,_([this.id,this.getTime()+"ms"],V)):this.info.apply(this,V))},q.prototype.error=function(){for(var V=[],ee=0;ee<arguments.length;ee++)V[ee]=arguments[ee];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,_([this.id,this.getTime()+"ms"],V)):this.info.apply(this,V))},q.instances={},q}(),Lc=function(){function q(V,ee){var $;this.windowBounds=ee,this.instanceName="#"+q.instanceCount++,this.logger=new Mc({id:this.instanceName,enabled:V.logging}),this.cache=($=V.cache)!==null&&$!==void 0?$:new pa(this,V)}return q.instanceCount=1,q}(),Pc=function(q,V){return V===void 0&&(V={}),Uc(q,V)};typeof window!="undefined"&&Lr.setContext(window);var Uc=function(q,V){return y(void 0,void 0,void 0,function(){var ee,$,Se,Ue,tt,vt,pt,Rt,Ft,Jt,en,br,Nn,dr,ea,vr,wr,Wa,Ea,ai,Er,ei,Er,ii,ya,fs,is,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 Se={allowTaint:(ii=V.allowTaint)!==null&&ii!==void 0?ii:!1,imageTimeout:(ya=V.imageTimeout)!==null&&ya!==void 0?ya:15e3,proxy:V.proxy,useCORS:(fs=V.useCORS)!==null&&fs!==void 0?fs:!1},Ue=P({logging:(is=V.logging)!==null&&is!==void 0?is:!0,cache:V.cache},Se),tt={windowWidth:(ws=V.windowWidth)!==null&&ws!==void 0?ws:$.innerWidth,windowHeight:(Do=V.windowHeight)!==null&&Do!==void 0?Do:$.innerHeight,scrollX:(Ys=V.scrollX)!==null&&Ys!==void 0?Ys:$.pageXOffset,scrollY:(gl=V.scrollY)!==null&&gl!==void 0?gl:$.pageYOffset},vt=new C(tt.scrollX,tt.scrollY,tt.windowWidth,tt.windowHeight),pt=new Lc(Ue,vt),Rt=(yl=V.foreignObjectRendering)!==null&&yl!==void 0?yl:!1,Ft={allowTaint:(bl=V.allowTaint)!==null&&bl!==void 0?bl:!1,onclone:V.onclone,ignoreElements:V.ignoreElements,inlineImages:Rt,copyStyles:Rt},pt.logger.debug("Starting document clone with size "+vt.width+"x"+vt.height+" scrolled to "+-vt.left+","+-vt.top),Jt=new j(pt,q,Ft),en=Jt.clonedReferenceElement,en?[4,Jt.toIFrame(ee,vt)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return br=cl.sent(),Nn=mi(en)||nc(en)?c(en.ownerDocument):m(pt,en),dr=Nn.width,ea=Nn.height,vr=Nn.left,wr=Nn.top,Wa=kc(pt,en,V.backgroundColor),Ea={canvas:V.canvas,backgroundColor:Wa,scale:(Js=(Ml=V.scale)!==null&&Ml!==void 0?Ml:$.devicePixelRatio)!==null&&Js!==void 0?Js:1,x:((El=V.x)!==null&&El!==void 0?El:0)+vr,y:((Ll=V.y)!==null&&Ll!==void 0?Ll:0)+wr,width:(Pl=V.width)!==null&&Pl!==void 0?Pl:Math.ceil(dr),height:(ul=V.height)!==null&&ul!==void 0?ul:Math.ceil(ea)},Rt?(pt.logger.debug("Document cloned, using foreign object rendering"),Er=new Rc(pt,Ea),[4,Er.render(en)]):[3,3];case 2:return ai=cl.sent(),[3,5];case 3:return pt.logger.debug("Document cloned, element located at "+vr+","+wr+" with size "+dr+"x"+ea+" using computed rendering"),pt.logger.debug("Starting DOM parsing"),ei=Ru(pt,en),Wa===ei.styles.backgroundColor&&(ei.styles.backgroundColor=_n.TRANSPARENT),pt.logger.debug("Starting renderer for element at "+Ea.x+","+Ea.y+" with size "+Ea.width+"x"+Ea.height),Er=new _c(pt,Ea),[4,Er.render(ei)];case 4:ai=cl.sent(),cl.label=5;case 5:return((Ul=V.removeContainer)!==null&&Ul!==void 0?Ul:!0)&&(j.destroy(br)||pt.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),pt.logger.debug("Finished rendering"),[2,ai]}})})},kc=function(q,V,ee){var $=V.ownerDocument,Se=$.documentElement?An(q,getComputedStyle($.documentElement).backgroundColor):_n.TRANSPARENT,Ue=$.body?An(q,getComputedStyle($.body).backgroundColor):_n.TRANSPARENT,tt=typeof ee=="string"?An(q,ee):ee===null?_n.TRANSPARENT:4294967295;return V===$.documentElement?yn(Se)?yn(Ue)?tt:Ue:Se:tt};return Pc})},wRmb:function(Ze,we,M){"use strict";M.d(we,"a",function(){return r});var ue=M("rePB"),Y=M("KQm4"),P=M("VTBJ"),y=M("Ff2n"),E=M("q1tI"),_=M.n(E),C=M("Kwbf"),m=M("Zm9Q"),c=M("hW8S");function r(o){return Object(m.a)(o).filter(function(f){return E.isValidElement(f)}).map(function(f){var d=f.key,a=f.props,h=a.children,g=Object(y.a)(a,["children"]),p=Object(P.a)({key:d},g);return h&&(p.children=r(h)),p})}function n(o){return o.reduce(function(f,d){var a=d.fixed,h=a===!0?"left":a,g=d.children;return g&&g.length>0?[].concat(Object(Y.a)(f),Object(Y.a)(n(g).map(function(p){return Object(P.a)({fixed:h},p)}))):[].concat(Object(Y.a)(f),[Object(P.a)(Object(P.a)({},d),{},{fixed:h})])},[])}function e(o){for(var f=!0,d=0;d<o.length;d+=1){var a=o[d];if(f&&a.fixed!=="left")f=!1;else if(!f&&a.fixed==="left"){Object(C.a)(!1,"Index ".concat(d-1," of `columns` missing `fixed='left'` prop."));break}}for(var h=!0,g=o.length-1;g>=0;g-=1){var p=o[g];if(h&&p.fixed!=="right")h=!1;else if(!h&&p.fixed==="right"){Object(C.a)(!1,"Index ".concat(g+1," of `columns` missing `fixed='right'` prop."));break}}}function s(o){return o.map(function(f){var d=f.fixed,a=Object(y.a)(f,["fixed"]),h=d;return d==="left"?h="right":d==="right"&&(h="left"),Object(P.a)({fixed:h},a)})}function u(o,f){var d=o.prefixCls,a=o.columns,h=o.children,g=o.expandable,p=o.expandedKeys,S=o.getRowKey,w=o.onTriggerExpand,B=o.expandIcon,b=o.rowExpandable,A=o.expandIconColumnIndex,l=o.direction,i=o.expandRowByClick,x=E.useMemo(function(){return a||r(h)},[a,h]),O=E.useMemo(function(){if(g){var R,k=A||0,H=x[k],J=(R={},Object(ue.a)(R,c.a,{className:"".concat(d,"-expand-icon-col")}),Object(ue.a)(R,"title",""),Object(ue.a)(R,"fixed",H?H.fixed:null),Object(ue.a)(R,"className","".concat(d,"-row-expand-icon-cell")),Object(ue.a)(R,"render",function(G,N,Q){var X=S(N,Q),te=p.has(X),oe=b?b(N):!0,me=B({prefixCls:d,expanded:te,expandable:oe,record:N,onExpand:w});return i?E.createElement("span",{onClick:function(_e){return _e.stopPropagation()}},me):me}),R),U=x.slice();return k>=0&&U.splice(k,0,J),U}return x},[g,x,S,p,B,l]),T=E.useMemo(function(){var R=O;return f&&(R=f(R)),R.length||(R=[{render:function(){return null}}]),R},[f,O,l]),D=E.useMemo(function(){return l==="rtl"?s(n(T)):n(T)},[T,l]);return[T,D]}we.b=u},wYyv:function(Ze,we,M){"use strict";const ue=(P,y,E)=>{const _=y<0?P.length+y:y;if(_>=0&&_<P.length){const C=E<0?P.length+E:E,[m]=P.splice(y,1);P.splice(C,0,m)}},Y=(P,y,E)=>(P=[...P],ue(P,y,E),P);Ze.exports=Y,Ze.exports.mutate=ue},wzkS:function(Ze,we,M){"use strict";M.d(we,"c",function(){return E}),M.d(we,"b",function(){return _}),M.d(we,"d",function(){return C}),M.d(we,"a",function(){return c}),M.d(we,"e",function(){return r});var ue=M("9og8"),Y=M("WmNS"),P=M.n(Y),y=M("ErOA");function E(n){return Object(y.c)("libraries/".concat(n,".json"))}function _(){return Object(y.c)("library_tags.json")}function C(n){return m.apply(this,arguments)}function m(){return m=Object(ue.a)(P.a.mark(function n(e){var s;return P.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Object(y.b)("attachments/".concat(e,".json"));case 2:return s=o.sent,o.abrupt("return",s.status===0);case 4:case"end":return o.stop()}},n)})),m.apply(this,arguments)}function c(n){return Object(y.f)("libraries.json",n)}function r(n,e){return Object(y.g)("libraries/".concat(n,".json"),e)}},x6Kt:function(Ze,we,M){var ue=M("y+Vt"),Y=M("VpOo"),P=M("nPnh"),y=P.subPixelOptimizeRect,E={},_=ue.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(C,m){var c,r,n,e;this.subPixelOptimize?(y(E,m,this.style),c=E.x,r=E.y,n=E.width,e=E.height,E.r=m.r,m=E):(c=m.x,r=m.y,n=m.width,e=m.height),m.r?Y.buildPath(C,m):C.rect(c,r,n,e),C.closePath();return}});Ze.exports=_},"y+Vt":function(Ze,we,M){var ue=M("Gev7"),Y=M("bYtY"),P=M("IMiH"),y=M("2DNl"),E=M("3C/r"),_=E.prototype.getCanvasPattern,C=Math.abs,m=new P(!0);function c(n){ue.call(this,n),this.path=null}c.prototype={constructor:c,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(n,e){var s=this.style,u=this.path||m,o=s.hasStroke(),f=s.hasFill(),d=s.fill,a=s.stroke,h=f&&!!d.colorStops,g=o&&!!a.colorStops,p=f&&!!d.image,S=o&&!!a.image;if(s.bind(n,this,e),this.setTransform(n),this.__dirty){var w;h&&(w=w||this.getBoundingRect(),this._fillGradient=s.getGradient(n,d,w)),g&&(w=w||this.getBoundingRect(),this._strokeGradient=s.getGradient(n,a,w))}h?n.fillStyle=this._fillGradient:p&&(n.fillStyle=_.call(d,n)),g?n.strokeStyle=this._strokeGradient:S&&(n.strokeStyle=_.call(a,n));var B=s.lineDash,b=s.lineDashOffset,A=!!n.setLineDash,l=this.getGlobalScale();if(u.setScale(l[0],l[1],this.segmentIgnoreThreshold),this.__dirtyPath||B&&!A&&o?(u.beginPath(n),B&&!A&&(u.setLineDash(B),u.setLineDashOffset(b)),this.buildPath(u,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(n.beginPath(),this.path.rebuildPath(n)),f)if(s.fillOpacity!=null){var i=n.globalAlpha;n.globalAlpha=s.fillOpacity*s.opacity,u.fill(n),n.globalAlpha=i}else u.fill(n);if(B&&A&&(n.setLineDash(B),n.lineDashOffset=b),o)if(s.strokeOpacity!=null){var i=n.globalAlpha;n.globalAlpha=s.strokeOpacity*s.opacity,u.stroke(n),n.globalAlpha=i}else u.stroke(n);B&&A&&n.setLineDash([]),s.text!=null&&(this.restoreTransform(n),this.drawRectText(n,this.getBoundingRect()))},buildPath:function(n,e,s){},createPathProxy:function(){this.path=new P},getBoundingRect:function(){var n=this._rect,e=this.style,s=!n;if(s){var u=this.path;u||(u=this.path=new P),this.__dirtyPath&&(u.beginPath(),this.buildPath(u,this.shape,!1)),n=u.getBoundingRect()}if(this._rect=n,e.hasStroke()){var o=this._rectWithStroke||(this._rectWithStroke=n.clone());if(this.__dirty||s){o.copy(n);var f=e.lineWidth,d=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(f=Math.max(f,this.strokeContainThreshold||4)),d>1e-10&&(o.width+=f/d,o.height+=f/d,o.x-=f/d/2,o.y-=f/d/2)}return o}return n},contain:function(n,e){var s=this.transformCoordToLocal(n,e),u=this.getBoundingRect(),o=this.style;if(n=s[0],e=s[1],u.contain(n,e)){var f=this.path.data;if(o.hasStroke()){var d=o.lineWidth,a=o.strokeNoScale?this.getLineScale():1;if(a>1e-10&&(o.hasFill()||(d=Math.max(d,this.strokeContainThreshold)),y.containStroke(f,d/a,n,e)))return!0}if(o.hasFill())return y.contain(f,n,e)}return!1},dirty:function(n){n==null&&(n=!0),n&&(this.__dirtyPath=n,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(n){return this.animate("shape",n)},attrKV:function(n,e){n==="shape"?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):ue.prototype.attrKV.call(this,n,e)},setShape:function(n,e){var s=this.shape;if(s){if(Y.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&&C(n[0]-1)>1e-10&&C(n[3]-1)>1e-10?Math.sqrt(C(n[0]*n[3]-n[2]*n[1])):1}},c.extend=function(n){var e=function(u){c.call(this,u),n.style&&this.style.extendFrom(n.style,!1);var o=n.shape;if(o){this.shape=this.shape||{};var f=this.shape;for(var d in o)!f.hasOwnProperty(d)&&o.hasOwnProperty(d)&&(f[d]=o[d])}n.init&&n.init.call(this,u)};Y.inherits(e,c);for(var s in n)s!=="style"&&s!=="shape"&&(e.prototype[s]=n[s]);return e},Y.inherits(c,ue);var r=c;Ze.exports=r},"y0+3":function(Ze,we,M){"use strict";M.d(we,"a",function(){return n}),M.d(we,"b",function(){return s});var ue=/margin|padding|width|height|max|min|offset/,Y={left:!0,top:!0},P={cssFloat:1,styleFloat:1,float:1};function y(u){return u.nodeType===1?u.ownerDocument.defaultView.getComputedStyle(u,null):{}}function E(u,o,f){if(o=o.toLowerCase(),f==="auto"){if(o==="height")return u.offsetHeight;if(o==="width")return u.offsetWidth}return o in Y||(Y[o]=ue.test(o)),Y[o]?parseFloat(f)||0:f}function _(u,o){var f=arguments.length,d=y(u);return o=P[o]?"cssFloat"in u.style?"cssFloat":"styleFloat":o,f===1?d:E(u,o,d[o]||u.style[o])}function C(u,o,f){var d=arguments.length;if(o=P[o]?"cssFloat"in u.style?"cssFloat":"styleFloat":o,d===3)return typeof f=="number"&&ue.test(o)&&(f="".concat(f,"px")),u.style[o]=f,f;for(var a in o)o.hasOwnProperty(a)&&C(u,a,o[a]);return y(u)}function m(u){return u===document.body?document.documentElement.clientWidth:u.offsetWidth}function c(u){return u===document.body?window.innerHeight||document.documentElement.clientHeight:u.offsetHeight}function r(){var u=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),o=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:u,height:o}}function n(){var u=document.documentElement.clientWidth,o=window.innerHeight||document.documentElement.clientHeight;return{width:u,height:o}}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 o=u.getBoundingClientRect(),f=document.documentElement;return{left:o.left+(window.pageXOffset||f.scrollLeft)-(f.clientLeft||document.body.clientLeft||0),top:o.top+(window.pageYOffset||f.scrollTop)-(f.clientTop||document.body.clientTop||0)}}},"y1J/":function(Ze,we,M){Ze.exports=M.p+"static/yz.688d901a.png"},y23F:function(Ze,we){function M(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}M.prototype={constructor:M,_dragStart:function(P){for(var y=P.target;y&&!y.draggable;)y=y.parent;y&&(this._draggingTarget=y,y.dragging=!0,this._x=P.offsetX,this._y=P.offsetY,this.dispatchToElement(ue(y,P),"dragstart",P.event))},_drag:function(P){var y=this._draggingTarget;if(y){var E=P.offsetX,_=P.offsetY,C=E-this._x,m=_-this._y;this._x=E,this._y=_,y.drift(C,m,P),this.dispatchToElement(ue(y,P),"drag",P.event);var c=this.findHover(E,_,y).target,r=this._dropTarget;this._dropTarget=c,y!==c&&(r&&c!==r&&this.dispatchToElement(ue(r,P),"dragleave",P.event),c&&c!==r&&this.dispatchToElement(ue(c,P),"dragenter",P.event))}},_dragEnd:function(P){var y=this._draggingTarget;y&&(y.dragging=!1),this.dispatchToElement(ue(y,P),"dragend",P.event),this._dropTarget&&this.dispatchToElement(ue(this._dropTarget,P),"drop",P.event),this._draggingTarget=null,this._dropTarget=null}};function ue(P,y){return{target:P,topTarget:y&&y.topTarget}}var Y=M;Ze.exports=Y},y5JW:function(Ze,we,M){"use strict";M.d(we,"c",function(){return f}),M.d(we,"a",function(){return d});var ue=M("DZo9"),Y=M("8z0m"),P=M("+L6B"),y=M("2/Rp"),E=M("9og8"),_=M("k1fw"),C=M("oBTY"),m=M("miYZ"),c=M("tsqr"),r=M("WmNS"),n=M.n(r),e=M("q1tI"),s=M.n(e),u=M("m3rI"),o=M("wzkS"),f="\u3000\u3000";function d(a){var h=["Bytes","KB","MB","GB","TB"];if(a==0)return"0 Byte";var g=parseInt(""+Math.floor(Math.log(a)/Math.log(1024)),10);return(a/Math.pow(1024,g)).toFixed(1)+" "+h[g]}we.b=function(a){var h=a.value,g=h===void 0?[]:h,p=a.action,S=a.onChange,w=a.className,B=a.maxSize,b=B===void 0?150:B,A=a.title,l=A===void 0?"\u6587\u4EF6\u4E0A\u4F20":A,i=a.accept,x=i===void 0?null:i,O={multiple:!1,fileList:g,accept:x,withCredentials:!0,beforeUpload:function(R){var k=R.size/1024/1024;return k<b?!0:(c.b.error("\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(".concat(b,"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 k=Object(C.a)(R.fileList);k=k.map(function(H){return H.name.indexOf(f)===-1&&(H.name="".concat(H.name).concat(f).concat(d(H.size))),Object(_.a)({},H)}),S(k)},onRemove:function(){var D=Object(E.a)(n.a.mark(function k(H){var J,U,K;return n.a.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(J=H.size/1024/1024,!(H.status==="uploading")){N.next=3;break}return N.abrupt("return",!0);case 3:if(J<b){N.next=7;break}return N.abrupt("return",!0);case 7:if(U=H.response?H.response.id:H.uid,!U){N.next=15;break}return N.next=11,Object(o.d)(H.response?H.response.id:H.id);case 11:return K=N.sent,N.abrupt("return",K);case 15:return N.abrupt("return",!0);case 16:case"end":return N.stop()}},k)}));function R(k){return D.apply(this,arguments)}return R}()};function T(D){D.preventDefault(),D.stopPropagation()}return s.a.createElement("div",{className:"single-upload ".concat(w||"")},s.a.createElement(Y.a,O,s.a.createElement(y.a,{type:"primary",title:g.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:g.length>0,ghost:!0},l),s.a.createElement("span",{onClick:T,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",b,"M) ")))}},yslc:function(Ze,we){Ze.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(Ze,we,M){var ue=M("y+Vt"),Y=M("nPnh"),P=Y.subPixelOptimizeLine,y={},E=ue.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(_,C){var m,c,r,n;this.subPixelOptimize?(P(y,C,this.style),m=y.x1,c=y.y1,r=y.x2,n=y.y2):(m=C.x1,c=C.y1,r=C.x2,n=C.y2);var e=C.percent;if(e===0)return;_.moveTo(m,c),e<1&&(r=m*(1-e)+r*e,n=c*(1-e)+n*e),_.lineTo(r,n)},pointAt:function(_){var C=this.shape;return[C.x1*(1-_)+C.x2*_,C.y1*(1-_)+C.y2*_]}});Ze.exports=E},zarK:function(Ze,we,M){var ue=M("YH21"),Y=ue.addEventListener,P=ue.removeEventListener,y=ue.normalizeEvent,E=ue.getNativeEvent,_=M("bYtY"),C=M("H6uX"),m=M("ItGF"),c=300,r=m.domSupported,n=function(){var D=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],R=["touchstart","touchend","touchmove"],k={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},H=_.map(D,function(J){var U=J.replace("mouse","pointer");return k.hasOwnProperty(U)?U:J});return{mouse:D,touch:R,pointer:H}}(),e={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function s(D){return D==="mousewheel"&&m.browser.firefox?"DOMMouseScroll":D}function u(D){var R=D.pointerType;return R==="pen"||R==="touch"}function o(D){D.touching=!0,D.touchTimer!=null&&(clearTimeout(D.touchTimer),D.touchTimer=null),D.touchTimer=setTimeout(function(){D.touching=!1,D.touchTimer=null},700)}function f(D){D&&(D.zrByTouch=!0)}function d(D,R){return y(D.dom,new h(D,R),!0)}function a(D,R){for(var k=R,H=!1;k&&k.nodeType!==9&&!(H=k.domBelongToZr||k!==R&&k===D.painterRoot);)k=k.parentNode;return H}function h(D,R){this.type=R.type,this.target=this.currentTarget=D.dom,this.pointerType=R.pointerType,this.clientX=R.clientX,this.clientY=R.clientY}var g=h.prototype;g.stopPropagation=g.stopImmediatePropagation=g.preventDefault=_.noop;var p={mousedown:function(D){D=y(this.dom,D),this._mayPointerCapture=[D.zrX,D.zrY],this.trigger("mousedown",D)},mousemove:function(D){D=y(this.dom,D);var R=this._mayPointerCapture;R&&(D.zrX!==R[0]||D.zrY!==R[1])&&l(this,!0),this.trigger("mousemove",D)},mouseup:function(D){D=y(this.dom,D),l(this,!1),this.trigger("mouseup",D)},mouseout:function(D){D=y(this.dom,D),this._pointerCapturing&&(D.zrEventControl="no_globalout");var R=D.toElement||D.relatedTarget;D.zrIsToLocalDOM=a(this,R),this.trigger("mouseout",D)},touchstart:function(D){D=y(this.dom,D),f(D),this._lastTouchMoment=new Date,this.handler.processGesture(D,"start"),p.mousemove.call(this,D),p.mousedown.call(this,D)},touchmove:function(D){D=y(this.dom,D),f(D),this.handler.processGesture(D,"change"),p.mousemove.call(this,D)},touchend:function(D){D=y(this.dom,D),f(D),this.handler.processGesture(D,"end"),p.mouseup.call(this,D),+new Date-this._lastTouchMoment<c&&p.click.call(this,D)},pointerdown:function(D){p.mousedown.call(this,D)},pointermove:function(D){u(D)||p.mousemove.call(this,D)},pointerup:function(D){p.mouseup.call(this,D)},pointerout:function(D){u(D)||p.mouseout.call(this,D)}};_.each(["click","mousewheel","dblclick","contextmenu"],function(D){p[D]=function(R){R=y(this.dom,R),this.trigger(D,R)}});var S={pointermove:function(D){u(D)||S.mousemove.call(this,D)},pointerup:function(D){S.mouseup.call(this,D)},mousemove:function(D){this.trigger("mousemove",D)},mouseup:function(D){var R=this._pointerCapturing;l(this,!1),this.trigger("mouseup",D),R&&(D.zrEventControl="only_globalout",this.trigger("mouseout",D))}};function w(D,R){var k=R.domHandlers;m.pointerEventsSupported?_.each(n.pointer,function(H){b(R,H,function(J){k[H].call(D,J)})}):(m.touchEventsSupported&&_.each(n.touch,function(H){b(R,H,function(J){k[H].call(D,J),o(R)})}),_.each(n.mouse,function(H){b(R,H,function(J){J=E(J),R.touching||k[H].call(D,J)})}))}function B(D,R){m.pointerEventsSupported?_.each(e.pointer,k):m.touchEventsSupported||_.each(e.mouse,k);function k(H){function J(U){U=E(U),a(D,U.target)||(U=d(D,U),R.domHandlers[H].call(D,U))}b(R,H,J,{capture:!0})}}function b(D,R,k,H){D.mounted[R]=k,D.listenerOpts[R]=H,Y(D.domTarget,s(R),k,H)}function A(D){var R=D.mounted;for(var k in R)R.hasOwnProperty(k)&&P(D.domTarget,s(k),R[k],D.listenerOpts[k]);D.mounted={}}function l(D,R){if(D._mayPointerCapture=null,r&&D._pointerCapturing^R){D._pointerCapturing=R;var k=D._globalHandlerScope;R?B(D,k):A(k)}}function i(D,R){this.domTarget=D,this.domHandlers=R,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function x(D,R){C.call(this),this.dom=D,this.painterRoot=R,this._localHandlerScope=new i(D,p),r&&(this._globalHandlerScope=new i(document,S)),this._pointerCapturing=!1,this._mayPointerCapture=null,w(this,this._localHandlerScope)}var O=x.prototype;O.dispose=function(){A(this._localHandlerScope),r&&A(this._globalHandlerScope)},O.setCursor=function(D){this.dom.style&&(this.dom.style.cursor=D||"default")},_.mixin(x,C);var T=x;Ze.exports=T}}]);