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.904a83...

485 lines
2.1 MiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[203,3,5,6,7,8,9,11,14,18,21],{"+NIl":function(Be,ee,v){(function(Z){Z(v("VrN/"))})(function(Z){"use strict";Z.defineMode("stex",function(Q,I){"use strict";function k(l,i){l.cmdState.push(i)}function _(l){return l.cmdState.length>0?l.cmdState[l.cmdState.length-1]:null}function O(l){var i=l.cmdState.pop();i&&i.closeBracket()}function M(l){for(var i=l.cmdState,c=i.length-1;c>=0;c--){var d=i[c];if(d.name=="DEFAULT")continue;return d}return{styleIdentifier:function(){return null}}}function T(l,i,c){return function(){this.name=l,this.bracketNo=0,this.style=i,this.styles=c,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var n={};n.importmodule=T("importmodule","tag",["string","builtin"]),n.documentclass=T("documentclass","tag",["","atom"]),n.usepackage=T("usepackage","tag",["atom"]),n.begin=T("begin","tag",["atom"]),n.end=T("end","tag",["atom"]),n.label=T("label","tag",["atom"]),n.ref=T("ref","tag",["atom"]),n.eqref=T("eqref","tag",["atom"]),n.cite=T("cite","tag",["atom"]),n.bibitem=T("bibitem","tag",["atom"]),n.Bibitem=T("Bibitem","tag",["atom"]),n.RBibitem=T("RBibitem","tag",["atom"]),n.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function p(l,i){l.f=i}function a(l,i){var c;if(l.match(/^\\[a-zA-Z@]+/)){var d=l.current().slice(1);return c=n.hasOwnProperty(d)?n[d]:n.DEFAULT,c=new c,k(i,c),p(i,A),c.style}if(l.match(/^\\[$&%#{}_]/))return"tag";if(l.match(/^\\[,;!\/\\]/))return"tag";if(l.match("\\["))return p(i,function(o,u){return t(o,u,"\\]")}),"keyword";if(l.match("\\("))return p(i,function(o,u){return t(o,u,"\\)")}),"keyword";if(l.match("$$"))return p(i,function(o,u){return t(o,u,"$$")}),"keyword";if(l.match("$"))return p(i,function(o,u){return t(o,u,"$")}),"keyword";var f=l.next();if(f=="%")return l.skipToEnd(),"comment";if(f=="}"||f=="]"){if(c=_(i),c)c.closeBracket(f),p(i,A);else return"error";return"bracket"}else return f=="{"||f=="["?(c=n.DEFAULT,c=new c,k(i,c),"bracket"):/\d/.test(f)?(l.eatWhile(/[\w.%]/),"atom"):(l.eatWhile(/[\w\-_]/),c=M(i),c.name=="begin"&&(c.argument=l.current()),c.styleIdentifier())}function t(l,i,c){if(l.eatSpace())return null;if(c&&l.match(c))return p(i,a),"keyword";if(l.match(/^\\[a-zA-Z@]+/))return"tag";if(l.match(/^[a-zA-Z]+/))return"variable-2";if(l.match(/^\\[$&%#{}_]/))return"tag";if(l.match(/^\\[,;!\/]/))return"tag";if(l.match(/^[\^_&]/))return"tag";if(l.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(l.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var d=l.next();return d=="{"||d=="}"||d=="["||d=="]"||d=="("||d==")"?"bracket":d=="%"?(l.skipToEnd(),"comment"):"error"}function A(l,i){var c=l.peek(),d;return c=="{"||c=="["?(d=_(i),d.openBracket(c),l.eat(c),p(i,a),"bracket"):/[ \t\r]/.test(c)?(l.eat(c),null):(p(i,a),O(i),a(l,i))}return{startState:function(){var l=I.inMathMode?function(i,c){return t(i,c)}:a;return{cmdState:[],f:l}},copyState:function(l){return{cmdState:l.cmdState.slice(),f:l.f}},token:function(l,i){return i.f(l,i)},blankLine:function(l){l.f=a,l.cmdState.length=0},lineComment:"%"}}),Z.defineMIME("text/x-stex","stex"),Z.defineMIME("text/x-latex","stex")})},"+QRC":function(Be,ee,v){"use strict";var Z=v("E9nw"),Q={"text/plain":"Text","text/html":"Url",default:"Text"},I="Copy to clipboard: #{key}, Enter";function k(O){var M=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return O.replace(/#{\s*key\s*}/g,M)}function _(O,M){var T,n,p,a,t,A,l=!1;M||(M={}),T=M.debug||!1;try{p=Z(),a=document.createRange(),t=document.getSelection(),A=document.createElement("span"),A.textContent=O,A.style.all="unset",A.style.position="fixed",A.style.top=0,A.style.clip="rect(0, 0, 0, 0)",A.style.whiteSpace="pre",A.style.webkitUserSelect="text",A.style.MozUserSelect="text",A.style.msUserSelect="text",A.style.userSelect="text",A.addEventListener("copy",function(c){if(c.stopPropagation(),M.format)if(c.preventDefault(),typeof c.clipboardData=="undefined"){T&&console.warn("unable to use e.clipboardData"),T&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var d=Q[M.format]||Q.default;window.clipboardData.setData(d,O)}else c.clipboardData.clearData(),c.clipboardData.setData(M.format,O);M.onCopy&&(c.preventDefault(),M.onCopy(c.clipboardData))}),document.body.appendChild(A),a.selectNodeContents(A),t.addRange(a);var i=document.execCommand("copy");if(!i)throw new Error("copy command was unsuccessful");l=!0}catch(c){T&&console.error("unable to copy using execCommand: ",c),T&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(M.format||"text",O),M.onCopy&&M.onCopy(window.clipboardData),l=!0}catch(d){T&&console.error("unable to copy using clipboardData: ",d),T&&console.error("falling back to prompt"),n=k("message"in M?M.message:I),window.prompt(n,O)}}finally{t&&(typeof t.removeRange=="function"?t.removeRange(a):t.removeAllRanges()),A&&document.body.removeChild(A),p()}return l}Be.exports=_},"+ua5":function(Be,ee,v){},"/GNS":function(Be,ee,v){Be.exports=v.p+"static/search1.c4136dd4.png"},"/cxE":function(Be,ee,v){"use strict";v.d(ee,"f",function(){return I}),v.d(ee,"g",function(){return k}),v.d(ee,"h",function(){return _}),v.d(ee,"e",function(){return M}),v.d(ee,"b",function(){return T}),v.d(ee,"c",function(){return n}),v.d(ee,"d",function(){return p}),v.d(ee,"a",function(){return a});class Z{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?new Error(t.message+`
`+t.stack):t},0)}}emit(t){this.listeners.forEach(A=>{A(t)})}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}}const Q=new Z;function I(t){M(t)||Q.onUnexpectedError(t);return}function k(t){M(t)||Q.onUnexpectedExternalError(t);return}function _(t){if(t instanceof Error){let{name:A,message:l}=t;const i=t.stacktrace||t.stack;return{$isError:!0,name:A,message:l,stack:i}}return t}const O="Canceled";function M(t){return t instanceof Error&&t.name===O&&t.message===O}function T(){const t=new Error(O);return t.name=t.message,t}function n(t){return t?new Error(`Illegal argument: ${t}`):new Error("Illegal argument")}function p(t){return t?new Error(`Illegal state: ${t}`):new Error("Illegal state")}class a extends Error{constructor(t){super("NotSupported");t&&(this.message=t)}}},"06Qe":function(Be,ee,v){var Z=v("ItGF"),Q="urn:schemas-microsoft-com:vml",I=typeof window=="undefined"?null:window,k=!1,_=I&&I.document;function O(n){return M(n)}var M;if(_&&!Z.canvasSupported)try{!_.namespaces.zrvml&&_.namespaces.add("zrvml",Q),M=function(n){return _.createElement("<zrvml:"+n+' class="zrvml">')}}catch(n){M=function(p){return _.createElement("<"+p+' xmlns="'+Q+'" class="zrvml">')}}function T(){if(k||!_)return;k=!0;var n=_.styleSheets;n.length<31?_.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):n[0].addRule(".zrvml","behavior:url(#default#VML)")}ee.doc=_,ee.createNode=O,ee.initVML=T},"07cG":function(Be,ee,v){Be.exports={ldsRing:"ldsRing___2F8W7",idsRingWrapper:"idsRingWrapper___fC2cF",ldsring:"ldsring___3A88y"}},"0s+r":function(Be,ee,v){var Z=v("bYtY"),Q=v("QBsz"),I=v("y23F"),k=v("H6uX"),_=v("YH21"),O=v("C0SR"),M="silent";function T(c,d,f){return{type:c,event:f,target:d.target,topTarget:d.topTarget,cancelBubble:!1,offsetX:f.zrX,offsetY:f.zrY,gestureEvent:f.gestureEvent,pinchX:f.pinchX,pinchY:f.pinchY,pinchScale:f.pinchScale,wheelDelta:f.zrDelta,zrByTouch:f.zrByTouch,which:f.which,stop:n}}function n(){_.stop(this.event)}function p(){}p.prototype.dispose=function(){};var a=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=function(c,d,f,o){k.call(this),this.storage=c,this.painter=d,this.painterRoot=o,f=f||new p,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,I.call(this),this.setHandlerProxy(f)};t.prototype={constructor:t,setHandlerProxy:function(c){this.proxy&&this.proxy.dispose(),c&&(Z.each(a,function(d){c.on&&c.on(d,this[d],this)},this),c.handler=this),this.proxy=c},mousemove:function(c){var d=c.zrX,f=c.zrY,o=l(this,d,f),u=this._hovered,E=u.target;E&&!E.__zr&&(u=this.findHover(u.x,u.y),E=u.target);var R=this._hovered=o?{x:d,y:f}:this.findHover(d,f),w=R.target,P=this.proxy;P.setCursor&&P.setCursor(w?w.cursor:"default"),E&&w!==E&&this.dispatchToElement(u,"mouseout",c),this.dispatchToElement(R,"mousemove",c),w&&w!==E&&this.dispatchToElement(R,"mouseover",c)},mouseout:function(c){var d=c.zrEventControl,f=c.zrIsToLocalDOM;d!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",c),d!=="no_globalout"&&(!f&&this.trigger("globalout",{type:"globalout",event:c}))},resize:function(c){this._hovered={}},dispatch:function(c,d){var f=this[c];f&&f.call(this,d)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(c){var d=this.proxy;d.setCursor&&d.setCursor(c)},dispatchToElement:function(c,d,f){c=c||{};var o=c.target;if(o&&o.silent)return;for(var u="on"+d,E=T(d,c,f);o&&!(o[u]&&(E.cancelBubble=o[u].call(o,E)),o.trigger(d,E),o=o.parent,E.cancelBubble););E.cancelBubble||(this.trigger(d,E),this.painter&&this.painter.eachOtherLayer(function(R){typeof R[u]=="function"&&R[u].call(R,E),R.trigger&&R.trigger(d,E)}))},findHover:function(c,d,f){for(var o=this.storage.getDisplayList(),u={x:c,y:d},E=o.length-1;E>=0;E--){var R;if(o[E]!==f&&!o[E].ignore&&(R=A(o[E],c,d))&&(!u.topTarget&&(u.topTarget=o[E]),R!==M)){u.target=o[E];break}}return u},processGesture:function(c,d){this._gestureMgr||(this._gestureMgr=new O);var f=this._gestureMgr;d==="start"&&f.clear();var o=f.recognize(c,this.findHover(c.zrX,c.zrY,null).target,this.proxy.dom);if(d==="end"&&f.clear(),o){var u=o.type;c.gestureEvent=u,this.dispatchToElement({target:o.target},u,o.event)}}},Z.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(c){t.prototype[c]=function(d){var f=d.zrX,o=d.zrY,u=l(this,f,o),E,R;if((c!=="mouseup"||!u)&&(E=this.findHover(f,o),R=E.target),c==="mousedown")this._downEl=R,this._downPoint=[d.zrX,d.zrY],this._upEl=R;else if(c==="mouseup")this._upEl=R;else if(c==="click"){if(this._downEl!==this._upEl||!this._downPoint||Q.dist(this._downPoint,[d.zrX,d.zrY])>4)return;this._downPoint=null}this.dispatchToElement(E,c,d)}});function A(c,d,f){if(c[c.rectHover?"rectContain":"contain"](d,f)){for(var o=c,u;o;){if(o.clipPath&&!o.clipPath.contain(d,f))return!1;o.silent&&(u=!0),o=o.parent}return u?M:!0}return!1}function l(c,d,f){var o=c.painter;return d<0||d>o.getWidth()||f<0||f>o.getHeight()}Z.mixin(t,k),Z.mixin(t,I);var i=t;Be.exports=i},"19Vz":function(Be,ee,v){(function(Z){Z(v("VrN/"))})(function(Z){Z.defineOption("placeholder","",function(T,n,p){var a=p&&p!=Z.Init;if(n&&!a)T.on("blur",_),T.on("change",O),T.on("swapDoc",O),Z.on(T.getInputField(),"compositionupdate",T.state.placeholderCompose=function(){k(T)}),O(T);else if(!n&&a){T.off("blur",_),T.off("change",O),T.off("swapDoc",O),Z.off(T.getInputField(),"compositionupdate",T.state.placeholderCompose),Q(T);var t=T.getWrapperElement();t.className=t.className.replace(" CodeMirror-empty","")}n&&!T.hasFocus()&&_(T)});function Q(T){T.state.placeholder&&(T.state.placeholder.parentNode.removeChild(T.state.placeholder),T.state.placeholder=null)}function I(T){Q(T);var n=T.state.placeholder=document.createElement("pre");n.style.cssText="height: 0; overflow: visible",n.style.direction=T.getOption("direction"),n.className="CodeMirror-placeholder CodeMirror-line-like";var p=T.getOption("placeholder");typeof p=="string"&&(p=document.createTextNode(p)),n.appendChild(p),T.display.lineSpace.insertBefore(n,T.display.lineSpace.firstChild)}function k(T){setTimeout(function(){var n=!1,p=T.getInputField();p.nodeName=="TEXTAREA"?n=!p.value:T.lineCount()==1&&(n=!/[^\u200b]/.test(p.querySelector(".CodeMirror-line").textContent)),n?I(T):Q(T)},20)}function _(T){M(T)&&I(T)}function O(T){var n=T.getWrapperElement(),p=M(T);n.className=n.className.replace(" CodeMirror-empty","")+(p?" CodeMirror-empty":""),p?I(T):Q(T)}function M(T){return T.lineCount()===1&&T.getLine(0)===""}})},"1Jh7":function(Be,ee,v){var Z=v("y+Vt"),Q=v("T6xi"),I=Z.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(k,_){Q.buildPath(k,_,!1)}});Be.exports=I},"1MYJ":function(Be,ee,v){var Z=v("y+Vt"),Q=Z.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var I=this.__dirtyPath,k=this.shape.paths,_=0;_<k.length;_++)I=I||k[_].__dirtyPath;this.__dirtyPath=I,this.__dirty=this.__dirty||I},beforeBrush:function(){this._updatePathDirty();for(var I=this.shape.paths||[],k=this.getGlobalScale(),_=0;_<I.length;_++)I[_].path||I[_].createPathProxy(),I[_].path.setScale(k[0],k[1],I[_].segmentIgnoreThreshold)},buildPath:function(I,k){for(var _=k.paths||[],O=0;O<_.length;O++)_[O].buildPath(I,_[O].shape,!0)},afterBrush:function(){for(var I=this.shape.paths||[],k=0;k<I.length;k++)I[k].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),Z.prototype.getBoundingRect.call(this)}});Be.exports=Q},"1RvN":function(Be,ee){var v=function(){this.head=null,this.tail=null,this._len=0},Z=v.prototype;Z.insert=function(O){var M=new Q(O);return this.insertEntry(M),M},Z.insertEntry=function(O){this.head?(this.tail.next=O,O.prev=this.tail,O.next=null,this.tail=O):this.head=this.tail=O,this._len++},Z.remove=function(O){var M=O.prev,T=O.next;M?M.next=T:this.head=T,T?T.prev=M:this.tail=M,O.next=O.prev=null,this._len--},Z.len=function(){return this._len},Z.clear=function(){this.head=this.tail=null,this._len=0};var Q=function(O){this.value=O,this.next,this.prev},I=function(O){this._list=new v,this._map={},this._maxSize=O||10,this._lastRemovedEntry=null},k=I.prototype;k.put=function(O,M){var T=this._list,n=this._map,p=null;if(n[O]==null){var a=T.len(),t=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var A=T.head;T.remove(A),delete n[A.key],p=A.value,this._lastRemovedEntry=A}t?t.value=M:t=new Q(M),t.key=O,T.insertEntry(t),n[O]=t}return p},k.get=function(O){var M=this._map[O],T=this._list;if(M!=null)return M!==T.tail&&(T.remove(M),T.insertEntry(M)),M.value},k.clear=function(){this._list.clear(),this._map={}};var _=I;Be.exports=_},"1bdT":function(Be,ee,v){var Z=v("3gBT"),Q=v("H6uX"),I=v("DN4a"),k=v("vWvF"),_=v("bYtY"),O=function(T){I.call(this,T),Q.call(this,T),k.call(this,T),this.id=T.id||Z()};O.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(T,n){switch(this.draggable){case"horizontal":n=0;break;case"vertical":T=0;break}var p=this.transform;p||(p=this.transform=[1,0,0,1,0,0]),p[4]+=T,p[5]+=n,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(T,n){},attrKV:function(T,n){if(T==="position"||T==="scale"||T==="origin"){if(n){var p=this[T];p||(p=this[T]=[]),p[0]=n[0],p[1]=n[1]}}else this[T]=n},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(T,n){if(typeof T=="string")this.attrKV(T,n);else if(_.isObject(T))for(var p in T)T.hasOwnProperty(p)&&this.attrKV(p,T[p]);return this.dirty(!1),this},setClipPath:function(T){var n=this.__zr;n&&T.addSelfToZr(n),this.clipPath&&this.clipPath!==T&&this.removeClipPath(),this.clipPath=T,T.__zr=n,T.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var T=this.clipPath;T&&(T.__zr&&T.removeSelfFromZr(T.__zr),T.__zr=null,T.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(T){this.__zr=T;var n=this.animators;if(n)for(var p=0;p<n.length;p++)T.animation.addAnimator(n[p]);this.clipPath&&this.clipPath.addSelfToZr(T)},removeSelfFromZr:function(T){this.__zr=null;var n=this.animators;if(n)for(var p=0;p<n.length;p++)T.animation.removeAnimator(n[p]);this.clipPath&&this.clipPath.removeSelfFromZr(T)}},_.mixin(O,k),_.mixin(O,I),_.mixin(O,Q);var M=O;Be.exports=M},"1eCo":function(Be,ee,v){(function(Z){Z(v("VrN/"))})(function(Z){"use strict";var Q={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},I={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Z.defineMode("xml",function(k,_){var O=k.indentUnit,M={},T=_.htmlMode?Q:I;for(var n in T)M[n]=T[n];for(var n in _)M[n]=_[n];var p,a;function t(m,x){function g(N){return x.tokenize=N,N(m,x)}var y=m.next();if(y=="<")return m.eat("!")?m.eat("[")?m.match("CDATA[")?g(i("atom","]]>")):null:m.match("--")?g(i("comment","-->")):m.match("DOCTYPE",!0,!0)?(m.eatWhile(/[\w\._\-]/),g(c(1))):null:m.eat("?")?(m.eatWhile(/[\w\._\-]/),x.tokenize=i("meta","?>"),"meta"):(p=m.eat("/")?"closeTag":"openTag",x.tokenize=A,"tag bracket");if(y=="&"){var U;return m.eat("#")?m.eat("x")?U=m.eatWhile(/[a-fA-F\d]/)&&m.eat(";"):U=m.eatWhile(/[\d]/)&&m.eat(";"):U=m.eatWhile(/[\w\.\-:]/)&&m.eat(";"),U?"atom":"error"}else return m.eatWhile(/[^&<]/),null}t.isInText=!0;function A(m,x){var g=m.next();if(g==">"||g=="/"&&m.eat(">"))return x.tokenize=t,p=g==">"?"endTag":"selfcloseTag","tag bracket";if(g=="=")return p="equals",null;if(g=="<"){x.tokenize=t,x.state=u,x.tagName=x.tagStart=null;var y=x.tokenize(m,x);return y?y+" tag error":"tag error"}else return/[\'\"]/.test(g)?(x.tokenize=l(g),x.stringStartCol=m.column(),x.tokenize(m,x)):(m.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function l(m){var x=function(g,y){for(;!g.eol();)if(g.next()==m){y.tokenize=A;break}return"string"};return x.isInAttribute=!0,x}function i(m,x){return function(g,y){for(;!g.eol();){if(g.match(x)){y.tokenize=t;break}g.next()}return m}}function c(m){return function(x,g){for(var y;(y=x.next())!=null;){if(y=="<")return g.tokenize=c(m+1),g.tokenize(x,g);if(y==">")if(m==1){g.tokenize=t;break}else return g.tokenize=c(m-1),g.tokenize(x,g)}return"meta"}}function d(m,x,g){this.prev=m.context,this.tagName=x,this.indent=m.indented,this.startOfLine=g,(M.doNotIndent.hasOwnProperty(x)||m.context&&m.context.noIndent)&&(this.noIndent=!0)}function f(m){m.context&&(m.context=m.context.prev)}function o(m,x){for(var g;;){if(!m.context)return;if(g=m.context.tagName,!M.contextGrabbers.hasOwnProperty(g)||!M.contextGrabbers[g].hasOwnProperty(x))return;f(m)}}function u(m,x,g){return m=="openTag"?(g.tagStart=x.column(),E):m=="closeTag"?R:u}function E(m,x,g){return m=="word"?(g.tagName=x.current(),a="tag",C):M.allowMissingTagName&&m=="endTag"?(a="tag bracket",C(m,x,g)):(a="error",E)}function R(m,x,g){if(m=="word"){var y=x.current();return g.context&&g.context.tagName!=y&&M.implicitlyClosed.hasOwnProperty(g.context.tagName)&&f(g),g.context&&g.context.tagName==y||M.matchClosing===!1?(a="tag",w):(a="tag error",P)}else return M.allowMissingTagName&&m=="endTag"?(a="tag bracket",w(m,x,g)):(a="error",P)}function w(m,x,g){return m!="endTag"?(a="error",w):(f(g),u)}function P(m,x,g){return a="error",w(m,x,g)}function C(m,x,g){if(m=="word")return a="attribute",b;if(m=="endTag"||m=="selfcloseTag"){var y=g.tagName,U=g.tagStart;return g.tagName=g.tagStart=null,m=="selfcloseTag"||M.autoSelfClosers.hasOwnProperty(y)?o(g,y):(o(g,y),g.context=new d(g,y,U==g.indented)),u}return a="error",C}function b(m,x,g){return m=="equals"?s:(M.allowMissing||(a="error"),C(m,x,g))}function s(m,x,g){return m=="string"?h:m=="word"&&M.allowUnquoted?(a="string",C):(a="error",C(m,x,g))}function h(m,x,g){return m=="string"?h:C(m,x,g)}return{startState:function(m){var x={tokenize:t,state:u,indented:m||0,tagName:null,tagStart:null,context:null};return m!=null&&(x.baseIndent=m),x},token:function(m,x){if(!x.tagName&&m.sol()&&(x.indented=m.indentation()),m.eatSpace())return null;p=null;var g=x.tokenize(m,x);return(g||p)&&g!="comment"&&(a=null,x.state=x.state(p||g,m,x),a&&(g=a=="error"?g+" error":a)),g},indent:function(m,x,g){var y=m.context;if(m.tokenize.isInAttribute)return m.tagStart==m.indented?m.stringStartCol+1:m.indented+O;if(y&&y.noIndent)return Z.Pass;if(m.tokenize!=A&&m.tokenize!=t)return g?g.match(/^(\s*)/)[0].length:0;if(m.tagName)return M.multilineTagIndentPastTag!==!1?m.tagStart+m.tagName.length+2:m.tagStart+O*(M.multilineTagIndentFactor||1);if(M.alignCDATA&&/<!\[CDATA\[/.test(x))return 0;var U=x&&/^<(\/)?([\w_:\.-]*)/.exec(x);if(U&&U[1])for(;y;)if(y.tagName==U[2]){y=y.prev;break}else if(M.implicitlyClosed.hasOwnProperty(y.tagName))y=y.prev;else break;else if(U)for(;y;){var N=M.contextGrabbers[y.tagName];if(N&&N.hasOwnProperty(U[2]))y=y.prev;else break}for(;y&&y.prev&&!y.startOfLine;)y=y.prev;return y?y.indent+O:m.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:M.htmlMode?"html":"xml",helperType:M.htmlMode?"html":"xml",skipAttribute:function(m){m.state==s&&(m.state=C)},xmlCurrentTag:function(m){return m.tagName?{name:m.tagName,close:m.type=="closeTag"}:null},xmlCurrentContext:function(m){for(var x=[],g=m.context;g;g=g.prev)g.tagName&&x.push(g.tagName);return x.reverse()}}}),Z.defineMIME("text/xml","xml"),Z.defineMIME("application/xml","xml"),Z.mimeModes.hasOwnProperty("text/html")||Z.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(Be,ee,v){"use strict";v.d(ee,"d",function(){return ct}),v.d(ee,"b",function(){return Xe}),v.d(ee,"c",function(){return Lt}),v.d(ee,"a",function(){return Zt});var Z=v("VTBJ"),Q=v("1OyB"),I=v("vuIU"),k=v("JX7q"),_=v("Ji7U"),O=v("LK+K"),M=v("q1tI"),T=v("I8Z2"),n=v("BGR+"),p=v("wx14"),a=v("rePB"),t=v("4IlW"),A=v("2GS6"),l=v("Gytx"),i=v.n(l),c=v("TSYQ"),d=v.n(c),f=v("U8pU"),o=v("ODXe"),u=/iPhone/i,E=/iPod/i,R=/iPad/i,w=/\bAndroid(?:.+)Mobile\b/i,P=/Android/i,C=/\bAndroid(?:.+)SD4930UR\b/i,b=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,s=/Windows Phone/i,h=/\bWindows(?:.+)ARM\b/i,m=/BlackBerry/i,x=/BB10/i,g=/Opera Mini/i,y=/\b(CriOS|Chrome)(?:.+)Mobile/i,U=/Mobile(?:.+)Firefox\b/i;function N(Ct,mt){return Ct.test(mt)}function S(Ct){var mt=Ct||(typeof navigator!="undefined"?navigator.userAgent:""),Je=mt.split("[FBAN");if(typeof Je[1]!="undefined"){var Qe=Je,Oe=Object(o.a)(Qe,1);mt=Oe[0]}if(Je=mt.split("Twitter"),typeof Je[1]!="undefined"){var je=Je,St=Object(o.a)(je,1);mt=St[0]}var bt={apple:{phone:N(u,mt)&&!N(s,mt),ipod:N(E,mt),tablet:!N(u,mt)&&N(R,mt)&&!N(s,mt),device:(N(u,mt)||N(E,mt)||N(R,mt))&&!N(s,mt)},amazon:{phone:N(C,mt),tablet:!N(C,mt)&&N(b,mt),device:N(C,mt)||N(b,mt)},android:{phone:!N(s,mt)&&N(C,mt)||!N(s,mt)&&N(w,mt),tablet:!N(s,mt)&&!N(C,mt)&&!N(w,mt)&&(N(b,mt)||N(P,mt)),device:!N(s,mt)&&(N(C,mt)||N(b,mt)||N(w,mt)||N(P,mt))||N(/\bokhttp\b/i,mt)},windows:{phone:N(s,mt),tablet:N(h,mt),device:N(s,mt)||N(h,mt)},other:{blackberry:N(m,mt),blackberry10:N(x,mt),opera:N(g,mt),firefox:N(U,mt),chrome:N(y,mt),device:N(m,mt)||N(x,mt)||N(g,mt)||N(U,mt)||N(y,mt)},any:null,phone:null,tablet:null};return bt.any=bt.apple.device||bt.android.device||bt.windows.device||bt.other.device,bt.phone=bt.apple.phone||bt.android.phone||bt.windows.phone,bt.tablet=bt.apple.tablet||bt.android.tablet||bt.windows.tablet,bt}var H=Object(Z.a)(Object(Z.a)({},S()),{},{isMobile:S}),F=H;function B(){}function z(Ct,mt,Je){var Qe=mt||"";return Ct.key||"".concat(Qe,"item_").concat(Je)}function K(Ct){return"".concat(Ct,"-menu-")}function $(Ct,mt){var Je=-1;M.Children.forEach(Ct,function(Qe){Je+=1,Qe&&Qe.type&&Qe.type.isMenuItemGroup?M.Children.forEach(Qe.props.children,function(Oe){Je+=1,mt(Oe,Je)}):mt(Qe,Je)})}function te(Ct,mt,Je){if(!Ct||Je.find)return;M.Children.forEach(Ct,function(Qe){if(Qe){var Oe=Qe.type;if(!Oe||!(Oe.isSubMenu||Oe.isMenuItem||Oe.isMenuItemGroup))return;mt.indexOf(Qe.key)!==-1?Je.find=!0:Qe.props.children&&te(Qe.props.children,mt,Je)}})}var fe=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],Ae=function(mt){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qe=mt&&typeof mt.getBoundingClientRect=="function"&&mt.getBoundingClientRect().width;if(Qe){if(Je){var Oe=getComputedStyle(mt),je=Oe.marginLeft,St=Oe.marginRight;Qe+=+je.replace("px","")+ +St.replace("px","")}Qe=+Qe.toFixed(6)}return Qe||0},ce=function(mt,Je,Qe){mt&&Object(f.a)(mt.style)==="object"&&(mt.style[Je]=Qe)},ie=function(){return F.any},ye=v("KQm4"),le=v("Ff2n"),me=v("i8i4"),se=v("bdgK"),ge=v("uciX"),ae=v("8XRh"),pe={adjustX:1,adjustY:1},Me={topLeft:{points:["bl","tl"],overflow:pe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:pe,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:pe,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:pe,offset:[4,0]}},xe={topLeft:{points:["bl","tl"],overflow:pe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:pe,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:pe,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:pe,offset:[4,0]}},Ke=Me,et=0,he={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Se=function(mt,Je,Qe){var Oe=K(Je),je=mt.getState();mt.setState({defaultActiveFirst:Object(Z.a)(Object(Z.a)({},je.defaultActiveFirst),{},Object(a.a)({},Oe,Qe))})},Ue=function(Ct){Object(_.a)(Je,Ct);var mt=Object(O.a)(Je);function Je(Qe){var Oe;Object(Q.a)(this,Je),Oe=mt.call(this,Qe),Oe.onDestroy=function(_t){Oe.props.onDestroy(_t)},Oe.onKeyDown=function(_t){var Gt=_t.keyCode,kt=Oe.menuInstance,fn=Oe.props,mn=fn.isOpen,Tr=fn.store;if(Gt===t.a.ENTER)return Oe.onTitleClick(_t),Se(Tr,Oe.props.eventKey,!0),!0;if(Gt===t.a.RIGHT)return mn?kt.onKeyDown(_t):(Oe.triggerOpenChange(!0),Se(Tr,Oe.props.eventKey,!0)),!0;if(Gt===t.a.LEFT){var Mr;if(mn)Mr=kt.onKeyDown(_t);else return;return Mr||(Oe.triggerOpenChange(!1),Mr=!0),Mr}return mn&&(Gt===t.a.UP||Gt===t.a.DOWN)?kt.onKeyDown(_t):void 0},Oe.onOpenChange=function(_t){Oe.props.onOpenChange(_t)},Oe.onPopupVisibleChange=function(_t){Oe.triggerOpenChange(_t,_t?"mouseenter":"mouseleave")},Oe.onMouseEnter=function(_t){var Gt=Oe.props,kt=Gt.eventKey,fn=Gt.onMouseEnter,mn=Gt.store;Se(mn,Oe.props.eventKey,!1),fn({key:kt,domEvent:_t})},Oe.onMouseLeave=function(_t){var Gt=Oe.props,kt=Gt.parentMenu,fn=Gt.eventKey,mn=Gt.onMouseLeave;kt.subMenuInstance=Object(k.a)(Oe),mn({key:fn,domEvent:_t})},Oe.onTitleMouseEnter=function(_t){var Gt=Oe.props,kt=Gt.eventKey,fn=Gt.onItemHover,mn=Gt.onTitleMouseEnter;fn({key:kt,hover:!0}),mn({key:kt,domEvent:_t})},Oe.onTitleMouseLeave=function(_t){var Gt=Oe.props,kt=Gt.parentMenu,fn=Gt.eventKey,mn=Gt.onItemHover,Tr=Gt.onTitleMouseLeave;kt.subMenuInstance=Object(k.a)(Oe),mn({key:fn,hover:!1}),Tr({key:fn,domEvent:_t})},Oe.onTitleClick=function(_t){var Gt=Object(k.a)(Oe),kt=Gt.props;if(kt.onTitleClick({key:kt.eventKey,domEvent:_t}),kt.triggerSubMenuAction==="hover")return;Oe.triggerOpenChange(!kt.isOpen,"click"),Se(kt.store,Oe.props.eventKey,!1)},Oe.onSubMenuClick=function(_t){typeof Oe.props.onClick=="function"&&Oe.props.onClick(Oe.addKeyPath(_t))},Oe.onSelect=function(_t){Oe.props.onSelect(_t)},Oe.onDeselect=function(_t){Oe.props.onDeselect(_t)},Oe.getPrefixCls=function(){return"".concat(Oe.props.rootPrefixCls,"-submenu")},Oe.getActiveClassName=function(){return"".concat(Oe.getPrefixCls(),"-active")},Oe.getDisabledClassName=function(){return"".concat(Oe.getPrefixCls(),"-disabled")},Oe.getSelectedClassName=function(){return"".concat(Oe.getPrefixCls(),"-selected")},Oe.getOpenClassName=function(){return"".concat(Oe.props.rootPrefixCls,"-submenu-open")},Oe.saveMenuInstance=function(_t){Oe.menuInstance=_t},Oe.addKeyPath=function(_t){return Object(Z.a)(Object(Z.a)({},_t),{},{keyPath:(_t.keyPath||[]).concat(Oe.props.eventKey)})},Oe.triggerOpenChange=function(_t,Gt){var kt=Oe.props.eventKey,fn=function(){Oe.onOpenChange({key:kt,item:Object(k.a)(Oe),trigger:Gt,open:_t})};Gt==="mouseenter"?Oe.mouseenterTimeout=setTimeout(function(){fn()},0):fn()},Oe.isChildrenSelected=function(){var _t={find:!1};return te(Oe.props.children,Oe.props.selectedKeys,_t),_t.find},Oe.isOpen=function(){return Oe.props.openKeys.indexOf(Oe.props.eventKey)!==-1},Oe.adjustWidth=function(){if(!Oe.subMenuTitle||!Oe.menuInstance)return;var _t=me.findDOMNode(Oe.menuInstance);if(_t.offsetWidth>=Oe.subMenuTitle.offsetWidth)return;_t.style.minWidth="".concat(Oe.subMenuTitle.offsetWidth,"px")},Oe.saveSubMenuTitle=function(_t){Oe.subMenuTitle=_t},Oe.getBaseProps=function(){var _t=Object(k.a)(Oe),Gt=_t.props;return{mode:Gt.mode==="horizontal"?"vertical":Gt.mode,visible:Oe.props.isOpen,level:Gt.level+1,inlineIndent:Gt.inlineIndent,focusable:!1,onClick:Oe.onSubMenuClick,onSelect:Oe.onSelect,onDeselect:Oe.onDeselect,onDestroy:Oe.onDestroy,selectedKeys:Gt.selectedKeys,eventKey:"".concat(Gt.eventKey,"-menu-"),openKeys:Gt.openKeys,motion:Gt.motion,onOpenChange:Oe.onOpenChange,subMenuOpenDelay:Gt.subMenuOpenDelay,parentMenu:Object(k.a)(Oe),subMenuCloseDelay:Gt.subMenuCloseDelay,forceSubMenuRender:Gt.forceSubMenuRender,triggerSubMenuAction:Gt.triggerSubMenuAction,builtinPlacements:Gt.builtinPlacements,defaultActiveFirst:Gt.store.getState().defaultActiveFirst[K(Gt.eventKey)],multiple:Gt.multiple,prefixCls:Gt.rootPrefixCls,id:Oe.internalMenuId,manualRef:Oe.saveMenuInstance,itemIcon:Gt.itemIcon,expandIcon:Gt.expandIcon,direction:Gt.direction}},Oe.getMotion=function(_t,Gt){var kt=Object(k.a)(Oe),fn=kt.haveRendered,mn=Oe.props,Tr=mn.motion,Mr=mn.rootPrefixCls,kr=Object(Z.a)(Object(Z.a)({},Tr),{},{leavedClassName:"".concat(Mr,"-hidden"),removeOnLeave:!1,motionAppear:fn||!Gt||_t!=="inline"});return kr};var je=Qe.store,St=Qe.eventKey,bt=je.getState(),Dt=bt.defaultActiveFirst;Oe.isRootMenu=!1;var Qt=!1;return Dt&&(Qt=Dt[St]),Se(je,St,Qt),Oe}return Object(I.a)(Je,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Oe=this,je=this.props,St=je.mode,bt=je.parentMenu,Dt=je.manualRef;if(Dt&&Dt(this),St!=="horizontal"||!bt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Oe.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Oe=this.props,je=Oe.onDestroy,St=Oe.eventKey;je&&je(St),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Oe){var je=this,St=this.getBaseProps(),bt=this.getMotion(St.mode,St.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||St.visible||St.forceSubMenuRender,!this.haveOpened)return M.createElement("div",null);var Dt=St.direction;return M.createElement(ae.default,Object.assign({visible:St.visible},bt),function(Qt){var _t=Qt.className,Gt=Qt.style,kt=d()("".concat(St.prefixCls,"-sub"),_t,Object(a.a)({},"".concat(St.prefixCls,"-rtl"),Dt==="rtl"));return M.createElement(Ze,Object.assign({},St,{id:je.internalMenuId,className:kt,style:Gt}),Oe)})}},{key:"render",value:function(){var Oe,je=Object(Z.a)({},this.props),St=je.isOpen,bt=this.getPrefixCls(),Dt=je.mode==="inline",Qt=d()(bt,"".concat(bt,"-").concat(je.mode),(Oe={},Object(a.a)(Oe,je.className,!!je.className),Object(a.a)(Oe,this.getOpenClassName(),St),Object(a.a)(Oe,this.getActiveClassName(),je.active||St&&!Dt),Object(a.a)(Oe,this.getDisabledClassName(),je.disabled),Object(a.a)(Oe,this.getSelectedClassName(),this.isChildrenSelected()),Oe));this.internalMenuId||(je.eventKey?this.internalMenuId="".concat(je.eventKey,"$Menu"):(et+=1,this.internalMenuId="$__$".concat(et,"$Menu")));var _t={},Gt={},kt={};je.disabled||(_t={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Gt={onClick:this.onTitleClick},kt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var fn={},mn=je.direction;Dt&&(mn==="rtl"?fn.paddingRight=je.inlineIndent*je.level:fn.paddingLeft=je.inlineIndent*je.level);var Tr={};this.props.isOpen&&(Tr={"aria-owns":this.internalMenuId});var Mr=null;je.mode!=="horizontal"&&(Mr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Mr=M.createElement(this.props.expandIcon,Object(Z.a)({},this.props))));var kr=M.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:fn,className:"".concat(bt,"-title"),role:"button"},kt,Gt,{"aria-expanded":St},Tr,{"aria-haspopup":"true",title:typeof je.title=="string"?je.title:void 0}),je.title,Mr||M.createElement("i",{className:"".concat(bt,"-arrow")})),Un=this.renderChildren(je.children),Ra=je.parentMenu.isRootMenu?je.parentMenu.props.getPopupContainer:function(Xt){return Xt.parentNode},Xr=he[je.mode],aa=je.popupOffset?{offset:je.popupOffset}:{},Kr=je.mode==="inline"?"":je.popupClassName;Kr+=mn==="rtl"?" ".concat(bt,"-rtl"):"";var _a=je.disabled,di=je.triggerSubMenuAction,Ei=je.subMenuOpenDelay,_e=je.forceSubMenuRender,Ie=je.subMenuCloseDelay,Ye=je.builtinPlacements;fe.forEach(function(Xt){return delete je[Xt]}),delete je.onClick;var yt=mn==="rtl"?Object.assign({},xe,Ye):Object.assign({},Me,Ye);return delete je.direction,M.createElement("li",Object.assign({},je,_t,{className:Qt,role:"menuitem"}),Dt&&kr,Dt&&Un,!Dt&&M.createElement(ge.a,{prefixCls:bt,popupClassName:d()("".concat(bt,"-popup"),Kr),getPopupContainer:Ra,builtinPlacements:yt,popupPlacement:Xr,popupVisible:St,popupAlign:aa,popup:Un,action:_a?[]:[di],mouseEnterDelay:Ei,mouseLeaveDelay:Ie,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:_e},kr))}}]),Je}(M.Component);Ue.defaultProps={onMouseEnter:B,onMouseLeave:B,onTitleMouseEnter:B,onTitleMouseLeave:B,onTitleClick:B,manualRef:B,mode:"vertical",title:""};var Ne=Object(T.b)(function(Ct,mt){var Je=Ct.openKeys,Qe=Ct.activeKey,Oe=Ct.selectedKeys,je=mt.eventKey,St=mt.subMenuKey;return{isOpen:Je.indexOf(je)>-1,active:Qe[St]===je,selectedKeys:Oe}})(Ue);Ne.isSubMenu=!0;var ct=Ne,ft="menuitem-overflowed",Ot=.5,dt=function(Ct){Object(_.a)(Je,Ct);var mt=Object(O.a)(Je);function Je(){var Qe;return Object(Q.a)(this,Je),Qe=mt.apply(this,arguments),Qe.resizeObserver=null,Qe.mutationObserver=null,Qe.originalTotalWidth=0,Qe.overflowedItems=[],Qe.menuItemSizes=[],Qe.cancelFrameId=null,Qe.state={lastVisibleIndex:void 0},Qe.getMenuItemNodes=function(){var Oe=Qe.props.prefixCls,je=me.findDOMNode(Object(k.a)(Qe));return je?[].slice.call(je.children).filter(function(St){return St.className.split(" ").indexOf("".concat(Oe,"-overflowed-submenu"))<0}):[]},Qe.getOverflowedSubMenuItem=function(Oe,je,St){var bt=Qe.props,Dt=bt.overflowedIndicator,Qt=bt.level,_t=bt.mode,Gt=bt.prefixCls,kt=bt.theme;if(Qt!==1||_t!=="horizontal")return null;var fn=Qe.props.children[0],mn=fn.props,Tr=mn.children,Mr=mn.title,kr=mn.style,Un=Object(le.a)(mn,["children","title","style"]),Ra=Object(Z.a)({},kr),Xr="".concat(Oe,"-overflowed-indicator"),aa="".concat(Oe,"-overflowed-indicator");je.length===0&&St!==!0?Ra=Object(Z.a)(Object(Z.a)({},Ra),{},{display:"none"}):St&&(Ra=Object(Z.a)(Object(Z.a)({},Ra),{},{visibility:"hidden",position:"absolute"}),Xr="".concat(Xr,"-placeholder"),aa="".concat(aa,"-placeholder"));var Kr=kt?"".concat(Gt,"-").concat(kt):"",_a={};return fe.forEach(function(di){Un[di]!==void 0&&(_a[di]=Un[di])}),M.createElement(ct,Object.assign({title:Dt,className:"".concat(Gt,"-overflowed-submenu"),popupClassName:Kr},_a,{key:Xr,eventKey:aa,disabled:!1,style:Ra}),je)},Qe.setChildrenWidthAndResize=function(){if(Qe.props.mode!=="horizontal")return;var Oe=me.findDOMNode(Object(k.a)(Qe));if(!Oe)return;var je=Oe.children;if(!je||je.length===0)return;var St=Oe.children[je.length-1];ce(St,"display","inline-block");var bt=Qe.getMenuItemNodes(),Dt=bt.filter(function(Qt){return Qt.className.split(" ").indexOf(ft)>=0});Dt.forEach(function(Qt){ce(Qt,"display","inline-block")}),Qe.menuItemSizes=bt.map(function(Qt){return Ae(Qt,!0)}),Dt.forEach(function(Qt){ce(Qt,"display","none")}),Qe.overflowedIndicatorWidth=Ae(Oe.children[Oe.children.length-1],!0),Qe.originalTotalWidth=Qe.menuItemSizes.reduce(function(Qt,_t){return Qt+_t},0),Qe.handleResize(),ce(St,"display","none")},Qe.handleResize=function(){if(Qe.props.mode!=="horizontal")return;var Oe=me.findDOMNode(Object(k.a)(Qe));if(!Oe)return;var je=Ae(Oe);Qe.overflowedItems=[];var St=0,bt;Qe.originalTotalWidth>je+Ot&&(bt=-1,Qe.menuItemSizes.forEach(function(Dt){St+=Dt,St+Qe.overflowedIndicatorWidth<=je&&(bt+=1)})),Qe.setState({lastVisibleIndex:bt})},Qe}return Object(I.a)(Je,[{key:"componentDidMount",value:function(){var Oe=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var je=me.findDOMNode(this);if(!je)return;this.resizeObserver=new se.default(function(St){St.forEach(function(){var bt=Oe.cancelFrameId;cancelAnimationFrame(bt),Oe.cancelFrameId=requestAnimationFrame(Oe.setChildrenWidthAndResize)})}),[].slice.call(je.children).concat(je).forEach(function(St){Oe.resizeObserver.observe(St)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Oe.resizeObserver.disconnect(),[].slice.call(je.children).concat(je).forEach(function(St){Oe.resizeObserver.observe(St)}),Oe.setChildrenWidthAndResize()}),this.mutationObserver.observe(je,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Oe){var je=this,St=this.state.lastVisibleIndex;return(Oe||[]).reduce(function(bt,Dt,Qt){var _t=Dt;if(je.props.mode==="horizontal"){var Gt=je.getOverflowedSubMenuItem(Dt.props.eventKey,[]);St!==void 0&&je.props.className.indexOf("".concat(je.props.prefixCls,"-root"))!==-1&&(Qt>St&&(_t=M.cloneElement(Dt,{style:{display:"none"},eventKey:"".concat(Dt.props.eventKey,"-hidden"),className:"".concat(ft)})),Qt===St+1&&(je.overflowedItems=Oe.slice(St+1).map(function(fn){return M.cloneElement(fn,{key:fn.props.eventKey,mode:"vertical-left"})}),Gt=je.getOverflowedSubMenuItem(Dt.props.eventKey,je.overflowedItems)));var kt=[].concat(Object(ye.a)(bt),[Gt,_t]);return Qt===Oe.length-1&&kt.push(je.getOverflowedSubMenuItem(Dt.props.eventKey,[],!0)),kt}return[].concat(Object(ye.a)(bt),[_t])},[])}},{key:"render",value:function(){var Oe=this.props,je=Oe.visible,St=Oe.prefixCls,bt=Oe.overflowedIndicator,Dt=Oe.mode,Qt=Oe.level,_t=Oe.tag,Gt=Oe.children,kt=Oe.theme,fn=Object(le.a)(Oe,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),mn=_t;return M.createElement(mn,Object.assign({},fn),this.renderChildren(Gt))}}]),Je}(M.Component);dt.defaultProps={tag:"div",className:""};var Ut=dt;function jt(Ct){return Ct.length?Ct.every(function(mt){return!!mt.props.disabled}):!0}function ze(Ct,mt,Je){var Qe=Ct.getState();Ct.setState({activeKey:Object(Z.a)(Object(Z.a)({},Qe.activeKey),{},Object(a.a)({},mt,Je))})}function Ve(Ct){return Ct.eventKey||"0-menu-"}function Et(Ct,mt){var Je=mt,Qe=Ct.children,Oe=Ct.eventKey;if(Je){var je;if($(Qe,function(St,bt){St&&St.props&&!St.props.disabled&&Je===z(St,Oe,bt)&&(je=!0)}),je)return Je}return Je=null,Ct.defaultActiveFirst&&$(Qe,function(St,bt){!Je&&St&&!St.props.disabled&&(Je=z(St,Oe,bt))}),Je}function Rt(Ct){if(Ct){var mt=this.instanceArray.indexOf(Ct);mt!==-1?this.instanceArray[mt]=Ct:this.instanceArray.push(Ct)}}var ut=function(Ct){Object(_.a)(Je,Ct);var mt=Object(O.a)(Je);function Je(Qe){var Oe;return Object(Q.a)(this,Je),Oe=mt.call(this,Qe),Oe.onKeyDown=function(je,St){var bt=je.keyCode,Dt;if(Oe.getFlatInstanceArray().forEach(function(_t){_t&&_t.props.active&&_t.onKeyDown&&(Dt=_t.onKeyDown(je))}),Dt)return 1;var Qt=null;return(bt===t.a.UP||bt===t.a.DOWN)&&(Qt=Oe.step(bt===t.a.UP?-1:1)),Qt?(je.preventDefault(),ze(Oe.props.store,Ve(Oe.props),Qt.props.eventKey),typeof St=="function"&&St(Qt),1):void 0},Oe.onItemHover=function(je){var St=je.key,bt=je.hover;ze(Oe.props.store,Ve(Oe.props),bt?St:null)},Oe.onDeselect=function(je){Oe.props.onDeselect(je)},Oe.onSelect=function(je){Oe.props.onSelect(je)},Oe.onClick=function(je){Oe.props.onClick(je)},Oe.onOpenChange=function(je){Oe.props.onOpenChange(je)},Oe.onDestroy=function(je){Oe.props.onDestroy(je)},Oe.getFlatInstanceArray=function(){return Oe.instanceArray},Oe.step=function(je){var St=Oe.getFlatInstanceArray(),bt=Oe.props.store.getState().activeKey[Ve(Oe.props)],Dt=St.length;if(!Dt)return null;je<0&&(St=St.concat().reverse());var Qt=-1;if(St.every(function(fn,mn){return fn&&fn.props.eventKey===bt?(Qt=mn,!1):!0}),!Oe.props.defaultActiveFirst&&Qt!==-1&&jt(St.slice(Qt,Dt-1)))return;var _t=(Qt+1)%Dt,Gt=_t;do{var kt=St[Gt];if(!kt||kt.props.disabled)Gt=(Gt+1)%Dt;else return kt}while(Gt!==_t);return null},Oe.renderCommonMenuItem=function(je,St,bt){var Dt=Oe.props.store.getState(),Qt=Object(k.a)(Oe),_t=Qt.props,Gt=z(je,_t.eventKey,St),kt=je.props;if(!kt||typeof je.type=="string")return je;var fn=Gt===Dt.activeKey,mn=Object(Z.a)(Object(Z.a)({mode:kt.mode||_t.mode,level:_t.level,inlineIndent:_t.inlineIndent,renderMenuItem:Oe.renderMenuItem,rootPrefixCls:_t.prefixCls,index:St,parentMenu:_t.parentMenu,manualRef:kt.disabled?void 0:Object(A.a)(je.ref,Rt.bind(Object(k.a)(Oe))),eventKey:Gt,active:!kt.disabled&&fn,multiple:_t.multiple,onClick:function(Mr){(kt.onClick||B)(Mr),Oe.onClick(Mr)},onItemHover:Oe.onItemHover,motion:_t.motion,subMenuOpenDelay:_t.subMenuOpenDelay,subMenuCloseDelay:_t.subMenuCloseDelay,forceSubMenuRender:_t.forceSubMenuRender,onOpenChange:Oe.onOpenChange,onDeselect:Oe.onDeselect,onSelect:Oe.onSelect,builtinPlacements:_t.builtinPlacements,itemIcon:kt.itemIcon||Oe.props.itemIcon,expandIcon:kt.expandIcon||Oe.props.expandIcon},bt),{},{direction:_t.direction});return(_t.mode==="inline"||ie())&&(mn.triggerSubMenuAction="click"),M.cloneElement(je,mn)},Oe.renderMenuItem=function(je,St,bt){if(!je)return null;var Dt=Oe.props.store.getState(),Qt={openKeys:Dt.openKeys,selectedKeys:Dt.selectedKeys,triggerSubMenuAction:Oe.props.triggerSubMenuAction,subMenuKey:bt};return Oe.renderCommonMenuItem(je,St,Qt)},Qe.store.setState({activeKey:Object(Z.a)(Object(Z.a)({},Qe.store.getState().activeKey),{},Object(a.a)({},Qe.eventKey,Et(Qe,Qe.activeKey)))}),Oe.instanceArray=[],Oe}return Object(I.a)(Je,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Oe){return this.props.visible||Oe.visible||this.props.className!==Oe.className||!i()(this.props.style,Oe.style)}},{key:"componentDidUpdate",value:function(Oe){var je=this.props,St="activeKey"in je?je.activeKey:je.store.getState().activeKey[Ve(je)],bt=Et(je,St);if(bt!==St)ze(je.store,Ve(je),bt);else if("activeKey"in Oe){var Dt=Et(Oe,Oe.activeKey);bt!==Dt&&ze(je.store,Ve(je),bt)}}},{key:"render",value:function(){var Oe=this,je=Object(p.a)({},this.props);this.instanceArray=[];var St=d()(je.prefixCls,je.className,"".concat(je.prefixCls,"-").concat(je.mode)),bt={className:St,role:je.role||"menu"};je.id&&(bt.id=je.id),je.focusable&&(bt.tabIndex=0,bt.onKeyDown=this.onKeyDown);var Dt=je.prefixCls,Qt=je.eventKey,_t=je.visible,Gt=je.level,kt=je.mode,fn=je.overflowedIndicator,mn=je.theme;return fe.forEach(function(Tr){return delete je[Tr]}),delete je.onClick,M.createElement(Ut,Object.assign({},je,{prefixCls:Dt,mode:kt,tag:"ul",level:Gt,theme:mn,visible:_t,overflowedIndicator:fn},bt),M.Children.map(je.children,function(Tr,Mr){return Oe.renderMenuItem(Tr,Mr,Qt||"0-menu-")}))}}]),Je}(M.Component);ut.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:B};var vt=Object(T.b)()(ut),Ze=vt,ke=v("Kwbf");function He(Ct,mt,Je){var Qe=Ct.prefixCls,Oe=Ct.motion,je=Ct.defaultMotions,St=je===void 0?{}:je,bt=Ct.openAnimation,Dt=Ct.openTransitionName,Qt=mt.switchingModeFromInline;if(Oe)return Oe;if(Object(f.a)(bt)==="object"&&bt)Object(ke.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof bt=="string")return{motionName:"".concat(Qe,"-open-").concat(bt)};if(Dt)return{motionName:Dt};var _t=St[Je];return _t||(Qt?null:St.other)}var we=function(Ct){Object(_.a)(Je,Ct);var mt=Object(O.a)(Je);function Je(Qe){var Oe;Object(Q.a)(this,Je),Oe=mt.call(this,Qe),Oe.inlineOpenKeys=[],Oe.onSelect=function(bt){var Dt=Object(k.a)(Oe),Qt=Dt.props;if(Qt.selectable){var _t=Oe.store.getState(),Gt=_t.selectedKeys,kt=bt.key;Qt.multiple?Gt=Gt.concat([kt]):Gt=[kt],"selectedKeys"in Qt||Oe.store.setState({selectedKeys:Gt}),Qt.onSelect(Object(Z.a)(Object(Z.a)({},bt),{},{selectedKeys:Gt}))}},Oe.onClick=function(bt){var Dt=Oe.getRealMenuMode(),Qt=Object(k.a)(Oe),_t=Qt.store,Gt=Qt.props.onOpenChange;Dt!=="inline"&&!("openKeys"in Oe.props)&&(_t.setState({openKeys:[]}),Gt([])),Oe.props.onClick(bt)},Oe.onKeyDown=function(bt,Dt){Oe.innerMenu.getWrappedInstance().onKeyDown(bt,Dt)},Oe.onOpenChange=function(bt){var Dt=Object(k.a)(Oe),Qt=Dt.props,_t=Oe.store.getState().openKeys.concat(),Gt=!1,kt=function(mn){var Tr=!1;if(mn.open)Tr=_t.indexOf(mn.key)===-1,Tr&&_t.push(mn.key);else{var Mr=_t.indexOf(mn.key);Tr=Mr!==-1,Tr&&_t.splice(Mr,1)}Gt=Gt||Tr};Array.isArray(bt)?bt.forEach(kt):kt(bt),Gt&&("openKeys"in Oe.props||Oe.store.setState({openKeys:_t}),Qt.onOpenChange(_t))},Oe.onDeselect=function(bt){var Dt=Object(k.a)(Oe),Qt=Dt.props;if(Qt.selectable){var _t=Oe.store.getState().selectedKeys.concat(),Gt=bt.key,kt=_t.indexOf(Gt);kt!==-1&&_t.splice(kt,1),"selectedKeys"in Qt||Oe.store.setState({selectedKeys:_t}),Qt.onDeselect(Object(Z.a)(Object(Z.a)({},bt),{},{selectedKeys:_t}))}},Oe.onMouseEnter=function(bt){Oe.restoreModeVerticalFromInline();var Dt=Oe.props.onMouseEnter;Dt&&Dt(bt)},Oe.onTransitionEnd=function(bt){var Dt=bt.propertyName==="width"&&bt.target===bt.currentTarget,Qt=bt.target.className,_t=Object.prototype.toString.call(Qt)==="[object SVGAnimatedString]"?Qt.animVal:Qt,Gt=bt.propertyName==="font-size"&&_t.indexOf("anticon")>=0;(Dt||Gt)&&Oe.restoreModeVerticalFromInline()},Oe.setInnerMenu=function(bt){Oe.innerMenu=bt},Oe.isRootMenu=!0;var je=Qe.defaultSelectedKeys,St=Qe.defaultOpenKeys;return"selectedKeys"in Qe&&(je=Qe.selectedKeys||[]),"openKeys"in Qe&&(St=Qe.openKeys||[]),Oe.store=Object(T.c)({selectedKeys:je,openKeys:St,activeKey:{"0-menu-":Et(Qe,Qe.activeKey)}}),Oe.state={switchingModeFromInline:!1},Oe}return Object(I.a)(Je,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Oe){this.updateOpentKeysWhenSwitchMode(Oe),this.updateMiniStore();var je=this.props,St=je.siderCollapsed,bt=je.inlineCollapsed,Dt=je.onOpenChange;(!Oe.inlineCollapsed&&bt||!Oe.siderCollapsed&&St)&&Dt([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Oe){var je=this.props,St=this.store,bt=this.inlineOpenKeys,Dt=St.getState(),Qt={};Oe.mode==="inline"&&je.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in je||((je.inlineCollapsed&&!Oe.inlineCollapsed||je.siderCollapsed&&!Oe.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Dt.openKeys.concat(),Qt.openKeys=[]),(!je.inlineCollapsed&&Oe.inlineCollapsed||!je.siderCollapsed&&Oe.siderCollapsed)&&(Qt.openKeys=bt,this.inlineOpenKeys=[])),Object.keys(Qt).length&&St.setState(Qt)}},{key:"updateMenuDisplay",value:function(){var Oe=this.props.collapsedWidth,je=this.store,St=this.prevOpenKeys,bt=this.getInlineCollapsed()&&(Oe===0||Oe==="0"||Oe==="0px");bt?(this.prevOpenKeys=je.getState().openKeys.concat(),this.store.setState({openKeys:[]})):St&&(this.store.setState({openKeys:St}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Oe=this.props.mode,je=this.state.switchingModeFromInline,St=this.getInlineCollapsed();return je&&St?"inline":St?"vertical":Oe}},{key:"getInlineCollapsed",value:function(){var Oe=this.props,je=Oe.inlineCollapsed,St=Oe.siderCollapsed;return St!==void 0?St:je}},{key:"restoreModeVerticalFromInline",value:function(){var Oe=this.state.switchingModeFromInline;Oe&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var Oe=Object(Z.a)({},Object(n.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),je=this.getRealMenuMode();return Oe.className+=" ".concat(Oe.prefixCls,"-root"),Oe.direction==="rtl"&&(Oe.className+=" ".concat(Oe.prefixCls,"-rtl")),Oe=Object(Z.a)(Object(Z.a)({},Oe),{},{mode:je,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:He(this.props,this.state,je)}),delete Oe.openAnimation,delete Oe.openTransitionName,M.createElement(T.a,{store:this.store},M.createElement(Ze,Object.assign({},Oe,{ref:this.setInnerMenu}),this.props.children))}}]),Je}(M.Component);we.defaultProps={selectable:!0,onClick:B,onSelect:B,onOpenChange:B,onDeselect:B,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:M.createElement("span",null,"\xB7\xB7\xB7")};var Le=we,Pe=function(Ct){Object(_.a)(Je,Ct);var mt=Object(O.a)(Je);function Je(){var Qe;return Object(Q.a)(this,Je),Qe=mt.apply(this,arguments),Qe.onKeyDown=function(Oe){var je=Oe.keyCode;return je===t.a.ENTER?(Qe.onClick(Oe),!0):void 0},Qe.onMouseLeave=function(Oe){var je=Qe.props,St=je.eventKey,bt=je.onItemHover,Dt=je.onMouseLeave;bt({key:St,hover:!1}),Dt({key:St,domEvent:Oe})},Qe.onMouseEnter=function(Oe){var je=Qe.props,St=je.eventKey,bt=je.onItemHover,Dt=je.onMouseEnter;bt({key:St,hover:!0}),Dt({key:St,domEvent:Oe})},Qe.onClick=function(Oe){var je=Qe.props,St=je.eventKey,bt=je.multiple,Dt=je.onClick,Qt=je.onSelect,_t=je.onDeselect,Gt=je.isSelected,kt={key:St,keyPath:[St],item:Object(k.a)(Qe),domEvent:Oe};Dt(kt),bt?Gt?_t(kt):Qt(kt):Gt||Qt(kt)},Qe.saveNode=function(Oe){Qe.node=Oe},Qe}return Object(I.a)(Je,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Oe=this.props;Oe.onDestroy&&Oe.onDestroy(Oe.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var Oe,je=Object(Z.a)({},this.props),St=d()(this.getPrefixCls(),je.className,(Oe={},Object(a.a)(Oe,this.getActiveClassName(),!je.disabled&&je.active),Object(a.a)(Oe,this.getSelectedClassName(),je.isSelected),Object(a.a)(Oe,this.getDisabledClassName(),je.disabled),Oe)),bt=Object(Z.a)(Object(Z.a)({},je.attribute),{},{title:typeof je.title=="string"?je.title:void 0,className:St,role:je.role||"menuitem","aria-disabled":je.disabled});je.role==="option"?bt=Object(Z.a)(Object(Z.a)({},bt),{},{role:"option","aria-selected":je.isSelected}):(je.role===null||je.role==="none")&&(bt.role="none");var Dt={onClick:je.disabled?null:this.onClick,onMouseLeave:je.disabled?null:this.onMouseLeave,onMouseEnter:je.disabled?null:this.onMouseEnter},Qt=Object(Z.a)({},je.style);je.mode==="inline"&&(je.direction==="rtl"?Qt.paddingRight=je.inlineIndent*je.level:Qt.paddingLeft=je.inlineIndent*je.level),fe.forEach(function(Gt){return delete je[Gt]}),delete je.direction;var _t=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(_t=M.createElement(this.props.itemIcon,this.props)),M.createElement("li",Object.assign({},Object(n.default)(je,["onClick","onMouseEnter","onMouseLeave","onSelect"]),bt,Dt,{style:Qt,ref:this.saveNode}),je.children,_t)}}]),Je}(M.Component);Pe.isMenuItem=!0,Pe.defaultProps={onSelect:B,onMouseEnter:B,onMouseLeave:B,manualRef:B};var We=Object(T.b)(function(Ct,mt){var Je=Ct.activeKey,Qe=Ct.selectedKeys,Oe=mt.eventKey,je=mt.subMenuKey;return{active:Je[je]===Oe,isSelected:Qe.indexOf(Oe)!==-1}})(Pe),Xe=We,gt=function(Ct){Object(_.a)(Je,Ct);var mt=Object(O.a)(Je);function Je(){var Qe;return Object(Q.a)(this,Je),Qe=mt.apply(this,arguments),Qe.renderInnerMenuItem=function(Oe){var je=Qe.props,St=je.renderMenuItem,bt=je.index;return St(Oe,bt,Qe.props.subMenuKey)},Qe}return Object(I.a)(Je,[{key:"render",value:function(){var Oe=Object(p.a)({},this.props),je=Oe.className,St=je===void 0?"":je,bt=Oe.rootPrefixCls,Dt="".concat(bt,"-item-group-title"),Qt="".concat(bt,"-item-group-list"),_t=Oe.title,Gt=Oe.children;return fe.forEach(function(kt){return delete Oe[kt]}),delete Oe.onClick,delete Oe.direction,M.createElement("li",Object.assign({},Oe,{className:"".concat(St," ").concat(bt,"-item-group")}),M.createElement("div",{className:Dt,title:typeof _t=="string"?_t:void 0},_t),M.createElement("ul",{className:Qt},M.Children.map(Gt,this.renderInnerMenuItem)))}}]),Je}(M.Component);gt.isMenuItemGroup=!0,gt.defaultProps={disabled:!0};var Lt=gt,en=function(mt){var Je=mt.className,Qe=mt.rootPrefixCls,Oe=mt.style;return M.createElement("li",{className:"".concat(Je," ").concat(Qe,"-item-divider"),style:Oe})};en.defaultProps={disabled:!0,className:"",style:{}};var Zt=en,xt=ee.e=Le},"24YM":function(Be,ee,v){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.SensorTabIndex=ee.SensorClassName=ee.SizeSensorId=void 0;var Z="size-sensor-id";ee.SizeSensorId=Z;var Q="size-sensor-object";ee.SensorClassName=Q;var I="-1";ee.SensorTabIndex=I},"24hK":function(Be,ee,v){"use strict";v.d(ee,"a",function(){return Q});class Z{constructor(I){this.element=I,this.next=Z.Undefined,this.prev=Z.Undefined}}Z.Undefined=new Z(void 0);class Q{constructor(){this._first=Z.Undefined,this._last=Z.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Z.Undefined}clear(){let I=this._first;for(;I!==Z.Undefined;){const k=I.next;I.prev=Z.Undefined,I.next=Z.Undefined,I=k}this._first=Z.Undefined,this._last=Z.Undefined,this._size=0}unshift(I){return this._insert(I,!1)}push(I){return this._insert(I,!0)}_insert(I,k){const _=new Z(I);if(this._first===Z.Undefined)this._first=_,this._last=_;else if(k){const M=this._last;this._last=_,_.prev=M,M.next=_}else{const M=this._first;this._first=_,_.next=M,M.prev=_}this._size+=1;let O=!1;return()=>{O||(O=!0,this._remove(_))}}shift(){if(this._first===Z.Undefined)return;{const I=this._first.element;return this._remove(this._first),I}}pop(){if(this._last===Z.Undefined)return;{const I=this._last.element;return this._remove(this._last),I}}_remove(I){if(I.prev!==Z.Undefined&&I.next!==Z.Undefined){const k=I.prev;k.next=I.next,I.next.prev=k}else I.prev===Z.Undefined&&I.next===Z.Undefined?(this._first=Z.Undefined,this._last=Z.Undefined):I.next===Z.Undefined?(this._last=this._last.prev,this._last.next=Z.Undefined):I.prev===Z.Undefined&&(this._first=this._first.next,this._first.prev=Z.Undefined);this._size-=1}*[Symbol.iterator](){let I=this._first;for(;I!==Z.Undefined;)yield I.element,I=I.next}}},"2DNl":function(Be,ee,v){var Z=v("IMiH"),Q=v("loD1"),I=v("59Ip"),k=v("aKvl"),_=v("n1HI"),O=v("hX1E"),M=O.normalizeRadian,T=v("Sj9i"),n=v("hyiK"),p=Z.CMD,a=Math.PI*2,t=1e-4;function A(w,P){return Math.abs(w-P)<t}var l=[-1,-1,-1],i=[-1,-1];function c(){var w=i[0];i[0]=i[1],i[1]=w}function d(w,P,C,b,s,h,m,x,g,y){if(y>P&&y>b&&y>h&&y>x||y<P&&y<b&&y<h&&y<x)return 0;var U=T.cubicRootAt(P,b,h,x,y,l);if(U===0)return 0;for(var N=0,S=-1,H,F,B=0;B<U;B++){var z=l[B],K=z===0||z===1?.5:1,$=T.cubicAt(w,C,s,m,z);if($<g)continue;S<0&&(S=T.cubicExtrema(P,b,h,x,i),i[1]<i[0]&&S>1&&c(),H=T.cubicAt(P,b,h,x,i[0]),S>1&&(F=T.cubicAt(P,b,h,x,i[1]))),S===2?z<i[0]?N+=H<P?K:-K:z<i[1]?N+=F<H?K:-K:N+=x<F?K:-K:z<i[0]?N+=H<P?K:-K:N+=x<H?K:-K}return N}function f(w,P,C,b,s,h,m,x){if(x>P&&x>b&&x>h||x<P&&x<b&&x<h)return 0;var g=T.quadraticRootAt(P,b,h,x,l);if(g===0)return 0;var y=T.quadraticExtremum(P,b,h);if(y>=0&&y<=1){for(var U=0,N=T.quadraticAt(P,b,h,y),S=0;S<g;S++){var H=l[S]===0||l[S]===1?.5:1,F=T.quadraticAt(w,C,s,l[S]);if(F<m)continue;l[S]<y?U+=N<P?H:-H:U+=h<N?H:-H}return U}else{var H=l[0]===0||l[0]===1?.5:1,F=T.quadraticAt(w,C,s,l[0]);return F<m?0:h<P?H:-H}}function o(w,P,C,b,s,h,m,x){if(x-=P,x>C||x<-C)return 0;var g=Math.sqrt(C*C-x*x);l[0]=-g,l[1]=g;var y=Math.abs(b-s);if(y<1e-4)return 0;if(y%a<1e-4){b=0,s=a;var U=h?1:-1;return m>=l[0]+w&&m<=l[1]+w?U:0}if(h){var g=b;b=M(s),s=M(g)}else b=M(b),s=M(s);b>s&&(s+=a);for(var N=0,S=0;S<2;S++){var H=l[S];if(H+w>m){var F=Math.atan2(x,H),U=h?1:-1;F<0&&(F=a+F),(F>=b&&F<=s||F+a>=b&&F+a<=s)&&(F>Math.PI/2&&F<Math.PI*1.5&&(U=-U),N+=U)}}return N}function u(w,P,C,b,s){for(var h=0,m=0,x=0,g=0,y=0,U=0;U<w.length;){var N=w[U++];N===p.M&&U>1&&(C||(h+=n(m,x,g,y,b,s))),U===1&&(m=w[U],x=w[U+1],g=m,y=x);switch(N){case p.M:g=w[U++],y=w[U++],m=g,x=y;break;case p.L:if(C){if(Q.containStroke(m,x,w[U],w[U+1],P,b,s))return!0}else h+=n(m,x,w[U],w[U+1],b,s)||0;m=w[U++],x=w[U++];break;case p.C:if(C){if(I.containStroke(m,x,w[U++],w[U++],w[U++],w[U++],w[U],w[U+1],P,b,s))return!0}else h+=d(m,x,w[U++],w[U++],w[U++],w[U++],w[U],w[U+1],b,s)||0;m=w[U++],x=w[U++];break;case p.Q:if(C){if(k.containStroke(m,x,w[U++],w[U++],w[U],w[U+1],P,b,s))return!0}else h+=f(m,x,w[U++],w[U++],w[U],w[U+1],b,s)||0;m=w[U++],x=w[U++];break;case p.A:var S=w[U++],H=w[U++],F=w[U++],B=w[U++],z=w[U++],K=w[U++];U+=1;var $=1-w[U++],te=Math.cos(z)*F+S,fe=Math.sin(z)*B+H;U>1?h+=n(m,x,te,fe,b,s):(g=te,y=fe);var Ae=(b-S)*B/F+S;if(C){if(_.containStroke(S,H,B,z,z+K,$,P,Ae,s))return!0}else h+=o(S,H,B,z,z+K,$,Ae,s);m=Math.cos(z+K)*F+S,x=Math.sin(z+K)*B+H;break;case p.R:g=m=w[U++],y=x=w[U++];var ce=w[U++],ie=w[U++],te=g+ce,fe=y+ie;if(C){if(Q.containStroke(g,y,te,y,P,b,s)||Q.containStroke(te,y,te,fe,P,b,s)||Q.containStroke(te,fe,g,fe,P,b,s)||Q.containStroke(g,fe,g,y,P,b,s))return!0}else h+=n(te,y,te,fe,b,s),h+=n(g,fe,g,y,b,s);break;case p.Z:if(C){if(Q.containStroke(m,x,g,y,P,b,s))return!0}else h+=n(m,x,g,y,b,s);m=g,x=y;break}}return!C&&!A(x,y)&&(h+=n(m,x,g,y,b,s)||0),h!==0}function E(w,P,C){return u(w,0,!1,P,C)}function R(w,P,C,b){return u(w,P,!0,C,b)}ee.contain=E,ee.containStroke=R},"2fw6":function(Be,ee,v){var Z=v("y+Vt"),Q=Z.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(I,k,_){_&&I.moveTo(k.cx+k.r,k.cy),I.arc(k.cx,k.cy,k.r,0,Math.PI*2,!0)}});Be.exports=Q},"3/fG":function(Be,ee,v){"use strict";v.d(ee,"a",function(){return Q});function Z(I,k){let _;return k.length===0?_=I:_=I.replace(/\{(\d+)\}/g,function(O,M){const T=M[0];return typeof k[T]!="undefined"?k[T]:O}),_}function Q(I,k,..._){return Z(k,_)}},"3C/r":function(Be,ee){var v=function(Q,I){this.image=Q,this.repeat=I,this.type="pattern"};v.prototype.getCanvasPattern=function(Q){return Q.createPattern(this.image,this.repeat||"repeat")};var Z=v;Be.exports=Z},"3CBa":function(Be,ee,v){var Z=v("hydK"),Q=Z.createElement,I=v("bYtY"),k=v("SUKs"),_=v("y+Vt"),O=v("Dagg"),M=v("dqUG"),T=v("DBLp"),n=v("sW+o"),p=v("n6Mw"),a=v("vKoX"),t=v("P47w"),A=t.path,l=t.image,i=t.text;function c(s){return parseInt(s,10)}function d(s){return s instanceof _?A:s instanceof O?l:s instanceof M?i:A}function f(s,h){return h&&s&&h.parentNode!==s}function o(s,h,m){if(f(s,h)&&m){var x=m.nextSibling;x?s.insertBefore(h,x):s.appendChild(h)}}function u(s,h){if(f(s,h)){var m=s.firstChild;m?s.insertBefore(h,m):s.appendChild(h)}}function E(s,h){h&&s&&h.parentNode===s&&s.removeChild(h)}function R(s){return s.__textSvgEl}function w(s){return s.__svgEl}var P=function(s,h,m,x){this.root=s,this.storage=h,this._opts=m=I.extend({},m||{});var g=Q("svg");g.setAttribute("xmlns","http://www.w3.org/2000/svg"),g.setAttribute("version","1.1"),g.setAttribute("baseProfile","full"),g.style.cssText="user-select:none;position:absolute;left:0;top:0;";var y=Q("g");g.appendChild(y);var U=Q("g");g.appendChild(U),this.gradientManager=new n(x,U),this.clipPathManager=new p(x,U),this.shadowManager=new a(x,U);var N=document.createElement("div");N.style.cssText="overflow:hidden;position:relative",this._svgDom=g,this._svgRoot=U,this._backgroundRoot=y,this._viewport=N,s.appendChild(N),N.appendChild(g),this.resize(m.width,m.height),this._visibleList=[]};P.prototype={constructor:P,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var s=this.getViewportRoot();if(s)return{offsetLeft:s.offsetLeft||0,offsetTop:s.offsetTop||0}},refresh:function(){var s=this.storage.getDisplayList(!0);this._paintList(s)},setBackgroundColor:function(s){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var h=Q("rect");h.setAttribute("width",this.getWidth()),h.setAttribute("height",this.getHeight()),h.setAttribute("x",0),h.setAttribute("y",0),h.setAttribute("id",0),h.style.fill=s,this._backgroundRoot.appendChild(h),this._backgroundNode=h},_paintList:function(s){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var h=this._svgRoot,m=this._visibleList,x=s.length,g=[],y;for(y=0;y<x;y++){var U=s[y],N=d(U),S=w(U)||R(U);U.invisible||(U.__dirty&&(N&&N.brush(U),this.clipPathManager.update(U),U.style&&(this.gradientManager.update(U.style.fill),this.gradientManager.update(U.style.stroke),this.shadowManager.update(S,U)),U.__dirty=!1),g.push(U))}var H=T(m,g),F;for(y=0;y<H.length;y++){var B=H[y];if(B.removed)for(var z=0;z<B.count;z++){var U=m[B.indices[z]],S=w(U),K=R(U);E(h,S),E(h,K)}}for(y=0;y<H.length;y++){var B=H[y];if(B.added)for(var z=0;z<B.count;z++){var U=g[B.indices[z]],S=w(U),K=R(U);F?o(h,S,F):u(h,S),S?o(h,K,S):F?o(h,K,F):u(h,K),o(h,K,S),F=K||S||F,this.gradientManager.addWithoutUpdate(S||K,U),this.shadowManager.addWithoutUpdate(S||K,U),this.clipPathManager.markUsed(U)}else if(!B.removed)for(var z=0;z<B.count;z++){var U=g[B.indices[z]],S=w(U),K=R(U),S=w(U),K=R(U);this.gradientManager.markUsed(U),this.gradientManager.addWithoutUpdate(S||K,U),this.shadowManager.markUsed(U),this.shadowManager.addWithoutUpdate(S||K,U),this.clipPathManager.markUsed(U),K&&o(h,K,S),F=S||K||F}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=g},_getDefs:function(s){var h=this._svgDom,m=h.getElementsByTagName("defs");if(m.length===0)if(s){var m=h.insertBefore(Q("defs"),h.firstChild);return m.contains||(m.contains=function(g){var y=m.children;if(!y)return!1;for(var U=y.length-1;U>=0;--U)if(y[U]===g)return!0;return!1}),m}else return null;else return m[0]},resize:function(s,h){var m=this._viewport;m.style.display="none";var x=this._opts;if(s!=null&&(x.width=s),h!=null&&(x.height=h),s=this._getSize(0),h=this._getSize(1),m.style.display="",this._width!==s||this._height!==h){this._width=s,this._height=h;var g=m.style;g.width=s+"px",g.height=h+"px";var y=this._svgDom;y.setAttribute("width",s),y.setAttribute("height",h)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",s),this._backgroundNode.setAttribute("height",h))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(s){var h=this._opts,m=["width","height"][s],x=["clientWidth","clientHeight"][s],g=["paddingLeft","paddingTop"][s],y=["paddingRight","paddingBottom"][s];if(h[m]!=null&&h[m]!=="auto")return parseFloat(h[m]);var U=this.root,N=document.defaultView.getComputedStyle(U);return(U[x]||c(N[m])||c(U.style[m]))-(c(N[g])||0)-(c(N[y])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var s=encodeURIComponent(this._svgDom.outerHTML.replace(/></g,`>
\r<`));return"data:image/svg+xml;charset=UTF-8,"+s}};function C(s){return function(){k('In SVG mode painter not support method "'+s+'"')}}I.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(s){P.prototype[s]=C(s)});var b=P;Be.exports=b},"3e3G":function(Be,ee,v){var Z=v("bYtY"),Q=v("QuXc"),I=function(_,O,M,T,n){this.x=_==null?.5:_,this.y=O==null?.5:O,this.r=M==null?.5:M,this.type="radial",this.global=n||!1,Q.call(this,T)};I.prototype={constructor:I},Z.inherits(I,Q);var k=I;Be.exports=k},"3gBT":function(Be,ee){var v=2311;function Z(){return v++}Be.exports=Z},"4fz+":function(Be,ee,v){var Z=v("bYtY"),Q=v("1bdT"),I=v("mFDi"),k=function(O){O=O||{},Q.call(this,O);for(var M in O)O.hasOwnProperty(M)&&(this[M]=O[M]);this._children=[],this.__storage=null,this.__dirty=!0};k.prototype={constructor:k,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(O){return this._children[O]},childOfName:function(O){for(var M=this._children,T=0;T<M.length;T++)if(M[T].name===O)return M[T]},childCount:function(){return this._children.length},add:function(O){return O&&O!==this&&O.parent!==this&&(this._children.push(O),this._doAdd(O)),this},addBefore:function(O,M){if(O&&O!==this&&O.parent!==this&&M&&M.parent===this){var T=this._children,n=T.indexOf(M);n>=0&&(T.splice(n,0,O),this._doAdd(O))}return this},_doAdd:function(O){O.parent&&O.parent.remove(O),O.parent=this;var M=this.__storage,T=this.__zr;M&&M!==O.__storage&&(M.addToStorage(O),O instanceof k&&O.addChildrenToStorage(M)),T&&T.refresh()},remove:function(O){var M=this.__zr,T=this.__storage,n=this._children,p=Z.indexOf(n,O);return p<0?this:(n.splice(p,1),O.parent=null,T&&(T.delFromStorage(O),O instanceof k&&O.delChildrenFromStorage(T)),M&&M.refresh(),this)},removeAll:function(){var O=this._children,M=this.__storage,T,n;for(n=0;n<O.length;n++)T=O[n],M&&(M.delFromStorage(T),T instanceof k&&T.delChildrenFromStorage(M)),T.parent=null;return O.length=0,this},eachChild:function(O,M){for(var T=this._children,n=0;n<T.length;n++){var p=T[n];O.call(M,p,n)}return this},traverse:function(O,M){for(var T=0;T<this._children.length;T++){var n=this._children[T];O.call(M,n),n.type==="group"&&n.traverse(O,M)}return this},addChildrenToStorage:function(O){for(var M=0;M<this._children.length;M++){var T=this._children[M];O.addToStorage(T),T instanceof k&&T.addChildrenToStorage(O)}},delChildrenFromStorage:function(O){for(var M=0;M<this._children.length;M++){var T=this._children[M];O.delFromStorage(T),T instanceof k&&T.delChildrenFromStorage(O)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(O){for(var M=null,T=new I(0,0,0,0),n=O||this._children,p=[],a=0;a<n.length;a++){var t=n[a];if(t.ignore||t.invisible)continue;var A=t.getBoundingRect(),l=t.getLocalTransform(p);l?(T.copy(A),T.applyTransform(l),M=M||T.clone(),M.union(T)):(M=M||A.clone(),M.union(A))}return M||T}},Z.inherits(k,Q);var _=k;Be.exports=_},"4mN7":function(Be,ee,v){var Z=v("QBsz"),Q=v("Sj9i"),I=Math.min,k=Math.max,_=Math.sin,O=Math.cos,M=Math.PI*2,T=Z.create(),n=Z.create(),p=Z.create();function a(f,o,u){if(f.length===0)return;var E=f[0],R=E[0],w=E[0],P=E[1],C=E[1],b;for(b=1;b<f.length;b++)E=f[b],R=I(R,E[0]),w=k(w,E[0]),P=I(P,E[1]),C=k(C,E[1]);o[0]=R,o[1]=P,u[0]=w,u[1]=C}function t(f,o,u,E,R,w){R[0]=I(f,u),R[1]=I(o,E),w[0]=k(f,u),w[1]=k(o,E)}var A=[],l=[];function i(f,o,u,E,R,w,P,C,b,s){var h=Q.cubicExtrema,m=Q.cubicAt,x,g=h(f,u,R,P,A);for(b[0]=Infinity,b[1]=Infinity,s[0]=-Infinity,s[1]=-Infinity,x=0;x<g;x++){var y=m(f,u,R,P,A[x]);b[0]=I(y,b[0]),s[0]=k(y,s[0])}for(g=h(o,E,w,C,l),x=0;x<g;x++){var U=m(o,E,w,C,l[x]);b[1]=I(U,b[1]),s[1]=k(U,s[1])}b[0]=I(f,b[0]),s[0]=k(f,s[0]),b[0]=I(P,b[0]),s[0]=k(P,s[0]),b[1]=I(o,b[1]),s[1]=k(o,s[1]),b[1]=I(C,b[1]),s[1]=k(C,s[1])}function c(f,o,u,E,R,w,P,C){var b=Q.quadraticExtremum,s=Q.quadraticAt,h=k(I(b(f,u,R),1),0),m=k(I(b(o,E,w),1),0),x=s(f,u,R,h),g=s(o,E,w,m);P[0]=I(f,R,x),P[1]=I(o,w,g),C[0]=k(f,R,x),C[1]=k(o,w,g)}function d(f,o,u,E,R,w,P,C,b){var s=Z.min,h=Z.max,m=Math.abs(R-w);if(m%M<1e-4&&m>1e-4){C[0]=f-u,C[1]=o-E,b[0]=f+u,b[1]=o+E;return}if(T[0]=O(R)*u+f,T[1]=_(R)*E+o,n[0]=O(w)*u+f,n[1]=_(w)*E+o,s(C,T,n),h(b,T,n),R=R%M,R<0&&(R=R+M),w=w%M,w<0&&(w=w+M),R>w&&!P?w+=M:R<w&&P&&(R+=M),P){var x=w;w=R,R=x}for(var g=0;g<w;g+=Math.PI/2)g>R&&(p[0]=O(g)*u+f,p[1]=_(g)*E+o,s(C,p,C),h(b,p,b))}ee.fromPoints=a,ee.fromLine=t,ee.fromCubic=i,ee.fromQuadratic=c,ee.fromArc=d},"4qgm":function(Be,ee){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNjYBkraJCqqiCDEDZSncezdmTnVnd2FxaztmfWaa632w9459/7v75xzz71j4R61ssM6TkrYqMon3qesPjFNLt6LoWWgB5n1ttr/GcMCLKrE5qFgPJf3gRXN5XJgoMcfUIFlR/QxiqgVhyfVA/MxTWKgPuZvL51UtUyTjwdK6IAI/NLbWlQylhctWC0xPuN35Zi+gFUMfpIzoqxsLpffDoTIggssb9KvqLBJYnxD3dvUepq8OIAPquxzfCobJ8v5QgotmMAxDVoyYjAvi81KcRiWk1qPKm/RPIvHqy2T5FeFElkQgeVNWq42m8TmcU0G8ZVXC2ia5vOW47Lq2BQ5m5ehrIf6JbC0WQdbsMSH5ZbNED/R3+mYDHSL5kcqVLZOZB8imq/lvAWWHdWpOGySIqYEwvKk1mtsmtl5/M72WNk4Wf6dj8jIAqce1qGJEparsgSHQVoIar3M3GRadWnDp+rb5eyJi0RaykgCy47q9DS1srDUvLRzme+YFXhg5CY2YD4uf/RdVrROkffCGgk13vQTOrzdZZUKi8SmOCy1pMLUYfCDkfD7T+Cvl1PTckKNereENM1L6rFmaAc/PzRD3L6E9jlUabN+Swj2tfFB6o8Q7h0e/GQMPDcy9djBS7DjPJzthOJ+0lSPvzguyxonyz96E9mjwIpGHeGZ+lFYiEXMpP+ozQhcPgZmj7z95MUE1H8Ef7gIhnCszyXOPWqa5lWUDVcvsu3Mk5KrXsodEhUtOtNT6qwYj0allj2dXAIzvx+5CtvOwT9vQpEFVtTVMzuK8QJT1yY55HssbZ0sLd3N3LF+k47pZ70YcZS5WNj5UAsr0PS74cG+C/DLNrjppYTm0wKaSW7gUxvz2HL0q/Jpxs4tgeVN+rRvUWPF+Hx/qEURmOl7uh1ePweN11Iua+XjtsYLUjSP+BZLW0vlmLEvk07paK+LNWoxWwQxBXKhWm8u2n2MpA+/+S/suQDXvfxc1ti0ioIC/ybK5o5BbJbSJj1pD+HLXnu0DBlmEaIIzNjbfi6VhErydNeAmgX2MPCu8ZxMaNJptlBjSi6zv+VbKOcSHFVgwxXY/CFc6AI7Hzc14kzBni7xPJtFgZnxp/S+WJLFAsvEYWiko04vKMMKbOtK7Y9/+h/4mmchkFWkWz6VxyvkzYBm9vzKjmsFFnX9PfZkbPYl0BSVBy7CzvNwvqsfm3/WMct1WXUy65h1lyNMb9CS9iEsUouVls3w/tDsTeCZDjDxduhqKqHk5ZJpaprgQ/VZleug3KOnl/1dJ6QvjL4Z5uohbAx2+fBWG/ziY7icTFHLp4W96ug1lM3l0eCxvIhQicWIqBu/IbhyLDz7cErCiRup6qX5ej/2u4iXVaFyVdlxfUyFN0UojbJPGlozH4B5o+DAJfh1GxjR+VYs2deNFrx2vELa+qIfSqAxUtqkW61iXvY7+zJ55+/mFGHcsN0FJ8+a89Y1RoL3xWVF85TwF8ahBZY16RtSzEtRBRq5RmTogbqtn6GGh+vDThHiLWVyadYstffvl/Q1cu8LHnrc/giMxjzdOxNrCU6rsry1Qv5sflkQ1x8qjN5VJWvD2C2cQGMpwmG4t8lJUUAtobDds1l3coJcnVulox2LdU4xzyc62berWmbfG4GSKo80SVKK0gfjfIWaGDXFcoJW32dZ6yR5x4hYuEafUaixbcYaX3cT7NlVLfMGXGAmq4nPHlz2YvMjbJ41k4iSbYOSylBz6VThZ+2dbPzga3Jj4Todhcd6FZ4XAd8DJwZucqAF3q4gPgCWZ78GK2/S76nFBonxSKhzZfoc5ydpxGNpy2Q5HFCr0mew2WjZPOJmXZcMuMDgFZiPi1Dv3SRuXmTOqdWhRV28ZHkc3hGXw+VN+rAK67GYjWD1VCAYd/Q9borHZrWpaymTjoWv6igtZh0E59OAWnYbMIGljbrDGc4L3g3eRQNqB83A89bo4zb81HYodV06VKkb+S4b4/slMbFRn7JsaiTGF7JpZu5S/ARH8FjSMkUaja35cZ1lCTUBNXPwzhHLRmAywd7dcZlb2Bhs1C3EGNTlsOr0eLkyZ7kOdYawyoJXRCj2PDArbjvguRxVl1d2rZXGCa36oO2zBmWexLCD+ExwHai91M6WszOkc06Vfi5msc4QNzmrO7VsIbEiSCTYubtaXiiowNJmfcBssumVniGw2XaY6Jl3gN1W2oj0fTrUY9PIf7HB0Cxv0ifUZhF+SlxzuZy4i1ofV5NOyu5ltXiqvlL+VlCBGWNzV+vX7RgHnRj3JXPeRKZ6ZtP0fBbviacugTItoOakY60PasalLTuIx3dIsrh+rZwKIy6YR9iOmX7z6zUmbTwhQq1l82gugtk20zRvqrKJDrZeKaX9/vd42oIay7kzQ+aaS/C8x3WEtZc9tu2PS6TXPZEFZibx4w36YMKl2lRPIti9xY2haQh4LmcQbqBMSBPpcX2zPKDB91m8Oy4no8LIi2D3QRZW6Uxs6sLQtMzhNkfq724zTf2aKutH+rwej0gt217eBLONLKzWh8z/wWgImr1RCKgZ0h4N4rJk59pUIupPK4jAzAQWxPU7QJ3t8MW+YjMXNfW55ivriy+xbfv23C9ToootqEAzeEDTplqV+X3FZibbWqlE0iCwZOdr/adWcBfNtarzqvS7tkWt1QtNE2uGGrAhNpzXty8qDLV7IjBDUy3ioszHwspk2lux5tOgHkt3xaU1quuF7V9wF+2Rpk0dwjhTXypcQ9lYdD9bB4LaPSPYPdOqsAcYh8336yulOSyF/vT7P83Gv9qVBJysAAAAAElFTkSuQmCC"},"4u4S":function(Be,ee){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAASm0lEQVR4Xu2dd5QUVRbGfz3kJDkKCJJBAVFWRUUkGFBQEFRWFhUWmBlAoqCoMGKAVcC8CLKLBEEkKCZMgKjkqIIIKCKiMCAsUfLUntuvi+7pqeqq7q7pcbrrncMfTL10v/f1q/vuu/eWR0vmBaA/bnERiGMEPFoaSaTzLhrt4lhOV7QER8Aj8mtDKMJxlqJxeYLj4Yofpwh4ie4l+wAqcopVaFSJU1ldsRIYgfNE95K9L5dyjq/RuCCBMXFFj0MEMhHdS/ZUbkTjQzTyxqG8rkgJikAWonvJnkIvNCYmKCau2HGIgCHRfWQfg8awOJTZFSkBETAnuoaHFN4GOiUgLq7IcYaAKdG9u3oaBUlnCRpXxZncrjgJhkBIonvJ3o+ynGUlGhcnGDauuHGEgCXRfWbHupxjORol40h2V5QEQsAW0X1kb8FZPgHyJxA+rqhxgoBtovts7N3IYGqcyO6KkUAIhEV0H9nTyGBkAmHkihoHCIRNdJ+NfToaXeNAfleEBEEgMqKnkZ+9fAY0TxCcXDFzOQIREd27qw+kFCdZgUbtXI6BO/0EQCBiovts7DU4w0qgTAJg5YqYixGIiui+w2kzMlgEFMzFODg/9dLVISkPHN0PJw+b91+gGGSchTMnnJ9DcI9FSsNFTeHgL5C+DbRzmWt48mT9m5OzkvFLXAgHdsLJI072bNlX1ET3kf1uMpgFONKf5axzQ4Uxe6B4BXi7Pyx5yXzGveZBo9th21J4sVX0kpW6CA79DhlnsvZ1xT3QYxZoGgwsDqeO+utUuhRSFsCcgfDtgujnYdRDp/HQaqCa3/Cq2fujChrfMWJqyTwMjM4ehCx6HbgESla1P/TLN8P+7ap+gaLw6Df22r4zFDbMs1fXDtGrXw1Dl6v+5g2Bz8fZ69usVlI+GPsH5C8Mb3SDtbL3BJQOz8KND8HerfBE3czP+nwIl7RVP4J3H4FP/xXdXIJb5ysEo3+DIiXh49GwYLiz/Vv05hjRvTt7CpPR6BFTCWSwUT9B2TBccUZdAns2q2kWvACeD6FaBAoz9QFY+YY98ayIXrgUPLwaytZQ/f260Vp9WfwirJttPn6t62HQF+r5o9Xh4M7MdfsvgrotYfVMmHJv5mf5CkP3N6HxHervy6fAjH+ClmFPXqtaV90P901RtUbU9m80Vu0ceu4s0dPISzoL0Wjt0PzsdaMT/dNnYcN84zYeDwxdoZ6ZEX3BY/D7pqztH5gBBYuCEdFLVgHRbYNJFYroeQtCv4VQu4U9+fRaolYsluwkJuWOMXDTMNizBUbVz1pp7EG1o84dDIvGZ33uSQJRL1r6sp+smArTuztD9mGroNrfYPtXMD72VmlHiS7IacMozhGWodEgvFWMorZO9Jkp8NVrJkRPgn/7Dl9mRB/fArYvNSDIAShSKivRWw+BDv+CrYvhpTaZ25kR/YIKkPwuVL9S1V/4NOz+1lx4qdd6kHo+/gbY7tuxjVo8uhEqN4LPxsH8IZlryOH4qR2+fkzk1FvcOhJuS1P/+3oyvNlLVtZ4jqI21rjWevHy+CIzRTXKCDoEW7f21xhWEY7/EU4Lb13Hie4lex8uIsPr2lsh7BlF0iCniC67+Yjv1W7/SlvYvNA/eyOiN7gF7p0EJStDRgbMTIZlr5tLfEFFeGQtlKgEa96C/3Yxr1u8Eoz5TT1/oZX68QWWy+6EXnOVDj6ohLXVo/OL0PJB9XZ4rhmcOGQ89qAvodZ1kaxaZG2GlP3rEN1L9r5cwVlkeywcmURhtMopossUWw2CTuPg983wVCO/JSGQ6GtnQ9fJ0PA2JdSp4zC9B2z7Apo9oHbgYCtJ3gIgu+XFV8PJozCyDhzZYw5Ks+7wj/+ouoNLZ+2v/dNwy3BlVkyrYwNcD7R/Epa8DEfTzetXuQwKlTB/ftV9cPV96vmMXrD/Rxtjh6jy49fGFiWLXrNlR9fH1PpwOxnMRyMpOuksWutEF/1PP2QGNxEd/bre6q9OqS7Sl+jnw9dD5YZqIfUdOpDoSyfAgM+hVnPYtBBmpSj7+uPfqUO0EH5SJzh+QM2vfF11MKzaRL3mp3WHVdNCg9BzDjTpBAd/hdVvZq0rh8wKdWH/T7BuTmTL8et6WB9G28qN1bkoX0H48jUldw6VbCW6yKSlMACN57NVPqesLuHq6LpQjTpA8nw4vBdG1oJTxyBYdSlaFmrfAOslDNdXqjRR+nqpKrB/B0xoD2I5uXMs5C8EJ4/Bf+6BTR+Ghi8pLzy3HwqH2FmdWICV02Cqb3e26k+sWaJ2laulZHuqIZw+7m8lF2W9fabaN+4L/bayGsvG82wnuo/sr6DRx8Z8IquiE/3b92HnauM+ZEdvN8r5Hd3bo0ftzpUawIej4IORWYluJlmxctBzrtJzZfeW21Qp/9sNr94Gv9mw8ctBU9QnsyLPqzRW+vk370aGsbSSN0+oy6/Anv85Gy6/S51Fnm8BP36VeVwxr47zvcEerwF/+A7Kkc8uZMvYEP1t8rCEBWjcmi1y5KSOrgvU9O9K3fh5FTx3DYzebX0zWqE+NO2i/un29DOn4OtJyhoTSjcOB0iddDtWqINldpfmqdDlVTWKkQVI/h6PRPfu6qkUReNLNC5zHOe/AtFFVxdT4A7fTaeR1aVIGWU7r3MD1GmpdGa9CMGXTVa3hod91hMngCpcUr1d8hWAOYNgcfZqkV5fmsFfqfHEYvNMEzh7Mqsk8Up0L9n7UomzrAIqO7GG5/v4KxA9WCAjot/9MrTom7nmrvUgKpeQ/NBu/zOx5jRPgd0b4fXOkcMlfXT5t1JbxL8kcIzIezVuKT/e3u9AIV/qziPpcHSfcV05V1Ssp56JJejsqdCzmXA7HPg54hnHRHUJnJ3Wj0acQRS2YhHPOrihTvR3HoaVJiGtcuun25mdtLqYCWG4o5dWurxO7u8+MN+9dXOgqELPRpFWR7+RPH0CNn0UHuTiYSg3o3aKqG7dpkDe/OpHJWciJ8sT9WHvloh7dHg29uahpdKODN6zV9tGrZy2uhhN0exmVH5wdvxHnCB6xQYwwsClwQak3irH/oCHylrXbjMUOoxR5D5xGOYOUjZ9KVPvhxMGLrkFi8H9vk1pVqqyWAUXsTzJuUdKWj1I/8F6LiY1coboyYijxcCIZ222o9vtMLt3dCHzs+lQtIzfTff6vnBRGN9ZENOj2OaFbLLz60V2eDM3h2D5u89UB129rJ8LPy2zRkns8TWuUW+e0SHmLHLe9aJfHRNLkdwQy6XV0z41w+wm046OLp6lL/hciXMb0bUUuqIx3RrtMGroO/rbA2C5bycJ1fz0n/5dNdB7MVI7euBYYh8Wgum3oLo/eu/50LhDGEKZVJVbVrGtW5ULG4L4vsguK/7f4kYgRHzyUvPrfOmz+IWQ9oNya5jUGTbMNR9J9y+XGr99p0guZ4BS1RKb6FoKl6PxtePRSHYOo2bL5STRZYFT34cLL/GPphP9mp7Klm23VLtSvQGO7MtMtl3rYPl/rXtJeQ8atoPDe+CZy5Xfe+lqxi66gb31eAuuuFu5NMiPwsyZS9qIeVRcjeUtM7GjP5IqkYmuJVMOD2uz5dMxVkQXX4zrU+GTMVn1Y6eILh58smsXKwt/HgLxVREd0yzCyCpsLRodPTCgQwIwVk2Huq2hvyRuQLkUrPD5hgeS/NLb1A9VyuR7Qvu+6+1kLPnxnTvt7ylRia5NJB8bWYRG9ri5hSK66JEjNiubtRx6vpyQeTeMluhCWHGWajsCxBX1wC/wyi0wYLHxhVH+IuqGtt6NMO46czUiUqKL2e6hZcr3+6flMFZcaH0utve+DtdKMIWmfNIDbeoN2qorefFL2fwxvHqrvUOz0bslYYmewgQ0kq3ftxHWsNrRW/SDu19SO6147gXadqMhetmacP90uNhn/pPDmxDkyF5zFwAh+tCVSr3ZugReusnYGy9Sord7Eto+pq7exzQFccTSi4TadZ+hrualLHoB5g2Ghu1Bbk/FNLhjpXLzPfNnhItBYuroWio9yWBS5KjZaGlFdNl1H14DVS+DYMckK6JLiNm4g+qmT5yPAr0Iu0yA5r7fr4SnSYCC7rgUKsKoTA01H4n2kZA1I1t1JESveR0M/AKSkuCricrfPbjIG+7vE9XOLkU8PsUVWN5GopePaw5/HrQBeogqibaja6lIKowl2Z6B14rosiZNOkNPn+egLKbuZGREdLlN1O3d9W+GRu3VqqbVhfSt/hUuWwuGr4M5Yu0JOiBaxYzWvwn6fKRIKbbm4IuucIku55DHvoFSVeH4/5QXpe72a8TJwB+pPJc2cvh0wv3AKaIHBpP8Vc2L3uv+c6yLSZSRGdELFlc+2ld2Ve6v+m2dV3e9Ri2/EdEf/AzqBYW9eq0QAdYUnTzifWh0zW1FdGnfcSy0GawCMcQnZN82PyXDIbocfMXKUv9GpX9P6QprZhpvuXnyw/V9oO3j6o0SWHaugfdHwPcf58yOLq7Mkvfl7Gl1kJd5SmCKXEI9VC7zgTfMGWbLhZHWjwKc4Uvgb2HOJ7LqT+6AMtVBYkY3zlc6Z6M7lKVBVA697PkeRK8WXfSVW2HzR8ZEl2idayVO0hcN9N37IPbrUBE+wTO3Q3Qh6CPr4OAumPZAZm9Fu0QX4kpuGN1u/1Y/WPqKMY6NO6oY13I11XPxdxdLVKVLlEnx/EawTBE+OBzP7upEuqOL6jVYaBNUJEh72v12Rzeslz1ET0ZsV9HNzK5YNZurFA+ySGIzLlZeqQN6kZvFNbOUbr5rLeivbO+t3xUgV9F6uguzCyO7cwmsZ4foUt/sjdDxOWgzRNmozXxdxMIi6ph+ESX5WIS4gUXyqUjiInEmk4glvcgPVywvuqoidnvxaZcbUb3s2qAipuT8ESrbWDA+kRJdDstP71R5aaRIRjGJhhJT6OHfI1mF820cJ7qWzIPAi1HNKpzGElcZnDbi2AHY8qnahcWRKTAes0RlGPWjOnDJRYocHnOS6CKrvLJFffGmpdOU1eLBT6B8bZW+Y9KdxoiISbPdE+qZ+K+/95i/XpmLlfejvJ0kg4Fe5K02u5/5bi1B1Lc/o8bWiziESQideFgGB1AYzUwIq/vX79tunJHLjgtAODywqOso0bW+tOAcn8X0q9PNeqjI+l/WKPuv6JcSZRTKcUoCduUHcGy/seriBMB2d3QZS4I0RDcV/frMSaWf6iXUNXz5OvD4Jlj6qjoQ60VUoqd+huIV/X+ToOLPx6t0c5ZOZR5ocLPSkSVzgf6GFBVLgrSN/MvDxSy3Et2b4uIca2OeWVdezfKqC2VhCLUIVubFcBdQrx8O0SWUrknQrr3vRxX29t7joYklFz3eNBtBeVfE5UD80MWRS5IVyUYQSQl8M8gt7+oZkfSStU1uJLqWRmHSvUmLwnDmcAav6Hvx+Hc+0ecDr7Kj6bxcbRAdWi6PrOzS8mMTTz29SOxotGF0Yh4V85xTgRayocjbJpTvSzh4yd2G7vsj2dGsAi/C6dugriOqi5bCLDRsuNRFOVu3uYtAhAhETXQtlaFk4HDq1QilcZu5CJggEBXRtWRuwsNH2Z6gyF0+F4EoEYiY6FoqNdFY7X5NOsoVcJvHBIGIiO5LXSFJRGOXMTcmcLiDxCsCYRNd0/CQ6s2n6MsYH6/QuHLFEwLhEz3Z+9VoX/LseILClSWeEQiL6N7suOd4J7vyqscz0K5sOYuAbaJrqdQjw5tly7nEQzkruzt6AiFgi+jaAEpwEklTWyuBsHFFjSMELImupZFEOh+gcUscye2KkmAIWBM9ldFkeL8h6hYXgVyLQEiia324i3OE+LBlrpXbnXiCIWBKdF/WW0n2nf0f20ow0F1xY4+AIdG1PpT2+ZZXi/2U3BFdBJxHIAvRNfX150/QaOn8cG6PLgI5g0BWoicj3+D2fSM7Zybljuoi4DQCmYiupdKNDEw+GeH00G5/LgKxQ+A80bVUmpLhzcVSMHbDuyO5CMQGAS/Rtf6U55Q3sNnZj2jFRgZ3FBcBSwQ83pTOG7z5EQMy11i2cyu4COQqBDxaMq8BvXPVrN3JugiEiYClC0CY/bnVXQRii0DHWkEJbYKG95ABnmSX6LFdFnc0pxEISXTPWTxaN+Ztn+US3Wng3f5ii4A50U/hydOZeT94P8rkEj22y+KO5jQCRkT3eI6T5GnPHH/ea5foTgPv9hdbBLIS/RD58t7C7C0rAyfiEj22y+KO5jQCmYm+j3yeG5m97ZvgYVyiOw28219sEfATfTd5klozZ2vAR6b8U3GJHttlcUdzGgFF9J8gbyvmb/nFrHuX6E4D7/YXWwTurLWJQnnbMGPLnlADu0SP7bK4ozmNQLe6pZn2wwGrbv8PSygpSs9Cw9cAAAAASUVORK5CYII="},"500L":function(Be,ee,v){"use strict";v.d(ee,"a",function(){return R});var Z=v("+L6B"),Q=v("2/Rp"),I=v("2qtc"),k=v("kLXV"),_=v("9og8"),O=v("k1fw"),M=v("miYZ"),T=v("tsqr"),n=v("oBTY"),p=v("tJVT"),a=v("DZo9"),t=v("8z0m"),A=v("WmNS"),l=v.n(A),i=v("q1tI"),c=v.n(i),d=v("m3rI"),f=v("wzkS"),o=v("y5JW"),u=v("LtfV"),E=t.a.Dragger;function R(w){var P=[];return w&&w.length>0&&(P=w.map(function(C){return{uid:C.id,id:C.id,name:C.title+o.c+C.filesize,url:C.url,filesize:C.filesize,status:"done",response:{id:C.id}}})),P}ee.b=function(w){var P=w.value,C=w.onChange,b=w.action,s=w.className,h=w.maxSize,m=h===void 0?150:h,x=w.title,g=x===void 0?"\u4E0A\u4F20\u9644\u4EF6":x,y=w.showRemoveModal,U=y===void 0?!1:y,N=w.accept,S=N===void 0?"":N,H=w.additionalText,F=w.isDragger,B=w.number,z=B===void 0?1e3:B,K=w.aloneClear,$=K===void 0?!1:K,te=Object(i.useState)(!1),fe=Object(p.a)(te,2),Ae=fe[0],ce=fe[1],ie=Object(i.useState)(P||[]),ye=Object(p.a)(ie,2),le=ye[0],me=ye[1];Object(i.useEffect)(function(){P&&(me(Object(n.a)(P)),z===(P==null?void 0:P.length)&&ce(!0))},[P]);var se=function(){setTimeout(function(){le.pop(),me(Object(n.a)(le))},500)},ge={multiple:!0,disabled:Ae,accept:S,withCredentials:!0,fileList:le,beforeUpload:function(Me,xe){var Ke=Me.size/1024/1024;return le.concat(xe).length>z?(le.pop(),me(Object(n.a)(le)),T.b.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(z,"\u4E2A\u6587\u4EF6")),$?Promise.reject():(se(),!1)):!0},action:b||"".concat(d.a.API_SERVER,"/api/attachments.json"),onChange:function(Me){var xe,Ke,et=Object(n.a)(Me.fileList);if(Me.file.status==="done"&&((xe=Me.file)===null||xe===void 0||((Ke=xe.response)===null||Ke===void 0)?void 0:Ke.status)===-1){var he,Se;T.b.error((he=Me.file)===null||he===void 0||((Se=he.response)===null||Se===void 0)?void 0:Se.message);return}et.length>=z?ce(!0):ce(!1),me(Object(n.a)(et)),et=et.map(function(Ue){var Ne;if(Ue!=null&&(Ne=Ue.response)!==null&&Ne!==void 0&&Ne.id){var ct;Ue.url="/api/attachments/".concat(Ue==null||((ct=Ue.response)===null||ct===void 0)?void 0:ct.id)}return Ue.name.indexOf(o.c)===-1&&(Ue.name="".concat(Ue.name).concat(o.c).concat(Object(o.a)(Ue.size))),Object(O.a)({},Ue)}),console.log("info:",Me),C(et)},onRemove:function(){var pe=Object(_.a)(l.a.mark(function xe(Ke){var et;return l.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:if(et=function(){var Ue=Object(_.a)(l.a.mark(function Ne(){var ct,ft;return l.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:if(ct=Ke.response?Ke.response.id:Ke.id,!ct){dt.next=8;break}return dt.next=4,Object(f.d)(Ke.response?Ke.response.id:Ke.uid);case 4:return ft=dt.sent,dt.abrupt("return",ft);case 8:return dt.abrupt("return",!0);case 9:case"end":return dt.stop()}},Ne)}));return function(){return Ue.apply(this,arguments)}}(),!U){Se.next=5;break}return Se.abrupt("return",new Promise(function(Ue,Ne){k.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:c.a.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var ct=Object(_.a)(l.a.mark(function Ot(){var dt;return l.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:return jt.next=2,et();case 2:dt=jt.sent,T.b.success("\u5220\u9664\u6210\u529F"),Ue(!0);case 5:case"end":return jt.stop()}},Ot)}));function ft(){return ct.apply(this,arguments)}return ft}(),onCancel:function(){return Ue(!1)}})}));case 5:return Se.next=7,et();case 7:return Se.abrupt("return",Se.sent);case 8:case"end":return Se.stop()}},xe)}));function Me(xe){return pe.apply(this,arguments)}return Me}()};function ae(pe){pe.preventDefault(),pe.stopPropagation()}return c.a.createElement("div",{className:"multi-upload ".concat(s||"")},F&&c.a.createElement(E,ge,c.a.createElement("p",{className:"ant-upload-drag-icon"},c.a.createElement(u.a,null)),c.a.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",c.a.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",m,"MB)"," "),H),!F&&c.a.createElement(t.a,ge,c.a.createElement(Q.a,{style:{width:"108px",height:"32px",background:"#F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%)",boxShadow:"0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255,255,255,0.5)",borderRadius:"2px",border:"1px solid #BACFFE",color:"#3061D0"},icon:c.a.createElement("i",{className:"iconfont icon-shangchuan3",style:{marginRight:"6px"}}),disabled:Ae},g),c.a.createElement("span",{onClick:ae,style:{marginLeft:10,color:"#FA6400"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",m,"MB)"," ")))}},"55Ip":function(Be,ee,v){"use strict";v.d(ee,"a",function(){return o});var Z=v("Ty5D"),Q=v("dI71"),I=v("q1tI"),k=v.n(I),_=v("YS25"),O=v("17x9"),M=v.n(O),T=v("wx14"),n=v("zLVn"),p=v("9R94"),a=function(s){Object(Q.a)(h,s);function h(){for(var x,g=arguments.length,y=new Array(g),U=0;U<g;U++)y[U]=arguments[U];return x=s.call.apply(s,[this].concat(y))||this,x.history=Object(_.a)(x.props),x}var m=h.prototype;return m.render=function(){return k.a.createElement(Z.c,{history:this.history,children:this.props.children})},h}(k.a.Component),t=function(s){Object(Q.a)(h,s);function h(){for(var x,g=arguments.length,y=new Array(g),U=0;U<g;U++)y[U]=arguments[U];return x=s.call.apply(s,[this].concat(y))||this,x.history=Object(_.b)(x.props),x}var m=h.prototype;return m.render=function(){return k.a.createElement(Z.c,{history:this.history,children:this.props.children})},h}(k.a.Component),A=function(h,m){return typeof h=="function"?h(m):h},l=function(h,m){return typeof h=="string"?Object(_.c)(h,null,null,m):h},i=function(h){return h},c=k.a.forwardRef;typeof c=="undefined"&&(c=i);function d(s){return!!(s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)}var f=c(function(s,h){var m=s.innerRef,x=s.navigate,g=s.onClick,y=Object(n.a)(s,["innerRef","navigate","onClick"]),U=y.target,N=Object(T.a)({},y,{onClick:function(H){try{g&&g(H)}catch(F){throw H.preventDefault(),F}!H.defaultPrevented&&H.button===0&&(!U||U==="_self")&&!d(H)&&(H.preventDefault(),x())}});return i!==c?N.ref=h||m:N.ref=m,k.a.createElement("a",N)}),o=c(function(s,h){var m=s.component,x=m===void 0?f:m,g=s.replace,y=s.to,U=s.innerRef,N=Object(n.a)(s,["component","replace","to","innerRef"]);return k.a.createElement(Z.e.Consumer,null,function(S){S||Object(p.a)(!1);var H=S.history,F=l(A(y,S.location),S.location),B=F?H.createHref(F):"",z=Object(T.a)({},N,{href:B,navigate:function(){var $=A(y,S.location),te=g?H.replace:H.push;te($)}});return i!==c?z.ref=h||U:z.innerRef=U,k.a.createElement(x,z)})});if(!1)var u,E;var R=function(h){return h},w=k.a.forwardRef;typeof w=="undefined"&&(w=R);function P(){for(var s=arguments.length,h=new Array(s),m=0;m<s;m++)h[m]=arguments[m];return h.filter(function(x){return x}).join(" ")}var C=w(function(s,h){var m=s["aria-current"],x=m===void 0?"page":m,g=s.activeClassName,y=g===void 0?"active":g,U=s.activeStyle,N=s.className,S=s.exact,H=s.isActive,F=s.location,B=s.sensitive,z=s.strict,K=s.style,$=s.to,te=s.innerRef,fe=Object(n.a)(s,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return k.a.createElement(Z.e.Consumer,null,function(Ae){Ae||Object(p.a)(!1);var ce=F||Ae.location,ie=l(A($,ce),ce),ye=ie.pathname,le=ye&&ye.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),me=le?Object(Z.f)(ce.pathname,{path:le,exact:S,sensitive:B,strict:z}):null,se=!!(H?H(me,ce):me),ge=se?P(N,y):N,ae=se?Object(T.a)({},K,{},U):K,pe=Object(T.a)({"aria-current":se&&x||null,className:ge,style:ae,to:ie},fe);return R!==w?pe.ref=h||te:pe.innerRef=te,k.a.createElement(o,pe)})});if(!1)var b},"59Ip":function(Be,ee,v){var Z=v("Sj9i");function Q(I,k,_,O,M,T,n,p,a,t,A){if(a===0)return!1;var l=a;if(A>k+l&&A>O+l&&A>T+l&&A>p+l||A<k-l&&A<O-l&&A<T-l&&A<p-l||t>I+l&&t>_+l&&t>M+l&&t>n+l||t<I-l&&t<_-l&&t<M-l&&t<n-l)return!1;var i=Z.cubicProjectPoint(I,k,_,O,M,T,n,p,t,A,null);return i<=l/2}ee.containStroke=Q},"5D2P":function(Be,ee){Be.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="},"5VLF":function(Be,ee,v){"use strict";var Z,Q;function I(k,_,O){var M=function(T,n){return k.js_beautify(T,n)};return M.js=k.js_beautify,M.css=_.css_beautify,M.html=O.html_beautify,M.js_beautify=k.js_beautify,M.css_beautify=_.css_beautify,M.html_beautify=O.html_beautify,M}!(Z=[v("6UM0"),v("TXwP"),v("psGv")],Q=function(k,_,O){return I(k,_,O)}.apply(ee,Z),Q!==void 0&&(Be.exports=Q))},"5Y4S":function(Be,ee,v){"use strict";v.d(ee,"a",function(){return I});var Z=v("MNsG");const Q=Z.b.performance&&typeof Z.b.performance.now=="function";class I{constructor(k){this._highResolution=Q&&k,this._startTime=this._now(),this._stopTime=-1}static create(k=!0){return new I(k)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?Z.b.performance.now():Date.now()}}},"6+eU":function(Be,ee,v){"use strict";v.d(ee,"a",function(){return w});var Z=v("wx14"),Q=v("rePB"),I=v("VTBJ"),k=v("1OyB"),_=v("vuIU"),O=v("Ji7U"),M=v("LK+K"),T=v("q1tI"),n=v.n(T),p=v("TSYQ"),a=v.n(p),t=function(C){var b,s="".concat(C.rootPrefixCls,"-item"),h=a()(s,"".concat(s,"-").concat(C.page),(b={},Object(Q.a)(b,"".concat(s,"-active"),C.active),Object(Q.a)(b,C.className,!!C.className),Object(Q.a)(b,"".concat(s,"-disabled"),!C.page),b)),m=function(){C.onClick(C.page)},x=function(y){C.onKeyPress(y,C.onClick,C.page)};return n.a.createElement("li",{title:C.showTitle?C.page:null,className:h,onClick:m,onKeyPress:x,tabIndex:"0"},C.itemRender(C.page,"page",n.a.createElement("a",{rel:"nofollow"},C.page)))},A=t,l={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},i=function(P){Object(O.a)(b,P);var C=Object(M.a)(b);function b(){var s;Object(k.a)(this,b);for(var h=arguments.length,m=new Array(h),x=0;x<h;x++)m[x]=arguments[x];return s=C.call.apply(C,[this].concat(m)),s.state={goInputText:""},s.buildOptionText=function(g){return"".concat(g," ").concat(s.props.locale.items_per_page)},s.changeSize=function(g){s.props.changeSize(Number(g))},s.handleChange=function(g){s.setState({goInputText:g.target.value})},s.handleBlur=function(g){var y=s.props,U=y.goButton,N=y.quickGo,S=y.rootPrefixCls,H=s.state.goInputText;if(U||H==="")return;if(g.relatedTarget&&(g.relatedTarget.className.indexOf("".concat(S,"-prev"))>=0||g.relatedTarget.className.indexOf("".concat(S,"-next"))>=0))return;s.setState({goInputText:""}),N(s.getValidValue())},s.go=function(g){var y=s.state.goInputText;if(y==="")return;(g.keyCode===l.ENTER||g.type==="click")&&(s.setState({goInputText:""}),s.props.quickGo(s.getValidValue()))},s}return Object(_.a)(b,[{key:"getValidValue",value:function(){var h=this.state,m=h.goInputText,x=h.current;return!m||isNaN(m)?x:Number(m)}},{key:"getPageSizeOptions",value:function(){var h=this.props,m=h.pageSize,x=h.pageSizeOptions;return x.some(function(g){return g.toString()===m.toString()})?x:x.concat([m.toString()]).sort(function(g,y){var U=isNaN(Number(g))?0:Number(g),N=isNaN(Number(y))?0:Number(y);return U-N})}},{key:"render",value:function(){var h=this,m=this.props,x=m.pageSize,g=m.locale,y=m.rootPrefixCls,U=m.changeSize,N=m.quickGo,S=m.goButton,H=m.selectComponentClass,F=m.buildOptionText,B=m.selectPrefixCls,z=m.disabled,K=this.state.goInputText,$="".concat(y,"-options"),te=H,fe=null,Ae=null,ce=null;if(!U&&!N)return null;var ie=this.getPageSizeOptions();if(U&&te){var ye=ie.map(function(le,me){return n.a.createElement(te.Option,{key:me,value:le.toString()},(F||h.buildOptionText)(le))});fe=n.a.createElement(te,{disabled:z,prefixCls:B,showSearch:!1,className:"".concat($,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(x||ie[0]).toString(),onChange:this.changeSize,getPopupContainer:function(me){return me.parentNode}},ye)}return N&&(S&&(ce=typeof S=="boolean"?n.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:z,className:"".concat($,"-quick-jumper-button")},g.jump_to_confirm):n.a.createElement("span",{onClick:this.go,onKeyUp:this.go},S)),Ae=n.a.createElement("div",{className:"".concat($,"-quick-jumper")},g.jump_to,n.a.createElement("input",{disabled:z,type:"text",value:K,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),g.page,ce)),n.a.createElement("li",{className:"".concat($)},fe,Ae)}}]),b}(n.a.Component);i.defaultProps={pageSizeOptions:["10","20","50","100"]};var c=i,d=v("N2Kk");function f(){}function o(P){return typeof P=="number"&&isFinite(P)&&Math.floor(P)===P}function u(P,C,b){return b}function E(P,C,b){var s=typeof P=="undefined"?C.pageSize:P;return Math.floor((b.total-1)/s)+1}var R=function(P){Object(O.a)(b,P);var C=Object(M.a)(b);function b(s){var h;Object(k.a)(this,b),h=C.call(this,s),h.getJumpPrevPage=function(){return Math.max(1,h.state.current-(h.props.showLessItems?3:5))},h.getJumpNextPage=function(){return Math.min(E(void 0,h.state,h.props),h.state.current+(h.props.showLessItems?3:5))},h.getItemIcon=function(U,N){var S=h.props.prefixCls,H=U||n.a.createElement("button",{type:"button","aria-label":N,className:"".concat(S,"-item-link")});return typeof U=="function"&&(H=n.a.createElement(U,Object(I.a)({},h.props))),H},h.savePaginationNode=function(U){h.paginationNode=U},h.isValid=function(U){return o(U)&&U!==h.state.current},h.shouldDisplayQuickJumper=function(){var U=h.props,N=U.showQuickJumper,S=U.pageSize,H=U.total;return H<=S?!1:N},h.handleKeyDown=function(U){(U.keyCode===l.ARROW_UP||U.keyCode===l.ARROW_DOWN)&&U.preventDefault()},h.handleKeyUp=function(U){var N=h.getValidValue(U),S=h.state.currentInputValue;N!==S&&h.setState({currentInputValue:N}),U.keyCode===l.ENTER?h.handleChange(N):U.keyCode===l.ARROW_UP?h.handleChange(N-1):U.keyCode===l.ARROW_DOWN&&h.handleChange(N+1)},h.changePageSize=function(U){var N=h.state.current,S=E(U,h.state,h.props);N=N>S?S:N,S===0&&(N=h.state.current),typeof U=="number"&&("pageSize"in h.props||h.setState({pageSize:U}),"current"in h.props||h.setState({current:N,currentInputValue:N})),h.props.onShowSizeChange(N,U),"onChange"in h.props&&h.props.onChange&&h.props.onChange(N,U)},h.handleChange=function(U){var N=h.props.disabled,S=U;if(h.isValid(S)&&!N){var H=E(void 0,h.state,h.props);S>H?S=H:S<1&&(S=1),"current"in h.props||h.setState({current:S,currentInputValue:S});var F=h.state.pageSize;return h.props.onChange(S,F),S}return h.state.current},h.prev=function(){h.hasPrev()&&h.handleChange(h.state.current-1)},h.next=function(){h.hasNext()&&h.handleChange(h.state.current+1)},h.jumpPrev=function(){h.handleChange(h.getJumpPrevPage())},h.jumpNext=function(){h.handleChange(h.getJumpNextPage())},h.hasPrev=function(){return h.state.current>1},h.hasNext=function(){return h.state.current<E(void 0,h.state,h.props)},h.runIfEnter=function(U,N){if(U.key==="Enter"||U.charCode===13){for(var S=arguments.length,H=new Array(S>2?S-2:0),F=2;F<S;F++)H[F-2]=arguments[F];N.apply(void 0,H)}},h.runIfEnterPrev=function(U){h.runIfEnter(U,h.prev)},h.runIfEnterNext=function(U){h.runIfEnter(U,h.next)},h.runIfEnterJumpPrev=function(U){h.runIfEnter(U,h.jumpPrev)},h.runIfEnterJumpNext=function(U){h.runIfEnter(U,h.jumpNext)},h.handleGoTO=function(U){(U.keyCode===l.ENTER||U.type==="click")&&h.handleChange(h.state.currentInputValue)};var m=s.onChange!==f,x="current"in s;x&&!m&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var g=s.defaultCurrent;"current"in s&&(g=s.current);var y=s.defaultPageSize;return"pageSize"in s&&(y=s.pageSize),g=Math.min(g,E(y,void 0,s)),h.state={current:g,currentInputValue:g,pageSize:y},h}return Object(_.a)(b,[{key:"componentDidUpdate",value:function(h,m){var x=this.props.prefixCls;if(m.current!==this.state.current&&this.paginationNode){var g=this.paginationNode.querySelector(".".concat(x,"-item-").concat(m.current));g&&document.activeElement===g&&g.blur()}}},{key:"getValidValue",value:function(h){var m=h.target.value,x=E(void 0,this.state,this.props),g=this.state.currentInputValue,y;return m===""?y=m:isNaN(Number(m))?y=g:m>=x?y=x:y=Number(m),y}},{key:"getShowSizeChanger",value:function(){var h=this.props,m=h.showSizeChanger,x=h.total,g=h.totalBoundaryShowSizeChanger;return typeof m!="undefined"?m:x>g}},{key:"renderPrev",value:function(h){var m=this.props,x=m.prevIcon,g=m.itemRender,y=g(h,"prev",this.getItemIcon(x,"prev page")),U=!this.hasPrev();return Object(T.isValidElement)(y)?Object(T.cloneElement)(y,{disabled:U}):y}},{key:"renderNext",value:function(h){var m=this.props,x=m.nextIcon,g=m.itemRender,y=g(h,"next",this.getItemIcon(x,"next page")),U=!this.hasNext();return Object(T.isValidElement)(y)?Object(T.cloneElement)(y,{disabled:U}):y}},{key:"render",value:function(){var h=this,m=this.props,x=m.prefixCls,g=m.className,y=m.style,U=m.disabled,N=m.hideOnSinglePage,S=m.total,H=m.locale,F=m.showQuickJumper,B=m.showLessItems,z=m.showTitle,K=m.showTotal,$=m.simple,te=m.itemRender,fe=m.showPrevNextJumpers,Ae=m.jumpPrevIcon,ce=m.jumpNextIcon,ie=m.selectComponentClass,ye=m.selectPrefixCls,le=m.pageSizeOptions,me=this.state,se=me.current,ge=me.pageSize,ae=me.currentInputValue;if(N===!0&&S<=ge)return null;var pe=E(void 0,this.state,this.props),Me=[],xe=null,Ke=null,et=null,he=null,Se=null,Ue=F&&F.goButton,Ne=B?1:2,ct=se-1>0?se-1:0,ft=se+1<pe?se+1:pe,Ot=Object.keys(this.props).reduce(function(we,Le){return(Le.substr(0,5)==="data-"||Le.substr(0,5)==="aria-"||Le==="role")&&(we[Le]=h.props[Le]),we},{});if($)return Ue&&(typeof Ue=="boolean"?Se=n.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},H.jump_to_confirm):Se=n.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ue),Se=n.a.createElement("li",{title:z?"".concat(H.jump_to).concat(se,"/").concat(pe):null,className:"".concat(x,"-simple-pager")},Se)),n.a.createElement("ul",Object(Z.a)({className:a()(x,"".concat(x,"-simple"),Object(Q.a)({},"".concat(x,"-disabled"),U),g),style:y,ref:this.savePaginationNode},Ot),n.a.createElement("li",{title:z?H.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:a()("".concat(x,"-prev"),Object(Q.a)({},"".concat(x,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(ct)),n.a.createElement("li",{title:z?"".concat(se,"/").concat(pe):null,className:"".concat(x,"-simple-pager")},n.a.createElement("input",{type:"text",value:ae,disabled:U,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),n.a.createElement("span",{className:"".concat(x,"-slash")},"/"),pe),n.a.createElement("li",{title:z?H.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:a()("".concat(x,"-next"),Object(Q.a)({},"".concat(x,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(ft)),Se);if(pe<=3+Ne*2){var dt={locale:H,rootPrefixCls:x,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:z,itemRender:te};pe||Me.push(n.a.createElement(A,Object(Z.a)({},dt,{key:"noPager",page:pe,className:"".concat(x,"-disabled")})));for(var Ut=1;Ut<=pe;Ut+=1){var jt=se===Ut;Me.push(n.a.createElement(A,Object(Z.a)({},dt,{key:Ut,page:Ut,active:jt})))}}else{var ze=B?H.prev_3:H.prev_5,Ve=B?H.next_3:H.next_5;fe&&(xe=n.a.createElement("li",{title:z?ze:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:a()("".concat(x,"-jump-prev"),Object(Q.a)({},"".concat(x,"-jump-prev-custom-icon"),!!Ae))},te(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Ae,"prev page"))),Ke=n.a.createElement("li",{title:z?Ve:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:a()("".concat(x,"-jump-next"),Object(Q.a)({},"".concat(x,"-jump-next-custom-icon"),!!ce))},te(this.getJumpNextPage(),"jump-next",this.getItemIcon(ce,"next page")))),he=n.a.createElement(A,{locale:H,last:!0,rootPrefixCls:x,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:pe,page:pe,active:!1,showTitle:z,itemRender:te}),et=n.a.createElement(A,{locale:H,rootPrefixCls:x,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:z,itemRender:te});var Et=Math.max(1,se-Ne),Rt=Math.min(se+Ne,pe);se-1<=Ne&&(Rt=1+Ne*2),pe-se<=Ne&&(Et=pe-Ne*2);for(var ut=Et;ut<=Rt;ut+=1){var vt=se===ut;Me.push(n.a.createElement(A,{locale:H,rootPrefixCls:x,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ut,page:ut,active:vt,showTitle:z,itemRender:te}))}se-1>=Ne*2&&se!==1+2&&(Me[0]=Object(T.cloneElement)(Me[0],{className:"".concat(x,"-item-after-jump-prev")}),Me.unshift(xe)),pe-se>=Ne*2&&se!==pe-2&&(Me[Me.length-1]=Object(T.cloneElement)(Me[Me.length-1],{className:"".concat(x,"-item-before-jump-next")}),Me.push(Ke)),Et!==1&&Me.unshift(et),Rt!==pe&&Me.push(he)}var Ze=null;K&&(Ze=n.a.createElement("li",{className:"".concat(x,"-total-text")},K(S,[S===0?0:(se-1)*ge+1,se*ge>S?S:se*ge])));var ke=!this.hasPrev()||!pe,He=!this.hasNext()||!pe;return n.a.createElement("ul",Object(Z.a)({className:a()(x,g,Object(Q.a)({},"".concat(x,"-disabled"),U)),style:y,unselectable:"unselectable",ref:this.savePaginationNode},Ot),Ze,n.a.createElement("li",{title:z?H.prev_page:null,onClick:this.prev,tabIndex:ke?null:0,onKeyPress:this.runIfEnterPrev,className:a()("".concat(x,"-prev"),Object(Q.a)({},"".concat(x,"-disabled"),ke)),"aria-disabled":ke},this.renderPrev(ct)),Me,n.a.createElement("li",{title:z?H.next_page:null,onClick:this.next,tabIndex:He?null:0,onKeyPress:this.runIfEnterNext,className:a()("".concat(x,"-next"),Object(Q.a)({},"".concat(x,"-disabled"),He)),"aria-disabled":He},this.renderNext(ft)),n.a.createElement(c,{disabled:U,locale:H,rootPrefixCls:x,selectComponentClass:ie,selectPrefixCls:ye,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:se,pageSize:ge,pageSizeOptions:le,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ue}))}}],[{key:"getDerivedStateFromProps",value:function(h,m){var x={};if("current"in h&&(x.current=h.current,h.current!==m.current&&(x.currentInputValue=x.current)),"pageSize"in h&&h.pageSize!==m.pageSize){var g=m.current,y=E(h.pageSize,m,h);g=g>y?y:g,"current"in h||(x.current=g,x.currentInputValue=g),x.pageSize=h.pageSize}return x}}]),b}(n.a.Component);R.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:f,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:f,locale:d.a,style:{},itemRender:u,totalBoundaryShowSizeChanger:50};var w=R},"6GrX":function(Be,ee,v){var Z=v("mFDi"),Q=v("Xnb7"),I=v("bYtY"),k=I.getContext,_=I.extend,O=I.retrieve2,M=I.retrieve3,T=I.trim,n={},p=0,a=5e3,t=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,A="12px sans-serif",l={};function i(N,S){l[N]=S}function c(N,S){S=S||A;var H=N+":"+S;if(n[H])return n[H];for(var F=(N+"").split(`
`),B=0,z=0,K=F.length;z<K;z++)B=Math.max(m(F[z],S).width,B);return p>a&&(p=0,n={}),p++,n[H]=B,B}function d(N,S,H,F,B,z,K,$){return K?o(N,S,H,F,B,z,K,$):f(N,S,H,F,B,z,$)}function f(N,S,H,F,B,z,K){var $=x(N,S,B,z,K),te=c(N,S);B&&(te+=B[1]+B[3]);var fe=$.outerHeight,Ae=u(0,te,H),ce=E(0,fe,F),ie=new Z(Ae,ce,te,fe);return ie.lineHeight=$.lineHeight,ie}function o(N,S,H,F,B,z,K,$){var te=g(N,{rich:K,truncate:$,font:S,textAlign:H,textPadding:B,textLineHeight:z}),fe=te.outerWidth,Ae=te.outerHeight,ce=u(0,fe,H),ie=E(0,Ae,F);return new Z(ce,ie,fe,Ae)}function u(N,S,H){return H==="right"?N-=S:H==="center"&&(N-=S/2),N}function E(N,S,H){return H==="middle"?N-=S/2:H==="bottom"&&(N-=S),N}function R(N,S,H){var F=S.textPosition,B=S.textDistance,z=H.x,K=H.y;B=B||0;var $=H.height,te=H.width,fe=$/2,Ae="left",ce="top";switch(F){case"left":z-=B,K+=fe,Ae="right",ce="middle";break;case"right":z+=B+te,K+=fe,ce="middle";break;case"top":z+=te/2,K-=B,Ae="center",ce="bottom";break;case"bottom":z+=te/2,K+=$+B,Ae="center";break;case"inside":z+=te/2,K+=fe,Ae="center",ce="middle";break;case"insideLeft":z+=B,K+=fe,ce="middle";break;case"insideRight":z+=te-B,K+=fe,Ae="right",ce="middle";break;case"insideTop":z+=te/2,K+=B,Ae="center";break;case"insideBottom":z+=te/2,K+=$-B,Ae="center",ce="bottom";break;case"insideTopLeft":z+=B,K+=B;break;case"insideTopRight":z+=te-B,K+=B,Ae="right";break;case"insideBottomLeft":z+=B,K+=$-B,ce="bottom";break;case"insideBottomRight":z+=te-B,K+=$-B,Ae="right",ce="bottom";break}return N=N||{},N.x=z,N.y=K,N.textAlign=Ae,N.textVerticalAlign=ce,N}function w(N,S,H){var F={textPosition:N,textDistance:H};return R({},F,S)}function P(N,S,H,F,B){if(!S)return"";var z=(N+"").split(`
`);B=C(S,H,F,B);for(var K=0,$=z.length;K<$;K++)z[K]=b(z[K],B);return z.join(`
`)}function C(N,S,H,F){F=_({},F),F.font=S;var H=O(H,"...");F.maxIterations=O(F.maxIterations,2);var B=F.minChar=O(F.minChar,0);F.cnCharWidth=c("\u56FD",S);var z=F.ascCharWidth=c("a",S);F.placeholder=O(F.placeholder,"");for(var K=N=Math.max(0,N-1),$=0;$<B&&K>=z;$++)K-=z;var te=c(H,S);return te>K&&(H="",te=0),K=N-te,F.ellipsis=H,F.ellipsisWidth=te,F.contentWidth=K,F.containerWidth=N,F}function b(N,S){var H=S.containerWidth,F=S.font,B=S.contentWidth;if(!H)return"";var z=c(N,F);if(z<=H)return N;for(var K=0;;K++){if(z<=B||K>=S.maxIterations){N+=S.ellipsis;break}var $=K===0?s(N,B,S.ascCharWidth,S.cnCharWidth):z>0?Math.floor(N.length*B/z):0;N=N.substr(0,$),z=c(N,F)}return N===""&&(N=S.placeholder),N}function s(N,S,H,F){for(var B=0,z=0,K=N.length;z<K&&B<S;z++){var $=N.charCodeAt(z);B+=0<=$&&$<=127?H:F}return z}function h(N){return c("\u56FD",N)}function m(N,S){return l.measureText(N,S)}l.measureText=function(N,S){var H=k();return H.font=S||A,H.measureText(N)};function x(N,S,H,F,B){N!=null&&(N+="");var z=O(F,h(S)),K=N?N.split(`
`):[],$=K.length*z,te=$,fe=!0;if(H&&(te+=H[0]+H[2]),N&&B){fe=!1;var Ae=B.outerHeight,ce=B.outerWidth;if(Ae!=null&&te>Ae)N="",K=[];else if(ce!=null)for(var ie=C(ce-(H?H[1]+H[3]:0),S,B.ellipsis,{minChar:B.minChar,placeholder:B.placeholder}),ye=0,le=K.length;ye<le;ye++)K[ye]=b(K[ye],ie)}return{lines:K,height:$,outerHeight:te,lineHeight:z,canCacheByTextString:fe}}function g(N,S){var H={lines:[],width:0,height:0};if(N!=null&&(N+=""),!N)return H;for(var F=t.lastIndex=0,B;(B=t.exec(N))!=null;){var z=B.index;z>F&&y(H,N.substring(F,z)),y(H,B[2],B[1]),F=t.lastIndex}F<N.length&&y(H,N.substring(F,N.length));var K=H.lines,$=0,te=0,fe=[],Ae=S.textPadding,ce=S.truncate,ie=ce&&ce.outerWidth,ye=ce&&ce.outerHeight;Ae&&(ie!=null&&(ie-=Ae[1]+Ae[3]),ye!=null&&(ye-=Ae[0]+Ae[2]));for(var le=0;le<K.length;le++){for(var me=K[le],se=0,ge=0,ae=0;ae<me.tokens.length;ae++){var pe=me.tokens[ae],Me=pe.styleName&&S.rich[pe.styleName]||{},xe=pe.textPadding=Me.textPadding,Ke=pe.font=Me.font||S.font,et=pe.textHeight=O(Me.textHeight,h(Ke));if(xe&&(et+=xe[0]+xe[2]),pe.height=et,pe.lineHeight=M(Me.textLineHeight,S.textLineHeight,et),pe.textAlign=Me&&Me.textAlign||S.textAlign,pe.textVerticalAlign=Me&&Me.textVerticalAlign||"middle",ye!=null&&$+pe.lineHeight>ye)return{lines:[],width:0,height:0};pe.textWidth=c(pe.text,Ke);var he=Me.textWidth,Se=he==null||he==="auto";if(typeof he=="string"&&he.charAt(he.length-1)==="%")pe.percentWidth=he,fe.push(pe),he=0;else{if(Se){he=pe.textWidth;var Ue=Me.textBackgroundColor,Ne=Ue&&Ue.image;Ne&&(Ne=Q.findExistImage(Ne),Q.isImageReady(Ne)&&(he=Math.max(he,Ne.width*et/Ne.height)))}var ct=xe?xe[1]+xe[3]:0;he+=ct;var ft=ie!=null?ie-ge:null;ft!=null&&ft<he&&(!Se||ft<ct?(pe.text="",pe.textWidth=he=0):(pe.text=P(pe.text,ft-ct,Ke,ce.ellipsis,{minChar:ce.minChar}),pe.textWidth=c(pe.text,Ke),he=pe.textWidth+ct))}ge+=pe.width=he,Me&&(se=Math.max(se,pe.lineHeight))}me.width=ge,me.lineHeight=se,$+=se,te=Math.max(te,ge)}H.outerWidth=H.width=O(S.textWidth,te),H.outerHeight=H.height=O(S.textHeight,$),Ae&&(H.outerWidth+=Ae[1]+Ae[3],H.outerHeight+=Ae[0]+Ae[2]);for(var le=0;le<fe.length;le++){var pe=fe[le],Ot=pe.percentWidth;pe.width=parseInt(Ot,10)/100*te}return H}function y(N,S,H){for(var F=S==="",B=S.split(`
`),z=N.lines,K=0;K<B.length;K++){var $=B[K],te={styleName:H,text:$,isLineHolder:!$&&!F};if(K)z.push({tokens:[te]});else{var fe=(z[z.length-1]||(z[0]={tokens:[]})).tokens,Ae=fe.length;Ae===1&&fe[0].isLineHolder?fe[0]=te:($||!Ae||F)&&fe.push(te)}}}function U(N){var S=(N.fontSize||N.fontFamily)&&[N.fontStyle,N.fontWeight,(N.fontSize||12)+"px",N.fontFamily||"sans-serif"].join(" ");return S&&T(S)||N.textFont||N.font}ee.DEFAULT_FONT=A,ee.$override=i,ee.getWidth=c,ee.getBoundingRect=d,ee.adjustTextX=u,ee.adjustTextY=E,ee.calculateTextPosition=R,ee.adjustTextPositionOnRect=w,ee.truncateText=P,ee.getLineHeight=h,ee.measureText=m,ee.parsePlainText=x,ee.parseRichText=g,ee.makeFont=U},"6RRn":function(Be,ee,v){"use strict";var Z=v("wCXF"),Q=v("n6Qo");v.d(ee,"b",function(){return Q.a});var I=v("IBYe"),k=v("6eGT"),_=v("hW8S");v.d(ee,"a",function(){return _.a}),ee.c=Z.b},"6UM0":function(Be,ee,v){var Z,Q;(function(){var I;(function(){"use strict";var _=[function(n,p,a){var t=a(1).Beautifier,A=a(5).Options;function l(i,c){var d=new t(i,c);return d.beautify()}n.exports=l,n.exports.defaultOptions=function(){return new A}},function(n,p,a){var t=a(2).Output,A=a(3).Token,l=a(4),i=a(5).Options,c=a(7).Tokenizer,d=a(7).line_starters,f=a(7).positionable_operators,o=a(7).TOKEN;function u(B,z){return z.indexOf(B)!==-1}function E(B){return B.replace(/^\s+/g,"")}function R(B){for(var z={},K=0;K<B.length;K++)z[B[K].replace(/-/g,"_")]=B[K];return z}function w(B,z){return B&&B.type===o.RESERVED&&B.text===z}function P(B,z){return B&&B.type===o.RESERVED&&u(B.text,z)}var C=["case","return","do","if","throw","else","await","break","continue","async"],b=["before-newline","after-newline","preserve-newline"],s=R(b),h=[s.before_newline,s.preserve_newline],m={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function x(B,z){if(z.multiline_frame||z.mode===m.ForInitializer||z.mode===m.Conditional)return;B.remove_indent(z.start_line_index)}function g(B){B=B.replace(l.allLineBreaks,`
`);for(var z=[],K=B.indexOf(`
`);K!==-1;)z.push(B.substring(0,K)),B=B.substring(K+1),K=B.indexOf(`
`);return B.length&&z.push(B),z}function y(B){return B===m.ArrayLiteral}function U(B){return u(B,[m.Expression,m.ForInitializer,m.Conditional])}function N(B,z){for(var K=0;K<B.length;K++){var $=B[K].trim();if($.charAt(0)!==z)return!1}return!0}function S(B,z){for(var K=0,$=B.length,te;K<$;K++)if(te=B[K],te&&te.indexOf(z)!==0)return!1;return!0}function H(B,z){z=z||{},this._source_text=B||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new i(z)}H.prototype.create_flags=function(B,z){var K=0;B&&(K=B.indentation_level,!this._output.just_added_newline()&&B.line_indent_level>K&&(K=B.line_indent_level));var $={mode:z,parent:B,last_token:B?B.last_token:new A(o.START_BLOCK,""),last_word:B?B.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:K,alignment:0,line_indent_level:B?B.line_indent_level:K,start_line_index:this._output.get_line_number(),ternary_depth:0};return $},H.prototype._reset=function(B){var z=B.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new t(this._options,z),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(m.BlockStatement);var K=new c(B,this._options);return this._tokens=K.tokenize(),B},H.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var B,z=this._reset(this._source_text),K=this._options.eol;this._options.eol==="auto"&&(K=`
`,z&&l.lineBreak.test(z||"")&&(K=z.match(l.lineBreak)[0]));for(var $=this._tokens.next();$;)this.handle_token($),this._last_last_text=this._flags.last_token.text,this._flags.last_token=$,$=this._tokens.next();return B=this._output.get_code(K),B},H.prototype.handle_token=function(B,z){B.type===o.START_EXPR?this.handle_start_expr(B):B.type===o.END_EXPR?this.handle_end_expr(B):B.type===o.START_BLOCK?this.handle_start_block(B):B.type===o.END_BLOCK?this.handle_end_block(B):B.type===o.WORD?this.handle_word(B):B.type===o.RESERVED?this.handle_word(B):B.type===o.SEMICOLON?this.handle_semicolon(B):B.type===o.STRING?this.handle_string(B):B.type===o.EQUALS?this.handle_equals(B):B.type===o.OPERATOR?this.handle_operator(B):B.type===o.COMMA?this.handle_comma(B):B.type===o.BLOCK_COMMENT?this.handle_block_comment(B,z):B.type===o.COMMENT?this.handle_comment(B,z):B.type===o.DOT?this.handle_dot(B):B.type===o.EOF?this.handle_eof(B):B.type===o.UNKNOWN?this.handle_unknown(B,z):this.handle_unknown(B,z)},H.prototype.handle_whitespace_and_comments=function(B,z){var K=B.newlines,$=this._options.keep_array_indentation&&y(this._flags.mode);if(B.comments_before)for(var te=B.comments_before.next();te;)this.handle_whitespace_and_comments(te,z),this.handle_token(te,z),te=B.comments_before.next();if($)for(var fe=0;fe<K;fe+=1)this.print_newline(fe>0,z);else if(this._options.max_preserve_newlines&&K>this._options.max_preserve_newlines&&(K=this._options.max_preserve_newlines),this._options.preserve_newlines&&K>1){this.print_newline(!1,z);for(var Ae=1;Ae<K;Ae+=1)this.print_newline(!0,z)}};var F=["async","break","continue","return","throw","yield"];H.prototype.allow_wrap_or_preserved_newline=function(B,z){if(z=z===void 0?!1:z,this._output.just_added_newline())return;var K=this._options.preserve_newlines&&B.newlines||z,$=u(this._flags.last_token.text,f)||u(B.text,f);if($){var te=u(this._flags.last_token.text,f)&&u(this._options.operator_position,h)||u(B.text,f);K=K&&te}if(K)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(P(this._flags.last_token,F))return;this._output.set_wrap_point()}},H.prototype.print_newline=function(B,z){if(!z&&(this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==o.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")))for(var K=this._tokens.peek();this._flags.mode===m.Statement&&!(this._flags.if_block&&w(K,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(B)&&(this._flags.multiline_frame=!0)},H.prototype.print_token_line_indentation=function(B){this._output.just_added_newline()&&(this._options.keep_array_indentation&&B.newlines&&(B.text==="["||y(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(B.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},H.prototype.print_token=function(B){if(this._output.raw){this._output.add_raw_token(B);return}if(this._options.comma_first&&B.previous&&B.previous.type===o.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var z=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(z),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(B),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(B),this._output.non_breaking_space=!0,this._output.add_token(B.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},H.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},H.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},H.prototype.set_mode=function(B){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,B),this._flags=this.create_flags(this._previous_flags,B),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},H.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===m.Statement&&x(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},H.prototype.start_of_object_property=function(){return this._flags.parent.mode===m.ObjectLiteral&&this._flags.mode===m.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||P(this._flags.last_token,["get","set"]))},H.prototype.start_of_statement=function(B){var z=!1;return z=z||P(this._flags.last_token,["var","let","const"])&&B.type===o.WORD,z=z||w(this._flags.last_token,"do"),z=z||!(this._flags.parent.mode===m.ObjectLiteral&&this._flags.mode===m.Statement)&&P(this._flags.last_token,F)&&!B.newlines,z=z||w(this._flags.last_token,"else")&&!(w(B,"if")&&!B.comments_before),z=z||this._flags.last_token.type===o.END_EXPR&&(this._previous_flags.mode===m.ForInitializer||this._previous_flags.mode===m.Conditional),z=z||this._flags.last_token.type===o.WORD&&this._flags.mode===m.BlockStatement&&!this._flags.in_case&&!(B.text==="--"||B.text==="++")&&this._last_last_text!=="function"&&B.type!==o.WORD&&B.type!==o.RESERVED,z=z||this._flags.mode===m.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||P(this._flags.last_token,["get","set"])),z?(this.set_mode(m.Statement),this.indent(),this.handle_whitespace_and_comments(B,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(B,P(B,["do","for","if","while"])),!0):!1},H.prototype.handle_start_expr=function(B){this.start_of_statement(B)||this.handle_whitespace_and_comments(B);var z=m.Expression;if(B.text==="["){if(this._flags.last_token.type===o.WORD||this._flags.last_token.text===")"){P(this._flags.last_token,d)&&(this._output.space_before_token=!0),this.print_token(B),this.set_mode(z),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}z=m.ArrayLiteral,y(this._flags.mode)&&((this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline())),u(this._flags.last_token.type,[o.START_EXPR,o.END_EXPR,o.WORD,o.OPERATOR,o.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===o.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,z=m.ForInitializer):u(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,z=m.Conditional):u(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&B.whitespace_before===""?this._output.space_before_token=!1:(u(this._flags.last_token.text,d)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===o.EQUALS||this._flags.last_token.type===o.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(B);else if(this._flags.last_token.type===o.WORD){this._output.space_before_token=!1;var K=this._tokens.peek(-3);if(this._options.space_after_named_function&&K){var $=this._tokens.peek(-4);P(K,["async","function"])||K.text==="*"&&P($,["async","function"])?this._output.space_before_token=!0:this._flags.mode===m.ObjectLiteral?(K.text==="{"||K.text===","||K.text==="*"&&($.text==="{"||$.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(B);(this._flags.last_token.type===o.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(u(this._last_last_text,["function","yield"])||this._flags.mode===m.ObjectLiteral&&u(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===o.START_BLOCK?this.print_newline():(this._flags.last_token.type===o.END_EXPR||this._flags.last_token.type===o.START_EXPR||this._flags.last_token.type===o.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===o.COMMA)&&this.allow_wrap_or_preserved_newline(B,B.newlines),this.print_token(B),this.set_mode(z),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},H.prototype.handle_end_expr=function(B){for(;this._flags.mode===m.Statement;)this.restore_mode();this.handle_whitespace_and_comments(B),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(B,B.text==="]"&&y(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===o.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(B),this.restore_mode(),x(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===m.Conditional&&(this._previous_flags.mode=m.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},H.prototype.handle_start_block=function(B){this.handle_whitespace_and_comments(B);var z=this._tokens.peek(),K=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===o.END_EXPR?(this.set_mode(m.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(m.BlockStatement):K&&(u(K.text,[":",","])&&u(z.type,[o.STRING,o.WORD,o.RESERVED])||u(z.text,["get","set","..."])&&u(K.type,[o.WORD,o.RESERVED]))?u(this._last_last_text,["class","interface"])&&!u(K.text,[":",","])?this.set_mode(m.BlockStatement):this.set_mode(m.ObjectLiteral):this._flags.last_token.type===o.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(m.BlockStatement):u(this._flags.last_token.type,[o.EQUALS,o.START_EXPR,o.COMMA,o.OPERATOR])||P(this._flags.last_token,["return","throw","import","default"])?this.set_mode(m.ObjectLiteral):this.set_mode(m.BlockStatement),this._flags.last_token&&(P(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var $=!z.comments_before&&z.text==="}",te=$&&this._flags.last_word==="function"&&this._flags.last_token.type===o.END_EXPR;if(this._options.brace_preserve_inline){var fe=0,Ae=null;this._flags.inline_frame=!0;do if(fe+=1,Ae=this._tokens.peek(fe-1),Ae.newlines){this._flags.inline_frame=!1;break}while(Ae.type!==o.EOF&&!(Ae.type===o.END_BLOCK&&Ae.opened===B))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&B.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==o.OPERATOR&&(te||this._flags.last_token.type===o.EQUALS||P(this._flags.last_token,C)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(y(this._previous_flags.mode)&&(this._flags.last_token.type===o.START_EXPR||this._flags.last_token.type===o.COMMA)&&((this._flags.last_token.type===o.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===o.COMMA||this._flags.last_token.type===o.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(B),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==o.OPERATOR&&this._flags.last_token.type!==o.START_EXPR&&(this._flags.last_token.type===o.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(B),this.indent(),!$&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},H.prototype.handle_end_block=function(B){for(this.handle_whitespace_and_comments(B);this._flags.mode===m.Statement;)this.restore_mode();var z=this._flags.last_token.type===o.START_BLOCK;this._flags.inline_frame&&!z?this._output.space_before_token=!0:this._options.brace_style==="expand"?z||this.print_newline():z||(y(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(B)},H.prototype.handle_word=function(B){if(B.type===o.RESERVED){if(u(B.text,["set","get"])&&this._flags.mode!==m.ObjectLiteral)B.type=o.WORD;else if(B.text==="import"&&u(this._tokens.peek().text,["(","."]))B.type=o.WORD;else if(u(B.text,["as","from"])&&!this._flags.import_block)B.type=o.WORD;else if(this._flags.mode===m.ObjectLiteral){var z=this._tokens.peek();z.text===":"&&(B.type=o.WORD)}}if(this.start_of_statement(B)?P(this._flags.last_token,["var","let","const"])&&B.type===o.WORD&&(this._flags.declaration_statement=!0):B.newlines&&!U(this._flags.mode)&&(this._flags.last_token.type!==o.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==o.EQUALS&&(this._options.preserve_newlines||!P(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(B),this.print_newline()):this.handle_whitespace_and_comments(B),this._flags.do_block&&!this._flags.do_while)if(w(B,"while")){this._output.space_before_token=!0,this.print_token(B),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&w(B,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===m.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&P(B,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(B),this._flags.in_case=!0;return}if((this._flags.last_token.type===o.COMMA||this._flags.last_token.type===o.START_EXPR||this._flags.last_token.type===o.EQUALS||this._flags.last_token.type===o.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(B)),w(B,"function")){(u(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(u(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===o.OPERATOR))&&(!this._output.just_added_blankline()&&!B.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===o.RESERVED||this._flags.last_token.type===o.WORD?P(this._flags.last_token,["get","set","new","export"])||P(this._flags.last_token,F)?this._output.space_before_token=!0:w(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===o.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(U(this._flags.mode)||y(this._flags.mode))||this.print_newline(),this.print_token(B),this._flags.last_word=B.text;return}var K="NONE";if(this._flags.last_token.type===o.END_BLOCK?this._previous_flags.inline_frame?K="SPACE":P(B,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&B.newlines?K="NEWLINE":(K="SPACE",this._output.space_before_token=!0):K="NEWLINE":this._flags.last_token.type===o.SEMICOLON&&this._flags.mode===m.BlockStatement?K="NEWLINE":this._flags.last_token.type===o.SEMICOLON&&U(this._flags.mode)?K="SPACE":this._flags.last_token.type===o.STRING?K="NEWLINE":this._flags.last_token.type===o.RESERVED||this._flags.last_token.type===o.WORD||this._flags.last_token.text==="*"&&(u(this._last_last_text,["function","yield"])||this._flags.mode===m.ObjectLiteral&&u(this._last_last_text,["{",","]))?K="SPACE":this._flags.last_token.type===o.START_BLOCK?this._flags.inline_frame?K="SPACE":K="NEWLINE":this._flags.last_token.type===o.END_EXPR&&(this._output.space_before_token=!0,K="NEWLINE"),P(B,d)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?K="SPACE":K="NEWLINE"),P(B,["else","catch","finally"]))if((!(this._flags.last_token.type===o.END_BLOCK&&this._previous_flags.mode===m.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&B.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var $=this._output.current_line;$.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else K==="NEWLINE"?P(this._flags.last_token,C)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&P(B,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==o.END_EXPR?(this._flags.last_token.type!==o.START_EXPR||!P(B,["var","let","const"]))&&this._flags.last_token.text!==":"&&(w(B,"if")&&w(B.previous,"else")?this._output.space_before_token=!0:this.print_newline()):P(B,d)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&y(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():K==="SPACE"&&(this._output.space_before_token=!0);B.previous&&(B.previous.type===o.WORD||B.previous.type===o.RESERVED)&&(this._output.space_before_token=!0),this.print_token(B),this._flags.last_word=B.text,B.type===o.RESERVED&&(B.text==="do"?this._flags.do_block=!0:B.text==="if"?this._flags.if_block=!0:B.text==="import"?this._flags.import_block=!0:this._flags.import_block&&w(B,"from")&&(this._flags.import_block=!1))},H.prototype.handle_semicolon=function(B){this.start_of_statement(B)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(B);for(var z=this._tokens.peek();this._flags.mode===m.Statement&&!(this._flags.if_block&&w(z,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(B)},H.prototype.handle_string=function(B){B.text.startsWith("`")&&B.newlines===0&&B.whitespace_before===""&&(B.previous.text===")"||this._flags.last_token.type===o.WORD)||(this.start_of_statement(B)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(B),this._flags.last_token.type===o.RESERVED||this._flags.last_token.type===o.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===o.COMMA||this._flags.last_token.type===o.START_EXPR||this._flags.last_token.type===o.EQUALS||this._flags.last_token.type===o.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(B):B.text.startsWith("`")&&this._flags.last_token.type===o.END_EXPR&&(B.previous.text==="]"||B.previous.text===")")&&B.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(B)},H.prototype.handle_equals=function(B){this.start_of_statement(B)||this.handle_whitespace_and_comments(B),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(B),this._output.space_before_token=!0},H.prototype.handle_comma=function(B){this.handle_whitespace_and_comments(B,!0),this.print_token(B),this._output.space_before_token=!0,this._flags.declaration_statement?(U(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(B)):this._flags.mode===m.ObjectLiteral||this._flags.mode===m.Statement&&this._flags.parent.mode===m.ObjectLiteral?(this._flags.mode===m.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(B)},H.prototype.handle_operator=function(B){var z=B.text==="*"&&(P(this._flags.last_token,["function","yield"])||u(this._flags.last_token.type,[o.START_BLOCK,o.COMMA,o.END_BLOCK,o.SEMICOLON])),K=u(B.text,["-","+"])&&(u(this._flags.last_token.type,[o.START_BLOCK,o.START_EXPR,o.EQUALS,o.OPERATOR])||u(this._flags.last_token.text,d)||this._flags.last_token.text===",");if(!this.start_of_statement(B)){var $=!z;this.handle_whitespace_and_comments(B,$)}if(B.text==="*"&&this._flags.last_token.type===o.DOT){this.print_token(B);return}if(B.text==="::"){this.print_token(B);return}if(this._flags.last_token.type===o.OPERATOR&&u(this._options.operator_position,h)&&this.allow_wrap_or_preserved_newline(B),B.text===":"&&this._flags.in_case){this.print_token(B),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==o.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var te=!0,fe=!0,Ae=!1;if(B.text===":"?this._flags.ternary_depth===0?te=!1:(this._flags.ternary_depth-=1,Ae=!0):B.text==="?"&&(this._flags.ternary_depth+=1),!K&&!z&&this._options.preserve_newlines&&u(B.text,f)){var ce=B.text===":",ie=ce&&Ae,ye=ce&&!Ae;switch(this._options.operator_position){case s.before_newline:this._output.space_before_token=!ye,this.print_token(B),(!ce||ie)&&this.allow_wrap_or_preserved_newline(B),this._output.space_before_token=!0;return;case s.after_newline:this._output.space_before_token=!0,!ce||ie?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(B):this._output.space_before_token=!1,this.print_token(B),this._output.space_before_token=!0;return;case s.preserve_newline:ye||this.allow_wrap_or_preserved_newline(B),te=!(this._output.just_added_newline()||ye),this._output.space_before_token=te,this.print_token(B),this._output.space_before_token=!0;return}}if(z){this.allow_wrap_or_preserved_newline(B),te=!1;var le=this._tokens.peek();fe=le&&u(le.type,[o.WORD,o.RESERVED])}else if(B.text==="...")this.allow_wrap_or_preserved_newline(B),te=this._flags.last_token.type===o.START_BLOCK,fe=!1;else if(u(B.text,["--","++","!","~"])||K){if((this._flags.last_token.type===o.COMMA||this._flags.last_token.type===o.START_EXPR)&&this.allow_wrap_or_preserved_newline(B),te=!1,fe=!1,B.newlines&&(B.text==="--"||B.text==="++"||B.text==="~")){var me=P(this._flags.last_token,C)&&B.newlines;me&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(me,!0)}this._flags.last_token.text===";"&&U(this._flags.mode)&&(te=!0),this._flags.last_token.type===o.RESERVED?te=!0:this._flags.last_token.type===o.END_EXPR?te=!(this._flags.last_token.text==="]"&&(B.text==="--"||B.text==="++")):this._flags.last_token.type===o.OPERATOR&&(te=u(B.text,["--","-","++","+"])&&u(this._flags.last_token.text,["--","-","++","+"]),u(B.text,["+","-"])&&u(this._flags.last_token.text,["--","++"])&&(fe=!0)),(this._flags.mode===m.BlockStatement&&!this._flags.inline_frame||this._flags.mode===m.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||te,this.print_token(B),this._output.space_before_token=fe},H.prototype.handle_block_comment=function(B,z){if(this._output.raw){this._output.add_raw_token(B),B.directives&&B.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(B.directives){this.print_newline(!1,z),this.print_token(B),B.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!l.newline.test(B.text)&&!B.newlines){this._output.space_before_token=!0,this.print_token(B),this._output.space_before_token=!0;return}else this.print_block_commment(B,z)},H.prototype.print_block_commment=function(B,z){var K=g(B.text),$,te=!1,fe=!1,Ae=B.whitespace_before,ce=Ae.length;if(this.print_newline(!1,z),this.print_token_line_indentation(B),this._output.add_token(K[0]),this.print_newline(!1,z),K.length>1){for(K=K.slice(1),te=N(K,"*"),fe=S(K,Ae),te&&(this._flags.alignment=1),$=0;$<K.length;$++)te?(this.print_token_line_indentation(B),this._output.add_token(E(K[$]))):fe&&K[$]?(this.print_token_line_indentation(B),this._output.add_token(K[$].substring(ce))):(this._output.current_line.set_indent(-1),this._output.add_token(K[$])),this.print_newline(!1,z);this._flags.alignment=0}},H.prototype.handle_comment=function(B,z){B.newlines?this.print_newline(!1,z):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(B),this.print_newline(!1,z)},H.prototype.handle_dot=function(B){this.start_of_statement(B)||this.handle_whitespace_and_comments(B,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),P(this._flags.last_token,C)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(B,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(B)},H.prototype.handle_unknown=function(B,z){this.print_token(B),B.text[B.text.length-1]===`
`&&this.print_newline(!1,z)},H.prototype.handle_eof=function(B){for(;this._flags.mode===m.Statement;)this.restore_mode();this.handle_whitespace_and_comments(B)},n.exports.Beautifier=H},function(n){function p(A){this.__parent=A,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}p.prototype.clone_empty=function(){var A=new p(this.__parent);return A.set_indent(this.__indent_count,this.__alignment_count),A},p.prototype.item=function(A){return A<0?this.__items[this.__items.length+A]:this.__items[A]},p.prototype.has_match=function(A){for(var l=this.__items.length-1;l>=0;l--)if(this.__items[l].match(A))return!0;return!1},p.prototype.set_indent=function(A,l){this.is_empty()&&(this.__indent_count=A||0,this.__alignment_count=l||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},p.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},p.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},p.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var A=this.__parent.current_line;return A.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),A.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),A.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,A.__items[0]===" "&&(A.__items.splice(0,1),A.__character_count-=1),!0}return!1},p.prototype.is_empty=function(){return this.__items.length===0},p.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},p.prototype.push=function(A){this.__items.push(A);var l=A.lastIndexOf(`
`);l!==-1?this.__character_count=A.length-l:this.__character_count+=A.length},p.prototype.pop=function(){var A=null;return this.is_empty()||(A=this.__items.pop(),this.__character_count-=A.length),A},p.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},p.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},p.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},p.prototype.toString=function(){var A="";return this.is_empty()?this.__parent.indent_empty_lines&&(A=this.__parent.get_indent_string(this.__indent_count)):(A=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),A+=this.__items.join("")),A};function a(A,l){this.__cache=[""],this.__indent_size=A.indent_size,this.__indent_string=A.indent_char,A.indent_with_tabs||(this.__indent_string=new Array(A.indent_size+1).join(A.indent_char)),l=l||"",A.indent_level>0&&(l=new Array(A.indent_level+1).join(this.__indent_string)),this.__base_string=l,this.__base_string_length=l.length}a.prototype.get_indent_size=function(A,l){var i=this.__base_string_length;return l=l||0,A<0&&(i=0),i+=A*this.__indent_size,i+=l,i},a.prototype.get_indent_string=function(A,l){var i=this.__base_string;return l=l||0,A<0&&(A=0,i=""),l+=A*this.__indent_size,this.__ensure_cache(l),i+=this.__cache[l],i},a.prototype.__ensure_cache=function(A){for(;A>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var A=this.__cache.length,l=0,i="";this.__indent_size&&A>=this.__indent_size&&(l=Math.floor(A/this.__indent_size),A-=l*this.__indent_size,i=new Array(l+1).join(this.__indent_string)),A&&(i+=new Array(A+1).join(" ")),this.__cache.push(i)};function t(A,l){this.__indent_cache=new a(A,l),this.raw=!1,this._end_with_newline=A.end_with_newline,this.indent_size=A.indent_size,this.wrap_line_length=A.wrap_line_length,this.indent_empty_lines=A.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new p(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},t.prototype.get_line_number=function(){return this.__lines.length},t.prototype.get_indent_string=function(A,l){return this.__indent_cache.get_indent_string(A,l)},t.prototype.get_indent_size=function(A,l){return this.__indent_cache.get_indent_size(A,l)},t.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},t.prototype.add_new_line=function(A){return this.is_empty()||!A&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},t.prototype.get_code=function(A){this.trim(!0);var l=this.current_line.pop();l&&(l[l.length-1]===`
`&&(l=l.replace(/\n+$/g,"")),this.current_line.push(l)),this._end_with_newline&&this.__add_outputline();var i=this.__lines.join(`
`);return A!==`
`&&(i=i.replace(/[\n]/g,A)),i},t.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},t.prototype.set_indent=function(A,l){return A=A||0,l=l||0,this.next_line.set_indent(A,l),this.__lines.length>1?(this.current_line.set_indent(A,l),!0):(this.current_line.set_indent(),!1)},t.prototype.add_raw_token=function(A){for(var l=0;l<A.newlines;l++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(A.whitespace_before),this.current_line.push(A.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},t.prototype.add_token=function(A){this.__add_space_before_token(),this.current_line.push(A),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},t.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},t.prototype.remove_indent=function(A){for(var l=this.__lines.length;A<l;)this.__lines[A]._remove_indent(),A++;this.current_line._remove_wrap_indent()},t.prototype.trim=function(A){for(A=A===void 0?!1:A,this.current_line.trim();A&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},t.prototype.just_added_newline=function(){return this.current_line.is_empty()},t.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},t.prototype.ensure_empty_line_above=function(A,l){for(var i=this.__lines.length-2;i>=0;){var c=this.__lines[i];if(c.is_empty())break;if(c.item(0).indexOf(A)!==0&&c.item(-1)!==l){this.__lines.splice(i+1,0,new p(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},n.exports.Output=t},function(n){function p(a,t,A,l){this.type=a,this.text=t,this.comments_before=null,this.newlines=A||0,this.whitespace_before=l||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}n.exports.Token=p},function(n,p){var a="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",t="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",A="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",l="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",i="(?:\\\\u[0-9a-fA-F]{4}|["+a+A+"])",c="(?:\\\\u[0-9a-fA-F]{4}|["+t+A+l+"])*";p.identifier=new RegExp(i+c,"g"),p.identifierStart=new RegExp(i),p.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+t+A+l+"])+");var d=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;p.newline=/[\n\r\u2028\u2029]/,p.lineBreak=new RegExp(`\r
|`+p.newline.source),p.allLineBreaks=new RegExp(p.lineBreak.source,"g")},function(n,p,a){var t=a(6).Options,A=["before-newline","after-newline","preserve-newline"];function l(i){t.call(this,i,"js");var c=this.raw_options.brace_style||null;c==="expand-strict"?this.raw_options.brace_style="expand":c==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var d=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var f=0;f<d.length;f++)d[f]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=d[f];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",A),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}l.prototype=new t,n.exports.Options=l},function(n){function p(A,l){this.raw_options=a(A,l),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}p.prototype._get_array=function(A,l){var i=this.raw_options[A],c=l||[];return typeof i=="object"?i!==null&&typeof i.concat=="function"&&(c=i.concat()):typeof i=="string"&&(c=i.split(/[^a-zA-Z0-9_\/\-]+/)),c},p.prototype._get_boolean=function(A,l){var i=this.raw_options[A],c=i===void 0?!!l:!!i;return c},p.prototype._get_characters=function(A,l){var i=this.raw_options[A],c=l||"";return typeof i=="string"&&(c=i.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),c},p.prototype._get_number=function(A,l){var i=this.raw_options[A];l=parseInt(l,10),isNaN(l)&&(l=0);var c=parseInt(i,10);return isNaN(c)&&(c=l),c},p.prototype._get_selection=function(A,l,i){var c=this._get_selection_list(A,l,i);if(c.length!==1)throw new Error("Invalid Option Value: The option '"+A+`' can only be one of the following values:
`+l+`
You passed in: '`+this.raw_options[A]+"'");return c[0]},p.prototype._get_selection_list=function(A,l,i){if(!l||l.length===0)throw new Error("Selection list cannot be empty.");if(i=i||[l[0]],!this._is_valid_selection(i,l))throw new Error("Invalid Default Value!");var c=this._get_array(A,i);if(!this._is_valid_selection(c,l))throw new Error("Invalid Option Value: The option '"+A+`' can contain only the following values:
`+l+`
You passed in: '`+this.raw_options[A]+"'");return c},p.prototype._is_valid_selection=function(A,l){return A.length&&l.length&&!A.some(function(i){return l.indexOf(i)===-1})};function a(A,l){var i={};A=t(A);var c;for(c in A)c!==l&&(i[c]=A[c]);if(l&&A[l])for(c in A[l])i[c]=A[l][c];return i}function t(A){var l={},i;for(i in A){var c=i.replace(/-/g,"_");l[c]=A[i]}return l}n.exports.Options=p,n.exports.normalizeOpts=t,n.exports.mergeOpts=a},function(n,p,a){var t=a(8).InputScanner,A=a(9).Tokenizer,l=a(9).TOKEN,i=a(13).Directives,c=a(4),d=a(12).Pattern,f=a(14).TemplatablePattern;function o(N,S){return S.indexOf(N)!==-1}var u={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:l.START,RAW:l.RAW,EOF:l.EOF},E=new i(/\/\*/,/\*\//),R=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,w=/[0-9]/,P=/[^\d\.]/,C=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),b=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";b=b.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),b="\\?\\.(?!\\d) "+b,b=b.replace(/ /g,"|");var s=new RegExp(b),h="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),m=h.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),x=new RegExp("^(?:"+m.join("|")+")$"),g,y=function(N,S){A.call(this,N,S),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var H=new d(this._input),F=new f(this._input).read_options(this._options);this.__patterns={template:F,identifier:F.starting_with(c.identifier).matching(c.identifierMatch),number:H.matching(R),punct:H.matching(s),comment:H.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:H.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:H.matching(/<!--/),html_comment_end:H.matching(/-->/),include:H.starting_with(/#include/).until_after(c.lineBreak),shebang:H.starting_with(/#!/).until_after(c.lineBreak),xml:H.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:F.until(/['\\\n\r\u2028\u2029]/),double_quote:F.until(/["\\\n\r\u2028\u2029]/),template_text:F.until(/[`\\$]/),template_expression:F.until(/[`}\\]/)}};y.prototype=new A,y.prototype._is_comment=function(N){return N.type===u.COMMENT||N.type===u.BLOCK_COMMENT||N.type===u.UNKNOWN},y.prototype._is_opening=function(N){return N.type===u.START_BLOCK||N.type===u.START_EXPR},y.prototype._is_closing=function(N,S){return(N.type===u.END_BLOCK||N.type===u.END_EXPR)&&S&&(N.text==="]"&&S.text==="["||N.text===")"&&S.text==="("||N.text==="}"&&S.text==="{")},y.prototype._reset=function(){g=!1},y.prototype._get_next_token=function(N,S){var H=null;this._readWhitespace();var F=this._input.peek();return F===null?this._create_token(u.EOF,""):(H=H||this._read_non_javascript(F),H=H||this._read_string(F),H=H||this._read_word(N),H=H||this._read_singles(F),H=H||this._read_comment(F),H=H||this._read_regexp(F,N),H=H||this._read_xml(F,N),H=H||this._read_punctuation(),H=H||this._create_token(u.UNKNOWN,this._input.next()),H)},y.prototype._read_word=function(N){var S;if(S=this.__patterns.identifier.read(),S!=="")return S=S.replace(c.allLineBreaks,`
`),!(N.type===u.DOT||N.type===u.RESERVED&&(N.text==="set"||N.text==="get"))&&x.test(S)?(S==="in"||S==="of")&&(N.type===u.WORD||N.type===u.STRING)?this._create_token(u.OPERATOR,S):this._create_token(u.RESERVED,S):this._create_token(u.WORD,S);if(S=this.__patterns.number.read(),S!=="")return this._create_token(u.WORD,S)},y.prototype._read_singles=function(N){var S=null;return N==="("||N==="["?S=this._create_token(u.START_EXPR,N):N===")"||N==="]"?S=this._create_token(u.END_EXPR,N):N==="{"?S=this._create_token(u.START_BLOCK,N):N==="}"?S=this._create_token(u.END_BLOCK,N):N===";"?S=this._create_token(u.SEMICOLON,N):N==="."&&P.test(this._input.peek(1))?S=this._create_token(u.DOT,N):N===","&&(S=this._create_token(u.COMMA,N)),S&&this._input.next(),S},y.prototype._read_punctuation=function(){var N=this.__patterns.punct.read();if(N!=="")return N==="="?this._create_token(u.EQUALS,N):N==="?."?this._create_token(u.DOT,N):this._create_token(u.OPERATOR,N)},y.prototype._read_non_javascript=function(N){var S="";if(N==="#"){if(this._is_first_token()&&(S=this.__patterns.shebang.read(),S))return this._create_token(u.UNKNOWN,S.trim()+`
`);if(S=this.__patterns.include.read(),S)return this._create_token(u.UNKNOWN,S.trim()+`
`);N=this._input.next();var H="#";if(this._input.hasNext()&&this._input.testChar(w)){do N=this._input.next(),H+=N;while(this._input.hasNext()&&N!=="#"&&N!=="=");return N==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(H+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(H+="{}",this._input.next(),this._input.next())),this._create_token(u.WORD,H)}this._input.back()}else if(N==="<"&&this._is_first_token()){if(S=this.__patterns.html_comment_start.read(),S){for(;this._input.hasNext()&&!this._input.testChar(c.newline);)S+=this._input.next();return g=!0,this._create_token(u.COMMENT,S)}}else if(g&&N==="-"&&(S=this.__patterns.html_comment_end.read(),S))return g=!1,this._create_token(u.COMMENT,S);return null},y.prototype._read_comment=function(N){var S=null;if(N==="/"){var H="";if(this._input.peek(1)==="*"){H=this.__patterns.block_comment.read();var F=E.get_directives(H);F&&F.ignore==="start"&&(H+=E.readIgnored(this._input)),H=H.replace(c.allLineBreaks,`
`),S=this._create_token(u.BLOCK_COMMENT,H),S.directives=F}else this._input.peek(1)==="/"&&(H=this.__patterns.comment.read(),S=this._create_token(u.COMMENT,H))}return S},y.prototype._read_string=function(N){if(N==="`"||N==="'"||N==='"'){var S=this._input.next();return this.has_char_escapes=!1,N==="`"?S+=this._read_string_recursive("`",!0,"${"):S+=this._read_string_recursive(N),this.has_char_escapes&&this._options.unescape_strings&&(S=U(S)),this._input.peek()===N&&(S+=this._input.next()),S=S.replace(c.allLineBreaks,`
`),this._create_token(u.STRING,S)}return null},y.prototype._allow_regexp_or_xml=function(N){return N.type===u.RESERVED&&o(N.text,["return","case","throw","else","do","typeof","yield"])||N.type===u.END_EXPR&&N.text===")"&&N.opened.previous.type===u.RESERVED&&o(N.opened.previous.text,["if","while","for"])||o(N.type,[u.COMMENT,u.START_EXPR,u.START_BLOCK,u.START,u.END_BLOCK,u.OPERATOR,u.EQUALS,u.EOF,u.SEMICOLON,u.COMMA])},y.prototype._read_regexp=function(N,S){if(N==="/"&&this._allow_regexp_or_xml(S)){for(var H=this._input.next(),F=!1,B=!1;this._input.hasNext()&&(F||B||this._input.peek()!==N)&&!this._input.testChar(c.newline);)H+=this._input.peek(),F?F=!1:(F=this._input.peek()==="\\",this._input.peek()==="["?B=!0:this._input.peek()==="]"&&(B=!1)),this._input.next();return this._input.peek()===N&&(H+=this._input.next(),H+=this._input.read(c.identifier)),this._create_token(u.STRING,H)}return null},y.prototype._read_xml=function(N,S){if(this._options.e4x&&N==="<"&&this._allow_regexp_or_xml(S)){var H="",F=this.__patterns.xml.read_match();if(F){for(var B=F[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),z=B.indexOf("{")===0,K=0;F;){var $=!!F[1],te=F[2],fe=!!F[F.length-1]||te.slice(0,8)==="![CDATA[";if(!fe&&(te===B||z&&te.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&($?--K:++K),H+=F[0],K<=0)break;F=this.__patterns.xml.read_match()}return F||(H+=this._input.match(/[\s\S]*/g)[0]),H=H.replace(c.allLineBreaks,`
`),this._create_token(u.STRING,H)}}return null};function U(N){for(var S="",H=0,F=new t(N),B=null;F.hasNext();)if(B=F.match(/([\s]|[^\\]|\\\\)+/g),B&&(S+=B[0]),F.peek()==="\\"){if(F.next(),F.peek()==="x")B=F.match(/x([0-9A-Fa-f]{2})/g);else if(F.peek()==="u")B=F.match(/u([0-9A-Fa-f]{4})/g);else{S+="\\",F.hasNext()&&(S+=F.next());continue}if(!B)return N;if(H=parseInt(B[1],16),H>126&&H<=255&&B[0].indexOf("x")===0)return N;if(H>=0&&H<32){S+="\\"+B[0];continue}else H===34||H===39||H===92?S+="\\"+String.fromCharCode(H):S+=String.fromCharCode(H)}return S}y.prototype._read_string_recursive=function(N,S,H){var F,B;N==="'"?B=this.__patterns.single_quote:N==='"'?B=this.__patterns.double_quote:N==="`"?B=this.__patterns.template_text:N==="}"&&(B=this.__patterns.template_expression);for(var z=B.read(),K="";this._input.hasNext();){if(K=this._input.next(),K===N||!S&&c.newline.test(K)){this._input.back();break}else K==="\\"&&this._input.hasNext()?(F=this._input.peek(),F==="x"||F==="u"?this.has_char_escapes=!0:F==="\r"&&this._input.peek(1)===`
`&&this._input.next(),K+=this._input.next()):H&&(H==="${"&&K==="$"&&this._input.peek()==="{"&&(K+=this._input.next()),H===K&&(N==="`"?K+=this._read_string_recursive("}",S,"`"):K+=this._read_string_recursive("`",S,"${"),this._input.hasNext()&&(K+=this._input.next())));K+=B.read(),z+=K}return z},n.exports.Tokenizer=y,n.exports.TOKEN=u,n.exports.positionable_operators=C.slice(),n.exports.line_starters=h.slice()},function(n){var p=RegExp.prototype.hasOwnProperty("sticky");function a(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}a.prototype.restart=function(){this.__position=0},a.prototype.back=function(){this.__position>0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position<this.__input_length},a.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__input.charAt(this.__position),this.__position+=1),t},a.prototype.peek=function(t){var A=null;return t=t||0,t+=this.__position,t>=0&&t<this.__input_length&&(A=this.__input.charAt(t)),A},a.prototype.__match=function(t,A){t.lastIndex=A;var l=t.exec(this.__input);return l&&!(p&&t.sticky)&&(l.index!==A&&(l=null)),l},a.prototype.test=function(t,A){return A=A||0,A+=this.__position,A>=0&&A<this.__input_length?!!this.__match(t,A):!1},a.prototype.testChar=function(t,A){var l=this.peek(A);return t.lastIndex=0,l!==null&&t.test(l)},a.prototype.match=function(t){var A=this.__match(t,this.__position);return A?this.__position+=A[0].length:A=null,A},a.prototype.read=function(t,A,l){var i="",c;return t&&(c=this.match(t),c&&(i+=c[0])),A&&(c||!t)&&(i+=this.readUntil(A,l)),i},a.prototype.readUntil=function(t,A){var l="",i=this.__position;t.lastIndex=this.__position;var c=t.exec(this.__input);return c?(i=c.index,A&&(i+=c[0].length)):i=this.__input_length,l=this.__input.substring(this.__position,i),this.__position=i,l},a.prototype.readUntilAfter=function(t){return this.readUntil(t,!0)},a.prototype.get_regexp=function(t,A){var l=null,i="g";return A&&p&&(i="y"),typeof t=="string"&&t!==""?l=new RegExp(t,i):t&&(l=new RegExp(t.source,i)),l},a.prototype.get_literal_regexp=function(t){return RegExp(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},a.prototype.peekUntilAfter=function(t){var A=this.__position,l=this.readUntilAfter(t);return this.__position=A,l},a.prototype.lookBack=function(t){var A=this.__position-1;return A>=t.length&&this.__input.substring(A-t.length,A).toLowerCase()===t},n.exports.InputScanner=a},function(n,p,a){var t=a(8).InputScanner,A=a(3).Token,l=a(10).TokenStream,i=a(11).WhitespacePattern,c={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},d=function(f,o){this._input=new t(f),this._options=o||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new i(this._input)};d.prototype.tokenize=function(){this._input.restart(),this.__tokens=new l,this._reset();for(var f,o=new A(c.START,""),u=null,E=[],R=new l;o.type!==c.EOF;){for(f=this._get_next_token(o,u);this._is_comment(f);)R.add(f),f=this._get_next_token(o,u);R.isEmpty()||(f.comments_before=R,R=new l),f.parent=u,this._is_opening(f)?(E.push(u),u=f):u&&this._is_closing(f,u)&&(f.opened=u,u.closed=f,u=E.pop(),f.parent=u),f.previous=o,o.next=f,this.__tokens.add(f),o=f}return this.__tokens},d.prototype._is_first_token=function(){return this.__tokens.isEmpty()},d.prototype._reset=function(){},d.prototype._get_next_token=function(f,o){this._readWhitespace();var u=this._input.read(/.+/g);return u?this._create_token(c.RAW,u):this._create_token(c.EOF,"")},d.prototype._is_comment=function(f){return!1},d.prototype._is_opening=function(f){return!1},d.prototype._is_closing=function(f,o){return!1},d.prototype._create_token=function(f,o){var u=new A(f,o,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return u},d.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},n.exports.Tokenizer=d,n.exports.TOKEN=c},function(n){function p(a){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=a}p.prototype.restart=function(){this.__position=0},p.prototype.isEmpty=function(){return this.__tokens_length===0},p.prototype.hasNext=function(){return this.__position<this.__tokens_length},p.prototype.next=function(){var a=null;return this.hasNext()&&(a=this.__tokens[this.__position],this.__position+=1),a},p.prototype.peek=function(a){var t=null;return a=a||0,a+=this.__position,a>=0&&a<this.__tokens_length&&(t=this.__tokens[a]),t},p.prototype.add=function(a){this.__parent_token&&(a.parent=this.__parent_token),this.__tokens.push(a),this.__tokens_length+=1},n.exports.TokenStream=p},function(n,p,a){var t=a(12).Pattern;function A(l,i){t.call(this,l,i),i?this._line_regexp=this._input.get_regexp(i._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}A.prototype=new t,A.prototype.__set_whitespace_patterns=function(l,i){l+="\\t ",i+="\\n\\r",this._match_pattern=this._input.get_regexp("["+l+i+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+i+"]")},A.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var l=this._input.read(this._match_pattern);if(l===" ")this.whitespace_before_token=" ";else if(l){var i=this.__split(this._newline_regexp,l);this.newline_count=i.length-1,this.whitespace_before_token=i[this.newline_count]}return l},A.prototype.matching=function(l,i){var c=this._create();return c.__set_whitespace_patterns(l,i),c._update(),c},A.prototype._create=function(){return new A(this._input,this)},A.prototype.__split=function(l,i){l.lastIndex=0;for(var c=0,d=[],f=l.exec(i);f;)d.push(i.substring(c,f.index)),c=f.index+f[0].length,f=l.exec(i);return c<i.length?d.push(i.substring(c,i.length)):d.push(""),d},n.exports.WhitespacePattern=A},function(n){function p(a,t){this._input=a,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,t&&(this._starting_pattern=this._input.get_regexp(t._starting_pattern,!0),this._match_pattern=this._input.get_regexp(t._match_pattern,!0),this._until_pattern=this._input.get_regexp(t._until_pattern),this._until_after=t._until_after)}p.prototype.read=function(){var a=this._input.read(this._starting_pattern);return(!this._starting_pattern||a)&&(a+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),a},p.prototype.read_match=function(){return this._input.match(this._match_pattern)},p.prototype.until_after=function(a){var t=this._create();return t._until_after=!0,t._until_pattern=this._input.get_regexp(a),t._update(),t},p.prototype.until=function(a){var t=this._create();return t._until_after=!1,t._until_pattern=this._input.get_regexp(a),t._update(),t},p.prototype.starting_with=function(a){var t=this._create();return t._starting_pattern=this._input.get_regexp(a,!0),t._update(),t},p.prototype.matching=function(a){var t=this._create();return t._match_pattern=this._input.get_regexp(a,!0),t._update(),t},p.prototype._create=function(){return new p(this._input,this)},p.prototype._update=function(){},n.exports.Pattern=p},function(n){function p(a,t){a=typeof a=="string"?a:a.source,t=typeof t=="string"?t:t.source,this.__directives_block_pattern=new RegExp(a+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(a+/\sbeautify\signore:end\s/.source+t,"g")}p.prototype.get_directives=function(a){if(!a.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var A=this.__directive_pattern.exec(a);A;)t[A[1]]=A[2],A=this.__directive_pattern.exec(a);return t},p.prototype.readIgnored=function(a){return a.readUntilAfter(this.__directives_end_ignore_pattern)},n.exports.Directives=p},function(n,p,a){var t=a(12).Pattern,A={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function l(i,c){t.call(this,i,c),this.__template_pattern=null,this._disabled=Object.assign({},A),this._excluded=Object.assign({},A),c&&(this.__template_pattern=this._input.get_regexp(c.__template_pattern),this._excluded=Object.assign(this._excluded,c._excluded),this._disabled=Object.assign(this._disabled,c._disabled));var d=new t(i);this.__patterns={handlebars_comment:d.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:d.starting_with(/{{{/).until_after(/}}}/),handlebars:d.starting_with(/{{/).until_after(/}}/),php:d.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:d.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:d.starting_with(/{%/).until_after(/%}/),django_value:d.starting_with(/{{/).until_after(/}}/),django_comment:d.starting_with(/{#/).until_after(/#}/),smarty:d.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:d.starting_with(/{\*/).until_after(/\*}/),smarty_literal:d.starting_with(/{literal}/).until_after(/{\/literal}/)}}l.prototype=new t,l.prototype._create=function(){return new l(this._input,this)},l.prototype._update=function(){this.__set_templated_pattern()},l.prototype.disable=function(i){var c=this._create();return c._disabled[i]=!0,c._update(),c},l.prototype.read_options=function(i){var c=this._create();for(var d in A)c._disabled[d]=i.templating.indexOf(d)===-1;return c._update(),c},l.prototype.exclude=function(i){var c=this._create();return c._excluded[i]=!0,c._update(),c},l.prototype.read=function(){var i="";this._match_pattern?i=this._input.read(this._starting_pattern):i=this._input.read(this._starting_pattern,this.__template_pattern);for(var c=this._read_template();c;)this._match_pattern?c+=this._input.read(this._match_pattern):c+=this._input.readUntil(this.__template_pattern),i+=c,c=this._read_template();return this._until_after&&(i+=this._input.readUntilAfter(this._until_pattern)),i},l.prototype.__set_templated_pattern=function(){var i=[];this._disabled.php||i.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||i.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||i.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(i.push(this.__patterns.django._starting_pattern.source),i.push(this.__patterns.django_value._starting_pattern.source),i.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||i.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&i.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+i.join("|")+")")},l.prototype._read_template=function(){var i="",c=this._input.peek();if(c==="<"){var d=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&d==="?"&&(i=i||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&d==="%"&&(i=i||this.__patterns.erb.read())}else c==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(i=i||this.__patterns.handlebars_comment.read(),i=i||this.__patterns.handlebars_unescaped.read(),i=i||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(i=i||this.__patterns.django_value.read()),this._excluded.django||(i=i||this.__patterns.django_comment.read(),i=i||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(i=i||this.__patterns.smarty_comment.read(),i=i||this.__patterns.smarty_literal.read(),i=i||this.__patterns.smarty.read()));return i},n.exports.TemplatablePattern=l}],O={};function M(n){var p=O[n];if(p!==void 0)return p.exports;var a=O[n]={exports:{}};return _[n](a,a.exports,M),a.exports}var T=M(0);I=T})();var k=I;!(Z=[],Q=function(){return{js_beautify:k}}.apply(ee,Z),Q!==void 0&&(Be.exports=Q))})()},"6eGT":function(Be,ee,v){"use strict";function Z(Q){return null}ee.a=Z},"6fms":function(Be,ee,v){var Z=v("SUKs"),Q=v("06Qe"),I=v("bYtY"),k=I.each;function _(n){return parseInt(n,10)}function O(n,p){Q.initVML(),this.root=n,this.storage=p;var a=document.createElement("div"),t=document.createElement("div");a.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",t.style.cssText="position:absolute;left:0;top:0;",n.appendChild(a),this._vmlRoot=t,this._vmlViewport=a,this.resize();var A=p.delFromStorage,l=p.addToStorage;p.delFromStorage=function(i){A.call(p,i),i&&(i.onRemove&&i.onRemove(t))},p.addToStorage=function(i){i.onAdd&&i.onAdd(t),l.call(p,i)},this._firstPaint=!0}O.prototype={constructor:O,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var n=this.getViewportRoot();if(n)return{offsetLeft:n.offsetLeft||0,offsetTop:n.offsetTop||0}},refresh:function(){var n=this.storage.getDisplayList(!0,!0);this._paintList(n)},_paintList:function(n){for(var p=this._vmlRoot,a=0;a<n.length;a++){var t=n[a];t.invisible||t.ignore?(t.__alreadyNotVisible||t.onRemove(p),t.__alreadyNotVisible=!0):(t.__alreadyNotVisible&&t.onAdd(p),t.__alreadyNotVisible=!1,t.__dirty&&(t.beforeBrush&&t.beforeBrush(),(t.brushVML||t.brush).call(t,p),t.afterBrush&&t.afterBrush())),t.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(p),this._firstPaint=!1)},resize:function(n,p){var n=n==null?this._getWidth():n,p=p==null?this._getHeight():p;if(this._width!==n||this._height!==p){this._width=n,this._height=p;var a=this._vmlViewport.style;a.width=n+"px",a.height=p+"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 n=this.root,p=n.currentStyle;return(n.clientWidth||_(p.width))-_(p.paddingLeft)-_(p.paddingRight)|0},_getHeight:function(){var n=this.root,p=n.currentStyle;return(n.clientHeight||_(p.height))-_(p.paddingTop)-_(p.paddingBottom)|0}};function M(n){return function(){Z('In IE8.0 VML mode painter not support method "'+n+'"')}}k(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(n){O.prototype[n]=M(n)});var T=O;Be.exports=T},"746U":function(Be,ee,v){"use strict";v.d(ee,"f",function(){return Z}),v.d(ee,"l",function(){return Q}),v.d(ee,"k",function(){return I}),v.d(ee,"j",function(){return k}),v.d(ee,"g",function(){return _}),v.d(ee,"m",function(){return O}),v.d(ee,"h",function(){return M}),v.d(ee,"n",function(){return T}),v.d(ee,"c",function(){return n}),v.d(ee,"a",function(){return p}),v.d(ee,"i",function(){return a}),v.d(ee,"o",function(){return t}),v.d(ee,"e",function(){return i}),v.d(ee,"d",function(){return c}),v.d(ee,"p",function(){return d}),v.d(ee,"b",function(){return f});function Z(o){return Array.isArray(o)}function Q(o){return typeof o=="string"}function I(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&!(o instanceof RegExp)&&!(o instanceof Date)}function k(o){return typeof o=="number"&&!isNaN(o)}function _(o){return o===!0||o===!1}function O(o){return typeof o=="undefined"}function M(o){return!T(o)}function T(o){return O(o)||o===null}function n(o,u){if(!o)throw new Error(u?`Unexpected type, expected '${u}'`:"Unexpected type")}function p(o){if(T(o))throw new Error("Assertion Failed: argument is undefined or null");return o}function a(o){return typeof o=="function"}function t(o,u){const E=Math.min(o.length,u.length);for(let R=0;R<E;R++)A(o[R],u[R])}function A(o,u){if(Q(u)){if(typeof o!==u)throw new Error(`argument does not match constraint: typeof ${u}`)}else if(a(u)){try{if(o instanceof u)return}catch(E){}if(!T(o)&&o.constructor===u)return;if(u.length===1&&u.call(void 0,o)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function l(o){let u=[],E=Object.getPrototypeOf(o);for(;Object.prototype!==E;)u=u.concat(Object.getOwnPropertyNames(E)),E=Object.getPrototypeOf(E);return u}function i(o){const u=[];for(const E of l(o))typeof o[E]=="function"&&u.push(E);return u}function c(o,u){const E=w=>function(){const P=Array.prototype.slice.call(arguments,0);return u(w,P)};let R={};for(const w of o)R[w]=E(w);return R}function d(o){return o===null?void 0:o}function f(o,u="Unreachable"){throw new Error(u)}},"7Cbv":function(Be,ee,v){"use strict";var Z=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),Q=new Uint8Array(16);function I(){if(!Z)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Z(Q)}var k=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function _(A){return typeof A=="string"&&k.test(A)}for(var O=_,M=[],T=0;T<256;++T)M.push((T+256).toString(16).substr(1));function n(A){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=(M[A[l+0]]+M[A[l+1]]+M[A[l+2]]+M[A[l+3]]+"-"+M[A[l+4]]+M[A[l+5]]+"-"+M[A[l+6]]+M[A[l+7]]+"-"+M[A[l+8]]+M[A[l+9]]+"-"+M[A[l+10]]+M[A[l+11]]+M[A[l+12]]+M[A[l+13]]+M[A[l+14]]+M[A[l+15]]).toLowerCase();if(!O(i))throw TypeError("Stringified UUID is invalid");return i}var p=n;function a(A,l,i){A=A||{};var c=A.random||(A.rng||I)();if(c[6]=c[6]&15|64,c[8]=c[8]&63|128,l){i=i||0;for(var d=0;d<16;++d)l[i+d]=c[d];return l}return p(c)}var t=ee.a=a},"7SHv":function(Be,ee,v){var Z=v("LPTA"),Q=Z.devicePixelRatio,I=v("bYtY"),k=v("SUKs"),_=v("mFDi"),O=v("BPZU"),M=v("Xmg4"),T=v("mLcG"),n=v("Dagg"),p=v("ItGF"),a=1e5,t=314159,A=.01,l=.001;function i(C){return parseInt(C,10)}function c(C){return C?C.__builtin__?!0:!(typeof C.resize!="function"||typeof C.refresh!="function"):!1}var d=new _(0,0,0,0),f=new _(0,0,0,0);function o(C,b,s){return d.copy(C.getBoundingRect()),C.transform&&d.applyTransform(C.transform),f.width=b,f.height=s,!d.intersect(f)}function u(C,b){if(C===b)return!1;if(!C||!b||C.length!==b.length)return!0;for(var s=0;s<C.length;s++)if(C[s]!==b[s])return!0;return!1}function E(C,b){for(var s=0;s<C.length;s++){var h=C[s];h.setTransform(b),b.beginPath(),h.buildPath(b,h.shape),b.clip(),h.restoreTransform(b)}}function R(C,b){var s=document.createElement("div");return s.style.cssText=["position:relative","width:"+C+"px","height:"+b+"px","padding:0","margin:0","border-width:0"].join(";")+";",s}var w=function(C,b,s){this.type="canvas";var h=!C.nodeName||C.nodeName.toUpperCase()==="CANVAS";this._opts=s=I.extend({},s||{}),this.dpr=s.devicePixelRatio||Q,this._singleCanvas=h,this.root=C;var m=C.style;m&&(m["-webkit-tap-highlight-color"]="transparent",m["-webkit-user-select"]=m["user-select"]=m["-webkit-touch-callout"]="none",C.innerHTML=""),this.storage=b;var x=this._zlevelList=[],g=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,h){var U=C.width,N=C.height;s.width!=null&&(U=s.width),s.height!=null&&(N=s.height),this.dpr=s.devicePixelRatio||1,C.width=U*this.dpr,C.height=N*this.dpr,this._width=U,this._height=N;var S=new M(C,this,this.dpr);S.__builtin__=!0,S.initContext(),g[t]=S,S.zlevel=t,x.push(t),this._domRoot=C}else{this._width=this._getSize(0),this._height=this._getSize(1);var y=this._domRoot=R(this._width,this._height);C.appendChild(y)}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 C=this.getViewportRoot();if(C)return{offsetLeft:C.offsetLeft||0,offsetTop:C.offsetTop||0}},refresh:function(C){var b=this.storage.getDisplayList(!0),s=this._zlevelList;this._redrawId=Math.random(),this._paintList(b,C,this._redrawId);for(var h=0;h<s.length;h++){var m=s[h],x=this._layers[m];if(!x.__builtin__&&x.refresh){var g=h===0?this._backgroundColor:null;x.refresh(g)}}return this.refreshHover(),this},addHover:function(C,b){if(C.__hoverMir)return;var s=new C.constructor({style:C.style,shape:C.shape,z:C.z,z2:C.z2,silent:C.silent});return s.__from=C,C.__hoverMir=s,b&&s.setStyle(b),this._hoverElements.push(s),s},removeHover:function(C){var b=C.__hoverMir,s=this._hoverElements,h=I.indexOf(s,b);h>=0&&s.splice(h,1),C.__hoverMir=null},clearHover:function(C){for(var b=this._hoverElements,s=0;s<b.length;s++){var h=b[s].__from;h&&(h.__hoverMir=null)}b.length=0},refreshHover:function(){var C=this._hoverElements,b=C.length,s=this._hoverlayer;if(s&&s.clear(),!b)return;O(C,this.storage.displayableSortFunc),s||(s=this._hoverlayer=this.getLayer(a));var h={};s.ctx.save();for(var m=0;m<b;){var x=C[m],g=x.__from;if(!(g&&g.__zr)){C.splice(m,1),g.__hoverMir=null,b--;continue}m++,g.invisible||(x.transform=g.transform,x.invTransform=g.invTransform,x.__clipPaths=g.__clipPaths,this._doPaintEl(x,s,!0,h))}s.ctx.restore()},getHoverLayer:function(){return this.getLayer(a)},_paintList:function(C,b,s){if(this._redrawId!==s)return;b=b||!1,this._updateLayerStatus(C);var h=this._doPaintList(C,b);if(this._needsManuallyCompositing&&this._compositeManually(),!h){var m=this;T(function(){m._paintList(C,b,s)})}},_compositeManually:function(){var C=this.getLayer(t).ctx,b=this._domRoot.width,s=this._domRoot.height;C.clearRect(0,0,b,s),this.eachBuiltinLayer(function(h){h.virtual&&C.drawImage(h.dom,0,0,b,s)})},_doPaintList:function(C,b){for(var s=[],h=0;h<this._zlevelList.length;h++){var m=this._zlevelList[h],x=this._layers[m];x.__builtin__&&x!==this._hoverlayer&&(x.__dirty||b)&&s.push(x)}for(var g=!0,y=0;y<s.length;y++){var x=s[y],U=x.ctx,N={};U.save();var S=b?x.__startIndex:x.__drawIndex,H=!b&&x.incremental&&Date.now,F=H&&Date.now(),B=x.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(x.__startIndex===x.__endIndex)x.clear(!1,B);else if(S===x.__startIndex){var z=C[S];(!z.incremental||!z.notClear||b)&&x.clear(!1,B)}S===-1&&(console.error("For some unknown reason. drawIndex is -1"),S=x.__startIndex);for(var K=S;K<x.__endIndex;K++){var $=C[K];if(this._doPaintEl($,x,b,N),$.__dirty=$.__dirtyText=!1,H){var te=Date.now()-F;if(te>15)break}}x.__drawIndex=K,x.__drawIndex<x.__endIndex&&(g=!1),N.prevElClipPaths&&U.restore(),U.restore()}return p.wxa&&I.each(this._layers,function(fe){fe&&fe.ctx&&fe.ctx.draw&&fe.ctx.draw()}),g},_doPaintEl:function(C,b,s,h){var m=b.ctx,x=C.transform;if((b.__dirty||s)&&!C.invisible&&C.style.opacity!==0&&!(x&&!x[0]&&!x[3])&&!(C.culling&&o(C,this._width,this._height))){var g=C.__clipPaths,y=h.prevElClipPaths;(!y||u(g,y))&&(y&&(m.restore(),h.prevElClipPaths=null,h.prevEl=null),g&&(m.save(),E(g,m),h.prevElClipPaths=g)),C.beforeBrush&&C.beforeBrush(m),C.brush(m,h.prevEl||null),h.prevEl=C,C.afterBrush&&C.afterBrush(m)}},getLayer:function(C,b){this._singleCanvas&&!this._needsManuallyCompositing&&(C=t);var s=this._layers[C];return s||(s=new M("zr_"+C,this,this.dpr),s.zlevel=C,s.__builtin__=!0,this._layerConfig[C]?I.merge(s,this._layerConfig[C],!0):this._layerConfig[C-A]&&I.merge(s,this._layerConfig[C-A],!0),b&&(s.virtual=b),this.insertLayer(C,s),s.initContext()),s},insertLayer:function(C,b){var s=this._layers,h=this._zlevelList,m=h.length,x=null,g=-1,y=this._domRoot;if(s[C]){k("ZLevel "+C+" has been used already");return}if(!c(b)){k("Layer of zlevel "+C+" is not valid");return}if(m>0&&C>h[0]){for(g=0;g<m-1&&!(h[g]<C&&h[g+1]>C);g++);x=s[h[g]]}if(h.splice(g+1,0,C),s[C]=b,!b.virtual)if(x){var U=x.dom;U.nextSibling?y.insertBefore(b.dom,U.nextSibling):y.appendChild(b.dom)}else y.firstChild?y.insertBefore(b.dom,y.firstChild):y.appendChild(b.dom)},eachLayer:function(C,b){var s=this._zlevelList,h,m;for(m=0;m<s.length;m++)h=s[m],C.call(b,this._layers[h],h)},eachBuiltinLayer:function(C,b){var s=this._zlevelList,h,m,x;for(x=0;x<s.length;x++)m=s[x],h=this._layers[m],h.__builtin__&&C.call(b,h,m)},eachOtherLayer:function(C,b){var s=this._zlevelList,h,m,x;for(x=0;x<s.length;x++)m=s[x],h=this._layers[m],h.__builtin__||C.call(b,h,m)},getLayers:function(){return this._layers},_updateLayerStatus:function(C){this.eachBuiltinLayer(function(N,S){N.__dirty=N.__used=!1});function b(N){m&&(m.__endIndex!==N&&(m.__dirty=!0),m.__endIndex=N)}if(this._singleCanvas)for(var s=1;s<C.length;s++){var h=C[s];if(h.zlevel!==C[s-1].zlevel||h.incremental){this._needsManuallyCompositing=!0;break}}for(var m=null,x=0,g,s=0;s<C.length;s++){var h=C[s],y=h.zlevel,U;g!==y&&(g=y,x=0),h.incremental?(U=this.getLayer(y+l,this._needsManuallyCompositing),U.incremental=!0,x=1):U=this.getLayer(y+(x>0?A:0),this._needsManuallyCompositing),U.__builtin__||k("ZLevel "+y+" has been used by unkown layer "+U.id),U!==m&&(U.__used=!0,U.__startIndex!==s&&(U.__dirty=!0),U.__startIndex=s,U.incremental?U.__drawIndex=-1:U.__drawIndex=s,b(s),m=U),h.__dirty&&(U.__dirty=!0,U.incremental&&U.__drawIndex<0&&(U.__drawIndex=s))}b(s),this.eachBuiltinLayer(function(N,S){!N.__used&&N.getElementCount()>0&&(N.__dirty=!0,N.__startIndex=N.__endIndex=N.__drawIndex=0),N.__dirty&&N.__drawIndex<0&&(N.__drawIndex=N.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(C){C.clear()},setBackgroundColor:function(C){this._backgroundColor=C},configLayer:function(C,b){if(b){var s=this._layerConfig;s[C]?I.merge(s[C],b,!0):s[C]=b;for(var h=0;h<this._zlevelList.length;h++){var m=this._zlevelList[h];if(m===C||m===C+A){var x=this._layers[m];I.merge(x,s[C],!0)}}}},delLayer:function(C){var b=this._layers,s=this._zlevelList,h=b[C];if(!h)return;h.dom.parentNode.removeChild(h.dom),delete b[C],s.splice(I.indexOf(s,C),1)},resize:function(C,b){if(this._domRoot.style){var s=this._domRoot;s.style.display="none";var h=this._opts;if(C!=null&&(h.width=C),b!=null&&(h.height=b),C=this._getSize(0),b=this._getSize(1),s.style.display="",this._width!==C||b!==this._height){s.style.width=C+"px",s.style.height=b+"px";for(var m in this._layers)this._layers.hasOwnProperty(m)&&this._layers[m].resize(C,b);I.each(this._progressiveLayers,function(x){x.resize(C,b)}),this.refresh(!0)}this._width=C,this._height=b}else{if(C==null||b==null)return;this._width=C,this._height=b,this.getLayer(t).resize(C,b)}return this},clearLayer:function(C){var b=this._layers[C];b&&b.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(C){if(C=C||{},this._singleCanvas&&!this._compositeManually)return this._layers[t].dom;var b=new M("image",this,C.pixelRatio||this.dpr);if(b.initContext(),b.clear(!1,C.backgroundColor||this._backgroundColor),C.pixelRatio<=this.dpr){this.refresh();var s=b.dom.width,h=b.dom.height,m=b.ctx;this.eachLayer(function(N){N.__builtin__?m.drawImage(N.dom,0,0,s,h):N.renderToCanvas&&(b.ctx.save(),N.renderToCanvas(b.ctx),b.ctx.restore())})}else for(var x={},g=this.storage.getDisplayList(!0),y=0;y<g.length;y++){var U=g[y];this._doPaintEl(U,b,!0,x)}return b.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(C){var b=this._opts,s=["width","height"][C],h=["clientWidth","clientHeight"][C],m=["paddingLeft","paddingTop"][C],x=["paddingRight","paddingBottom"][C];if(b[s]!=null&&b[s]!=="auto")return parseFloat(b[s]);var g=this.root,y=document.defaultView.getComputedStyle(g);return(g[h]||i(y[s])||i(g.style[s]))-(i(y[m])||0)-(i(y[x])||0)|0},pathToImage:function(C,b){b=b||this.dpr;var s=document.createElement("canvas"),h=s.getContext("2d"),m=C.getBoundingRect(),x=C.style,g=x.shadowBlur*b,y=x.shadowOffsetX*b,U=x.shadowOffsetY*b,N=x.hasStroke()?x.lineWidth:0,S=Math.max(N/2,-y+g),H=Math.max(N/2,y+g),F=Math.max(N/2,-U+g),B=Math.max(N/2,U+g),z=m.width+S+H,K=m.height+F+B;s.width=z*b,s.height=K*b,h.scale(b,b),h.clearRect(0,0,z,K),h.dpr=b;var $={position:C.position,rotation:C.rotation,scale:C.scale};C.position=[S-m.x,F-m.y],C.rotation=0,C.scale=[1,1],C.updateTransform(),C&&C.brush(h);var te=n,fe=new te({style:{x:0,y:0,image:s}});return $.position!=null&&(fe.position=C.position=$.position),$.rotation!=null&&(fe.rotation=C.rotation=$.rotation),$.scale!=null&&(fe.scale=C.scale=$.scale),fe}};var P=w;Be.exports=P},"7ZXX":function(Be,ee,v){Be.exports=v.p+"static/err.6e7c5817.png"},"7ahc":function(Be,ee,v){"use strict";v.d(ee,"a",function(){return E});var Z=v("k1fw"),Q=v("0Owb"),I=v("+L6B"),k=v("2/Rp"),_=v("y8nQ"),O=v("Vl3Y"),M=v("tJVT"),T=v("OaEy"),n=v("2fM7"),p=v("q1tI"),a=v.n(p),t=v("VrN/"),A=v.n(t),l=v("p77/"),i=v.n(l),c=v("c5Ni"),d=v.n(c),f=n.a.Option,o={labelCol:{span:4},wrapperCol:{span:20}},u={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"]};ee.b=function(R){var w=R.callback,P=R.onCancel,C=Object(p.useState)("python"),b=Object(M.a)(C,2),s=b[0],h=b[1];function m(g){h(u[g][1])}function x(g){w(g)}return a.a.createElement(O.a,Object(Q.a)({},o,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:x}),a.a.createElement(O.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},a.a.createElement(n.a,{onChange:m},Object.keys(u).map(function(g){return a.a.createElement(f,{key:g,value:g},u[g][0])}))),a.a.createElement(O.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},a.a.createElement(E,{mode:s})),a.a.createElement("div",{className:"flex-container flex-end"},a.a.createElement(k.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),a.a.createElement(k.a,{type:"ghost",onClick:P},"\u53D6\u6D88")))};function E(R){var w=R.value,P=R.onChange,C=R.mode,b=R.options,s=b===void 0?{}:b,h=Object(p.useRef)(),m=Object(p.useState)(),x=Object(M.a)(m,2),g=x[0],y=x[1];return Object(p.useEffect)(function(){if(g){function U(N){var S=N.getValue();P&&P(S)}return g.on("change",U),function(){g.off("change",U)}}},[g,P]),Object(p.useEffect)(function(){g&&g.setOption("mode",C)},[g,C]),Object(p.useEffect)(function(){g&&((w!==g.getValue()||w==="")&&setTimeout(function(){g.setValue(w||" ")},300))},[g,w]),Object(p.useEffect)(function(){if(h.current&&!g){var U=A.a.fromTextArea(h.current,Object(Z.a)({mode:C,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));y(U)}},[h.current,g]),a.a.createElement("div",{className:"my-codemirror-container"},a.a.createElement("textarea",{ref:h}))}},"7ixt":function(Be,ee,v){"use strict";v.d(ee,"a",function(){return I});var Z={adjustX:1,adjustY:1},Q=[0,0],I={left:{points:["cr","cl"],overflow:Z,offset:[-4,0],targetOffset:Q},right:{points:["cl","cr"],overflow:Z,offset:[4,0],targetOffset:Q},top:{points:["bc","tc"],overflow:Z,offset:[0,-4],targetOffset:Q},bottom:{points:["tc","bc"],overflow:Z,offset:[0,4],targetOffset:Q},topLeft:{points:["bl","tl"],overflow:Z,offset:[0,-4],targetOffset:Q},leftTop:{points:["tr","tl"],overflow:Z,offset:[-4,0],targetOffset:Q},topRight:{points:["br","tr"],overflow:Z,offset:[0,-4],targetOffset:Q},rightTop:{points:["tl","tr"],overflow:Z,offset:[4,0],targetOffset:Q},bottomRight:{points:["tr","br"],overflow:Z,offset:[0,4],targetOffset:Q},rightBottom:{points:["bl","br"],overflow:Z,offset:[4,0],targetOffset:Q},bottomLeft:{points:["tl","bl"],overflow:Z,offset:[0,4],targetOffset:Q},leftBottom:{points:["br","bl"],overflow:Z,offset:[-4,0],targetOffset:Q}},k=I},"7oTu":function(Be,ee,v){var Z=v("IMiH"),Q=v("QBsz"),I=Q.applyTransform,k=Z.CMD,_=[[],[],[]],O=Math.sqrt,M=Math.atan2;function T(n,p){var a=n.data,t,A,l,i,c,d,f=k.M,o=k.C,u=k.L,E=k.R,R=k.A,w=k.Q;for(l=0,i=0;l<a.length;){t=a[l++],i=l,A=0;switch(t){case f:A=1;break;case u:A=1;break;case o:A=3;break;case w:A=2;break;case R:var P=p[4],C=p[5],b=O(p[0]*p[0]+p[1]*p[1]),s=O(p[2]*p[2]+p[3]*p[3]),h=M(-p[1]/s,p[0]/b);a[l]*=b,a[l++]+=P,a[l]*=s,a[l++]+=C,a[l++]*=b,a[l++]*=s,a[l++]+=h,a[l++]+=h,l+=2,i=l;break;case E:d[0]=a[l++],d[1]=a[l++],I(d,d,p),a[i++]=d[0],a[i++]=d[1],d[0]+=a[l++],d[1]+=a[l++],I(d,d,p),a[i++]=d[0],a[i++]=d[1]}for(c=0;c<A;c++){var d=_[c];d[0]=a[l++],d[1]=a[l++],I(d,d,p),a[i++]=d[0],a[i++]=d[1]}}}Be.exports=T},"7v3h":function(Be,ee,v){Be.exports=v.p+"static/empty2.dd73f390.png"},"8/bI":function(Be,ee,v){Be.exports=v.p+"static/empty.8918e228.png"},"815F":function(Be,ee,v){"use strict";v.d(ee,"e",function(){return M}),v.d(ee,"c",function(){return n}),v.d(ee,"d",function(){return p}),v.d(ee,"a",function(){return t}),v.d(ee,"f",function(){return A}),v.d(ee,"b",function(){return l});var Z=v("KQm4"),Q=v("VTBJ"),I=v("Ff2n"),k=v("Zm9Q"),_=v("Kwbf"),O=v("OZM5");function M(i,c){return i!=null?i:c}function T(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=new Map;function d(f){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(f||[]).forEach(function(u){var E=u.key,R=u.children;Object(_.a)(E!=null,"Tree node must have a certain key: [".concat(o).concat(E,"]"));var w=String(E);Object(_.a)(!c.has(w)||E===null||E===void 0,"Same 'key' exist in the Tree: ".concat(w)),c.set(w,!0),d(R,"".concat(o).concat(w," > "))})}d(i)}function n(i){function c(d){var f=Object(k.a)(d);return f.map(function(o){if(!Object(O.i)(o))return Object(_.a)(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var u=o.key,E=o.props,R=E.children,w=Object(I.a)(E,["children"]),P=Object(Q.a)({key:u},w),C=c(R);return C.length&&(P.children=C),P}).filter(function(o){return o})}return c(i)}function p(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],d=new Set(c===!0?[]:c),f=[];function o(u){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(R,w){var P=Object(O.h)(E?E.pos:"0",w),C=M(R.key,P),b=Object(Q.a)(Object(Q.a)({},R),{},{parent:E,pos:P,children:null,data:R,isStart:[].concat(Object(Z.a)(E?E.isStart:[]),[w===0]),isEnd:[].concat(Object(Z.a)(E?E.isEnd:[]),[w===u.length-1])});return f.push(b),c===!0||d.has(C)?b.children=o(R.children||[],b):b.children=[],b})}return o(i),f}function a(i,c,d){var f;d?typeof d=="string"?f=function(E){return E[d]}:typeof d=="function"&&(f=function(E){return d(E)}):f=function(E,R){return M(E.key,R)};function o(u,E,R){var w=u?u.children:i,P=u?Object(O.h)(R.pos,E):"0";if(u){var C=f(u,P),b={node:u,index:E,pos:P,key:C,parentPos:R.node?R.pos:null,level:R.level+1};c(b)}w&&w.forEach(function(s,h){o(s,h,{node:u,pos:P,level:R?R.level+1:-1})})}o(null)}function t(i){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=c.initWrapper,f=c.processEntity,o=c.onProcessFinished,u=arguments.length>2?arguments[2]:void 0,E={},R={},w={posEntities:E,keyEntities:R};return d&&(w=d(w)||w),a(i,function(P){var C=P.node,b=P.index,s=P.pos,h=P.key,m=P.parentPos,x=P.level,g={node:C,index:b,key:h,pos:s,level:x},y=M(h,s);E[s]=g,R[y]=g,g.parent=E[m],g.parent&&(g.parent.children=g.parent.children||[],g.parent.children.push(g)),f&&f(g,w)},u),o&&o(w),w}function A(i,c){var d=c.expandedKeys,f=c.selectedKeys,o=c.loadedKeys,u=c.loadingKeys,E=c.checkedKeys,R=c.halfCheckedKeys,w=c.dragOverNodeKey,P=c.dropPosition,C=c.keyEntities,b=C[i],s={eventKey:i,expanded:d.indexOf(i)!==-1,selected:f.indexOf(i)!==-1,loaded:o.indexOf(i)!==-1,loading:u.indexOf(i)!==-1,checked:E.indexOf(i)!==-1,halfChecked:R.indexOf(i)!==-1,pos:String(b?b.pos:""),dragOver:w===i&&P===0,dragOverGapTop:w===i&&P===-1,dragOverGapBottom:w===i&&P===1};return s}function l(i){var c=i.data,d=i.expanded,f=i.selected,o=i.checked,u=i.loaded,E=i.loading,R=i.halfChecked,w=i.dragOver,P=i.dragOverGapTop,C=i.dragOverGapBottom,b=i.pos,s=i.active,h=Object(Q.a)(Object(Q.a)({},c),{},{expanded:d,selected:f,checked:o,loaded:u,loading:E,halfChecked:R,dragOver:w,dragOverGapTop:P,dragOverGapBottom:C,pos:b,active:s});return"props"in h||Object.defineProperty(h,"props",{get:function(){return Object(_.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),i}}),h}},"8Bcu":function(Be,ee,v){Be.exports={flex_box_center:"flex_box_center___3isCS",flex_space_between:"flex_space_between___1zEgQ",flex_box_vertical_center:"flex_box_vertical_center___2IyXM",flex_box_center_end:"flex_box_center_end___1r0jY",flex_box_column:"flex_box_column___2SHBj",rightWrap:"rightWrap___2XCk6",qrCode:"qrCode___3q9Z0",cardTop:"cardTop___2h9UR",cardTop2:"cardTop2___3KQ3O",card:"card___1aOV1",flexRow:"flexRow___DeBf7",flexRowAbout:"flexRowAbout___3sD2f",skillWrap:"skillWrap___pwM-3",skillTopWrap:"skillTopWrap___2oSn4",skillContentWrap:"skillContentWrap___239Us",skillContentWrapMin:"skillContentWrapMin___2KWd4",skillContentWrapMax:"skillContentWrapMax___NVKFP",skillContentIcon:"skillContentIcon___5mU6F",skillContentIconNoStatus:"skillContentIconNoStatus___1_V1l",skillExpandAllWrap:"skillExpandAllWrap___1HSf6",skillExpandAllContent:"skillExpandAllContent___3kY9W",memberItem:"memberItem___3cgRI",radius:"radius___2fxUa",memberItemContent:"memberItemContent___19hpK",directionItemWrap:"directionItemWrap___3Zm3f",groupActionWrap:"groupActionWrap___N0Epv",divabout:"divabout___psa-7",classButton:"classButton___30JJg",bg28e:"bg28e___2DyZD",bgGray:"bgGray___2PZB0",price:"price___2sFWj",li1:"li1___2y74c",discounts:"discounts___2JS39",realPrice:"realPrice___2kTeg",lineationPrice:"lineationPrice___2LeZ4",li2:"li2___2rpKJ"}},"8EBN":function(Be,ee,v){(function(Z){Z(v("VrN/"))})(function(Z){"use strict";Z.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var Q=0;Q<Z.modeInfo.length;Q++){var I=Z.modeInfo[Q];I.mimes&&(I.mime=I.mimes[0])}Z.findModeByMIME=function(k){k=k.toLowerCase();for(var _=0;_<Z.modeInfo.length;_++){var O=Z.modeInfo[_];if(O.mime==k)return O;if(O.mimes){for(var M=0;M<O.mimes.length;M++)if(O.mimes[M]==k)return O}}if(/\+xml$/.test(k))return Z.findModeByMIME("application/xml");if(/\+json$/.test(k))return Z.findModeByMIME("application/json")},Z.findModeByExtension=function(k){k=k.toLowerCase();for(var _=0;_<Z.modeInfo.length;_++){var O=Z.modeInfo[_];if(O.ext){for(var M=0;M<O.ext.length;M++)if(O.ext[M]==k)return O}}},Z.findModeByFileName=function(k){for(var _=0;_<Z.modeInfo.length;_++){var O=Z.modeInfo[_];if(O.file&&O.file.test(k))return O}var M=k.lastIndexOf("."),T=M>-1&&k.substring(M+1,k.length);if(T)return Z.findModeByExtension(T)},Z.findModeByName=function(k){k=k.toLowerCase();for(var _=0;_<Z.modeInfo.length;_++){var O=Z.modeInfo[_];if(O.name.toLowerCase()==k)return O;if(O.alias){for(var M=0;M<O.alias.length;M++)if(O.alias[M].toLowerCase()==k)return O}}}})},"8HAY":function(Be,ee,v){"use strict";v.d(ee,"a",function(){return _}),v.d(ee,"b",function(){return O}),v.d(ee,"d",function(){return M}),v.d(ee,"e",function(){return T}),v.d(ee,"c",function(){return n});var Z=v("MI8n"),Q=v("pmY6"),I=v("3/fG"),k=function(p,a,t,A){function l(i){return i instanceof t?i:new t(function(c){c(i)})}return new(t||(t=Promise))(function(i,c){function d(u){try{o(A.next(u))}catch(E){c(E)}}function f(u){try{o(A.throw(u))}catch(E){c(E)}}function o(u){u.done?i(u.value):l(u.value).then(d,f)}o((A=A.apply(p,a||[])).next())})};class _ extends Q.a{constructor(p,a="",t="",A=!0,l){super();this._onDidChange=this._register(new Z.b),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=p,this._label=a,this._cssClass=t,this._enabled=A,this._actionCallback=l}get id(){return this._id}get label(){return this._label}set label(p){this._setLabel(p)}_setLabel(p){this._label!==p&&(this._label=p,this._onDidChange.fire({label:p}))}get tooltip(){return this._tooltip||""}set tooltip(p){this._setTooltip(p)}_setTooltip(p){this._tooltip!==p&&(this._tooltip=p,this._onDidChange.fire({tooltip:p}))}get class(){return this._cssClass}set class(p){this._setClass(p)}_setClass(p){this._cssClass!==p&&(this._cssClass=p,this._onDidChange.fire({class:p}))}get enabled(){return this._enabled}set enabled(p){this._setEnabled(p)}_setEnabled(p){this._enabled!==p&&(this._enabled=p,this._onDidChange.fire({enabled:p}))}get checked(){return this._checked}set checked(p){this._setChecked(p)}_setChecked(p){this._checked!==p&&(this._checked=p,this._onDidChange.fire({checked:p}))}run(p,a){return k(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(p))})}}class O extends Q.a{constructor(){super(...arguments);this._onBeforeRun=this._register(new Z.b),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new Z.b),this.onDidRun=this._onDidRun.event}run(p,a){return k(this,void 0,void 0,function*(){if(!p.enabled)return;this._onBeforeRun.fire({action:p});let t;try{yield this.runAction(p,a)}catch(A){t=A}this._onDidRun.fire({action:p,error:t})})}runAction(p,a){return k(this,void 0,void 0,function*(){yield p.run(a)})}}class M extends _{constructor(p){super(M.ID,p,p?"separator text":"separator");this.checked=!1,this.enabled=!1}}M.ID="vs.actions.separator";class T{constructor(p,a,t,A){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=p,this.label=a,this.class=A,this._actions=t}get actions(){return this._actions}dispose(){}run(){return k(this,void 0,void 0,function*(){})}}class n extends _{constructor(){super(n.ID,I.a("submenu.empty","(empty)"),void 0,!1)}}n.ID="vs.actions.empty"},"8XDt":function(Be,ee,v){v("qH13");var Z=v("aX58"),Q=Z.registerPainter,I=v("6fms");Q("vml",I)},"8hTe":function(Be,ee,v){Be.exports={button:"button___1wy9m"}},"8mKB":function(Be,ee,v){"use strict";var Z=v("rePB"),Q=v("1OyB"),I=v("vuIU"),k=v("Ji7U"),_=v("md7G"),O=v("foSv"),M=v("q1tI"),T=v.n(M),n=v("m+aA"),p=v("TSYQ"),a=v.n(p),t=v("4IlW");function A(s){var h=s.pageXOffset,m="scrollLeft";if(typeof h!="number"){var x=s.document;h=x.documentElement[m],typeof h!="number"&&(h=x.body[m])}return h}function l(s){var h,m,x=s.ownerDocument,g=x.body,y=x&&x.documentElement,U=s.getBoundingClientRect();return h=U.left,m=U.top,h-=y.clientLeft||g.clientLeft||0,m-=y.clientTop||g.clientTop||0,{left:h,top:m}}function i(s){var h=l(s),m=s.ownerDocument,x=m.defaultView||m.parentWindow;return h.left+=A(x),h.left}function c(s){var h=d();return function(){var x=Object(O.a)(s),g;if(h){var y=Object(O.a)(this).constructor;g=Reflect.construct(x,arguments,y)}else g=x.apply(this,arguments);return Object(_.a)(this,g)}}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(s){return!1}}var f=function(s){Object(k.a)(m,s);var h=c(m);function m(){var x;return Object(Q.a)(this,m),x=h.apply(this,arguments),x.onHover=function(g){var y=x.props,U=y.onHover,N=y.index;U(g,N)},x.onClick=function(g){var y=x.props,U=y.onClick,N=y.index;U(g,N)},x.onKeyDown=function(g){var y=x.props,U=y.onClick,N=y.index;g.keyCode===13&&U(g,N)},x}return Object(I.a)(m,[{key:"getClassName",value:function(){var g=this.props,y=g.prefixCls,U=g.index,N=g.value,S=g.allowHalf,H=g.focused,F=U+1,B=y;return N===0&&U===0&&H?B+=" ".concat(y,"-focused"):S&&N+.5>=F&&N<F?(B+=" ".concat(y,"-half ").concat(y,"-active"),H&&(B+=" ".concat(y,"-focused"))):(B+=F<=N?" ".concat(y,"-full"):" ".concat(y,"-zero"),F===N&&H&&(B+=" ".concat(y,"-focused"))),B}},{key:"render",value:function(){var g=this.onHover,y=this.onClick,U=this.onKeyDown,N=this.props,S=N.disabled,H=N.prefixCls,F=N.character,B=N.characterRender,z=N.index,K=N.count,$=N.value,te=typeof F=="function"?F(this.props):F,fe=T.a.createElement("li",{className:this.getClassName()},T.a.createElement("div",{onClick:S?null:y,onKeyDown:S?null:U,onMouseMove:S?null:g,role:"radio","aria-checked":$>z?"true":"false","aria-posinset":z+1,"aria-setsize":K,tabIndex:S?-1:0},T.a.createElement("div",{className:"".concat(H,"-first")},te),T.a.createElement("div",{className:"".concat(H,"-second")},te)));return B&&(fe=B(fe,this.props)),fe}}]),m}(T.a.Component);function o(s,h){var m=Object.keys(s);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(s);h&&(x=x.filter(function(g){return Object.getOwnPropertyDescriptor(s,g).enumerable})),m.push.apply(m,x)}return m}function u(s){for(var h=1;h<arguments.length;h++){var m=arguments[h]!=null?arguments[h]:{};h%2?o(Object(m),!0).forEach(function(x){Object(Z.a)(s,x,m[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(m)):o(Object(m)).forEach(function(x){Object.defineProperty(s,x,Object.getOwnPropertyDescriptor(m,x))})}return s}function E(s){var h=R();return function(){var x=Object(O.a)(s),g;if(h){var y=Object(O.a)(this).constructor;g=Reflect.construct(x,arguments,y)}else g=x.apply(this,arguments);return Object(_.a)(this,g)}}function R(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function w(){}var P=function(s){Object(k.a)(m,s);var h=E(m);function m(x){var g;Object(Q.a)(this,m),g=h.call(this,x),g.onHover=function(U,N){var S=g.props.onHoverChange,H=g.getStarValue(N,U.pageX),F=g.state.cleanedValue;H!==F&&g.setState({hoverValue:H,cleanedValue:null}),S(H)},g.onMouseLeave=function(){var U=g.props.onHoverChange;g.setState({hoverValue:void 0,cleanedValue:null}),U(void 0)},g.onClick=function(U,N){var S=g.props.allowClear,H=g.state.value,F=g.getStarValue(N,U.pageX),B=!1;S&&(B=F===H),g.onMouseLeave(),g.changeValue(B?0:F),g.setState({cleanedValue:B?F:null})},g.onFocus=function(){var U=g.props.onFocus;g.setState({focused:!0}),U&&U()},g.onBlur=function(){var U=g.props.onBlur;g.setState({focused:!1}),U&&U()},g.onKeyDown=function(U){var N=U.keyCode,S=g.props,H=S.count,F=S.allowHalf,B=S.onKeyDown,z=S.direction,K=z==="rtl",$=g.state.value;N===t.a.RIGHT&&$<H&&!K?(F?$+=.5:$+=1,g.changeValue($),U.preventDefault()):N===t.a.LEFT&&$>0&&!K||N===t.a.RIGHT&&$>0&&K?(F?$-=.5:$-=1,g.changeValue($),U.preventDefault()):N===t.a.LEFT&&$<H&&K&&(F?$+=.5:$+=1,g.changeValue($),U.preventDefault()),B&&B(U)},g.saveRef=function(U){return function(N){g.stars[U]=N}},g.saveRate=function(U){g.rate=U};var y=x.value;return y===void 0&&(y=x.defaultValue),g.stars={},g.state={value:y,focused:!1,cleanedValue:null},g}return Object(I.a)(m,[{key:"componentDidMount",value:function(){var g=this.props,y=g.autoFocus,U=g.disabled;y&&!U&&this.focus()}},{key:"getStarDOM",value:function(g){return Object(n.a)(this.stars[g])}},{key:"getStarValue",value:function(g,y){var U=this.props,N=U.allowHalf,S=U.direction,H=S==="rtl",F=g+1;if(N){var B=this.getStarDOM(g),z=i(B),K=B.clientWidth;(H&&y-z>K/2||!H&&y-z<K/2)&&(F-=.5)}return F}},{key:"focus",value:function(){var g=this.props.disabled;g||this.rate.focus()}},{key:"blur",value:function(){var g=this.props.disabled;g||this.rate.blur()}},{key:"changeValue",value:function(g){var y=this.props.onChange;"value"in this.props||this.setState({value:g}),y(g)}},{key:"render",value:function(){for(var g=this.props,y=g.count,U=g.allowHalf,N=g.style,S=g.prefixCls,H=g.disabled,F=g.className,B=g.character,z=g.characterRender,K=g.tabIndex,$=g.direction,te=this.state,fe=te.value,Ae=te.hoverValue,ce=te.focused,ie=[],ye=H?"".concat(S,"-disabled"):"",le=0;le<y;le+=1)ie.push(T.a.createElement(f,{ref:this.saveRef(le),index:le,count:y,disabled:H,prefixCls:"".concat(S,"-star"),allowHalf:U,value:Ae===void 0?fe:Ae,onClick:this.onClick,onHover:this.onHover,key:le,character:B,characterRender:z,focused:ce}));var me=a()(S,ye,F,Object(Z.a)({},"".concat(S,"-rtl"),$==="rtl"));return T.a.createElement("ul",{className:me,style:N,onMouseLeave:H?null:this.onMouseLeave,tabIndex:H?-1:K,onFocus:H?null:this.onFocus,onBlur:H?null:this.onBlur,onKeyDown:H?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},ie)}}],[{key:"getDerivedStateFromProps",value:function(g,y){return"value"in g&&g.value!==void 0?u(u({},y),{},{value:g.value}):y}}]),m}(T.a.Component);P.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:w,character:"\u2605",onHoverChange:w,tabIndex:0,direction:"ltr"};var C=P,b=ee.a=C},"9+Du":function(Be,ee,v){"use strict";var Z=v("k1fw"),Q=v("9og8"),I=v("tJVT"),k=v("WmNS"),_=v.n(k),O=v("q1tI"),M=v.n(O),T=v("ErOA"),n=v("7Cbv"),p=v("TSYQ"),a=v.n(p),t=v("vef1"),A=v.n(t),l=function(c,d){var f=c.chunkSize,o=f===void 0?1024*1024*2:f,u=c.options,E=u===void 0?{}:u,R=c.onCancel,w=c.onComplete,P=c.onError,C=c.onProgress,b=c.onBefore,s=c.onBeginInitFile,h=c.children,m=c.accept,x=c.className,g=c.style,y=g===void 0?{}:g,U=c.concurrency,N=U===void 0?4:U,S=Object(O.useState)("ready"),H=Object(I.a)(S,2),F=H[0],B=H[1],z=Object(O.useState)(0),K=Object(I.a)(z,2),$=K[0],te=K[1],fe=Object(O.useState)(""),Ae=Object(I.a)(fe,2),ce=Ae[0],ie=Ae[1],ye=Object(O.useState)(null),le=Object(I.a)(ye,2),me=le[0],se=le[1],ge=Object(O.useRef)(null),ae=Object(O.useRef)(Object(n.a)()),pe=Object(O.useRef)(!1);Object(O.useImperativeHandle)(d,function(){return{cancel:Ke,file:me,uploadStatus:F}});var Me=function(){var Se=document.getElementById(ae.current);Se&&(Se.value="")},xe=function(){var he=Object(Q.a)(_.a.mark(function Se(Ue){var Ne,ct;return _.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:if(!(F==="uploading")){Ot.next=2;break}return Ot.abrupt("return");case 2:return s&&s(Ue),Ne=Ue.size,ct=Math.ceil(Ne/o),pe.current=!1,B("uploading"),te(0),ie(""),Ot.prev=9,Ot.delegateYield(_.a.mark(function dt(){var Ut,jt,ze,Ve,Et,Rt,ut,vt,Ze,ke,He,we;return _.a.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return Pe.next=2,Object(T.a)("/api/attachments/multipart_upload_start",{method:"POST",body:Object(Z.a)({fileName:Ue.name,chunkCount:ct},E)});case 2:if(Ut=Pe.sent,!(pe.current||(Ut==null?void 0:Ut.status)!==0)){Pe.next=5;break}throw new Error;case 5:for(jt=Ut.upload_id,ge.current=new AbortController,ze=[],Ve=0,Et=function(Xe){var gt=Xe*o,Lt=Math.min(gt+o,Ne),en=Ue.slice(gt,Lt),Zt=new FormData;Zt.append("chunk",en),Zt.append("fileName",Ue.name),Zt.append("chunkIndex",(Xe+1).toString()),Zt.append("uploadId",jt);for(var xt in E)Object.prototype.hasOwnProperty.call(E,xt)&&Zt.append(xt,E[xt]);ze.push(function(){return Object(T.a)("/api/attachments/multipart_upload",{method:"POST",body:Zt,signal:ge.current.signal},!0).then(function(Ct){Ve++;var mt=Math.round(Ve/ct*100);te(mt),C&&C(Object(Z.a)(Object(Z.a)({},Ct),{},{file:Ue,percent:mt}))})})},Rt=0;Rt<ct;Rt++)Et(Rt);ut=0,vt=N;case 13:if(!(ut<ze.length)){Pe.next=22;break}if(ke=(Ze=ze.slice(ut,ut+vt))===null||Ze===void 0?void 0:Ze.map(function(We){return We()}),!(ke.length>0)){Pe.next=20;break}return Pe.next=18,Promise.all(ke);case 18:He=Pe.sent,ut+=vt;case 20:Pe.next=13;break;case 22:return Pe.next=24,Object(T.a)("/api/attachments/multipart_upload_end",{method:"POST",body:Object(Z.a)({fileName:Ue.name,chunkCount:ct,uploadId:jt},E)});case 24:we=Pe.sent,we.object?(B("success"),Me(),w&&w(Object(Z.a)(Object(Z.a)({},we),{},{file:Ue,percent:100}))):(B("error"),ie("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),Me(),P&&P(Ue.name));case 26:case"end":return Pe.stop()}},dt)})(),"t0",11);case 11:Ot.next=19;break;case 13:Ot.prev=13,Ot.t1=Ot.catch(9),B("error"),ie("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),Me(),P&&P(Ue.name);case 19:case"end":return Ot.stop()}},Se,null,[[9,13]])}));return function(Ue){return he.apply(this,arguments)}}(),Ke=Object(O.useCallback)(function(){pe.current=!0,ge.current&&(ge.current.abort(),R&&R())},[R]),et=function(Se){var Ue,Ne,ct=Se==null||((Ue=Se.target)===null||Ue===void 0||((Ne=Ue.files)===null||Ne===void 0))?void 0:Ne[0];if(se(ct),F="ready",!ct)return;if(b){var ft=b(ct);ft||xe(ct),Me();return}xe(ct)};return M.a.createElement(O.Fragment,null,M.a.createElement("input",{type:"file",id:ae.current,style:{display:"none"},onChange:et,accept:m}),M.a.createElement("label",{className:a()(A.a.upload,x),htmlFor:ae.current,style:y},h))};ee.a=Object(O.forwardRef)(l)},"9Bee":function(Be,ee,v){"use strict";var Z=v("DYRE"),Q=v("zeV3"),I=v("+L6B"),k=v("2/Rp"),_=v("k1fw"),O=v("9og8"),M=v("tJVT"),T=v("WmNS"),n=v.n(T),p=v("q1tI"),a=v.n(p),t=v("vg9a"),A=v("DlQD"),l=v.n(A),i=v("rUJ1");function c(re,W){var V=re.match(/^(\s+)(?:```)/);if(V===null)return W;var ne=V[1];return W.split(`
`).map(function(ve){var oe=ve.match(/^\s+/);if(oe===null)return ve;var tt=Object(M.a)(oe,1),Kt=tt[0];return Kt.length>=ne.length?ve.slice(ne.length):ve}).join(`
`)}var d=[],f=["<ul>"],o=new l.a.Renderer,u=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function E(){d.length=0,f=["<ul>"]}var R={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function w(re,W,V,ne){if(W>=re.length||re[W].level<=V)return W;var ve=re[W];ne.push("<li><a href='#"+ve.anchor+"'>"+ve.text+"</a>"),W++;var oe=[];return W=w(re,W,ve.level,oe),oe.length>0&&(ne.push("<ul>"),oe.forEach(function(tt){ne.push(tt)}),ne.push("</ul>")),ne.push("</li>"),W=w(re,W,V,ne),W}function P(){return w(d,0,0,f),f.push("</ul>"),f.join("")}var C={heading:function(W){var V=u.exec(W);if(V)return{type:"heading",raw:V[0],depth:V[1].length,text:V[2]}},fences:function(W){var V=this.rules.block.fences.exec(W);if(V){var ne=V[0],ve=c(ne,V[3]||""),oe=V[2]?V[2].trim():V[2];if(["latex","katex","math"].indexOf(oe)>=0){var tt=h(),Kt=ve;ve=tt,m[tt]={type:"block",expression:Kt}}return{type:"code",raw:ne,lang:oe,text:ve}}}},b=/(?:\${2})([^\n`]+?)(?:\${2})/gi,s=0,h=function(){return"__special_katext_id_".concat(s++,"__")},m={};function x(){return m}function g(){s=0,m={}}function y(re){return re=re.replace(b,function(W,V){var ne=h();return m[ne]={type:"inline",expression:V},ne}),re}var U=o.listitem;o.listitem=function(re){return U(y(re))};var N=o.paragraph;o.paragraph=function(re){return N(y(re))};var S=o.tablecell;o.tablecell=function(re,W){return S(y(re),W)},o.code=function(re,W,V){var ne=(W||"").match(/\S*/)[0];return ne?["latex","katex","math"].indexOf(ne)>=0?"<p class='editormd-tex'>".concat(re,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(W,'">').concat(V?re:Object(i.escape)(re,!0),`</code></pre>
`):'<pre class="prettyprint linenums"><code>'+(V?re:Object(i.escape)(re,!0))+"</code></pre>"},o.heading=function(re,W,V){var ne=this.options.headerPrefix+V.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return d.push({anchor:ne,level:W,text:re}),"<h"+W+' id="'+ne+'">'+re+"</h"+W+">"},l.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),l.a.use({tokenizer:C,renderer:o});var H=l.a,F=v("SJMd"),B=v("ulZh"),z=v.n(B),K=v("m3rI"),$=v("Oy/b"),te=v("p5ED"),fe=v("ErOA");/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Ae=function(re,W){return(Ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,ne){V.__proto__=ne}||function(V,ne){for(var ve in ne)Object.prototype.hasOwnProperty.call(ne,ve)&&(V[ve]=ne[ve])})(re,W)};function ce(re,W){function V(){this.constructor=re}Ae(re,W),re.prototype=W===null?Object.create(W):(V.prototype=W.prototype,new V)}function ie(re,W,V,ne){return new(V||(V=Promise))(function(ve,oe){function tt(Cn){try{dn(ne.next(Cn))}catch(Jt){oe(Jt)}}function Kt(Cn){try{dn(ne.throw(Cn))}catch(Jt){oe(Jt)}}function dn(Cn){var Jt;Cn.done?ve(Cn.value):(Jt=Cn.value,Jt instanceof V?Jt:new V(function(Vn){Vn(Jt)})).then(tt,Kt)}dn((ne=ne.apply(re,W||[])).next())})}function ye(re,W){var V,ne,ve,oe,tt={label:0,sent:function(){if(1&ve[0])throw ve[1];return ve[1]},trys:[],ops:[]};return oe={next:Kt(0),throw:Kt(1),return:Kt(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function Kt(dn){return function(Cn){return function(Jt){if(V)throw new TypeError("Generator is already executing.");for(;tt;)try{if(V=1,ne&&(ve=2&Jt[0]?ne.return:Jt[0]?ne.throw||((ve=ne.return)&&ve.call(ne),0):ne.next)&&!(ve=ve.call(ne,Jt[1])).done)return ve;switch(ne=0,ve&&(Jt=[2&Jt[0],ve.value]),Jt[0]){case 0:case 1:ve=Jt;break;case 4:return tt.label++,{value:Jt[1],done:!1};case 5:tt.label++,ne=Jt[1],Jt=[0];continue;case 7:Jt=tt.ops.pop(),tt.trys.pop();continue;default:if(!(ve=tt.trys,(ve=ve.length>0&&ve[ve.length-1])||Jt[0]!==6&&Jt[0]!==2)){tt=0;continue}if(Jt[0]===3&&(!ve||Jt[1]>ve[0]&&Jt[1]<ve[3])){tt.label=Jt[1];break}if(Jt[0]===6&&tt.label<ve[1]){tt.label=ve[1],ve=Jt;break}if(ve&&tt.label<ve[2]){tt.label=ve[2],tt.ops.push(Jt);break}ve[2]&&tt.ops.pop(),tt.trys.pop();continue}Jt=W.call(re,tt)}catch(Vn){Jt=[6,Vn],ne=0}finally{V=ve=0}if(5&Jt[0])throw Jt[1];return{value:Jt[0]?Jt[1]:void 0,done:!0}}([dn,Cn])}}}function le(){for(var re=0,W=0,V=arguments.length;W<V;W++)re+=arguments[W].length;var ne=Array(re),ve=0;for(W=0;W<V;W++)for(var oe=arguments[W],tt=0,Kt=oe.length;tt<Kt;tt++,ve++)ne[ve]=oe[tt];return ne}var me=function(){function re(){}return re.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},re.setAttributes=function(W,V){for(var ne=0,ve=V;ne<ve.length;ne++){var oe=ve[ne],tt=oe[0],Kt=oe[1];W.setAttribute(tt,Kt)}},re.createRect=function(W,V,ne){var ve=document.createElementNS("http://www.w3.org/2000/svg","rect");return ve.setAttribute("width",W.toString()),ve.setAttribute("height",V.toString()),ne&&re.setAttributes(ve,ne),ve},re.createLine=function(W,V,ne,ve,oe){var tt=document.createElementNS("http://www.w3.org/2000/svg","line");return tt.setAttribute("x1",W.toString()),tt.setAttribute("y1",V.toString()),tt.setAttribute("x2",ne.toString()),tt.setAttribute("y2",ve.toString()),oe&&re.setAttributes(tt,oe),tt},re.createPolygon=function(W,V){var ne=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ne.setAttribute("points",W),V&&re.setAttributes(ne,V),ne},re.createCircle=function(W,V){var ne=document.createElementNS("http://www.w3.org/2000/svg","circle");return ne.setAttribute("cx",(W/2).toString()),ne.setAttribute("cy",(W/2).toString()),ne.setAttribute("r",W.toString()),V&&re.setAttributes(ne,V),ne},re.createEllipse=function(W,V,ne){var ve=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ve.setAttribute("cx",(W/2).toString()),ve.setAttribute("cy",(V/2).toString()),ve.setAttribute("rx",(W/2).toString()),ve.setAttribute("ry",(V/2).toString()),ne&&re.setAttributes(ve,ne),ve},re.createGroup=function(W){var V=document.createElementNS("http://www.w3.org/2000/svg","g");return W&&re.setAttributes(V,W),V},re.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},re.createMarker=function(W,V,ne,ve,oe,tt,Kt){var dn=document.createElementNS("http://www.w3.org/2000/svg","marker");return re.setAttributes(dn,[["id",W],["orient",V],["markerWidth",ne.toString()],["markerHeight",ve.toString()],["refX",oe.toString()],["refY",tt.toString()]]),dn.appendChild(Kt),dn},re.createText=function(W){var V=document.createElementNS("http://www.w3.org/2000/svg","text");return V.setAttribute("x","0"),V.setAttribute("y","0"),W&&re.setAttributes(V,W),V},re.createTSpan=function(W,V){var ne=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ne.textContent=W,V&&re.setAttributes(ne,V),ne},re.createImage=function(W){var V=document.createElementNS("http://www.w3.org/2000/svg","image");return W&&re.setAttributes(V,W),V},re.createPoint=function(W,V){var ne=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ne.x=W,ne.y=V,ne},re.createPath=function(W,V){var ne=document.createElementNS("http://www.w3.org/2000/svg","path");return ne.setAttribute("d",W),V&&re.setAttributes(ne,V),ne},re}(),se=function(){function re(){}return re.addKey=function(W){re.key=W},Object.defineProperty(re,"isLicensed",{get:function(){return!!re.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(re.key)},enumerable:!1,configurable:!0}),re}(),ge=function(){function re(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return re.prototype.rasterize=function(W,V,ne){var ve=this;return new Promise(function(oe){var tt=ne!==void 0?ne:document.createElement("canvas");W===null&&(ve.markersOnly=!0,ve.naturalSize=!1);var Kt=document.createElementNS("http://www.w3.org/2000/svg","svg");Kt.setAttribute("xmlns","http://www.w3.org/2000/svg"),Kt.setAttribute("width",V.width.baseVal.valueAsString),Kt.setAttribute("height",V.height.baseVal.valueAsString),Kt.setAttribute("viewBox","0 0 "+V.viewBox.baseVal.width.toString()+" "+V.viewBox.baseVal.height.toString()),Kt.innerHTML=V.innerHTML,ve.naturalSize===!0?(Kt.width.baseVal.value=W.naturalWidth,Kt.height.baseVal.value=W.naturalHeight):ve.width!==void 0&&ve.height!==void 0&&(Kt.width.baseVal.value=ve.width,Kt.height.baseVal.value=ve.height),tt.width=Kt.width.baseVal.value,tt.height=Kt.height.baseVal.value;var dn=Kt.outerHTML,Cn=tt.getContext("2d");ve.markersOnly!==!0&&Cn.drawImage(W,0,0,tt.width,tt.height);var Jt=window.URL,Vn=new Image(tt.width,tt.height);Vn.setAttribute("crossOrigin","anonymous");var Xn=new Blob([dn],{type:"image/svg+xml"}),lr=Jt.createObjectURL(Xn);Vn.onload=function(){Cn.drawImage(Vn,0,0),Jt.revokeObjectURL(lr);var Rr=tt.toDataURL(ve.imageType,ve.imageQuality);oe(Rr)},Vn.src=lr})},re}(),ae=function(){},pe=function(){function re(W){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+W+"_"}return Object.defineProperty(re.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(re.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(re.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),re.prototype.addClass=function(W){return this.styleSheet===void 0&&this.addStyleSheet(),W.name=""+this.classNamePrefix+W.localName,this.classes.push(W),this.styleSheet.sheet.insertRule("."+W.name+" {"+W.style+"}",this.styleSheet.sheet.cssRules.length),W},re.prototype.addRule=function(W){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(W),this.styleSheet.sheet.insertRule(W.selector+" {"+W.style+"}",this.styleSheet.sheet.cssRules.length)},re.prototype.addStyleSheet=function(){var W;this.styleSheet=document.createElement("style"),((W=this.styleSheetRoot)!==null&&W!==void 0?W:document.head).appendChild(this.styleSheet),this.addRule(new Me("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Me("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new Me("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new xe("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new xe("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},re.prototype.removeStyleSheet=function(){var W;this.styleSheet&&(((W=this.styleSheetRoot)!==null&&W!==void 0?W:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},re}(),Me=function(re,W){this.selector=re,this.style=W},xe=function(re,W){this.localName=re,this.style=W},Ke=function(){function re(W,V,ne,ve,oe){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=W,this.displayMode=V,this.markerItems=ne,this.uiStyleSettings=ve,this.styles=oe,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return re.prototype.show=function(W){var V=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=W,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var ne=document.createElement("div");ne.className=this.toolbarBlockStyleClass.name,ne.style.whiteSpace="nowrap",this.uiContainer.appendChild(ne),this.addActionButton(ne,'<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(ne,'<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(ne,'<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(ne,'<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(ne,'<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(ne,'<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(ne,'<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(ne,'<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(oe){var tt=document.createElement("div");tt.className=""+V.toolbarButtonStyleClass.name,tt.setAttribute("data-type-name",oe.typeName),tt.innerHTML=oe.icon,tt.addEventListener("click",function(){V.markerToolbarButtonClicked(tt,oe)}),V.buttons.push(tt),V.markerButtons.push(tt)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<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 ve=document.createElement("div");ve.className=this.toolbarBlockStyleClass.name,ve.style.whiteSpace="nowrap",ve.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ve),this.addActionButton(ve,'<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(ve,'<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()},re.prototype.addButtonClickListener=function(W){this.buttonClickListeners.push(W)},re.prototype.removeButtonClickListener=function(W){this.buttonClickListeners.indexOf(W)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(W),1)},re.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},re.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var W=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var V=0;V<this.markerButtons.length;V++)V<W||V===W&&this.markerButtons.length-1===W?this.markerButtonBlock.appendChild(this.markerButtons[V]):(V===W&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[V]))}},re.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")},re.prototype.resetButtonStyles=function(){var W=this;this.buttons.forEach(function(V){V.className=V.className.replace(W.uiStyleSettings.toolbarButtonStyleColorsClassName?W.uiStyleSettings.toolbarButtonStyleColorsClassName:W.toolbarButtonStyleColorsClass.name,"").trim(),V.className=V.className.replace(W.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?W.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:W.toolbarActiveButtonStyleColorsClass.name,"").trim(),V.className+=" "+(W.uiStyleSettings.toolbarButtonStyleColorsClassName?W.uiStyleSettings.toolbarButtonStyleColorsClassName:W.toolbarButtonStyleColorsClass.name)})},re.prototype.addActionButton=function(W,V,ne){var ve=this,oe=document.createElement("div");switch(oe.className=""+this.toolbarButtonStyleClass.name,oe.innerHTML=V,oe.setAttribute("data-action",ne),oe.addEventListener("click",function(){ve.actionToolbarButtonClicked(oe,ne)}),ne){case"select":oe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":oe.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":oe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":oe.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":oe.style.fill=this.uiStyleSettings.closeButtonColor}W.appendChild(oe),this.buttons.push(oe)},re.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new xe("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 xe("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new xe("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new xe("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 xe("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var W=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new xe("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*W)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*W)+`px;
padding: `+W+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new xe("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new xe("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Me("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new Me("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},re.prototype.markerToolbarButtonClicked=function(W,V){this.setActiveButton(W),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ne){return ne("marker",V)}),this.markerButtonOverflowBlock.style.display="none"},re.prototype.actionToolbarButtonClicked=function(W,V){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ne){return ne("action",V)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},re.prototype.setActiveButton=function(W){this.resetButtonStyles(),W.className=W.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),W.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},re.prototype.setActiveMarkerButton=function(W){var V=this.markerButtons.find(function(ne){return ne.getAttribute("data-type-name")===W});V&&this.setActiveButton(V)},re.prototype.setCurrentMarker=function(W){var V=this;this.currentMarker=W,this.buttons.filter(function(ne){return/delete|notes/.test(ne.getAttribute("data-action"))}).forEach(function(ne){V.currentMarker===void 0?(ne.style.fillOpacity="0.4",ne.style.pointerEvents="none"):(ne.style.fillOpacity="1",ne.style.pointerEvents="all")})},re}(),et=function(){function re(W,V,ne,ve){this.panels=[],this.panelButtons=[],this.markerjsContainer=W,this.displayMode=V,this.uiStyleSettings=ne,this.styles=ve,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return re.prototype.addStyles=function(){var W;this.toolboxStyleClass=this.styles.addClass(new xe("toolbox",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
box-sizing: content-box;
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolboxStyleColorsClass=this.styles.addClass(new xe("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var V=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new xe("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new xe("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new xe("toolbox-panel-row",`
display: flex;
`+(this.displayMode==="inline"?"position: absolute;":"")+`
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
cursor: default;
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
`+(this.displayMode==="inline"?"width: 100%;":"")+`
box-sizing: content-box;
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new xe("toolbox-panel-row_colors",`
background-color: `+((W=this.uiStyleSettings.toolboxBackgroundColor)!==null&&W!==void 0?W:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new xe("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*V)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*V)+`px;
padding: `+V+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new xe("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new xe("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new Me("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Me("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},re.prototype.show=function(W){var V;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=W,this.uiContainer.className=this.toolboxStyleClass.name+" "+((V=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&V!==void 0?V:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},re.prototype.setPanelButtons=function(W){var V,ne,ve=this;this.panels=W,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((V=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&V!==void 0?V:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((ne=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ne!==void 0?ne:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(oe){var tt;oe.uiStyleSettings=ve.uiStyleSettings;var Kt=document.createElement("div");Kt.className=ve.toolboxButtonStyleClass.name+" "+((tt=ve.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&tt!==void 0?tt:ve.toolboxButtonStyleColorsClass.name),Kt.innerHTML=oe.icon,Kt.title=oe.title,Kt.addEventListener("click",function(){ve.panelButtonClick(oe)}),ve.panelButtons.push(Kt),ve.buttonRow.appendChild(Kt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},re.prototype.panelButtonClick=function(W){var V=this,ne=-1;if(W!==this.activePanel){ne=this.panels.indexOf(W),this.panelRow.innerHTML="";var ve=W.getUi();ve.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ve),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=W}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){V.displayMode==="inline"?V.panelRow.style.display="none":V.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(oe,tt){var Kt,dn;oe.className=V.toolboxButtonStyleClass.name+" "+(tt===ne?""+((Kt=V.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Kt!==void 0?Kt:V.toolboxActiveButtonStyleColorsClass.name):""+((dn=V.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&dn!==void 0?dn:V.toolboxButtonStyleColorsClass.name))})},re}(),he=function(re,W){this.title=re,this.icon=W},Se=function(re){function W(V,ne,ve,oe){var tt=re.call(this,V,oe||'<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 tt.colors=[],tt.addTransparent=!1,tt.colorBoxes=[],tt.colors=ne,tt.currentColor=ve,tt.setCurrentColor=tt.setCurrentColor.bind(tt),tt.getColorBox=tt.getColorBox.bind(tt),tt}return ce(W,re),W.prototype.getUi=function(){var V=this,ne=document.createElement("div");return ne.style.overflow="hidden",ne.style.whiteSpace="nowrap",this.colors.forEach(function(ve){var oe=V.getColorBox(ve);ne.appendChild(oe),V.colorBoxes.push(oe)}),ne},W.prototype.getColorBox=function(V){var ne=this,ve=this.uiStyleSettings.toolbarHeight/4,oe=this.uiStyleSettings.toolbarHeight-ve,tt=document.createElement("div");tt.style.display="inline-block",tt.style.boxSizing="content-box",tt.style.width=oe-2+"px",tt.style.height=oe-2+"px",tt.style.padding="1px",tt.style.marginRight="2px",tt.style.marginBottom="2px",tt.style.borderWidth="2px",tt.style.borderStyle="solid",tt.style.borderRadius=(oe+2)/2+"px",tt.style.borderColor=V===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",tt.addEventListener("click",function(){ne.setCurrentColor(V,tt)});var Kt=document.createElement("div");return Kt.style.display="inline-block",Kt.style.width=oe-2+"px",Kt.style.height=oe-2+"px",Kt.style.backgroundColor=V,Kt.style.borderRadius=oe/2+"px",V==="transparent"&&(Kt.style.fill=this.uiStyleSettings.toolboxAccentColor,Kt.innerHTML=`<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>`),tt.appendChild(Kt),tt},W.prototype.setCurrentColor=function(V,ne){var ve=this;this.currentColor=V,this.colorBoxes.forEach(function(oe){oe.style.borderColor=oe===ne?ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(V)},W}(he),Ue=function(){function re(W,V,ne){this._state="new",this._isSelected=!1,this._container=W,this._overlayContainer=V,this.globalSettings=ne,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(re.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),re.prototype.ownsTarget=function(W){return!1},Object.defineProperty(re.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),re.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},re.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},re.prototype.pointerDown=function(W,V){},re.prototype.dblClick=function(W,V){},re.prototype.manipulate=function(W){},re.prototype.pointerUp=function(W){this.stateChanged()},re.prototype.dispose=function(){},re.prototype.addMarkerVisualToContainer=function(W){this.container.childNodes.length>0?this.container.insertBefore(W,this.container.childNodes[0]):this.container.appendChild(W)},re.prototype.getState=function(){return{typeName:re.typeName,state:this.state,notes:this.notes}},re.prototype.restoreState=function(W){this._state=W.state,this.notes=W.notes},re.prototype.scale=function(W,V){},re.prototype.colorChanged=function(W){this.onColorChanged&&this.onColorChanged(W),this.stateChanged()},re.prototype.fillColorChanged=function(W){this.onFillColorChanged&&this.onFillColorChanged(W),this.stateChanged()},re.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var W=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),W.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(W)&&this.onStateChanged(this)}},re.typeName="MarkerBase",re}(),Ne=function(){function re(){this.findGripByVisual=this.findGripByVisual.bind(this)}return re.prototype.findGripByVisual=function(W){return this.topLeft.ownsTarget(W)?this.topLeft:this.topCenter.ownsTarget(W)?this.topCenter:this.topRight.ownsTarget(W)?this.topRight:this.centerLeft.ownsTarget(W)?this.centerLeft:this.centerRight.ownsTarget(W)?this.centerRight:this.bottomLeft.ownsTarget(W)?this.bottomLeft:this.bottomCenter.ownsTarget(W)?this.bottomCenter:this.bottomRight.ownsTarget(W)?this.bottomRight:void 0},re}(),ct=function(){function re(){this.GRIP_SIZE=10,this.visual=me.createGroup(),this.visual.appendChild(me.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(me.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return re.prototype.ownsTarget=function(W){return W===this.visual||W===this.visual.childNodes[0]||W===this.visual.childNodes[1]},re}(),ft=function(){function re(){}return re.toITransformMatrix=function(W){return{a:W.a,b:W.b,c:W.c,d:W.d,e:W.e,f:W.f}},re.toSVGMatrix=function(W,V){return W.a=V.a,W.b=V.b,W.c=V.c,W.d=V.d,W.e=V.e,W.f=V.f,W},re}(),Ot=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.left=0,oe.top=0,oe.width=0,oe.height=0,oe.defaultSize={x:50,y:20},oe.offsetX=0,oe.offsetY=0,oe.rotationAngle=0,oe.CB_DISTANCE=10,oe._suppressMarkerCreateEvent=!1,oe.container.transform.baseVal.appendItem(me.createTransform()),oe.setupControlBox(),oe}return ce(W,re),Object.defineProperty(W.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"visual",{get:function(){return this._visual},set:function(V){this._visual=V;var ne=me.createTransform();this._visual.transform.baseVal.appendItem(ne)},enumerable:!1,configurable:!0}),W.prototype.ownsTarget=function(V){return!!re.prototype.ownsTarget.call(this,V)||!!(this.controlGrips.findGripByVisual(V)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(V))},W.prototype.pointerDown=function(V,ne){re.prototype.pointerDown.call(this,V,ne),this.state==="new"&&(this.left=V.x,this.top=V.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ve=this.unrotatePoint(V);if(this.manipulationStartX=ve.x,this.manipulationStartY=ve.y,this.offsetX=ve.x-this.left,this.offsetY=ve.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ne),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ne)){this.activeGrip=this.rotatorGrip;var oe=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=oe.x-this.width/2,this.top=oe.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var tt=this.container.transform.baseVal.getItem(0);tt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(tt,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},W.prototype.pointerUp=function(V){var ne=this.state;re.prototype.pointerUp.call(this,V),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(V),this._state="select",ne==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},W.prototype.moveVisual=function(V){this.visual.style.transform="translate("+V.x+"px, "+V.y+"px)"},W.prototype.manipulate=function(V){var ne=this.unrotatePoint(V);this.state==="creating"?this.resize(V):this.state==="move"?(this.left=this.manipulationStartLeft+(ne.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ne.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ne):this.state==="rotate"&&this.rotate(V)},W.prototype.resize=function(V){var ne=this.manipulationStartLeft,ve=this.manipulationStartWidth,oe=this.manipulationStartTop,tt=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ne=this.manipulationStartLeft+V.x-this.manipulationStartX,ve=this.manipulationStartWidth+this.manipulationStartLeft-ne;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ve=this.manipulationStartWidth+V.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:oe=this.manipulationStartTop+V.y-this.manipulationStartY,tt=this.manipulationStartHeight+this.manipulationStartTop-oe;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:tt=this.manipulationStartHeight+V.y-this.manipulationStartY}ve>=0?(this.left=ne,this.width=ve):(this.left=ne+ve,this.width=-ve),tt>=0?(this.top=oe,this.height=tt):(this.top=oe+tt,this.height=-tt),this.setSize()},W.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},W.prototype.rotate=function(V){if(Math.abs(V.x-this.centerX)>.1){var ne=Math.sign(V.x-this.centerX);this.rotationAngle=180*Math.atan((V.y-this.centerY)/(V.x-this.centerX))/Math.PI+90*ne,this.applyRotation()}},W.prototype.applyRotation=function(){var V=this.container.transform.baseVal.getItem(0);V.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(V,0)},W.prototype.rotatePoint=function(V){if(this.rotationAngle===0)return V;var ne=this.container.getCTM(),ve=me.createPoint(V.x,V.y);return{x:(ve=ve.matrixTransform(ne)).x,y:ve.y}},W.prototype.unrotatePoint=function(V){if(this.rotationAngle===0)return V;var ne=this.container.getCTM();ne=ne.inverse();var ve=me.createPoint(V.x,V.y);return{x:(ve=ve.matrixTransform(ne)).x,y:ve.y}},W.prototype.select=function(){re.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},W.prototype.deselect=function(){re.prototype.deselect.call(this),this.controlBox.style.display="none"},W.prototype.setupControlBox=function(){this.controlBox=me.createGroup();var V=me.createTransform();V.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(V),this.container.appendChild(this.controlBox),this.controlRect=me.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=me.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Ne,this.addControlGrips(),this.controlBox.style.display="none"},W.prototype.adjustControlBox=function(){var V=this.controlBox.transform.baseVal.getItem(0);V.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(V,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},W.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},W.prototype.createGrip=function(){var V=new ct;return V.visual.transform.baseVal.appendItem(me.createTransform()),this.controlBox.appendChild(V.visual),V},W.prototype.positionGrips=function(){var V=this.controlGrips.topLeft.GRIP_SIZE,ne=-V/2,ve=ne,oe=(this.width+this.CB_DISTANCE)/2-V/2,tt=(this.height+this.CB_DISTANCE)/2-V/2,Kt=this.height+this.CB_DISTANCE-V/2,dn=this.width+this.CB_DISTANCE-V/2;this.positionGrip(this.controlGrips.topLeft.visual,ne,ve),this.positionGrip(this.controlGrips.topCenter.visual,oe,ve),this.positionGrip(this.controlGrips.topRight.visual,dn,ve),this.positionGrip(this.controlGrips.centerLeft.visual,ne,tt),this.positionGrip(this.controlGrips.centerRight.visual,dn,tt),this.positionGrip(this.controlGrips.bottomLeft.visual,ne,Kt),this.positionGrip(this.controlGrips.bottomCenter.visual,oe,Kt),this.positionGrip(this.controlGrips.bottomRight.visual,dn,Kt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,oe,ve-3*this.CB_DISTANCE)},W.prototype.positionGrip=function(V,ne,ve){var oe=V.transform.baseVal.getItem(0);oe.setTranslate(ne,ve),V.transform.baseVal.replaceItem(oe,0)},W.prototype.hideControlBox=function(){this.controlBox.style.display="none"},W.prototype.showControlBox=function(){this.controlBox.style.display=""},W.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ft.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ft.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},re.prototype.getState.call(this))},W.prototype.restoreState=function(V){re.prototype.restoreState.call(this,V);var ne=V;this.left=ne.left,this.top=ne.top,this.width=ne.width,this.height=ne.height,this.rotationAngle=ne.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ft.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ne.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ft.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ne.containerTransformMatrix))},W.prototype.scale=function(V,ne){re.prototype.scale.call(this,V,ne);var ve=this.rotatePoint({x:this.left,y:this.top}),oe=this.unrotatePoint({x:ve.x*V,y:ve.y*ne});this.left=oe.x,this.top=oe.y,this.width=this.width*V,this.height=this.height*ne,this.adjustControlBox()},W}(Ue),dt=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.fillColor="transparent",oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.opacity=1,oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setFillColor=oe.setFillColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.createVisual=oe.createVisual.bind(oe),oe}return ce(W,re),W.prototype.ownsTarget=function(V){return!(!re.prototype.ownsTarget.call(this,V)&&V!==this.visual)},W.prototype.createVisual=function(){this.visual=me.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},W.prototype.pointerDown=function(V,ne){re.prototype.pointerDown.call(this,V,ne),this.state==="new"&&(this.createVisual(),this.moveVisual(V),this._state="creating")},W.prototype.manipulate=function(V){re.prototype.manipulate.call(this,V)},W.prototype.resize=function(V){re.prototype.resize.call(this,V),this.setSize()},W.prototype.setSize=function(){re.prototype.setSize.call(this),me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},W.prototype.pointerUp=function(V){re.prototype.pointerUp.call(this,V),this.setSize()},W.prototype.setStrokeColor=function(V){this.strokeColor=V,this.visual&&me.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(V),this.stateChanged()},W.prototype.setFillColor=function(V){this.fillColor=V,this.visual&&me.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},W.prototype.setStrokeWidth=function(V){this.strokeWidth=V,this.visual&&me.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},W.prototype.setStrokeDasharray=function(V){this.strokeDasharray=V,this.visual&&me.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},W.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},re.prototype.getState.call(this))},W.prototype.restoreState=function(V){var ne=V;this.fillColor=ne.fillColor,this.strokeColor=ne.strokeColor,this.strokeWidth=ne.strokeWidth,this.strokeDasharray=ne.strokeDasharray,this.opacity=ne.opacity,this.createVisual(),re.prototype.restoreState.call(this,V),this.setSize()},W.prototype.scale=function(V,ne){re.prototype.scale.call(this,V,ne),this.setSize()},W.title="Rectangle marker",W}(Ot),Ut=function(re){function W(V,ne,ve,oe){var tt=re.call(this,V,oe||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return tt.widths=[],tt.widthBoxes=[],tt.widths=ne,tt.currentWidth=ve,tt.setCurrentWidth=tt.setCurrentWidth.bind(tt),tt}return ce(W,re),W.prototype.getUi=function(){var V=this,ne=document.createElement("div");return ne.style.display="flex",ne.style.overflow="hidden",ne.style.flexGrow="2",this.widths.forEach(function(ve){var oe=document.createElement("div");oe.style.display="flex",oe.style.flexGrow="2",oe.style.alignItems="center",oe.style.justifyContent="space-between",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.borderColor=ve===V.currentWidth?V.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){V.setCurrentWidth(ve,oe)}),ne.appendChild(oe);var tt=document.createElement("div");tt.innerText=ve.toString(),tt.style.marginRight="5px",oe.appendChild(tt);var Kt=document.createElement("div");Kt.style.minHeight="20px",Kt.style.flexGrow="2",Kt.style.display="flex",Kt.style.alignItems="center";var dn=document.createElement("hr");dn.style.minWidth="20px",dn.style.border="0px",dn.style.borderTop=ve+"px solid "+V.uiStyleSettings.toolboxColor,dn.style.flexGrow="2",Kt.appendChild(dn),oe.appendChild(Kt),V.widthBoxes.push(oe)}),ne},W.prototype.setCurrentWidth=function(V,ne){var ve=this;this.currentWidth=V,this.widthBoxes.forEach(function(oe){oe.style.borderColor=oe===ne?ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},W}(he),jt=function(re){function W(V,ne,ve,oe){var tt=re.call(this,V,oe||'<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 tt.styles=[],tt.styleBoxes=[],tt.styles=ne,tt.currentStyle=ve,tt.setCurrentStyle=tt.setCurrentStyle.bind(tt),tt}return ce(W,re),W.prototype.getUi=function(){var V=this,ne=document.createElement("div");return ne.style.display="flex",ne.style.overflow="hidden",ne.style.flexGrow="2",this.styles.forEach(function(ve){var oe=document.createElement("div");oe.style.display="flex",oe.style.alignItems="center",oe.style.justifyContent="space-between",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.overflow="hidden",oe.style.maxWidth=100/V.styles.length-5+"%",oe.style.borderColor=ve===V.currentStyle?V.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){V.setCurrentStyle(ve,oe)}),ne.appendChild(oe);var tt=document.createElement("div");tt.style.minHeight="20px",tt.style.flexGrow="2",tt.style.overflow="hidden";var Kt=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+V.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ve!==""?'stroke-dasharray="'+ve+'"':"")+` />
</svg>`;tt.innerHTML=Kt,oe.appendChild(tt),V.styleBoxes.push(oe)}),ne},W.prototype.setCurrentStyle=function(V,ne){var ve=this;this.currentStyle=V,this.styleBoxes.forEach(function(oe){oe.style.borderColor=oe===ne?ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},W}(he),ze=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.strokeColor=ve.defaultColor,oe.strokeWidth=ve.defaultStrokeWidth,oe.strokeDasharray=ve.defaultStrokeDasharray,oe.strokePanel=new Se("Line color",ve.defaultColorSet,ve.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.strokeWidthPanel=new Ut("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new jt("Line style",ve.defaultStrokeDasharrays,ve.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe}return ce(W,re),Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=re.prototype.getState.call(this);return V.typeName=W.typeName,V},W.typeName="FrameMarker",W.title="Frame marker",W.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',W}(dt),Ve=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1},Et=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.x1=0,oe.y1=0,oe.x2=0,oe.y2=0,oe.defaultLength=50,oe.manipulationStartX=0,oe.manipulationStartY=0,oe.manipulationStartX1=0,oe.manipulationStartY1=0,oe.manipulationStartX2=0,oe.manipulationStartY2=0,oe.setupControlBox(),oe}return ce(W,re),W.prototype.ownsTarget=function(V){return!!re.prototype.ownsTarget.call(this,V)||!(!this.grip1.ownsTarget(V)&&!this.grip2.ownsTarget(V))},W.prototype.pointerDown=function(V,ne){re.prototype.pointerDown.call(this,V,ne),this.manipulationStartX=V.x,this.manipulationStartY=V.y,this.state==="new"&&(this.x1=V.x,this.y1=V.y,this.x2=V.x,this.y2=V.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(ne)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ne)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},W.prototype.pointerUp=function(V){var ne=this.state;re.prototype.pointerUp.call(this,V),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(V),this._state="select",ne==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},W.prototype.adjustVisual=function(){},W.prototype.manipulate=function(V){this.state==="creating"?this.resize(V):this.state==="move"?(this.x1=this.manipulationStartX1+V.x-this.manipulationStartX,this.y1=this.manipulationStartY1+V.y-this.manipulationStartY,this.x2=this.manipulationStartX2+V.x-this.manipulationStartX,this.y2=this.manipulationStartY2+V.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(V)},W.prototype.resize=function(V){switch(this.activeGrip){case this.grip1:this.x1=V.x,this.y1=V.y;break;case this.grip2:case void 0:this.x2=V.x,this.y2=V.y}this.adjustVisual(),this.adjustControlBox()},W.prototype.select=function(){re.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},W.prototype.deselect=function(){re.prototype.deselect.call(this),this.controlBox.style.display="none"},W.prototype.setupControlBox=function(){this.controlBox=me.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},W.prototype.adjustControlBox=function(){this.positionGrips()},W.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},W.prototype.createGrip=function(){var V=new ct;return V.visual.transform.baseVal.appendItem(me.createTransform()),this.controlBox.appendChild(V.visual),V},W.prototype.positionGrips=function(){var V=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-V/2,this.y1-V/2),this.positionGrip(this.grip2.visual,this.x2-V/2,this.y2-V/2)},W.prototype.positionGrip=function(V,ne,ve){var oe=V.transform.baseVal.getItem(0);oe.setTranslate(ne,ve),V.transform.baseVal.replaceItem(oe,0)},W.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},re.prototype.getState.call(this))},W.prototype.restoreState=function(V){re.prototype.restoreState.call(this,V);var ne=V;this.x1=ne.x1,this.y1=ne.y1,this.x2=ne.x2,this.y2=ne.y2},W.prototype.scale=function(V,ne){re.prototype.scale.call(this,V,ne),this.x1=this.x1*V,this.y1=this.y1*ne,this.x2=this.x2*V,this.y2=this.y2*ne,this.adjustVisual(),this.adjustControlBox()},W}(Ue),Rt=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.strokeColor=ve.defaultColor,oe.strokeWidth=ve.defaultStrokeWidth,oe.strokeDasharray=ve.defaultStrokeDasharray,oe.strokePanel=new Se("Line color",ve.defaultColorSet,ve.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.strokeWidthPanel=new Ut("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new jt("Line style",ve.defaultStrokeDasharrays,ve.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe}return ce(W,re),W.prototype.ownsTarget=function(V){return!(!re.prototype.ownsTarget.call(this,V)&&V!==this.visual&&V!==this.selectorLine&&V!==this.visibleLine)},W.prototype.createVisual=function(){this.visual=me.createGroup(),this.selectorLine=me.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=me.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},W.prototype.pointerDown=function(V,ne){re.prototype.pointerDown.call(this,V,ne),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},W.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),me.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),me.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),me.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},W.prototype.setStrokeColor=function(V){this.strokeColor=V,this.adjustVisual(),this.colorChanged(V)},W.prototype.setStrokeWidth=function(V){this.strokeWidth=V,this.adjustVisual()},W.prototype.setStrokeDasharray=function(V){this.strokeDasharray=V,this.adjustVisual(),this.stateChanged()},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},re.prototype.getState.call(this));return V.typeName=W.typeName,V},W.prototype.restoreState=function(V){re.prototype.restoreState.call(this,V);var ne=V;this.strokeColor=ne.strokeColor,this.strokeWidth=ne.strokeWidth,this.strokeDasharray=ne.strokeDasharray,this.createVisual(),this.adjustVisual()},W.typeName="LineMarker",W.title="Line marker",W.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',W}(Et),ut=function(re){function W(V,ne,ve,oe){var tt=re.call(this,V,oe||'<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 tt.fonts=[],tt.fontBoxes=[],tt.fonts=ne,tt.currentFont=ve,tt.setCurrentFont=tt.setCurrentFont.bind(tt),tt}return ce(W,re),W.prototype.getUi=function(){var V=this,ne=document.createElement("div");return ne.style.overflow="hidden",ne.style.flexGrow="2",this.fonts.forEach(function(ve){var oe=document.createElement("div");oe.style.display="inline-block",oe.style.alignItems="center",oe.style.justifyContent="space-between",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.overflow="hidden",oe.style.maxWidth=100/V.fonts.length-5+"%",oe.style.borderColor=ve===V.currentFont?V.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){V.setCurrentFont(ve,oe)}),ne.appendChild(oe);var tt=document.createElement("div");tt.style.display="flex",tt.style.minHeight="20px",tt.style.flexGrow="2",tt.style.fontFamily=ve,tt.style.overflow="hidden";var Kt=document.createElement("div");Kt.style.whiteSpace="nowrap",Kt.style.overflow="hidden",Kt.style.textOverflow="ellipsis",Kt.innerHTML="The quick brown fox jumps over the lazy dog",tt.appendChild(Kt),oe.appendChild(tt),V.fontBoxes.push(oe)}),ne},W.prototype.setCurrentFont=function(V,ne){var ve=this;this.currentFont=V,this.fontBoxes.forEach(function(oe){oe.style.borderColor=oe===ne?ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},W}(he),vt=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.color="transparent",oe.padding=5,oe.DEFAULT_TEXT="your text here",oe.text=oe.DEFAULT_TEXT,oe.isMoved=!1,oe.color=ve.defaultColor,oe.fontFamily=ve.defaultFontFamily,oe.defaultSize={x:100,y:30},oe.setColor=oe.setColor.bind(oe),oe.setFont=oe.setFont.bind(oe),oe.renderText=oe.renderText.bind(oe),oe.sizeText=oe.sizeText.bind(oe),oe.textEditDivClicked=oe.textEditDivClicked.bind(oe),oe.showTextEditor=oe.showTextEditor.bind(oe),oe.setSize=oe.setSize.bind(oe),oe.positionTextEditor=oe.positionTextEditor.bind(oe),oe.colorPanel=new Se("Color",ve.defaultColorSet,ve.defaultColor),oe.colorPanel.onColorChanged=oe.setColor,oe.fontFamilyPanel=new ut("Font",ve.defaultFontFamilies,ve.defaultFontFamily),oe.fontFamilyPanel.onFontChanged=oe.setFont,oe}return ce(W,re),W.prototype.ownsTarget=function(V){if(re.prototype.ownsTarget.call(this,V)||V===this.visual||V===this.textElement||V===this.bgRectangle)return!0;var ne=!1;return this.textElement.childNodes.forEach(function(ve){ve===V&&(ne=!0)}),ne},W.prototype.createVisual=function(){this.visual=me.createGroup(),this.bgRectangle=me.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=me.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(me.createTransform()),this.textElement.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},W.prototype.pointerDown=function(V,ne){re.prototype.pointerDown.call(this,V,ne),this.isMoved=!1,this.pointerDownPoint=V,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(V),this._state="creating")},W.prototype.renderText=function(){var V=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(ne){V.textElement.appendChild(me.createTSpan(ne.trim()===""?" ":ne.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},W.prototype.getTextScale=function(){var V=this.textElement.getBBox(),ne=1;if(V.width>0&&V.height>0){var ve=(1*this.width-this.width*this.padding*2/100)/V.width,oe=(1*this.height-this.height*this.padding*2/100)/V.height;ne=Math.min(ve,oe)}return ne},W.prototype.getTextPosition=function(V){var ne=this.textElement.getBBox(),ve=0,oe=0;return ne.width>0&&ne.height>0&&(ve=(this.width-ne.width*V)/2,oe=this.height/2-ne.height*V/2),{x:ve,y:oe}},W.prototype.sizeText=function(){var V=this.textElement.getBBox(),ne=this.getTextScale(),ve=this.getTextPosition(ne);ve.y-=V.y*ne,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ve.x+"px, "+ve.y+"px) scale("+ne+", "+ne+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ve.x,ve.y),this.textElement.transform.baseVal.getItem(1).setScale(ne,ne))},W.prototype.manipulate=function(V){re.prototype.manipulate.call(this,V),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(V.x-this.pointerDownPoint.x)>5||Math.abs(V.y-this.pointerDownPoint.y)>5)},W.prototype.resize=function(V){re.prototype.resize.call(this,V),this.isMoved=!0,this.setSize(),this.sizeText()},W.prototype.setSize=function(){re.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},W.prototype.pointerUp=function(V){var ne=this.state;ne==="creating"&&(this._suppressMarkerCreateEvent=!0),re.prototype.pointerUp.call(this,V),this.setSize(),(ne==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},W.prototype.showTextEditor=function(){var V=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(ne){ne.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ne=Number.parseFloat(V.textEditor.style.fontSize);V.textEditor.clientWidth>=Number.parseInt(V.textEditor.style.maxWidth)&&ne>.9;)ne-=.1,V.textEditor.style.fontSize=Math.max(ne,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ne){ne.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ne){if(ne.clipboardData){var ve=ne.clipboardData.getData("text"),oe=window.getSelection();if(!oe.rangeCount)return!1;oe.deleteFromDocument(),oe.getRangeAt(0).insertNode(document.createTextNode(ve)),ne.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){V.textEditDivClicked(V.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},W.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var V=this.getTextScale(),ne=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ve=this.textElement.getBBox(),oe={x:ve.width*V,y:ve.height*V};ne.x-=oe.x/2,ne.y-=oe.y/2,this.textEditor.style.top=ne.y+"px",this.textEditor.style.left=ne.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ne.x+"px",this.textEditor.style.fontSize=Math.max(16*V,12)+"px",this.textElement.style.display="none"}},W.prototype.textEditDivClicked=function(V){this.text=V.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},W.prototype.select=function(){re.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},W.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),re.prototype.deselect.call(this)},W.prototype.dblClick=function(V,ne){re.prototype.dblClick.call(this,V,ne),this.showTextEditor()},W.prototype.setColor=function(V){this.textElement&&me.setAttributes(this.textElement,[["fill",V]]),this.color=V,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(V)},W.prototype.setFont=function(V){this.textElement&&me.setAttributes(this.textElement,[["font-family",V]]),this.fontFamily=V,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},W.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},W.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},re.prototype.getState.call(this));return V.typeName=W.typeName,V},W.prototype.restoreState=function(V){var ne=V;this.color=ne.color,this.fontFamily=ne.fontFamily,this.padding=ne.padding,this.text=ne.text,this.createVisual(),re.prototype.restoreState.call(this,V),this.setSize()},W.prototype.scale=function(V,ne){re.prototype.scale.call(this,V,ne),this.setSize(),this.sizeText(),this.positionTextEditor()},W.typeName="TextMarker",W.title="Text marker",W.icon='<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>',W}(Ot),Ze=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.color="transparent",oe.lineWidth=3,oe.drawing=!1,oe.pixelRatio=1,oe.color=ve.defaultColor,oe.lineWidth=ve.defaultStrokeWidth,oe.pixelRatio=ve.freehandPixelRatio,oe.setColor=oe.setColor.bind(oe),oe.addCanvas=oe.addCanvas.bind(oe),oe.finishCreation=oe.finishCreation.bind(oe),oe.setLineWidth=oe.setLineWidth.bind(oe),oe.colorPanel=new Se("Color",ve.defaultColorSet,ve.defaultColor),oe.colorPanel.onColorChanged=oe.setColor,oe.lineWidthPanel=new Ut("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),oe.lineWidthPanel.onWidthChanged=oe.setLineWidth,oe}return ce(W,re),W.prototype.ownsTarget=function(V){return!(!re.prototype.ownsTarget.call(this,V)&&V!==this.visual&&V!==this.drawingImage)},W.prototype.createVisual=function(){this.visual=me.createGroup(),this.drawingImage=me.createImage(),this.visual.appendChild(this.drawingImage);var V=me.createTransform();this.visual.transform.baseVal.appendItem(V),this.addMarkerVisualToContainer(this.visual)},W.prototype.pointerDown=function(V,ne){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(V.x,V.y),this.drawing=!0):re.prototype.pointerDown.call(this,V,ne)},W.prototype.manipulate=function(V){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(V.x,V.y),this.canvasContext.stroke()):re.prototype.manipulate.call(this,V)},W.prototype.resize=function(V){re.prototype.resize.call(this,V),me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},W.prototype.pointerUp=function(V){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):re.prototype.pointerUp.call(this,V)},W.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},W.prototype.select=function(){this.state==="creating"&&this.finishCreation(),re.prototype.select.call(this)},W.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),re.prototype.deselect.call(this)},W.prototype.finishCreation=function(){for(var V=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ne=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ve=ne[0],oe=ne[1],tt=ne[2],Kt=ne[3],dn=!1,Cn=0;Cn<this.canvasElement.height;Cn++)for(var Jt=0;Jt<this.canvasElement.width;Jt++)V.data[Cn*this.canvasElement.width*4+4*Jt+3]>0&&(dn=!0,Cn<oe&&(oe=Cn),Jt<ve&&(ve=Jt),Cn>Kt&&(Kt=Cn),Jt>tt&&(tt=Jt));if(dn){this.left=ve/this.pixelRatio,this.top=oe/this.pixelRatio,this.width=(tt-ve)/this.pixelRatio,this.height=(Kt-oe)/this.pixelRatio;var Vn=document.createElement("canvas");Vn.width=tt-ve,Vn.height=Kt-oe,Vn.getContext("2d").putImageData(this.canvasContext.getImageData(ve,oe,tt-ve,Kt-oe),0,0),this.drawingImgUrl=Vn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},W.prototype.setDrawingImage=function(){me.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},W.prototype.setColor=function(V){this.color=V,this.colorChanged(V)},W.prototype.setLineWidth=function(V){this.lineWidth=V},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=Object.assign({drawingImgUrl:this.drawingImgUrl},re.prototype.getState.call(this));return V.typeName=W.typeName,V},W.prototype.restoreState=function(V){this.createVisual(),re.prototype.restoreState.call(this,V),this.drawingImgUrl=V.drawingImgUrl,this.setDrawingImage()},W.prototype.scale=function(V,ne){re.prototype.scale.call(this,V,ne),this.setDrawingImage()},W.typeName="FreehandMarker",W.title="Freehand marker",W.icon='<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>',W}(Ot),ke=function(re){function W(V,ne,ve){var oe=re.call(this,V,ve||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return oe.typeBoxes=[],oe.currentType=ne,oe.setCurrentType=oe.setCurrentType.bind(oe),oe}return ce(W,re),W.prototype.getUi=function(){var V=this,ne=document.createElement("div");ne.style.display="flex",ne.style.overflow="hidden",ne.style.flexGrow="2";for(var ve=function(Kt){var dn="both";switch(Kt){case 0:dn="both";break;case 1:dn="start";break;case 2:dn="end";break;case 3:dn="none"}var Cn=document.createElement("div");if(Cn.style.display="flex",Cn.style.flexGrow="2",Cn.style.alignItems="center",Cn.style.justifyContent="space-between",Cn.style.padding="5px",Cn.style.borderWidth="2px",Cn.style.borderStyle="solid",Cn.style.borderColor=dn===oe.currentType?oe.uiStyleSettings.toolboxAccentColor:"transparent",Cn.addEventListener("click",function(){V.setCurrentType(dn,Cn)}),ne.appendChild(Cn),dn==="both"||dn==="start"){var Jt=document.createElement("div");Jt.style.display="flex",Jt.style.alignItems="center",Jt.style.minHeight="20px",Jt.innerHTML=`<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="`+(oe.uiStyleSettings!==void 0?oe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Jt.style.marginLeft="5px",Cn.appendChild(Jt)}var Vn=document.createElement("div");Vn.style.display="flex",Vn.style.alignItems="center",Vn.style.minHeight="20px",Vn.style.flexGrow="2";var Xn=document.createElement("hr");if(Xn.style.minWidth="20px",Xn.style.border="0px",Xn.style.borderTop="3px solid "+(oe.uiStyleSettings!==void 0?oe.uiStyleSettings.toolboxColor:"#eeeeee"),Xn.style.flexGrow="2",Vn.appendChild(Xn),Cn.appendChild(Vn),dn==="both"||dn==="end"){var lr=document.createElement("div");lr.style.display="flex",lr.style.alignItems="center",lr.style.minHeight="20px",lr.innerHTML=`<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="`+(oe.uiStyleSettings!==void 0?oe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,lr.style.marginRight="5px",Cn.appendChild(lr)}oe.typeBoxes.push(Cn)},oe=this,tt=0;tt<4;tt++)ve(tt);return ne},W.prototype.setCurrentType=function(V,ne){var ve=this;this.currentType=V,this.typeBoxes.forEach(function(oe){oe.style.borderColor=oe===ne?ve.uiStyleSettings!==void 0?ve.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},W}(he),He=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.arrowType="end",oe.arrowBaseHeight=10,oe.arrowBaseWidth=10,oe.getArrowPoints=oe.getArrowPoints.bind(oe),oe.setArrowType=oe.setArrowType.bind(oe),oe.arrowTypePanel=new ke("Arrow type","end"),oe.arrowTypePanel.onArrowTypeChanged=oe.setArrowType,oe}return ce(W,re),W.prototype.ownsTarget=function(V){return!(!re.prototype.ownsTarget.call(this,V)&&V!==this.arrow1&&V!==this.arrow2)},W.prototype.getArrowPoints=function(V,ne){var ve=this.arrowBaseWidth+2*this.strokeWidth,oe=this.arrowBaseHeight+2*this.strokeWidth;return V-ve/2+","+(ne+oe/2)+" "+V+","+(ne-oe/2)+" "+(V+ve/2)+","+(ne+oe/2)},W.prototype.createTips=function(){this.arrow1=me.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=me.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.arrow2)},W.prototype.pointerDown=function(V,ne){re.prototype.pointerDown.call(this,V,ne),this.state==="creating"&&this.createTips()},W.prototype.adjustVisual=function(){if(re.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",me.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),me.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var V=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ne=this.arrow1.transform.baseVal.getItem(0);ne.setRotate(V,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ne,0);var ve=this.arrow2.transform.baseVal.getItem(0);ve.setRotate(V+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ve,0)}},W.prototype.setArrowType=function(V){this.arrowType=V,this.adjustVisual(),this.stateChanged()},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=Object.assign({arrowType:this.arrowType},re.prototype.getState.call(this));return V.typeName=W.typeName,V},W.prototype.restoreState=function(V){re.prototype.restoreState.call(this,V);var ne=V;this.arrowType=ne.arrowType,this.createTips(),this.adjustVisual()},W.typeName="ArrowMarker",W.title="Arrow marker",W.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',W}(Rt),we=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.fillColor=ve.defaultFillColor,oe.strokeWidth=0,oe.fillPanel=new Se("Color",ve.defaultColorSet,ve.defaultFillColor),oe.fillPanel.onColorChanged=oe.setFillColor,oe}return ce(W,re),Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=re.prototype.getState.call(this);return V.typeName=W.typeName,V},W.typeName="CoverMarker",W.title="Cover marker",W.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',W}(dt),Le=function(re){function W(V,ne,ve,oe){var tt=re.call(this,V,oe||'<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 tt.opacities=[],tt.opacityBoxes=[],tt.opacities=ne,tt.currentOpacity=ve,tt.setCurrentOpacity=tt.setCurrentOpacity.bind(tt),tt}return ce(W,re),W.prototype.getUi=function(){var V=this,ne=document.createElement("div");return ne.style.display="flex",ne.style.overflow="hidden",ne.style.flexGrow="2",ne.style.justifyContent="space-between",this.opacities.forEach(function(ve){var oe=document.createElement("div");oe.style.display="flex",oe.style.alignItems="center",oe.style.justifyContent="center",oe.style.padding="5px",oe.style.borderWidth="2px",oe.style.borderStyle="solid",oe.style.borderColor=ve===V.currentOpacity?V.uiStyleSettings.toolboxAccentColor:"transparent",oe.addEventListener("click",function(){V.setCurrentOpacity(ve,oe)}),ne.appendChild(oe);var tt=document.createElement("div");tt.innerText=100*ve+"%",oe.appendChild(tt),V.opacityBoxes.push(oe)}),ne},W.prototype.setCurrentOpacity=function(V,ne){var ve=this;this.currentOpacity=V,this.opacityBoxes.forEach(function(oe){oe.style.borderColor=oe===ne?ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},W}(he),Pe=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.setOpacity=oe.setOpacity.bind(oe),oe.fillColor=ve.defaultHighlightColor,oe.strokeWidth=0,oe.opacity=ve.defaultHighlightOpacity,oe.fillPanel=new Se("Color",ve.defaultColorSet,oe.fillColor),oe.fillPanel.onColorChanged=oe.setFillColor,oe.opacityPanel=new Le("Opacity",ve.defaultOpacitySteps,oe.opacity),oe.opacityPanel.onOpacityChanged=oe.setOpacity,oe}return ce(W,re),W.prototype.setOpacity=function(V){this.opacity=V,this.visual&&me.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=re.prototype.getState.call(this);return V.typeName=W.typeName,V},W.typeName="HighlightMarker",W.title="Highlight marker",W.icon='<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>',W}(we),We='<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>',Xe=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.bgColor="transparent",oe.tipPosition={x:0,y:0},oe.tipBase1Position={x:0,y:0},oe.tipBase2Position={x:0,y:0},oe.tipMoving=!1,oe.color=ve.defaultStrokeColor,oe.bgColor=ve.defaultFillColor,oe.fontFamily=ve.defaultFontFamily,oe.defaultSize={x:100,y:30},oe.setBgColor=oe.setBgColor.bind(oe),oe.getTipPoints=oe.getTipPoints.bind(oe),oe.positionTip=oe.positionTip.bind(oe),oe.setTipPoints=oe.setTipPoints.bind(oe),oe.colorPanel=new Se("Text color",ve.defaultColorSet,oe.color,'<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>'),oe.colorPanel.onColorChanged=oe.setColor,oe.bgColorPanel=new Se("Fill color",ve.defaultColorSet,oe.bgColor,We),oe.bgColorPanel.onColorChanged=oe.setBgColor,oe.fontFamilyPanel=new ut("Font",ve.defaultFontFamilies,ve.defaultFontFamily),oe.fontFamilyPanel.onFontChanged=oe.setFont,oe.tipGrip=new ct,oe.tipGrip.visual.transform.baseVal.appendItem(me.createTransform()),oe.controlBox.appendChild(oe.tipGrip.visual),oe}return ce(W,re),W.prototype.ownsTarget=function(V){return re.prototype.ownsTarget.call(this,V)||this.tipGrip.ownsTarget(V)||this.tip===V},W.prototype.createTip=function(){me.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=me.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},W.prototype.pointerDown=function(V,ne){this.state==="new"&&re.prototype.pointerDown.call(this,V,ne),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ne)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):re.prototype.pointerDown.call(this,V,ne)},W.prototype.pointerUp=function(V){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,re.prototype.pointerUp.call(this,V);else{var ne=this.state==="creating";re.prototype.pointerUp.call(this,V),this.setTipPoints(ne),this.positionTip()}},W.prototype.manipulate=function(V){if(this.tipMoving){var ne=this.unrotatePoint(V);this.tipPosition={x:ne.x-this.manipulationStartLeft,y:ne.y-this.manipulationStartTop},this.positionTip()}else re.prototype.manipulate.call(this,V)},W.prototype.setBgColor=function(V){this.bgRectangle&&this.tip&&(me.setAttributes(this.bgRectangle,[["fill",V]]),me.setAttributes(this.tip,[["fill",V]])),this.bgColor=V,this.fillColorChanged(V)},W.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},W.prototype.setTipPoints=function(V){V===void 0&&(V=!1);var ne=Math.min(this.height/2,15),ve=this.height/5;V&&(this.tipPosition={x:ne+ve/2,y:this.height+20});var oe=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?oe<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(ve=this.width/5,ne=Math.min(this.width/2,15),this.tipBase1Position={x:ne,y:0},this.tipBase2Position={x:ne+ve,y:0}):(this.tipBase1Position={x:0,y:ne},this.tipBase2Position={x:0,y:ne+ve}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?oe<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(ve=this.width/5,ne=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ne-ve,y:0},this.tipBase2Position={x:this.width-ne,y:0}):(this.tipBase1Position={x:this.width,y:ne},this.tipBase2Position={x:this.width,y:ne+ve}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?oe<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(ve=this.width/5,ne=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ne-ve,y:this.height},this.tipBase2Position={x:this.width-ne,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-ne-ve},this.tipBase2Position={x:this.width,y:this.height-ne}):oe<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ve=this.width/5,ne=Math.min(this.width/2,15),this.tipBase1Position={x:ne,y:this.height},this.tipBase2Position={x:ne+ve,y:this.height}):(this.tipBase1Position={x:0,y:this.height-ne},this.tipBase2Position={x:0,y:this.height-ne-ve})},W.prototype.resize=function(V){re.prototype.resize.call(this,V),this.positionTip()},W.prototype.positionTip=function(){me.setAttributes(this.tip,[["points",this.getTipPoints()]]);var V=this.tipGrip.visual.transform.baseVal.getItem(0);V.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(V,0)},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),W.prototype.select=function(){this.positionTip(),re.prototype.select.call(this)},W.prototype.getState=function(){var V=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},re.prototype.getState.call(this));return V.typeName=W.typeName,V},W.prototype.restoreState=function(V){var ne=V;this.bgColor=ne.bgColor,this.tipPosition=ne.tipPosition,re.prototype.restoreState.call(this,V),this.createTip(),this.setTipPoints()},W.prototype.scale=function(V,ne){re.prototype.scale.call(this,V,ne),this.tipPosition={x:this.tipPosition.x*V,y:this.tipPosition.y*ne},this.positionTip()},W.typeName="CalloutMarker",W.title="Callout marker",W.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>',W}(vt),gt=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.fillColor="transparent",oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.opacity=1,oe.strokeColor=ve.defaultColor,oe.strokeWidth=ve.defaultStrokeWidth,oe.strokeDasharray=ve.defaultStrokeDasharray,oe.fillColor=ve.defaultFillColor,oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setFillColor=oe.setFillColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.setOpacity=oe.setOpacity.bind(oe),oe.createVisual=oe.createVisual.bind(oe),oe.strokePanel=new Se("Line color",le(ve.defaultColorSet,["transparent"]),ve.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.fillPanel=new Se("Fill color",le(ve.defaultColorSet,["transparent"]),oe.fillColor,We),oe.fillPanel.onColorChanged=oe.setFillColor,oe.strokeWidthPanel=new Ut("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new jt("Line style",ve.defaultStrokeDasharrays,ve.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe.opacityPanel=new Le("Opacity",ve.defaultOpacitySteps,oe.opacity),oe.opacityPanel.onOpacityChanged=oe.setOpacity,oe}return ce(W,re),W.prototype.ownsTarget=function(V){return!(!re.prototype.ownsTarget.call(this,V)&&V!==this.visual)},W.prototype.createVisual=function(){this.visual=me.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)},W.prototype.pointerDown=function(V,ne){re.prototype.pointerDown.call(this,V,ne),this.state==="new"&&(this.createVisual(),this.moveVisual(V),this._state="creating")},W.prototype.manipulate=function(V){re.prototype.manipulate.call(this,V)},W.prototype.resize=function(V){re.prototype.resize.call(this,V),this.setSize()},W.prototype.setSize=function(){re.prototype.setSize.call(this),me.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},W.prototype.pointerUp=function(V){re.prototype.pointerUp.call(this,V),this.setSize()},W.prototype.setStrokeColor=function(V){this.strokeColor=V,this.visual&&me.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(V),this.stateChanged()},W.prototype.setFillColor=function(V){this.fillColor=V,this.visual&&me.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(V),this.stateChanged()},W.prototype.setStrokeWidth=function(V){this.strokeWidth=V,this.visual&&me.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},W.prototype.setStrokeDasharray=function(V){this.strokeDasharray=V,this.visual&&me.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},W.prototype.setOpacity=function(V){this.opacity=V,this.visual&&me.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},re.prototype.getState.call(this));return V.typeName=W.typeName,V},W.prototype.restoreState=function(V){var ne=V;this.fillColor=ne.fillColor,this.strokeColor=ne.strokeColor,this.strokeWidth=ne.strokeWidth,this.strokeDasharray=ne.strokeDasharray,this.opacity=ne.opacity,this.createVisual(),re.prototype.restoreState.call(this,V),this.setSize()},W.prototype.scale=function(V,ne){re.prototype.scale.call(this,V,ne),this.setSize()},W.typeName="EllipseMarker",W.title="Ellipse marker",W.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>',W}(Ot),Lt=function(re){function W(V,ne,ve){return re.call(this,V,ne,ve)||this}return ce(W,re),Object.defineProperty(W.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),W.prototype.ownsTarget=function(V){return!(!re.prototype.ownsTarget.call(this,V)&&V!==this.tip1&&V!==this.tip2)},W.prototype.createTips=function(){this.tip1=me.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(me.createTransform()),this.visual.appendChild(this.tip1),this.tip2=me.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(me.createTransform()),this.visual.appendChild(this.tip2)},W.prototype.pointerDown=function(V,ne){re.prototype.pointerDown.call(this,V,ne),this.state==="creating"&&this.createTips()},W.prototype.adjustVisual=function(){if(re.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(me.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()]]),me.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 V=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ne=this.tip1.transform.baseVal.getItem(0);ne.setRotate(V,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ne,0);var ve=this.tip2.transform.baseVal.getItem(0);ve.setRotate(V+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ve,0)}},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=re.prototype.getState.call(this);return V.typeName=W.typeName,V},W.prototype.restoreState=function(V){re.prototype.restoreState.call(this,V),this.createTips(),this.adjustVisual()},W.typeName="MeasurementMarker",W.title="Measurement marker",W.icon='<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>',W}(Rt),en=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.strokePanel.colors=ve.defaultColorSet,oe.fillColor="transparent",oe}return ce(W,re),Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=re.prototype.getState.call(this);return V.typeName=W.typeName,V},W.typeName="EllipseFrameMarker",W.title="Ellipse frame marker",W.icon='<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>',W}(gt),Zt=function(){function re(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(re.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),re.prototype.addUndoStep=function(W){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(W)||(this.undoStack.push(W),JSON.stringify(this.lastRedoStep)!==JSON.stringify(W)&&this.redoStack.splice(0,this.redoStack.length))},re.prototype.replaceLastUndoStep=function(W){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=W)},re.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},re.prototype.undo=function(){if(this.undoStack.length>1){var W=this.undoStack.pop();return W!==void 0&&this.redoStack.push(W),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},re.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},re}(),xt=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne,ve)||this;return oe.strokeColor="transparent",oe.strokeWidth=0,oe.strokeDasharray="",oe.curveX=0,oe.curveY=0,oe.manipulationStartCurveX=0,oe.manipulationStartCurveY=0,oe.setStrokeColor=oe.setStrokeColor.bind(oe),oe.setStrokeWidth=oe.setStrokeWidth.bind(oe),oe.setStrokeDasharray=oe.setStrokeDasharray.bind(oe),oe.positionGrips=oe.positionGrips.bind(oe),oe.addControlGrips=oe.addControlGrips.bind(oe),oe.adjustVisual=oe.adjustVisual.bind(oe),oe.setupControlBox=oe.setupControlBox.bind(oe),oe.resize=oe.resize.bind(oe),oe.strokeColor=ve.defaultColor,oe.strokeWidth=ve.defaultStrokeWidth,oe.strokeDasharray=ve.defaultStrokeDasharray,oe.strokePanel=new Se("Line color",ve.defaultColorSet,ve.defaultColor),oe.strokePanel.onColorChanged=oe.setStrokeColor,oe.strokeWidthPanel=new Ut("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),oe.strokeWidthPanel.onWidthChanged=oe.setStrokeWidth,oe.strokeStylePanel=new jt("Line style",ve.defaultStrokeDasharrays,ve.defaultStrokeDasharray),oe.strokeStylePanel.onStyleChanged=oe.setStrokeDasharray,oe}return ce(W,re),W.prototype.ownsTarget=function(V){return!(!re.prototype.ownsTarget.call(this,V)&&V!==this.visual&&V!==this.selectorCurve&&V!==this.visibleCurve&&!this.curveGrip.ownsTarget(V))},W.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},W.prototype.createVisual=function(){this.visual=me.createGroup(),this.selectorCurve=me.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=me.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},W.prototype.pointerDown=function(V,ne){re.prototype.pointerDown.call(this,V,ne),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=V.x,this.curveY=V.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ne)&&(this.activeGrip=this.curveGrip,this._state="resize")},W.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),me.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),me.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),me.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},W.prototype.setupControlBox=function(){re.prototype.setupControlBox.call(this),this.curveControlLine1=me.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=me.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},W.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,re.prototype.addControlGrips.call(this)},W.prototype.positionGrips=function(){re.prototype.positionGrips.call(this);var V=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-V/2,this.curveY-V/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},W.prototype.manipulate=function(V){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+V.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+V.y-this.manipulationStartY),re.prototype.manipulate.call(this,V)},W.prototype.resize=function(V){this.activeGrip===this.curveGrip&&(this.curveX=V.x,this.curveY=V.y),re.prototype.resize.call(this,V),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},W.prototype.setStrokeColor=function(V){this.strokeColor=V,this.adjustVisual(),this.colorChanged(V)},W.prototype.setStrokeWidth=function(V){this.strokeWidth=V,this.adjustVisual()},W.prototype.setStrokeDasharray=function(V){this.strokeDasharray=V,this.adjustVisual()},W.prototype.scale=function(V,ne){this.curveX=this.curveX*V,this.curveY=this.curveY*ne,re.prototype.scale.call(this,V,ne)},Object.defineProperty(W.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),W.prototype.getState=function(){var V=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},re.prototype.getState.call(this));return V.typeName=W.typeName,V},W.prototype.restoreState=function(V){re.prototype.restoreState.call(this,V);var ne=V;this.strokeColor=ne.strokeColor,this.strokeWidth=ne.strokeWidth,this.strokeDasharray=ne.strokeDasharray,this.curveX=ne.curveX,this.curveY=ne.curveY,this.createVisual(),this.adjustVisual()},W.typeName="CurveMarker",W.title="Curve marker",W.icon='<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>',W}(Et),Ct=function(){function re(W,V){V===void 0&&(V=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=W,this.cancelable=V}return Object.defineProperty(re.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),re.prototype.preventDefault=function(){this._defaultPrevented=!0},re}(),mt=function(re){function W(V,ne,ve){var oe=re.call(this,V,!1)||this;return oe.dataUrl=ne,oe.state=ve,oe}return ce(W,re),W}(Ct),Je=function(re){function W(V,ne,ve){ve===void 0&&(ve=!1);var oe=re.call(this,V,ve)||this;return oe.marker=ne,oe}return ce(W,re),W}(Ct),Qe=function(){function re(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return re.prototype.addEventListener=function(W,V){this[W].push(V)},re.prototype.removeEventListener=function(W,V){var ne=this[W].indexOf(V);ne>-1&&this[W].splice(ne,1)},re}(),Oe=function(){function re(W){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ve,this._isOpen=!1,this.undoRedoManager=new Zt,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Qe,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=re.instanceCounter++,this.styles=new pe(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=W,this.targetRoot=document.body,this.width=W.clientWidth,this.height=W.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(re.prototype,"ALL_MARKER_TYPES",{get:function(){return[ze,Ze,He,vt,en,gt,Pe,Xe,Lt,we,Rt,xt]},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ze,Ze,He,vt,gt,Pe,Xe]},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ze,Ze,He,vt,Pe]},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(W){var V=this;this._availableMarkerTypes.splice(0),W.forEach(function(ne){if(typeof ne=="string"){var ve=V.ALL_MARKER_TYPES.find(function(oe){return oe.typeName===ne});ve!==void 0&&V._availableMarkerTypes.push(ve)}else V._availableMarkerTypes.push(ne)})},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(W){this._zoomLevel=W,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),re.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),se.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},re.prototype.show=function(){var W=this;this.styles.styleSheetRoot===void 0&&ae.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ae.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(V){return V(new Ct(W))})},re.prototype.render=function(){return ie(this,void 0,void 0,function(){var W;return ye(this,function(V){switch(V.label){case 0:return this.setCurrentMarker(),(W=new ge).naturalSize=this.renderAtNaturalSize,W.imageType=this.renderImageType,W.imageQuality=this.renderImageQuality,W.markersOnly=this.renderMarkersOnly,W.width=this.renderWidth,W.height=this.renderHeight,[4,W.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return V.sent(),[4,W.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,V.sent()]}})})},re.prototype.close=function(W){var V=this;if(W===void 0&&(W=!1),this.isOpen){var ne=!1;W||this.eventListeners.beforeclose.forEach(function(ve){var oe=new Ct(V,!0);ve(oe),oe.defaultPrevented&&(ne=!0)}),ne||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(ve){return ve(new Ct(V))}),this.detachEvents(),this._isOpen=!1)}},re.prototype.addMarkersToToolbar=function(){for(var W,V=[],ne=0;ne<arguments.length;ne++)V[ne]=arguments[ne];(W=this._availableMarkerTypes).push.apply(W,V)},re.prototype.addRenderEventListener=function(W){this.addEventListener("render",function(V){W(V.dataUrl,V.state)})},re.prototype.removeRenderEventListener=function(W){},re.prototype.addCloseEventListener=function(W){this.addEventListener("close",function(){W()})},re.prototype.removeCloseEventListener=function(W){},re.prototype.setupResizeObserver=function(){var W=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){W.resize(W.target.clientWidth,W.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return W.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},re.prototype.onPopupTargetResize=function(){var W=1*this.target.clientWidth/this.target.clientHeight,V=this.editorCanvas.clientWidth/W>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*W:this.editorCanvas.clientWidth,ne=V<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/W;this.resize(V,ne)},re.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},re.prototype.resize=function(W,V){this._isResizing=!0;var ne=W/this.imageWidth,ve=V/this.imageHeight;this.imageWidth=Math.round(W),this.imageHeight=Math.round(V),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(ne,ve),this._isResizing=!1},re.prototype.scaleMarkers=function(W,V){var ne,ve=this;this._currentMarker&&this._currentMarker instanceof vt?this._currentMarker.scale(W,V):(ne=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(oe){oe!==ve._currentMarker&&oe.scale(W,V)}),ne!==void 0&&this.setCurrentMarker(ne)},re.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"},re.prototype.setTopLeft=function(){var W=this.editingTarget.getBoundingClientRect(),V=this.editorCanvas.getBoundingClientRect();this.left=W.left-V.left,this.top=W.top-V.top},re.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)},re.prototype.addDefs=function(){for(var W,V=[],ne=0;ne<arguments.length;ne++)V[ne]=arguments[ne];this.defs=me.createDefs(),this.addDefsToImage(),(W=this.defs).append.apply(W,V)},re.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},re.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)},re.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},re.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},re.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)},re.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},re.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)},re.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 W=document.createElement("a");W.href="https://markerjs.com/",W.target="_blank",W.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>',W.title="Powered by marker.js",W.style.display="grid",W.style.alignItems="center",W.style.justifyItems="center",W.style.padding="3px",W.style.width="20px",W.style.height="20px",this.logoUI.appendChild(W),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},re.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},re.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},re.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},re.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var W=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=W+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new Ke(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new et(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},re.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},re.prototype.removeMarker=function(W){this.markerImage.removeChild(W.container),this.markers.indexOf(W)>-1&&this.markers.splice(this.markers.indexOf(W),1),W.dispose()},re.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},re.prototype.toolbarButtonClicked=function(W,V){if(W==="marker"&&V!==void 0)this.createNewMarker(V);else if(W==="action")switch(V){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},re.prototype.deleteSelectedMarker=function(){var W=this;if(this._currentMarker!==void 0){var V=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ve){var oe=new Je(W,W._currentMarker,!0);ve(oe),oe.defaultPrevented&&(V=!0)}),!V){var ne=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(ve){return ve(new Je(W,ne))})}}},re.prototype.clear=function(){var W=this,V=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(tt){var Kt=new Je(W,void 0,!0);tt(Kt),Kt.defaultPrevented&&(V=!0)}),!V)){this.setCurrentMarker();for(var ne=function(tt){var Kt=ve.markers[tt];ve.setCurrentMarker(ve.markers[tt]),ve._currentMarker.dispose(),ve.markerImage.removeChild(ve._currentMarker.container),ve.markers.splice(ve.markers.indexOf(ve._currentMarker),1),ve.eventListeners.markerdelete.forEach(function(dn){return dn(new Je(W,Kt))})},ve=this,oe=this.markers.length-1;oe>=0;oe--)ne(oe);this.addUndoStep()}},Object.defineProperty(re.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),re.prototype.showNotesEditor=function(){var W;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(W=this._currentMarker.notes)!==null&&W!==void 0?W:"",this.overlayContainer.appendChild(this.notesArea))},re.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},re.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},re.prototype.addUndoStep=function(){var W=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var V=this.getState(),ne=this.undoRedoManager.getLastUndoStep();if(!ne||ne.width===V.width&&ne.height===V.height){var ve=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(V),ve<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(oe){return oe(new Ct(W))})}else this.undoRedoManager.replaceLastUndoStep(V),this.eventListeners.statechange.forEach(function(oe){return oe(new Ct(W))})}},re.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},re.prototype.undoStep=function(){var W=this,V=this.undoRedoManager.undo();V!==void 0&&(this.restoreState(V),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ne){return ne(new Ct(W))}))},re.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},re.prototype.redoStep=function(){var W=this,V=this.undoRedoManager.redo();V!==void 0&&(this.restoreState(V),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ne){return ne(new Ct(W))}))},re.prototype.stepZoom=function(){var W=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=W<this.zoomSteps.length-1?this.zoomSteps[W+1]:this.zoomSteps[0]},re.prototype.panTo=function(W){this.contentDiv.scrollBy({left:this.prevPanPoint.x-W.x,top:this.prevPanPoint.y-W.y}),this.prevPanPoint=W},re.prototype.startRenderAndClose=function(){return ie(this,void 0,void 0,function(){var W,V,ne=this;return ye(this,function(ve){switch(ve.label){case 0:return[4,this.render()];case 1:return W=ve.sent(),V=this.getState(),this.eventListeners.render.forEach(function(oe){return oe(new mt(ne,W,V))}),this.close(!0),[2]}})})},re.prototype.getState=function(W){W===!0&&this.setCurrentMarker();var V={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(ne){return V.markers.push(ne.getState())}),V},re.prototype.restoreState=function(W){var V=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);W.markers.forEach(function(ne){var ve=V._availableMarkerTypes.find(function(tt){return tt.typeName===ne.typeName});if(ve!==void 0){var oe=V.addNewMarker(ve);oe.restoreState(ne),V.markers.push(oe)}}),W.width&&W.height&&(W.width!==this.imageWidth||W.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/W.width,this.imageHeight/W.height),this.eventListeners.restorestate.forEach(function(ne){return ne(new Ct(V))})},re.prototype.addNewMarker=function(W){var V=me.createGroup();return this.markerImage.appendChild(V),new W(V,this.overlayContainer,this.settings)},re.prototype.createNewMarker=function(W){var V,ne=this;(V=typeof W=="string"?this._availableMarkerTypes.find(function(ve){return ve.typeName===W}):W)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(V),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(V.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(ve){return ve(new Je(ne,ne._currentMarker))}))},re.prototype.markerCreated=function(W){var V=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(W),this.setCurrentMarker(W),W instanceof Ze&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ze):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(ne){return ne(new Je(V,V._currentMarker))})},re.prototype.colorChanged=function(W){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=W,this.settings.defaultStrokeColor=W)},re.prototype.fillColorChanged=function(W){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=W)},re.prototype.markerStateChanged=function(W){var V=this;this.eventListeners.markerchange.forEach(function(ne){return ne(new Je(V,W))})},re.prototype.setCurrentMarker=function(W){var V=this;this._currentMarker!==W&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(ne){return ne(new Je(V,V._currentMarker))})),this._currentMarker=W,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(ne){return ne(new Je(V,V._currentMarker))}))},re.prototype.onPointerDown=function(W){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||W.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var V=this.markers.find(function(ne){return ne.ownsTarget(W.target)});V!==void 0?(this.setCurrentMarker(V),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(W.clientX,W.clientY),W.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:W.clientX,y:W.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(W.clientX,W.clientY))},re.prototype.onDblClick=function(W){if(this._isFocused||this.focus(),this.mode==="select"){var V=this.markers.find(function(ne){return ne.ownsTarget(W.target)});V!==void 0&&V!==this._currentMarker&&this.setCurrentMarker(V),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(W.clientX,W.clientY),W.target):this.setCurrentMarker()}},re.prototype.onPointerMove=function(W){this.touchPoints!==1&&W.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||W.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(W.clientX,W.clientY)):this.zoomLevel>1&&this.panTo({x:W.clientX,y:W.clientY}))},re.prototype.onPointerUp=function(W){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(W.clientX,W.clientY)),this.isDragging=!1,this.addUndoStep()},re.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},re.prototype.onKeyUp=function(W){this._currentMarker===void 0||this.notesArea!==void 0||W.key!=="Delete"&&W.key!=="Backspace"||this.deleteSelectedMarker()},re.prototype.clientToLocalCoordinates=function(W,V){var ne=this.markerImage.getBoundingClientRect();return{x:(W-ne.left)/this.zoomLevel,y:(V-ne.top)/this.zoomLevel}},re.prototype.onWindowResize=function(){this.positionUI()},re.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var W=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=W+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},re.prototype.addLicenseKey=function(W){se.addKey(W)},re.prototype.addEventListener=function(W,V){this.eventListeners.addEventListener(W,V)},re.prototype.removeEventListener=function(W,V){this.eventListeners.removeEventListener(W,V)},re.prototype.renderState=function(W){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(W),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(re.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),re.prototype.focus=function(){var W=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(V){return V(new Ct(W))}))},re.prototype.blur=function(){var W=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(V){return V(new Ct(W))}))},re.instanceCounter=0,re}();/* **********************************
cropro version 1.2.0
@license SEE LICENSE IN LICENSE
copyright Alan Mendelevich
see README and LICENSE for details
********************************** *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var je=function(re,W){return(je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,ne){V.__proto__=ne}||function(V,ne){for(var ve in ne)Object.prototype.hasOwnProperty.call(ne,ve)&&(V[ve]=ne[ve])})(re,W)};function St(re,W){if(typeof W!="function"&&W!==null)throw new TypeError("Class extends value "+String(W)+" is not a constructor or null");function V(){this.constructor=re}je(re,W),re.prototype=W===null?Object.create(W):(V.prototype=W.prototype,new V)}function bt(re,W,V,ne){return new(V||(V=Promise))(function(ve,oe){function tt(Cn){try{dn(ne.next(Cn))}catch(Jt){oe(Jt)}}function Kt(Cn){try{dn(ne.throw(Cn))}catch(Jt){oe(Jt)}}function dn(Cn){var Jt;Cn.done?ve(Cn.value):(Jt=Cn.value,Jt instanceof V?Jt:new V(function(Vn){Vn(Jt)})).then(tt,Kt)}dn((ne=ne.apply(re,W||[])).next())})}function Dt(re,W){var V,ne,ve,oe,tt={label:0,sent:function(){if(1&ve[0])throw ve[1];return ve[1]},trys:[],ops:[]};return oe={next:Kt(0),throw:Kt(1),return:Kt(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function Kt(dn){return function(Cn){return function(Jt){if(V)throw new TypeError("Generator is already executing.");for(;tt;)try{if(V=1,ne&&(ve=2&Jt[0]?ne.return:Jt[0]?ne.throw||((ve=ne.return)&&ve.call(ne),0):ne.next)&&!(ve=ve.call(ne,Jt[1])).done)return ve;switch(ne=0,ve&&(Jt=[2&Jt[0],ve.value]),Jt[0]){case 0:case 1:ve=Jt;break;case 4:return tt.label++,{value:Jt[1],done:!1};case 5:tt.label++,ne=Jt[1],Jt=[0];continue;case 7:Jt=tt.ops.pop(),tt.trys.pop();continue;default:if(!(ve=tt.trys,(ve=ve.length>0&&ve[ve.length-1])||Jt[0]!==6&&Jt[0]!==2)){tt=0;continue}if(Jt[0]===3&&(!ve||Jt[1]>ve[0]&&Jt[1]<ve[3])){tt.label=Jt[1];break}if(Jt[0]===6&&tt.label<ve[1]){tt.label=ve[1],ve=Jt;break}if(ve&&tt.label<ve[2]){tt.label=ve[2],tt.ops.push(Jt);break}ve[2]&&tt.ops.pop(),tt.trys.pop();continue}Jt=W.call(re,tt)}catch(Vn){Jt=[6,Vn],ne=0}finally{V=ve=0}if(5&Jt[0])throw Jt[1];return{value:Jt[0]?Jt[1]:void 0,done:!0}}([dn,Cn])}}}var Qt=function(){function re(){}return re.addKey=function(W){re.key=W},Object.defineProperty(re,"isLicensed",{get:function(){return!!re.key&&new RegExp(/^CRPR-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(re.key)},enumerable:!1,configurable:!0}),re}(),_t=function(){function re(){}return re.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},re.setAttributes=function(W,V){for(var ne=0,ve=V;ne<ve.length;ne++){var oe=ve[ne],tt=oe[0],Kt=oe[1];W.setAttribute(tt,Kt)}},re.createRect=function(W,V,ne){var ve=document.createElementNS("http://www.w3.org/2000/svg","rect");return ve.setAttribute("width",W.toString()),ve.setAttribute("height",V.toString()),ne&&re.setAttributes(ve,ne),ve},re.createLine=function(W,V,ne,ve,oe){var tt=document.createElementNS("http://www.w3.org/2000/svg","line");return tt.setAttribute("x1",W.toString()),tt.setAttribute("y1",V.toString()),tt.setAttribute("x2",ne.toString()),tt.setAttribute("y2",ve.toString()),oe&&re.setAttributes(tt,oe),tt},re.createPolygon=function(W,V){var ne=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ne.setAttribute("points",W),V&&re.setAttributes(ne,V),ne},re.createCircle=function(W,V){var ne=document.createElementNS("http://www.w3.org/2000/svg","circle");return ne.setAttribute("cx",(W/2).toString()),ne.setAttribute("cy",(W/2).toString()),ne.setAttribute("r",W.toString()),V&&re.setAttributes(ne,V),ne},re.createEllipse=function(W,V,ne){var ve=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ve.setAttribute("cx",(W/2).toString()),ve.setAttribute("cy",(V/2).toString()),ve.setAttribute("rx",(W/2).toString()),ve.setAttribute("ry",(V/2).toString()),ne&&re.setAttributes(ve,ne),ve},re.createGroup=function(W){var V=document.createElementNS("http://www.w3.org/2000/svg","g");return W&&re.setAttributes(V,W),V},re.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},re.createMarker=function(W,V,ne,ve,oe,tt,Kt){var dn=document.createElementNS("http://www.w3.org/2000/svg","marker");return re.setAttributes(dn,[["id",W],["orient",V],["markerWidth",ne.toString()],["markerHeight",ve.toString()],["refX",oe.toString()],["refY",tt.toString()]]),dn.appendChild(Kt),dn},re.createText=function(W){var V=document.createElementNS("http://www.w3.org/2000/svg","text");return V.setAttribute("x","0"),V.setAttribute("y","0"),W&&re.setAttributes(V,W),V},re.createTSpan=function(W,V){var ne=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ne.textContent=W,V&&re.setAttributes(ne,V),ne},re.createImage=function(W){var V=document.createElementNS("http://www.w3.org/2000/svg","image");return W&&re.setAttributes(V,W),V},re.createPoint=function(W,V){var ne=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ne.x=W,ne.y=V,ne},re.createPath=function(W,V){var ne=document.createElementNS("http://www.w3.org/2000/svg","path");return ne.setAttribute("d",W),V&&re.setAttributes(ne,V),ne},re.createElement=function(W,V){var ne=document.createElementNS("http://www.w3.org/2000/svg",W);return V&&re.setAttributes(ne,V),ne},re.getHollowRectanglePath=function(W,V,ne,ve,oe,tt,Kt,dn){return"M"+W+","+V+"V"+(V+ve)+"H"+(W+ne)+"V"+V+"H"+oe+"V"+tt+"H"+(oe+Kt)+"V"+(tt+dn)+"H"+oe+"V"+V+"Z"},re}(),Gt=function(){function re(W){this._classNamePrefixBase="__cropro_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+W+"_"}return Object.defineProperty(re.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(re.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(re.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_out"},enumerable:!1,configurable:!0}),re.prototype.addClass=function(W){return this.styleSheet===void 0&&this.addStyleSheet(),W.name=""+this.classNamePrefix+W.localName,this.classes.push(W),this.styleSheet.sheet.insertRule("."+W.name+" {"+W.style+"}",this.styleSheet.sheet.cssRules.length),W},re.prototype.addRule=function(W){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(W),this.styleSheet.sheet.insertRule(W.selector+" {"+W.style+"}",this.styleSheet.sheet.cssRules.length)},re.prototype.addStyleSheet=function(){var W;this.styleSheet=document.createElement("style"),((W=this.styleSheetRoot)!==null&&W!==void 0?W:document.head).appendChild(this.styleSheet),this.addRule(new kt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new kt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new kt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new fn("_fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new fn("_fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},re.prototype.removeStyleSheet=function(){var W;this.styleSheet&&(((W=this.styleSheetRoot)!==null&&W!==void 0?W:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},re}(),kt=function(re,W){this.selector=re,this.style=W},fn=function(re,W){this.localName=re,this.style=W},mn=function(){function re(){this.blocks=[],this.display=""}return re.prototype.addButtonBlock=function(W){W.className=this.blockClassName,W.buttonClassName=this.buttonClassName,W.buttonColorsClassName=this.buttonColorsClassName,W.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(W)},re.prototype.addElementBlock=function(W){W.className===void 0&&(W.className=this.blockClassName),this.blocks.push(W)},re.prototype.getUI=function(){var W=document.createElement("div");return W.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,W.style.display=this.display,this.blocks.forEach(function(V){return W.appendChild(V.getUI())}),W},re}(),Tr=function(){function re(){}return re.prototype.getUI=function(){var W=document.createElement("div");if(W.className=this.className,this.minWidth!==void 0&&(W.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":W.style.justifyContent="flex-start";break;case"center":W.style.justifyContent="center";break;case"end":W.style.justifyContent="flex-end"}return W.style.whiteSpace="nowrap",W},re}(),Mr=function(re){function W(){var V=re!==null&&re.apply(this,arguments)||this;return V.buttons=[],V}return St(W,re),W.prototype.addButton=function(V){V.className=this.buttonClassName,V.colorsClassName=this.buttonColorsClassName,V.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(V)},W.prototype.getUI=function(){var V=re.prototype.getUI.call(this);return this.buttons.forEach(function(ne){return V.appendChild(ne.getUI())}),V},W}(Tr),kr=function(){function re(W,V){this._isActive=!1,this._isHidden=!1,this._icon=W,this.title=V,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(re.prototype,"icon",{get:function(){return this._icon},set:function(W){this._icon=W,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"isActive",{get:function(){return this._isActive},set:function(W){this._isActive=W,this.adjustClassName()},enumerable:!1,configurable:!0}),re.prototype.getUI=function(){var W=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 W.onClick()}),this.uiContainer.appendChild(this.buttonContainer),this.uiContainer.style.display=this._isHidden?"none":"inline-block",this.uiContainer},re.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,"")))},re.prototype.hide=function(){this._isHidden=!0},re}(),Un=function(re){function W(){var V=re!==null&&re.apply(this,arguments)||this;return V.elements=[],V}return St(W,re),W.prototype.addElement=function(V){this.elements.push(V)},W.prototype.getUI=function(){var V=re.prototype.getUI.call(this);return this.elements.forEach(function(ne){return V.appendChild(ne)}),V},W}(Tr),Ra=function(){function re(W,V){this.horizontal=W,this.vertical=V}return Object.defineProperty(re.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),re.prototype.getVerticalLength=function(W){return W/this.ratio},re.prototype.getHorizontalLength=function(W){return W*this.ratio},re}(),Xr=function(){function re(){}return re.getIcon=function(W,V){if(W>0&&V>0){var ne=new Ra(W,V),ve=ne.ratio>=1?20:ne.getHorizontalLength(20),oe=ne.ratio<1?20:ne.getVerticalLength(20),tt=document.createElementNS("http://www.w3.org/2000/svg","svg");tt.setAttribute("xmlns","http://www.w3.org/2000/svg"),tt.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(tt);var Kt=_t.createDefs();tt.appendChild(Kt);var dn=_t.createElement("clipPath",[["id","text-bg-clip"]]);Kt.appendChild(dn);var Cn=_t.createPath(_t.getHollowRectanglePath((24-ve)/2,(24-oe)/2,ve,oe,(24-ve)/2+2,(24-oe)/2+2,ve-4,oe-4));tt.appendChild(Cn);var Jt=_t.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Jt.appendChild(_t.createTSpan(W+":"+V)),tt.appendChild(Jt);var Vn=Jt.getBBox();_t.setAttributes(Jt,[["x",((24-Vn.width)/2).toString()],["y",((24-Vn.height)/2-Vn.y).toString()]]);var Xn=_t.createPath(_t.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(Vn.width))/2,(24-Math.ceil(Vn.height))/2,Math.ceil(Vn.width),Math.ceil(Vn.height)));return dn.appendChild(Xn),_t.setAttributes(Cn,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(tt),tt.outerHTML}return'<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>'},re}(),aa=function(re){function W(V,ne,ve){var oe=re.call(this,V,ne)||this;return oe.isDropdownOpen=!1,oe.onClick=oe.dropdownButtonClicked,oe.dropdownButtons=ve,oe}return St(W,re),W.prototype.setupDropdown=function(){var V=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(ne){ne.className=V.className,ne.colorsClassName=V.colorsClassName,V.dropdownBlock.appendChild(ne.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},W.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},W.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},W.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},W.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},W.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},W}(kr),Kr=function(){function re(W,V){this.GRIP_SIZE=10,this.color=W,this.fillColor=V,this.visual=_t.createGroup(),this.visual.appendChild(_t.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(_t.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return re.prototype.ownsTarget=function(W){return W===this.visual||W===this.visual.childNodes[0]||W===this.visual.childNodes[1]},re.prototype.setCenter=function(W,V){this.visual.childNodes.forEach(function(ne){return _t.setAttributes(ne,[["cx",W.toString()],["cy",V.toString()]])})},re}(),_a=function(){function re(W,V,ne,ve){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=W,this.canvasHeight=V,this.margin=ne,this.container=ve,this.attachEvents=this.attachEvents.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.resize=this.resize.bind(this),this.adjustCropRect=this.adjustCropRect.bind(this),this.scaleCanvas=this.scaleCanvas.bind(this),this.getRescaledRect=this.getRescaledRect.bind(this)}return Object.defineProperty(re.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(W){this._aspectRatio=W,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(W){this._isGridVisible=W,this.gridContainer&&_t.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(W){this._zoomFactor=W,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),re.prototype.open=function(){var W=this;this.cropShadeElement=_t.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=_t.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var V=0;V<this.numberOfGridLines;V++)this.horizontalGridLines.push(_t.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]])),this.verticalGridLines.push(_t.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]]));this.horizontalGridLines.forEach(function(ne){return W.gridContainer.appendChild(ne)}),this.verticalGridLines.forEach(function(ne){return W.gridContainer.appendChild(ne)}),this.cropRectElement=_t.createRect(0,0,[["stroke",this.cropFrameColor],["stroke-width","3"],["fill","transparent"]]),this.container.appendChild(this.cropRectElement),this.topLeftGrip=new Kr(this.gripColor,this.gripFillColor),this.container.appendChild(this.topLeftGrip.visual),this.topRightGrip=new Kr(this.gripColor,this.gripFillColor),this.container.appendChild(this.topRightGrip.visual),this.bottomLeftGrip=new Kr(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomLeftGrip.visual),this.bottomRightGrip=new Kr(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomRightGrip.visual),this.attachEvents()},re.prototype.setCropRectangle=function(W){this.cropRect=W;var V=Object.assign({},this.cropRect);this.zoomFactor!==1&&(V.width=this.cropRect.width*this.zoomFactor,V.height=this.cropRect.height*this.zoomFactor,V.x=this.cropRect.height/this.cropRect.width<this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasWidth/2-V.width/2,V.y=this.cropRect.height/this.cropRect.width>this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-V.height/2),_t.setAttributes(this.cropRectElement,[["x",V.x.toString()],["y",V.y.toString()],["width",V.width.toString()],["height",V.height.toString()]]);var ne=V.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(oe,tt){var Kt=V.y+ne*(tt+1);_t.setAttributes(oe,[["x1",""+V.x],["y1",""+Kt],["x2",""+(V.x+V.width)],["y2",""+Kt]])});var ve=V.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(oe,tt){var Kt=V.x+ve*(tt+1);_t.setAttributes(oe,[["x1",""+Kt],["y1",""+V.y],["x2",""+Kt],["y2",""+(V.y+V.height)]])}),_t.setAttributes(this.cropShadeElement,[["d",_t.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,V.x,V.y,V.width,V.height)]]),this.topLeftGrip.setCenter(V.x,V.y),this.topRightGrip.setCenter(V.x+V.width,V.y),this.bottomLeftGrip.setCenter(V.x,V.y+V.height),this.bottomRightGrip.setCenter(V.x+V.width,V.y+V.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},re.prototype.attachEvents=function(){this.container.style.touchAction="none",this.container.addEventListener("pointerdown",this.onPointerDown),this.container.addEventListener("pointermove",this.onPointerMove),this.container.addEventListener("pointerup",this.onPointerUp)},re.prototype.clientToLocalCoordinates=function(W,V){var ne=this.container.getBoundingClientRect();return{x:W-ne.left+this.margin,y:V-ne.top+this.margin}},re.prototype.onPointerDown=function(W){this.container.setPointerCapture(W.pointerId),this.previousPoint=this.clientToLocalCoordinates(W.clientX,W.clientY),this.cropRectElement===W.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(W.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(W.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(W.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(W.target)&&(this.activeGrip=this.bottomRightGrip)},re.prototype.onPointerMove=function(W){if(this.isMoving)this.move(this.clientToLocalCoordinates(W.clientX,W.clientY));else if(this.activeGrip){var V=this.clientToLocalCoordinates(W.clientX,W.clientY);this.resize(V)}W.preventDefault()},re.prototype.onPointerUp=function(W){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(W.pointerId)},re.prototype.move=function(W){var V=W.x-this.previousPoint.x,ne=W.y-this.previousPoint.y;this.zoomFactor!==1&&(V=-V/this.zoomFactor,ne=-ne/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+V),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+ne),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=W},re.prototype.resize=function(W){var V=Object.assign({},this.cropRect),ne=W.x-this.previousPoint.x,ve=W.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:V.x+ne<this.margin&&(ne=this.margin-V.x),V.x+=ne,V.width=this.cropRect.x+this.cropRect.width-V.x;break;case this.bottomRightGrip:case this.topRightGrip:V.width+ne>this.canvasWidth*this.zoomFactor&&(ne=this.canvasWidth*this.zoomFactor-V.width),V.width+=ne}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(V.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(ne),V.height=this.aspectRatio.getVerticalLength(V.width)):(V.y+=ve,V.height=this.cropRect.y+this.cropRect.height-V.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?V.height=this.aspectRatio.getVerticalLength(V.width):V.height+=ve}V.width<10&&(V.x=this.cropRect.x,V.width=10),V.height<10&&(V.y=this.cropRect.y,V.height=10),this.previousPoint=W,V.x>=this.margin&&V.y>=this.margin&&V.x-this.margin+V.width<=this.canvasWidth&&V.y-this.margin+V.height<=this.canvasHeight&&(this.cropRect=V,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},re.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var W=this.cropRect.x+this.cropRect.width/2,V=this.cropRect.y+this.cropRect.height/2,ne=this.aspectRatio.getHorizontalLength(this.cropRect.height),ve=this.aspectRatio.getVerticalLength(this.cropRect.width);ne/this.canvasWidth<ve/this.canvasHeight?this.cropRect.width=ne:this.cropRect.height=ve,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=W-this.cropRect.width/2,this.cropRect.y=V-this.cropRect.height/2,this.cropRect.x+this.cropRect.width>this.margin+this.canvasWidth&&(this.cropRect.x=this.margin+this.canvasWidth-this.cropRect.width),this.cropRect.y+this.cropRect.height>this.margin+this.canvasHeight&&(this.cropRect.y=this.margin+this.canvasHeight-this.cropRect.height),this.cropRect.x=Math.max(this.cropRect.x,this.margin),this.cropRect.y=Math.max(this.cropRect.y,this.margin)}},re.prototype.getRescaledRect=function(W,V,ne,ve,oe,tt){var Kt=ne/W,dn=ve/V;return{x:(oe.x-tt)*Kt+tt,y:(oe.y-tt)*dn+tt,width:oe.width*Kt,height:oe.height*dn}},re.prototype.scaleCanvas=function(W,V){var ne=this.getRescaledRect(this.canvasWidth,this.canvasHeight,W,V,this.cropRect,this.margin);this.canvasWidth=W,this.canvasHeight=V,this.onCropChange&&this.onCropChange(ne),this.setCropRectangle(ne)},re}(),di=function(){function re(W){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=W,this.uiContainer=document.createElement("div"),this.getUI=this.getUI.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.setAngleLabel=this.setAngleLabel.bind(this),this.positionScaleShape=this.positionScaleShape.bind(this)}return Object.defineProperty(re.prototype,"angle",{get:function(){return this._angle},set:function(W){this._angle=W,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),re.prototype.getUI=function(){return this.controlContainer=document.createElement("div"),this.controlContainer.title=this.title,this.controlContainer.className=this.className+" "+this.colorsClassName,this.controlContainer.appendChild(this.getVisual()),this.controlContainer.addEventListener("pointerdown",this.onPointerDown),this.controlContainer.addEventListener("pointermove",this.onPointerMove),this.controlContainer.addEventListener("pointerup",this.onPointerUp),this.uiContainer.appendChild(this.controlContainer),this.uiContainer.style.display="inline-block",this.uiContainer.style.touchAction="none",this.setAngleLabel(),this.positionScaleShape(),this.uiContainer},re.prototype.onPointerDown=function(W){this.controlContainer.setPointerCapture(W.pointerId),this.isDragging=!0,this.previousPoint={x:W.clientX,y:W.clientY}},re.prototype.onPointerMove=function(W){this.isDragging&&(this.onAngleChange&&this.onAngleChange((W.clientX-this.previousPoint.x)/5),this.previousPoint.x=W.clientX)},re.prototype.onPointerUp=function(W){this.isDragging&&this.onAngleChange&&this.onAngleChange((W.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(W.pointerId)},re.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var W=this.angleLabelText.getBBox();_t.setAttributes(this.angleLabelElement,[["x",((this.width-W.width)/2).toString()],["y",(this.height/2).toString()]])}},re.prototype.positionScaleShape=function(){if(this.scaleShape){var W=this.scaleShape.transform.baseVal.getItem(0);W.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(W,0)}},re.prototype.getVisual=function(){var W=document.createElementNS("http://www.w3.org/2000/svg","svg");W.setAttribute("xmlns","http://www.w3.org/2000/svg"),W.setAttribute("width",this.width+"px"),W.setAttribute("height",this.height+"px"),W.setAttribute("viewBox","0 0 "+this.width+" "+this.height),W.style.flexShrink="0",document.body.appendChild(W);for(var V="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,ne=1;ne<=this.width/5+10;ne++){var ve=ne%5==0?this.height/3:this.height/6;V+="h4v"+-ve+"h1v"+ve}V+="v1H0Z",this.scaleShape=_t.createPath(V);var oe=_t.createTransform();this.scaleShape.transform.baseVal.appendItem(oe),W.appendChild(this.scaleShape),this.angleLabelElement=_t.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=_t.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var tt=_t.createTSpan("");return tt.innerHTML="&deg;",this.angleLabelElement.appendChild(tt),W.appendChild(this.angleLabelElement),document.body.removeChild(W),W},re}(),Ei=function(){function re(){this.naturalSize=!1,this.imageType="image/png"}return re.prototype.rasterize=function(W,V,ne,ve,oe,tt,Kt){var dn=this;return new Promise(function(Cn){var Jt=document.createElement("canvas");Jt.width=W.width.baseVal.value-2*ve,Jt.height=W.height.baseVal.value-2*ve;var Vn=1,Xn=1;dn.naturalSize===!0?(Vn=V.naturalWidth/(W.width.baseVal.value-2*ve)/tt,Xn=V.naturalHeight/(W.height.baseVal.value-2*ve)/Kt,Jt.width=V.naturalWidth/tt,Jt.height=V.naturalHeight/Kt):dn.width!==void 0&&dn.height!==void 0&&(Vn=dn.width/ne.width,Xn=dn.height/ne.height,Jt.width*=Vn,Jt.height*=Xn);var lr=Jt.getContext("2d");lr.translate(Jt.width/2,Jt.height/2),lr.rotate(oe*Math.PI/180),lr.scale(tt,Kt),lr.translate(-Jt.width/2,-Jt.height/2),lr.drawImage(V,0,0,Jt.width,Jt.height);var Rr=document.createElement("canvas");Rr.width=ne.width*Vn,Rr.height=ne.height*Xn,Rr.getContext("2d").putImageData(lr.getImageData((ne.x-ve)*Vn,(ne.y-ve)*Xn,ne.width*Vn,ne.height*Xn),0,0),Cn(Rr.toDataURL(dn.imageType,dn.imageQuality))})},re}(),_e=function(){function re(W){this._zoomToCropEnabled=!0,this.zoomFactor=1,this.flippedHorizontally=!1,this.flippedVertically=!1,this._isGridVisible=!0,this._gridLines=2,this._rotationAngle=0,this.scaleFactor=1,this.renderEventListeners=[],this.closeEventListeners=[],this._isOpen=!1,this.CANVAS_MARGIN=20,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.displayMode="inline",this.popupMargin=30,this.toolbarHeight=40,this.aspectRatios=[{horizontal:0,vertical:0},{horizontal:4,vertical:3},{horizontal:3,vertical:2},{horizontal:16,vertical:9},{horizontal:1,vertical:1},{horizontal:3,vertical:4},{horizontal:2,vertical:3},{horizontal:9,vertical:16}],this._instanceNo=re.instanceCounter++,this.styles=new Gt(this.instanceNo),this.target=W,this.targetRoot=document.body,this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.rotateBy=this.rotateBy.bind(this),this.applyRotation=this.applyRotation.bind(this),this.cropRectChanged=this.cropRectChanged.bind(this),this.zoomToCrop=this.zoomToCrop.bind(this),this.unzoomFromCrop=this.unzoomFromCrop.bind(this),this.rotateLeftButtonClicked=this.rotateLeftButtonClicked.bind(this),this.rotateRightButtonClicked=this.rotateRightButtonClicked.bind(this),this.flipHorizontallyButtonClicked=this.flipHorizontallyButtonClicked.bind(this),this.flipVerticallyButtonClicked=this.flipVerticallyButtonClicked.bind(this),this.applyFlip=this.applyFlip.bind(this),this.startRenderAndClose=this.startRenderAndClose.bind(this),this.render=this.render.bind(this),this.onPopupResize=this.onPopupResize.bind(this),this.applyAspectRatio=this.applyAspectRatio.bind(this)}return Object.defineProperty(re.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(W){this._zoomToCropEnabled=W,W?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(W){this._isGridVisible=W,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"gridLines",{get:function(){return this._gridLines},set:function(W){this._gridLines=W,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(W){this._rotationAngle=W,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"aspectRatio",{get:function(){var W;return(W=this._aspectRatio)!==null&&W!==void 0?W:this.aspectRatios[0]},set:function(W){this._aspectRatio=W},enumerable:!1,configurable:!0}),re.prototype.open=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.setupResizeObserver(),this.initCropCanvas(),this.setEditingTarget(),this.setTopLeft(),this.initCropLayer(),this.attachEvents(),this.applyAspectRatio(),this.displayMode==="popup"&&this.onPopupResize(),this._isOpen=!0},re.prototype.show=function(){this.showUI(),this.open()},re.prototype.close=function(W){W===void 0&&(W=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),W||this.closeEventListeners.forEach(function(V){return V()}),this._isOpen=!1)},re.prototype.addRenderEventListener=function(W){this.renderEventListeners.push(W)},re.prototype.removeRenderEventListener=function(W){this.renderEventListeners.indexOf(W)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(W),1)},re.prototype.addCloseEventListener=function(W){this.closeEventListeners.push(W)},re.prototype.removeCloseEventListener=function(W){this.closeEventListeners.indexOf(W)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(W),1)},re.prototype.setupResizeObserver=function(){var W=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){W.resize(W.target.clientWidth,W.target.clientHeight)}),this.targetObserver.observe(this.target)):this.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(this.onPopupResize),this.targetObserver.observe(this.contentDiv)),window.addEventListener("resize",this.setWindowHeight))},re.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var W=1*this.target.clientWidth/this.target.clientHeight,V=this.contentDiv.clientWidth/W>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*W:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,ne=V+2*this.CANVAS_MARGIN<this.contentDiv.clientWidth?this.contentDiv.clientHeight-2*this.CANVAS_MARGIN:(this.contentDiv.clientWidth-2*this.CANVAS_MARGIN)/W;this.resize(V,ne)}},re.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},re.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",_t.setAttributes(this.editingTarget,[["width",""+this.imageWidth],["height",""+this.imageHeight]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px"},re.prototype.resize=function(W,V){this.imageWidth=Math.round(W),this.imageHeight=Math.round(V),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()},re.prototype.setEditingTarget=function(){var W=document.createElement("canvas");W.width=this.target.naturalWidth,W.height=this.target.naturalHeight,W.getContext("2d").drawImage(this.target,0,0,this.target.naturalWidth,this.target.naturalHeight);var V=W.toDataURL();_t.setAttributes(this.editingTarget,[["href",V]]),this.setEditingTargetSize()},re.prototype.setTopLeft=function(){var W=this.target.getBoundingClientRect(),V=this.editorCanvas.getBoundingClientRect();this.left=W.left-V.left-this.CANVAS_MARGIN,this.top=W.top-V.top-this.CANVAS_MARGIN},re.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=_t.createDefs(),this.cropImage.appendChild(this.defs),this.editingTarget=_t.createImage([["href",""]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationContainer=_t.createGroup(),this.editingTargetRotationScaleContainer=_t.createGroup(),this.editingTargetRotationScaleContainer.appendChild(this.editingTarget),this.editingTargetRotationContainer.appendChild(this.editingTargetRotationScaleContainer);var W=_t.createTransform();this.editingTargetRotationContainer.transform.baseVal.appendItem(W);var V=_t.createTransform();this.editingTargetRotationScaleContainer.transform.baseVal.appendItem(V),this.editingTargetContainer=_t.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)},re.prototype.positionCropImage=function(){this.cropImageHolder.style.top=this.top+"px",this.cropImageHolder.style.left=this.left+"px"},re.prototype.initCropLayer=function(){this.cropRect={x:this.CANVAS_MARGIN,y:this.CANVAS_MARGIN,width:this.imageWidth,height:this.imageHeight},this.cropLayerContainer=_t.createGroup(),this.cropImage.appendChild(this.cropLayerContainer),this.cropLayer=new _a(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()},re.prototype.zoomToCrop=function(){if(this.cropRect){var W=this.cropRect.x-this.CANVAS_MARGIN+this.cropRect.width/2,V=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=W+"px "+V+"px",this.editingTargetContainer.style.transform="translate("+(this.imageWidth/2-W+this.CANVAS_MARGIN)+"px,"+(this.imageHeight/2-V+this.CANVAS_MARGIN)+"px) scale("+this.zoomFactor+")",this.cropLayer.zoomFactor=this.zoomFactor)}},re.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)},re.prototype.cropRectChanged=function(W){this.cropRect=W,this.zoomToCropEnabled?this.zoomToCrop():this.cropLayer.zoomFactor=1},re.prototype.attachEvents=function(){window.addEventListener("resize",this.onWindowResize)},re.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},re.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},re.prototype.showUI=function(){switch(this.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 W=this.styles.settings.hideTopToolbar?0:this.toolbarHeight,V=this.target.offsetTop>W+this.CANVAS_MARGIN?this.target.offsetTop-(W+this.CANVAS_MARGIN):0;this.coverDiv.style.top=V+"px",this.coverDiv.style.left=(this.target.offsetLeft>this.CANVAS_MARGIN?this.target.offsetLeft-this.CANVAS_MARGIN:0)+"px",this.coverDiv.style.width=this.target.offsetWidth+this.CANVAS_MARGIN+"px",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.displayMode==="popup"?this.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.addToolbars(),this.uiDiv.appendChild(this.topToolbar.getUI()),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.alignItems="center",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.contentDiv.style.overflow="hidden",this.contentDiv.style.backgroundColor=this.styles.settings.canvasBackgroundColor,this.displayMode==="popup"&&(this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.popupMargin+"px)"),this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.contentDiv.appendChild(this.editorCanvas),this.uiDiv.appendChild(this.bottomToolbar.getUI()),this.straightener.angle=this.rotationAngle},re.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},re.prototype.addTopToolbar=function(){var W=this;this.topToolbar=new mn,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var V=new Mr;V.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(V);var ne=[];this.aspectRatios.forEach(function(Xn){var lr=new kr(Xr.getIcon(Xn.horizontal,Xn.vertical),Xn.horizontal===0&&Xn.vertical===0?"FREE":Xn.horizontal+":"+Xn.vertical);lr.onClick=function(){return W.ratioButtonClicked(Xn)},ne.push(lr)}),this.aspectRatioButton=new aa(Xr.getIcon(0,0),"Aspect ratio",ne),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,V.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var ve=new kr('<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");ve.isActive=this.isGridVisible,ve.onClick=function(){W.isGridVisible=!W.isGridVisible,ve.isActive=W.isGridVisible},V.addButton(ve);var oe=new kr('<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(oe.isActive=this.zoomToCropEnabled,oe.onClick=function(){W.zoomToCropEnabled=!W.zoomToCropEnabled,oe.isActive=W.zoomToCropEnabled},V.addButton(oe),!Qt.isLicensed){var tt=new Un;this.topToolbar.addElementBlock(tt);var Kt=document.createElement("div");Kt.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var dn=document.createElement("a");dn.style.color="currentColor",dn.href="https://markerjs.com/products/cropro",dn.target="_blank",dn.innerHTML='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2"><path d="M16.326 14.895c0 1.126-.558 1.688-1.673 1.688H9.931c-1.116 0-1.674-.562-1.674-1.688V3.733c0-1.126.558-1.688 1.674-1.688h4.722c1.115 0 1.673.562 1.673 1.688v2.899h-1.957V3.793h-4.124v11.042h4.124v-3.242h1.957v3.302z" fill="currentColor"/><path d="M15.94 7.364a.783.783 0 00-1.065-.304l-11.01 6.126a.783.783 0 00-.303 1.065l4.498 8.085a.783.783 0 001.065.304l11.01-6.126a.783.783 0 00.303-1.065L15.94 7.364zM5.311 14.173l3.737 6.718 9.641-5.364-3.737-6.718-9.641 5.364z" fill="#eef762"/></svg>',Kt.appendChild(dn),tt.addElement(Kt)}var Cn=new Mr;Cn.minWidth=3*this.toolbarHeight+"px",Cn.contentAlign="end",this.topToolbar.addButtonBlock(Cn);var Jt=new kr('<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"OK");Jt.onClick=this.startRenderAndClose,Cn.addButton(Jt),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Jt.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var Vn=new kr('<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");Vn.onClick=this.close,Cn.addButton(Vn),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(Vn.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},re.prototype.addBottomToolbar=function(){var W=this;this.bottomToolbar=new mn,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var V=new Mr;V.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(V);var ne=new kr('<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");ne.onClick=this.rotateLeftButtonClicked,V.addButton(ne);var ve=new kr('<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");ve.onClick=this.rotateRightButtonClicked,V.addButton(ve);var oe=new Un;oe.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(oe),this.straightener=new di("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(Cn){W.rotateBy(Cn),W.straightener.angle=W.rotationAngle},oe.addElement(this.straightener.getUI());var tt=new Mr;tt.minWidth=2*this.toolbarHeight+"px",tt.contentAlign="end",this.bottomToolbar.addButtonBlock(tt);var Kt=new kr('<svg viewBox="0 0 24 24"><path d="M15 21h2v-2h-2m4-10h2V7h-2M3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2m16-2v2h2c0-1.1-.9-2-2-2m-8 20h2V1h-2m8 16h2v-2h-2M15 5h2V3h-2m4 10h2v-2h-2m0 10c1.1 0 2-.9 2-2h-2z"/></svg>',"Flip horizontal");Kt.onClick=this.flipHorizontallyButtonClicked,tt.addButton(Kt);var dn=new kr('<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");dn.onClick=this.flipVerticallyButtonClicked,tt.addButton(dn)},re.prototype.ratioButtonClicked=function(W){this.aspectRatio=W,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},re.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Xr.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},re.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Ra(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},re.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},re.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},re.prototype.restoreState=function(W){if(W){var V=this.cropLayer.getRescaledRect(W.width,W.height,this.imageWidth,this.imageHeight,W.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(V),this.cropRectChanged(V),this.flippedHorizontally=W.flippedHorizontally,this.flippedVertically=W.flippedVertically,this.applyFlip(),this.rotationAngle=W.rotationAngle,this.applyRotation()}},re.prototype.clientToLocalCoordinates=function(W,V){var ne=this.cropImage.getBoundingClientRect();return{x:W-ne.left,y:V-ne.top}},re.prototype.onWindowResize=function(){this.positionUI()},re.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var W=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=W+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)"}this.positionCropImage()},re.prototype.rotateLeftButtonClicked=function(){var W=this.rotationAngle-90;this.rotationAngle%90!=0&&(W+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(W)},re.prototype.rotateRightButtonClicked=function(){var W=this.rotationAngle+90;this.rotationAngle%90!=0&&(W-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(W)},re.prototype.rotateTo=function(W){W=(W=W>180?W-360:W)<=-180?W+360:W,this.rotationAngle=W,this.applyRotation()},re.prototype.rotateBy=function(W){this.rotateTo((this.rotationAngle+W)%360)},re.prototype.applyRotation=function(){var W=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var V=this.editingTargetRotationContainer.transform.baseVal.getItem(0);V.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(V,0);var ne=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/ne.width,this.imageHeight/ne.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=W},re.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},re.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},re.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},re.prototype.startRenderAndClose=function(){return bt(this,void 0,void 0,function(){var W,V;return Dt(this,function(ne){switch(ne.label){case 0:return[4,this.render()];case 1:return W=ne.sent(),V=this.getState(),this.renderEventListeners.forEach(function(ve){return ve(W,V)}),this.close(!0),[2]}})})},re.prototype.render=function(){return bt(this,void 0,void 0,function(){var W;return Dt(this,function(V){switch(V.label){case 0:return(W=new Ei).naturalSize=this.renderAtNaturalSize,W.imageType=this.renderImageType,W.imageQuality=this.renderImageQuality,W.width=this.renderWidth,W.height=this.renderHeight,this.unzoomFromCrop(),_t.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,W.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 1:return V.sent(),[4,W.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 2:return[2,V.sent()]}})})},re.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new fn("toolbar",`
width: `+(this.displayMode==="inline"?"100%":"calc(100vw - "+2*this.popupMargin+"px)")+`;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.toolbarHeight+`px;
box-sizing: content-box;
overflow: hidden;
line-height: 0px;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new fn("toolbar_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarBlockStyleClass=this.styles.addClass(new fn("toolbar-block",`
display: flex;
align-items: center;
box-sizing: content-box;
`));var W=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new fn("toolbar_button",`
display: inline-block;
width: `+(this.toolbarHeight-2*W)+`px;
height: `+(this.toolbarHeight-2*W)+`px;
padding: `+W+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new fn("toolbar_button_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new fn("toolbar_active_button",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
`)),this.styles.addRule(new kt("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.toolbarHeight/2+`px;
`)),this.styles.addRule(new kt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new fn("toolbar_dropdown",`
position: absolute;
max-width: `+4*this.toolbarHeight+`px;
z-index: 20;
white-space: normal;
box-sizing: content-box;
box-shadow: 3px 3px rgba(33, 33, 33, 0.1);
margin: `+(this.displayMode==="inline"?"0":this.popupMargin)+`px;
line-height: 0px;
`)),this.toolbarDropdownStyleColorsClass=this.styles.addClass(new fn("toolbar_dropdown_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new fn("toolbar_straightener_block",`
display: flex;
overflow: hidden;
justify-content: center;
-webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
`)),this.toolbarStraightenerStyleClass=this.styles.addClass(new fn("toolbar_straightener",`
display: flex;
overflow: hidden;
justify-content: center;
height: `+(this.toolbarHeight-2*W)+`px;
padding: `+W+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new fn("toolbar_straightener_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`))},re.instanceCounter=0,re}(),Ie=v("8hTe"),Ye=v.n(Ie),yt=/<pre[^>]*>/g;function Xt(re){var W=document.createElement("div");return W.innerHTML=re,W.childNodes.length===0?"":W.childNodes[0].nodeValue}var sn=ee.a=function(re){var W=re.value,V=W===void 0?"":W,ne=re.edit,ve=ne===void 0?!1:ne,oe=re.className,tt=re.showTextOnly,Kt=re.showLines,dn=re.replaces,Cn=re.zoomImg,Jt=re.hasMask,Vn=re.style,Xn=Vn===void 0?{}:Vn,lr=re.stylesPrev,Rr=lr===void 0?{}:lr,qr=String(V),zr=Object(p.useRef)(),Ca=Object(p.useRef)(),Dr=Object(p.useState)(""),ya=Object(M.a)(Dr,2),ka=ya[0],fi=ya[1],Ka=Object(p.useState)("office"),qa=Object(M.a)(Ka,2),Si=qa[0],pi=qa[1],ui=function(){var Pr=new _e(Ca.current);Pr.displayMode="popup",Pr.addRenderEventListener(function(){var ca=Object(O.a)(n.a.mark(function Jr(ri){var pa;return n.a.wrap(function(Di){for(;;)switch(Di.prev=Di.next){case 0:return zr.current.style.display="none",Di.next=3,Object(fe.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:ri}});case 3:pa=Di.sent,pa!=null&&pa.id&&dn(Ca.current.getAttribute("src").replace(K.a.API_SERVER,""),"/api/attachments/".concat(pa==null?void 0:pa.id,"?type=").concat(pa.content_type));case 5:case"end":return Di.stop()}},Jr)}));return function(Jr){return ca.apply(this,arguments)}}()),Pr.show()},mi=function(){var Pr=new Oe(Ca.current);Pr.settings.displayMode="popup",Pr.addEventListener("render",function(){var ca=Object(O.a)(n.a.mark(function Jr(ri){var pa;return n.a.wrap(function(Di){for(;;)switch(Di.prev=Di.next){case 0:if(zr.current.style.display="none",!Ca.current){Di.next=6;break}return Di.next=4,Object(fe.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:ri.dataUrl}});case 4:pa=Di.sent,pa!=null&&pa.id&&dn(Ca.current.getAttribute("src").replace(K.a.API_SERVER,""),"/api/attachments/".concat(pa==null?void 0:pa.id,"?type=").concat(pa.content_type));case 6:case"end":return Di.stop()}},Jr)}));return function(Jr){return ca.apply(this,arguments)}}()),Pr.show(),window.markerArea=Pr},_i=Object(p.useMemo)(function(){zr.current&&(zr.current.style.zIndex=-1);try{var ua=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Pr=/\"\/api\/attachments\/|\"\/attachments\/download\//g,ca=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;qr=qr.replace(ua,"("+K.a.API_SERVER+"/api/attachments/").replace(Pr,'"'+K.a.API_SERVER+"/api/attachments/").replace(ca,'"'+K.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`)}catch(mo){}var Jr=H(qr),ri=x();if(qr.match(/\[TOC\]/)&&(Jr=Jr.replace("<p>[TOC]</p>",P()),E()),Jr=Jr.replace(/(__special_katext_id_\d+__)/g,function(mo,Di){var ci=ri[Di],Wo=ci.type,Mo=ci.expression;return Object($.renderToString)(Xt(Mo)||"",{displayMode:Wo==="block",throwOnError:!1,output:"html"})}),Jr=Jr.replace(/▁/g,"\u2581\u2581\u2581"),g(),tt){var pa=document.createElement("div");return pa.innerHTML=Jr,pa.innerText}return setTimeout(function(){return Yi()},500),Jr},[qr]),ai=Object(p.useRef)();R.WebkitLineClamp=Kt,Kt&&(Xn=Object(_.a)(Object(_.a)({},Xn),R));function Hi(ua){var Pr=ua.target;if(Pr.tagName.toUpperCase()==="IMG"){if(Cn){var ca=Pr.getAttribute("src");fi(ca),pi("image")}}else if(Pr.tagName.toUpperCase()==="A"){var Jr=Pr.getAttribute("href");if(Jr.indexOf("office")>-1)ua.preventDefault(),fi(Jr),pi("office");else if(Jr.indexOf("application/pdf")>-1)ua.preventDefault(),fi(Jr),pi("pdf");else if(Jr.indexOf("text/html")>-1)ua.preventDefault(),fi(Jr),pi("html");else if(Jr.startsWith("#")){ua.preventDefault();var ri=document.getElementById(Jr.replace("#",""));ri&&ri.scrollIntoView(!0)}}}var Yi=function(){var Pr,ca=(Pr=ai.current)===null||Pr===void 0?void 0:Pr.querySelectorAll("video");ca==null||ca.forEach(function(Jr){if(Jr.oncontextmenu=function(){return!1},Jr.src.indexOf(".m3u8")>-1&&!Jr.canPlayType("application/vnd.apple.mpegurl")){if(z.a.isSupported()){var ri=new z.a;ri.loadSource(Jr.src),ri.attachMedia(Jr)}}})};Object(p.useEffect)(function(){if(ai.current&&_i&&(_i.match(yt)&&window.PR.prettyPrint()),ai.current)return ai.current.addEventListener("click",Hi),function(){ai.current.removeEventListener("click",Hi),g(),E()}},[_i,ai.current,Hi]);var $r=function(Pr){if(!ve)return;Pr.target.nodeName==="IMG"?(zr.current.style.zIndex=1,zr.current.style.display="flex",zr.current.style.width=Pr.target.clientWidth+"px",zr.current.style.height=Pr.target.clientHeight+"px",zr.current.style.top=Pr.target.offsetTop+"px",zr.current.style.left=Pr.target.offsetLeft+"px",Ca.current.src=Pr.target.getAttribute("src")):zr.current.style.display="none"};return a.a.createElement("div",{style:{position:"relative"}},a.a.createElement("div",{ref:ai,style:Object(_.a)({},Xn),className:"".concat(oe||""," markdown-body ").concat(Ye.a.mdBody),onMouseOver:$r,dangerouslySetInnerHTML:{__html:_i}}),a.a.createElement("div",{ref:zr,className:Ye.a.button},a.a.createElement(Q.a,null,a.a.createElement(k.a,{onClick:function(){return ui()}},"\u88C1\u526A"),a.a.createElement(k.a,{onClick:function(){return mi()}},"\u7F16\u8F91"))),a.a.createElement("img",{ref:Ca,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),a.a.createElement(te.a,{close:!0,data:ka,type:ka!=null&&ka.length?Si:"",style:Object(_.a)({},Rr),onClose:function(){return fi("")}}))}},"9VGf":function(Be,ee,v){"use strict";v.d(ee,"a",function(){return I});var Z=v("q1tI"),Q=v.n(Z);function I(k,_){var O=Object(Z.useRef)();Object(Z.useEffect)(function(){O.current=k}),Object(Z.useEffect)(function(){function M(){O.current()}if(_!==null){var T=setInterval(M,_);return function(){return clearInterval(T)}}},[_])}},"9nDM":function(Be,ee,v){},"9z17":function(Be,ee,v){"use strict";v.d(ee,"b",function(){return w});var Z=v("g9YV"),Q=v("wCAj"),I=v("5NDa"),k=v("5rEg"),_=v("y8nQ"),O=v("Vl3Y"),M=v("2qtc"),T=v("kLXV"),n=v("7Kak"),p=v("9yH6"),a=v("9og8"),t=v("tJVT"),A=v("WmNS"),l=v.n(A),i=v("q1tI"),c=v.n(i),d=v("ie49"),f=v.n(d),o=v("HBuW"),u=function(s){var h=s.total,m=s.used,x=s.copy,g=s.canNotCopy,y=s.inPaper,U="";return x>0&&g>0?U="\u5176\u4E2D\u6709".concat(x,"\u4E2A\u5B9E\u8BAD\u53EF\u4EE5\u590D\u5236\uFF0C\u6709").concat(g,"\u4E2A\u5B9E\u8BAD\u672A\u5F00\u653E\u590D\u5236"):x>0&&g===0?U="\u5176\u4E2D\u6709".concat(x,"\u4E2A\u5B9E\u8BAD\u53EF\u4EE5\u590D\u5236"):x===0&&g>0&&(U="\u5176\u4E2D\u6709".concat(g,"\u4E2A\u5B9E\u8BAD\u672A\u5F00\u653E\u590D\u5236")),"\u5F53\u524D\u9009\u4E2D".concat(h,"\u4E2A\u5B9E\u8BAD\u4E2D\uFF0C\u6709").concat(m,"\u4E2A\u5B9E\u8BAD\u5DF2\u5728\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C").concat(U).concat(y?"\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4F7F\u7528\u8BD5\u5377\uFF1F":"")},E=function(s){return s?{reproducible:"\u8BD5\u5377\u4E2D\u4E0B\u5217\u5B9E\u8BAD\u5DF2\u5728\u6559\u5B66\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u8BF7\u9009\u62E9\u662F\u5426\u590D\u5236\u4E3A\u65B0\u7684\u5B9E\u8BAD\u53D1\u9001\u5230\u8BFE\u5802\uFF1F",irreproducible:"\u8BD5\u5377\u4E2D\u4E0B\u5217\u91CD\u590D\u4F7F\u7528\u7684\u5B9E\u8BAD\u672A\u5F00\u542F\u590D\u5236\u6743\u9650\uFF0C\u82E5\u7EE7\u7EED\u4F7F\u7528\u4F1A\u5BFC\u81F4\u6210\u7EE9\u76F8\u4E92\u5F71\u54CD"}:{reproducible:"\u5F53\u524D\u5B9E\u8BAD\u5DF2\u5728\u6559\u5B66\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u8BF7\u9009\u62E9\u662F\u5426\u7EE7\u7EED\u4F7F\u7528\u548C\u662F\u5426\u590D\u5236\u4E3A\u65B0\u7684\u5B9E\u8BAD\u53D1\u9001\u5230\u8BFE\u5802\uFF1F",irreproducible:"\u540C\u4E00\u5B9E\u8BAD\u5728\u4E00\u4E2A\u8BFE\u5802\u4E2D\u91CD\u590D\u4F7F\u7528\u65F6\uFF0C\u4F1A\u5BFC\u81F4\u6210\u7EE9\u76F8\u4E92\u5F71\u54CD\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u7EE7\u7EED\u4F7F\u7528\uFF1F"}},R=function(s){var h=s.onCancel,m=s.onOk,x=s.visible,g=s.inPaper,y=s.renderData,U=s.type,N=Object(i.useState)(1),S=Object(t.a)(N,2),H=S[0],F=S[1],B=Object(i.useState)(!1),z=Object(t.a)(B,2),K=z[0],$=z[1],te=Object(i.useMemo)(function(){return(y==null?void 0:y.total_num)===1&&(y==null?void 0:y.can_copy_num)===1},[y]);return c.a.createElement(c.a.Fragment,null,te?c.a.createElement(T.a,{centered:!0,closable:!0,visible:x,title:"\u63D0\u793A",width:600,confirmLoading:K,onCancel:h,onOk:Object(a.a)(l.a.mark(function fe(){return l.a.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return $(!0),ce.next=3,m(H);case 3:$(!1);case 4:case"end":return ce.stop()}},fe)}))},c.a.createElement("div",{className:f.a.content,style:{marginBottom:20}},"\u5F53\u524D\u5B9E\u8BAD\u5DF2\u5728\u6559\u5B66\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u8BF7\u95EE\u662F\u5426\u590D\u5236\u6210\u65B0\u5B9E\u8BAD\u53D1\u9001\u81F3\u6559\u5B66\u8BFE\u5802\u4E2D\uFF1F"),c.a.createElement(p.a.Group,{value:H,onChange:function(Ae){return F(Ae.target.value)},className:f.a.content,style:{marginBottom:30}},c.a.createElement(p.a,{value:1,style:{color:"#464f66"}},"\u590D\u5236\u5B9E\u8BAD"),c.a.createElement(p.a,{value:0,style:{color:"#464f66"}},"\u4E0D\u590D\u5236\u5B9E\u8BAD")),c.a.createElement("div",{className:f.a.content,style:{marginBottom:10}},"\u8BF4\u660E\uFF1A"),c.a.createElement("div",{className:f.a.content},"\u590D\u5236\u5B9E\u8BAD\uFF1A\u590D\u5236\u4E00\u4EFD\u65B0\u7684\u5B9E\u8BAD\u8FDB\u5165\u8BFE\u5802\uFF0C\u539F\u5B9E\u8BAD\u7684\u8C03\u6574\u4E0D\u4F1A\u5F71\u54CD\u5230\u590D\u5236\u7684\u5B9E\u8BAD\u4E2D\u3002"),c.a.createElement("div",{className:f.a.content},"\u4E0D\u590D\u5236\u5B9E\u8BAD\uFF1A\u540C\u4E00\u5B9E\u8BAD\u5728\u4E00\u4E2A\u8BFE\u5802\u4E2D\u91CD\u590D\u4F7F\u7528\u65F6\uFF0C\u4F1A\u5BFC\u81F4\u6210\u7EE9\u76F8\u4E92\u5F71\u54CD\u3002")):c.a.createElement(T.a,{centered:!0,closable:!0,visible:x,title:"\u63D0\u793A",width:600,onCancel:h,onOk:Object(a.a)(l.a.mark(function fe(){return l.a.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return $(!0),ce.next=3,m(0);case 3:$(!1);case 4:case"end":return ce.stop()}},fe)}))},c.a.createElement("div",{className:f.a.content},"\u5F53\u524D\u5B9E\u8BAD\u5DF2\u5728\u6559\u5B66\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u540C\u4E00\u5B9E\u8BAD\u5728\u4E00\u4E2A\u8BFE\u5802\u4E2D\u91CD\u590D\u4F7F\u7528\u65F6\uFF0C\u4F1A\u5BFC\u81F4\u6210\u7EE9\u76F8\u4E92\u5F71\u54CD\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u7EE7\u7EED\u4F7F\u7528\uFF1F")))},w=function(){var s=Object(i.useState)(!1),h=Object(t.a)(s,2),m=h[0],x=h[1],g=Object(i.useState)(),y=Object(t.a)(g,2),U=y[0],N=y[1],S=function(){return x(!1)},H=function(){var F=Object(a.a)(l.a.mark(function B(z){var K;return l.a.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return te.next=2,Object(o.p)(z);case 2:if(K=te.sent,!("status"in K)){te.next=5;break}return te.abrupt("return",!1);case 5:if(!(K.repeat_shixun_num===0)){te.next=7;break}return te.abrupt("return",!1);case 7:return N(K),x(!0),te.abrupt("return",!0);case 10:case"end":return te.stop()}},B)}));return function(z){return F.apply(this,arguments)}}();return[m,S,U,H]},P=function(s){var h=O.a.useForm(),m=Object(t.a)(h,1),x=m[0],g=Object(i.useState)(!1),y=Object(t.a)(g,2),U=y[0],N=y[1],S=s.onCancel,H=s.onOk,F=s.visible,B=s.inPaper,z=B===void 0?!1:B,K=s.renderData,$=s.type,te=Object(i.useMemo)(function(){return z?[{title:"\u5B9E\u8BAD\u540D\u79F0",dataIndex:"name",width:424,align:"center",className:f.a.tableCell},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:function(ye,le){return c.a.createElement(c.a.Fragment,null,c.a.createElement(O.a.Item,{name:["".concat($==="subject"?le.stage_shixun_id:le.id),"is_copy"],initialValue:1},c.a.createElement(p.a.Group,null,c.a.createElement(p.a,{value:1},"\u662F"),c.a.createElement(p.a,{value:0},"\u5426"))),c.a.createElement(O.a.Item,{name:["".concat($==="subject"?le==null?void 0:le.stage_shixun_id:le.id),"is_use"],hidden:!0,initialValue:1},c.a.createElement(k.a,{type:"hidden"})))}}]:[{title:"\u5B9E\u8BAD\u540D\u79F0",dataIndex:"name",width:424,align:"center",className:f.a.tableCell},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:function(ye,le){return c.a.createElement(O.a.Item,{name:["".concat($==="subject"?le.stage_shixun_id:le.id),"is_use"],initialValue:1},c.a.createElement(p.a.Group,null,c.a.createElement(p.a,{value:1},"\u662F"),c.a.createElement(p.a,{value:0},"\u5426")))}},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:function(ye,le){return c.a.createElement(O.a.Item,{name:["".concat($==="subject"?le.stage_shixun_id:le.id),"is_copy"],initialValue:1},c.a.createElement(p.a.Group,null,c.a.createElement(p.a,{value:1},"\u662F"),c.a.createElement(p.a,{value:0},"\u5426")))}}]},[z]),fe=Object(i.useMemo)(function(){return z?[{title:"\u5B9E\u8BAD\u540D\u79F0",dataIndex:"name",width:424,className:f.a.tableCell,align:"center",render:function(ye,le){return c.a.createElement(c.a.Fragment,null,c.a.createElement("span",null,ye),c.a.createElement(O.a.Item,{name:["".concat($==="subject"?le==null?void 0:le.stage_shixun_id:le.id),"is_copy"],hidden:!0,initialValue:0},c.a.createElement(k.a,{type:"hidden"})),c.a.createElement(O.a.Item,{name:["".concat($==="subject"?le==null?void 0:le.stage_shixun_id:le.id),"is_use"],hidden:!0,initialValue:1},c.a.createElement(k.a,{type:"hidden"})))}}]:[{title:"\u5B9E\u8BAD\u540D\u79F0",dataIndex:"name",width:424,className:f.a.tableCell,align:"center"},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:function(ye,le){return c.a.createElement(c.a.Fragment,null,c.a.createElement(O.a.Item,{name:["".concat($==="subject"?le==null?void 0:le.stage_shixun_id:le.id),"is_use"],initialValue:0},c.a.createElement(p.a.Group,null,c.a.createElement(p.a,{value:1},"\u662F"),c.a.createElement(p.a,{value:0},"\u5426"))),c.a.createElement(O.a.Item,{name:["".concat($==="subject"?le==null?void 0:le.stage_shixun_id:le.id),"is_copy"],hidden:!0,initialValue:0},c.a.createElement(k.a,{type:"hidden"})))}}]},[z]),Ae=Object(i.useMemo)(function(){return u({total:K==null?void 0:K.total_num,used:K==null?void 0:K.repeat_shixun_num,copy:K==null?void 0:K.can_copy_num,canNotCopy:K==null?void 0:K.no_copy_num,inPaper:z})},[K,z]),ce=Object(i.useMemo)(function(){return E(z)},[z]);return c.a.createElement(T.a,{title:"\u5B9E\u8BAD\u91CD\u590D\u4F7F\u7528\u63D0\u793A",centered:!0,visible:F,confirmLoading:U,onOk:Object(a.a)(l.a.mark(function ie(){var ye,le;return l.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return N(!0),ye=x.getFieldsValue(),le=Object.keys(ye).map(function(ge){return{id:parseInt(ge),is_use:ye[ge].is_use,is_copy:ye[ge].is_copy}}),se.next=5,H(le);case 5:N(!1);case 6:case"end":return se.stop()}},ie)})),onCancel:S,width:800,okText:"\u786E\u8BA4",className:f.a.antdModal,destroyOnClose:!0},c.a.createElement(O.a,{form:x,preserve:!1},c.a.createElement("div",{className:f.a.brief},Ae),(K==null?void 0:K.can_copy_num)>0&&c.a.createElement("div",null,c.a.createElement("div",{className:f.a.contentTitle},"\u53EF\u590D\u5236\u5B9E\u8BAD"),c.a.createElement("div",{className:f.a.content},ce.reproducible),c.a.createElement("div",{className:f.a.tips},c.a.createElement("div",null,"\u590D\u5236\u5B9E\u8BAD\uFF1A\u590D\u5236\u4E00\u4EFD\u65B0\u7684\u5B9E\u8BAD\u8FDB\u5165\u8BFE\u5802\uFF0C\u539F\u5B9E\u8BAD\u7684\u8C03\u6574\u4E0D\u4F1A\u5F71\u54CD\u5230\u590D\u5236\u7684\u5B9E\u8BAD\u4E2D\u3002"),c.a.createElement("div",null,"\u4E0D\u590D\u5236\u5B9E\u8BAD\uFF1A\u540C\u4E00\u5B9E\u8BAD\u5728\u4E00\u4E2A\u8BFE\u5802\u4E2D\u91CD\u590D\u4F7F\u7528\u65F6\uFF0C\u4F1A\u5BFC\u81F4\u6210\u7EE9\u76F8\u4E92\u5F71\u54CD\u3002")),c.a.createElement(Q.a,{columns:te,className:f.a.antdTable,dataSource:K==null?void 0:K.can_copy_list,rowKey:$==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})),(K==null?void 0:K.no_copy_num)>0&&c.a.createElement("div",null,c.a.createElement("div",{className:f.a.contentTitle},"\u4E0D\u53EF\u590D\u5236\u5B9E\u8BAD"),c.a.createElement("div",{className:f.a.content},ce.irreproducible),c.a.createElement(Q.a,{columns:fe,className:f.a.antdTable,dataSource:K==null?void 0:K.no_copy_list,rowKey:$==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:200},bordered:!0})),(K==null?void 0:K.no_use_list.length)>0&&(K==null?void 0:K.no_use_list.map(function(ie){return c.a.createElement("div",{key:$==="subject"?ie.stage_shixun_id:ie.id},c.a.createElement(O.a.Item,{name:["".concat($==="subject"?ie==null?void 0:ie.stage_shixun_id:ie.id),"is_copy"],hidden:!0,initialValue:0},c.a.createElement(k.a,{type:"hidden"})),c.a.createElement(O.a.Item,{name:["".concat($==="subject"?ie==null?void 0:ie.stage_shixun_id:ie.id),"is_use"],hidden:!0,initialValue:1},c.a.createElement(k.a,{type:"hidden"})))}))))},C=function(s){var h=s.modalType;return h==="multiple"?c.a.createElement(P,s):c.a.createElement(R,s)};ee.a=C},"A/g1":function(Be,ee){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAyMDIwLzEwLzE1LTE3OjQ4OjMyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjEtMDctMDJUMTk6Mzg6MjMrMDg6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9InNSR0IgSUVDNjE5NjYtMi4xIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOmVkYzRhODM0LTVjNWQtNDQ1My04MDYzLWNkNzcwODQyODg5ZSIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjQ4MTE0OTVlLTVkMDctZTk0YS1iNWEwLWYxOWJmZmM0NGUyNyIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmMwNjQyYzA1LTg5MzQtNDdlYy04MTFiLTlkYjdhZGNkYjFiMCI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6YzA2NDJjMDUtODkzNC00N2VjLTgxMWItOWRiN2FkY2RiMWIwIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjM4OjIzKzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6ZWRjNGE4MzQtNWM1ZC00NDUzLTgwNjMtY2Q3NzA4NDI4ODllIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5fJkpyAAAGoElEQVRogc2abWxbVxnH/8+59/rdTpx2GW3UNWJJV7Ylaxp3LUFsWgJDiI5R8bK2GppAmsgQLKQthS8IEJ9okibrREf3gX2Y1K2bxAoDtog60RBSVxKnWUO7kpSppXJZK2ja2HFi33vPw4cmpbN9r++1k8Lv2znnf577f+zje95Mhw4dQqUkwljpF7kuv0EdHkm1HklRr6TQq2tn5xcklwhIMnMSQJIJxykTiSce+1am0mer5XacqM7uDJjiqbAuWlvSygrBnmKyxcoIA+tBBAAgAAikjNZ47zCIh8E8mOjYO1aOD3L7DYzXZJurs8qhuzLqFsH22hcbUs6CMudAol8Ic2Dkkb0fuvEj3IinwvobjTOeRP1safOuIPIA/AMpxbsb4z3fc9PVUQLvRY37L/vMDxtT2peCBpU97BywlkD9sXjvbzcfG7jTSYeSCZyK6l9tTCkn75xXHAVcChh4zCDzLy1DfQ+U0tomcDaSO9A8rb0WWN5P3QK+SzCPx471bLdTWSYwFdZfXz/j+e7SG3MHE73SGu+19FE0gTNV+o8aU9pXls+Waw7E4r2fL9ZQkMB4jd5xd1r96fJ7cgeDX944vL8hv74ggdUZccRrLsw4/1fQCpLyYH7tRxKYCutv1M4rK26fKdd8Nn+euJnAySp9w+o5dettt+QSItHV+nb/qsXyzddj1KAXlnmSsuIMgV8v1sCgHxdWcj002QXgh8BCAqdq9B33T2tbltOlBWcEia+NtO86nd/QOtR3EGyxXmHZHXun78jow7tPCgAI6NixpGsbZ1ibj/d2gvkZy55EHpbcDiz8BkK62LRsNotjaX5TvK8NzH0lI5j0aQAQ4z69pjarfGwZTFphab55sCdogntAFCgZhfgLn3xtv19oPnTexuFjaR4ANJV6CWhzGEvNrpQPiYBOt+vVaWu+Nd7bCaDTTUCS9LDwSNQuiT17bM3fGPd4zn1YWSc8kqJO5e9H9P6LAeNvLp9ia755sCcoiftAKLqptoOI6oRXUsiJ+FxIf/MTM9quNRl1/XhN7p7zQWPUQTdb88CNcQ9GWXMQA3XCb5JWSngxYJxtSGtfXCxvuOqZrJ9VN53wpcMfhIxhs8jSb0aT2VLmyxn3edQ52hOnNf5dsfrN86H0x9Nqu8KgqbBxdF5hCdwwfyFkPmFnflO8rw3AL8qy/V9YzCmsl1I1pNTdp6N6t52mMaVu85mkTEb0ly6EzCeaprXfWGmbB3uCTHgOLk9FCqGkmhWcBlBjJ9MkUX1K3TcRzV5qmvYesdOum9G+Weqxmop+Zo65dFsAEydFTvC0E3HQIHVNWnvpvRVGRYu+G+Oenq4kxiIk+ZLIKbjitEO1Lvyr0/SHieD8qtLqQhbG/Qvl9C2OSIqMWvwHasUdWSW6Umojbh/VPNgTlOCCLWElsOB3hO7BL6XLHfCqOaXuYsA466aPR6XnAZQ8qHKB4fWJP4kNV7SrV3ymqwNVAFiTUe85HzLedaKNxfd/h4FvuPdoA9Hvj7ftmhMAkFbZyaxaQH1a3XwurL9tp4kN7fsUQz5fTnxbGH8GFt7DcwpecTuMFmlIaZ+bjOgvF2u7d/gnIWZR+Q1KPowcIIaAhQSarqmH/xE0TpQbb92M9uT7kdz+/HqfDB0EcF/ZRi1ggYFER/cYcMtMOO3jzlmVjXKDrkt5uv9are9ZLJ8L6UcJ+HplVotygVRlYLFwM4GWf2njl/ymq1fqrSgM3J1Sfz5Rnd15ulp/tiGtPV6h0aIwaCDxUPc/F8sfOQdqTKnbrvjMf9fOK7ZLCyv8Jom1s9qvsHANttQw4dhY++6BW+sKFlNJr7E9K6wOZEoT0YU3ogvXm5OSMK5KQ347v7oggZbr3j/+PWwUnoj9jyHCk+OP7p3Kry+6nL33uvazqbD+6+W35RDmrtGOPW8Va7JcjzemtC+frTKWfgJyCQmxI/GZ7x+warfdUKy/rj47UZXdnlHZXHprJWBcFKZsGX1k16t2spI7oqbr3iOTkdzGyz7z8tK5s4eAN4UiHxx5dO94Ka2jLd2Gq95TI/e9tXoqbBytZLJzwAUGdY+273nc6Y294z3p1sRW2ZhSt02Gsg+eDxknyl07FYWRY8I+aZptYx27B0Bw/Bp3faHRcs13EsCWiWpjZ8DEU+Ecxe7IKjVl5GMy8zAJMQSIwbH27rL+7FH2jUzTNfUwgMMAkFiFlf5MrstviA4PU61HIuo1KQRCdkGeJCDJoCQkkkzyOFVF4mOxyv9u8x8opnU6UeBF0wAAAABJRU5ErkJggg=="},A2z3:function(Be,ee,v){Be.exports=v.p+"static/Certificate.80413b23.png"},AZ8Y:function(Be,ee,v){"use strict";v.r(ee);var Z=v("T2oS"),Q=v("W9HT"),I=v("k1fw"),k=v("9og8"),_=v("tJVT"),O=v("PpiC"),M=v("Znn+"),T=v("ZTPi"),n=v("WmNS"),p=v.n(n),a=v("q1tI"),t=v.n(a),A=v("Ty5D"),l=v("9kvl"),i=v("+L6B"),c=v("2/Rp"),d=v("oBTY"),f=v("pC0b"),o=v("GzdX"),u=v("+BJd"),E=v("mr32"),R=v("qVdP"),w=v("jsC+"),P=v("lUTK"),C=v("BvKs"),b=v("5Dmo"),s=v("3S7+"),h=v("7Kak"),m=v("9yH6"),x=v("2qtc"),g=v("kLXV"),y=v("miYZ"),U=v("tsqr"),N=v("0NbB"),S=v("JTSX"),H=v.n(S),F=v("xKgJ"),B=v("Mgx3"),z=v("ozfa"),K=v("MJZm"),$=v("sRBo"),te=v("kaz8"),fe=v("14J3"),Ae=v("BMrR"),ce=v("jCWc"),ie=v("kPKH"),ye=v("OaEy"),le=v("2fM7"),me=v("wd/R"),se=v.n(me),ge=v("kNP/"),ae=v.n(ge),pe=v("1vsH"),Me=v("9z17"),xe=le.a.Option,Ke=function(qe){var Bt=qe.pathsDetail,$t=qe.globalSetting,cn=qe.loading,Wt=qe.dispatch,_n=Object(O.a)(qe,["pathsDetail","globalSetting","loading","dispatch"]),rn=Object(A.i)(),Ht=Object(a.useState)(),An=Object(_.a)(Ht,2),qt=An[0],En=An[1],kn=Object(a.useState)([]),Yt=Object(_.a)(kn,2),wn=Yt[0],ln=Yt[1],xn=Object(a.useState)([]),an=Object(_.a)(xn,2),Vt=an[0],Sn=an[1],hr=Object(a.useState)([]),pn=Object(_.a)(hr,2),Dn=pn[0],Nn=pn[1],Gn=Object(a.useState)(),yn=Object(_.a)(Gn,2),Kn=yn[0],or=yn[1],gr=Object(a.useState)(),Ur=Object(_.a)(gr,2),er=Ur[0],rr=Ur[1],Lr=Object(a.useState)(!0),Er=Object(_.a)(Lr,2),_r=Er[0],sa=Er[1];Object(a.useEffect)(function(){Bt.actionTabs.key==="PathsDetail-SendToClass"&&tr()},[Bt.actionTabs.key]);var ta=function(ba){switch(ba.item_type){case"Shixun":return t.a.createElement("span",null,t.a.createElement("span",{className:"mr5 c-light-primary"},"\u5B9E\u8BAD"),ba.name);case"Attachment":return t.a.createElement("span",null,t.a.createElement("span",{className:"mr5 c-cyan-blue"},"\u8BFE\u4EF6"),ba.name);case"VideoItem":return t.a.createElement("span",null,t.a.createElement("span",{className:"mr5 c-purple-8C1"},"\u89C6\u9891"),ba.name);case"StageCatalog":return t.a.createElement("span",null,ba.name);default:return""}},tr=function(){var da=Object(k.a)(p.a.mark(function ba(){var ha,Ta,Da;return p.a.wrap(function(Qr){for(;;)switch(Qr.prev=Qr.next){case 0:return Qr.next=2,Object(B.H)({id:rn.pathId});case 2:ha=Qr.sent,ha&&(ln((ha==null?void 0:ha.courses)||[]),Da=(Ta=ha.stages)===null||Ta===void 0?void 0:Ta.map(function(Wa,Ea){var za;return{title:Wa.state_name||"",key:Ea,children:(za=Wa.items)===null||za===void 0?void 0:za.map(function(hi,Ji){var Li;return Object(I.a)(Object(I.a)({},hi),{},{disabled:hi.is_jupyter,title:ta(hi),key:"".concat(Ea,"-").concat(Ji),children:(Li=hi.children)===null||Li===void 0?void 0:Li.map(function(Ci,Uo){return Object(I.a)(Object(I.a)({},Ci),{},{disabled:Ci.is_jupyter,title:ta(Ci),key:"".concat(Ea,"-").concat(Ji,"-").concat(Uo)})})})})}}),Sn(Da||[]));case 4:case"end":return Qr.stop()}},ba)}));return function(){return da.apply(this,arguments)}}(),vr=function(ba,ha){Nn(ba)},ja=function(ba){var ha=ba.target.checked,Ta=[];Vt==null||Vt.map(function(Da,Ua){var Qr;Ta.push(Ua),Da==null||((Qr=Da.children)===null||Qr===void 0)||Qr.map(function(Wa,Ea){var za;Ta.push("".concat(Ua,"-").concat(Ea)),Wa==null||((za=Wa.children)===null||za===void 0)||za.map(function(hi,Ji){Ta.push("".concat(Ua,"-").concat(Ea,"-").concat(Ji))})})}),Nn(ha?Ta:[])},ia=function(){var ba=Dn.filter(function(Qr){return typeof Qr=="string"}),ha=[],Ta=[],Da=[],Ua=[];return Vt==null||Vt.map(function(Qr,Wa){var Ea;Qr==null||((Ea=Qr.children)===null||Ea===void 0)||Ea.map(function(za,hi){var Ji;ba.includes("".concat(Wa,"-").concat(hi))&&(Da.push(za.stage_item_id),za.item_type==="Shixun"?ha.push(za.id):za.item_type==="Attachment"?Ua.push(za.id):za.item_type==="VideoItem"&&Ta.push(za.id)),za==null||((Ji=za.children)===null||Ji===void 0)||Ji.map(function(Li,Ci){ba.includes("".concat(Wa,"-").concat(hi,"-").concat(Ci))&&(Da.push(Li.stage_item_id),Li.item_type==="Shixun"?ha.push(Li.id):Li.item_type==="Attachment"?Ua.push(Li.id):Li.item_type==="VideoItem"&&Ta.push(Li.id))})})}),{shixunIds:ha,videoItemIds:Ta,stageItemIds:Da,coursewareIds:Ua}},Yn=Object(Me.b)(),vn=Object(_.a)(Yn,4),yr=vn[0],oi=vn[1],Cr=vn[2],Ir=vn[3],fr=function(){var da=Object(k.a)(p.a.mark(function ba(){var ha,Ta,Da;return p.a.wrap(function(Qr){for(;;)switch(Qr.prev=Qr.next){case 0:if(ha=ia(),Ta=ha.stageItemIds,qt){Qr.next=4;break}return U.b.info("\u60A8\u8FD8\u672A\u9009\u62E9\u53D1\u9001\u7684\u8BFE\u5802"),Qr.abrupt("return");case 4:if(!(!qn.length&&!cr.length&&!Pa.length)){Qr.next=7;break}return U.b.info("\u60A8\u8FD8\u672A\u9009\u62E9\u5B9E\u8BAD\u6216\u8005\u89C6\u9891"),Qr.abrupt("return");case 7:return rr(!0),Qr.next=10,Ir({id:rn.pathId,course_id:parseInt(qt),type:"subject",stage_item_id:Ta,sync_catelog:_r?1:0});case 10:if(Da=Qr.sent,Da){Qr.next=14;break}return Qr.next=14,ar(Ta.map(function(Wa){return{id:Wa,is_copy:0,is_use:1}}));case 14:rr(!1),Ln();case 16:case"end":return Qr.stop()}},ba)}));return function(){return da.apply(this,arguments)}}(),ar=function(){var da=Object(k.a)(p.a.mark(function ba(ha){var Ta;return p.a.wrap(function(Ua){for(;;)switch(Ua.prev=Ua.next){case 0:return Ua.next=2,Object(B.P)({id:rn.pathId,course_id:qt,stage_shixuns:ha.map(function(Qr){return{stage_shixun_id:Qr.id,is_copy:Qr.is_copy,is_use:Qr.is_use}}),sync_catelog:_r?1:0});case 2:Ta=Ua.sent,En(null),oi(),(Ta==null?void 0:Ta.status)===1&&g.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},Ta.message),onOk:function(){var Wa,Ea=Ta==null||((Wa=Ta.url.split("/"))===null||Wa===void 0)?void 0:Wa[2];Object(pe.S)("/classrooms/".concat(Ea,"/shixun_homework"))}});case 6:case"end":return Ua.stop()}},ba)}));return function(ha){return da.apply(this,arguments)}}(),Ln=function(){Wt({type:"pathsDetail/setActionTabs",payload:{}}),Nn([]),or(null)},Mn=ia(),gn=Mn.shixunIds,qn=gn===void 0?[]:gn,na=Mn.videoItemIds,cr=na===void 0?[]:na,jr=Mn.coursewareIds,Pa=jr===void 0?[]:jr;return t.a.createElement(t.a.Fragment,null,t.a.createElement(g.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:Bt.actionTabs.key==="PathsDetail-SendToClass",title:"\u53D1\u9001\u81F3\u8BFE\u5802",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:er,width:600,onOk:fr,onCancel:Ln},t.a.createElement("div",{className:ae.a.wrap},t.a.createElement("div",{className:"mb10"},t.a.createElement(le.a,{placeholder:"\u8BF7\u9009\u62E9\u60A8\u8981\u53D1\u9001\u7684\u8BFE\u5802",defaultOpen:!1,value:qt,style:{width:"100%"},onSelect:function(ba){return En(ba)},optionLabelProp:"lable"},wn==null?void 0:wn.map(function(da,ba){return t.a.createElement(xe,{key:da.course_id,value:da.course_id,lable:da.course_name},t.a.createElement(Ae.a,{justify:"space-between"},t.a.createElement(ie.a,null,da.course_name),t.a.createElement(ie.a,null,se()(da.created_at).format("YYYY-MM-DD HH:mm"))))}))),t.a.createElement("div",{className:ae.a.title},"\u6E29\u99A8\u63D0\u793A\uFF1A",t.a.createElement("br",null),"1.\u8BF7\u5728\u672C\u8BFE\u7A0B\u4E2D\u9009\u62E9\u6240\u9700\u9879\u76EE\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802\uFF1B",t.a.createElement("br",null),"2.\u672A\u53D1\u5E03\u7684\u5B9E\u8BAD\u4E0D\u80FD\u53D1\u9001\u81F3\u8BFE\u5802\uFF0C\u4E5F\u4E0D\u4F1A\u8FDB\u5165\u672C\u5F39\u7A97\u5907\u9009\u3002"),t.a.createElement("div",{className:ae.a.radioWrap},t.a.createElement("div",null,t.a.createElement(te.a,{value:Kn,onChange:ja,className:"font14 ml20"},"\u5168\u9009")),!!(Vt!=null&&Vt.length)&&t.a.createElement(K.a,{className:ae.a.tree,checkable:!0,defaultExpandAll:!0,treeData:Vt,checkedKeys:Dn,onCheck:function(ba,ha){return vr(ba,ha)}})),t.a.createElement("div",{className:ae.a.createMkdir},t.a.createElement(te.a,{checked:_r,onChange:function(ba){return sa(ba.target.checked)},className:"font14"},"\u9009\u4E2D\u7AE0\u8282\u5728\u8BFE\u5802\u4E2D\u540C\u6B65\u751F\u6210\u76EE\u5F55"),!!(qn.length+cr.length)&&t.a.createElement("span",null,t.a.createElement("span",null,"\u5DF2\u9009\u4E2D\uFF1A"),!!qn.length&&t.a.createElement(t.a.Fragment,null,t.a.createElement("span",{className:"c-light-primary"},qn.length," "),t.a.createElement("span",null,"\u4E2A\u5B9E\u8BAD")),!!cr.length&&t.a.createElement(t.a.Fragment,null,t.a.createElement("span",{className:"c-purple-8C1 ml5"},cr.length," "),t.a.createElement("span",null,"\u4E2A\u89C6\u9891")),!!Pa.length&&t.a.createElement(t.a.Fragment,null,t.a.createElement("span",{className:"c-cyan-blue ml5"},Pa.length," "),t.a.createElement("span",null,"\u4E2A\u8BFE\u4EF6")))))),t.a.createElement(Me.a,{visible:yr,inPaper:!1,renderData:Cr,onCancel:oi,onOk:ar,modalType:"multiple",type:"subject"}))},et=Object(l.a)(function(lt){var qe=lt.pathsDetail,Bt=lt.loading,$t=lt.globalSetting;return{pathsDetail:qe,globalSetting:$t,loading:Bt.effects}})(Ke),he=v("NLgs"),Se=v("P5Jw"),Ue=v("5NDa"),Ne=v("5rEg"),ct=v("6UJt"),ft=v("DFOY"),Ot=v("y8nQ"),dt=v("Vl3Y"),Ut=v("ErOA"),jt=v("OC45"),ze=v.n(jt),Ve=function(qe){var Bt=qe.type,$t=qe.onCancel,cn=qe.onOk,Wt=dt.a.useForm(),_n=Object(_.a)(Wt,1),rn=_n[0],Ht=Object(a.useState)(!0),An=Object(_.a)(Ht,2),qt=An[0],En=An[1],kn=Object(a.useState)(!1),Yt=Object(_.a)(kn,2),wn=Yt[0],ln=Yt[1],xn=Object(a.useState)([]),an=Object(_.a)(xn,2),Vt=an[0],Sn=an[1];Object(a.useEffect)(function(){hr()},[]);var hr=function(){var Dn=Object(k.a)(p.a.mark(function Nn(){var Gn;return p.a.wrap(function(Kn){for(;;)switch(Kn.prev=Kn.next){case 0:if(!Bt){Kn.next=7;break}return ln(!0),Kn.next=4,Object(Ut.a)("/api/disciplines.json",{method:"get",params:{source:Bt}});case 4:Gn=Kn.sent,Sn(Gn.disciplines||[]),ln(!1);case 7:case"end":return Kn.stop()}},Nn)}));return function(){return Dn.apply(this,arguments)}}(),pn=function(){var Nn=rn.getFieldsValue(),Gn=Nn.sub_discipline_id,yn=Nn.discipline_name,Kn=Nn.sub_discipline_name;if((!Gn||Gn&&Gn.length===0)&&(!yn||!Kn))return U.b.warn("\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B"),!1;cn({user_customize:Gn&&Gn.length===0||!Gn,sub_discipline_id:Gn,discipline_name:yn,sub_discipline_name:Kn})};return t.a.createElement(g.a,{width:600,className:ze.a.applyPublicContainer,title:"\u6DFB\u52A0\u65B9\u5411&\u8BFE\u7A0B\u5F39\u7A97",okText:"\u7533\u8BF7\u516C\u5F00",visible:!0,onCancel:$t,onOk:pn},t.a.createElement("div",{className:ze.a.applyPublicContent},t.a.createElement("div",{className:ze.a.tips},"\u9700\u586B\u5199\u5B9E\u8DF5\u9879\u76EE\u7684\u65B9\u5411&\u8BFE\u7A0B\u540E\uFF0C\u624D\u80FD\u7533\u8BF7\u516C\u5F00"),t.a.createElement(dt.a,{labelCol:{span:4},labelAlign:"right",form:rn},t.a.createElement(dt.a.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B\uFF1A",name:"sub_discipline_id"},t.a.createElement(ft.a,{expandTrigger:"hover",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:Vt,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:function(Nn,Gn){return rn.setFieldsValue({sub_discipline_id:Nn})}}),t.a.createElement("div",{className:ze.a.action,onClick:function(){return En(!qt)}},t.a.createElement("div",null,"\u81EA\u5B9A\u4E49\u65B9\u5411&\u8BFE\u7A0B"),t.a.createElement("div",null,t.a.createElement("span",null,qt?"\u5C55\u5F00":"\u6536\u8D77"),t.a.createElement("span",null,t.a.createElement("i",{className:"iconfont ".concat(qt?"icon-zhankai2":"icon-shouqi1")}))))),!qt&&t.a.createElement(t.a.Fragment,null,t.a.createElement(dt.a.Item,{label:"\u65B9\u5411",name:"discipline_name"},t.a.createElement(Ne.a,{placeholder:"\u8BF7\u8F93\u5165\u65B9\u5411",autoComplete:"off"})),t.a.createElement(dt.a.Item,{label:"\u8BFE\u7A0B",name:"sub_discipline_name"},t.a.createElement(Ne.a,{placeholder:"\u8BF7\u8F93\u5165\u8BFE\u7A0B",autoComplete:"off"})))),wn&&t.a.createElement("div",{className:ze.a.spin},t.a.createElement(Q.a,null))))},Et=Ve,Rt=v("9Bee"),ut=v("m3rI"),vt=v("OljG"),Ze=v.n(vt),ke=v("MKdu"),He=v.n(ke),we=v("Nddv"),Le=v.n(we),Pe=v("vUf6"),We=v.n(Pe),Xe=v("eqIj"),gt=v.n(Xe),Lt=v("ZKmM"),en=v.n(Lt),Zt=function(qe){var Bt,$t,cn,Wt,_n,rn,Ht,An,qt,En,kn,Yt,wn,ln,xn,an,Vt,Sn,hr,pn,Dn,Nn,Gn,yn,Kn,or,gr,Ur,er,rr,Lr,Er,_r,sa,ta,tr,vr,ja,ia,Yn,vn,yr,oi,Cr,Ir,fr,ar,Ln,Mn,gn,qn,na,cr,jr,Pa,da,ba,ha,Ta,Da,Ua,Qr,Wa,Ea,za,hi,Ji,Li,Ci,Uo,Ao,_o,as,fs,is,os,So,ps,Qi,Aa,wi,vi,vo,uo,Ki,ss,ls,qo,fo,zo,yo,es,Go,Oa,la,xi,Zi,Oo,co,No,Wi,Ai,Vo,Pn,ts,lo,Ha,Fi,Ti,Ro,Oi,Fo,ns,ms,Xo,Ss,Fs,On=qe.pathsDetail,nr=qe.user,zt=qe.globalSetting,on=qe.loading,Tn=qe.dispatch,Hn=Object(O.a)(qe,["pathsDetail","user","globalSetting","loading","dispatch"]),jn=Object(A.i)(),pr=Object(a.useState)({}),dr=Object(_.a)(pr,2),Bn=dr[0],Yr=dr[1],Ri=Object(a.useRef)(1),ir=Object(a.useState)(),si=Object(_.a)(ir,2),ao=si[0],zi=si[1],Wn=Object(a.useState)(!1),Qa=Object(_.a)(Wn,2),Gi=Qa[0],li=Qa[1],io=Object(a.useState)(!1),Yo=Object(_.a)(io,2),ko=Yo[0],jo=Yo[1],gs=Object(a.useState)({status:!1}),ki=Object(_.a)(gs,2),sl=ki[0],vl=ki[1],Os=((Bt=On.detail)===null||Bt===void 0?void 0:Bt.is_free)||(($t=On.detail)===null||$t===void 0?void 0:$t.can_learning);Object(a.useEffect)(function(){vl({status:!1})},[]),Object(a.useEffect)(function(){function ea(){return Fr.apply(this,arguments)}function Fr(){return Fr=Object(k.a)(p.a.mark(function Ga(){var Wr,ma,ga,Na,La,Vi,$a;return p.a.wrap(function(Rn){for(;;)switch(Rn.prev=Rn.next){case 0:return Rn.next=2,Tn({type:"pathsDetail/getPathsDetail",payload:{id:jn.pathId}});case 2:Wr=Rn.sent,Wr!=null&&Wr.toast&&(Wr!=null&&(ma=Wr.toast)!==null&&ma!==void 0&&ma.is_open&&((ga=Wr.toast)===null||ga===void 0?void 0:ga.open_num)===-1?jo(!0):Wr!=null&&(Na=Wr.toast)!==null&&Na!==void 0&&Na.is_open&&(Wr==null||((La=Wr.toast)===null||La===void 0)?void 0:La.open_num)===1?($a=JSON.parse(localStorage.getItem("pathsshow"))||[],((Vi=$a.filter(function(xr){return xr===(jn==null?void 0:jn.pathId)}))===null||Vi===void 0?void 0:Vi.length)>0?jo(!1):(jo(!0),$a.push(jn==null?void 0:jn.pathId),localStorage.setItem("pathsshow",JSON.stringify($a)))):jo(!1));case 4:case"end":return Rn.stop()}},Ga)})),Fr.apply(this,arguments)}ea()},[]),Object(a.useEffect)(function(){var ea,Fr,Ga,Wr,ma=(ea=On.detail)===null||ea===void 0||((Fr=ea.courses)===null||Fr===void 0)?void 0:Fr.length;if(!ma)return;var ga;if((Ga=On.detail)!==null&&Ga!==void 0&&Ga.has_start){var Na,La,Vi=(Na=On.detail)===null||Na===void 0||((La=Na.courses)===null||La===void 0)?void 0:La.findIndex(function(Jn){var ra;return((ra=Jn.course_status)===null||ra===void 0?void 0:ra.status)===1});ga=Vi>-1?Vi:0}else{var $a,ys,Rn,xr,In,Gr=($a=On.detail)===null||$a===void 0||((ys=$a.courses)===null||ys===void 0||((Rn=ys.map(function(Jn){var ra;return(ra=Jn.course_status)===null||ra===void 0?void 0:ra.status}))===null||Rn===void 0))?void 0:Rn.lastIndexOf(2);ga=Gr>-1?Gr:0,Gr=(xr=On.detail)===null||xr===void 0||((In=xr.courses)===null||In===void 0)?void 0:In.findIndex(function(Jn){var ra;return((ra=Jn.course_status)===null||ra===void 0?void 0:ra.status)===0}),ga=Gr>-1?Gr:ga}Yr(((Wr=On.detail)===null||Wr===void 0?void 0:Wr.courses[ga])||{})},[On.detail]);var ks=function(Fr){var Ga,Wr,ma=(Ga=On.detail)===null||Ga===void 0||((Wr=Ga.courses)===null||Wr===void 0)?void 0:Wr.find(function(ga){return ga.course_id===Fr});Yr(ma||{}),Tn({type:"classroomList/setActionTabs",payload:{key:"\u4FEE\u6539\u5F00\u8BFE\u65F6\u95F4",name:Fr}})},us=function(){var ea=Object(k.a)(p.a.mark(function Fr(){var Ga;return p.a.wrap(function(ma){for(;;)switch(ma.prev=ma.next){case 0:return ma.next=2,Object(B.k)({container_id:jn.pathId,container_type:"Subject"});case 2:Ga=ma.sent,Ga.status===0&&(vs(),U.b.success(Ga.message));case 4:case"end":return ma.stop()}},Fr)}));return function(){return ea.apply(this,arguments)}}(),ll=function(){var ea=Object(k.a)(p.a.mark(function Fr(){var Ga;return p.a.wrap(function(ma){for(;;)switch(ma.prev=ma.next){case 0:return ma.next=2,Object(B.n)({container_id:jn.pathId,container_type:"Subject"});case 2:Ga=ma.sent,Ga.status===0&&(vs(),U.b.success(Ga.message));case 4:case"end":return ma.stop()}},Fr)}));return function(){return ea.apply(this,arguments)}}(),ul=function(){var ea=Object(k.a)(p.a.mark(function Fr(){return p.a.wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:g.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},"\u662F\u5426\u5220\u9664\u5B9E\u8DF5\u8BFE\u7A0B?"),onOk:function(){var ma=Object(k.a)(p.a.mark(function Na(){var La;return p.a.wrap(function($a){for(;;)switch($a.prev=$a.next){case 0:return $a.next=2,Object(B.q)({id:jn.pathId});case 2:La=$a.sent,La.status===1&&l.d.push("/paths");case 4:case"end":return $a.stop()}},Na)}));function ga(){return ma.apply(this,arguments)}return ga}()});case 1:case"end":return Wr.stop()}},Fr)}));return function(){return ea.apply(this,arguments)}}(),Sl=function(){var ea=Object(k.a)(p.a.mark(function Fr(){return p.a.wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:g.a.info({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u77E5\u9053\u5566",content:t.a.createElement("div",{className:"tc"},"\u8BFE\u7A0B\u53D1\u5E03\u540E\u5373\u53EF\u53D1\u9001\u8BFE\u5802\u4F7F\u7528"),onOk:function(){var ma=Object(k.a)(p.a.mark(function Na(){var La;return p.a.wrap(function($a){for(;;)switch($a.prev=$a.next){case 0:return $a.next=2,Object(B.h)({id:jn.pathId});case 2:La=$a.sent,(La==null?void 0:La.status)===0&&(vs(),U.b.success(La.message));case 4:case"end":return $a.stop()}},Na)}));function ga(){return ma.apply(this,arguments)}return ga}()});case 1:case"end":return Wr.stop()}},Fr)}));return function(){return ea.apply(this,arguments)}}(),Zs=function(){var ea=Object(k.a)(p.a.mark(function Fr(){return p.a.wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:g.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F"),okButtonProps:{loading:Gi},onOk:function(){var ma=Object(k.a)(p.a.mark(function Na(){var La;return p.a.wrap(function($a){for(;;)switch($a.prev=$a.next){case 0:return li(!0),$a.next=3,Object(B.m)({id:jn.pathId});case 3:La=$a.sent,(La==null?void 0:La.status)===1&&(vs(),U.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F")),li(!1);case 6:case"end":return $a.stop()}},Na)}));function ga(){return ma.apply(this,arguments)}return ga}()});case 1:case"end":return Wr.stop()}},Fr)}));return function(){return ea.apply(this,arguments)}}(),rs=function(){On.detail&&On.detail.has_sub_discipline?Qs({user_customize:!1}):cl(!0)},cl=function(Fr){vl({status:Fr})},Qs=function(Fr){g.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A\u7533\u8BF7",cancelText:"\u53D6\u6D88\u7533\u8BF7",content:t.a.createElement("div",{className:"tc"},"\u516C\u5F00\u8BFE\u7A0B\u9700\u7ECF\u8FC7\u5E73\u53F0\u6807\u51C6\u5316\u5BA1\u6838\uFF0C\u5BA1\u6838\u5468\u671F\u4E3A1-2\u5929\uFF0C\u516C\u5F00",t.a.createElement("br",null),"\u7684\u8BFE\u7A0B\u5C06\u5BF9\u5E73\u53F0\u6240\u6709\u4EBA\u53EF\u89C1\u3002\u82E5\u4EC5\u672C\u4EBA\u6559\u5B66\u4F7F\u7528\u5219\u65E0\u9700",t.a.createElement("br",null),"\u7533\u8BF7\u516C\u5F00\uFF0C\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u5373\u53EF",t.a.createElement("br",null)),onOk:function(){var Ga=Object(k.a)(p.a.mark(function ma(){var ga,Na;return p.a.wrap(function(Vi){for(;;)switch(Vi.prev=Vi.next){case 0:return ga={user_customize:Fr.user_customize},Fr.user_customize?ga=Object(I.a)(Object(I.a)({},ga),{},{discipline_name:Fr.discipline_name,sub_discipline_name:Fr.sub_discipline_name}):Fr.sub_discipline_id&&(ga=Object(I.a)(Object(I.a)({},ga),{},{sub_discipline_id:Fr.sub_discipline_id})),Vi.next=4,Object(B.g)(Object(I.a)({id:jn.pathId},ga));case 4:Na=Vi.sent,((Na==null?void 0:Na.status)===0||(Na==null?void 0:Na.status)===1)&&(vs(),U.b.success("\u516C\u5F00\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u7BA1\u7406\u5458\u7684\u5BA1\u6838"));case 6:case"end":return Vi.stop()}},ma)}));function Wr(){return Ga.apply(this,arguments)}return Wr}()})},$s=function(){var ea=Object(k.a)(p.a.mark(function Fr(){return p.a.wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:g.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u7533\u8BF7\u516C\u5F00\uFF1F"),onOk:function(){var ma=Object(k.a)(p.a.mark(function Na(){var La;return p.a.wrap(function($a){for(;;)switch($a.prev=$a.next){case 0:return $a.next=2,Object(B.l)({id:jn.pathId});case 2:La=$a.sent,(La==null?void 0:La.status)===0&&(vs(),U.b.success("\u64A4\u9500\u7533\u8BF7\u516C\u5F00\u6210\u529F"));case 4:case"end":return $a.stop()}},Na)}));function ga(){return ma.apply(this,arguments)}return ga}()});case 1:case"end":return Wr.stop()}},Fr)}));return function(){return ea.apply(this,arguments)}}(),qs=function(){var ea=Object(k.a)(p.a.mark(function Fr(){return p.a.wrap(function(Wr){for(;;)switch(Wr.prev=Wr.next){case 0:g.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"ml20"},t.a.createElement(m.a.Group,{defaultValue:1,onChange:function(ga){return Ri.current=ga.target.value}},t.a.createElement(m.a,{value:1,className:"mt10"},"\u5F00\u653E\u8BFE\u5802\uFF1A",t.a.createElement("span",null,"\u6240\u6709\u7528\u6237\u53EF\u4EE5\u968F\u65F6\u8BBF\u95EE")),t.a.createElement(m.a,{value:0,className:"mt10"},"\u79C1\u6709\u8BFE\u5802\uFF1A",t.a.createElement("span",null,"\u4EC5\u62A5\u540D\u53C2\u4E0E\u7684\u8BFE\u5802\u6210\u5458\u53EF\u4EE5\u8BBF\u95EE")))),onOk:function(){var ma=Object(k.a)(p.a.mark(function Na(){return p.a.wrap(function(Vi){for(;;)switch(Vi.prev=Vi.next){case 0:Object(pe.S)("/classrooms/news/".concat(jn.pathId,"/newgold/").concat(Ri.current));case 1:case"end":return Vi.stop()}},Na)}));function ga(){return ma.apply(this,arguments)}return ga}()});case 1:case"end":return Wr.stop()}},Fr)}));return function(){return ea.apply(this,arguments)}}(),yl=function(){g.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u7ACB\u5373\u9884\u7EA6\uFF1F"),onOk:function(){var Fr=Object(k.a)(p.a.mark(function Wr(){var ma;return p.a.wrap(function(Na){for(;;)switch(Na.prev=Na.next){case 0:return Na.next=2,Object(B.i)({id:jn.pathId});case 2:ma=Na.sent,ma.status===0&&(zi(!0),U.b.success(ma.message));case 4:case"end":return Na.stop()}},Wr)}));function Ga(){return Fr.apply(this,arguments)}return Ga}()})},Rs=function(){if(!Object(he.e)(Tn))return;g.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u5B9A\u52A0\u5165\u8BE5\u8BFE\u5802"),onOk:function(){var Fr=Object(k.a)(p.a.mark(function Wr(){var ma,ga;return p.a.wrap(function(La){for(;;)switch(La.prev=La.next){case 0:return La.next=2,Object(B.L)({id:Bn==null?void 0:Bn.course_id});case 2:ma=La.sent,ma.status===0&&(U.b.success(ma.message),Tn({type:"pathsDetail/getPathsDetail",payload:{id:jn.pathId}}),((ga=Bn.course_status)===null||ga===void 0?void 0:ga.status)===1&&Object(pe.S)("/classrooms/".concat(Bn==null?void 0:Bn.course_id,"/shixun_homework")));case 4:case"end":return La.stop()}},Wr)}));function Ga(){return Fr.apply(this,arguments)}return Ga}()})},Ol=function(){var Fr;if((Fr=On.detail)!==null&&Fr!==void 0&&Fr.need_authorize){Object(he.a)(!1,"\u8BE5\u8BFE\u7A0B\u4E2D\u5305\u542B\u5B9E\u8BAD\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002");return}if(!Object(he.e)(Tn))return;Tn({type:"pathsDetail/setActionTabs",payload:{key:"PathsDetail-SendToClass"}})},vs=function(){Tn({type:"pathsDetail/getPathsDetail",payload:{id:jn.pathId}}),Tn({type:"pathsDetail/getRightData",payload:{id:jn.pathId}})},Bs=!!((cn=On.detail)!==null&&cn!==void 0&&cn.participant_count)&&!((Wt=On.detail)!==null&&Wt!==void 0&&Wt.allow_statistics),Ks=((_n=On.detail)===null||_n===void 0||((rn=_n.courses)===null||rn===void 0)?void 0:rn.findIndex(function(ea){return(ea==null?void 0:ea.course_id)===(Bn==null?void 0:Bn.course_id)}))+1,Is=Ks===((Ht=On.detail)===null||Ht===void 0||((An=Ht.courses)===null||An===void 0)?void 0:An.length);return t.a.createElement("section",null,t.a.createElement("aside",{className:H.a.banner,style:{backgroundImage:On!=null&&(qt=On.detail)!==null&&qt!==void 0&&(En=qt.attachments)!==null&&En!==void 0&&(kn=En[0])!==null&&kn!==void 0&&kn.url?"url(".concat(ut.a.API_SERVER+(On==null||((Yt=On.detail)===null||Yt===void 0||((wn=Yt.attachments)===null||wn===void 0||((ln=wn[0])===null||ln===void 0)))?void 0:ln.url),")"):"url(".concat(Ze.a,")"),marginBottom:(xn=On.detail)!==null&&xn!==void 0&&(an=xn.courses)!==null&&an!==void 0&&an.length?70:20}},t.a.createElement("aside",{className:H.a.wrp},t.a.createElement("div",{className:H.a.operationWrap},!!((Vt=On.detail)!==null&&Vt!==void 0&&Vt.is_free)&&((Sn=On.detail)===null||Sn===void 0?void 0:Sn.publish_status)!==0&&(((hr=On.detail)===null||hr===void 0?void 0:hr.allow_add_member)||!Object(F.m)())&&t.a.createElement(s.a,{placement:"bottom",title:"\u4EE5\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u5F62\u5F0F\u53D1\u9001\u5230\u6211\u7684\u8BFE\u5802"},t.a.createElement("span",{onClick:Ol,style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"26px"}},t.a.createElement("img",{src:He.a,style:{marginRight:"10px"}}),"\u53D1\u9001\u81F3")),((pn=On.detail)===null||pn===void 0?void 0:pn.allow_statistics)&&((Dn=On.detail)===null||Dn===void 0?void 0:Dn.public_status)===2&&t.a.createElement("span",{onClick:function(){return l.d.push("/paths/".concat(jn.pathId,"/statistics"))},style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"26px"}},t.a.createElement("img",{src:We.a,style:{marginRight:"10px"}}),"\u5B66\u4E60\u7EDF\u8BA1"),((Nn=On.detail)===null||Nn===void 0?void 0:Nn.is_share)&&t.a.createElement(Se.CopyToClipboard,{text:"".concat(window.location.origin,"/paths/").concat(jn.pathId,"?userid=").concat((Gn=nr.userInfo)===null||Gn===void 0?void 0:Gn.user_id),onCopy:function(){return U.b.success("\u5DF2\u590D\u5236\u8BFE\u7A0B\u5206\u4EAB\u4E13\u5C5E\u94FE\u63A5")}},t.a.createElement("span",{style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"26px"}},t.a.createElement("img",{src:He.a,style:{marginRight:"10px"}}),"\u5206\u4EAB\u8BFE\u7A0B")),((yn=On.detail)===null||yn===void 0?void 0:yn.allow_add_member)&&t.a.createElement(w.a,{overlay:t.a.createElement(C.a,null,((Kn=On.detail)===null||Kn===void 0?void 0:Kn.courses)&&(((or=On.detail)===null||or===void 0?void 0:or.is_creator)&&!!((gr=nr.userInfo)!==null&&gr!==void 0&&gr.professional_certification)||Object(F.o)())&&t.a.createElement(C.a.Item,{style:{textAlign:"center"},onClick:qs},"\u5F00\u8BFE"),((Ur=On.detail)===null||Ur===void 0?void 0:Ur.allow_statistics)&&t.a.createElement(C.a.Item,{style:{textAlign:"center"},onClick:function(){return l.d.push("/paths/".concat(jn.pathId,"/edit"))}},"\u7F16\u8F91\u8BFE\u7A0B"),((er=On.detail)===null||er===void 0?void 0:er.allow_add_member)&&((rr=On.detail)===null||rr===void 0?void 0:rr.publish_status)===0&&t.a.createElement(C.a.Item,{style:{textAlign:"center"},onClick:Sl},"\u53D1\u5E03\u8BFE\u7A0B"),((Lr=On.detail)===null||Lr===void 0?void 0:Lr.allow_statistics)&&((Er=On.detail)===null||Er===void 0?void 0:Er.publish_status)===2&&((_r=On.detail)===null||_r===void 0?void 0:_r.public_status)===0&&t.a.createElement(C.a.Item,{style:{textAlign:"center"},onClick:Zs},"\u64A4\u9500\u53D1\u5E03"),((sa=On.detail)===null||sa===void 0?void 0:sa.allow_statistics)&&((ta=On.detail)===null||ta===void 0?void 0:ta.publish_status)===2&&((tr=On.detail)===null||tr===void 0?void 0:tr.public_status)===0&&t.a.createElement(C.a.Item,{style:{textAlign:"center"},onClick:rs},"\u516C\u5F00\u8BFE\u7A0B"),((vr=On.detail)===null||vr===void 0?void 0:vr.allow_statistics)&&((ja=On.detail)===null||ja===void 0?void 0:ja.public_status)===1&&t.a.createElement(C.a.Item,{style:{textAlign:"center"},onClick:$s},"\u64A4\u9500\u7533\u8BF7\u516C\u5F00"),Object(F.c)()&&((ia=On.detail)===null||ia===void 0?void 0:ia.allow_statistics)&&((Yn=On.detail)===null||Yn===void 0?void 0:Yn.public_status)===2&&t.a.createElement(C.a.Item,{style:{textAlign:"center"},onClick:$s},"\u64A4\u9500\u516C\u5F00"),((vn=On.detail)===null||vn===void 0?void 0:vn.allow_delete)&&t.a.createElement(C.a.Item,{style:{textAlign:"center"},onClick:ul},"\u5220\u9664\u8BFE\u7A0B"))},t.a.createElement("span",{style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"26px"}},t.a.createElement("img",{src:Le.a,style:{marginRight:"10px"}}),"\u8BBE\u7F6E"))),t.a.createElement("p",{className:[H.a.titleWrap,((yr=On.detail)===null||yr===void 0||((oi=yr.name)===null||oi===void 0)?void 0:oi.indexOf(`
`))&&H.a.titleFlexEnd].join(" ")},t.a.createElement("span",{className:H.a.title},t.a.createElement("strong",null,(Cr=On.detail)===null||Cr===void 0||((Ir=Cr.name)===null||Ir===void 0)?void 0:Ir.split(`
`)[0]),t.a.createElement("span",{className:"font24"},t.a.createElement("br",null),(fr=On.detail)===null||fr===void 0||((ar=fr.name)===null||ar===void 0)?void 0:ar.split(`
`).filter(function(ea,Fr){return Fr!==0}).join(""))),t.a.createElement("div",null,((Ln=On.detail)===null||Ln===void 0?void 0:Ln.excellent)&&t.a.createElement(E.a,{className:"".concat(H.a.openCourseTag," font14"),style:{background:"#44D7B6",border:"1px solid #44D7B6"}},"\u5F00\u653E\u8BFE\u7A0B"),((Mn=On.detail)===null||Mn===void 0?void 0:Mn.featured)>0&&t.a.createElement("div",null,((gn=On.detail)===null||gn===void 0?void 0:gn.featured)===1&&t.a.createElement(E.a,{className:"".concat(H.a.openCourseTag," font14"),style:{background:"#FF6500",border:"1px solid #FF6500"}},"\u56FD\u5BB6\u4E00\u6D41"),((qn=On.detail)===null||qn===void 0?void 0:qn.featured)===2&&t.a.createElement(E.a,{className:"".concat(H.a.openCourseTag," font14"),style:{background:"#4361F2",border:"1px solid #4361F2"}},"\u519B\u961F\u4E00\u6D41"),((na=On.detail)===null||na===void 0?void 0:na.featured)===3&&t.a.createElement(E.a,{className:"".concat(H.a.openCourseTag," font14"),style:{background:"#E9AD5D",border:"1px solid #E9AD5D"}},"\u7701\u7EA7\u4E00\u6D41"),((cr=On.detail)===null||cr===void 0?void 0:cr.featured)===4&&t.a.createElement(E.a,{className:"".concat(H.a.openCourseTag," font14"),style:{background:"#f7ce62",border:"1px solid #f7ce62"}},"\u7CBE\u54C1\u8BFE\u7A0B")),((jr=nr.userInfo)===null||jr===void 0?void 0:jr.login)&&((Pa=On.detail)===null||Pa===void 0?void 0:Pa.is_collect)&&t.a.createElement("span",{style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"20px",display:"flex"},onClick:us},t.a.createElement(s.a,{title:"\u53D6\u6D88\u6536\u85CF"},t.a.createElement("img",{src:gt.a,style:{marginRight:"10px"}})),t.a.createElement("span",{style:{height:"24px"}},"\u5DF2\u6536\u85CF")),((da=nr.userInfo)===null||da===void 0?void 0:da.login)&&!((ba=On.detail)!==null&&ba!==void 0&&ba.is_collect)&&t.a.createElement("span",{style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"20px",display:"flex"},onClick:ll},t.a.createElement(s.a,{title:"\u53D6\u6D88\u6536\u85CF"},t.a.createElement("img",{src:en.a,style:{marginRight:"10px"}})),t.a.createElement("span",{style:{height:"24px"}},"\u6536\u85CF")),!Object(F.p)()&&t.a.createElement("span",{style:{fontSize:"12px",color:"#fff",lineHeight:"24px",cursor:"pointer",marginLeft:"20px",display:"flex"},className:"mr15",onClick:function(){if(!Object(he.e)(Tn))return}},t.a.createElement("img",{src:en.a,style:{marginRight:"10px"}}),t.a.createElement("span",{style:{height:"24px"}},"\u6536\u85CF")))),t.a.createElement("div",{className:H.a.contentWrap},t.a.createElement("div",{className:H.a.contentLeftWrap},!!((ha=On.detail)!==null&&ha!==void 0&&ha.stages_count)&&t.a.createElement("div",{className:"mr30"},t.a.createElement("span",null,"\u7AE0\u8282"),t.a.createElement("p",{className:"mt3"},(Ta=On.detail)===null||Ta===void 0?void 0:Ta.stages_count)),!!((Da=On.detail)!==null&&Da!==void 0&&Da.shixuns_count)&&t.a.createElement("div",{className:"mr30"},t.a.createElement("span",null,"\u5355\u5143"),t.a.createElement("p",{className:"mt3"},(Ua=On.detail)===null||Ua===void 0?void 0:Ua.shixuns_count)),!!((Qr=On.detail)!==null&&Qr!==void 0&&Qr.challenge_choose_count)&&t.a.createElement("div",{className:"mr30"},t.a.createElement("span",null,"\u9009\u62E9\u9898\u5173\u5361"),t.a.createElement("p",{className:"mt3"},(Wa=On.detail)===null||Wa===void 0?void 0:Wa.challenge_choose_count)),!!((Ea=On.detail)!==null&&Ea!==void 0&&Ea.challenges_count)&&t.a.createElement("div",{className:"mr30"},t.a.createElement("span",null,"\u5B9E\u8DF5\u5173\u5361"),t.a.createElement("p",{className:"mt3"},(za=On.detail)===null||za===void 0?void 0:za.challenges_count)),!!((hi=On.detail)!==null&&hi!==void 0&&hi.videos_count)&&t.a.createElement("div",{className:"mr30"},t.a.createElement("span",null,"\u89C6\u9891"),t.a.createElement("p",{className:"mt3"},(Ji=On.detail)===null||Ji===void 0?void 0:Ji.videos_count)),!!((Li=On.detail)!==null&&Li!==void 0&&Li.attachment_count)&&t.a.createElement("div",{className:"mr30"},t.a.createElement("span",null,"\u8BFE\u4EF6"),t.a.createElement("p",{className:"mt3"},(Ci=On.detail)===null||Ci===void 0?void 0:Ci.attachment_count)),((Uo=On.detail)===null||Uo===void 0?void 0:Uo.publish_status)!==0&&!!((Ao=On.detail)!==null&&Ao!==void 0&&Ao.subject_score)&&t.a.createElement("div",{className:"mr30"},t.a.createElement("span",null,"\u7ECF\u9A8C\u503C"),t.a.createElement("p",{className:"mt3"},(_o=On.detail)===null||_o===void 0?void 0:_o.subject_score)),((as=On.detail)===null||as===void 0?void 0:as.publish_status)!==0&&!!((fs=On.detail)!==null&&fs!==void 0&&fs.member_count)&&t.a.createElement("div",{className:"mr30"},t.a.createElement("span",null,t.a.createElement("span",null,(is=On.detail)!==null&&is!==void 0&&is.excellent?"\u53C2\u4E0E\u4EBA\u6570":"\u5B66\u4E60\u4EBA\u6570"),t.a.createElement(s.a,{title:"\u66F4\u65B0\u65F6\u95F4\uFF1A".concat(((os=On.detail)===null||os===void 0?void 0:os.member_count_update_at)||"--")},t.a.createElement("i",{className:"iconfont icon-xiaowenhao1 font14 ml5"}))),t.a.createElement("p",{className:"mt3"},(So=On.detail)===null||So===void 0?void 0:So.member_count)),((ps=On.detail)===null||ps===void 0?void 0:ps.subject_score)>=0&&t.a.createElement("span",{className:"font14 c-white"},t.a.createElement("span",null,"\u8BC4\u5206"),t.a.createElement("br",null),t.a.createElement(o.a,{allowHalf:!0,value:Object(pe.C)((Qi=On.detail)===null||Qi===void 0?void 0:Qi.averge_star),disabled:!0,className:H.a.rating})))),!!((Aa=On.detail)!==null&&Aa!==void 0&&(wi=Aa.courses)!==null&&wi!==void 0&&wi.length)&&t.a.createElement("aside",{className:H.a.nav},t.a.createElement("div",{className:H.a.navLeft},Bn.course_identity<4&&t.a.createElement(s.a,{placement:"bottom",title:"\u7F16\u8F91\u8BFE\u5802"},t.a.createElement("a",{href:"/classrooms/".concat(Bn==null?void 0:Bn.course_id,"/newgolds/settings"),target:"_blank"},t.a.createElement("i",{className:"iconfont icon-bianji1 ".concat(H.a.navLeftIcon)}))),t.a.createElement(w.a,{overlay:t.a.createElement(C.a,null,(vi=Object(d.a)((uo=On.detail)===null||uo===void 0?void 0:uo.courses))===null||vi===void 0||((vo=vi.reverse())===null||vo===void 0)?void 0:vo.map(function(ea,Fr){var Ga,Wr;return t.a.createElement(C.a.Item,{key:ea.course_id,onClick:function(){return ks(ea.course_id)}},t.a.createElement("span",{className:"font14"},"\u7B2C",((Ga=On.detail)===null||Ga===void 0||((Wr=Ga.courses)===null||Wr===void 0)?void 0:Wr.length)-Fr,"\u671F"))}))},t.a.createElement("div",null,t.a.createElement("span",{className:"font14 current"},"\u7B2C",t.a.createElement("span",{className:H.a.colorOrange},Ks),"\u671F"),t.a.createElement(N.a,null))),t.a.createElement("div",{className:H.a.navContent},t.a.createElement("div",{className:H.a.contentItem},t.a.createElement("div",{className:H.a.contentItemTitle},"\u5F00\u8BFE\u65F6\u95F4\uFF1A"),t.a.createElement("div",{className:H.a.contentItemText},Bn==null?void 0:Bn.start_date)),t.a.createElement("div",{className:H.a.verticalLine}),t.a.createElement("div",{className:H.a.contentItem},t.a.createElement("div",{className:H.a.contentItemTitle},"\u7ED3\u8BFE\u65F6\u95F4\uFF1A"),t.a.createElement("div",{className:H.a.contentItemText},Bn==null?void 0:Bn.end_date)),t.a.createElement("div",{className:H.a.verticalLine}),t.a.createElement("div",{className:H.a.contentItem},t.a.createElement("div",{className:H.a.contentItemTitle},(Ki=On.detail)!==null&&Ki!==void 0&&Ki.excellent?"\u53C2\u4E0E\u4EBA\u6570\uFF1A":"\u62A5\u540D\u4EBA\u6570\uFF1A"),t.a.createElement("div",{className:H.a.contentItemText},Bn==null?void 0:Bn.student_count," \u4EBA")))),t.a.createElement("div",{className:H.a.navRight,style:{display:"none"}},t.a.createElement("div",{className:H.a.flexRow},(Bn==null||((ss=Bn.course_status)===null||ss===void 0)?void 0:ss.status)===1&&t.a.createElement("div",{className:"mr20 c-red-ee4"},Bn==null||((ls=Bn.course_status)===null||ls===void 0)?void 0:ls.time),(Bn==null||((qo=Bn.course_status)===null||qo===void 0)?void 0:qo.status)===2&&Bn.course_identity<6&&t.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F"),((fo=Bn.course_status)===null||fo===void 0?void 0:fo.status)===2&&(Bn.course_identity<6?t.a.createElement("a",{className:H.a.classButton,href:"/classrooms/".concat(Bn==null||((zo=Bn.first_category_url)===null||zo===void 0||((yo=zo.split("/"))===null||yo===void 0))?void 0:yo[2],"/announcement"),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"):t.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F")),((es=Bn.course_status)===null||es===void 0?void 0:es.status)===1&&Bn.course_identity>5&&t.a.createElement("div",{className:H.a.classButton,onClick:Rs},"\u7ACB\u5373\u52A0\u5165"),((Go=Bn.course_status)===null||Go===void 0?void 0:Go.status)===1&&Bn.course_identity===5&&t.a.createElement("a",{className:H.a.classButton,href:"/classrooms/".concat(Bn==null||((Oa=Bn.first_category_url)===null||Oa===void 0||((la=Oa.split("/"))===null||la===void 0))?void 0:la[2],"/announcement"),target:"_blank"},"\u7ACB\u5373\u5B66\u4E60"),((xi=Bn.course_status)===null||xi===void 0?void 0:xi.status)===0&&Bn.course_identity>5&&t.a.createElement("div",{className:H.a.classButton,onClick:Rs},"\u7ACB\u5373\u62A5\u540D"),((Zi=Bn.course_status)===null||Zi===void 0?void 0:Zi.status)===0&&Bn.course_identity===5&&t.a.createElement("div",{className:H.a.classButton},"\u62A5\u540D\u6210\u529F"),((Bn==null||((Oo=Bn.course_status)===null||Oo===void 0)?void 0:Oo.status)===0||(Bn==null||((co=Bn.course_status)===null||co===void 0)?void 0:co.status)===1)&&Bn.course_identity<5&&t.a.createElement("a",{className:H.a.classButton,href:"/classrooms/".concat(Bn==null||((No=Bn.first_category_url)===null||No===void 0||((Wi=No.split("/"))===null||Wi===void 0))?void 0:Wi[2],"/announcement"),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"),Bs&&Is&&((Ai=On.detail)===null||Ai===void 0?void 0:Ai.has_participate)&&t.a.createElement("span",{className:"".concat(H.a.classButton," ").concat(H.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),Bs&&Is&&!((Vo=On.detail)!==null&&Vo!==void 0&&Vo.has_participate)&&(ao?t.a.createElement("span",{className:"".concat(H.a.classButton," ").concat(H.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):t.a.createElement("span",{className:"".concat(H.a.classButton," ").concat(H.a.bg28e),onClick:yl},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D"))),t.a.createElement("div",{className:H.a.flexRow},Bs&&!!((Pn=On.detail)!==null&&Pn!==void 0&&(ts=Pn.courses)!==null&&ts!==void 0&&ts.length)&&Is&&t.a.createElement("span",{className:"mt20"},t.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(lo=On.detail)===null||lo===void 0?void 0:lo.student_count," ","\u4EBA\u65F6\u5373\u5C06\u5F00\u8BFE"),t.a.createElement("span",{className:""},"\u5F53\u524D\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\uFF1A",t.a.createElement("span",{className:"mr5 c-red-ee4"},ao===!0?((Ha=On.detail)===null||Ha===void 0?void 0:Ha.participant_count)+1:(Fi=On.detail)===null||Fi===void 0?void 0:Fi.participant_count),"\u4EBA")),Bs&&!((Ti=On.detail)!==null&&Ti!==void 0&&(Ro=Ti.courses)!==null&&Ro!==void 0&&Ro.length)&&Is&&t.a.createElement("span",null,!((Oi=On.detail)!==null&&Oi!==void 0&&Oi.has_participate)&&(ao===!0?t.a.createElement("span",{className:"".concat(H.a.classButton," ").concat(H.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):t.a.createElement("a",{className:"".concat(H.a.classButton," ").concat(H.a.bg28e),onClick:yl},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D")),((Fo=On.detail)===null||Fo===void 0?void 0:Fo.has_participate)&&t.a.createElement("span",{className:"".concat(H.a.classButton," ").concat(H.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),t.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(ns=On.detail)===null||ns===void 0?void 0:ns.student_count," ","\u4EBA\u65F6\u5373\u5C06\u5F00\u8BFE"),t.a.createElement("span",{className:""},"\u5F53\u524D\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\uFF1A",t.a.createElement("span",{className:"mr5 c-red-ee4"},ao===!0?((ms=On.detail)===null||ms===void 0?void 0:ms.participant_count)+1:(Xo=On.detail)===null||Xo===void 0?void 0:Xo.participant_count),"\u4EBA"))))))),t.a.createElement(et,null),sl.status&&t.a.createElement(Et,{type:"new_question",onCancel:function(){return cl(!1)},onOk:function(Fr){cl(!1),Qs(Fr)}}),t.a.createElement(g.a,{visible:ko,title:"\u8BFE\u7A0B\u63D0\u793A",width:593,maskClosable:!1,onCancel:function(){jo(!1)},centered:!0,footer:t.a.createElement("div",null,t.a.createElement(c.a,{type:"primary",onClick:function(){jo(!1)}},"\u6211\u77E5\u9053\u4E86"))},t.a.createElement(Rt.a,{style:{maxHeight:378,overflow:"auto"},value:On==null||((Ss=On.detail)===null||Ss===void 0||((Fs=Ss.toast)===null||Fs===void 0))?void 0:Fs.content})))},xt=Object(l.a)(function(lt){var qe=lt.pathsDetail,Bt=lt.user,$t=lt.loading,cn=lt.globalSetting;return{pathsDetail:qe,user:Bt,globalSetting:cn,loading:$t.models.index}})(Zt),Ct=v("MXD1"),mt=v("CFYs"),Je=v("8Bcu"),Qe=v.n(Je),Oe=v("WPnJ"),je=v.n(Oe),St=v("g9YV"),bt=v("wCAj"),Dt=v("O3gP"),Qt=v("lrIw"),_t=v("RotF"),Gt=v.n(_t),kt=v("oUNq"),fn=v("lzim"),mn=v("55Ip"),Tr=function(qe){var Bt=qe.pathsDetail,$t=qe.loading,cn=qe.dispatch,Wt=qe.onReloadData,_n=Wt===void 0?function(){}:Wt,rn=Object(A.i)(),Ht=Object(a.useState)([]),An=Object(_.a)(Ht,2),qt=An[0],En=An[1],kn=Object(a.useState)(!0),Yt=Object(_.a)(kn,2),wn=Yt[0],ln=Yt[1],xn=Object(a.useState)(!1),an=Object(_.a)(xn,2),Vt=an[0],Sn=an[1],hr=dt.a.useForm(),pn=Object(_.a)(hr,1),Dn=pn[0],Nn=Object(a.useState)([]),Gn=Object(_.a)(Nn,2),yn=Gn[0],Kn=Gn[1],or=Object(a.useState)(1),gr=Object(_.a)(or,2),Ur=gr[0],er=gr[1],rr=Object(a.useState)([]),Lr=Object(_.a)(rr,2),Er=Lr[0],_r=Lr[1],sa=Object(a.useState)(!0),ta=Object(_.a)(sa,2),tr=ta[0],vr=ta[1],ja=Object(a.useState)(!1),ia=Object(_.a)(ja,2),Yn=ia[0],vn=ia[1];Object(a.useEffect)(function(){Bt.actionTabs.key==="Collaborators-AddCollaborator"&&(vr(!0),ln(!0),yr())},[Bt.actionTabs.key]);var yr=function(){var Mn=Object(k.a)(p.a.mark(function gn(){var qn;return p.a.wrap(function(cr){for(;;)switch(cr.prev=cr.next){case 0:return cr.next=2,cn({type:"classroomList/getSchoolList",payload:{}});case 2:qn=cr.sent,En(qn.map(function(jr){return{value:jr}}));case 4:case"end":return cr.stop()}},gn)}));return function(){return Mn.apply(this,arguments)}}(),oi=function(){var gn,qn;if(!((gn=Dn.getFieldValue())!==null&&gn!==void 0&&(qn=gn.keyword)!==null&&qn!==void 0&&qn.trim())){U.b.warn("\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9"),Kn([]);return}vr(!1),ln(!0),Sn(!1),er(1),_r([]),Ir(!0)},Cr=function(gn){gn=String(gn);var qn=Er.indexOf(gn);qn<0?Er.push(gn):Er.splice(qn,1),_r(Object(d.a)(Er))},Ir=function(){var Mn=Object(k.a)(p.a.mark(function gn(){var qn,na,cr,jr,Pa,da=arguments;return p.a.wrap(function(ha){for(;;)switch(ha.prev=ha.next){case 0:if(qn=da.length>0&&da[0]!==void 0?da[0]:!1,!(wn&&!Vt||qn)){ha.next=11;break}return jr=Dn.getFieldValue(),Sn(!0),er(qn?1:Ur+1),ha.next=7,Object(kt.Ab)(Object(I.a)(Object(I.a)({page:qn?1:Ur+1,container_id:rn.pathId,container_type:3},jr),{},{school_name:(jr==null?void 0:jr.school_name)||null,keyword:(jr==null||((na=jr.keyword)===null||na===void 0)?void 0:na.trim())||null}));case 7:Pa=ha.sent,Kn(qn?Object(d.a)(Pa.users):[].concat(Object(d.a)(yn),Object(d.a)(Pa.users))),Sn(!1),((cr=Pa.users)===null||cr===void 0?void 0:cr.length)<10&&ln(!1);case 11:case"end":return ha.stop()}},gn)}));return function(){return Mn.apply(this,arguments)}}(),fr=function(){var Mn=Object(k.a)(p.a.mark(function gn(){var qn;return p.a.wrap(function(cr){for(;;)switch(cr.prev=cr.next){case 0:if(Er!=null&&Er.length){cr.next=4;break}U.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u6210\u5458"),cr.next=10;break;case 4:return vn(!0),cr.next=7,Object(B.e)({id:rn.pathId,user_ids:Er});case 7:qn=cr.sent,vn(!1),qn&&(U.b.success("\u6DFB\u52A0\u6210\u529F"),ar(),_n&&_n());case 10:case"end":return cr.stop()}},gn)}));return function(){return Mn.apply(this,arguments)}}(),ar=function(){Dn.setFieldsValue({keyword:""}),cn({type:"pathsDetail/setActionTabs",payload:{}})},Ln=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(gn,qn){return t.a.createElement(te.a,{value:qn.numid,checked:Er.includes(String(qn.numid)),disabled:!!gn})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,dataIndex:"username",render:function(gn,qn){return t.a.createElement(s.a,{placement:"bottom",title:gn},t.a.createElement(mn.a,{className:"bold c-black",to:"/users/".concat(qn.login),target:"_blank"},gn||"--"))}},{title:"\u624B\u673A\u53F7",width:100,dataIndex:"phone",ellipsis:!0,render:function(gn){return t.a.createElement(s.a,{placement:"bottom",title:gn},t.a.createElement("span",null,gn||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(gn){return t.a.createElement(s.a,{placement:"bottom",title:gn},t.a.createElement("span",null,gn||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(gn){return t.a.createElement(s.a,{placement:"bottom",title:gn},t.a.createElement("span",null,gn||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(gn){return t.a.createElement(s.a,{placement:"bottom",title:gn},t.a.createElement("span",null,gn||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(gn){return t.a.createElement(s.a,{placement:"bottom",title:gn},t.a.createElement("span",null,gn||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"auth",width:100,render:function(gn){return gn?"\u662F":"\u5426"}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(gn){return t.a.createElement(s.a,{placement:"bottom",title:gn?se()(gn).format("YYYY-MM-DD HH:mm"):"- -"},t.a.createElement("span",null,gn?se()(gn).format("YYYY-MM-DD HH:mm"):"- -"))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function(gn){if(gn===1)return t.a.createElement("span",{className:"c-green"},"\u5DF2\u6DFB\u52A0")}}];return t.a.createElement(g.a,{title:"\u6DFB\u52A0\u5408\u4F5C\u8005",visible:Bt.actionTabs.key==="Collaborators-AddCollaborator",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:1100,centered:!0,keyboard:!1,maskClosable:!1,bodyStyle:{minHeight:200},confirmLoading:Yn,onOk:fr,onCancel:ar},t.a.createElement(dt.a,{layout:"inline",form:Dn,initialValues:{school_name:"",keyword:"",search_type:"1"},className:"mt10",onFinish:oi},t.a.createElement(dt.a.Item,{name:"search_type",label:"\u641C\u7D22\u7C7B\u578B"},t.a.createElement(le.a,null,t.a.createElement(le.a.Option,{value:"1"},"\u59D3\u540D"),t.a.createElement(le.a.Option,{value:"2"},"\u624B\u673A\u53F7"),t.a.createElement(le.a.Option,{value:"3"},"\u90AE\u7BB1"))),t.a.createElement(dt.a.Item,{name:"keyword",label:"\u641C\u7D22\u5185\u5BB9"},t.a.createElement(Ne.a,{allowClear:!0,style:{width:280},size:"large",placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9"})),t.a.createElement(dt.a.Item,{name:"school_name",label:"\u5355\u4F4D\uFF1A"},t.a.createElement(Qt.a,{allowClear:!0,defaultOpen:!1,options:qt,style:{width:400},size:"large",placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0",filterOption:function(gn,qn){return qn.value.toUpperCase().indexOf(gn.toUpperCase())!==-1}})),t.a.createElement(dt.a.Item,null,t.a.createElement(c.a,{htmlType:"submit",type:"primary",size:"large"},"\u641C\u7D22"))),tr&&t.a.createElement("div",{className:"tc font16 c-light-black mt40"},t.a.createElement("img",{src:fn.w,width:"100",alt:""}),t.a.createElement("br",null),"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458"),!tr&&t.a.createElement("section",null,t.a.createElement("div",{className:"flexd-table-header mt20"},t.a.createElement(bt.a,{pagination:!1,dataSource:[],columns:Ln})),t.a.createElement("div",{style:{maxHeight:260,overflow:"auto"}},t.a.createElement(Gt.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(gn){Ir()},hasMore:wn,useWindow:!1},t.a.createElement(bt.a,{loading:Vt,showHeader:!1,pagination:!1,dataSource:yn,columns:Ln,onRow:function(gn){return{onClick:function(na){na.currentTarget.querySelector("input").disabled||Cr(na.currentTarget.querySelector("input").value)}}}})))))},Mr=Object(l.a)(function(lt){var qe=lt.pathsDetail,Bt=lt.loading;return{pathsDetail:qe,loading:Bt}})(Tr),kr=function(qe){var Bt=qe.pathsDetail,$t=qe.loading,cn=qe.dispatch,Wt=qe.data,_n=qe.onReloadData,rn=_n===void 0?function(){}:_n,Ht=Object(A.i)(),An=Object(a.useState)(!0),qt=Object(_.a)(An,2),En=qt[0],kn=qt[1],Yt=Object(a.useState)(!1),wn=Object(_.a)(Yt,2),ln=wn[0],xn=wn[1],an=dt.a.useForm(),Vt=Object(_.a)(an,1),Sn=Vt[0],hr=Object(a.useState)([]),pn=Object(_.a)(hr,2),Dn=pn[0],Nn=pn[1],Gn=Object(a.useState)(1),yn=Object(_.a)(Gn,2),Kn=yn[0],or=yn[1],gr=Object(a.useState)([]),Ur=Object(_.a)(gr,2),er=Ur[0],rr=Ur[1],Lr=Object(a.useState)(!0),Er=Object(_.a)(Lr,2),_r=Er[0],sa=Er[1],ta=Object(a.useState)(!1),tr=Object(_.a)(ta,2),vr=tr[0],ja=tr[1];Object(a.useEffect)(function(){Bt.actionTabs.key==="Collaborators-AddCourses"&&(sa(!0),kn(!0),ia())},[Bt.actionTabs.key]);var ia=function(){var fr=Object(k.a)(p.a.mark(function ar(){var Ln;return p.a.wrap(function(gn){for(;;)switch(gn.prev=gn.next){case 0:return gn.next=2,cn({type:"classroomList/getSchoolList",payload:{}});case 2:Ln=gn.sent;case 3:case"end":return gn.stop()}},ar)}));return function(){return fr.apply(this,arguments)}}(),Yn=function(){sa(!1),kn(!0),xn(!1),or(1),rr([]),yr(!0)},vn=function(ar){ar=String(ar);var Ln=er.indexOf(ar);Ln<0?er.push(ar):er.splice(Ln,1),rr(Object(d.a)(er))},yr=function(){var fr=Object(k.a)(p.a.mark(function ar(){var Ln,Mn,gn,qn,na,cr=arguments;return p.a.wrap(function(Pa){for(;;)switch(Pa.prev=Pa.next){case 0:if(Ln=cr.length>0&&cr[0]!==void 0?cr[0]:!1,!(En&&!ln||Ln)){Pa.next=11;break}return qn=Sn.getFieldValue(),xn(!0),or(Ln?1:Kn+1),Pa.next=7,Object(kt.zb)({page:Ln?1:Kn+1,container_id:Ht.pathId,container_type:3,manager_name:(qn==null?void 0:qn.manager_name)||null,course_name:(qn==null||((Mn=qn.course_name)===null||Mn===void 0)?void 0:Mn.trim())||null});case 7:na=Pa.sent,Nn(Ln?Object(d.a)(na.courses):[].concat(Object(d.a)(Dn),Object(d.a)(na.courses))),xn(!1),((gn=na.courses)===null||gn===void 0?void 0:gn.length)<10&&kn(!1);case 11:case"end":return Pa.stop()}},ar)}));return function(){return fr.apply(this,arguments)}}(),oi=function(){var fr=Object(k.a)(p.a.mark(function ar(){var Ln,Mn,gn,qn;return p.a.wrap(function(cr){for(;;)switch(cr.prev=cr.next){case 0:if(er!=null&&er.length){cr.next=4;break}U.b.warn("\u8BF7\u5148\u5728\u4E0B\u9762\u5217\u8868\u4E2D\u9009\u62E9\u8981\u6DFB\u52A0\u8BFE\u5802"),cr.next=19;break;case 4:if(!(Bt.actionTabs.type!=1)){cr.next=10;break}if(!((Bt==null||((Ln=Bt.Courses)===null||Ln===void 0||((Mn=Ln.spoc_courses)===null||Mn===void 0))?void 0:Mn.length)+(er==null?void 0:er.length)>3)){cr.next=8;break}return U.b.warn("\u4E00\u4E2A\u5B9E\u8DF5\u8BFE\u7A0B\u53EA\u80FD\u52A0\u51653\u4E2Aspoc\u8BFE\u5802"),cr.abrupt("return");case 8:cr.next=13;break;case 10:if(!((Wt==null||((gn=Wt.spoc_courses)===null||gn===void 0)?void 0:gn.length)+(er==null?void 0:er.length)>3)){cr.next=13;break}return U.b.warn("\u4E00\u4E2A\u5B9E\u8DF5\u8BFE\u7A0B\u53EA\u80FD\u52A0\u51653\u4E2A\u5386\u53F2\u8BFE\u5802"),cr.abrupt("return");case 13:return ja(!0),cr.next=16,Object(B.b)({id:Ht.pathId,course_ids:er,course_type:Bt.actionTabs.type});case 16:qn=cr.sent,ja(!1),qn&&(U.b.success("\u6DFB\u52A0\u6210\u529F"),Cr(),rn&&rn());case 19:case"end":return cr.stop()}},ar)}));return function(){return fr.apply(this,arguments)}}(),Cr=function(){Sn.setFieldsValue({course_name:"",manager_name:""}),rr([]),cn({type:"pathsDetail/setActionTabs",payload:{}})},Ir=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(ar,Ln){return t.a.createElement(te.a,{value:Ln.id,checked:er.includes(String(Ln.id)),disabled:!!ar})}},{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"name",width:100,ellipsis:!0,render:function(ar){return t.a.createElement(s.a,{placement:"bottom",title:ar},t.a.createElement("span",null,ar||"--"))}},{title:"\u7BA1\u7406\u8005",width:100,dataIndex:"managers",ellipsis:!0,render:function(ar){return t.a.createElement(s.a,{placement:"bottom",title:ar},t.a.createElement("span",null,ar||"--"))}},{title:"\u8BFE\u5802\u6240\u5728\u5B66\u6821",width:150,dataIndex:"school_name",ellipsis:!0,render:function(ar){return t.a.createElement(s.a,{placement:"bottom",title:ar},t.a.createElement("span",null,ar||"--"))}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",width:140,ellipsis:!0,render:function(ar){return t.a.createElement(s.a,{placement:"bottom",title:ar},t.a.createElement("span",null,ar))}},{title:"\u6210\u5458\u6570\u91CF",dataIndex:"course_members_count",width:80,render:function(ar){return t.a.createElement(s.a,{placement:"bottom",title:ar},t.a.createElement("span",null,ar||"--"))}}];return t.a.createElement(g.a,{title:"\u6DFB\u52A0\u8BFE\u5802",visible:Bt.actionTabs.key==="Collaborators-AddCourses",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:1100,centered:!0,keyboard:!1,maskClosable:!1,bodyStyle:{minHeight:200},confirmLoading:vr,onOk:oi,onCancel:Cr},t.a.createElement(dt.a,{layout:"inline",form:Sn,initialValues:{course_name:"",manager_name:""},className:"mt10",onFinish:Yn},t.a.createElement(dt.a.Item,{name:"course_name",label:"\u8BFE\u5802\u540D\u79F0"},t.a.createElement(Ne.a,{allowClear:!0,style:{width:370},size:"large",placeholder:"\u8BF7\u8F93\u5165\u8BFE\u5802\u540D\u79F0"})),t.a.createElement(dt.a.Item,{name:"manager_name",label:"\u8BFE\u5802\u7BA1\u7406\u8005"},t.a.createElement(Ne.a,{allowClear:!0,style:{width:370},size:"large",placeholder:"\u8BF7\u8F93\u5165\u8BFE\u5802\u7BA1\u7406\u8005\u540D\u79F0"})),t.a.createElement(dt.a.Item,null,t.a.createElement(c.a,{htmlType:"submit",type:"primary",size:"large"},"\u641C\u7D22"))),_r&&t.a.createElement("div",{className:"tc font16 c-light-black mt40"},t.a.createElement("img",{src:fn.w,width:"100",alt:""}),t.a.createElement("br",null),"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458"),!_r&&t.a.createElement("section",null,t.a.createElement("div",{className:"flexd-table-header mt20"},t.a.createElement(bt.a,{pagination:!1,dataSource:[],columns:Ir})),t.a.createElement("div",{style:{maxHeight:260,overflow:"auto"}},t.a.createElement(Gt.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(ar){yr()},hasMore:En,useWindow:!1},t.a.createElement(bt.a,{loading:ln,showHeader:!1,pagination:!1,dataSource:Dn,columns:Ir,onRow:function(ar){return{onClick:function(Mn){Mn.currentTarget.querySelector("input").disabled||vn(Mn.currentTarget.querySelector("input").value)}}}})))))},Un=Object(l.a)(function(lt){var qe=lt.pathsDetail,Bt=lt.loading;return{pathsDetail:qe,loading:Bt}})(kr),Ra=v("2BaD"),Xr=v("1n7x"),aa=v.n(Xr),Kr=v("y1J/"),_a=v.n(Kr),di=v("A2z3"),Ei=v.n(di),_e=v("Ye+n"),Ie=v.n(_e),Ye=v("MPMw"),yt=v.n(Ye),Xt=function(qe){var Bt=qe.visible,$t=qe.onOk,cn=$t===void 0?function(){}:$t,Wt=qe.onCancel,_n=Wt===void 0?function(){}:Wt,rn=qe.data,Ht=rn===void 0?{}:rn,An=Object(a.useRef)();Object(a.useEffect)(function(){return Bt?document.body.setAttribute("class",Ie.a.bodyHeight):document.body.removeAttribute("class"),function(){document.body.removeAttribute("class")}},[Bt]);var qt={"1":"January","2":"February","3":"March","4":"April","5":"May","6":"June","7":"July","8":"August","9":"September","10":"October","11":"November","12":"December"},En=function(){var kn=Object(k.a)(p.a.mark(function Yt(){var wn,ln,xn;return p.a.wrap(function(Vt){for(;;)switch(Vt.prev=Vt.next){case 0:return document.body.scrollIntoView(),wn={margin:[0,0,0,0],filename:"11.pdf",enableLinks:!1,html2canvas:{scale:5,allowTaint:!1,useCORS:!0},jsPDF:{format:[1412,Ht!=null&&Ht.is_icpc_first?2500:1e3],orientation:"landscape",unit:"px"},image:{type:"jpeg",quality:1}},ln=aa()().set(wn).from(An.current).toPdf(),Vt.next=5,ln.get("pdf");case 5:return ln=Vt.sent,Vt.next=8,ln.output("bloburl");case 8:xn=Vt.sent,Object(pe.x)("".concat(Ht.school_name,"-").concat(Ht.user_name,".pdf"),xn);case 10:case"end":return Vt.stop()}},Yt)}));return function(){return kn.apply(this,arguments)}}();return t.a.createElement(g.a,{visible:Bt,title:null,footer:t.a.createElement("div",null,t.a.createElement(c.a,{type:"primary",onClick:En},"\u4E0B\u8F7D\u8BC1\u4E66")),style:{background:"transparen",height:"740px"},centered:!0,width:Ht!=null&&Ht.is_icpc_first?840:1052,className:Ie.a.advertisementModal,maskClosable:!1,closeIcon:t.a.createElement(Ra.a,{onClick:_n,style:{fontSize:"25px",color:"#fff",marginLeft:"100px"}})},t.a.createElement("div",{ref:An},Ht!=null&&Ht.is_icpc_first?t.a.createElement("div",{style:{backgroundImage:"url(".concat(yt.a,")"),height:"1200px",width:"840px",padding:"1px 100px",backgroundSize:"100%",backgroundRepeat:"no-repeat"}},t.a.createElement("div",{style:{color:"#333",fontSize:"36px",marginTop:"465px",width:"100%",marginLeft:"24px"}},Ht==null?void 0:Ht.user_name),t.a.createElement("div",{style:{color:"#333",fontSize:"16px",marginTop:"223px",width:"100%",marginLeft:100}},Ht==null?void 0:Ht.passed_date)):t.a.createElement("div",{style:{backgroundImage:"url(".concat(Ei.a,")"),height:"740px",width:"1052px",padding:"1px 100px"}},t.a.createElement("div",{style:{color:"#EB5E00",fontSize:"36px",marginTop:"239px",width:"100%",textAlign:"center"}},Ht==null?void 0:Ht.school_name," ",Ht==null?void 0:Ht.user_name),t.a.createElement("div",{style:{color:"#0D3580",fontSize:"24px",marginTop:"30px",width:"100%",textAlign:"center"}},"\u4E8E",se()(Ht==null?void 0:Ht.created_at).format("YYYY\u5E74MM\u6708DD\u65E5"),"\u5B8C\u6210\u4E86EduCoder\u5E73\u53F0\u300A",Ht==null?void 0:Ht.subject_name,"\u300B\u8BFE\u7A0B\u5B66\u4E60\u3002"),t.a.createElement("div",{style:{color:"#0D3580",fontSize:"30px",marginTop:"50px",width:"100%",textAlign:"center",fontWeight:900}},"\u7279\u6B64\u8BC1\u660E"),t.a.createElement("div",{style:{color:"#0D3580",fontSize:"14px",marginTop:"30px",width:"100%",textAlign:"center"}},"On ",qt[se()(Ht==null?void 0:Ht.created_at).format("M")]," ",se()(Ht==null?void 0:Ht.created_at).format("DD"),"\uFF0C",se()(Ht==null?void 0:Ht.created_at).format("YYYY"),"\uFF0C completed the \u300A",Ht==null?void 0:Ht.subject_name_en,"\u300B course on EduCoder."),t.a.createElement("img",{src:_a.a,style:{position:"absolute",left:"820px",bottom:"130px"}}),t.a.createElement("div",{style:{color:"#0D3580",fontSize:"12px",width:"100%",display:"flex",paddingRight:"200px",position:"absolute",bottom:"150px"}},t.a.createElement("span",null,"\u8BC1\u4E66\u7F16\u53F7\uFF1A",Ht==null?void 0:Ht.code),t.a.createElement("span",{style:{marginLeft:"560px"}},"\u5728\u7EBF\u7F16\u7A0B\u5B66\u9662")))))},sn=Xt,re=v("YJCA"),W=v("wYyv"),V=v.n(W),ne=Object(re.b)(function(lt){var qe,Bt,$t,cn,Wt,_n,rn,Ht,An,qt=lt.item,En=lt.toIndex,kn=lt.params,Yt=lt.isShow,wn=lt.setShow,ln=lt.dispatch,xn=lt.classroomList,an=lt.handleDeleteMember,Vt=lt.pathsDetail;return t.a.createElement("span",{style:{display:"inline-block",width:"33%",padding:"5px",background:"#fff",marginTop:"10px"}},t.a.createElement("div",{className:je.a.directionItemWrap},t.a.createElement(s.a,{color:"#ffffff",placement:"bottom",title:t.a.createElement("div",{className:je.a.teamHeight},t.a.createElement("span",{title:qt==null?void 0:qt.name,style:{fontSize:"14px",color:"#333333",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"80px",overflow:"hidden"}},(qt==null||((qe=qt.name)===null||qe===void 0)?void 0:qe.length)>6?(qt==null||((Bt=qt.name)===null||Bt===void 0)?void 0:Bt.substr(0,6))+"...":(qt==null?void 0:qt.name)||"--"),t.a.createElement("span",{style:{marginLeft:"10px",color:"#999999",fontSize:"12px"}},(qt==null||(($t=qt.school)===null||$t===void 0)?void 0:$t.length)>9?(qt==null||((cn=qt.school)===null||cn===void 0)?void 0:cn.substr(0,9))+"...":qt==null?void 0:qt.school),t.a.createElement("div",{style:{height:"1px",width:"100%",border:"1px solid #f5f5f5",marginTop:"3px",marginBottom:"3px"}}),!(qt!=null&&qt.brief_introduction)&&t.a.createElement("div",{style:{textAlign:"center",marginTop:"20px"}},"\u6682\u65E0\u7B80\u4ECB"),(qt==null?void 0:qt.brief_introduction)&&t.a.createElement("div",{className:je.a.divHeight},qt==null?void 0:qt.brief_introduction))},t.a.createElement("img",{draggable:!1,className:je.a.imgradius,onClick:function(){Object(F.p)()?l.d.push("".concat(qt.user_url)):ln({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})},src:ut.a.API_SERVER+"/images/"+(qt==null?void 0:qt.image_url)}),t.a.createElement("div",null,(qt==null||((Wt=qt.name)===null||Wt===void 0)?void 0:Wt.length)>6?(qt==null||((_n=qt.name)===null||_n===void 0)?void 0:_n.substr(0,6))+"...":(qt==null?void 0:qt.name)||"--",t.a.createElement("br",null),t.a.createElement("span",{style:{color:"#999999"}},(qt==null||((rn=qt.school)===null||rn===void 0)?void 0:rn.length)>6?(qt==null||((Ht=qt.school)===null||Ht===void 0)?void 0:Ht.substr(0,6))+"...":(qt==null?void 0:qt.school)||"--"))),t.a.createElement("br",null),t.a.createElement("span",{className:je.a.groupActionWrap},t.a.createElement("i",{style:{display:!((An=Vt.detail)!==null&&An!==void 0&&An.allow_add_member)&&"none"},className:"iconfont icon-shanchu5 mr1 c-red font15 current",onClick:function(hr){hr.stopPropagation(),an(qt.id)}}))))}),ve=Object(re.a)(function(lt){var qe=lt.isShow,Bt=lt.setShow,$t=lt.pathsDetail,cn=lt.items,Wt=lt.params,_n=lt.dispatch,rn=lt.classroomList,Ht=lt.handleDeleteMember;return t.a.createElement("div",{className:"task-list-container"},cn==null?void 0:cn.map(function(An,qt){return t.a.createElement(ne,{key:"".concat(An.id),isShow:qe,setShow:Bt,dispatch:_n,pathsDetail:$t,handleDeleteMember:Ht,classroomList:rn,toIndex:qt+1,params:Wt,index:qt,item:An})}))}),oe=function(qe){var Bt=qe.isupdate,$t=qe.setisupdate,cn=qe.data,Wt=qe.classroomList,_n=qe.pathsDetail,rn=qe.operation,Ht=qe.callback,An=qe.handleDeleteMember,qt=qe.onCancel,En=qe.dispatch,kn=qe.visible,Yt=kn===void 0?!1:kn,wn=Object(a.useState)(cn),ln=Object(_.a)(wn,2),xn=ln[0],an=ln[1],Vt=Object(A.i)(),Sn=Object(a.useState)(),hr=Object(_.a)(Sn,2),pn=hr[0],Dn=hr[1],Nn=Object(a.useState)(!0),Gn=Object(_.a)(Nn,2),yn=Gn[0],Kn=Gn[1];function or(er){var rr=er.newIndex,Lr=er.oldIndex;if(!rn)return;an(V()(xn,Lr,rr))}Object(a.useEffect)(function(){Bt&&(gr(xn.map(function(er){return er==null?void 0:er.id})),$t(!1))},[Bt]),Object(a.useEffect)(function(){an(cn)},[JSON.stringify(cn)]);function gr(er){return Ur.apply(this,arguments)}function Ur(){return Ur=Object(k.a)(p.a.mark(function er(rr){var Lr;return p.a.wrap(function(_r){for(;;)switch(_r.prev=_r.next){case 0:return _r.next=2,Object(Ut.a)("/api/paths/".concat(Vt==null?void 0:Vt.pathId,"/move_subject_members.json"),{method:"post",body:{user_ids:rr}});case 2:Lr=_r.sent,En({type:"pathsDetail/getRightData",payload:{id:Vt.pathId}});case 4:case"end":return _r.stop()}},er)})),Ur.apply(this,arguments)}return t.a.createElement("div",{style:{zIndex:9999,width:"100%"},className:"sort-list-panel"},t.a.createElement(ve,{axis:"xy",helperClass:"dragging-li",isShow:yn,setShow:Kn,distance:2,disableAutoscroll:!0,dispatch:En,pathsDetail:_n,handleDeleteMember:An,classroomList:Wt,params:Vt,items:xn,onSortEnd:or}))},tt=Object(l.a)(function(lt){var qe=lt.classroomList,Bt=lt.pathsDetail;return{classroomList:qe,pathsDetail:Bt}})(oe),Kt=v("lseA"),dn=v.n(Kt),Cn=[2,5,8,11,14],Jt=Object(re.b)(function(lt){var qe,Bt,$t,cn,Wt=lt.item,_n=lt.toIndex,rn=lt.params,Ht=lt.dispatch,An=lt.classroomList,qt=lt.handleDeleteMember,En=lt.pathsDetail;return t.a.createElement("span",{onClick:function(){window.open(Wt==null?void 0:Wt.first_category_url)},style:{display:"inline-block",padding:"10px 20px",width:"100%",background:"#fff",marginTop:"5px"}},t.a.createElement("div",{className:dn.a.directionItemWrap},t.a.createElement("img",{className:dn.a.imgradius,src:ut.a.API_SERVER+(Wt==null?void 0:Wt.default_image)}),t.a.createElement("span",{className:dn.a.groupActionWrap},t.a.createElement(s.a,{title:Wt.name},t.a.createElement("span",{style:{fontSize:"18px",color:"#ffffff"}},((qe=Wt.name)===null||qe===void 0?void 0:qe.length)>7?t.a.createElement("span",null,(Bt=Wt.name)===null||Bt===void 0?void 0:Bt.substring(0,7),t.a.createElement("br",null)," ",($t=Wt.name)===null||$t===void 0?void 0:$t.substring(7,14),(Wt==null?void 0:Wt.name.length)>14&&"..."):Wt.name)))),t.a.createElement("div",{className:dn.a.bottomdiv},t.a.createElement(s.a,{title:"\u8BBF\u95EE\u6570\uFF1A".concat(Wt==null?void 0:Wt.visits),placement:"bottom"},t.a.createElement("span",null,t.a.createElement("i",{style:{marginRight:"3px",color:"#bbbbbb"},className:"iconfont icon-chakan ml3 font15 current"}),t.a.createElement("span",{style:{color:"rgba(0, 0, 0, 0.45)"}},Wt==null?void 0:Wt.visits))),t.a.createElement(s.a,{title:"\u8BFE\u5802\u6210\u5458\u6570\uFF1A".concat(Wt==null?void 0:Wt.course_members_count),placement:"bottom"},t.a.createElement("span",null,t.a.createElement("i",{style:{marginRight:"3px",color:"#bbbbbb"},className:"iconfont icon-ren ml3 font15 current"}),t.a.createElement("span",{style:{color:"rgba(0, 0, 0, 0.45)"}}," ",Wt==null?void 0:Wt.course_members_count))),t.a.createElement(s.a,{overlayStyle:{maxWidth:380},title:t.a.createElement("div",{style:{whiteSpace:"nowrap"}},"\u8BFE\u5802\u7684\u4EFB\u52A1\u6570(\u4F5C\u4E1A\u6570\uFF0B\u8BD5\u5377\u6570\uFF0B\u95EE\u5377\u6570)\uFF1A",Wt==null?void 0:Wt.tasks_count),placement:"bottom"},t.a.createElement("span",null,t.a.createElement("i",{style:{marginRight:"3px",color:"#bbbbbb"},className:"iconfont icon-wenjian2 ml3 font15 current"}),t.a.createElement("span",{style:{color:"rgba(0, 0, 0, 0.45)"}}," ",Wt==null?void 0:Wt.tasks_count))),t.a.createElement(s.a,{title:"\u5220\u9664",placement:"bottom"},t.a.createElement("span",null,t.a.createElement("i",{style:{color:"#bbbbbb",display:!(En!=null&&(cn=En.detail)!==null&&cn!==void 0&&cn.allow_add_member)&&"none"},className:"iconfont icon-lajitong1 mr3 font15 current",onClick:function(Yt){Yt.stopPropagation(),qt(Wt.id)}})))))}),Vn=Object(re.a)(function(lt){var qe=lt.items,Bt=lt.params,$t=lt.dispatch,cn=lt.classroomList,Wt=lt.handleDeleteMember,_n=lt.pathsDetail;return t.a.createElement("div",{className:"task-list-container"},qe==null?void 0:qe.map(function(rn,Ht){return t.a.createElement(Jt,{key:"".concat(rn.id),dispatch:$t,pathsDetail:_n,handleDeleteMember:Wt,classroomList:cn,toIndex:Ht+1,params:Bt,index:Ht,item:rn})}))}),Xn=function(qe){var Bt=qe.data,$t=qe.classroomList,cn=qe.pathsDetail,Wt=qe.callback,_n=qe.handleDeleteMember,rn=qe.onCancel,Ht=qe.dispatch,An=qe.visible,qt=An===void 0?!1:An,En=Object(a.useState)(Bt),kn=Object(_.a)(En,2),Yt=kn[0],wn=kn[1],ln=Object(A.i)(),xn=Object(a.useState)(),an=Object(_.a)(xn,2),Vt=an[0],Sn=an[1];function hr(Nn){var Gn=Nn.newIndex,yn=Nn.oldIndex;pn(V()(Yt,yn,Gn).map(function(Kn){return Kn==null?void 0:Kn.id})),wn(V()(Yt,yn,Gn))}Object(a.useEffect)(function(){wn(Bt)},[JSON.stringify(Bt)]);function pn(Nn){return Dn.apply(this,arguments)}function Dn(){return Dn=Object(k.a)(p.a.mark(function Nn(Gn){var yn;return p.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:return or.next=2,Object(Ut.a)("/api/paths/".concat(ln==null?void 0:ln.pathId,"/spoc_courses/move_position.json"),{method:"post",body:{ids:Gn}});case 2:yn=or.sent;case 3:case"end":return or.stop()}},Nn)})),Dn.apply(this,arguments)}return t.a.createElement("div",{style:{zIndex:9999,width:"100%"},className:"sort-list-panel"},t.a.createElement(Vn,{axis:"y",helperClass:"dragging-li",pathsDetail:cn,distance:2,dispatch:Ht,handleDeleteMember:_n,classroomList:$t,params:ln,items:Yt,onSortEnd:hr}))},lr=Object(l.a)(function(lt){var qe=lt.classroomList,Bt=lt.pathsDetail;return{classroomList:qe,pathsDetail:Bt}})(Xn),Rr=v("V0Rq"),qr=v("HBuW"),zr=v("W6us"),Ca=v.n(zr),Dr=v("CnIC"),ya=v.n(Dr),ka=v("LZjx"),fi=v.n(ka),Ka=v("dhSg"),qa=v("cVA7"),Si=v.n(qa),pi=v("h6EL");function ui(lt){var qe=function(_n,rn){if(_n.localName===rn)return _n;for(var Ht=0,An=_n;An=An.parentNode;Ht++){if(An.localName===rn)return An;if(An==document.documentElement)return!1}},Bt=lt.target,$t=qe(Bt,"a");if(console.log([$t],$t==null?void 0:$t.href,44),$t!=null&&$t.href)return;if(Bt.tagName.toUpperCase()==="IMG"){var cn=Bt.src||Bt.getAttribute("src");cn&&cn.indexOf("/images/avatars/User")===-1&&(lt.stopPropagation(),lt.preventDefault(),Ka.a.publish("preview-image",cn))}}var mi=function(qe){var Bt,$t,cn,Wt,_n,rn,Ht,An,qt,En,kn,Yt,wn,ln,xn,an,Vt,Sn,hr,pn,Dn,Nn,Gn,yn,Kn,or,gr,Ur,er,rr,Lr,Er,_r,sa,ta,tr,vr,ja,ia,Yn,vn,yr,oi,Cr,Ir,fr,ar,Ln,Mn,gn,qn,na,cr,jr,Pa,da,ba,ha,Ta,Da,Ua,Qr,Wa,Ea,za,hi,Ji,Li,Ci,Uo,Ao,_o,as,fs,is,os,So,ps,Qi,Aa,wi,vi,vo,uo,Ki,ss,ls,qo,fo,zo,yo,es,Go,Oa,la,xi,Zi,Oo,co,No,Wi,Ai,Vo,Pn=qe.pathsDetail,ts=qe.user,lo=qe.globalSetting,Ha=qe.loading,Fi=qe.classroomList,Ti=qe.dispatch,Ro=Object(O.a)(qe,["pathsDetail","user","globalSetting","loading","classroomList","dispatch"]),Oi=Object(A.i)(),Fo=Object(a.useState)(!0),ns=Object(_.a)(Fo,2),ms=ns[0],Xo=ns[1],Ss=Object(a.useState)(!1),Fs=Object(_.a)(Ss,2),On=Fs[0],nr=Fs[1],zt=Object(a.useState)(),on=Object(_.a)(zt,2),Tn=on[0],Hn=on[1],jn=Object(a.useState)(),pr=Object(_.a)(jn,2),dr=pr[0],Bn=pr[1],Yr=Object(a.useState)({}),Ri=Object(_.a)(Yr,2),ir=Ri[0],si=Ri[1],ao=Object(a.useState)(),zi=Object(_.a)(ao,2),Wn=zi[0],Qa=zi[1],Gi=Object(a.useRef)(),li=Object(a.useState)(!1),io=Object(_.a)(li,2),Yo=io[0],ko=io[1],jo=Object(a.useState)({}),gs=Object(_.a)(jo,2),ki=gs[0],sl=gs[1],vl=Object(a.useState)(!1),Os=Object(_.a)(vl,2),ks=Os[0],us=Os[1],ll=Object(a.useState)(!1),ul=Object(_.a)(ll,2),Sl=ul[0],Zs=ul[1],rs=Object(A.h)();Object(a.useEffect)(function(){if(Gi.current)return Gi.current.addEventListener("mousedown",ui),function(){Gi.current.removeEventListener("mousedown",ui)}},[Gi.current]);var cl=function(){var Rn=Object(k.a)(p.a.mark(function xr(){var In;return p.a.wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:if(dr!=null&&dr.trim()){Jn.next=3;break}return U.b.warn("\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Jn.abrupt("return");case 3:return Jn.next=5,Object(B.V)({id:Oi.pathId,team_title:dr.trim()});case 5:In=Jn.sent,Hn(!Tn),(In==null?void 0:In.status)===0&&(Bn(null),U.b.success(In.message),Ti({type:"pathsDetail/getRightData",payload:{id:Oi.pathId}}));case 8:case"end":return Jn.stop()}},xr)}));return function(){return Rn.apply(this,arguments)}}();Object(a.useEffect)(function(){Ti({type:"pathsDetail/getCoureses",payload:{id:Oi.pathId}}),Qs()},[]);function Qs(){return $s.apply(this,arguments)}function $s(){return $s=Object(k.a)(p.a.mark(function Rn(){return p.a.wrap(function(In){for(;;)switch(In.prev=In.next){case 0:return In.t0=sl,In.next=3,Object(B.w)({id:Oi.pathId,course_type:1});case 3:In.t1=In.sent,(0,In.t0)(In.t1);case 5:case"end":return In.stop()}},Rn)})),$s.apply(this,arguments)}Object(a.useEffect)(function(){var Rn;if(((Rn=Fi.actionTabs)===null||Rn===void 0?void 0:Rn.key)==="\u4FEE\u6539\u5F00\u8BFE\u65F6\u95F4"){var xr,In,Gr=(xr=Pn.detail)===null||xr===void 0||((In=xr.courses)===null||In===void 0)?void 0:In.find(function(Jn){var ra;return Jn.course_id===((ra=Fi.actionTabs)===null||ra===void 0?void 0:ra.name)});si(Gr||{})}},[Fi.actionTabs]),Object(a.useEffect)(function(){var Rn,xr,In;if((Rn=Pn.detail)!==null&&Rn!==void 0&&Rn.has_start){var Gr,Jn,ra=(Gr=Pn.detail)===null||Gr===void 0||((Jn=Gr.courses)===null||Jn===void 0)?void 0:Jn.findIndex(function(Io){var Do;return parseInt((Do=Io.course_status)===null||Do===void 0?void 0:Do.status)===1});In=ra>-1?ra:0}else{var Nr,fa,yi,Ya,Bo,Ho=(Nr=Pn.detail)===null||Nr===void 0||((fa=Nr.courses)===null||fa===void 0||((yi=fa.map(function(Io){var Do;return parseInt((Do=Io.course_status)===null||Do===void 0?void 0:Do.status)}))===null||yi===void 0))?void 0:yi.lastIndexOf(2);In=Ho>-1?Ho:0,Ho=(Ya=Pn.detail)===null||Ya===void 0||((Bo=Ya.courses)===null||Bo===void 0)?void 0:Bo.findIndex(function(Io){var Do;return parseInt((Do=Io.course_status)===null||Do===void 0?void 0:Do.status)===0}),In=Ho>-1?Ho:In}if((xr=Pn.detail)!==null&&xr!==void 0&&xr.courses){var el;si(((el=Pn.detail)===null||el===void 0?void 0:el.courses[In])||{})}},[Pn.detail]);var qs=function(){var Rn=Object(k.a)(p.a.mark(function xr(In){return p.a.wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:g.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6210\u5458\u5417\uFF1F"),onOk:function(){var ra=Object(k.a)(p.a.mark(function fa(){var yi,Ya;return p.a.wrap(function(Ho){for(;;)switch(Ho.prev=Ho.next){case 0:return Ho.next=2,Object(B.p)({id:Oi.pathId,user_id:In});case 2:yi=Ho.sent,(yi==null?void 0:yi.status)===1&&(((Ya=ts.userInfo)===null||Ya===void 0?void 0:Ya.user_id)===In&&(window.location.href=window.location.href),U.b.info(yi==null?void 0:yi.message),Bs());case 4:case"end":return Ho.stop()}},fa)}));function Nr(){return ra.apply(this,arguments)}return Nr}()});case 1:case"end":return Jn.stop()}},xr)}));return function(In){return Rn.apply(this,arguments)}}(),yl=function(){var Rn=Object(k.a)(p.a.mark(function xr(In){return p.a.wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:g.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u8BFE\u5802\u5417\uFF1F"),onOk:function(){var ra=Object(k.a)(p.a.mark(function fa(){var yi;return p.a.wrap(function(Bo){for(;;)switch(Bo.prev=Bo.next){case 0:return Bo.next=2,Object(B.o)({id:Oi.pathId,courseid:In});case 2:yi=Bo.sent,(yi==null?void 0:yi.status)===0&&(U.b.info("\u5220\u9664\u6210\u529F"),Bs());case 4:case"end":return Bo.stop()}},fa)}));function Nr(){return ra.apply(this,arguments)}return Nr}()});case 1:case"end":return Jn.stop()}},xr)}));return function(In){return Rn.apply(this,arguments)}}(),Rs=function(){g.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u8BA4\u7ACB\u5373\u9884\u7EA6\uFF1F"),onOk:function(){var xr=Object(k.a)(p.a.mark(function Gr(){var Jn;return p.a.wrap(function(Nr){for(;;)switch(Nr.prev=Nr.next){case 0:return Nr.next=2,Object(B.i)({id:Oi.pathId});case 2:Jn=Nr.sent,Jn.status===0&&(Qa(!0),U.b.success(Jn.message));case 4:case"end":return Nr.stop()}},Gr)}));function In(){return xr.apply(this,arguments)}return In}()})},Ol=function(){Ti({type:"pathsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator"}})},vs=function(xr){Ti({type:"pathsDetail/setActionTabs",payload:{key:"Collaborators-AddCourses",type:xr}})},Bs=function(){Ti({type:"pathsDetail/getPathsDetail",payload:{id:Oi.pathId}}),Ti({type:"pathsDetail/getRightData",payload:{id:Oi.pathId}}),Ti({type:"pathsDetail/getCoureses",payload:{id:Oi.pathId}}),Qs()},Ks=function(){var xr;return Tn?t.a.createElement("div",{className:Qe.a.flexRow},t.a.createElement(Ne.a,{placeholder:"\u4F8B\u5982\uFF1A\u6559\u5B66\u56E2\u961F",value:dr,onChange:function(Gr){return Bn(Gr.target.value)}}),t.a.createElement(c.a,{className:"ml5",onClick:function(){return Hn(!Tn)}},"\u53D6\u6D88"),t.a.createElement(c.a,{className:"ml5",type:"primary",onClick:cl},"\u786E\u5B9A")):t.a.createElement("div",{className:Qe.a.directionItemWrap},t.a.createElement("span",{style:{fontSize:"16px",display:"flex",alignItems:"center"}}," ",t.a.createElement("img",{style:{marginRight:"10px"},src:ya.a})," ",(xr=Pn.rightData)===null||xr===void 0?void 0:xr.team_title),t.a.createElement("span",{className:Qe.a.groupActionWrap},t.a.createElement("i",{className:"iconfont icon-xiugai mr1 c-light-primary font15 current",onClick:function(){return Hn(!Tn)}})),!ks&&t.a.createElement("a",{style:{flex:"1",textAlign:"end"},onClick:function(){us(!0)}},"\u7F16\u8F91"),ks&&t.a.createElement("div",{style:{flex:"1",textAlign:"end"}},t.a.createElement("a",{onClick:function(){us(!1)}},"\u53D6\u6D88"),t.a.createElement("a",{onClick:function(){Zs(!0),setTimeout(function(){us(!1)},500)},style:{marginLeft:10}},"\u5B8C\u6210")))},Is=function(){var xr,In,Gr=new Image;Gr.src=fn.o;var Jn=((xr=Pn.rightData)===null||xr===void 0||((In=xr.tags)===null||In===void 0)?void 0:In.map(function(Nr,fa){return{name:Nr.tag_name,value:fa}}))||[],ra={backgroundColor:"#fff",tooltip:{pointFormat:"{series.name}</b>"},series:[{type:"wordCloud",sizeRange:[10,30],rotationRange:[-90,90],rotationStep:45,gridSize:2,shape:"pentagon",maskImage:Gr,textStyle:{normal:{color:function(){return"rgb("+Math.round(Math.random()*255)+", "+Math.round(Math.random()*255)+", "+Math.round(Math.random()*255)+")"}}},left:"center",top:"center",right:null,bottom:null,width:"100%",height:"100%",data:Jn}]};return ra},ea=function(){if(!Object(he.e)(Ti))return;g.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},"\u662F\u5426\u786E\u5B9A\u52A0\u5165\u8BE5\u8BFE\u5802"),onOk:function(){var xr=Object(k.a)(p.a.mark(function Gr(){var Jn,ra;return p.a.wrap(function(fa){for(;;)switch(fa.prev=fa.next){case 0:return fa.next=2,Object(B.L)({id:ir==null?void 0:ir.course_id});case 2:Jn=fa.sent,Jn.status===0&&(U.b.success(Jn.message),Ti({type:"pathsDetail/getPathsDetail",payload:{id:Oi.pathId}}),parseInt((ra=ir.course_status)===null||ra===void 0?void 0:ra.status)===1&&Object(pe.S)("".concat(ir==null?void 0:ir.first_category_url)));case 4:case"end":return fa.stop()}},Gr)}));function In(){return xr.apply(this,arguments)}return In}()})},Fr=function(){var Rn=Object(k.a)(p.a.mark(function xr(){var In,Gr,Jn;return p.a.wrap(function(Nr){for(;;)switch(Nr.prev=Nr.next){case 0:if(Object(he.e)(Ti)){Nr.next=2;break}return Nr.abrupt("return");case 2:return nr(!0),Nr.next=5,Object(Ut.a)("/api/payments.json",{method:"POST",body:{subject_id:Oi.pathId,payment_method:"wechat_qr"}});case 5:In=Nr.sent,In!=null&&In.num&&(nr(!1),l.d.push(rs!=null&&(Gr=rs.query)!==null&&Gr!==void 0&&Gr.userid?"/order/".concat(Oi.pathId,"/pay?order_num=").concat(In==null?void 0:In.num,"&userid=").concat(rs==null||((Jn=rs.query)===null||Jn===void 0)?void 0:Jn.userid):"/order/".concat(Oi.pathId,"/pay?order_num=").concat(In==null?void 0:In.num)));case 7:case"end":return Nr.stop()}},xr)}));return function(){return Rn.apply(this,arguments)}}(),Ga=function(){var Rn=Object(k.a)(p.a.mark(function xr(In,Gr){var Jn;return p.a.wrap(function(Nr){for(;;)switch(Nr.prev=Nr.next){case 0:if(Ti({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!Gr){Nr.next=7;break}return Nr.next=4,Object(qr.D)({id:In});case 4:Nr.t0=Nr.sent,Nr.next=10;break;case 7:return Nr.next=9,Object(qr.E)({id:In});case 9:Nr.t0=Nr.sent;case 10:if(Jn=Nr.t0,Ti({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(Jn!=null&&Jn.game_identifier||Jn!=null&&Jn.identifier)){Nr.next=15;break}return Object(pe.S)(Gr?"/tasks/".concat(Jn==null?void 0:Jn.identifier,"/jupyter"):"/tasks/".concat(Jn.game_identifier)),Nr.abrupt("return");case 15:(Jn==null?void 0:Jn.status)===2?ma(Jn==null?void 0:Jn.message):(Jn==null?void 0:Jn.status)===3&&Wr(Jn==null?void 0:Jn.message);case 16:case"end":return Nr.stop()}},xr)}));return function(In,Gr){return Rn.apply(this,arguments)}}(),Wr=function(xr){g.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",xr,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},ma=function Rn(xr){var In;xr=(In=xr)!==null&&In!==void 0&&In.includes(".json")?xr:"".concat(xr,".json"),g.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var Gr=Object(k.a)(p.a.mark(function ra(){var Nr,fa;return p.a.wrap(function(Ya){for(;;)switch(Ya.prev=Ya.next){case 0:return Ya.next=2,Object(Rr.T)({url:xr});case 2:if(Nr=Ya.sent,Nr){Ya.next=5;break}return Ya.abrupt("return");case 5:return U.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Ya.next=8,Object(qr.E)({id:Nr.shixun_identifier});case 8:if(fa=Ya.sent,!(fa!=null&&fa.game_identifier)){Ya.next=12;break}return Object(pe.S)("/tasks/".concat(fa.game_identifier)),Ya.abrupt("return");case 12:(fa==null?void 0:fa.status)===2?Rn(fa==null?void 0:fa.message):(fa==null?void 0:fa.status)===3&&Wr(fa==null?void 0:fa.message);case 13:case"end":return Ya.stop()}},ra)}));function Jn(){return Gr.apply(this,arguments)}return Jn}()})},ga=function(){var xr;if(!Object(he.e)(Ti))return;var In=[];Pn==null||((xr=Pn.stageData)===null||xr===void 0)||xr.forEach(function(Jn){var ra;if(Jn.items&&(ra=Jn.items)!==null&&ra!==void 0&&ra.length){var Nr;(Nr=Jn.items)===null||Nr===void 0||Nr.forEach(function(fa){var yi;In.push(fa),fa.children&&(yi=fa.children)!==null&&yi!==void 0&&yi.length&&(In=In.concat(fa.children))})}});var Gr=In.find(function(Jn){return["VideoItem","Attachment","Shixun"].includes(Jn.item_type)});if(console.log(Gr,"stageParam"),Gr.item_type==="VideoItem"){Object(pe.S)("/video/".concat(Gr.id,"?subject_id=").concat(Oi.pathId));return}if(Gr.item_type==="Attachment"){Object(pe.S)(Gr.url);return}if(Gr.item_type==="Shixun"){Ga(Gr.identifier,Gr.is_jupyter);return}},Na=function(){var xr,In,Gr,Jn,ra=(xr=Pn.detail)===null||xr===void 0||((In=xr.learning_status)===null||In===void 0)?void 0:In[0],Nr=(Gr=Pn.detail)===null||Gr===void 0||((Jn=Gr.learning_status)===null||Jn===void 0)?void 0:Jn[1];if(ra==="can")return t.a.createElement(c.a,{onClick:ga,type:"primary"},"\u5F00\u59CB\u5B66\u4E60");if(ra==="disabled"){if(Nr==="try"||Nr==="unpayed")return t.a.createElement(c.a,{loading:On,onClick:Fr,type:"primary"},"\u7ACB\u5373\u8D2D\u4E70");if(Nr==="expired")return t.a.createElement(c.a,{disabled:!0,type:"primary"},"\u5DF2\u8FC7\u671F");if(Nr==="buyed")return t.a.createElement(c.a,{disabled:!0,type:"primary"},"\u672A\u5F00\u59CB")}},La=function(){var Rn=Object(k.a)(p.a.mark(function xr(){var In,Gr,Jn,ra,Nr,fa,yi,Ya,Bo,Ho,el,Io;return p.a.wrap(function(cs){for(;;)switch(cs.prev=cs.next){case 0:if(Ho=function(){var dl=Object(k.a)(p.a.mark(function Ds(){var Rl;return p.a.wrap(function(bs){for(;;)switch(bs.prev=bs.next){case 0:return bs.next=2,Object(Ut.a)("/api/users/".concat(ts.userInfo.login,"/subjects/request_certificate.json?subject_id=").concat(Oi.pathId),{method:"post"});case 2:Rl=bs.sent,(Rl==null?void 0:Rl.status)===0&&(U.b.info("\u63D0\u4EA4\u6210\u529F"),Ti({type:"pathsDetail/getRightData",payload:{id:Oi.pathId}}));case 4:case"end":return bs.stop()}},Ds)}));return function(){return dl.apply(this,arguments)}}(),(In=ts.userInfo)!==null&&In!==void 0&&In.professional_certification){cs.next=4;break}return g.a.confirm({title:"\u63D0\u793A",centered:!0,content:t.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(pe.S)("/account/certification")}}),cs.abrupt("return",!1);case 4:if(!(((Gr=Pn.rightData)===null||Gr===void 0||((Jn=Gr.progress)===null||Jn===void 0)?void 0:Jn.certificated)==="drafted")){cs.next=6;break}return cs.abrupt("return",!1);case 6:if(!(((ra=Pn.rightData)===null||ra===void 0||((Nr=ra.progress)===null||Nr===void 0)?void 0:Nr.certificated)==="none"||((fa=Pn.rightData)===null||fa===void 0||((yi=fa.progress)===null||yi===void 0)?void 0:yi.certificated)==="rejected")){cs.next=9;break}return((el=Pn.rightData)===null||el===void 0?void 0:el.progress.learned)===100?g.a.info({title:"\u7533\u8BF7\u8BC1\u4E66",icon:null,className:"custom-modal-divider",centered:!0,width:400,content:'\u7533\u8BF7\u6210\u529F\uFF0C\u53EF\u4EE5\u5728\u4E2A\u4EBA\u4E2D\u5FC3"\u6211\u7684\u8BC1\u4E66"\u4E2D\u67E5\u770B',okText:"\u786E\u5B9A\u7533\u8BF7",onOk:Ho}):g.a.confirm({title:"\u7533\u8BF7\u8BC1\u4E66",icon:null,className:"custom-modal-divider",centered:!0,width:400,content:"\u4F60\u76EE\u524D\u5B66\u4E60\u8FDB\u5EA6\u4E3A".concat((Io=Pn.rightData)===null||Io===void 0?void 0:Io.progress.learned,"%\uFF0C\u5EFA\u8BAE\u7533\u8BF7\u540E\u7EE7\u7EED\u8FDB\u884C\u8BFE\u7A0B\u5B66\u4E60"),okText:"\u786E\u5B9A\u7533\u8BF7",onOk:Ho}),cs.abrupt("return",!1);case 9:((Ya=Pn.rightData)===null||Ya===void 0||((Bo=Ya.progress)===null||Bo===void 0)?void 0:Bo.certificated)==="passed"&&ko(!0);case 10:case"end":return cs.stop()}},xr)}));return function(){return Rn.apply(this,arguments)}}(),Vi=!!((Bt=Pn.detail)!==null&&Bt!==void 0&&Bt.participant_count)&&!(($t=Pn.detail)!==null&&$t!==void 0&&$t.allow_statistics),$a=((cn=Pn.detail)===null||cn===void 0||((Wt=cn.courses)===null||Wt===void 0)?void 0:Wt.findIndex(function(Rn){return(Rn==null?void 0:Rn.course_id)===(ir==null?void 0:ir.course_id)}))+1,ys=$a===((_n=Pn.detail)===null||_n===void 0||((rn=_n.courses)===null||rn===void 0)?void 0:rn.length);return t.a.createElement("section",{className:Qe.a.rightWrap},((Ht=Pn.rightData)===null||Ht===void 0?void 0:Ht.qrcode_img)&&t.a.createElement("div",{className:Qe.a.qrCode},t.a.createElement("img",{src:(An=Pn.rightData)===null||An===void 0?void 0:An.qrcode_img})),((qt=Pn.rightData)===null||qt===void 0?void 0:qt.progress)&&t.a.createElement("div",{className:"".concat(Qe.a.card," ").concat(Qe.a.cardTop),style:{top:(En=Pn.detail)!==null&&En!==void 0&&(kn=En.courses)!==null&&kn!==void 0&&kn.length?"-140px":"-70px"}},parseInt(ir==null||((Yt=ir.course_status)===null||Yt===void 0)?void 0:Yt.status)===2&&ir.course_identity<6&&t.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F"),parseInt((wn=ir.course_status)===null||wn===void 0?void 0:wn.status)===2&&(ir.course_identity<6?"":t.a.createElement("div",{className:"current mr20 c-grey-9b9 font14"},"\u5DF2\u7ED3\u675F")),t.a.createElement("div",{className:Qe.a.flexRow},Vi&&!!((ln=Pn.detail)!==null&&ln!==void 0&&(xn=ln.courses)!==null&&xn!==void 0&&xn.length)&&ys&&t.a.createElement("span",{className:"mt20"},t.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(an=Pn.detail)===null||an===void 0?void 0:an.student_count," ","\u4EBA\u65F6\u5373\u5C06\u5F00\u8BFE"),t.a.createElement("p",{className:""},"\u5F53\u524D\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\uFF1A",t.a.createElement("span",{className:"mr5 c-red-ee4"},Wn===!0?((Vt=Pn.detail)===null||Vt===void 0?void 0:Vt.participant_count)+1:(Sn=Pn.detail)===null||Sn===void 0?void 0:Sn.participant_count),"\u4EBA")),Vi&&!((hr=Pn.detail)!==null&&hr!==void 0&&(pn=hr.courses)!==null&&pn!==void 0&&pn.length)&&ys&&t.a.createElement("span",null,!((Dn=Pn.detail)!==null&&Dn!==void 0&&Dn.has_participate)&&(Wn===!0?t.a.createElement("span",{className:"".concat(Qe.a.classButton," ").concat(Qe.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):t.a.createElement("a",{className:"".concat(Qe.a.classButton," ").concat(Qe.a.bg28e),onClick:Rs},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D")),((Nn=Pn.detail)===null||Nn===void 0?void 0:Nn.has_participate)&&t.a.createElement("span",{className:"".concat(Qe.a.classButton," ").concat(Qe.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),t.a.createElement("span",{className:"mr10"},"\u5F53\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\u8FBE\u5230 ",(Gn=Pn.detail)===null||Gn===void 0?void 0:Gn.student_count," ","\u4EBA\u65F6\u5373\u5C06\u5F00\u8BFE"),t.a.createElement("p",{className:""},"\u5F53\u524D\u9884\u7EA6\u62A5\u540D\u4EBA\u6570\uFF1A",t.a.createElement("span",{className:"mr5 c-red-ee4"},Wn===!0?((yn=Pn.detail)===null||yn===void 0?void 0:yn.participant_count)+1:(Kn=Pn.detail)===null||Kn===void 0?void 0:Kn.participant_count),"\u4EBA"))),parseInt(ir==null||((or=ir.course_status)===null||or===void 0)?void 0:or.status)===1&&t.a.createElement("div",{className:"mr20 c-red-ee4"},ir==null||((gr=ir.course_status)===null||gr===void 0)?void 0:gr.time),t.a.createElement("p",{style:{display:ir.course_identity<6?"":"none"},className:"mb10 mt10 ".concat(Qe.a.flexRowAbout)},t.a.createElement("span",{style:{display:((Ur=ir.course_status)===null||Ur===void 0?void 0:Ur.status)<=1?"":"none"},className:"c-light-green font14"},"\u5DF2\u5B66",(er=Pn.rightData)===null||er===void 0?void 0:er.progress.learned,"%"),t.a.createElement("span",{style:{display:((rr=ir.course_status)===null||rr===void 0?void 0:rr.status)<=1?"":"none"},className:"c-light-black"},"\u5B66\u4E60\u8017\u65F6",Object(pe.bb)((Lr=Pn.rightData)===null||Lr===void 0?void 0:Lr.progress.time)," "),((Er=Pn.rightData)===null||Er===void 0||((_r=Er.progress)===null||_r===void 0)?void 0:_r.certificated)!="disabled"&&t.a.createElement(c.a,{disabled:((sa=Pn.rightData)===null||sa===void 0||((ta=sa.progress)===null||ta===void 0)?void 0:ta.certificated)==="drafted",onClick:La},((tr=Pn.rightData)===null||tr===void 0||((vr=tr.progress)===null||vr===void 0)?void 0:vr.certificated)==="none"&&"\u7533\u8BF7\u8BC1\u4E66",((ja=Pn.rightData)===null||ja===void 0||((ia=ja.progress)===null||ia===void 0)?void 0:ia.certificated)==="rejected"&&"\u7533\u8BF7\u8BC1\u4E66",((Yn=Pn.rightData)===null||Yn===void 0||((vn=Yn.progress)===null||vn===void 0)?void 0:vn.certificated)==="drafted"&&"\u5BA1\u6838\u4E2D",((yr=Pn.rightData)===null||yr===void 0||((oi=yr.progress)===null||oi===void 0)?void 0:oi.certificated)==="passed"&&"\u67E5\u770B\u8BC1\u4E66")),t.a.createElement(s.a,{placement:"bottom",title:"\u5B8C\u6210\u8BFE\u7A0B\u540E\u53EF\u83B7\u53D6\u8BC1\u4E66\uFF01",color:"yellow"}," ",t.a.createElement(mt.a,{percent:(Cr=Pn.rightData)===null||Cr===void 0?void 0:Cr.progress.learned,showInfo:!1,style:{display:((Ir=ir.course_status)===null||Ir===void 0?void 0:Ir.status)<=1&&ir.course_identity<6?"":"none"},status:"active",strokeColor:{"0%":"#29BD8B","100%":"#29BD8B"}})),parseInt((fr=ir.course_status)===null||fr===void 0?void 0:fr.status)===2&&((ar=Pn.detail)===null||ar===void 0?void 0:ar.allow_add_member)&&t.a.createElement("a",{className:Qe.a.classButton,href:"".concat(ir==null?void 0:ir.first_category_url),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"),parseInt((Ln=ir.course_status)===null||Ln===void 0?void 0:Ln.status)===1&&ir.course_identity>5&&t.a.createElement("div",{className:Qe.a.classButton,onClick:ea},"\u7ACB\u5373\u52A0\u5165"),parseInt((Mn=ir.course_status)===null||Mn===void 0?void 0:Mn.status)===1&&ir.course_identity===5&&t.a.createElement("a",{className:Qe.a.classButton,href:"".concat(ir==null?void 0:ir.first_category_url),target:"_blank"},"\u7ACB\u5373\u5B66\u4E60"),parseInt((gn=ir.course_status)===null||gn===void 0?void 0:gn.status)===0&&ir.course_identity>5&&t.a.createElement("div",{className:Qe.a.classButton,onClick:ea},"\u7ACB\u5373\u62A5\u540D"),parseInt((qn=ir.course_status)===null||qn===void 0?void 0:qn.status)===0&&ir.course_identity===5&&t.a.createElement("div",{className:Qe.a.classButton},"\u62A5\u540D\u6210\u529F"),(parseInt(ir==null||((na=ir.course_status)===null||na===void 0)?void 0:na.status)===0||parseInt(ir==null||((cr=ir.course_status)===null||cr===void 0)?void 0:cr.status)===1)&&ir.course_identity<5&&t.a.createElement("a",{className:Qe.a.classButton,href:"".concat(ir==null?void 0:ir.first_category_url),target:"_blank"},"\u8FDB\u5165\u8BFE\u5802"),Vi&&ys&&((jr=Pn.detail)===null||jr===void 0?void 0:jr.has_participate)&&t.a.createElement("span",{className:"".concat(Qe.a.classButton," ").concat(Qe.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"),Vi&&ys&&!((Pa=Pn.detail)!==null&&Pa!==void 0&&Pa.has_participate)&&(Wn?t.a.createElement("span",{className:"".concat(Qe.a.classButton," ").concat(Qe.a.bgGray)},"\u9884\u7EA6\u62A5\u540D\u6210\u529F"):t.a.createElement("span",{className:"".concat(Qe.a.classButton," ").concat(Qe.a.bg28e),onClick:Rs},"\u671F\u5F85\u5F00\u8BFE\u5E76\u9884\u7EA6\u62A5\u540D")),!((da=Pn.detail)!==null&&da!==void 0&&da.excellent)&&((ba=Pn.detail)===null||ba===void 0?void 0:ba.is_free)!==!0&&t.a.createElement("div",{className:Qe.a.price},t.a.createElement("ul",null,t.a.createElement("li",{className:Qe.a.li1},!!((ha=Pn.detail)!==null&&ha!==void 0&&ha.origin_price)&&t.a.createElement("div",{className:Qe.a.discounts},"\u9650\u65F6\u4F18\u60E0"),t.a.createElement("div",{className:Qe.a.realPrice},t.a.createElement("span",null,"\uFFE5"),(Ta=Pn.detail)===null||Ta===void 0?void 0:Ta.price),!!((Da=Pn.detail)!==null&&Da!==void 0&&Da.origin_price)&&t.a.createElement("div",{className:Qe.a.lineationPrice},t.a.createElement("span",null,"\uFFE5"),(Ua=Pn.detail)===null||Ua===void 0?void 0:Ua.origin_price)),t.a.createElement("li",{className:Qe.a.li2},"\u8BFE\u7A0B\u6709\u6548\u671F\uFF1A",((Qr=Pn.detail)===null||Qr===void 0||((Wa=Qr.expiration_type)===null||Wa===void 0)?void 0:Wa.clazz)==="1"&&"\u6C38\u4E45\u6709\u6548",((Ea=Pn.detail)===null||Ea===void 0||((za=Ea.expiration_type)===null||za===void 0)?void 0:za.clazz)==="2"&&"\u8D2D\u4E70\u540E".concat((hi=Pn.detail)===null||hi===void 0||((Ji=hi.expiration_type)===null||Ji===void 0||((Li=Ji.days)===null||Li===void 0))?void 0:Li[0],"\u5929\u5185\u6709\u6548"),((Ci=Pn.detail)===null||Ci===void 0||((Uo=Ci.expiration_type)===null||Uo===void 0)?void 0:Uo.clazz)==="3"&&"".concat((Ao=Pn.detail)===null||Ao===void 0||((_o=Ao.expiration_type)===null||_o===void 0||((as=_o.days)===null||as===void 0))?void 0:as.join("\u5230")))),Na()),t.a.createElement("p",{className:"mb30",style:{marginTop:"15px"}},t.a.createElement("span",{className:"font16",style:{display:"flex",alignItems:"center"}},t.a.createElement("img",{style:{marginRight:"10px"},src:Ca.a})," ",(fs=Pn.detail)===null||fs===void 0?void 0:fs.learning_notes_title)),t.a.createElement("div",{ref:Gi},t.a.createElement(Rt.a,{className:"fon16",value:(is=Pn.detail)===null||is===void 0?void 0:is.learning_notes}))),!!((os=Pn.rightData)!==null&&os!==void 0&&(So=os.members)!==null&&So!==void 0&&So.length)&&t.a.createElement("div",{className:"".concat(Qe.a.card," pb0"),style:{marginTop:(ps=Pn.detail)!==null&&ps!==void 0&&(Qi=ps.courses)!==null&&Qi!==void 0&&Qi.length?-135:-65}},(Aa=Pn.detail)!==null&&Aa!==void 0&&Aa.allow_add_member?Ks():t.a.createElement("span",{style:{fontSize:"16px",display:"flex",alignItems:"center"}}," ",t.a.createElement("img",{style:{marginRight:"10px"},src:ya.a})," ",(wi=Pn.rightData)===null||wi===void 0?void 0:wi.team_title),ks&&t.a.createElement(tt,{setisupdate:Zs,isupdate:Sl,data:(vi=Pn.rightData)===null||vi===void 0?void 0:vi.members,operation:(vo=Pn.detail)===null||vo===void 0?void 0:vo.allow_add_member,handleDeleteMember:qs}),!ks&&t.a.createElement("div",{style:{width:"100%"}},(uo=Pn.rightData)===null||uo===void 0||((Ki=uo.members)===null||Ki===void 0)?void 0:Ki.map(function(Rn){var xr,In,Gr,Jn,ra,Nr,fa,yi;return t.a.createElement("div",{style:{display:"inline-block",width:"33%",padding:"5px",background:"#fff",marginTop:"10px"}},t.a.createElement("div",{className:je.a.directionItemWrap},t.a.createElement(s.a,{color:"#ffffff",placement:"bottom",title:t.a.createElement("div",{className:je.a.teamHeight},t.a.createElement("span",{title:Rn==null?void 0:Rn.name,style:{fontSize:"14px",color:"#333333",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"80px",overflow:"hidden"}},(Rn==null||((xr=Rn.name)===null||xr===void 0)?void 0:xr.length)>6?(Rn==null||((In=Rn.name)===null||In===void 0)?void 0:In.substr(0,6))+"...":(Rn==null?void 0:Rn.name)||"--"),t.a.createElement("span",{style:{marginLeft:"10px",color:"#999999",fontSize:"12px"}},(Rn==null||((Gr=Rn.school)===null||Gr===void 0)?void 0:Gr.length)>9?(Rn==null||((Jn=Rn.school)===null||Jn===void 0)?void 0:Jn.substr(0,9))+"...":Rn==null?void 0:Rn.school),t.a.createElement("div",{style:{height:"1px",width:"100%",border:"1px solid #f5f5f5",marginTop:"3px",marginBottom:"3px"}}),!(Rn!=null&&Rn.brief_introduction)&&t.a.createElement("div",{style:{textAlign:"center",marginTop:"20px"}},"\u6682\u65E0\u7B80\u4ECB"),(Rn==null?void 0:Rn.brief_introduction)&&t.a.createElement("div",{className:je.a.divHeight},Rn==null?void 0:Rn.brief_introduction))},t.a.createElement("img",{draggable:!1,className:je.a.imgradius,onClick:function(){},src:ut.a.API_SERVER+"/images/"+(Rn==null?void 0:Rn.image_url)}),t.a.createElement("div",null,(Rn==null||((ra=Rn.name)===null||ra===void 0)?void 0:ra.length)>6?(Rn==null||((Nr=Rn.name)===null||Nr===void 0)?void 0:Nr.substr(0,6))+"...":(Rn==null?void 0:Rn.name)||"--",t.a.createElement("br",null),t.a.createElement("span",{style:{color:"#999999"}},(Rn==null||((fa=Rn.school)===null||fa===void 0)?void 0:fa.length)>6?(Rn==null||((yi=Rn.school)===null||yi===void 0)?void 0:yi.substr(0,6))+"...":(Rn==null?void 0:Rn.school)||"--"))),t.a.createElement("br",null)))})),((ss=Pn.detail)===null||ss===void 0?void 0:ss.allow_add_member)&&t.a.createElement(Ae.a,{gutter:[0,40],justify:"center",align:"middle",className:"bg-white mt0"},t.a.createElement(ie.a,{className:"c-blue current",onClick:Ol},"+ \u6DFB\u52A0\u5408\u4F5C\u8005"))),!!((ls=Pn.rightData)!==null&&ls!==void 0&&(qo=ls.tags)!==null&&qo!==void 0&&qo.length)&&((fo=Pn.detail)===null||fo===void 0?void 0:fo.show_tag)&&t.a.createElement("div",{className:Qe.a.skillWrap},t.a.createElement("p",{className:"".concat(Qe.a.skillTopWrap," font16 mb20")},t.a.createElement("span",null,"\u6280\u80FD\u6807\u7B7E",t.a.createElement("span",{className:"ml5 c-grey-c"},(zo=Pn.rightData)===null||zo===void 0||((yo=zo.tags)===null||yo===void 0)?void 0:yo.length))),t.a.createElement(Si.a,{option:Is(),style:{height:370},opts:{renderer:"svg"}})),((es=Pn.detail)===null||es===void 0?void 0:es.show_spoc)===1&&t.a.createElement("div",{className:"".concat(Qe.a.card," pb0"),style:{marginTop:15}},t.a.createElement("p",{className:"font16",style:{display:"flex",alignItems:"center"}},t.a.createElement("img",{style:{marginRight:"10px"},src:fi.a}),"SPOC\u8BFE\u5802"),t.a.createElement(lr,{data:(Go=Pn.Courses)===null||Go===void 0?void 0:Go.spoc_courses,handleDeleteMember:yl}),((Oa=Pn.detail)===null||Oa===void 0?void 0:Oa.show_spoc)===1&&(Pn==null||((la=Pn.Courses)===null||la===void 0||((xi=la.spoc_courses)===null||xi===void 0))?void 0:xi.length)<3&&((Zi=Pn.detail)===null||Zi===void 0?void 0:Zi.allow_add_member)&&t.a.createElement(Ae.a,{gutter:[0,40],justify:"center",align:"middle",className:"bg-white mt0"},t.a.createElement(ie.a,{className:"c-blue current",onClick:function(){return vs()}},"+ \u6DFB\u52A0\u8BFE\u5802"))),((Oo=Pn.detail)===null||Oo===void 0?void 0:Oo.show_history)&&t.a.createElement("div",{className:"".concat(Qe.a.card," pb0"),style:{marginTop:15}},t.a.createElement("p",{className:"font16",style:{display:"flex",alignItems:"center"}},t.a.createElement("img",{style:{marginRight:"10px"},src:fi.a}),"\u5386\u53F2\u8BFE\u5802"),t.a.createElement(lr,{data:ki==null?void 0:ki.spoc_courses,handleDeleteMember:yl}),((co=Pn.detail)===null||co===void 0?void 0:co.show_history)&&(ki==null||((No=ki.spoc_courses)===null||No===void 0)?void 0:No.length)<3&&((Wi=Pn.detail)===null||Wi===void 0?void 0:Wi.allow_add_member)&&t.a.createElement(Ae.a,{gutter:[0,40],justify:"center",align:"middle",className:"bg-white mt0"},t.a.createElement(ie.a,{className:"c-blue current",onClick:function(){return vs(1)}},"+ \u6DFB\u52A0\u8BFE\u5802"))),t.a.createElement(Mr,{onReloadData:Bs}),t.a.createElement(Un,{onReloadData:Bs,data:ki}),t.a.createElement(sn,{visible:Yo,onCancel:function(){ko(!1)},data:((Ai=Pn.rightData)===null||Ai===void 0||((Vo=Ai.progress)===null||Vo===void 0)?void 0:Vo.info)||{}}))},_i=Object(l.a)(function(lt){var qe=lt.pathsDetail,Bt=lt.user,$t=lt.loading,cn=lt.globalSetting,Wt=lt.classroomList;return{pathsDetail:qe,user:Bt,globalSetting:cn,loading:$t.models.index,classroomList:Wt}})(mi),ai=v("cWXX"),Hi=v("/ezw"),Yi=v("VlDO"),$r=v.n(Yi),ua=v("bbsP"),Pr=v("/wGt"),ca=v("DjyN"),Jr=v("NUBc"),ri=v("/zsF"),pa=v("PArb"),mo=v("vkP9"),Di=v("cCSd"),ci=v.n(Di),Wo=Ne.a.Search,Mo=[{id:"type",name:"\u7B5B\u9009",children:[{name:"\u5168\u90E8\u5B9E\u8BAD",id:"all",type:"type"},{name:"\u6211\u7684\u5B9E\u8BAD",id:"mine",type:"type"}]},{id:"diff",name:"\u96BE\u5EA6",children:[{name:"\u5168\u90E8",id:"",type:"diff"},{name:"\u521D\u7EA7",id:1,type:"diff"},{name:"\u4E2D\u7EA7",id:2,type:"diff"},{name:"\u4E2D\u9AD8\u7EA7",id:3,type:"diff"},{name:"\u9AD8\u7EA7",id:4,type:"diff"}]}],ii=function(qe){var Bt,$t=qe.classroomList,cn=qe.loading,Wt=qe.dispatch,_n=qe.cb,rn=qe.shixunIds,Ht=rn===void 0?[]:rn,An=Object(A.i)(),qt=Object(A.h)(),En=$t.actionTabs,kn=dt.a.useForm(),Yt=Object(_.a)(kn,1),wn=Yt[0],ln=$t.shixunLists,xn=Object(a.useState)([]),an=Object(_.a)(xn,2),Vt=an[0],Sn=an[1],hr=Object(a.useState)({page:1,type:"all",diff:0,status:"all",order:"desc",limit:20,sort:"myshixuns_count"}),pn=Object(_.a)(hr,2),Dn=pn[0],Nn=pn[1];Object(a.useEffect)(function(){$t.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"&&(Dn.page=1,Wt({type:"classroomList/getShixunLists",payload:Object(I.a)({},Dn)}))},[$t.actionTabs.key]),Object(a.useEffect)(function(){return $t.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"?document.body.setAttribute("data-custom","height"):document.body.removeAttribute("data-custom"),function(){document.body.removeAttribute("data-custom")}},[$t.actionTabs.key]);var Gn=function(){Wt({type:"classroomList/setActionTabs",payload:{}}),Nn({page:1,type:"all",diff:0,status:"all",order:"desc",limit:20,sort:"myshixuns_count"})};return $t.actionTabs.key!=="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"?null:t.a.createElement(Pr.a,{placement:"bottom",height:"100%",closable:!1,visible:$t.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",key:"bottom",className:ci.a.drawer,footer:t.a.createElement("div",{className:"tc"},t.a.createElement(c.a,{size:"large",onClick:function(){Gn(),Sn([]),_n("\u53D6\u6D88")},style:{marginRight:8}},"\u53D6\u6D88"),t.a.createElement(c.a,{size:"large",onClick:Object(k.a)(p.a.mark(function yn(){var Kn,or,gr,Ur;return p.a.wrap(function(rr){for(;;)switch(rr.prev=rr.next){case 0:Kn=function(Er){var _r=Vt[Er];if(Ht.includes(_r)){var sa,ta;return U.b.info("\u8BF7\u52FF\u91CD\u590D\u9009\u62E9\uFF1A".concat(ln==null||((sa=ln.shixun_list)===null||sa===void 0||((ta=sa.find(function(tr){return tr.id===_r}))===null||ta===void 0))?void 0:ta.title)),{v:void 0}}},or=0;case 2:if(!(or<(Vt==null?void 0:Vt.length))){rr.next=9;break}if(gr=Kn(or),!(typeof gr=="object")){rr.next=6;break}return rr.abrupt("return",gr.v);case 6:or++,rr.next=2;break;case 9:return rr.next=11,Object(B.O)({id:$t.actionTabs.id,subject_id:$t.actionTabs.subject_id,shixun_ids:Object(d.a)(Vt)});case 11:Ur=rr.sent,Sn([]),Ur!=null&&Ur.shixuns_list&&(Gn(),_n(Ur.shixuns_list));case 14:case"end":return rr.stop()}},yn)})),type:"primary"},"\u786E\u5B9A"))},t.a.createElement("section",{className:"tc"},t.a.createElement(mo.a,{onChange:function(Kn){Nn(Object(I.a)(Object(I.a)(Object(I.a)({},Dn),Kn),{},{page:1})),Wt({type:"classroomList/getShixunLists",payload:Object(I.a)(Object(I.a)(Object(I.a)({},Dn),Kn),{},{page:1})})}})),t.a.createElement("section",{className:"edu-container"},Mo.map(function(yn,Kn){var or;return t.a.createElement("ul",{className:ci.a.menu,key:Kn},t.a.createElement("li",null,yn.name),yn==null||((or=yn.children)===null||or===void 0)?void 0:or.map(function(gr,Ur){return t.a.createElement("li",{className:Dn[yn.id]==gr.id?ci.a.actived:"",onClick:function(){Dn[yn.id]=gr.id,Nn(Object(I.a)({},Dn)),Wt({type:"classroomList/getShixunLists",payload:Object(I.a)({},Dn)})}},t.a.createElement("strong",null,gr.name))}))}),ln==null||((Bt=ln.shixun_list)===null||Bt===void 0)?void 0:Bt.map(function(yn,Kn){return t.a.createElement("div",{className:ci.a.listItem,key:Kn},t.a.createElement(te.a,{checked:Vt.includes(yn.id),value:yn.id,onChange:function(gr){var Ur=Vt.indexOf(yn.id);Vt.indexOf(yn.id)>-1?Sn(Vt.filter(function(er){return er!==yn.id})):Sn(Vt.concat(yn.id))}}),t.a.createElement("div",{className:ci.a.info},t.a.createElement("div",{className:ci.a.title},t.a.createElement("div",{className:ci.a.titleLeft},t.a.createElement("a",{className:"c-black",href:"/shixuns/".concat(yn==null?void 0:yn.identifier,"/challenges"),target:"_blank"},t.a.createElement("strong",{className:"font16",dangerouslySetInnerHTML:{__html:yn.title}})),Object(F.v)()&&(yn==null?void 0:yn.mark_status)===1&&t.a.createElement(s.a,{title:yn==null?void 0:yn.mark_content},t.a.createElement("span",{style:{marginRight:"auto",background:"#2FA34F"},className:"tag-style current ml10"},"\u6B63\u5E38")),Object(F.v)()&&(yn==null?void 0:yn.mark_status)===2&&t.a.createElement(s.a,{title:yn==null?void 0:yn.mark_content},t.a.createElement("span",{style:{marginRight:"auto",background:"#FF8C29"},className:"tag-style current ml10"},"\u9700\u5B8C\u5584")),Object(F.v)()&&(yn==null?void 0:yn.mark_status)===3&&t.a.createElement(s.a,{title:yn==null?void 0:yn.mark_content},t.a.createElement("span",{style:{marginRight:"auto",background:"#E53333"},className:"tag-style current ml10"},"\u65E0\u6CD5\u4F7F\u7528")))),t.a.createElement("div",{className:"flex-wrp mt10 font14 c-light-black"},t.a.createElement("span",{className:ci.a.description,dangerouslySetInnerHTML:{__html:yn.description}})),t.a.createElement("div",{className:" mt15"},yn.challenge_names.map(function(or,gr){return t.a.createElement("span",{key:gr,className:"mr30 font12"},"\u7B2C",gr+1,"\u5173 ",or," ")})),t.a.createElement(pa.a,{dashed:!0}),t.a.createElement("div",{className:"c-light-black mt20 font12"},t.a.createElement("span",null,yn.author_name),t.a.createElement("span",{className:"ml15 mr15"},"|"),t.a.createElement("span",null,yn.author_school_name),t.a.createElement("span",{className:"ml15 mr15"},"|"),t.a.createElement("span",null,"\u96BE\u5EA6\u7CFB\u6570:",yn.level),t.a.createElement("span",{className:"ml15 mr15"},"|"),t.a.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570:"),t.a.createElement("span",null,yn.study_count))))}),t.a.createElement("p",null)),t.a.createElement("div",{className:"tc"},t.a.createElement(Jr.a,{current:Dn.page||1,hideOnSinglePage:!0,showSizeChanger:!1,defaultPageSize:20,showQuickJumper:!0,total:ln==null?void 0:ln.shixuns_count,onChange:function(Kn){Dn.page=Kn,Wt({type:"classroomList/getShixunLists",payload:Object(I.a)({},Dn)})}})))},go=Object(l.a)(function(lt){var qe=lt.classroomList,Bt=lt.loading;return{classroomList:qe,loading:Bt}})(ii),no=v("Ot1p"),hs=v("qdXH"),xo=v("sBCT"),Cs=v("500L"),ws=v("giR+"),ho=v("fyUT"),As=v("dwhp"),mr=v("IxHN"),Vr=v("M8RZ"),ur=v("BdwD"),oa=v("9nDM"),wa=function(qe){var Bt=qe.user,$t=qe.onReplyDiscuss,cn=qe.dispatch,Wt=qe.id,_n=qe.activeDiscussIndex,rn=Object(a.useState)(""),Ht=Object(_.a)(rn,2),An=Ht[0],qt=Ht[1];function En(wn){qt(wn)}var kn=Object(A.i)();function Yt(){if(!An){U.b.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}$t(Wt,An),cn({type:"pathsDetail/getPathsDetail",payload:{id:kn.pathId}}),qt("")}return t.a.createElement("div",{key:Wt,className:"discuss-item-editor",style:{display:_n===Wt?"block":"none",width:"100%"}},t.a.createElement(no.a,{miniToolbar:!0,startInit:_n===Wt,defaultValue:An,id:Wt,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:En}),t.a.createElement("a",{onClick:Yt,className:"btn-send"},"\u53D1\u9001"))},ei=Object(l.a)(function(lt){var qe=lt.shixunsDetail,Bt=lt.loading,$t=lt.globalSetting;return{shixunsDetail:qe,globalSetting:$t,loading:Bt.models.index}})(wa),Ba=function(qe){var Bt=qe.user,$t=qe.upDataList,cn=qe.page,Wt=qe.getTypeNumber,_n=qe.dispatch,rn=Object(A.i)(),Ht=function(){var An=Object(k.a)(p.a.mark(function qt(En,kn){var Yt;return p.a.wrap(function(ln){for(;;)switch(ln.prev=ln.next){case 0:return ln.next=2,Object(B.M)({id:En,content:kn});case 2:Yt=ln.sent,(Yt==null?void 0:Yt.status)===0&&$t(1);case 4:case"end":return ln.stop()}},qt)}));return function(En,kn){return An.apply(this,arguments)}}();return t.a.createElement("div",{className:"discuss-item-container bg-white"},t.a.createElement("a",{href:"/users/".concat(Bt.login),target:"_blank"},t.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",src:"".concat(ut.a.IMG_SERVER,"/images/").concat(Bt.image_url),width:"50"})),t.a.createElement("section",null,t.a.createElement(ei,{id:rn.pathId,activeDiscussIndex:rn.pathId,onReplyDiscuss:Ht})))},Ni=Object(l.a)(function(lt){var qe=lt.shixunsDetail,Bt=lt.loading,$t=lt.globalSetting;return{shixunsDetail:qe,globalSetting:$t,loading:Bt.models.index}})(Ba),Ma=v("fXAG");function xa(lt){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Object(Ut.c)("/discusses.json?page=".concat(qe-1,"&container_identifier=").concat(lt,"&container_type=Shixun"))}function Po(lt,qe){return Object(Ut.f)("/discusses/".concat(lt,"/top_or_down_discuss.json"),{top:qe})}function Za(lt,qe){return Object(Ut.f)("/discusses/".concat(lt,"/plus.json"),{container_type:"Discuss",type:qe?1:0})}function ro(lt,qe){return Object(Ut.f)("/discusses/".concat(lt,"/hidden.json"),qe)}function so(lt,qe){return Object(Ut.f)("/discusses/".concat(lt,"/reward_code.json"),qe)}function To(lt){return Object(Ut.a)("/api/discusses/".concat(lt,".json"),{method:"delete"})}function Vs(lt,qe){return Object(Ut.f)("/discusses/".concat(lt,"/reply.json"),{container_type:"Shixun",content:qe})}function ti(lt){return Object(Ut.f)("/discusses.json",lt)}var Sa=v("QcdW"),Ia=v("kaH+");function Eo(lt){var qe=lt.data,Bt=lt.index,$t=lt.adminOrOperator,cn=lt.parentDiscussIndex,Wt=lt.shixunIdentifier,_n=lt.isDelete,rn=lt.user,Ht=lt.onSetRewardData,An=lt.onSetActionType,qt=lt.deleteCommentAlert,En=lt.shixunName,kn=qe.author,Yt=qe.can_delete,wn=qe.manage,ln=qe.content,xn=qe.hidden,an=qe.id,Vt=qe.reward,Sn=qe.time;function hr(){Ht({id:an,index:Bt,user_id:kn.user_id,parentDiscussIndex:cn})}function pn(){An({id:an,index:Bt,params:{hidden:xn?"0":"1",container_identifier:Wt},type:"hidden-discuss",parentDiscussIndex:cn,message:xn?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}function Dn(){if(qt){g.a.info({title:"\u63D0\u793A",content:t.a.createElement("div",{className:"tc"}," ","\u8BE5\u6761\u8BC4\u8BBA\u6765\u81EA\u300A",En,"\u300B\u5B9E\u8DF5\u9879\u76EE\uFF0C\u60A8\u4E0D\u662F\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u7BA1\u7406\u8005\uFF0C\u4E0D\u80FD\u5220\u9664\u8BC4\u8BBA\uFF01"),onOk:function(){}});return}An({id:an,index:Bt,type:"delete-discuss",parentDiscussIndex:cn,message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}return t.a.createElement("div",{className:"second-level-discuss"},t.a.createElement("div",{className:"discuss-info-body"},t.a.createElement("div",{className:"discuss-info"},t.a.createElement("a",{href:"/users/".concat(kn.login),target:"_blank"},kn.name),t.a.createElement("span",{className:"grey"},Sn),Vt?t.a.createElement("a",{className:"c-orange gift",title:"\u5DF2\u5956\u52B1\u91D1\u5E01".concat(Vt)},t.a.createElement("i",{className:"iconfont icon-gift c-orange "}),t.a.createElement("span",null,Vt)):null),t.a.createElement("div",{className:"btn-group"},$t?t.a.createElement("a",{onClick:hr,title:"\u7ED9TA\u5956\u52B1\u91D1\u5E01"},t.a.createElement("i",{className:"iconfont icon-jiangli"})):null,$t?t.a.createElement("a",{onClick:pn,title:xn?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},t.a.createElement("i",{className:xn?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,wn?t.a.createElement("a",{onClick:Dn,title:"\u5220\u9664"},t.a.createElement("i",{className:"iconfont icon-shanchu"})):null)),t.a.createElement(Rt.a,{className:"discuss-content",value:ln}))}var xs=function(lt){var qe=lt.data,Bt=lt.index,$t=lt.shixunIdentifier,cn=lt.adminOrOperator,Wt=lt.identity,_n=lt.onTopOrDownDiscuss,rn=lt.onPlusDiscuss,Ht=lt.onSetActionType,An=lt.onSetRewardData,qt=lt.user,En=lt.isDelete,kn=lt.activeDiscussIndex,Yt=lt.onReplyDiscuss,wn=lt.onSetActiveDiscussIndex,ln=qe.content,xn=qe.children,an=qe.game_url,Vt=qe.hidden,Sn=qe.id,hr=qe.position,pn=qe.praise_count,Dn=qe.reward,Nn=qe.sticky,Gn=qe.time,yn=qe.user_praise,Kn=qe.game_passed,or=qe.delete_comment_alert,gr=qe.author,Ur=qe.shixun_name,er=qe.manage;function rr(){wn(Sn)}function Lr(){_n(Sn,!Nn,Bt)}function Er(){rn(Sn,!yn,Bt)}function _r(){An({id:Sn,index:Bt,user_id:gr.user_id})}function sa(){if(or){g.a.info({title:"\u63D0\u793A",content:t.a.createElement("div",{className:"tc"}," ","\u8BE5\u6761\u8BC4\u8BBA\u6765\u81EA\u300A",Ur,"\u300B\u5B9E\u8DF5\u9879\u76EE\uFF0C\u60A8\u4E0D\u662F\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u7BA1\u7406\u8005\uFF0C\u4E0D\u80FD\u5220\u9664\u8BC4\u8BBA\uFF01"),onOk:function(){}});return}Ht({id:Sn,index:Bt,type:"delete-discuss",message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}function ta(){Ht({id:Sn,index:Bt,params:{hidden:Vt?"0":"1",container_identifier:$t},type:"hidden-discuss",message:Vt?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}var tr=function(ja){var ia=ja.target,Yn=ia.nodeName,vn=ia.src;Yn==="IMG"&&(Ka.a.publish("preview-image",vn),console.log("src:",vn))};return t.a.createElement("div",{className:"discuss-item-container",key:Sn},t.a.createElement("a",{href:"/users/".concat(gr.login),target:"_blank"},t.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",src:"".concat(ut.a.IMG_SERVER,"/images/").concat(gr.image_url),width:"50"})),t.a.createElement("section",null,t.a.createElement("div",{className:"discuss-info"},t.a.createElement("a",{href:"/users/".concat(gr.login),target:"_blank"},gr.name),t.a.createElement("span",{className:"grey"},Gn),hr?t.a.createElement("span",{className:"c-green"}," [\u7B2C",hr,"\u5173] "):null,an?t.a.createElement("a",{href:an,target:"_blank",className:"view-code",title:"\u70B9\u51FB\u67E5\u770BTA\u7684\u4EE3\u7801\u9875\u9762"},"\u67E5\u770B"):null,Dn?t.a.createElement("a",{className:"c-orange gift",title:"\u5DF2\u5956\u52B1\u91D1\u5E01".concat(Dn)},t.a.createElement("i",{className:"iconfont icon-gift c-orange "}),t.a.createElement("span",null,Dn)):null,Wt<=5?t.a.createElement("span",{style:{flex:"1",textAlign:"right",color:Kn===1?"#29bd8b":""}},Kn||Kn===0?Kn===1?"\u5DF2\u901A\u5173":"\u672A\u901A\u5173":""):null),t.a.createElement("div",{onClick:tr},t.a.createElement(Rt.a,{className:"discuss-content",value:ln})),xn&&xn.length>0?t.a.createElement("div",{className:"reply-discuss-container",onClick:tr},xn.map(function(vr,ja){return t.a.createElement(Eo,{key:vr.id,data:vr,index:ja,deleteCommentAlert:or,shixunName:Ur,shixunIdentifier:$t,adminOrOperator:cn,user:qt,isDelete:En,onSetRewardData:An,onSetActionType:Ht,parentDiscussIndex:Bt})})):null,t.a.createElement("div",{className:"btn-group"},cn?t.a.createElement("a",{onClick:_r,title:"\u7ED9TA\u5956\u52B1\u91D1\u5E01"},t.a.createElement("i",{className:"iconfont icon-jiangli"})):null,cn?t.a.createElement("a",{onClick:ta,title:Vt?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},t.a.createElement("i",{className:Vt?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,er&&(!xn||xn.length==0)&&t.a.createElement("a",{onClick:sa,title:"\u5220\u9664"},t.a.createElement("i",{className:"iconfont icon-shanchu"})),t.a.createElement("a",{onClick:rr,title:"\u56DE\u590D"},t.a.createElement("i",{className:"iconfont icon-huifu1"})),t.a.createElement("a",{onClick:Er,className:yn?"c-orange":""},t.a.createElement("i",{className:yn?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),t.a.createElement("span",null,pn||""))),t.a.createElement(ei,{id:Sn,activeDiscussIndex:kn,onReplyDiscuss:Yt})))},Ts={showRewardDialog:!1,data:null,page:1,loading:!1,actionType:null,activeDiscussIndex:null};function Xs(lt,qe){switch(qe.type){case Ma.Q:return Object(I.a)(Object(I.a)({},lt),{},{loading:!0});case Ma.X:return Object(I.a)(Object(I.a)({},lt),{},{showRewardDialog:!0});case Ma.b:return Object(I.a)(Object(I.a)({},lt),{},{showRewardDialog:!1});case Ma.l:return Object(I.a)(Object(I.a)({},lt),qe.payload);case Ma.ab:return Object(I.a)(Object(I.a)({},lt),qe.payload);case Ma.x:return Object(I.a)(Object(I.a)({},lt),qe.payload);case Ma.z:return Object(I.a)(Object(I.a)({},lt),qe.payload);case Ma.H:return Object(I.a)(Object(I.a)({},lt),qe.payload);case Ma.a:return Object(I.a)(Object(I.a)({},lt),qe.payload);default:throw new Error}}var Ys=function(lt){var qe=lt.shixunIdentifier,Bt=lt.identity,$t=lt.activeIndex,cn=lt.user,Wt=lt.isShixunDetail,_n=Wt===void 0?!1:Wt,rn=lt.isDelete,Ht=lt.getTypeNumber,An=Object(a.useReducer)(Xs,Ts),qt=Object(_.a)(An,2),En=qt[0],kn=qt[1],Yt=En.page,wn=En.loading,ln=En.data,xn=En.actionType,an=En.showRewardDialog,Vt=En.activeDiscussIndex,Sn=Object(a.useRef)(),hr=Object(a.useRef)(),pn=Object(A.i)();function Dn(Cr){return Nn.apply(this,arguments)}function Nn(){return Nn=Object(k.a)(p.a.mark(function Cr(Ir){var fr;return p.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:if(!wn){Ln.next=2;break}return Ln.abrupt("return");case 2:return Ln.prev=2,kn({type:Ma.Q}),Ln.next=6,Object(B.A)(Object(I.a)(Object(I.a)({},pn),{},{page:Ir}));case 6:fr=Ln.sent,kn({type:Ma.l,payload:{activeDiscussIndex:null,page:Ir,data:fr,loading:!1}}),Ln.next=13;break;case 10:Ln.prev=10,Ln.t0=Ln.catch(2),console.log(Ln.t0);case 13:case"end":return Ln.stop()}},Cr,null,[[2,10]])})),Nn.apply(this,arguments)}function Gn(Cr){document.body.scrollIntoView(),Dn(Cr)}function yn(Cr,Ir,fr){return Kn.apply(this,arguments)}function Kn(){return Kn=Object(k.a)(p.a.mark(function Cr(Ir,fr,ar){var Ln;return p.a.wrap(function(gn){for(;;)switch(gn.prev=gn.next){case 0:return gn.prev=0,gn.next=3,Za(Ir,fr);case 3:Ln=gn.sent,vn[ar].user_praise=fr,vn[ar].praise_count=Ln.praise_count,kn({type:Ma.x,payload:{data:Object(I.a)(Object(I.a)({},ln),{},{comments:vn})}}),gn.next=12;break;case 9:gn.prev=9,gn.t0=gn.catch(0),console.log(gn.t0);case 12:case"end":return gn.stop()}},Cr,null,[[0,9]])})),Kn.apply(this,arguments)}function or(Cr,Ir,fr){return gr.apply(this,arguments)}function gr(){return gr=Object(k.a)(p.a.mark(function Cr(Ir,fr,ar){return p.a.wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:return Mn.prev=0,Mn.next=3,Po(Ir,fr);case 3:vn[ar].sticky=fr,kn({type:Ma.ab,payload:{data:Object(I.a)(Object(I.a)({},ln),{},{comments:vn})}}),Mn.next=10;break;case 7:Mn.prev=7,Mn.t0=Mn.catch(0),console.log(Mn.t0);case 10:case"end":return Mn.stop()}},Cr,null,[[0,7]])})),gr.apply(this,arguments)}function Ur(){kn({type:Ma.z,payload:{actionType:null}})}function er(){return rr.apply(this,arguments)}function rr(){return rr=Object(k.a)(p.a.mark(function Cr(){var Ir,fr,ar,Ln,Mn,gn,qn,na;return p.a.wrap(function(jr){for(;;)switch(jr.prev=jr.next){case 0:if(Ir=xn.id,fr=xn.params,ar=xn.type,Ln=xn.index,Mn=xn.parentDiscussIndex,!(ar==="hidden-discuss")){jr.next=6;break}return jr.next=4,ro(Ir,fr);case 4:Mn?vn[Mn].children[Ln].hidden=fr.hidden==1:vn[Ln].hidden=fr.hidden==1,kn({type:Ma.z,payload:{actionType:null,data:Object(I.a)(Object(I.a)({},ln),{},{comments:vn})}});case 6:if(!(ar==="delete-discuss")){jr.next=31;break}return jr.next=9,To(Ir);case 9:if(!(Mn||Mn===0)){jr.next=22;break}gn=vn[Mn].children,qn=gn.length-1;case 12:if(!(qn>=0)){jr.next=19;break}if(!(gn[qn].id===Ir)){jr.next=16;break}return gn.splice(qn,1),jr.abrupt("break",19);case 16:qn--,jr.next=12;break;case 19:vn[Mn].children=gn,jr.next=30;break;case 22:na=vn.length-1;case 23:if(!(na>=0)){jr.next=30;break}if(!(vn[na].id===Ir)){jr.next=27;break}return vn.splice(na,1),jr.abrupt("break",30);case 27:na--,jr.next=23;break;case 30:kn({type:Ma.z,payload:{actionType:null,data:Object(I.a)(Object(I.a)({},ln),{},{comments:vn})}});case 31:case"end":return jr.stop()}},Cr)})),rr.apply(this,arguments)}function Lr(Cr){kn({type:Ma.z,payload:{actionType:Cr}})}function Er(){kn({type:Ma.b})}function _r(){return sa.apply(this,arguments)}function sa(){return sa=Object(k.a)(p.a.mark(function Cr(){var Ir,fr,ar,Ln,Mn,gn,qn;return p.a.wrap(function(cr){for(;;)switch(cr.prev=cr.next){case 0:return Ir=Sn.current,fr=Ir.id,ar=Ir.index,Ln=Ir.score,Mn=Ir.user_id,gn=Ir.parentDiscussIndex,cr.next=3,so(fr,{container_type:"Discusses",score:Ln,user_id:Mn});case 3:qn=cr.sent,gn?vn[gn].children[ar].reward=qn.code:vn[ar].reward=qn.code,kn({type:Ma.H,payload:{showRewardDialog:!1,data:Object(I.a)(Object(I.a)({},ln),{},{comments:vn})}}),Sn.current=null;case 7:case"end":return cr.stop()}},Cr)})),sa.apply(this,arguments)}function ta(Cr){Sn.current=Cr,kn({type:Ma.X})}function tr(Cr){Sn.current.score=Cr}function vr(Cr,Ir){return ja.apply(this,arguments)}function ja(){return ja=Object(k.a)(p.a.mark(function Cr(Ir,fr){return p.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return Ln.prev=0,Ln.next=3,Vs(Ir,fr);case 3:Dn(Yt),Ln.next=9;break;case 6:Ln.prev=6,Ln.t0=Ln.catch(0),console.log(Ln.t0);case 9:case"end":return Ln.stop()}},Cr,null,[[0,6]])})),ja.apply(this,arguments)}function ia(Cr){Vt===Cr?kn({type:Ma.a,payload:{activeDiscussIndex:null}}):kn({type:Ma.a,payload:{activeDiscussIndex:Cr}})}if(Object(a.useEffect)(function(){function Cr(){return Ir.apply(this,arguments)}function Ir(){return Ir=Object(k.a)(p.a.mark(function fr(){return p.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:if(!($t===3&&!ln&&qe)){Ln.next=3;break}return Ln.next=3,Dn(Yt);case 3:case"end":return Ln.stop()}},fr)})),Ir.apply(this,arguments)}Cr()},[pn.pathId]),!ln)return t.a.createElement(Q.a,{spinning:!0},t.a.createElement("div",{style:{height:"300px",width:"100%"}}));var Yn=ln.disscuss_count,vn=ln.comments,yr=ln.all,oi=ln.can_hidden;return t.a.createElement(a.Fragment,null,t.a.createElement("div",{className:"discuss-container",ref:hr},Yn===0?t.a.createElement(ur.a,null):null,Object(F.p)()&&t.a.createElement(Ni,{getTypeNumber:Ht,upDataList:Dn,page:Yt,user:cn}),t.a.createElement("aside",{className:"bg-white"},vn==null?void 0:vn.map(function(Cr,Ir){return t.a.createElement(xs,{user:cn,key:Cr.id,data:Cr,index:Ir,identity:Bt,onPaginationChange:Gn,shixunIdentifier:qe,isDelete:rn,onSetActionType:Lr,onTopOrDownDiscuss:or,adminOrOperator:oi,onPlusDiscuss:yn,onSetRewardData:ta,activeDiscussIndex:Vt,onSetActiveDiscussIndex:ia,onReplyDiscuss:vr})})),Yn>10?t.a.createElement("div",{className:"pagination-container tc"},t.a.createElement(Jr.a,{showQuickJumper:!0,showSizeChanger:!1,onChange:Gn,current:Yt,total:Yn})):null),t.a.createElement(Vr.a,null,t.a.createElement(g.a,{centered:!0,title:"\u63D0\u793A",visible:!!xn,onOk:er,onCancel:Ur},t.a.createElement("p",null,xn?xn.message:"")),t.a.createElement(g.a,{centered:!0,width:400,title:"\u5956\u52B1\u8BBE\u7F6E",visible:an,onCancel:Er,onOk:_r},t.a.createElement(ho.a,{placeholder:"\u8BF7\u8F93\u5165\u5956\u52B1\u7684\u91D1\u5E01\u6570\u91CF",min:1,onChange:tr,style:{width:"228px"}}))))},il=v("jZGp"),ml=v("LvDl"),Js=v("G2fZ"),Ps=v.n(Js),gl=Ne.a.Search,Us=function(qe){var Bt,$t,cn=qe.shixunsDetail,Wt=qe.globalSetting,_n=qe.loading,rn=qe.dispatch,Ht=Object(O.a)(qe,["shixunsDetail","globalSetting","loading","dispatch"]),An=Object(A.i)(),qt=Object(a.useState)(0),En=Object(_.a)(qt,2),kn=En[0],Yt=En[1],wn=Object(a.useState)([]),ln=Object(_.a)(wn,2),xn=ln[0],an=ln[1],Vt=Object(a.useState)(""),Sn=Object(_.a)(Vt,2),hr=Sn[0],pn=Sn[1],Dn=Object(a.useState)(),Nn=Object(_.a)(Dn,2),Gn=Nn[0],yn=Nn[1],Kn=Object(a.useState)(!1),or=Object(_.a)(Kn,2),gr=or[0],Ur=or[1],er=Object(a.useState)(!1),rr=Object(_.a)(er,2),Lr=rr[0],Er=rr[1],_r=Object(a.useState)({page:1,limit:10,type:"video"}),sa=Object(_.a)(_r,2),ta=sa[0],tr=sa[1];Object(a.useEffect)(function(){cn.actionTabs.key==="Stage-SendModal"&&(tr(ta),vr(ta))},[cn.actionTabs.key]);var vr=function(){var Ln=Object(k.a)(p.a.mark(function Mn(gn){var qn;return p.a.wrap(function(cr){for(;;)switch(cr.prev=cr.next){case 0:return cr.next=2,rn({type:"shixunsDetail/searchUserCourses",payload:gn});case 2:qn=cr.sent,qn.status===401?(rn({type:"shixunsDetail/setActionTabs",payload:{}}),Er(!1)):(Er(!0),Yt((qn==null?void 0:qn.courses_count)||0),an((qn==null?void 0:qn.course_list)||[]));case 4:case"end":return cr.stop()}},Mn)}));return function(gn){return Ln.apply(this,arguments)}}(),ja=function(Mn){var gn=Object(I.a)(Object(I.a)({},ta),{page:Mn,limit:10,search:encodeURI(hr)});tr(gn),vr(gn)},ia=Object(Me.b)(),Yn=Object(_.a)(ia,4),vn=Yn[0],yr=Yn[1],oi=Yn[2],Cr=Yn[3],Ir=function(){var Ln=Object(k.a)(p.a.mark(function Mn(){var gn,qn,na;return p.a.wrap(function(jr){for(;;)switch(jr.prev=jr.next){case 0:if(Gn){jr.next=3;break}return Ur(!0),jr.abrupt("return");case 3:return qn=(gn=cn.actionTabs.params)===null||gn===void 0?void 0:gn.id,Er(!1),jr.next=7,Cr({id:An==null?void 0:An.pathId,course_id:Gn,type:"subject",stage_item_id:qn,sync_catelog:0});case 7:if(na=jr.sent,na){jr.next=11;break}return jr.next=11,fr(0);case 11:case"end":return jr.stop()}},Mn)}));return function(){return Ln.apply(this,arguments)}}(),fr=function(){var Ln=Object(k.a)(p.a.mark(function Mn(gn){var qn,na,cr,jr,Pa,da,ba,ha;return p.a.wrap(function(Da){for(;;)switch(Da.prev=Da.next){case 0:if(jr=(qn=cn.actionTabs.params)===null||qn===void 0?void 0:qn.id,!((na=cn.actionTabs.params)!==null&&na!==void 0&&na.is_jupyter)){Da.next=8;break}return ba=(da=cn.actionTabs.params)===null||da===void 0?void 0:da.identifier,Da.next=5,Object(Ut.a)("/api/shixuns/".concat(ba,"/send_to_course.json"),{method:"Post",body:{course_id:Gn,identifier:ba,type:"normal",is_copy:gn}});case 5:Pa=Da.sent,Da.next=11;break;case 8:return Da.next=10,Object(B.P)({id:An==null?void 0:An.pathId,course_id:Gn,stage_shixuns:[{stage_shixun_id:jr,is_copy:gn,is_use:1}],sync_catelog:0,type:((ha=cn.actionTabs.params)===null||ha===void 0?void 0:ha.title)==="\u5B9E\u8BAD"?"shixun":"video"});case 10:Pa=Da.sent;case 11:ar(),yr(),((cr=Pa)===null||cr===void 0?void 0:cr.status)===1&&g.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc"},Pa.message),onOk:function(){var Qr,Wa,Ea;if((Qr=cn.actionTabs.params)!==null&&Qr!==void 0&&Qr.is_jupyter){var za;Object(pe.S)((za=Pa)===null||za===void 0?void 0:za.first_category_url);return}var hi=(Wa=Pa)===null||Wa===void 0||((Ea=Wa.url.split("/"))===null||Ea===void 0)?void 0:Ea[2];Object(pe.S)("/classrooms/".concat(hi,"/shixun_homework"))}});case 14:case"end":return Da.stop()}},Mn)}));return function(gn){return Ln.apply(this,arguments)}}(),ar=function(){pn(""),yn(null),Ur(!1),rn({type:"shixunsDetail/setActionTabs",payload:{}}),Er(!1)};return t.a.createElement(t.a.Fragment,null,t.a.createElement(g.a,{centered:!0,keyboard:!1,closable:!1,title:"\u53D1\u9001".concat(((Bt=cn.actionTabs.params)===null||Bt===void 0?void 0:Bt.title)||"\u5B9E\u8BAD"),visible:Lr,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Ir,onCancel:ar},t.a.createElement("div",{className:Ps.a.wrap},t.a.createElement("div",{className:Ps.a.title},"\u9009\u62E9\u7684","\u53D1\u9001".concat((($t=cn.actionTabs.params)===null||$t===void 0?void 0:$t.title)||"\u5B9E\u8BAD"),"\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802"),t.a.createElement("div",{className:"mb10"},t.a.createElement(gl,{placeholder:"\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:hr,onChange:function(Mn){return pn(Mn.target.value)},onSearch:function(Mn){pn(Mn);var gn=Object(I.a)(Object(I.a)({},ta),{page:1,limit:10,search:encodeURI(Mn)});tr(gn),vr(gn)}})),t.a.createElement("div",{className:Ps.a.radioWrap},t.a.createElement(m.a.Group,{value:Gn,onChange:function(Mn){yn(Mn.target.value),Ur(!1)}},xn.map(function(Ln,Mn){return t.a.createElement(m.a,{className:Ps.a.radio,value:Ln.course_id,key:Mn},Ln.name)}))),gr&&t.a.createElement("div",{className:Ps.a.colorFF0000},"\u8BF7\u9009\u62E9\u4F60\u8981\u53D1\u9001\u7684\u8BFE\u5802"),kn>10&&t.a.createElement("div",{className:Ps.a.pagination},t.a.createElement(Jr.a,{size:"small",className:"mb20",showQuickJumper:!0,showSizeChanger:!1,defaultCurrent:1,current:ta==null?void 0:ta.page,pageSize:10,total:kn,onChange:ja})))),t.a.createElement(Me.a,{visible:vn,inPaper:!1,onOk:fr,onCancel:function(){ar(),yr()},renderData:oi,modalType:"single",type:"subject"}))},Ns=Object(l.a)(function(lt){var qe=lt.shixunsDetail,Bt=lt.loading,$t=lt.globalSetting;return{shixunsDetail:qe,globalSetting:$t,loading:Bt.models.index}})(Us),gi=["application/pdf","application/msword","application/vnd.ms-excel","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/ZIP"],Hs=function(qe){var Bt,$t,cn,Wt,_n,rn=qe.pathsDetail,Ht=qe.user,An=qe.globalSetting,qt=qe.loading,En=qe.dispatch,kn=Object(O.a)(qe,["pathsDetail","user","globalSetting","loading","dispatch"]),Yt=Object(A.i)(),wn=rn.stageData,ln=Object(a.useState)([]),xn=Object(_.a)(ln,2),an=xn[0],Vt=xn[1],Sn=Object(a.useState)(-1),hr=Object(_.a)(Sn,2),pn=hr[0],Dn=hr[1],Nn=Object(a.useState)(!1),Gn=Object(_.a)(Nn,2),yn=Gn[0],Kn=Gn[1],or=Object(a.useState)(!1),gr=Object(_.a)(or,2),Ur=gr[0],er=gr[1],rr=Object(a.useState)(!1),Lr=Object(_.a)(rr,2),Er=Lr[0],_r=Lr[1],sa=Object(a.useState)({name:"",is_jupyter:!1}),ta=Object(_.a)(sa,2),tr=ta[0],vr=ta[1],ja=dt.a.useForm(),ia=Object(_.a)(ja,1),Yn=ia[0],vn=dt.a.useForm(),yr=Object(_.a)(vn,1),oi=yr[0],Cr=dt.a.useForm(),Ir=Object(_.a)(Cr,1),fr=Ir[0],ar=dt.a.useForm(),Ln=Object(_.a)(ar,1),Mn=Ln[0],gn=Object(a.useState)(!1),qn=Object(_.a)(gn,2),na=qn[0],cr=qn[1],jr=Object(a.useState)([]),Pa=Object(_.a)(jr,2),da=Pa[0],ba=Pa[1],ha=Object(a.useState)(!1),Ta=Object(_.a)(ha,2),Da=Ta[0],Ua=Ta[1],Qr=Object(a.useState)("All"),Wa=Object(_.a)(Qr,2),Ea=Wa[0],za=Wa[1],hi=Object(a.useState)(!1),Ji=Object(_.a)(hi,2),Li=Ji[0],Ci=Ji[1],Uo=Object(a.useState)(0),Ao=Object(_.a)(Uo,2),_o=Ao[0],as=Ao[1],fs=Object(a.useState)([{name:"\u5168\u90E8",type:"All",number:0},{name:"\u5B9E\u8DF5\u9879\u76EE",type:"Shixun",number:0},{name:"\u89C6\u9891\u9879\u76EE",type:"VideoItem",number:0},{name:"\u6559\u5B66\u8BFE\u4EF6",type:"Attachment",number:0},{name:"\u8BA8\u8BBA",type:"Discusses",number:0}]),is=Object(_.a)(fs,2),os=is[0],So=is[1],ps=Object(a.useState)(),Qi=Object(_.a)(ps,2),Aa=Qi[0],wi=Qi[1],vi=Object(a.useState)([]),vo=Object(_.a)(vi,2),uo=vo[0],Ki=vo[1],ss=function(zt){if(zt.key=="Enter"){var on=fr.getFieldValue("tag");if(fr.setFieldsValue({tag:""}),!on){U.b.info("\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A");return}if(uo.filter(function(Tn){return Tn===on}).length>0){U.b.info("\u5DF2\u6709\u76F8\u540C\u540D\u79F0\u6807\u7B7E");return}uo.push(on),Ki(Object(d.a)(uo))}},ls=function(zt,on){zt.preventDefault(),Ki(Object(d.a)(uo.filter(function(Tn){return Tn!=on})))},qo=((Bt=rn.detail)===null||Bt===void 0?void 0:Bt.is_free)||(($t=rn.detail)===null||$t===void 0?void 0:$t.can_learning),fo=function(){var zt=rn.detail,on=zt.shixuns_count,Tn=on===void 0?0:on,Hn=zt.videos_count,jn=Hn===void 0?0:Hn,pr=zt.attachment_count,dr=pr===void 0?0:pr,Bn=zt.disscuss_count,Yr=Bn===void 0?0:Bn,Ri={All:Tn+jn+dr,Shixun:Tn,VideoItem:jn,Attachment:dr,Discusses:Yr},ir=os.map(function(si){return Object(I.a)(Object(I.a)({},si),{},{number:Ri[si.type]})});So(ir)};Object(a.useEffect)(function(){fo()},[rn.detail]),Object(a.useEffect)(function(){fo(),Vt(Object(d.a)(wn))},[wn]);var zo=function(){var nr=Object(k.a)(p.a.mark(function zt(on,Tn){var Hn;return p.a.wrap(function(pr){for(;;)switch(pr.prev=pr.next){case 0:if(En({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!Tn){pr.next=7;break}return pr.next=4,Object(qr.D)({id:on});case 4:pr.t0=pr.sent,pr.next=10;break;case 7:return pr.next=9,Object(qr.E)({id:on});case 9:pr.t0=pr.sent;case 10:if(Hn=pr.t0,En({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(Hn!=null&&Hn.game_identifier||Hn!=null&&Hn.identifier)){pr.next=15;break}return Object(pe.S)(Tn?"/tasks/".concat(Hn==null?void 0:Hn.identifier,"/jupyter"):"/tasks/".concat(Hn.game_identifier)),pr.abrupt("return");case 15:(Hn==null?void 0:Hn.status)===-3?Object(pe.q)():(Hn==null?void 0:Hn.status)===2?yo(Hn==null?void 0:Hn.message):(Hn==null?void 0:Hn.status)===3&&es(Hn==null?void 0:Hn.message);case 16:case"end":return pr.stop()}},zt)}));return function(on,Tn){return nr.apply(this,arguments)}}(),yo=function nr(zt){var on;zt=(on=zt)!==null&&on!==void 0&&on.includes(".json")?zt:"".concat(zt,".json"),g.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var Tn=Object(k.a)(p.a.mark(function jn(){var pr,dr;return p.a.wrap(function(Yr){for(;;)switch(Yr.prev=Yr.next){case 0:return Yr.next=2,Object(Rr.T)({url:zt});case 2:if(pr=Yr.sent,pr){Yr.next=5;break}return Yr.abrupt("return");case 5:return U.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),Yr.next=8,Object(qr.E)({id:pr.shixun_identifier});case 8:if(dr=Yr.sent,!(dr!=null&&dr.game_identifier)){Yr.next=12;break}return Object(pe.S)("/tasks/".concat(dr.game_identifier)),Yr.abrupt("return");case 12:(dr==null?void 0:dr.status)===2?nr(dr==null?void 0:dr.message):(dr==null?void 0:dr.status)===3&&es(dr==null?void 0:dr.message);case 13:case"end":return Yr.stop()}},jn)}));function Hn(){return Tn.apply(this,arguments)}return Hn}()})},es=function(zt){g.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:t.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",zt,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},Go=function(){if(!Fo())return;cr(!0)};Object(a.useEffect)(function(){if(na){var nr={shixuns_list:[],attachments_list:[],items:[]};la(an.length,nr),Vt([].concat(Object(d.a)(an),[nr]))}},[na]);var Oa=function(){setTimeout(function(){pn===an.length-1&&na&&(ms(),Vt(an.filter(function(zt,on){return on!==an.length-1}))),Wi(),Dn(-1)},300)},la=function(zt,on){if(!Fo())return;Dn(zt),Yn.setFieldsValue({name:on.stage_name,description:on.stage_description,tagName:on.tag&&on.tag.name||""})},xi=function(zt){if(setTimeout(function(){document.documentElement.scrollTop=_o},300),zt==="\u53D6\u6D88")return;an[pn].items=an[pn].items.concat(zt),Vt(Object(d.a)(an))},Zi=function(){var nr=Object(k.a)(p.a.mark(function zt(on){var Tn;return p.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:return jn.next=2,Object(B.Q)(Object(I.a)({},on));case 2:return Tn=jn.sent,an[pn].items=on.list,jn.abrupt("return",Tn);case 5:case"end":return jn.stop()}},zt)}));return function(on){return nr.apply(this,arguments)}}(),Oo=function(zt){an[pn].items=an[pn].items.concat(Object(I.a)(Object(I.a)({},zt),{},{children:[]})),Vt(Object(d.a)(an))},co=function(zt){an[pn].items=an[pn].items.concat(zt),Vt(Object(d.a)(an))},No=function(){var nr=Object(k.a)(p.a.mark(function zt(on){var Tn,Hn,jn,pr,dr;return p.a.wrap(function(Yr){for(;;)switch(Yr.prev=Yr.next){case 0:if(Aa){Yr.next=8;break}return Yr.next=3,Object(B.f)(Object(I.a)({id:an[pn].stage_id,subject_id:Yt.pathId},on));case 3:return Tn=Yr.sent,Tn.id&&(Ua(!1),Hn=[Object(I.a)({},Tn)],an[pn].items=an[pn].items.concat(Hn),Vt(Object(d.a)(an))),Yr.abrupt("return",Tn);case 8:return Yr.next=10,Object(B.S)(Object(I.a)(Object(I.a)({id:Aa==null?void 0:Aa.id,subject_id:Yt.pathId},on),{},{video_id:(on==null?void 0:on.video_id)||(Aa==null||((jn=Aa.video_item)===null||jn===void 0)?void 0:jn.video_id),link:(on==null?void 0:on.link)||(Aa==null||((pr=Aa.video_item)===null||pr===void 0)?void 0:pr.link)}));case 10:return dr=Yr.sent,dr&&(U.b.success("\u4FEE\u6539\u6210\u529F"),Ua(!1),Wi()),Yr.abrupt("return",dr);case 13:case"end":return Yr.stop()}},zt)}));return function(on){return nr.apply(this,arguments)}}(),Wi=function(){En({type:"pathsDetail/getStageData",payload:{subject_id:Yt.pathId}}),En({type:"pathsDetail/getPathsDetail",payload:{id:Yt.pathId}}),En({type:"pathsDetail/getRightData",payload:{id:Yt.pathId}}),ms()},Ai=function(){var nr=Object(k.a)(p.a.mark(function zt(on,Tn){var Hn,jn,pr,dr,Bn,Yr,Ri,ir,si,ao,zi;return p.a.wrap(function(Qa){for(;;)switch(Qa.prev=Qa.next){case 0:if(!(!(on!=null&&on.name)||(on==null?void 0:on.name.replace(/(^\s*)|(\s*$)/g,""))==="")){Qa.next=2;break}return Qa.abrupt("return",U.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01"));case 2:if(ms(),pr=[],(Hn=an[pn].shixuns_list)===null||Hn===void 0||Hn.map(function(Gi){pr.push({type:Gi.item_type,id:Gi.id})}),(jn=an[pn].attachments_list)===null||jn===void 0||jn.map(function(Gi){pr.push({type:"Attachment",id:Gi.id})}),dr=on.tagName,Bn=Object(O.a)(on,["tagName"]),!na){Qa.next=16;break}return Yr=Object(I.a)(Object(I.a)({},Bn),{},{pathId:Yt.pathId,list:pr}),dr&&(Yr=Object(I.a)(Object(I.a)({},Yr),{},{stage_tag_attributes:{name:dr}})),Qa.next=12,Object(B.d)(Object(I.a)({},Yr));case 12:Ri=Qa.sent,Ri!=null&&Ri.subject_id&&(an[pn]=Object(I.a)(Object(I.a)(Object(I.a)({},an[pn]),Ri),{},{stage_name:Yr.name,stage_description:Yr.description,tag:Yr.stage_tag_attributes}),Vt(Object(d.a)(an))),Qa.next=24;break;case 16:return ir=Array.from(new Set(pr.map(function(Gi){return Gi.type}))),si=Object(I.a)(Object(I.a)({},Bn),{},{id:an[pn].stage_id,type:Array.from(new Set(pr.map(function(Gi){return Gi.type}))),list:pr}),ao=an[pn].tag&&an[pn].tag.id||"",si=Object(I.a)(Object(I.a)({},si),{},{stage_tag_attributes:ao?{id:ao,name:dr}:{name:dr}}),Qa.next=22,Object(B.U)(Object(I.a)({},si));case 22:zi=Qa.sent,zi!=null&&zi.subject_id&&(an[pn]=Object(I.a)(Object(I.a)(Object(I.a)({},an[pn]),zi),{},{stage_name:si.name,stage_description:si.description,tag:si.stage_tag_attributes}),Vt(Object(d.a)(an)));case 24:return cr(!1),Qa.abrupt("return");case 26:case"end":return Qa.stop()}},zt)}));return function(on,Tn){return nr.apply(this,arguments)}}(),Vo=function(zt,on,Tn){var Hn=Array.from(zt),jn=Hn.splice(on,1),pr=Object(_.a)(jn,1),dr=pr[0];return Hn.splice(Tn,0,dr),Hn},Pn=function(zt,on){g.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u5B9E\u8BAD\u5417\uFF1F",onOk:function(){an[pn][on||"shixuns_list"].splice(zt,1),U.b.success("\u5220\u9664\u6210\u529F"),Vt(Object(d.a)(an)),Ai(Yn.getFieldsValue(),on)}})},ts=function(zt){g.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u672C\u64CD\u4F5C\u5C06\u5220\u9664\u5F53\u524D\u76EE\u5F55\u53CA\u4E0B\u5C5E\u5B50\u76EE\u5F55\u5B9A\u5168\u90E8\u5185\u5BB9\uFF0C\u786E\u8BA4\u8981\u5220\u9664\u5417\uFF1F",onOk:function(){var on=Object(k.a)(p.a.mark(function Hn(){var jn;return p.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:return dr.next=2,Object(B.s)(zt);case 2:jn=dr.sent,jn.status===0&&(U.b.success("\u5220\u9664\u6210\u529F"),Wi());case 4:case"end":return dr.stop()}},Hn)}));function Tn(){return on.apply(this,arguments)}return Tn}()})},lo=function(){var nr=Object(k.a)(p.a.mark(function zt(on){var Tn,Hn,jn,pr,dr,Bn;return p.a.wrap(function(Ri){for(;;)switch(Ri.prev=Ri.next){case 0:if(console.log(on),!((on==null?void 0:on.item_type)==="VideoItem")){Ri.next=9;break}return Ri.next=4,Object(hs.g)({id:on==null?void 0:on.stage_item_id});case 4:Tn=Ri.sent,wi(Tn),(on==null?void 0:on.item_type)==="VideoItem"?Ua(!0):(Ki((Tn==null||((Hn=Tn.tags)===null||Hn===void 0)?void 0:Hn.map(function(ir){return ir==null?void 0:ir.name}))||[]),fr.setFieldsValue({files:[{uid:Tn==null||((jn=Tn.attachment)===null||jn===void 0)?void 0:jn.id,name:Tn==null?void 0:Tn.name,response:{id:Tn==null||((pr=Tn.attachment)===null||pr===void 0)?void 0:pr.id}}]}),er(!0)),Ri.next=10;break;case 9:(on==null?void 0:on.item_type)==="Attachment"?g.a.confirm({title:"\u4FEE\u6539\u8BFE\u4EF6\u540D\u79F0",icon:null,centered:!0,okText:"\u786E\u8BA4\u4FEE\u6539",cancelText:"\u53D6\u6D88",content:t.a.createElement(Ne.a,{value:dr,onChange:function(si){dr=si.target.value},placeholder:"\u8BF7\u8F93\u5165\u8BFE\u4EF6\u540D\u79F0"}),onOk:function(){var ir=Object(k.a)(p.a.mark(function ao(){var zi,Wn,Qa;return p.a.wrap(function(li){for(;;)switch(li.prev=li.next){case 0:if(dr){li.next=3;break}return U.b.info("\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),li.abrupt("return",Promise.reject());case 3:return li.next=5,Object(Ut.a)("/api/attachments/".concat(on==null?void 0:on.id,".json"),{method:"put",body:{name:dr+(on==null||((zi=on.name)===null||zi===void 0)?void 0:zi.substr(on==null||((Wn=on.name)===null||Wn===void 0)?void 0:Wn.lastIndexOf(".")))}});case 5:Qa=li.sent,dr="",Wi();case 8:case"end":return li.stop()}},ao)}));function si(){return ir.apply(this,arguments)}return si}()}):g.a.confirm({title:"\u4FEE\u6539\u5C0F\u8282\u540D\u79F0",icon:null,centered:!0,okText:"\u786E\u8BA4\u4FEE\u6539",cancelText:"\u53D6\u6D88",content:t.a.createElement(Ne.a,{value:Bn,maxLength:40,onChange:function(si){Bn=si.target.value},placeholder:"\u8BF7\u8F93\u5165\u5C0F\u8282\u540D\u79F0"}),onOk:function(){var ir=Object(k.a)(p.a.mark(function ao(){var zi;return p.a.wrap(function(Qa){for(;;)switch(Qa.prev=Qa.next){case 0:if(Bn.replaceAll(" ","")){Qa.next=3;break}return U.b.info("\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Qa.abrupt("return",Promise.reject());case 3:return Qa.next=5,Object(Ut.a)("/api/stages/".concat(on==null?void 0:on.stage_id,"/update_item_name.json"),{method:"put",body:{name:Bn,item_id:on==null?void 0:on.id}});case 5:zi=Qa.sent,Bn="",Wi();case 8:case"end":return Qa.stop()}},ao)}));function si(){return ir.apply(this,arguments)}return si}()});case 10:case"end":return Ri.stop()}},zt)}));return function(on){return nr.apply(this,arguments)}}(),Ha=function(zt){g.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u7AE0\u8282\u5417\uFF1F",onOk:function(){var on=Object(k.a)(p.a.mark(function Hn(){var jn;return p.a.wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:return dr.next=2,Object(B.r)({id:zt});case 2:jn=dr.sent,jn.status===1&&(Dn(-1),U.b.success("\u5220\u9664\u6210\u529F"),Wi());case 4:case"end":return dr.stop()}},Hn)}));function Tn(){return on.apply(this,arguments)}return Tn}()})},Fi=function(){vr({name:"",is_jupyter:!1}),oi.setFieldsValue({name:"",is_jupyter:!1}),Ci(!1),Kn(!1)},Ti=function(zt,on){var Tn;if(!zt.destination)return;var Hn=Vo((Tn=an[pn])===null||Tn===void 0?void 0:Tn[on||"shixuns_list"],zt.source.index,zt.destination.index);an[pn][on||"shixuns_list"]=Hn,Vt(Object(d.a)(an)),Ai(Yn.getFieldsValue(),on)},Ro=function(){var nr=Object(k.a)(p.a.mark(function zt(on){var Tn;return p.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:if(Fo()){jn.next=2;break}return jn.abrupt("return");case 2:return jn.next=4,Object(B.T)({id:on});case 4:Tn=jn.sent,Tn.status===1&&Wi();case 6:case"end":return jn.stop()}},zt)}));return function(on){return nr.apply(this,arguments)}}(),Oi=function(){var nr=Object(k.a)(p.a.mark(function zt(on){var Tn;return p.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:if(Fo()){jn.next=2;break}return jn.abrupt("return");case 2:return jn.next=4,Object(B.t)({id:on});case 4:Tn=jn.sent,Tn.status===1&&Wi();case 6:case"end":return jn.stop()}},zt)}));return function(on){return nr.apply(this,arguments)}}(),Fo=function(){return pn!==-1?(g.a.info({icon:null,className:"custom-modal-divider ",okText:"\u77E5\u9053\u5566",title:"\u63D0\u793A",content:t.a.createElement("div",{className:"mt10 font14"},"\u5F53\u524D\u5355\u5143\u6709\u672A\u4FDD\u5B58\u7684\u4FEE\u6539\u8BB0\u5F55\uFF0C\u8BF7\u5148\u4FDD\u5B58\uFF01"),onOk:function(){var on="Edit_".concat(pn),Tn=document.getElementById(on);Tn&&setTimeout(function(){return Tn.scrollIntoView({block:"start",behavior:"smooth"})})}}),!1):!0},ns=function(){Ai(Yn.getFieldsValue())},ms=function(){cr(!1)},Xo=function(){var zt,on,Tn,Hn,jn,pr;return((zt=rn.detail)===null||zt===void 0||((on=zt.courses)===null||on===void 0)?void 0:on.length)>0?(Tn=rn.detail)===null||Tn===void 0?void 0:Tn.allow_visit:!(((Hn=Ht.userInfo)===null||Hn===void 0?void 0:Hn.user_identity)==="\u5B66\u751F"&&(jn=rn.detail)!==null&&jn!==void 0&&jn.allow_visit&&(pr=rn.detail)!==null&&pr!==void 0&&pr.courses)},Ss=function(zt,on,Tn){var Hn,jn,pr,dr,Bn,Yr,Ri,ir,si,ao,zi,Wn;return Ea!=="All"&&zt.item_type!==Ea?null:t.a.createElement(Ae.a,{className:"list-item-row",align:"middle",key:on,gutter:[5,10]},t.a.createElement(ie.a,null,zt.item_type==="Shixun"?t.a.createElement("i",{className:"iconfont icon-shixunti2 c-light-primary font20"}):t.a.createElement("i",{className:"iconfont icon-shipin2 c-purple-8C1 font20"})),t.a.createElement(ie.a,{flex:1,className:!zt.allow_visit&&!zt.to_be_built&&(zt.shixun_status==="\u6682\u672A\u516C\u5F00"||zt.shixun_status==="\u5DF2\u5220\u9664")?$r.a.color204:""},!!(rn!=null&&(Hn=rn.detail)!==null&&Hn!==void 0&&Hn.cust_seq)&&t.a.createElement("span",{className:"mr8"},Tn+1,"-",on+1),zt.name,pn===-1&&zt.complete_status===1&&t.a.createElement("span",{className:$r.a.completed},t.a.createElement("i",{className:"iconfont icon-duigou1 mr5 font12"}),"\u5DF2\u5B8C\u6210")),t.a.createElement(ie.a,null,pn===Tn&&t.a.createElement("div",null,t.a.createElement(s.a,{title:"\u5220\u9664"},t.a.createElement("span",{onClick:function(){Pn(on,"shixuns_list")},className:"iconfont icon-shanchu c-grey-c"}))),(((jn=Ht.userInfo)===null||jn===void 0?void 0:jn.admin)||((pr=Ht.userInfo)===null||pr===void 0?void 0:pr.business)||!(!((dr=rn.detail)!==null&&dr!==void 0&&dr.allow_statistics)&&((Bn=Ht.userInfo)===null||Bn===void 0?void 0:Bn.user_identity)==="\u5B66\u751F"&&(Yr=rn.detail)!==null&&Yr!==void 0&&Yr.allow_visit&&(Ri=rn.detail)!==null&&Ri!==void 0&&Ri.courses))&&pn!==Tn&&zt.item_type==="VideoItem"&&t.a.createElement("aside",null,t.a.createElement(c.a,{type:"primary",onClick:function(){var Gi,li;if(!((Gi=Ht.userInfo)!==null&&Gi!==void 0&&Gi.admin)&&!((li=Ht.userInfo)!==null&&li!==void 0&&li.business)&&!zt.can_view)return g.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:t.a.createElement("div",{className:"tc font14"},"\u5F53\u524D\u89C6\u9891\u4E3A\u521B\u5EFA\u8005\u6240\u5C5E\u5355\u4F4D\u5185\u90E8\u6559\u5B66\u8D44\u6599\uFF0C\u5916\u5355\u4F4D\u7528\u6237\u65E0\u89C2\u770B\u6743\u9650")});zt.link&&Object(hs.n)({is_f:1,id:zt.id,point:0,total:0}),Object(pe.S)(zt.link||"/video/".concat(zt.id,"?subject_id=").concat(Yt.pathId))}},zt.last_point>0?"\u7EE7\u7EED\u5B66\u4E60":"\u5F00\u59CB\u5B66\u4E60")),(((ir=Ht.userInfo)===null||ir===void 0?void 0:ir.admin)||(zt.allow_visit||zt.to_be_built||zt.shixun_status!=="\u6682\u672A\u516C\u5F00"&&zt.shixun_status!=="\u5DF2\u5220\u9664")&&!(!((si=rn.detail)!==null&&si!==void 0&&si.allow_statistics)&&((ao=Ht.userInfo)===null||ao===void 0?void 0:ao.user_identity)==="\u5B66\u751F"&&(zi=rn.detail)!==null&&zi!==void 0&&zi.allow_visit&&(Wn=rn.detail)!==null&&Wn!==void 0&&Wn.courses))&&pn!==Tn&&zt.item_type==="Shixun"&&t.a.createElement("aside",null,t.a.createElement(mn.a,{to:"/shixuns/".concat(zt.identifier,"/challenges"),target:"_blank"},"\u67E5\u770B\u8BE6\u60C5"),zt.shixun_status!=="\u6682\u672A\u516C\u5F00"&&t.a.createElement(c.a,{className:"ml20",type:"primary",onClick:function(){if(!Object(he.e)(En,!0))return;zo(zt.identifier,zt.is_jupyter||zt.is_jupyter_lab)}},"\u5F00\u59CB\u5B9E\u6218")),pn===-1&&!zt.allow_visit&&!zt.to_be_built&&zt.shixun_status==="\u6682\u672A\u516C\u5F00"&&t.a.createElement("span",{className:$r.a.color204},"\u6682\u672A\u516C\u5F00"),pn===-1&&!zt.allow_visit&&!zt.to_be_built&&zt.shixun_status==="\u5DF2\u5220\u9664"&&t.a.createElement("span",{className:$r.a.color204},"\u5DF2\u5220\u9664"),pn===-1&&zt.item_type==="Shixun"&&!!zt.challenges_count&&t.a.createElement("span",{className:"exper\u02C6iment-number ml5 c-grey-999"},"\u5B9E\u9A8C\u6570 ",zt.challenges_count)))},Fs=function(zt){var on,Tn=[];if(zt.items&&(on=zt.items)!==null&&on!==void 0&&on.length){var Hn;(Hn=zt.items)===null||Hn===void 0||Hn.forEach(function(pr){var dr;Tn.push(pr),pr.children&&(dr=pr.children)!==null&&dr!==void 0&&dr.length&&(Tn=Tn.concat(pr.children))})}var jn=!!Tn.find(function(pr){return Object(ml.isEqual)(pr.learning_status,["can","try"])});return jn?t.a.createElement("aside",{className:$r.a.learn},"\u514D\u8D39\u8BD5\u5B66"):null},On=function(zt,on){var Tn,Hn,jn,pr,dr,Bn;if(Ea!=="All"&&!((Tn=zt.stage_tag)!==null&&Tn!==void 0&&Tn.includes(Ea)))return null;var Yr=!1,Ri=!1,ir=!1,si=!1;if(Ea==="All"){var ao,zi,Wn,Qa;Yr=(((ao=Ht.userInfo)===null||ao===void 0?void 0:ao.admin)||((zi=Ht.userInfo)===null||zi===void 0?void 0:zi.business)||((Wn=rn.detail)===null||Wn===void 0?void 0:Wn.allow_statistics))&&pn===on&&!na,(Qa=rn.detail)!==null&&Qa!==void 0&&Qa.allow_add_member&&qo&&pn!==on&&(Ri=!0,on>0&&(ir=!0),on<an.length-1&&(si=!0))}var Gi=function(){var io=0,Yo=0,ko=0;if(Ri&&(ko+=25),ir&&(ko+=18),si&&(ko+=23.5),Yr&&(ko+=21),ko&&(ko+=5),zt.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",io=Math.ceil(jo.measureText(zt.tag.name).width)+16}var gs=document.createElement("canvas").getContext("2d");return gs.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",Yo=Math.ceil(gs.measureText(zt.stage_name||"\u7B2C".concat(an==null?void 0:an.length,"\u90E8\u5206")).width),t.a.createElement("div",{className:$r.a.labelContainer,style:{width:745-ko}},t.a.createElement("div",{className:"".concat($r.a.text),style:{maxWidth:745-ko-io}},zt.stage_name||"\u7B2C".concat(an==null?void 0:an.length,"\u90E8\u5206"),Fs(zt)),zt.tag&&zt.tag.name&&t.a.createElement("span",{className:$r.a.tag},zt.tag.name))};return t.a.createElement("section",{key:on,className:"bg-white mt20 pt30 pb20"},t.a.createElement("aside",{className:"pl20 pr20"},t.a.createElement(Ae.a,{gutter:[5,20],align:"middle"},t.a.createElement(ie.a,{flex:1,className:"tl font18 bold c-grey-333"},Gi()),Ea==="All"&&t.a.createElement(ie.a,null,Yr&&t.a.createElement(s.a,{title:"\u5220\u9664"},t.a.createElement("span",{onClick:function(){Ha(zt.stage_id)},className:"iconfont icon-shanchu c-grey-c"})),((Hn=rn.detail)===null||Hn===void 0?void 0:Hn.allow_add_member)&&qo&&pn!==on&&t.a.createElement("div",null,ir&&t.a.createElement(s.a,{title:"\u5411\u4E0A\u79FB\u52A8"},t.a.createElement("span",{onClick:function(){return Ro(zt.stage_id)},className:"iconfont icon-xiangshangyi c-light-green font18 current"})),si&&t.a.createElement(s.a,{title:"\u5411\u4E0B\u79FB\u52A8"},t.a.createElement("span",{onClick:function(){return Oi(zt.stage_id)},className:"iconfont icon-xiangxiayi c-light-green font18 current ml5"})),t.a.createElement(s.a,{title:"\u7F16\u8F91"},t.a.createElement("span",{onClick:function(){return la(on,zt)},className:"iconfont icon-bianjidaibeijing c-light-green font20 current ml5"}))))),!!zt.stage_description&&t.a.createElement(Ae.a,{gutter:[5,20]},t.a.createElement(ie.a,{span:24},t.a.createElement(Rt.a,{value:zt==null?void 0:zt.stage_description})))),pn===on&&t.a.createElement("div",{className:"pl20 pr20"},t.a.createElement("aside",null,t.a.createElement(dt.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"}]},t.a.createElement(Ne.a,{size:"large",maxLength:60,placeholder:"\u8BF7\u8F93\u5165\u7B2C".concat(on+1,"\u9636\u6BB5\u540D\u79F0,\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"),onBlur:ns})),t.a.createElement(dt.a.Item,{name:"description",label:"\u63CF\u8FF0",className:"ml10"},t.a.createElement(no.a,{defaultValue:zt==null?void 0:zt.stage_description,placeholder:"\u8BF7\u8F93\u5165\u7B2C".concat(on+1,"\u9636\u6BB5\u63CF\u8FF0"),height:300,onBlur:ns}))),t.a.createElement("aside",null,t.a.createElement(dt.a.Item,{label:"\u6807\u7B7E",name:"tagName",rules:[{max:10,message:"\u6807\u7B7E\u4E0D\u80FD\u8D85\u8FC710\u4E2A\u5B57\u201D"}]},t.a.createElement(Ne.a,{placeholder:"\u8BF7\u8F93\u5165\u6807\u7B7E\u540D\u79F0",onBlur:ns}))),t.a.createElement("aside",{className:"mt20 mb20"},t.a.createElement(c.a,{size:"large",ghost:!0,type:"primary",onClick:function(){if(!an[pn].stage_id)return U.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");if(!Object(he.e)(En))return;Ci(!1),_r(!0),Mn.resetFields()}},t.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5 "}),"\u65B0\u5EFA\u5C0F\u8282"),t.a.createElement(c.a,{size:"large",className:"ml20",ghost:!0,type:"primary",onClick:function(){if(!an[pn].stage_id)return U.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");if(!Object(he.e)(En))return;if(!Object(he.c)())return;Ci(!1),Kn(!0),oi.setFieldsValue({name:"",is_jupyter:!1})}},t.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5"}),"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE"),t.a.createElement(c.a,{size:"large",className:"ml20",ghost:!0,type:"primary",onClick:function(){var io;if(!an[pn].stage_id)return U.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");as(document.documentElement.scrollTop),En({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",id:an[pn].stage_id,subject_id:Yt.pathId}}),ba(zt==null||((io=zt.shixuns_list)===null||io===void 0)?void 0:io.map(function(Yo){return Yo.id}))}},t.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5"}),"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"),t.a.createElement(t.a.Fragment,null,t.a.createElement(c.a,{size:"large",className:" ml20",ghost:!0,type:"primary",onClick:function(){if(!an[pn].stage_id)return U.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");wi(""),Ua(!0)}},t.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5 "}),"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE")),t.a.createElement(c.a,{size:"large",className:"ml20",ghost:!0,type:"primary",onClick:function(){if(!an[pn].stage_id)return U.b.info("\u8BF7\u5148\u8F93\u5165\u7AE0\u8282\u540D\u79F0\uFF01");if(!Object(he.e)(En))return;wi(""),Ki([]),Ci(!1),er(!0),fr.resetFields()}},t.a.createElement("span",{className:"iconfont icon-tianjiafangda mr5 "}),"\u65B0\u5EFA\u6559\u5B66\u8BFE\u4EF6"),t.a.createElement("br",null)),t.a.createElement("aside",{className:"c-light-black mt10 pb20",id:"Edit_".concat(on)},"\u6240\u6709\u9879\u76EE\u5747\u53EF\u4EE5\u901A\u8FC7\u62D6\u52A8\u6392\u5E8F\u6216\u5347\u964D\u7EA7\u3002",t.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")),t.a.createElement("aside",{className:$r.a.shixuns},t.a.createElement("div",{className:""},!!(zt!=null&&(jn=zt.items)!==null&&jn!==void 0&&jn.length)&&t.a.createElement(il.a,{visibleType:Ea,data:Object(d.a)(zt.items),stage_id:zt.stage_id,disabled:!(pn===on),deleteStages:ts,editVidoItem:lo,updateSort:Zi,index:on,cust_seq:!!(rn!=null&&(pr=rn.detail)!==null&&pr!==void 0&&pr.cust_seq),showVideoPlay:((dr=Ht.userInfo)===null||dr===void 0?void 0:dr.admin)||((Bn=Ht.userInfo)===null||Bn===void 0?void 0:Bn.business)||Xo(),isPaths:!0}))),pn===on&&t.a.createElement("aside",{className:$r.a.buttons},t.a.createElement(c.a,{onClick:Oa,type:"primary",size:"large",ghost:!0},"\u53D6\u6D88"),t.a.createElement(c.a,{onClick:Object(k.a)(p.a.mark(function li(){return p.a.wrap(function(Yo){for(;;)switch(Yo.prev=Yo.next){case 0:Oa();case 1:case"end":return Yo.stop()}},li)})),size:"large",type:"primary"},"\u4FDD\u5B58")))};return t.a.createElement("section",null,t.a.createElement(Hi.a,{active:!0,paragraph:{rows:250},avatar:!0,className:"".concat(qt["pathsDetail/getStageData"]||qt["pathsDetail/getPathsDetail"]?"mt20":""),loading:qt["pathsDetail/getStageData"]||qt["pathsDetail/getPathsDetail"]},t.a.createElement("aside",{className:$r.a.actionTabs},os.map(function(nr,zt){if(an!=null&&an.some(function(on){var Tn;return(Tn=on.stage_tag)===null||Tn===void 0?void 0:Tn.includes(nr.type)})||nr.type=="All"||nr.type=="Discusses"&&nr.number>0)return t.a.createElement("div",{key:zt,className:nr.type===Ea?$r.a.tabActive:$r.a.tab,onClick:function(){pn===-1?(za(nr.type),Dn(-1)):U.b.warn("\u8BF7\u5148\u53D6\u6D88\u7F16\u8F91\u72B6\u6001")}},t.a.createElement("span",{className:$r.a.s1},nr.name),t.a.createElement("span",{className:$r.a.s2},nr.number))})),Ea!=="Discusses"&&t.a.createElement(t.a.Fragment,null,t.a.createElement(dt.a,{form:Yn,onFinish:Ai},an==null?void 0:an.map(function(nr,zt){return t.a.createElement("div",{key:zt},On(nr,zt))})),((cn=rn.detail)===null||cn===void 0?void 0:cn.allow_statistics)&&Ea==="All"&&!na&&t.a.createElement("div",{className:$r.a.addStage,onClick:Go},t.a.createElement("span",{className:$r.a.color4CA},"+\u70B9\u51FB\u65B0\u5EFA\u9636\u6BB5"),"\uFF08\u6DFB\u52A0\u4E00\u4E2A\u6216\u591A\u4E2A\u5B9E\u8BAD/\u89C6\u9891\u9879\u76EE\uFF0C\u7EC4\u6210\u4E00\u4E2A\u9636\u6BB5\uFF09"))),Ea==="Discusses"&&t.a.createElement("aside",{className:"mt20"},t.a.createElement(Ys,{activeIndex:3,isDelete:(Wt=rn.detail)===null||Wt===void 0?void 0:Wt.allow_add_member,shixunIdentifier:11,identity:(_n=Ht.userInfo)===null||_n===void 0?void 0:_n.role,getTypeNumber:fo,user:Ht.userInfo,isShixunDetail:!0})),t.a.createElement(g.a,{centered:!0,title:"\u65B0\u5EFA\u5B9E\u8DF5\u9879\u76EE",visible:yn,confirmLoading:Li,destroyOnClose:!0,onOk:Object(k.a)(p.a.mark(function nr(){var zt;return p.a.wrap(function(Tn){for(;;)switch(Tn.prev=Tn.next){case 0:return Tn.next=2,oi.validateFields();case 2:return Ci(!0),Tn.next=5,Object(B.N)(Object(I.a)({id:an[pn].stage_id,subject_id:Yt.pathId},tr));case 5:zt=Tn.sent,Fi(),zt.id&&(oi.resetFields(),U.b.success("\u6DFB\u52A0\u6210\u529F"),xi([zt])),Ci(!1);case 9:case"end":return Tn.stop()}},nr)})),onCancel:Fi},t.a.createElement(dt.a,{form:oi,onValuesChange:function(zt){vr(Object(I.a)(Object(I.a)({},tr),zt))}},t.a.createElement(dt.a.Item,{label:"\u7C7B\u578B",name:"is_jupyter",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7C7B\u578B"}]},t.a.createElement(m.a.Group,null,t.a.createElement(m.a,{defaultChecked:!0,value:!1},"\u5168\u6808\u5B9E\u8DF5\u9879\u76EE"),t.a.createElement(m.a,{value:!0},"Jupyter Notebook\u5B9E\u8DF5\u9879\u76EE"))),t.a.createElement(dt.a.Item,{label:"\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"}]},t.a.createElement(Ne.a,{suffix:t.a.createElement("span",null,tr.name.length,"/60")})))),t.a.createElement(g.a,{centered:!0,title:Aa?"\u7F16\u8F91\u6559\u5B66\u8BFE\u4EF6":"\u65B0\u5EFA\u6559\u5B66\u8BFE\u4EF6",visible:Ur,confirmLoading:Li,destroyOnClose:!0,onOk:Object(k.a)(p.a.mark(function nr(){var zt,on,Tn,Hn,jn,pr;return p.a.wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:return Bn.next=2,fr.validateFields();case 2:return Ci(!0),Bn.next=5,fr.getFieldsValue();case 5:if(zt=Bn.sent,on=!1,Tn="",zt.files.forEach(function(Yr){(!Yr.response||!Yr.response.id)&&(on=!0,Tn=Yr.name)}),!on){Bn.next=11;break}return U.b.error("".concat(Tn," \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20")),Bn.abrupt("return");case 11:if(Aa){Bn.next=18;break}return Bn.next=14,Object(B.c)({id:an[pn].stage_id,subject_id:Yt.pathId,tags:uo,attachment_ids:zt.files.map(function(Yr){return Yr.response.id})});case 14:Hn=Bn.sent,Hn.status===0&&(U.b.success("\u4FEE\u6539\u6210\u529F"),er(!1),co(Object(d.a)(Hn.items))),Bn.next=22;break;case 18:return Bn.next=20,Object(B.S)({id:Aa==null?void 0:Aa.id,subject_id:Yt.pathId,tags:uo,attachment_id:(jn=zt.files.map(function(Yr){return Yr.response.id}))===null||jn===void 0?void 0:jn[0]});case 20:pr=Bn.sent,pr.status===0&&(U.b.success("\u4FEE\u6539\u6210\u529F"),er(!1),co(Object(d.a)(pr.items)));case 22:Ci(!1);case 23:case"end":return Bn.stop()}},nr)})),onCancel:function(){er(!1),Ki([]),wi("")}},t.a.createElement(dt.a,{form:fr},t.a.createElement(dt.a.Item,{label:"\u8BFE\u4EF6\u5185\u5BB9",name:"files",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u8BFE\u4EF6\u5185\u5BB9"}]},t.a.createElement(Cs.b,{aloneClear:!0,maxSize:Object(F.v)()?500:100,accept:gi.toString(),number:Aa?1:10})),t.a.createElement(dt.a.Item,{style:{marginLeft:8},label:"\u77E5\u8BC6\u6807\u7B7E",name:"tag"},t.a.createElement(Ne.a,{onKeyUp:ss})),t.a.createElement("div",{className:$r.a["tagsList-content"]},uo.map(function(nr,zt){return t.a.createElement(E.a,{key:zt+nr,closable:!0,onClose:function(Tn){ls(Tn,nr)}},nr)})),t.a.createElement("div",null,t.a.createElement("span",{className:"c-red"},"\u6CE8\u610F\uFF1A"),t.a.createElement("br",null),"1\u3001\u4E0A\u4F20\u8BFE\u4EF6\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",t.a.createElement(mn.a,{to:"/users/mmipb3zhj/videos/protocol",target:"_blank"},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B",t.a.createElement("br",null),"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u5355\u4E2A\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7",Object(F.v)()?500:100,"M\uFF1B",t.a.createElement("br",null),"3\u3001\u5F53\u524D\u4EC5\u9650\u652F\u6301pdf\u3001word\u3001excel\u3001ppt\u3001zip\u6587\u4EF6\uFF1B",t.a.createElement("br",null),"4\u3001\u6587\u4EF6\u540D\u5C06\u88AB\u81EA\u52A8\u8BFB\u53D6\u4E3A\u7CFB\u7EDF\u5185\u8BE5\u8BFE\u4EF6\u7684\u540D\u79F0\uFF0C\u4E0A\u4F20\u524D\u8BF7\u6CE8\u610F\u8FD9\u4E00\u70B9\uFF1B",t.a.createElement("br",null),"5\u3001\u4E00\u6B21\u6700\u591A\u4E0A\u4F2010\u4E2A\u6587\u4EF6\u3002"))),t.a.createElement(g.a,{centered:!0,title:"\u65B0\u5EFA\u5C0F\u8282\u540D\u79F0",visible:Er,confirmLoading:Li,onOk:Object(k.a)(p.a.mark(function nr(){var zt,on;return p.a.wrap(function(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:return Hn.next=2,Mn.validateFields();case 2:return Ci(!0),Hn.next=5,Mn.getFieldsValue();case 5:return zt=Hn.sent,Hn.next=8,Object(B.a)({id:an[pn].stage_id,subject_id:Yt.pathId,name:zt.name});case 8:on=Hn.sent,on.status===0&&(U.b.success("\u6DFB\u52A0\u6210\u529F"),_r(!1),Oo(Object(I.a)({},on))),Ci(!1);case 11:case"end":return Hn.stop()}},nr)})),onCancel:function(){return _r(!1)}},t.a.createElement(dt.a,{form:Mn},t.a.createElement(dt.a.Item,{label:"",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u5C0F\u8282\u540D\u79F0"}]},t.a.createElement(Ne.a,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u5C0F\u8282\u540D\u79F0"})))),t.a.createElement(Ns,null),t.a.createElement(go,{shixunIds:da,cb:xi}),t.a.createElement(xo.a,{visible:Da,editData:Aa,onCancel:function(){return Ua(!1)},onOk:No}))},$o=Object(l.a)(function(lt){var qe=lt.pathsDetail,Bt=lt.user,$t=lt.loading,cn=lt.globalSetting;return{pathsDetail:qe,user:Bt,globalSetting:cn,loading:$t.effects}})(Hs),ol=v("uRQ9"),$e=v.n(ol),pt=function(qe){var Bt=qe.user,$t=Object(O.a)(qe,["user"]),cn=Object(a.useState)([]),Wt=Object(_.a)(cn,2),_n=Wt[0],rn=Wt[1],Ht=Object(a.useState)(!0),An=Object(_.a)(Ht,2),qt=An[0],En=An[1],kn=Object(a.useState)(!1),Yt=Object(_.a)(kn,2),wn=Yt[0],ln=Yt[1],xn=Object(a.useState)(!1),an=Object(_.a)(xn,2),Vt=an[0],Sn=an[1],hr=Object(a.useState)(0),pn=Object(_.a)(hr,2),Dn=pn[0],Nn=pn[1],Gn=Object(a.useState)({}),yn=Object(_.a)(Gn,2),Kn=yn[0],or=yn[1],gr=Object(A.i)(),Ur=Object(a.useState)({page:1,limit:10}),er=Object(_.a)(Ur,2),rr=er[0],Lr=er[1],Er=[{title:"\u59D3\u540D",dataIndex:"user_name",key:"user_name",align:"left"},{title:"\u7533\u8BF7\u65F6\u95F4",dataIndex:"created_at",key:"created_at",align:"left"},{title:"\u7533\u8BF7\u72B6\u6001",dataIndex:"state",key:"state",align:"left",render:function(Yn,vn){return t.a.createElement(t.a.Fragment,null,(vn==null?void 0:vn.state)==="drafted"&&t.a.createElement("span",null,"\u7533\u8BF7\u4E2D"),(vn==null?void 0:vn.state)==="rejected"&&t.a.createElement("span",{style:{color:"#E53333"}},"\u672A\u901A\u8FC7"),(vn==null?void 0:vn.state)==="passed"&&t.a.createElement("span",{style:{color:"#2FA34F"}},"\u901A\u8FC7"))}},{title:"\u5B66\u4E60\u8FDB\u5EA6",dataIndex:"process",key:"process",align:"left",render:function(Yn){return"".concat(Yn,"%")}},{title:"\u5BA1\u6279\u64CD\u4F5C",dataIndex:"action",key:"action",align:"left",render:function(Yn,vn){return t.a.createElement("div",{className:$e.a.actionsBtns},(vn==null?void 0:vn.state)==="drafted"&&t.a.createElement("span",{onClick:function(){return _r(vn)}},"\u540C\u610F"),(vn==null?void 0:vn.state)==="drafted"&&t.a.createElement("span",{onClick:function(){return sa(vn)}},"\u62D2\u7EDD"),(vn==null?void 0:vn.state)==="rejected"&&t.a.createElement("span",{onClick:function(){return ta(vn)}},"\u62D2\u7EDD\u539F\u56E0"),(vn==null?void 0:vn.state)==="passed"&&t.a.createElement("span",{onClick:function(){return tr(vn)}},"\u67E5\u770B\u8BC1\u4E66"))}}].filter(function(ia){return Vt?!0:ia.title!=="\u5B66\u4E60\u8FDB\u5EA6"&&ia.title!=="\u5BA1\u6279\u64CD\u4F5C"});Object(a.useEffect)(function(){vr(rr)},[rr]);var _r=function(){var ia=Object(k.a)(p.a.mark(function Yn(vn){var yr;return p.a.wrap(function(Cr){for(;;)switch(Cr.prev=Cr.next){case 0:return Cr.next=2,Object(Ut.a)("/api/paths/".concat(gr==null?void 0:gr.pathId,"/process_certificate.json"),{method:"post",body:{certificate_id:vn==null?void 0:vn.id,op:"pass"}});case 2:yr=Cr.sent,(yr==null?void 0:yr.status)===0&&vr(rr);case 4:case"end":return Cr.stop()}},Yn)}));return function(vn){return ia.apply(this,arguments)}}(),sa=function(Yn){var vn="";g.a.confirm({title:"\u8BC1\u4E66\u7533\u8BF7\u62D2\u7EDD",icon:null,className:"custom-modal-divider",centered:!0,width:400,content:t.a.createElement("div",null,t.a.createElement("p",null,"\u62D2\u7EDD\u8BC1\u4E66\u53D1\u653E\u9700\u586B\u5199\u62D2\u7EDD\u539F\u56E0\u3002"),t.a.createElement("aside",{className:"flex-container"},t.a.createElement("sup",{className:"c-red-ee4"},"*"),t.a.createElement("span",null,"\u62D2\u7EDD\u539F\u56E0:"),t.a.createElement(Ne.a,{maxLength:30,style:{width:284,marginLeft:10},onChange:function(oi){return vn=oi.target.value}}))),okText:"\u786E\u5B9A\u62D2\u7EDD",cancelText:"\u53D6\u6D88",onOk:function(){var yr=Object(k.a)(p.a.mark(function Cr(){var Ir;return p.a.wrap(function(ar){for(;;)switch(ar.prev=ar.next){case 0:if(vn){ar.next=3;break}return U.b.warn("\u62D2\u7EDD\u7406\u7531\u4E0D\u80FD\u4E3A\u7A7A"),ar.abrupt("return",Promise.reject());case 3:return ar.next=5,Object(Ut.a)("/api/paths/".concat(gr==null?void 0:gr.pathId,"/process_certificate.json"),{method:"post",body:{certificate_id:Yn==null?void 0:Yn.id,op:"reject",content:vn}});case 5:Ir=ar.sent,(Ir==null?void 0:Ir.status)===0&&vr(rr);case 7:case"end":return ar.stop()}},Cr)}));function oi(){return yr.apply(this,arguments)}return oi}()})},ta=function(Yn){g.a.info({title:"\u62D2\u7EDD\u539F\u56E0",icon:null,className:"custom-modal-divider",centered:!0,width:400,content:t.a.createElement("div",null,Yn==null?void 0:Yn.content),okText:"\u786E\u5B9A"})},tr=function(Yn){or((Yn==null?void 0:Yn.info)||{}),ln(!0)},vr=function(){var ia=Object(k.a)(p.a.mark(function Yn(vn){var yr;return p.a.wrap(function(Cr){for(;;)switch(Cr.prev=Cr.next){case 0:return En(!0),Cr.next=3,Object(Ut.a)("/api/paths/".concat(gr==null?void 0:gr.pathId,"/request_certificates.json"),{method:"get",params:vn});case 3:yr=Cr.sent,yr!=null&&yr.data&&(rn(yr==null?void 0:yr.data),Nn((yr==null?void 0:yr.total_count)||0),Sn(yr==null?void 0:yr.is_manage)),En(!1);case 6:case"end":return Cr.stop()}},Yn)}));return function(vn){return ia.apply(this,arguments)}}(),ja=function(Yn,vn){var yr=Object(I.a)(Object(I.a)({},rr),{},{page:Yn,limit:vn});Lr(yr),vr(yr)};return t.a.createElement("div",{className:$e.a.certificate},t.a.createElement(bt.a,{dataSource:_n,rowKey:function(Yn){return Yn.id},columns:Er,loading:qt,pagination:{pageSize:rr.limit,total:Dn,current:rr.page,onChange:ja,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"]}}),t.a.createElement(sn,{visible:wn,onCancel:function(){ln(!1),or({})},data:Kn}))},wt=Object(l.a)(function(lt){var qe=lt.user,Bt=lt.pathsDetail;return{user:qe,pathsDetail:Bt}})(pt);se.a.locale("ZH-cn");var nt=T.a.TabPane,Te=function(qe){var Bt=qe.data,$t=Object(a.useState)("1"),cn=Object(_.a)($t,2),Wt=cn[0],_n=cn[1],rn=Object(a.useState)(1),Ht=Object(_.a)(rn,2),An=Ht[0],qt=Ht[1],En=Object(a.useState)(),kn=Object(_.a)(En,2),Yt=kn[0],wn=kn[1],ln=Object(a.useState)(!0),xn=Object(_.a)(ln,2),an=xn[0],Vt=xn[1],Sn=Object(A.i)();function hr(){return pn.apply(this,arguments)}function pn(){return pn=Object(k.a)(p.a.mark(function Nn(){var Gn,yn;return p.a.wrap(function(or){for(;;)switch(or.prev=or.next){case 0:return Vt(!0),Wt==="1"?Gn="/api/paths/".concat(Sn.pathId,"/study_ranking_shixuns_passed.json"):Wt==="2"?Gn="/api/paths/".concat(Sn.pathId,"/study_ranking_videos.json"):Wt==="3"?Gn="/api/paths/".concat(Sn.pathId,"/study_ranking_pdf_attachments.json"):Wt==="4"&&(Gn="/api/paths/".concat(Sn.pathId,"/study_ranking_discusses.json")),or.next=4,Object(Ut.a)(Gn,{method:"get",params:{page:An}});case 4:yn=or.sent,Vt(!1),wn(yn);case 7:case"end":return or.stop()}},Nn)})),pn.apply(this,arguments)}Object(a.useEffect)(function(){hr()},[An,Wt]);var Dn=function(){var Gn,yn,Kn,or,gr,Ur,er,rr,Lr,Er,_r,sa,ta;return t.a.createElement(t.a.Fragment,null,t.a.createElement(Q.a,{spinning:an},t.a.createElement("div",{style:{height:"42px",background:"#fafafa",display:"flex",padding:"0px 5px",alignItems:"center"}},t.a.createElement("span",{style:{flex:"1"}},"\u6392\u540D"),t.a.createElement("span",{style:{flex:"1"}},"\u59D3\u540D"),Wt==="1"&&t.a.createElement("span",{style:{flex:"3"}},"\u901A\u8FC7\u5173\u5361\u6570"),Wt==="2"&&t.a.createElement("span",{style:{flex:"3"}},"\u7D2F\u8BA1\u5B66\u4E60\u65F6\u957F"),Wt==="3"&&t.a.createElement("span",{style:{flex:"3"}},"\u4E0B\u8F7D\u8D44\u6E90\u6B21\u6570"),Wt==="4"&&t.a.createElement("span",{style:{flex:"3"}},"\u53D1\u5E16\u6570")),(Yt==null?void 0:Yt.user_show)&&t.a.createElement("div",{style:{height:"42px",display:"flex",padding:"0px 5px",alignItems:"center"}},t.a.createElement("span",{style:{flex:"1"}},(Yt==null||((Gn=Yt.data_user)===null||Gn===void 0)?void 0:Gn.rank)===0&&(Yt==null||((yn=Yt.data_user)===null||yn===void 0)?void 0:yn.num)===0?"--":(Yt==null||((Kn=Yt.data_user)===null||Kn===void 0)?void 0:Kn.rank)<=100&&(Yt==null||((or=Yt.data_user)===null||or===void 0)?void 0:or.rank)!=0?Yt==null||((gr=Yt.data_user)===null||gr===void 0)?void 0:gr.rank:"\u672A\u4E0A\u699C"),t.a.createElement("span",{style:{flex:"1"}},Yt==null||((Ur=Yt.data_user)===null||Ur===void 0)?void 0:Ur.user_real_name),Wt==="1"&&t.a.createElement("span",{style:{flex:"3"}},(Yt==null||((er=Yt.data_user)===null||er===void 0)?void 0:er.num)||"--"),Wt==="2"&&t.a.createElement("span",{style:{flex:"3"}},Yt!=null&&(rr=Yt.data_user)!==null&&rr!==void 0&&rr.num?Object(pe.bb)(Yt==null||((Lr=Yt.data_user)===null||Lr===void 0)?void 0:Lr.num):"--"),Wt==="3"&&t.a.createElement("span",{style:{flex:"3"}},(Yt==null||((Er=Yt.data_user)===null||Er===void 0)?void 0:Er.num)||"--"),Wt==="4"&&t.a.createElement("span",{style:{flex:"3"}},(Yt==null||((_r=Yt.data_user)===null||_r===void 0)?void 0:_r.num)||"--")),(Yt==null?void 0:Yt.user_show)&&t.a.createElement(pa.a,null),(Yt==null||((sa=Yt.data)===null||sa===void 0)?void 0:sa.length)>0?Yt==null||((ta=Yt.data)===null||ta===void 0)?void 0:ta.map(function(tr,vr){return t.a.createElement("div",{style:{height:"42px",display:"flex",padding:"0px 5px",alignItems:"center"}},(tr==null?void 0:tr.rank)===1&&t.a.createElement("span",{style:{flex:"1",color:"#E02020"}},tr==null?void 0:tr.rank),(tr==null?void 0:tr.rank)===2&&t.a.createElement("span",{style:{flex:"1",color:"#FA6400"}},tr==null?void 0:tr.rank),(tr==null?void 0:tr.rank)===3&&t.a.createElement("span",{style:{flex:"1",color:"#F7B500"}},tr==null?void 0:tr.rank),(tr==null?void 0:tr.rank)>3&&t.a.createElement("span",{style:{flex:"1"}},tr==null?void 0:tr.rank),t.a.createElement("span",{style:{flex:"1"}},tr==null?void 0:tr.user_real_name),Wt==="1"&&t.a.createElement("span",{style:{flex:"3"}},tr==null?void 0:tr.num),Wt==="2"&&t.a.createElement("span",{style:{flex:"3"}},Object(pe.bb)(tr==null?void 0:tr.num)),Wt==="3"&&t.a.createElement("span",{style:{flex:"3"}},tr==null?void 0:tr.num),Wt==="4"&&t.a.createElement("span",{style:{flex:"3"}},tr==null?void 0:tr.num))}):t.a.createElement(ur.a,null),(Yt==null?void 0:Yt.count)>10&&t.a.createElement(Jr.a,{current:An,pageSize:10,showSizeChanger:!1,total:Yt==null?void 0:Yt.count,style:{textAlign:"center",margin:"20px 0px"},onChange:function(vr){qt(vr)}})))};return t.a.createElement("div",null,t.a.createElement(T.a,{activeKey:Wt,style:{background:"#fff",padding:"0px 20px"},onChange:function(Gn){_n(Gn),qt(1)}},t.a.createElement(nt,{tab:"\u901A\u5173\u699C",style:{background:"#fff"},key:"1"},t.a.createElement(Dn,null)),t.a.createElement(nt,{tab:"\u89C6\u9891\u5B66\u4E60\u699C",key:"2"},t.a.createElement(Dn,null)),t.a.createElement(nt,{tab:"\u4E0B\u8F7D\u8D44\u6E90\u699C",key:"3"},t.a.createElement(Dn,null)),t.a.createElement(nt,{tab:"\u4E92\u52A8\u8BA8\u8BBA\u699C",key:"4"},t.a.createElement(Dn,null))))},Ge=v("XzQ7"),Re=v.n(Ge),it=v("ho57"),st=v.n(it),Tt=T.a.TabPane;function ht(lt){var qe=function(_n,rn){if(_n.localName===rn)return _n;for(var Ht=0,An=_n;An=An.parentNode;Ht++){if(An.localName===rn)return An;if(An==document.documentElement)return!1}},Bt=lt.target,$t=qe(Bt,"a");if(console.log([$t],$t==null?void 0:$t.href,44),$t!=null&&$t.href)return;if(Bt.tagName.toUpperCase()==="IMG"){var cn=Bt.src||Bt.getAttribute("src");cn&&cn.indexOf("/images/avatars/User")===-1&&(lt.stopPropagation(),lt.preventDefault(),Ka.a.publish("preview-image",cn))}}var Mt=function(qe){var Bt,$t,cn=qe.pathsDetail,Wt=qe.globalSetting,_n=qe.loading,rn=qe.dispatch,Ht=Object(O.a)(qe,["pathsDetail","globalSetting","loading","dispatch"]),An=Object(A.i)(),qt=Ht.location.query,En=Object(a.useRef)(),kn=Object(a.useState)("stage"),Yt=Object(_.a)(kn,2),wn=Yt[0],ln=Yt[1],xn=[{name:"\u8BFE\u7A0B\u7AE0\u8282",key:"stage"},{name:"\u6392\u884C\u699C",key:"ranking"},{name:"\u8BC1\u4E66\u7533\u8BF7",key:"certificate"}].filter(function(Vt){var Sn;return(Sn=cn.detail)!==null&&Sn!==void 0&&Sn.excellent?!0:Vt.key!=="certificate"});Object(a.useEffect)(function(){if(En.current)return En.current.addEventListener("mousedown",ht),function(){En.current.removeEventListener("mousedown",ht)}},[En.current]),Object(a.useEffect)(function(){if(!An.pathId)return;an()},[An.pathId]),Object(a.useEffect)(function(){var Vt;Object(pe.X)((Vt=cn.detail)===null||Vt===void 0?void 0:Vt.name)},[cn]);var an=function(){var Vt=Object(k.a)(p.a.mark(function Sn(){var hr;return p.a.wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:return Dn.next=2,rn({type:"pathsDetail/getPathsDetail",payload:Object(I.a)({id:An.pathId},qt)});case 2:hr=Dn.sent,rn({type:"pathsDetail/getRightData",payload:{id:An.pathId}}),rn({type:"pathsDetail/getStageData",payload:{subject_id:An.pathId}}),hr!=null&&hr.id&&qt.token&&(location.href=location.pathname);case 6:case"end":return Dn.stop()}},Sn)}));return function(){return Vt.apply(this,arguments)}}();return t.a.createElement(Q.a,{spinning:!1},t.a.createElement("section",{className:Re.a.bg},t.a.createElement(xt,null),t.a.createElement(Ia.a,null),t.a.createElement("section",{style:{marginTop:((Bt=cn.detail)===null||Bt===void 0?void 0:Bt.excellent)&&"89px"},className:"edu-container mb80 ".concat(Re.a.wrap)},t.a.createElement("aside",{className:Re.a.content},t.a.createElement("div",{className:Re.a.intro},t.a.createElement("div",{className:Re.a.introTitle},t.a.createElement("span",{className:"font16",style:{display:"flex",alignItems:"center"}},t.a.createElement("img",{src:st.a,style:{marginRight:"10px"}}),"\u8BFE\u7A0B\u4ECB\u7ECD")),t.a.createElement("div",{ref:En},t.a.createElement(Rt.a,{value:($t=cn.detail)===null||$t===void 0?void 0:$t.description}))),t.a.createElement(T.a,{className:Re.a.wrapTabs,activeKey:wn,onChange:function(Sn){return ln(Sn)},tabBarGutter:50,tabBarStyle:{height:76}},xn.map(function(Vt){return t.a.createElement(Tt,{tab:Vt.name,key:Vt.key})})),wn==="stage"&&t.a.createElement($o,null),wn==="ranking"&&t.a.createElement(Te,null),wn==="certificate"&&t.a.createElement(wt,null)),t.a.createElement(_i,null))))},tn=ee.default=Object(l.a)(function(lt){var qe=lt.pathsDetail,Bt=lt.loading,$t=lt.globalSetting;return{pathsDetail:qe,globalSetting:$t,loading:Bt}})(Mt)},BPZU:function(Be,ee){var v=32,Z=7,Q=256;function I(a){for(var t=0;a>=v;)t|=a&1,a>>=1;return a+t}function k(a,t,A,l){var i=t+1;if(i===A)return 1;if(l(a[i++],a[t])<0){for(;i<A&&l(a[i],a[i-1])<0;)i++;_(a,t,i)}else for(;i<A&&l(a[i],a[i-1])>=0;)i++;return i-t}function _(a,t,A){for(A--;t<A;){var l=a[t];a[t++]=a[A],a[A--]=l}}function O(a,t,A,l,i){for(l===t&&l++;l<A;l++){for(var c=a[l],d=t,f=l,o;d<f;)o=d+f>>>1,i(c,a[o])<0?f=o:d=o+1;var u=l-d;switch(u){case 3:a[d+3]=a[d+2];case 2:a[d+2]=a[d+1];case 1:a[d+1]=a[d];break;default:for(;u>0;)a[d+u]=a[d+u-1],u--}a[d]=c}}function M(a,t,A,l,i,c){var d=0,f=0,o=1;if(c(a,t[A+i])>0){for(f=l-i;o<f&&c(a,t[A+i+o])>0;)d=o,o=(o<<1)+1,o<=0&&(o=f);o>f&&(o=f),d+=i,o+=i}else{for(f=i+1;o<f&&c(a,t[A+i-o])<=0;)d=o,o=(o<<1)+1,o<=0&&(o=f);o>f&&(o=f);var u=d;d=i-o,o=i-u}for(d++;d<o;){var E=d+(o-d>>>1);c(a,t[A+E])>0?d=E+1:o=E}return o}function T(a,t,A,l,i,c){var d=0,f=0,o=1;if(c(a,t[A+i])<0){for(f=i+1;o<f&&c(a,t[A+i-o])<0;)d=o,o=(o<<1)+1,o<=0&&(o=f);o>f&&(o=f);var u=d;d=i-o,o=i-u}else{for(f=l-i;o<f&&c(a,t[A+i+o])>=0;)d=o,o=(o<<1)+1,o<=0&&(o=f);o>f&&(o=f),d+=i,o+=i}for(d++;d<o;){var E=d+(o-d>>>1);c(a,t[A+E])<0?o=E:d=E+1}return o}function n(a,t){var A=Z,l=0,i=Q,c=0,d,f,o=0;l=a.length,l<2*Q&&(i=l>>>1);var u=[];c=l<120?5:l<1542?10:l<119151?19:40,d=[],f=[];function E(s,h){d[o]=s,f[o]=h,o+=1}function R(){for(;o>1;){var s=o-2;if(s>=1&&f[s-1]<=f[s]+f[s+1]||s>=2&&f[s-2]<=f[s]+f[s-1])f[s-1]<f[s+1]&&s--;else if(f[s]>f[s+1])break;P(s)}}function w(){for(;o>1;){var s=o-2;s>0&&f[s-1]<f[s+1]&&s--,P(s)}}function P(s){var h=d[s],m=f[s],x=d[s+1],g=f[s+1];f[s]=m+g,s===o-3&&(d[s+1]=d[s+2],f[s+1]=f[s+2]),o--;var y=T(a[x],a,h,m,0,t);if(h+=y,m-=y,m===0)return;if(g=M(a[h+m-1],a,x,g,g-1,t),g===0)return;m<=g?C(h,m,x,g):b(h,m,x,g)}function C(s,h,m,x){var g=0;for(g=0;g<h;g++)u[g]=a[s+g];var y=0,U=m,N=s;if(a[N++]=a[U++],--x===0){for(g=0;g<h;g++)a[N+g]=u[y+g];return}if(h===1){for(g=0;g<x;g++)a[N+g]=a[U+g];a[N+x]=u[y];return}for(var S=A,H,F,B;;){H=0,F=0,B=!1;do if(t(a[U],u[y])<0){if(a[N++]=a[U++],F++,H=0,--x===0){B=!0;break}}else if(a[N++]=u[y++],H++,F=0,--h===1){B=!0;break}while((H|F)<S);if(B)break;do{if(H=T(a[U],u,y,h,0,t),H!==0){for(g=0;g<H;g++)a[N+g]=u[y+g];if(N+=H,y+=H,h-=H,h<=1){B=!0;break}}if(a[N++]=a[U++],--x===0){B=!0;break}if(F=M(u[y],a,U,x,0,t),F!==0){for(g=0;g<F;g++)a[N+g]=a[U+g];if(N+=F,U+=F,x-=F,x===0){B=!0;break}}if(a[N++]=u[y++],--h===1){B=!0;break}S--}while(H>=Z||F>=Z);if(B)break;S<0&&(S=0),S+=2}if(A=S,A<1&&(A=1),h===1){for(g=0;g<x;g++)a[N+g]=a[U+g];a[N+x]=u[y]}else{if(h===0)throw new Error;for(g=0;g<h;g++)a[N+g]=u[y+g]}}function b(s,h,m,x){var g=0;for(g=0;g<x;g++)u[g]=a[m+g];var y=s+h-1,U=x-1,N=m+x-1,S=0,H=0;if(a[N--]=a[y--],--h===0){for(S=N-(x-1),g=0;g<x;g++)a[S+g]=u[g];return}if(x===1){for(N-=h,y-=h,H=N+1,S=y+1,g=h-1;g>=0;g--)a[H+g]=a[S+g];a[N]=u[U];return}for(var F=A;;){var B=0,z=0,K=!1;do if(t(u[U],a[y])<0){if(a[N--]=a[y--],B++,z=0,--h===0){K=!0;break}}else if(a[N--]=u[U--],z++,B=0,--x===1){K=!0;break}while((B|z)<F);if(K)break;do{if(B=h-T(u[U],a,s,h,h-1,t),B!==0){for(N-=B,y-=B,h-=B,H=N+1,S=y+1,g=B-1;g>=0;g--)a[H+g]=a[S+g];if(h===0){K=!0;break}}if(a[N--]=u[U--],--x===1){K=!0;break}if(z=x-M(a[y],u,0,x,x-1,t),z!==0){for(N-=z,U-=z,x-=z,H=N+1,S=U+1,g=0;g<z;g++)a[H+g]=u[S+g];if(x<=1){K=!0;break}}if(a[N--]=a[y--],--h===0){K=!0;break}F--}while(B>=Z||z>=Z);if(K)break;F<0&&(F=0),F+=2}if(A=F,A<1&&(A=1),x===1){for(N-=h,y-=h,H=N+1,S=y+1,g=h-1;g>=0;g--)a[H+g]=a[S+g];a[N]=u[U]}else{if(x===0)throw new Error;for(S=N-(x-1),g=0;g<x;g++)a[S+g]=u[g]}}this.mergeRuns=R,this.forceMergeRuns=w,this.pushRun=E}function p(a,t,A,l){A||(A=0),l||(l=a.length);var i=l-A;if(i<2)return;var c=0;if(i<v){c=k(a,A,l,t),O(a,A,l,A+c,t);return}var d=new n(a,t),f=I(i);do{if(c=k(a,A,l,t),c<f){var o=i;o>f&&(o=f),O(a,A,A+o,A+c,t),c=o}d.pushRun(A,c),d.mergeRuns(),i-=c,A+=c}while(i!==0);d.forceMergeRuns()}Be.exports=p},BU3w:function(Be,ee,v){"use strict";v.d(ee,"a",function(){return O});var Z=v("MNnm"),Q="rc-util-key";function I(M){if(M.attachTo)return M.attachTo;var T=document.querySelector("head");return T||document.body}function k(M){var T,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(Z.a)())return null;var p=document.createElement("style");if((T=n.csp)===null||T===void 0?void 0:T.nonce){var a;p.nonce=(a=n.csp)===null||a===void 0?void 0:a.nonce}p.innerHTML=M;var t=I(n),A=t.firstChild;return n.prepend&&t.prepend?t.prepend(p):n.prepend&&A?t.insertBefore(p,A):t.appendChild(p),p}var _=new Map;function O(M,T){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=I(n);if(!_.has(p)){var a=k("",n),t=a.parentNode;_.set(p,t),t.removeChild(a)}var A=Array.from(_.get(p).children).find(function(f){return f.tagName==="STYLE"&&f[Q]===T});if(A){var l,i;if(((l=n.csp)===null||l===void 0?void 0:l.nonce)&&A.nonce!==((i=n.csp)===null||i===void 0?void 0:i.nonce)){var c;A.nonce=(c=n.csp)===null||c===void 0?void 0:c.nonce}return A.innerHTML!==M&&(A.innerHTML=M),A}var d=k(M,n);return d[Q]=T,d}},Bd2K:function(Be,ee,v){(function(Z){Z(v("VrN/"),v("osHv"))})(function(Z){Z.defineOption("autoCloseTags",!1,function(n,p,a){if(a!=Z.Init&&a&&n.removeKeyMap("autoCloseTags"),!p)return;var t={name:"autoCloseTags"};(typeof p!="object"||p.whenClosing!==!1)&&(t["'/'"]=function(A){return O(A)}),(typeof p!="object"||p.whenOpening!==!1)&&(t["'>'"]=function(A){return k(A)}),n.addKeyMap(t)});var Q=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],I=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function k(n){if(n.getOption("disableInput"))return Z.Pass;for(var p=n.listSelections(),a=[],t=n.getOption("autoCloseTags"),A=0;A<p.length;A++){if(!p[A].empty())return Z.Pass;var l=p[A].head,i=n.getTokenAt(l),c=Z.innerMode(n.getMode(),i.state),d=c.state,f=c.mode.xmlCurrentTag&&c.mode.xmlCurrentTag(d),o=f&&f.name;if(!o)return Z.Pass;var u=c.mode.configuration=="html",E=typeof t=="object"&&t.dontCloseTags||u&&Q,R=typeof t=="object"&&t.indentTags||u&&I;i.end>l.ch&&(o=o.slice(0,o.length-i.end+l.ch));var w=o.toLowerCase();if(!o||i.type=="string"&&(i.end!=l.ch||!/[\"\']/.test(i.string.charAt(i.string.length-1))||i.string.length==1)||i.type=="tag"&&f.close||i.string.indexOf("/")==l.ch-i.start-1||E&&M(E,w)>-1||T(n,c.mode.xmlCurrentContext&&c.mode.xmlCurrentContext(d)||[],o,l,!0))return Z.Pass;var P=typeof t=="object"&&t.emptyTags;if(P&&M(P,o)>-1){a[A]={text:"/>",newPos:Z.Pos(l.line,l.ch+2)};continue}var C=R&&M(R,w)>-1;a[A]={indent:C,text:">"+(C?`
`:"")+"</"+o+">",newPos:C?Z.Pos(l.line+1,0):Z.Pos(l.line,l.ch+1)}}for(var b=typeof t=="object"&&t.dontIndentOnAutoClose,A=p.length-1;A>=0;A--){var s=a[A];n.replaceRange(s.text,p[A].head,p[A].anchor,"+insert");var h=n.listSelections().slice(0);h[A]={head:s.newPos,anchor:s.newPos},n.setSelections(h),!b&&s.indent&&(n.indentLine(s.newPos.line,null,!0),n.indentLine(s.newPos.line+1,null,!0))}}function _(n,p){for(var a=n.listSelections(),t=[],A=p?"/":"</",l=n.getOption("autoCloseTags"),i=typeof l=="object"&&l.dontIndentOnSlash,c=0;c<a.length;c++){if(!a[c].empty())return Z.Pass;var d=a[c].head,f=n.getTokenAt(d),o=Z.innerMode(n.getMode(),f.state),u=o.state;if(p&&(f.type=="string"||f.string.charAt(0)!="<"||f.start!=d.ch-1))return Z.Pass;var E,R=o.mode.name!="xml"&&n.getMode().name=="htmlmixed";if(R&&o.mode.name=="javascript")E=A+"script";else if(R&&o.mode.name=="css")E=A+"style";else{var w=o.mode.xmlCurrentContext&&o.mode.xmlCurrentContext(u);if(!w||w.length&&T(n,w,w[w.length-1],d))return Z.Pass;E=A+w[w.length-1]}n.getLine(d.line).charAt(f.end)!=">"&&(E+=">"),t[c]=E}if(n.replaceSelections(t),a=n.listSelections(),!i)for(var c=0;c<a.length;c++)(c==a.length-1||a[c].head.line<a[c+1].head.line)&&n.indentLine(a[c].head.line)}function O(n){return n.getOption("disableInput")?Z.Pass:_(n,!0)}Z.commands.closeTag=function(n){return _(n)};function M(n,p){if(n.indexOf)return n.indexOf(p);for(var a=0,t=n.length;a<t;++a)if(n[a]==p)return a;return-1}function T(n,p,a,t,A){if(!Z.scanForClosingTag)return!1;var l=Math.min(n.lastLine()+1,t.line+500),i=Z.scanForClosingTag(n,t,null,l);if(!i||i.tag!=a)return!1;for(var c=A?1:0,d=p.length-1;d>=0&&p[d]==a;d--)++c;t=i.to;for(var d=1;d<c;d++){var f=Z.scanForClosingTag(n,t,null,l);if(!f||f.tag!=a)return!1;t=f.to}return!0}})},BdwD:function(Be,ee,v){"use strict";var Z=v("+L6B"),Q=v("2/Rp"),I=v("0Owb"),k=v("k1fw"),_=v("q1tI"),O=v.n(_),M=v("FOrL"),T=v.n(M),n=function(a){var t=a.buttonProps,A=t===void 0?{}:t,l=a.styles,i=l===void 0?{}:l,c=a.customText,d=a.ButtonText,f=a.ButtonClick,o=a.Buttonclass,u=a.ButtonTwo;return O.a.createElement("section",{className:"tc animated fadeIn",style:Object(k.a)(Object(k.a)({},{color:"#999",margin:"200px auto"}),i)},O.a.createElement("img",{src:T.a}),O.a.createElement("p",{className:"mt20 font14"},c||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),d&&O.a.createElement(Q.a,Object(I.a)({className:o,onClick:f},A),d),u&&u)};ee.a=n},BjJ7:function(Be,ee,v){"use strict";v.d(ee,"d",function(){return Q}),v.d(ee,"c",function(){return I}),v.d(ee,"e",function(){return k}),v.d(ee,"b",function(){return _}),v.d(ee,"a",function(){return M});var Z=v("m3rI");function Q(T){var n=!0;if(T.length>0){for(var p=0;p<T.length;p++)if(T[p].compile_success==0||!T[p].compile_success){n=!1;break}}else n=!1;return n}function I(T){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",p=[],a=0;a<T.length;a++){var t=T[a],A=n?"".concat(n,"/").concat(t.name):"".concat(t.name);p.push({title:t.name,isLeaf:!(t.type==="tree"),key:A})}return p}function k(T,n,p){for(var a=0;a<T.length;a++){var t=T[a];if(t.key===n){t.children=p;break}t.children&&k(t.children,n,p)}return T}function _(T,n,p){var a;return function(){var t=this,A=arguments,l=function(){a=null,p||T.apply(t,A)},i=p&&!a;clearTimeout(a),a=setTimeout(l,n),i&&T.apply(t,A)}}var O=!0,M=Z.a.API_SERVER},BlVb:function(Be,ee,v){var Z=v("hyiK"),Q=1e-8;function I(_,O){return Math.abs(_-O)<Q}function k(_,O,M){var T=0,n=_[0];if(!n)return!1;for(var p=1;p<_.length;p++){var a=_[p];T+=Z(n[0],n[1],a[0],a[1],O,M),n=a}var t=_[0];return(!I(n[0],t[0])||!I(n[1],t[1]))&&(T+=Z(n[0],n[1],t[0],t[1],O,M)),T!==0}ee.contain=k},Bq2U:function(Be,ee,v){var Z=v("RDYZ"),Q=v("Qe9p"),I=v("bYtY"),k=I.isArrayLike,_=Array.prototype.slice;function O(E,R){return E[R]}function M(E,R,w){E[R]=w}function T(E,R,w){return(R-E)*w+E}function n(E,R,w){return w>.5?R:E}function p(E,R,w,P,C){var b=E.length;if(C===1)for(var s=0;s<b;s++)P[s]=T(E[s],R[s],w);else for(var h=b&&E[0].length,s=0;s<b;s++)for(var m=0;m<h;m++)P[s][m]=T(E[s][m],R[s][m],w)}function a(E,R,w){var P=E.length,C=R.length;if(P!==C){var b=P>C;if(b)E.length=C;else for(var s=P;s<C;s++)E.push(w===1?R[s]:_.call(R[s]))}for(var h=E[0]&&E[0].length,s=0;s<E.length;s++)if(w===1)isNaN(E[s])&&(E[s]=R[s]);else for(var m=0;m<h;m++)isNaN(E[s][m])&&(E[s][m]=R[s][m])}function t(E,R,w){if(E===R)return!0;var P=E.length;if(P!==R.length)return!1;if(w===1){for(var C=0;C<P;C++)if(E[C]!==R[C])return!1}else for(var b=E[0].length,C=0;C<P;C++)for(var s=0;s<b;s++)if(E[C][s]!==R[C][s])return!1;return!0}function A(E,R,w,P,C,b,s,h,m){var x=E.length;if(m===1)for(var g=0;g<x;g++)h[g]=l(E[g],R[g],w[g],P[g],C,b,s);else for(var y=E[0].length,g=0;g<x;g++)for(var U=0;U<y;U++)h[g][U]=l(E[g][U],R[g][U],w[g][U],P[g][U],C,b,s)}function l(E,R,w,P,C,b,s){var h=(w-E)*.5,m=(P-R)*.5;return(2*(R-w)+h+m)*s+(-3*(R-w)-2*h-m)*b+h*C+R}function i(E){if(k(E)){var R=E.length;if(k(E[0])){for(var w=[],P=0;P<R;P++)w.push(_.call(E[P]));return w}return _.call(E)}return E}function c(E){return E[0]=Math.floor(E[0]),E[1]=Math.floor(E[1]),E[2]=Math.floor(E[2]),"rgba("+E.join(",")+")"}function d(E){var R=E[E.length-1].value;return k(R&&R[0])?2:1}function f(E,R,w,P,C,b){var s=E._getter,h=E._setter,m=R==="spline",x=P.length;if(!x)return;var g=P[0].value,y=k(g),U=!1,N=!1,S=y?d(P):0,H;P.sort(function(Ke,et){return Ke.time-et.time}),H=P[x-1].time;for(var F=[],B=[],z=P[0].value,K=!0,$=0;$<x;$++){F.push(P[$].time/H);var te=P[$].value;if(y&&t(te,z,S)||!y&&te===z||(K=!1),z=te,typeof te=="string"){var fe=Q.parse(te);fe?(te=fe,U=!0):N=!0}B.push(te)}if(!b&&K)return;for(var Ae=B[x-1],$=0;$<x-1;$++)y?a(B[$],Ae,S):isNaN(B[$])&&!isNaN(Ae)&&!N&&!U&&(B[$]=Ae);y&&a(s(E._target,C),Ae,S);var ce=0,ie=0,ye,le,me,se,ge,ae;if(U)var pe=[0,0,0,0];var Me=function(Ke,et){var he;if(et<0)he=0;else if(et<ie){for(ye=Math.min(ce+1,x-1),he=ye;he>=0&&!(F[he]<=et);he--);he=Math.min(he,x-2)}else{for(he=ce;he<x&&!(F[he]>et);he++);he=Math.min(he-1,x-2)}ce=he,ie=et;var Se=F[he+1]-F[he];if(Se===0)return;if(le=(et-F[he])/Se,m)if(se=B[he],me=B[he===0?he:he-1],ge=B[he>x-2?x-1:he+1],ae=B[he>x-3?x-1:he+2],y)A(me,se,ge,ae,le,le*le,le*le*le,s(Ke,C),S);else{var Ue;if(U)Ue=A(me,se,ge,ae,le,le*le,le*le*le,pe,1),Ue=c(pe);else{if(N)return n(se,ge,le);Ue=l(me,se,ge,ae,le,le*le,le*le*le)}h(Ke,C,Ue)}else if(y)p(B[he],B[he+1],le,s(Ke,C),S);else{var Ue;if(U)p(B[he],B[he+1],le,pe,1),Ue=c(pe);else{if(N)return n(B[he],B[he+1],le);Ue=T(B[he],B[he+1],le)}h(Ke,C,Ue)}},xe=new Z({target:E._target,life:H,loop:E._loop,delay:E._delay,onframe:Me,ondestroy:w});return R&&R!=="spline"&&(xe.easing=R),xe}var o=function(E,R,w,P){this._tracks={},this._target=E,this._loop=R||!1,this._getter=w||O,this._setter=P||M,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};o.prototype={when:function(E,R){var w=this._tracks;for(var P in R){if(!R.hasOwnProperty(P))continue;if(!w[P]){w[P]=[];var C=this._getter(this._target,P);if(C==null)continue;E!==0&&w[P].push({time:0,value:i(C)})}w[P].push({time:E,value:R[P]})}return this},during:function(E){return this._onframeList.push(E),this},pause:function(){for(var E=0;E<this._clipList.length;E++)this._clipList[E].pause();this._paused=!0},resume:function(){for(var E=0;E<this._clipList.length;E++)this._clipList[E].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var E=this._doneList,R=E.length,w=0;w<R;w++)E[w].call(this)},start:function(E,R){var w=this,P=0,C=function(){P--,P||w._doneCallback()},b;for(var s in this._tracks){if(!this._tracks.hasOwnProperty(s))continue;var h=f(this,E,C,this._tracks[s],s,R);h&&(this._clipList.push(h),P++,this.animation&&this.animation.addClip(h),b=h)}if(b){var m=b.onframe;b.onframe=function(x,g){m(x,g);for(var y=0;y<w._onframeList.length;y++)w._onframeList[y](x,g)}}return P||this._doneCallback(),this},stop:function(E){for(var R=this._clipList,w=this.animation,P=0;P<R.length;P++){var C=R[P];E&&C.onframe(this._target,1),w&&w.removeClip(C)}R.length=0},delay:function(E){return this._delay=E,this},done:function(E){return E&&this._doneList.push(E),this},getClips:function(){return this._clipList}};var u=o;Be.exports=u},"C+DQ":function(Be,ee,v){},"C/vA":function(Be,ee,v){"use strict";v.d(ee,"a",function(){return Z});function Z(Q){const I=this;let k=!1,_;return function(){return k||(k=!0,_=Q.apply(I,arguments)),_}}},C0SR:function(Be,ee,v){var Z=v("YH21"),Q=function(){this._track=[]};Q.prototype={constructor:Q,recognize:function(M,T,n){return this._doTrack(M,T,n),this._recognize(M)},clear:function(){return this._track.length=0,this},_doTrack:function(M,T,n){var p=M.touches;if(!p)return;for(var a={points:[],touches:[],target:T,event:M},t=0,A=p.length;t<A;t++){var l=p[t],i=Z.clientToLocal(n,l,{});a.points.push([i.zrX,i.zrY]),a.touches.push(l)}this._track.push(a)},_recognize:function(M){for(var T in _)if(_.hasOwnProperty(T)){var n=_[T](this._track,M);if(n)return n}}};function I(M){var T=M[1][0]-M[0][0],n=M[1][1]-M[0][1];return Math.sqrt(T*T+n*n)}function k(M){return[(M[0][0]+M[1][0])/2,(M[0][1]+M[1][1])/2]}var _={pinch:function(M,T){var n=M.length;if(!n)return;var p=(M[n-1]||{}).points,a=(M[n-2]||{}).points||p;if(a&&a.length>1&&p&&p.length>1){var t=I(p)/I(a);!isFinite(t)&&(t=1),T.pinchScale=t;var A=k(p);return T.pinchX=A[0],T.pinchY=A[1],{type:"pinch",target:M[0].target,event:T}}}},O=Q;Be.exports=O},"Cg/j":function(Be,ee,v){"use strict";v.d(ee,"b",function(){return Z}),v.d(ee,"a",function(){return Q}),v.d(ee,"c",function(){return k}),v.d(ee,"d",function(){return _});var Z;(function(O){O.serviceIds=new Map,O.DI_TARGET="$di$target",O.DI_DEPENDENCIES="$di$dependencies";function M(T){return T[O.DI_DEPENDENCIES]||[]}O.getServiceDependencies=M})(Z||(Z={}));const Q=k("instantiationService");function I(O,M,T,n){M[Z.DI_TARGET]===M?M[Z.DI_DEPENDENCIES].push({id:O,index:T,optional:n}):(M[Z.DI_DEPENDENCIES]=[{id:O,index:T,optional:n}],M[Z.DI_TARGET]=M)}function k(O){if(Z.serviceIds.has(O))return Z.serviceIds.get(O);const M=function(T,n,p){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");I(M,T,p,!1)};return M.toString=()=>O,Z.serviceIds.set(O,M),M}function _(O){return function(M,T,n){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");I(O,M,n,!0)}}},CnIC:function(Be,ee){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAWCAYAAADTlvzyAAAAAXNSR0IArs4c6QAAA+JJREFUSA2dVltslEUUPmf+f7cXt+oKRKzVtCoICbARtVEJIA+mQiMaI00UXuCBRCT2AZPGaCJvWjUmQowPSBpN+kK8RKVNCIZLorIEVEqFmABVgxsuspi2wHZ3Z+f4za7/9r9sSe0k7Zz55pzzzZzL7M80zdHaJ7fnx+g9EeokptkklGGm/geX0PZDq1hP0w1MpzHm7pA5LLQfZKka6t/MaqZ1p7q4UGMvArkRBMC+IWnTpvC4EMeEzI+bD9NWoZpk1nzt1Yu0cXB44js27qMlY+pE0fAzqfjPtXxHCPcOFZdr0tuIlWOvfyXnnBWmTQjh1MNQtynSBVaynhFnROOFgZP6y84lbl/YSPmBPackAeBVOHc8vP8MuVgnvHWtGQdacO66ygT2jDw/eKLwUADDIkDYmNePIU/1fqWR626V3I8HZMT+eBYHCw3AHSEoSEjKzA0rzLuNcmGs1np+MnY5jDNJcxgL3NBRztWwwsuLdAy1PBbGQ+uRpclCJOwiEvEXINTaBPMAr66hFSieSPL9hErRVyLc7sfKsnL+CmMBwtzZ2K9EcsmvBLL2jpZiP4rvhh+vyrj9ylbqU8RPVzFPKBX3e6I3Bwi7uriE8O3yNu2MbuCuB/hZiBuwV/Lv4RATsxto/YZ79eZwsQnJt51LG/7061s5QGiBzlT8qGL+3MresC/MruV6HP2108PsjHZ4+532UhzifX4cUTl9PBX7xI95coTQbhjhBk/Bzqi20fGSm4UwJ4ALzUPLHqVQcaBY6lb+QfYgkYHDTI69JwsPs+GXgMyvoHLpWsF8/dqxullaUw9uumBSuyIhrMcScerdsayUE0OrEcrW/2z/IaW+uJw9v2/jqrYJz65MODh0o0UoZl+YhXYDoctlS/xpzw/OQuSwG0QtnsFUM4h/g7N3P1qhf4+zbIKXZFlXZIwV716Tih2wax4YlkeopF+HXAmByLm3foqlM9fofZDdXTb6H/9AfLolSVu2L9YdSMFizxSHObQ65X7AAycKH4O3fAPE/sK2tDo8mnc+g2LN/HoObjbb6r2jXq/pbZcX8Zjf5emyMT3WaeXqEFjR7rG88wbEGZNZ57ZFsjn3TXbUgF1XB6ukwo/JLziRwUlyrxyI5RHGch6rSjMXnjyYkcn3FalicjOVoknLrbq+cM+W7+MJVGN65hw+S/RSoo4WfbiMGuONdOap+3nU7pYJfWrUvFOeM4a2olKfwG0D/ejXm0qGQ/upkcaj0HuxmwfDehFCT2HdHnGO/E1tukhJx6Em9FgTctOEz4cmtM8t+BOkwn485TCPk6Er+Nk+n7yTRm72ffMvtr1U/uTpxS8AAAAASUVORK5CYII="},DBLp:function(Be,ee){function v(){}v.prototype={diff:function(_,O,M){M||(M=function(o,u){return o===u}),this.equals=M;var T=this;_=_.slice(),O=O.slice();var n=O.length,p=_.length,a=1,t=n+p,A=[{newPos:-1,components:[]}],l=this.extractCommon(A[0],O,_,0);if(A[0].newPos+1>=n&&l+1>=p){for(var i=[],c=0;c<O.length;c++)i.push(c);return[{indices:i,count:O.length}]}function d(){for(var o=-1*a;o<=a;o+=2){var u,E=A[o-1],R=A[o+1],w=(R?R.newPos:0)-o;E&&(A[o-1]=void 0);var P=E&&E.newPos+1<n,C=R&&0<=w&&w<p;if(!P&&!C){A[o]=void 0;continue}if(!P||C&&E.newPos<R.newPos?(u=Q(R),T.pushComponent(u.components,void 0,!0)):(u=E,u.newPos++,T.pushComponent(u.components,!0,void 0)),w=T.extractCommon(u,O,_,o),u.newPos+1>=n&&w+1>=p)return Z(T,u.components,O,_);A[o]=u}a++}for(;a<=t;){var f=d();if(f)return f}},pushComponent:function(_,O,M){var T=_[_.length-1];T&&T.added===O&&T.removed===M?_[_.length-1]={count:T.count+1,added:O,removed:M}:_.push({count:1,added:O,removed:M})},extractCommon:function(_,O,M,T){for(var n=O.length,p=M.length,a=_.newPos,t=a-T,A=0;a+1<n&&t+1<p&&this.equals(O[a+1],M[t+1]);)a++,t++,A++;return A&&_.components.push({count:A}),_.newPos=a,t},tokenize:function(_){return _.slice()},join:function(_){return _.slice()}};function Z(_,O,M,T){for(var n=0,p=O.length,a=0,t=0;n<p;n++){var A=O[n];if(A.removed){for(var l=[],i=t;i<t+A.count;i++)l.push(i);A.indices=l,t+=A.count}else{for(var l=[],i=a;i<a+A.count;i++)l.push(i);A.indices=l,a+=A.count,A.added||(t+=A.count)}}return O}function Q(_){return{newPos:_.newPos,components:_.components.slice(0)}}var I=new v;function k(_,O,M){return I.diff(_,O,M)}Be.exports=k},DN4a:function(Be,ee,v){var Z=v("Fofx"),Q=v("QBsz"),I=Z.identity,k=5e-5;function _(t){return t>k||t<-k}var O=function(t){t=t||{},t.position||(this.position=[0,0]),t.rotation==null&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},M=O.prototype;M.transform=null,M.needLocalTransform=function(){return _(this.rotation)||_(this.position[0])||_(this.position[1])||_(this.scale[0]-1)||_(this.scale[1]-1)};var T=[];M.updateTransform=function(){var t=this.parent,A=t&&t.transform,l=this.needLocalTransform(),i=this.transform;if(!(l||A)){i&&I(i);return}i=i||Z.create(),l?this.getLocalTransform(i):I(i),A&&(l?Z.mul(i,t.transform,i):Z.copy(i,t.transform)),this.transform=i;var c=this.globalScaleRatio;if(c!=null&&c!==1){this.getGlobalScale(T);var d=T[0]<0?-1:1,f=T[1]<0?-1:1,o=((T[0]-d)*c+d)/T[0]||0,u=((T[1]-f)*c+f)/T[1]||0;i[0]*=o,i[1]*=o,i[2]*=u,i[3]*=u}this.invTransform=this.invTransform||Z.create(),Z.invert(this.invTransform,i)},M.getLocalTransform=function(t){return O.getLocalTransform(this,t)},M.setTransform=function(t){var A=this.transform,l=t.dpr||1;A?t.setTransform(l*A[0],l*A[1],l*A[2],l*A[3],l*A[4],l*A[5]):t.setTransform(l,0,0,l,0,0)},M.restoreTransform=function(t){var A=t.dpr||1;t.setTransform(A,0,0,A,0,0)};var n=[],p=Z.create();M.setLocalTransform=function(t){if(!t)return;var A=t[0]*t[0]+t[1]*t[1],l=t[2]*t[2]+t[3]*t[3],i=this.position,c=this.scale;_(A-1)&&(A=Math.sqrt(A)),_(l-1)&&(l=Math.sqrt(l)),t[0]<0&&(A=-A),t[3]<0&&(l=-l),i[0]=t[4],i[1]=t[5],c[0]=A,c[1]=l,this.rotation=Math.atan2(-t[1]/l,t[0]/A)},M.decomposeTransform=function(){if(!this.transform)return;var t=this.parent,A=this.transform;t&&t.transform&&(Z.mul(n,t.invTransform,A),A=n);var l=this.origin;l&&(l[0]||l[1])&&(p[4]=l[0],p[5]=l[1],Z.mul(n,A,p),n[4]-=l[0],n[5]-=l[1],A=n),this.setLocalTransform(A)},M.getGlobalScale=function(t){var A=this.transform;return t=t||[],A?(t[0]=Math.sqrt(A[0]*A[0]+A[1]*A[1]),t[1]=Math.sqrt(A[2]*A[2]+A[3]*A[3]),A[0]<0&&(t[0]=-t[0]),A[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},M.transformCoordToLocal=function(t,A){var l=[t,A],i=this.invTransform;return i&&Q.applyTransform(l,l,i),l},M.transformCoordToGlobal=function(t,A){var l=[t,A],i=this.transform;return i&&Q.applyTransform(l,l,i),l},O.getLocalTransform=function(t,A){A=A||[],I(A);var l=t.origin,i=t.scale||[1,1],c=t.rotation||0,d=t.position||[0,0];return l&&(A[4]-=l[0],A[5]-=l[1]),Z.scale(A,A,i),c&&Z.rotate(A,A,c),l&&(A[4]+=l[0],A[5]+=l[1]),A[4]+=d[0],A[5]+=d[1],A};var a=O;Be.exports=a},Dagg:function(Be,ee,v){var Z=v("Gev7"),Q=v("mFDi"),I=v("bYtY"),k=v("Xnb7");function _(M){Z.call(this,M)}_.prototype={constructor:_,type:"image",brush:function(M,T){var n=this.style,p=n.image;n.bind(M,this,T);var a=this._image=k.createOrUpdateImage(p,this._image,this,this.onload);if(!a||!k.isImageReady(a))return;var t=n.x||0,A=n.y||0,l=n.width,i=n.height,c=a.width/a.height;if(l==null&&i!=null?l=i*c:i==null&&l!=null?i=l/c:l==null&&i==null&&(l=a.width,i=a.height),this.setTransform(M),n.sWidth&&n.sHeight){var d=n.sx||0,f=n.sy||0;M.drawImage(a,d,f,n.sWidth,n.sHeight,t,A,l,i)}else if(n.sx&&n.sy){var d=n.sx,f=n.sy,o=l-d,u=i-f;M.drawImage(a,d,f,o,u,t,A,l,i)}else M.drawImage(a,t,A,l,i);n.text!=null&&(this.restoreTransform(M),this.drawRectText(M,this.getBoundingRect()))},getBoundingRect:function(){var M=this.style;return this._rect||(this._rect=new Q(M.x||0,M.y||0,M.width||0,M.height||0)),this._rect}},I.inherits(_,Z);var O=_;Be.exports=O},DlQD:function(Be,ee,v){(function(Z,Q){Be.exports=Q()})(this,function(){"use strict";function Z(Ze,ke){for(var He=0;He<ke.length;He++){var we=ke[He];we.enumerable=we.enumerable||!1,we.configurable=!0,"value"in we&&(we.writable=!0),Object.defineProperty(Ze,we.key,we)}}function Q(Ze,ke,He){return ke&&Z(Ze.prototype,ke),He&&Z(Ze,He),Ze}function I(Ze,ke){if(!Ze)return;if(typeof Ze=="string")return k(Ze,ke);var He=Object.prototype.toString.call(Ze).slice(8,-1);if(He==="Object"&&Ze.constructor&&(He=Ze.constructor.name),He==="Map"||He==="Set")return Array.from(Ze);if(He==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(He))return k(Ze,ke)}function k(Ze,ke){(ke==null||ke>Ze.length)&&(ke=Ze.length);for(var He=0,we=new Array(ke);He<ke;He++)we[He]=Ze[He];return we}function _(Ze,ke){var He;if(typeof Symbol=="undefined"||Ze[Symbol.iterator]==null){if(Array.isArray(Ze)||(He=I(Ze))||ke&&Ze&&typeof Ze.length=="number"){He&&(Ze=He);var we=0;return function(){return we>=Ze.length?{done:!0}:{done:!1,value:Ze[we++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return He=Ze[Symbol.iterator](),He.next.bind(He)}function O(Ze,ke){return ke={exports:{}},Ze(ke,ke.exports),ke.exports}var M=O(function(Ze){function ke(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function He(we){Ze.exports.defaults=we}Ze.exports={defaults:ke(),getDefaults:ke,changeDefaults:He}}),T=M.defaults,n=M.getDefaults,p=M.changeDefaults,a=/[&<>"']/,t=/[&<>"']/g,A=/[<>"']|&(?!#?\w+;)/,l=/[<>"']|&(?!#?\w+;)/g,i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},c=function(ke){return i[ke]};function d(Ze,ke){if(ke){if(a.test(Ze))return Ze.replace(t,c)}else if(A.test(Ze))return Ze.replace(l,c);return Ze}var f=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function o(Ze){return Ze.replace(f,function(ke,He){return He=He.toLowerCase(),He==="colon"?":":He.charAt(0)==="#"?He.charAt(1)==="x"?String.fromCharCode(parseInt(He.substring(2),16)):String.fromCharCode(+He.substring(1)):""})}var u=/(^|[^\[])\^/g;function E(Ze,ke){Ze=Ze.source||Ze,ke=ke||"";var He={replace:function(Le,Pe){return Pe=Pe.source||Pe,Pe=Pe.replace(u,"$1"),Ze=Ze.replace(Le,Pe),He},getRegex:function(){return new RegExp(Ze,ke)}};return He}var R=/[^\w:]/g,w=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function P(Ze,ke,He){if(Ze){var we;try{we=decodeURIComponent(o(He)).replace(R,"").toLowerCase()}catch(Le){return null}if(we.indexOf("javascript:")===0||we.indexOf("vbscript:")===0||we.indexOf("data:")===0)return null}ke&&!w.test(He)&&(He=m(ke,He));try{He=encodeURI(He).replace(/%25/g,"%")}catch(Le){return null}return He}var C={},b=/^[^:]+:\/*[^/]*$/,s=/^([^:]+:)[\s\S]*$/,h=/^([^:]+:\/*[^/]*)[\s\S]*$/;function m(Ze,ke){C[" "+Ze]||(b.test(Ze)?C[" "+Ze]=Ze+"/":C[" "+Ze]=U(Ze,"/",!0)),Ze=C[" "+Ze];var He=Ze.indexOf(":")===-1;return ke.substring(0,2)==="//"?He?ke:Ze.replace(s,"$1")+ke:ke.charAt(0)==="/"?He?ke:Ze.replace(h,"$1")+ke:Ze+ke}var x={exec:function(){}};function g(Ze){for(var ke=1,He,we;ke<arguments.length;ke++){He=arguments[ke];for(we in He)Object.prototype.hasOwnProperty.call(He,we)&&(Ze[we]=He[we])}return Ze}function y(Ze,ke){var He=Ze.replace(/\|/g,function(Pe,We,Xe){for(var gt=!1,Lt=We;--Lt>=0&&Xe[Lt]==="\\";)gt=!gt;return gt?"|":" |"}),we=He.split(/ \|/),Le=0;if(we.length>ke)we.splice(ke);else for(;we.length<ke;)we.push("");for(;Le<we.length;Le++)we[Le]=we[Le].trim().replace(/\\\|/g,"|");return we}function U(Ze,ke,He){var we=Ze.length;if(we===0)return"";for(var Le=0;Le<we;){var Pe=Ze.charAt(we-Le-1);if(Pe===ke&&!He)Le++;else if(Pe!==ke&&He)Le++;else break}return Ze.substr(0,we-Le)}function N(Ze,ke){if(Ze.indexOf(ke[1])===-1)return-1;for(var He=Ze.length,we=0,Le=0;Le<He;Le++)if(Ze[Le]==="\\")Le++;else if(Ze[Le]===ke[0])we++;else if(Ze[Le]===ke[1]&&(we--,we<0))return Le;return-1}function S(Ze){Ze&&Ze.sanitize&&!Ze.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 H={escape:d,unescape:o,edit:E,cleanUrl:P,resolveUrl:m,noopTest:x,merge:g,splitCells:y,rtrim:U,findClosingBracket:N,checkSanitizeDeprecation:S},F=M.defaults,B=H.rtrim,z=H.splitCells,K=H.escape,$=H.findClosingBracket;function te(Ze,ke,He){var we=ke.href,Le=ke.title?K(ke.title):null,Pe=Ze[1].replace(/\\([\[\]])/g,"$1");return Ze[0].charAt(0)!=="!"?{type:"link",raw:He,href:we,title:Le,text:Pe}:{type:"image",raw:He,href:we,title:Le,text:K(Pe)}}function fe(Ze,ke){var He=Ze.match(/^(\s+)(?:```)/);if(He===null)return ke;var we=He[1];return ke.split(`
`).map(function(Le){var Pe=Le.match(/^\s+/);if(Pe===null)return Le;var We=Pe[0];return We.length>=we.length?Le.slice(we.length):Le}).join(`
`)}var Ae=function(){function Ze(He){this.options=He||F}var ke=Ze.prototype;return ke.space=function(we){var Le=this.rules.block.newline.exec(we);if(Le)return Le[0].length>1?{type:"space",raw:Le[0]}:{raw:`
`}},ke.code=function(we,Le){var Pe=this.rules.block.code.exec(we);if(Pe){var We=Le[Le.length-1];if(We&&We.type==="paragraph")return{raw:Pe[0],text:Pe[0].trimRight()};var Xe=Pe[0].replace(/^ {4}/gm,"");return{type:"code",raw:Pe[0],codeBlockStyle:"indented",text:this.options.pedantic?Xe:B(Xe,`
`)}}},ke.fences=function(we){var Le=this.rules.block.fences.exec(we);if(Le){var Pe=Le[0],We=fe(Pe,Le[3]||"");return{type:"code",raw:Pe,lang:Le[2]?Le[2].trim():Le[2],text:We}}},ke.heading=function(we){var Le=this.rules.block.heading.exec(we);if(Le)return{type:"heading",raw:Le[0],depth:Le[1].length,text:Le[2]}},ke.nptable=function(we){var Le=this.rules.block.nptable.exec(we);if(Le){var Pe={type:"table",header:z(Le[1].replace(/^ *| *\| *$/g,"")),align:Le[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Le[3]?Le[3].replace(/\n$/,"").split(`
`):[],raw:Le[0]};if(Pe.header.length===Pe.align.length){var We=Pe.align.length,Xe;for(Xe=0;Xe<We;Xe++)/^ *-+: *$/.test(Pe.align[Xe])?Pe.align[Xe]="right":/^ *:-+: *$/.test(Pe.align[Xe])?Pe.align[Xe]="center":/^ *:-+ *$/.test(Pe.align[Xe])?Pe.align[Xe]="left":Pe.align[Xe]=null;for(We=Pe.cells.length,Xe=0;Xe<We;Xe++)Pe.cells[Xe]=z(Pe.cells[Xe],Pe.header.length);return Pe}}},ke.hr=function(we){var Le=this.rules.block.hr.exec(we);if(Le)return{type:"hr",raw:Le[0]}},ke.blockquote=function(we){var Le=this.rules.block.blockquote.exec(we);if(Le){var Pe=Le[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:Le[0],text:Pe}}},ke.list=function(we){var Le=this.rules.block.list.exec(we);if(Le){for(var Pe=Le[0],We=Le[2],Xe=We.length>1,gt=We[We.length-1]===")",Lt={type:"list",raw:Pe,ordered:Xe,start:Xe?+We.slice(0,-1):"",loose:!1,items:[]},en=Le[0].match(this.rules.block.item),Zt=!1,xt,Ct,mt,Je,Qe,Oe,je,St=en.length,bt=0;bt<St;bt++)xt=en[bt],Pe=xt,Ct=xt.length,xt=xt.replace(/^ *([*+-]|\d+[.)]) */,""),~xt.indexOf(`
`)&&(Ct-=xt.length,xt=this.options.pedantic?xt.replace(/^ {1,4}/gm,""):xt.replace(new RegExp("^ {1,"+Ct+"}","gm"),"")),bt!==St-1&&(mt=this.rules.block.bullet.exec(en[bt+1])[0],(Xe?mt.length===1||!gt&&mt[mt.length-1]===")":mt.length>1||this.options.smartLists&&mt!==We)&&(Je=en.slice(bt+1).join(`
`),Lt.raw=Lt.raw.substring(0,Lt.raw.length-Je.length),bt=St-1)),Qe=Zt||/\n\n(?!\s*$)/.test(xt),bt!==St-1&&(Zt=xt.charAt(xt.length-1)===`
`,Qe||(Qe=Zt)),Qe&&(Lt.loose=!0),Oe=/^\[[ xX]\] /.test(xt),je=void 0,Oe&&(je=xt[1]!==" ",xt=xt.replace(/^\[[ xX]\] +/,"")),Lt.items.push({type:"list_item",raw:Pe,task:Oe,checked:je,loose:Qe,text:xt});return Lt}},ke.html=function(we){var Le=this.rules.block.html.exec(we);if(Le)return{type:this.options.sanitize?"paragraph":"html",raw:Le[0],pre:!this.options.sanitizer&&(Le[1]==="pre"||Le[1]==="script"||Le[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Le[0]):K(Le[0]):Le[0]}},ke.def=function(we){var Le=this.rules.block.def.exec(we);if(Le){Le[3]&&(Le[3]=Le[3].substring(1,Le[3].length-1));var Pe=Le[1].toLowerCase().replace(/\s+/g," ");return{tag:Pe,raw:Le[0],href:Le[2],title:Le[3]}}},ke.table=function(we){var Le=this.rules.block.table.exec(we);if(Le){var Pe={type:"table",header:z(Le[1].replace(/^ *| *\| *$/g,"")),align:Le[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Le[3]?Le[3].replace(/\n$/,"").split(`
`):[]};if(Pe.header.length===Pe.align.length){Pe.raw=Le[0];var We=Pe.align.length,Xe;for(Xe=0;Xe<We;Xe++)/^ *-+: *$/.test(Pe.align[Xe])?Pe.align[Xe]="right":/^ *:-+: *$/.test(Pe.align[Xe])?Pe.align[Xe]="center":/^ *:-+ *$/.test(Pe.align[Xe])?Pe.align[Xe]="left":Pe.align[Xe]=null;for(We=Pe.cells.length,Xe=0;Xe<We;Xe++)Pe.cells[Xe]=z(Pe.cells[Xe].replace(/^ *\| *| *\| *$/g,""),Pe.header.length);return Pe}}},ke.lheading=function(we){var Le=this.rules.block.lheading.exec(we);if(Le)return{type:"heading",raw:Le[0],depth:Le[2].charAt(0)==="="?1:2,text:Le[1]}},ke.paragraph=function(we){var Le=this.rules.block.paragraph.exec(we);if(Le)return{type:"paragraph",raw:Le[0],text:Le[1].charAt(Le[1].length-1)===`
`?Le[1].slice(0,-1):Le[1]}},ke.text=function(we,Le){var Pe=this.rules.block.text.exec(we);if(Pe){var We=Le[Le.length-1];return We&&We.type==="text"?{raw:Pe[0],text:Pe[0]}:{type:"text",raw:Pe[0],text:Pe[0]}}},ke.escape=function(we){var Le=this.rules.inline.escape.exec(we);if(Le)return{type:"escape",raw:Le[0],text:K(Le[1])}},ke.tag=function(we,Le,Pe){var We=this.rules.inline.tag.exec(we);if(We)return!Le&&/^<a /i.test(We[0])?Le=!0:Le&&/^<\/a>/i.test(We[0])&&(Le=!1),!Pe&&/^<(pre|code|kbd|script)(\s|>)/i.test(We[0])?Pe=!0:Pe&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(We[0])&&(Pe=!1),{type:this.options.sanitize?"text":"html",raw:We[0],inLink:Le,inRawBlock:Pe,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(We[0]):K(We[0]):We[0]}},ke.link=function(we){var Le=this.rules.inline.link.exec(we);if(Le){var Pe=$(Le[2],"()");if(Pe>-1){var We=Le[0].indexOf("!")===0?5:4,Xe=We+Le[1].length+Pe;Le[2]=Le[2].substring(0,Pe),Le[0]=Le[0].substring(0,Xe).trim(),Le[3]=""}var gt=Le[2],Lt="";if(this.options.pedantic){var en=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(gt);en?(gt=en[1],Lt=en[3]):Lt=""}else Lt=Le[3]?Le[3].slice(1,-1):"";gt=gt.trim().replace(/^<([\s\S]*)>$/,"$1");var Zt=te(Le,{href:gt&&gt.replace(this.rules.inline._escapes,"$1"),title:Lt&&Lt.replace(this.rules.inline._escapes,"$1")},Le[0]);return Zt}},ke.reflink=function(we,Le){var Pe;if((Pe=this.rules.inline.reflink.exec(we))||(Pe=this.rules.inline.nolink.exec(we))){var We=(Pe[2]||Pe[1]).replace(/\s+/g," ");if(We=Le[We.toLowerCase()],!We||!We.href){var Xe=Pe[0].charAt(0);return{type:"text",raw:Xe,text:Xe}}var gt=te(Pe,We,Pe[0]);return gt}},ke.strong=function(we,Le,Pe){Pe===void 0&&(Pe="");var We=this.rules.inline.strong.start.exec(we);if(We&&(!We[1]||We[1]&&(Pe===""||this.rules.inline.punctuation.exec(Pe)))){Le=Le.slice(-1*we.length);var Xe=We[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Xe.lastIndex=0;for(var gt;(We=Xe.exec(Le))!=null;)if(gt=this.rules.inline.strong.middle.exec(Le.slice(0,We.index+3)),gt)return{type:"strong",raw:we.slice(0,gt[0].length),text:we.slice(2,gt[0].length-2)}}},ke.em=function(we,Le,Pe){Pe===void 0&&(Pe="");var We=this.rules.inline.em.start.exec(we);if(We&&(!We[1]||We[1]&&(Pe===""||this.rules.inline.punctuation.exec(Pe)))){Le=Le.slice(-1*we.length);var Xe=We[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Xe.lastIndex=0;for(var gt;(We=Xe.exec(Le))!=null;)if(gt=this.rules.inline.em.middle.exec(Le.slice(0,We.index+2)),gt)return{type:"em",raw:we.slice(0,gt[0].length),text:we.slice(1,gt[0].length-1)}}},ke.codespan=function(we){var Le=this.rules.inline.code.exec(we);if(Le){var Pe=Le[2].replace(/\n/g," "),We=/[^ ]/.test(Pe),Xe=Pe.startsWith(" ")&&Pe.endsWith(" ");return We&&Xe&&(Pe=Pe.substring(1,Pe.length-1)),Pe=K(Pe,!0),{type:"codespan",raw:Le[0],text:Pe}}},ke.br=function(we){var Le=this.rules.inline.br.exec(we);if(Le)return{type:"br",raw:Le[0]}},ke.del=function(we){var Le=this.rules.inline.del.exec(we);if(Le)return{type:"del",raw:Le[0],text:Le[1]}},ke.autolink=function(we,Le){var Pe=this.rules.inline.autolink.exec(we);if(Pe){var We,Xe;return Pe[2]==="@"?(We=K(this.options.mangle?Le(Pe[1]):Pe[1]),Xe="mailto:"+We):(We=K(Pe[1]),Xe=We),{type:"link",raw:Pe[0],text:We,href:Xe,tokens:[{type:"text",raw:We,text:We}]}}},ke.url=function(we,Le){var Pe;if(Pe=this.rules.inline.url.exec(we)){var We,Xe;if(Pe[2]==="@")We=K(this.options.mangle?Le(Pe[0]):Pe[0]),Xe="mailto:"+We;else{var gt;do gt=Pe[0],Pe[0]=this.rules.inline._backpedal.exec(Pe[0])[0];while(gt!==Pe[0]);We=K(Pe[0]),Pe[1]==="www."?Xe="http://"+We:Xe=We}return{type:"link",raw:Pe[0],text:We,href:Xe,tokens:[{type:"text",raw:We,text:We}]}}},ke.inlineText=function(we,Le,Pe){var We=this.rules.inline.text.exec(we);if(We){var Xe;return Le?Xe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(We[0]):K(We[0]):We[0]:Xe=K(this.options.smartypants?Pe(We[0]):We[0]),{type:"text",raw:We[0],text:Xe}}},Ze}(),ce=H.noopTest,ie=H.edit,ye=H.merge,le={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\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:ce,table:ce,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};le._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,le._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,le.def=ie(le.def).replace("label",le._label).replace("title",le._title).getRegex(),le.bullet=/(?:[*+-]|\d{1,9}[.)])/,le.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,le.item=ie(le.item,"gm").replace(/bull/g,le.bullet).getRegex(),le.list=ie(le.list).replace(/bull/g,le.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+le.def.source+")").getRegex(),le._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",le._comment=/<!--(?!-?>)[\s\S]*?-->/,le.html=ie(le.html,"i").replace("comment",le._comment).replace("tag",le._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),le.paragraph=ie(le._paragraph).replace("hr",le.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",le._tag).getRegex(),le.blockquote=ie(le.blockquote).replace("paragraph",le.paragraph).getRegex(),le.normal=ye({},le),le.gfm=ye({},le.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),le.gfm.nptable=ie(le.gfm.nptable).replace("hr",le.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",le._tag).getRegex(),le.gfm.table=ie(le.gfm.table).replace("hr",le.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",le._tag).getRegex(),le.pedantic=ye({},le.normal,{html:ie(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",le._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:ce,paragraph:ie(le.normal._paragraph).replace("hr",le.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",le.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var me={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ce,tag:"^comment|^</[a-zA-Z][\\w:-]*\\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:ce,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};me._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",me.punctuation=ie(me.punctuation).replace(/punctuation/g,me._punctuation).getRegex(),me._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",me._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",me.em.start=ie(me.em.start).replace(/punctuation/g,me._punctuation).getRegex(),me.em.middle=ie(me.em.middle).replace(/punctuation/g,me._punctuation).replace(/overlapSkip/g,me._overlapSkip).getRegex(),me.em.endAst=ie(me.em.endAst,"g").replace(/punctuation/g,me._punctuation).getRegex(),me.em.endUnd=ie(me.em.endUnd,"g").replace(/punctuation/g,me._punctuation).getRegex(),me.strong.start=ie(me.strong.start).replace(/punctuation/g,me._punctuation).getRegex(),me.strong.middle=ie(me.strong.middle).replace(/punctuation/g,me._punctuation).replace(/blockSkip/g,me._blockSkip).getRegex(),me.strong.endAst=ie(me.strong.endAst,"g").replace(/punctuation/g,me._punctuation).getRegex(),me.strong.endUnd=ie(me.strong.endUnd,"g").replace(/punctuation/g,me._punctuation).getRegex(),me.blockSkip=ie(me._blockSkip,"g").getRegex(),me.overlapSkip=ie(me._overlapSkip,"g").getRegex(),me._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,me._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,me._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,me.autolink=ie(me.autolink).replace("scheme",me._scheme).replace("email",me._email).getRegex(),me._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,me.tag=ie(me.tag).replace("comment",le._comment).replace("attribute",me._attribute).getRegex(),me._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,me._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,me._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,me.link=ie(me.link).replace("label",me._label).replace("href",me._href).replace("title",me._title).getRegex(),me.reflink=ie(me.reflink).replace("label",me._label).getRegex(),me.reflinkSearch=ie(me.reflinkSearch,"g").replace("reflink",me.reflink).replace("nolink",me.nolink).getRegex(),me.normal=ye({},me),me.pedantic=ye({},me.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:ie(/^!?\[(label)\]\((.*?)\)/).replace("label",me._label).getRegex(),reflink:ie(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",me._label).getRegex()}),me.gfm=ye({},me.normal,{escape:ie(me.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),me.gfm.url=ie(me.gfm.url,"i").replace("email",me.gfm._extended_email).getRegex(),me.breaks=ye({},me.gfm,{br:ie(me.br).replace("{2,}","*").getRegex(),text:ie(me.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var se={block:le,inline:me},ge=M.defaults,ae=se.block,pe=se.inline;function Me(Ze){return Ze.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 xe(Ze){var ke="",He,we,Le=Ze.length;for(He=0;He<Le;He++)we=Ze.charCodeAt(He),Math.random()>.5&&(we="x"+we.toString(16)),ke+="&#"+we+";";return ke}var Ke=function(){function Ze(He){this.tokens=[],this.tokens.links=Object.create(null),this.options=He||ge,this.options.tokenizer=this.options.tokenizer||new Ae,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var we={block:ae.normal,inline:pe.normal};this.options.pedantic?(we.block=ae.pedantic,we.inline=pe.pedantic):this.options.gfm&&(we.block=ae.gfm,this.options.breaks?we.inline=pe.breaks:we.inline=pe.gfm),this.tokenizer.rules=we}Ze.lex=function(we,Le){var Pe=new Ze(Le);return Pe.lex(we)};var ke=Ze.prototype;return ke.lex=function(we){return we=we.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(we,this.tokens,!0),this.inline(this.tokens),this.tokens},ke.blockTokens=function(we,Le,Pe){Le===void 0&&(Le=[]),Pe===void 0&&(Pe=!0),we=we.replace(/^ +$/gm,"");for(var We,Xe,gt,Lt;we;){if(We=this.tokenizer.space(we)){we=we.substring(We.raw.length),We.type&&Le.push(We);continue}if(We=this.tokenizer.code(we,Le)){we=we.substring(We.raw.length),We.type?Le.push(We):(Lt=Le[Le.length-1],Lt.raw+=`
`+We.raw,Lt.text+=`
`+We.text);continue}if(We=this.tokenizer.fences(we)){we=we.substring(We.raw.length),Le.push(We);continue}if(We=this.tokenizer.heading(we)){we=we.substring(We.raw.length),Le.push(We);continue}if(We=this.tokenizer.nptable(we)){we=we.substring(We.raw.length),Le.push(We);continue}if(We=this.tokenizer.hr(we)){we=we.substring(We.raw.length),Le.push(We);continue}if(We=this.tokenizer.blockquote(we)){we=we.substring(We.raw.length),We.tokens=this.blockTokens(We.text,[],Pe),Le.push(We);continue}if(We=this.tokenizer.list(we)){for(we=we.substring(We.raw.length),gt=We.items.length,Xe=0;Xe<gt;Xe++)We.items[Xe].tokens=this.blockTokens(We.items[Xe].text,[],!1);Le.push(We);continue}if(We=this.tokenizer.html(we)){we=we.substring(We.raw.length),Le.push(We);continue}if(Pe&&(We=this.tokenizer.def(we))){we=we.substring(We.raw.length),this.tokens.links[We.tag]||(this.tokens.links[We.tag]={href:We.href,title:We.title});continue}if(We=this.tokenizer.table(we)){we=we.substring(We.raw.length),Le.push(We);continue}if(We=this.tokenizer.lheading(we)){we=we.substring(We.raw.length),Le.push(We);continue}if(Pe&&(We=this.tokenizer.paragraph(we))){we=we.substring(We.raw.length),Le.push(We);continue}if(We=this.tokenizer.text(we,Le)){we=we.substring(We.raw.length),We.type?Le.push(We):(Lt=Le[Le.length-1],Lt.raw+=`
`+We.raw,Lt.text+=`
`+We.text);continue}if(we){var en="Infinite loop on byte: "+we.charCodeAt(0);if(this.options.silent){console.error(en);break}else throw new Error(en)}}return Le},ke.inline=function(we){var Le,Pe,We,Xe,gt,Lt,en=we.length;for(Le=0;Le<en;Le++){Lt=we[Le];switch(Lt.type){case"paragraph":case"text":case"heading":{Lt.tokens=[],this.inlineTokens(Lt.text,Lt.tokens);break}case"table":{for(Lt.tokens={header:[],cells:[]},Xe=Lt.header.length,Pe=0;Pe<Xe;Pe++)Lt.tokens.header[Pe]=[],this.inlineTokens(Lt.header[Pe],Lt.tokens.header[Pe]);for(Xe=Lt.cells.length,Pe=0;Pe<Xe;Pe++)for(gt=Lt.cells[Pe],Lt.tokens.cells[Pe]=[],We=0;We<gt.length;We++)Lt.tokens.cells[Pe][We]=[],this.inlineTokens(gt[We],Lt.tokens.cells[Pe][We]);break}case"blockquote":{this.inline(Lt.tokens);break}case"list":{for(Xe=Lt.items.length,Pe=0;Pe<Xe;Pe++)this.inline(Lt.items[Pe].tokens);break}}}return we},ke.inlineTokens=function(we,Le,Pe,We,Xe){Le===void 0&&(Le=[]),Pe===void 0&&(Pe=!1),We===void 0&&(We=!1),Xe===void 0&&(Xe="");var gt,Lt=we,en;if(this.tokens.links){var Zt=Object.keys(this.tokens.links);if(Zt.length>0)for(;(en=this.tokenizer.rules.inline.reflinkSearch.exec(Lt))!=null;)Zt.includes(en[0].slice(en[0].lastIndexOf("[")+1,-1))&&(Lt=Lt.slice(0,en.index)+"["+"a".repeat(en[0].length-2)+"]"+Lt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(en=this.tokenizer.rules.inline.blockSkip.exec(Lt))!=null;)Lt=Lt.slice(0,en.index)+"["+"a".repeat(en[0].length-2)+"]"+Lt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;we;){if(gt=this.tokenizer.escape(we)){we=we.substring(gt.raw.length),Le.push(gt);continue}if(gt=this.tokenizer.tag(we,Pe,We)){we=we.substring(gt.raw.length),Pe=gt.inLink,We=gt.inRawBlock,Le.push(gt);continue}if(gt=this.tokenizer.link(we)){we=we.substring(gt.raw.length),gt.type==="link"&&(gt.tokens=this.inlineTokens(gt.text,[],!0,We)),Le.push(gt);continue}if(gt=this.tokenizer.reflink(we,this.tokens.links)){we=we.substring(gt.raw.length),gt.type==="link"&&(gt.tokens=this.inlineTokens(gt.text,[],!0,We)),Le.push(gt);continue}if(gt=this.tokenizer.strong(we,Lt,Xe)){we=we.substring(gt.raw.length),gt.tokens=this.inlineTokens(gt.text,[],Pe,We),Le.push(gt);continue}if(gt=this.tokenizer.em(we,Lt,Xe)){we=we.substring(gt.raw.length),gt.tokens=this.inlineTokens(gt.text,[],Pe,We),Le.push(gt);continue}if(gt=this.tokenizer.codespan(we)){we=we.substring(gt.raw.length),Le.push(gt);continue}if(gt=this.tokenizer.br(we)){we=we.substring(gt.raw.length),Le.push(gt);continue}if(gt=this.tokenizer.del(we)){we=we.substring(gt.raw.length),gt.tokens=this.inlineTokens(gt.text,[],Pe,We),Le.push(gt);continue}if(gt=this.tokenizer.autolink(we,xe)){we=we.substring(gt.raw.length),Le.push(gt);continue}if(!Pe&&(gt=this.tokenizer.url(we,xe))){we=we.substring(gt.raw.length),Le.push(gt);continue}if(gt=this.tokenizer.inlineText(we,We,Me)){we=we.substring(gt.raw.length),Xe=gt.raw.slice(-1),Le.push(gt);continue}if(we){var xt="Infinite loop on byte: "+we.charCodeAt(0);if(this.options.silent){console.error(xt);break}else throw new Error(xt)}}return Le},Q(Ze,null,[{key:"rules",get:function(){return{block:ae,inline:pe}}}]),Ze}(),et=M.defaults,he=H.cleanUrl,Se=H.escape,Ue=function(){function Ze(He){this.options=He||et}var ke=Ze.prototype;return ke.code=function(we,Le,Pe){var We=(Le||"").match(/\S*/)[0];if(this.options.highlight){var Xe=this.options.highlight(we,We);Xe!=null&&Xe!==we&&(Pe=!0,we=Xe)}return We?'<pre><code class="'+this.options.langPrefix+Se(We,!0)+'">'+(Pe?we:Se(we,!0))+`</code></pre>
`:"<pre><code>"+(Pe?we:Se(we,!0))+`</code></pre>
`},ke.blockquote=function(we){return`<blockquote>
`+we+`</blockquote>
`},ke.html=function(we){return we},ke.heading=function(we,Le,Pe,We){return this.options.headerIds?"<h"+Le+' id="'+this.options.headerPrefix+We.slug(Pe)+'">'+we+"</h"+Le+`>
`:"<h"+Le+">"+we+"</h"+Le+`>
`},ke.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},ke.list=function(we,Le,Pe){var We=Le?"ol":"ul",Xe=Le&&Pe!==1?' start="'+Pe+'"':"";return"<"+We+Xe+`>
`+we+"</"+We+`>
`},ke.listitem=function(we){return"<li>"+we+`</li>
`},ke.checkbox=function(we){return"<input "+(we?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},ke.paragraph=function(we){return"<p>"+we+`</p>
`},ke.table=function(we,Le){return Le&&(Le="<tbody>"+Le+"</tbody>"),`<table>
<thead>
`+we+`</thead>
`+Le+`</table>
`},ke.tablerow=function(we){return`<tr>
`+we+`</tr>
`},ke.tablecell=function(we,Le){var Pe=Le.header?"th":"td",We=Le.align?"<"+Pe+' align="'+Le.align+'">':"<"+Pe+">";return We+we+"</"+Pe+`>
`},ke.strong=function(we){return"<strong>"+we+"</strong>"},ke.em=function(we){return"<em>"+we+"</em>"},ke.codespan=function(we){return"<code>"+we+"</code>"},ke.br=function(){return this.options.xhtml?"<br/>":"<br>"},ke.del=function(we){return"<del>"+we+"</del>"},ke.link=function(we,Le,Pe){if(we=he(this.options.sanitize,this.options.baseUrl,we),we===null)return Pe;var We='<a href="'+Se(we)+'"';return Le&&(We+=' title="'+Le+'"'),We+=">"+Pe+"</a>",We},ke.image=function(we,Le,Pe){if(we=he(this.options.sanitize,this.options.baseUrl,we),we===null)return Pe;var We='<img src="'+we+'" alt="'+Pe+'"';return Le&&(We+=' title="'+Le+'"'),We+=this.options.xhtml?"/>":">",We},ke.text=function(we){return we},Ze}(),Ne=function(){function Ze(){}var ke=Ze.prototype;return ke.strong=function(we){return we},ke.em=function(we){return we},ke.codespan=function(we){return we},ke.del=function(we){return we},ke.html=function(we){return we},ke.text=function(we){return we},ke.link=function(we,Le,Pe){return""+Pe},ke.image=function(we,Le,Pe){return""+Pe},ke.br=function(){return""},Ze}(),ct=function(){function Ze(){this.seen={}}var ke=Ze.prototype;return ke.slug=function(we){var Le=we.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Le)){var Pe=Le;do this.seen[Pe]++,Le=Pe+"-"+this.seen[Pe];while(this.seen.hasOwnProperty(Le))}return this.seen[Le]=0,Le},Ze}(),ft=M.defaults,Ot=H.unescape,dt=function(){function Ze(He){this.options=He||ft,this.options.renderer=this.options.renderer||new Ue,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ne,this.slugger=new ct}Ze.parse=function(we,Le){var Pe=new Ze(Le);return Pe.parse(we)};var ke=Ze.prototype;return ke.parse=function(we,Le){Le===void 0&&(Le=!0);var Pe="",We,Xe,gt,Lt,en,Zt,xt,Ct,mt,Je,Qe,Oe,je,St,bt,Dt,Qt,_t,Gt=we.length;for(We=0;We<Gt;We++){Je=we[We];switch(Je.type){case"space":continue;case"hr":{Pe+=this.renderer.hr();continue}case"heading":{Pe+=this.renderer.heading(this.parseInline(Je.tokens),Je.depth,Ot(this.parseInline(Je.tokens,this.textRenderer)),this.slugger);continue}case"code":{Pe+=this.renderer.code(Je.text,Je.lang,Je.escaped);continue}case"table":{for(Ct="",xt="",Lt=Je.header.length,Xe=0;Xe<Lt;Xe++)xt+=this.renderer.tablecell(this.parseInline(Je.tokens.header[Xe]),{header:!0,align:Je.align[Xe]});for(Ct+=this.renderer.tablerow(xt),mt="",Lt=Je.cells.length,Xe=0;Xe<Lt;Xe++){for(Zt=Je.tokens.cells[Xe],xt="",en=Zt.length,gt=0;gt<en;gt++)xt+=this.renderer.tablecell(this.parseInline(Zt[gt]),{header:!1,align:Je.align[gt]});mt+=this.renderer.tablerow(xt)}Pe+=this.renderer.table(Ct,mt);continue}case"blockquote":{mt=this.parse(Je.tokens),Pe+=this.renderer.blockquote(mt);continue}case"list":{for(Qe=Je.ordered,Oe=Je.start,je=Je.loose,Lt=Je.items.length,mt="",Xe=0;Xe<Lt;Xe++)bt=Je.items[Xe],Dt=bt.checked,Qt=bt.task,St="",bt.task&&(_t=this.renderer.checkbox(Dt),je?bt.tokens.length>0&&bt.tokens[0].type==="text"?(bt.tokens[0].text=_t+" "+bt.tokens[0].text,bt.tokens[0].tokens&&bt.tokens[0].tokens.length>0&&bt.tokens[0].tokens[0].type==="text"&&(bt.tokens[0].tokens[0].text=_t+" "+bt.tokens[0].tokens[0].text)):bt.tokens.unshift({type:"text",text:_t}):St+=_t),St+=this.parse(bt.tokens,je),mt+=this.renderer.listitem(St,Qt,Dt);Pe+=this.renderer.list(mt,Qe,Oe);continue}case"html":{Pe+=this.renderer.html(Je.text);continue}case"paragraph":{Pe+=this.renderer.paragraph(this.parseInline(Je.tokens));continue}case"text":{for(mt=Je.tokens?this.parseInline(Je.tokens):Je.text;We+1<Gt&&we[We+1].type==="text";)Je=we[++We],mt+=`
`+(Je.tokens?this.parseInline(Je.tokens):Je.text);Pe+=Le?this.renderer.paragraph(mt):mt;continue}default:{var kt='Token with "'+Je.type+'" type was not found.';if(this.options.silent){console.error(kt);return}else throw new Error(kt)}}}return Pe},ke.parseInline=function(we,Le){Le=Le||this.renderer;var Pe="",We,Xe,gt=we.length;for(We=0;We<gt;We++){Xe=we[We];switch(Xe.type){case"escape":{Pe+=Le.text(Xe.text);break}case"html":{Pe+=Le.html(Xe.text);break}case"link":{Pe+=Le.link(Xe.href,Xe.title,this.parseInline(Xe.tokens,Le));break}case"image":{Pe+=Le.image(Xe.href,Xe.title,Xe.text);break}case"strong":{Pe+=Le.strong(this.parseInline(Xe.tokens,Le));break}case"em":{Pe+=Le.em(this.parseInline(Xe.tokens,Le));break}case"codespan":{Pe+=Le.codespan(Xe.text);break}case"br":{Pe+=Le.br();break}case"del":{Pe+=Le.del(this.parseInline(Xe.tokens,Le));break}case"text":{Pe+=Le.text(Xe.text);break}default:{var Lt='Token with "'+Xe.type+'" type was not found.';if(this.options.silent){console.error(Lt);return}else throw new Error(Lt)}}}return Pe},Ze}(),Ut=H.merge,jt=H.checkSanitizeDeprecation,ze=H.escape,Ve=M.getDefaults,Et=M.changeDefaults,Rt=M.defaults;function ut(Ze,ke,He){if(typeof Ze=="undefined"||Ze===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Ze!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Ze)+", string expected");if(typeof ke=="function"&&(He=ke,ke=null),ke=Ut({},ut.defaults,ke||{}),jt(ke),He){var we=ke.highlight,Le;try{Le=Ke.lex(Ze,ke)}catch(gt){return He(gt)}var Pe=function(Lt){var en;if(!Lt)try{en=dt.parse(Le,ke)}catch(Zt){Lt=Zt}return ke.highlight=we,Lt?He(Lt):He(null,en)};if(!we||we.length<3)return Pe();if(delete ke.highlight,!Le.length)return Pe();var We=0;ut.walkTokens(Le,function(gt){gt.type==="code"&&(We++,setTimeout(function(){we(gt.text,gt.lang,function(Lt,en){if(Lt)return Pe(Lt);en!=null&&en!==gt.text&&(gt.text=en,gt.escaped=!0),We--,We===0&&Pe()})},0))}),We===0&&Pe();return}try{var Xe=Ke.lex(Ze,ke);return ke.walkTokens&&ut.walkTokens(Xe,ke.walkTokens),dt.parse(Xe,ke)}catch(gt){if(gt.message+=`
Please report this to https://github.com/markedjs/marked.`,ke.silent)return"<p>An error occurred:</p><pre>"+ze(gt.message+"",!0)+"</pre>";throw gt}}ut.options=ut.setOptions=function(Ze){return Ut(ut.defaults,Ze),Et(ut.defaults),ut},ut.getDefaults=Ve,ut.defaults=Rt,ut.use=function(Ze){var ke=Ut({},Ze);if(Ze.renderer&&function(){var we=ut.defaults.renderer||new Ue,Le=function(Xe){var gt=we[Xe];we[Xe]=function(){for(var Lt=arguments.length,en=new Array(Lt),Zt=0;Zt<Lt;Zt++)en[Zt]=arguments[Zt];var xt=Ze.renderer[Xe].apply(we,en);return xt===!1&&(xt=gt.apply(we,en)),xt}};for(var Pe in Ze.renderer)Le(Pe);ke.renderer=we}(),Ze.tokenizer&&function(){var we=ut.defaults.tokenizer||new Ae,Le=function(Xe){var gt=we[Xe];we[Xe]=function(){for(var Lt=arguments.length,en=new Array(Lt),Zt=0;Zt<Lt;Zt++)en[Zt]=arguments[Zt];var xt=Ze.tokenizer[Xe].apply(we,en);return xt===!1&&(xt=gt.apply(we,en)),xt}};for(var Pe in Ze.tokenizer)Le(Pe);ke.tokenizer=we}(),Ze.walkTokens){var He=ut.defaults.walkTokens;ke.walkTokens=function(we){Ze.walkTokens(we),He&&He(we)}}ut.setOptions(ke)},ut.walkTokens=function(Ze,ke){for(var He=_(Ze),we;!(we=He()).done;){var Le=we.value;ke(Le);switch(Le.type){case"table":{for(var Pe=_(Le.tokens.header),We;!(We=Pe()).done;){var Xe=We.value;ut.walkTokens(Xe,ke)}for(var gt=_(Le.tokens.cells),Lt;!(Lt=gt()).done;)for(var en=Lt.value,Zt=_(en),xt;!(xt=Zt()).done;){var Ct=xt.value;ut.walkTokens(Ct,ke)}break}case"list":{ut.walkTokens(Le.items,ke);break}default:Le.tokens&&ut.walkTokens(Le.tokens,ke)}}},ut.Parser=dt,ut.parser=dt.parse,ut.Renderer=Ue,ut.TextRenderer=Ne,ut.Lexer=Ke,ut.lexer=Ke.lex,ut.Tokenizer=Ae,ut.Slugger=ct,ut.parse=ut;var vt=ut;return vt})},Dols:function(Be,ee,v){Be.exports={tree:"tree___22OZV",learn:"learn___ky8Lf",name:"name___2Aqg-",sign:"sign___1WxvA"}},E7E6:function(Be,ee){Be.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="},E9nw:function(Be,ee){Be.exports=function(){var v=document.getSelection();if(!v.rangeCount)return function(){};for(var Z=document.activeElement,Q=[],I=0;I<v.rangeCount;I++)Q.push(v.getRangeAt(I));switch(Z.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":Z.blur();break;default:Z=null;break}return v.removeAllRanges(),function(){v.type==="Caret"&&v.removeAllRanges(),v.rangeCount||Q.forEach(function(k){v.addRange(k)}),Z&&Z.focus()}}},ELLl:function(Be,ee,v){(function(Z){Z(v("VrN/"))})(function(Z){var Q={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},I=Z.Pos;Z.defineOption("autoCloseBrackets",!1,function(i,c,d){d&&d!=Z.Init&&(i.removeKeyMap(_),i.state.closeBrackets=null),c&&(O(k(c,"pairs")),i.state.closeBrackets=c,i.addKeyMap(_))});function k(i,c){return c=="pairs"&&typeof i=="string"?i:typeof i=="object"&&i[c]!=null?i[c]:Q[c]}var _={Backspace:n,Enter:p};function O(i){for(var c=0;c<i.length;c++){var d=i.charAt(c),f="'"+d+"'";_[f]||(_[f]=M(d))}}O(Q.pairs+"`");function M(i){return function(c){return t(c,i)}}function T(i){var c=i.state.closeBrackets;if(!c||c.override)return c;var d=i.getModeAt(i.getCursor());return d.closeBrackets||c}function n(i){var c=T(i);if(!c||i.getOption("disableInput"))return Z.Pass;for(var d=k(c,"pairs"),f=i.listSelections(),o=0;o<f.length;o++){if(!f[o].empty())return Z.Pass;var u=A(i,f[o].head);if(!u||d.indexOf(u)%2!=0)return Z.Pass}for(var o=f.length-1;o>=0;o--){var E=f[o].head;i.replaceRange("",I(E.line,E.ch-1),I(E.line,E.ch+1),"+delete")}}function p(i){var c=T(i),d=c&&k(c,"explode");if(!d||i.getOption("disableInput"))return Z.Pass;for(var f=i.listSelections(),o=0;o<f.length;o++){if(!f[o].empty())return Z.Pass;var u=A(i,f[o].head);if(!u||d.indexOf(u)%2!=0)return Z.Pass}i.operation(function(){var E=i.lineSeparator()||`
`;i.replaceSelection(E+E,null),i.execCommand("goCharLeft"),f=i.listSelections();for(var R=0;R<f.length;R++){var w=f[R].head.line;i.indentLine(w,null,!0),i.indentLine(w+1,null,!0)}})}function a(i){var c=Z.cmpPos(i.anchor,i.head)>0;return{anchor:new I(i.anchor.line,i.anchor.ch+(c?-1:1)),head:new I(i.head.line,i.head.ch+(c?1:-1))}}function t(i,c){var d=T(i);if(!d||i.getOption("disableInput"))return Z.Pass;var f=k(d,"pairs"),o=f.indexOf(c);if(o==-1)return Z.Pass;for(var u=k(d,"closeBefore"),E=k(d,"triples"),R=f.charAt(o+1)==c,w=i.listSelections(),P=o%2==0,C,b=0;b<w.length;b++){var s=w[b],h=s.head,m,x=i.getRange(h,I(h.line,h.ch+1));if(P&&!s.empty())m="surround";else if((R||!P)&&x==c)R&&l(i,h)?m="both":E.indexOf(c)>=0&&i.getRange(h,I(h.line,h.ch+3))==c+c+c?m="skipThree":m="skip";else if(R&&h.ch>1&&E.indexOf(c)>=0&&i.getRange(I(h.line,h.ch-2),h)==c+c){if(h.ch>2&&/\bstring/.test(i.getTokenTypeAt(I(h.line,h.ch-2))))return Z.Pass;m="addFour"}else if(R){var g=h.ch==0?" ":i.getRange(I(h.line,h.ch-1),h);if(!Z.isWordChar(x)&&g!=c&&!Z.isWordChar(g))m="both";else return Z.Pass}else if(P&&(x.length===0||/\s/.test(x)||u.indexOf(x)>-1))m="both";else return Z.Pass;if(!C)C=m;else if(C!=m)return Z.Pass}var y=o%2?f.charAt(o-1):c,U=o%2?c:f.charAt(o+1);i.operation(function(){if(C=="skip")i.execCommand("goCharRight");else if(C=="skipThree")for(var N=0;N<3;N++)i.execCommand("goCharRight");else if(C=="surround"){for(var S=i.getSelections(),N=0;N<S.length;N++)S[N]=y+S[N]+U;i.replaceSelections(S,"around"),S=i.listSelections().slice();for(var N=0;N<S.length;N++)S[N]=a(S[N]);i.setSelections(S)}else C=="both"?(i.replaceSelection(y+U,null),i.triggerElectric(y+U),i.execCommand("goCharLeft")):C=="addFour"&&(i.replaceSelection(y+y+y+y,"before"),i.execCommand("goCharRight"))})}function A(i,c){var d=i.getRange(I(c.line,c.ch-1),I(c.line,c.ch+1));return d.length==2?d:null}function l(i,c){var d=i.getTokenAt(I(c.line,c.ch+1));return/\bstring/.test(d.type)&&d.start==c.ch&&(c.ch==0||!/\bstring/.test(i.getTokenTypeAt(c)))}})},FOrL:function(Be,ee,v){Be.exports=v.p+"static/nodata.a6b3f948.png"},FPkq:function(Be,ee,v){Be.exports=v.p+"static/qrCode.dd0fe9b2.png"},FWmy:function(Be,ee,v){"use strict";v.d(ee,"a",function(){return Z});function Z(Q,I){if(!Q)throw new Error(I?`Assertion failed (${I})`:"Assertion Failed")}},Fofx:function(Be,ee){var v=typeof Float32Array=="undefined"?Array:Float32Array;function Z(){var p=new v(6);return Q(p),p}function Q(p){return p[0]=1,p[1]=0,p[2]=0,p[3]=1,p[4]=0,p[5]=0,p}function I(p,a){return p[0]=a[0],p[1]=a[1],p[2]=a[2],p[3]=a[3],p[4]=a[4],p[5]=a[5],p}function k(p,a,t){var A=a[0]*t[0]+a[2]*t[1],l=a[1]*t[0]+a[3]*t[1],i=a[0]*t[2]+a[2]*t[3],c=a[1]*t[2]+a[3]*t[3],d=a[0]*t[4]+a[2]*t[5]+a[4],f=a[1]*t[4]+a[3]*t[5]+a[5];return p[0]=A,p[1]=l,p[2]=i,p[3]=c,p[4]=d,p[5]=f,p}function _(p,a,t){return p[0]=a[0],p[1]=a[1],p[2]=a[2],p[3]=a[3],p[4]=a[4]+t[0],p[5]=a[5]+t[1],p}function O(p,a,t){var A=a[0],l=a[2],i=a[4],c=a[1],d=a[3],f=a[5],o=Math.sin(t),u=Math.cos(t);return p[0]=A*u+c*o,p[1]=-A*o+c*u,p[2]=l*u+d*o,p[3]=-l*o+u*d,p[4]=u*i+o*f,p[5]=u*f-o*i,p}function M(p,a,t){var A=t[0],l=t[1];return p[0]=a[0]*A,p[1]=a[1]*l,p[2]=a[2]*A,p[3]=a[3]*l,p[4]=a[4]*A,p[5]=a[5]*l,p}function T(p,a){var t=a[0],A=a[2],l=a[4],i=a[1],c=a[3],d=a[5],f=t*c-i*A;return f?(f=1/f,p[0]=c*f,p[1]=-i*f,p[2]=-A*f,p[3]=t*f,p[4]=(A*d-c*l)*f,p[5]=(i*l-t*d)*f,p):null}function n(p){var a=Z();return I(a,p),a}ee.create=Z,ee.identity=Q,ee.copy=I,ee.mul=k,ee.translate=_,ee.rotate=O,ee.scale=M,ee.invert=T,ee.clone=n},FxDU:function(Be,ee,v){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.createSensor=void 0;var Z=v("QO+J"),Q=v("j5sG"),I=typeof ResizeObserver!="undefined"?Q.createSensor:Z.createSensor;ee.createSensor=I},G2fZ:function(Be,ee,v){Be.exports={wrap:"wrap___157i9",title:"title___5hrVO",radioWrap:"radioWrap___1aCW_",radio:"radio___1d2Mr",colorFF0000:"colorFF0000___3ojYJ",pagination:"pagination___36vEb"}},GABl:function(Be,ee){Be.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(Be,ee,v){var Z=v("bYtY"),Q=v("K2GJ"),I=v("1bdT"),k=v("ni6a");function _(M){M=M||{},I.call(this,M);for(var T in M)M.hasOwnProperty(T)&&T!=="style"&&(this[T]=M[T]);this.style=new Q(M.style,this),this._rect=null,this.__clipPaths=null}_.prototype={constructor:_,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(M){},afterBrush:function(M){},brush:function(M,T){},getBoundingRect:function(){},contain:function(M,T){return this.rectContain(M,T)},traverse:function(M,T){M.call(T,this)},rectContain:function(M,T){var n=this.transformCoordToLocal(M,T),p=this.getBoundingRect();return p.contain(n[0],n[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(M){return this.animate("style",M)},attrKV:function(M,T){M!=="style"?I.prototype.attrKV.call(this,M,T):this.style.set(T)},setStyle:function(M,T){return this.style.set(M,T),this.dirty(!1),this},useStyle:function(M){return this.style=new Q(M,this),this.dirty(!1),this},calculateTextPosition:null},Z.inherits(_,I),Z.mixin(_,k);var O=_;Be.exports=O},GfqC:function(Be,ee,v){"use strict";var Z=v("q1tI"),Q=v.n(Z),I=v("TSYQ"),k=v.n(I);function _(H,F){var B="cannot "+H.method+" "+H.action+" "+F.status+"'",z=new Error(B);return z.status=F.status,z.method=H.method,z.url=H.action,z}function O(H){var F=H.responseText||H.response;if(!F)return F;try{return JSON.parse(F)}catch(B){return F}}function M(H){var F=new XMLHttpRequest;H.onProgress&&F.upload&&(F.upload.onprogress=function($){$.total>0&&($.percent=$.loaded/$.total*100),H.onProgress($)});var B=new FormData;H.data&&Object.keys(H.data).forEach(function(K){var $=H.data[K];if(Array.isArray($)){$.forEach(function(te){B.append(K+"[]",te)});return}B.append(K,H.data[K])}),H.file instanceof Blob?B.append(H.filename,H.file,H.file.name):B.append(H.filename,H.file),F.onerror=function($){H.onError($)},F.onload=function(){return F.status<200||F.status>=300?H.onError(_(H,F),O(F)):H.onSuccess(O(F),F)},F.open(H.method,H.action,!0),H.withCredentials&&"withCredentials"in F&&(F.withCredentials=!0);var z=H.headers||{};return z["X-Requested-With"]!==null&&F.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(z).forEach(function(K){z[K]!==null&&F.setRequestHeader(K,z[K])}),F.send(B),{abort:function(){F.abort()}}}var T=+new Date,n=0;function p(){return"rc-upload-"+T+"-"+ ++n}function a(H,F){return H.indexOf(F,H.length-F.length)!==-1}var t=function(H,F){if(H&&F){var B=Array.isArray(F)?F:F.split(","),z=H.name||"",K=H.type||"",$=K.replace(/\/.*$/,"");return B.some(function(te){var fe=te.trim();return fe.charAt(0)==="."?a(z.toLowerCase(),fe.toLowerCase()):/\/\*$/.test(fe)?$===fe.replace(/\/.*$/,""):K===fe})}return!0};function A(H,F){var B=H.createReader(),z=[];function K(){B.readEntries(function($){var te=Array.prototype.slice.apply($);z=z.concat(te);var fe=!te.length;fe?F(z):K()})}K()}var l=function(F,B,z){var K=function $(te,fe){fe=fe||"",te.isFile?te.file(function(Ae){z(Ae)&&(te.fullPath&&!Ae.webkitRelativePath&&(Object.defineProperties(Ae,{webkitRelativePath:{writable:!0}}),Ae.webkitRelativePath=te.fullPath.replace(/^\//,""),Object.defineProperties(Ae,{webkitRelativePath:{writable:!1}})),B([Ae]))}):te.isDirectory&&A(te,function(Ae){Ae.forEach(function(ce){$(ce,""+fe+te.name+"/")})})};F.forEach(function($){K($.webkitGetAsEntry())})},i=l,c=Object.assign||function(H){for(var F=1;F<arguments.length;F++){var B=arguments[F];for(var z in B)Object.prototype.hasOwnProperty.call(B,z)&&(H[z]=B[z])}return H},d=function(){function H(F,B){var z=[],K=!0,$=!1,te=void 0;try{for(var fe=F[Symbol.iterator](),Ae;!(K=(Ae=fe.next()).done)&&!(z.push(Ae.value),B&&z.length===B);K=!0);}catch(ce){$=!0,te=ce}finally{try{!K&&fe.return&&fe.return()}finally{if($)throw te}}return z}return function(F,B){if(Array.isArray(F))return F;if(Symbol.iterator in Object(F))return H(F,B);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(){function H(F,B){for(var z=0;z<B.length;z++){var K=B[z];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(F,K.key,K)}}return function(F,B,z){return B&&H(F.prototype,B),z&&H(F,z),F}}();function o(H,F,B){return F in H?Object.defineProperty(H,F,{value:B,enumerable:!0,configurable:!0,writable:!0}):H[F]=B,H}function u(H,F){var B={};for(var z in H){if(F.indexOf(z)>=0)continue;if(!Object.prototype.hasOwnProperty.call(H,z))continue;B[z]=H[z]}return B}function E(H,F){if(!(H instanceof F))throw new TypeError("Cannot call a class as a function")}function R(H,F){if(!H)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F&&(typeof F=="object"||typeof F=="function")?F:H}function w(H,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);H.prototype=Object.create(F&&F.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(H,F):H.__proto__=F)}var P=function(F){return Object.keys(F).reduce(function(B,z){return(z.substr(0,5)==="data-"||z.substr(0,5)==="aria-"||z==="role")&&(B[z]=F[z]),B},{})},C=function(H){w(F,H);function F(){var B,z,K,$;E(this,F);for(var te=arguments.length,fe=Array(te),Ae=0;Ae<te;Ae++)fe[Ae]=arguments[Ae];return $=(z=(K=R(this,(B=F.__proto__||Object.getPrototypeOf(F)).call.apply(B,[this].concat(fe))),K),K.state={uid:p()},K.reqs={},K.onChange=function(ce){var ie=ce.target.files;K.uploadFiles(ie),K.reset()},K.onClick=function(ce){var ie=K.fileInput;if(!ie)return;var ye=K.props,le=ye.children,me=ye.onClick;le&&le.type==="button"&&(ie.parentNode.focus(),ie.parentNode.querySelector("button").blur()),ie.click(),me&&me(ce)},K.onKeyDown=function(ce){ce.key==="Enter"&&K.onClick()},K.onFileDrop=function(ce){var ie=K.props.multiple;if(ce.preventDefault(),ce.type==="dragover")return;if(K.props.directory)i(Array.prototype.slice.call(ce.dataTransfer.items),K.uploadFiles,function(le){return t(le,K.props.accept)});else{var ye=Array.prototype.slice.call(ce.dataTransfer.files).filter(function(le){return t(le,K.props.accept)});ie===!1&&(ye=ye.slice(0,1)),K.uploadFiles(ye)}},K.uploadFiles=function(ce){var ie=Array.prototype.slice.call(ce);ie.map(function(ye){return ye.uid=p(),ye}).forEach(function(ye){K.upload(ye,ie)})},K.saveFileInput=function(ce){K.fileInput=ce},z),R(K,$)}return f(F,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(z,K){var $=this,te=this.props;if(!te.beforeUpload)return setTimeout(function(){return $.post(z)},0);var fe=te.beforeUpload(z,K);fe&&fe.then?fe.then(function(Ae){var ce=Object.prototype.toString.call(Ae);return ce==="[object File]"||ce==="[object Blob]"?$.post(Ae):$.post(z)}).catch(function(Ae){console.log(Ae)}):fe!==!1&&setTimeout(function(){return $.post(z)},0);return}},{key:"post",value:function(z){var K=this;if(!this._isMounted)return;var $=this.props,te=$.onStart,fe=$.onProgress,Ae=$.transformFile,ce=Ae===void 0?function(ie){return ie}:Ae;new Promise(function(ie){var ye=$.action;return typeof ye=="function"&&(ye=ye(z)),ie(ye)}).then(function(ie){var ye=z.uid,le=$.customRequest||M,me=Promise.resolve(ce(z)).then(function(se){var ge=$.data;return typeof ge=="function"&&(ge=ge(se)),Promise.all([se,ge])}).catch(function(se){console.error(se)});me.then(function(se){var ge=d(se,2),ae=ge[0],pe=ge[1],Me={action:ie,filename:$.name,data:pe,file:ae,headers:$.headers,withCredentials:$.withCredentials,method:$.method||"post",onProgress:fe?function(xe){fe(xe,z)}:null,onSuccess:function(Ke,et){delete K.reqs[ye],$.onSuccess(Ke,z,et)},onError:function(Ke,et){delete K.reqs[ye],$.onError(Ke,et,z)}};te(z),K.reqs[ye]=le(Me)})})}},{key:"reset",value:function(){this.setState({uid:p()})}},{key:"abort",value:function(z){var K=this.reqs;if(z){var $=z;z&&z.uid&&($=z.uid),K[$]&&K[$].abort&&K[$].abort(),delete K[$]}else Object.keys(K).forEach(function(te){K[te]&&K[te].abort&&K[te].abort(),delete K[te]})}},{key:"render",value:function(){var z,K=this.props,$=K.component,te=K.prefixCls,fe=K.className,Ae=K.disabled,ce=K.id,ie=K.style,ye=K.multiple,le=K.accept,me=K.children,se=K.directory,ge=K.openFileDialogOnClick,ae=K.onMouseEnter,pe=K.onMouseLeave,Me=u(K,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),xe=k()((z={},o(z,te,!0),o(z,te+"-disabled",Ae),o(z,fe,fe),z)),Ke=Ae?{}:{onClick:ge?this.onClick:function(){},onKeyDown:ge?this.onKeyDown:function(){},onMouseEnter:ae,onMouseLeave:pe,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return Q.a.createElement($,c({},Ke,{className:xe,role:"button",style:ie}),Q.a.createElement("input",c({},P(Me),{id:ce,type:"file",ref:this.saveFileInput,onClick:function(he){return he.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:le,directory:se?"directory":null,webkitdirectory:se?"webkitdirectory":null,multiple:ye,onChange:this.onChange})),me)}}]),F}(Z.Component),b=C,s=Object.assign||function(H){for(var F=1;F<arguments.length;F++){var B=arguments[F];for(var z in B)Object.prototype.hasOwnProperty.call(B,z)&&(H[z]=B[z])}return H},h=function(){function H(F,B){for(var z=0;z<B.length;z++){var K=B[z];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(F,K.key,K)}}return function(F,B,z){return B&&H(F.prototype,B),z&&H(F,z),F}}();function m(H,F){if(!(H instanceof F))throw new TypeError("Cannot call a class as a function")}function x(H,F){if(!H)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F&&(typeof F=="object"||typeof F=="function")?F:H}function g(H,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);H.prototype=Object.create(F&&F.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(H,F):H.__proto__=F)}function y(){}var U=function(H){g(F,H);function F(){var B,z,K,$;m(this,F);for(var te=arguments.length,fe=Array(te),Ae=0;Ae<te;Ae++)fe[Ae]=arguments[Ae];return $=(z=(K=x(this,(B=F.__proto__||Object.getPrototypeOf(F)).call.apply(B,[this].concat(fe))),K),K.saveUploader=function(ce){K.uploader=ce},z),x(K,$)}return h(F,[{key:"abort",value:function(z){this.uploader.abort(z)}},{key:"render",value:function(){return Q.a.createElement(b,s({},this.props,{ref:this.saveUploader}))}}]),F}(Z.Component);U.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:y,onError:y,onSuccess:y,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var N=U,S=ee.a=N},Gytx:function(Be,ee){Be.exports=function(Z,Q,I,k){var _=I?I.call(k,Z,Q):void 0;if(_!==void 0)return!!_;if(Z===Q)return!0;if(typeof Z!="object"||!Z||typeof Q!="object"||!Q)return!1;var O=Object.keys(Z),M=Object.keys(Q);if(O.length!==M.length)return!1;for(var T=Object.prototype.hasOwnProperty.bind(Q),n=0;n<O.length;n++){var p=O[n];if(!T(p))return!1;var a=Z[p],t=Q[p];if(_=I?I.call(k,a,t,p):void 0,_===!1||_===void 0&&a!==t)return!1}return!0}},H6uX:function(Be,ee){var v=Array.prototype.slice,Z=function(_){this._$handlers={},this._$eventProcessor=_};Z.prototype={constructor:Z,one:function(_,O,M,T){return I(this,_,O,M,T,!0)},on:function(_,O,M,T){return I(this,_,O,M,T,!1)},isSilent:function(_){var O=this._$handlers;return!O[_]||!O[_].length},off:function(_,O){var M=this._$handlers;if(!_)return this._$handlers={},this;if(O){if(M[_]){for(var T=[],n=0,p=M[_].length;n<p;n++)M[_][n].h!==O&&T.push(M[_][n]);M[_]=T}M[_]&&M[_].length===0&&delete M[_]}else delete M[_];return this},trigger:function(_){var O=this._$handlers[_],M=this._$eventProcessor;if(O){var T=arguments,n=T.length;n>3&&(T=v.call(T,1));for(var p=O.length,a=0;a<p;){var t=O[a];if(M&&M.filter&&t.query!=null&&!M.filter(_,t.query)){a++;continue}switch(n){case 1:t.h.call(t.ctx);break;case 2:t.h.call(t.ctx,T[1]);break;case 3:t.h.call(t.ctx,T[1],T[2]);break;default:t.h.apply(t.ctx,T);break}t.one?(O.splice(a,1),p--):a++}}return M&&M.afterTrigger&&M.afterTrigger(_),this},triggerWithContext:function(_){var O=this._$handlers[_],M=this._$eventProcessor;if(O){var T=arguments,n=T.length;n>4&&(T=v.call(T,1,T.length-1));for(var p=T[T.length-1],a=O.length,t=0;t<a;){var A=O[t];if(M&&M.filter&&A.query!=null&&!M.filter(_,A.query)){t++;continue}switch(n){case 1:A.h.call(p);break;case 2:A.h.call(p,T[1]);break;case 3:A.h.call(p,T[1],T[2]);break;default:A.h.apply(p,T);break}A.one?(O.splice(t,1),a--):t++}}return M&&M.afterTrigger&&M.afterTrigger(_),this}};function Q(_,O){var M=_._$eventProcessor;return O!=null&&M&&M.normalizeQuery&&(O=M.normalizeQuery(O)),O}function I(_,O,M,T,n,p){var a=_._$handlers;if(typeof M=="function"&&(n=T,T=M,M=null),!T||!O)return _;M=Q(_,M),a[O]||(a[O]=[]);for(var t=0;t<a[O].length;t++)if(a[O][t].h===T)return _;var A={h:T,one:p,query:M,ctx:n||_,callAtLast:T.zrEventfulCallAtLast},l=a[O].length-1,i=a[O][l];return i&&i.callAtLast?a[O].splice(l,0,A):a[O].push(A),_}var k=Z;Be.exports=k},HmJG:function(Be,ee,v){},HpTS:function(Be,ee,v){Be.exports=v.p+"static/small_program.f74069ec.png"},I8Z2:function(Be,ee,v){"use strict";v.d(ee,"a",function(){return k}),v.d(ee,"b",function(){return A}),v.d(ee,"c",function(){return i});var Z=v("q1tI"),Q=function(){var c=function(d,f){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,u){o.__proto__=u}||function(o,u){for(var E in u)u.hasOwnProperty(E)&&(o[E]=u[E])},c(d,f)};return function(d,f){c(d,f);function o(){this.constructor=d}d.prototype=f===null?Object.create(f):(o.prototype=f.prototype,new o)}}(),I=Z.createContext(null),k=function(c){Q(d,c);function d(){return c!==null&&c.apply(this,arguments)||this}return d.prototype.render=function(){return Z.createElement(I.Provider,{value:this.props.store},this.props.children)},d}(Z.Component),_=v("Gytx"),O=v.n(_),M=v("2mql"),T=v.n(M),n=function(){var c=function(d,f){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,u){o.__proto__=u}||function(o,u){for(var E in u)u.hasOwnProperty(E)&&(o[E]=u[E])},c(d,f)};return function(d,f){c(d,f);function o(){this.constructor=d}d.prototype=f===null?Object.create(f):(o.prototype=f.prototype,new o)}}(),p=function(){return p=Object.assign||function(c){for(var d,f=1,o=arguments.length;f<o;f++){d=arguments[f];for(var u in d)Object.prototype.hasOwnProperty.call(d,u)&&(c[u]=d[u])}return c},p.apply(this,arguments)};function a(c){return c.displayName||c.name||"Component"}var t=function(){return{}};function A(c,d){d===void 0&&(d={});var f=!!c,o=c||t;return function(E){var R=function(P){n(C,P);function C(b,s){var h=P.call(this,b,s)||this;return h.unsubscribe=null,h.handleChange=function(){if(!h.unsubscribe)return;var m=o(h.store.getState(),h.props);h.setState({subscribed:m})},h.store=h.context,h.state={subscribed:o(h.store.getState(),b),store:h.store,props:b},h}return C.getDerivedStateFromProps=function(b,s){return c&&c.length===2&&b!==s.props?{subscribed:o(s.store.getState(),b),props:b}:{props:b}},C.prototype.componentDidMount=function(){this.trySubscribe()},C.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},C.prototype.shouldComponentUpdate=function(b,s){return!O()(this.props,b)||!O()(this.state.subscribed,s.subscribed)},C.prototype.trySubscribe=function(){f&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},C.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},C.prototype.render=function(){var b=p(p(p({},this.props),this.state.subscribed),{store:this.store});return Z.createElement(E,p({},b,{ref:this.props.miniStoreForwardedRef}))},C.displayName="Connect("+a(E)+")",C.contextType=I,C}(Z.Component);if(d.forwardRef){var w=Z.forwardRef(function(P,C){return Z.createElement(R,p({},P,{miniStoreForwardedRef:C}))});return T()(w,E)}return T()(R,E)}}var l=function(){return l=Object.assign||function(c){for(var d,f=1,o=arguments.length;f<o;f++){d=arguments[f];for(var u in d)Object.prototype.hasOwnProperty.call(d,u)&&(c[u]=d[u])}return c},l.apply(this,arguments)};function i(c){var d=c,f=[];function o(R){d=l(l({},d),R);for(var w=0;w<f.length;w++)f[w]()}function u(){return d}function E(R){return f.push(R),function(){var P=f.indexOf(R);f.splice(P,1)}}return{setState:o,getState:u,subscribe:E}}},IBYe:function(Be,ee,v){"use strict";function Z(Q){return null}ee.a=Z},IMiH:function(Be,ee,v){var Z=v("Sj9i"),Q=v("QBsz"),I=v("4mN7"),k=v("mFDi"),_=v("LPTA"),O=_.devicePixelRatio,M={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},T=[],n=[],p=[],a=[],t=Math.min,A=Math.max,l=Math.cos,i=Math.sin,c=Math.sqrt,d=Math.abs,f=typeof Float32Array!="undefined",o=function(E){this._saveData=!(E||!1),this._saveData&&(this.data=[]),this._ctx=null};o.prototype={constructor:o,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(E,R,w){w=w||0,this._ux=d(w/O/E)||0,this._uy=d(w/O/R)||0},getContext:function(){return this._ctx},beginPath:function(E){return this._ctx=E,E&&E.beginPath(),E&&(this.dpr=E.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(E,R){return this.addData(M.M,E,R),this._ctx&&this._ctx.moveTo(E,R),this._x0=E,this._y0=R,this._xi=E,this._yi=R,this},lineTo:function(E,R){var w=d(E-this._xi)>this._ux||d(R-this._yi)>this._uy||this._len<5;return this.addData(M.L,E,R),this._ctx&&w&&(this._needsDash()?this._dashedLineTo(E,R):this._ctx.lineTo(E,R)),w&&(this._xi=E,this._yi=R),this},bezierCurveTo:function(E,R,w,P,C,b){return this.addData(M.C,E,R,w,P,C,b),this._ctx&&(this._needsDash()?this._dashedBezierTo(E,R,w,P,C,b):this._ctx.bezierCurveTo(E,R,w,P,C,b)),this._xi=C,this._yi=b,this},quadraticCurveTo:function(E,R,w,P){return this.addData(M.Q,E,R,w,P),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(E,R,w,P):this._ctx.quadraticCurveTo(E,R,w,P)),this._xi=w,this._yi=P,this},arc:function(E,R,w,P,C,b){return this.addData(M.A,E,R,w,w,P,C-P,0,b?0:1),this._ctx&&this._ctx.arc(E,R,w,P,C,b),this._xi=l(C)*w+E,this._yi=i(C)*w+R,this},arcTo:function(E,R,w,P,C){return this._ctx&&this._ctx.arcTo(E,R,w,P,C),this},rect:function(E,R,w,P){return this._ctx&&this._ctx.rect(E,R,w,P),this.addData(M.R,E,R,w,P),this},closePath:function(){this.addData(M.Z);var E=this._ctx,R=this._x0,w=this._y0;return E&&(this._needsDash()&&this._dashedLineTo(R,w),E.closePath()),this._xi=R,this._yi=w,this},fill:function(E){E&&E.fill(),this.toStatic()},stroke:function(E){E&&E.stroke(),this.toStatic()},setLineDash:function(E){if(E instanceof Array){this._lineDash=E,this._dashIdx=0;for(var R=0,w=0;w<E.length;w++)R+=E[w];this._dashSum=R}return this},setLineDashOffset:function(E){return this._dashOffset=E,this},len:function(){return this._len},setData:function(E){var R=E.length;!(this.data&&this.data.length===R)&&f&&(this.data=new Float32Array(R));for(var w=0;w<R;w++)this.data[w]=E[w];this._len=R},appendPath:function(E){E instanceof Array||(E=[E]);for(var R=E.length,w=0,P=this._len,C=0;C<R;C++)w+=E[C].len();f&&this.data instanceof Float32Array&&(this.data=new Float32Array(P+w));for(var C=0;C<R;C++)for(var b=E[C].data,s=0;s<b.length;s++)this.data[P++]=b[s];this._len=P},addData:function(E){if(!this._saveData)return;var R=this.data;this._len+arguments.length>R.length&&(this._expandData(),R=this.data);for(var w=0;w<arguments.length;w++)R[this._len++]=arguments[w];this._prevCmd=E},_expandData:function(){if(!(this.data instanceof Array)){for(var E=[],R=0;R<this._len;R++)E[R]=this.data[R];this.data=E}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(E,R){var w=this._dashSum,P=this._dashOffset,C=this._lineDash,b=this._ctx,s=this._xi,h=this._yi,m=E-s,x=R-h,g=c(m*m+x*x),y=s,U=h,N,S=C.length,H;for(m/=g,x/=g,P<0&&(P=w+P),P%=w,y-=P*m,U-=P*x;m>0&&y<=E||m<0&&y>=E||m===0&&(x>0&&U<=R||x<0&&U>=R);){if(H=this._dashIdx,N=C[H],y+=m*N,U+=x*N,this._dashIdx=(H+1)%S,m>0&&y<s||m<0&&y>s||x>0&&U<h||x<0&&U>h)continue;b[H%2?"moveTo":"lineTo"](m>=0?t(y,E):A(y,E),x>=0?t(U,R):A(U,R))}m=y-E,x=U-R,this._dashOffset=-c(m*m+x*x)},_dashedBezierTo:function(E,R,w,P,C,b){var s=this._dashSum,h=this._dashOffset,m=this._lineDash,x=this._ctx,g=this._xi,y=this._yi,U,N,S,H=Z.cubicAt,F=0,B=this._dashIdx,z=m.length,K,$,te=0;for(h<0&&(h=s+h),h%=s,U=0;U<1;U+=.1)N=H(g,E,w,C,U+.1)-H(g,E,w,C,U),S=H(y,R,P,b,U+.1)-H(y,R,P,b,U),F+=c(N*N+S*S);for(;B<z&&!(te+=m[B],te>h);B++);for(U=(te-h)/F;U<=1;)K=H(g,E,w,C,U),$=H(y,R,P,b,U),B%2?x.moveTo(K,$):x.lineTo(K,$),U+=m[B]/F,B=(B+1)%z;B%2!==0&&x.lineTo(C,b),N=C-K,S=b-$,this._dashOffset=-c(N*N+S*S)},_dashedQuadraticTo:function(E,R,w,P){var C=w,b=P;w=(w+2*E)/3,P=(P+2*R)/3,E=(this._xi+2*E)/3,R=(this._yi+2*R)/3,this._dashedBezierTo(E,R,w,P,C,b)},toStatic:function(){var E=this.data;E instanceof Array&&(E.length=this._len,f&&(this.data=new Float32Array(E)))},getBoundingRect:function(){T[0]=T[1]=p[0]=p[1]=Number.MAX_VALUE,n[0]=n[1]=a[0]=a[1]=-Number.MAX_VALUE;for(var E=this.data,R=0,w=0,P=0,C=0,b=0;b<E.length;){var s=E[b++];b===1&&(R=E[b],w=E[b+1],P=R,C=w);switch(s){case M.M:P=E[b++],C=E[b++],R=P,w=C,p[0]=P,p[1]=C,a[0]=P,a[1]=C;break;case M.L:I.fromLine(R,w,E[b],E[b+1],p,a),R=E[b++],w=E[b++];break;case M.C:I.fromCubic(R,w,E[b++],E[b++],E[b++],E[b++],E[b],E[b+1],p,a),R=E[b++],w=E[b++];break;case M.Q:I.fromQuadratic(R,w,E[b++],E[b++],E[b],E[b+1],p,a),R=E[b++],w=E[b++];break;case M.A:var h=E[b++],m=E[b++],x=E[b++],g=E[b++],y=E[b++],U=E[b++]+y;b+=1;var N=1-E[b++];b===1&&(P=l(y)*x+h,C=i(y)*g+m),I.fromArc(h,m,x,g,y,U,N,p,a),R=l(U)*x+h,w=i(U)*g+m;break;case M.R:P=R=E[b++],C=w=E[b++];var S=E[b++],H=E[b++];I.fromLine(P,C,P+S,C+H,p,a);break;case M.Z:R=P,w=C;break}Q.min(T,T,p),Q.max(n,n,a)}return b===0&&(T[0]=T[1]=n[0]=n[1]=0),new k(T[0],T[1],n[0]-T[0],n[1]-T[1])},rebuildPath:function(E){for(var R=this.data,w,P,C,b,s,h,m=this._ux,x=this._uy,g=this._len,y=0;y<g;){var U=R[y++];y===1&&(C=R[y],b=R[y+1],w=C,P=b);switch(U){case M.M:w=C=R[y++],P=b=R[y++],E.moveTo(C,b);break;case M.L:s=R[y++],h=R[y++],(d(s-C)>m||d(h-b)>x||y===g-1)&&(E.lineTo(s,h),C=s,b=h);break;case M.C:E.bezierCurveTo(R[y++],R[y++],R[y++],R[y++],R[y++],R[y++]),C=R[y-2],b=R[y-1];break;case M.Q:E.quadraticCurveTo(R[y++],R[y++],R[y++],R[y++]),C=R[y-2],b=R[y-1];break;case M.A:var N=R[y++],S=R[y++],H=R[y++],F=R[y++],B=R[y++],z=R[y++],K=R[y++],$=R[y++],te=H>F?H:F,fe=H>F?1:H/F,Ae=H>F?F/H:1,ce=Math.abs(H-F)>.001,ie=B+z;ce?(E.translate(N,S),E.rotate(K),E.scale(fe,Ae),E.arc(0,0,te,B,ie,1-$),E.scale(1/fe,1/Ae),E.rotate(-K),E.translate(-N,-S)):E.arc(N,S,te,B,ie,1-$),y===1&&(w=l(B)*H+N,P=i(B)*F+S),C=l(ie)*H+N,b=i(ie)*F+S;break;case M.R:w=C=R[y],P=b=R[y+1],E.rect(R[y++],R[y++],R[y++],R[y++]);break;case M.Z:E.closePath(),C=w,b=P}}}},o.CMD=M;var u=o;Be.exports=u},ItGF:function(Be,ee){var v={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?v={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?v={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?v={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:v=Q(navigator.userAgent);var Z=v;function Q(I){var k={},_={},O=I.match(/Firefox\/([\d.]+)/),M=I.match(/MSIE\s([\d.]+)/)||I.match(/Trident\/.+?rv:(([\d.]+))/),T=I.match(/Edge\/([\d.]+)/),n=/micromessenger/i.test(I);return O&&(_.firefox=!0,_.version=O[1]),M&&(_.ie=!0,_.version=M[1]),T&&(_.edge=!0,_.version=T[1]),n&&(_.weChat=!0),{browser:_,os:k,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!_.ie&&!_.edge,pointerEventsSupported:"onpointerdown"in window&&(_.edge||_.ie&&_.version>=11),domSupported:typeof document!="undefined"}}Be.exports=Z},IxHN:function(Be,ee,v){"use strict";var Z=v("q1tI"),Q=v.n(Z),I=v("07cG"),k=v.n(I);ee.a=function(_){var O=_.message,M=_.className,T=_.children,n=_.style,p=n===void 0?{}:n;return Q.a.createElement("div",{className:"".concat(k.a.idsRingWrapper," ").concat(M)},Q.a.createElement("div",{className:k.a.ldsRing},Q.a.createElement("div",null),Q.a.createElement("div",null),Q.a.createElement("div",null),Q.a.createElement("div",null)),O?Q.a.createElement("p",{style:p},O):null,T)}},JTSX:function(Be,ee,v){Be.exports={flex_box_center:"flex_box_center___2jvp9",flex_space_between:"flex_space_between___YQ3n3",flex_box_vertical_center:"flex_box_vertical_center___lMDl8",flex_box_center_end:"flex_box_center_end___14pJI",flex_box_column:"flex_box_column___3MPcr",banner:"banner___1CNID",wrp:"wrp___2yuj2",titleWrap:"titleWrap___3rqyq",titleFlexEnd:"titleFlexEnd___3qeo-",title:"title___1sz3A",titleIcon:"titleIcon___oKhIk",contentWrap:"contentWrap___2hSfm",verticalLine:"verticalLine___1hWY5",contentLeftWrap:"contentLeftWrap___3cPFj",openCourseTag:"openCourseTag___2nNhU",ratingWrap:"ratingWrap___QZ8mo",ratingTitle:"ratingTitle___1sMbV",rating:"rating___tJ9xt",popoverWrap:"popoverWrap___16eNE",popverLeft:"popverLeft___1EzpC",popoverRight:"popoverRight___1dYpr",popverScore:"popverScore___2QZ2F",popoverRateWrap:"popoverRateWrap___2O45Q",popoverProgress:"popoverProgress___2jOeY",button:"button___1WaHd",operationWrap:"operationWrap___3_Xdi",forkWrap:"forkWrap___36Nap",fork:"fork___1AtQN",forkNum:"forkNum___3b1MG",buttonTransparent:"buttonTransparent___INxBh",buttonLearnStatistics:"buttonLearnStatistics___350-U",publishPopverWrap:"publishPopverWrap___2uMcI",colorFF6802:"colorFF6802___W5JBU",w140:"w140___20QZ6",nav:"nav___UcDQM",navLeft:"navLeft___1IpLj",navContent:"navContent___g-IkK",flexRow:"flexRow___2Srtn",navRight:"navRight___1wX_D",navLeftIcon:"navLeftIcon___33sNL",colorOrange:"colorOrange___1lWTV",contentItem:"contentItem___3BAmt",contentItemTitle:"contentItemTitle___3X1lp",contentItemText:"contentItemText___2Px0w",classButton:"classButton___1uAy6",bg28e:"bg28e___34ke7",bgGray:"bgGray___1wX3O"}},JWDV:function(Be,ee,v){Be.exports=v.p+"static/charpter-white.5fa14f93.svg"},JYp7:function(Be,ee,v){"use strict";v.d(ee,"a",function(){return Z});var Z;(function(Q){function I(u){return u&&typeof u=="object"&&typeof u[Symbol.iterator]=="function"}Q.is=I;const k=Object.freeze([]);function _(){return k}Q.empty=_;function*O(u){yield u}Q.single=O;function M(u){return u||k}Q.from=M;function T(u){return!u||u[Symbol.iterator]().next().done===!0}Q.isEmpty=T;function n(u){return u[Symbol.iterator]().next().value}Q.first=n;function p(u,E){for(const R of u)if(E(R))return!0;return!1}Q.some=p;function a(u,E){for(const R of u)if(E(R))return R;return}Q.find=a;function*t(u,E){for(const R of u)E(R)&&(yield R)}Q.filter=t;function*A(u,E){let R=0;for(const w of u)yield E(w,R++)}Q.map=A;function*l(...u){for(const E of u)for(const R of E)yield R}Q.concat=l;function*i(u){for(const E of u)for(const R of E)yield R}Q.concatNested=i;function c(u,E,R){let w=R;for(const P of u)w=E(w,P);return w}Q.reduce=c;function*d(u,E,R=u.length){for(E<0&&(E+=u.length),R<0?R+=u.length:R>u.length&&(R=u.length);E<R;E++)yield u[E]}Q.slice=d;function f(u,E=Number.POSITIVE_INFINITY){const R=[];if(E===0)return[R,u];const w=u[Symbol.iterator]();for(let P=0;P<E;P++){const C=w.next();if(C.done)return[R,Q.empty()];R.push(C.value)}return[R,{[Symbol.iterator](){return w}}]}Q.consume=f;function o(u,E,R=(w,P)=>w===P){const w=u[Symbol.iterator](),P=E[Symbol.iterator]();for(;;){const C=w.next(),b=P.next();if(C.done!==b.done)return!1;if(C.done)return!0;if(!R(C.value,b.value))return!1}}Q.equals=o})(Z||(Z={}))},JeFH:function(Be,ee){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAwCAYAAAD9wT87AAAe2UlEQVR4XtVcB5QUVbr+blV1T+ieGWaYBAwgOSgooJLjENeA6a2KCVfZNbum3VXXsG9VdFfc1TXtGlfXLCKgEiRnUAHJWRzAyTl3V9V957vV1dPTM+M4Hn2Pd8/xIHRV9f3vn77/+/9qgVaWlHIggHMB+AA8K4TIbe2ek/FzKWUmgLGw7THQtLlCiBUn4z6j9ySa26SUMg3A+ZDyaljBMTC87mXrAUwSQtT+fxBOSqmbpjnaMIyrYJnToRvtQ/sOAJgihFh1ssvRSEFSysEAroJlXQZdp8VhXUEAS07UYGavBPSIQz10vacQ4vjJLJiUMgPAhZByJoQYyr0erZFYmFOFZK+GK7szGOB3Qoi/nsxycG9KQVLKKyDltbDMbBge5NYD87+twvxjNdhbZiIoJZZMysRpPqsShreXECL/ZBRMSjkAwM2wzIugG2k2gOW59fjgaDU2FNbjRI2Fm/r48eigdtz+TUKIF05GOSL3JKSUDwN4SALYXBRQwqzIrUNBvQ1DAIYm4BHAJxMz0TPOLoJu9BFClJxsglVVVWXGx8d/IYTIOl4rsSCnGvNzarCvIghLAl5NoN6WuKVPAu4dkMjtXyuEeP1kk6NJDpJSHgTQ8+Ht5Xj5UBWoqBhNQAsFP/6dwi2alIlTYq1caEY/IUT5zyGYlLIvgD4AugLIgm0zF3qgaccDgcCbMTExu1v6Xinl6YDc/lWxiWvWF6E04BiYxxUEQK0lcUe/BNx9qlLQFUKIt38mOVIAnA6gG4AugM104Qe0ajo1gA+FEHTwVhc96CoAbzy9txJP7KpAPKWKWFRQrCawZEoHZHnN4yEFVbX65DZeIKW8DVI+DiHimrtVSnlCCDFUCHGihc+TYJl7jwf1DlOW5KHWltCiLqSCfndqIm7vlwDLsi41DOP9Nm6z1cullL0BLATAP1tavxZCvNTqw5iDpJSnwrZ2rC60tKvXFTayOCc/AXGGwNIpHdDRCOZA9/QXQtASfrIlpdQg5TYpxMDXDlVhf7mJ/DoLZQEbNabEnf0TMbVTLL+PCHJZy15kL5EQk6ctK8De8mATWaige09LxC19lYIuMQxj7k8mROhBUsrbAfydOW/pd3XIr7VQXG+jImjjtHYePHlmMmDb7wpdv/yHfDcV5Idt7c0NalmTl+Sh2pTh8OYqiF5FBXXwWEeh6acKIWp+yMPbco2U9icS4pyJSwuwsywQDrM1lsQDA5JwW78EPu4iIcS8lhUkHwfw+1s3l2LesRrE6o2jARV032mJuLlv689qy94bRRwpL2YIe3F/Fe7bVqYiEqMs82CvBAOrpmQA0vpUaAZry1ZXCMXZS22ISVM/L8CBSlPFbnfRg/53FCQfAXD/7VtKMTen4XB5qDf38eO+AUm0+usMw3j1exR0GYB3nttXicd2VSDu/0ZB/WCZuzaU2NqMNYUKZHFRQR3jdKyclgGvZa0XhjGqVe2EYbZlzYGm3fmbjSX47EQtYiIEaxTiPNa3IQ/6SUOc46nyUgDvRh8uFXRlNx+eGKKg8d1CiDktCRYIBM7wGPrW5flBce36IgVuIldkiANwsRDiox9ySG25RkqZEIpInRiRGKKFAGwJtPNqWD4tE8nC3AXNOEMIYbX2bLcOugbA63N2V+CpvZWNLK8RSPCYx6ErFPdzgIRBsK2tn+ebuG5Dw+HWWRLnZsXhxWEERnhMCHH/93hQMqzggaP1RuovPs9TsDpSRZEgAcAvhRAftHZAP+ZzadurLCHGTl5agMNVTkRyz3HxlA7o7LVyoOk/KJe7ChoKyE0Lj9fhpk0ljT0oBLs/m9QBp8SYuSEF/eQwW0oZDyuYc7BWb3/usjyY0qmiA7bEqLQYvD0mlWf1ohDixu9RkICUGwJCDJu4OB/HaixERrn/RZj9NIDbZq4vxvLcOnWeVBBR5fzsTPT3WaXQPb2FEEWtGYBSUHV1dYd4r+fA7hrNf8HyfBCgu5bHB//UhaqUkoVIOoBhAPrRBmzbLtSAWyul1mnSkjzk19nqcIO2xMBkLxZOSCP6eU/oOvNMRI6UQgjBbaolpXwZwHUz1hRhXWF9ozBHBf2UhaqUMgYA+T3Wb8Nh2+2haWUASDBf/PDX5XjpYFU4ItHo3hmThuFJMgiPt4sQIu/7ZOFnrgcZsO3tFdBOzV6Up2BhZKFKzX+cnYFTfXZFdV2gt9/v/1FUjySdBDkLltUVUqbD8BjRFsRYfeGqQmwvCSiYTKG6+XR8PjkDBuQ2CLEItt0NQrSDgAe2TIG0bWh6IYTYzLINwB/u31qG149UNwrXVND1Pf340xlJ/NofTfXU19f39Xq9s2Gb/WHLTjA8ityLXm8crsa928rCe6i3JF4a3h5TM3UJ3fMEbDsTQhB3xwOaH9KKhRAVEPpRAK8KIdaEQ7S07XkQ4oJzlxcqmBtZgfPQPhiXjiGJdn2IizvWmmtGfy6lZFW9RwKxJC4Lak10idPw6M5yFNbb+GXXeFzcNV7ddsvmEnx8rFbBZKKf9FgNi7LTkRLTUHrSy/k3opWgDSRqzt8BnABkp1cPVeOB7eVNFBQBOO4RQjzZVjlCXsrcdUlREDhaaSIzVmDZd3X49EQtuvkN/On0JFU7rs6rw9Xri8NnSQN5cnA7XO6QtY0WQ0CpBcTrjoUBKCAb0aAgKWfT8m7cVIKFx53DcRfDzH9Gp2F0CiQML0HC/rYKpmgcK7hnY4kUV68rUjH53yPb456vSrG33MRV3X145uxk9di/7KrA0/scsELj8BsCn2WnI8unozJo48ZNpThYaeLBgYnYWFiPuTm1qgh8a0wqvJBFsILJK4ulPnNdUSNDI+C4oHMcnh2qAMd/CyEeaqscIQV9CuAXF64sxLqCekUd8bQe31WBjDgNyyZloFO8joMVJs5fUYiAdMAKEd0fByTiJqcOwz8PVOH1w1U4MyUGl54Shxs3l6qQPOesZIzLYItHnBGpoGvpVpGH426ervmv4e0xrRNDrhgshNjWVsEU/LTMfTlBvePUJXmqsv7nsBS8eaQaq/LrMSkzFm+Odto17x2twV1fliojoSKJguaPT0PfJI8SctLnBYoE/duZyYoxeOVQNXonGlg5NQMeKbfBtjKP1GkdiOSCIbDB51KOiR1i8dpI9T1/F0Lc0VY5Qgr6C4B7fr2xRBXE/9UlHqPSY3DP1jL4DIF549JwajuPYkKmLisI51N6ENn0+weoEKsMcfaucozJiFVsyTXrihXyZBg8t5MHEPrASAWNAbD6g6M1uCN0OO7m+WAexi9PUSFoLGPjjxLMNldYQh9PtmBPWQCzB7XDzrIg3jlag8EpHiwYn6YKu/UF9bhibTGMUMyiF707JhVnp3ph2sD0lYX4orgejw9uh5wqCy8erELfRAMrpmRAk3I5YPtroA9lPs0LgQ3ul4hwWGoM3h+bSsDxutB1GmWbl5TySgBv/m1PpTrg4WkxuKG3Hzdsckj+N0elYkxGjArPF6wsxI5SJ2XwHGd08+GvTk2Hlw86bMPZqTGKgmI4DNAZRrTHtEwD0IwBkQrqBjO4f0s5PJeuLmwCTx8+PQmzevn53POFECQD27yklH8D8NvrNhRj/rFaxSxz46y9uvsNLMpOQ5JXw+FKE+etKAzXMTzYV4a3x6SOTnS+bE0RluXW4bFB7VBYZ+Mf+yrRN8nAyikZENL6BEJUAtrl01cUYnvocHgfQzUtm+ESkB8LoV3YZiEcpDgYtvXVkrwgfrWhGF19BmYPSsJvNpWi0rTxzFnJ4XxKL1sUKv7pwdM6xeFfw1WIxYff1uCWLaUYlOzBg6cn4ep1xUqJLzUo6LRIBfnJBp8IGllTluaiNlQB80G86bd9E3DPaYqmv0YI8caPFGwmgNfo2k/srsDlp8Qr6/n91jKkxmjq4Dr79CahgbnjqQYPBhmPD3Nq8OczklAdlHhyTwX6JXlCCpLzIcQOAA+wplsQkU9p0V18uvI0XVqrhWaM+5FyJMMyD3xTr6VOXZoHQwhVSN/5ZamqvR6MyDN/+roc/wpB7UYeDCgjo1JoNGwiXrWuSHGhLSlIwLLWB3R9+ITF+ar76OIEKmhmD5/bibxTCEFPaPOSUp4FaW9ZeCKAK9cWIjszFtf38mPWphIFBOaOS1PJngfJ5LorhCb5/Q8NTMKveysPxj1fluLFA1UqxFF5j+wsR/8kD9ZOy2SIWwCHwnl99s4KPLu/gRlhqGwf49AticLeAaExn7ZKt0QLKqXkWa0L6vqIMZ/l43BVEO+NTsXsXRXYURpU3OEDpzt55pWDVXjwawdN0oO5zwUT0lTk2FJUjwtWFqFPoqFY7l+uLkKVaePVkak4p0NUiOPDpGW9BU2bcdGqQnxV3AC1eQjnd47D8w76mS2EuK/N2nFCQxos8+CROi3pmT3lGJcRi3GZMThQEYTf0NAtwQjDYoaOz79zqnAq6Na+CfiD48F4dl8l3v6mBvcPSFR55aUDVciM1/HyiPZU0GIIQVZ7Fa8hSnRJUwIO/j97W508P5xuaU5WaVkvQdOuZzTgc6/p4VP1I/dDUjQjTle3LT5Ri1kbHXaGhpcVr6tQ7vdoCuUxb9Eo7+yfgPu3laOo3sJ9A5MwJt3DQqIBxSkFSevPgPbHyDqE/67olvQYvD1a0S0vCyFm/UgFMe0vAHBOa/f/cVsZXjvsFJqKMO3uwxODneRKS9SEaJQnSeqSlARAmuVvsM0ja4tsjZ7q1nSN6Ra7HLpBuoX1RpuXlJKMxluhcqzF+1lwX7LaKSu4Rw6tUEHpcboqIUwpm5C6vFYA3wEYFD3Vo6B2dGhwkqsXn2Wn8VsWCE2b3maJQjdIy3oWmnbzoUoTu0sD4J8Mp2VBG+MzY1U9xPX8/ipVxFJBTK6/6BSHf4aSKwWl0tgrMm2pckCiV7iCPsueECwz51Cd3v6cz3PDvB6fy+v/MyYNo5Jhw/D2FUKw5d/mFQgEzvZ4PBtKA7bOsMYocLTKVF6UYGi4f2CiYq+P11j4xfICVAUdVpvjBJ9MSEP3BIdEoWyUg+iNy+fRVLiHo6Ah0QrKZu76z5Fqlbjd0MB7WXitmJoBr5QbhaaNaLNEroKkZKv3+ivWOkhMF05Di0ZwVmqMgtr8+8c5DsJhLUQPJpR9zyFMwVKAwIAWqLwJAt0SdLwxJg0+2NugaUMh7a8qpDYgmrpiuH5uaAqmdyYiFMOEQw+1eUkpR3IqjWiUYcqlxnig3Ne8cakYmhajCutpywuVEfIafv7h2FSckeLF8WoLszYWozhgKzaEi2TJY4OSMaFDDEzTHButIDabdq8sssQ16xoof35hokdg2bQOSBXBQ8Lw9mqzRA0Kuo1h6IHtZSAdE2kEGaR0JqarMECGYMba4jBhyuRKwpR10ltHqnHXV2WID6EY7o/UysppHZCpBQ/C8PRh11IKfdoUNiErzHBNRc8jFUNwYprmVI/Hs+THyCKl7MjWxs4qzXfhinwVwtzD5HfMGZKMy7rFK2WRcXDhPg3qjVGpGJsRg9waC5OXFaAiKMPhmt7E8uFXPX1sUJ4TraBUwsd9NVry+cvyQHjDC9xqfmF2Jnr7ZAU0/WYyF5ZlBXVdZ+uBtHkhgJLWUJGUcjyAFe+G2ILIBO4RAgsmpKJ3ogeHKkyct7IAAduxSCZXwvAEj8CSUOL1hhTkTh4tntwBXY3AMeGN6SKlfB7AjVeuLcaagrpwnHc6tAm4zxm9eoZgIiQiaT1WmoW5ublFHTt2/N62vpTSoJdWSW1g9uI8VY+5XsTvuK1vAn4fAjXXbyjGkhDgoQeTaiLlRDZl2rJCfFcbgZhNiQcGJuGGPgqxXhKtIC9sc0exbfSZuCgX5cGG+QTGblbgrFuaLCtILZZBEzmAthuatgXAJgC7opt7UsosWOb+rytF/EUr8xs11BTnNyoVozNiUFRnYeryQpTUO77PeM7kSnS0pSigilXG9EgD+nRSB/SMDeZB92ax+0p67O4vy/Du0eowt8jDu7RrPJ46y+H9Gi9m7WA9OH+uaQcgxVZo2kYAXzU3TSSl/A/Ht/5rdRE2FzW0NqiECzvH4x9Dne+4f1sZXncBjynxyKAkXNvTr8IzywnSVW5rnB70+9DkkRoNa7LFEB2TvSQfR6ut8HwCFXR1D78q9MgxsQ3AhMeDIyLJ8nnQJUFHsoMunWWrIRNO4XDQYzWngVQNIe2vK0P5gUx2ZL311JBkXNotXiXPc1YUKhDBz0kiMrn2SDAUPD1vRUGYZ6MH8WvnT8xEvzirCIansxr9Bd5+anclntxbEQ6HlKN/Oy+u6BavWHQeJnOyz9CQGqujY7yBLgkecIgozJ1bZiU0fSOEmA/gUyHEtxRPSnkngDkPbCvHq4cb+j7MmUNDlBIP+B97SQk5I200kDv7JeAuZzYPl68pwvqIvlXU5zObKsiy3oCmXXXxKvJdgUYQkBqnYoii3EUrpiAMN0keTYUi4nomyKEZcch05+5tcz804zXCdABPsKl2yaoibClusDxu7u7+ibijv8P2snDbVFQfhslMroNSvMirtVTiLQ84YcWN//MmZGCAzy6F4ekCgHPmq9/5pgZ3R9RCym4kFI0ULQc/Y5jlQTIf9kr04Mz2XgzPiMOApJDlUVm6MS8YDD7r8XiINFa/d7RGuOQun+H2sBiSmRvfP1qjWAYCnqiiHzdvLlG0l9s9iKr5rm+qIOlM1xCZfBLVdmgmJoT/ycX5lnSUyAezah+c4sW5WfGY2iUOPgVx7G+gaXyFZURkrcMHcXNXdPPhLyEy8abNJVgQ2jyN4/WR7RUUJ2SdtrxAQVh6l2svH43PwOl+uxyGh72nNNjmvpWFtrhmXWGTWqM1WYhc6W18NsEIPZdM+PSufvTya4AVtKF7lsK2sr8utz00aNdQ3AERNySvyqvDNaG+ED32vKw4vODMWOCh0ESvm4sV493bj/sHKibixuYUdAOAF6Lbtc0JFIlcmvvchcG8jo2sy06Jx8zeCfCFYke0dTOsTciMxb9HOW0HjiO/dMgJHRTs6RAJGc0Su8Yxd3w6BiXKSuieHirxm8HDe2q0xOlRbfwmYT0CgbUkJ5VFKEwyl3u8oU8CBrRzapnSehtTlxegIMScu6Dq4/FpiiPcWRoE2RlmUxrayLQYvBMqGUj0so8UqaAbeoWpojuaU9D5DOccvPtzqFBsbtOM26xhyoO2StbMEU0eFnEjvYqxmXCZMHdkeoxqa7PKdhc3f1o7L+YTTgsWq5V4dKez+Wg+jiTjyvw6lQe5qDR2fc9MlNUwPD0BFMO29hVYeveJi3OV10VNYYW/l8+vNKkAp6qPGqdrJD4Pn8aSYAjF7nOgkgn+stVF2BgBFKhQth0IeFjvqGLVlGCEcUqGdAX93/3GKRkiFeS25W3bvrc5BZ0NyM3zcupw65aSJtOZ7mEwRr8wNEX1c5Z8V4ttJQGF+qIH1qOVSyUxIb86IgUDkr3IXpoftjx3uI+MBS2VdPxvv2iI3bf2ScAfHHiMO74oxQffNgw48t73xqbj7CS7FoaX7zB9J01zY0DXh41flN8IykbuiV5Lqp9Tn5wJZIf0WLXDn5IiakmpjA40mut6+vDIoHaNvJ33Rno8cyVzZm6t81wW/Qx/CR5NFevkHd0ZPj7zVz39iqlnBGxOQd3ZF9pQCmPGmoIw/IsUyn0Dgl/S1e+4OamOJSfqlJD7Kkz1by1ZIjcxOdTZvDTC8sLt7YnpCmxExu7oZtdjO8rx3IHGEzPvjk3DsCRZF1LQCWnbH0GIC5ubs3DlIay9JwKYENZTSQuP1SqPYK0SPQDp3suQReiwYnK6Ipdd5oOfc78kc2/qk6A8k/0twmlGHRofzy4zTse24gAuWeNEESqD913bw1E6gEeaU1AKK+QDofk0WmZzoYskH2sWkqiRix7yRVFAdQpzqhvPpbnXEUGNSY/BW6NTG1meS2Z+NC4NA5I9qhN58aoiFbvJVU3uGItXRjj5iQz2wzsahkIYUt4Zm47h7WR4sEVKSV7uZhUO8xxmPHrR0i/uEo+nQ/MQkZ/nVJsKIr//bU2TQXxe5+6XHs9zohLckTUe9KyefjzseEIYTtMrvRoUpUWU+E2liXNXFKIuNGTJ+8iMk00g2m1OQSxWdxbZRm8Wq6QhmnNzh85oh8u6NZ5QIXTlLNjf91Y2mex0hWdTikPst/ZLULxaZIs9Eq19W+Vsntczdg9J8aqeEXNeJFfH51JBb49Jx4hkOwAjhm8B5kgp2RZ59M4vStUhRw/T8z4a1NntY/DBuNQmhsgcee/WMhURmosGBA0MjQuz05SXTF3mhDFeq1o0WXF4PoTWIuE0IwV5xbNSvYpc5dyCO+qmFNTdh8cc5v6pZvO6NM11AV0fOWFRPk5E0BCR1sUH3d43Ab8L0Rn8jNwS0R/Hj2itzT2c3tPDb+DDcWmqixqJcHh9ZPeU4YZwmuiI1trDr+PT7HR10Gvz63HVuoa5BSrorTHpGJksAzC8bCN868zhNWXnI+Wg5XcO0Uh+TmiGPOONQ9X4y+4K1cJuLsRxP/Tqv4eQJf9OApjhkddHd08f3F6OV0KIVPWwhrXHlE6xSt5zlheGR4R5rld392G2o6B/NK8g254LIS4i8thd1vQ9G94ZNcKkRlypnCNVZpO3CsKhzZJIi9Xx0vAUDGmvKlirPGjrfJ8nt9ZhFLhB9x0efgeti/PNZKzTYjUsmZiu6ivuiwMZbkihBb/ltBGCIQUdlVKy7/QJhzMeCnU1o0McrZmTOJ9mp6GLz1Dv8/x5RznmH69VRWtz0YP38JDZRAzxbWpMj/ex00tERtRK7yL7QWNlRGEbh0Uw5XpySDtc0d2nDI811JchUoDyX9XNh8edWvCF5hUk5XOcvKRFrA1ZRLRgbmh4dWQKnttXpV6fpBVHDjy691Agbur0ZA/+OiQZpyWzWwjONbAiunJGhOU5yMiP/z4jSVX6v95UonIRn8HD+mBMKrr4DQe6rnD6LG67Qs3uJUsTHhXiqKCz+eotK3WGmOZCHDfCZ88dm6qg9h+3l6mhlehXVyKNjAq9q38iZjkt+BO2bc/RNDw1L6c+jHzpmWkxDjtPg/oop0bVOxSYaeOWvn4FILhmbSjG4ojuccRw5cstKehBAH+6dUsp5kW8qxOpJB4eebgOcbqi0psLaS6lQgqI3NftpybB7zAmfHn3N7ZtX6tp2ov0vGdCg4pU5PSsOLzqzK6pxR81CNJrTaB9aFiY0JXexbEqV0Fvjk7D2BSYMLx80fmIlLIXrODedSVSvzLiXZ1oY6MVD2znwd4KE7Wm3fQtw1CByetGcMhlQJIaEwPkIUCws3oIZvDYvlo9gQM3zE0uA7F0UrpiIbiIbflfre30fZw5WuAPX5XhzW8cQleh1VPinTfxgH+3pKDf8E2C1tgEKoDJO9JruDGGG1oQc8yUjnG4rlcC+iTqpHlKoWlU/nMceJdSjgawhvnk42M1yIo3kBqroXeiF0NTlZftA+R+SMpix4PDj0KvghBZpo0uVNCByqCK+QpcjErD+BRuKIY56JDk/LcZPLCnRk+avjyv0UsB0Uri/Sw4Iw+EMjBSsBgelOLBzB5+nNfZfYXWfh/Q7uJvRvAHMyDlF3UQgx7dXoZYQ1NcXlqsgeyOsTTKenBWAjYhbxxs6YemG3B+EGQY5xo4ekbPZF7j/OEcR0FzW1IQmeCPommI5iyPnkQlURgqhxU26Y3JHeNwXhcfsuL4/p9pQTdIzfP9ngPuc6SU3AU7mo0bgCYrXg/Hi2dETrHyXVa+HS2l5Ft21+6usMBuhMtidE/UECdlDYSggk6oV1psa893Qb3rlCW54ZepouXg37l3d0aAfzL/cNSYZcT0LvEYnuqyvnIrIChHo/dbZYjDbPxslSFLAfGUEIIcZ3gppTpvd6zLqweOVZuI0TUVDRgSOzjVy5yWFKSmTNn6vv2LxlMx7jdEMtiZcbR6h/kdmh7nkIlctlUCiLnQNL7Xs7W5g6mrq+sTExNDg6gM9eE5xFEM4HhLL4pJKYdwvg5msCsgg4AwFceueyptKZ/XNO3pkIdqkPaXVdAGjfwkt1FTzeXveCAN7QYNp/gMDEzxYFhaLAaneaH8xTY5hrvasu1/5ebmzuvcuXOTn8KRUpLZ5sQpWVD+EgvfAKEcBWQ1mjUK554XYFvnw7YEhAhCSr6pYULTv2R6aklBAwC5Y3uJief2VyqtEoHGG5rT/4nVVN+EPaCsBB0pkT0gyyyDpq+HEB8DWNTSa/PNbbgt/yal5NkxyzI90VRVdI3+HSFpmyuk0MeTeGXnkspgrE/0aGgfyxxqoJPPQGe/BxxcDYtiBiQ042to2mfsZwkheGA/ywr9NhJlIBekZBFqOrZ5kgCFhYUJqampbAWzp9LCsgDLrgB/t0foByDkdkB1UrdFv5j0s0j1Ax8qpfxdqP/U8h1mIABN5EEYhyHELgBUBv87IAS98/9utUhA19TUZMXFxc0AcCZbIqG5A+YFvhvEMEQXVm4s6Jon6VKzA053dTI46OH8hMARhbwa5OCbboU/9e8//BRH8j9mLdQoDqqNCwAAAABJRU5ErkJggg=="},Jq4h:function(Be,ee,v){Be.exports=v.p+"static/qrcode.2267e4d5.png"},K2GJ:function(Be,ee,v){var Z=v("fW2E"),Q=v("gut8"),I=Q.ContextCachedBy,k=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],_=function(t){this.extendFrom(t,!1)};function O(t,A,l){var i=A.x==null?0:A.x,c=A.x2==null?1:A.x2,d=A.y==null?0:A.y,f=A.y2==null?0:A.y2;A.global||(i=i*l.width+l.x,c=c*l.width+l.x,d=d*l.height+l.y,f=f*l.height+l.y),i=isNaN(i)?0:i,c=isNaN(c)?1:c,d=isNaN(d)?0:d,f=isNaN(f)?0:f;var o=t.createLinearGradient(i,d,c,f);return o}function M(t,A,l){var i=l.width,c=l.height,d=Math.min(i,c),f=A.x==null?.5:A.x,o=A.y==null?.5:A.y,u=A.r==null?.5:A.r;A.global||(f=f*i+l.x,o=o*c+l.y,u=u*d);var E=t.createRadialGradient(f,o,0,f,o,u);return E}_.prototype={constructor:_,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(t,A,l){var i=this,c=l&&l.style,d=!c||t.__attrCachedBy!==I.STYLE_BIND;t.__attrCachedBy=I.STYLE_BIND;for(var f=0;f<k.length;f++){var o=k[f],u=o[0];(d||i[u]!==c[u])&&(t[u]=Z(t,u,i[u]||o[1]))}if((d||i.fill!==c.fill)&&(t.fillStyle=i.fill),(d||i.stroke!==c.stroke)&&(t.strokeStyle=i.stroke),(d||i.opacity!==c.opacity)&&(t.globalAlpha=i.opacity==null?1:i.opacity),(d||i.blend!==c.blend)&&(t.globalCompositeOperation=i.blend||"source-over"),this.hasStroke()){var E=i.lineWidth;t.lineWidth=E/(this.strokeNoScale&&A&&A.getLineScale?A.getLineScale():1)}},hasFill:function(){var t=this.fill;return t!=null&&t!=="none"},hasStroke:function(){var t=this.stroke;return t!=null&&t!=="none"&&this.lineWidth>0},extendFrom:function(t,A){if(t)for(var l in t)t.hasOwnProperty(l)&&(A===!0||(A===!1?!this.hasOwnProperty(l):t[l]!=null))&&(this[l]=t[l])},set:function(t,A){typeof t=="string"?this[t]=A:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,A,l){for(var i=A.type==="radial"?M:O,c=i(t,A,l),d=A.colorStops,f=0;f<d.length;f++)c.addColorStop(d[f].offset,d[f].color);return c}};for(var T=_.prototype,n=0;n<k.length;n++){var p=k[n];p[0]in T||(T[p[0]]=p[1])}_.getGradient=T.getGradient;var a=_;Be.exports=a},LPTA:function(Be,ee){var v=1;typeof window!="undefined"&&(v=Math.max(window.devicePixelRatio||1,1));var Z=0,Q=v;ee.debugMode=Z,ee.devicePixelRatio=Q},LSTS:function(Be,ee,v){"use strict";Object.defineProperty(ee,"__esModule",{value:!0});var Z=function(){function t(A,l){for(var i=0;i<l.length;i++){var c=l[i];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(A,c.key,c)}}return function(A,l,i){return l&&t(A.prototype,l),i&&t(A,i),A}}(),Q=v("q1tI"),I=O(Q),k=v("17x9"),_=O(k);function O(t){return t&&t.__esModule?t:{default:t}}function M(t,A){var l={};for(var i in t){if(A.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(t,i))continue;l[i]=t[i]}return l}function T(t,A){if(!(t instanceof A))throw new TypeError("Cannot call a class as a function")}function n(t,A){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:t}function p(t,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);t.prototype=Object.create(A&&A.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(t,A):t.__proto__=A)}var a=function(t){p(A,t);function A(l){T(this,A);var i=n(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,l));return i.scrollListener=i.scrollListener.bind(i),i.eventListenerOptions=i.eventListenerOptions.bind(i),i.mousewheelListener=i.mousewheelListener.bind(i),i}return Z(A,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var i=this.getParentElement(this.scrollComponent);i.scrollTop=i.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var i=!1,c={get passive(){i=!0}};try{document.addEventListener("test",null,c),document.removeEventListener("test",null,c)}catch(d){}return i}},{key:"eventListenerOptions",value:function(){var i=this.props.useCapture;return this.isPassiveSupported()&&(i={useCapture:this.props.useCapture,passive:!0}),i}},{key:"setDefaultLoader",value:function(i){this.defaultLoader=i}},{key:"detachMousewheelListener",value:function(){var i=window;this.props.useWindow===!1&&(i=this.scrollComponent.parentNode),i.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var i=window;this.props.useWindow===!1&&(i=this.getParentElement(this.scrollComponent)),i.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),i.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(i){var c=this.props.getScrollParent&&this.props.getScrollParent();return c!=null?c:i&&i.parentNode}},{key:"filterProps",value:function(i){return i}},{key:"attachScrollListener",value:function(){var i=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!i)return;var c=window;this.props.useWindow===!1&&(c=i),c.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),c.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),c.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(i){i.deltaY===1&&!this.isPassiveSupported()&&i.preventDefault()}},{key:"scrollListener",value:function(){var i=this.scrollComponent,c=window,d=this.getParentElement(i),f=void 0;if(this.props.useWindow){var o=document.documentElement||document.body.parentNode||document.body,u=c.pageYOffset!==void 0?c.pageYOffset:o.scrollTop;this.props.isReverse?f=u:f=this.calculateOffset(i,u)}else this.props.isReverse?f=d.scrollTop:f=i.scrollHeight-d.scrollTop-d.clientHeight;f<Number(this.props.threshold)&&i&&i.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(i,c){return i?this.calculateTopPosition(i)+(i.offsetHeight-c-window.innerHeight):0}},{key:"calculateTopPosition",value:function(i){return i?i.offsetTop+this.calculateTopPosition(i.offsetParent):0}},{key:"render",value:function(){var i=this,c=this.filterProps(this.props),d=c.children,f=c.element,o=c.hasMore,u=c.initialLoad,E=c.isReverse,R=c.loader,w=c.loadMore,P=c.pageStart,C=c.ref,b=c.threshold,s=c.useCapture,h=c.useWindow,m=c.getScrollParent,x=M(c,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);x.ref=function(y){i.scrollComponent=y,C&&C(y)};var g=[d];return o&&(R?E?g.unshift(R):g.push(R):this.defaultLoader&&(E?g.unshift(this.defaultLoader):g.push(this.defaultLoader))),I.default.createElement(f,x,g)}}]),A}(Q.Component);a.propTypes={children:_.default.node.isRequired,element:_.default.node,hasMore:_.default.bool,initialLoad:_.default.bool,isReverse:_.default.bool,loader:_.default.node,loadMore:_.default.func.isRequired,pageStart:_.default.number,ref:_.default.func,getScrollParent:_.default.func,threshold:_.default.number,useCapture:_.default.bool,useWindow:_.default.bool},a.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},ee.default=a,Be.exports=ee.default},LZjx:function(Be,ee){Be.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(Be,ee,v){"use strict";v.d(ee,"b",function(){return u}),v.d(ee,"a",function(){return R});var Z=v("1OyB"),Q=v("vuIU"),I=v("Ji7U"),k=v("LK+K"),_=v("q1tI"),O=v("rePB"),M=v("Ff2n"),T=v("ODXe"),n=v("4IlW"),p=v("bX4T"),a=v("YrtM"),t=v("TSYQ"),A=v.n(t),l=v("+nKL"),i=v("8OUc"),c=function(z,K){var $=z.prefixCls,te=z.id,fe=z.flattenOptions,Ae=z.childrenAsData,ce=z.values,ie=z.searchValue,ye=z.multiple,le=z.defaultActiveFirstOption,me=z.height,se=z.itemHeight,ge=z.notFoundContent,ae=z.open,pe=z.menuItemSelectedIcon,Me=z.virtual,xe=z.onSelect,Ke=z.onToggleOpen,et=z.onActiveValue,he=z.onScroll,Se=z.onMouseEnter,Ue="".concat($,"-item"),Ne=Object(a.a)(function(){return fe},[ae,fe],function(vt,Ze){return Ze[0]&&vt[1]!==Ze[1]}),ct=_.useRef(null),ft=function(Ze){Ze.preventDefault()},Ot=function(Ze){ct.current&&ct.current.scrollTo({index:Ze})},dt=function(Ze){for(var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,He=Ne.length,we=0;we<He;we+=1){var Le=(Ze+we*ke+He)%He,Pe=Ne[Le],We=Pe.group,Xe=Pe.data;if(!We&&!Xe.disabled)return Le}return-1},Ut=_.useState(function(){return dt(0)}),jt=Object(T.a)(Ut,2),ze=jt[0],Ve=jt[1],Et=function(Ze){Ve(Ze);var ke=Ne[Ze];if(!ke){et(null,-1);return}et(ke.data.value,Ze)};_.useEffect(function(){Et(le!==!1?dt(0):-1)},[Ne.length,ie]),_.useEffect(function(){var vt=setTimeout(function(){if(!ye&&ae&&ce.size===1){var Ze=Array.from(ce)[0],ke=Ne.findIndex(function(He){var we=He.data;return we.value===Ze});Et(ke),Ot(ke)}});return function(){return clearTimeout(vt)}},[ae]);var Rt=function(Ze){Ze!==void 0&&xe(Ze,{selected:!ce.has(Ze)}),ye||Ke(!1)};if(_.useImperativeHandle(K,function(){return{onKeyDown:function(Ze){var ke=Ze.which;switch(ke){case n.a.UP:case n.a.DOWN:{var He=0;if(ke===n.a.UP?He=-1:ke===n.a.DOWN&&(He=1),He!==0){var we=dt(ze+He,He);Ot(we),Et(we)}break}case n.a.ENTER:{var Le=Ne[ze];Le&&!Le.data.disabled?Rt(Le.data.value):Rt(void 0),ae&&Ze.preventDefault();break}case n.a.ESC:Ke(!1)}},onKeyUp:function(){},scrollTo:function(Ze){Ot(Ze)}}}),Ne.length===0)return _.createElement("div",{role:"listbox",id:"".concat(te,"_list"),className:"".concat(Ue,"-empty"),onMouseDown:ft},ge);function ut(vt){var Ze=Ne[vt];if(!Ze)return null;var ke=Ze.data||{},He=ke.value,we=ke.label,Le=ke.children,Pe=Object(p.a)(ke,!0),We=Ae?Le:we;return Ze?_.createElement("div",Object.assign({"aria-label":typeof We=="string"?We:null},Pe,{key:vt,role:"option",id:"".concat(te,"_list_").concat(vt),"aria-selected":ce.has(He)}),He):null}return _.createElement(_.Fragment,null,_.createElement("div",{role:"listbox",id:"".concat(te,"_list"),style:{height:0,width:0,overflow:"hidden"}},ut(ze-1),ut(ze),ut(ze+1)),_.createElement(l.a,{itemKey:"key",ref:ct,data:Ne,height:me,itemHeight:se,fullHeight:!1,onMouseDown:ft,onScroll:he,virtual:Me,onMouseEnter:Se},function(vt,Ze){var ke,He=vt.group,we=vt.groupOption,Le=vt.data,Pe=Le.label,We=Le.key;if(He)return _.createElement("div",{className:A()(Ue,"".concat(Ue,"-group"))},Pe!==void 0?Pe:We);var Xe=Le.disabled,gt=Le.value,Lt=Le.title,en=Le.children,Zt=Le.style,xt=Le.className,Ct=Object(M.a)(Le,["disabled","value","title","children","style","className"]),mt=ce.has(gt),Je="".concat(Ue,"-option"),Qe=A()(Ue,Je,xt,(ke={},Object(O.a)(ke,"".concat(Je,"-grouped"),we),Object(O.a)(ke,"".concat(Je,"-active"),ze===Ze&&!Xe),Object(O.a)(ke,"".concat(Je,"-disabled"),Xe),Object(O.a)(ke,"".concat(Je,"-selected"),mt),ke)),Oe=Ae?en:Pe,je=!pe||typeof pe=="function"||mt;return _.createElement("div",Object.assign({},Ct,{"aria-selected":mt,className:Qe,title:Lt,onMouseMove:function(){if(ze===Ze||Xe)return;Et(Ze)},onClick:function(){Xe||Rt(gt)},style:Zt}),_.createElement("div",{className:"".concat(Je,"-content")},Oe||gt),_.isValidElement(pe)||mt,je&&_.createElement(i.a,{className:"".concat(Ue,"-option-state"),customizeIcon:pe,customizeIconProps:{isSelected:mt}},mt?"\u2713":null))}))},d=_.forwardRef(c);d.displayName="OptionList";var f=d,o=function(){return null};o.isSelectOption=!0;var u=o,E=function(){return null};E.isSelectOptGroup=!0;var R=E,w=v("VTBJ"),P=v("Zm9Q");function C(B){var z=B.key,K=B.props,$=K.children,te=K.value,fe=Object(M.a)(K,["children","value"]);return Object(w.a)({key:z,value:te!==void 0?te:z,children:$},fe)}function b(B){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(P.a)(B).map(function(K,$){if(!_.isValidElement(K)||!K.type)return null;var te=K.type.isSelectOptGroup,fe=K.key,Ae=K.props,ce=Ae.children,ie=Object(M.a)(Ae,["children"]);return z||!te?C(K):Object(w.a)(Object(w.a)({key:"__RC_SELECT_GRP__".concat(fe===null?$:fe,"__"),label:fe},ie),{},{options:b(ce)})}).filter(function(K){return K})}var s=v("2Qr1"),h=v("qNPg"),m=v("U8pU"),x=v("Kwbf"),g=v("WKfj");function y(B){var z=B.mode,K=B.options,$=B.children,te=B.backfill,fe=B.allowClear,Ae=B.placeholder,ce=B.getInputElement,ie=B.showSearch,ye=B.onSearch,le=B.defaultOpen,me=B.autoFocus,se=B.labelInValue,ge=B.value,ae=B.inputValue,pe=B.optionLabelProp,Me=z==="multiple"||z==="tags",xe=ie!==void 0?ie:Me||z==="combobox",Ke=K||b($);if(Object(x.a)(z!=="tags"||Ke.every(function(Ue){return!Ue.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),z==="tags"||z==="combobox"){var et=Ke.some(function(Ue){return Ue.options?Ue.options.some(function(Ne){return typeof("value"in Ne?Ne.value:Ne.key)=="number"}):typeof("value"in Ue?Ue.value:Ue.key)=="number"});Object(x.a)(!et,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(x.a)(z!=="combobox"||!pe,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(x.a)(z==="combobox"||!te,"`backfill` only works with `combobox` mode."),Object(x.a)(z==="combobox"||!ce,"`getInputElement` only work with `combobox` mode."),Object(x.b)(z!=="combobox"||!ce||!fe||!Ae,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ye&&!xe&&z!=="combobox"&&z!=="tags"&&Object(x.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(x.b)(!le||me,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ge!=null){var he=Object(g.d)(ge);Object(x.a)(!se||he.every(function(Ue){return Object(m.a)(Ue)==="object"&&("key"in Ue||"value"in Ue)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(x.a)(!Me||Array.isArray(ge),"`value` should be array when `mode` is `multiple` or `tags`")}if($){var Se=null;Object(P.a)($).some(function(Ue){if(!_.isValidElement(Ue)||!Ue.type)return!1;var Ne=Ue.type;if(Ne.isSelectOption)return!1;if(Ne.isSelectOptGroup){var ct=Object(P.a)(Ue.props.children).every(function(ft){return!_.isValidElement(ft)||!Ue.type||ft.type.isSelectOption?!0:(Se=ft.type,!1)});return!ct}return Se=Ne,!0}),Se&&Object(x.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Se.displayName||Se.name||Se,"`.")),Object(x.a)(ae===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var U=y,N=Object(h.a)({prefixCls:"rc-select",components:{optionList:f},convertChildrenToData:b,flattenOptions:s.d,getLabeledValue:s.e,filterOptions:s.b,isValueDisabled:s.g,findValueOption:s.c,warningProps:U,fillOptionsWithMissingValue:s.a}),S=function(B){Object(I.a)(K,B);var z=Object(k.a)(K);function K(){var $;return Object(Z.a)(this,K),$=z.apply(this,arguments),$.selectRef=_.createRef(),$.focus=function(){$.selectRef.current.focus()},$.blur=function(){$.selectRef.current.blur()},$}return Object(Q.a)(K,[{key:"render",value:function(){return _.createElement(N,Object.assign({ref:this.selectRef},this.props))}}]),K}(_.Component);S.Option=u,S.OptGroup=R;var H=S,F=ee.c=H},M8RZ:function(Be,ee,v){"use strict";v.d(ee,"a",function(){return n});var Z=v("fWQN"),Q=v("mtLc"),I=v("yKVA"),k=v("879j"),_=v("q1tI"),O=v.n(_),M=v("i8i4"),T=v.n(M),n=function(p){Object(I.a)(t,p);var a=Object(k.a)(t);function t(A){var l;Object(Z.a)(this,t),l=a.call(this,A);var i=window.document;return l.node=i.createElement("div"),i.body.appendChild(l.node),l}return Object(Q.a)(t,[{key:"render",value:function(){var l=this.props.children;return Object(M.createPortal)(l,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),t}(O.a.Component)},MEGo:function(Be,ee,v){var Z=v("4fz+"),Q=v("Dagg"),I=v("dqUG"),k=v("2fw6"),_=v("x6Kt"),O=v("rmlV"),M=v("yxFR"),T=v("y+Vt"),n=v("h7HQ"),p=v("1Jh7"),a=v("SKnc"),t=v("K2GJ"),A=v("Fofx"),l=v("NC18"),i=l.createFromString,c=v("bYtY"),d=c.isString,f=c.extend,o=c.defaults,u=c.trim,E=c.each,R=/[\s,]+/;function w(K){if(d(K)){var $=new DOMParser;K=$.parseFromString(K,"text/xml")}for(K.nodeType===9&&(K=K.firstChild);K.nodeName.toLowerCase()!=="svg"||K.nodeType!==1;)K=K.nextSibling;return K}function P(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}P.prototype.parse=function(K,$){$=$||{};var te=w(K);if(!te)throw new Error("Illegal svg");var fe=new Z;this._root=fe;var Ae=te.getAttribute("viewBox")||"",ce=parseFloat(te.getAttribute("width")||$.width),ie=parseFloat(te.getAttribute("height")||$.height);isNaN(ce)&&(ce=null),isNaN(ie)&&(ie=null),g(te,fe,null,!0);for(var ye=te.firstChild;ye;)this._parseNode(ye,fe),ye=ye.nextSibling;var le,me;if(Ae){var se=u(Ae).split(R);se.length>=4&&(le={x:parseFloat(se[0]||0),y:parseFloat(se[1]||0),width:parseFloat(se[2]),height:parseFloat(se[3])})}if(le&&ce!=null&&ie!=null&&(me=B(le,ce,ie),!$.ignoreViewBox)){var ge=fe;fe=new Z,fe.add(ge),ge.scale=me.scale.slice(),ge.position=me.position.slice()}return!$.ignoreRootClip&&ce!=null&&ie!=null&&fe.setClipPath(new _({shape:{x:0,y:0,width:ce,height:ie}})),{root:fe,width:ce,height:ie,viewBoxRect:le,viewBoxTransform:me}},P.prototype._parseNode=function(K,$){var te=K.nodeName.toLowerCase();te==="defs"?this._isDefine=!0:te==="text"&&(this._isText=!0);var fe;if(this._isDefine){var Ae=b[te];if(Ae){var ce=Ae.call(this,K),ie=K.getAttribute("id");ie&&(this._defs[ie]=ce)}}else{var Ae=C[te];Ae&&(fe=Ae.call(this,K,$),$.add(fe))}for(var ye=K.firstChild;ye;)ye.nodeType===1&&this._parseNode(ye,fe),ye.nodeType===3&&this._isText&&this._parseText(ye,fe),ye=ye.nextSibling;te==="defs"?this._isDefine=!1:te==="text"&&(this._isText=!1)},P.prototype._parseText=function(K,$){if(K.nodeType===1){var te=K.getAttribute("dx")||0,fe=K.getAttribute("dy")||0;this._textX+=parseFloat(te),this._textY+=parseFloat(fe)}var Ae=new I({style:{text:K.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});h($,Ae),g(K,Ae,this._defs);var ce=Ae.style.fontSize;ce&&ce<9&&(Ae.style.fontSize=9,Ae.scale=Ae.scale||[1,1],Ae.scale[0]*=ce/9,Ae.scale[1]*=ce/9);var ie=Ae.getBoundingRect();return this._textX+=ie.width,$.add(Ae),Ae};var C={g:function(K,$){var te=new Z;return h($,te),g(K,te,this._defs),te},rect:function(K,$){var te=new _;return h($,te),g(K,te,this._defs),te.setShape({x:parseFloat(K.getAttribute("x")||0),y:parseFloat(K.getAttribute("y")||0),width:parseFloat(K.getAttribute("width")||0),height:parseFloat(K.getAttribute("height")||0)}),te},circle:function(K,$){var te=new k;return h($,te),g(K,te,this._defs),te.setShape({cx:parseFloat(K.getAttribute("cx")||0),cy:parseFloat(K.getAttribute("cy")||0),r:parseFloat(K.getAttribute("r")||0)}),te},line:function(K,$){var te=new M;return h($,te),g(K,te,this._defs),te.setShape({x1:parseFloat(K.getAttribute("x1")||0),y1:parseFloat(K.getAttribute("y1")||0),x2:parseFloat(K.getAttribute("x2")||0),y2:parseFloat(K.getAttribute("y2")||0)}),te},ellipse:function(K,$){var te=new O;return h($,te),g(K,te,this._defs),te.setShape({cx:parseFloat(K.getAttribute("cx")||0),cy:parseFloat(K.getAttribute("cy")||0),rx:parseFloat(K.getAttribute("rx")||0),ry:parseFloat(K.getAttribute("ry")||0)}),te},polygon:function(K,$){var te=K.getAttribute("points");te&&(te=m(te));var fe=new n({shape:{points:te||[]}});return h($,fe),g(K,fe,this._defs),fe},polyline:function(K,$){var te=new T;h($,te),g(K,te,this._defs);var fe=K.getAttribute("points");fe&&(fe=m(fe));var Ae=new p({shape:{points:fe||[]}});return Ae},image:function(K,$){var te=new Q;return h($,te),g(K,te,this._defs),te.setStyle({image:K.getAttribute("xlink:href"),x:K.getAttribute("x"),y:K.getAttribute("y"),width:K.getAttribute("width"),height:K.getAttribute("height")}),te},text:function(K,$){var te=K.getAttribute("x")||0,fe=K.getAttribute("y")||0,Ae=K.getAttribute("dx")||0,ce=K.getAttribute("dy")||0;this._textX=parseFloat(te)+parseFloat(Ae),this._textY=parseFloat(fe)+parseFloat(ce);var ie=new Z;return h($,ie),g(K,ie,this._defs),ie},tspan:function(K,$){var te=K.getAttribute("x"),fe=K.getAttribute("y");te!=null&&(this._textX=parseFloat(te)),fe!=null&&(this._textY=parseFloat(fe));var Ae=K.getAttribute("dx")||0,ce=K.getAttribute("dy")||0,ie=new Z;return h($,ie),g(K,ie,this._defs),this._textX+=Ae,this._textY+=ce,ie},path:function(K,$){var te=K.getAttribute("d")||"",fe=i(te);return h($,fe),g(K,fe,this._defs),fe}},b={lineargradient:function(K){var $=parseInt(K.getAttribute("x1")||0,10),te=parseInt(K.getAttribute("y1")||0,10),fe=parseInt(K.getAttribute("x2")||10,10),Ae=parseInt(K.getAttribute("y2")||0,10),ce=new a($,te,fe,Ae);return s(K,ce),ce},radialgradient:function(K){}};function s(K,$){for(var te=K.firstChild;te;){if(te.nodeType===1){var fe=te.getAttribute("offset");fe.indexOf("%")>0?fe=parseInt(fe,10)/100:fe?fe=parseFloat(fe):fe=0;var Ae=te.getAttribute("stop-color")||"#000000";$.addColorStop(fe,Ae)}te=te.nextSibling}}function h(K,$){K&&K.__inheritedStyle&&($.__inheritedStyle||($.__inheritedStyle={}),o($.__inheritedStyle,K.__inheritedStyle))}function m(K){for(var $=u(K).split(R),te=[],fe=0;fe<$.length;fe+=2){var Ae=parseFloat($[fe]),ce=parseFloat($[fe+1]);te.push([Ae,ce])}return te}var x={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function g(K,$,te,fe){var Ae=$.__inheritedStyle||{},ce=$.type==="text";if(K.nodeType===1&&(S(K,$),f(Ae,F(K)),!fe)){for(var ie in x)if(x.hasOwnProperty(ie)){var ye=K.getAttribute(ie);ye!=null&&(Ae[x[ie]]=ye)}}var le=ce?"textFill":"fill",me=ce?"textStroke":"stroke";$.style=$.style||new t;var se=$.style;Ae.fill!=null&&se.set(le,U(Ae.fill,te)),Ae.stroke!=null&&se.set(me,U(Ae.stroke,te)),E(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(ge){var ae=ge==="lineWidth"&&ce?"textStrokeWidth":ge;Ae[ge]!=null&&se.set(ae,parseFloat(Ae[ge]))}),(!Ae.textBaseline||Ae.textBaseline==="auto")&&(Ae.textBaseline="alphabetic"),Ae.textBaseline==="alphabetic"&&(Ae.textBaseline="bottom"),Ae.textAlign==="start"&&(Ae.textAlign="left"),Ae.textAlign==="end"&&(Ae.textAlign="right"),E(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(ge){Ae[ge]!=null&&se.set(ge,Ae[ge])}),Ae.lineDash&&($.style.lineDash=u(Ae.lineDash).split(R)),se[me]&&se[me]!=="none"&&($[me]=!0),$.__inheritedStyle=Ae}var y=/url\(\s*#(.*?)\)/;function U(K,$){var te=$&&K&&K.match(y);if(te){var fe=u(te[1]),Ae=$[fe];return Ae}return K}var N=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function S(K,$){var te=K.getAttribute("transform");if(te){te=te.replace(/,/g," ");var fe=null,Ae=[];te.replace(N,function(le,me,se){Ae.push(me,se)});for(var ce=Ae.length-1;ce>0;ce-=2){var ie=Ae[ce],ye=Ae[ce-1];fe=fe||A.create();switch(ye){case"translate":ie=u(ie).split(R),A.translate(fe,fe,[parseFloat(ie[0]),parseFloat(ie[1]||0)]);break;case"scale":ie=u(ie).split(R),A.scale(fe,fe,[parseFloat(ie[0]),parseFloat(ie[1]||ie[0])]);break;case"rotate":ie=u(ie).split(R),A.rotate(fe,fe,parseFloat(ie[0]));break;case"skew":ie=u(ie).split(R),console.warn("Skew transform is not supported yet");break;case"matrix":var ie=u(ie).split(R);fe[0]=parseFloat(ie[0]),fe[1]=parseFloat(ie[1]),fe[2]=parseFloat(ie[2]),fe[3]=parseFloat(ie[3]),fe[4]=parseFloat(ie[4]),fe[5]=parseFloat(ie[5]);break}}$.setLocalTransform(fe)}}var H=/([^\s:;]+)\s*:\s*([^:;]+)/g;function F(K){var $=K.getAttribute("style"),te={};if(!$)return te;var fe={};H.lastIndex=0;for(var Ae;(Ae=H.exec($))!=null;)fe[Ae[1]]=Ae[2];for(var ce in x)x.hasOwnProperty(ce)&&fe[ce]!=null&&(te[x[ce]]=fe[ce]);return te}function B(K,$,te){var fe=$/K.width,Ae=te/K.height,ce=Math.min(fe,Ae),ie=[ce,ce],ye=[-(K.x+K.width/2)*ce+$/2,-(K.y+K.height/2)*ce+te/2];return{scale:ie,position:ye}}function z(K,$){var te=new P;return te.parse(K,$)}ee.parseXML=w,ee.makeViewBoxTransform=B,ee.parseSVG=z},MI8n:function(Be,ee,v){"use strict";v.d(ee,"c",function(){return _}),v.d(ee,"b",function(){return n}),v.d(ee,"e",function(){return p}),v.d(ee,"a",function(){return a}),v.d(ee,"d",function(){return t}),v.d(ee,"f",function(){return A});var Z=v("/cxE"),Q=v("pmY6"),I=v("24hK"),k=v("5Y4S"),_;(function(l){l.None=()=>Q.a.None;function i(y){return(U,N=null,S)=>{let H=!1,F;return F=y(B=>H?void 0:(F?F.dispose():H=!0,U.call(N,B)),null,S),H&&F.dispose(),F}}l.once=i;function c(y,U){return R((N,S=null,H)=>y(F=>N.call(S,U(F)),null,H))}l.map=c;function d(y,U){return R((N,S=null,H)=>y(F=>{U(F),N.call(S,F)},null,H))}l.forEach=d;function f(y,U){return R((N,S=null,H)=>y(F=>U(F)&&N.call(S,F),null,H))}l.filter=f;function o(y){return y}l.signal=o;function u(...y){return(U,N=null,S)=>Object(Q.e)(...y.map(H=>H(F=>U.call(N,F),null,S)))}l.any=u;function E(y,U,N){let S=N;return c(y,H=>(S=U(S,H),S))}l.reduce=E;function R(y){let U;const N=new n({onFirstListenerAdd(){U=y(N.fire,N)},onLastListenerRemove(){U.dispose()}});return N.event}function w(y,U,N=100,S=!1,H){let F,B,z,K=0;const $=new n({leakWarningThreshold:H,onFirstListenerAdd(){F=y(te=>{K++,B=U(B,te),S&&!z&&($.fire(B),B=void 0),clearTimeout(z),z=setTimeout(()=>{const fe=B;B=void 0,z=void 0,(!S||K>1)&&$.fire(fe),K=0},N)})},onLastListenerRemove(){F.dispose()}});return $.event}l.debounce=w;function P(y,U=(N,S)=>N===S){let N=!0,S;return f(y,H=>{const F=N||!U(H,S);return N=!1,S=H,F})}l.latch=P;function C(y,U){return[l.filter(y,U),l.filter(y,N=>!U(N))]}l.split=C;function b(y,U=!1,N=[]){let S=N.slice(),H=y(z=>{S?S.push(z):B.fire(z)});const F=()=>{S&&S.forEach(z=>B.fire(z)),S=null},B=new n({onFirstListenerAdd(){H||(H=y(z=>B.fire(z)))},onFirstListenerDidAdd(){S&&(U?setTimeout(F):F())},onLastListenerRemove(){H&&H.dispose(),H=null}});return B.event}l.buffer=b;class s{constructor(y){this.event=y}map(y){return new s(c(this.event,y))}forEach(y){return new s(d(this.event,y))}filter(y){return new s(f(this.event,y))}reduce(y,U){return new s(E(this.event,y,U))}latch(){return new s(P(this.event))}debounce(y,U=100,N=!1,S){return new s(w(this.event,y,U,N,S))}on(y,U,N){return this.event(y,U,N)}once(y,U,N){return i(this.event)(y,U,N)}}function h(y){return new s(y)}l.chain=h;function m(y,U,N=S=>S){const S=(...z)=>B.fire(N(...z)),H=()=>y.on(U,S),F=()=>y.removeListener(U,S),B=new n({onFirstListenerAdd:H,onLastListenerRemove:F});return B.event}l.fromNodeEventEmitter=m;function x(y,U,N=S=>S){const S=(...z)=>B.fire(N(...z)),H=()=>y.addEventListener(U,S),F=()=>y.removeEventListener(U,S),B=new n({onFirstListenerAdd:H,onLastListenerRemove:F});return B.event}l.fromDOMEventEmitter=x;function g(y){return new Promise(U=>i(y)(U))}l.toPromise=g})(_||(_={}));class O{constructor(l){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${l}_${O._idPool++}`}start(l){this._stopWatch=new k.a(!0),this._listenerCount=l}stop(){if(this._stopWatch){const l=this._stopWatch.elapsed();this._elapsedOverall+=l,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${l.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}O._idPool=0;let M=-1;class T{constructor(l,i=Math.random().toString(18).slice(2,5)){this.customThreshold=l,this.name=i,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(l){let i=M;if(typeof this.customThreshold=="number"&&(i=this.customThreshold),i<=0||l<i)return;this._stacks||(this._stacks=new Map);const c=new Error().stack.split(`
`).slice(3).join(`
`),d=this._stacks.get(c)||0;if(this._stacks.set(c,d+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=i*.5;let f,o=0;for(const[u,E]of this._stacks)(!f||o<E)&&(f=u,o=E);console.warn(`[${this.name}] potential listener LEAK detected, having ${l} listeners already. MOST frequent listener (${o}):`),console.warn(f)}return()=>{const f=this._stacks.get(c)||0;this._stacks.set(c,f-1)}}}class n{constructor(l){var i;this._disposed=!1,this._options=l,this._leakageMon=M>0?new T(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((i=this._options)===null||i===void 0?void 0:i._profName)?new O(this._options._profName):void 0}get event(){return this._event||(this._event=(l,i,c)=>{var d;this._listeners||(this._listeners=new I.a);const f=this._listeners.isEmpty();f&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const o=this._listeners.push(i?[l,i]:l);f&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,l,i);const u=(d=this._leakageMon)===null||d===void 0?void 0:d.check(this._listeners.size),E=Object(Q.i)(()=>{if(u&&u(),!this._disposed&&(o(),this._options&&this._options.onLastListenerRemove)){const R=this._listeners&&!this._listeners.isEmpty();R||this._options.onLastListenerRemove(this)}});return c instanceof Q.b?c.add(E):Array.isArray(c)&&c.push(E),E}),this._event}fire(l){var i,c;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new I.a);for(let d of this._listeners)this._deliveryQueue.push([d,l]);for((i=this._perfMon)===null||i===void 0||i.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[d,f]=this._deliveryQueue.shift();try{typeof d=="function"?d.call(void 0,f):d[0].call(d[1],f)}catch(o){Object(Z.f)(o)}}(c=this._perfMon)===null||c===void 0||c.stop()}}dispose(){var l,i,c,d,f;this._disposed||(this._disposed=!0,(l=this._listeners)===null||l===void 0||l.clear(),(i=this._deliveryQueue)===null||i===void 0||i.clear(),(d=(c=this._options)===null||c===void 0?void 0:c.onLastListenerRemove)===null||d===void 0||d.call(c),(f=this._leakageMon)===null||f===void 0||f.dispose())}}class p extends n{constructor(l){super(l);this._isPaused=0,this._eventQueue=new I.a,this._mergeFn=l==null?void 0:l.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const l=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(l))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(l){this._listeners&&(this._isPaused!==0?this._eventQueue.push(l):super.fire(l))}}class a extends p{constructor(l){var i;super(l);this._delay=(i=l.delay)!==null&&i!==void 0?i:100}fire(l){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(l)}}class t{constructor(){this.buffers=[]}wrapEvent(l){return(i,c,d)=>l(f=>{const o=this.buffers[this.buffers.length-1];o?o.push(()=>i.call(c,f)):i.call(c,f)},void 0,d)}bufferEvents(l){const i=[];this.buffers.push(i);const c=l();return this.buffers.pop(),i.forEach(d=>d()),c}}class A{constructor(){this.listening=!1,this.inputEvent=_.None,this.inputEventListener=Q.a.None,this.emitter=new n({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(l){this.inputEvent=l,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=l(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MKOG:function(Be,ee,v){var Z=v("bYtY"),Q=v("YH21"),I=Q.Dispatcher,k=v("mLcG"),_=v("Bq2U"),O=function(T){T=T||{},this.stage=T.stage||{},this.onframe=T.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,I.call(this)};O.prototype={constructor:O,addClip:function(T){this._clips.push(T)},addAnimator:function(T){T.animation=this;for(var n=T.getClips(),p=0;p<n.length;p++)this.addClip(n[p])},removeClip:function(T){var n=Z.indexOf(this._clips,T);n>=0&&this._clips.splice(n,1)},removeAnimator:function(T){for(var n=T.getClips(),p=0;p<n.length;p++)this.removeClip(n[p]);T.animation=null},_update:function(){for(var T=new Date().getTime()-this._pausedTime,n=T-this._time,p=this._clips,a=p.length,t=[],A=[],l=0;l<a;l++){var i=p[l],c=i.step(T,n);c&&(t.push(c),A.push(i))}for(var l=0;l<a;)p[l]._needsRemove?(p[l]=p[a-1],p.pop(),a--):l++;a=t.length;for(var l=0;l<a;l++)A[l].fire(t[l]);this._time=T,this.onframe(n),this.trigger("frame",n),this.stage.update&&this.stage.update()},_startLoop:function(){var T=this;this._running=!0;function n(){T._running&&(k(n),!T._paused&&T._update())}k(n)},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(T,n){n=n||{};var p=new _(T,n.loop,n.getter,n.setter);return this.addAnimator(p),p}},Z.mixin(O,I);var M=O;Be.exports=M},MKdu:function(Be,ee,v){Be.exports=v.p+"static/fsz.ec502d3b.svg"},MNsG:function(Be,ee,v){"use strict";(function(Z,Q){v.d(ee,"b",function(){return c}),v.d(ee,"i",function(){return u}),v.d(ee,"f",function(){return E}),v.d(ee,"d",function(){return R}),v.d(ee,"g",function(){return w}),v.d(ee,"h",function(){return P}),v.d(ee,"c",function(){return C}),v.d(ee,"k",function(){return b}),v.d(ee,"j",function(){return s}),v.d(ee,"a",function(){return h}),v.d(ee,"e",function(){return g});var I;const k="en";let _=!1,O=!1,M=!1,T=!1,n=!1,p=!1,a=!1,t,A=k,l,i;const c=typeof self=="object"?self:typeof Z=="object"?Z:{};let d;typeof c.vscode!="undefined"&&typeof c.vscode.process!="undefined"?d=c.vscode.process:typeof Q!="undefined"&&(d=Q);const f=typeof((I=d==null?void 0:d.versions)===null||I===void 0?void 0:I.electron)=="string"&&d.type==="renderer";if(typeof navigator=="object"&&!f)i=navigator.userAgent,_=i.indexOf("Windows")>=0,O=i.indexOf("Macintosh")>=0,a=(i.indexOf("Macintosh")>=0||i.indexOf("iPad")>=0||i.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,M=i.indexOf("Linux")>=0,p=!0,t=navigator.language,A=t;else if(typeof d=="object"){_=d.platform==="win32",O=d.platform==="darwin",M=d.platform==="linux",T=M&&!!d.env.SNAP&&!!d.env.SNAP_REVISION,t=k,A=k;const y=d.env.VSCODE_NLS_CONFIG;if(y)try{const U=JSON.parse(y),N=U.availableLanguages["*"];t=U.locale,A=N||k,l=U._translationsConfigFile}catch(U){}n=!0}else console.error("Unable to resolve platform.");let o=0;O?o=1:_?o=3:M&&(o=2);const u=_,E=O,R=M,w=n,P=p,C=a,b=i,s=function(){if(c.setImmediate)return c.setImmediate.bind(c);if(typeof c.postMessage=="function"&&!c.importScripts){let N=[];c.addEventListener("message",H=>{if(H.data&&H.data.vscodeSetImmediateId)for(let F=0,B=N.length;F<B;F++){const z=N[F];if(z.id===H.data.vscodeSetImmediateId){N.splice(F,1),z.callback();return}}});let S=0;return H=>{const F=++S;N.push({id:F,callback:H}),c.postMessage({vscodeSetImmediateId:F},"*")}}if(typeof(d==null?void 0:d.nextTick)=="function")return d.nextTick.bind(d);const U=Promise.resolve();return N=>U.then(N)}(),h=O||a?2:_?1:3;let m=!0,x=!1;function g(){if(!x){x=!0;const y=new Uint8Array(2);y[0]=1,y[1]=2;const U=new Uint16Array(y.buffer);m=U[0]===(2<<8)+1}return m}}).call(this,v("IyRk"),v("Q2Ig"))},MPMw:function(Be,ee,v){Be.exports=v.p+"static/xly.53dde837.png"},N0LK:function(Be,ee,v){"use strict";v.d(ee,"C",function(){return Z}),v.d(ee,"v",function(){return I}),v.d(ee,"s",function(){return k}),v.d(ee,"t",function(){return _}),v.d(ee,"U",function(){return O}),v.d(ee,"J",function(){return M}),v.d(ee,"O",function(){return T}),v.d(ee,"p",function(){return n}),v.d(ee,"T",function(){return p}),v.d(ee,"q",function(){return a}),v.d(ee,"N",function(){return t}),v.d(ee,"M",function(){return A}),v.d(ee,"Q",function(){return l}),v.d(ee,"u",function(){return i}),v.d(ee,"x",function(){return c}),v.d(ee,"I",function(){return d}),v.d(ee,"f",function(){return f}),v.d(ee,"h",function(){return o}),v.d(ee,"g",function(){return u}),v.d(ee,"i",function(){return E}),v.d(ee,"G",function(){return R}),v.d(ee,"H",function(){return w}),v.d(ee,"r",function(){return P}),v.d(ee,"R",function(){return C}),v.d(ee,"d",function(){return b}),v.d(ee,"e",function(){return s}),v.d(ee,"E",function(){return h}),v.d(ee,"F",function(){return m}),v.d(ee,"j",function(){return x}),v.d(ee,"z",function(){return g}),v.d(ee,"K",function(){return U}),v.d(ee,"L",function(){return N}),v.d(ee,"m",function(){return H}),v.d(ee,"k",function(){return B}),v.d(ee,"A",function(){return K}),v.d(ee,"a",function(){return $}),v.d(ee,"n",function(){return te}),v.d(ee,"l",function(){return fe}),v.d(ee,"D",function(){return Ae}),v.d(ee,"B",function(){return ce}),v.d(ee,"b",function(){return ie}),v.d(ee,"S",function(){return ye}),v.d(ee,"o",function(){return le}),v.d(ee,"P",function(){return me}),v.d(ee,"w",function(){return se}),v.d(ee,"c",function(){return ge}),v.d(ee,"y",function(){return Me});function Z(he){return!he||typeof he!="string"?!0:he.trim().length===0}const Q=/{(\d+)}/g;function I(he,...Se){return Se.length===0?he:he.replace(Q,function(Ue,Ne){const ct=parseInt(Ne,10);return isNaN(ct)||ct<0||ct>=Se.length?Ue:Se[ct]})}function k(he){return he.replace(/[<>&]/g,function(Se){switch(Se){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return Se}})}function _(he){return he.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function O(he,Se=" "){const Ue=M(he,Se);return T(Ue,Se)}function M(he,Se){if(!he||!Se)return he;const Ue=Se.length;if(Ue===0||he.length===0)return he;let Ne=0;for(;he.indexOf(Se,Ne)===Ne;)Ne=Ne+Ue;return he.substring(Ne)}function T(he,Se){if(!he||!Se)return he;const Ue=Se.length,Ne=he.length;if(Ue===0||Ne===0)return he;let ct=Ne,ft=-1;for(;!(ft=he.lastIndexOf(Se,ct-1),ft===-1||ft+Ue!==ct);){if(ft===0)return"";ct=ft}return he.substring(0,ct)}function n(he){return he.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function p(he){return he.replace(/\*/g,"")}function a(he,Se,Ue={}){if(!he)throw new Error("Cannot create regex from empty string");Se||(he=_(he)),Ue.wholeWord&&(/\B/.test(he.charAt(0))||(he="\\b"+he),/\B/.test(he.charAt(he.length-1))||(he=he+"\\b"));let Ne="";return Ue.global&&(Ne+="g"),Ue.matchCase||(Ne+="i"),Ue.multiline&&(Ne+="m"),Ue.unicode&&(Ne+="u"),new RegExp(he,Ne)}function t(he){if(he.source==="^"||he.source==="^$"||he.source==="$"||he.source==="^\\s*$")return!1;const Se=he.exec("");return!!(Se&&he.lastIndex===0)}function A(he){return(he.global?"g":"")+(he.ignoreCase?"i":"")+(he.multiline?"m":"")+(he.unicode?"u":"")}function l(he){return he.split(/\r\n|\r|\n/)}function i(he){for(let Se=0,Ue=he.length;Se<Ue;Se++){const Ne=he.charCodeAt(Se);if(Ne!==32&&Ne!==9)return Se}return-1}function c(he,Se=0,Ue=he.length){for(let Ne=Se;Ne<Ue;Ne++){const ct=he.charCodeAt(Ne);if(ct!==32&&ct!==9)return he.substring(Se,Ne)}return he.substring(Se,Ue)}function d(he,Se=he.length-1){for(let Ue=Se;Ue>=0;Ue--){const Ne=he.charCodeAt(Ue);if(Ne!==32&&Ne!==9)return Ue}return-1}function f(he,Se){return he<Se?-1:he>Se?1:0}function o(he,Se,Ue=0,Ne=he.length,ct=0,ft=Se.length){for(;Ue<Ne&&ct<ft;Ue++,ct++){let Ut=he.charCodeAt(Ue),jt=Se.charCodeAt(ct);if(Ut<jt)return-1;if(Ut>jt)return 1}const Ot=Ne-Ue,dt=ft-ct;return Ot<dt?-1:Ot>dt?1:0}function u(he,Se){return E(he,Se,0,he.length,0,Se.length)}function E(he,Se,Ue=0,Ne=he.length,ct=0,ft=Se.length){for(;Ue<Ne&&ct<ft;Ue++,ct++){let Ut=he.charCodeAt(Ue),jt=Se.charCodeAt(ct);if(Ut===jt)continue;if(Ut>=128||jt>=128)return o(he.toLowerCase(),Se.toLowerCase(),Ue,Ne,ct,ft);R(Ut)&&(Ut-=32),R(jt)&&(jt-=32);const ze=Ut-jt;if(ze===0)continue;return ze}const Ot=Ne-Ue,dt=ft-ct;return Ot<dt?-1:Ot>dt?1:0}function R(he){return he>=97&&he<=122}function w(he){return he>=65&&he<=90}function P(he,Se){return he.length===Se.length&&E(he,Se)===0}function C(he,Se){const Ue=Se.length;return Se.length>he.length?!1:E(he,Se,0,Ue)===0}function b(he,Se){let Ue,Ne=Math.min(he.length,Se.length);for(Ue=0;Ue<Ne;Ue++)if(he.charCodeAt(Ue)!==Se.charCodeAt(Ue))return Ue;return Ne}function s(he,Se){let Ue,Ne=Math.min(he.length,Se.length);const ct=he.length-1,ft=Se.length-1;for(Ue=0;Ue<Ne;Ue++)if(he.charCodeAt(ct-Ue)!==Se.charCodeAt(ft-Ue))return Ue;return Ne}function h(he){return 55296<=he&&he<=56319}function m(he){return 56320<=he&&he<=57343}function x(he,Se){return(he-55296<<10)+(Se-56320)+65536}function g(he,Se,Ue){const Ne=he.charCodeAt(Ue);if(h(Ne)&&Ue+1<Se){const ct=he.charCodeAt(Ue+1);if(m(ct))return x(Ne,ct)}return Ne}function y(he,Se){const Ue=he.charCodeAt(Se-1);if(m(Ue)&&Se>1){const Ne=he.charCodeAt(Se-2);if(h(Ne))return x(Ne,Ue)}return Ue}function U(he,Se){const Ue=ae.getInstance(),Ne=Se,ct=he.length,ft=g(he,ct,Se);Se+=ft>=65536?2:1;let Ot=Ue.getGraphemeBreakType(ft);for(;Se<ct;){const dt=g(he,ct,Se),Ut=Ue.getGraphemeBreakType(dt);if(ge(Ot,Ut))break;Se+=dt>=65536?2:1,Ot=Ut}return Se-Ne}function N(he,Se){const Ue=ae.getInstance(),Ne=Se,ct=y(he,Se);Se-=ct>=65536?2:1;let ft=Ue.getGraphemeBreakType(ct);for(;Se>0;){const Ot=y(he,Se),dt=Ue.getGraphemeBreakType(Ot);if(ge(dt,ft))break;Se-=Ot>=65536?2:1,ft=dt}return Ne-Se}const S=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function H(he){return S.test(he)}const F=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function B(he){return F.test(he)}const z=/^[\t\n\r\x20-\x7E]*$/;function K(he){return z.test(he)}const $=/[\u2028\u2029]/;function te(he){return $.test(he)}function fe(he){for(let Se=0,Ue=he.length;Se<Ue;Se++)if(Ae(he.charCodeAt(Se)))return!0;return!1}function Ae(he){return he=+he,he>=11904&&he<=55215||he>=63744&&he<=64255||he>=65281&&he<=65374}function ce(he){return he>=127462&&he<=127487||he===8986||he===8987||he===9200||he===9203||he>=9728&&he<=10175||he===11088||he===11093||he>=127744&&he<=128591||he>=128640&&he<=128764||he>=128992&&he<=129003||he>=129280&&he<=129535||he>=129648&&he<=129750}const ie=String.fromCharCode(65279);function ye(he){return!!(he&&he.length>0&&he.charCodeAt(0)===65279)}function le(he,Se=!1){return he?(Se&&(he=he.replace(/\\./g,"")),he.toLowerCase()!==he):!1}function me(he){const Se=90-65+1;return he=he%(2*Se),he<Se?String.fromCharCode(97+he):String.fromCharCode(65+he-Se)}function se(he){const Se=ae.getInstance();return Se.getGraphemeBreakType(he)}function ge(he,Se){return he===0?Se!==5&&Se!==7:he===2&&Se===3?!1:he===4||he===2||he===3||(Se===4||Se===2||Se===3)?!0:he===8&&(Se===8||Se===9||Se===11||Se===12)||((he===11||he===9)&&(Se===9||Se===10)||((he===12||he===10)&&Se===10||(Se===5||Se===13||(Se===7||(he===1||he===13&&Se===14)))))?!1:!(he===6&&Se===6)}class ae{constructor(){this._data=pe()}static getInstance(){return ae._INSTANCE||(ae._INSTANCE=new ae),ae._INSTANCE}getGraphemeBreakType(he){if(he<32)return he===10?3:he===13?2:4;if(he<127)return 0;const Se=this._data,Ue=Se.length/3;let Ne=1;for(;Ne<=Ue;)if(he<Se[3*Ne])Ne=2*Ne;else if(he>Se[3*Ne+1])Ne=2*Ne+1;else return Se[3*Ne+2];return 0}}ae._INSTANCE=null;function pe(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function Me(he,Se){if(he===0)return 0;const Ue=xe(he,Se);if(Ue!==void 0)return Ue;const Ne=y(Se,he);return he-=Ke(Ne),he}function xe(he,Se){let Ue=y(Se,he);for(he-=Ke(Ue);et(Ue)||Ue===65039||Ue===8419;){if(he===0)return;Ue=y(Se,he),he-=Ke(Ue)}if(!ce(Ue))return;if(he>=0){const Ne=y(Se,he);Ne===8205&&(he-=Ke(Ne))}return he}function Ke(he){return he>=65536?2:1}function et(he){return 127995<=he&&he<=127999}},NC18:function(Be,ee,v){var Z=v("y+Vt"),Q=v("IMiH"),I=v("7oTu"),k=Math.sqrt,_=Math.sin,O=Math.cos,M=Math.PI,T=function(o){return Math.sqrt(o[0]*o[0]+o[1]*o[1])},n=function(o,u){return(o[0]*u[0]+o[1]*u[1])/(T(o)*T(u))},p=function(o,u){return(o[0]*u[1]<o[1]*u[0]?-1:1)*Math.acos(n(o,u))};function a(o,u,E,R,w,P,C,b,s,h,m){var x=s*(M/180),g=O(x)*(o-E)/2+_(x)*(u-R)/2,y=-1*_(x)*(o-E)/2+O(x)*(u-R)/2,U=g*g/(C*C)+y*y/(b*b);U>1&&(C*=k(U),b*=k(U));var N=(w===P?-1:1)*k((C*C*(b*b)-C*C*(y*y)-b*b*(g*g))/(C*C*(y*y)+b*b*(g*g)))||0,S=N*C*y/b,H=N*-b*g/C,F=(o+E)/2+O(x)*S-_(x)*H,B=(u+R)/2+_(x)*S+O(x)*H,z=p([1,0],[(g-S)/C,(y-H)/b]),K=[(g-S)/C,(y-H)/b],$=[(-1*g-S)/C,(-1*y-H)/b],te=p(K,$);n(K,$)<=-1&&(te=M),n(K,$)>=1&&(te=0),P===0&&te>0&&(te=te-2*M),P===1&&te<0&&(te=te+2*M),m.addData(h,F,B,C,b,z,te,x,P)}var t=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,A=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function l(o){if(!o)return new Q;for(var u=0,E=0,R=u,w=E,P,C=new Q,b=Q.CMD,s=o.match(t),h=0;h<s.length;h++){for(var m=s[h],x=m.charAt(0),g,y=m.match(A)||[],U=y.length,N=0;N<U;N++)y[N]=parseFloat(y[N]);for(var S=0;S<U;){var H,F,B,z,K,$,te,fe=u,Ae=E;switch(x){case"l":u+=y[S++],E+=y[S++],g=b.L,C.addData(g,u,E);break;case"L":u=y[S++],E=y[S++],g=b.L,C.addData(g,u,E);break;case"m":u+=y[S++],E+=y[S++],g=b.M,C.addData(g,u,E),R=u,w=E,x="l";break;case"M":u=y[S++],E=y[S++],g=b.M,C.addData(g,u,E),R=u,w=E,x="L";break;case"h":u+=y[S++],g=b.L,C.addData(g,u,E);break;case"H":u=y[S++],g=b.L,C.addData(g,u,E);break;case"v":E+=y[S++],g=b.L,C.addData(g,u,E);break;case"V":E=y[S++],g=b.L,C.addData(g,u,E);break;case"C":g=b.C,C.addData(g,y[S++],y[S++],y[S++],y[S++],y[S++],y[S++]),u=y[S-2],E=y[S-1];break;case"c":g=b.C,C.addData(g,y[S++]+u,y[S++]+E,y[S++]+u,y[S++]+E,y[S++]+u,y[S++]+E),u+=y[S-2],E+=y[S-1];break;case"S":H=u,F=E;var ce=C.len(),ie=C.data;P===b.C&&(H+=u-ie[ce-4],F+=E-ie[ce-3]),g=b.C,fe=y[S++],Ae=y[S++],u=y[S++],E=y[S++],C.addData(g,H,F,fe,Ae,u,E);break;case"s":H=u,F=E;var ce=C.len(),ie=C.data;P===b.C&&(H+=u-ie[ce-4],F+=E-ie[ce-3]),g=b.C,fe=u+y[S++],Ae=E+y[S++],u+=y[S++],E+=y[S++],C.addData(g,H,F,fe,Ae,u,E);break;case"Q":fe=y[S++],Ae=y[S++],u=y[S++],E=y[S++],g=b.Q,C.addData(g,fe,Ae,u,E);break;case"q":fe=y[S++]+u,Ae=y[S++]+E,u+=y[S++],E+=y[S++],g=b.Q,C.addData(g,fe,Ae,u,E);break;case"T":H=u,F=E;var ce=C.len(),ie=C.data;P===b.Q&&(H+=u-ie[ce-4],F+=E-ie[ce-3]),u=y[S++],E=y[S++],g=b.Q,C.addData(g,H,F,u,E);break;case"t":H=u,F=E;var ce=C.len(),ie=C.data;P===b.Q&&(H+=u-ie[ce-4],F+=E-ie[ce-3]),u+=y[S++],E+=y[S++],g=b.Q,C.addData(g,H,F,u,E);break;case"A":B=y[S++],z=y[S++],K=y[S++],$=y[S++],te=y[S++],fe=u,Ae=E,u=y[S++],E=y[S++],g=b.A,a(fe,Ae,u,E,$,te,B,z,K,g,C);break;case"a":B=y[S++],z=y[S++],K=y[S++],$=y[S++],te=y[S++],fe=u,Ae=E,u+=y[S++],E+=y[S++],g=b.A,a(fe,Ae,u,E,$,te,B,z,K,g,C);break}}(x==="z"||x==="Z")&&(g=b.Z,C.addData(g),u=R,E=w),P=g}return C.toStatic(),C}function i(o,u){var E=l(o);return u=u||{},u.buildPath=function(R){if(R.setData){R.setData(E.data);var w=R.getContext();w&&R.rebuildPath(w)}else{var w=R;E.rebuildPath(w)}},u.applyTransform=function(R){I(E,R),this.dirty(!0)},u}function c(o,u){return new Z(i(o,u))}function d(o,u){return Z.extend(i(o,u))}function f(o,u){for(var E=[],R=o.length,w=0;w<R;w++){var P=o[w];P.path||P.createPathProxy(),P.__dirtyPath&&P.buildPath(P.path,P.shape,!0),E.push(P.path)}var C=new Z(u);return C.createPathProxy(),C.buildPath=function(b){b.appendPath(E);var s=b.getContext();s&&b.rebuildPath(s)},C}ee.createFromString=c,ee.extendFromString=d,ee.mergePath=f},NLgs:function(Be,ee,v){"use strict";v.d(ee,"e",function(){return d}),v.d(ee,"f",function(){return f}),v.d(ee,"d",function(){return u}),v.d(ee,"c",function(){return E}),v.d(ee,"a",function(){return R}),v.d(ee,"b",function(){return w});var Z=v("miYZ"),Q=v("tsqr"),I=v("9og8"),k=v("2qtc"),_=v("kLXV"),O=v("WmNS"),M=v.n(O),T=v("q1tI"),n=v.n(T),p=v("9kvl"),a=v("xKgJ"),t=v("1vsH"),A=v("RCxd"),l=v("yTi+"),i=v.n(l),c=v("m3rI"),d=function(C){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!!(f(C)&&o(b))},f=function(C){return Object(a.p)()?!0:(C({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},o=function(){var C,b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,s=Object(p.c)()._store.getState(),h=s.user;return(C=h.userInfo)!==null&&C!==void 0&&C.profile_completed?!0:(_.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:b?"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801":"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){p.d.push("/account/profile/edit")}}),!1)},u=function(){var C,b=Object(p.c)()._store.getState(),s=b.user;return(C=s.userInfo)!==null&&C!==void 0&&C.professional_certification?!0:(_.a.confirm({title:"\u63D0\u793A",centered:!0,content:n.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(t.S)("/account/certification")}}),!1)},E=function(){var C;if(Object(a.a)())return!0;var b=Object(p.c)()._store.getState(),s=b.user,h=b.globalSetting;return _.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:n.a.createElement("div",{className:"tc",style:{marginLeft:-38}},n.a.createElement("p",null,"\u626B\u7801\u6DFB\u52A0\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),n.a.createElement("img",{src:c.a.IMG_SERVER+(h==null||((C=h.setting)===null||C===void 0)?void 0:C.authority_qrcode_url),width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1},R=function(C,b){var s;if(C)return!0;var h=Object(p.c)()._store.getState(),m=h.user,x=h.globalSetting;return _.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:n.a.createElement("div",null,n.a.createElement("p",null,b||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),n.a.createElement("div",{style:{marginLeft:"110px"}},n.a.createElement("img",{src:c.a.IMG_SERVER+(x==null||((s=x.setting)===null||s===void 0)?void 0:s.authority_qrcode_url),width:200}),n.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(t.S)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1},w=function(C){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=Object(p.c)()._store.getState(),h=s.shixunsDetail.detail;return(h==null?void 0:h.public)===2||(h==null?void 0:h.public)===1||(h==null?void 0:h.shixun_status)===3?(_.a.info({centered:!0,icon:n.a.createElement(A.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:n.a.createElement("div",{className:"tc",style:{marginLeft:-38}},n.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},n.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(h==null?void 0:h.public)===2?"\u5DF2\u516C\u5F00":(h==null?void 0:h.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",b,"\u3002"),n.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),n.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:i.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(h==null?void 0:h.shixun_status)===2?(_.a.confirm({centered:!0,icon:n.a.createElement(A.a,null),title:"\u63D0\u793A",content:n.a.createElement("div",null,n.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",b,"\u3002"),n.a.createElement("br",null),n.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){_.a.confirm({width:440,centered:!0,icon:n.a.createElement(A.a,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){var x=Object(I.a)(M.a.mark(function y(){var U;return M.a.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.next=2,C({type:"shixunsDetail/cancelRelease",payload:{id:h==null?void 0:h.identifier}});case 2:U=S.sent,U.status!==401&&(Q.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),C({type:"shixunsDetail/getShixunsDetail",payload:{id:h==null?void 0:h.identifier}}),C({type:"practiceSetting/getCommonData",payload:{id:h==null?void 0:h.identifier}}));case 4:case"end":return S.stop()}},y)}));function g(){return x.apply(this,arguments)}return g}()})}}),!0):!1}},Nddv:function(Be,ee,v){Be.exports=v.p+"static/sz.ca759164.svg"},Nmxd:function(Be,ee){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAF4ElEQVRoQ91aW2wUVRj+/rPbSivURIgKjZcHjUYTgZ0lthgv3V0LSqB9IAQeNNEIaKKwZbcFnuQJoZ1piyYawJjIiwZDwiVBaHd28QItaWeLD4KJPgimiA+YCAZj6Z7fzPZiu7e57WriJE0f5v++//tm/j3nn3MOoQyXcmJ/LdfeCBOjEUA9EdUzUA9g0ST9VQJGmXkU5n/CAN2q043Vm295TU9uCRS9MwCiFWBqAmD++R1yjQNIgTgF5tNGuCPtEJ8Nd2xgWarzPil9UbBsA1G1m6R5GOYxkOgRItM71NRxzQmnIwMBvStKoCiAB50kcRB7mcG96XB7r12MLQNPJXrvzdD4QQZW2yX2EkfACR/7N56PRH+14rE0sDSpLRaM4wA/YEVW3vt0RRLWjIRi35biLWkgmOhaz0SflleYMzZi3jAcaf+sGKqoAUVX3wbwnrN0FYveYoTj7xdiL2ggqKsvMnCyYnJcEBPw0nA4/kUuNM9AINX9MMnMIEDzXeSpIISvs/A1pJu2/TgzSZ4BRVf7ALxQQSVeqPuNcLy5qIHJcb7HS4ZKYxncNnOemH4DyqmehaiW58D8UKVFeOIn+gljYrmxsu2XWa2Eomt7AN7uidwd+CKBPy8EZdA7hSlprxGO7Zg2EPxSW8q35WDZehv7Ri4KEuuGQtu+y4UoSe0DML9ZkIp5jKpEw/BzsZFsCSkpNQYJ1X7eskQWF6+rbwD4sGQWgbjRFNcmDCS0oyBuKYsseyRFxS/TteWSZT+IaktSMR0zIrFWajzcXTM2X95w0c/bk5ofVVT8k6e77vT7qY+A5TbIx6uvizoKJNUVxDhlA1COkKLis5Wgq2bZmOVj62LCSlIS2m4Q77SF8BZkJd667nPzM71LSqLrExC94k2bJbqk+Im65xQIzr7wmA9RUFcTDIQtJWQDaB3A5lT+ur34bFRJ8WbdV1VRAowGB5wTagCdFF29BOAxSzAjbkTiWrZWU+oCSJgTScwCV1K8m7rPyfe9acAcgeaVFsIHjXD7ptyYxw/vqq5ZMHcHGOZvaE7OfTvindf97CQ3bRkgorXDodiRUiYDuhYlZAeDe6zKxuTJ1j34awDC8u0XD7hht4RuwkctxvOxlFWyYFJ7jUDnC7UHU1iz7qurxBlmDlrxlb5Pl5z8iC8LIVuHmjoueEtqjvddBwDa6JWHCQlnwyjjAu7wtxjPRK+4Ta7Y6XPskpvDqJLUdoMdTWTJOX9kWs+2bL9pN89U3GTdn3WKKxpvTmRuWglmPpKOtK91IiQ73vvJFL/YCa5UbLaVaDzXXTP2p4tmjvGREYnbruOgrn7MwKvlEg9gvLpG1E2000ntKNh5O82EznQobvkVF9S732LIgus6rg0RHTNCsdYJA7oWB7jLJdlOIxzfUwwbTHY+zSy+ccldAkbtRjimThroCYAzA46bqUl6JmxOh+IH8mbq1K65NXLuIIAnymqAMQbyNRrhtvT0qkQgqe4lRof7RHKdEe6Y9XEe0NVDBLzsnrMwcmbp/rOs8lXPQtzODHhY+/9LEq0aCcV0M22wX21jge5yiwdwGVW+RuPZnGUVM9FkP+NlYesaIFcJ8s+TLM9UQDwY1JYOx6Y3QPLXRpNqPzEiHpJfBOAD8KgHjoJQs3VIh+Kzlj3zDCzp63zEJ8QgCHeXW4AnPsZvGSkbLjR3/DCT5/+3vD7lTkl0bQHRPk9PrVxg5q1GpL3gZkvpLaZU93qW8r/dYhJiw3DTNudbTFMPb1lf5xIpxHEQ7i/XA7XFw/hZSLlmqLn094flLqWZzNzcZikO/JvbrCTkJjub3rYMZJ8YgwJJbSuBK7zRTb3pUGwfCGznTdk3MMm2tG/vIvL7tpJE1G3vlCeMMcYCvTye2TfSvP2qHeFTMY4NTI9Sek8AJFewlCGi7IEPc/JycmWYOUVCJMHitNmYOQF7NjAzmTK8v5Z/N4/biEYI1BN46riNeeTGvEazx21Ao5DmcRs5QHfV6UbQ+3GbvwHH7EQQahyMxwAAAABJRU5ErkJggg=="},NohK:function(Be,ee,v){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.default=void 0;var Z=function(I){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,_=null;return function(){for(var O=this,M=arguments.length,T=new Array(M),n=0;n<M;n++)T[n]=arguments[n];clearTimeout(_),_=setTimeout(function(){I.apply(O,T)},k)}};ee.default=Z},NvD2:function(Be,ee,v){"use strict";v.d(ee,"a",function(){return O});var Z=v("Kwbf");function Q(M,T){var n=new Set;return M.forEach(function(p){T.has(p)||n.add(p)}),n}function I(M){var T=M||{},n=T.disabled,p=T.disableCheckbox,a=T.checkable;return!!(n||p)||a===!1}function k(M,T,n,p){for(var a=new Set(M),t=new Set,A=0;A<=n;A+=1){var l=T.get(A)||new Set;l.forEach(function(f){var o=f.key,u=f.node,E=f.children,R=E===void 0?[]:E;a.has(o)&&!p(u)&&R.filter(function(w){return!p(w.node)}).forEach(function(w){a.add(w.key)})})}for(var i=new Set,c=n;c>=0;c-=1){var d=T.get(c)||new Set;d.forEach(function(f){var o=f.parent,u=f.node;if(p(u)||!f.parent||i.has(f.parent.key))return;if(p(f.parent.node)){i.add(o.key);return}var E=!0,R=!1;(o.children||[]).filter(function(w){return!p(w.node)}).forEach(function(w){var P=w.key,C=a.has(P);E&&!C&&(E=!1),!R&&(C||t.has(P))&&(R=!0)}),E&&a.add(o.key),R&&t.add(o.key),i.add(o.key)})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(Q(t,a))}}function _(M,T,n,p,a){for(var t=new Set(M),A=new Set(T),l=0;l<=p;l+=1){var i=n.get(l)||new Set;i.forEach(function(o){var u=o.key,E=o.node,R=o.children,w=R===void 0?[]:R;!t.has(u)&&!A.has(u)&&!a(E)&&w.filter(function(P){return!a(P.node)}).forEach(function(P){t.delete(P.key)})})}A=new Set;for(var c=new Set,d=p;d>=0;d-=1){var f=n.get(d)||new Set;f.forEach(function(o){var u=o.parent,E=o.node;if(a(E)||!o.parent||c.has(o.parent.key))return;if(a(o.parent.node)){c.add(u.key);return}var R=!0,w=!1;(u.children||[]).filter(function(P){return!a(P.node)}).forEach(function(P){var C=P.key,b=t.has(C);R&&!b&&(R=!1),!w&&(b||A.has(C))&&(w=!0)}),R||t.delete(u.key),w&&A.add(u.key),c.add(u.key)})}return{checkedKeys:Array.from(t),halfCheckedKeys:Array.from(Q(A,t))}}function O(M,T,n,p){var a=[],t;p?t=p:t=I;var A=new Set(M.filter(function(d){var f=!!n[d];return f||a.push(d),f})),l=new Map,i=0;Object.keys(n).forEach(function(d){var f=n[d],o=f.level,u=l.get(o);u||(u=new Set,l.set(o,u)),u.add(f),i=Math.max(i,o)}),Object(Z.a)(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var c;return T===!0?c=k(A,l,i,t):c=_(A,T.halfCheckedKeys,l,i,t),c}},OC45:function(Be,ee,v){Be.exports={applyPublicContainer:"applyPublicContainer___3sK8L",applyPublicContent:"applyPublicContent___3Hye1",spin:"spin___3-Uh7",tips:"tips___3d-sF",action:"action___3Uny2"}},OLES:function(Be,ee,v){"use strict";var Z=v("U8pU"),Q=v("VTBJ"),I=v("Ff2n"),k=v("q1tI"),_=v("uciX"),O=v("7ixt"),M=function(A){var l=A.overlay,i=A.prefixCls,c=A.id,d=A.overlayInnerStyle;return k.createElement("div",{className:"".concat(i,"-inner"),id:c,role:"tooltip",style:d},typeof l=="function"?l():l)},T=M,n=function(A,l){var i=A.overlayClassName,c=A.trigger,d=c===void 0?["hover"]:c,f=A.mouseEnterDelay,o=f===void 0?0:f,u=A.mouseLeaveDelay,E=u===void 0?.1:u,R=A.overlayStyle,w=A.prefixCls,P=w===void 0?"rc-tooltip":w,C=A.children,b=A.onVisibleChange,s=A.afterVisibleChange,h=A.transitionName,m=A.animation,x=A.placement,g=x===void 0?"right":x,y=A.align,U=y===void 0?{}:y,N=A.destroyTooltipOnHide,S=N===void 0?!1:N,H=A.defaultVisible,F=A.getTooltipContainer,B=A.overlayInnerStyle,z=Object(I.a)(A,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),K=Object(k.useRef)(null);Object(k.useImperativeHandle)(l,function(){return K.current});var $=Object(Q.a)({},z);"visible"in A&&($.popupVisible=A.visible);var te=function(){var ye=A.arrowContent,le=ye===void 0?null:ye,me=A.overlay,se=A.id;return[k.createElement("div",{className:"".concat(P,"-arrow"),key:"arrow"},le),k.createElement(T,{key:"content",prefixCls:P,id:se,overlay:me,overlayInnerStyle:B})]},fe=!1,Ae=!1;if(typeof S=="boolean")fe=S;else if(S&&Object(Z.a)(S)==="object"){var ce=S.keepParent;fe=ce===!0,Ae=ce===!1}return k.createElement(_.a,Object.assign({popupClassName:i,prefixCls:P,popup:te,action:d,builtinPlacements:O.a,popupPlacement:g,ref:K,popupAlign:U,getPopupContainer:F,onPopupVisibleChange:b,afterPopupVisibleChange:s,popupTransitionName:h,popupAnimation:m,defaultPopupVisible:H,destroyPopupOnHide:fe,autoDestroy:Ae,mouseLeaveDelay:E,popupStyle:R,mouseEnterDelay:o},$),C)},p=Object(k.forwardRef)(n),a=ee.a=p},OS9S:function(Be,ee,v){var Z=v("bYtY"),Q=Z.inherits,I=v("Gev7"),k=v("mFDi");function _(T){I.call(this,T),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}_.prototype.incremental=!0,_.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},_.prototype.addDisplayable=function(T,n){n?this._temporaryDisplayables.push(T):this._displayables.push(T),this.dirty()},_.prototype.addDisplayables=function(T,n){n=n||!1;for(var p=0;p<T.length;p++)this.addDisplayable(T[p],n)},_.prototype.eachPendingDisplayable=function(T){for(var n=this._cursor;n<this._displayables.length;n++)T&&T(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)T&&T(this._temporaryDisplayables[n])},_.prototype.update=function(){this.updateTransform();for(var T=this._cursor;T<this._displayables.length;T++){var n=this._displayables[T];n.parent=this,n.update(),n.parent=null}for(var T=0;T<this._temporaryDisplayables.length;T++){var n=this._temporaryDisplayables[T];n.parent=this,n.update(),n.parent=null}},_.prototype.brush=function(T,n){for(var p=this._cursor;p<this._displayables.length;p++){var a=this._displayables[p];a.beforeBrush&&a.beforeBrush(T),a.brush(T,p===this._cursor?null:this._displayables[p-1]),a.afterBrush&&a.afterBrush(T)}this._cursor=p;for(var p=0;p<this._temporaryDisplayables.length;p++){var a=this._temporaryDisplayables[p];a.beforeBrush&&a.beforeBrush(T),a.brush(T,p===0?null:this._temporaryDisplayables[p-1]),a.afterBrush&&a.afterBrush(T)}this._temporaryDisplayables=[],this.notClear=!0};var O=[];_.prototype.getBoundingRect=function(){if(!this._rect){for(var T=new k(Infinity,Infinity,-Infinity,-Infinity),n=0;n<this._displayables.length;n++){var p=this._displayables[n],a=p.getBoundingRect().clone();p.needLocalTransform()&&a.applyTransform(p.getLocalTransform(O)),T.union(a)}this._rect=T}return this._rect},_.prototype.contain=function(T,n){var p=this.transformCoordToLocal(T,n),a=this.getBoundingRect();if(a.contain(p[0],p[1]))for(var t=0;t<this._displayables.length;t++){var A=this._displayables[t];if(A.contain(T,n))return!0}return!1},Q(_,I);var M=_;Be.exports=M},OZM5:function(Be,ee,v){"use strict";v.d(ee,"b",function(){return p}),v.d(ee,"a",function(){return a}),v.d(ee,"k",function(){return t}),v.d(ee,"h",function(){return A}),v.d(ee,"i",function(){return l}),v.d(ee,"g",function(){return i}),v.d(ee,"c",function(){return c}),v.d(ee,"d",function(){return d}),v.d(ee,"j",function(){return u}),v.d(ee,"e",function(){return E}),v.d(ee,"f",function(){return R});var Z=v("KQm4"),Q=v("U8pU"),I=v("Ff2n"),k=v("q1tI"),_=v.n(k),O=v("Kwbf"),M=v("WaYH"),T=.25,n=2;function p(w,P){var C=w.slice(),b=C.indexOf(P);return b>=0&&C.splice(b,1),C}function a(w,P){var C=w.slice();return C.indexOf(P)===-1&&C.push(P),C}function t(w){return w.split("-")}function A(w,P){return"".concat(w,"-").concat(P)}function l(w){return w&&w.type&&w.type.isTreeNode}function i(w,P){var C=[w],b=P[w];function s(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];h.forEach(function(m){var x=m.key,g=m.children;C.push(x),s(g)})}return s(b.children),C}function c(w,P){var C=w.clientY,b=P.selectHandle.getBoundingClientRect(),s=b.top,h=b.bottom,m=b.height,x=Math.max(m*T,n);return C<=s+x?-1:C>=h-x?1:0}function d(w,P){if(!w)return;var C=P.multiple;return C?w.slice():w.length?[w[0]]:w}var f=function(P){return P};function o(w,P){if(!w)return[];var C=P||{},b=C.processProps,s=b===void 0?f:b,h=Array.isArray(w)?w:[w];return h.map(function(m){var x=m.children,g=Object(I.a)(m,["children"]),y=o(x,P);return _.a.createElement(M.a,Object.assign({},s(g)),y)})}function u(w){if(!w)return null;var P;if(Array.isArray(w))P={checkedKeys:w,halfCheckedKeys:void 0};else if(Object(Q.a)(w)==="object")P={checkedKeys:w.checked||void 0,halfCheckedKeys:w.halfChecked||void 0};else return Object(O.a)(!1,"`checkedKeys` is not an array or an object"),null;return P}function E(w,P){var C=new Set;function b(s){if(C.has(s))return;var h=P[s];if(!h)return;C.add(s);var m=h.parent,x=h.node;if(x.disabled)return;m&&b(m.key)}return(w||[]).forEach(function(s){b(s)}),Object(Z.a)(C)}function R(w){var P={};return Object.keys(w).forEach(function(C){(C.startsWith("data-")||C.startsWith("aria-"))&&(P[C]=w[C])}),P}},Ohmc:function(Be,ee,v){Be.exports=v.p+"static/certificate.fc32dc1b.jpg"},OljG:function(Be,ee,v){Be.exports=v.p+"static/banner.4c45dd73.png"},Ot1p:function(Be,ee,v){"use strict";var Z=v("2qtc"),Q=v("kLXV"),I=v("rAM+"),k=v("miYZ"),_=v("tsqr"),O=v("9og8"),M=v("tJVT"),T=v("jrin"),n=v("WmNS"),p=v.n(n),a=v("q1tI"),t=v.n(a),A=v("VrN/"),l=v.n(A),i=v("bdgK"),c=v("p77/"),d=v("Bd2K"),f=v("ELLl"),o=v("19Vz"),u=v("lZu9"),E=v("+NIl"),R=v("kSUc"),w=v("9Bee"),P=function(Xe){var gt=Xe.value,Lt=gt===void 0?"":gt,en=Xe.className,Zt=Xe.showTextOnly,xt=Xe.showLines,Ct=Xe.style,mt=Ct===void 0?{}:Ct,Je=Object(a.useMemo)(function(){return""},[Lt]);return t.a.createElement(t.a.Fragment,null,t.a.createElement("div",{dangerouslySetInnerHTML:{__html:Je}}))},C=v("0Owb"),b=v("dejd"),s=v("C+DQ"),h=v("1vsH"),m=v("m3rI"),x=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function g(Xe){var gt=Xe.onActionCallback,Lt=Xe.title,en=Xe.icon,Zt=Xe.actionName,xt=Xe.className,Ct=xt===void 0?"":xt,mt=Xe.children;function Je(){gt(Zt)}return t.a.createElement("a",{title:Lt,className:Ct,onClick:Je},t.a.createElement("i",{className:"md-iconfont ".concat(en)}),mt)}var y=function(Xe){var gt=Xe.watch,Lt=Xe.showNullButton,en=Xe.onActionCallback,Zt=Xe.fullScreen,xt=Xe.insertTemp,Ct=Xe.hidetoolBar,mt=Xe.uuid,Je=Xe.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(h.F)("_educoder_session_login"),"&_educoder_session=").concat(Object(h.F)("_educoder_session"),"&key=").concat(mt,"&api=").concat(encodeURIComponent(m.a.PROXY_SERVER)));var Qe=[].concat(x,[{title:"".concat(gt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(gt?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return t.a.createElement("ul",{className:"markdown-toolbar-container"},!Ct&&Qe.map(function(Oe,je){return t.a.createElement("li",{key:je},Oe.actionName?t.a.createElement(g,Object(C.a)({},Oe,{onActionCallback:en})):t.a.createElement("span",{className:"v-line"}))}),Lt?t.a.createElement("li",null,t.a.createElement(g,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:en},t.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,xt&&t.a.createElement("li",null,t.a.createElement(g,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(xt),onActionCallback:en},t.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),t.a.createElement("li",{className:"btn-full-screen"},t.a.createElement(g,{icon:"".concat(Zt?"icon-shrink":"icon-enlarge"),title:Zt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:en})))},U=v("M8RZ"),N=v("+L6B"),S=v("2/Rp"),H=v("y8nQ"),F=v("Vl3Y"),B=v("5NDa"),z=v("5rEg"),K={labelCol:{span:4},wrapperCol:{span:20}},$=function(Xe){var gt=Xe.callback,Lt=Xe.onCancel;function en(Zt){gt(Zt)}return t.a.createElement(F.a,Object(C.a)({},K,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:en}),t.a.createElement(F.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},t.a.createElement(z.a,null)),t.a.createElement(F.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},t.a.createElement(z.a,null)),t.a.createElement("div",{className:"flex-container flex-end"},t.a.createElement(S.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),t.a.createElement(S.a,{type:"ghost",onClick:Lt},"\u53D6\u6D88")))},te=v("7ahc"),fe=v("HmJG"),Ae=v("BjJ7"),ce=F.a.useForm,ie={width:280,marginRight:10},ye={labelCol:{span:5},wrapperCol:{span:19}},le=function(Xe){var gt=Xe.callback,Lt=Xe.onCancel,en=ce(),Zt=Object(M.a)(en,1),xt=Zt[0];function Ct(Qe){gt(Qe)}function mt(Qe,Oe){if(Qe.status===-1){_.b.error(Qe.message);return}xt.setFieldsValue({src:"/api/attachments/".concat(Qe.id),type:Oe.type})}function Je(Qe){var Oe=Qe.target.files[0];se(Oe,mt)}return t.a.createElement(F.a,Object(C.a)({form:xt},ye,{className:"upload-image-panel",onFinish:Ct}),t.a.createElement(F.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},t.a.createElement("div",{className:"flex-container"},t.a.createElement(F.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},t.a.createElement(z.a,{style:ie})),t.a.createElement(me,{onFileChange:Je}))),t.a.createElement(F.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},t.a.createElement(z.a,{style:{width:264}})),t.a.createElement(F.a.Item,{style:{textAlign:"right"}},t.a.createElement(S.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),t.a.createElement(S.a,{type:"ghost",onClick:Lt},"\u53D6\u6D88")))};function me(Xe){var gt=Xe.onFileChange;return t.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",t.a.createElement("input",{type:"file",onChange:gt}))}function se(Xe,gt){if(!Xe)throw new String("\u6CA1\u6709\u6587\u4EF6");var Lt=new FormData;Lt.append("editormd-image-file",Xe),Lt.append("file_param_name","editormd-image-file"),Lt.append("byxhr","true");var en=new window.XMLHttpRequest;en.withCredentials=!0,en.addEventListener("load",function(Zt){gt(JSON.parse(Zt.target.responseText),Xe)},!1),en.addEventListener("error",function(Zt){console.error(Zt)},!1),en.open("POST","".concat(Ae.a,"/api/attachments.json")),en.send(Lt)}var ge=v("giR+"),ae=v("fyUT"),pe=v("7Kak"),Me=v("9yH6"),xe=Me.a.Group,Ke={margin:"0 8px"},et=function(Xe){var gt=Xe.callback,Lt=Xe.onCancel;function en(Zt){gt(Zt)}return t.a.createElement(F.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:en},t.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},t.a.createElement("span",{style:Ke},"\u5355\u5143\u683C\u6570\uFF1A"),t.a.createElement("span",{style:Ke},"\u884C\u6570"),t.a.createElement(F.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},t.a.createElement(ae.a,null)),t.a.createElement("span",{style:Ke},"\u5217\u6570"),t.a.createElement(F.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},t.a.createElement(ae.a,null))),t.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},t.a.createElement("span",{style:Ke},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),t.a.createElement(F.a.Item,{name:"align"},t.a.createElement(xe,null,t.a.createElement(Me.a,{value:"default"},t.a.createElement("i",{className:"fa fa-align-justify"})),t.a.createElement(Me.a,{value:"left"},t.a.createElement("i",{className:"fa fa-align-left"})),t.a.createElement(Me.a,{value:"center"},t.a.createElement("i",{className:"fa fa-align-center"})),t.a.createElement(Me.a,{value:"right"},t.a.createElement("i",{className:"fa fa-align-right"}))))),t.a.createElement("div",{className:"flex-container flex-end"},t.a.createElement(S.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),t.a.createElement(S.a,{type:"ghost",onClick:Lt},"\u53D6\u6D88")))},he=v("ErOA"),Se=v("7Cbv"),Ue="link",Ne="upload-image",ct="code-block",ft="add-table",Ot="------------",dt={default:Ot,left:":".concat(Ot),center:":".concat(Ot,":"),right:"".concat(Ot,":")},Ut=v("9VGf"),jt,ze;function Ve(){}var Et=0,Rt=1e4,ut="\u2581",vt=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function Ze(Xe){return/^\d+$/.test(Xe)?"".concat(Xe,"px"):Xe}var ke=navigator.platform.toUpperCase().indexOf("MAC")>=0,He=ke?"Cmd":"Ctrl",we=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],Le=(jt={},Object(T.a)(jt,He+"-B","bold"),Object(T.a)(jt,He+"-I","italic"),jt),Pe=(ze={},Object(T.a)(ze,Ue,"\u6DFB\u52A0\u94FE\u63A5"),Object(T.a)(ze,ct,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(T.a)(ze,Ne,"\u6DFB\u52A0\u6587\u4EF6"),Object(T.a)(ze,ft,"\u6DFB\u52A0\u8868\u683C"),ze),We=ee.a=function(Xe){var gt=Xe.defaultValue,Lt=gt===void 0?"":gt,en=Xe.onChange,Zt=Xe.width,xt=Zt===void 0?"100%":Zt,Ct=Xe.height,mt=Ct===void 0?400:Ct,Je=Xe.miniToolbar,Qe=Je===void 0?!1:Je,Oe=Xe.isFocus,je=Oe===void 0?!1:Oe,St=Xe.watch,bt=Xe.insertTemp,Dt=Xe.mode,Qt=Dt===void 0?"markdown":Dt,_t=Xe.id,Gt=_t===void 0?"markdown-editor-id":_t,kt=Xe.showResizeBar,fn=kt===void 0?!1:kt,mn=Xe.noStorage,Tr=mn===void 0?!1:mn,Mr=Xe.showNullButton,kr=Mr===void 0?!1:Mr,Un=Xe.hidetoolBar,Ra=Un===void 0?!1:Un,Xr=Xe.fullScreen,aa=Xr===void 0?!1:Xr,Kr=Xe.onBlur,_a=Xe.onCMBeforeChange,di=Xe.onFullScreen,Ei=Xe.className,_e=Ei===void 0?"":Ei,Ie=Xe.disablePaste,Ye=Ie===void 0?!1:Ie,yt=Xe.placeholder,Xt=yt===void 0?"":yt,sn=Xe.values,re=sn===void 0?"":sn,W=Object(a.useState)(null),V=Object(M.a)(W,2),ne=V[0],ve=V[1],oe=Object(a.useState)(Lt),tt=Object(M.a)(oe,2),Kt=tt[0],dn=tt[1],Cn=Object(a.useState)(St),Jt=Object(M.a)(Cn,2),Vn=Jt[0],Xn=Jt[1],lr=Object(a.useState)(aa),Rr=Object(M.a)(lr,2),qr=Rr[0],zr=Rr[1],Ca=Object(a.useState)(""),Dr=Object(M.a)(Ca,2),ya=Dr[0],ka=Dr[1],fi=Object(a.useState)(0),Ka=Object(M.a)(fi,2),qa=Ka[0],Si=Ka[1],pi=Object(a.useState)(mt),ui=Object(M.a)(pi,2),mi=ui[0],_i=ui[1],ai=Object(a.useState)(!1),Hi=Object(M.a)(ai,2),Yi=Hi[0],$r=Hi[1],ua=Object(a.useRef)(Object(Se.a)()),Pr=Object(a.useRef)(!1),ca=Object(a.useRef)(),Jr=Object(a.useRef)(),ri=Object(a.useRef)(),pa=Object(a.useRef)(),mo=Object(a.useRef)(),Di=function(){var mr=Object(O.a)(p.a.mark(function Vr(){var ur,oa;return p.a.wrap(function(ei){for(;;)switch(ei.prev=ei.next){case 0:return ei.next=2,Object(he.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ua.current}});case 2:oa=ei.sent,oa!=null&&(ur=oa.attachments)!==null&&ur!==void 0&&ur.length&&(console.log("cm:",ne,Jr),oa.attachments.map(function(Ba){Ba.content_type.indexOf("image")>-1?ne.replaceSelection("![,](/api/attachments/".concat(Ba.id,"?type=").concat(Ba.content_type,")")):Ba.content_type.indexOf("video")>-1?ne.replaceSelection('<video width="100%" controls src="'.concat(m.a.API_SERVER,"/api/attachments/").concat(data.id,'"></video>')):Ba.content_type.indexOf("pdf")>-1?ne.replaceSelection('<a href="'.concat(m.a.API_SERVER,"/api/attachments/").concat(Ba.id,"?type=").concat(Ba.content_type,'&disposition=inline" target="_blank">').concat(Ba.name,"</a>")):ne.replaceSelection("[".concat(Ba.name,"](").concat(m.a.API_SERVER,"/api/attachments/").concat(Ba.id,"?type=").concat(Ba.content_type,")"))}));case 4:case"end":return ei.stop()}},Vr)}));return function(){return mr.apply(this,arguments)}}();Object(a.useEffect)(function(){dn(re),ne==null||ne.setValue(re)},[re]),Object(a.useEffect)(function(){di==null||di(qr)},[qr]),Object(a.useEffect)(function(){if(Jr.current){var mr=l.a.fromTextArea(Jr.current,{mode:Qt,lineNumbers:!Qe,lineWrapping:!0,value:Lt,autoCloseTags:!0,autoCloseBrackets:!0});je&&mr.focus();function Vr(ur,oa){if(Ye){oa.preventDefault();return}var wa=oa.clipboardData;if(wa){var ei=wa.types.toString(),Ba=wa.items;if(ei==="Files"||wa.types.indexOf("Files")>-1){if(oa.preventDefault(),Qt=="stex")return;try{var Ni,Ma=Ba[1];((Ni=Ba[0])===null||Ni===void 0?void 0:Ni.kind)==="file"&&(Ma=Ba[0]);var xa=Ma.getAsFile(),Po=xa.name.split(".").pop();se(xa,function(Za){if(Za.id){var ro,so,To;(xa==null||((ro=xa.type)===null||ro===void 0)?void 0:ro.indexOf("image"))>-1?mr.replaceSelection("![,](/api/attachments/".concat(Za.id,"?type=").concat(Za.content_type,")")):(xa==null||((so=xa.type)===null||so===void 0)?void 0:so.indexOf("video"))>-1?mr.replaceSelection('<video width="100%" controls src="'.concat(m.a.API_SERVER,"/api/attachments/").concat(Za.id,'"></video>')):(xa==null||((To=xa.type)===null||To===void 0)?void 0:To.indexOf("pdf"))>-1?mr.replaceSelection('<a href="'.concat(m.a.API_SERVER,"/api/attachments/").concat(Za.id,"?type=").concat(xa.type,'&disposition=inline" target="_blank">').concat(xa.name,"</a>")):we.includes(Po)?mr.replaceSelection('<a href="'.concat(m.a.API_SERVER,"/api/attachments/").concat(Za.id,'?type=office&disposition=inline" target="_blank">').concat(xa.name,"</a>")):mr.replaceSelection("[".concat(xa.name,"](").concat(m.a.API_SERVER,"/api/attachments/").concat(Za.id,"?type=").concat(Za.content_type,")"))}else(Za==null?void 0:Za.status)===401&&(document.location.href="/user/login")})}catch(Za){_.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return mr.on("paste",Vr),mr.on("dragleave",function(ur,oa){ri.current.classList.remove("mouse-hover-md")}),mr.on("dragover",function(ur,oa){ri.current.classList.add("mouse-hover-md")}),mr.on("drop",function(ur,oa){ri.current.classList.add("mouse-hover-md");var wa;if(wa=oa.dataTransfer.files,wa.length>0){oa.preventDefault(),oa.stopPropagation();for(var ei=function(Ma){var xa=wa[Ma],Po=xa.name.split(".").pop();se(xa,function(Za){if(Za.id){var ro,so,To;(xa==null||((ro=xa.type)===null||ro===void 0)?void 0:ro.indexOf("image"))>-1?mr.replaceSelection("![,](/api/attachments/".concat(Za.id,"?type=").concat(Za.content_type,")")):(xa==null||((so=xa.type)===null||so===void 0)?void 0:so.indexOf("video"))>-1?mr.replaceSelection('<video width="100%" controls src="'.concat(m.a.API_SERVER,"/api/attachments/").concat(Za.id,'"></video>')):(xa==null||((To=xa.type)===null||To===void 0)?void 0:To.indexOf("pdf"))>-1?mr.replaceSelection('<a href="'.concat(m.a.API_SERVER,"/api/attachments/").concat(Za.id,"?type=").concat(xa.type,'&disposition=inline" target="_blank">').concat(xa.name,"</a>")):we.includes(Po)?mr.replaceSelection('<a href="'.concat(m.a.API_SERVER,"/api/attachments/").concat(Za.id,'?type=office&disposition=inline" target="_blank">').concat(xa.name,"</a>")):mr.replaceSelection("[".concat(xa.name,"](").concat(m.a.API_SERVER,"/api/attachments/").concat(Za.id,"?type=").concat(Za.content_type,")"))}else(Za==null?void 0:Za.status)===401&&(document.location.href="/user/login")})},Ba=0;Ba<wa.length;Ba++)ei(Ba)}}),ve(mr),function(){mr.off("paste",Vr)}}},[]);var ci=Object(a.useCallback)(function(){if(ri.current)try{}catch(mr){console.log(mr,"---- to set md editor body height")}},[mi,ri,qr]);Object(a.useEffect)(function(){function mr(){var ur=new i.default(function(oa){var wa=Object(I.a)(oa),ei;try{for(wa.s();!(ei=wa.n()).done;){var Ba=ei.value;(Ba.target.offsetHeight>0||Ba.target.offsetWidth>0)&&(ci(),ne.setSize("100%","100%"),ne.refresh())}}catch(Ni){wa.e(Ni)}finally{wa.f()}});return ur.observe(Jr.current.parentElement),ur}if(ne){var Vr=mr();return function(){Vr.unobserve(Jr.current.parentElement)}}},[ne,ci]),Object(a.useEffect)(function(){if(ne){for(var mr=[],Vr=function(){var Ba=oa[ur];wa=Object(M.a)(Ba,2);var Ni=wa[0],Ma=wa[1],xa=Object(T.a)({},Ni,function(){Wo(Ma)});mr.push(xa),ne.addKeyMap(xa)},ur=0,oa=Object.entries(Le);ur<oa.length;ur++){var wa;Vr()}return ca.current=setInterval(function(){Pr.current&&Di()},4e3),function(){clearInterval(ca.current);var ei=Object(I.a)(mr),Ba;try{for(ei.s();!(Ba=ei.n()).done;){var Ni=Ba.value;ne.removeKeyMap(Ni)}}catch(Ma){ei.e(Ma)}finally{ei.f()}}}},[ne]),Object(a.useEffect)(function(){aa!==qr&&zr(aa)},[aa]),Object(Ut.a)(function(){if(!Tr&&qa>0){var mr=new Date().getTime(),Vr=window.sessionStorage.getItem(Gt);mr>=qa+Rt&&(!Vr||Vr!==Kt)&&(window.sessionStorage.setItem(Gt,Kt),$r(!0))}},Rt),Object(a.useEffect)(function(){Xn(St)},[ne,St]),Object(a.useEffect)(function(){ne&&(je&&ne.focus())},[ne,je]),Object(a.useEffect)(function(){if(Vn&&ne){var mr=ne.getScrollerElement();function Vr(ur){var oa=ur.target;if(mo.current){var wa=oa.scrollTop/oa.scrollHeight;mo.current.scrollTop=mo.current.scrollHeight*wa}}return mr.addEventListener("scroll",Vr),function(){mr.removeEventListener("scroll",Vr)}}},[ne,Vn]),Object(a.useEffect)(function(){if(ne&&_a){function mr(Vr,ur){_a(Vr,ur)}return ne.on("beforeChange",mr),function(){ne.off("beforeChange",mr)}}},[ne,_a]),Object(a.useEffect)(function(){if(ne&&Kr){function mr(){Kr(ne.getValue())}return ne.on("blur",mr),function(){ne.off("blur",mr)}}},[ne,Kr]),Object(a.useEffect)(function(){if(ne){function mr(Vr){var ur=Vr.getValue();dn(ur),Si(new Date().getTime()),Vr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),en&&en(ur)}return ne.on("change",mr),function(){ne.off("change",mr)}}},[ne,en]),Object(a.useEffect)(function(){ne&&(Lt==null?(ne.setValue(""),dn("")):Lt!==ne.getValue()&&(ne.setValue(Lt),dn(Lt),ne.setCursor(ne.lineCount(),0)))},[ne,Lt]);var Wo=Object(a.useCallback)(function(mr){var Vr=ne.getCursor(),ur=ne.getSelection(),oa=ur.split(`
`);switch(mr){case"bold":return ne.replaceSelection("**"+ur+"**"),ur===""&&ne.setCursor(Vr.line,Vr.ch+2),ne.focus();case"italic":return ne.replaceSelection("*"+ur+"*"),ur===""&&ne.setCursor(Vr.line,Vr.ch+1),ne.focus();case"code":return ne.replaceSelection("`"+ur+"`"),ur===""&&ne.setCursor(Vr.line,Vr.ch+1),ne.focus();case"inline-latex":return ne.replaceSelection("`$$"+ur+"$$`"),ur===""&&ne.setCursor(Vr.line,Vr.ch+3),ne.focus();case"latex":return ne.replaceSelection("```latex\n"+ur+"\n```"),ne.setCursor(Vr.line+1,ur.length+1),ne.focus();case"line-break":return ne.replaceSelection(`<br/>
`),ne.focus();case"list-ul":return ur===""?ne.replaceSelection("- "+ur):ne.replaceSelection(oa.map(function(wa){return wa===""?"":"- ".concat(wa)}).join(`
`)),ne.focus();case"list-ol":return ur===""?ne.replaceSelection("1. "+ur):ne.replaceSelection(oa.map(function(wa,ei){return wa===""?"":"".concat(ei+1,". ").concat(wa)}).join(`
`)),ne.focus();case"add-null-ch":return ur===""&&ne.setCursor(Vr.line,Vr.ch+1),ne.replaceSelection(ut),ne.focus();case"inster-template-1":return ur===""&&ne.setCursor(Vr.line,Vr.ch),ne.replaceSelection(vt),ne.focus();case"eraser":return ne.setValue(""),ne.focus();case"trigger-watch":return Xn(!Vn),ne.focus();case"trigger-full-screen":return zr(!qr),ne.focus();case Ue:ka(Ue);return;case ct:ka(ct);return;case Ne:ka(Ne);return;case ft:ka(ft);return;default:throw new Error}},[ne,Vn,qr]),Mo=Object(a.useCallback)(function(mr){ka("");switch(ya){case Ue:var Vr=mr.title,ur=mr.link;return ne.replaceSelection("[".concat(Vr,"](").concat(ur,")")),ne.focus();case ct:var oa=mr.language,wa=mr.content;return ne.replaceSelection(["```"+oa,wa,"```"].join(`
`)),ne.focus();case Ne:var ei=mr.src,Ba=mr.alt;return Ba?ne.replaceSelection("![ ".concat(Ba," ]( ").concat(ei,' "').concat(Ba,'" )')):ne.replaceSelection("![,](".concat(ei,")")),ne.focus();case ft:for(var Ni=mr.row,Ma=mr.col,xa=mr.align,Po=`
`,Za=0;Za<Ni;Za++){for(var ro=[],so=[],To=0;To<Ma;To++)Za===1&&so.push(dt[xa]),ro.push(" ");Za===1&&(Po+="| ".concat(so.join(" | "),` |
`)),Po+="| ".concat(ro.join(Ma===1?"":" | "),` |
`)}return ne.replaceSelection(Po+`
`),ne.focus();default:throw new Error}},[ne,ya]),ii=Object(a.useMemo)(function(){switch(ya){case Ue:return t.a.createElement($,{callback:Mo,onCancel:go});case ct:return t.a.createElement(te.b,{callback:Mo,onCancel:go});case Ne:return t.a.createElement(le,{callback:Mo,onCancel:go});case ft:return t.a.createElement(et,{callback:Mo,onCancel:go});default:return null}},[ya]);function go(){ka("")}Object(a.useEffect)(function(){if(pa.current){var mr=pa.current,Vr=!1,ur=0;function oa(Ba){Vr=!0,ur=Ba.pageY}function wa(){Vr=!1}function ei(Ba){if(Vr){var Ni=Ba.pageY-ur;Ni<0&&(Ni=0),Ni>300&&(Ni=300);var Ma=mt+Ni+"px";_i(Ma)}}return mr.addEventListener("mousedown",oa),document.addEventListener("mousemove",ei),document.addEventListener("mouseup",wa),function(){mr.removeEventListener("mousedown",oa),document.removeEventListener("mousemove",ei),document.removeEventListener("mouseup",wa)}}},[ne,pa]),Object(a.useEffect)(function(){_i(mt)},[mt]);var no=Ze(xt),hs=Ze(mi),xo={width:no,height:hs},Cs=Object(a.useMemo)(function(){if(qa){var mr=new Date(qa),Vr=mr.getHours(),ur=mr.getMinutes(),oa=mr.getSeconds();return Vr=Vr<10?"0"+Vr:Vr,ur=ur<10?"0"+ur:ur,oa=oa<10?"0"+oa:oa,"".concat(Vr,":").concat(ur,":").concat(oa)}return 0},[qa]);function ws(){window.sessionStorage.removeItem(Gt),$r(!1),Si(0)}function ho(){$r(!1),Si(0),ne.setValue(window.sessionStorage.getItem(Gt))}function As(mr,Vr){var ur=ne.getValue();ur=ur.replace(mr,Vr),dn(ur),ne==null||ne.setValue(ur)}return t.a.createElement(a.Fragment,null,t.a.createElement("div",{className:"markdown-editor-wrapper",ref:ri},t.a.createElement("div",{className:"markdown-editor-container ".concat(_e," ").concat(Vn?"on-preview":""," ").concat(Qe?"mini":""," ").concat(qr?"full-screen":""),style:xo},t.a.createElement(y,{insertTemp:bt,watch:Vn,fullScreen:qr,showNullButton:kr,onActionCallback:Wo,hidetoolBar:Ra,uuid:ua.current,setOpenPhones:function(){Pr.current=!0}}),t.a.createElement("div",{className:"markdown-editor-body"},t.a.createElement("div",{className:"codemirror-container"},t.a.createElement("textarea",{ref:Jr,placeholder:Xt})),Vn?t.a.createElement("div",{ref:mo,className:"preview-container"},Qt==="stex"&&t.a.createElement(P,{value:Kt}),Qt!=="stex"&&t.a.createElement(w.a,{edit:!0,value:Kt,replaces:As})):null))),fn?t.a.createElement("a",{ref:pa,className:"editor-resize"}):null,t.a.createElement(U.a,null,Pe[ya]?t.a.createElement(Q.a,{centered:!0,title:Pe[ya],visible:!0,onCancel:go,footer:null,className:"markdown-popup-form"},ii):null))}},P47w:function(Be,ee,v){var Z=v("hydK"),Q=Z.createElement,I=v("IMiH"),k=v("mFDi"),_=v("Fofx"),O=v("6GrX"),M=v("pzxd"),T=v("dqUG"),n=I.CMD,p=Array.prototype.join,a="none",t=Math.round,A=Math.sin,l=Math.cos,i=Math.PI,c=Math.PI*2,d=180/i,f=1e-4;function o(K){return t(K*1e4)/1e4}function u(K){return K<f&&K>-f}function E(K,$){var te=$?K.textFill:K.fill;return te!=null&&te!==a}function R(K,$){var te=$?K.textStroke:K.stroke;return te!=null&&te!==a}function w(K,$){$&&P(K,"transform","matrix("+p.call($,",")+")")}function P(K,$,te){(!te||te.type!=="linear"&&te.type!=="radial")&&K.setAttribute($,te)}function C(K,$,te){K.setAttributeNS("http://www.w3.org/1999/xlink",$,te)}function b(K,$,te,fe){if(E($,te)){var Ae=te?$.textFill:$.fill;Ae=Ae==="transparent"?a:Ae,P(K,"fill",Ae),P(K,"fill-opacity",$.fillOpacity!=null?$.fillOpacity*$.opacity:$.opacity)}else P(K,"fill",a);if(R($,te)){var ce=te?$.textStroke:$.stroke;ce=ce==="transparent"?a:ce,P(K,"stroke",ce);var ie=te?$.textStrokeWidth:$.lineWidth,ye=!te&&$.strokeNoScale?fe.getLineScale():1;P(K,"stroke-width",ie/ye),P(K,"paint-order",te?"stroke":"fill"),P(K,"stroke-opacity",$.strokeOpacity!=null?$.strokeOpacity:$.opacity);var le=$.lineDash;le?(P(K,"stroke-dasharray",$.lineDash.join(",")),P(K,"stroke-dashoffset",t($.lineDashOffset||0))):P(K,"stroke-dasharray",""),$.lineCap&&P(K,"stroke-linecap",$.lineCap),$.lineJoin&&P(K,"stroke-linejoin",$.lineJoin),$.miterLimit&&P(K,"stroke-miterlimit",$.miterLimit)}else P(K,"stroke",a)}function s(K){for(var $=[],te=K.data,fe=K.len(),Ae=0;Ae<fe;){var ce=te[Ae++],ie="",ye=0;switch(ce){case n.M:ie="M",ye=2;break;case n.L:ie="L",ye=2;break;case n.Q:ie="Q",ye=4;break;case n.C:ie="C",ye=6;break;case n.A:var le=te[Ae++],me=te[Ae++],se=te[Ae++],ge=te[Ae++],ae=te[Ae++],pe=te[Ae++],Me=te[Ae++],xe=te[Ae++],Ke=Math.abs(pe),et=u(Ke-c)||(xe?pe>=c:-pe>=c),he=pe>0?pe%c:pe%c+c,Se=!1;et?Se=!0:u(Ke)?Se=!1:Se=he>=i===!!xe;var Ue=o(le+se*l(ae)),Ne=o(me+ge*A(ae));et&&(xe?pe=c-1e-4:pe=-c+1e-4,Se=!0,Ae===9&&$.push("M",Ue,Ne));var ct=o(le+se*l(ae+pe)),ft=o(me+ge*A(ae+pe));$.push("A",o(se),o(ge),t(Me*d),+Se,+xe,ct,ft);break;case n.Z:ie="Z";break;case n.R:var ct=o(te[Ae++]),ft=o(te[Ae++]),Ot=o(te[Ae++]),dt=o(te[Ae++]);$.push("M",ct,ft,"L",ct+Ot,ft,"L",ct+Ot,ft+dt,"L",ct,ft+dt,"L",ct,ft);break}ie&&$.push(ie);for(var Ut=0;Ut<ye;Ut++)$.push(o(te[Ae++]))}return $.join(" ")}var h={};h.brush=function(K){var $=K.style,te=K.__svgEl;te||(te=Q("path"),K.__svgEl=te),K.path||K.createPathProxy();var fe=K.path;if(K.__dirtyPath){fe.beginPath(),fe.subPixelOptimize=!1,K.buildPath(fe,K.shape),K.__dirtyPath=!1;var Ae=s(fe);Ae.indexOf("NaN")<0&&P(te,"d",Ae)}b(te,$,!1,K),w(te,K.transform),$.text!=null?S(K,K.getBoundingRect()):z(K)};var m={};m.brush=function(K){var $=K.style,te=$.image;if(te instanceof HTMLImageElement){var fe=te.src;te=fe}if(!te)return;var Ae=$.x||0,ce=$.y||0,ie=$.width,ye=$.height,le=K.__svgEl;le||(le=Q("image"),K.__svgEl=le),te!==K.__imageSrc&&(C(le,"href",te),K.__imageSrc=te),P(le,"width",ie),P(le,"height",ye),P(le,"x",Ae),P(le,"y",ce),w(le,K.transform),$.text!=null?S(K,K.getBoundingRect()):z(K)};var x={},g=new k,y={},U=[],N={left:"start",right:"end",center:"middle",middle:"middle"},S=function(K,$){var te=K.style,fe=K.transform,Ae=K instanceof T||te.transformText;K.__dirty&&M.normalizeTextStyle(te,!0);var ce=te.text;if(ce!=null&&(ce+=""),!M.needDrawText(ce,te))return;ce==null&&(ce=""),!Ae&&fe&&(g.copy($),g.applyTransform(fe),$=g);var ie=K.__textSvgEl;ie||(ie=Q("text"),K.__textSvgEl=ie);var ye=ie.style,le=te.font||O.DEFAULT_FONT,me=ie.__computedFont;le!==ie.__styleFont&&(ye.font=ie.__styleFont=le,me=ie.__computedFont=ye.font);var se=te.textPadding,ge=te.textLineHeight,ae=K.__textCotentBlock;(!ae||K.__dirtyText)&&(ae=K.__textCotentBlock=O.parsePlainText(ce,me,se,ge,te.truncate));var pe=ae.outerHeight,Me=ae.lineHeight;M.getBoxPosition(y,K,te,$);var xe=y.baseX,Ke=y.baseY,et=y.textAlign||"left",he=y.textVerticalAlign;H(ie,Ae,fe,te,$,xe,Ke);var Se=O.adjustTextY(Ke,pe,he),Ue=xe,Ne=Se;se&&(Ue=F(xe,et,se),Ne+=se[0]),Ne+=Me/2,b(ie,te,!0,K);var ct=ae.canCacheByTextString,ft=K.__tspanList||(K.__tspanList=[]),Ot=ft.length;if(ct&&K.__canCacheByTextString&&K.__text===ce){if(K.__dirtyText&&Ot)for(var dt=0;dt<Ot;++dt)B(ft[dt],et,Ue,Ne+dt*Me)}else{K.__text=ce,K.__canCacheByTextString=ct;for(var Ut=ae.lines,jt=Ut.length,dt=0;dt<jt;dt++){var ze=ft[dt],Ve=Ut[dt];ze?ze.__zrText!==Ve&&(ze.innerHTML="",ze.appendChild(document.createTextNode(Ve))):(ze=ft[dt]=Q("tspan"),ie.appendChild(ze),ze.appendChild(document.createTextNode(Ve))),B(ze,et,Ue,Ne+dt*Me)}if(Ot>jt){for(;dt<Ot;dt++)ie.removeChild(ft[dt]);ft.length=jt}}};function H(K,$,te,fe,Ae,ce,ie){_.identity(U),$&&te&&_.copy(U,te);var ye=fe.textRotation;if(Ae&&ye){var le=fe.textOrigin;le==="center"?(ce=Ae.width/2+Ae.x,ie=Ae.height/2+Ae.y):le&&(ce=le[0]+Ae.x,ie=le[1]+Ae.y),U[4]-=ce,U[5]-=ie,_.rotate(U,U,ye),U[4]+=ce,U[5]+=ie}w(K,U)}function F(K,$,te){return $==="right"?K-te[1]:$==="center"?K+te[3]/2-te[1]/2:K+te[3]}function B(K,$,te,fe){P(K,"dominant-baseline","middle"),P(K,"text-anchor",N[$]),P(K,"x",te),P(K,"y",fe)}function z(K){K&&K.__textSvgEl&&(K.__textSvgEl.parentNode&&K.__textSvgEl.parentNode.removeChild(K.__textSvgEl),K.__textSvgEl=null,K.__tspanList=[],K.__text=null)}x.drawRectText=S,x.brush=function(K){var $=K.style;$.text!=null?S(K,!1):z(K)},ee.path=h,ee.image=m,ee.text=x},P4Qj:function(Be,ee,v){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.removeSensor=ee.getSensor=void 0;var Z=k(v("chpo")),Q=v("FxDU"),I=v("24YM");function k(T){return T&&T.__esModule?T:{default:T}}var _={},O=function(n){var p=n.getAttribute(I.SizeSensorId);if(p&&_[p])return _[p];var a=(0,Z.default)();n.setAttribute(I.SizeSensorId,a);var t=(0,Q.createSensor)(n);return _[a]=t,t};ee.getSensor=O;var M=function(n){var p=n.element.getAttribute(I.SizeSensorId);n.element.removeAttribute(I.SizeSensorId),n.destroy(),p&&_[p]&&delete _[p]};ee.removeSensor=M},P5Jw:function(Be,ee,v){"use strict";var Z=v("rHrb"),Q=Z.CopyToClipboard;Q.CopyToClipboard=Q,Be.exports=Q},QBsz:function(Be,ee){var v=typeof Float32Array=="undefined"?Array:Float32Array;function Z(b,s){var h=new v(2);return b==null&&(b=0),s==null&&(s=0),h[0]=b,h[1]=s,h}function Q(b,s){return b[0]=s[0],b[1]=s[1],b}function I(b){var s=new v(2);return s[0]=b[0],s[1]=b[1],s}function k(b,s,h){return b[0]=s,b[1]=h,b}function _(b,s,h){return b[0]=s[0]+h[0],b[1]=s[1]+h[1],b}function O(b,s,h,m){return b[0]=s[0]+h[0]*m,b[1]=s[1]+h[1]*m,b}function M(b,s,h){return b[0]=s[0]-h[0],b[1]=s[1]-h[1],b}function T(b){return Math.sqrt(p(b))}var n=T;function p(b){return b[0]*b[0]+b[1]*b[1]}var a=p;function t(b,s,h){return b[0]=s[0]*h[0],b[1]=s[1]*h[1],b}function A(b,s,h){return b[0]=s[0]/h[0],b[1]=s[1]/h[1],b}function l(b,s){return b[0]*s[0]+b[1]*s[1]}function i(b,s,h){return b[0]=s[0]*h,b[1]=s[1]*h,b}function c(b,s){var h=T(s);return h===0?(b[0]=0,b[1]=0):(b[0]=s[0]/h,b[1]=s[1]/h),b}function d(b,s){return Math.sqrt((b[0]-s[0])*(b[0]-s[0])+(b[1]-s[1])*(b[1]-s[1]))}var f=d;function o(b,s){return(b[0]-s[0])*(b[0]-s[0])+(b[1]-s[1])*(b[1]-s[1])}var u=o;function E(b,s){return b[0]=-s[0],b[1]=-s[1],b}function R(b,s,h,m){return b[0]=s[0]+m*(h[0]-s[0]),b[1]=s[1]+m*(h[1]-s[1]),b}function w(b,s,h){var m=s[0],x=s[1];return b[0]=h[0]*m+h[2]*x+h[4],b[1]=h[1]*m+h[3]*x+h[5],b}function P(b,s,h){return b[0]=Math.min(s[0],h[0]),b[1]=Math.min(s[1],h[1]),b}function C(b,s,h){return b[0]=Math.max(s[0],h[0]),b[1]=Math.max(s[1],h[1]),b}ee.create=Z,ee.copy=Q,ee.clone=I,ee.set=k,ee.add=_,ee.scaleAndAdd=O,ee.sub=M,ee.len=T,ee.length=n,ee.lenSquare=p,ee.lengthSquare=a,ee.mul=t,ee.div=A,ee.dot=l,ee.scale=i,ee.normalize=c,ee.distance=d,ee.dist=f,ee.distanceSquare=o,ee.distSquare=u,ee.negate=E,ee.lerp=R,ee.applyTransform=w,ee.min=P,ee.max=C},"QO+J":function(Be,ee,v){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.createSensor=void 0;var Z=I(v("NohK")),Q=v("24YM");function I(_){return _&&_.__esModule?_:{default:_}}var k=function(O){var M=void 0,T=[],n=function(){getComputedStyle(O).position==="static"&&(O.style.position="relative");var i=document.createElement("object");return i.onload=function(){i.contentDocument.defaultView.addEventListener("resize",p),p()},i.style.display="block",i.style.position="absolute",i.style.top="0",i.style.left="0",i.style.height="100%",i.style.width="100%",i.style.overflow="hidden",i.style.pointerEvents="none",i.style.zIndex="-1",i.style.opacity="0",i.setAttribute("class",Q.SensorClassName),i.setAttribute("tabindex",Q.SensorTabIndex),i.type="text/html",O.appendChild(i),i.data="about:blank",i},p=(0,Z.default)(function(){T.forEach(function(l){l(O)})}),a=function(i){M||(M=n()),T.indexOf(i)===-1&&T.push(i)},t=function(){M&&M.parentNode&&(M.contentDocument&&M.contentDocument.defaultView.removeEventListener("resize",p),M.parentNode.removeChild(M),M=void 0,T=[])},A=function(i){var c=T.indexOf(i);c!==-1&&T.splice(c,1),T.length===0&&M&&t()};return{element:O,bind:a,destroy:t,unbind:A}};ee.createSensor=k},QcdW:function(Be,ee,v){},Qe9p:function(Be,ee,v){var Z=v("1RvN"),Q={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 I(s){return s=Math.round(s),s<0?0:s>255?255:s}function k(s){return s=Math.round(s),s<0?0:s>360?360:s}function _(s){return s<0?0:s>1?1:s}function O(s){return s.length&&s.charAt(s.length-1)==="%"?I(parseFloat(s)/100*255):I(parseInt(s,10))}function M(s){return s.length&&s.charAt(s.length-1)==="%"?_(parseFloat(s)/100):_(parseFloat(s))}function T(s,h,m){return m<0?m+=1:m>1&&(m-=1),m*6<1?s+(h-s)*m*6:m*2<1?h:m*3<2?s+(h-s)*(2/3-m)*6:s}function n(s,h,m){return s+(h-s)*m}function p(s,h,m,x,g){return s[0]=h,s[1]=m,s[2]=x,s[3]=g,s}function a(s,h){return s[0]=h[0],s[1]=h[1],s[2]=h[2],s[3]=h[3],s}var t=new Z(20),A=null;function l(s,h){A&&a(A,h),A=t.put(s,A||h.slice())}function i(s,h){if(!s)return;h=h||[];var m=t.get(s);if(m)return a(h,m);s=s+"";var x=s.replace(/ /g,"").toLowerCase();if(x in Q)return a(h,Q[x]),l(s,h),h;if(x.charAt(0)==="#"){if(x.length===4){var g=parseInt(x.substr(1),16);if(!(g>=0&&g<=4095)){p(h,0,0,0,1);return}return p(h,(g&3840)>>4|(g&3840)>>8,g&240|(g&240)>>4,g&15|(g&15)<<4,1),l(s,h),h}else if(x.length===7){var g=parseInt(x.substr(1),16);if(!(g>=0&&g<=16777215)){p(h,0,0,0,1);return}return p(h,(g&16711680)>>16,(g&65280)>>8,g&255,1),l(s,h),h}return}var y=x.indexOf("("),U=x.indexOf(")");if(y!==-1&&U+1===x.length){var N=x.substr(0,y),S=x.substr(y+1,U-(y+1)).split(","),H=1;switch(N){case"rgba":if(S.length!==4){p(h,0,0,0,1);return}H=M(S.pop());case"rgb":if(S.length!==3){p(h,0,0,0,1);return}return p(h,O(S[0]),O(S[1]),O(S[2]),H),l(s,h),h;case"hsla":if(S.length!==4){p(h,0,0,0,1);return}return S[3]=M(S[3]),c(S,h),l(s,h),h;case"hsl":if(S.length!==3){p(h,0,0,0,1);return}return c(S,h),l(s,h),h;default:return}}p(h,0,0,0,1);return}function c(s,h){var m=(parseFloat(s[0])%360+360)%360/360,x=M(s[1]),g=M(s[2]),y=g<=.5?g*(x+1):g+x-g*x,U=g*2-y;return h=h||[],p(h,I(T(U,y,m+1/3)*255),I(T(U,y,m)*255),I(T(U,y,m-1/3)*255),1),s.length===4&&(h[3]=s[3]),h}function d(s){if(!s)return;var h=s[0]/255,m=s[1]/255,x=s[2]/255,g=Math.min(h,m,x),y=Math.max(h,m,x),U=y-g,N=(y+g)/2,S,H;if(U===0)S=0,H=0;else{N<.5?H=U/(y+g):H=U/(2-y-g);var F=((y-h)/6+U/2)/U,B=((y-m)/6+U/2)/U,z=((y-x)/6+U/2)/U;h===y?S=z-B:m===y?S=1/3+F-z:x===y&&(S=2/3+B-F),S<0&&(S+=1),S>1&&(S-=1)}var K=[S*360,H,N];return s[3]!=null&&K.push(s[3]),K}function f(s,h){var m=i(s);if(m){for(var x=0;x<3;x++)h<0?m[x]=m[x]*(1-h)|0:m[x]=(255-m[x])*h+m[x]|0,m[x]>255?m[x]=255:s[x]<0&&(m[x]=0);return b(m,m.length===4?"rgba":"rgb")}}function o(s){var h=i(s);if(h)return((1<<24)+(h[0]<<16)+(h[1]<<8)+ +h[2]).toString(16).slice(1)}function u(s,h,m){if(!(h&&h.length)||!(s>=0&&s<=1))return;m=m||[];var x=s*(h.length-1),g=Math.floor(x),y=Math.ceil(x),U=h[g],N=h[y],S=x-g;return m[0]=I(n(U[0],N[0],S)),m[1]=I(n(U[1],N[1],S)),m[2]=I(n(U[2],N[2],S)),m[3]=_(n(U[3],N[3],S)),m}var E=u;function R(s,h,m){if(!(h&&h.length)||!(s>=0&&s<=1))return;var x=s*(h.length-1),g=Math.floor(x),y=Math.ceil(x),U=i(h[g]),N=i(h[y]),S=x-g,H=b([I(n(U[0],N[0],S)),I(n(U[1],N[1],S)),I(n(U[2],N[2],S)),_(n(U[3],N[3],S))],"rgba");return m?{color:H,leftIndex:g,rightIndex:y,value:x}:H}var w=R;function P(s,h,m,x){if(s=i(s),s)return s=d(s),h!=null&&(s[0]=k(h)),m!=null&&(s[1]=M(m)),x!=null&&(s[2]=M(x)),b(c(s),"rgba")}function C(s,h){if(s=i(s),s&&h!=null)return s[3]=_(h),b(s,"rgba")}function b(s,h){if(!s||!s.length)return;var m=s[0]+","+s[1]+","+s[2];return(h==="rgba"||h==="hsva"||h==="hsla")&&(m+=","+s[3]),h+"("+m+")"}ee.parse=i,ee.lift=f,ee.toHex=o,ee.fastLerp=u,ee.fastMapToColor=E,ee.lerp=R,ee.mapToColor=w,ee.modifyHSL=P,ee.modifyAlpha=C,ee.stringify=b},QuXc:function(Be,ee){var v=function(Q){this.colorStops=Q||[]};v.prototype={constructor:v,addColorStop:function(Q,I){this.colorStops.push({offset:Q,color:I})}};var Z=v;Be.exports=Z},RDYZ:function(Be,ee,v){var Z=v("dMvE");function Q(k){this._target=k.target,this._life=k.life||1e3,this._delay=k.delay||0,this._initialized=!1,this.loop=k.loop==null?!1:k.loop,this.gap=k.gap||0,this.easing=k.easing||"Linear",this.onframe=k.onframe,this.ondestroy=k.ondestroy,this.onrestart=k.onrestart,this._pausedTime=0,this._paused=!1}Q.prototype={constructor:Q,step:function(k,_){if(this._initialized||(this._startTime=k+this._delay,this._initialized=!0),this._paused){this._pausedTime+=_;return}var O=(k-this._startTime-this._pausedTime)/this._life;if(O<0)return;O=Math.min(O,1);var M=this.easing,T=typeof M=="string"?Z[M]:M,n=typeof T=="function"?T(O):O;return this.fire("frame",n),O===1?this.loop?(this.restart(k),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(k){var _=(k-this._startTime-this._pausedTime)%this._life;this._startTime=k-_+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(k,_){k="on"+k,this[k]&&this[k](this._target,_)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var I=Q;Be.exports=I},RMFE:function(Be,ee){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFyCAYAAADYqEAoAAAAAXNSR0IArs4c6QAADetJREFUeAHt1jFqXUEQRUHLaP9b/jZObmYU9MAJSlGDxNBUPw76+vz9+eWHAAECBHICv3MbWYgAAQIE/gkItA+BAAECUQGBjh7GWgQIEBBo3wABAgSiAgIdPYy1CBAgINC+AQIECEQFBDp6GGsRIEBAoH0DBAgQiAoIdPQw1iJAgIBA+wYIECAQFRDo6GGsRYAAAYH2DRAgQCAqINDRw1iLAAECAu0bIECAQFRAoKOHsRYBAgQE2jdAgACBqIBARw9jLQIECAi0b4AAAQJRAYGOHsZaBAgQEGjfAAECBKICAh09jLUIECAg0L4BAgQIRAUEOnoYaxEgQECgfQMECBCICgh09DDWIkCAgED7BggQIBAVEOjoYaxFgAABgfYNECBAICog0NHDWIsAAQIC7RsgQIBAVECgo4exFgECBATaN0CAAIGogEBHD2MtAgQICLRvgAABAlEBgY4exloECBAQaN8AAQIEogICHT2MtQgQICDQvgECBAhEBQQ6ehhrESBAQKB9AwQIEIgKCHT0MNYiQICAQPsGCBAgEBUQ6OhhrEWAAAGB9g0QIEAgKiDQ0cNYiwABAgLtGyBAgEBUQKCjh7EWAQIEBNo3QIAAgaiAQEcPYy0CBAh8/5Tg6+vrp3/q7wgQIEDgPwKfz+c/v92v/Ac9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICQh06hyWIUCAwAQEehYmAgQIpAQEOnUOyxAgQGACAj0LEwECBFICAp06h2UIECAwAYGehYkAAQIpAYFOncMyBAgQmIBAz8JEgACBlIBAp85hGQIECExAoGdhIkCAQEpAoFPnsAwBAgQmINCzMBEgQCAlINCpc1iGAAECExDoWZgIECCQEhDo1DksQ4AAgQkI9CxMBAgQSAkIdOocliFAgMAEBHoWJgIECKQEBDp1DssQIEBgAgI9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAhMQ6FmYCBAgkBIQ6NQ5LEOAAIEJCPQsTAQIEEgJCHTqHJYhQIDABAR6FiYCBAikBAQ6dQ7LECBAYAICPQsTAQIEUgICnTqHZQgQIDABgZ6FiQABAikBgU6dwzIECBCYgEDPwkSAAIGUgECnzmEZAgQITECgZ2EiQIBASkCgU+ewDAECBCYg0LMwESBAICUg0KlzWIYAAQITEOhZmAgQIJASEOjUOSxDgACBCQj0LEwECBBICXz/dJvP5/PTP/V3BAgQIHAg4D/oA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IXAH7PYDOHnuk1pAAAAAElFTkSuQmCC"},RXMa:function(Be,ee,v){var Z=v("y+Vt"),Q=Z.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(I,k){var _=k.cx,O=k.cy,M=Math.PI*2;I.moveTo(_+k.r,O),I.arc(_,O,k.r,0,M,!1),I.moveTo(_+k.r0,O),I.arc(_,O,k.r0,0,M,!0)}});Be.exports=Q},RotF:function(Be,ee,v){Be.exports=v("LSTS")},RxwV:function(Be,ee,v){"use strict";var Z=v("q1tI"),Q=v("uciX"),I=v("2W6z"),k=v.n(I),_=v("4IlW"),O=v("uK0f"),M=v.n(O);function T(ie,ye){if(ie===ye)return!0;if(!ie||!ye)return!1;var le=ie.length;if(ye.length!==le)return!1;for(var me=0;me<le;me++)if(ie[me]!==ye[me])return!1;return!0}function n(ie){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(le){return typeof le}:n=function(le){return le&&typeof Symbol=="function"&&le.constructor===Symbol&&le!==Symbol.prototype?"symbol":typeof le},n(ie)}function p(ie,ye){if(!(ie instanceof ye))throw new TypeError("Cannot call a class as a function")}function a(ie,ye){for(var le=0;le<ye.length;le++){var me=ye[le];me.enumerable=me.enumerable||!1,me.configurable=!0,"value"in me&&(me.writable=!0),Object.defineProperty(ie,me.key,me)}}function t(ie,ye,le){return ye&&a(ie.prototype,ye),le&&a(ie,le),ie}function A(ie,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Super expression must either be null or a function");ie.prototype=Object.create(ye&&ye.prototype,{constructor:{value:ie,writable:!0,configurable:!0}}),ye&&l(ie,ye)}function l(ie,ye){return l=Object.setPrototypeOf||function(me,se){return me.__proto__=se,me},l(ie,ye)}function i(ie){var ye=f();return function(){var le=o(ie),me;if(ye){var se=o(this).constructor;me=Reflect.construct(le,arguments,se)}else me=le.apply(this,arguments);return c(this,me)}}function c(ie,ye){return ye&&(n(ye)==="object"||typeof ye=="function")?ye:d(ie)}function d(ie){if(ie===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ie}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(ie){return!1}}function o(ie){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(le){return le.__proto__||Object.getPrototypeOf(le)},o(ie)}var u=function(){var ie=function(ye){A(me,ye);var le=i(me);function me(){var se;return p(this,me),se=le.apply(this,arguments),se.menuItems={},se.saveMenuItem=function(ge){return function(ae){se.menuItems[ge]=ae}},se}return t(me,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(ge){!ge.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"getFieldName",value:function(ge){var ae=this.props,pe=ae.fieldNames,Me=ae.defaultFieldNames;return pe[ge]||Me[ge]}},{key:"getOption",value:function(ge,ae){var pe=this.props,Me=pe.prefixCls,xe=pe.expandTrigger,Ke=pe.expandIcon,et=pe.loadingIcon,he=this.props.onSelect.bind(this,ge,ae),Se=this.props.onItemDoubleClick.bind(this,ge,ae),Ue={onClick:he,onDoubleClick:Se},Ne="".concat(Me,"-menu-item"),ct=null,ft=ge[this.getFieldName("children")]&&ge[this.getFieldName("children")].length>0;(ft||ge.isLeaf===!1)&&(Ne+=" ".concat(Me,"-menu-item-expand"),ge.loading||(ct=Z.createElement("span",{className:"".concat(Me,"-menu-item-expand-icon")},Ke))),xe==="hover"&&(ft||ge.isLeaf===!1)&&(Ue={onMouseEnter:this.delayOnSelect.bind(this,he),onMouseLeave:this.delayOnSelect.bind(this),onClick:he}),this.isActiveOption(ge,ae)&&(Ne+=" ".concat(Me,"-menu-item-active"),Ue.ref=this.saveMenuItem(ae)),ge.disabled&&(Ne+=" ".concat(Me,"-menu-item-disabled"));var Ot=null;ge.loading&&(Ne+=" ".concat(Me,"-menu-item-loading"),Ot=et||null);var dt="";return"title"in ge?dt=ge.title:typeof ge[this.getFieldName("label")]=="string"&&(dt=ge[this.getFieldName("label")]),Z.createElement("li",Object.assign({key:ge[this.getFieldName("value")],className:Ne,title:dt},Ue,{role:"menuitem",onMouseDown:function(jt){return jt.preventDefault()}}),ge[this.getFieldName("label")],ct,Ot)}},{key:"getActiveOptions",value:function(ge){var ae=this,pe=this.props.options,Me=ge||this.props.activeValue;return M()(pe,function(xe,Ke){return xe[ae.getFieldName("value")]===Me[Ke]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var ge=this,ae=this.props.options,pe=this.getActiveOptions().map(function(Me){return Me[ge.getFieldName("children")]}).filter(function(Me){return!!Me});return pe.unshift(ae),pe}},{key:"delayOnSelect",value:function(ge){for(var ae=this,pe=arguments.length,Me=new Array(pe>1?pe-1:0),xe=1;xe<pe;xe++)Me[xe-1]=arguments[xe];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof ge=="function"&&(this.delayTimer=window.setTimeout(function(){ge(Me),ae.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var ge=this.getShowOptions().length,ae=0;ae<ge;ae++){var pe=this.menuItems[ae];pe&&pe.parentElement&&(pe.parentElement.scrollTop=pe.offsetTop)}}},{key:"isActiveOption",value:function(ge,ae){var pe=this.props.activeValue,Me=pe===void 0?[]:pe;return Me[ae]===ge[this.getFieldName("value")]}},{key:"render",value:function(){var ge=this,ae=this.props,pe=ae.prefixCls,Me=ae.dropdownMenuColumnStyle;return Z.createElement("div",null,this.getShowOptions().map(function(xe,Ke){return Z.createElement("ul",{className:"".concat(pe,"-menu"),key:Ke,style:Me},xe.map(function(et){return ge.getOption(et,Ke)}))}))}}]),me}(Z.Component);return ie.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},ie}(),E=u,R={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=R;function P(ie){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?P=function(le){return typeof le}:P=function(le){return le&&typeof Symbol=="function"&&le.constructor===Symbol&&le!==Symbol.prototype?"symbol":typeof le},P(ie)}function C(ie,ye){if(ie==null)return{};var le=b(ie,ye),me,se;if(Object.getOwnPropertySymbols){var ge=Object.getOwnPropertySymbols(ie);for(se=0;se<ge.length;se++){if(me=ge[se],ye.indexOf(me)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(ie,me))continue;le[me]=ie[me]}}return le}function b(ie,ye){if(ie==null)return{};var le={},me=Object.keys(ie),se,ge;for(ge=0;ge<me.length;ge++){if(se=me[ge],ye.indexOf(se)>=0)continue;le[se]=ie[se]}return le}function s(ie){return g(ie)||x(ie)||m(ie)||h()}function h(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m(ie,ye){if(!ie)return;if(typeof ie=="string")return y(ie,ye);var le=Object.prototype.toString.call(ie).slice(8,-1);if(le==="Object"&&ie.constructor&&(le=ie.constructor.name),le==="Map"||le==="Set")return Array.from(ie);if(le==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(le))return y(ie,ye)}function x(ie){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(ie))return Array.from(ie)}function g(ie){if(Array.isArray(ie))return y(ie)}function y(ie,ye){(ye==null||ye>ie.length)&&(ye=ie.length);for(var le=0,me=new Array(ye);le<ye;le++)me[le]=ie[le];return me}function U(ie,ye){if(!(ie instanceof ye))throw new TypeError("Cannot call a class as a function")}function N(ie,ye){for(var le=0;le<ye.length;le++){var me=ye[le];me.enumerable=me.enumerable||!1,me.configurable=!0,"value"in me&&(me.writable=!0),Object.defineProperty(ie,me.key,me)}}function S(ie,ye,le){return ye&&N(ie.prototype,ye),le&&N(ie,le),ie}function H(ie,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Super expression must either be null or a function");ie.prototype=Object.create(ye&&ye.prototype,{constructor:{value:ie,writable:!0,configurable:!0}}),ye&&F(ie,ye)}function F(ie,ye){return F=Object.setPrototypeOf||function(me,se){return me.__proto__=se,me},F(ie,ye)}function B(ie){var ye=$();return function(){var le=te(ie),me;if(ye){var se=te(this).constructor;me=Reflect.construct(le,arguments,se)}else me=le.apply(this,arguments);return z(this,me)}}function z(ie,ye){return ye&&(P(ye)==="object"||typeof ye=="function")?ye:K(ie)}function K(ie){if(ie===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ie}function $(){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(ie){return!1}}function te(ie){return te=Object.setPrototypeOf?Object.getPrototypeOf:function(le){return le.__proto__||Object.getPrototypeOf(le)},te(ie)}var fe=function(){var ie=function(ye){H(me,ye);var le=B(me);function me(se){var ge;U(this,me),ge=le.call(this,se),ge.setPopupVisible=function(pe){var Me=ge.state.value;"popupVisible"in ge.props||ge.setState({popupVisible:pe}),pe&&!ge.state.popupVisible&&ge.setState({activeValue:Me}),ge.props.onPopupVisibleChange(pe)},ge.handleChange=function(pe,Me,xe){var Ke=Me.visible;(xe.type!=="keydown"||xe.keyCode===_.a.ENTER)&&(ge.props.onChange(pe.map(function(et){return et[ge.getFieldName("value")]}),pe),ge.setPopupVisible(Ke))},ge.handlePopupVisibleChange=function(pe){ge.setPopupVisible(pe)},ge.handleMenuSelect=function(pe,Me,xe){var Ke=ge.trigger.getRootDomNode();Ke&&Ke.focus&&Ke.focus();var et=ge.props,he=et.changeOnSelect,Se=et.loadData,Ue=et.expandTrigger;if(!pe||pe.disabled)return;var Ne=ge.state.activeValue;Ne=Ne.slice(0,Me+1),Ne[Me]=pe[ge.getFieldName("value")];var ct=ge.getActiveOptions(Ne);if(pe.isLeaf===!1&&!pe[ge.getFieldName("children")]&&Se){he&&ge.handleChange(ct,{visible:!0},xe),ge.setState({activeValue:Ne}),Se(ct);return}var ft={};!pe[ge.getFieldName("children")]||!pe[ge.getFieldName("children")].length?(ge.handleChange(ct,{visible:!1},xe),ft.value=Ne):he&&(xe.type==="click"||xe.type==="keydown")&&(Ue==="hover"?ge.handleChange(ct,{visible:!1},xe):ge.handleChange(ct,{visible:!0},xe),ft.value=Ne),ft.activeValue=Ne,("value"in ge.props||xe.type==="keydown"&&xe.keyCode!==_.a.ENTER)&&delete ft.value,ge.setState(ft)},ge.handleItemDoubleClick=function(){var pe=ge.props.changeOnSelect;pe&&ge.setPopupVisible(!1)},ge.handleKeyDown=function(pe){var Me=ge.props.children;if(Me&&Me.props.onKeyDown){Me.props.onKeyDown(pe);return}var xe=s(ge.state.activeValue),Ke=xe.length-1<0?0:xe.length-1,et=ge.getCurrentLevelOptions(),he=et.map(function(ct){return ct[ge.getFieldName("value")]}).indexOf(xe[Ke]);if(pe.keyCode!==_.a.DOWN&&pe.keyCode!==_.a.UP&&pe.keyCode!==_.a.LEFT&&pe.keyCode!==_.a.RIGHT&&pe.keyCode!==_.a.ENTER&&pe.keyCode!==_.a.SPACE&&pe.keyCode!==_.a.BACKSPACE&&pe.keyCode!==_.a.ESC&&pe.keyCode!==_.a.TAB)return;if(!ge.state.popupVisible&&pe.keyCode!==_.a.BACKSPACE&&pe.keyCode!==_.a.LEFT&&pe.keyCode!==_.a.RIGHT&&pe.keyCode!==_.a.ESC&&pe.keyCode!==_.a.TAB){ge.setPopupVisible(!0);return}if(pe.keyCode===_.a.DOWN||pe.keyCode===_.a.UP){pe.preventDefault();var Se=he;Se!==-1?pe.keyCode===_.a.DOWN?(Se+=1,Se=Se>=et.length?0:Se):(Se-=1,Se=Se<0?et.length-1:Se):Se=0,xe[Ke]=et[Se][ge.getFieldName("value")]}else if(pe.keyCode===_.a.LEFT||pe.keyCode===_.a.BACKSPACE)pe.preventDefault(),xe.splice(xe.length-1,1);else if(pe.keyCode===_.a.RIGHT)pe.preventDefault(),et[he]&&et[he][ge.getFieldName("children")]&&xe.push(et[he][ge.getFieldName("children")][0][ge.getFieldName("value")]);else if(pe.keyCode===_.a.ESC||pe.keyCode===_.a.TAB){ge.setPopupVisible(!1);return}(!xe||xe.length===0)&&ge.setPopupVisible(!1);var Ue=ge.getActiveOptions(xe),Ne=Ue[Ue.length-1];ge.handleMenuSelect(Ne,Ue.length-1,pe),ge.props.onKeyDown&&ge.props.onKeyDown(pe)},ge.saveTrigger=function(pe){ge.trigger=pe};var ae=[];return"value"in se?ae=se.value||[]:"defaultValue"in se&&(ae=se.defaultValue||[]),k()(!("filedNames"in se),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),ge.state={popupVisible:se.popupVisible,activeValue:ae,value:ae,prevProps:se},ge.defaultFieldNames={label:"label",value:"value",children:"children"},ge}return S(me,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(ge){var ae=this.defaultFieldNames,pe=this.props,Me=pe.fieldNames,xe=pe.filedNames;return"filedNames"in this.props?xe[ge]||ae[ge]:Me[ge]||ae[ge]}},{key:"getFieldNames",value:function(){var ge=this.props,ae=ge.fieldNames,pe=ge.filedNames;return"filedNames"in this.props?pe:ae}},{key:"getCurrentLevelOptions",value:function(){var ge=this,ae=this.props.options,pe=ae===void 0?[]:ae,Me=this.state.activeValue,xe=Me===void 0?[]:Me,Ke=M()(pe,function(et,he){return et[ge.getFieldName("value")]===xe[he]},{childrenKeyName:this.getFieldName("children")});return Ke[Ke.length-2]?Ke[Ke.length-2][this.getFieldName("children")]:s(pe).filter(function(et){return!et.disabled})}},{key:"getActiveOptions",value:function(ge){var ae=this;return M()(this.props.options||[],function(pe,Me){return pe[ae.getFieldName("value")]===ge[Me]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var ge=this.props,ae=ge.prefixCls,pe=ge.transitionName,Me=ge.popupClassName,xe=ge.options,Ke=xe===void 0?[]:xe,et=ge.disabled,he=ge.builtinPlacements,Se=ge.popupPlacement,Ue=ge.children,Ne=ge.dropdownRender,ct=C(ge,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),ft=Z.createElement("div",null),Ot="";Ke&&Ke.length>0?ft=Z.createElement(E,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):Ot=" ".concat(ae,"-menus-empty");var dt=ft;return Ne&&(dt=Ne(ft)),Z.createElement(Q.a,Object.assign({ref:this.saveTrigger},ct,{popupPlacement:Se,builtinPlacements:he,popupTransitionName:pe,action:et?[]:["click"],popupVisible:et?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(ae,"-menus"),popupClassName:Me+Ot,popup:dt}),Z.cloneElement(Ue,{onKeyDown:this.handleKeyDown,tabIndex:et?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(ge,ae){var pe=ae.prevProps,Me=pe===void 0?{}:pe,xe={prevProps:ge};return"value"in ge&&!T(Me.value,ge.value)&&(xe.value=ge.value||[],"loadData"in ge||(xe.activeValue=ge.value||[])),"popupVisible"in ge&&(xe.popupVisible=ge.popupVisible),xe}}]),me}(Z.Component);return ie.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:w,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},ie}(),Ae=fe,ce=ee.a=Ae},"SA+Z":function(Be,ee,v){var Z=v("wTVA"),Q=v("EbDI"),I=v("ZhPi"),k=v("wkBT");function _(O){return Z(O)||Q(O)||I(O)||k()}Be.exports=_,Be.exports.__esModule=!0,Be.exports.default=Be.exports},SJMd:function(Be,ee){/**
* @license
* Copyright (C) 2006 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var v,Z,Q,I=!1,k,_;window.PR_SHOULD_USE_CONTINUATION=!0;var O,M;(function(){var T=window,n=["break,continue,do,else,for,if,return,while"],p=[n,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],a=[p,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],t=[a,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],A=[a,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],l=[a,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],i="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",c=[a,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],d="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",f=[n,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],o=[n,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],u=[n,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],E=[t,l,A,c,d,f,o,u],R=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,w="str",P="kwd",C="com",b="typ",s="lit",h="pun",m="pln",x="tag",g="dec",y="src",U="atn",N="atv",S="nocode",H="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function F(xe){for(var Ke=0,et=!1,he=!1,Se=0,Ue=xe.length;Se<Ue;++Se){var Ne=xe[Se];if(Ne.ignoreCase)he=!0;else if(/[a-z]/i.test(Ne.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){et=!0,he=!1;break}}var ct={b:8,t:9,n:10,v:11,f:12,r:13};function ft(ze){var Ve=ze.charCodeAt(0);if(Ve!==92)return Ve;var Et=ze.charAt(1);return Ve=ct[Et],Ve||("0"<=Et&&Et<="7"?parseInt(ze.substring(1),8):Et==="u"||Et==="x"?parseInt(ze.substring(2),16):ze.charCodeAt(1))}function Ot(ze){if(ze<32)return(ze<16?"\\x0":"\\x")+ze.toString(16);var Ve=String.fromCharCode(ze);return Ve==="\\"||Ve==="-"||Ve==="]"||Ve==="^"?"\\"+Ve:Ve}function dt(ze){var Ve=ze.substring(1,ze.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")),Et=[],Rt=Ve[0]==="^",ut=["["];Rt&&ut.push("^");for(var vt=Rt?1:0,Ze=Ve.length;vt<Ze;++vt){var ke=Ve[vt];if(/\\[bdsw]/i.test(ke))ut.push(ke);else{var He=ft(ke),we;vt+2<Ze&&Ve[vt+1]==="-"?(we=ft(Ve[vt+2]),vt+=2):we=He,Et.push([He,we]),we<65||He>122||(we<65||He>90||Et.push([Math.max(65,He)|32,Math.min(we,90)|32]),we<97||He>122||Et.push([Math.max(97,He)&~32,Math.min(we,122)&~32]))}}Et.sort(function(Xe,gt){return Xe[0]-gt[0]||gt[1]-Xe[1]});for(var Le=[],Pe=[],vt=0;vt<Et.length;++vt){var We=Et[vt];We[0]<=Pe[1]+1?Pe[1]=Math.max(Pe[1],We[1]):Le.push(Pe=We)}for(var vt=0;vt<Le.length;++vt){var We=Le[vt];ut.push(Ot(We[0])),We[1]>We[0]&&(We[1]+1>We[0]&&ut.push("-"),ut.push(Ot(We[1])))}return ut.push("]"),ut.join("")}function Ut(ze){for(var Ve=ze.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),Et=Ve.length,Rt=[],ut=0,vt=0;ut<Et;++ut){var Ze=Ve[ut];if(Ze==="(")++vt;else if(Ze.charAt(0)==="\\"){var ke=+Ze.substring(1);ke&&(ke<=vt?Rt[ke]=-1:Ve[ut]=Ot(ke))}}for(var ut=1;ut<Rt.length;++ut)Rt[ut]===-1&&(Rt[ut]=++Ke);for(var ut=0,vt=0;ut<Et;++ut){var Ze=Ve[ut];if(Ze==="(")++vt,Rt[vt]||(Ve[ut]="(?:");else if(Ze.charAt(0)==="\\"){var ke=+Ze.substring(1);ke&&ke<=vt&&(Ve[ut]="\\"+Rt[ke])}}for(var ut=0;ut<Et;++ut)Ve[ut]==="^"&&Ve[ut+1]!=="^"&&(Ve[ut]="");if(ze.ignoreCase&&et)for(var ut=0;ut<Et;++ut){var Ze=Ve[ut],He=Ze.charAt(0);Ze.length>=2&&He==="["?Ve[ut]=dt(Ze):He!=="\\"&&(Ve[ut]=Ze.replace(/[a-zA-Z]/g,function(Pe){var We=Pe.charCodeAt(0);return"["+String.fromCharCode(We&~32,We|32)+"]"}))}return Ve.join("")}for(var jt=[],Se=0,Ue=xe.length;Se<Ue;++Se){var Ne=xe[Se];if(Ne.global||Ne.multiline)throw new Error(""+Ne);jt.push("(?:"+Ut(Ne)+")")}return new RegExp(jt.join("|"),he?"gi":"g")}function B(xe,Ke){var et=/(?:^|\s)nocode(?:\s|$)/,he=[],Se=0,Ue=[],Ne=0;function ct(ft){var Ot=ft.nodeType;if(Ot==1){if(et.test(ft.className))return;for(var dt=ft.firstChild;dt;dt=dt.nextSibling)ct(dt);var Ut=ft.nodeName.toLowerCase();(Ut==="br"||Ut==="li")&&(he[Ne]=`
`,Ue[Ne<<1]=Se++,Ue[Ne++<<1|1]=ft)}else if(Ot==3||Ot==4){var jt=ft.nodeValue;jt.length&&(Ke?jt=jt.replace(/\r\n?/g,`
`):jt=jt.replace(/[ \t\r\n]+/g," "),he[Ne]=jt,Ue[Ne<<1]=Se,Se+=jt.length,Ue[Ne++<<1|1]=ft)}}return ct(xe),{sourceCode:he.join("").replace(/\n$/,""),spans:Ue}}function z(xe,Ke,et,he,Se){if(!et)return;var Ue={sourceNode:xe,pre:1,langExtension:null,numberLines:null,sourceCode:et,spans:null,basePos:Ke,decorations:null};he(Ue),Se.push.apply(Se,Ue.decorations)}var K=/\S/;function $(xe){for(var Ke=void 0,et=xe.firstChild;et;et=et.nextSibling){var he=et.nodeType;Ke=he===1?Ke?xe:et:he===3&&K.test(et.nodeValue)?xe:Ke}return Ke===xe?void 0:Ke}function te(xe,Ke){var et={},he;(function(){for(var Ne=xe.concat(Ke),ct=[],ft={},Ot=0,dt=Ne.length;Ot<dt;++Ot){var Ut=Ne[Ot],jt=Ut[3];if(jt)for(var ze=jt.length;--ze>=0;)et[jt.charAt(ze)]=Ut;var Ve=Ut[1],Et=""+Ve;ft.hasOwnProperty(Et)||(ct.push(Ve),ft[Et]=null)}ct.push(/[\0-\uffff]/),he=F(ct)})();var Se=Ke.length,Ue=function(Ne){for(var ct=Ne.sourceCode,ft=Ne.basePos,Ot=Ne.sourceNode,dt=[ft,m],Ut=0,jt=ct.match(he)||[],ze={},Ve=0,Et=jt.length;Ve<Et;++Ve){var Rt=jt[Ve],ut=ze[Rt],vt=void 0,Ze;if(typeof ut=="string")Ze=!1;else{var ke=et[Rt.charAt(0)];if(ke)vt=Rt.match(ke[1]),ut=ke[0];else{for(var He=0;He<Se;++He)if(ke=Ke[He],vt=Rt.match(ke[1]),vt){ut=ke[0];break}vt||(ut=m)}Ze=ut.length>=5&&ut.substring(0,5)==="lang-",Ze&&!(vt&&typeof vt[1]=="string")&&(Ze=!1,ut=y),Ze||(ze[Rt]=ut)}var we=Ut;if(Ut+=Rt.length,!Ze)dt.push(ft+we,ut);else{var Le=vt[1],Pe=Rt.indexOf(Le),We=Pe+Le.length;vt[2]&&(We=Rt.length-vt[2].length,Pe=We-Le.length);var Xe=ut.substring(5);z(Ot,ft+we,Rt.substring(0,Pe),Ue,dt),z(Ot,ft+we+Pe,Le,me(Xe,Le),dt),z(Ot,ft+we+We,Rt.substring(We),Ue,dt)}}Ne.decorations=dt};return Ue}function fe(xe){var Ke=[],et=[];xe.tripleQuotedStrings?Ke.push([w,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):xe.multiLineStrings?Ke.push([w,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Ke.push([w,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),xe.verbatimStrings&&et.push([w,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var he=xe.hashComments;he&&(xe.cStyleComments?(he>1?Ke.push([C,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Ke.push([C,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),et.push([w,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Ke.push([C,/^#[^\r\n]*/,null,"#"])),xe.cStyleComments&&(et.push([C,/^\/\/[^\r\n]*/,null]),et.push([C,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Se=xe.regexLiterals;if(Se){var Ue=Se>1?"":`
\r`,Ne=Ue?".":"[\\S\\s]",ct="/(?=[^/*"+Ue+"])(?:[^/\\x5B\\x5C"+Ue+"]|\\x5C"+Ne+"|\\x5B(?:[^\\x5C\\x5D"+Ue+"]|\\x5C"+Ne+")*(?:\\x5D|$))+/";et.push(["lang-regex",RegExp("^"+H+"("+ct+")")])}var ft=xe.types;ft&&et.push([b,ft]);var Ot=(""+xe.keywords).replace(/^ | $/g,"");Ot.length&&et.push([P,new RegExp("^(?:"+Ot.replace(/[\s,]+/g,"|")+")\\b"),null]),Ke.push([m,/^\s+/,null,` \r
\xA0`]);var dt="^.[^\\s\\w.$@'\"`/\\\\]*";return xe.regexLiterals&&(dt+="(?!s*/)"),et.push([s,/^@[a-z_$][a-z_$@0-9]*/i,null],[b,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[m,/^[a-z_$][a-z_$@0-9]*/i,null],[s,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[m,/^\\[\s\S]?/,null],[h,new RegExp(dt),null]),te(Ke,et)}var Ae=fe({keywords:E,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ce(xe,Ke,et){for(var he=/(?:^|\s)nocode(?:\s|$)/,Se=/\r\n?|\n/,Ue=xe.ownerDocument,Ne=Ue.createElement("li");xe.firstChild;)Ne.appendChild(xe.firstChild);var ct=[Ne];function ft(Ve){var Et=Ve.nodeType;if(Et==1&&!he.test(Ve.className))if(Ve.nodeName==="br")Ot(Ve),Ve.parentNode&&Ve.parentNode.removeChild(Ve);else for(var Rt=Ve.firstChild;Rt;Rt=Rt.nextSibling)ft(Rt);else if((Et==3||Et==4)&&et){var ut=Ve.nodeValue,vt=ut.match(Se);if(vt){var Ze=ut.substring(0,vt.index);Ve.nodeValue=Ze;var ke=ut.substring(vt.index+vt[0].length);if(ke){var He=Ve.parentNode;He.insertBefore(Ue.createTextNode(ke),Ve.nextSibling)}Ot(Ve),Ze||Ve.parentNode.removeChild(Ve)}}}function Ot(Ve){for(;!Ve.nextSibling;)if(Ve=Ve.parentNode,!Ve)return;function Et(vt,Ze){var ke=Ze?vt.cloneNode(!1):vt,He=vt.parentNode;if(He){var we=Et(He,1),Le=vt.nextSibling;we.appendChild(ke);for(var Pe=Le;Pe;Pe=Le)Le=Pe.nextSibling,we.appendChild(Pe)}return ke}for(var Rt=Et(Ve.nextSibling,0),ut;(ut=Rt.parentNode)&&ut.nodeType===1;)Rt=ut;ct.push(Rt)}for(var dt=0;dt<ct.length;++dt)ft(ct[dt]);Ke===(Ke|0)&&ct[0].setAttribute("value",Ke);var Ut=Ue.createElement("ol");Ut.className="linenums";for(var jt=Math.max(0,Ke-1|0)||0,dt=0,ze=ct.length;dt<ze;++dt)Ne=ct[dt],Ne.className="L"+(dt+jt)%10,Ne.firstChild||Ne.appendChild(Ue.createTextNode("\xA0")),Ut.appendChild(Ne);xe.appendChild(Ut)}function ie(xe){var Ke=/\bMSIE\s(\d+)/.exec(navigator.userAgent);Ke=Ke&&+Ke[1]<=8;var et=/\n/g,he=xe.sourceCode,Se=he.length,Ue=0,Ne=xe.spans,ct=Ne.length,ft=0,Ot=xe.decorations,dt=Ot.length,Ut=0;Ot[dt]=Se;var jt,ze;for(ze=jt=0;ze<dt;)Ot[ze]!==Ot[ze+2]?(Ot[jt++]=Ot[ze++],Ot[jt++]=Ot[ze++]):ze+=2;for(dt=jt,ze=jt=0;ze<dt;){for(var Ve=Ot[ze],Et=Ot[ze+1],Rt=ze+2;Rt+2<=dt&&Ot[Rt+1]===Et;)Rt+=2;Ot[jt++]=Ve,Ot[jt++]=Et,ze=Rt}dt=Ot.length=jt;var ut=xe.sourceNode,vt="";ut&&(vt=ut.style.display,ut.style.display="none");try{for(var Ze=null;ft<ct;){var ke=Ne[ft],He=Ne[ft+2]||Se,we=Ot[Ut+2]||Se,Rt=Math.min(He,we),Le=Ne[ft+1],Pe;if(Le.nodeType!==1&&(Pe=he.substring(Ue,Rt))){Ke&&(Pe=Pe.replace(et,"\r")),Le.nodeValue=Pe;var We=Le.ownerDocument,Xe=We.createElement("span");Xe.className=Ot[Ut+1];var gt=Le.parentNode;gt.replaceChild(Xe,Le),Xe.appendChild(Le),Ue<He&&(Ne[ft+1]=Le=We.createTextNode(he.substring(Rt,He)),gt.insertBefore(Le,Xe.nextSibling))}Ue=Rt,Ue>=He&&(ft+=2),Ue>=we&&(Ut+=2)}}finally{ut&&(ut.style.display=vt)}}var ye={};function le(xe,Ke){for(var et=Ke.length;--et>=0;){var he=Ke[et];ye.hasOwnProperty(he)?T.console&&console.warn("cannot override language handler %s",he):ye[he]=xe}}function me(xe,Ke){return xe&&ye.hasOwnProperty(xe)||(xe=/^\s*</.test(Ke)?"default-markup":"default-code"),ye[xe]}le(Ae,["default-code"]),le(te([],[[m,/^[^<?]+/],[g,/^<!\w[^>]*(?:>|$)/],[C,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[h,/^(?:<[%?]|[%?]>)/],["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"]),le(te([[m,/^[\s]+/,null,` \r
`],[N,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[x,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[U,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[h,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),le(te([],[[N,/^[\s\S]+/]]),["uq.val"]),le(fe({keywords:t,hashComments:!0,cStyleComments:!0,types:R}),["c","cc","cpp","cxx","cyc","m"]),le(fe({keywords:"null,true,false"}),["json"]),le(fe({keywords:l,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:R}),["cs"]),le(fe({keywords:A,cStyleComments:!0}),["java"]),le(fe({keywords:u,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),le(fe({keywords:f,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),le(fe({keywords:d,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),le(fe({keywords:o,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),le(fe({keywords:c,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),le(fe({keywords:i,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),le(te([],[[w,/^[\s\S]+/]]),["regex"]);function se(xe){var Ke=xe.langExtension;try{var et=B(xe.sourceNode,xe.pre),he=et.sourceCode;xe.sourceCode=he,xe.spans=et.spans,xe.basePos=0,me(Ke,he)(xe),ie(xe)}catch(Se){T.console&&console.log(Se&&Se.stack||Se)}}function ge(xe,Ke,et){var he=et||!1,Se=Ke||null,Ue=document.createElement("div");Ue.innerHTML="<pre>"+xe+"</pre>",Ue=Ue.firstChild,he&&ce(Ue,he,!0);var Ne={langExtension:Se,numberLines:he,sourceNode:Ue,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return se(Ne),Ue.innerHTML}function ae(xe,Ke){var et=Ke||document.body,he=et.ownerDocument||document;function Se(ke){return et.getElementsByTagName(ke)}for(var Ue=[Se("pre"),Se("code"),Se("xmp")],Ne=[],ct=0;ct<Ue.length;++ct)for(var ft=0,Ot=Ue[ct].length;ft<Ot;++ft)Ne.push(Ue[ct][ft]);Ue=null;var dt=Date;dt.now||(dt={now:function(){return+new Date}});var Ut=0,jt=/\blang(?:uage)?-([\w.]+)(?!\S)/,ze=/\bprettyprint\b/,Ve=/\bprettyprinted\b/,Et=/pre|xmp/i,Rt=/^code$/i,ut=/^(?:pre|code|xmp)$/i,vt={};function Ze(){for(var ke=T.PR_SHOULD_USE_CONTINUATION?dt.now()+250:Infinity;Ut<Ne.length&&dt.now()<ke;Ut++){for(var He=Ne[Ut],we=vt,Le=He;Le=Le.previousSibling;){var Pe=Le.nodeType,We=(Pe===7||Pe===8)&&Le.nodeValue;if(We?!/^\??prettify\b/.test(We):Pe!==3||/\S/.test(Le.nodeValue))break;if(We){we={},We.replace(/\b(\w+)=([\w:.%+-]+)/g,function(St,bt,Dt){we[bt]=Dt});break}}var Xe=He.className;if((we!==vt||ze.test(Xe))&&!Ve.test(Xe)){for(var gt=!1,Lt=He.parentNode;Lt;Lt=Lt.parentNode){var en=Lt.tagName;if(ut.test(en)&&Lt.className&&ze.test(Lt.className)){gt=!0;break}}if(!gt){He.className+=" prettyprinted";var Zt=we.lang;if(!Zt){Zt=Xe.match(jt);var xt;!Zt&&(xt=$(He))&&Rt.test(xt.tagName)&&(Zt=xt.className.match(jt)),Zt&&(Zt=Zt[1])}var Ct;if(Et.test(He.tagName))Ct=1;else{var mt=He.currentStyle,Je=he.defaultView,Qe=mt?mt.whiteSpace:Je&&Je.getComputedStyle?Je.getComputedStyle(He,null).getPropertyValue("white-space"):0;Ct=Qe&&Qe.substring(0,3)==="pre"}var Oe=we.linenums;(Oe=Oe==="true"||+Oe)||(Oe=Xe.match(/\blinenums\b(?::(\d+))?/),Oe=Oe?Oe[1]&&Oe[1].length?+Oe[1]:!0:!1),Oe&&ce(He,Oe,Ct);var je={langExtension:Zt,sourceNode:He,numberLines:Oe,pre:Ct,sourceCode:null,basePos:null,spans:null,decorations:null};se(je)}}}Ut<Ne.length?T.setTimeout(Ze,250):typeof xe=="function"&&xe()}Ze()}var pe=T.PR={createSimpleLexer:te,registerLangHandler:le,sourceDecorator:fe,PR_ATTRIB_NAME:U,PR_ATTRIB_VALUE:N,PR_COMMENT:C,PR_DECLARATION:g,PR_KEYWORD:P,PR_LITERAL:s,PR_NOCODE:S,PR_PLAIN:m,PR_PUNCTUATION:h,PR_SOURCE:y,PR_STRING:w,PR_TAG:x,PR_TYPE:b,prettyPrintOne:I?T.prettyPrintOne=ge:O=ge,prettyPrint:M=I?T.prettyPrint=ae:M=ae},Me=T.define;typeof Me=="function"&&Me.amd&&Me("google-code-prettify",[],function(){return pe})})()},SKnc:function(Be,ee,v){var Z=v("bYtY"),Q=v("QuXc"),I=function(_,O,M,T,n,p){this.x=_==null?0:_,this.y=O==null?0:O,this.x2=M==null?1:M,this.y2=T==null?0:T,this.type="linear",this.global=p||!1,Q.call(this,n)};I.prototype={constructor:I},Z.inherits(I,Q);var k=I;Be.exports=k},SMhR:function(Be,ee){Be.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(Be,ee,v){var Z=v("LPTA"),Q=Z.debugMode,I=function(){};Q===1&&(I=console.error);var k=I;Be.exports=k},Sj9i:function(Be,ee,v){var Z=v("QBsz"),Q=Z.create,I=Z.distSquare,k=Math.pow,_=Math.sqrt,O=1e-8,M=1e-4,T=_(3),n=1/3,p=Q(),a=Q(),t=Q();function A(s){return s>-O&&s<O}function l(s){return s>O||s<-O}function i(s,h,m,x,g){var y=1-g;return y*y*(y*s+3*g*h)+g*g*(g*x+3*y*m)}function c(s,h,m,x,g){var y=1-g;return 3*(((h-s)*y+2*(m-h)*g)*y+(x-m)*g*g)}function d(s,h,m,x,g,y){var U=x+3*(h-m)-s,N=3*(m-h*2+s),S=3*(h-s),H=s-g,F=N*N-3*U*S,B=N*S-9*U*H,z=S*S-3*N*H,K=0;if(A(F)&&A(B))if(A(N))y[0]=0;else{var $=-S/N;$>=0&&$<=1&&(y[K++]=$)}else{var te=B*B-4*F*z;if(A(te)){var fe=B/F,$=-N/U+fe,Ae=-fe/2;$>=0&&$<=1&&(y[K++]=$),Ae>=0&&Ae<=1&&(y[K++]=Ae)}else if(te>0){var ce=_(te),ie=F*N+1.5*U*(-B+ce),ye=F*N+1.5*U*(-B-ce);ie<0?ie=-k(-ie,n):ie=k(ie,n),ye<0?ye=-k(-ye,n):ye=k(ye,n);var $=(-N-(ie+ye))/(3*U);$>=0&&$<=1&&(y[K++]=$)}else{var le=(2*F*N-3*U*B)/(2*_(F*F*F)),me=Math.acos(le)/3,se=_(F),ge=Math.cos(me),$=(-N-2*se*ge)/(3*U),Ae=(-N+se*(ge+T*Math.sin(me)))/(3*U),ae=(-N+se*(ge-T*Math.sin(me)))/(3*U);$>=0&&$<=1&&(y[K++]=$),Ae>=0&&Ae<=1&&(y[K++]=Ae),ae>=0&&ae<=1&&(y[K++]=ae)}}return K}function f(s,h,m,x,g){var y=6*m-12*h+6*s,U=9*h+3*x-3*s-9*m,N=3*h-3*s,S=0;if(A(U)){if(l(y)){var H=-N/y;H>=0&&H<=1&&(g[S++]=H)}}else{var F=y*y-4*U*N;if(A(F))g[0]=-y/(2*U);else if(F>0){var B=_(F),H=(-y+B)/(2*U),z=(-y-B)/(2*U);H>=0&&H<=1&&(g[S++]=H),z>=0&&z<=1&&(g[S++]=z)}}return S}function o(s,h,m,x,g,y){var U=(h-s)*g+s,N=(m-h)*g+h,S=(x-m)*g+m,H=(N-U)*g+U,F=(S-N)*g+N,B=(F-H)*g+H;y[0]=s,y[1]=U,y[2]=H,y[3]=B,y[4]=B,y[5]=F,y[6]=S,y[7]=x}function u(s,h,m,x,g,y,U,N,S,H,F){var B,z=.005,K=Infinity,$,te,fe,Ae;p[0]=S,p[1]=H;for(var ce=0;ce<1;ce+=.05)a[0]=i(s,m,g,U,ce),a[1]=i(h,x,y,N,ce),fe=I(p,a),fe<K&&(B=ce,K=fe);K=Infinity;for(var ie=0;ie<32&&!(z<M);ie++)$=B-z,te=B+z,a[0]=i(s,m,g,U,$),a[1]=i(h,x,y,N,$),fe=I(a,p),$>=0&&fe<K?(B=$,K=fe):(t[0]=i(s,m,g,U,te),t[1]=i(h,x,y,N,te),Ae=I(t,p),te<=1&&Ae<K?(B=te,K=Ae):z*=.5);return F&&(F[0]=i(s,m,g,U,B),F[1]=i(h,x,y,N,B)),_(K)}function E(s,h,m,x){var g=1-x;return g*(g*s+2*x*h)+x*x*m}function R(s,h,m,x){return 2*((1-x)*(h-s)+x*(m-h))}function w(s,h,m,x,g){var y=s-2*h+m,U=2*(h-s),N=s-x,S=0;if(A(y)){if(l(U)){var H=-N/U;H>=0&&H<=1&&(g[S++]=H)}}else{var F=U*U-4*y*N;if(A(F)){var H=-U/(2*y);H>=0&&H<=1&&(g[S++]=H)}else if(F>0){var B=_(F),H=(-U+B)/(2*y),z=(-U-B)/(2*y);H>=0&&H<=1&&(g[S++]=H),z>=0&&z<=1&&(g[S++]=z)}}return S}function P(s,h,m){var x=s+m-2*h;return x===0?.5:(s-h)/x}function C(s,h,m,x,g){var y=(h-s)*x+s,U=(m-h)*x+h,N=(U-y)*x+y;g[0]=s,g[1]=y,g[2]=N,g[3]=N,g[4]=U,g[5]=m}function b(s,h,m,x,g,y,U,N,S){var H,F=.005,B=Infinity;p[0]=U,p[1]=N;for(var z=0;z<1;z+=.05){a[0]=E(s,m,g,z),a[1]=E(h,x,y,z);var K=I(p,a);K<B&&(H=z,B=K)}B=Infinity;for(var $=0;$<32&&!(F<M);$++){var te=H-F,fe=H+F;a[0]=E(s,m,g,te),a[1]=E(h,x,y,te);var K=I(a,p);if(te>=0&&K<B)H=te,B=K;else{t[0]=E(s,m,g,fe),t[1]=E(h,x,y,fe);var Ae=I(t,p);fe<=1&&Ae<B?(H=fe,B=Ae):F*=.5}}return S&&(S[0]=E(s,m,g,H),S[1]=E(h,x,y,H)),_(B)}ee.cubicAt=i,ee.cubicDerivativeAt=c,ee.cubicRootAt=d,ee.cubicExtrema=f,ee.cubicSubdivide=o,ee.cubicProjectPoint=u,ee.quadraticAt=E,ee.quadraticDerivativeAt=R,ee.quadraticRootAt=w,ee.quadraticExtremum=P,ee.quadraticSubdivide=C,ee.quadraticProjectPoint=b},SqI9:function(Be,ee,v){var Z=v("y+Vt"),Q=v("iXp4"),I=Z.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},brush:Q(Z.prototype.brush),buildPath:function(k,_){var O=_.cx,M=_.cy,T=Math.max(_.r0||0,0),n=Math.max(_.r,0),p=_.startAngle,a=_.endAngle,t=_.clockwise,A=Math.cos(p),l=Math.sin(p);k.moveTo(A*T+O,l*T+M),k.lineTo(A*n+O,l*n+M),k.arc(O,M,n,p,a,!t),k.lineTo(Math.cos(a)*T+O,Math.sin(a)*T+M),T!==0&&k.arc(O,M,T,a,p,t),k.closePath()}});Be.exports=I},SrGk:function(Be,ee,v){var Z=v("hydK"),Q=Z.createElement,I=v("bYtY"),k=v("y+Vt"),_=v("Dagg"),O=v("dqUG"),M=v("P47w"),T=M.path,n=M.image,p=M.text,a="0",t="1";function A(i,c,d,f,o){this._zrId=i,this._svgRoot=c,this._tagNames=typeof d=="string"?[d]:d,this._markLabel=f,this._domName=o||"_dom",this.nextId=0}A.prototype.createElement=Q,A.prototype.getDefs=function(i){var c=this._svgRoot,d=this._svgRoot.getElementsByTagName("defs");return d.length===0?i?(d=c.insertBefore(this.createElement("defs"),c.firstChild),d.contains||(d.contains=function(f){var o=d.children;if(!o)return!1;for(var u=o.length-1;u>=0;--u)if(o[u]===f)return!0;return!1}),d):null:d[0]},A.prototype.update=function(i,c){if(!i)return;var d=this.getDefs(!1);if(i[this._domName]&&d.contains(i[this._domName]))typeof c=="function"&&c(i);else{var f=this.add(i);f&&(i[this._domName]=f)}},A.prototype.addDom=function(i){var c=this.getDefs(!0);c.appendChild(i)},A.prototype.removeDom=function(i){var c=this.getDefs(!1);c&&i[this._domName]&&(c.removeChild(i[this._domName]),i[this._domName]=null)},A.prototype.getDoms=function(){var i=this.getDefs(!1);if(!i)return[];var c=[];return I.each(this._tagNames,function(d){var f=i.getElementsByTagName(d);c=c.concat([].slice.call(f))}),c},A.prototype.markAllUnused=function(){var i=this.getDoms(),c=this;I.each(i,function(d){d[c._markLabel]=a})},A.prototype.markUsed=function(i){i&&(i[this._markLabel]=t)},A.prototype.removeUnused=function(){var i=this.getDefs(!1);if(!i)return;var c=this.getDoms(),d=this;I.each(c,function(f){f[d._markLabel]!==t&&i.removeChild(f)})},A.prototype.getSvgProxy=function(i){return i instanceof k?T:i instanceof _?n:i instanceof O?p:T},A.prototype.getTextSvgElement=function(i){return i.__textSvgEl},A.prototype.getSvgElement=function(i){return i.__svgEl};var l=A;Be.exports=l},T6xi:function(Be,ee,v){var Z=v("YgsL"),Q=v("nCxF");function I(k,_,O){var M=_.points,T=_.smooth;if(M&&M.length>=2){if(T&&T!=="spline"){var n=Q(M,T,O,_.smoothConstraint);k.moveTo(M[0][0],M[0][1]);for(var p=M.length,a=0;a<(O?p:p-1);a++){var t=n[a*2],A=n[a*2+1],l=M[(a+1)%p];k.bezierCurveTo(t[0],t[1],A[0],A[1],l[0],l[1])}}else{T==="spline"&&(M=Z(M,O)),k.moveTo(M[0][0],M[0][1]);for(var a=1,i=M.length;a<i;a++)k.lineTo(M[a][0],M[a][1])}O&&k.closePath()}}ee.buildPath=I},T8No:function(Be,ee,v){"use strict";v.d(ee,"a",function(){return M}),v.d(ee,"e",function(){return T}),v.d(ee,"c",function(){return h}),v.d(ee,"b",function(){return m}),v.d(ee,"d",function(){return x}),v.d(ee,"f",function(){return U});var Z=v("MNsG"),Q=v("N0LK"),I=v("Cg/j");let k=Z.k||"";const _=new Map;_.set("false",!1),_.set("true",!0),_.set("isMac",Z.f),_.set("isLinux",Z.d),_.set("isWindows",Z.i),_.set("isWeb",Z.h),_.set("isMacNative",Z.f&&!Z.h),_.set("isEdge",k.indexOf("Edg/")>=0),_.set("isFirefox",k.indexOf("Firefox")>=0),_.set("isChrome",k.indexOf("Chrome")>=0),_.set("isSafari",k.indexOf("Safari")>=0);const O=Object.prototype.hasOwnProperty;class M{static has(S){return t.create(S)}static equals(S,H){return A.create(S,H)}static regex(S,H){return w.create(S,H)}static not(S){return d.create(S)}static and(...S){return b.create(S,null)}static or(...S){return s.create(S,null,!0)}static deserialize(S,H=!1){return S?this._deserializeOrExpression(S,H):void 0}static _deserializeOrExpression(S,H){let F=S.split("||");return s.create(F.map(B=>this._deserializeAndExpression(B,H)),null,!0)}static _deserializeAndExpression(S,H){let F=S.split("&&");return b.create(F.map(B=>this._deserializeOne(B,H)),null)}static _deserializeOne(S,H){if(S=S.trim(),S.indexOf("!=")>=0){let F=S.split("!=");return c.create(F[0].trim(),this._deserializeValue(F[1],H))}if(S.indexOf("==")>=0){let F=S.split("==");return A.create(F[0].trim(),this._deserializeValue(F[1],H))}if(S.indexOf("=~")>=0){let F=S.split("=~");return w.create(F[0].trim(),this._deserializeRegexValue(F[1],H))}if(S.indexOf(" in ")>=0){let F=S.split(" in ");return l.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(S)){const F=S.split(">=");return u.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(S)){const F=S.split(">");return o.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(S)){const F=S.split("<=");return R.create(F[0].trim(),F[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(S)){const F=S.split("<");return E.create(F[0].trim(),F[1].trim())}return/^\!\s*/.test(S)?d.create(S.substr(1).trim()):t.create(S)}static _deserializeValue(S,H){if(S=S.trim(),S==="true")return!0;if(S==="false")return!1;let F=/^'([^']*)'$/.exec(S);return F?F[1].trim():S}static _deserializeRegexValue(S,H){if(Object(Q.C)(S)){if(H)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let F=S.indexOf("/"),B=S.lastIndexOf("/");if(F===B||F<0){if(H)throw new Error(`bad regexp-value '${S}', missing /-enclosure`);return console.warn(`bad regexp-value '${S}', missing /-enclosure`),null}let z=S.slice(F+1,B),K=S[B+1]==="i"?"i":"";try{return new RegExp(z,K)}catch($){if(H)throw new Error(`bad regexp-value '${S}', parse error: ${$}`);return console.warn(`bad regexp-value '${S}', parse error: ${$}`),null}}}function T(S,H){const F=S?S.substituteConstants():void 0,B=H?H.substituteConstants():void 0;return!F&&!B?!0:!F||!B?!1:F.equals(B)}function n(S,H){return S.cmp(H)}class p{constructor(){this.type=0}cmp(S){return this.type-S.type}equals(S){return S.type===this.type}substituteConstants(){return this}evaluate(S){return!1}serialize(){return"false"}keys(){return[]}negate(){return a.INSTANCE}}p.INSTANCE=new p;class a{constructor(){this.type=1}cmp(S){return this.type-S.type}equals(S){return S.type===this.type}substituteConstants(){return this}evaluate(S){return!0}serialize(){return"true"}keys(){return[]}negate(){return p.INSTANCE}}a.INSTANCE=new a;class t{constructor(S,H){this.key=S,this.negated=H,this.type=2}static create(S,H=null){const F=_.get(S);return typeof F=="boolean"?F?a.INSTANCE:p.INSTANCE:new t(S,H)}cmp(S){return S.type!==this.type?this.type-S.type:g(this.key,S.key)}equals(S){return S.type===this.type?this.key===S.key:!1}substituteConstants(){const S=_.get(this.key);return typeof S=="boolean"?S?a.INSTANCE:p.INSTANCE:this}evaluate(S){return!!S.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=d.create(this.key,this)),this.negated}}class A{constructor(S,H,F){this.key=S,this.value=H,this.negated=F,this.type=4}static create(S,H,F=null){if(typeof H=="boolean")return H?t.create(S,F):d.create(S,F);const B=_.get(S);if(typeof B=="boolean"){const z=B?"true":"false";return H===z?a.INSTANCE:p.INSTANCE}return new A(S,H,F)}cmp(S){return S.type!==this.type?this.type-S.type:y(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){const S=_.get(this.key);if(typeof S=="boolean"){const H=S?"true":"false";return this.value===H?a.INSTANCE:p.INSTANCE}return this}evaluate(S){return S.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=c.create(this.key,this.value,this)),this.negated}}class l{constructor(S,H){this.key=S,this.valueKey=H,this.type=10,this.negated=null}static create(S,H){return new l(S,H)}cmp(S){return S.type!==this.type?this.type-S.type:y(this.key,this.valueKey,S.key,S.valueKey)}equals(S){return S.type===this.type?this.key===S.key&&this.valueKey===S.valueKey:!1}substituteConstants(){return this}evaluate(S){const H=S.getValue(this.valueKey),F=S.getValue(this.key);return Array.isArray(H)?H.indexOf(F)>=0:typeof F=="string"&&typeof H=="object"&&H!==null?O.call(H,F):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=i.create(this)),this.negated}}class i{constructor(S){this._actual=S,this.type=11}static create(S){return new i(S)}cmp(S){return S.type!==this.type?this.type-S.type:this._actual.cmp(S._actual)}equals(S){return S.type===this.type?this._actual.equals(S._actual):!1}substituteConstants(){return this}evaluate(S){return!this._actual.evaluate(S)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class c{constructor(S,H,F){this.key=S,this.value=H,this.negated=F,this.type=5}static create(S,H,F=null){if(typeof H=="boolean")return H?d.create(S,F):t.create(S,F);const B=_.get(S);if(typeof B=="boolean"){const z=B?"true":"false";return H===z?p.INSTANCE:a.INSTANCE}return new c(S,H,F)}cmp(S){return S.type!==this.type?this.type-S.type:y(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){const S=_.get(this.key);if(typeof S=="boolean"){const H=S?"true":"false";return this.value===H?p.INSTANCE:a.INSTANCE}return this}evaluate(S){return S.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this.value,this)),this.negated}}class d{constructor(S,H){this.key=S,this.negated=H,this.type=3}static create(S,H=null){const F=_.get(S);return typeof F=="boolean"?F?p.INSTANCE:a.INSTANCE:new d(S,H)}cmp(S){return S.type!==this.type?this.type-S.type:g(this.key,S.key)}equals(S){return S.type===this.type?this.key===S.key:!1}substituteConstants(){const S=_.get(this.key);return typeof S=="boolean"?S?p.INSTANCE:a.INSTANCE:this}evaluate(S){return!S.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=t.create(this.key,this)),this.negated}}function f(S,H){if(typeof S=="string"){const F=parseFloat(S);isNaN(F)||(S=F)}return typeof S=="string"||typeof S=="number"?H(S):p.INSTANCE}class o{constructor(S,H,F){this.key=S,this.value=H,this.negated=F,this.type=12}static create(S,H,F=null){return f(H,B=>new o(S,B,F))}cmp(S){return S.type!==this.type?this.type-S.type:y(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){return this}evaluate(S){return typeof this.value=="string"?!1:parseFloat(S.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=R.create(this.key,this.value,this)),this.negated}}class u{constructor(S,H,F){this.key=S,this.value=H,this.negated=F,this.type=13}static create(S,H,F=null){return f(H,B=>new u(S,B,F))}cmp(S){return S.type!==this.type?this.type-S.type:y(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){return this}evaluate(S){return typeof this.value=="string"?!1:parseFloat(S.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=E.create(this.key,this.value,this)),this.negated}}class E{constructor(S,H,F){this.key=S,this.value=H,this.negated=F,this.type=14}static create(S,H,F=null){return f(H,B=>new E(S,B,F))}cmp(S){return S.type!==this.type?this.type-S.type:y(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){return this}evaluate(S){return typeof this.value=="string"?!1:parseFloat(S.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=u.create(this.key,this.value,this)),this.negated}}class R{constructor(S,H,F){this.key=S,this.value=H,this.negated=F,this.type=15}static create(S,H,F=null){return f(H,B=>new R(S,B,F))}cmp(S){return S.type!==this.type?this.type-S.type:y(this.key,this.value,S.key,S.value)}equals(S){return S.type===this.type?this.key===S.key&&this.value===S.value:!1}substituteConstants(){return this}evaluate(S){return typeof this.value=="string"?!1:parseFloat(S.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=o.create(this.key,this.value,this)),this.negated}}class w{constructor(S,H){this.key=S,this.regexp=H,this.type=7,this.negated=null}static create(S,H){return new w(S,H)}cmp(S){if(S.type!==this.type)return this.type-S.type;if(this.key<S.key)return-1;if(this.key>S.key)return 1;const H=this.regexp?this.regexp.source:"",F=S.regexp?S.regexp.source:"";return H<F?-1:H>F?1:0}equals(S){if(S.type===this.type){const H=this.regexp?this.regexp.source:"",F=S.regexp?S.regexp.source:"";return this.key===S.key&&H===F}return!1}substituteConstants(){return this}evaluate(S){let H=S.getValue(this.key);return this.regexp?this.regexp.test(H):!1}serialize(){const S=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${S}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this)),this.negated}}class P{constructor(S){this._actual=S,this.type=8}static create(S){return new P(S)}cmp(S){return S.type!==this.type?this.type-S.type:this._actual.cmp(S._actual)}equals(S){return S.type===this.type?this._actual.equals(S._actual):!1}substituteConstants(){return this}evaluate(S){return!this._actual.evaluate(S)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function C(S){let H=null;for(let F=0,B=S.length;F<B;F++){const z=S[F].substituteConstants();if(S[F]!==z&&H===null){H=[];for(let K=0;K<F;K++)H[K]=S[K]}H!==null&&(H[F]=z)}return H===null?S:H}class b{constructor(S,H){this.expr=S,this.negated=H,this.type=6}static create(S,H){return b._normalizeArr(S,H)}cmp(S){if(S.type!==this.type)return this.type-S.type;if(this.expr.length<S.expr.length)return-1;if(this.expr.length>S.expr.length)return 1;for(let H=0,F=this.expr.length;H<F;H++){const B=n(this.expr[H],S.expr[H]);if(B!==0)return B}return 0}equals(S){if(S.type===this.type){if(this.expr.length!==S.expr.length)return!1;for(let H=0,F=this.expr.length;H<F;H++)if(!this.expr[H].equals(S.expr[H]))return!1;return!0}return!1}substituteConstants(){const S=C(this.expr);return S===this.expr?this:b.create(S,this.negated)}evaluate(S){for(let H=0,F=this.expr.length;H<F;H++)if(!this.expr[H].evaluate(S))return!1;return!0}static _normalizeArr(S,H){const F=[];let B=!1;for(const z of S){if(!z)continue;if(z.type===1){B=!0;continue}if(z.type===0)return p.INSTANCE;if(z.type===6){F.push(...z.expr);continue}F.push(z)}if(F.length===0&&B)return a.INSTANCE;if(F.length===0)return;if(F.length===1)return F[0];F.sort(n);for(let z=1;z<F.length;z++)F[z-1].equals(F[z])&&(F.splice(z,1),z--);if(F.length===1)return F[0];for(;F.length>1;){const z=F[F.length-1];if(z.type!==9)break;F.pop();const K=F.pop(),$=F.length===0,te=s.create(z.expr.map(fe=>b.create([fe,K],null)),null,$);te&&(F.push(te),F.sort(n))}return F.length===1?F[0]:new b(F,H)}serialize(){return this.expr.map(S=>S.serialize()).join(" && ")}keys(){const S=[];for(let H of this.expr)S.push(...H.keys());return S}negate(){if(!this.negated){const S=[];for(let H of this.expr)S.push(H.negate());this.negated=s.create(S,this,!0)}return this.negated}}class s{constructor(S,H){this.expr=S,this.negated=H,this.type=9}static create(S,H,F){return s._normalizeArr(S,H,F)}cmp(S){if(S.type!==this.type)return this.type-S.type;if(this.expr.length<S.expr.length)return-1;if(this.expr.length>S.expr.length)return 1;for(let H=0,F=this.expr.length;H<F;H++){const B=n(this.expr[H],S.expr[H]);if(B!==0)return B}return 0}equals(S){if(S.type===this.type){if(this.expr.length!==S.expr.length)return!1;for(let H=0,F=this.expr.length;H<F;H++)if(!this.expr[H].equals(S.expr[H]))return!1;return!0}return!1}substituteConstants(){const S=C(this.expr);return S===this.expr?this:s.create(S,this.negated,!1)}evaluate(S){for(let H=0,F=this.expr.length;H<F;H++)if(this.expr[H].evaluate(S))return!0;return!1}static _normalizeArr(S,H,F){let B=[],z=!1;if(S){for(let K=0,$=S.length;K<$;K++){const te=S[K];if(!te)continue;if(te.type===0){z=!0;continue}if(te.type===1)return a.INSTANCE;if(te.type===9){B=B.concat(te.expr);continue}B.push(te)}if(B.length===0&&z)return p.INSTANCE;B.sort(n)}if(B.length===0)return;if(B.length===1)return B[0];for(let K=1;K<B.length;K++)B[K-1].equals(B[K])&&(B.splice(K,1),K--);if(B.length===1)return B[0];if(F){for(let K=0;K<B.length;K++)for(let $=K+1;$<B.length;$++)U(B[K],B[$])&&(B.splice($,1),$--);if(B.length===1)return B[0]}return new s(B,H)}serialize(){return this.expr.map(S=>S.serialize()).join(" || ")}keys(){const S=[];for(let H of this.expr)S.push(...H.keys());return S}negate(){if(!this.negated){let S=[];for(let H of this.expr)S.push(H.negate());for(;S.length>1;){const H=S.shift(),F=S.shift(),B=[];for(const K of N(H))for(const $ of N(F))B.push(b.create([K,$],null));const z=S.length===0;S.unshift(s.create(B,null,z))}this.negated=S[0]}return this.negated}}class h extends t{constructor(S,H,F){super(S,null);this._defaultValue=H,typeof F=="object"?h._info.push(Object.assign(Object.assign({},F),{key:S})):F!==!0&&h._info.push({key:S,description:F,type:H!=null?typeof H:void 0})}static all(){return h._info.values()}bindTo(S){return S.createKey(this.key,this._defaultValue)}getValue(S){return S.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(S){return A.create(this.key,S)}}h._info=[];const m=Object(I.c)("contextKeyService"),x="setContext";function g(S,H){return S<H?-1:S>H?1:0}function y(S,H,F,B){return S<F?-1:S>F?1:H<B?-1:H>B?1:0}function U(S,H){if(H.type===6&&S.type!==9&&S.type!==6){for(const z of H.expr)if(S.equals(z))return!0}const F=S.negate(),B=N(F).concat(N(H));B.sort(n);for(let z=0;z<B.length;z++){const K=B[z],$=K.negate();for(let te=z+1;te<B.length;te++){const fe=B[te];if($.equals(fe))return!0}}return!1}function N(S){return S.type===9?S.expr:[S]}},TGq3:function(Be,ee,v){Be.exports=v.p+"static/lockclose.365036e8.svg"},TXwP:function(Be,ee,v){var Z,Q;(function(){var I;(function(){"use strict";var _=[,,function(n){function p(A){this.__parent=A,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}p.prototype.clone_empty=function(){var A=new p(this.__parent);return A.set_indent(this.__indent_count,this.__alignment_count),A},p.prototype.item=function(A){return A<0?this.__items[this.__items.length+A]:this.__items[A]},p.prototype.has_match=function(A){for(var l=this.__items.length-1;l>=0;l--)if(this.__items[l].match(A))return!0;return!1},p.prototype.set_indent=function(A,l){this.is_empty()&&(this.__indent_count=A||0,this.__alignment_count=l||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},p.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},p.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},p.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var A=this.__parent.current_line;return A.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),A.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),A.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,A.__items[0]===" "&&(A.__items.splice(0,1),A.__character_count-=1),!0}return!1},p.prototype.is_empty=function(){return this.__items.length===0},p.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},p.prototype.push=function(A){this.__items.push(A);var l=A.lastIndexOf(`
`);l!==-1?this.__character_count=A.length-l:this.__character_count+=A.length},p.prototype.pop=function(){var A=null;return this.is_empty()||(A=this.__items.pop(),this.__character_count-=A.length),A},p.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},p.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},p.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},p.prototype.toString=function(){var A="";return this.is_empty()?this.__parent.indent_empty_lines&&(A=this.__parent.get_indent_string(this.__indent_count)):(A=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),A+=this.__items.join("")),A};function a(A,l){this.__cache=[""],this.__indent_size=A.indent_size,this.__indent_string=A.indent_char,A.indent_with_tabs||(this.__indent_string=new Array(A.indent_size+1).join(A.indent_char)),l=l||"",A.indent_level>0&&(l=new Array(A.indent_level+1).join(this.__indent_string)),this.__base_string=l,this.__base_string_length=l.length}a.prototype.get_indent_size=function(A,l){var i=this.__base_string_length;return l=l||0,A<0&&(i=0),i+=A*this.__indent_size,i+=l,i},a.prototype.get_indent_string=function(A,l){var i=this.__base_string;return l=l||0,A<0&&(A=0,i=""),l+=A*this.__indent_size,this.__ensure_cache(l),i+=this.__cache[l],i},a.prototype.__ensure_cache=function(A){for(;A>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var A=this.__cache.length,l=0,i="";this.__indent_size&&A>=this.__indent_size&&(l=Math.floor(A/this.__indent_size),A-=l*this.__indent_size,i=new Array(l+1).join(this.__indent_string)),A&&(i+=new Array(A+1).join(" ")),this.__cache.push(i)};function t(A,l){this.__indent_cache=new a(A,l),this.raw=!1,this._end_with_newline=A.end_with_newline,this.indent_size=A.indent_size,this.wrap_line_length=A.wrap_line_length,this.indent_empty_lines=A.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new p(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},t.prototype.get_line_number=function(){return this.__lines.length},t.prototype.get_indent_string=function(A,l){return this.__indent_cache.get_indent_string(A,l)},t.prototype.get_indent_size=function(A,l){return this.__indent_cache.get_indent_size(A,l)},t.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},t.prototype.add_new_line=function(A){return this.is_empty()||!A&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},t.prototype.get_code=function(A){this.trim(!0);var l=this.current_line.pop();l&&(l[l.length-1]===`
`&&(l=l.replace(/\n+$/g,"")),this.current_line.push(l)),this._end_with_newline&&this.__add_outputline();var i=this.__lines.join(`
`);return A!==`
`&&(i=i.replace(/[\n]/g,A)),i},t.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},t.prototype.set_indent=function(A,l){return A=A||0,l=l||0,this.next_line.set_indent(A,l),this.__lines.length>1?(this.current_line.set_indent(A,l),!0):(this.current_line.set_indent(),!1)},t.prototype.add_raw_token=function(A){for(var l=0;l<A.newlines;l++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(A.whitespace_before),this.current_line.push(A.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},t.prototype.add_token=function(A){this.__add_space_before_token(),this.current_line.push(A),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},t.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},t.prototype.remove_indent=function(A){for(var l=this.__lines.length;A<l;)this.__lines[A]._remove_indent(),A++;this.current_line._remove_wrap_indent()},t.prototype.trim=function(A){for(A=A===void 0?!1:A,this.current_line.trim();A&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},t.prototype.just_added_newline=function(){return this.current_line.is_empty()},t.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},t.prototype.ensure_empty_line_above=function(A,l){for(var i=this.__lines.length-2;i>=0;){var c=this.__lines[i];if(c.is_empty())break;if(c.item(0).indexOf(A)!==0&&c.item(-1)!==l){this.__lines.splice(i+1,0,new p(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},n.exports.Output=t},,,,function(n){function p(A,l){this.raw_options=a(A,l),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}p.prototype._get_array=function(A,l){var i=this.raw_options[A],c=l||[];return typeof i=="object"?i!==null&&typeof i.concat=="function"&&(c=i.concat()):typeof i=="string"&&(c=i.split(/[^a-zA-Z0-9_\/\-]+/)),c},p.prototype._get_boolean=function(A,l){var i=this.raw_options[A],c=i===void 0?!!l:!!i;return c},p.prototype._get_characters=function(A,l){var i=this.raw_options[A],c=l||"";return typeof i=="string"&&(c=i.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),c},p.prototype._get_number=function(A,l){var i=this.raw_options[A];l=parseInt(l,10),isNaN(l)&&(l=0);var c=parseInt(i,10);return isNaN(c)&&(c=l),c},p.prototype._get_selection=function(A,l,i){var c=this._get_selection_list(A,l,i);if(c.length!==1)throw new Error("Invalid Option Value: The option '"+A+`' can only be one of the following values:
`+l+`
You passed in: '`+this.raw_options[A]+"'");return c[0]},p.prototype._get_selection_list=function(A,l,i){if(!l||l.length===0)throw new Error("Selection list cannot be empty.");if(i=i||[l[0]],!this._is_valid_selection(i,l))throw new Error("Invalid Default Value!");var c=this._get_array(A,i);if(!this._is_valid_selection(c,l))throw new Error("Invalid Option Value: The option '"+A+`' can contain only the following values:
`+l+`
You passed in: '`+this.raw_options[A]+"'");return c},p.prototype._is_valid_selection=function(A,l){return A.length&&l.length&&!A.some(function(i){return l.indexOf(i)===-1})};function a(A,l){var i={};A=t(A);var c;for(c in A)c!==l&&(i[c]=A[c]);if(l&&A[l])for(c in A[l])i[c]=A[l][c];return i}function t(A){var l={},i;for(i in A){var c=i.replace(/-/g,"_");l[c]=A[i]}return l}n.exports.Options=p,n.exports.normalizeOpts=t,n.exports.mergeOpts=a},,function(n){var p=RegExp.prototype.hasOwnProperty("sticky");function a(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}a.prototype.restart=function(){this.__position=0},a.prototype.back=function(){this.__position>0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position<this.__input_length},a.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__input.charAt(this.__position),this.__position+=1),t},a.prototype.peek=function(t){var A=null;return t=t||0,t+=this.__position,t>=0&&t<this.__input_length&&(A=this.__input.charAt(t)),A},a.prototype.__match=function(t,A){t.lastIndex=A;var l=t.exec(this.__input);return l&&!(p&&t.sticky)&&(l.index!==A&&(l=null)),l},a.prototype.test=function(t,A){return A=A||0,A+=this.__position,A>=0&&A<this.__input_length?!!this.__match(t,A):!1},a.prototype.testChar=function(t,A){var l=this.peek(A);return t.lastIndex=0,l!==null&&t.test(l)},a.prototype.match=function(t){var A=this.__match(t,this.__position);return A?this.__position+=A[0].length:A=null,A},a.prototype.read=function(t,A,l){var i="",c;return t&&(c=this.match(t),c&&(i+=c[0])),A&&(c||!t)&&(i+=this.readUntil(A,l)),i},a.prototype.readUntil=function(t,A){var l="",i=this.__position;t.lastIndex=this.__position;var c=t.exec(this.__input);return c?(i=c.index,A&&(i+=c[0].length)):i=this.__input_length,l=this.__input.substring(this.__position,i),this.__position=i,l},a.prototype.readUntilAfter=function(t){return this.readUntil(t,!0)},a.prototype.get_regexp=function(t,A){var l=null,i="g";return A&&p&&(i="y"),typeof t=="string"&&t!==""?l=new RegExp(t,i):t&&(l=new RegExp(t.source,i)),l},a.prototype.get_literal_regexp=function(t){return RegExp(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},a.prototype.peekUntilAfter=function(t){var A=this.__position,l=this.readUntilAfter(t);return this.__position=A,l},a.prototype.lookBack=function(t){var A=this.__position-1;return A>=t.length&&this.__input.substring(A-t.length,A).toLowerCase()===t},n.exports.InputScanner=a},,,,,function(n){function p(a,t){a=typeof a=="string"?a:a.source,t=typeof t=="string"?t:t.source,this.__directives_block_pattern=new RegExp(a+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(a+/\sbeautify\signore:end\s/.source+t,"g")}p.prototype.get_directives=function(a){if(!a.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var A=this.__directive_pattern.exec(a);A;)t[A[1]]=A[2],A=this.__directive_pattern.exec(a);return t},p.prototype.readIgnored=function(a){return a.readUntilAfter(this.__directives_end_ignore_pattern)},n.exports.Directives=p},,function(n,p,a){var t=a(16).Beautifier,A=a(17).Options;function l(i,c){var d=new t(i,c);return d.beautify()}n.exports=l,n.exports.defaultOptions=function(){return new A}},function(n,p,a){var t=a(17).Options,A=a(2).Output,l=a(8).InputScanner,i=a(13).Directives,c=new i(/\/\*/,/\*\//),d=/\r\n|[\r\n]/,f=/\r\n|[\r\n]/g,o=/\s/,u=/(?:\s|\n)+/g,E=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,R=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function w(P,C){this._source_text=P||"",this._options=new t(C),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}w.prototype.eatString=function(P){var C="";for(this._ch=this._input.next();this._ch;){if(C+=this._ch,this._ch==="\\")C+=this._input.next();else if(P.indexOf(this._ch)!==-1||this._ch===`
`)break;this._ch=this._input.next()}return C},w.prototype.eatWhitespace=function(P){for(var C=o.test(this._input.peek()),b=0;o.test(this._input.peek());)this._ch=this._input.next(),P&&this._ch===`
`&&((b===0||b<this._options.max_preserve_newlines)&&(b++,this._output.add_new_line(!0)));return C},w.prototype.foundNestedPseudoClass=function(){for(var P=0,C=1,b=this._input.peek(C);b;){if(b==="{")return!0;if(b==="(")P+=1;else if(b===")"){if(P===0)return!1;P-=1}else if(b===";"||b==="}")return!1;C++,b=this._input.peek(C)}return!1},w.prototype.print_string=function(P){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(P)},w.prototype.preserveSingleSpace=function(P){P&&(this._output.space_before_token=!0)},w.prototype.indent=function(){this._indentLevel++},w.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},w.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var P=this._source_text,C=this._options.eol;C==="auto"&&(C=`
`,P&&d.test(P||"")&&(C=P.match(d)[0])),P=P.replace(f,`
`);var b=P.match(/^[\t ]*/)[0];this._output=new A(this._options,b),this._input=new l(P),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var s=0,h=!1,m=!1,x=!1,g=!1,y=!1,U=!1,N=this._ch,S=!1,H,F,B;H=this._input.read(u),F=H!=="",B=N,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),N=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var z=this._input.read(E),K=c.get_directives(z);K&&K.ignore==="start"&&(z+=c.readIgnored(this._input)),this.print_string(z),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(R)),this.eatWhitespace(!0);else if(this._ch==="@"||this._ch==="$")if(this.preserveSingleSpace(F),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var $=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);$.match(/[ :]$/)&&($=this.eatString(": ").replace(/\s$/,""),this.print_string($),this._output.space_before_token=!0),$=$.replace(/\s$/,""),$==="extend"?g=!0:$==="import"&&(y=!0),$ in this.NESTED_AT_RULE?(this._nestedLevel+=1,$ in this.CONDITIONAL_GROUP_RULE&&(x=!0)):!h&&s===0&&$.indexOf(":")!==-1&&(m=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(F),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")m&&(m=!1,this.outdent()),x?(x=!1,h=this._indentLevel>=this._nestedLevel):h=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&h&&(this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",",")),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(B==="("?this._output.space_before_token=!1:B!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),B==="{"&&this._output.trim(!0),y=!1,g=!1,m&&(this.outdent(),m=!1),this.print_string(this._ch),h=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&(this._input.peek()!=="}"&&this._output.add_new_line(!0)),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var te=0;te<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;te++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[te])){S=!0;break}(h||x)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!g&&s===0?(this.print_string(":"),m||(m=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var fe=B==='"'||B==="'";this.preserveSingleSpace(fe||F),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")S=!1,s===0?(m&&(this.outdent(),m=!1),g=!1,y=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),s++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),s&&(s--,this.outdent()));else{var Ae=!1;this._input.lookBack("with")&&(Ae=!0),this.preserveSingleSpace(F||Ae),this.print_string(this._ch),m&&B==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),U=!0):(this.eatWhitespace(),s++,this.indent())}else if(this._ch===")")s&&(s--,this.outdent()),U&&this._input.peek()===";"&&this._options.selector_separator_newline&&(U=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!m||U)&&s===0&&!y&&!g?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!m&&s===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&o.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(F),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),o.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var ce=B==='"'||B==="'";this.preserveSingleSpace(ce||F),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
`&&S&&this._output.add_new_line()}var ie=this._output.get_code(C);return ie},n.exports.Beautifier=w},function(n,p,a){var t=a(6).Options;function A(l){t.call(this,l,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var i=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||i;var c=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var d=0;d<c.length;d++)c[d]!=="expand"?this.brace_style="collapse":this.brace_style=c[d]}A.prototype=new t,n.exports.Options=A}],O={};function M(n){var p=O[n];if(p!==void 0)return p.exports;var a=O[n]={exports:{}};return _[n](a,a.exports,M),a.exports}var T=M(15);I=T})();var k=I;!(Z=[],Q=function(){return{css_beautify:k}}.apply(ee,Z),Q!==void 0&&(Be.exports=Q))})()},UZu5:function(Be,ee,v){},Vhoy:function(Be,ee,v){"use strict";v.d(ee,"d",function(){return k}),v.d(ee,"e",function(){return _}),v.d(ee,"c",function(){return O}),v.d(ee,"b",function(){return M}),v.d(ee,"a",function(){return T});var Z=v("MI8n");class Q{constructor(){this._icons=new Map,this._onDidRegister=new Z.b}add(n){const p=this._icons.get(n.id);p?n.description?p.description=n.description:console.error(`Duplicate registration of codicon ${n.id}`):(this._icons.set(n.id,n),this._onDidRegister.fire(n))}get(n){return this._icons.get(n)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const I=new Q,k=I;function _(n,p){return new M(n,p)}function O(n){return n?n.replace(/\$\((.*?)\)/g,(p,a)=>` ${a} `).trim():""}class M{constructor(n,p,a){this.id=n,this.definition=p,this.description=a,I.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var T;(function(n){n.iconNameSegment="[A-Za-z0-9]+",n.iconNameExpression="[A-Za-z0-9\\-]+",n.iconModifierExpression="~[A-Za-z]+";const p=new RegExp(`^(${n.iconNameExpression})(${n.iconModifierExpression})?$`);function a(l){if(l instanceof M)return["codicon","codicon-"+l.id];const i=p.exec(l.id);if(!i)return a(M.error);let[,c,d]=i;const f=["codicon","codicon-"+c];return d&&f.push("codicon-modifier-"+d.substr(1)),f}n.asClassNameArray=a;function t(l){return a(l).join(" ")}n.asClassName=t;function A(l){return"."+a(l).join(".")}n.asCSSSelector=A})(T||(T={})),function(n){n.add=new n("add",{fontCharacter:"\\ea60"}),n.plus=new n("plus",n.add.definition),n.gistNew=new n("gist-new",n.add.definition),n.repoCreate=new n("repo-create",n.add.definition),n.lightbulb=new n("lightbulb",{fontCharacter:"\\ea61"}),n.lightBulb=new n("light-bulb",{fontCharacter:"\\ea61"}),n.repo=new n("repo",{fontCharacter:"\\ea62"}),n.repoDelete=new n("repo-delete",{fontCharacter:"\\ea62"}),n.gistFork=new n("gist-fork",{fontCharacter:"\\ea63"}),n.repoForked=new n("repo-forked",{fontCharacter:"\\ea63"}),n.gitPullRequest=new n("git-pull-request",{fontCharacter:"\\ea64"}),n.gitPullRequestAbandoned=new n("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),n.recordKeys=new n("record-keys",{fontCharacter:"\\ea65"}),n.keyboard=new n("keyboard",{fontCharacter:"\\ea65"}),n.tag=new n("tag",{fontCharacter:"\\ea66"}),n.tagAdd=new n("tag-add",{fontCharacter:"\\ea66"}),n.tagRemove=new n("tag-remove",{fontCharacter:"\\ea66"}),n.person=new n("person",{fontCharacter:"\\ea67"}),n.personFollow=new n("person-follow",{fontCharacter:"\\ea67"}),n.personOutline=new n("person-outline",{fontCharacter:"\\ea67"}),n.personFilled=new n("person-filled",{fontCharacter:"\\ea67"}),n.gitBranch=new n("git-branch",{fontCharacter:"\\ea68"}),n.gitBranchCreate=new n("git-branch-create",{fontCharacter:"\\ea68"}),n.gitBranchDelete=new n("git-branch-delete",{fontCharacter:"\\ea68"}),n.sourceControl=new n("source-control",{fontCharacter:"\\ea68"}),n.mirror=new n("mirror",{fontCharacter:"\\ea69"}),n.mirrorPublic=new n("mirror-public",{fontCharacter:"\\ea69"}),n.star=new n("star",{fontCharacter:"\\ea6a"}),n.starAdd=new n("star-add",{fontCharacter:"\\ea6a"}),n.starDelete=new n("star-delete",{fontCharacter:"\\ea6a"}),n.starEmpty=new n("star-empty",{fontCharacter:"\\ea6a"}),n.comment=new n("comment",{fontCharacter:"\\ea6b"}),n.commentAdd=new n("comment-add",{fontCharacter:"\\ea6b"}),n.alert=new n("alert",{fontCharacter:"\\ea6c"}),n.warning=new n("warning",{fontCharacter:"\\ea6c"}),n.search=new n("search",{fontCharacter:"\\ea6d"}),n.searchSave=new n("search-save",{fontCharacter:"\\ea6d"}),n.logOut=new n("log-out",{fontCharacter:"\\ea6e"}),n.signOut=new n("sign-out",{fontCharacter:"\\ea6e"}),n.logIn=new n("log-in",{fontCharacter:"\\ea6f"}),n.signIn=new n("sign-in",{fontCharacter:"\\ea6f"}),n.eye=new n("eye",{fontCharacter:"\\ea70"}),n.eyeUnwatch=new n("eye-unwatch",{fontCharacter:"\\ea70"}),n.eyeWatch=new n("eye-watch",{fontCharacter:"\\ea70"}),n.circleFilled=new n("circle-filled",{fontCharacter:"\\ea71"}),n.primitiveDot=new n("primitive-dot",{fontCharacter:"\\ea71"}),n.closeDirty=new n("close-dirty",{fontCharacter:"\\ea71"}),n.debugBreakpoint=new n("debug-breakpoint",{fontCharacter:"\\ea71"}),n.debugBreakpointDisabled=new n("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),n.debugHint=new n("debug-hint",{fontCharacter:"\\ea71"}),n.primitiveSquare=new n("primitive-square",{fontCharacter:"\\ea72"}),n.edit=new n("edit",{fontCharacter:"\\ea73"}),n.pencil=new n("pencil",{fontCharacter:"\\ea73"}),n.info=new n("info",{fontCharacter:"\\ea74"}),n.issueOpened=new n("issue-opened",{fontCharacter:"\\ea74"}),n.gistPrivate=new n("gist-private",{fontCharacter:"\\ea75"}),n.gitForkPrivate=new n("git-fork-private",{fontCharacter:"\\ea75"}),n.lock=new n("lock",{fontCharacter:"\\ea75"}),n.mirrorPrivate=new n("mirror-private",{fontCharacter:"\\ea75"}),n.close=new n("close",{fontCharacter:"\\ea76"}),n.removeClose=new n("remove-close",{fontCharacter:"\\ea76"}),n.x=new n("x",{fontCharacter:"\\ea76"}),n.repoSync=new n("repo-sync",{fontCharacter:"\\ea77"}),n.sync=new n("sync",{fontCharacter:"\\ea77"}),n.clone=new n("clone",{fontCharacter:"\\ea78"}),n.desktopDownload=new n("desktop-download",{fontCharacter:"\\ea78"}),n.beaker=new n("beaker",{fontCharacter:"\\ea79"}),n.microscope=new n("microscope",{fontCharacter:"\\ea79"}),n.vm=new n("vm",{fontCharacter:"\\ea7a"}),n.deviceDesktop=new n("device-desktop",{fontCharacter:"\\ea7a"}),n.file=new n("file",{fontCharacter:"\\ea7b"}),n.fileText=new n("file-text",{fontCharacter:"\\ea7b"}),n.more=new n("more",{fontCharacter:"\\ea7c"}),n.ellipsis=new n("ellipsis",{fontCharacter:"\\ea7c"}),n.kebabHorizontal=new n("kebab-horizontal",{fontCharacter:"\\ea7c"}),n.mailReply=new n("mail-reply",{fontCharacter:"\\ea7d"}),n.reply=new n("reply",{fontCharacter:"\\ea7d"}),n.organization=new n("organization",{fontCharacter:"\\ea7e"}),n.organizationFilled=new n("organization-filled",{fontCharacter:"\\ea7e"}),n.organizationOutline=new n("organization-outline",{fontCharacter:"\\ea7e"}),n.newFile=new n("new-file",{fontCharacter:"\\ea7f"}),n.fileAdd=new n("file-add",{fontCharacter:"\\ea7f"}),n.newFolder=new n("new-folder",{fontCharacter:"\\ea80"}),n.fileDirectoryCreate=new n("file-directory-create",{fontCharacter:"\\ea80"}),n.trash=new n("trash",{fontCharacter:"\\ea81"}),n.trashcan=new n("trashcan",{fontCharacter:"\\ea81"}),n.history=new n("history",{fontCharacter:"\\ea82"}),n.clock=new n("clock",{fontCharacter:"\\ea82"}),n.folder=new n("folder",{fontCharacter:"\\ea83"}),n.fileDirectory=new n("file-directory",{fontCharacter:"\\ea83"}),n.symbolFolder=new n("symbol-folder",{fontCharacter:"\\ea83"}),n.logoGithub=new n("logo-github",{fontCharacter:"\\ea84"}),n.markGithub=new n("mark-github",{fontCharacter:"\\ea84"}),n.github=new n("github",{fontCharacter:"\\ea84"}),n.terminal=new n("terminal",{fontCharacter:"\\ea85"}),n.console=new n("console",{fontCharacter:"\\ea85"}),n.repl=new n("repl",{fontCharacter:"\\ea85"}),n.zap=new n("zap",{fontCharacter:"\\ea86"}),n.symbolEvent=new n("symbol-event",{fontCharacter:"\\ea86"}),n.error=new n("error",{fontCharacter:"\\ea87"}),n.stop=new n("stop",{fontCharacter:"\\ea87"}),n.variable=new n("variable",{fontCharacter:"\\ea88"}),n.symbolVariable=new n("symbol-variable",{fontCharacter:"\\ea88"}),n.array=new n("array",{fontCharacter:"\\ea8a"}),n.symbolArray=new n("symbol-array",{fontCharacter:"\\ea8a"}),n.symbolModule=new n("symbol-module",{fontCharacter:"\\ea8b"}),n.symbolPackage=new n("symbol-package",{fontCharacter:"\\ea8b"}),n.symbolNamespace=new n("symbol-namespace",{fontCharacter:"\\ea8b"}),n.symbolObject=new n("symbol-object",{fontCharacter:"\\ea8b"}),n.symbolMethod=new n("symbol-method",{fontCharacter:"\\ea8c"}),n.symbolFunction=new n("symbol-function",{fontCharacter:"\\ea8c"}),n.symbolConstructor=new n("symbol-constructor",{fontCharacter:"\\ea8c"}),n.symbolBoolean=new n("symbol-boolean",{fontCharacter:"\\ea8f"}),n.symbolNull=new n("symbol-null",{fontCharacter:"\\ea8f"}),n.symbolNumeric=new n("symbol-numeric",{fontCharacter:"\\ea90"}),n.symbolNumber=new n("symbol-number",{fontCharacter:"\\ea90"}),n.symbolStructure=new n("symbol-structure",{fontCharacter:"\\ea91"}),n.symbolStruct=new n("symbol-struct",{fontCharacter:"\\ea91"}),n.symbolParameter=new n("symbol-parameter",{fontCharacter:"\\ea92"}),n.symbolTypeParameter=new n("symbol-type-parameter",{fontCharacter:"\\ea92"}),n.symbolKey=new n("symbol-key",{fontCharacter:"\\ea93"}),n.symbolText=new n("symbol-text",{fontCharacter:"\\ea93"}),n.symbolReference=new n("symbol-reference",{fontCharacter:"\\ea94"}),n.goToFile=new n("go-to-file",{fontCharacter:"\\ea94"}),n.symbolEnum=new n("symbol-enum",{fontCharacter:"\\ea95"}),n.symbolValue=new n("symbol-value",{fontCharacter:"\\ea95"}),n.symbolRuler=new n("symbol-ruler",{fontCharacter:"\\ea96"}),n.symbolUnit=new n("symbol-unit",{fontCharacter:"\\ea96"}),n.activateBreakpoints=new n("activate-breakpoints",{fontCharacter:"\\ea97"}),n.archive=new n("archive",{fontCharacter:"\\ea98"}),n.arrowBoth=new n("arrow-both",{fontCharacter:"\\ea99"}),n.arrowDown=new n("arrow-down",{fontCharacter:"\\ea9a"}),n.arrowLeft=new n("arrow-left",{fontCharacter:"\\ea9b"}),n.arrowRight=new n("arrow-right",{fontCharacter:"\\ea9c"}),n.arrowSmallDown=new n("arrow-small-down",{fontCharacter:"\\ea9d"}),n.arrowSmallLeft=new n("arrow-small-left",{fontCharacter:"\\ea9e"}),n.arrowSmallRight=new n("arrow-small-right",{fontCharacter:"\\ea9f"}),n.arrowSmallUp=new n("arrow-small-up",{fontCharacter:"\\eaa0"}),n.arrowUp=new n("arrow-up",{fontCharacter:"\\eaa1"}),n.bell=new n("bell",{fontCharacter:"\\eaa2"}),n.bold=new n("bold",{fontCharacter:"\\eaa3"}),n.book=new n("book",{fontCharacter:"\\eaa4"}),n.bookmark=new n("bookmark",{fontCharacter:"\\eaa5"}),n.debugBreakpointConditionalUnverified=new n("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),n.debugBreakpointConditional=new n("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),n.debugBreakpointConditionalDisabled=new n("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),n.debugBreakpointDataUnverified=new n("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),n.debugBreakpointData=new n("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),n.debugBreakpointDataDisabled=new n("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),n.debugBreakpointLogUnverified=new n("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),n.debugBreakpointLog=new n("debug-breakpoint-log",{fontCharacter:"\\eaab"}),n.debugBreakpointLogDisabled=new n("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),n.briefcase=new n("briefcase",{fontCharacter:"\\eaac"}),n.broadcast=new n("broadcast",{fontCharacter:"\\eaad"}),n.browser=new n("browser",{fontCharacter:"\\eaae"}),n.bug=new n("bug",{fontCharacter:"\\eaaf"}),n.calendar=new n("calendar",{fontCharacter:"\\eab0"}),n.caseSensitive=new n("case-sensitive",{fontCharacter:"\\eab1"}),n.check=new n("check",{fontCharacter:"\\eab2"}),n.checklist=new n("checklist",{fontCharacter:"\\eab3"}),n.chevronDown=new n("chevron-down",{fontCharacter:"\\eab4"}),n.dropDownButton=new n("drop-down-button",n.chevronDown.definition),n.chevronLeft=new n("chevron-left",{fontCharacter:"\\eab5"}),n.chevronRight=new n("chevron-right",{fontCharacter:"\\eab6"}),n.chevronUp=new n("chevron-up",{fontCharacter:"\\eab7"}),n.chromeClose=new n("chrome-close",{fontCharacter:"\\eab8"}),n.chromeMaximize=new n("chrome-maximize",{fontCharacter:"\\eab9"}),n.chromeMinimize=new n("chrome-minimize",{fontCharacter:"\\eaba"}),n.chromeRestore=new n("chrome-restore",{fontCharacter:"\\eabb"}),n.circleOutline=new n("circle-outline",{fontCharacter:"\\eabc"}),n.debugBreakpointUnverified=new n("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),n.circleSlash=new n("circle-slash",{fontCharacter:"\\eabd"}),n.circuitBoard=new n("circuit-board",{fontCharacter:"\\eabe"}),n.clearAll=new n("clear-all",{fontCharacter:"\\eabf"}),n.clippy=new n("clippy",{fontCharacter:"\\eac0"}),n.closeAll=new n("close-all",{fontCharacter:"\\eac1"}),n.cloudDownload=new n("cloud-download",{fontCharacter:"\\eac2"}),n.cloudUpload=new n("cloud-upload",{fontCharacter:"\\eac3"}),n.code=new n("code",{fontCharacter:"\\eac4"}),n.collapseAll=new n("collapse-all",{fontCharacter:"\\eac5"}),n.colorMode=new n("color-mode",{fontCharacter:"\\eac6"}),n.commentDiscussion=new n("comment-discussion",{fontCharacter:"\\eac7"}),n.compareChanges=new n("compare-changes",{fontCharacter:"\\eafd"}),n.creditCard=new n("credit-card",{fontCharacter:"\\eac9"}),n.dash=new n("dash",{fontCharacter:"\\eacc"}),n.dashboard=new n("dashboard",{fontCharacter:"\\eacd"}),n.database=new n("database",{fontCharacter:"\\eace"}),n.debugContinue=new n("debug-continue",{fontCharacter:"\\eacf"}),n.debugDisconnect=new n("debug-disconnect",{fontCharacter:"\\ead0"}),n.debugPause=new n("debug-pause",{fontCharacter:"\\ead1"}),n.debugRestart=new n("debug-restart",{fontCharacter:"\\ead2"}),n.debugStart=new n("debug-start",{fontCharacter:"\\ead3"}),n.debugStepInto=new n("debug-step-into",{fontCharacter:"\\ead4"}),n.debugStepOut=new n("debug-step-out",{fontCharacter:"\\ead5"}),n.debugStepOver=new n("debug-step-over",{fontCharacter:"\\ead6"}),n.debugStop=new n("debug-stop",{fontCharacter:"\\ead7"}),n.debug=new n("debug",{fontCharacter:"\\ead8"}),n.deviceCameraVideo=new n("device-camera-video",{fontCharacter:"\\ead9"}),n.deviceCamera=new n("device-camera",{fontCharacter:"\\eada"}),n.deviceMobile=new n("device-mobile",{fontCharacter:"\\eadb"}),n.diffAdded=new n("diff-added",{fontCharacter:"\\eadc"}),n.diffIgnored=new n("diff-ignored",{fontCharacter:"\\eadd"}),n.diffModified=new n("diff-modified",{fontCharacter:"\\eade"}),n.diffRemoved=new n("diff-removed",{fontCharacter:"\\eadf"}),n.diffRenamed=new n("diff-renamed",{fontCharacter:"\\eae0"}),n.diff=new n("diff",{fontCharacter:"\\eae1"}),n.discard=new n("discard",{fontCharacter:"\\eae2"}),n.editorLayout=new n("editor-layout",{fontCharacter:"\\eae3"}),n.emptyWindow=new n("empty-window",{fontCharacter:"\\eae4"}),n.exclude=new n("exclude",{fontCharacter:"\\eae5"}),n.extensions=new n("extensions",{fontCharacter:"\\eae6"}),n.eyeClosed=new n("eye-closed",{fontCharacter:"\\eae7"}),n.fileBinary=new n("file-binary",{fontCharacter:"\\eae8"}),n.fileCode=new n("file-code",{fontCharacter:"\\eae9"}),n.fileMedia=new n("file-media",{fontCharacter:"\\eaea"}),n.filePdf=new n("file-pdf",{fontCharacter:"\\eaeb"}),n.fileSubmodule=new n("file-submodule",{fontCharacter:"\\eaec"}),n.fileSymlinkDirectory=new n("file-symlink-directory",{fontCharacter:"\\eaed"}),n.fileSymlinkFile=new n("file-symlink-file",{fontCharacter:"\\eaee"}),n.fileZip=new n("file-zip",{fontCharacter:"\\eaef"}),n.files=new n("files",{fontCharacter:"\\eaf0"}),n.filter=new n("filter",{fontCharacter:"\\eaf1"}),n.flame=new n("flame",{fontCharacter:"\\eaf2"}),n.foldDown=new n("fold-down",{fontCharacter:"\\eaf3"}),n.foldUp=new n("fold-up",{fontCharacter:"\\eaf4"}),n.fold=new n("fold",{fontCharacter:"\\eaf5"}),n.folderActive=new n("folder-active",{fontCharacter:"\\eaf6"}),n.folderOpened=new n("folder-opened",{fontCharacter:"\\eaf7"}),n.gear=new n("gear",{fontCharacter:"\\eaf8"}),n.gift=new n("gift",{fontCharacter:"\\eaf9"}),n.gistSecret=new n("gist-secret",{fontCharacter:"\\eafa"}),n.gist=new n("gist",{fontCharacter:"\\eafb"}),n.gitCommit=new n("git-commit",{fontCharacter:"\\eafc"}),n.gitCompare=new n("git-compare",{fontCharacter:"\\eafd"}),n.gitMerge=new n("git-merge",{fontCharacter:"\\eafe"}),n.githubAction=new n("github-action",{fontCharacter:"\\eaff"}),n.githubAlt=new n("github-alt",{fontCharacter:"\\eb00"}),n.globe=new n("globe",{fontCharacter:"\\eb01"}),n.grabber=new n("grabber",{fontCharacter:"\\eb02"}),n.graph=new n("graph",{fontCharacter:"\\eb03"}),n.gripper=new n("gripper",{fontCharacter:"\\eb04"}),n.heart=new n("heart",{fontCharacter:"\\eb05"}),n.home=new n("home",{fontCharacter:"\\eb06"}),n.horizontalRule=new n("horizontal-rule",{fontCharacter:"\\eb07"}),n.hubot=new n("hubot",{fontCharacter:"\\eb08"}),n.inbox=new n("inbox",{fontCharacter:"\\eb09"}),n.issueClosed=new n("issue-closed",{fontCharacter:"\\eba4"}),n.issueReopened=new n("issue-reopened",{fontCharacter:"\\eb0b"}),n.issues=new n("issues",{fontCharacter:"\\eb0c"}),n.italic=new n("italic",{fontCharacter:"\\eb0d"}),n.jersey=new n("jersey",{fontCharacter:"\\eb0e"}),n.json=new n("json",{fontCharacter:"\\eb0f"}),n.kebabVertical=new n("kebab-vertical",{fontCharacter:"\\eb10"}),n.key=new n("key",{fontCharacter:"\\eb11"}),n.law=new n("law",{fontCharacter:"\\eb12"}),n.lightbulbAutofix=new n("lightbulb-autofix",{fontCharacter:"\\eb13"}),n.linkExternal=new n("link-external",{fontCharacter:"\\eb14"}),n.link=new n("link",{fontCharacter:"\\eb15"}),n.listOrdered=new n("list-ordered",{fontCharacter:"\\eb16"}),n.listUnordered=new n("list-unordered",{fontCharacter:"\\eb17"}),n.liveShare=new n("live-share",{fontCharacter:"\\eb18"}),n.loading=new n("loading",{fontCharacter:"\\eb19"}),n.location=new n("location",{fontCharacter:"\\eb1a"}),n.mailRead=new n("mail-read",{fontCharacter:"\\eb1b"}),n.mail=new n("mail",{fontCharacter:"\\eb1c"}),n.markdown=new n("markdown",{fontCharacter:"\\eb1d"}),n.megaphone=new n("megaphone",{fontCharacter:"\\eb1e"}),n.mention=new n("mention",{fontCharacter:"\\eb1f"}),n.milestone=new n("milestone",{fontCharacter:"\\eb20"}),n.mortarBoard=new n("mortar-board",{fontCharacter:"\\eb21"}),n.move=new n("move",{fontCharacter:"\\eb22"}),n.multipleWindows=new n("multiple-windows",{fontCharacter:"\\eb23"}),n.mute=new n("mute",{fontCharacter:"\\eb24"}),n.noNewline=new n("no-newline",{fontCharacter:"\\eb25"}),n.note=new n("note",{fontCharacter:"\\eb26"}),n.octoface=new n("octoface",{fontCharacter:"\\eb27"}),n.openPreview=new n("open-preview",{fontCharacter:"\\eb28"}),n.package_=new n("package",{fontCharacter:"\\eb29"}),n.paintcan=new n("paintcan",{fontCharacter:"\\eb2a"}),n.pin=new n("pin",{fontCharacter:"\\eb2b"}),n.play=new n("play",{fontCharacter:"\\eb2c"}),n.run=new n("run",{fontCharacter:"\\eb2c"}),n.plug=new n("plug",{fontCharacter:"\\eb2d"}),n.preserveCase=new n("preserve-case",{fontCharacter:"\\eb2e"}),n.preview=new n("preview",{fontCharacter:"\\eb2f"}),n.project=new n("project",{fontCharacter:"\\eb30"}),n.pulse=new n("pulse",{fontCharacter:"\\eb31"}),n.question=new n("question",{fontCharacter:"\\eb32"}),n.quote=new n("quote",{fontCharacter:"\\eb33"}),n.radioTower=new n("radio-tower",{fontCharacter:"\\eb34"}),n.reactions=new n("reactions",{fontCharacter:"\\eb35"}),n.references=new n("references",{fontCharacter:"\\eb36"}),n.refresh=new n("refresh",{fontCharacter:"\\eb37"}),n.regex=new n("regex",{fontCharacter:"\\eb38"}),n.remoteExplorer=new n("remote-explorer",{fontCharacter:"\\eb39"}),n.remote=new n("remote",{fontCharacter:"\\eb3a"}),n.remove=new n("remove",{fontCharacter:"\\eb3b"}),n.replaceAll=new n("replace-all",{fontCharacter:"\\eb3c"}),n.replace=new n("replace",{fontCharacter:"\\eb3d"}),n.repoClone=new n("repo-clone",{fontCharacter:"\\eb3e"}),n.repoForcePush=new n("repo-force-push",{fontCharacter:"\\eb3f"}),n.repoPull=new n("repo-pull",{fontCharacter:"\\eb40"}),n.repoPush=new n("repo-push",{fontCharacter:"\\eb41"}),n.report=new n("report",{fontCharacter:"\\eb42"}),n.requestChanges=new n("request-changes",{fontCharacter:"\\eb43"}),n.rocket=new n("rocket",{fontCharacter:"\\eb44"}),n.rootFolderOpened=new n("root-folder-opened",{fontCharacter:"\\eb45"}),n.rootFolder=new n("root-folder",{fontCharacter:"\\eb46"}),n.rss=new n("rss",{fontCharacter:"\\eb47"}),n.ruby=new n("ruby",{fontCharacter:"\\eb48"}),n.saveAll=new n("save-all",{fontCharacter:"\\eb49"}),n.saveAs=new n("save-as",{fontCharacter:"\\eb4a"}),n.save=new n("save",{fontCharacter:"\\eb4b"}),n.screenFull=new n("screen-full",{fontCharacter:"\\eb4c"}),n.screenNormal=new n("screen-normal",{fontCharacter:"\\eb4d"}),n.searchStop=new n("search-stop",{fontCharacter:"\\eb4e"}),n.server=new n("server",{fontCharacter:"\\eb50"}),n.settingsGear=new n("settings-gear",{fontCharacter:"\\eb51"}),n.settings=new n("settings",{fontCharacter:"\\eb52"}),n.shield=new n("shield",{fontCharacter:"\\eb53"}),n.smiley=new n("smiley",{fontCharacter:"\\eb54"}),n.sortPrecedence=new n("sort-precedence",{fontCharacter:"\\eb55"}),n.splitHorizontal=new n("split-horizontal",{fontCharacter:"\\eb56"}),n.splitVertical=new n("split-vertical",{fontCharacter:"\\eb57"}),n.squirrel=new n("squirrel",{fontCharacter:"\\eb58"}),n.starFull=new n("star-full",{fontCharacter:"\\eb59"}),n.starHalf=new n("star-half",{fontCharacter:"\\eb5a"}),n.symbolClass=new n("symbol-class",{fontCharacter:"\\eb5b"}),n.symbolColor=new n("symbol-color",{fontCharacter:"\\eb5c"}),n.symbolConstant=new n("symbol-constant",{fontCharacter:"\\eb5d"}),n.symbolEnumMember=new n("symbol-enum-member",{fontCharacter:"\\eb5e"}),n.symbolField=new n("symbol-field",{fontCharacter:"\\eb5f"}),n.symbolFile=new n("symbol-file",{fontCharacter:"\\eb60"}),n.symbolInterface=new n("symbol-interface",{fontCharacter:"\\eb61"}),n.symbolKeyword=new n("symbol-keyword",{fontCharacter:"\\eb62"}),n.symbolMisc=new n("symbol-misc",{fontCharacter:"\\eb63"}),n.symbolOperator=new n("symbol-operator",{fontCharacter:"\\eb64"}),n.symbolProperty=new n("symbol-property",{fontCharacter:"\\eb65"}),n.wrench=new n("wrench",{fontCharacter:"\\eb65"}),n.wrenchSubaction=new n("wrench-subaction",{fontCharacter:"\\eb65"}),n.symbolSnippet=new n("symbol-snippet",{fontCharacter:"\\eb66"}),n.tasklist=new n("tasklist",{fontCharacter:"\\eb67"}),n.telescope=new n("telescope",{fontCharacter:"\\eb68"}),n.textSize=new n("text-size",{fontCharacter:"\\eb69"}),n.threeBars=new n("three-bars",{fontCharacter:"\\eb6a"}),n.thumbsdown=new n("thumbsdown",{fontCharacter:"\\eb6b"}),n.thumbsup=new n("thumbsup",{fontCharacter:"\\eb6c"}),n.tools=new n("tools",{fontCharacter:"\\eb6d"}),n.triangleDown=new n("triangle-down",{fontCharacter:"\\eb6e"}),n.triangleLeft=new n("triangle-left",{fontCharacter:"\\eb6f"}),n.triangleRight=new n("triangle-right",{fontCharacter:"\\eb70"}),n.triangleUp=new n("triangle-up",{fontCharacter:"\\eb71"}),n.twitter=new n("twitter",{fontCharacter:"\\eb72"}),n.unfold=new n("unfold",{fontCharacter:"\\eb73"}),n.unlock=new n("unlock",{fontCharacter:"\\eb74"}),n.unmute=new n("unmute",{fontCharacter:"\\eb75"}),n.unverified=new n("unverified",{fontCharacter:"\\eb76"}),n.verified=new n("verified",{fontCharacter:"\\eb77"}),n.versions=new n("versions",{fontCharacter:"\\eb78"}),n.vmActive=new n("vm-active",{fontCharacter:"\\eb79"}),n.vmOutline=new n("vm-outline",{fontCharacter:"\\eb7a"}),n.vmRunning=new n("vm-running",{fontCharacter:"\\eb7b"}),n.watch=new n("watch",{fontCharacter:"\\eb7c"}),n.whitespace=new n("whitespace",{fontCharacter:"\\eb7d"}),n.wholeWord=new n("whole-word",{fontCharacter:"\\eb7e"}),n.window=new n("window",{fontCharacter:"\\eb7f"}),n.wordWrap=new n("word-wrap",{fontCharacter:"\\eb80"}),n.zoomIn=new n("zoom-in",{fontCharacter:"\\eb81"}),n.zoomOut=new n("zoom-out",{fontCharacter:"\\eb82"}),n.listFilter=new n("list-filter",{fontCharacter:"\\eb83"}),n.listFlat=new n("list-flat",{fontCharacter:"\\eb84"}),n.listSelection=new n("list-selection",{fontCharacter:"\\eb85"}),n.selection=new n("selection",{fontCharacter:"\\eb85"}),n.listTree=new n("list-tree",{fontCharacter:"\\eb86"}),n.debugBreakpointFunctionUnverified=new n("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),n.debugBreakpointFunction=new n("debug-breakpoint-function",{fontCharacter:"\\eb88"}),n.debugBreakpointFunctionDisabled=new n("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),n.debugStackframeActive=new n("debug-stackframe-active",{fontCharacter:"\\eb89"}),n.debugStackframeDot=new n("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),n.debugStackframe=new n("debug-stackframe",{fontCharacter:"\\eb8b"}),n.debugStackframeFocused=new n("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),n.debugBreakpointUnsupported=new n("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),n.symbolString=new n("symbol-string",{fontCharacter:"\\eb8d"}),n.debugReverseContinue=new n("debug-reverse-continue",{fontCharacter:"\\eb8e"}),n.debugStepBack=new n("debug-step-back",{fontCharacter:"\\eb8f"}),n.debugRestartFrame=new n("debug-restart-frame",{fontCharacter:"\\eb90"}),n.callIncoming=new n("call-incoming",{fontCharacter:"\\eb92"}),n.callOutgoing=new n("call-outgoing",{fontCharacter:"\\eb93"}),n.menu=new n("menu",{fontCharacter:"\\eb94"}),n.expandAll=new n("expand-all",{fontCharacter:"\\eb95"}),n.feedback=new n("feedback",{fontCharacter:"\\eb96"}),n.groupByRefType=new n("group-by-ref-type",{fontCharacter:"\\eb97"}),n.ungroupByRefType=new n("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),n.account=new n("account",{fontCharacter:"\\eb99"}),n.bellDot=new n("bell-dot",{fontCharacter:"\\eb9a"}),n.debugConsole=new n("debug-console",{fontCharacter:"\\eb9b"}),n.library=new n("library",{fontCharacter:"\\eb9c"}),n.output=new n("output",{fontCharacter:"\\eb9d"}),n.runAll=new n("run-all",{fontCharacter:"\\eb9e"}),n.syncIgnored=new n("sync-ignored",{fontCharacter:"\\eb9f"}),n.pinned=new n("pinned",{fontCharacter:"\\eba0"}),n.githubInverted=new n("github-inverted",{fontCharacter:"\\eba1"}),n.debugAlt=new n("debug-alt",{fontCharacter:"\\eb91"}),n.serverProcess=new n("server-process",{fontCharacter:"\\eba2"}),n.serverEnvironment=new n("server-environment",{fontCharacter:"\\eba3"}),n.pass=new n("pass",{fontCharacter:"\\eba4"}),n.stopCircle=new n("stop-circle",{fontCharacter:"\\eba5"}),n.playCircle=new n("play-circle",{fontCharacter:"\\eba6"}),n.record=new n("record",{fontCharacter:"\\eba7"}),n.debugAltSmall=new n("debug-alt-small",{fontCharacter:"\\eba8"}),n.vmConnect=new n("vm-connect",{fontCharacter:"\\eba9"}),n.cloud=new n("cloud",{fontCharacter:"\\ebaa"}),n.merge=new n("merge",{fontCharacter:"\\ebab"}),n.exportIcon=new n("export",{fontCharacter:"\\ebac"}),n.graphLeft=new n("graph-left",{fontCharacter:"\\ebad"}),n.magnet=new n("magnet",{fontCharacter:"\\ebae"}),n.notebook=new n("notebook",{fontCharacter:"\\ebaf"}),n.redo=new n("redo",{fontCharacter:"\\ebb0"}),n.checkAll=new n("check-all",{fontCharacter:"\\ebb1"}),n.pinnedDirty=new n("pinned-dirty",{fontCharacter:"\\ebb2"}),n.passFilled=new n("pass-filled",{fontCharacter:"\\ebb3"}),n.circleLargeFilled=new n("circle-large-filled",{fontCharacter:"\\ebb4"}),n.circleLargeOutline=new n("circle-large-outline",{fontCharacter:"\\ebb5"}),n.combine=new n("combine",{fontCharacter:"\\ebb6"}),n.gather=new n("gather",{fontCharacter:"\\ebb6"}),n.table=new n("table",{fontCharacter:"\\ebb7"}),n.variableGroup=new n("variable-group",{fontCharacter:"\\ebb8"}),n.typeHierarchy=new n("type-hierarchy",{fontCharacter:"\\ebb9"}),n.typeHierarchySub=new n("type-hierarchy-sub",{fontCharacter:"\\ebba"}),n.typeHierarchySuper=new n("type-hierarchy-super",{fontCharacter:"\\ebbb"}),n.gitPullRequestCreate=new n("git-pull-request-create",{fontCharacter:"\\ebbc"}),n.runAbove=new n("run-above",{fontCharacter:"\\ebbd"}),n.runBelow=new n("run-below",{fontCharacter:"\\ebbe"}),n.notebookTemplate=new n("notebook-template",{fontCharacter:"\\ebbf"}),n.debugRerun=new n("debug-rerun",{fontCharacter:"\\ebc0"}),n.workspaceTrusted=new n("workspace-trusted",{fontCharacter:"\\ebc1"}),n.workspaceUntrusted=new n("workspace-untrusted",{fontCharacter:"\\ebc2"}),n.workspaceUnspecified=new n("workspace-unspecified",{fontCharacter:"\\ebc3"}),n.terminalCmd=new n("terminal-cmd",{fontCharacter:"\\ebc4"}),n.terminalDebian=new n("terminal-debian",{fontCharacter:"\\ebc5"}),n.terminalLinux=new n("terminal-linux",{fontCharacter:"\\ebc6"}),n.terminalPowershell=new n("terminal-powershell",{fontCharacter:"\\ebc7"}),n.terminalTmux=new n("terminal-tmux",{fontCharacter:"\\ebc8"}),n.terminalUbuntu=new n("terminal-ubuntu",{fontCharacter:"\\ebc9"}),n.terminalBash=new n("terminal-bash",{fontCharacter:"\\ebca"}),n.arrowSwap=new n("arrow-swap",{fontCharacter:"\\ebcb"}),n.copy=new n("copy",{fontCharacter:"\\ebcc"}),n.personAdd=new n("person-add",{fontCharacter:"\\ebcd"}),n.filterFilled=new n("filter-filled",{fontCharacter:"\\ebce"}),n.wand=new n("wand",{fontCharacter:"\\ebcf"}),n.debugLineByLine=new n("debug-line-by-line",{fontCharacter:"\\ebd0"}),n.inspect=new n("inspect",{fontCharacter:"\\ebd1"}),n.layers=new n("layers",{fontCharacter:"\\ebd2"}),n.layersDot=new n("layers-dot",{fontCharacter:"\\ebd3"}),n.layersActive=new n("layers-active",{fontCharacter:"\\ebd4"}),n.compass=new n("compass",{fontCharacter:"\\ebd5"}),n.compassDot=new n("compass-dot",{fontCharacter:"\\ebd6"}),n.compassActive=new n("compass-active",{fontCharacter:"\\ebd7"}),n.azure=new n("azure",{fontCharacter:"\\ebd8"}),n.issueDraft=new n("issue-draft",{fontCharacter:"\\ebd9"}),n.gitPullRequestClosed=new n("git-pull-request-closed",{fontCharacter:"\\ebda"}),n.gitPullRequestDraft=new n("git-pull-request-draft",{fontCharacter:"\\ebdb"}),n.debugAll=new n("debug-all",{fontCharacter:"\\ebdc"}),n.debugCoverage=new n("debug-coverage",{fontCharacter:"\\ebdd"}),n.runErrors=new n("run-errors",{fontCharacter:"\\ebde"}),n.folderLibrary=new n("folder-library",{fontCharacter:"\\ebdf"}),n.debugContinueSmall=new n("debug-continue-small",{fontCharacter:"\\ebe0"}),n.beakerStop=new n("beaker-stop",{fontCharacter:"\\ebe1"}),n.graphLine=new n("graph-line",{fontCharacter:"\\ebe2"}),n.graphScatter=new n("graph-scatter",{fontCharacter:"\\ebe3"}),n.pieChart=new n("pie-chart",{fontCharacter:"\\ebe4"}),n.bracket=new n("bracket",n.json.definition),n.bracketDot=new n("bracket-dot",{fontCharacter:"\\ebe5"}),n.bracketError=new n("bracket-error",{fontCharacter:"\\ebe6"}),n.lockSmall=new n("lock-small",{fontCharacter:"\\ebe7"}),n.azureDevops=new n("azure-devops",{fontCharacter:"\\ebe8"}),n.verifiedFilled=new n("verified-filled",{fontCharacter:"\\ebe9"})}(M||(M={}))},VlDO:function(Be,ee,v){Be.exports={flex_box_center:"flex_box_center___3v0of",flex_space_between:"flex_space_between___2ON3P",flex_box_vertical_center:"flex_box_vertical_center___1dze4",flex_box_center_end:"flex_box_center_end___VPAo5",flex_box_column:"flex_box_column___2f1aL",icons:"icons___hbWcc",shixuns:"shixuns___ed3FZ",buttons:"buttons___7shdA",addStage:"addStage___4vVUv",color4CA:"color4CA___1C3hM",color204:"color204___37f6U",completed:"completed___3Qqbj",actionTabs:"actionTabs___1GrUM",tab:"tab___3Ipqh",s1:"s1___3EKnf",s2:"s2___2nrm0",tabActive:"tabActive___24bZy",learn:"learn___HaTK4",labelContainer:"labelContainer___IVQXc",text:"text___z1m4c",tag:"tag___8gKDz","tagsList-content":"tagsList-content___YxKUD"}},VpOo:function(Be,ee){function v(Z,Q){var I=Q.x,k=Q.y,_=Q.width,O=Q.height,M=Q.r,T,n,p,a;_<0&&(I=I+_,_=-_),O<0&&(k=k+O,O=-O),typeof M=="number"?T=n=p=a=M:M instanceof Array?M.length===1?T=n=p=a=M[0]:M.length===2?(T=p=M[0],n=a=M[1]):M.length===3?(T=M[0],n=a=M[1],p=M[2]):(T=M[0],n=M[1],p=M[2],a=M[3]):T=n=p=a=0;var t;T+n>_&&(t=T+n,T*=_/t,n*=_/t),p+a>_&&(t=p+a,p*=_/t,a*=_/t),n+p>O&&(t=n+p,n*=O/t,p*=O/t),T+a>O&&(t=T+a,T*=O/t,a*=O/t),Z.moveTo(I+T,k),Z.lineTo(I+_-n,k),n!==0&&Z.arc(I+_-n,k+n,n,-Math.PI/2,0),Z.lineTo(I+_,k+O-p),p!==0&&Z.arc(I+_-p,k+O-p,p,0,Math.PI/2),Z.lineTo(I+a,k+O),a!==0&&Z.arc(I+a,k+O-a,a,Math.PI/2,Math.PI),Z.lineTo(I,k+T),T!==0&&Z.arc(I+T,k+T,T,Math.PI,Math.PI*1.5)}ee.buildPath=v},"VrN/":function(Be,ee,v){(function(Z,Q){Be.exports=Q()})(this,function(){"use strict";var Z=navigator.userAgent,Q=navigator.platform,I=/gecko\/\d/i.test(Z),k=/MSIE \d/.test(Z),_=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Z),O=/Edge\/(\d+)/.exec(Z),M=k||_||O,T=M&&(k?document.documentMode||6:+(O||_)[1]),n=!O&&/WebKit\//.test(Z),p=n&&/Qt\/\d+\.\d+/.test(Z),a=!O&&/Chrome\//.test(Z),t=/Opera\//.test(Z),A=/Apple Computer/.test(navigator.vendor),l=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Z),i=/PhantomJS/.test(Z),c=!O&&/AppleWebKit/.test(Z)&&/Mobile\/\w+/.test(Z),d=/Android/.test(Z),f=c||d||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Z),o=c||/Mac/.test(Q),u=/\bCrOS\b/.test(Z),E=/win/i.test(Q),R=t&&Z.match(/Version\/(\d*\.\d*)/);R&&(R=Number(R[1])),R&&R>=15&&(t=!1,n=!0);var w=o&&(p||t&&(R==null||R<12.11)),P=I||M&&T>=9;function C(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var b=function(e,r){var L=e.className,D=C(r).exec(L);if(D){var j=L.slice(D.index+D[0].length);e.className=L.slice(0,D.index)+(j?D[1]+j:"")}};function s(e){for(var r=e.childNodes.length;r>0;--r)e.removeChild(e.firstChild);return e}function h(e,r){return s(e).appendChild(r)}function m(e,r,L,D){var j=document.createElement(e);if(L&&(j.className=L),D&&(j.style.cssText=D),typeof r=="string")j.appendChild(document.createTextNode(r));else if(r)for(var q=0;q<r.length;++q)j.appendChild(r[q]);return j}function x(e,r,L,D){var j=m(e,r,L,D);return j.setAttribute("role","presentation"),j}var g;document.createRange?g=function(e,r,L,D){var j=document.createRange();return j.setEnd(D||e,L),j.setStart(e,r),j}:g=function(e,r,L){var D=document.body.createTextRange();try{D.moveToElementText(e.parentNode)}catch(j){return D}return D.collapse(!0),D.moveEnd("character",L),D.moveStart("character",r),D};function y(e,r){if(r.nodeType==3&&(r=r.parentNode),e.contains)return e.contains(r);do if(r.nodeType==11&&(r=r.host),r==e)return!0;while(r=r.parentNode)}function U(){var e;try{e=document.activeElement}catch(r){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function N(e,r){var L=e.className;C(r).test(L)||(e.className+=(L?" ":"")+r)}function S(e,r){for(var L=e.split(" "),D=0;D<L.length;D++)L[D]&&!C(L[D]).test(r)&&(r+=" "+L[D]);return r}var H=function(e){e.select()};c?H=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:M&&(H=function(e){try{e.select()}catch(r){}});function F(e){var r=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,r)}}function B(e,r,L){r||(r={});for(var D in e)e.hasOwnProperty(D)&&(L!==!1||!r.hasOwnProperty(D))&&(r[D]=e[D]);return r}function z(e,r,L,D,j){r==null&&(r=e.search(/[^\s\u00a0]/),r==-1&&(r=e.length));for(var q=D||0,ue=j||0;;){var be=e.indexOf(" ",q);if(be<0||be>=r)return ue+(r-q);ue+=be-q,ue+=L-ue%L,q=be+1}}var K=function(){this.id=null,this.f=null,this.time=0,this.handler=F(this.onTimeout,this)};K.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},K.prototype.set=function(e,r){this.f=r;var L=+new Date+e;(!this.id||L<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=L)};function $(e,r){for(var L=0;L<e.length;++L)if(e[L]==r)return L;return-1}var te=50,fe={toString:function(){return"CodeMirror.Pass"}},Ae={scroll:!1},ce={origin:"*mouse"},ie={origin:"+move"};function ye(e,r,L){for(var D=0,j=0;;){var q=e.indexOf(" ",D);q==-1&&(q=e.length);var ue=q-D;if(q==e.length||j+ue>=r)return D+Math.min(ue,r-j);if(j+=q-D,j+=L-j%L,D=q+1,j>=r)return D}}var le=[""];function me(e){for(;le.length<=e;)le.push(se(le)+" ");return le[e]}function se(e){return e[e.length-1]}function ge(e,r){for(var L=[],D=0;D<e.length;D++)L[D]=r(e[D],D);return L}function ae(e,r,L){for(var D=0,j=L(r);D<e.length&&L(e[D])<=j;)D++;e.splice(D,0,r)}function pe(){}function Me(e,r){var L;return Object.create?L=Object.create(e):(pe.prototype=e,L=new pe),r&&B(r,L),L}var xe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ke(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||xe.test(e))}function et(e,r){return r?r.source.indexOf("\\w")>-1&&Ke(e)?!0:r.test(e):Ke(e)}function he(e){for(var r in e)if(e.hasOwnProperty(r)&&e[r])return!1;return!0}var Se=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ue(e){return e.charCodeAt(0)>=768&&Se.test(e)}function Ne(e,r,L){for(;(L<0?r>0:r<e.length)&&Ue(e.charAt(r));)r+=L;return r}function ct(e,r,L){for(var D=r>L?-1:1;;){if(r==L)return r;var j=(r+L)/2,q=D<0?Math.ceil(j):Math.floor(j);if(q==r)return e(q)?r:L;e(q)?L=q:r=q+D}}function ft(e,r,L,D){if(!e)return D(r,L,"ltr",0);for(var j=!1,q=0;q<e.length;++q){var ue=e[q];(ue.from<L&&ue.to>r||r==L&&ue.to==r)&&(D(Math.max(ue.from,r),Math.min(ue.to,L),ue.level==1?"rtl":"ltr",q),j=!0)}j||D(r,L,"ltr")}var Ot=null;function dt(e,r,L){var D;Ot=null;for(var j=0;j<e.length;++j){var q=e[j];if(q.from<r&&q.to>r)return j;q.to==r&&(q.from!=q.to&&L=="before"?D=j:Ot=j),q.from==r&&(q.from!=q.to&&L!="before"?D=j:Ot=j)}return D!=null?D:Ot}var Ut=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function L(De){return De<=247?e.charAt(De):1424<=De&&De<=1524?"R":1536<=De&&De<=1785?r.charAt(De-1536):1774<=De&&De<=2220?"r":8192<=De&&De<=8203?"w":De==8204?"b":"L"}var D=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,j=/[stwN]/,q=/[LRr]/,ue=/[Lb1n]/,be=/[1n]/;function Ee(De,ot,At){this.level=De,this.from=ot,this.to=At}return function(De,ot){var At=ot=="ltr"?"L":"R";if(De.length==0||ot=="ltr"&&!D.test(De))return!1;for(var Nt=De.length,Pt=[],hn=0;hn<Nt;++hn)Pt.push(L(De.charCodeAt(hn)));for(var bn=0,Fn=At;bn<Nt;++bn){var Zn=Pt[bn];Zn=="m"?Pt[bn]=Fn:Fn=Zn}for(var sr=0,$n=At;sr<Nt;++sr){var br=Pt[sr];br=="1"&&$n=="r"?Pt[sr]="n":q.test(br)&&($n=br,br=="r"&&(Pt[sr]="R"))}for(var Zr=1,Hr=Pt[0];Zr<Nt-1;++Zr){var Fa=Pt[Zr];Fa=="+"&&Hr=="1"&&Pt[Zr+1]=="1"?Pt[Zr]="1":Fa==","&&Hr==Pt[Zr+1]&&(Hr=="1"||Hr=="n")&&(Pt[Zr]=Hr),Hr=Fa}for(var ji=0;ji<Nt;++ji){var Co=Pt[ji];if(Co==",")Pt[ji]="N";else if(Co=="%"){var oo=void 0;for(oo=ji+1;oo<Nt&&Pt[oo]=="%";++oo);for(var ds=ji&&Pt[ji-1]=="!"||oo<Nt&&Pt[oo]=="1"?"1":"N",Qo=ji;Qo<oo;++Qo)Pt[Qo]=ds;ji=oo-1}}for(var po=0,Ko=At;po<Nt;++po){var Lo=Pt[po];Ko=="L"&&Lo=="1"?Pt[po]="L":q.test(Lo)&&(Ko=Lo)}for(var zn=0;zn<Nt;++zn)if(j.test(Pt[zn])){var qi=void 0;for(qi=zn+1;qi<Nt&&j.test(Pt[qi]);++qi);for(var eo=(zn?Pt[zn-1]:At)=="L",to=(qi<Nt?Pt[qi]:At)=="L",Dl=eo==to?eo?"L":"R":At,ni=zn;ni<qi;++ni)Pt[ni]=Dl;zn=qi-1}for(var Va=[],Es,wo=0;wo<Nt;)if(ue.test(Pt[wo])){var Ll=wo;for(++wo;wo<Nt&&ue.test(Pt[wo]);++wo);Va.push(new Ee(0,Ll,wo))}else{var al=wo,zs=Va.length,Cl=ot=="rtl"?1:0;for(++wo;wo<Nt&&Pt[wo]!="L";++wo);for(var Jo=al;Jo<wo;)if(be.test(Pt[Jo])){al<Jo&&(Va.splice(zs,0,new Ee(1,al,Jo)),zs+=Cl);var wl=Jo;for(++Jo;Jo<wo&&be.test(Pt[Jo]);++Jo);Va.splice(zs,0,new Ee(2,wl,Jo)),zs+=Cl,al=Jo}else++Jo;al<wo&&Va.splice(zs,0,new Ee(1,al,wo))}return ot=="ltr"&&(Va[0].level==1&&(Es=De.match(/^\s+/))&&(Va[0].from=Es[0].length,Va.unshift(new Ee(0,0,Es[0].length))),se(Va).level==1&&(Es=De.match(/\s+$/))&&(se(Va).to-=Es[0].length,Va.push(new Ee(0,Nt-Es[0].length,Nt)))),ot=="rtl"?Va.reverse():Va}}();function jt(e,r){var L=e.order;return L==null&&(L=e.order=Ut(e.text,r)),L}var ze=[],Ve=function(e,r,L){if(e.addEventListener)e.addEventListener(r,L,!1);else if(e.attachEvent)e.attachEvent("on"+r,L);else{var D=e._handlers||(e._handlers={});D[r]=(D[r]||ze).concat(L)}};function Et(e,r){return e._handlers&&e._handlers[r]||ze}function Rt(e,r,L){if(e.removeEventListener)e.removeEventListener(r,L,!1);else if(e.detachEvent)e.detachEvent("on"+r,L);else{var D=e._handlers,j=D&&D[r];if(j){var q=$(j,L);q>-1&&(D[r]=j.slice(0,q).concat(j.slice(q+1)))}}}function ut(e,r){var L=Et(e,r);if(!L.length)return;for(var D=Array.prototype.slice.call(arguments,2),j=0;j<L.length;++j)L[j].apply(null,D)}function vt(e,r,L){return typeof r=="string"&&(r={type:r,preventDefault:function(){this.defaultPrevented=!0}}),ut(e,L||r.type,e,r),Pe(r)||r.codemirrorIgnore}function Ze(e){var r=e._handlers&&e._handlers.cursorActivity;if(!r)return;for(var L=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),D=0;D<r.length;++D)$(L,r[D])==-1&&L.push(r[D])}function ke(e,r){return Et(e,r).length>0}function He(e){e.prototype.on=function(r,L){Ve(this,r,L)},e.prototype.off=function(r,L){Rt(this,r,L)}}function we(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Le(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Pe(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function We(e){we(e),Le(e)}function Xe(e){return e.target||e.srcElement}function gt(e){var r=e.which;return r==null&&(e.button&1?r=1:e.button&2?r=3:e.button&4&&(r=2)),o&&e.ctrlKey&&r==1&&(r=3),r}var Lt=function(){if(M&&T<9)return!1;var e=m("div");return"draggable"in e||"dragDrop"in e}(),en;function Zt(e){if(en==null){var r=m("span","\u200B");h(e,m("span",[r,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(en=r.offsetWidth<=1&&r.offsetHeight>2&&!(M&&T<8))}var L=en?m("span","\u200B"):m("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return L.setAttribute("cm-text",""),L}var xt;function Ct(e){if(xt!=null)return xt;var r=h(e,document.createTextNode("A\u062EA")),L=g(r,0,1).getBoundingClientRect(),D=g(r,1,2).getBoundingClientRect();return s(e),!L||L.left==L.right?!1:xt=D.right-L.right<3}var mt=`
b`.split(/\n/).length!=3?function(e){for(var r=0,L=[],D=e.length;r<=D;){var j=e.indexOf(`
`,r);j==-1&&(j=e.length);var q=e.slice(r,e.charAt(j-1)=="\r"?j-1:j),ue=q.indexOf("\r");ue!=-1?(L.push(q.slice(0,ue)),r+=ue+1):(L.push(q),r=j+1)}return L}:function(e){return e.split(/\r\n?|\n/)},Je=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(r){return!1}}:function(e){var r;try{r=e.ownerDocument.selection.createRange()}catch(L){}return!r||r.parentElement()!=e?!1:r.compareEndPoints("StartToEnd",r)!=0},Qe=function(){var e=m("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Oe=null;function je(e){if(Oe!=null)return Oe;var r=h(e,m("span","x")),L=r.getBoundingClientRect(),D=g(r,0,1).getBoundingClientRect();return Oe=Math.abs(L.left-D.left)>1}var St={},bt={};function Dt(e,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),St[e]=r}function Qt(e,r){bt[e]=r}function _t(e){if(typeof e=="string"&&bt.hasOwnProperty(e))e=bt[e];else if(e&&typeof e.name=="string"&&bt.hasOwnProperty(e.name)){var r=bt[e.name];typeof r=="string"&&(r={name:r}),e=Me(r,e),e.name=r.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return _t("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return _t("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Gt(e,r){r=_t(r);var L=St[r.name];if(!L)return Gt(e,"text/plain");var D=L(e,r);if(kt.hasOwnProperty(r.name)){var j=kt[r.name];for(var q in j){if(!j.hasOwnProperty(q))continue;D.hasOwnProperty(q)&&(D["_"+q]=D[q]),D[q]=j[q]}}if(D.name=r.name,r.helperType&&(D.helperType=r.helperType),r.modeProps)for(var ue in r.modeProps)D[ue]=r.modeProps[ue];return D}var kt={};function fn(e,r){var L=kt.hasOwnProperty(e)?kt[e]:kt[e]={};B(r,L)}function mn(e,r){if(r===!0)return r;if(e.copyState)return e.copyState(r);var L={};for(var D in r){var j=r[D];j instanceof Array&&(j=j.concat([])),L[D]=j}return L}function Tr(e,r){for(var L;e.innerMode&&!(L=e.innerMode(r),!L||L.mode==e);)r=L.state,e=L.mode;return L||{mode:e,state:r}}function Mr(e,r,L){return e.startState?e.startState(r,L):!0}var kr=function(e,r,L){this.pos=this.start=0,this.string=e,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=L};kr.prototype.eol=function(){return this.pos>=this.string.length},kr.prototype.sol=function(){return this.pos==this.lineStart},kr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},kr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},kr.prototype.eat=function(e){var r=this.string.charAt(this.pos),L;if(typeof e=="string"?L=r==e:L=r&&(e.test?e.test(r):e(r)),L)return++this.pos,r},kr.prototype.eatWhile=function(e){for(var r=this.pos;this.eat(e););return this.pos>r},kr.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},kr.prototype.skipToEnd=function(){this.pos=this.string.length},kr.prototype.skipTo=function(e){var r=this.string.indexOf(e,this.pos);if(r>-1)return this.pos=r,!0},kr.prototype.backUp=function(e){this.pos-=e},kr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=z(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?z(this.string,this.lineStart,this.tabSize):0)},kr.prototype.indentation=function(){return z(this.string,null,this.tabSize)-(this.lineStart?z(this.string,this.lineStart,this.tabSize):0)},kr.prototype.match=function(e,r,L){if(typeof e=="string"){var D=function(ue){return L?ue.toLowerCase():ue},j=this.string.substr(this.pos,e.length);if(D(j)==D(e))return r!==!1&&(this.pos+=e.length),!0}else{var q=this.string.slice(this.pos).match(e);return q&&q.index>0?null:(q&&r!==!1&&(this.pos+=q[0].length),q)}},kr.prototype.current=function(){return this.string.slice(this.start,this.pos)},kr.prototype.hideFirstChars=function(e,r){this.lineStart+=e;try{return r()}finally{this.lineStart-=e}},kr.prototype.lookAhead=function(e){var r=this.lineOracle;return r&&r.lookAhead(e)},kr.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Un(e,r){if(r-=e.first,r<0||r>=e.size)throw new Error("There is no line "+(r+e.first)+" in the document.");for(var L=e;!L.lines;)for(var D=0;;++D){var j=L.children[D],q=j.chunkSize();if(r<q){L=j;break}r-=q}return L.lines[r]}function Ra(e,r,L){var D=[],j=r.line;return e.iter(r.line,L.line+1,function(q){var ue=q.text;j==L.line&&(ue=ue.slice(0,L.ch)),j==r.line&&(ue=ue.slice(r.ch)),D.push(ue),++j}),D}function Xr(e,r,L){var D=[];return e.iter(r,L,function(j){D.push(j.text)}),D}function aa(e,r){var L=r-e.height;if(L)for(var D=e;D;D=D.parent)D.height+=L}function Kr(e){if(e.parent==null)return null;for(var r=e.parent,L=$(r.lines,e),D=r.parent;D;r=D,D=D.parent)for(var j=0;!(D.children[j]==r);++j)L+=D.children[j].chunkSize();return L+r.first}function _a(e,r){var L=e.first;e:do{for(var D=0;D<e.children.length;++D){var j=e.children[D],q=j.height;if(r<q){e=j;continue e}r-=q,L+=j.chunkSize()}return L}while(!e.lines);for(var ue=0;ue<e.lines.length;++ue){var be=e.lines[ue],Ee=be.height;if(r<Ee)break;r-=Ee}return L+ue}function di(e,r){return r>=e.first&&r<e.first+e.size}function Ei(e,r){return String(e.lineNumberFormatter(r+e.firstLineNumber))}function _e(e,r,L){if(L===void 0&&(L=null),!(this instanceof _e))return new _e(e,r,L);this.line=e,this.ch=r,this.sticky=L}function Ie(e,r){return e.line-r.line||e.ch-r.ch}function Ye(e,r){return e.sticky==r.sticky&&Ie(e,r)==0}function yt(e){return _e(e.line,e.ch)}function Xt(e,r){return Ie(e,r)<0?r:e}function sn(e,r){return Ie(e,r)<0?e:r}function re(e,r){return Math.max(e.first,Math.min(r,e.first+e.size-1))}function W(e,r){if(r.line<e.first)return _e(e.first,0);var L=e.first+e.size-1;return r.line>L?_e(L,Un(e,L).text.length):V(r,Un(e,r.line).text.length)}function V(e,r){var L=e.ch;return L==null||L>r?_e(e.line,r):L<0?_e(e.line,0):e}function ne(e,r){for(var L=[],D=0;D<r.length;D++)L[D]=W(e,r[D]);return L}var ve=function(e,r){this.state=e,this.lookAhead=r},oe=function(e,r,L,D){this.state=r,this.doc=e,this.line=L,this.maxLookAhead=D||0,this.baseTokens=null,this.baseTokenPos=1};oe.prototype.lookAhead=function(e){var r=this.doc.getLine(this.line+e);return r!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),r},oe.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var r=this.baseTokens[this.baseTokenPos+1];return{type:r&&r.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},oe.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},oe.fromSaved=function(e,r,L){return r instanceof ve?new oe(e,mn(e.mode,r.state),L,r.lookAhead):new oe(e,mn(e.mode,r),L)},oe.prototype.save=function(e){var r=e!==!1?mn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ve(r,this.maxLookAhead):r};function tt(e,r,L,D){var j=[e.state.modeGen],q={};qr(e,r.text,e.doc.mode,L,function(De,ot){return j.push(De,ot)},q,D);for(var ue=L.state,be=function(De){L.baseTokens=j;var ot=e.state.overlays[De],At=1,Nt=0;L.state=!0,qr(e,r.text,ot.mode,L,function(Pt,hn){for(var bn=At;Nt<Pt;){var Fn=j[At];Fn>Pt&&j.splice(At,1,Pt,j[At+1],Fn),At+=2,Nt=Math.min(Pt,Fn)}if(!hn)return;if(ot.opaque)j.splice(bn,At-bn,Pt,"overlay "+hn),At=bn+2;else for(;bn<At;bn+=2){var Zn=j[bn+1];j[bn+1]=(Zn?Zn+" ":"")+"overlay "+hn}},q),L.state=ue,L.baseTokens=null,L.baseTokenPos=1},Ee=0;Ee<e.state.overlays.length;++Ee)be(Ee);return{styles:j,classes:q.bgClass||q.textClass?q:null}}function Kt(e,r,L){if(!r.styles||r.styles[0]!=e.state.modeGen){var D=dn(e,Kr(r)),j=r.text.length>e.options.maxHighlightLength&&mn(e.doc.mode,D.state),q=tt(e,r,D);j&&(D.state=j),r.stateAfter=D.save(!j),r.styles=q.styles,q.classes?r.styleClasses=q.classes:r.styleClasses&&(r.styleClasses=null),L===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return r.styles}function dn(e,r,L){var D=e.doc,j=e.display;if(!D.mode.startState)return new oe(D,!0,r);var q=zr(e,r,L),ue=q>D.first&&Un(D,q-1).stateAfter,be=ue?oe.fromSaved(D,ue,q):new oe(D,Mr(D.mode),q);return D.iter(q,r,function(Ee){Cn(e,Ee.text,be);var De=be.line;Ee.stateAfter=De==r-1||De%5==0||De>=j.viewFrom&&De<j.viewTo?be.save():null,be.nextLine()}),L&&(D.modeFrontier=be.line),be}function Cn(e,r,L,D){var j=e.doc.mode,q=new kr(r,e.options.tabSize,L);for(q.start=q.pos=D||0,r==""&&Jt(j,L.state);!q.eol();)Vn(j,q,L.state),q.start=q.pos}function Jt(e,r){if(e.blankLine)return e.blankLine(r);if(!e.innerMode)return;var L=Tr(e,r);if(L.mode.blankLine)return L.mode.blankLine(L.state)}function Vn(e,r,L,D){for(var j=0;j<10;j++){D&&(D[0]=Tr(e,L).mode);var q=e.token(r,L);if(r.pos>r.start)return q}throw new Error("Mode "+e.name+" failed to advance stream.")}var Xn=function(e,r,L){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=r||null,this.state=L};function lr(e,r,L,D){var j=e.doc,q=j.mode,ue;r=W(j,r);var be=Un(j,r.line),Ee=dn(e,r.line,L),De=new kr(be.text,e.options.tabSize,Ee),ot;for(D&&(ot=[]);(D||De.pos<r.ch)&&!De.eol();)De.start=De.pos,ue=Vn(q,De,Ee.state),D&&ot.push(new Xn(De,ue,mn(j.mode,Ee.state)));return D?ot:new Xn(De,ue,Ee.state)}function Rr(e,r){if(e)for(;;){var L=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!L)break;e=e.slice(0,L.index)+e.slice(L.index+L[0].length);var D=L[1]?"bgClass":"textClass";r[D]==null?r[D]=L[2]:new RegExp("(?:^|\\s)"+L[2]+"(?:$|\\s)").test(r[D])||(r[D]+=" "+L[2])}return e}function qr(e,r,L,D,j,q,ue){var be=L.flattenSpans;be==null&&(be=e.options.flattenSpans);var Ee=0,De=null,ot=new kr(r,e.options.tabSize,D),At,Nt=e.options.addModeClass&&[null];for(r==""&&Rr(Jt(L,D.state),q);!ot.eol();){if(ot.pos>e.options.maxHighlightLength?(be=!1,ue&&Cn(e,r,D,ot.pos),ot.pos=r.length,At=null):At=Rr(Vn(L,ot,D.state,Nt),q),Nt){var Pt=Nt[0].name;Pt&&(At="m-"+(At?Pt+" "+At:Pt))}if(!be||De!=At){for(;Ee<ot.start;)Ee=Math.min(ot.start,Ee+5e3),j(Ee,De);De=At}ot.start=ot.pos}for(;Ee<ot.pos;){var hn=Math.min(ot.pos,Ee+5e3);j(hn,De),Ee=hn}}function zr(e,r,L){for(var D,j,q=e.doc,ue=L?-1:r-(e.doc.mode.innerMode?1e3:100),be=r;be>ue;--be){if(be<=q.first)return q.first;var Ee=Un(q,be-1),De=Ee.stateAfter;if(De&&(!L||be+(De instanceof ve?De.lookAhead:0)<=q.modeFrontier))return be;var ot=z(Ee.text,null,e.options.tabSize);(j==null||D>ot)&&(j=be-1,D=ot)}return j}function Ca(e,r){if(e.modeFrontier=Math.min(e.modeFrontier,r),e.highlightFrontier<r-10)return;for(var L=e.first,D=r-1;D>L;D--){var j=Un(e,D).stateAfter;if(j&&(!(j instanceof ve)||D+j.lookAhead<r)){L=D+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,L)}var Dr=!1,ya=!1;function ka(){Dr=!0}function fi(){ya=!0}function Ka(e,r,L){this.marker=e,this.from=r,this.to=L}function qa(e,r){if(e)for(var L=0;L<e.length;++L){var D=e[L];if(D.marker==r)return D}}function Si(e,r){for(var L,D=0;D<e.length;++D)e[D]!=r&&(L||(L=[])).push(e[D]);return L}function pi(e,r){e.markedSpans=e.markedSpans?e.markedSpans.concat([r]):[r],r.marker.attachLine(e)}function ui(e,r,L){var D;if(e)for(var j=0;j<e.length;++j){var q=e[j],ue=q.marker,be=q.from==null||(ue.inclusiveLeft?q.from<=r:q.from<r);if(be||q.from==r&&ue.type=="bookmark"&&(!L||!q.marker.insertLeft)){var Ee=q.to==null||(ue.inclusiveRight?q.to>=r:q.to>r);(D||(D=[])).push(new Ka(ue,q.from,Ee?null:q.to))}}return D}function mi(e,r,L){var D;if(e)for(var j=0;j<e.length;++j){var q=e[j],ue=q.marker,be=q.to==null||(ue.inclusiveRight?q.to>=r:q.to>r);if(be||q.from==r&&ue.type=="bookmark"&&(!L||q.marker.insertLeft)){var Ee=q.from==null||(ue.inclusiveLeft?q.from<=r:q.from<r);(D||(D=[])).push(new Ka(ue,Ee?null:q.from-r,q.to==null?null:q.to-r))}}return D}function _i(e,r){if(r.full)return null;var L=di(e,r.from.line)&&Un(e,r.from.line).markedSpans,D=di(e,r.to.line)&&Un(e,r.to.line).markedSpans;if(!L&&!D)return null;var j=r.from.ch,q=r.to.ch,ue=Ie(r.from,r.to)==0,be=ui(L,j,ue),Ee=mi(D,q,ue),De=r.text.length==1,ot=se(r.text).length+(De?j:0);if(be)for(var At=0;At<be.length;++At){var Nt=be[At];if(Nt.to==null){var Pt=qa(Ee,Nt.marker);Pt?De&&(Nt.to=Pt.to==null?null:Pt.to+ot):Nt.to=j}}if(Ee)for(var hn=0;hn<Ee.length;++hn){var bn=Ee[hn];if(bn.to!=null&&(bn.to+=ot),bn.from==null){var Fn=qa(be,bn.marker);Fn||(bn.from=ot,De&&(be||(be=[])).push(bn))}else bn.from+=ot,De&&(be||(be=[])).push(bn)}be&&(be=ai(be)),Ee&&Ee!=be&&(Ee=ai(Ee));var Zn=[be];if(!De){var sr=r.text.length-2,$n;if(sr>0&&be)for(var br=0;br<be.length;++br)be[br].to==null&&($n||($n=[])).push(new Ka(be[br].marker,null,null));for(var Zr=0;Zr<sr;++Zr)Zn.push($n);Zn.push(Ee)}return Zn}function ai(e){for(var r=0;r<e.length;++r){var L=e[r];L.from!=null&&L.from==L.to&&L.marker.clearWhenEmpty!==!1&&e.splice(r--,1)}return e.length?e:null}function Hi(e,r,L){var D=null;if(e.iter(r.line,L.line+1,function(Pt){if(Pt.markedSpans)for(var hn=0;hn<Pt.markedSpans.length;++hn){var bn=Pt.markedSpans[hn].marker;bn.readOnly&&(!D||$(D,bn)==-1)&&(D||(D=[])).push(bn)}}),!D)return null;for(var j=[{from:r,to:L}],q=0;q<D.length;++q)for(var ue=D[q],be=ue.find(0),Ee=0;Ee<j.length;++Ee){var De=j[Ee];if(Ie(De.to,be.from)<0||Ie(De.from,be.to)>0)continue;var ot=[Ee,1],At=Ie(De.from,be.from),Nt=Ie(De.to,be.to);(At<0||!ue.inclusiveLeft&&!At)&&ot.push({from:De.from,to:be.from}),(Nt>0||!ue.inclusiveRight&&!Nt)&&ot.push({from:be.to,to:De.to}),j.splice.apply(j,ot),Ee+=ot.length-3}return j}function Yi(e){var r=e.markedSpans;if(!r)return;for(var L=0;L<r.length;++L)r[L].marker.detachLine(e);e.markedSpans=null}function $r(e,r){if(!r)return;for(var L=0;L<r.length;++L)r[L].marker.attachLine(e);e.markedSpans=r}function ua(e){return e.inclusiveLeft?-1:0}function Pr(e){return e.inclusiveRight?1:0}function ca(e,r){var L=e.lines.length-r.lines.length;if(L!=0)return L;var D=e.find(),j=r.find(),q=Ie(D.from,j.from)||ua(e)-ua(r);if(q)return-q;var ue=Ie(D.to,j.to)||Pr(e)-Pr(r);return ue||r.id-e.id}function Jr(e,r){var L=ya&&e.markedSpans,D;if(L)for(var j=void 0,q=0;q<L.length;++q)j=L[q],j.marker.collapsed&&(r?j.from:j.to)==null&&(!D||ca(D,j.marker)<0)&&(D=j.marker);return D}function ri(e){return Jr(e,!0)}function pa(e){return Jr(e,!1)}function mo(e,r){var L=ya&&e.markedSpans,D;if(L)for(var j=0;j<L.length;++j){var q=L[j];q.marker.collapsed&&(q.from==null||q.from<r)&&(q.to==null||q.to>r)&&(!D||ca(D,q.marker)<0)&&(D=q.marker)}return D}function Di(e,r,L,D,j){var q=Un(e,r),ue=ya&&q.markedSpans;if(ue)for(var be=0;be<ue.length;++be){var Ee=ue[be];if(!Ee.marker.collapsed)continue;var De=Ee.marker.find(0),ot=Ie(De.from,L)||ua(Ee.marker)-ua(j),At=Ie(De.to,D)||Pr(Ee.marker)-Pr(j);if(ot>=0&&At<=0||ot<=0&&At>=0)continue;if(ot<=0&&(Ee.marker.inclusiveRight&&j.inclusiveLeft?Ie(De.to,L)>=0:Ie(De.to,L)>0)||ot>=0&&(Ee.marker.inclusiveRight&&j.inclusiveLeft?Ie(De.from,D)<=0:Ie(De.from,D)<0))return!0}}function ci(e){for(var r;r=ri(e);)e=r.find(-1,!0).line;return e}function Wo(e){for(var r;r=pa(e);)e=r.find(1,!0).line;return e}function Mo(e){for(var r,L;r=pa(e);)e=r.find(1,!0).line,(L||(L=[])).push(e);return L}function ii(e,r){var L=Un(e,r),D=ci(L);return L==D?r:Kr(D)}function go(e,r){if(r>e.lastLine())return r;var L=Un(e,r),D;if(!no(e,L))return r;for(;D=pa(L);)L=D.find(1,!0).line;return Kr(L)+1}function no(e,r){var L=ya&&r.markedSpans;if(L)for(var D=void 0,j=0;j<L.length;++j){if(D=L[j],!D.marker.collapsed)continue;if(D.from==null)return!0;if(D.marker.widgetNode)continue;if(D.from==0&&D.marker.inclusiveLeft&&hs(e,r,D))return!0}}function hs(e,r,L){if(L.to==null){var D=L.marker.find(1,!0);return hs(e,D.line,qa(D.line.markedSpans,L.marker))}if(L.marker.inclusiveRight&&L.to==r.text.length)return!0;for(var j=void 0,q=0;q<r.markedSpans.length;++q)if(j=r.markedSpans[q],j.marker.collapsed&&!j.marker.widgetNode&&j.from==L.to&&(j.to==null||j.to!=L.from)&&(j.marker.inclusiveLeft||L.marker.inclusiveRight)&&hs(e,r,j))return!0}function xo(e){e=ci(e);for(var r=0,L=e.parent,D=0;D<L.lines.length;++D){var j=L.lines[D];if(j==e)break;r+=j.height}for(var q=L.parent;q;L=q,q=L.parent)for(var ue=0;ue<q.children.length;++ue){var be=q.children[ue];if(be==L)break;r+=be.height}return r}function Cs(e){if(e.height==0)return 0;for(var r=e.text.length,L,D=e;L=ri(D);){var j=L.find(0,!0);D=j.from.line,r+=j.from.ch-j.to.ch}for(D=e;L=pa(D);){var q=L.find(0,!0);r-=D.text.length-q.from.ch,D=q.to.line,r+=D.text.length-q.to.ch}return r}function ws(e){var r=e.display,L=e.doc;r.maxLine=Un(L,L.first),r.maxLineLength=Cs(r.maxLine),r.maxLineChanged=!0,L.iter(function(D){var j=Cs(D);j>r.maxLineLength&&(r.maxLineLength=j,r.maxLine=D)})}var ho=function(e,r,L){this.text=e,$r(this,r),this.height=L?L(this):1};ho.prototype.lineNo=function(){return Kr(this)},He(ho);function As(e,r,L,D){e.text=r,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Yi(e),$r(e,L);var j=D?D(e):1;j!=e.height&&aa(e,j)}function mr(e){e.parent=null,Yi(e)}var Vr={},ur={};function oa(e,r){if(!e||/^\s*$/.test(e))return null;var L=r.addModeClass?ur:Vr;return L[e]||(L[e]=e.replace(/\S+/g,"cm-$&"))}function wa(e,r){var L=x("span",null,null,n?"padding-right: .1px":null),D={pre:x("pre",[L],"CodeMirror-line"),content:L,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};r.measure={};for(var j=0;j<=(r.rest?r.rest.length:0);j++){var q=j?r.rest[j-1]:r.line,ue=void 0;D.pos=0,D.addToken=Ba,Ct(e.display.measure)&&(ue=jt(q,e.doc.direction))&&(D.addToken=Ma(D.addToken,ue)),D.map=[];var be=r!=e.display.externalMeasured&&Kr(q);Po(q,D,Kt(e,q,be)),q.styleClasses&&(q.styleClasses.bgClass&&(D.bgClass=S(q.styleClasses.bgClass,D.bgClass||"")),q.styleClasses.textClass&&(D.textClass=S(q.styleClasses.textClass,D.textClass||""))),D.map.length==0&&D.map.push(0,0,D.content.appendChild(Zt(e.display.measure))),j==0?(r.measure.map=D.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(D.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(n){var Ee=D.content.lastChild;(/\bcm-tab\b/.test(Ee.className)||Ee.querySelector&&Ee.querySelector(".cm-tab"))&&(D.content.className="cm-tab-wrap-hack")}return ut(e,"renderLine",e,r.line,D.pre),D.pre.className&&(D.textClass=S(D.pre.className,D.textClass||"")),D}function ei(e){var r=m("span","\u2022","cm-invalidchar");return r.title="\\u"+e.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function Ba(e,r,L,D,j,q,ue){if(!r)return;var be=e.splitSpaces?Ni(r,e.trailingSpace):r,Ee=e.cm.state.specialChars,De=!1,ot;if(!Ee.test(r))e.col+=r.length,ot=document.createTextNode(be),e.map.push(e.pos,e.pos+r.length,ot),M&&T<9&&(De=!0),e.pos+=r.length;else{ot=document.createDocumentFragment();for(var At=0;;){Ee.lastIndex=At;var Nt=Ee.exec(r),Pt=Nt?Nt.index-At:r.length-At;if(Pt){var hn=document.createTextNode(be.slice(At,At+Pt));M&&T<9?ot.appendChild(m("span",[hn])):ot.appendChild(hn),e.map.push(e.pos,e.pos+Pt,hn),e.col+=Pt,e.pos+=Pt}if(!Nt)break;At+=Pt+1;var bn=void 0;if(Nt[0]==" "){var Fn=e.cm.options.tabSize,Zn=Fn-e.col%Fn;bn=ot.appendChild(m("span",me(Zn),"cm-tab")),bn.setAttribute("role","presentation"),bn.setAttribute("cm-text"," "),e.col+=Zn}else Nt[0]=="\r"||Nt[0]==`
`?(bn=ot.appendChild(m("span",Nt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),bn.setAttribute("cm-text",Nt[0]),e.col+=1):(bn=e.cm.options.specialCharPlaceholder(Nt[0]),bn.setAttribute("cm-text",Nt[0]),M&&T<9?ot.appendChild(m("span",[bn])):ot.appendChild(bn),e.col+=1);e.map.push(e.pos,e.pos+1,bn),e.pos++}}if(e.trailingSpace=be.charCodeAt(r.length-1)==32,L||D||j||De||q||ue){var sr=L||"";D&&(sr+=D),j&&(sr+=j);var $n=m("span",[ot],sr,q);if(ue)for(var br in ue)ue.hasOwnProperty(br)&&br!="style"&&br!="class"&&$n.setAttribute(br,ue[br]);return e.content.appendChild($n)}e.content.appendChild(ot)}function Ni(e,r){if(e.length>1&&!/ /.test(e))return e;for(var L=r,D="",j=0;j<e.length;j++){var q=e.charAt(j);q==" "&&L&&(j==e.length-1||e.charCodeAt(j+1)==32)&&(q="\xA0"),D+=q,L=q==" "}return D}function Ma(e,r){return function(L,D,j,q,ue,be,Ee){j=j?j+" cm-force-border":"cm-force-border";for(var De=L.pos,ot=De+D.length;;){for(var At=void 0,Nt=0;Nt<r.length&&!(At=r[Nt],At.to>De&&At.from<=De);Nt++);if(At.to>=ot)return e(L,D,j,q,ue,be,Ee);e(L,D.slice(0,At.to-De),j,q,null,be,Ee),q=null,D=D.slice(At.to-De),De=At.to}}}function xa(e,r,L,D){var j=!D&&L.widgetNode;j&&e.map.push(e.pos,e.pos+r,j),!D&&e.cm.display.input.needsContentAttribute&&(j||(j=e.content.appendChild(document.createElement("span"))),j.setAttribute("cm-marker",L.id)),j&&(e.cm.display.input.setUneditable(j),e.content.appendChild(j)),e.pos+=r,e.trailingSpace=!1}function Po(e,r,L){var D=e.markedSpans,j=e.text,q=0;if(!D){for(var ue=1;ue<L.length;ue+=2)r.addToken(r,j.slice(q,q=L[ue]),oa(L[ue+1],r.cm.options));return}for(var be=j.length,Ee=0,De=1,ot="",At,Nt,Pt=0,hn,bn,Fn,Zn,sr;;){if(Pt==Ee){hn=bn=Fn=Nt="",sr=null,Zn=null,Pt=Infinity;for(var $n=[],br=void 0,Zr=0;Zr<D.length;++Zr){var Hr=D[Zr],Fa=Hr.marker;if(Fa.type=="bookmark"&&Hr.from==Ee&&Fa.widgetNode)$n.push(Fa);else if(Hr.from<=Ee&&(Hr.to==null||Hr.to>Ee||Fa.collapsed&&Hr.to==Ee&&Hr.from==Ee)){if(Hr.to!=null&&Hr.to!=Ee&&Pt>Hr.to&&(Pt=Hr.to,bn=""),Fa.className&&(hn+=" "+Fa.className),Fa.css&&(Nt=(Nt?Nt+";":"")+Fa.css),Fa.startStyle&&Hr.from==Ee&&(Fn+=" "+Fa.startStyle),Fa.endStyle&&Hr.to==Pt&&(br||(br=[])).push(Fa.endStyle,Hr.to),Fa.title&&((sr||(sr={})).title=Fa.title),Fa.attributes)for(var ji in Fa.attributes)(sr||(sr={}))[ji]=Fa.attributes[ji];Fa.collapsed&&(!Zn||ca(Zn.marker,Fa)<0)&&(Zn=Hr)}else Hr.from>Ee&&Pt>Hr.from&&(Pt=Hr.from)}if(br)for(var Co=0;Co<br.length;Co+=2)br[Co+1]==Pt&&(bn+=" "+br[Co]);if(!Zn||Zn.from==Ee)for(var oo=0;oo<$n.length;++oo)xa(r,0,$n[oo]);if(Zn&&(Zn.from||0)==Ee){if(xa(r,(Zn.to==null?be+1:Zn.to)-Ee,Zn.marker,Zn.from==null),Zn.to==null)return;Zn.to==Ee&&(Zn=!1)}}if(Ee>=be)break;for(var ds=Math.min(be,Pt);;){if(ot){var Qo=Ee+ot.length;if(!Zn){var po=Qo>ds?ot.slice(0,ds-Ee):ot;r.addToken(r,po,At?At+hn:hn,Fn,Ee+po.length==Pt?bn:"",Nt,sr)}if(Qo>=ds){ot=ot.slice(ds-Ee),Ee=ds;break}Ee=Qo,Fn=""}ot=j.slice(q,q=L[De++]),At=oa(L[De++],r.cm.options)}}}function Za(e,r,L){this.line=r,this.rest=Mo(r),this.size=this.rest?Kr(se(this.rest))-L+1:1,this.node=this.text=null,this.hidden=no(e,r)}function ro(e,r,L){for(var D=[],j,q=r;q<L;q=j){var ue=new Za(e.doc,Un(e.doc,q),q);j=q+ue.size,D.push(ue)}return D}var so=null;function To(e){so?so.ops.push(e):e.ownsGroup=so={ops:[e],delayedCallbacks:[]}}function Vs(e){var r=e.delayedCallbacks,L=0;do{for(;L<r.length;L++)r[L].call(null);for(var D=0;D<e.ops.length;D++){var j=e.ops[D];if(j.cursorActivityHandlers)for(;j.cursorActivityCalled<j.cursorActivityHandlers.length;)j.cursorActivityHandlers[j.cursorActivityCalled++].call(null,j.cm)}}while(L<r.length)}function ti(e,r){var L=e.ownsGroup;if(!L)return;try{Vs(L)}finally{so=null,r(L)}}var Sa=null;function Ia(e,r){var L=Et(e,r);if(!L.length)return;var D=Array.prototype.slice.call(arguments,2),j;so?j=so.delayedCallbacks:Sa?j=Sa:(j=Sa=[],setTimeout(Eo,0));for(var q=function(be){j.push(function(){return L[be].apply(null,D)})},ue=0;ue<L.length;++ue)q(ue)}function Eo(){var e=Sa;Sa=null;for(var r=0;r<e.length;++r)e[r]()}function xs(e,r,L,D){for(var j=0;j<r.changes.length;j++){var q=r.changes[j];q=="text"?il(e,r):q=="gutter"?Js(e,r,L,D):q=="class"?ml(e,r):q=="widget"&&Ps(e,r,D)}r.changes=null}function Ts(e){return e.node==e.text&&(e.node=m("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),M&&T<8&&(e.node.style.zIndex=2)),e.node}function Xs(e,r){var L=r.bgClass?r.bgClass+" "+(r.line.bgClass||""):r.line.bgClass;if(L&&(L+=" CodeMirror-linebackground"),r.background)L?r.background.className=L:(r.background.parentNode.removeChild(r.background),r.background=null);else if(L){var D=Ts(r);r.background=D.insertBefore(m("div",null,L),D.firstChild),e.display.input.setUneditable(r.background)}}function Ys(e,r){var L=e.display.externalMeasured;return L&&L.line==r.line?(e.display.externalMeasured=null,r.measure=L.measure,L.built):wa(e,r)}function il(e,r){var L=r.text.className,D=Ys(e,r);r.text==r.node&&(r.node=D.pre),r.text.parentNode.replaceChild(D.pre,r.text),r.text=D.pre,D.bgClass!=r.bgClass||D.textClass!=r.textClass?(r.bgClass=D.bgClass,r.textClass=D.textClass,ml(e,r)):L&&(r.text.className=L)}function ml(e,r){Xs(e,r),r.line.wrapClass?Ts(r).className=r.line.wrapClass:r.node!=r.text&&(r.node.className="");var L=r.textClass?r.textClass+" "+(r.line.textClass||""):r.line.textClass;r.text.className=L||""}function Js(e,r,L,D){if(r.gutter&&(r.node.removeChild(r.gutter),r.gutter=null),r.gutterBackground&&(r.node.removeChild(r.gutterBackground),r.gutterBackground=null),r.line.gutterClass){var j=Ts(r);r.gutterBackground=m("div",null,"CodeMirror-gutter-background "+r.line.gutterClass,"left: "+(e.options.fixedGutter?D.fixedPos:-D.gutterTotalWidth)+"px; width: "+D.gutterTotalWidth+"px"),e.display.input.setUneditable(r.gutterBackground),j.insertBefore(r.gutterBackground,r.text)}var q=r.line.gutterMarkers;if(e.options.lineNumbers||q){var ue=Ts(r),be=r.gutter=m("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?D.fixedPos:-D.gutterTotalWidth)+"px");if(e.display.input.setUneditable(be),ue.insertBefore(be,r.text),r.line.gutterClass&&(be.className+=" "+r.line.gutterClass),e.options.lineNumbers&&(!q||!q["CodeMirror-linenumbers"])&&(r.lineNumber=be.appendChild(m("div",Ei(e.options,L),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+D.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),q)for(var Ee=0;Ee<e.display.gutterSpecs.length;++Ee){var De=e.display.gutterSpecs[Ee].className,ot=q.hasOwnProperty(De)&&q[De];ot&&be.appendChild(m("div",[ot],"CodeMirror-gutter-elt","left: "+D.gutterLeft[De]+"px; width: "+D.gutterWidth[De]+"px"))}}}function Ps(e,r,L){r.alignable&&(r.alignable=null);for(var D=C("CodeMirror-linewidget"),j=r.node.firstChild,q=void 0;j;j=q)q=j.nextSibling,D.test(j.className)&&r.node.removeChild(j);Us(e,r,L)}function gl(e,r,L,D){var j=Ys(e,r);return r.text=r.node=j.pre,j.bgClass&&(r.bgClass=j.bgClass),j.textClass&&(r.textClass=j.textClass),ml(e,r),Js(e,r,L,D),Us(e,r,D),r.node}function Us(e,r,L){if(Ns(e,r.line,r,L,!0),r.rest)for(var D=0;D<r.rest.length;D++)Ns(e,r.rest[D],r,L,!1)}function Ns(e,r,L,D,j){if(!r.widgets)return;for(var q=Ts(L),ue=0,be=r.widgets;ue<be.length;++ue){var Ee=be[ue],De=m("div",[Ee.node],"CodeMirror-linewidget"+(Ee.className?" "+Ee.className:""));Ee.handleMouseEvents||De.setAttribute("cm-ignore-events","true"),gi(Ee,De,L,D),e.display.input.setUneditable(De),j&&Ee.above?q.insertBefore(De,L.gutter||L.text):q.appendChild(De),Ia(Ee,"redraw")}}function gi(e,r,L,D){if(e.noHScroll){(L.alignable||(L.alignable=[])).push(r);var j=D.wrapperWidth;r.style.left=D.fixedPos+"px",e.coverGutter||(j-=D.gutterTotalWidth,r.style.paddingLeft=D.gutterTotalWidth+"px"),r.style.width=j+"px"}e.coverGutter&&(r.style.zIndex=5,r.style.position="relative",e.noHScroll||(r.style.marginLeft=-D.gutterTotalWidth+"px"))}function Hs(e){if(e.height!=null)return e.height;var r=e.doc.cm;if(!r)return 0;if(!y(document.body,e.node)){var L="position: relative;";e.coverGutter&&(L+="margin-left: -"+r.display.gutters.offsetWidth+"px;"),e.noHScroll&&(L+="width: "+r.display.wrapper.clientWidth+"px;"),h(r.display.measure,m("div",[e.node],null,L))}return e.height=e.node.parentNode.offsetHeight}function $o(e,r){for(var L=Xe(r);L!=e.wrapper;L=L.parentNode)if(!L||L.nodeType==1&&L.getAttribute("cm-ignore-events")=="true"||L.parentNode==e.sizer&&L!=e.mover)return!0}function ol(e){return e.lineSpace.offsetTop}function $e(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function pt(e){if(e.cachedPaddingH)return e.cachedPaddingH;var r=h(e.measure,m("pre","x","CodeMirror-line-like")),L=window.getComputedStyle?window.getComputedStyle(r):r.currentStyle,D={left:parseInt(L.paddingLeft),right:parseInt(L.paddingRight)};return!isNaN(D.left)&&!isNaN(D.right)&&(e.cachedPaddingH=D),D}function wt(e){return te-e.display.nativeBarWidth}function nt(e){return e.display.scroller.clientWidth-wt(e)-e.display.barWidth}function Te(e){return e.display.scroller.clientHeight-wt(e)-e.display.barHeight}function Ge(e,r,L){var D=e.options.lineWrapping,j=D&&nt(e);if(!r.measure.heights||D&&r.measure.width!=j){var q=r.measure.heights=[];if(D){r.measure.width=j;for(var ue=r.text.firstChild.getClientRects(),be=0;be<ue.length-1;be++){var Ee=ue[be],De=ue[be+1];Math.abs(Ee.bottom-De.bottom)>2&&q.push((Ee.bottom+De.top)/2-L.top)}}q.push(L.bottom-L.top)}}function Re(e,r,L){if(e.line==r)return{map:e.measure.map,cache:e.measure.cache};for(var D=0;D<e.rest.length;D++)if(e.rest[D]==r)return{map:e.measure.maps[D],cache:e.measure.caches[D]};for(var j=0;j<e.rest.length;j++)if(Kr(e.rest[j])>L)return{map:e.measure.maps[j],cache:e.measure.caches[j],before:!0}}function it(e,r){r=ci(r);var L=Kr(r),D=e.display.externalMeasured=new Za(e.doc,r,L);D.lineN=L;var j=D.built=wa(e,D);return D.text=j.pre,h(e.display.lineMeasure,j.pre),D}function st(e,r,L,D){return Mt(e,ht(e,r),L,D)}function Tt(e,r){if(r>=e.display.viewFrom&&r<e.display.viewTo)return e.display.view[rr(e,r)];var L=e.display.externalMeasured;if(L&&r>=L.lineN&&r<L.lineN+L.size)return L}function ht(e,r){var L=Kr(r),D=Tt(e,L);D&&!D.text?D=null:D&&D.changes&&(xs(e,D,L,Kn(e)),e.curOp.forceUpdate=!0),D||(D=it(e,r));var j=Re(D,r,L);return{line:r,view:D,rect:null,map:j.map,cache:j.cache,before:j.before,hasHeights:!1}}function Mt(e,r,L,D,j){r.before&&(L=-1);var q=L+(D||""),ue;return r.cache.hasOwnProperty(q)?ue=r.cache[q]:(r.rect||(r.rect=r.view.text.getBoundingClientRect()),r.hasHeights||(Ge(e,r.view,r.rect),r.hasHeights=!0),ue=Bt(e,r,L,D),ue.bogus||(r.cache[q]=ue)),{left:ue.left,right:ue.right,top:j?ue.rtop:ue.top,bottom:j?ue.rbottom:ue.bottom}}var tn={left:0,right:0,top:0,bottom:0};function lt(e,r,L){for(var D,j,q,ue,be,Ee,De=0;De<e.length;De+=3)if(be=e[De],Ee=e[De+1],r<be?(j=0,q=1,ue="left"):r<Ee?(j=r-be,q=j+1):(De==e.length-3||r==Ee&&e[De+3]>r)&&(q=Ee-be,j=q-1,r>=Ee&&(ue="right")),j!=null){if(D=e[De+2],be==Ee&&L==(D.insertLeft?"left":"right")&&(ue=L),L=="left"&&j==0)for(;De&&e[De-2]==e[De-3]&&e[De-1].insertLeft;)D=e[(De-=3)+2],ue="left";if(L=="right"&&j==Ee-be)for(;De<e.length-3&&e[De+3]==e[De+4]&&!e[De+5].insertLeft;)D=e[(De+=3)+2],ue="right";break}return{node:D,start:j,end:q,collapse:ue,coverStart:be,coverEnd:Ee}}function qe(e,r){var L=tn;if(r=="left")for(var D=0;D<e.length&&!((L=e[D]).left!=L.right);D++);else for(var j=e.length-1;j>=0&&!((L=e[j]).left!=L.right);j--);return L}function Bt(e,r,L,D){var j=lt(r.map,L,D),q=j.node,ue=j.start,be=j.end,Ee=j.collapse,De;if(q.nodeType==3){for(var ot=0;ot<4;ot++){for(;ue&&Ue(r.line.text.charAt(j.coverStart+ue));)--ue;for(;j.coverStart+be<j.coverEnd&&Ue(r.line.text.charAt(j.coverStart+be));)++be;if(M&&T<9&&ue==0&&be==j.coverEnd-j.coverStart?De=q.parentNode.getBoundingClientRect():De=qe(g(q,ue,be).getClientRects(),D),De.left||De.right||ue==0)break;be=ue,ue=ue-1,Ee="right"}M&&T<11&&(De=$t(e.display.measure,De))}else{ue>0&&(Ee=D="right");var At;e.options.lineWrapping&&(At=q.getClientRects()).length>1?De=At[D=="right"?At.length-1:0]:De=q.getBoundingClientRect()}if(M&&T<9&&!ue&&(!De||!De.left&&!De.right)){var Nt=q.parentNode.getClientRects()[0];Nt?De={left:Nt.left,right:Nt.left+yn(e.display),top:Nt.top,bottom:Nt.bottom}:De=tn}for(var Pt=De.top-r.rect.top,hn=De.bottom-r.rect.top,bn=(Pt+hn)/2,Fn=r.view.measure.heights,Zn=0;Zn<Fn.length-1&&!(bn<Fn[Zn]);Zn++);var sr=Zn?Fn[Zn-1]:0,$n=Fn[Zn],br={left:(Ee=="right"?De.right:De.left)-r.rect.left,right:(Ee=="left"?De.left:De.right)-r.rect.left,top:sr,bottom:$n};return!De.left&&!De.right&&(br.bogus=!0),e.options.singleCursorHeightPerLine||(br.rtop=Pt,br.rbottom=hn),br}function $t(e,r){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!je(e))return r;var L=screen.logicalXDPI/screen.deviceXDPI,D=screen.logicalYDPI/screen.deviceYDPI;return{left:r.left*L,right:r.right*L,top:r.top*D,bottom:r.bottom*D}}function cn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var r=0;r<e.rest.length;r++)e.measure.caches[r]={}}function Wt(e){e.display.externalMeasure=null,s(e.display.lineMeasure);for(var r=0;r<e.display.view.length;r++)cn(e.display.view[r])}function _n(e){Wt(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function rn(){return a&&d?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Ht(){return a&&d?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function An(e){var r=0;if(e.widgets)for(var L=0;L<e.widgets.length;++L)e.widgets[L].above&&(r+=Hs(e.widgets[L]));return r}function qt(e,r,L,D,j){if(!j){var q=An(r);L.top+=q,L.bottom+=q}if(D=="line")return L;D||(D="local");var ue=xo(r);if(D=="local"?ue+=ol(e.display):ue-=e.display.viewOffset,D=="page"||D=="window"){var be=e.display.lineSpace.getBoundingClientRect();ue+=be.top+(D=="window"?0:Ht());var Ee=be.left+(D=="window"?0:rn());L.left+=Ee,L.right+=Ee}return L.top+=ue,L.bottom+=ue,L}function En(e,r,L){if(L=="div")return r;var D=r.left,j=r.top;if(L=="page")D-=rn(),j-=Ht();else if(L=="local"||!L){var q=e.display.sizer.getBoundingClientRect();D+=q.left,j+=q.top}var ue=e.display.lineSpace.getBoundingClientRect();return{left:D-ue.left,top:j-ue.top}}function kn(e,r,L,D,j){return D||(D=Un(e.doc,r.line)),qt(e,D,st(e,D,r.ch,j),L)}function Yt(e,r,L,D,j,q){D=D||Un(e.doc,r.line),j||(j=ht(e,D));function ue(hn,bn){var Fn=Mt(e,j,hn,bn?"right":"left",q);return bn?Fn.left=Fn.right:Fn.right=Fn.left,qt(e,D,Fn,L)}var be=jt(D,e.doc.direction),Ee=r.ch,De=r.sticky;if(Ee>=D.text.length?(Ee=D.text.length,De="before"):Ee<=0&&(Ee=0,De="after"),!be)return ue(De=="before"?Ee-1:Ee,De=="before");function ot(hn,bn,Fn){var Zn=be[bn],sr=Zn.level==1;return ue(Fn?hn-1:hn,sr!=Fn)}var At=dt(be,Ee,De),Nt=Ot,Pt=ot(Ee,At,De=="before");return Nt!=null&&(Pt.other=ot(Ee,Nt,De!="before")),Pt}function wn(e,r){var L=0;r=W(e.doc,r),e.options.lineWrapping||(L=yn(e.display)*r.ch);var D=Un(e.doc,r.line),j=xo(D)+ol(e.display);return{left:L,right:L,top:j,bottom:j+D.height}}function ln(e,r,L,D,j){var q=_e(e,r,L);return q.xRel=j,D&&(q.outside=D),q}function xn(e,r,L){var D=e.doc;if(L+=e.display.viewOffset,L<0)return ln(D.first,0,null,-1,-1);var j=_a(D,L),q=D.first+D.size-1;if(j>q)return ln(D.first+D.size-1,Un(D,q).text.length,null,1,1);r<0&&(r=0);for(var ue=Un(D,j);;){var be=hr(e,ue,j,r,L),Ee=mo(ue,be.ch+(be.xRel>0||be.outside>0?1:0));if(!Ee)return be;var De=Ee.find(1);if(De.line==j)return De;ue=Un(D,j=De.line)}}function an(e,r,L,D){D-=An(r);var j=r.text.length,q=ct(function(ue){return Mt(e,L,ue-1).bottom<=D},j,0);return j=ct(function(ue){return Mt(e,L,ue).top>D},q,j),{begin:q,end:j}}function Vt(e,r,L,D){L||(L=ht(e,r));var j=qt(e,r,Mt(e,L,D),"line").top;return an(e,r,L,j)}function Sn(e,r,L,D){return e.bottom<=L?!1:e.top>L?!0:(D?e.left:e.right)>r}function hr(e,r,L,D,j){j-=xo(r);var q=ht(e,r),ue=An(r),be=0,Ee=r.text.length,De=!0,ot=jt(r,e.doc.direction);if(ot){var At=(e.options.lineWrapping?Dn:pn)(e,r,L,q,ot,D,j);De=At.level!=1,be=De?At.from:At.to-1,Ee=De?At.to:At.from-1}var Nt=null,Pt=null,hn=ct(function(Zr){var Hr=Mt(e,q,Zr);return Hr.top+=ue,Hr.bottom+=ue,Sn(Hr,D,j,!1)?(Hr.top<=j&&Hr.left<=D&&(Nt=Zr,Pt=Hr),!0):!1},be,Ee),bn,Fn,Zn=!1;if(Pt){var sr=D-Pt.left<Pt.right-D,$n=sr==De;hn=Nt+($n?0:1),Fn=$n?"after":"before",bn=sr?Pt.left:Pt.right}else{!De&&(hn==Ee||hn==be)&&hn++,Fn=hn==0?"after":hn==r.text.length?"before":Mt(e,q,hn-(De?1:0)).bottom+ue<=j==De?"after":"before";var br=Yt(e,_e(L,hn,Fn),"line",r,q);bn=br.left,Zn=j<br.top?-1:j>=br.bottom?1:0}return hn=Ne(r.text,hn,1),ln(L,hn,Fn,Zn,D-bn)}function pn(e,r,L,D,j,q,ue){var be=ct(function(At){var Nt=j[At],Pt=Nt.level!=1;return Sn(Yt(e,_e(L,Pt?Nt.to:Nt.from,Pt?"before":"after"),"line",r,D),q,ue,!0)},0,j.length-1),Ee=j[be];if(be>0){var De=Ee.level!=1,ot=Yt(e,_e(L,De?Ee.from:Ee.to,De?"after":"before"),"line",r,D);Sn(ot,q,ue,!0)&&ot.top>ue&&(Ee=j[be-1])}return Ee}function Dn(e,r,L,D,j,q,ue){var be=an(e,r,D,ue),Ee=be.begin,De=be.end;/\s/.test(r.text.charAt(De-1))&&De--;for(var ot=null,At=null,Nt=0;Nt<j.length;Nt++){var Pt=j[Nt];if(Pt.from>=De||Pt.to<=Ee)continue;var hn=Pt.level!=1,bn=Mt(e,D,hn?Math.min(De,Pt.to)-1:Math.max(Ee,Pt.from)).right,Fn=bn<q?q-bn+1e9:bn-q;(!ot||At>Fn)&&(ot=Pt,At=Fn)}return ot||(ot=j[j.length-1]),ot.from<Ee&&(ot={from:Ee,to:ot.to,level:ot.level}),ot.to>De&&(ot={from:ot.from,to:De,level:ot.level}),ot}var Nn;function Gn(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Nn==null){Nn=m("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)Nn.appendChild(document.createTextNode("x")),Nn.appendChild(m("br"));Nn.appendChild(document.createTextNode("x"))}h(e.measure,Nn);var L=Nn.offsetHeight/50;return L>3&&(e.cachedTextHeight=L),s(e.measure),L||1}function yn(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var r=m("span","xxxxxxxxxx"),L=m("pre",[r],"CodeMirror-line-like");h(e.measure,L);var D=r.getBoundingClientRect(),j=(D.right-D.left)/10;return j>2&&(e.cachedCharWidth=j),j||10}function Kn(e){for(var r=e.display,L={},D={},j=r.gutters.clientLeft,q=r.gutters.firstChild,ue=0;q;q=q.nextSibling,++ue){var be=e.display.gutterSpecs[ue].className;L[be]=q.offsetLeft+q.clientLeft+j,D[be]=q.clientWidth}return{fixedPos:or(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:L,gutterWidth:D,wrapperWidth:r.wrapper.clientWidth}}function or(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function gr(e){var r=Gn(e.display),L=e.options.lineWrapping,D=L&&Math.max(5,e.display.scroller.clientWidth/yn(e.display)-3);return function(j){if(no(e.doc,j))return 0;var q=0;if(j.widgets)for(var ue=0;ue<j.widgets.length;ue++)j.widgets[ue].height&&(q+=j.widgets[ue].height);return L?q+(Math.ceil(j.text.length/D)||1)*r:q+r}}function Ur(e){var r=e.doc,L=gr(e);r.iter(function(D){var j=L(D);j!=D.height&&aa(D,j)})}function er(e,r,L,D){var j=e.display;if(!L&&Xe(r).getAttribute("cm-not-content")=="true")return null;var q,ue,be=j.lineSpace.getBoundingClientRect();try{q=r.clientX-be.left,ue=r.clientY-be.top}catch(At){return null}var Ee=xn(e,q,ue),De;if(D&&Ee.xRel>0&&(De=Un(e.doc,Ee.line).text).length==Ee.ch){var ot=z(De,De.length,e.options.tabSize)-De.length;Ee=_e(Ee.line,Math.max(0,Math.round((q-pt(e.display).left)/yn(e.display))-ot))}return Ee}function rr(e,r){if(r>=e.display.viewTo)return null;if(r-=e.display.viewFrom,r<0)return null;for(var L=e.display.view,D=0;D<L.length;D++)if(r-=L[D].size,r<0)return D}function Lr(e,r,L,D){r==null&&(r=e.doc.first),L==null&&(L=e.doc.first+e.doc.size),D||(D=0);var j=e.display;if(D&&L<j.viewTo&&(j.updateLineNumbers==null||j.updateLineNumbers>r)&&(j.updateLineNumbers=r),e.curOp.viewChanged=!0,r>=j.viewTo)ya&&ii(e.doc,r)<j.viewTo&&_r(e);else if(L<=j.viewFrom)ya&&go(e.doc,L+D)>j.viewFrom?_r(e):(j.viewFrom+=D,j.viewTo+=D);else if(r<=j.viewFrom&&L>=j.viewTo)_r(e);else if(r<=j.viewFrom){var q=sa(e,L,L+D,1);q?(j.view=j.view.slice(q.index),j.viewFrom=q.lineN,j.viewTo+=D):_r(e)}else if(L>=j.viewTo){var ue=sa(e,r,r,-1);ue?(j.view=j.view.slice(0,ue.index),j.viewTo=ue.lineN):_r(e)}else{var be=sa(e,r,r,-1),Ee=sa(e,L,L+D,1);be&&Ee?(j.view=j.view.slice(0,be.index).concat(ro(e,be.lineN,Ee.lineN)).concat(j.view.slice(Ee.index)),j.viewTo+=D):_r(e)}var De=j.externalMeasured;De&&(L<De.lineN?De.lineN+=D:r<De.lineN+De.size&&(j.externalMeasured=null))}function Er(e,r,L){e.curOp.viewChanged=!0;var D=e.display,j=e.display.externalMeasured;if(j&&r>=j.lineN&&r<j.lineN+j.size&&(D.externalMeasured=null),r<D.viewFrom||r>=D.viewTo)return;var q=D.view[rr(e,r)];if(q.node==null)return;var ue=q.changes||(q.changes=[]);$(ue,L)==-1&&ue.push(L)}function _r(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function sa(e,r,L,D){var j=rr(e,r),q,ue=e.display.view;if(!ya||L==e.doc.first+e.doc.size)return{index:j,lineN:L};for(var be=e.display.viewFrom,Ee=0;Ee<j;Ee++)be+=ue[Ee].size;if(be!=r){if(D>0){if(j==ue.length-1)return null;q=be+ue[j].size-r,j++}else q=be-r;r+=q,L+=q}for(;ii(e.doc,L)!=L;){if(j==(D<0?0:ue.length-1))return null;L+=D*ue[j-(D<0?1:0)].size,j+=D}return{index:j,lineN:L}}function ta(e,r,L){var D=e.display,j=D.view;j.length==0||r>=D.viewTo||L<=D.viewFrom?(D.view=ro(e,r,L),D.viewFrom=r):(D.viewFrom>r?D.view=ro(e,r,D.viewFrom).concat(D.view):D.viewFrom<r&&(D.view=D.view.slice(rr(e,r))),D.viewFrom=r,D.viewTo<L?D.view=D.view.concat(ro(e,D.viewTo,L)):D.viewTo>L&&(D.view=D.view.slice(0,rr(e,L)))),D.viewTo=L}function tr(e){for(var r=e.display.view,L=0,D=0;D<r.length;D++){var j=r[D];!j.hidden&&(!j.node||j.changes)&&++L}return L}function vr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function ja(e,r){r===void 0&&(r=!0);for(var L=e.doc,D={},j=D.cursors=document.createDocumentFragment(),q=D.selection=document.createDocumentFragment(),ue=0;ue<L.sel.ranges.length;ue++){if(!r&&ue==L.sel.primIndex)continue;var be=L.sel.ranges[ue];if(be.from().line>=e.display.viewTo||be.to().line<e.display.viewFrom)continue;var Ee=be.empty();(Ee||e.options.showCursorWhenSelecting)&&ia(e,be.head,j),Ee||vn(e,be,q)}return D}function ia(e,r,L){var D=Yt(e,r,"div",null,null,!e.options.singleCursorHeightPerLine),j=L.appendChild(m("div","\xA0","CodeMirror-cursor"));if(j.style.left=D.left+"px",j.style.top=D.top+"px",j.style.height=Math.max(0,D.bottom-D.top)*e.options.cursorHeight+"px",D.other){var q=L.appendChild(m("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));q.style.display="",q.style.left=D.other.left+"px",q.style.top=D.other.top+"px",q.style.height=(D.other.bottom-D.other.top)*.85+"px"}}function Yn(e,r){return e.top-r.top||e.left-r.left}function vn(e,r,L){var D=e.display,j=e.doc,q=document.createDocumentFragment(),ue=pt(e.display),be=ue.left,Ee=Math.max(D.sizerWidth,nt(e)-D.sizer.offsetLeft)-ue.right,De=j.direction=="ltr";function ot($n,br,Zr,Hr){br<0&&(br=0),br=Math.round(br),Hr=Math.round(Hr),q.appendChild(m("div",null,"CodeMirror-selected","position: absolute; left: "+$n+`px;
top: `+br+"px; width: "+(Zr==null?Ee-$n:Zr)+`px;
height: `+(Hr-br)+"px"))}function At($n,br,Zr){var Hr=Un(j,$n),Fa=Hr.text.length,ji,Co;function oo(po,Ko){return kn(e,_e($n,po),"div",Hr,Ko)}function ds(po,Ko,Lo){var zn=Vt(e,Hr,null,po),qi=Ko=="ltr"==(Lo=="after")?"left":"right",eo=Lo=="after"?zn.begin:zn.end-(/\s/.test(Hr.text.charAt(zn.end-1))?2:1);return oo(eo,qi)[qi]}var Qo=jt(Hr,j.direction);return ft(Qo,br||0,Zr==null?Fa:Zr,function(po,Ko,Lo,zn){var qi=Lo=="ltr",eo=oo(po,qi?"left":"right"),to=oo(Ko-1,qi?"right":"left"),Dl=br==null&&po==0,ni=Zr==null&&Ko==Fa,Va=zn==0,Es=!Qo||zn==Qo.length-1;if(to.top-eo.top<=3){var wo=(De?Dl:ni)&&Va,Ll=(De?ni:Dl)&&Es,al=wo?be:(qi?eo:to).left,zs=Ll?Ee:(qi?to:eo).right;ot(al,eo.top,zs-al,eo.bottom)}else{var Cl,Jo,wl,Eu;qi?(Cl=De&&Dl&&Va?be:eo.left,Jo=De?Ee:ds(po,Lo,"before"),wl=De?be:ds(Ko,Lo,"after"),Eu=De&&ni&&Es?Ee:to.right):(Cl=De?ds(po,Lo,"before"):be,Jo=!De&&Dl&&Va?Ee:eo.right,wl=!De&&ni&&Es?be:to.left,Eu=De?ds(Ko,Lo,"after"):Ee),ot(Cl,eo.top,Jo-Cl,eo.bottom),eo.bottom<to.top&&ot(be,eo.bottom,null,to.top),ot(wl,to.top,Eu-wl,to.bottom)}(!ji||Yn(eo,ji)<0)&&(ji=eo),Yn(to,ji)<0&&(ji=to),(!Co||Yn(eo,Co)<0)&&(Co=eo),Yn(to,Co)<0&&(Co=to)}),{start:ji,end:Co}}var Nt=r.from(),Pt=r.to();if(Nt.line==Pt.line)At(Nt.line,Nt.ch,Pt.ch);else{var hn=Un(j,Nt.line),bn=Un(j,Pt.line),Fn=ci(hn)==ci(bn),Zn=At(Nt.line,Nt.ch,Fn?hn.text.length+1:null).end,sr=At(Pt.line,Fn?0:null,Pt.ch).start;Fn&&(Zn.top<sr.top-2?(ot(Zn.right,Zn.top,null,Zn.bottom),ot(be,sr.top,sr.left,sr.bottom)):ot(Zn.right,Zn.top,sr.left-Zn.right,Zn.bottom)),Zn.bottom<sr.top&&ot(be,Zn.bottom,null,sr.top)}L.appendChild(q)}function yr(e){if(!e.state.focused)return;var r=e.display;clearInterval(r.blinker);var L=!0;r.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?r.blinker=setInterval(function(){e.hasFocus()||fr(e),r.cursorDiv.style.visibility=(L=!L)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}function oi(e){e.state.focused||(e.display.input.focus(),Ir(e))}function Cr(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,fr(e))},100)}function Ir(e,r){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(ut(e,"focus",e,r),e.state.focused=!0,N(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),n&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),yr(e)}function fr(e,r){if(e.state.delayingBlurEvent)return;e.state.focused&&(ut(e,"blur",e,r),e.state.focused=!1,b(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function ar(e){for(var r=e.display,L=r.lineDiv.offsetTop,D=0;D<r.view.length;D++){var j=r.view[D],q=e.options.lineWrapping,ue=void 0,be=0;if(j.hidden)continue;if(M&&T<8){var Ee=j.node.offsetTop+j.node.offsetHeight;ue=Ee-L,L=Ee}else{var De=j.node.getBoundingClientRect();ue=De.bottom-De.top,!q&&j.text.firstChild&&(be=j.text.firstChild.getBoundingClientRect().right-De.left-1)}var ot=j.line.height-ue;if((ot>.005||ot<-.005)&&(aa(j.line,ue),Ln(j.line),j.rest))for(var At=0;At<j.rest.length;At++)Ln(j.rest[At]);if(be>e.display.sizerWidth){var Nt=Math.ceil(be/yn(e.display));Nt>e.display.maxLineLength&&(e.display.maxLineLength=Nt,e.display.maxLine=j.line,e.display.maxLineChanged=!0)}}}function Ln(e){if(e.widgets)for(var r=0;r<e.widgets.length;++r){var L=e.widgets[r],D=L.node.parentNode;D&&(L.height=D.offsetHeight)}}function Mn(e,r,L){var D=L&&L.top!=null?Math.max(0,L.top):e.scroller.scrollTop;D=Math.floor(D-ol(e));var j=L&&L.bottom!=null?L.bottom:D+e.wrapper.clientHeight,q=_a(r,D),ue=_a(r,j);if(L&&L.ensure){var be=L.ensure.from.line,Ee=L.ensure.to.line;be<q?(q=be,ue=_a(r,xo(Un(r,be))+e.wrapper.clientHeight)):Math.min(Ee,r.lastLine())>=ue&&(q=_a(r,xo(Un(r,Ee))-e.wrapper.clientHeight),ue=Ee)}return{from:q,to:Math.max(ue,q+1)}}function gn(e,r){if(vt(e,"scrollCursorIntoView"))return;var L=e.display,D=L.sizer.getBoundingClientRect(),j=null;if(r.top+D.top<0?j=!0:r.bottom+D.top>(window.innerHeight||document.documentElement.clientHeight)&&(j=!1),j!=null&&!i){var q=m("div","\u200B",null,`position: absolute;
top: `+(r.top-L.viewOffset-ol(e.display))+`px;
height: `+(r.bottom-r.top+wt(e)+L.barHeight)+`px;
left: `+r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");e.display.lineSpace.appendChild(q),q.scrollIntoView(j),e.display.lineSpace.removeChild(q)}}function qn(e,r,L,D){D==null&&(D=0);var j;!e.options.lineWrapping&&r==L&&(r=r.ch?_e(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r,L=r.sticky=="before"?_e(r.line,r.ch+1,"before"):r);for(var q=0;q<5;q++){var ue=!1,be=Yt(e,r),Ee=!L||L==r?be:Yt(e,L);j={left:Math.min(be.left,Ee.left),top:Math.min(be.top,Ee.top)-D,right:Math.max(be.left,Ee.left),bottom:Math.max(be.bottom,Ee.bottom)+D};var De=cr(e,j),ot=e.doc.scrollTop,At=e.doc.scrollLeft;if(De.scrollTop!=null&&(Da(e,De.scrollTop),Math.abs(e.doc.scrollTop-ot)>1&&(ue=!0)),De.scrollLeft!=null&&(Qr(e,De.scrollLeft),Math.abs(e.doc.scrollLeft-At)>1&&(ue=!0)),!ue)break}return j}function na(e,r){var L=cr(e,r);L.scrollTop!=null&&Da(e,L.scrollTop),L.scrollLeft!=null&&Qr(e,L.scrollLeft)}function cr(e,r){var L=e.display,D=Gn(e.display);r.top<0&&(r.top=0);var j=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:L.scroller.scrollTop,q=Te(e),ue={};r.bottom-r.top>q&&(r.bottom=r.top+q);var be=e.doc.height+$e(L),Ee=r.top<D,De=r.bottom>be-D;if(r.top<j)ue.scrollTop=Ee?0:r.top;else if(r.bottom>j+q){var ot=Math.min(r.top,(De?be:r.bottom)-q);ot!=j&&(ue.scrollTop=ot)}var At=e.options.fixedGutter?0:L.gutters.offsetWidth,Nt=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:L.scroller.scrollLeft-At,Pt=nt(e)-L.gutters.offsetWidth,hn=r.right-r.left>Pt;return hn&&(r.right=r.left+Pt),r.left<10?ue.scrollLeft=0:r.left<Nt?ue.scrollLeft=Math.max(0,r.left+At-(hn?0:10)):r.right>Pt+Nt-3&&(ue.scrollLeft=r.right+(hn?0:10)-Pt),ue}function jr(e,r){if(r==null)return;ha(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+r}function Pa(e){ha(e);var r=e.getCursor();e.curOp.scrollToPos={from:r,to:r,margin:e.options.cursorScrollMargin}}function da(e,r,L){(r!=null||L!=null)&&ha(e),r!=null&&(e.curOp.scrollLeft=r),L!=null&&(e.curOp.scrollTop=L)}function ba(e,r){ha(e),e.curOp.scrollToPos=r}function ha(e){var r=e.curOp.scrollToPos;if(r){e.curOp.scrollToPos=null;var L=wn(e,r.from),D=wn(e,r.to);Ta(e,L,D,r.margin)}}function Ta(e,r,L,D){var j=cr(e,{left:Math.min(r.left,L.left),top:Math.min(r.top,L.top)-D,right:Math.max(r.right,L.right),bottom:Math.max(r.bottom,L.bottom)+D});da(e,j.scrollLeft,j.scrollTop)}function Da(e,r){if(Math.abs(e.doc.scrollTop-r)<2)return;I||yo(e,{top:r}),Ua(e,r,!0),I&&yo(e),vo(e,100)}function Ua(e,r,L){if(r=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,r)),e.display.scroller.scrollTop==r&&!L)return;e.doc.scrollTop=r,e.display.scrollbars.setScrollTop(r),e.display.scroller.scrollTop!=r&&(e.display.scroller.scrollTop=r)}function Qr(e,r,L,D){if(r=Math.max(0,Math.min(r,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(L?r==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-r)<2)&&!D)return;e.doc.scrollLeft=r,la(e),e.display.scroller.scrollLeft!=r&&(e.display.scroller.scrollLeft=r),e.display.scrollbars.setScrollLeft(r)}function Wa(e){var r=e.display,L=r.gutters.offsetWidth,D=Math.round(e.doc.height+$e(e.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:e.options.fixedGutter?L:0,docHeight:D,scrollHeight:D+wt(e)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:L}}var Ea=function(e,r,L){this.cm=L;var D=this.vert=m("div",[m("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),j=this.horiz=m("div",[m("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");D.tabIndex=j.tabIndex=-1,e(D),e(j),Ve(D,"scroll",function(){D.clientHeight&&r(D.scrollTop,"vertical")}),Ve(j,"scroll",function(){j.clientWidth&&r(j.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,M&&T<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ea.prototype.update=function(e){var r=e.scrollWidth>e.clientWidth+1,L=e.scrollHeight>e.clientHeight+1,D=e.nativeBarWidth;if(L){this.vert.style.display="block",this.vert.style.bottom=r?D+"px":"0";var j=e.viewHeight-(r?D:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+j)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(r){this.horiz.style.display="block",this.horiz.style.right=L?D+"px":"0",this.horiz.style.left=e.barLeft+"px";var q=e.viewWidth-e.barLeft-(L?D:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+q)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(D==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:L?D:0,bottom:r?D:0}},Ea.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ea.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ea.prototype.zeroWidthHack=function(){var e=o&&!l?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new K,this.disableVert=new K},Ea.prototype.enableZeroWidthBar=function(e,r,L){e.style.pointerEvents="auto";function D(){var j=e.getBoundingClientRect(),q=L=="vert"?document.elementFromPoint(j.right-1,(j.top+j.bottom)/2):document.elementFromPoint((j.right+j.left)/2,j.bottom-1);q!=e?e.style.pointerEvents="none":r.set(1e3,D)}r.set(1e3,D)},Ea.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var za=function(){};za.prototype.update=function(){return{bottom:0,right:0}},za.prototype.setScrollLeft=function(){},za.prototype.setScrollTop=function(){},za.prototype.clear=function(){};function hi(e,r){r||(r=Wa(e));var L=e.display.barWidth,D=e.display.barHeight;Ji(e,r);for(var j=0;j<4&&L!=e.display.barWidth||D!=e.display.barHeight;j++)L!=e.display.barWidth&&e.options.lineWrapping&&ar(e),Ji(e,Wa(e)),L=e.display.barWidth,D=e.display.barHeight}function Ji(e,r){var L=e.display,D=L.scrollbars.update(r);L.sizer.style.paddingRight=(L.barWidth=D.right)+"px",L.sizer.style.paddingBottom=(L.barHeight=D.bottom)+"px",L.heightForcer.style.borderBottom=D.bottom+"px solid transparent",D.right&&D.bottom?(L.scrollbarFiller.style.display="block",L.scrollbarFiller.style.height=D.bottom+"px",L.scrollbarFiller.style.width=D.right+"px"):L.scrollbarFiller.style.display="",D.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(L.gutterFiller.style.display="block",L.gutterFiller.style.height=D.bottom+"px",L.gutterFiller.style.width=r.gutterWidth+"px"):L.gutterFiller.style.display=""}var Li={native:Ea,null:za};function Ci(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&b(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Li[e.options.scrollbarStyle](function(r){e.display.wrapper.insertBefore(r,e.display.scrollbarFiller),Ve(r,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),r.setAttribute("cm-not-content","true")},function(r,L){L=="horizontal"?Qr(e,r):Da(e,r)},e),e.display.scrollbars.addClass&&N(e.display.wrapper,e.display.scrollbars.addClass)}var Uo=0;function Ao(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Uo},To(e.curOp)}function _o(e){var r=e.curOp;r&&ti(r,function(L){for(var D=0;D<L.ops.length;D++)L.ops[D].cm.curOp=null;as(L)})}function as(e){for(var r=e.ops,L=0;L<r.length;L++)fs(r[L]);for(var D=0;D<r.length;D++)is(r[D]);for(var j=0;j<r.length;j++)os(r[j]);for(var q=0;q<r.length;q++)So(r[q]);for(var ue=0;ue<r.length;ue++)ps(r[ue])}function fs(e){var r=e.cm,L=r.display;ss(r),e.updateMaxLine&&ws(r),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<L.viewFrom||e.scrollToPos.to.line>=L.viewTo)||L.maxLineChanged&&r.options.lineWrapping,e.update=e.mustUpdate&&new Ki(r,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function is(e){e.updatedDisplay=e.mustUpdate&&fo(e.cm,e.update)}function os(e){var r=e.cm,L=r.display;e.updatedDisplay&&ar(r),e.barMeasure=Wa(r),L.maxLineChanged&&!r.options.lineWrapping&&(e.adjustWidthTo=st(r,L.maxLine,L.maxLine.text.length).left+3,r.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(L.scroller.clientWidth,L.sizer.offsetLeft+e.adjustWidthTo+wt(r)+r.display.barWidth),e.maxScrollLeft=Math.max(0,L.sizer.offsetLeft+e.adjustWidthTo-nt(r))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=L.input.prepareSelection())}function So(e){var r=e.cm;e.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<r.doc.scrollLeft&&Qr(r,Math.min(r.display.scroller.scrollLeft,e.maxScrollLeft),!0),r.display.maxLineChanged=!1);var L=e.focus&&e.focus==U();e.preparedSelection&&r.display.input.showSelection(e.preparedSelection,L),(e.updatedDisplay||e.startHeight!=r.doc.height)&&hi(r,e.barMeasure),e.updatedDisplay&&Oa(r,e.barMeasure),e.selectionChanged&&yr(r),r.state.focused&&e.updateInput&&r.display.input.reset(e.typing),L&&oi(e.cm)}function ps(e){var r=e.cm,L=r.display,D=r.doc;if(e.updatedDisplay&&zo(r,e.update),L.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(L.wheelStartX=L.wheelStartY=null),e.scrollTop!=null&&Ua(r,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Qr(r,e.scrollLeft,!0,!0),e.scrollToPos){var j=qn(r,W(D,e.scrollToPos.from),W(D,e.scrollToPos.to),e.scrollToPos.margin);gn(r,j)}var q=e.maybeHiddenMarkers,ue=e.maybeUnhiddenMarkers;if(q)for(var be=0;be<q.length;++be)q[be].lines.length||ut(q[be],"hide");if(ue)for(var Ee=0;Ee<ue.length;++Ee)ue[Ee].lines.length&&ut(ue[Ee],"unhide");L.wrapper.offsetHeight&&(D.scrollTop=r.display.scroller.scrollTop),e.changeObjs&&ut(r,"changes",r,e.changeObjs),e.update&&e.update.finish()}function Qi(e,r){if(e.curOp)return r();Ao(e);try{return r()}finally{_o(e)}}function Aa(e,r){return function(){if(e.curOp)return r.apply(e,arguments);Ao(e);try{return r.apply(e,arguments)}finally{_o(e)}}}function wi(e){return function(){if(this.curOp)return e.apply(this,arguments);Ao(this);try{return e.apply(this,arguments)}finally{_o(this)}}}function vi(e){return function(){var r=this.cm;if(!r||r.curOp)return e.apply(this,arguments);Ao(r);try{return e.apply(this,arguments)}finally{_o(r)}}}function vo(e,r){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(r,F(uo,e))}function uo(e){var r=e.doc;if(r.highlightFrontier>=e.display.viewTo)return;var L=+new Date+e.options.workTime,D=dn(e,r.highlightFrontier),j=[];r.iter(D.line,Math.min(r.first+r.size,e.display.viewTo+500),function(q){if(D.line>=e.display.viewFrom){var ue=q.styles,be=q.text.length>e.options.maxHighlightLength?mn(r.mode,D.state):null,Ee=tt(e,q,D,!0);be&&(D.state=be),q.styles=Ee.styles;var De=q.styleClasses,ot=Ee.classes;ot?q.styleClasses=ot:De&&(q.styleClasses=null);for(var At=!ue||ue.length!=q.styles.length||De!=ot&&(!De||!ot||De.bgClass!=ot.bgClass||De.textClass!=ot.textClass),Nt=0;!At&&Nt<ue.length;++Nt)At=ue[Nt]!=q.styles[Nt];At&&j.push(D.line),q.stateAfter=D.save(),D.nextLine()}else q.text.length<=e.options.maxHighlightLength&&Cn(e,q.text,D),q.stateAfter=D.line%5==0?D.save():null,D.nextLine();if(+new Date>L)return vo(e,e.options.workDelay),!0}),r.highlightFrontier=D.line,r.modeFrontier=Math.max(r.modeFrontier,D.line),j.length&&Qi(e,function(){for(var q=0;q<j.length;q++)Er(e,j[q],"text")})}var Ki=function(e,r,L){var D=e.display;this.viewport=r,this.visible=Mn(D,e.doc,r),this.editorIsHidden=!D.wrapper.offsetWidth,this.wrapperHeight=D.wrapper.clientHeight,this.wrapperWidth=D.wrapper.clientWidth,this.oldDisplayWidth=nt(e),this.force=L,this.dims=Kn(e),this.events=[]};Ki.prototype.signal=function(e,r){ke(e,r)&&this.events.push(arguments)},Ki.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ut.apply(null,this.events[e])};function ss(e){var r=e.display;!r.scrollbarsClipped&&r.scroller.offsetWidth&&(r.nativeBarWidth=r.scroller.offsetWidth-r.scroller.clientWidth,r.heightForcer.style.height=wt(e)+"px",r.sizer.style.marginBottom=-r.nativeBarWidth+"px",r.sizer.style.borderRightWidth=wt(e)+"px",r.scrollbarsClipped=!0)}function ls(e){if(e.hasFocus())return null;var r=U();if(!r||!y(e.display.lineDiv,r))return null;var L={activeElt:r};if(window.getSelection){var D=window.getSelection();D.anchorNode&&D.extend&&y(e.display.lineDiv,D.anchorNode)&&(L.anchorNode=D.anchorNode,L.anchorOffset=D.anchorOffset,L.focusNode=D.focusNode,L.focusOffset=D.focusOffset)}return L}function qo(e){if(!e||!e.activeElt||e.activeElt==U())return;if(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&y(document.body,e.anchorNode)&&y(document.body,e.focusNode)){var r=window.getSelection(),L=document.createRange();L.setEnd(e.anchorNode,e.anchorOffset),L.collapse(!1),r.removeAllRanges(),r.addRange(L),r.extend(e.focusNode,e.focusOffset)}}function fo(e,r){var L=e.display,D=e.doc;if(r.editorIsHidden)return _r(e),!1;if(!r.force&&r.visible.from>=L.viewFrom&&r.visible.to<=L.viewTo&&(L.updateLineNumbers==null||L.updateLineNumbers>=L.viewTo)&&L.renderedView==L.view&&tr(e)==0)return!1;xi(e)&&(_r(e),r.dims=Kn(e));var j=D.first+D.size,q=Math.max(r.visible.from-e.options.viewportMargin,D.first),ue=Math.min(j,r.visible.to+e.options.viewportMargin);L.viewFrom<q&&q-L.viewFrom<20&&(q=Math.max(D.first,L.viewFrom)),L.viewTo>ue&&L.viewTo-ue<20&&(ue=Math.min(j,L.viewTo)),ya&&(q=ii(e.doc,q),ue=go(e.doc,ue));var be=q!=L.viewFrom||ue!=L.viewTo||L.lastWrapHeight!=r.wrapperHeight||L.lastWrapWidth!=r.wrapperWidth;ta(e,q,ue),L.viewOffset=xo(Un(e.doc,L.viewFrom)),e.display.mover.style.top=L.viewOffset+"px";var Ee=tr(e);if(!be&&Ee==0&&!r.force&&L.renderedView==L.view&&(L.updateLineNumbers==null||L.updateLineNumbers>=L.viewTo))return!1;var De=ls(e);return Ee>4&&(L.lineDiv.style.display="none"),es(e,L.updateLineNumbers,r.dims),Ee>4&&(L.lineDiv.style.display=""),L.renderedView=L.view,qo(De),s(L.cursorDiv),s(L.selectionDiv),L.gutters.style.height=L.sizer.style.minHeight=0,be&&(L.lastWrapHeight=r.wrapperHeight,L.lastWrapWidth=r.wrapperWidth,vo(e,400)),L.updateLineNumbers=null,!0}function zo(e,r){for(var L=r.viewport,D=!0;;D=!1){if(!D||!e.options.lineWrapping||r.oldDisplayWidth==nt(e)){if(L&&L.top!=null&&(L={top:Math.min(e.doc.height+$e(e.display)-Te(e),L.top)}),r.visible=Mn(e.display,e.doc,L),r.visible.from>=e.display.viewFrom&&r.visible.to<=e.display.viewTo)break}else D&&(r.visible=Mn(e.display,e.doc,L));if(!fo(e,r))break;ar(e);var j=Wa(e);vr(e),hi(e,j),Oa(e,j),r.force=!1}r.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(r.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function yo(e,r){var L=new Ki(e,r);if(fo(e,L)){ar(e),zo(e,L);var D=Wa(e);vr(e),hi(e,D),Oa(e,D),L.finish()}}function es(e,r,L){var D=e.display,j=e.options.lineNumbers,q=D.lineDiv,ue=q.firstChild;function be(hn){var bn=hn.nextSibling;return n&&o&&e.display.currentWheelTarget==hn?hn.style.display="none":hn.parentNode.removeChild(hn),bn}for(var Ee=D.view,De=D.viewFrom,ot=0;ot<Ee.length;ot++){var At=Ee[ot];if(!At.hidden)if(!At.node||At.node.parentNode!=q){var Nt=gl(e,At,De,L);q.insertBefore(Nt,ue)}else{for(;ue!=At.node;)ue=be(ue);var Pt=j&&r!=null&&r<=De&&At.lineNumber;At.changes&&($(At.changes,"gutter")>-1&&(Pt=!1),xs(e,At,De,L)),Pt&&(s(At.lineNumber),At.lineNumber.appendChild(document.createTextNode(Ei(e.options,De)))),ue=At.node.nextSibling}De+=At.size}for(;ue;)ue=be(ue)}function Go(e){var r=e.gutters.offsetWidth;e.sizer.style.marginLeft=r+"px"}function Oa(e,r){e.display.sizer.style.minHeight=r.docHeight+"px",e.display.heightForcer.style.top=r.docHeight+"px",e.display.gutters.style.height=r.docHeight+e.display.barHeight+wt(e)+"px"}function la(e){var r=e.display,L=r.view;if(!r.alignWidgets&&(!r.gutters.firstChild||!e.options.fixedGutter))return;for(var D=or(r)-r.scroller.scrollLeft+e.doc.scrollLeft,j=r.gutters.offsetWidth,q=D+"px",ue=0;ue<L.length;ue++)if(!L[ue].hidden){e.options.fixedGutter&&(L[ue].gutter&&(L[ue].gutter.style.left=q),L[ue].gutterBackground&&(L[ue].gutterBackground.style.left=q));var be=L[ue].alignable;if(be)for(var Ee=0;Ee<be.length;Ee++)be[Ee].style.left=q}e.options.fixedGutter&&(r.gutters.style.left=D+j+"px")}function xi(e){if(!e.options.lineNumbers)return!1;var r=e.doc,L=Ei(e.options,r.first+r.size-1),D=e.display;if(L.length!=D.lineNumChars){var j=D.measure.appendChild(m("div",[m("div",L)],"CodeMirror-linenumber CodeMirror-gutter-elt")),q=j.firstChild.offsetWidth,ue=j.offsetWidth-q;return D.lineGutter.style.width="",D.lineNumInnerWidth=Math.max(q,D.lineGutter.offsetWidth-ue)+1,D.lineNumWidth=D.lineNumInnerWidth+ue,D.lineNumChars=D.lineNumInnerWidth?L.length:-1,D.lineGutter.style.width=D.lineNumWidth+"px",Go(e.display),!0}return!1}function Zi(e,r){for(var L=[],D=!1,j=0;j<e.length;j++){var q=e[j],ue=null;if(typeof q!="string"&&(ue=q.style,q=q.className),q=="CodeMirror-linenumbers")if(r)D=!0;else continue;L.push({className:q,style:ue})}return r&&!D&&L.push({className:"CodeMirror-linenumbers",style:null}),L}function Oo(e){var r=e.gutters,L=e.gutterSpecs;s(r),e.lineGutter=null;for(var D=0;D<L.length;++D){var j=L[D],q=j.className,ue=j.style,be=r.appendChild(m("div",null,"CodeMirror-gutter "+q));ue&&(be.style.cssText=ue),q=="CodeMirror-linenumbers"&&(e.lineGutter=be,be.style.width=(e.lineNumWidth||1)+"px")}r.style.display=L.length?"":"none",Go(e)}function co(e){Oo(e.display),Lr(e),la(e)}function No(e,r,L,D){var j=this;this.input=L,j.scrollbarFiller=m("div",null,"CodeMirror-scrollbar-filler"),j.scrollbarFiller.setAttribute("cm-not-content","true"),j.gutterFiller=m("div",null,"CodeMirror-gutter-filler"),j.gutterFiller.setAttribute("cm-not-content","true"),j.lineDiv=x("div",null,"CodeMirror-code"),j.selectionDiv=m("div",null,null,"position: relative; z-index: 1"),j.cursorDiv=m("div",null,"CodeMirror-cursors"),j.measure=m("div",null,"CodeMirror-measure"),j.lineMeasure=m("div",null,"CodeMirror-measure"),j.lineSpace=x("div",[j.measure,j.lineMeasure,j.selectionDiv,j.cursorDiv,j.lineDiv],null,"position: relative; outline: none");var q=x("div",[j.lineSpace],"CodeMirror-lines");j.mover=m("div",[q],null,"position: relative"),j.sizer=m("div",[j.mover],"CodeMirror-sizer"),j.sizerWidth=null,j.heightForcer=m("div",null,null,"position: absolute; height: "+te+"px; width: 1px;"),j.gutters=m("div",null,"CodeMirror-gutters"),j.lineGutter=null,j.scroller=m("div",[j.sizer,j.heightForcer,j.gutters],"CodeMirror-scroll"),j.scroller.setAttribute("tabIndex","-1"),j.wrapper=m("div",[j.scrollbarFiller,j.gutterFiller,j.scroller],"CodeMirror"),M&&T<8&&(j.gutters.style.zIndex=-1,j.scroller.style.paddingRight=0),!n&&!(I&&f)&&(j.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(j.wrapper):e(j.wrapper)),j.viewFrom=j.viewTo=r.first,j.reportedViewFrom=j.reportedViewTo=r.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=Zi(D.gutters,D.lineNumbers),Oo(j),L.init(j)}var Wi=0,Ai=null;M?Ai=-.53:I?Ai=15:a?Ai=-.7:A&&(Ai=-1/3);function Vo(e){var r=e.wheelDeltaX,L=e.wheelDeltaY;return r==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(r=e.detail),L==null&&e.detail&&e.axis==e.VERTICAL_AXIS?L=e.detail:L==null&&(L=e.wheelDelta),{x:r,y:L}}function Pn(e){var r=Vo(e);return r.x*=Ai,r.y*=Ai,r}function ts(e,r){var L=Vo(r),D=L.x,j=L.y,q=e.display,ue=q.scroller,be=ue.scrollWidth>ue.clientWidth,Ee=ue.scrollHeight>ue.clientHeight;if(!(D&&be||j&&Ee))return;if(j&&o&&n){e:for(var De=r.target,ot=q.view;De!=ue;De=De.parentNode)for(var At=0;At<ot.length;At++)if(ot[At].node==De){e.display.currentWheelTarget=De;break e}}if(D&&!I&&!t&&Ai!=null){j&&Ee&&Da(e,Math.max(0,ue.scrollTop+j*Ai)),Qr(e,Math.max(0,ue.scrollLeft+D*Ai)),(!j||j&&Ee)&&we(r),q.wheelStartX=null;return}if(j&&Ai!=null){var Nt=j*Ai,Pt=e.doc.scrollTop,hn=Pt+q.wrapper.clientHeight;Nt<0?Pt=Math.max(0,Pt+Nt-50):hn=Math.min(e.doc.height,hn+Nt+50),yo(e,{top:Pt,bottom:hn})}Wi<20&&(q.wheelStartX==null?(q.wheelStartX=ue.scrollLeft,q.wheelStartY=ue.scrollTop,q.wheelDX=D,q.wheelDY=j,setTimeout(function(){if(q.wheelStartX==null)return;var bn=ue.scrollLeft-q.wheelStartX,Fn=ue.scrollTop-q.wheelStartY,Zn=Fn&&q.wheelDY&&Fn/q.wheelDY||bn&&q.wheelDX&&bn/q.wheelDX;if(q.wheelStartX=q.wheelStartY=null,!Zn)return;Ai=(Ai*Wi+Zn)/(Wi+1),++Wi},200)):(q.wheelDX+=D,q.wheelDY+=j))}var lo=function(e,r){this.ranges=e,this.primIndex=r};lo.prototype.primary=function(){return this.ranges[this.primIndex]},lo.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var r=0;r<this.ranges.length;r++){var L=this.ranges[r],D=e.ranges[r];if(!Ye(L.anchor,D.anchor)||!Ye(L.head,D.head))return!1}return!0},lo.prototype.deepCopy=function(){for(var e=[],r=0;r<this.ranges.length;r++)e[r]=new Ha(yt(this.ranges[r].anchor),yt(this.ranges[r].head));return new lo(e,this.primIndex)},lo.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},lo.prototype.contains=function(e,r){r||(r=e);for(var L=0;L<this.ranges.length;L++){var D=this.ranges[L];if(Ie(r,D.from())>=0&&Ie(e,D.to())<=0)return L}return-1};var Ha=function(e,r){this.anchor=e,this.head=r};Ha.prototype.from=function(){return sn(this.anchor,this.head)},Ha.prototype.to=function(){return Xt(this.anchor,this.head)},Ha.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Fi(e,r,L){var D=e&&e.options.selectionsMayTouch,j=r[L];r.sort(function(Nt,Pt){return Ie(Nt.from(),Pt.from())}),L=$(r,j);for(var q=1;q<r.length;q++){var ue=r[q],be=r[q-1],Ee=Ie(be.to(),ue.from());if(D&&!ue.empty()?Ee>0:Ee>=0){var De=sn(be.from(),ue.from()),ot=Xt(be.to(),ue.to()),At=be.empty()?ue.from()==ue.head:be.from()==be.head;q<=L&&--L,r.splice(--q,2,new Ha(At?ot:De,At?De:ot))}}return new lo(r,L)}function Ti(e,r){return new lo([new Ha(e,r||e)],0)}function Ro(e){return e.text?_e(e.from.line+e.text.length-1,se(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Oi(e,r){if(Ie(e,r.from)<0)return e;if(Ie(e,r.to)<=0)return Ro(r);var L=e.line+r.text.length-(r.to.line-r.from.line)-1,D=e.ch;return e.line==r.to.line&&(D+=Ro(r).ch-r.to.ch),_e(L,D)}function Fo(e,r){for(var L=[],D=0;D<e.sel.ranges.length;D++){var j=e.sel.ranges[D];L.push(new Ha(Oi(j.anchor,r),Oi(j.head,r)))}return Fi(e.cm,L,e.sel.primIndex)}function ns(e,r,L){return e.line==r.line?_e(L.line,e.ch-r.ch+L.ch):_e(L.line+(e.line-r.line),e.ch)}function ms(e,r,L){for(var D=[],j=_e(e.first,0),q=j,ue=0;ue<r.length;ue++){var be=r[ue],Ee=ns(be.from,j,q),De=ns(Ro(be),j,q);if(j=be.to,q=De,L=="around"){var ot=e.sel.ranges[ue],At=Ie(ot.head,ot.anchor)<0;D[ue]=new Ha(At?De:Ee,At?Ee:De)}else D[ue]=new Ha(Ee,Ee)}return new lo(D,e.sel.primIndex)}function Xo(e){e.doc.mode=Gt(e.options,e.doc.modeOption),Ss(e)}function Ss(e){e.doc.iter(function(r){r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,vo(e,100),e.state.modeGen++,e.curOp&&Lr(e)}function Fs(e,r){return r.from.ch==0&&r.to.ch==0&&se(r.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function On(e,r,L,D){function j(sr){return L?L[sr]:null}function q(sr,$n,br){As(sr,$n,br,D),Ia(sr,"change",sr,r)}function ue(sr,$n){for(var br=[],Zr=sr;Zr<$n;++Zr)br.push(new ho(De[Zr],j(Zr),D));return br}var be=r.from,Ee=r.to,De=r.text,ot=Un(e,be.line),At=Un(e,Ee.line),Nt=se(De),Pt=j(De.length-1),hn=Ee.line-be.line;if(r.full)e.insert(0,ue(0,De.length)),e.remove(De.length,e.size-De.length);else if(Fs(e,r)){var bn=ue(0,De.length-1);q(At,At.text,Pt),hn&&e.remove(be.line,hn),bn.length&&e.insert(be.line,bn)}else if(ot==At)if(De.length==1)q(ot,ot.text.slice(0,be.ch)+Nt+ot.text.slice(Ee.ch),Pt);else{var Fn=ue(1,De.length-1);Fn.push(new ho(Nt+ot.text.slice(Ee.ch),Pt,D)),q(ot,ot.text.slice(0,be.ch)+De[0],j(0)),e.insert(be.line+1,Fn)}else if(De.length==1)q(ot,ot.text.slice(0,be.ch)+De[0]+At.text.slice(Ee.ch),j(0)),e.remove(be.line+1,hn);else{q(ot,ot.text.slice(0,be.ch)+De[0],j(0)),q(At,Nt+At.text.slice(Ee.ch),Pt);var Zn=ue(1,De.length-1);hn>1&&e.remove(be.line+1,hn-1),e.insert(be.line+1,Zn)}Ia(e,"change",e,r)}function nr(e,r,L){function D(j,q,ue){if(j.linked)for(var be=0;be<j.linked.length;++be){var Ee=j.linked[be];if(Ee.doc==q)continue;var De=ue&&Ee.sharedHist;if(L&&!De)continue;r(Ee.doc,De),D(Ee.doc,j,De)}}D(e,null,!0)}function zt(e,r){if(r.cm)throw new Error("This document is already in use.");e.doc=r,r.cm=e,Ur(e),Xo(e),on(e),e.options.lineWrapping||ws(e),e.options.mode=r.modeOption,Lr(e)}function on(e){(e.doc.direction=="rtl"?N:b)(e.display.lineDiv,"CodeMirror-rtl")}function Tn(e){Qi(e,function(){on(e),Lr(e)})}function Hn(e){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=e||1}function jn(e,r){var L={from:yt(r.from),to:Ro(r),text:Ra(e,r.from,r.to)};return si(e,L,r.from.line,r.to.line+1),nr(e,function(D){return si(D,L,r.from.line,r.to.line+1)},!0),L}function pr(e){for(;e.length;){var r=se(e);if(r.ranges)e.pop();else break}}function dr(e,r){if(r)return pr(e.done),se(e.done);if(e.done.length&&!se(e.done).ranges)return se(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),se(e.done)}function Bn(e,r,L,D){var j=e.history;j.undone.length=0;var q=+new Date,ue,be;if((j.lastOp==D||j.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&j.lastModTime>q-(e.cm?e.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(ue=dr(j,j.lastOp==D)))be=se(ue.changes),Ie(r.from,r.to)==0&&Ie(r.from,be.to)==0?be.to=Ro(r):ue.changes.push(jn(e,r));else{var Ee=se(j.done);for((!Ee||!Ee.ranges)&&ir(e.sel,j.done),ue={changes:[jn(e,r)],generation:j.generation},j.done.push(ue);j.done.length>j.undoDepth;)j.done.shift(),j.done[0].ranges||j.done.shift()}j.done.push(L),j.generation=++j.maxGeneration,j.lastModTime=j.lastSelTime=q,j.lastOp=j.lastSelOp=D,j.lastOrigin=j.lastSelOrigin=r.origin,be||ut(e,"historyAdded")}function Yr(e,r,L,D){var j=r.charAt(0);return j=="*"||j=="+"&&L.ranges.length==D.ranges.length&&L.somethingSelected()==D.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Ri(e,r,L,D){var j=e.history,q=D&&D.origin;L==j.lastSelOp||q&&j.lastSelOrigin==q&&(j.lastModTime==j.lastSelTime&&j.lastOrigin==q||Yr(e,q,se(j.done),r))?j.done[j.done.length-1]=r:ir(r,j.done),j.lastSelTime=+new Date,j.lastSelOrigin=q,j.lastSelOp=L,D&&D.clearRedo!==!1&&pr(j.undone)}function ir(e,r){var L=se(r);L&&L.ranges&&L.equals(e)||r.push(e)}function si(e,r,L,D){var j=r["spans_"+e.id],q=0;e.iter(Math.max(e.first,L),Math.min(e.first+e.size,D),function(ue){ue.markedSpans&&((j||(j=r["spans_"+e.id]={}))[q]=ue.markedSpans),++q})}function ao(e){if(!e)return null;for(var r,L=0;L<e.length;++L)e[L].marker.explicitlyCleared?r||(r=e.slice(0,L)):r&&r.push(e[L]);return r?r.length?r:null:e}function zi(e,r){var L=r["spans_"+e.id];if(!L)return null;for(var D=[],j=0;j<r.text.length;++j)D.push(ao(L[j]));return D}function Wn(e,r){var L=zi(e,r),D=_i(e,r);if(!L)return D;if(!D)return L;for(var j=0;j<L.length;++j){var q=L[j],ue=D[j];if(q&&ue){e:for(var be=0;be<ue.length;++be){for(var Ee=ue[be],De=0;De<q.length;++De)if(q[De].marker==Ee.marker)continue e;q.push(Ee)}}else ue&&(L[j]=ue)}return L}function Qa(e,r,L){for(var D=[],j=0;j<e.length;++j){var q=e[j];if(q.ranges){D.push(L?lo.prototype.deepCopy.call(q):q);continue}var ue=q.changes,be=[];D.push({changes:be});for(var Ee=0;Ee<ue.length;++Ee){var De=ue[Ee],ot=void 0;if(be.push({from:De.from,to:De.to,text:De.text}),r)for(var At in De)(ot=At.match(/^spans_(\d+)$/))&&($(r,Number(ot[1]))>-1&&(se(be)[At]=De[At],delete De[At]))}}return D}function Gi(e,r,L,D){if(D){var j=e.anchor;if(L){var q=Ie(r,j)<0;q!=Ie(L,j)<0?(j=r,r=L):q!=Ie(r,L)<0&&(r=L)}return new Ha(j,r)}else return new Ha(L||r,r)}function li(e,r,L,D,j){j==null&&(j=e.cm&&(e.cm.display.shift||e.extend)),ki(e,new lo([Gi(e.sel.primary(),r,L,j)],0),D)}function io(e,r,L){for(var D=[],j=e.cm&&(e.cm.display.shift||e.extend),q=0;q<e.sel.ranges.length;q++)D[q]=Gi(e.sel.ranges[q],r[q],null,j);var ue=Fi(e.cm,D,e.sel.primIndex);ki(e,ue,L)}function Yo(e,r,L,D){var j=e.sel.ranges.slice(0);j[r]=L,ki(e,Fi(e.cm,j,e.sel.primIndex),D)}function ko(e,r,L,D){ki(e,Ti(r,L),D)}function jo(e,r,L){var D={ranges:r.ranges,update:function(j){this.ranges=[];for(var q=0;q<j.length;q++)this.ranges[q]=new Ha(W(e,j[q].anchor),W(e,j[q].head))},origin:L&&L.origin};return ut(e,"beforeSelectionChange",e,D),e.cm&&ut(e.cm,"beforeSelectionChange",e.cm,D),D.ranges!=r.ranges?Fi(e.cm,D.ranges,D.ranges.length-1):r}function gs(e,r,L){var D=e.history.done,j=se(D);j&&j.ranges?(D[D.length-1]=r,sl(e,r,L)):ki(e,r,L)}function ki(e,r,L){sl(e,r,L),Ri(e,e.sel,e.cm?e.cm.curOp.id:NaN,L)}function sl(e,r,L){(ke(e,"beforeSelectionChange")||e.cm&&ke(e.cm,"beforeSelectionChange"))&&(r=jo(e,r,L));var D=L&&L.bias||(Ie(r.primary().head,e.sel.primary().head)<0?-1:1);vl(e,ks(e,r,D,!0)),!(L&&L.scroll===!1)&&e.cm&&Pa(e.cm)}function vl(e,r){if(r.equals(e.sel))return;e.sel=r,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Ze(e.cm)),Ia(e,"cursorActivity",e)}function Os(e){vl(e,ks(e,e.sel,null,!1))}function ks(e,r,L,D){for(var j,q=0;q<r.ranges.length;q++){var ue=r.ranges[q],be=r.ranges.length==e.sel.ranges.length&&e.sel.ranges[q],Ee=ll(e,ue.anchor,be&&be.anchor,L,D),De=ll(e,ue.head,be&&be.head,L,D);(j||Ee!=ue.anchor||De!=ue.head)&&(j||(j=r.ranges.slice(0,q)),j[q]=new Ha(Ee,De))}return j?Fi(e.cm,j,r.primIndex):r}function us(e,r,L,D,j){var q=Un(e,r.line);if(q.markedSpans)for(var ue=0;ue<q.markedSpans.length;++ue){var be=q.markedSpans[ue],Ee=be.marker,De="selectLeft"in Ee?!Ee.selectLeft:Ee.inclusiveLeft,ot="selectRight"in Ee?!Ee.selectRight:Ee.inclusiveRight;if((be.from==null||(De?be.from<=r.ch:be.from<r.ch))&&(be.to==null||(ot?be.to>=r.ch:be.to>r.ch))){if(j&&(ut(Ee,"beforeCursorEnter"),Ee.explicitlyCleared))if(q.markedSpans){--ue;continue}else break;if(!Ee.atomic)continue;if(L){var At=Ee.find(D<0?1:-1),Nt=void 0;if((D<0?ot:De)&&(At=ul(e,At,-D,At&&At.line==r.line?q:null)),At&&At.line==r.line&&(Nt=Ie(At,L))&&(D<0?Nt<0:Nt>0))return us(e,At,r,D,j)}var Pt=Ee.find(D<0?-1:1);return(D<0?De:ot)&&(Pt=ul(e,Pt,D,Pt.line==r.line?q:null)),Pt?us(e,Pt,r,D,j):null}}return r}function ll(e,r,L,D,j){var q=D||1,ue=us(e,r,L,q,j)||!j&&us(e,r,L,q,!0)||us(e,r,L,-q,j)||!j&&us(e,r,L,-q,!0);return ue||(e.cantEdit=!0,_e(e.first,0))}function ul(e,r,L,D){return L<0&&r.ch==0?r.line>e.first?W(e,_e(r.line-1)):null:L>0&&r.ch==(D||Un(e,r.line)).text.length?r.line<e.first+e.size-1?_e(r.line+1,0):null:new _e(r.line,r.ch+L)}function Sl(e){e.setSelection(_e(e.firstLine(),0),_e(e.lastLine()),Ae)}function Zs(e,r,L){var D={canceled:!1,from:r.from,to:r.to,text:r.text,origin:r.origin,cancel:function(){return D.canceled=!0}};return L&&(D.update=function(j,q,ue,be){j&&(D.from=W(e,j)),q&&(D.to=W(e,q)),ue&&(D.text=ue),be!==void 0&&(D.origin=be)}),ut(e,"beforeChange",e,D),e.cm&&ut(e.cm,"beforeChange",e.cm,D),D.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:D.from,to:D.to,text:D.text,origin:D.origin}}function rs(e,r,L){if(e.cm){if(!e.cm.curOp)return Aa(e.cm,rs)(e,r,L);if(e.cm.state.suppressEdits)return}if((ke(e,"beforeChange")||e.cm&&ke(e.cm,"beforeChange"))&&(r=Zs(e,r,!0),!r))return;var D=Dr&&!L&&Hi(e,r.from,r.to);if(D)for(var j=D.length-1;j>=0;--j)cl(e,{from:D[j].from,to:D[j].to,text:j?[""]:r.text,origin:r.origin});else cl(e,r)}function cl(e,r){if(r.text.length==1&&r.text[0]==""&&Ie(r.from,r.to)==0)return;var L=Fo(e,r);Bn(e,r,L,e.cm?e.cm.curOp.id:NaN),qs(e,r,L,_i(e,r));var D=[];nr(e,function(j,q){!q&&$(D,j.history)==-1&&(Bs(j.history,r),D.push(j.history)),qs(j,r,null,_i(j,r))})}function Qs(e,r,L){var D=e.cm&&e.cm.state.suppressEdits;if(D&&!L)return;for(var j=e.history,q,ue=e.sel,be=r=="undo"?j.done:j.undone,Ee=r=="undo"?j.undone:j.done,De=0;De<be.length&&!(q=be[De],L?q.ranges&&!q.equals(e.sel):!q.ranges);De++);if(De==be.length)return;for(j.lastOrigin=j.lastSelOrigin=null;;)if(q=be.pop(),q.ranges){if(ir(q,Ee),L&&!q.equals(e.sel)){ki(e,q,{clearRedo:!1});return}ue=q}else if(D){be.push(q);return}else break;var ot=[];ir(ue,Ee),Ee.push({changes:ot,generation:j.generation}),j.generation=q.generation||++j.maxGeneration;for(var At=ke(e,"beforeChange")||e.cm&&ke(e.cm,"beforeChange"),Nt=function(bn){var Fn=q.changes[bn];if(Fn.origin=r,At&&!Zs(e,Fn,!1))return be.length=0,{};ot.push(jn(e,Fn));var Zn=bn?Fo(e,Fn):se(be);qs(e,Fn,Zn,Wn(e,Fn)),!bn&&e.cm&&e.cm.scrollIntoView({from:Fn.from,to:Ro(Fn)});var sr=[];nr(e,function($n,br){!br&&$(sr,$n.history)==-1&&(Bs($n.history,Fn),sr.push($n.history)),qs($n,Fn,null,Wn($n,Fn))})},Pt=q.changes.length-1;Pt>=0;--Pt){var hn=Nt(Pt);if(hn)return hn.v}}function $s(e,r){if(r==0)return;if(e.first+=r,e.sel=new lo(ge(e.sel.ranges,function(j){return new Ha(_e(j.anchor.line+r,j.anchor.ch),_e(j.head.line+r,j.head.ch))}),e.sel.primIndex),e.cm){Lr(e.cm,e.first,e.first-r,r);for(var L=e.cm.display,D=L.viewFrom;D<L.viewTo;D++)Er(e.cm,D,"gutter")}}function qs(e,r,L,D){if(e.cm&&!e.cm.curOp)return Aa(e.cm,qs)(e,r,L,D);if(r.to.line<e.first){$s(e,r.text.length-1-(r.to.line-r.from.line));return}if(r.from.line>e.lastLine())return;if(r.from.line<e.first){var j=r.text.length-1-(e.first-r.from.line);$s(e,j),r={from:_e(e.first,0),to:_e(r.to.line+j,r.to.ch),text:[se(r.text)],origin:r.origin}}var q=e.lastLine();r.to.line>q&&(r={from:r.from,to:_e(q,Un(e,q).text.length),text:[r.text[0]],origin:r.origin}),r.removed=Ra(e,r.from,r.to),L||(L=Fo(e,r)),e.cm?yl(e.cm,r,D):On(e,r,D),sl(e,L,Ae),e.cantEdit&&ll(e,_e(e.firstLine(),0))&&(e.cantEdit=!1)}function yl(e,r,L){var D=e.doc,j=e.display,q=r.from,ue=r.to,be=!1,Ee=q.line;e.options.lineWrapping||(Ee=Kr(ci(Un(D,q.line))),D.iter(Ee,ue.line+1,function(Pt){if(Pt==j.maxLine)return be=!0,!0})),D.sel.contains(r.from,r.to)>-1&&Ze(e),On(D,r,L,gr(e)),e.options.lineWrapping||(D.iter(Ee,q.line+r.text.length,function(Pt){var hn=Cs(Pt);hn>j.maxLineLength&&(j.maxLine=Pt,j.maxLineLength=hn,j.maxLineChanged=!0,be=!1)}),be&&(e.curOp.updateMaxLine=!0)),Ca(D,q.line),vo(e,400);var De=r.text.length-(ue.line-q.line)-1;r.full?Lr(e):q.line==ue.line&&r.text.length==1&&!Fs(e.doc,r)?Er(e,q.line,"text"):Lr(e,q.line,ue.line+1,De);var ot=ke(e,"changes"),At=ke(e,"change");if(At||ot){var Nt={from:q,to:ue,text:r.text,removed:r.removed,origin:r.origin};At&&Ia(e,"change",e,Nt),ot&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Nt)}e.display.selForContextMenu=null}function Rs(e,r,L,D,j){var q;D||(D=L),Ie(D,L)<0&&(q=[D,L],L=q[0],D=q[1]),typeof r=="string"&&(r=e.splitLines(r)),rs(e,{from:L,to:D,text:r,origin:j})}function Ol(e,r,L,D){L<e.line?e.line+=D:r<e.line&&(e.line=r,e.ch=0)}function vs(e,r,L,D){for(var j=0;j<e.length;++j){var q=e[j],ue=!0;if(q.ranges){q.copied||(q=e[j]=q.deepCopy(),q.copied=!0);for(var be=0;be<q.ranges.length;be++)Ol(q.ranges[be].anchor,r,L,D),Ol(q.ranges[be].head,r,L,D);continue}for(var Ee=0;Ee<q.changes.length;++Ee){var De=q.changes[Ee];if(L<De.from.line)De.from=_e(De.from.line+D,De.from.ch),De.to=_e(De.to.line+D,De.to.ch);else if(r<=De.to.line){ue=!1;break}}ue||(e.splice(0,j+1),j=0)}}function Bs(e,r){var L=r.from.line,D=r.to.line,j=r.text.length-(D-L)-1;vs(e.done,L,D,j),vs(e.undone,L,D,j)}function Ks(e,r,L,D){var j=r,q=r;return typeof r=="number"?q=Un(e,re(e,r)):j=Kr(r),j==null?null:(D(q,j)&&e.cm&&Er(e.cm,j,L),q)}function Is(e){this.lines=e,this.parent=null;for(var r=0,L=0;L<e.length;++L)e[L].parent=this,r+=e[L].height;this.height=r}Is.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,r){for(var L=e,D=e+r;L<D;++L){var j=this.lines[L];this.height-=j.height,mr(j),Ia(j,"delete")}this.lines.splice(e,r)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,r,L){this.height+=L,this.lines=this.lines.slice(0,e).concat(r).concat(this.lines.slice(e));for(var D=0;D<r.length;++D)r[D].parent=this},iterN:function(e,r,L){for(var D=e+r;e<D;++e)if(L(this.lines[e]))return!0}};function ea(e){this.children=e;for(var r=0,L=0,D=0;D<e.length;++D){var j=e[D];r+=j.chunkSize(),L+=j.height,j.parent=this}this.size=r,this.height=L,this.parent=null}ea.prototype={chunkSize:function(){return this.size},removeInner:function(e,r){this.size-=r;for(var L=0;L<this.children.length;++L){var D=this.children[L],j=D.chunkSize();if(e<j){var q=Math.min(r,j-e),ue=D.height;if(D.removeInner(e,q),this.height-=ue-D.height,j==q&&(this.children.splice(L--,1),D.parent=null),(r-=q)==0)break;e=0}else e-=j}if(this.size-r<25&&(this.children.length>1||!(this.children[0]instanceof Is))){var be=[];this.collapse(be),this.children=[new Is(be)],this.children[0].parent=this}},collapse:function(e){for(var r=0;r<this.children.length;++r)this.children[r].collapse(e)},insertInner:function(e,r,L){this.size+=r.length,this.height+=L;for(var D=0;D<this.children.length;++D){var j=this.children[D],q=j.chunkSize();if(e<=q){if(j.insertInner(e,r,L),j.lines&&j.lines.length>50){for(var ue=j.lines.length%25+25,be=ue;be<j.lines.length;){var Ee=new Is(j.lines.slice(be,be+=25));j.height-=Ee.height,this.children.splice(++D,0,Ee),Ee.parent=this}j.lines=j.lines.slice(0,ue),this.maybeSpill()}break}e-=q}},maybeSpill:function(){if(this.children.length<=10)return;var e=this;do{var r=e.children.splice(e.children.length-5,5),L=new ea(r);if(e.parent){e.size-=L.size,e.height-=L.height;var j=$(e.parent.children,e);e.parent.children.splice(j+1,0,L)}else{var D=new ea(e.children);D.parent=e,e.children=[D,L],e=D}L.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()},iterN:function(e,r,L){for(var D=0;D<this.children.length;++D){var j=this.children[D],q=j.chunkSize();if(e<q){var ue=Math.min(r,q-e);if(j.iterN(e,ue,L))return!0;if((r-=ue)==0)break;e=0}else e-=q}}};var Fr=function(e,r,L){if(L)for(var D in L)L.hasOwnProperty(D)&&(this[D]=L[D]);this.doc=e,this.node=r};Fr.prototype.clear=function(){var e=this.doc.cm,r=this.line.widgets,L=this.line,D=Kr(L);if(D==null||!r)return;for(var j=0;j<r.length;++j)r[j]==this&&r.splice(j--,1);r.length||(L.widgets=null);var q=Hs(this);aa(L,Math.max(0,L.height-q)),e&&(Qi(e,function(){Ga(e,L,-q),Er(e,D,"widget")}),Ia(e,"lineWidgetCleared",e,this,D))},Fr.prototype.changed=function(){var e=this,r=this.height,L=this.doc.cm,D=this.line;this.height=null;var j=Hs(this)-r;if(!j)return;no(this.doc,D)||aa(D,D.height+j),L&&Qi(L,function(){L.curOp.forceUpdate=!0,Ga(L,D,j),Ia(L,"lineWidgetChanged",L,e,Kr(D))})},He(Fr);function Ga(e,r,L){xo(r)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&jr(e,L)}function Wr(e,r,L,D){var j=new Fr(e,L,D),q=e.cm;return q&&j.noHScroll&&(q.display.alignWidgets=!0),Ks(e,r,"widget",function(ue){var be=ue.widgets||(ue.widgets=[]);if(j.insertAt==null?be.push(j):be.splice(Math.min(be.length-1,Math.max(0,j.insertAt)),0,j),j.line=ue,q&&!no(e,ue)){var Ee=xo(ue)<e.scrollTop;aa(ue,ue.height+Hs(j)),Ee&&jr(q,j.height),q.curOp.forceUpdate=!0}return!0}),q&&Ia(q,"lineWidgetAdded",q,j,typeof r=="number"?r:Kr(r)),j}var ma=0,ga=function(e,r){this.lines=[],this.type=r,this.doc=e,this.id=++ma};ga.prototype.clear=function(){if(this.explicitlyCleared)return;var e=this.doc.cm,r=e&&!e.curOp;if(r&&Ao(e),ke(this,"clear")){var L=this.find();L&&Ia(this,"clear",L.from,L.to)}for(var D=null,j=null,q=0;q<this.lines.length;++q){var ue=this.lines[q],be=qa(ue.markedSpans,this);e&&!this.collapsed?Er(e,Kr(ue),"text"):e&&(be.to!=null&&(j=Kr(ue)),be.from!=null&&(D=Kr(ue))),ue.markedSpans=Si(ue.markedSpans,be),be.from==null&&this.collapsed&&!no(this.doc,ue)&&e&&aa(ue,Gn(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var Ee=0;Ee<this.lines.length;++Ee){var De=ci(this.lines[Ee]),ot=Cs(De);ot>e.display.maxLineLength&&(e.display.maxLine=De,e.display.maxLineLength=ot,e.display.maxLineChanged=!0)}D!=null&&e&&this.collapsed&&Lr(e,D,j+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Os(e.doc)),e&&Ia(e,"markerCleared",e,this,D,j),r&&_o(e),this.parent&&this.parent.clear()},ga.prototype.find=function(e,r){e==null&&this.type=="bookmark"&&(e=1);for(var L,D,j=0;j<this.lines.length;++j){var q=this.lines[j],ue=qa(q.markedSpans,this);if(ue.from!=null&&(L=_e(r?q:Kr(q),ue.from),e==-1))return L;if(ue.to!=null&&(D=_e(r?q:Kr(q),ue.to),e==1))return D}return L&&{from:L,to:D}},ga.prototype.changed=function(){var e=this,r=this.find(-1,!0),L=this,D=this.doc.cm;if(!r||!D)return;Qi(D,function(){var j=r.line,q=Kr(r.line),ue=Tt(D,q);if(ue&&(cn(ue),D.curOp.selectionChanged=D.curOp.forceUpdate=!0),D.curOp.updateMaxLine=!0,!no(L.doc,j)&&L.height!=null){var be=L.height;L.height=null;var Ee=Hs(L)-be;Ee&&aa(j,j.height+Ee)}Ia(D,"markerChanged",D,e)})},ga.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(!r.maybeHiddenMarkers||$(r.maybeHiddenMarkers,this)==-1)&&(r.maybeUnhiddenMarkers||(r.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ga.prototype.detachLine=function(e){if(this.lines.splice($(this.lines,e),1),!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(r.maybeHiddenMarkers||(r.maybeHiddenMarkers=[])).push(this)}},He(ga);function Na(e,r,L,D,j){if(D&&D.shared)return Vi(e,r,L,D,j);if(e.cm&&!e.cm.curOp)return Aa(e.cm,Na)(e,r,L,D,j);var q=new ga(e,j),ue=Ie(r,L);if(D&&B(D,q,!1),ue>0||ue==0&&q.clearWhenEmpty!==!1)return q;if(q.replacedWith&&(q.collapsed=!0,q.widgetNode=x("span",[q.replacedWith],"CodeMirror-widget"),D.handleMouseEvents||q.widgetNode.setAttribute("cm-ignore-events","true"),D.insertLeft&&(q.widgetNode.insertLeft=!0)),q.collapsed){if(Di(e,r.line,r,L,q)||r.line!=L.line&&Di(e,L.line,r,L,q))throw new Error("Inserting collapsed marker partially overlapping an existing one");fi()}q.addToHistory&&Bn(e,{from:r,to:L,origin:"markText"},e.sel,NaN);var be=r.line,Ee=e.cm,De;if(e.iter(be,L.line+1,function(At){Ee&&q.collapsed&&!Ee.options.lineWrapping&&ci(At)==Ee.display.maxLine&&(De=!0),q.collapsed&&be!=r.line&&aa(At,0),pi(At,new Ka(q,be==r.line?r.ch:null,be==L.line?L.ch:null)),++be}),q.collapsed&&e.iter(r.line,L.line+1,function(At){no(e,At)&&aa(At,0)}),q.clearOnEnter&&Ve(q,"beforeCursorEnter",function(){return q.clear()}),q.readOnly&&(ka(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),q.collapsed&&(q.id=++ma,q.atomic=!0),Ee){if(De&&(Ee.curOp.updateMaxLine=!0),q.collapsed)Lr(Ee,r.line,L.line+1);else if(q.className||q.startStyle||q.endStyle||q.css||q.attributes||q.title)for(var ot=r.line;ot<=L.line;ot++)Er(Ee,ot,"text");q.atomic&&Os(Ee.doc),Ia(Ee,"markerAdded",Ee,q)}return q}var La=function(e,r){this.markers=e,this.primary=r;for(var L=0;L<e.length;++L)e[L].parent=this};La.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Ia(this,"clear")},La.prototype.find=function(e,r){return this.primary.find(e,r)},He(La);function Vi(e,r,L,D,j){D=B(D),D.shared=!1;var q=[Na(e,r,L,D,j)],ue=q[0],be=D.widgetNode;return nr(e,function(Ee){be&&(D.widgetNode=be.cloneNode(!0)),q.push(Na(Ee,W(Ee,r),W(Ee,L),D,j));for(var De=0;De<Ee.linked.length;++De)if(Ee.linked[De].isParent)return;ue=se(q)}),new La(q,ue)}function $a(e){return e.findMarks(_e(e.first,0),e.clipPos(_e(e.lastLine())),function(r){return r.parent})}function ys(e,r){for(var L=0;L<r.length;L++){var D=r[L],j=D.find(),q=e.clipPos(j.from),ue=e.clipPos(j.to);if(Ie(q,ue)){var be=Na(e,q,ue,D.primary,D.primary.type);D.markers.push(be),be.parent=D}}}function Rn(e){for(var r=function(D){var j=e[D],q=[j.primary.doc];nr(j.primary.doc,function(Ee){return q.push(Ee)});for(var ue=0;ue<j.markers.length;ue++){var be=j.markers[ue];$(q,be.doc)==-1&&(be.parent=null,j.markers.splice(ue--,1))}},L=0;L<e.length;L++)r(L)}var xr=0,In=function(e,r,L,D,j){if(!(this instanceof In))return new In(e,r,L,D,j);L==null&&(L=0),ea.call(this,[new Is([new ho("",null)])]),this.first=L,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=L;var q=_e(L,0);this.sel=Ti(q),this.history=new Hn(null),this.id=++xr,this.modeOption=r,this.lineSep=D,this.direction=j=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),On(this,{from:q,to:q,text:e}),ki(this,Ti(q),Ae)};In.prototype=Me(ea.prototype,{constructor:In,iter:function(e,r,L){L?this.iterN(e-this.first,r-e,L):this.iterN(this.first,this.first+this.size,e)},insert:function(e,r){for(var L=0,D=0;D<r.length;++D)L+=r[D].height;this.insertInner(e-this.first,r,L)},remove:function(e,r){this.removeInner(e-this.first,r)},getValue:function(e){var r=Xr(this,this.first,this.first+this.size);return e===!1?r:r.join(e||this.lineSeparator())},setValue:vi(function(e){var r=_e(this.first,0),L=this.first+this.size-1;rs(this,{from:r,to:_e(L,Un(this,L).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&da(this.cm,0,0),ki(this,Ti(r),Ae)}),replaceRange:function(e,r,L,D){r=W(this,r),L=L?W(this,L):r,Rs(this,e,r,L,D)},getRange:function(e,r,L){var D=Ra(this,W(this,e),W(this,r));return L===!1?D:D.join(L||this.lineSeparator())},getLine:function(e){var r=this.getLineHandle(e);return r&&r.text},getLineHandle:function(e){if(di(this,e))return Un(this,e)},getLineNumber:function(e){return Kr(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Un(this,e)),ci(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return W(this,e)},getCursor:function(e){var r=this.sel.primary(),L;return e==null||e=="head"?L=r.head:e=="anchor"?L=r.anchor:e=="end"||e=="to"||e===!1?L=r.to():L=r.from(),L},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:vi(function(e,r,L){ko(this,W(this,typeof e=="number"?_e(e,r||0):e),null,L)}),setSelection:vi(function(e,r,L){ko(this,W(this,e),W(this,r||e),L)}),extendSelection:vi(function(e,r,L){li(this,W(this,e),r&&W(this,r),L)}),extendSelections:vi(function(e,r){io(this,ne(this,e),r)}),extendSelectionsBy:vi(function(e,r){var L=ge(this.sel.ranges,e);io(this,ne(this,L),r)}),setSelections:vi(function(e,r,L){if(!e.length)return;for(var D=[],j=0;j<e.length;j++)D[j]=new Ha(W(this,e[j].anchor),W(this,e[j].head));r==null&&(r=Math.min(e.length-1,this.sel.primIndex)),ki(this,Fi(this.cm,D,r),L)}),addSelection:vi(function(e,r,L){var D=this.sel.ranges.slice(0);D.push(new Ha(W(this,e),W(this,r||e))),ki(this,Fi(this.cm,D,D.length-1),L)}),getSelection:function(e){for(var r=this.sel.ranges,L,D=0;D<r.length;D++){var j=Ra(this,r[D].from(),r[D].to());L=L?L.concat(j):j}return e===!1?L:L.join(e||this.lineSeparator())},getSelections:function(e){for(var r=[],L=this.sel.ranges,D=0;D<L.length;D++){var j=Ra(this,L[D].from(),L[D].to());e!==!1&&(j=j.join(e||this.lineSeparator())),r[D]=j}return r},replaceSelection:function(e,r,L){for(var D=[],j=0;j<this.sel.ranges.length;j++)D[j]=e;this.replaceSelections(D,r,L||"+input")},replaceSelections:vi(function(e,r,L){for(var D=[],j=this.sel,q=0;q<j.ranges.length;q++){var ue=j.ranges[q];D[q]={from:ue.from(),to:ue.to(),text:this.splitLines(e[q]),origin:L}}for(var be=r&&r!="end"&&ms(this,D,r),Ee=D.length-1;Ee>=0;Ee--)rs(this,D[Ee]);be?gs(this,be):this.cm&&Pa(this.cm)}),undo:vi(function(){Qs(this,"undo")}),redo:vi(function(){Qs(this,"redo")}),undoSelection:vi(function(){Qs(this,"undo",!0)}),redoSelection:vi(function(){Qs(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,r=0,L=0,D=0;D<e.done.length;D++)e.done[D].ranges||++r;for(var j=0;j<e.undone.length;j++)e.undone[j].ranges||++L;return{undo:r,redo:L}},clearHistory:function(){var e=this;this.history=new Hn(this.history.maxGeneration),nr(this,function(r){return r.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Qa(this.history.done),undone:Qa(this.history.undone)}},setHistory:function(e){var r=this.history=new Hn(this.history.maxGeneration);r.done=Qa(e.done.slice(0),null,!0),r.undone=Qa(e.undone.slice(0),null,!0)},setGutterMarker:vi(function(e,r,L){return Ks(this,e,"gutter",function(D){var j=D.gutterMarkers||(D.gutterMarkers={});return j[r]=L,!L&&he(j)&&(D.gutterMarkers=null),!0})}),clearGutter:vi(function(e){var r=this;this.iter(function(L){L.gutterMarkers&&L.gutterMarkers[e]&&Ks(r,L,"gutter",function(){return L.gutterMarkers[e]=null,he(L.gutterMarkers)&&(L.gutterMarkers=null),!0})})}),lineInfo:function(e){var r;if(typeof e=="number"){if(!di(this,e))return null;if(r=e,e=Un(this,e),!e)return null}else if(r=Kr(e),r==null)return null;return{line:r,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:vi(function(e,r,L){return Ks(this,e,r=="gutter"?"gutter":"class",function(D){var j=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass";if(!D[j])D[j]=L;else{if(C(L).test(D[j]))return!1;D[j]+=" "+L}return!0})}),removeLineClass:vi(function(e,r,L){return Ks(this,e,r=="gutter"?"gutter":"class",function(D){var j=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass",q=D[j];if(q)if(L==null)D[j]=null;else{var ue=q.match(C(L));if(!ue)return!1;var be=ue.index+ue[0].length;D[j]=q.slice(0,ue.index)+(!ue.index||be==q.length?"":" ")+q.slice(be)||null}else return!1;return!0})}),addLineWidget:vi(function(e,r,L){return Wr(this,e,r,L)}),removeLineWidget:function(e){e.clear()},markText:function(e,r,L){return Na(this,W(this,e),W(this,r),L,L&&L.type||"range")},setBookmark:function(e,r){var L={replacedWith:r&&(r.nodeType==null?r.widget:r),insertLeft:r&&r.insertLeft,clearWhenEmpty:!1,shared:r&&r.shared,handleMouseEvents:r&&r.handleMouseEvents};return e=W(this,e),Na(this,e,e,L,"bookmark")},findMarksAt:function(e){e=W(this,e);var r=[],L=Un(this,e.line).markedSpans;if(L)for(var D=0;D<L.length;++D){var j=L[D];(j.from==null||j.from<=e.ch)&&(j.to==null||j.to>=e.ch)&&r.push(j.marker.parent||j.marker)}return r},findMarks:function(e,r,L){e=W(this,e),r=W(this,r);var D=[],j=e.line;return this.iter(e.line,r.line+1,function(q){var ue=q.markedSpans;if(ue)for(var be=0;be<ue.length;be++){var Ee=ue[be];!(Ee.to!=null&&j==e.line&&e.ch>=Ee.to||Ee.from==null&&j!=e.line||Ee.from!=null&&j==r.line&&Ee.from>=r.ch)&&(!L||L(Ee.marker))&&D.push(Ee.marker.parent||Ee.marker)}++j}),D},getAllMarks:function(){var e=[];return this.iter(function(r){var L=r.markedSpans;if(L)for(var D=0;D<L.length;++D)L[D].from!=null&&e.push(L[D].marker)}),e},posFromIndex:function(e){var r,L=this.first,D=this.lineSeparator().length;return this.iter(function(j){var q=j.text.length+D;if(q>e)return r=e,!0;e-=q,++L}),W(this,_e(L,r))},indexFromPos:function(e){e=W(this,e);var r=e.ch;if(e.line<this.first||e.ch<0)return 0;var L=this.lineSeparator().length;return this.iter(this.first,e.line,function(D){r+=D.text.length+L}),r},copy:function(e){var r=new In(Xr(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return r.scrollTop=this.scrollTop,r.scrollLeft=this.scrollLeft,r.sel=this.sel,r.extend=!1,e&&(r.history.undoDepth=this.history.undoDepth,r.setHistory(this.getHistory())),r},linkedDoc:function(e){e||(e={});var r=this.first,L=this.first+this.size;e.from!=null&&e.from>r&&(r=e.from),e.to!=null&&e.to<L&&(L=e.to);var D=new In(Xr(this,r,L),e.mode||this.modeOption,r,this.lineSep,this.direction);return e.sharedHist&&(D.history=this.history),(this.linked||(this.linked=[])).push({doc:D,sharedHist:e.sharedHist}),D.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],ys(D,$a(this)),D},unlinkDoc:function(e){if(e instanceof Xi&&(e=e.doc),this.linked)for(var r=0;r<this.linked.length;++r){var L=this.linked[r];if(L.doc!=e)continue;this.linked.splice(r,1),e.unlinkDoc(this),Rn($a(this));break}if(e.history==this.history){var D=[e.id];nr(e,function(j){return D.push(j.id)},!0),e.history=new Hn(null),e.history.done=Qa(this.history.done,D),e.history.undone=Qa(this.history.undone,D)}},iterLinkedDocs:function(e){nr(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):mt(e)},lineSeparator:function(){return this.lineSep||`
`},setDirection:vi(function(e){if(e!="rtl"&&(e="ltr"),e==this.direction)return;this.direction=e,this.iter(function(r){return r.order=null}),this.cm&&Tn(this.cm)})}),In.prototype.eachLine=In.prototype.iter;var Gr=0;function Jn(e){var r=this;if(fa(r),vt(r,e)||$o(r.display,e))return;we(e),M&&(Gr=+new Date);var L=er(r,e,!0),D=e.dataTransfer.files;if(!L||r.isReadOnly())return;if(D&&D.length&&window.FileReader&&window.File)for(var j=D.length,q=Array(j),ue=0,be=function(){++ue==j&&Aa(r,function(){L=W(r.doc,L);var Pt={from:L,to:L,text:r.doc.splitLines(q.filter(function(hn){return hn!=null}).join(r.doc.lineSeparator())),origin:"paste"};rs(r.doc,Pt),gs(r.doc,Ti(W(r.doc,L),W(r.doc,Ro(Pt))))})()},Ee=function(Pt,hn){if(r.options.allowDropFileTypes&&$(r.options.allowDropFileTypes,Pt.type)==-1){be();return}var bn=new FileReader;bn.onerror=function(){return be()},bn.onload=function(){var Fn=bn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Fn)){be();return}q[hn]=Fn,be()},bn.readAsText(Pt)},De=0;De<D.length;De++)Ee(D[De],De);else{if(r.state.draggingText&&r.doc.sel.contains(L)>-1){r.state.draggingText(e),setTimeout(function(){return r.display.input.focus()},20);return}try{var ot=e.dataTransfer.getData("Text");if(ot){var At;if(r.state.draggingText&&!r.state.draggingText.copy&&(At=r.listSelections()),sl(r.doc,Ti(L,L)),At)for(var Nt=0;Nt<At.length;++Nt)Rs(r.doc,"",At[Nt].anchor,At[Nt].head,"drag");r.replaceSelection(ot,"around","paste"),r.display.input.focus()}}catch(Pt){}}}function ra(e,r){if(M&&(!e.state.draggingText||+new Date-Gr<100)){We(r);return}if(vt(e,r)||$o(e.display,r))return;if(r.dataTransfer.setData("Text",e.getSelection()),r.dataTransfer.effectAllowed="copyMove",r.dataTransfer.setDragImage&&!A){var L=m("img",null,null,"position: fixed; left: 0; top: 0;");L.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",t&&(L.width=L.height=1,e.display.wrapper.appendChild(L),L._top=L.offsetTop),r.dataTransfer.setDragImage(L,0,0),t&&L.parentNode.removeChild(L)}}function Nr(e,r){var L=er(e,r);if(!L)return;var D=document.createDocumentFragment();ia(e,L,D),e.display.dragCursor||(e.display.dragCursor=m("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),h(e.display.dragCursor,D)}function fa(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function yi(e){if(!document.getElementsByClassName)return;for(var r=document.getElementsByClassName("CodeMirror"),L=[],D=0;D<r.length;D++){var j=r[D].CodeMirror;j&&L.push(j)}L.length&&L[0].operation(function(){for(var q=0;q<L.length;q++)e(L[q])})}var Ya=!1;function Bo(){if(Ya)return;Ho(),Ya=!0}function Ho(){var e;Ve(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,yi(el)},100))}),Ve(window,"blur",function(){return yi(fr)})}function el(e){var r=e.display;r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.scrollbarsClipped=!1,e.setSize()}for(var Io={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"},Do=0;Do<10;Do++)Io[Do+48]=Io[Do+96]=String(Do);for(var cs=65;cs<=90;cs++)Io[cs]=String.fromCharCode(cs);for(var dl=1;dl<=12;dl++)Io[dl+111]=Io[dl+63235]="F"+dl;var Ds={};Ds.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"},Ds.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"},Ds.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"},Ds.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"]},Ds.default=o?Ds.macDefault:Ds.pcDefault;function Rl(e){var r=e.split(/-(?!$)/);e=r[r.length-1];for(var L,D,j,q,ue=0;ue<r.length-1;ue++){var be=r[ue];if(/^(cmd|meta|m)$/i.test(be))q=!0;else if(/^a(lt)?$/i.test(be))L=!0;else if(/^(c|ctrl|control)$/i.test(be))D=!0;else if(/^s(hift)?$/i.test(be))j=!0;else throw new Error("Unrecognized modifier name: "+be)}return L&&(e="Alt-"+e),D&&(e="Ctrl-"+e),q&&(e="Cmd-"+e),j&&(e="Shift-"+e),e}function Cu(e){var r={};for(var L in e)if(e.hasOwnProperty(L)){var D=e[L];if(/^(name|fallthrough|(de|at)tach)$/.test(L))continue;if(D=="..."){delete e[L];continue}for(var j=ge(L.split(" "),Rl),q=0;q<j.length;q++){var ue=void 0,be=void 0;q==j.length-1?(be=j.join(" "),ue=D):(be=j.slice(0,q+1).join(" "),ue="...");var Ee=r[be];if(!Ee)r[be]=ue;else if(Ee!=ue)throw new Error("Inconsistent bindings for "+be)}delete e[L]}for(var De in r)e[De]=r[De];return e}function bs(e,r,L,D){r=bo(r);var j=r.call?r.call(e,D):r[e];if(j===!1)return"nothing";if(j==="...")return"multi";if(j!=null&&L(j))return"handled";if(r.fallthrough){if(Object.prototype.toString.call(r.fallthrough)!="[object Array]")return bs(e,r.fallthrough,L,D);for(var q=0;q<r.fallthrough.length;q++){var ue=bs(e,r.fallthrough[q],L,D);if(ue)return ue}}}function wu(e){var r=typeof e=="string"?e:Io[e.keyCode];return r=="Ctrl"||r=="Alt"||r=="Shift"||r=="Mod"}function Zl(e,r,L){var D=e;return r.altKey&&D!="Alt"&&(e="Alt-"+e),(w?r.metaKey:r.ctrlKey)&&D!="Ctrl"&&(e="Ctrl-"+e),(w?r.ctrlKey:r.metaKey)&&D!="Mod"&&(e="Cmd-"+e),!L&&r.shiftKey&&D!="Shift"&&(e="Shift-"+e),e}function cu(e,r){if(t&&e.keyCode==34&&e.char)return!1;var L=Io[e.keyCode];return L==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(L=e.code),Zl(L,e,r))}function bo(e){return typeof e=="string"?Ds[e]:e}function Ws(e,r){for(var L=e.doc.sel.ranges,D=[],j=0;j<L.length;j++){for(var q=r(L[j]);D.length&&Ie(q.from,se(D).to)<=0;){var ue=D.pop();if(Ie(ue.from,q.from)<0){q.from=ue.from;break}}D.push(q)}Qi(e,function(){for(var be=D.length-1;be>=0;be--)Rs(e.doc,"",D[be].from,D[be].to,"+delete");Pa(e)})}function du(e,r,L){var D=Ne(e.text,r+L,L);return D<0||D>e.text.length?null:D}function hu(e,r,L){var D=du(e,r.ch,L);return D==null?null:new _e(r.line,D,L<0?"after":"before")}function $l(e,r,L,D,j){if(e){r.doc.direction=="rtl"&&(j=-j);var q=jt(L,r.doc.direction);if(q){var ue=j<0?se(q):q[0],be=j<0==(ue.level==1),Ee=be?"after":"before",De;if(ue.level>0||r.doc.direction=="rtl"){var ot=ht(r,L);De=j<0?L.text.length-1:0;var At=Mt(r,ot,De).top;De=ct(function(Nt){return Mt(r,ot,Nt).top==At},j<0==(ue.level==1)?ue.from:ue.to-1,De),Ee=="before"&&(De=du(L,De,1))}else De=j<0?ue.to:ue.from;return new _e(D,De,Ee)}}return new _e(D,j<0?L.text.length:0,j<0?"before":"after")}function Au(e,r,L,D){var j=jt(r,e.doc.direction);if(!j)return hu(r,L,D);L.ch>=r.text.length?(L.ch=r.text.length,L.sticky="before"):L.ch<=0&&(L.ch=0,L.sticky="after");var q=dt(j,L.ch,L.sticky),ue=j[q];if(e.doc.direction=="ltr"&&ue.level%2==0&&(D>0?ue.to>L.ch:ue.from<L.ch))return hu(r,L,D);var be=function(Zn,sr){return du(r,Zn instanceof _e?Zn.ch:Zn,sr)},Ee,De=function(Zn){return e.options.lineWrapping?(Ee=Ee||ht(e,r),Vt(e,r,Ee,Zn)):{begin:0,end:r.text.length}},ot=De(L.sticky=="before"?be(L,-1):L.ch);if(e.doc.direction=="rtl"||ue.level==1){var At=ue.level==1==D<0,Nt=be(L,At?1:-1);if(Nt!=null&&(At?Nt<=ue.to&&Nt<=ot.end:Nt>=ue.from&&Nt>=ot.begin)){var Pt=At?"before":"after";return new _e(L.line,Nt,Pt)}}var hn=function(Zn,sr,$n){for(var br=function(ji,Co){return Co?new _e(L.line,be(ji,1),"before"):new _e(L.line,ji,"after")};Zn>=0&&Zn<j.length;Zn+=sr){var Zr=j[Zn],Hr=sr>0==(Zr.level!=1),Fa=Hr?$n.begin:be($n.end,-1);if(Zr.from<=Fa&&Fa<Zr.to)return br(Fa,Hr);if(Fa=Hr?Zr.from:be(Zr.to,-1),$n.begin<=Fa&&Fa<$n.end)return br(Fa,Hr)}},bn=hn(q+D,D,ot);if(bn)return bn;var Fn=D>0?ot.end:be(ot.begin,-1);return Fn!=null&&!(D>0&&Fn==r.text.length)&&(bn=hn(D>0?0:j.length-1,D,De(Fn)),bn)?bn:null}var Fl={selectAll:Sl,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Ae)},killLine:function(e){return Ws(e,function(r){if(r.empty()){var L=Un(e.doc,r.head.line).text.length;return r.head.ch==L&&r.head.line<e.lastLine()?{from:r.head,to:_e(r.head.line+1,0)}:{from:r.head,to:_e(r.head.line,L)}}else return{from:r.from(),to:r.to()}})},deleteLine:function(e){return Ws(e,function(r){return{from:_e(r.from().line,0),to:W(e.doc,_e(r.to().line+1,0))}})},delLineLeft:function(e){return Ws(e,function(r){return{from:_e(r.from().line,0),to:r.from()}})},delWrappedLineLeft:function(e){return Ws(e,function(r){var L=e.charCoords(r.head,"div").top+5,D=e.coordsChar({left:0,top:L},"div");return{from:D,to:r.from()}})},delWrappedLineRight:function(e){return Ws(e,function(r){var L=e.charCoords(r.head,"div").top+5,D=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:L},"div");return{from:r.from(),to:D}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(_e(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(_e(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(r){return xu(e,r.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(r){return Tu(e,r.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(r){return Xu(e,r.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(r){var L=e.cursorCoords(r.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:L},"div")},ie)},goLineLeft:function(e){return e.extendSelectionsBy(function(r){var L=e.cursorCoords(r.head,"div").top+5;return e.coordsChar({left:0,top:L},"div")},ie)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(r){var L=e.cursorCoords(r.head,"div").top+5,D=e.coordsChar({left:0,top:L},"div");return D.ch<e.getLine(D.line).search(/\S/)?Tu(e,r.head):D},ie)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var r=[],L=e.listSelections(),D=e.options.tabSize,j=0;j<L.length;j++){var q=L[j].from(),ue=z(e.getLine(q.line),q.ch,D);r.push(me(D-ue%D))}e.replaceSelections(r)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Qi(e,function(){for(var r=e.listSelections(),L=[],D=0;D<r.length;D++){if(!r[D].empty())continue;var j=r[D].head,q=Un(e.doc,j.line).text;if(q){if(j.ch==q.length&&(j=new _e(j.line,j.ch-1)),j.ch>0)j=new _e(j.line,j.ch+1),e.replaceRange(q.charAt(j.ch-1)+q.charAt(j.ch-2),_e(j.line,j.ch-2),j,"+transpose");else if(j.line>e.doc.first){var ue=Un(e.doc,j.line-1).text;ue&&(j=new _e(j.line,1),e.replaceRange(q.charAt(0)+e.doc.lineSeparator()+ue.charAt(ue.length-1),_e(j.line-1,ue.length-1),j,"+transpose"))}}L.push(new Ha(j,j))}e.setSelections(L)})},newlineAndIndent:function(e){return Qi(e,function(){for(var r=e.listSelections(),L=r.length-1;L>=0;L--)e.replaceRange(e.doc.lineSeparator(),r[L].anchor,r[L].head,"+input");r=e.listSelections();for(var D=0;D<r.length;D++)e.indentLine(r[D].from().line,null,!0);Pa(e)})},openLine:function(e){return e.replaceSelection(`
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function xu(e,r){var L=Un(e.doc,r),D=ci(L);return D!=L&&(r=Kr(D)),$l(!0,e,D,r,1)}function Xu(e,r){var L=Un(e.doc,r),D=Wo(L);return D!=L&&(r=Kr(D)),$l(!0,e,L,r,-1)}function Tu(e,r){var L=xu(e,r.line),D=Un(e.doc,L.line),j=jt(D,e.doc.direction);if(!j||j[0].level==0){var q=Math.max(L.ch,D.text.search(/\S/)),ue=r.line==L.line&&r.ch<=q&&r.ch;return _e(L.line,ue?0:q,L.sticky)}return L}function ql(e,r,L){if(typeof r=="string"&&(r=Fl[r],!r))return!1;e.display.input.ensurePolled();var D=e.display.shift,j=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),L&&(e.display.shift=!1),j=r(e)!=fe}finally{e.display.shift=D,e.state.suppressEdits=!1}return j}function Yu(e,r,L){for(var D=0;D<e.state.keyMaps.length;D++){var j=bs(r,e.state.keyMaps[D],L,e);if(j)return j}return e.options.extraKeys&&bs(r,e.options.extraKeys,L,e)||bs(r,e.options.keyMap,L,e)}var Ju=new K;function kl(e,r,L,D){var j=e.state.keySeq;if(j){if(wu(r))return"handled";if(/\'$/.test(r)?e.state.keySeq=null:Ju.set(50,function(){e.state.keySeq==j&&(e.state.keySeq=null,e.display.input.reset())}),fu(e,j+" "+r,L,D))return!0}return fu(e,r,L,D)}function fu(e,r,L,D){var j=Yu(e,r,D);return j=="multi"&&(e.state.keySeq=r),j=="handled"&&Ia(e,"keyHandled",e,r,L),(j=="handled"||j=="multi")&&(we(L),yr(e)),!!j}function pu(e,r){var L=cu(r,!0);return L?r.shiftKey&&!e.state.keySeq?kl(e,"Shift-"+L,r,function(D){return ql(e,D,!0)})||kl(e,L,r,function(D){if(typeof D=="string"?/^go[A-Z]/.test(D):D.motion)return ql(e,D)}):kl(e,L,r,function(D){return ql(e,D)}):!1}function Su(e,r,L){return kl(e,"'"+L+"'",r,function(D){return ql(e,D,!0)})}var eu=null;function tu(e){var r=this;if(e.target&&e.target!=r.display.input.getField())return;if(r.curOp.focus=U(),vt(r,e))return;M&&T<11&&e.keyCode==27&&(e.returnValue=!1);var L=e.keyCode;r.display.shift=L==16||e.shiftKey;var D=pu(r,e);t&&(eu=D?L:null,!D&&L==88&&!Qe&&(o?e.metaKey:e.ctrlKey)&&r.replaceSelection("",null,"cut")),I&&!o&&!D&&L==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),L==18&&!/\bCodeMirror-crosshair\b/.test(r.display.lineDiv.className)&&Zu(r)}function Zu(e){var r=e.display.lineDiv;N(r,"CodeMirror-crosshair");function L(D){(D.keyCode==18||!D.altKey)&&(b(r,"CodeMirror-crosshair"),Rt(document,"keyup",L),Rt(document,"mouseover",L))}Ve(document,"keyup",L),Ve(document,"mouseover",L)}function Ou(e){e.keyCode==16&&(this.doc.sel.shift=!1),vt(this,e)}function Ru(e){var r=this;if(e.target&&e.target!=r.display.input.getField())return;if($o(r.display,e)||vt(r,e)||e.ctrlKey&&!e.altKey||o&&e.metaKey)return;var L=e.keyCode,D=e.charCode;if(t&&L==eu){eu=null,we(e);return}if(t&&(!e.which||e.which<10)&&pu(r,e))return;var j=String.fromCharCode(D==null?L:D);if(j=="\b")return;if(Su(r,e,j))return;r.display.input.onKeyPress(e)}var $u=400,Bl=function(e,r,L){this.time=e,this.pos=r,this.button=L};Bl.prototype.compare=function(e,r,L){return this.time+$u>e&&Ie(r,this.pos)==0&&L==this.button};var hl,jl;function Bu(e,r){var L=+new Date;return jl&&jl.compare(L,e,r)?(hl=jl=null,"triple"):hl&&hl.compare(L,e,r)?(jl=new Bl(L,e,r),hl=null,"double"):(hl=new Bl(L,e,r),jl=null,"single")}function nu(e){var r=this,L=r.display;if(vt(r,e)||L.activeTouch&&L.input.supportsTouch())return;if(L.input.ensurePolled(),L.shift=e.shiftKey,$o(L,e)){n||(L.scroller.draggable=!1,setTimeout(function(){return L.scroller.draggable=!0},100));return}if(mu(r,e))return;var D=er(r,e),j=gt(e),q=D?Bu(D,j):"single";if(window.focus(),j==1&&r.state.selectingText&&r.state.selectingText(e),D&&Iu(r,j,D,q,e))return;j==1?D?Lu(r,D,q,e):Xe(e)==L.scroller&&we(e):j==2?(D&&li(r.doc,D),setTimeout(function(){return L.input.focus()},20)):j==3&&(P?r.display.input.onContextMenu(e):Cr(r))}function Iu(e,r,L,D,j){var q="Click";return D=="double"?q="Double"+q:D=="triple"&&(q="Triple"+q),q=(r==1?"Left":r==2?"Middle":"Right")+q,kl(e,Zl(q,j),j,function(ue){if(typeof ue=="string"&&(ue=Fl[ue]),!ue)return!1;var be=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),be=ue(e,L)!=fe}finally{e.state.suppressEdits=!1}return be})}function Du(e,r,L){var D=e.getOption("configureMouse"),j=D?D(e,r,L):{};if(j.unit==null){var q=u?L.shiftKey&&L.metaKey:L.altKey;j.unit=q?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(j.extend==null||e.doc.extend)&&(j.extend=e.doc.extend||L.shiftKey),j.addNew==null&&(j.addNew=o?L.metaKey:L.ctrlKey),j.moveOnDrag==null&&(j.moveOnDrag=!(o?L.altKey:L.ctrlKey)),j}function Lu(e,r,L,D){M?setTimeout(F(oi,e),0):e.curOp.focus=U();var j=Du(e,L,D),q=e.doc.sel,ue;e.options.dragDrop&&Lt&&!e.isReadOnly()&&L=="single"&&(ue=q.contains(r))>-1&&(Ie((ue=q.ranges[ue]).from(),r)<0||r.xRel>0)&&(Ie(ue.to(),r)>0||r.xRel<0)?qu(e,D,r,j):Mu(e,D,r,j)}function qu(e,r,L,D){var j=e.display,q=!1,ue=Aa(e,function(De){n&&(j.scroller.draggable=!1),e.state.draggingText=!1,Rt(j.wrapper.ownerDocument,"mouseup",ue),Rt(j.wrapper.ownerDocument,"mousemove",be),Rt(j.scroller,"dragstart",Ee),Rt(j.scroller,"drop",ue),q||(we(De),D.addNew||li(e.doc,L,null,null,D.extend),n&&!A||M&&T==9?setTimeout(function(){j.wrapper.ownerDocument.body.focus({preventScroll:!0}),j.input.focus()},20):j.input.focus())}),be=function(De){q=q||Math.abs(r.clientX-De.clientX)+Math.abs(r.clientY-De.clientY)>=10},Ee=function(){return q=!0};n&&(j.scroller.draggable=!0),e.state.draggingText=ue,ue.copy=!D.moveOnDrag,j.scroller.dragDrop&&j.scroller.dragDrop(),Ve(j.wrapper.ownerDocument,"mouseup",ue),Ve(j.wrapper.ownerDocument,"mousemove",be),Ve(j.scroller,"dragstart",Ee),Ve(j.scroller,"drop",ue),Cr(e),setTimeout(function(){return j.input.focus()},20)}function Hl(e,r,L){if(L=="char")return new Ha(r,r);if(L=="word")return e.findWordAt(r);if(L=="line")return new Ha(_e(r.line,0),W(e.doc,_e(r.line+1,0)));var D=L(e,r);return new Ha(D.from,D.to)}function Mu(e,r,L,D){var j=e.display,q=e.doc;we(r);var ue,be,Ee=q.sel,De=Ee.ranges;if(D.addNew&&!D.extend?(be=q.sel.contains(L),be>-1?ue=De[be]:ue=new Ha(L,L)):(ue=q.sel.primary(),be=q.sel.primIndex),D.unit=="rectangle")D.addNew||(ue=new Ha(L,L)),L=er(e,r,!0,!0),be=-1;else{var ot=Hl(e,L,D.unit);D.extend?ue=Gi(ue,ot.anchor,ot.head,D.extend):ue=ot}D.addNew?be==-1?(be=De.length,ki(q,Fi(e,De.concat([ue]),be),{scroll:!1,origin:"*mouse"})):De.length>1&&De[be].empty()&&D.unit=="char"&&!D.extend?(ki(q,Fi(e,De.slice(0,be).concat(De.slice(be+1)),0),{scroll:!1,origin:"*mouse"}),Ee=q.sel):Yo(q,be,ue,ce):(be=0,ki(q,new lo([ue],0),ce),Ee=q.sel);var At=L;function Nt($n){if(Ie(At,$n)==0)return;if(At=$n,D.unit=="rectangle"){for(var br=[],Zr=e.options.tabSize,Hr=z(Un(q,L.line).text,L.ch,Zr),Fa=z(Un(q,$n.line).text,$n.ch,Zr),ji=Math.min(Hr,Fa),Co=Math.max(Hr,Fa),oo=Math.min(L.line,$n.line),ds=Math.min(e.lastLine(),Math.max(L.line,$n.line));oo<=ds;oo++){var Qo=Un(q,oo).text,po=ye(Qo,ji,Zr);ji==Co?br.push(new Ha(_e(oo,po),_e(oo,po))):Qo.length>po&&br.push(new Ha(_e(oo,po),_e(oo,ye(Qo,Co,Zr))))}br.length||br.push(new Ha(L,L)),ki(q,Fi(e,Ee.ranges.slice(0,be).concat(br),be),{origin:"*mouse",scroll:!1}),e.scrollIntoView($n)}else{var Ko=ue,Lo=Hl(e,$n,D.unit),zn=Ko.anchor,qi;Ie(Lo.anchor,zn)>0?(qi=Lo.head,zn=sn(Ko.from(),Lo.anchor)):(qi=Lo.anchor,zn=Xt(Ko.to(),Lo.head));var eo=Ee.ranges.slice(0);eo[be]=Pu(e,new Ha(W(q,zn),qi)),ki(q,Fi(e,eo,be),ce)}}var Pt=j.wrapper.getBoundingClientRect(),hn=0;function bn($n){var br=++hn,Zr=er(e,$n,!0,D.unit=="rectangle");if(!Zr)return;if(Ie(Zr,At)!=0){e.curOp.focus=U(),Nt(Zr);var Hr=Mn(j,q);(Zr.line>=Hr.to||Zr.line<Hr.from)&&setTimeout(Aa(e,function(){hn==br&&bn($n)}),150)}else{var Fa=$n.clientY<Pt.top?-20:$n.clientY>Pt.bottom?20:0;Fa&&setTimeout(Aa(e,function(){if(hn!=br)return;j.scroller.scrollTop+=Fa,bn($n)}),50)}}function Fn($n){e.state.selectingText=!1,hn=Infinity,$n&&(we($n),j.input.focus()),Rt(j.wrapper.ownerDocument,"mousemove",Zn),Rt(j.wrapper.ownerDocument,"mouseup",sr),q.history.lastSelOrigin=null}var Zn=Aa(e,function($n){$n.buttons===0||!gt($n)?Fn($n):bn($n)}),sr=Aa(e,Fn);e.state.selectingText=sr,Ve(j.wrapper.ownerDocument,"mousemove",Zn),Ve(j.wrapper.ownerDocument,"mouseup",sr)}function Pu(e,r){var L=r.anchor,D=r.head,j=Un(e.doc,L.line);if(Ie(L,D)==0&&L.sticky==D.sticky)return r;var q=jt(j);if(!q)return r;var ue=dt(q,L.ch,L.sticky),be=q[ue];if(be.from!=L.ch&&be.to!=L.ch)return r;var Ee=ue+(be.from==L.ch==(be.level!=1)?0:1);if(Ee==0||Ee==q.length)return r;var De;if(D.line!=L.line)De=(D.line-L.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var ot=dt(q,D.ch,D.sticky),At=ot-ue||(D.ch-L.ch)*(be.level==1?-1:1);ot==Ee-1||ot==Ee?De=At<0:De=At>0}var Nt=q[Ee+(De?-1:0)],Pt=De==(Nt.level==1),hn=Pt?Nt.from:Nt.to,bn=Pt?"after":"before";return L.ch==hn&&L.sticky==bn?r:new Ha(new _e(L.line,hn,bn),D)}function Uu(e,r,L,D){var j,q;if(r.touches)j=r.touches[0].clientX,q=r.touches[0].clientY;else try{j=r.clientX,q=r.clientY}catch(Nt){return!1}if(j>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;D&&we(r);var ue=e.display,be=ue.lineDiv.getBoundingClientRect();if(q>be.bottom||!ke(e,L))return Pe(r);q-=be.top-ue.viewOffset;for(var Ee=0;Ee<e.display.gutterSpecs.length;++Ee){var De=ue.gutters.childNodes[Ee];if(De&&De.getBoundingClientRect().right>=j){var ot=_a(e.doc,q),At=e.display.gutterSpecs[Ee];return ut(e,L,e,ot,At.className,r),Pe(r)}}}function mu(e,r){return Uu(e,r,"gutterClick",!0)}function gu(e,r){if($o(e.display,r)||Il(e,r))return;if(vt(e,r,"contextmenu"))return;P||e.display.input.onContextMenu(r)}function Il(e,r){return ke(e,"gutterContextMenu")?Uu(e,r,"gutterContextMenu",!1):!1}function ru(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),_n(e)}var tl={toString:function(){return"CodeMirror.Init"}},Nu={},au={};function ec(e){var r=e.optionHandlers;function L(D,j,q,ue){e.defaults[D]=j,q&&(r[D]=ue?function(be,Ee,De){De!=tl&&q(be,Ee,De)}:q)}e.defineOption=L,e.Init=tl,L("value","",function(D,j){return D.setValue(j)},!0),L("mode",null,function(D,j){D.doc.modeOption=j,Xo(D)},!0),L("indentUnit",2,Xo,!0),L("indentWithTabs",!1),L("smartIndent",!0),L("tabSize",4,function(D){Ss(D),_n(D),Lr(D)},!0),L("lineSeparator",null,function(D,j){if(D.doc.lineSep=j,!j)return;var q=[],ue=D.doc.first;D.doc.iter(function(Ee){for(var De=0;;){var ot=Ee.text.indexOf(j,De);if(ot==-1)break;De=ot+j.length,q.push(_e(ue,ot))}ue++});for(var be=q.length-1;be>=0;be--)Rs(D.doc,j,q[be],_e(q[be].line,q[be].ch+j.length))}),L("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(D,j,q){D.state.specialChars=new RegExp(j.source+(j.test(" ")?"":"| "),"g"),q!=tl&&D.refresh()}),L("specialCharPlaceholder",ei,function(D){return D.refresh()},!0),L("electricChars",!0),L("inputStyle",f?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),L("spellcheck",!1,function(D,j){return D.getInputField().spellcheck=j},!0),L("autocorrect",!1,function(D,j){return D.getInputField().autocorrect=j},!0),L("autocapitalize",!1,function(D,j){return D.getInputField().autocapitalize=j},!0),L("rtlMoveVisually",!E),L("wholeLineUpdateBefore",!0),L("theme","default",function(D){ru(D),co(D)},!0),L("keyMap","default",function(D,j,q){var ue=bo(j),be=q!=tl&&bo(q);be&&be.detach&&be.detach(D,ue),ue.attach&&ue.attach(D,be||null)}),L("extraKeys",null),L("configureMouse",null),L("lineWrapping",!1,Fu,!0),L("gutters",[],function(D,j){D.display.gutterSpecs=Zi(j,D.options.lineNumbers),co(D)},!0),L("fixedGutter",!0,function(D,j){D.display.gutters.style.left=j?or(D.display)+"px":"0",D.refresh()},!0),L("coverGutterNextToScrollbar",!1,function(D){return hi(D)},!0),L("scrollbarStyle","native",function(D){Ci(D),hi(D),D.display.scrollbars.setScrollTop(D.doc.scrollTop),D.display.scrollbars.setScrollLeft(D.doc.scrollLeft)},!0),L("lineNumbers",!1,function(D,j){D.display.gutterSpecs=Zi(D.options.gutters,j),co(D)},!0),L("firstLineNumber",1,co,!0),L("lineNumberFormatter",function(D){return D},co,!0),L("showCursorWhenSelecting",!1,vr,!0),L("resetSelectionOnContextMenu",!0),L("lineWiseCopyCut",!0),L("pasteLinesPerSelection",!0),L("selectionsMayTouch",!1),L("readOnly",!1,function(D,j){j=="nocursor"&&(fr(D),D.display.input.blur()),D.display.input.readOnlyChanged(j)}),L("screenReaderLabel",null,function(D,j){j=j===""?null:j,D.display.input.screenReaderLabelChanged(j)}),L("disableInput",!1,function(D,j){j||D.display.input.reset()},!0),L("dragDrop",!0,tc),L("allowDropFileTypes",null),L("cursorBlinkRate",530),L("cursorScrollMargin",0),L("cursorHeight",1,vr,!0),L("singleCursorHeightPerLine",!0,vr,!0),L("workTime",100),L("workDelay",100),L("flattenSpans",!0,Ss,!0),L("addModeClass",!1,Ss,!0),L("pollInterval",100),L("undoDepth",200,function(D,j){return D.doc.history.undoDepth=j}),L("historyEventDelay",1250),L("viewportMargin",10,function(D){return D.refresh()},!0),L("maxHighlightLength",1e4,Ss,!0),L("moveInputWithCursor",!0,function(D,j){j||D.display.input.resetPosition()}),L("tabindex",null,function(D,j){return D.display.input.getField().tabIndex=j||""}),L("autofocus",null),L("direction","ltr",function(D,j){return D.doc.setDirection(j)},!0),L("phrases",null)}function tc(e,r,L){var D=L&&L!=tl;if(!r!=!D){var j=e.display.dragFunctions,q=r?Ve:Rt;q(e.display.scroller,"dragstart",j.start),q(e.display.scroller,"dragenter",j.enter),q(e.display.scroller,"dragover",j.over),q(e.display.scroller,"dragleave",j.leave),q(e.display.scroller,"drop",j.drop)}}function Fu(e){e.options.lineWrapping?(N(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(b(e.display.wrapper,"CodeMirror-wrap"),ws(e)),Ur(e),Lr(e),_n(e),setTimeout(function(){return hi(e)},100)}function Xi(e,r){var L=this;if(!(this instanceof Xi))return new Xi(e,r);this.options=r=r?B(r):{},B(Nu,r,!1);var D=r.value;typeof D=="string"?D=new In(D,r.mode,null,r.lineSeparator,r.direction):r.mode&&(D.modeOption=r.mode),this.doc=D;var j=new Xi.inputStyles[r.inputStyle](this),q=this.display=new No(e,D,j,r);q.wrapper.CodeMirror=this,ru(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ci(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new K,keySeq:null,specialChars:null},r.autofocus&&!f&&q.input.focus(),M&&T<11&&setTimeout(function(){return L.display.input.reset(!0)},20),ku(this),Bo(),Ao(this),this.curOp.forceUpdate=!0,zt(this,D),r.autofocus&&!f||this.hasFocus()?setTimeout(function(){L.hasFocus()&&!L.state.focused&&Ir(L)},20):fr(this);for(var ue in au)au.hasOwnProperty(ue)&&au[ue](this,r[ue],tl);xi(this),r.finishInit&&r.finishInit(this);for(var be=0;be<iu.length;++be)iu[be](this);_o(this),n&&r.lineWrapping&&getComputedStyle(q.lineDiv).textRendering=="optimizelegibility"&&(q.lineDiv.style.textRendering="auto")}Xi.defaults=Nu,Xi.optionHandlers=au;function ku(e){var r=e.display;Ve(r.scroller,"mousedown",Aa(e,nu)),M&&T<11?Ve(r.scroller,"dblclick",Aa(e,function(Ee){if(vt(e,Ee))return;var De=er(e,Ee);if(!De||mu(e,Ee)||$o(e.display,Ee))return;we(Ee);var ot=e.findWordAt(De);li(e.doc,ot.anchor,ot.head)})):Ve(r.scroller,"dblclick",function(Ee){return vt(e,Ee)||we(Ee)}),Ve(r.scroller,"contextmenu",function(Ee){return gu(e,Ee)}),Ve(r.input.getField(),"contextmenu",function(Ee){r.scroller.contains(Ee.target)||gu(e,Ee)});var L,D={end:0};function j(){r.activeTouch&&(L=setTimeout(function(){return r.activeTouch=null},1e3),D=r.activeTouch,D.end=+new Date)}function q(Ee){if(Ee.touches.length!=1)return!1;var De=Ee.touches[0];return De.radiusX<=1&&De.radiusY<=1}function ue(Ee,De){if(De.left==null)return!0;var ot=De.left-Ee.left,At=De.top-Ee.top;return ot*ot+At*At>20*20}Ve(r.scroller,"touchstart",function(Ee){if(!vt(e,Ee)&&!q(Ee)&&!mu(e,Ee)){r.input.ensurePolled(),clearTimeout(L);var De=+new Date;r.activeTouch={start:De,moved:!1,prev:De-D.end<=300?D:null},Ee.touches.length==1&&(r.activeTouch.left=Ee.touches[0].pageX,r.activeTouch.top=Ee.touches[0].pageY)}}),Ve(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),Ve(r.scroller,"touchend",function(Ee){var De=r.activeTouch;if(De&&!$o(r,Ee)&&De.left!=null&&!De.moved&&new Date-De.start<300){var ot=e.coordsChar(r.activeTouch,"page"),At;!De.prev||ue(De,De.prev)?At=new Ha(ot,ot):!De.prev.prev||ue(De,De.prev.prev)?At=e.findWordAt(ot):At=new Ha(_e(ot.line,0),W(e.doc,_e(ot.line+1,0))),e.setSelection(At.anchor,At.head),e.focus(),we(Ee)}j()}),Ve(r.scroller,"touchcancel",j),Ve(r.scroller,"scroll",function(){r.scroller.clientHeight&&(Da(e,r.scroller.scrollTop),Qr(e,r.scroller.scrollLeft,!0),ut(e,"scroll",e))}),Ve(r.scroller,"mousewheel",function(Ee){return ts(e,Ee)}),Ve(r.scroller,"DOMMouseScroll",function(Ee){return ts(e,Ee)}),Ve(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(Ee){vt(e,Ee)||We(Ee)},over:function(Ee){vt(e,Ee)||(Nr(e,Ee),We(Ee))},start:function(Ee){return ra(e,Ee)},drop:Aa(e,Jn),leave:function(Ee){vt(e,Ee)||fa(e)}};var be=r.input.getField();Ve(be,"keyup",function(Ee){return Ou.call(e,Ee)}),Ve(be,"keydown",Aa(e,tu)),Ve(be,"keypress",Aa(e,Ru)),Ve(be,"focus",function(Ee){return Ir(e,Ee)}),Ve(be,"blur",function(Ee){return fr(e,Ee)})}var iu=[];Xi.defineInitHook=function(e){return iu.push(e)};function bl(e,r,L,D){var j=e.doc,q;L==null&&(L="add"),L=="smart"&&(j.mode.indent?q=dn(e,r).state:L="prev");var ue=e.options.tabSize,be=Un(j,r),Ee=z(be.text,null,ue);be.stateAfter&&(be.stateAfter=null);var De=be.text.match(/^\s*/)[0],ot;if(!D&&!/\S/.test(be.text))ot=0,L="not";else if(L=="smart"&&(ot=j.mode.indent(q,be.text.slice(De.length),be.text),ot==fe||ot>150)){if(!D)return;L="prev"}L=="prev"?r>j.first?ot=z(Un(j,r-1).text,null,ue):ot=0:L=="add"?ot=Ee+e.options.indentUnit:L=="subtract"?ot=Ee-e.options.indentUnit:typeof L=="number"&&(ot=Ee+L),ot=Math.max(0,ot);var At="",Nt=0;if(e.options.indentWithTabs)for(var Pt=Math.floor(ot/ue);Pt;--Pt)Nt+=ue,At+=" ";if(Nt<ot&&(At+=me(ot-Nt)),At!=De)return Rs(j,At,_e(r,0),_e(r,De.length),"+input"),be.stateAfter=null,!0;for(var hn=0;hn<j.sel.ranges.length;hn++){var bn=j.sel.ranges[hn];if(bn.head.line==r&&bn.head.ch<De.length){var Fn=_e(r,De.length);Yo(j,hn,new Ha(Fn,Fn));break}}}var Ls=null;function Ql(e){Ls=e}function vu(e,r,L,D,j){var q=e.doc;e.display.shift=!1,D||(D=q.sel);var ue=+new Date-200,be=j=="paste"||e.state.pasteIncoming>ue,Ee=mt(r),De=null;if(be&&D.ranges.length>1)if(Ls&&Ls.text.join(`
`)==r){if(D.ranges.length%Ls.text.length==0){De=[];for(var ot=0;ot<Ls.text.length;ot++)De.push(q.splitLines(Ls.text[ot]))}}else Ee.length==D.ranges.length&&e.options.pasteLinesPerSelection&&(De=ge(Ee,function(Zn){return[Zn]}));for(var At=e.curOp.updateInput,Nt=D.ranges.length-1;Nt>=0;Nt--){var Pt=D.ranges[Nt],hn=Pt.from(),bn=Pt.to();Pt.empty()&&(L&&L>0?hn=_e(hn.line,hn.ch-L):e.state.overwrite&&!be?bn=_e(bn.line,Math.min(Un(q,bn.line).text.length,bn.ch+se(Ee).length)):be&&Ls&&Ls.lineWise&&Ls.text.join(`
`)==Ee.join(`
`)&&(hn=bn=_e(hn.line,0)));var Fn={from:hn,to:bn,text:De?De[Nt%De.length]:Ee,origin:j||(be?"paste":e.state.cutIncoming>ue?"cut":"+input")};rs(e.doc,Fn),Ia(e,"inputRead",e,Fn)}r&&!be&&Wl(e,r),Pa(e),e.curOp.updateInput<2&&(e.curOp.updateInput=At),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Kl(e,r){var L=e.clipboardData&&e.clipboardData.getData("Text");if(L)return e.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&Qi(r,function(){return vu(r,L,0,null,"paste")}),!0}function Wl(e,r){if(!e.options.electricChars||!e.options.smartIndent)return;for(var L=e.doc.sel,D=L.ranges.length-1;D>=0;D--){var j=L.ranges[D];if(j.head.ch>100||D&&L.ranges[D-1].head.line==j.head.line)continue;var q=e.getModeAt(j.head),ue=!1;if(q.electricChars){for(var be=0;be<q.electricChars.length;be++)if(r.indexOf(q.electricChars.charAt(be))>-1){ue=bl(e,j.head.line,"smart");break}}else q.electricInput&&(q.electricInput.test(Un(e.doc,j.head.line).text.slice(0,j.head.ch))&&(ue=bl(e,j.head.line,"smart")));ue&&Ia(e,"electricInput",e,j.head.line)}}function yu(e){for(var r=[],L=[],D=0;D<e.doc.sel.ranges.length;D++){var j=e.doc.sel.ranges[D].head.line,q={anchor:_e(j,0),head:_e(j+1,0)};L.push(q),r.push(e.getRange(q.anchor,q.head))}return{text:r,ranges:L}}function bu(e,r,L,D){e.setAttribute("autocorrect",L?"":"off"),e.setAttribute("autocapitalize",D?"":"off"),e.setAttribute("spellcheck",!!r)}function ju(){var e=m("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),r=m("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return n?e.style.width="1000px":e.setAttribute("wrap","off"),c&&(e.style.border="1px solid black"),bu(e),r}function Hu(e){var r=e.optionHandlers,L=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(D,j){var q=this.options,ue=q[D];if(q[D]==j&&D!="mode")return;q[D]=j,r.hasOwnProperty(D)&&Aa(this,r[D])(this,j,ue),ut(this,"optionChange",this,D)},getOption:function(D){return this.options[D]},getDoc:function(){return this.doc},addKeyMap:function(D,j){this.state.keyMaps[j?"push":"unshift"](bo(D))},removeKeyMap:function(D){for(var j=this.state.keyMaps,q=0;q<j.length;++q)if(j[q]==D||j[q].name==D)return j.splice(q,1),!0},addOverlay:wi(function(D,j){var q=D.token?D:e.getMode(this.options,D);if(q.startState)throw new Error("Overlays may not be stateful.");ae(this.state.overlays,{mode:q,modeSpec:D,opaque:j&&j.opaque,priority:j&&j.priority||0},function(ue){return ue.priority}),this.state.modeGen++,Lr(this)}),removeOverlay:wi(function(D){for(var j=this.state.overlays,q=0;q<j.length;++q){var ue=j[q].modeSpec;if(ue==D||typeof D=="string"&&ue.name==D){j.splice(q,1),this.state.modeGen++,Lr(this);return}}}),indentLine:wi(function(D,j,q){typeof j!="string"&&typeof j!="number"&&(j==null?j=this.options.smartIndent?"smart":"prev":j=j?"add":"subtract"),di(this.doc,D)&&bl(this,D,j,q)}),indentSelection:wi(function(D){for(var j=this.doc.sel.ranges,q=-1,ue=0;ue<j.length;ue++){var be=j[ue];if(be.empty())be.head.line>q&&(bl(this,be.head.line,D,!0),q=be.head.line,ue==this.doc.sel.primIndex&&Pa(this));else{var Ee=be.from(),De=be.to(),ot=Math.max(q,Ee.line);q=Math.min(this.lastLine(),De.line-(De.ch?0:1))+1;for(var At=ot;At<q;++At)bl(this,At,D);var Nt=this.doc.sel.ranges;Ee.ch==0&&j.length==Nt.length&&Nt[ue].from().ch>0&&Yo(this.doc,ue,new Ha(Ee,Nt[ue].to()),Ae)}}}),getTokenAt:function(D,j){return lr(this,D,j)},getLineTokens:function(D,j){return lr(this,_e(D),j,!0)},getTokenTypeAt:function(D){D=W(this.doc,D);var j=Kt(this,Un(this.doc,D.line)),q=0,ue=(j.length-1)/2,be=D.ch,Ee;if(be==0)Ee=j[2];else for(;;){var De=q+ue>>1;if((De?j[De*2-1]:0)>=be)ue=De;else if(j[De*2+1]<be)q=De+1;else{Ee=j[De*2+2];break}}var ot=Ee?Ee.indexOf("overlay "):-1;return ot<0?Ee:ot==0?null:Ee.slice(0,ot-1)},getModeAt:function(D){var j=this.doc.mode;return j.innerMode?e.innerMode(j,this.getTokenAt(D).state).mode:j},getHelper:function(D,j){return this.getHelpers(D,j)[0]},getHelpers:function(D,j){var q=[];if(!L.hasOwnProperty(j))return q;var ue=L[j],be=this.getModeAt(D);if(typeof be[j]=="string")ue[be[j]]&&q.push(ue[be[j]]);else if(be[j])for(var Ee=0;Ee<be[j].length;Ee++){var De=ue[be[j][Ee]];De&&q.push(De)}else be.helperType&&ue[be.helperType]?q.push(ue[be.helperType]):ue[be.name]&&q.push(ue[be.name]);for(var ot=0;ot<ue._global.length;ot++){var At=ue._global[ot];At.pred(be,this)&&$(q,At.val)==-1&&q.push(At.val)}return q},getStateAfter:function(D,j){var q=this.doc;return D=re(q,D==null?q.first+q.size-1:D),dn(this,D+1,j).state},cursorCoords:function(D,j){var q,ue=this.doc.sel.primary();return D==null?q=ue.head:typeof D=="object"?q=W(this.doc,D):q=D?ue.from():ue.to(),Yt(this,q,j||"page")},charCoords:function(D,j){return kn(this,W(this.doc,D),j||"page")},coordsChar:function(D,j){return D=En(this,D,j||"page"),xn(this,D.left,D.top)},lineAtHeight:function(D,j){return D=En(this,{top:D,left:0},j||"page").top,_a(this.doc,D+this.display.viewOffset)},heightAtLine:function(D,j,q){var ue=!1,be;if(typeof D=="number"){var Ee=this.doc.first+this.doc.size-1;D<this.doc.first?D=this.doc.first:D>Ee&&(D=Ee,ue=!0),be=Un(this.doc,D)}else be=D;return qt(this,be,{top:0,left:0},j||"page",q||ue).top+(ue?this.doc.height-xo(be):0)},defaultTextHeight:function(){return Gn(this.display)},defaultCharWidth:function(){return yn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(D,j,q,ue,be){var Ee=this.display;D=Yt(this,W(this.doc,D));var De=D.bottom,ot=D.left;if(j.style.position="absolute",j.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(j),Ee.sizer.appendChild(j),ue=="over")De=D.top;else if(ue=="above"||ue=="near"){var At=Math.max(Ee.wrapper.clientHeight,this.doc.height),Nt=Math.max(Ee.sizer.clientWidth,Ee.lineSpace.clientWidth);(ue=="above"||D.bottom+j.offsetHeight>At)&&D.top>j.offsetHeight?De=D.top-j.offsetHeight:D.bottom+j.offsetHeight<=At&&(De=D.bottom),ot+j.offsetWidth>Nt&&(ot=Nt-j.offsetWidth)}j.style.top=De+"px",j.style.left=j.style.right="",be=="right"?(ot=Ee.sizer.clientWidth-j.offsetWidth,j.style.right="0px"):(be=="left"?ot=0:be=="middle"&&(ot=(Ee.sizer.clientWidth-j.offsetWidth)/2),j.style.left=ot+"px"),q&&na(this,{left:ot,top:De,right:ot+j.offsetWidth,bottom:De+j.offsetHeight})},triggerOnKeyDown:wi(tu),triggerOnKeyPress:wi(Ru),triggerOnKeyUp:Ou,triggerOnMouseDown:wi(nu),execCommand:function(D){if(Fl.hasOwnProperty(D))return Fl[D].call(null,this)},triggerElectric:wi(function(D){Wl(this,D)}),findPosH:function(D,j,q,ue){var be=1;j<0&&(be=-1,j=-j);for(var Ee=W(this.doc,D),De=0;De<j&&!(Ee=ou(this.doc,Ee,be,q,ue),Ee.hitSide);++De);return Ee},moveH:wi(function(D,j){var q=this;this.extendSelectionsBy(function(ue){return q.display.shift||q.doc.extend||ue.empty()?ou(q.doc,ue.head,D,j,q.options.rtlMoveVisually):D<0?ue.from():ue.to()},ie)}),deleteH:wi(function(D,j){var q=this.doc.sel,ue=this.doc;q.somethingSelected()?ue.replaceSelection("",null,"+delete"):Ws(this,function(be){var Ee=ou(ue,be.head,D,j,!1);return D<0?{from:Ee,to:be.head}:{from:be.head,to:Ee}})}),findPosV:function(D,j,q,ue){var be=1,Ee=ue;j<0&&(be=-1,j=-j);for(var De=W(this.doc,D),ot=0;ot<j;++ot){var At=Yt(this,De,"div");if(Ee==null?Ee=At.left:At.left=Ee,De=Qu(this,At,be,q),De.hitSide)break}return De},moveV:wi(function(D,j){var q=this,ue=this.doc,be=[],Ee=!this.display.shift&&!ue.extend&&ue.sel.somethingSelected();if(ue.extendSelectionsBy(function(ot){if(Ee)return D<0?ot.from():ot.to();var At=Yt(q,ot.head,"div");ot.goalColumn!=null&&(At.left=ot.goalColumn),be.push(At.left);var Nt=Qu(q,At,D,j);return j=="page"&&ot==ue.sel.primary()&&jr(q,kn(q,Nt,"div").top-At.top),Nt},ie),be.length)for(var De=0;De<ue.sel.ranges.length;De++)ue.sel.ranges[De].goalColumn=be[De]}),findWordAt:function(D){var j=this.doc,q=Un(j,D.line).text,ue=D.ch,be=D.ch;if(q){var Ee=this.getHelper(D,"wordChars");(D.sticky=="before"||be==q.length)&&ue?--ue:++be;for(var De=q.charAt(ue),ot=et(De,Ee)?function(At){return et(At,Ee)}:/\s/.test(De)?function(At){return/\s/.test(At)}:function(At){return!/\s/.test(At)&&!et(At)};ue>0&&ot(q.charAt(ue-1));)--ue;for(;be<q.length&&ot(q.charAt(be));)++be}return new Ha(_e(D.line,ue),_e(D.line,be))},toggleOverwrite:function(D){if(D!=null&&D==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?N(this.display.cursorDiv,"CodeMirror-overwrite"):b(this.display.cursorDiv,"CodeMirror-overwrite"),ut(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==U()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:wi(function(D,j){da(this,D,j)}),getScrollInfo:function(){var D=this.display.scroller;return{left:D.scrollLeft,top:D.scrollTop,height:D.scrollHeight-wt(this)-this.display.barHeight,width:D.scrollWidth-wt(this)-this.display.barWidth,clientHeight:Te(this),clientWidth:nt(this)}},scrollIntoView:wi(function(D,j){D==null?(D={from:this.doc.sel.primary().head,to:null},j==null&&(j=this.options.cursorScrollMargin)):typeof D=="number"?D={from:_e(D,0),to:null}:D.from==null&&(D={from:D,to:null}),D.to||(D.to=D.from),D.margin=j||0,D.from.line!=null?ba(this,D):Ta(this,D.from,D.to,D.margin)}),setSize:wi(function(D,j){var q=this,ue=function(Ee){return typeof Ee=="number"||/^\d+$/.test(String(Ee))?Ee+"px":Ee};D!=null&&(this.display.wrapper.style.width=ue(D)),j!=null&&(this.display.wrapper.style.height=ue(j)),this.options.lineWrapping&&Wt(this);var be=this.display.viewFrom;this.doc.iter(be,this.display.viewTo,function(Ee){if(Ee.widgets){for(var De=0;De<Ee.widgets.length;De++)if(Ee.widgets[De].noHScroll){Er(q,be,"widget");break}}++be}),this.curOp.forceUpdate=!0,ut(this,"refresh",this)}),operation:function(D){return Qi(this,D)},startOperation:function(){return Ao(this)},endOperation:function(){return _o(this)},refresh:wi(function(){var D=this.display.cachedTextHeight;Lr(this),this.curOp.forceUpdate=!0,_n(this),da(this,this.doc.scrollLeft,this.doc.scrollTop),Go(this.display),(D==null||Math.abs(D-Gn(this.display))>.5||this.options.lineWrapping)&&Ur(this),ut(this,"refresh",this)}),swapDoc:wi(function(D){var j=this.doc;return j.cm=null,this.state.selectingText&&this.state.selectingText(),zt(this,D),_n(this),this.display.input.reset(),da(this,D.scrollLeft,D.scrollTop),this.curOp.forceScroll=!0,Ia(this,"swapDoc",this,j),j}),phrase:function(D){var j=this.options.phrases;return j&&Object.prototype.hasOwnProperty.call(j,D)?j[D]:D},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},He(e),e.registerHelper=function(D,j,q){L.hasOwnProperty(D)||(L[D]=e[D]={_global:[]}),L[D][j]=q},e.registerGlobalHelper=function(D,j,q,ue){e.registerHelper(D,j,ue),L[D]._global.push({pred:q,val:ue})}}function ou(e,r,L,D,j){var q=r,ue=L,be=Un(e,r.line),Ee=j&&e.direction=="rtl"?-L:L;function De(){var sr=r.line+Ee;return sr<e.first||sr>=e.first+e.size?!1:(r=new _e(sr,r.ch,r.sticky),be=Un(e,sr))}function ot(sr){var $n;if(D=="codepoint"){var br=be.text.charCodeAt(r.ch+(D>0?0:-1));isNaN(br)?$n=null:$n=new _e(r.line,Math.max(0,Math.min(be.text.length,r.ch+L*(br>=55296&&br<56320?2:1))),-L)}else j?$n=Au(e.cm,be,r,L):$n=hu(be,r,L);if($n==null)if(!sr&&De())r=$l(j,e.cm,be,r.line,Ee);else return!1;else r=$n;return!0}if(D=="char"||D=="codepoint")ot();else if(D=="column")ot(!0);else if(D=="word"||D=="group")for(var At=null,Nt=D=="group",Pt=e.cm&&e.cm.getHelper(r,"wordChars"),hn=!0;!(L<0&&!ot(!hn));hn=!1){var bn=be.text.charAt(r.ch)||`
`,Fn=et(bn,Pt)?"w":Nt&&bn==`
`?"n":!Nt||/\s/.test(bn)?null:"p";if(Nt&&!hn&&!Fn&&(Fn="s"),At&&At!=Fn){L<0&&(L=1,ot(),r.sticky="after");break}if(Fn&&(At=Fn),L>0&&!ot(!hn))break}var Zn=ll(e,r,q,ue,!0);return Ye(q,Zn)&&(Zn.hitSide=!0),Zn}function Qu(e,r,L,D){var j=e.doc,q=r.left,ue;if(D=="page"){var be=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Ee=Math.max(be-.5*Gn(e.display),3);ue=(L>0?r.bottom:r.top)+L*Ee}else D=="line"&&(ue=L>0?r.bottom+3:r.top-3);for(var De;!(De=xn(e,q,ue),!De.outside);){if(L<0?ue<=0:ue>=j.height){De.hitSide=!0;break}ue+=L*5}return De}var Bi=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new K,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Bi.prototype.init=function(e){var r=this,L=this,D=L.cm,j=L.div=e.lineDiv;bu(j,D.options.spellcheck,D.options.autocorrect,D.options.autocapitalize);function q(be){for(var Ee=be.target;Ee;Ee=Ee.parentNode){if(Ee==j)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Ee.className))break}return!1}Ve(j,"paste",function(be){if(!q(be)||vt(D,be)||Kl(be,D))return;T<=11&&setTimeout(Aa(D,function(){return r.updateFromDOM()}),20)}),Ve(j,"compositionstart",function(be){r.composing={data:be.data,done:!1}}),Ve(j,"compositionupdate",function(be){r.composing||(r.composing={data:be.data,done:!1})}),Ve(j,"compositionend",function(be){r.composing&&(be.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),Ve(j,"touchstart",function(){return L.forceCompositionEnd()}),Ve(j,"input",function(){r.composing||r.readFromDOMSoon()});function ue(be){if(!q(be)||vt(D,be))return;if(D.somethingSelected())Ql({lineWise:!1,text:D.getSelections()}),be.type=="cut"&&D.replaceSelection("",null,"cut");else if(D.options.lineWiseCopyCut){var Ee=yu(D);Ql({lineWise:!0,text:Ee.text}),be.type=="cut"&&D.operation(function(){D.setSelections(Ee.ranges,0,Ae),D.replaceSelection("",null,"cut")})}else return;if(be.clipboardData){be.clipboardData.clearData();var De=Ls.text.join(`
`);if(be.clipboardData.setData("Text",De),be.clipboardData.getData("Text")==De){be.preventDefault();return}}var ot=ju(),At=ot.firstChild;D.display.lineSpace.insertBefore(ot,D.display.lineSpace.firstChild),At.value=Ls.text.join(`
`);var Nt=document.activeElement;H(At),setTimeout(function(){D.display.lineSpace.removeChild(ot),Nt.focus(),Nt==j&&L.showPrimarySelection()},50)}Ve(j,"copy",ue),Ve(j,"cut",ue)},Bi.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Bi.prototype.prepareSelection=function(){var e=ja(this.cm,!1);return e.focus=document.activeElement==this.div,e},Bi.prototype.showSelection=function(e,r){if(!e||!this.cm.display.view.length)return;(e.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(e)},Bi.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Bi.prototype.showPrimarySelection=function(){var e=this.getSelection(),r=this.cm,L=r.doc.sel.primary(),D=L.from(),j=L.to();if(r.display.viewTo==r.display.viewFrom||D.line>=r.display.viewTo||j.line<r.display.viewFrom){e.removeAllRanges();return}var q=nl(r,e.anchorNode,e.anchorOffset),ue=nl(r,e.focusNode,e.focusOffset);if(q&&!q.bad&&ue&&!ue.bad&&Ie(sn(q,ue),D)==0&&Ie(Xt(q,ue),j)==0)return;var be=r.display.view,Ee=D.line>=r.display.viewFrom&&El(r,D)||{node:be[0].measure.map[2],offset:0},De=j.line<r.display.viewTo&&El(r,j);if(!De){var ot=be[be.length-1].measure,At=ot.maps?ot.maps[ot.maps.length-1]:ot.map;De={node:At[At.length-1],offset:At[At.length-2]-At[At.length-3]}}if(!Ee||!De){e.removeAllRanges();return}var Nt=e.rangeCount&&e.getRangeAt(0),Pt;try{Pt=g(Ee.node,Ee.offset,De.offset,De.node)}catch(hn){}Pt&&(!I&&r.state.focused?(e.collapse(Ee.node,Ee.offset),Pt.collapsed||(e.removeAllRanges(),e.addRange(Pt))):(e.removeAllRanges(),e.addRange(Pt)),Nt&&e.anchorNode==null?e.addRange(Nt):I&&this.startGracePeriod()),this.rememberSelection()},Bi.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Bi.prototype.showMultipleSelections=function(e){h(this.cm.display.cursorDiv,e.cursors),h(this.cm.display.selectionDiv,e.selection)},Bi.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Bi.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var r=e.getRangeAt(0).commonAncestorContainer;return y(this.div,r)},Bi.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Bi.prototype.blur=function(){this.div.blur()},Bi.prototype.getField=function(){return this.div},Bi.prototype.supportsTouch=function(){return!0},Bi.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Qi(this.cm,function(){return e.cm.curOp.selectionChanged=!0});function r(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,r))}this.polling.set(this.cm.options.pollInterval,r)},Bi.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Bi.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var e=this.getSelection(),r=this.cm;if(d&&a&&this.cm.display.gutterSpecs.length&&Ku(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var L=nl(r,e.anchorNode,e.anchorOffset),D=nl(r,e.focusNode,e.focusOffset);L&&D&&Qi(r,function(){ki(r.doc,Ti(L,D),Ae),(L.bad||D.bad)&&(r.curOp.selectionChanged=!0)})},Bi.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,r=e.display,L=e.doc.sel.primary(),D=L.from(),j=L.to();if(D.ch==0&&D.line>e.firstLine()&&(D=_e(D.line-1,Un(e.doc,D.line-1).length)),j.ch==Un(e.doc,j.line).text.length&&j.line<e.lastLine()&&(j=_e(j.line+1,0)),D.line<r.viewFrom||j.line>r.viewTo-1)return!1;var q,ue,be;D.line==r.viewFrom||(q=rr(e,D.line))==0?(ue=Kr(r.view[0].line),be=r.view[0].node):(ue=Kr(r.view[q].line),be=r.view[q-1].node.nextSibling);var Ee=rr(e,j.line),De,ot;if(Ee==r.view.length-1?(De=r.viewTo-1,ot=r.lineDiv.lastChild):(De=Kr(r.view[Ee+1].line)-1,ot=r.view[Ee+1].node.previousSibling),!be)return!1;for(var At=e.doc.splitLines(_l(e,be,ot,ue,De)),Nt=Ra(e.doc,_e(ue,0),_e(De,Un(e.doc,De).text.length));At.length>1&&Nt.length>1;)if(se(At)==se(Nt))At.pop(),Nt.pop(),De--;else if(At[0]==Nt[0])At.shift(),Nt.shift(),ue++;else break;for(var Pt=0,hn=0,bn=At[0],Fn=Nt[0],Zn=Math.min(bn.length,Fn.length);Pt<Zn&&bn.charCodeAt(Pt)==Fn.charCodeAt(Pt);)++Pt;for(var sr=se(At),$n=se(Nt),br=Math.min(sr.length-(At.length==1?Pt:0),$n.length-(Nt.length==1?Pt:0));hn<br&&sr.charCodeAt(sr.length-hn-1)==$n.charCodeAt($n.length-hn-1);)++hn;if(At.length==1&&Nt.length==1&&ue==D.line)for(;Pt&&Pt>D.ch&&sr.charCodeAt(sr.length-hn-1)==$n.charCodeAt($n.length-hn-1);)Pt--,hn++;At[At.length-1]=sr.slice(0,sr.length-hn).replace(/^\u200b+/,""),At[0]=At[0].slice(Pt).replace(/\u200b+$/,"");var Zr=_e(ue,Pt),Hr=_e(De,Nt.length?se(Nt).length-hn:0);if(At.length>1||At[0]||Ie(Zr,Hr))return Rs(e.doc,At,Zr,Hr,"+input"),!0},Bi.prototype.ensurePolled=function(){this.forceCompositionEnd()},Bi.prototype.reset=function(){this.forceCompositionEnd()},Bi.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},Bi.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},Bi.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Qi(this.cm,function(){return Lr(e.cm)})},Bi.prototype.setUneditable=function(e){e.contentEditable="false"},Bi.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||Aa(this.cm,vu)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},Bi.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Bi.prototype.onContextMenu=function(){},Bi.prototype.resetPosition=function(){},Bi.prototype.needsContentAttribute=!0;function El(e,r){var L=Tt(e,r.line);if(!L||L.hidden)return null;var D=Un(e.doc,r.line),j=Re(L,D,r.line),q=jt(D,e.doc.direction),ue="left";if(q){var be=dt(q,r.ch);ue=be%2?"right":"left"}var Ee=lt(j.map,r.ch,ue);return Ee.offset=Ee.collapse=="right"?Ee.end:Ee.start,Ee}function Ku(e){for(var r=e;r;r=r.parentNode)if(/CodeMirror-gutter-wrapper/.test(r.className))return!0;return!1}function $i(e,r){return r&&(e.bad=!0),e}function _l(e,r,L,D,j){var q="",ue=!1,be=e.doc.lineSeparator(),Ee=!1;function De(Pt){return function(hn){return hn.id==Pt}}function ot(){ue&&(q+=be,Ee&&(q+=be),ue=Ee=!1)}function At(Pt){Pt&&(ot(),q+=Pt)}function Nt(Pt){if(Pt.nodeType==1){var hn=Pt.getAttribute("cm-text");if(hn){At(hn);return}var bn=Pt.getAttribute("cm-marker"),Fn;if(bn){var Zn=e.findMarks(_e(D,0),_e(j+1,0),De(+bn));Zn.length&&(Fn=Zn[0].find(0))&&At(Ra(e.doc,Fn.from,Fn.to).join(be));return}if(Pt.getAttribute("contenteditable")=="false")return;var sr=/^(pre|div|p|li|table|br)$/i.test(Pt.nodeName);if(!/^br$/i.test(Pt.nodeName)&&Pt.textContent.length==0)return;sr&&ot();for(var $n=0;$n<Pt.childNodes.length;$n++)Nt(Pt.childNodes[$n]);/^(pre|p)$/i.test(Pt.nodeName)&&(Ee=!0),sr&&(ue=!0)}else Pt.nodeType==3&&At(Pt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(Nt(r),r==L);)r=r.nextSibling,Ee=!1;return q}function nl(e,r,L){var D;if(r==e.display.lineDiv){if(D=e.display.lineDiv.childNodes[L],!D)return $i(e.clipPos(_e(e.display.viewTo-1)),!0);r=null,L=0}else for(D=r;;D=D.parentNode){if(!D||D==e.display.lineDiv)return null;if(D.parentNode&&D.parentNode==e.display.lineDiv)break}for(var j=0;j<e.display.view.length;j++){var q=e.display.view[j];if(q.node==D)return Al(q,r,L)}}function Al(e,r,L){var D=e.text.firstChild,j=!1;if(!r||!y(D,r))return $i(_e(Kr(e.line),0),!0);if(r==D&&(j=!0,r=D.childNodes[L],L=0,!r)){var q=e.rest?se(e.rest):e.line;return $i(_e(Kr(q),q.text.length),j)}var ue=r.nodeType==3?r:null,be=r;for(!ue&&r.childNodes.length==1&&r.firstChild.nodeType==3&&(ue=r.firstChild,L&&(L=ue.nodeValue.length));be.parentNode!=D;)be=be.parentNode;var Ee=e.measure,De=Ee.maps;function ot(Fn,Zn,sr){for(var $n=-1;$n<(De?De.length:0);$n++)for(var br=$n<0?Ee.map:De[$n],Zr=0;Zr<br.length;Zr+=3){var Hr=br[Zr+2];if(Hr==Fn||Hr==Zn){var Fa=Kr($n<0?e.line:e.rest[$n]),ji=br[Zr]+sr;return(sr<0||Hr!=Fn)&&(ji=br[Zr+(sr?1:0)]),_e(Fa,ji)}}}var At=ot(ue,be,L);if(At)return $i(At,j);for(var Nt=be.nextSibling,Pt=ue?ue.nodeValue.length-L:0;Nt;Nt=Nt.nextSibling){if(At=ot(Nt,Nt.firstChild,0),At)return $i(_e(At.line,At.ch-Pt),j);Pt+=Nt.textContent.length}for(var hn=be.previousSibling,bn=L;hn;hn=hn.previousSibling){if(At=ot(hn,hn.firstChild,-1),At)return $i(_e(At.line,At.ch+bn),j);bn+=hn.textContent.length}}var Mi=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new K,this.hasSelection=!1,this.composing=null};Mi.prototype.init=function(e){var r=this,L=this,D=this.cm;this.createField(e);var j=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),c&&(j.style.width="0px"),Ve(j,"input",function(){M&&T>=9&&r.hasSelection&&(r.hasSelection=null),L.poll()}),Ve(j,"paste",function(ue){if(vt(D,ue)||Kl(ue,D))return;D.state.pasteIncoming=+new Date,L.fastPoll()});function q(ue){if(vt(D,ue))return;if(D.somethingSelected())Ql({lineWise:!1,text:D.getSelections()});else if(D.options.lineWiseCopyCut){var be=yu(D);Ql({lineWise:!0,text:be.text}),ue.type=="cut"?D.setSelections(be.ranges,null,Ae):(L.prevInput="",j.value=be.text.join(`
`),H(j))}else return;ue.type=="cut"&&(D.state.cutIncoming=+new Date)}Ve(j,"cut",q),Ve(j,"copy",q),Ve(e.scroller,"paste",function(ue){if($o(e,ue)||vt(D,ue))return;if(!j.dispatchEvent){D.state.pasteIncoming=+new Date,L.focus();return}var be=new Event("paste");be.clipboardData=ue.clipboardData,j.dispatchEvent(be)}),Ve(e.lineSpace,"selectstart",function(ue){$o(e,ue)||we(ue)}),Ve(j,"compositionstart",function(){var ue=D.getCursor("from");L.composing&&L.composing.range.clear(),L.composing={start:ue,range:D.markText(ue,D.getCursor("to"),{className:"CodeMirror-composing"})}}),Ve(j,"compositionend",function(){L.composing&&(L.poll(),L.composing.range.clear(),L.composing=null)})},Mi.prototype.createField=function(e){this.wrapper=ju(),this.textarea=this.wrapper.firstChild},Mi.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Mi.prototype.prepareSelection=function(){var e=this.cm,r=e.display,L=e.doc,D=ja(e);if(e.options.moveInputWithCursor){var j=Yt(e,L.sel.primary().head,"div"),q=r.wrapper.getBoundingClientRect(),ue=r.lineDiv.getBoundingClientRect();D.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,j.top+ue.top-q.top)),D.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,j.left+ue.left-q.left))}return D},Mi.prototype.showSelection=function(e){var r=this.cm,L=r.display;h(L.cursorDiv,e.cursors),h(L.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Mi.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var r=this.cm;if(r.somethingSelected()){this.prevInput="";var L=r.getSelection();this.textarea.value=L,r.state.focused&&H(this.textarea),M&&T>=9&&(this.hasSelection=L)}else e||(this.prevInput=this.textarea.value="",M&&T>=9&&(this.hasSelection=null))},Mi.prototype.getField=function(){return this.textarea},Mi.prototype.supportsTouch=function(){return!1},Mi.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!f||U()!=this.textarea))try{this.textarea.focus()}catch(e){}},Mi.prototype.blur=function(){this.textarea.blur()},Mi.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Mi.prototype.receivedFocus=function(){this.slowPoll()},Mi.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Mi.prototype.fastPoll=function(){var e=!1,r=this;r.pollingFast=!0;function L(){var D=r.poll();!D&&!e?(e=!0,r.polling.set(60,L)):(r.pollingFast=!1,r.slowPoll())}r.polling.set(20,L)},Mi.prototype.poll=function(){var e=this,r=this.cm,L=this.textarea,D=this.prevInput;if(this.contextMenuPending||!r.state.focused||Je(L)&&!D&&!this.composing||r.isReadOnly()||r.options.disableInput||r.state.keySeq)return!1;var j=L.value;if(j==D&&!r.somethingSelected())return!1;if(M&&T>=9&&this.hasSelection===j||o&&/[\uf700-\uf7ff]/.test(j))return r.display.input.reset(),!1;if(r.doc.sel==r.display.selForContextMenu){var q=j.charCodeAt(0);if(q==8203&&!D&&(D="\u200B"),q==8666)return this.reset(),this.cm.execCommand("undo")}for(var ue=0,be=Math.min(D.length,j.length);ue<be&&D.charCodeAt(ue)==j.charCodeAt(ue);)++ue;return Qi(r,function(){vu(r,j.slice(ue),D.length-ue,null,e.composing?"*compose":null),j.length>1e3||j.indexOf(`
`)>-1?L.value=e.prevInput="":e.prevInput=j,e.composing&&(e.composing.range.clear(),e.composing.range=r.markText(e.composing.start,r.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Mi.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Mi.prototype.onKeyPress=function(){M&&T>=9&&(this.hasSelection=null),this.fastPoll()},Mi.prototype.onContextMenu=function(e){var r=this,L=r.cm,D=L.display,j=r.textarea;r.contextMenuPending&&r.contextMenuPending();var q=er(L,e),ue=D.scroller.scrollTop;if(!q||t)return;var be=L.options.resetSelectionOnContextMenu;be&&L.doc.sel.contains(q)==-1&&Aa(L,ki)(L.doc,Ti(q),Ae);var Ee=j.style.cssText,De=r.wrapper.style.cssText,ot=r.wrapper.offsetParent.getBoundingClientRect();r.wrapper.style.cssText="position: static",j.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(e.clientY-ot.top-5)+"px; left: "+(e.clientX-ot.left-5)+`px;
z-index: 1000; background: `+(M?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var At;n&&(At=window.scrollY),D.input.focus(),n&&window.scrollTo(null,At),D.input.reset(),L.somethingSelected()||(j.value=r.prevInput=" "),r.contextMenuPending=Pt,D.selForContextMenu=L.doc.sel,clearTimeout(D.detectingSelectAll);function Nt(){if(j.selectionStart!=null){var bn=L.somethingSelected(),Fn="\u200B"+(bn?j.value:"");j.value="\u21DA",j.value=Fn,r.prevInput=bn?"":"\u200B",j.selectionStart=1,j.selectionEnd=Fn.length,D.selForContextMenu=L.doc.sel}}function Pt(){if(r.contextMenuPending!=Pt)return;if(r.contextMenuPending=!1,r.wrapper.style.cssText=De,j.style.cssText=Ee,M&&T<9&&D.scrollbars.setScrollTop(D.scroller.scrollTop=ue),j.selectionStart!=null){(!M||M&&T<9)&&Nt();var bn=0,Fn=function(){D.selForContextMenu==L.doc.sel&&j.selectionStart==0&&j.selectionEnd>0&&r.prevInput=="\u200B"?Aa(L,Sl)(L):bn++<10?D.detectingSelectAll=setTimeout(Fn,500):(D.selForContextMenu=null,D.input.reset())};D.detectingSelectAll=setTimeout(Fn,200)}}if(M&&T>=9&&Nt(),P){We(e);var hn=function(){Rt(window,"mouseup",hn),setTimeout(Pt,20)};Ve(window,"mouseup",hn)}else setTimeout(Pt,50)},Mi.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Mi.prototype.setUneditable=function(){},Mi.prototype.needsContentAttribute=!1;function zl(e,r){if(r=r?B(r):{},r.value=e.value,!r.tabindex&&e.tabIndex&&(r.tabindex=e.tabIndex),!r.placeholder&&e.placeholder&&(r.placeholder=e.placeholder),r.autofocus==null){var L=U();r.autofocus=L==e||e.getAttribute("autofocus")!=null&&L==document.body}function D(){e.value=be.getValue()}var j;if(e.form&&(Ve(e.form,"submit",D),!r.leaveSubmitMethodAlone)){var q=e.form;j=q.submit;try{var ue=q.submit=function(){D(),q.submit=j,q.submit(),q.submit=ue}}catch(Ee){}}r.finishInit=function(Ee){Ee.save=D,Ee.getTextArea=function(){return e},Ee.toTextArea=function(){Ee.toTextArea=isNaN,D(),e.parentNode.removeChild(Ee.getWrapperElement()),e.style.display="",e.form&&(Rt(e.form,"submit",D),!r.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=j))}},e.style.display="none";var be=Xi(function(Ee){return e.parentNode.insertBefore(Ee,e.nextSibling)},r);return be}function rl(e){e.off=Rt,e.on=Ve,e.wheelEventPixels=Pn,e.Doc=In,e.splitLines=mt,e.countColumn=z,e.findColumn=ye,e.isWordChar=Ke,e.Pass=fe,e.signal=ut,e.Line=ho,e.changeEnd=Ro,e.scrollbarModel=Li,e.Pos=_e,e.cmpPos=Ie,e.modes=St,e.mimeModes=bt,e.resolveMode=_t,e.getMode=Gt,e.modeExtensions=kt,e.extendMode=fn,e.copyState=mn,e.startState=Mr,e.innerMode=Tr,e.commands=Fl,e.keyMap=Ds,e.keyName=cu,e.isModifierKey=wu,e.lookupKey=bs,e.normalizeKeyMap=Cu,e.StringStream=kr,e.SharedTextMarker=La,e.TextMarker=ga,e.LineWidget=Fr,e.e_preventDefault=we,e.e_stopPropagation=Le,e.e_stop=We,e.addClass=N,e.contains=y,e.rmClass=b,e.keyNames=Io}ec(Xi),Hu(Xi);var Wu="iter insert remove copy getEditor constructor".split(" ");for(var Gl in In.prototype)In.prototype.hasOwnProperty(Gl)&&$(Wu,Gl)<0&&(Xi.prototype[Gl]=function(e){return function(){return e.apply(this.doc,arguments)}}(In.prototype[Gl]));return He(In),Xi.inputStyles={textarea:Mi,contenteditable:Bi},Xi.defineMode=function(e){!Xi.defaults.mode&&e!="null"&&(Xi.defaults.mode=e),Dt.apply(this,arguments)},Xi.defineMIME=Qt,Xi.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Xi.defineMIME("text/plain","null"),Xi.defineExtension=function(e,r){Xi.prototype[e]=r},Xi.defineDocExtension=function(e,r){In.prototype[e]=r},Xi.fromTextArea=zl,rl(Xi),Xi.version="5.58.2",Xi})},W6BS:function(Be,ee){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAVs0lEQVRoQ+2aa6xlZ3nff++677Xv+9zPHM/YHo+xwQ4E14GKKESkiFsSM8bYQBIEkaBEAkqbRmo/9FulSoX2Qz9GVVQJqUJBhKKA1KRJCIlowwdDDDa+jOd65syc275f1v1d1fOufYYE2ZhJZKRWXjOjvffaa6/1/p//8/yfyzuqLMuS/48P9RrA/8fZfY3B2yXQBHQpf185tBUK+SvH8uV2H/eK1/+jGfwRIBC5ks/Vq/yplq2Wqz+B/ONg5LNlrlz+Qhnot373iih+wgX/YIAivrJgjTKA9BKcYa/Uy/MnUEpD0S2AyzdKkMslZYklbwVYWZpXQSygrSVoc+4fcPzUAKtsom4xpIGiLCkMZbJGs1LkvOHPfJbrhRX5/CM/NDwJZlXiqBKlc7AEjg1aI2iVDXZpoeS9AFXlkmV1W8z+VACLE7dbMiWLE2CFADLgqig6SakCSs4jizcvAvBHMVkqxxhKkePqAs8S1mxyLUxqw6AYKLdtbMtGINpiKKUM07bc96dk9BUBykIFoNYVC/JewMkCDDh18p0so6w+GzfT+FoWC7Yl11curQpFVCoyJQsvDThP6crNdVldi0KLcwogyzJGssVrxYWXAOWzwWg84eXd92UByoK0WHEJqBCA4oC6ChstYHRJIW6lZHWQlsoYQH6rypyOLZ5Xuahx3NIi1TAvLBIcHIlUw8rfcWFLFmzhmPBUxi0NKIRdAVi5qmPAL88LrS9z/AigmHBpCcOaCIUA1BVj4ma6LCi1FkjLBZRoVRrLR9piXjhkysI2mqJxhY2lQUrDjG3iVv5k5YmgyHI1ngLPBqfUxg21nC5LbGUhHJbGUPKu8hTbUthKGcZP3Palks3fY/BECQVQLoDk0QWURYFVFuTaNudtS+Pb8mCNZcQEYmMQi8KymCSQGLJLIx7zKCFKi1uuJNZvNXxDvLBVszUtW5xSm0WL8Mh9hV0xoGFfKRItVzjYJmaFSQtHAFqVwY3i/pi7Kl2e6N9SOJaxkJk4q0CmqcZVBaGtybFY5OIaCscqKqsaUYBE6LYU08Jimi/dxrIYjudM5ynCohzCyvZaw3iCLEviqW3ntDxR1SreTDCbQ1OI65c2qZKQsY0RKlUVFoVxWcsS5DLdnHisKk6iX1iTeBOXlNgqK4kXxmTdgapAVlWKYpKLsuVYykSJictxVtKPNMq1K0saFiym8wWzKKkiSnKeDSud9i1llOe0XE3PrUTMLEmerys1zpVEYCVWIjqVS1aGEjYlJKrvKvYrAVoWGcKgxIkBYmKuurlRTuOqmkIrdCEOJ8qpyIuc/iInL7R5oAEoOVEXRv0cx8HyHBZxZAySJilplqFE8i3bGLHXqZvFlEp4qOJOKM6zrJKkUuN7Lp6t8GxxxcqIEtfCsnFNw1yViuQuxlVNbJ6AFNUuSjEUmbFWBfJEZITF6rywalW5ryyJc21czpSSy/RmErpSFIU2bJWWRRTFVcqwHPOdo3I8HbO60mVi1Y31qwqmYkN+Ox5Nl/Kv2V7t4DhWJWoSfZZFzy3whTUJCxNA4m02meVWgAWcASr31Kgk1+XJwitfl3ykDaPyWdzTiIeW9xKDBWlREkkgVmloWTdWorBIcwajiTlryZOkJClSVDRARUN0HvPut7+NuarxbD8hKqrEbcJTjDePTfiJiKy267iOu8yBot6KrgC0xWMkHiUMSiNsri2GqAoCCYETJlWU6VJcRpiTxUp6yMU1JQ7lPMJKFZvGXUXic4ijtKodxY7KIs8LFlFElC4rEbFwFsGsTzk74sbNI/70UsQDd67zyXe9mSKes3XnnVxZKK7sz8yzxcWWkWMW3mk3cB1xzyqXmtRg2LRMvMn13tItxXVFeBwJF0kfAlIqHgEoYPJSJFjyU0kugITJQlVgTYo4UVlFlmvyRFxUtNliMl2wWLqlZTuUyZxkvE/Wv8rFG2P+aq/g/yR1Um+dT53L+MyvvoUXD2esFGPO7qyhWqs8f3PGMMEsrCpQFM1miOvYOLbCtW2U5EgKE2+uFANWWamnI6AroTEKWyocAxDULClKEXsBUrEkqlm5ZxQXZLkIx7INEoYtG5NC4qxSYsthOJ+RZZp8MSUeXGF84wYv7A74q8OSZ4Yp+dadnGpYvKkW88vr8L5feQffGyo8yyU/usIDpwJ2du7gRuJyaRBRaI1rKxqdLkVekC5mzIaHnFnv4DRWsFWBrWxciTeTSKRIKAlcSTlV2hG3NwAnaVFKjFUsanItLiklmMUsTsky0dOTvk5R2DapUaXCKKhtW+xd36W/+zyH13Z5+uox3+6XXKWH17D4OTfi/tWQerLg2qjgvtNNPvbrv8K1m4c49R5Huk6jHtCY3eTcVkh9ZZtn+xnXb+4zH+9x/cJFJkf7BI7iNz78OO3tc9xc5NSEIaEsLxhNMpo1m9W2Z0SryqXiriVqnIjICIPaMJMLuKIqdhdJsgQoNQMMo4RUa0rbMbknGRxwcOUZLj73It/dnfA3U8U4Vpzq+Lxho8YOBcPpnCuJy1z5lG6Dd52Gjzx+nmf6BSvJDWppjFrZ5jj2qLs5O/6cuzZX+fZ3nuS//+GXTBz11k/R7K7yofe/lzu21om8JoeLAlvUM8lJC00YWKw0PcNelUbEVUvUKClLkf7MKKcxyDIdWEQnDJYWgac4mMdEGYz3d7n5/JNcuHCZJ/cWPD0u0Y7L2Y0G9wXgZDHXJhl7sUWSlnTXemzVYcsvOde1eeyD57kwUEROm3h0zE4zJcgXxO0dJrGibo24by0kmy/4ytf+mJuHx3RX1njiA49gez5NV+H1Nrl0nOFIzyhdia/otURxJVVonGUNqwaxLiVXSb4TIalctYrJJMlMvSe+/fyFF/iDL/1PvLCGH+3zv184Znde0Gp1eF3PYtWF/qzg4njBOLOot2qcabqc8nNCzyaKNLtzhwd26nzqo49xae+ItZpN4nWIW6tMR2N27DmBnTMPegwjm1P1jJ265vf/4IvYrsfjH3iUYPUU2XxA09J47TVujIQQi1oAnaazLCGlIKjKctWP88pFDbglwEK0o2oFnn3+Al/6+p/x7aeukRSKaf8Kd6+vMCngbCekKHN2+ykHixw3CNgRUC2bhl0yTkpuTguGqkFpe4jCvn1b87GPfYQfzBp0VETQ32WzV6OwA7LmNkk8o82Y0C4ZuqvU0hHf/PrXSCn5zQ9+AK97iv7xDVp1H0+VtFpdrs5sfNun2zzpMERdq/e3AIqWSCKXMksi8LtPP88Xv/a/+NZTV8nckE5vlWQ8ZHF4kbee7nF5EHMwzU2SXW/4nGo51FyYRQV7EfQz1whVqFLarQYbtYL1oGDdhw9/8AOo+ip7WY3RPKPXaaCm+3TtCK/WQNfXiZKYlrWg6RR8+ctfQyv40KPncbobFOni1vjEL2Ka7R6TMsCWErEs8BwIPZMt/w5AuUNZ8L3v/5D/9kd/yp8/dY1ZaRHW5IeKmhdiJxGL4R4bjYBpUrDTklbHYZzAzUXJsLDNA9qBzXrDZTVMWbczPJWT5jAvA+qBy71ntui26txz5gy9nTNE3gr9eY5da6KSEV0VmfxXNnqo6JBvfPUbaKX4yGOP0tjc4ehgn3araepbycV2HtNqNJmoJnkSUQsCVpoOlkwNbrmoFMXzOe/55L/nuVFCKwywpf6TYrdWJ2h2SKcT5jee5+c26xzNcg4XmrEWkCVrocVGqFi1clyVkOUpi8Iz8ZSqOkVjg6y+wYP+DX73n3+YZy5cZTE6IjoesNkOWNvcpLW6Req0SLyAdD6l5cQ0SPnDr3wdbdt86PwjWO0ViiTC93ziNMb1fMosMa+DhUWjXqfmO6w07R8HqEgWc9772f/M1cEY31Km0pdaUqoL16uhkgXp+AYrgccwKdgKNWtuQSiAsoJRDlOrSeT2SFtr0tNj1+u4cUJYU0S5zZnkAr/z6c8xi2BnewWdxswnxyz6+4wPbtDwLLa3t2msbuGvbZH29/jjr3wV7Xg88egjhJtnGPf3qbmeSc8iMKpIsL0ax4uSXqtJ4Dn0mnZVthkGpZBGkUYR7/7MF7g6nOJL3yWjBNfFDgLCRodiPjYJ/RdWC/L5hJG2megaU7tDFrSw7Rp23aNt2fRaHuuhzXY7pBfa3H/XFg/9k7dw/dJz2BtneXFvhvbq6DwhsApWuy08pyAeDTjcvUg02SdUDmfvOcuf/OW3cJ2Ax87/GrG3SjQfs73eIY1j07WUeY7teAwSixWpX215vsx8LNQgLpbdBESLiPd++j9ydTjDcaW6kxYILFtUyiFfLJiOD+gGAX4yZNy+h17DpRf6bPd8tkOHjW6dhqcME4WCRZwxj1LuP3c373/fO43r1ms1U8DPEs3hLGV3MKe/kM8JUvkHrk27XuNo90W+9T++SKfbpdXu8eivvYeodZpo2qfu26gix5f8kEZYtscwdel1mqau3Oh4+I6NGsZSqkFSwmgScf53/xPX+hPDoJQ7ruPg+QFOo0OnXKDGN7h7Z53NsKTVWaHpS5uSsUil77N5dnfI6TWfb//wiMZaB3824Wri8W/Pv4kHf+k9PHPtJg+tWBzqBmE559RaD6U1YehXRUSiORhF9Oea4+Njvvnl368YWVvn8fe/jwNrnWgyYLXbrCZudombx3h+jWHqGE+QY7O9BDgyAEtSA3DB+c99gWujObbkQXFyS4avVWvyxBtabDUcRrOUSVS1TtcOI06thTy1N+EX7+rx/Rsj3nhmhfF0SiMMaDnC4oI3PvB6nnjsPP3RhHbD5zD2IBkztQLy+QisOg07QzkO6w1PujrT9gyPjti7ecizL77Im99wP/vuafJkTCusUeYyJbDwSHFdj1R5rHVbpszcarumWVaTWGpRTYZiNIt55LNf4NJghGu7ph0x/ZhfpxO43FeLqXslea6o+VIO2SRFSTdUHExj1kOPZ/s59/U8vrM7YbXXppgOuZGF/Kt338tb3/M437uyyy+s+xxlLr4V0wzqFDqiXu9CnphFinpHmSbRBTXXIQzrXHnuaXScct2/h2S+T7veQBUpjhuaKYHjunhByEq3bXjZ7Mj9S9Q0LctqyFRw4dI1/sV/+K8cLyK6niKwLZM0m3aKVh5d1yJzfKJE5iZVz9Wf5ex0PK4Mc16/6nBtmnNn1zV5re471FTGPNE8/MbX8Vsf/U1GozHtekA/d3CKiKT0ydMZuRXg6oyFVrQ8mftUfZ909rWgxqXnnyXPUi6rM+hE7tEwY/6isPDLBa4XENbrZqxhpgwWPHimi5qnupQkOhsN+czv/TuSLEZJ01qYmbXpEeVGMq5r1VxKp40uJcFKV20xiXN6fsneXHNHy+IHfYsHVkue2Yuot+t48Zy9LOR33nGGdz72cf724lUe2nA50CENEiyvgU6m1MI6vjTctk3o2qSZNN/g26IZFrsXLpDGC75nvw4VjWj5MrbQxvA15vhuwFqnUc1mtAzKSt567ypqkelSW4pR/5hPfvbfEEuBbfYKSjKkMpFZSEGuLDphCH6DPNfVwMjCjCg6gc0gUWzVUo5ih9VAM4+1WV1YZIzTkrf9/Dk+8clPMZjO6dUcxri42YKs9CjSOTpo4Ocps1yKe5uiyMhKaXxdiiJl/9JFoijiyDmFThY4gWcmfalWODrFdXy2N1bJZcBVajNyfMu5VVSSlbJlwHH/iI9/4tNMU/BktKRcclVgaRtLi2UVnaAOQYM0l8FrhrJtJqliJdDsRTZ3hylPj33e0Em51M+pd3uEi0P2dIPf/qen+PWPfoKnL+/x4JrPXuYTFlMIOuTRGK/eoVbGLAqLRijViSbTOTU3QArR65dfZL6IcdbvIs1TdocF3bpPJ3RMzGWzASvr22C7ZpIn/x6+W+LUzPXgsN/nN574CEmSUtrVjo4lvaFTYDlSiSt6Gx1Cv0vhxliJTe6UlEnN7CRpw7QiLmVvopoOoF0sO2MclfzSm+/hM//y95guUtpShARtnCJmEeUoFeM1mziZJo4WeEHN7EUUSUpk73P95vfZvTYAvUa+ukGez9g7njPqF7Rd6RwKiugKi/llHMfHsnwzZG76ddTBwWGZZinD4YjPfvpzTGYzijwxsxBJxt07MlpnE1RmYbuKQG+iuhP0wEe1c+ILr8d2UhOrWldjDKu7TznaJFjbZX58Cqt2mTfd+y5+6+Nv53jyIr3mvYRunX5ymZ71MK6q4Qc+cVYwi2IaNR/PtdGpx7Xoqzx3+CeE84d54NR5IYhWo8Zf/s03+Oo3/wtrvW1Ct0PgrhA6K9TcDqV2jSAJc+rzn/98OZ1Ol/MVl7IsiOOINM0YTw4ZRJeJ9ZDpZEzQ9fGKDexmRJkVqMBn+twOyo5pNJsEYcjx8QG9h55kcel1hGcvMnvhHGrlBR66/1f55X+2zQvX/5q13r2QOQzzH/Lz7X/NYfEAvaZiePOQsrfOSnJIOwiNmz23+xccHr3AweGc8RjCIOD05lksakyjIzrBnRRimNmYXGdmHTs7pzh37pypadW1a9dKqRgODg7Y399nMhmTZZm5ecIxUTpgkR4yiQ+IFhPiLCeOZpSFB3GTXDdwdIv17hmarR4//MGT3PGL+1z/bo/em6/S/84pmg89zwPrj/COd55mMDkirNWwkx3G0QsUB2/Ba57jjq0OZTxGOS46ryYJ82jApetPcTDYJ6yt4tshtVoIuUMz7NI/HqJ1SthscMfOHZy9+y62trbwPO/WbuHf3z7TmvlcLDVmMBgwHIwYjSbMJ3Nm0ZxI5p3JjHk6RkbCgVfDsgN8ArP3N5juM5jdJD26xrOjq9TzCcfzkGYYcXrrbTz6xDs5OrrMeHzIjck+2eiA65OYdrjOPace5NzOw/hO10zW5ZDm27VDUxdLnMtwOctSk+NqtYDNzU3W1tfpdbvm2pc6bgE0u7IvsRUs56M4Yj6dmfJrOhwyGE8YjkaMxkNmszlpLDGbkeUx02RAlC2Y5UeUSZ+pdYyaz1k4Y9OdhE4D5dVoB6dZWbuLlneaXm2DPC1NR5BGCbF0CWVJEAQ0GnXanTb1sE69Xmdzc4uNjQ1ardZy4+dlN3fNF6+4R/9SP5eHJ0nMYhEh8TscDun3+0aoJuMJi8WCJMnRZgRZkJOR5FMKvWBz/QyN2gqqsEjTBE1q7iU5znZsfN83i2+32zSbTXq9HisrK6yurtJoNH4ympf49rYAvhzL1b5JSZqmZqGTyZT+4Jj+cd+4+mg4Yh7F5Kk0xqK4Jb7rVP87w1KGpU6nR6vVNMAEkPzrdDqGxX/McVsAb/dBsh0mKWgxnzMajxgOhhwf9+n3j5nNZ7RbbbrdrgElYE5Aua57u4962etfNYAvx7YISJIkxrXFxdvtlnFJW+Yiy+MnecrtIn/VAN7uQl6t618D+GpZ9md139cY/FlZ+tV6zmsMvlqW/Vnd9/8CAe3hZpCQX/4AAAAASUVORK5CYII="},W6us:function(Be,ee){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAAAXNSR0IArs4c6QAAAv9JREFUSA2dVV1IVEEU/s7sqkuiUAahgREkQVjmS0FEBRWELz1Yj5ZSJBEaVm8RBOFbQSZIQUU9hFT4EqRuBdIP0oOia5lIZBRZoBWYy+a6O3M6s3DxXrurez1wOeee+b7zzZ05dwYIaD0x3dk9rNsD0hAOSgBjDwHTQXmBhZgwB7A8wcwjFI1xYYiw7sA2mshWJqRUHSkkso3b/LMPXJHOw9eaCko6OOUE1muY1pQx490xPuLOO3HZLV7b8BJz9X1QNnbybt8zok/plBlHwlxw5z1CIajbIMwQm87no1xugZeZVVkbN5S28YD5i2mTxmDmkdjm1t/geoux2O5hrpY9vCnhJOWrBzbnmOyr12T5Kg3M8UixunSyF8WJeXQxY7cX5X0jwmvZu9rH+5CeZXMxn1TH4uX/T8gpsfkOF83E0S8zrHRyS3rCu5Iwdo2eobgfzrN0bsCfWVzLWcQSGVt/p4WTxXy/aEM7b0wafBRyKAvPP03QBQoVX5ro82JA+MUYl+h5bKIwkge3IEZELCK1gUVsZZlYhgtcZWmQ6Ai2y5fk6VUYU6mkeaVZv02n9FDviD5m8TJYbf1KzOFGY6bFsB60tSmhn4SJ1HnA7JTZJCMR9TRTnFGyEhE315B6KHUjIhxWpPrCh6qoVwD2WTDCLxFemVmuWE0VfRPX6hTx7TrRGHIAQX02rq+QdE6XbJQOKmI5Ga4P0VfIticx7vrgl0xZjl9rW5KvkB1Yk4dzMsP3Ns7JBFtcBGksf8sqZI+Swnzsl3PsjT91IWsxFjt+gmYXst4oq5CFfTpNU43N2BtSaJBig16q/G+Ss2MWY7GLx93v0ua5W+YOSiFzfUAutu+N9DNXdk5C5R28Op1GnRQtcBc2QFwV4L4ILnnjWo7nKncXccc6jcPGoM2dc2Kex4TEUec9m8/pi44+4lD/FHbInxVxF9KM+I+zGLAHsTvvF+ck5BBLr3OL3KRNcjyxNMGVyWa654wt53NaOqeIzColcVL+L1nJTOwMLev/AaJkF76u7DFoAAAAAElFTkSuQmCC"},WPnJ:function(Be,ee,v){Be.exports={"sort-list-panel":"sort-list-panel___3NFo7","sort-list-tip":"sort-list-tip___1C7gJ","ant-drawer-content":"ant-drawer-content___z72s9","dragging-li":"dragging-li___2fI-b","task-list-container":"task-list-container___O3FkA",imgradius:"imgradius___2naxh",directionItemWrap:"directionItemWrap___12VCj",groupActionWrap:"groupActionWrap___3JLr9",teamHeight:"teamHeight___1JFgn",divHeight:"divHeight___3DCc8"}},WaYH:function(Be,ee,v){"use strict";var Z=v("rePB"),Q=v("Ff2n"),I=v("VTBJ"),k=v("1OyB"),_=v("vuIU"),O=v("JX7q"),M=v("Ji7U"),T=v("LK+K"),n=v("q1tI"),p=v("TSYQ"),a=v.n(p),t=v("sboe"),A=v("OZM5"),l=function(P){var C=P.prefixCls,b=P.level,s=P.isStart,h=P.isEnd;if(!b)return null;for(var m="".concat(C,"-indent-unit"),x=[],g=0;g<b;g+=1){var y;x.push(n.createElement("span",{key:g,className:a()(m,(y={},Object(Z.a)(y,"".concat(m,"-start"),s[g+1]),Object(Z.a)(y,"".concat(m,"-end"),h[g+1]),Object(Z.a)(y,"".concat(m,"-end-first-level"),!g&&h[0]),y))}))}return n.createElement("span",{"aria-hidden":"true",className:"".concat(C,"-indent")},x)},i=l,c=v("815F"),d="open",f="close",o="---",u=function(w){Object(M.a)(C,w);var P=Object(T.a)(C);function C(){var b;return Object(k.a)(this,C),b=P.apply(this,arguments),b.state={dragNodeHighlight:!1},b.onSelectorClick=function(s){var h=b.props.context.onNodeClick;h(s,Object(c.b)(b.props)),b.isSelectable()?b.onSelect(s):b.onCheck(s)},b.onSelectorDoubleClick=function(s){var h=b.props.context.onNodeDoubleClick;h(s,Object(c.b)(b.props))},b.onSelect=function(s){if(b.isDisabled())return;var h=b.props.context.onNodeSelect;s.preventDefault(),h(s,Object(c.b)(b.props))},b.onCheck=function(s){if(b.isDisabled())return;var h=b.props,m=h.disableCheckbox,x=h.checked,g=b.props.context.onNodeCheck;if(!b.isCheckable()||m)return;s.preventDefault();var y=!x;g(s,Object(c.b)(b.props),y)},b.onMouseEnter=function(s){var h=b.props.context.onNodeMouseEnter;h(s,Object(c.b)(b.props))},b.onMouseLeave=function(s){var h=b.props.context.onNodeMouseLeave;h(s,Object(c.b)(b.props))},b.onContextMenu=function(s){var h=b.props.context.onNodeContextMenu;h(s,Object(c.b)(b.props))},b.onDragStart=function(s){var h=b.props.context.onNodeDragStart;s.stopPropagation(),b.setState({dragNodeHighlight:!0}),h(s,Object(O.a)(b));try{s.dataTransfer.setData("text/plain","")}catch(m){}},b.onDragEnter=function(s){var h=b.props.context.onNodeDragEnter;s.preventDefault(),s.stopPropagation(),h(s,Object(O.a)(b))},b.onDragOver=function(s){var h=b.props.context.onNodeDragOver;s.preventDefault(),s.stopPropagation(),h(s,Object(O.a)(b))},b.onDragLeave=function(s){var h=b.props.context.onNodeDragLeave;s.stopPropagation(),h(s,Object(O.a)(b))},b.onDragEnd=function(s){var h=b.props.context.onNodeDragEnd;s.stopPropagation(),b.setState({dragNodeHighlight:!1}),h(s,Object(O.a)(b))},b.onDrop=function(s){var h=b.props.context.onNodeDrop;s.preventDefault(),s.stopPropagation(),b.setState({dragNodeHighlight:!1}),h(s,Object(O.a)(b))},b.onExpand=function(s){var h=b.props.context.onNodeExpand;h(s,Object(c.b)(b.props))},b.setSelectHandle=function(s){b.selectHandle=s},b.getNodeState=function(){var s=b.props.expanded;return b.isLeaf()?null:s?d:f},b.hasChildren=function(){var s=b.props.eventKey,h=b.props.context.keyEntities,m=h[s]||{},x=m.children;return!!(x||[]).length},b.isLeaf=function(){var s=b.props,h=s.isLeaf,m=s.loaded,x=b.props.context.loadData,g=b.hasChildren();return h===!1?!1:h||!x&&!g||x&&m&&!g},b.isDisabled=function(){var s=b.props.disabled,h=b.props.context.disabled;return!!(h||s)},b.isCheckable=function(){var s=b.props.checkable,h=b.props.context.checkable;return!h||s===!1?!1:h},b.syncLoadData=function(s){var h=s.expanded,m=s.loading,x=s.loaded,g=b.props.context,y=g.loadData,U=g.onNodeLoad;if(m)return;y&&h&&!b.isLeaf()&&(!b.hasChildren()&&!x&&U(Object(c.b)(b.props)))},b.renderSwitcher=function(){var s=b.props,h=s.expanded,m=s.switcherIcon,x=b.props.context,g=x.prefixCls,y=x.switcherIcon,U=m||y;if(b.isLeaf())return n.createElement("span",{className:a()("".concat(g,"-switcher"),"".concat(g,"-switcher-noop"))},typeof U=="function"?U(Object(I.a)(Object(I.a)({},b.props),{},{isLeaf:!0})):U);var N=a()("".concat(g,"-switcher"),"".concat(g,"-switcher_").concat(h?d:f));return n.createElement("span",{onClick:b.onExpand,className:N},typeof U=="function"?U(Object(I.a)(Object(I.a)({},b.props),{},{isLeaf:!1})):U)},b.renderCheckbox=function(){var s=b.props,h=s.checked,m=s.halfChecked,x=s.disableCheckbox,g=b.props.context.prefixCls,y=b.isDisabled(),U=b.isCheckable();if(!U)return null;var N=typeof U!="boolean"?U:null;return n.createElement("span",{className:a()("".concat(g,"-checkbox"),h&&"".concat(g,"-checkbox-checked"),!h&&m&&"".concat(g,"-checkbox-indeterminate"),(y||x)&&"".concat(g,"-checkbox-disabled")),onClick:b.onCheck},N)},b.renderIcon=function(){var s=b.props.loading,h=b.props.context.prefixCls;return n.createElement("span",{className:a()("".concat(h,"-iconEle"),"".concat(h,"-icon__").concat(b.getNodeState()||"docu"),s&&"".concat(h,"-icon_loading"))})},b.renderSelector=function(){var s=b.state.dragNodeHighlight,h=b.props,m=h.title,x=h.selected,g=h.icon,y=h.loading,U=h.data,N=b.props.context,S=N.prefixCls,H=N.showIcon,F=N.icon,B=N.draggable,z=N.loadData,K=N.titleRender,$=b.isDisabled(),te="".concat(S,"-node-content-wrapper"),fe;if(H){var Ae=g||F;fe=Ae?n.createElement("span",{className:a()("".concat(S,"-iconEle"),"".concat(S,"-icon__customize"))},typeof Ae=="function"?Ae(b.props):Ae):b.renderIcon()}else z&&y&&(fe=b.renderIcon());var ce;typeof m=="function"?ce=m(U):K?ce=K(U):ce=m;var ie=n.createElement("span",{className:"".concat(S,"-title")},ce);return n.createElement("span",{ref:b.setSelectHandle,title:typeof m=="string"?m:"",className:a()("".concat(te),"".concat(te,"-").concat(b.getNodeState()||"normal"),!$&&(x||s)&&"".concat(S,"-node-selected"),!$&&B&&"draggable"),draggable:!$&&B||void 0,"aria-grabbed":!$&&B||void 0,onMouseEnter:b.onMouseEnter,onMouseLeave:b.onMouseLeave,onContextMenu:b.onContextMenu,onClick:b.onSelectorClick,onDoubleClick:b.onSelectorDoubleClick,onDragStart:B?b.onDragStart:void 0},fe,ie)},b}return Object(_.a)(C,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var s=this.props.selectable,h=this.props.context.selectable;return typeof s=="boolean"?s:h}},{key:"render",value:function(){var s,h=this.props,m=h.eventKey,x=h.className,g=h.style,y=h.dragOver,U=h.dragOverGapTop,N=h.dragOverGapBottom,S=h.isLeaf,H=h.isStart,F=h.isEnd,B=h.expanded,z=h.selected,K=h.checked,$=h.halfChecked,te=h.loading,fe=h.domRef,Ae=h.active,ce=h.onMouseMove,ie=Object(Q.a)(h,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),ye=this.props.context,le=ye.prefixCls,me=ye.filterTreeNode,se=ye.draggable,ge=ye.keyEntities,ae=this.isDisabled(),pe=Object(A.f)(ie),Me=ge[m]||{},xe=Me.level,Ke=F[F.length-1];return n.createElement("div",Object.assign({ref:fe,className:a()(x,"".concat(le,"-treenode"),(s={},Object(Z.a)(s,"".concat(le,"-treenode-disabled"),ae),Object(Z.a)(s,"".concat(le,"-treenode-switcher-").concat(B?"open":"close"),!S),Object(Z.a)(s,"".concat(le,"-treenode-checkbox-checked"),K),Object(Z.a)(s,"".concat(le,"-treenode-checkbox-indeterminate"),$),Object(Z.a)(s,"".concat(le,"-treenode-selected"),z),Object(Z.a)(s,"".concat(le,"-treenode-loading"),te),Object(Z.a)(s,"".concat(le,"-treenode-active"),Ae),Object(Z.a)(s,"".concat(le,"-treenode-leaf-last"),Ke),Object(Z.a)(s,"drag-over",!ae&&y),Object(Z.a)(s,"drag-over-gap-top",!ae&&U),Object(Z.a)(s,"drag-over-gap-bottom",!ae&&N),Object(Z.a)(s,"filter-node",me&&me(Object(c.b)(this.props))),s)),style:g,onDragEnter:se?this.onDragEnter:void 0,onDragOver:se?this.onDragOver:void 0,onDragLeave:se?this.onDragLeave:void 0,onDrop:se?this.onDrop:void 0,onDragEnd:se?this.onDragEnd:void 0,onMouseMove:ce},pe),n.createElement(i,{prefixCls:le,level:xe,isStart:H,isEnd:F}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),C}(n.Component),E=function(P){return n.createElement(t.a.Consumer,null,function(C){return n.createElement(u,Object.assign({},P,{context:C}))})};E.displayName="TreeNode",E.defaultProps={title:o},E.isTreeNode=1;var R=ee.a=E},Xmg4:function(Be,ee,v){var Z=v("bYtY"),Q=v("LPTA"),I=Q.devicePixelRatio,k=v("K2GJ"),_=v("3C/r");function O(){return!1}function M(p,a,t){var A=Z.createCanvas(),l=a.getWidth(),i=a.getHeight(),c=A.style;return c&&(c.position="absolute",c.left=0,c.top=0,c.width=l+"px",c.height=i+"px",A.setAttribute("data-zr-dom-id",p)),A.width=l*t,A.height=i*t,A}var T=function(p,a,t){var A;t=t||I,typeof p=="string"?A=M(p,a,t):Z.isObject(p)&&(A=p,p=A.id),this.id=p,this.dom=A;var l=A.style;l&&(A.onselectstart=O,l["-webkit-user-select"]="none",l["user-select"]="none",l["-webkit-touch-callout"]="none",l["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",l.padding=0,l.margin=0,l["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=a,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=t};T.prototype={constructor:T,__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 p=this.dpr;this.domBack=M("back-"+this.id,this.painter,p),this.ctxBack=this.domBack.getContext("2d"),p!==1&&this.ctxBack.scale(p,p)},resize:function(p,a){var t=this.dpr,A=this.dom,l=A.style,i=this.domBack;l&&(l.width=p+"px",l.height=a+"px"),A.width=p*t,A.height=a*t,i&&(i.width=p*t,i.height=a*t,t!==1&&this.ctxBack.scale(t,t))},clear:function(p,a){var t=this.dom,A=this.ctx,l=t.width,i=t.height,a=a||this.clearColor,c=this.motionBlur&&!p,d=this.lastFrameAlpha,f=this.dpr;if(c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(t,0,0,l/f,i/f)),A.clearRect(0,0,l,i),a&&a!=="transparent"){var o;a.colorStops?(o=a.__canvasGradient||k.getGradient(A,a,{x:0,y:0,width:l,height:i}),a.__canvasGradient=o):a.image&&(o=_.prototype.getCanvasPattern.call(a,A)),A.save(),A.fillStyle=o||a,A.fillRect(0,0,l,i),A.restore()}if(c){var u=this.domBack;A.save(),A.globalAlpha=d,A.drawImage(u,0,0,l,i),A.restore()}}};var n=T;Be.exports=n},Xnb7:function(Be,ee,v){var Z=v("1RvN"),Q=new Z(50);function I(M){if(typeof M=="string"){var T=Q.get(M);return T&&T.image}else return M}function k(M,T,n,p,a){if(M)if(typeof M=="string"){if(T&&T.__zrImageSrc===M||!n)return T;var t=Q.get(M),A={hostEl:n,cb:p,cbPayload:a};return t?(T=t.image,!O(T)&&t.pending.push(A)):(T=new Image,T.onload=T.onerror=_,Q.put(M,T.__cachedImgObj={image:T,pending:[A]}),T.src=T.__zrImageSrc=M),T}else return M;else return T}function _(){var M=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var T=0;T<M.pending.length;T++){var n=M.pending[T],p=n.cb;p&&p(this,n.cbPayload),n.hostEl.dirty()}M.pending.length=0}function O(M){return M&&M.width&&M.height}ee.findExistImage=I,ee.createOrUpdateImage=k,ee.isImageReady=O},Xsq0:function(Be,ee,v){Be.exports=v.p+"static/mainbanner.0a951716.jpg"},XzQ7:function(Be,ee,v){Be.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(Be,ee,v){"use strict";v.r(ee),v.d(ee,"ResizableTextArea",function(){return $});var Z=v("wx14"),Q=v("1OyB"),I=v("vuIU"),k=v("Ji7U"),_=v("LK+K"),O=v("q1tI"),M=v("VTBJ"),T=v("rePB"),n=v("Zm9Q"),p=v("Kwbf"),a=v("c+Xe"),t=v("m+aA"),A=v("bdgK"),l=new Map;function i(Ae){Ae.forEach(function(ce){var ie,ye=ce.target;(ie=l.get(ye))===null||ie===void 0||ie.forEach(function(le){return le(ye)})})}var c=new A.default(i),d=null,f=null;function o(Ae,ce){l.has(Ae)||(l.set(Ae,new Set),c.observe(Ae)),l.get(Ae).add(ce)}function u(Ae,ce){l.has(Ae)&&(l.get(Ae).delete(ce),l.get(Ae).size||(c.unobserve(Ae),l.delete(Ae)))}var E=function(Ae){Object(k.a)(ie,Ae);var ce=Object(_.a)(ie);function ie(){return Object(Q.a)(this,ie),ce.apply(this,arguments)}return Object(I.a)(ie,[{key:"render",value:function(){return this.props.children}}]),ie}(O.Component),R=O.createContext(null);function w(Ae){var ce=Ae.children,ie=Ae.onBatchResize,ye=O.useRef(0),le=O.useRef([]),me=O.useContext(R),se=O.useCallback(function(ge,ae,pe){ye.current+=1;var Me=ye.current;le.current.push({size:ge,element:ae,data:pe}),Promise.resolve().then(function(){Me===ye.current&&(ie==null||ie(le.current),le.current=[])}),me==null||me(ge,ae,pe)},[ie,me]);return O.createElement(R.Provider,{value:se},ce)}function P(Ae){var ce=Ae.children,ie=Ae.disabled,ye=O.useRef(null),le=O.useRef(null),me=O.useContext(R),se=O.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),ge=O.isValidElement(ce)&&Object(a.c)(ce),ae=ge?ce.ref:null,pe=O.useMemo(function(){return Object(a.a)(ae,ye)},[ae,ye]),Me=O.useRef(Ae);Me.current=Ae;var xe=O.useCallback(function(Ke){var et=Me.current,he=et.onResize,Se=et.data,Ue=Ke.getBoundingClientRect(),Ne=Ue.width,ct=Ue.height,ft=Ke.offsetWidth,Ot=Ke.offsetHeight,dt=Math.floor(Ne),Ut=Math.floor(ct);if(se.current.width!==dt||se.current.height!==Ut||se.current.offsetWidth!==ft||se.current.offsetHeight!==Ot){var jt={width:dt,height:Ut,offsetWidth:ft,offsetHeight:Ot};se.current=jt;var ze=ft===Math.round(Ne)?Ne:ft,Ve=Ot===Math.round(ct)?ct:Ot,Et=Object(M.a)(Object(M.a)({},jt),{},{offsetWidth:ze,offsetHeight:Ve});me==null||me(Et,Ke,Se),he&&Promise.resolve().then(function(){he(Et,Ke)})}},[]);return O.useEffect(function(){var Ke=Object(t.a)(ye.current)||Object(t.a)(le.current);return Ke&&!ie&&o(Ke,xe),function(){return u(Ke,xe)}},[ye.current,ie]),O.createElement(E,{ref:le},ge?O.cloneElement(ce,{ref:pe}):ce)}var C="rc-observer-key";function b(Ae){var ce=Ae.children,ie=Object(n.a)(ce);return ie.map(function(ye,le){var me=(ye==null?void 0:ye.key)||"".concat(C,"-").concat(le);return O.createElement(P,Object(Z.a)({},Ae,{key:me}),ye)})}b.Collection=w;var s=b,h=v("bT9E"),m=v("TSYQ"),x=v.n(m),g=`
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
`,y=["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"],U={},N;function S(Ae){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ie=Ae.getAttribute("id")||Ae.getAttribute("data-reactid")||Ae.getAttribute("name");if(ce&&U[ie])return U[ie];var ye=window.getComputedStyle(Ae),le=ye.getPropertyValue("box-sizing")||ye.getPropertyValue("-moz-box-sizing")||ye.getPropertyValue("-webkit-box-sizing"),me=parseFloat(ye.getPropertyValue("padding-bottom"))+parseFloat(ye.getPropertyValue("padding-top")),se=parseFloat(ye.getPropertyValue("border-bottom-width"))+parseFloat(ye.getPropertyValue("border-top-width")),ge=y.map(function(pe){return"".concat(pe,":").concat(ye.getPropertyValue(pe))}).join(";"),ae={sizingStyle:ge,paddingSize:me,borderSize:se,boxSizing:le};return ce&&ie&&(U[ie]=ae),ae}function H(Ae){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;N||(N=document.createElement("textarea"),N.setAttribute("tab-index","-1"),N.setAttribute("aria-hidden","true"),document.body.appendChild(N)),Ae.getAttribute("wrap")?N.setAttribute("wrap",Ae.getAttribute("wrap")):N.removeAttribute("wrap");var le=S(Ae,ce),me=le.paddingSize,se=le.borderSize,ge=le.boxSizing,ae=le.sizingStyle;N.setAttribute("style","".concat(ae,";").concat(g)),N.value=Ae.value||Ae.placeholder||"";var pe=Number.MIN_SAFE_INTEGER,Me=Number.MAX_SAFE_INTEGER,xe=N.scrollHeight,Ke;if(ge==="border-box"?xe+=se:ge==="content-box"&&(xe-=me),ie!==null||ye!==null){N.value=" ";var et=N.scrollHeight-me;ie!==null&&(pe=et*ie,ge==="border-box"&&(pe=pe+me+se),xe=Math.max(pe,xe)),ye!==null&&(Me=et*ye,ge==="border-box"&&(Me=Me+me+se),Ke=xe>Me?"":"hidden",xe=Math.min(Me,xe))}return{height:xe,minHeight:pe,maxHeight:Me,overflowY:Ke,resize:"none"}}var F=v("Gytx"),B=v.n(F),z;(function(Ae){Ae[Ae.NONE=0]="NONE",Ae[Ae.RESIZING=1]="RESIZING",Ae[Ae.RESIZED=2]="RESIZED"})(z||(z={}));var K=function(Ae){Object(k.a)(ie,Ae);var ce=Object(_.a)(ie);function ie(ye){var le;return Object(Q.a)(this,ie),le=ce.call(this,ye),le.nextFrameActionId=void 0,le.resizeFrameId=void 0,le.textArea=void 0,le.saveTextArea=function(me){le.textArea=me},le.handleResize=function(me){var se=le.state.resizeStatus,ge=le.props,ae=ge.autoSize,pe=ge.onResize;if(se!==z.NONE)return;typeof pe=="function"&&pe(me),ae&&le.resizeOnNextFrame()},le.resizeOnNextFrame=function(){cancelAnimationFrame(le.nextFrameActionId),le.nextFrameActionId=requestAnimationFrame(le.resizeTextarea)},le.resizeTextarea=function(){var me=le.props.autoSize;if(!me||!le.textArea)return;var se=me.minRows,ge=me.maxRows,ae=H(le.textArea,!1,se,ge);le.setState({textareaStyles:ae,resizeStatus:z.RESIZING},function(){cancelAnimationFrame(le.resizeFrameId),le.resizeFrameId=requestAnimationFrame(function(){le.setState({resizeStatus:z.RESIZED},function(){le.resizeFrameId=requestAnimationFrame(function(){le.setState({resizeStatus:z.NONE}),le.fixFirefoxAutoScroll()})})})})},le.renderTextArea=function(){var me=le.props,se=me.prefixCls,ge=se===void 0?"rc-textarea":se,ae=me.autoSize,pe=me.onResize,Me=me.className,xe=me.disabled,Ke=le.state,et=Ke.textareaStyles,he=Ke.resizeStatus,Se=Object(h.a)(le.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Ue=x()(ge,Me,Object(T.a)({},"".concat(ge,"-disabled"),xe));"value"in Se&&(Se.value=Se.value||"");var Ne=Object(M.a)(Object(M.a)(Object(M.a)({},le.props.style),et),he===z.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return O.createElement(s,{onResize:le.handleResize,disabled:!(ae||pe)},O.createElement("textarea",Object(Z.a)({},Se,{className:Ue,style:Ne,ref:le.saveTextArea})))},le.state={textareaStyles:{},resizeStatus:z.NONE},le}return Object(I.a)(ie,[{key:"componentDidUpdate",value:function(le){(le.value!==this.props.value||!B()(le.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var le=this.textArea.selectionStart,me=this.textArea.selectionEnd;this.textArea.setSelectionRange(le,me)}}catch(se){}}},{key:"render",value:function(){return this.renderTextArea()}}]),ie}(O.Component),$=K,te=function(Ae){Object(k.a)(ie,Ae);var ce=Object(_.a)(ie);function ie(ye){var le;Object(Q.a)(this,ie),le=ce.call(this,ye),le.resizableTextArea=void 0,le.focus=function(){le.resizableTextArea.textArea.focus()},le.saveTextArea=function(se){le.resizableTextArea=se},le.handleChange=function(se){var ge=le.props.onChange;le.setValue(se.target.value,function(){le.resizableTextArea.resizeTextarea()}),ge&&ge(se)},le.handleKeyDown=function(se){var ge=le.props,ae=ge.onPressEnter,pe=ge.onKeyDown;se.keyCode===13&&ae&&ae(se),pe&&pe(se)};var me=typeof ye.value=="undefined"||ye.value===null?ye.defaultValue:ye.value;return le.state={value:me},le}return Object(I.a)(ie,[{key:"setValue",value:function(le,me){"value"in this.props||this.setState({value:le},me)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return O.createElement($,Object(Z.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(le){return"value"in le?{value:le.value}:null}}]),ie}(O.Component),fe=ee.default=te},YH21:function(Be,ee,v){var Z=v("H6uX");ee.Dispatcher=Z;var Q=v("ItGF"),I=v("Ze12"),k=I.isCanvasEl,_=I.transformCoordWithViewport,O=typeof window!="undefined"&&!!window.addEventListener,M=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,T=[];function n(f,o,u,E){return u=u||{},E||!Q.canvasSupported?p(f,o,u):Q.browser.firefox&&o.layerX!=null&&o.layerX!==o.offsetX?(u.zrX=o.layerX,u.zrY=o.layerY):o.offsetX!=null?(u.zrX=o.offsetX,u.zrY=o.offsetY):p(f,o,u),u}function p(f,o,u){if(Q.domSupported&&f.getBoundingClientRect){var E=o.clientX,R=o.clientY;if(k(f)){var w=f.getBoundingClientRect();u.zrX=E-w.left,u.zrY=R-w.top;return}else if(_(T,f,E,R)){u.zrX=T[0],u.zrY=T[1];return}}u.zrX=u.zrY=0}function a(f){return f||window.event}function t(f,o,u){if(o=a(o),o.zrX!=null)return o;var E=o.type,R=E&&E.indexOf("touch")>=0;if(!R)n(f,o,o,u),o.zrDelta=o.wheelDelta?o.wheelDelta/120:-(o.detail||0)/3;else{var w=E!=="touchend"?o.targetTouches[0]:o.changedTouches[0];w&&n(f,w,o,u)}var P=o.button;return o.which==null&&P!==void 0&&M.test(o.type)&&(o.which=P&1?1:P&2?3:P&4?2:0),o}function A(f,o,u,E){O?f.addEventListener(o,u,E):f.attachEvent("on"+o,u)}function l(f,o,u,E){O?f.removeEventListener(o,u,E):f.detachEvent("on"+o,u)}var i=O?function(f){f.preventDefault(),f.stopPropagation(),f.cancelBubble=!0}:function(f){f.returnValue=!1,f.cancelBubble=!0};function c(f){return f.which===2||f.which===3}function d(f){return f.which>1}ee.clientToLocal=n,ee.getNativeEvent=a,ee.normalizeEvent=t,ee.addEventListener=A,ee.removeEventListener=l,ee.stop=i,ee.isMiddleOrRightButtonOnMouseUpDown=c,ee.notLeftMouse=d},"Ye+n":function(Be,ee,v){Be.exports={advertisementModal:"advertisementModal___2ZrRs",bodyHeight:"bodyHeight___3x6vP"}},YgsL:function(Be,ee,v){var Z=v("QBsz"),Q=Z.distance;function I(_,O,M,T,n,p,a){var t=(M-_)*.5,A=(T-O)*.5;return(2*(O-M)+t+A)*a+(-3*(O-M)-2*t-A)*p+t*n+O}function k(_,O){for(var M=_.length,T=[],n=0,p=1;p<M;p++)n+=Q(_[p-1],_[p]);var a=n/2;a=a<M?M:a;for(var p=0;p<a;p++){var t=p/(a-1)*(O?M:M-1),A=Math.floor(t),l=t-A,i,c=_[A%M],d,f;O?(i=_[(A-1+M)%M],d=_[(A+1)%M],f=_[(A+2)%M]):(i=_[A===0?A:A-1],d=_[A>M-2?M-1:A+1],f=_[A>M-3?M-1:A+2]);var o=l*l,u=l*o;T.push([I(i[0],c[0],d[0],f[0],l,o,u),I(i[1],c[1],d[1],f[1],l,o,u)])}return T}Be.exports=k},ZKmM:function(Be,ee,v){Be.exports=v.p+"static/yc.30a3f185.svg"},ZW9T:function(Be,ee,v){"use strict";v.d(ee,"a",function(){return F});var Z=v("k1fw"),Q=v("oBTY"),I=v("miYZ"),k=v("tsqr"),_=v("rAM+"),O=v("tJVT"),M=v("PpiC"),T=v("q1tI"),n=v.n(T),p=v("bdgK"),a=v("9og8"),t=v("WmNS"),A=v.n(t),l={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},i={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},c={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"if",content:["if () {"," $0","}"].join(`
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"include <vector>",content:["#include <vector>"].join(`
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
`)},{label:"include <map>",content:["#include <map>"].join(`
`)},{label:"include <string>",content:["#include <string>"].join(`
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
`)}]},d={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
`)}]},f=v("5VLF"),o=v.n(f),u={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},E=function(z,K){return K.map(function($){return{label:$,kind:z.languages.CompletionItemKind.Keyword,insertText:$}})},R=function(z){return Object.keys(u.tables).map(function(K){return{label:K,kind:z.languages.CompletionItemKind.Variable,insertText:K}})},w=function(z,K){var $=u.tables[z];return $?$.map(function(te){return{label:te,kind:K.languages.CompletionItemKind.Field,insertText:te}}):[]};function P(B,z,K,$,te){var fe=z.getWordUntilPosition(K),Ae={startLineNumber:K.lineNumber,endLineNumber:K.lineNumber,startColumn:fe.startColumn,endColumn:fe.endColumn},ce=$.map(function(ie){return{label:ie,kind:B.languages.CompletionItemKind.Keyword,insertText:ie,insertTextRules:B.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ae}});return te.map(function(ie){ce.push(Object(Z.a)(Object(Z.a)({},ie),{},{range:Ae}))}),ce}var C=function(B){u.languages.map(function(te){return B.languages.registerDocumentFormattingEditProvider(te,{provideDocumentFormattingEdits:function(Ae,ce,ie){return Object(a.a)(A.a.mark(function ye(){var le;return A.a.wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return le=o()(Ae.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1}),se.abrupt("return",[{range:Ae.getFullModelRange(),text:le}]);case 2:case"end":return se.stop()}},ye)}))()}}),te});var z=c.quickKey.map(function(te){return{label:te.label,kind:B.languages.CompletionItemKind.Method,insertText:te.content,insertTextRules:B.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),K=d.quickKey.map(function(te){return{label:te.label,kind:B.languages.CompletionItemKind.Method,insertText:te.content,insertTextRules:B.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),$=i.quickKey.map(function(te){return{label:te.label,kind:B.languages.CompletionItemKind.Method,insertText:te.content,insertTextRules:B.languages.CompletionItemInsertTextRule.InsertAsSnippet}});B.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(fe,Ae){var ce=fe.getWordUntilPosition(Ae),ie={startLineNumber:Ae.lineNumber,endLineNumber:Ae.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn},ye=fe.getLineContent(Ae.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[].concat(Object(Q.a)(c.keywords.map(function(le){return{label:le,kind:B.languages.CompletionItemKind.Function,documentation:le,insertText:le,insertTextRules:B.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ie}})),Object(Q.a)(c.quickKey.map(function(le){return{label:le.label,kind:B.languages.CompletionItemKind.Function,documentation:le.content,insertText:ye.startsWith("#")?le.content.replace(/#/,""):le.content,insertTextRules:B.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ie}})))}}}),B.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(fe,Ae){var ce=fe.getWordUntilPosition(Ae),ie={startLineNumber:Ae.lineNumber,endLineNumber:Ae.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn};return{suggestions:Object(Q.a)(l.keywords.map(function(ye){return{label:ye,kind:B.languages.CompletionItemKind.Function,documentation:ye,insertText:ye,insertTextRules:B.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ie}}))}}}),B.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(fe,Ae){var ce=fe.getWordUntilPosition(Ae),ie={startLineNumber:Ae.lineNumber,endLineNumber:Ae.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn},ye=fe.getLineContent(Ae.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[].concat(Object(Q.a)(i.keywords.map(function(le){return{label:le,kind:B.languages.CompletionItemKind.Function,documentation:le,insertText:le,insertTextRules:B.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ie}})),Object(Q.a)(i.quickKey.map(function(le){return{label:le.label,kind:B.languages.CompletionItemKind.Function,documentation:le.content,insertText:ye.startsWith("#")?le.content.replace(/#/,""):le.content,insertTextRules:B.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ie}})))}}}),B.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(fe,Ae){var ce=fe.getWordUntilPosition(Ae),ie={startLineNumber:Ae.lineNumber,endLineNumber:Ae.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn},ye=fe.getLineContent(Ae.lineNumber).substring(ce.startColumn-2,ce.endColumn);return{suggestions:[].concat(Object(Q.a)(d.keywords.map(function(le){return{label:le,kind:B.languages.CompletionItemKind.Function,documentation:le,insertText:le,insertTextRules:B.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ie}})),Object(Q.a)(d.quickKey.map(function(le){return{label:le.label,kind:B.languages.CompletionItemKind.Function,documentation:le.content,insertText:ye.startsWith("#")?le.content.replace(/#/,""):le.content,insertTextRules:B.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ie}})))}}})},b="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",s=v("fjLI"),h=v("LvDl"),m=v("+ua5");function x(B){return/^\d+$/.test(B)?"".concat(B,"px"):B}function g(){}var y=!1,U={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function N(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],z=B;if(Array.isArray(B)){for(var K=0;K<B.length;K++){var $=U[B[K]];if($)return $}return z[0]}return U[z]||z}var S=null,H=ee.b=function(B){var z=B.width,K=z===void 0?"100%":z,$=B.height,te=$===void 0?"100%":$,fe=B.value,Ae=B.language,ce=Ae===void 0?"javascript":Ae,ie=B.style,ye=ie===void 0?{}:ie,le=B.options,me=le===void 0?{}:le,se=B.overrideServices,ge=se===void 0?{}:se,ae=B.theme,pe=ae===void 0?"vs-dark":ae,Me=B.onEditBlur,xe=B.onSave,Ke=B.autoHeight,et=Ke===void 0?!1:Ke,he=B.forbidCopy,Se=he===void 0?!1:he,Ue=B.onChange,Ne=Ue===void 0?g:Ue,ct=B.editorDidMount,ft=ct===void 0?g:ct,Ot=B.onFocus,dt=Ot===void 0?g:Ot,Ut=B.filename,jt=Ut===void 0?"educoder.txt":Ut,ze=B.errorLine,Ve=B.errorContent,Et=Ve===void 0?"":Ve,Rt=Object(M.a)(B,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename","errorLine","errorContent"]),ut=Object(T.useRef)(),vt=Object(T.useRef)({}),Ze=Object(T.useRef)(),ke=Object(T.useRef)(),He=Object(T.useRef)(!1),we=Object(T.useRef)(),Le=Object(T.useState)(!1),Pe=Object(O.a)(Le,2),We=Pe[0],Xe=Pe[1];function gt(){var kt;return ut.current&&(kt=new p.default(function(fn){var mn=Object(_.a)(fn),Tr;try{for(mn.s();!(Tr=mn.n()).done;){var Mr=Tr.value;(Mr.target.offsetHeight>0||Mr.target.offsetWidth>0)&&vt.current.instance.layout()}}catch(kr){mn.e(kr)}finally{mn.f()}}),kt.observe(ut.current)),kt}function Lt(){k.b.warn(decodeURIComponent(b))}var en=function(){var fn=vt.current.instance;if(fe!=null&&fn&&We){var mn=fn.getModel();mn&&fe!==mn.getValue()&&(y=!0,mn.setValue(fe),fn.layout(),y=!1)}};Object(T.useEffect)(function(){ke.current&&clearTimeout(ke.current),ke.current=setTimeout(function(){en()},500)},[fe,We,vt.current]),Object(T.useEffect)(function(){if(ze&&vt.current&&vt.current.instance){var kt=vt.current.instance;kt.changeViewZones(function(mn){var Tr=document.createElement("div");Tr.style.padding="10px 20px",Tr.style.width="calc(100% - 20px)",Tr.className="my-error-line-wrp",Tr.innerHTML=Et,mn.addZone({afterLineNumber:ze||11,heightInLines:3,domNode:Tr})});var fn={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};kt.addOverlayWidget(fn),kt.revealPositionInCenter({lineNumber:20,column:1})}},[ze,vt.current,We]);function Zt(){var kt=vt.current.instance;if(kt){var fn=kt.getSelection(),mn=vt.current.pastePos||{},Tr=new S.Range(mn.startLineNumber||fn.endLineNumber,mn.startColumn||fn.endColumn,mn.endLineNumber||fn.endLineNumber,mn.endColumn||fn.endColumn);setTimeout(function(){kt.executeEdits("",[{range:Tr,text:""}])},300)}}function xt(kt){(window.navigator.platform.match("Mac")?kt.metaKey:kt.ctrlKey)&&kt.keyCode==83&&(kt.preventDefault(),xe())}var Ct=function(){if(et&&vt.current.instance){var fn=vt.current.instance.getContentHeight();_t(fn<te?te:fn)}else _t(te)};function mt(kt){var fn=document.createEvent("MouseEvents");fn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),kt.dispatchEvent(fn)}function Je(kt,fn){var mn=window.URL||window.webkitURL||window,Tr=new Blob([fn]),Mr=document.createElementNS("http://www.w3.org/1999/xhtml","a");Mr.href=mn.createObjectURL(Tr),Mr.download=kt,mt(Mr)}Object(T.useEffect)(function(){Ct()},[Ct]),Object(T.useEffect)(function(){ut.current&&!We&&Promise.all([v.e(16),v.e(28)]).then(v.t.bind(null,"M/lh",7)).then(function(kt){try{S=kt,vt.current.instance=S.editor.create(ut.current,{value:fe,language:N(ce),theme:pe,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},ge);var fn=vt.current.instance,mn=s.d._menuItems,Tr=Object(Q.a)(mn).find(function(Xr){return Xr[0]._debugName=="EditorContext"}),Mr=Tr[1],kr=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Un=function(aa,Kr){var _a=aa._first;do{var di,Ei,_e=Kr.includes((di=_a.element)===null||di===void 0||((Ei=di.command)===null||Ei===void 0)?void 0:Ei.id);_e&&aa._remove(_a)}while(_a=_a.next)};if(ft(fn,S),setTimeout(function(){Ct(),vt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){Je(jt||"educoder.txt",fn.getValue())}}),fn.getDomNode().addEventListener("input",function(){Ze.current.autoFormat&&fn.getAction("editor.action.formatDocument").run()})},500),vt.current.subscription=fn.onDidChangeModelContent(function(Xr){He.current?clearTimeout(we.current):(Ct(),Ne(fn.getValue(),Xr)),we.current=setTimeout(function(){He.current=!1},500)}),window.Monaco||C(S,N(ce)),Se&&(Un(Mr,kr),ut.current.classList.add("noCopyPaste"),fn.onKeyDown(function(Xr){var aa=Xr.keyCode,Kr=Xr.ctrlKey,_a=Xr.metaKey;(aa===33||aa===52)&&(_a||Kr)&&(Lt(),Xr.preventDefault())})),window.Monaco=S,Me&&fn.onDidBlurEditorWidget(function(){Me(fn.getValue())}),dt&&fn.onDidFocusEditorText(function(){dt(fn.getValue())}),Se){fn.addCommand(S.KeyMod.CtrlCmd|S.KeyCode.KEY_V,function(){return Lt(),null}),fn.onDidPaste(function(Xr){vt.current.pastePos=Xr});try{window.addEventListener("paste",Zt)}catch(Xr){}}var Ra=gt();return Xe(!0),function(){var Xr=vt.current.instance;Xr.dispose();var aa=Xr.getModel();aa&&aa.dispose(),vt.current.subscription&&vt.current.subscription.dispose(),Se&&window.removeEventListener("paste",Zt),Ra.unobserve(ut.current)}}catch(Xr){}})},[]),Object(T.useEffect)(function(){var kt=vt.current.instance;if(kt&&We)return document.addEventListener("keydown",xt,!1),function(){document.removeEventListener("keydown",xt)}},[xe,We]),Object(T.useEffect)(function(){var kt=vt.current.instance;if(kt&&We){var fn=N(ce);S.editor.setModelLanguage(kt.getModel(),fn),console.log("language:",ce,kt.getModel(),fn)}},[ce,We]),Object(T.useEffect)(function(){var kt=vt.current.instance;kt&&We&&S.editor.setTheme(pe)},[pe,We]),Object(T.useEffect)(function(){var kt=vt.current.instance;Ze.current=me,kt&&We&&(kt.updateOptions(Object(Z.a)({},me)),setTimeout(function(){kt.getModel().updateOptions(Object(Z.a)({},me))},200))},[JSON.stringify(me),We]),Object(T.useEffect)(function(){var kt=vt.current.instance;kt&&We&&kt.layout()},[K,te,We]);var Qe=Object(T.useState)(x(K)),Oe=Object(O.a)(Qe,2),je=Oe[0],St=Oe[1],bt=Object(T.useState)(x(te)),Dt=Object(O.a)(bt,2),Qt=Dt[0],_t=Dt[1],Gt=Object(Z.a)(Object(Z.a)({},ye),{},{width:je,height:Qt});return n.a.createElement("div",{className:"my-monaco-editor",ref:ut,style:Gt})};function F(B){var z=B.width,K=z===void 0?"100%":z,$=B.height,te=$===void 0?"100%":$,fe=B.original,Ae=B.modified,ce=B.language,ie=B.options,ye=ie===void 0?{}:ie,le=Object(T.useRef)(),me=Object(T.useState)(null),se=Object(O.a)(me,2),ge=se[0],ae=se[1];function pe(et){var he;return le.current&&(he=new p.default(function(Se){var Ue=Object(_.a)(Se),Ne;try{for(Ue.s();!(Ne=Ue.n()).done;){var ct=Ne.value;(ct.target.offsetHeight>0||ct.target.offsetWidth>0)&&et.layout()}}catch(ft){Ue.e(ft)}finally{Ue.f()}}),he.observe(le.current)),he}Object(T.useEffect)(function(){le.current&&Promise.all([v.e(16),v.e(28)]).then(v.t.bind(null,"M/lh",7)).then(function(et){S=et;var he=S.editor.createDiffEditor(le.current,Object(Z.a)(Object(Z.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},ye),{},{wordWrap:!0}));ae(he);var Se=pe(he);return function(){he.dispose();var Ue=he.getModel();Ue&&Ue.dispose(),Se.unobserve(le.current)}})},[]),Object(T.useEffect)(function(){ge&&ge.setModel({original:S.editor.createModel(fe,ce),modified:S.editor.createModel(Ae,ce)})},[fe,Ae,ce,ge]);var Me=x(K),xe=x(te),Ke={width:Me,height:xe};return n.a.createElement("div",{className:"my-diff-editor",ref:le,style:Ke})}},Ze12:function(Be,ee,v){var Z=v("ItGF"),Q=v("hOwI"),I=Q.buildTransformer,k="___zrEVENTSAVED",_=[];function O(a,t,A,l,i){return M(_,t,l,i,!0)&&M(a,A,_[0],_[1])}function M(a,t,A,l,i){if(t.getBoundingClientRect&&Z.domSupported&&!p(t)){var c=t[k]||(t[k]={}),d=T(t,c),f=n(d,c,i);if(f)return f(a,A,l),!0}return!1}function T(a,t){var A=t.markers;if(A)return A;A=t.markers=[];for(var l=["left","right"],i=["top","bottom"],c=0;c<4;c++){var d=document.createElement("div"),f=d.style,o=c%2,u=(c>>1)%2;f.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",l[o]+":0",i[u]+":0",l[1-o]+":auto",i[1-u]+":auto",""].join("!important;"),a.appendChild(d),A.push(d)}return A}function n(a,t,A){for(var l=A?"invTrans":"trans",i=t[l],c=t.srcCoords,d=!0,f=[],o=[],u=0;u<4;u++){var E=a[u].getBoundingClientRect(),R=2*u,w=E.left,P=E.top;f.push(w,P),d=d&&c&&w===c[R]&&P===c[R+1],o.push(a[u].offsetLeft,a[u].offsetTop)}return d&&i?i:(t.srcCoords=f,t[l]=A?I(o,f):I(f,o))}function p(a){return a.nodeName.toUpperCase()==="CANVAS"}ee.transformLocalCoord=O,ee.transformCoordWithViewport=M,ee.isCanvasEl=p},ZpRC:function(Be,ee,v){"use strict";function Z(a){return typeof a=="object"&&a!=null&&a.nodeType===1}function Q(a,t){return(!t||a!=="hidden")&&a!=="visible"&&a!=="clip"}function I(a,t){if(a.clientHeight<a.scrollHeight||a.clientWidth<a.scrollWidth){var A=getComputedStyle(a,null);return Q(A.overflowY,t)||Q(A.overflowX,t)||function(l){var i=function(c){if(!c.ownerDocument||!c.ownerDocument.defaultView)return null;try{return c.ownerDocument.defaultView.frameElement}catch(d){return null}}(l);return!!i&&(i.clientHeight<l.scrollHeight||i.clientWidth<l.scrollWidth)}(a)}return!1}function k(a,t,A,l,i,c,d,f){return c<a&&d>t||c>a&&d<t?0:c<=a&&f<=A||d>=t&&f>=A?c-a-l:d>t&&f<A||c<a&&f>A?d-t+i:0}var _=function(a,t){var A=window,l=t.scrollMode,i=t.block,c=t.inline,d=t.boundary,f=t.skipOverflowHiddenElements,o=typeof d=="function"?d:function(et){return et!==d};if(!Z(a))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,E=[],R=a;Z(R)&&o(R);){if((R=R.parentElement)===u){E.push(R);break}R!=null&&R===document.body&&I(R)&&!I(document.documentElement)||R!=null&&I(R,f)&&E.push(R)}for(var w=A.visualViewport?A.visualViewport.width:innerWidth,P=A.visualViewport?A.visualViewport.height:innerHeight,C=window.scrollX||pageXOffset,b=window.scrollY||pageYOffset,s=a.getBoundingClientRect(),h=s.height,m=s.width,x=s.top,g=s.right,y=s.bottom,U=s.left,N=i==="start"||i==="nearest"?x:i==="end"?y:x+h/2,S=c==="center"?U+m/2:c==="end"?g:U,H=[],F=0;F<E.length;F++){var B=E[F],z=B.getBoundingClientRect(),K=z.height,$=z.width,te=z.top,fe=z.right,Ae=z.bottom,ce=z.left;if(l==="if-needed"&&x>=0&&U>=0&&y<=P&&g<=w&&x>=te&&y<=Ae&&U>=ce&&g<=fe)return H;var ie=getComputedStyle(B),ye=parseInt(ie.borderLeftWidth,10),le=parseInt(ie.borderTopWidth,10),me=parseInt(ie.borderRightWidth,10),se=parseInt(ie.borderBottomWidth,10),ge=0,ae=0,pe="offsetWidth"in B?B.offsetWidth-B.clientWidth-ye-me:0,Me="offsetHeight"in B?B.offsetHeight-B.clientHeight-le-se:0;if(u===B)ge=i==="start"?N:i==="end"?N-P:i==="nearest"?k(b,b+P,P,le,se,b+N,b+N+h,h):N-P/2,ae=c==="start"?S:c==="center"?S-w/2:c==="end"?S-w:k(C,C+w,w,ye,me,C+S,C+S+m,m),ge=Math.max(0,ge+b),ae=Math.max(0,ae+C);else{ge=i==="start"?N-te-le:i==="end"?N-Ae+se+Me:i==="nearest"?k(te,Ae,K,le,se+Me,N,N+h,h):N-(te+K/2)+Me/2,ae=c==="start"?S-ce-ye:c==="center"?S-(ce+$/2)+pe/2:c==="end"?S-fe+me+pe:k(ce,fe,$,ye,me+pe,S,S+m,m);var xe=B.scrollLeft,Ke=B.scrollTop;N+=Ke-(ge=Math.max(0,Math.min(Ke+ge,B.scrollHeight-K+Me))),S+=xe-(ae=Math.max(0,Math.min(xe+ae,B.scrollWidth-$+pe)))}H.push({el:B,top:ge,left:ae})}return H};function O(a){return a===Object(a)&&Object.keys(a).length!==0}function M(a,t){t===void 0&&(t="auto");var A="scrollBehavior"in document.body.style;a.forEach(function(l){var i=l.el,c=l.top,d=l.left;i.scroll&&A?i.scroll({top:c,left:d,behavior:t}):(i.scrollTop=c,i.scrollLeft=d)})}function T(a){return a===!1?{block:"end",inline:"nearest"}:O(a)?a:{block:"start",inline:"nearest"}}function n(a,t){var A=!a.ownerDocument.documentElement.contains(a);if(O(t)&&typeof t.behavior=="function")return t.behavior(A?[]:_(a,t));if(A)return;var l=T(t);return M(_(a,l),l.behavior)}var p=ee.a=n},Zss7:function(Be,ee,v){var Z;(function(Q){var I=/^\s+/,k=/\s+$/,_=0,O=Q.round,M=Q.min,T=Q.max,n=Q.random;function p(se,ge){if(se=se||"",ge=ge||{},se instanceof p)return se;if(!(this instanceof p))return new p(se,ge);var ae=a(se);this._originalInput=se,this._r=ae.r,this._g=ae.g,this._b=ae.b,this._a=ae.a,this._roundA=O(100*this._a)/100,this._format=ge.format||ae.format,this._gradientType=ge.gradientType,this._r<1&&(this._r=O(this._r)),this._g<1&&(this._g=O(this._g)),this._b<1&&(this._b=O(this._b)),this._ok=ae.ok,this._tc_id=_++}p.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var se=this.toRgb();return(se.r*299+se.g*587+se.b*114)/1e3},getLuminance:function(){var se=this.toRgb(),ge,ae,pe,Me,xe,Ke;return ge=se.r/255,ae=se.g/255,pe=se.b/255,ge<=.03928?Me=ge/12.92:Me=Q.pow((ge+.055)/1.055,2.4),ae<=.03928?xe=ae/12.92:xe=Q.pow((ae+.055)/1.055,2.4),pe<=.03928?Ke=pe/12.92:Ke=Q.pow((pe+.055)/1.055,2.4),.2126*Me+.7152*xe+.0722*Ke},setAlpha:function(se){return this._a=H(se),this._roundA=O(100*this._a)/100,this},toHsv:function(){var se=i(this._r,this._g,this._b);return{h:se.h*360,s:se.s,v:se.v,a:this._a}},toHsvString:function(){var se=i(this._r,this._g,this._b),ge=O(se.h*360),ae=O(se.s*100),pe=O(se.v*100);return this._a==1?"hsv("+ge+", "+ae+"%, "+pe+"%)":"hsva("+ge+", "+ae+"%, "+pe+"%, "+this._roundA+")"},toHsl:function(){var se=A(this._r,this._g,this._b);return{h:se.h*360,s:se.s,l:se.l,a:this._a}},toHslString:function(){var se=A(this._r,this._g,this._b),ge=O(se.h*360),ae=O(se.s*100),pe=O(se.l*100);return this._a==1?"hsl("+ge+", "+ae+"%, "+pe+"%)":"hsla("+ge+", "+ae+"%, "+pe+"%, "+this._roundA+")"},toHex:function(se){return d(this._r,this._g,this._b,se)},toHexString:function(se){return"#"+this.toHex(se)},toHex8:function(se){return f(this._r,this._g,this._b,this._a,se)},toHex8String:function(se){return"#"+this.toHex8(se)},toRgb:function(){return{r:O(this._r),g:O(this._g),b:O(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+O(this._r)+", "+O(this._g)+", "+O(this._b)+")":"rgba("+O(this._r)+", "+O(this._g)+", "+O(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:O(F(this._r,255)*100)+"%",g:O(F(this._g,255)*100)+"%",b:O(F(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+O(F(this._r,255)*100)+"%, "+O(F(this._g,255)*100)+"%, "+O(F(this._b,255)*100)+"%)":"rgba("+O(F(this._r,255)*100)+"%, "+O(F(this._g,255)*100)+"%, "+O(F(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:N[d(this._r,this._g,this._b,!0)]||!1},toFilter:function(se){var ge="#"+o(this._r,this._g,this._b,this._a),ae=ge,pe=this._gradientType?"GradientType = 1, ":"";if(se){var Me=p(se);ae="#"+o(Me._r,Me._g,Me._b,Me._a)}return"progid:DXImageTransform.Microsoft.gradient("+pe+"startColorstr="+ge+",endColorstr="+ae+")"},toString:function(se){var ge=!!se;se=se||this._format;var ae=!1,pe=this._a<1&&this._a>=0,Me=!ge&&pe&&(se==="hex"||se==="hex6"||se==="hex3"||se==="hex4"||se==="hex8"||se==="name");return Me?se==="name"&&this._a===0?this.toName():this.toRgbString():(se==="rgb"&&(ae=this.toRgbString()),se==="prgb"&&(ae=this.toPercentageRgbString()),(se==="hex"||se==="hex6")&&(ae=this.toHexString()),se==="hex3"&&(ae=this.toHexString(!0)),se==="hex4"&&(ae=this.toHex8String(!0)),se==="hex8"&&(ae=this.toHex8String()),se==="name"&&(ae=this.toName()),se==="hsl"&&(ae=this.toHslString()),se==="hsv"&&(ae=this.toHsvString()),ae||this.toHexString())},clone:function(){return p(this.toString())},_applyModification:function(se,ge){var ae=se.apply(null,[this].concat([].slice.call(ge)));return this._r=ae._r,this._g=ae._g,this._b=ae._b,this.setAlpha(ae._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(P,arguments)},darken:function(){return this._applyModification(C,arguments)},desaturate:function(){return this._applyModification(u,arguments)},saturate:function(){return this._applyModification(E,arguments)},greyscale:function(){return this._applyModification(R,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(se,ge){return se.apply(null,[this].concat([].slice.call(ge)))},analogous:function(){return this._applyCombination(g,arguments)},complement:function(){return this._applyCombination(s,arguments)},monochromatic:function(){return this._applyCombination(y,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(h,arguments)},tetrad:function(){return this._applyCombination(m,arguments)}},p.fromRatio=function(se,ge){if(typeof se=="object"){var ae={};for(var pe in se)se.hasOwnProperty(pe)&&(pe==="a"?ae[pe]=se[pe]:ae[pe]=fe(se[pe]));se=ae}return p(se,ge)};function a(se){var ge={r:0,g:0,b:0},ae=1,pe=null,Me=null,xe=null,Ke=!1,et=!1;return typeof se=="string"&&(se=le(se)),typeof se=="object"&&(ye(se.r)&&ye(se.g)&&ye(se.b)?(ge=t(se.r,se.g,se.b),Ke=!0,et=String(se.r).substr(-1)==="%"?"prgb":"rgb"):ye(se.h)&&ye(se.s)&&ye(se.v)?(pe=fe(se.s),Me=fe(se.v),ge=c(se.h,pe,Me),Ke=!0,et="hsv"):ye(se.h)&&ye(se.s)&&ye(se.l)&&(pe=fe(se.s),xe=fe(se.l),ge=l(se.h,pe,xe),Ke=!0,et="hsl"),se.hasOwnProperty("a")&&(ae=se.a)),ae=H(ae),{ok:Ke,format:se.format||et,r:M(255,T(ge.r,0)),g:M(255,T(ge.g,0)),b:M(255,T(ge.b,0)),a:ae}}function t(se,ge,ae){return{r:F(se,255)*255,g:F(ge,255)*255,b:F(ae,255)*255}}function A(se,ge,ae){se=F(se,255),ge=F(ge,255),ae=F(ae,255);var pe=T(se,ge,ae),Me=M(se,ge,ae),xe,Ke,et=(pe+Me)/2;if(pe==Me)xe=Ke=0;else{var he=pe-Me;Ke=et>.5?he/(2-pe-Me):he/(pe+Me);switch(pe){case se:xe=(ge-ae)/he+(ge<ae?6:0);break;case ge:xe=(ae-se)/he+2;break;case ae:xe=(se-ge)/he+4;break}xe/=6}return{h:xe,s:Ke,l:et}}function l(se,ge,ae){var pe,Me,xe;se=F(se,360),ge=F(ge,100),ae=F(ae,100);function Ke(Se,Ue,Ne){return Ne<0&&(Ne+=1),Ne>1&&(Ne-=1),Ne<1/6?Se+(Ue-Se)*6*Ne:Ne<1/2?Ue:Ne<2/3?Se+(Ue-Se)*(2/3-Ne)*6:Se}if(ge===0)pe=Me=xe=ae;else{var et=ae<.5?ae*(1+ge):ae+ge-ae*ge,he=2*ae-et;pe=Ke(he,et,se+1/3),Me=Ke(he,et,se),xe=Ke(he,et,se-1/3)}return{r:pe*255,g:Me*255,b:xe*255}}function i(se,ge,ae){se=F(se,255),ge=F(ge,255),ae=F(ae,255);var pe=T(se,ge,ae),Me=M(se,ge,ae),xe,Ke,et=pe,he=pe-Me;if(Ke=pe===0?0:he/pe,pe==Me)xe=0;else{switch(pe){case se:xe=(ge-ae)/he+(ge<ae?6:0);break;case ge:xe=(ae-se)/he+2;break;case ae:xe=(se-ge)/he+4;break}xe/=6}return{h:xe,s:Ke,v:et}}function c(se,ge,ae){se=F(se,360)*6,ge=F(ge,100),ae=F(ae,100);var pe=Q.floor(se),Me=se-pe,xe=ae*(1-ge),Ke=ae*(1-Me*ge),et=ae*(1-(1-Me)*ge),he=pe%6,Se=[ae,Ke,xe,xe,et,ae][he],Ue=[et,ae,ae,Ke,xe,xe][he],Ne=[xe,xe,et,ae,ae,Ke][he];return{r:Se*255,g:Ue*255,b:Ne*255}}function d(se,ge,ae,pe){var Me=[te(O(se).toString(16)),te(O(ge).toString(16)),te(O(ae).toString(16))];return pe&&Me[0].charAt(0)==Me[0].charAt(1)&&Me[1].charAt(0)==Me[1].charAt(1)&&Me[2].charAt(0)==Me[2].charAt(1)?Me[0].charAt(0)+Me[1].charAt(0)+Me[2].charAt(0):Me.join("")}function f(se,ge,ae,pe,Me){var xe=[te(O(se).toString(16)),te(O(ge).toString(16)),te(O(ae).toString(16)),te(Ae(pe))];return Me&&xe[0].charAt(0)==xe[0].charAt(1)&&xe[1].charAt(0)==xe[1].charAt(1)&&xe[2].charAt(0)==xe[2].charAt(1)&&xe[3].charAt(0)==xe[3].charAt(1)?xe[0].charAt(0)+xe[1].charAt(0)+xe[2].charAt(0)+xe[3].charAt(0):xe.join("")}function o(se,ge,ae,pe){var Me=[te(Ae(pe)),te(O(se).toString(16)),te(O(ge).toString(16)),te(O(ae).toString(16))];return Me.join("")}p.equals=function(se,ge){return!se||!ge?!1:p(se).toRgbString()==p(ge).toRgbString()},p.random=function(){return p.fromRatio({r:n(),g:n(),b:n()})};function u(se,ge){ge=ge===0?0:ge||10;var ae=p(se).toHsl();return ae.s-=ge/100,ae.s=B(ae.s),p(ae)}function E(se,ge){ge=ge===0?0:ge||10;var ae=p(se).toHsl();return ae.s+=ge/100,ae.s=B(ae.s),p(ae)}function R(se){return p(se).desaturate(100)}function w(se,ge){ge=ge===0?0:ge||10;var ae=p(se).toHsl();return ae.l+=ge/100,ae.l=B(ae.l),p(ae)}function P(se,ge){ge=ge===0?0:ge||10;var ae=p(se).toRgb();return ae.r=T(0,M(255,ae.r-O(255*-(ge/100)))),ae.g=T(0,M(255,ae.g-O(255*-(ge/100)))),ae.b=T(0,M(255,ae.b-O(255*-(ge/100)))),p(ae)}function C(se,ge){ge=ge===0?0:ge||10;var ae=p(se).toHsl();return ae.l-=ge/100,ae.l=B(ae.l),p(ae)}function b(se,ge){var ae=p(se).toHsl(),pe=(ae.h+ge)%360;return ae.h=pe<0?360+pe:pe,p(ae)}function s(se){var ge=p(se).toHsl();return ge.h=(ge.h+180)%360,p(ge)}function h(se){var ge=p(se).toHsl(),ae=ge.h;return[p(se),p({h:(ae+120)%360,s:ge.s,l:ge.l}),p({h:(ae+240)%360,s:ge.s,l:ge.l})]}function m(se){var ge=p(se).toHsl(),ae=ge.h;return[p(se),p({h:(ae+90)%360,s:ge.s,l:ge.l}),p({h:(ae+180)%360,s:ge.s,l:ge.l}),p({h:(ae+270)%360,s:ge.s,l:ge.l})]}function x(se){var ge=p(se).toHsl(),ae=ge.h;return[p(se),p({h:(ae+72)%360,s:ge.s,l:ge.l}),p({h:(ae+216)%360,s:ge.s,l:ge.l})]}function g(se,ge,ae){ge=ge||6,ae=ae||30;var pe=p(se).toHsl(),Me=360/ae,xe=[p(se)];for(pe.h=(pe.h-(Me*ge>>1)+720)%360;--ge;)pe.h=(pe.h+Me)%360,xe.push(p(pe));return xe}function y(se,ge){ge=ge||6;for(var ae=p(se).toHsv(),pe=ae.h,Me=ae.s,xe=ae.v,Ke=[],et=1/ge;ge--;)Ke.push(p({h:pe,s:Me,v:xe})),xe=(xe+et)%1;return Ke}p.mix=function(se,ge,ae){ae=ae===0?0:ae||50;var pe=p(se).toRgb(),Me=p(ge).toRgb(),xe=ae/100,Ke={r:(Me.r-pe.r)*xe+pe.r,g:(Me.g-pe.g)*xe+pe.g,b:(Me.b-pe.b)*xe+pe.b,a:(Me.a-pe.a)*xe+pe.a};return p(Ke)},p.readability=function(se,ge){var ae=p(se),pe=p(ge);return(Q.max(ae.getLuminance(),pe.getLuminance())+.05)/(Q.min(ae.getLuminance(),pe.getLuminance())+.05)},p.isReadable=function(se,ge,ae){var pe=p.readability(se,ge),Me,xe;xe=!1,Me=me(ae);switch(Me.level+Me.size){case"AAsmall":case"AAAlarge":xe=pe>=4.5;break;case"AAlarge":xe=pe>=3;break;case"AAAsmall":xe=pe>=7;break}return xe},p.mostReadable=function(se,ge,ae){var pe=null,Me=0,xe,Ke,et,he;ae=ae||{},Ke=ae.includeFallbackColors,et=ae.level,he=ae.size;for(var Se=0;Se<ge.length;Se++)xe=p.readability(se,ge[Se]),xe>Me&&(Me=xe,pe=p(ge[Se]));return p.isReadable(se,pe,{level:et,size:he})||!Ke?pe:(ae.includeFallbackColors=!1,p.mostReadable(se,["#fff","#000"],ae))};var U=p.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},N=p.hexNames=S(U);function S(se){var ge={};for(var ae in se)se.hasOwnProperty(ae)&&(ge[se[ae]]=ae);return ge}function H(se){return se=parseFloat(se),(isNaN(se)||se<0||se>1)&&(se=1),se}function F(se,ge){K(se)&&(se="100%");var ae=$(se);return se=M(ge,T(0,parseFloat(se))),ae&&(se=parseInt(se*ge,10)/100),Q.abs(se-ge)<1e-6?1:se%ge/parseFloat(ge)}function B(se){return M(1,T(0,se))}function z(se){return parseInt(se,16)}function K(se){return typeof se=="string"&&se.indexOf(".")!=-1&&parseFloat(se)===1}function $(se){return typeof se=="string"&&se.indexOf("%")!=-1}function te(se){return se.length==1?"0"+se:""+se}function fe(se){return se<=1&&(se=se*100+"%"),se}function Ae(se){return Q.round(parseFloat(se)*255).toString(16)}function ce(se){return z(se)/255}var ie=function(){var se="[-\\+]?\\d+%?",ge="[-\\+]?\\d*\\.\\d+%?",ae="(?:"+ge+")|(?:"+se+")",pe="[\\s|\\(]+("+ae+")[,|\\s]+("+ae+")[,|\\s]+("+ae+")\\s*\\)?",Me="[\\s|\\(]+("+ae+")[,|\\s]+("+ae+")[,|\\s]+("+ae+")[,|\\s]+("+ae+")\\s*\\)?";return{CSS_UNIT:new RegExp(ae),rgb:new RegExp("rgb"+pe),rgba:new RegExp("rgba"+Me),hsl:new RegExp("hsl"+pe),hsla:new RegExp("hsla"+Me),hsv:new RegExp("hsv"+pe),hsva:new RegExp("hsva"+Me),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ye(se){return!!ie.CSS_UNIT.exec(se)}function le(se){se=se.replace(I,"").replace(k,"").toLowerCase();var ge=!1;if(U[se])se=U[se],ge=!0;else if(se=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ae;return(ae=ie.rgb.exec(se))?{r:ae[1],g:ae[2],b:ae[3]}:(ae=ie.rgba.exec(se))?{r:ae[1],g:ae[2],b:ae[3],a:ae[4]}:(ae=ie.hsl.exec(se))?{h:ae[1],s:ae[2],l:ae[3]}:(ae=ie.hsla.exec(se))?{h:ae[1],s:ae[2],l:ae[3],a:ae[4]}:(ae=ie.hsv.exec(se))?{h:ae[1],s:ae[2],v:ae[3]}:(ae=ie.hsva.exec(se))?{h:ae[1],s:ae[2],v:ae[3],a:ae[4]}:(ae=ie.hex8.exec(se))?{r:z(ae[1]),g:z(ae[2]),b:z(ae[3]),a:ce(ae[4]),format:ge?"name":"hex8"}:(ae=ie.hex6.exec(se))?{r:z(ae[1]),g:z(ae[2]),b:z(ae[3]),format:ge?"name":"hex"}:(ae=ie.hex4.exec(se))?{r:z(ae[1]+""+ae[1]),g:z(ae[2]+""+ae[2]),b:z(ae[3]+""+ae[3]),a:ce(ae[4]+""+ae[4]),format:ge?"name":"hex8"}:(ae=ie.hex3.exec(se))?{r:z(ae[1]+""+ae[1]),g:z(ae[2]+""+ae[2]),b:z(ae[3]+""+ae[3]),format:ge?"name":"hex"}:!1}function me(se){var ge,ae;return se=se||{level:"AA",size:"small"},ge=(se.level||"AA").toUpperCase(),ae=(se.size||"small").toLowerCase(),ge!=="AA"&&ge!=="AAA"&&(ge="AA"),ae!=="small"&&ae!=="large"&&(ae="small"),{level:ge,size:ae}}Be.exports?Be.exports=p:!(Z=function(){return p}.call(ee,v,ee,Be),Z!==void 0&&(Be.exports=Z))})(Math)},"a+yL":function(Be,ee,v){Be.exports={search:"search___t0h96",btn:"btn___t2oDx"}},aKvl:function(Be,ee,v){var Z=v("Sj9i"),Q=Z.quadraticProjectPoint;function I(k,_,O,M,T,n,p,a,t){if(p===0)return!1;var A=p;if(t>_+A&&t>M+A&&t>n+A||t<_-A&&t<M-A&&t<n-A||a>k+A&&a>O+A&&a>T+A||a<k-A&&a<O-A&&a<T-A)return!1;var l=Q(k,_,O,M,T,n,a,t,null);return l<=A/2}ee.containStroke=I},aX58:function(Be,ee,v){var Z=v("3gBT"),Q=v("ItGF"),I=v("bYtY"),k=v("0s+r"),_=v("r6Bn"),O=v("7SHv"),M=v("MKOG"),T=v("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 n=!Q.canvasSupported,p={canvas:O},a={},t="4.3.1";function A(o,u){var E=new f(Z(),o,u);return a[E.id]=E,E}function l(o){if(o)o.dispose();else{for(var u in a)a.hasOwnProperty(u)&&a[u].dispose();a={}}return this}function i(o){return a[o]}function c(o,u){p[o]=u}function d(o){delete a[o]}var f=function(o,u,E){E=E||{},this.dom=u,this.id=o;var R=this,w=new _,P=E.renderer;if(n){if(!p.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");P="vml"}else(!P||!p[P])&&(P="canvas");var C=new p[P](u,w,E,o);this.storage=w,this.painter=C;var b=!Q.node&&!Q.worker?new T(C.getViewportRoot(),C.root):null;this.handler=new k(w,C,b,C.root),this.animation=new M({stage:{update:I.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var s=w.delFromStorage,h=w.addToStorage;w.delFromStorage=function(m){s.call(w,m),m&&m.removeSelfFromZr(R)},w.addToStorage=function(m){h.call(w,m),m.addSelfToZr(R)}};f.prototype={constructor:f,getId:function(){return this.id},add:function(o){this.storage.addRoot(o),this._needsRefresh=!0},remove:function(o){this.storage.delRoot(o),this._needsRefresh=!0},configLayer:function(o,u){this.painter.configLayer&&this.painter.configLayer(o,u),this._needsRefresh=!0},setBackgroundColor:function(o){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(o),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 o;this._needsRefresh&&(o=!0,this.refreshImmediately()),this._needsRefreshHover&&(o=!0,this.refreshHoverImmediately()),o&&this.trigger("rendered")},addHover:function(o,u){if(this.painter.addHover){var E=this.painter.addHover(o,u);return this.refreshHover(),E}},removeHover:function(o){this.painter.removeHover&&(this.painter.removeHover(o),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(o){o=o||{},this.painter.resize(o.width,o.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(o,u){return this.painter.pathToImage(o,u)},setCursorStyle:function(o){this.handler.setCursorStyle(o)},findHover:function(o,u){return this.handler.findHover(o,u)},on:function(o,u,E){this.handler.on(o,u,E)},off:function(o,u){this.handler.off(o,u)},trigger:function(o,u){this.handler.trigger(o,u)},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)}},ee.version=t,ee.init=A,ee.dispose=l,ee.getInstance=i,ee.registerPainter=c},bT9E:function(Be,ee,v){"use strict";v.d(ee,"a",function(){return Q});var Z=v("VTBJ");function Q(I,k){var _=Object(Z.a)({},I);return Array.isArray(k)&&k.forEach(function(O){delete _[O]}),_}},bYtY:function(Be,ee){var v={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},Z={"[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},Q=Object.prototype.toString,I=Array.prototype,k=I.forEach,_=I.filter,O=I.slice,M=I.map,T=I.reduce,n={};function p(ae,pe){ae==="createCanvas"&&(d=null),n[ae]=pe}function a(ae){if(ae==null||typeof ae!="object")return ae;var pe=ae,Me=Q.call(ae);if(Me==="[object Array]"){if(!ye(ae)){pe=[];for(var xe=0,Ke=ae.length;xe<Ke;xe++)pe[xe]=a(ae[xe])}}else if(Z[Me]){if(!ye(ae)){var et=ae.constructor;if(ae.constructor.from)pe=et.from(ae);else{pe=new et(ae.length);for(var xe=0,Ke=ae.length;xe<Ke;xe++)pe[xe]=a(ae[xe])}}}else if(!v[Me]&&!ye(ae)&&!H(ae)){pe={};for(var he in ae)ae.hasOwnProperty(he)&&(pe[he]=a(ae[he]))}return pe}function t(ae,pe,Me){if(!U(pe)||!U(ae))return Me?a(pe):ae;for(var xe in pe)if(pe.hasOwnProperty(xe)){var Ke=ae[xe],et=pe[xe];U(et)&&U(Ke)&&!x(et)&&!x(Ke)&&!H(et)&&!H(Ke)&&!N(et)&&!N(Ke)&&!ye(et)&&!ye(Ke)?t(Ke,et,Me):(Me||!(xe in ae))&&(ae[xe]=a(pe[xe],!0))}return ae}function A(ae,pe){for(var Me=ae[0],xe=1,Ke=ae.length;xe<Ke;xe++)Me=t(Me,ae[xe],pe);return Me}function l(ae,pe){for(var Me in pe)pe.hasOwnProperty(Me)&&(ae[Me]=pe[Me]);return ae}function i(ae,pe,Me){for(var xe in pe)pe.hasOwnProperty(xe)&&(Me?pe[xe]!=null:ae[xe]==null)&&(ae[xe]=pe[xe]);return ae}var c=function(){return n.createCanvas()};n.createCanvas=function(){return document.createElement("canvas")};var d;function f(){return d||(d=c().getContext("2d")),d}function o(ae,pe){if(ae){if(ae.indexOf)return ae.indexOf(pe);for(var Me=0,xe=ae.length;Me<xe;Me++)if(ae[Me]===pe)return Me}return-1}function u(ae,pe){var Me=ae.prototype;function xe(){}xe.prototype=pe.prototype,ae.prototype=new xe;for(var Ke in Me)Me.hasOwnProperty(Ke)&&(ae.prototype[Ke]=Me[Ke]);ae.prototype.constructor=ae,ae.superClass=pe}function E(ae,pe,Me){ae="prototype"in ae?ae.prototype:ae,pe="prototype"in pe?pe.prototype:pe,i(ae,pe,Me)}function R(ae){return ae?typeof ae=="string"?!1:typeof ae.length=="number":void 0}function w(ae,pe,Me){if(!(ae&&pe))return;if(ae.forEach&&ae.forEach===k)ae.forEach(pe,Me);else if(ae.length===+ae.length)for(var xe=0,Ke=ae.length;xe<Ke;xe++)pe.call(Me,ae[xe],xe,ae);else for(var et in ae)ae.hasOwnProperty(et)&&pe.call(Me,ae[et],et,ae)}function P(ae,pe,Me){if(!(ae&&pe))return;if(ae.map&&ae.map===M)return ae.map(pe,Me);for(var xe=[],Ke=0,et=ae.length;Ke<et;Ke++)xe.push(pe.call(Me,ae[Ke],Ke,ae));return xe}function C(ae,pe,Me,xe){if(!(ae&&pe))return;if(ae.reduce&&ae.reduce===T)return ae.reduce(pe,Me,xe);for(var Ke=0,et=ae.length;Ke<et;Ke++)Me=pe.call(xe,Me,ae[Ke],Ke,ae);return Me}function b(ae,pe,Me){if(!(ae&&pe))return;if(ae.filter&&ae.filter===_)return ae.filter(pe,Me);for(var xe=[],Ke=0,et=ae.length;Ke<et;Ke++)pe.call(Me,ae[Ke],Ke,ae)&&xe.push(ae[Ke]);return xe}function s(ae,pe,Me){if(!(ae&&pe))return;for(var xe=0,Ke=ae.length;xe<Ke;xe++)if(pe.call(Me,ae[xe],xe,ae))return ae[xe]}function h(ae,pe){var Me=O.call(arguments,2);return function(){return ae.apply(pe,Me.concat(O.call(arguments)))}}function m(ae){var pe=O.call(arguments,1);return function(){return ae.apply(this,pe.concat(O.call(arguments)))}}function x(ae){return Q.call(ae)==="[object Array]"}function g(ae){return typeof ae=="function"}function y(ae){return Q.call(ae)==="[object String]"}function U(ae){var pe=typeof ae;return pe==="function"||!!ae&&pe==="object"}function N(ae){return!!v[Q.call(ae)]}function S(ae){return!!Z[Q.call(ae)]}function H(ae){return typeof ae=="object"&&typeof ae.nodeType=="number"&&typeof ae.ownerDocument=="object"}function F(ae){return ae!==ae}function B(ae){for(var pe=0,Me=arguments.length;pe<Me;pe++)if(arguments[pe]!=null)return arguments[pe]}function z(ae,pe){return ae!=null?ae:pe}function K(ae,pe,Me){return ae!=null?ae:pe!=null?pe:Me}function $(){return Function.call.apply(O,arguments)}function te(ae){if(typeof ae=="number")return[ae,ae,ae,ae];var pe=ae.length;return pe===2?[ae[0],ae[1],ae[0],ae[1]]:pe===3?[ae[0],ae[1],ae[2],ae[1]]:ae}function fe(ae,pe){if(!ae)throw new Error(pe)}function Ae(ae){return ae==null?null:typeof ae.trim=="function"?ae.trim():ae.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ce="__ec_primitive__";function ie(ae){ae[ce]=!0}function ye(ae){return ae[ce]}function le(ae){var pe=x(ae);this.data={};var Me=this;ae instanceof le?ae.each(xe):ae&&w(ae,xe);function xe(Ke,et){pe?Me.set(Ke,et):Me.set(et,Ke)}}le.prototype={constructor:le,get:function(ae){return this.data.hasOwnProperty(ae)?this.data[ae]:null},set:function(ae,pe){return this.data[ae]=pe},each:function(ae,pe){pe!==void 0&&(ae=h(ae,pe));for(var Me in this.data)this.data.hasOwnProperty(Me)&&ae(this.data[Me],Me)},removeKey:function(ae){delete this.data[ae]}};function me(ae){return new le(ae)}function se(ae,pe){for(var Me=new ae.constructor(ae.length+pe.length),xe=0;xe<ae.length;xe++)Me[xe]=ae[xe];var Ke=ae.length;for(xe=0;xe<pe.length;xe++)Me[xe+Ke]=pe[xe];return Me}function ge(){}ee.$override=p,ee.clone=a,ee.merge=t,ee.mergeAll=A,ee.extend=l,ee.defaults=i,ee.createCanvas=c,ee.getContext=f,ee.indexOf=o,ee.inherits=u,ee.mixin=E,ee.isArrayLike=R,ee.each=w,ee.map=P,ee.reduce=C,ee.filter=b,ee.find=s,ee.bind=h,ee.curry=m,ee.isArray=x,ee.isFunction=g,ee.isString=y,ee.isObject=U,ee.isBuiltInObject=N,ee.isTypedArray=S,ee.isDom=H,ee.eqNaN=F,ee.retrieve=B,ee.retrieve2=z,ee.retrieve3=K,ee.slice=$,ee.normalizeCssArray=te,ee.assert=fe,ee.trim=Ae,ee.setAsPrimitive=ie,ee.isPrimitive=ye,ee.createHashMap=me,ee.concatArray=se,ee.noop=ge},biw7:function(Be,ee,v){"use strict";var Z=v("q1tI"),Q=v.n(Z),I=Z.createContext(null);ee.a=I},c5Ni:function(Be,ee,v){},cCSd:function(Be,ee,v){Be.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(Be,ee,v){Be.exports=v.p+"static/RepositoryNoneData.828085a8.png"},chpo:function(Be,ee,v){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.default=void 0;var Z=1,Q=function(){return"".concat(Z++)};ee.default=Q},crp1:function(Be,ee,v){"use strict";v.d(ee,"b",function(){return je}),v.d(ee,"a",function(){return Qt});var Z={},Q=function(_e,Ie,Ye,yt,Xt){var sn=Z[Ie]||(Z[Ie]=URL.createObjectURL(new Blob([_e],{type:"text/javascript"}))),re=new Worker(sn);return re.onerror=function(W){return Xt(W.error,null)},re.onmessage=function(W){return Xt(null,W.data)},re.postMessage(Ye,yt),re},I=Uint8Array,k=Uint16Array,_=Uint32Array,O=new I([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]),M=new I([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]),T=new I([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),n=function(_e,Ie){for(var Ye=new k(31),yt=0;yt<31;++yt)Ye[yt]=Ie+=1<<_e[yt-1];for(var Xt=new _(Ye[30]),yt=1;yt<30;++yt)for(var sn=Ye[yt];sn<Ye[yt+1];++sn)Xt[sn]=sn-Ye[yt]<<5|yt;return[Ye,Xt]},p=n(O,2),a=p[0],t=p[1];a[28]=258,t[258]=28;for(var A=n(M,0),l=A[0],i=A[1],c=new k(32768),d=0;d<32768;++d){var f=(d&43690)>>>1|(d&21845)<<1;f=(f&52428)>>>2|(f&13107)<<2,f=(f&61680)>>>4|(f&3855)<<4,c[d]=((f&65280)>>>8|(f&255)<<8)>>>1}for(var o=function(_e,Ie,Ye){for(var yt=_e.length,Xt=0,sn=new k(Ie);Xt<yt;++Xt)++sn[_e[Xt]-1];var re=new k(Ie);for(Xt=0;Xt<Ie;++Xt)re[Xt]=re[Xt-1]+sn[Xt-1]<<1;var W;if(Ye){W=new k(1<<Ie);var V=15-Ie;for(Xt=0;Xt<yt;++Xt)if(_e[Xt])for(var ne=Xt<<4|_e[Xt],ve=Ie-_e[Xt],oe=re[_e[Xt]-1]++<<ve,tt=oe|(1<<ve)-1;oe<=tt;++oe)W[c[oe]>>>V]=ne}else for(W=new k(yt),Xt=0;Xt<yt;++Xt)W[Xt]=c[re[_e[Xt]-1]++]>>>15-_e[Xt];return W},u=new I(288),d=0;d<144;++d)u[d]=8;for(var d=144;d<256;++d)u[d]=9;for(var d=256;d<280;++d)u[d]=7;for(var d=280;d<288;++d)u[d]=8;for(var E=new I(32),d=0;d<32;++d)E[d]=5;var R=o(u,9,0),w=o(u,9,1),P=o(E,5,0),C=o(E,5,1),b=function(_e){for(var Ie=_e[0],Ye=1;Ye<_e.length;++Ye)_e[Ye]>Ie&&(Ie=_e[Ye]);return Ie},s=function(_e,Ie,Ye){var yt=Ie/8>>0;return(_e[yt]|_e[yt+1]<<8)>>>(Ie&7)&Ye},h=function(_e,Ie){var Ye=Ie/8>>0;return(_e[Ye]|_e[Ye+1]<<8|_e[Ye+2]<<16)>>>(Ie&7)},m=function(_e){return(_e/8>>0)+(_e&7&&1)},x=function(_e,Ie,Ye){(Ie==null||Ie<0)&&(Ie=0),(Ye==null||Ye>_e.length)&&(Ye=_e.length);var yt=new(_e instanceof k?k:_e instanceof _?_:I)(Ye-Ie);return yt.set(_e.subarray(Ie,Ye)),yt},g=function(_e,Ie,Ye){var yt=_e.length,Xt=!Ie||Ye,sn=!Ye||Ye.i;Ye||(Ye={}),Ie||(Ie=new I(yt*3));var re=function(Jr){var ri=Ie.length;if(Jr>ri){var pa=new I(Math.max(ri*2,Jr));pa.set(Ie),Ie=pa}},W=Ye.f||0,V=Ye.p||0,ne=Ye.b||0,ve=Ye.l,oe=Ye.d,tt=Ye.m,Kt=Ye.n,dn=yt*8;do{if(!ve){Ye.f=W=s(_e,V,1);var Cn=s(_e,V+1,3);if(V+=3,Cn)if(Cn==1)ve=w,oe=C,tt=9,Kt=5;else if(Cn==2){var lr=s(_e,V,31)+257,Rr=s(_e,V+10,15)+4,qr=lr+s(_e,V+5,31)+1;V+=14;for(var zr=new I(qr),Ca=new I(19),Dr=0;Dr<Rr;++Dr)Ca[T[Dr]]=s(_e,V+Dr*3,7);V+=Rr*3;var ya=b(Ca),ka=(1<<ya)-1;if(!sn&&V+qr*(ya+7)>dn)break;for(var fi=o(Ca,ya,1),Dr=0;Dr<qr;){var Ka=fi[s(_e,V,ka)];V+=Ka&15;var Jt=Ka>>>4;if(Jt<16)zr[Dr++]=Jt;else{var qa=0,Si=0;for(Jt==16?(Si=3+s(_e,V,3),V+=2,qa=zr[Dr-1]):Jt==17?(Si=3+s(_e,V,7),V+=3):Jt==18&&(Si=11+s(_e,V,127),V+=7);Si--;)zr[Dr++]=qa}}var pi=zr.subarray(0,lr),ui=zr.subarray(lr);tt=b(pi),Kt=b(ui),ve=o(pi,tt,1),oe=o(ui,Kt,1)}else throw"invalid block type";else{var Jt=m(V)+4,Vn=_e[Jt-4]|_e[Jt-3]<<8,Xn=Jt+Vn;if(Xn>yt){if(sn)throw"unexpected EOF";break}Xt&&re(ne+Vn),Ie.set(_e.subarray(Jt,Xn),ne),Ye.b=ne+=Vn,Ye.p=V=Xn*8;continue}if(V>dn)throw"unexpected EOF"}Xt&&re(ne+131072);for(var mi=(1<<tt)-1,_i=(1<<Kt)-1,ai=tt+Kt+18;sn||V+ai<dn;){var qa=ve[h(_e,V)&mi],Hi=qa>>>4;if(V+=qa&15,V>dn)throw"unexpected EOF";if(!qa)throw"invalid length/literal";if(Hi<256)Ie[ne++]=Hi;else if(Hi==256){ve=null;break}else{var Yi=Hi-254;if(Hi>264){var Dr=Hi-257,$r=O[Dr];Yi=s(_e,V,(1<<$r)-1)+a[Dr],V+=$r}var ua=oe[h(_e,V)&_i],Pr=ua>>>4;if(!ua)throw"invalid distance";V+=ua&15;var ui=l[Pr];if(Pr>3){var $r=M[Pr];ui+=h(_e,V)&(1<<$r)-1,V+=$r}if(V>dn)throw"unexpected EOF";Xt&&re(ne+131072);for(var ca=ne+Yi;ne<ca;ne+=4)Ie[ne]=Ie[ne-ui],Ie[ne+1]=Ie[ne+1-ui],Ie[ne+2]=Ie[ne+2-ui],Ie[ne+3]=Ie[ne+3-ui];ne=ca}}Ye.l=ve,Ye.p=V,Ye.b=ne,ve&&(W=1,Ye.m=tt,Ye.d=oe,Ye.n=Kt)}while(!W);return ne==Ie.length?Ie:x(Ie,0,ne)},y=function(_e,Ie,Ye){Ye<<=Ie&7;var yt=Ie/8>>0;_e[yt]|=Ye,_e[yt+1]|=Ye>>>8},U=function(_e,Ie,Ye){Ye<<=Ie&7;var yt=Ie/8>>0;_e[yt]|=Ye,_e[yt+1]|=Ye>>>8,_e[yt+2]|=Ye>>>16},N=function(_e,Ie){for(var Ye=[],yt=0;yt<_e.length;++yt)_e[yt]&&Ye.push({s:yt,f:_e[yt]});var Xt=Ye.length,sn=Ye.slice();if(!Xt)return[new I(0),0];if(Xt==1){var re=new I(Ye[0].s+1);return re[Ye[0].s]=1,[re,1]}Ye.sort(function(qr,zr){return qr.f-zr.f}),Ye.push({s:-1,f:25001});var W=Ye[0],V=Ye[1],ne=0,ve=1,oe=2;for(Ye[0]={s:-1,f:W.f+V.f,l:W,r:V};ve!=Xt-1;)W=Ye[Ye[ne].f<Ye[oe].f?ne++:oe++],V=Ye[ne!=ve&&Ye[ne].f<Ye[oe].f?ne++:oe++],Ye[ve++]={s:-1,f:W.f+V.f,l:W,r:V};for(var tt=sn[0].s,yt=1;yt<Xt;++yt)sn[yt].s>tt&&(tt=sn[yt].s);var Kt=new k(tt+1),dn=S(Ye[ve-1],Kt,0);if(dn>Ie){var yt=0,Cn=0,Jt=dn-Ie,Vn=1<<Jt;for(sn.sort(function(zr,Ca){return Kt[Ca.s]-Kt[zr.s]||zr.f-Ca.f});yt<Xt;++yt){var Xn=sn[yt].s;if(Kt[Xn]>Ie)Cn+=Vn-(1<<dn-Kt[Xn]),Kt[Xn]=Ie;else break}for(Cn>>>=Jt;Cn>0;){var lr=sn[yt].s;Kt[lr]<Ie?Cn-=1<<Ie-Kt[lr]++-1:++yt}for(;yt>=0&&Cn;--yt){var Rr=sn[yt].s;Kt[Rr]==Ie&&(--Kt[Rr],++Cn)}dn=Ie}return[new I(Kt),dn]},S=function(_e,Ie,Ye){return _e.s==-1?Math.max(S(_e.l,Ie,Ye+1),S(_e.r,Ie,Ye+1)):Ie[_e.s]=Ye},H=function(_e){for(var Ie=_e.length;Ie&&!_e[--Ie];);for(var Ye=new k(++Ie),yt=0,Xt=_e[0],sn=1,re=function(V){Ye[yt++]=V},W=1;W<=Ie;++W)if(_e[W]==Xt&&W!=Ie)++sn;else{if(!Xt&&sn>2){for(;sn>138;sn-=138)re(32754);sn>2&&(re(sn>10?sn-11<<5|28690:sn-3<<5|12305),sn=0)}else if(sn>3){for(re(Xt),--sn;sn>6;sn-=6)re(8304);sn>2&&(re(sn-3<<5|8208),sn=0)}for(;sn--;)re(Xt);sn=1,Xt=_e[W]}return[Ye.subarray(0,yt),Ie]},F=function(_e,Ie){for(var Ye=0,yt=0;yt<Ie.length;++yt)Ye+=_e[yt]*Ie[yt];return Ye},B=function(_e,Ie,Ye){var yt=Ye.length,Xt=m(Ie+2);_e[Xt]=yt&255,_e[Xt+1]=yt>>>8,_e[Xt+2]=_e[Xt]^255,_e[Xt+3]=_e[Xt+1]^255;for(var sn=0;sn<yt;++sn)_e[Xt+sn+4]=Ye[sn];return(Xt+4+yt)*8},z=function(_e,Ie,Ye,yt,Xt,sn,re,W,V,ne,ve){y(Ie,ve++,Ye),++Xt[256];for(var oe=N(Xt,15),tt=oe[0],Kt=oe[1],dn=N(sn,15),Cn=dn[0],Jt=dn[1],Vn=H(tt),Xn=Vn[0],lr=Vn[1],Rr=H(Cn),qr=Rr[0],zr=Rr[1],Ca=new k(19),Dr=0;Dr<Xn.length;++Dr)Ca[Xn[Dr]&31]++;for(var Dr=0;Dr<qr.length;++Dr)Ca[qr[Dr]&31]++;for(var ya=N(Ca,7),ka=ya[0],fi=ya[1],Ka=19;Ka>4&&!ka[T[Ka-1]];--Ka);var qa=ne+5<<3,Si=F(Xt,u)+F(sn,E)+re,pi=F(Xt,tt)+F(sn,Cn)+re+14+3*Ka+F(Ca,ka)+(2*Ca[16]+3*Ca[17]+7*Ca[18]);if(qa<=Si&&qa<=pi)return B(Ie,ve,_e.subarray(V,V+ne));var ui,mi,_i,ai;if(y(Ie,ve,1+(pi<Si)),ve+=2,pi<Si){ui=o(tt,Kt,0),mi=tt,_i=o(Cn,Jt,0),ai=Cn;var Hi=o(ka,fi,0);y(Ie,ve,lr-257),y(Ie,ve+5,zr-1),y(Ie,ve+10,Ka-4),ve+=14;for(var Dr=0;Dr<Ka;++Dr)y(Ie,ve+3*Dr,ka[T[Dr]]);ve+=3*Ka;for(var Yi=[Xn,qr],$r=0;$r<2;++$r)for(var ua=Yi[$r],Dr=0;Dr<ua.length;++Dr){var Pr=ua[Dr]&31;y(Ie,ve,Hi[Pr]),ve+=ka[Pr],Pr>15&&(y(Ie,ve,ua[Dr]>>>5&127),ve+=ua[Dr]>>>12)}}else ui=R,mi=u,_i=P,ai=E;for(var Dr=0;Dr<W;++Dr)if(yt[Dr]>255){var Pr=yt[Dr]>>>18&31;U(Ie,ve,ui[Pr+257]),ve+=mi[Pr+257],Pr>7&&(y(Ie,ve,yt[Dr]>>>23&31),ve+=O[Pr]);var ca=yt[Dr]&31;U(Ie,ve,_i[ca]),ve+=ai[ca],ca>3&&(U(Ie,ve,yt[Dr]>>>5&8191),ve+=M[ca])}else U(Ie,ve,ui[yt[Dr]]),ve+=mi[yt[Dr]];return U(Ie,ve,ui[256]),ve+mi[256]},K=new _([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),$=new I(0),te=function(_e,Ie,Ye,yt,Xt,sn){var re=_e.length,W=new I(yt+re+5*(1+Math.floor(re/7e3))+Xt),V=W.subarray(yt,W.length-Xt),ne=0;if(!Ie||re<8)for(var ve=0;ve<=re;ve+=65535){var oe=ve+65535;oe<re?ne=B(V,ne,_e.subarray(ve,oe)):(V[ve]=sn,ne=B(V,ne,_e.subarray(ve,re)))}else{for(var tt=K[Ie-1],Kt=tt>>>13,dn=tt&8191,Cn=(1<<Ye)-1,Jt=new k(32768),Vn=new k(Cn+1),Xn=Math.ceil(Ye/3),lr=2*Xn,Rr=function(ii){return(_e[ii]^_e[ii+1]<<Xn^_e[ii+2]<<lr)&Cn},qr=new _(25e3),zr=new k(288),Ca=new k(32),Dr=0,ya=0,ve=0,ka=0,fi=0,Ka=0;ve<re;++ve){var qa=Rr(ve),Si=ve&32767,pi=Vn[qa];if(Jt[Si]=pi,Vn[qa]=Si,fi<=ve){var ui=re-ve;if((Dr>7e3||ka>24576)&&ui>423){ne=z(_e,V,0,qr,zr,Ca,ya,ka,Ka,ve-Ka,ne),ka=Dr=ya=0,Ka=ve;for(var mi=0;mi<286;++mi)zr[mi]=0;for(var mi=0;mi<30;++mi)Ca[mi]=0}var _i=2,ai=0,Hi=dn,Yi=Si-pi&32767;if(ui>2&&qa==Rr(ve-Yi))for(var $r=Math.min(Kt,ui)-1,ua=Math.min(32767,ve),Pr=Math.min(258,ui);Yi<=ua&&--Hi&&Si!=pi;){if(_e[ve+_i]==_e[ve+_i-Yi]){for(var ca=0;ca<Pr&&_e[ve+ca]==_e[ve+ca-Yi];++ca);if(ca>_i){if(_i=ca,ai=Yi,ca>$r)break;for(var Jr=Math.min(Yi,ca-2),ri=0,mi=0;mi<Jr;++mi){var pa=ve-Yi+mi+32768&32767,mo=Jt[pa],Di=pa-mo+32768&32767;Di>ri&&(ri=Di,pi=pa)}}}Si=pi,pi=Jt[Si],Yi+=Si-pi+32768&32767}if(ai){qr[ka++]=268435456|t[_i]<<18|i[ai];var ci=t[_i]&31,Wo=i[ai]&31;ya+=O[ci]+M[Wo],++zr[257+ci],++Ca[Wo],fi=ve+_i,++Dr}else qr[ka++]=_e[ve],++zr[_e[ve]]}}ne=z(_e,V,sn,qr,zr,Ca,ya,ka,Ka,ve-Ka,ne),sn||(ne=B(V,ne,$))}return x(W,0,yt+m(ne)+Xt)},fe=function(){for(var _e=new _(256),Ie=0;Ie<256;++Ie){for(var Ye=Ie,yt=9;--yt;)Ye=(Ye&1&&3988292384)^Ye>>>1;_e[Ie]=Ye}return _e}(),Ae=function(){var _e=4294967295;return{p:function(Ie){for(var Ye=_e,yt=0;yt<Ie.length;++yt)Ye=fe[Ye&255^Ie[yt]]^Ye>>>8;_e=Ye},d:function(){return _e^4294967295}}},ce=function(){var _e=1,Ie=0;return{p:function(Ye){for(var yt=_e,Xt=Ie,sn=Ye.length,re=0;re!=sn;){for(var W=Math.min(re+5552,sn);re<W;++re)yt+=Ye[re],Xt+=yt;yt%=65521,Xt%=65521}_e=yt,Ie=Xt},d:function(){return(_e>>>8<<16|(Ie&255)<<8|Ie>>>8)+((_e&255)<<23)*2}}},ie=function(_e,Ie,Ye,yt,Xt){return te(_e,Ie.level==null?6:Ie.level,Ie.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(_e.length)))*1.5):12+Ie.mem,Ye,yt,!Xt)},ye=function(_e,Ie){var Ye={};for(var yt in _e)Ye[yt]=_e[yt];for(var yt in Ie)Ye[yt]=Ie[yt];return Ye},le=function(_e,Ie,Ye){for(var yt=_e(),Xt=_e.toString(),sn=Xt.slice(Xt.indexOf("[")+1,Xt.lastIndexOf("]")).replace(/ /g,"").split(","),re=0;re<yt.length;++re){var W=yt[re],V=sn[re];if(typeof W=="function"){Ie+=";"+V+"=";var ne=W.toString();if(W.prototype)if(ne.indexOf("[native code]")!=-1){var ve=ne.indexOf(" ",8)+1;Ie+=ne.slice(ve,ne.indexOf("(",ve))}else{Ie+=ne;for(var oe in W.prototype)Ie+=";"+V+".prototype."+oe+"="+W.prototype[oe].toString()}else Ie+=ne}else Ye[V]=W}return[Ie,Ye]},me=[],se=function(_e){var Ie=[];for(var Ye in _e)(_e[Ye]instanceof I||_e[Ye]instanceof k||_e[Ye]instanceof _)&&Ie.push((_e[Ye]=new _e[Ye].constructor(_e[Ye])).buffer);return Ie},ge=function(_e,Ie,Ye,yt){var Xt;if(!me[Ye]){for(var sn="",re={},W=_e.length-1,V=0;V<W;++V)Xt=le(_e[V],sn,re),sn=Xt[0],re=Xt[1];me[Ye]=le(_e[W],sn,re)}var ne=ye({},me[Ye][1]);return Q(me[Ye][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+Ie.toString()+"}",Ye,ne,se(ne),yt)},ae=function(){return[I,k,_,O,M,T,a,l,w,C,c,o,b,s,h,m,x,g,We,he,Se]},pe=function(){return[I,k,_,O,M,T,t,i,R,u,P,E,c,K,$,o,y,U,N,S,H,F,B,z,m,x,te,ie,He,he]},Me=function(){return[Ut,Ve,dt,Ae,fe]},xe=function(){return[jt,ze]},Ke=function(){return[Et,dt,ce]},et=function(){return[Rt]},he=function(_e){return postMessage(_e,[_e.buffer])},Se=function(_e){return _e&&_e.size&&new I(_e.size)},Ue=function(_e,Ie,Ye,yt,Xt,sn){var re=ge(Ye,yt,Xt,function(W,V){re.terminate(),sn(W,V)});return Ie.consume||(_e=new I(_e)),re.postMessage([_e,Ie],[_e.buffer]),function(){re.terminate()}},Ne=function(_e){return _e.ondata=function(Ie,Ye){return postMessage([Ie,Ye],[Ie.buffer])},function(Ie){return _e.push(Ie.data[0],Ie.data[1])}},ct=function(_e,Ie,Ye,yt,Xt){var sn,re=ge(_e,yt,Xt,function(W,V){W?(re.terminate(),Ie.ondata.call(Ie,W)):(V[1]&&re.terminate(),Ie.ondata.call(Ie,W,V[0],V[1]))});re.postMessage(Ye),Ie.push=function(W,V){if(sn)throw"stream finished";if(!Ie.ondata)throw"no stream handler";re.postMessage([W,sn=V],[W.buffer])},Ie.terminate=function(){re.terminate()}},ft=function(_e,Ie){return _e[Ie]|_e[Ie+1]<<8},Ot=function(_e,Ie){return(_e[Ie]|_e[Ie+1]<<8|_e[Ie+2]<<16)+(_e[Ie+3]<<23)*2},dt=function(_e,Ie,Ye){for(;Ye;++Ie)_e[Ie]=Ye,Ye>>>=8},Ut=function(_e,Ie){var Ye=Ie.filename;if(_e[0]=31,_e[1]=139,_e[2]=8,_e[8]=Ie.level<2?4:Ie.level==9?2:0,_e[9]=3,Ie.mtime!=0&&dt(_e,4,Math.floor(new Date(Ie.mtime||Date.now())/1e3)),Ye){_e[3]=8;for(var yt=0;yt<=Ye.length;++yt)_e[yt+10]=Ye.charCodeAt(yt)}},jt=function(_e){if(_e[0]!=31||_e[1]!=139||_e[2]!=8)throw"invalid gzip data";var Ie=_e[3],Ye=10;Ie&4&&(Ye+=_e[10]|(_e[11]<<8)+2);for(var yt=(Ie>>3&1)+(Ie>>4&1);yt>0;yt-=!_e[Ye++]);return Ye+(Ie&2)},ze=function(_e){var Ie=_e.length;return(_e[Ie-4]|_e[Ie-3]<<8|_e[Ie-2]<<16)+2*(_e[Ie-1]<<23)},Ve=function(_e){return 10+(_e.filename&&_e.filename.length+1||0)},Et=function(_e,Ie){var Ye=Ie.level,yt=Ye==0?0:Ye<6?1:Ye==9?3:2;_e[0]=120,_e[1]=yt<<6|(yt?32-2*yt:1)},Rt=function(_e){if((_e[0]&15)!=8||_e[0]>>>4>7||(_e[0]<<8|_e[1])%31)throw"invalid zlib data";if(_e[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function ut(_e,Ie){return!Ie&&typeof _e=="function"&&(Ie=_e,_e={}),this.ondata=Ie,_e}var vt=function(){function _e(Ie,Ye){!Ye&&typeof Ie=="function"&&(Ye=Ie,Ie={}),this.ondata=Ye,this.o=Ie||{}}return _e.prototype.p=function(Ie,Ye){this.ondata(ie(Ie,this.o,0,0,!Ye),Ye)},_e.prototype.push=function(Ie,Ye){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=Ye,this.p(Ie,Ye||!1)},_e}(),Ze=function(){function _e(Ie,Ye){ct([pe,function(){return[Ne,vt]}],this,ut.call(this,Ie,Ye),function(yt){var Xt=new vt(yt.data);onmessage=Ne(Xt)},6)}return _e}();function ke(_e,Ie,Ye){if(Ye||(Ye=Ie,Ie={}),typeof Ye!="function")throw"no callback";return Ue(_e,Ie,[pe],function(yt){return he(He(yt.data[0],yt.data[1]))},0,Ye)}function He(_e,Ie){return Ie===void 0&&(Ie={}),ie(_e,Ie,0,0)}var we=function(){function _e(Ie){this.s={},this.p=new I(0),this.ondata=Ie}return _e.prototype.e=function(Ie){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var Ye=this.p.length,yt=new I(Ye+Ie.length);yt.set(this.p),yt.set(Ie,Ye),this.p=yt},_e.prototype.c=function(Ie){this.d=this.s.i=Ie||!1;var Ye=this.s.b,yt=g(this.p,this.o,this.s);this.ondata(x(yt,Ye,this.s.b),this.d),this.o=x(yt,this.s.b-32768),this.s.b=this.o.length,this.p=x(this.p,this.s.p/8>>0),this.s.p&=7},_e.prototype.push=function(Ie,Ye){this.e(Ie),this.c(Ye)},_e}(),Le=function(){function _e(Ie){this.ondata=Ie,ct([ae,function(){return[Ne,we]}],this,0,function(){var Ye=new we;onmessage=Ne(Ye)},7)}return _e}();function Pe(_e,Ie,Ye){if(Ye||(Ye=Ie,Ie={}),typeof Ye!="function")throw"no callback";return Ue(_e,Ie,[ae],function(yt){return he(We(yt.data[0],Se(yt.data[1])))},1,Ye)}function We(_e,Ie){return g(_e,Ie)}var Xe=function(){function _e(Ie,Ye){this.c=Ae(),this.l=0,this.v=1,vt.call(this,Ie,Ye)}return _e.prototype.push=function(Ie,Ye){vt.prototype.push.call(this,Ie,Ye)},_e.prototype.p=function(Ie,Ye){this.c.p(Ie),this.l+=Ie.length;var yt=ie(Ie,this.o,this.v&&Ve(this.o),Ye&&8,!Ye);this.v&&(Ut(yt,this.o),this.v=0),Ye&&(dt(yt,yt.length-8,this.c.d()),dt(yt,yt.length-4,this.l)),this.ondata(yt,Ye)},_e}(),gt=function(){function _e(Ie,Ye){ct([pe,Me,function(){return[Ne,vt,Xe]}],this,ut.call(this,Ie,Ye),function(yt){var Xt=new Xe(yt.data);onmessage=Ne(Xt)},8)}return _e}();function Lt(_e,Ie,Ye){if(Ye||(Ye=Ie,Ie={}),typeof Ye!="function")throw"no callback";return Ue(_e,Ie,[pe,Me,function(){return[en]}],function(yt){return he(en(yt.data[0],yt.data[1]))},2,Ye)}function en(_e,Ie){Ie===void 0&&(Ie={});var Ye=Ae(),yt=_e.length;Ye.p(_e);var Xt=ie(_e,Ie,Ve(Ie),8),sn=Xt.length;return Ut(Xt,Ie),dt(Xt,sn-8,Ye.d()),dt(Xt,sn-4,yt),Xt}var Zt=function(){function _e(Ie){this.v=1,we.call(this,Ie)}return _e.prototype.push=function(Ie,Ye){if(we.prototype.e.call(this,Ie),this.v){var yt=jt(this.p);if(yt>=this.p.length&&!Ye)return;this.p=this.p.subarray(yt),this.v=0}if(Ye){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}we.prototype.c.call(this,Ye)},_e}(),xt=function(){function _e(Ie){this.ondata=Ie,ct([ae,xe,function(){return[Ne,we,Zt]}],this,0,function(){var Ye=new Zt;onmessage=Ne(Ye)},9)}return _e}();function Ct(_e,Ie,Ye){if(Ye||(Ye=Ie,Ie={}),typeof Ye!="function")throw"no callback";return Ue(_e,Ie,[ae,xe,function(){return[mt]}],function(yt){return he(mt(yt.data[0]))},3,Ye)}function mt(_e,Ie){return g(_e.subarray(jt(_e),-8),Ie||new I(ze(_e)))}var Je=function(){function _e(Ie,Ye){this.c=ce(),this.v=1,vt.call(this,Ie,Ye)}return _e.prototype.push=function(Ie,Ye){vt.prototype.push.call(this,Ie,Ye)},_e.prototype.p=function(Ie,Ye){this.c.p(Ie);var yt=ie(Ie,this.o,this.v&&2,Ye&&4,!Ye);this.v&&(Et(yt,this.o),this.v=0),Ye&&dt(yt,yt.length-4,this.c.d()),this.ondata(yt,Ye)},_e}(),Qe=function(){function _e(Ie,Ye){ct([pe,Ke,function(){return[Ne,vt,Je]}],this,ut.call(this,Ie,Ye),function(yt){var Xt=new Je(yt.data);onmessage=Ne(Xt)},10)}return _e}();function Oe(_e,Ie,Ye){if(Ye||(Ye=Ie,Ie={}),typeof Ye!="function")throw"no callback";return Ue(_e,Ie,[pe,Ke,function(){return[je]}],function(yt){return he(je(yt.data[0],yt.data[1]))},4,Ye)}function je(_e,Ie){Ie===void 0&&(Ie={});var Ye=ce();Ye.p(_e);var yt=ie(_e,Ie,2,4);return Et(yt,Ie),dt(yt,yt.length-4,Ye.d()),yt}var St=function(){function _e(Ie){this.v=1,we.call(this,Ie)}return _e.prototype.push=function(Ie,Ye){if(we.prototype.e.call(this,Ie),this.v){if(this.p.length<2&&!Ye)return;this.p=this.p.subarray(2),this.v=0}if(Ye){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}we.prototype.c.call(this,Ye)},_e}(),bt=function(){function _e(Ie){this.ondata=Ie,ct([ae,et,function(){return[Ne,we,St]}],this,0,function(){var Ye=new St;onmessage=Ne(Ye)},11)}return _e}();function Dt(_e,Ie,Ye){if(Ye||(Ye=Ie,Ie={}),typeof Ye!="function")throw"no callback";return Ue(_e,Ie,[ae,et,function(){return[Qt]}],function(yt){return he(Qt(yt.data[0],Se(yt.data[1])))},5,Ye)}function Qt(_e,Ie){return g((Rt(_e),_e.subarray(2,-4)),Ie)}var _t=function(){function _e(Ie){this.G=Zt,this.I=we,this.Z=St,this.ondata=Ie}return _e.prototype.push=function(Ie,Ye){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(Ie,Ye);else{if(this.p&&this.p.length){var yt=new I(this.p.length+Ie.length);yt.set(this.p),yt.set(Ie,this.p.length)}else this.p=Ie;if(this.p.length>2){var Xt=this,sn=function(){Xt.ondata.apply(Xt,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(sn):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(sn):new this.Z(sn),this.s.push(this.p,Ye),this.p=null}}},_e}(),Gt=function(){function _e(Ie){this.G=xt,this.I=Le,this.Z=bt,this.ondata=Ie}return _e.prototype.push=function(Ie,Ye){_t.prototype.push.call(this,Ie,Ye)},_e}();function kt(_e,Ie,Ye){if(Ye||(Ye=Ie,Ie={}),typeof Ye!="function")throw"no callback";return _e[0]==31&&_e[1]==139&&_e[2]==8?Ct(_e,Ie,Ye):(_e[0]&15)!=8||_e[0]>>4>7||(_e[0]<<8|_e[1])%31?Pe(_e,Ie,Ye):Dt(_e,Ie,Ye)}function fn(_e,Ie){return _e[0]==31&&_e[1]==139&&_e[2]==8?mt(_e,Ie):(_e[0]&15)!=8||_e[0]>>4>7||(_e[0]<<8|_e[1])%31?We(_e,Ie):Qt(_e,Ie)}var mn=function(_e,Ie,Ye,yt){for(var Xt in _e){var sn=_e[Xt],re=Ie+Xt;sn instanceof I?Ye[re]=[sn,yt]:Array.isArray(sn)?Ye[re]=[sn[0],ye(yt,sn[1])]:mn(sn,re+"/",Ye,yt)}};function Tr(_e,Ie){var Ye=_e.length;if(!Ie&&typeof TextEncoder!="undefined")return new TextEncoder().encode(_e);for(var yt=new I(_e.length+(_e.length>>>1)),Xt=0,sn=function(ne){yt[Xt++]=ne},re=0;re<Ye;++re){if(Xt+5>yt.length){var W=new I(Xt+8+(Ye-re<<1));W.set(yt),yt=W}var V=_e.charCodeAt(re);V<128||Ie?sn(V):V<2048?(sn(192|V>>>6),sn(128|V&63)):V>55295&&V<57344?(V=65536+(V&1023<<10)|_e.charCodeAt(++re)&1023,sn(240|V>>>18),sn(128|V>>>12&63),sn(128|V>>>6&63),sn(128|V&63)):(sn(224|V>>>12),sn(128|V>>>6&63),sn(128|V&63))}return x(yt,0,Xt)}function Mr(_e,Ie){var Ye="";if(!Ie&&typeof TextDecoder!="undefined")return new TextDecoder().decode(_e);for(var yt=0;yt<_e.length;){var Xt=_e[yt++];Xt<128||Ie?Ye+=String.fromCharCode(Xt):Xt<224?Ye+=String.fromCharCode((Xt&31)<<6|_e[yt++]&63):Xt<240?Ye+=String.fromCharCode((Xt&15)<<12|(_e[yt++]&63)<<6|_e[yt++]&63):(Xt=((Xt&15)<<18|(_e[yt++]&63)<<12|(_e[yt++]&63)<<6|_e[yt++]&63)-65536,Ye+=String.fromCharCode(55296|Xt>>10,56320|Xt&1023))}return Ye}var kr=function(_e,Ie){return Ie+30+ft(_e,Ie+26)+ft(_e,Ie+28)},Un=function(_e,Ie,Ye){var yt=ft(_e,Ie+28),Xt=Mr(_e.subarray(Ie+46,Ie+46+yt),!(ft(_e,Ie+8)&2048)),sn=Ie+46+yt,re=Ye?Ra(_e,sn):[Ot(_e,Ie+20),Ot(_e,Ie+24),Ot(_e,Ie+42)],W=re[0],V=re[1],ne=re[2];return[ft(_e,Ie+10),W,V,Xt,sn+ft(_e,Ie+30)+ft(_e,Ie+32),ne]},Ra=function(_e,Ie){for(;ft(_e,Ie)!=1;Ie+=4+ft(_e,Ie+2));return[Ot(_e,Ie+12),Ot(_e,Ie+4),Ot(_e,Ie+20)]},Xr=function(_e,Ie,Ye,yt,Xt,sn,re,W,V,ne){var ve=sn.length,oe=yt.length;dt(_e,Ie,V!=null?33639248:67324752),Ie+=4,V!=null&&(_e[Ie]=20,Ie+=2),_e[Ie]=20,Ie+=2,_e[Ie++]=ne==8&&(W.level==1?6:W.level<6?4:W.level==9?2:0),_e[Ie++]=re&&8,_e[Ie]=ne,Ie+=2;var tt=new Date(W.mtime||Date.now()),Kt=tt.getFullYear()-1980;if(Kt<0||Kt>119)throw"date not in range 1980-2099";dt(_e,Ie,(Kt<<24)*2|tt.getMonth()+1<<21|tt.getDate()<<16|tt.getHours()<<11|tt.getMinutes()<<5|tt.getSeconds()>>>1),Ie+=4,dt(_e,Ie,Ye),dt(_e,Ie+4,oe),dt(_e,Ie+8,Xt),dt(_e,Ie+12,ve),Ie+=16,V!=null&&(dt(_e,Ie+=10,V),Ie+=4),_e.set(sn,Ie),Ie+=ve,V==null&&_e.set(yt,Ie)},aa=function(_e,Ie,Ye,yt,Xt){dt(_e,Ie,101010256),dt(_e,Ie+8,Ye),dt(_e,Ie+10,Ye),dt(_e,Ie+12,yt),dt(_e,Ie+16,Xt)};function Kr(_e,Ie,Ye){if(Ye||(Ye=Ie,Ie={}),typeof Ye!="function")throw"no callback";var yt={};mn(_e,"",yt,Ie);var Xt=Object.keys(yt),sn=Xt.length,re=0,W=0,V=sn,ne=new Array(sn),ve=[],oe=function(){for(var Cn=0;Cn<ve.length;++Cn)ve[Cn]()},tt=function(){var Cn=new I(W+22),Jt=re,Vn=W-re;W=0;for(var Xn=0;Xn<V;++Xn){var lr=ne[Xn];try{Xr(Cn,W,lr.c,lr.d,lr.m,lr.n,lr.u,lr.p,null,lr.t),Xr(Cn,re,lr.c,lr.d,lr.m,lr.n,lr.u,lr.p,W,lr.t),re+=46+lr.n.length,W+=30+lr.n.length+lr.d.length}catch(Rr){return Ye(Rr,null)}}aa(Cn,re,ne.length,Vn,Jt),Ye(null,Cn)};sn||tt();for(var Kt=function(Cn){var Jt=Xt[Cn],Vn=yt[Jt],Xn=Vn[0],lr=Vn[1],Rr=Ae(),qr=Xn.length;Rr.p(Xn);var zr=Tr(Jt),Ca=zr.length,Dr=lr.level==0?0:8,ya=function(ka,fi){if(ka)oe(),Ye(ka,null);else{var Ka=fi.length;ne[Cn]={t:Dr,d:fi,m:qr,c:Rr.d(),u:Jt.length!=Ka,n:zr,p:lr},re+=30+Ca+Ka,W+=76+2*Ca+Ka,--sn||tt()}};if(zr.length>65535&&ya("filename too long",null),!Dr)ya(null,Xn);else if(qr<16e4)try{ya(null,He(Xn,lr))}catch(ka){ya(ka,null)}else ve.push(ke(Xn,lr,ya))},dn=0;dn<V;++dn)Kt(dn);return oe}function _a(_e,Ie){Ie===void 0&&(Ie={});var Ye={},yt=[];mn(_e,"",Ye,Ie);var Xt=0,sn=0;for(var re in Ye){var W=Ye[re],V=W[0],ne=W[1],ve=ne.level==0?0:8,oe=Tr(re),tt=oe.length;if(oe.length>65535)throw"filename too long";var Kt=ve?He(V,ne):V,dn=Kt.length,Cn=Ae();Cn.p(V),yt.push({t:ve,d:Kt,m:V.length,c:Cn.d(),u:re.length!=tt,n:oe,o:Xt,p:ne}),Xt+=30+tt+dn,sn+=76+2*tt+dn}for(var Jt=new I(sn+22),Vn=Xt,Xn=sn-Xt,lr=0;lr<yt.length;++lr){var Rr=yt[lr];Xr(Jt,Rr.o,Rr.c,Rr.d,Rr.m,Rr.n,Rr.u,Rr.p,null,Rr.t),Xr(Jt,Xt,Rr.c,Rr.d,Rr.m,Rr.n,Rr.u,Rr.p,Rr.o,Rr.t),Xt+=46+Rr.n.length}return aa(Jt,Xt,yt.length,Xn,Vn),Jt}function di(_e,Ie){if(typeof Ie!="function")throw"no callback";for(var Ye=[],yt=function(){for(var tt=0;tt<Ye.length;++tt)Ye[tt]()},Xt={},sn=_e.length-22;Ot(_e,sn)!=101010256;--sn)if(!sn||_e.length-sn>65558){Ie("invalid zip file",null);return}var re=ft(_e,sn+8);re||Ie(null,{});var W=re,V=Ot(_e,sn+16),ne=V==4294967295;if(ne){if(sn=Ot(_e,sn-12),Ot(_e,sn)!=101075792)throw"invalid zip file";W=re=Ot(_e,sn+32),V=Ot(_e,sn+48)}for(var ve=function(tt){var Kt=Un(_e,V,ne),dn=Kt[0],Cn=Kt[1],Jt=Kt[2],Vn=Kt[3],Xn=Kt[4],lr=Kt[5],Rr=kr(_e,lr);V=Xn;var qr=function(Ca,Dr){Ca?(yt(),Ie(Ca,null)):(Xt[Vn]=Dr,--re||Ie(null,Xt))};if(!dn)qr(null,x(_e,Rr,Rr+Cn));else if(dn==8){var zr=_e.subarray(Rr,Rr+Cn);if(Cn<32e4)try{qr(null,We(zr,new I(Jt)))}catch(Ca){qr(Ca,null)}else Ye.push(Pe(zr,{size:Jt},qr))}else qr("unknown compression type "+dn,null)},oe=0;oe<W;++oe)ve(oe);return yt}function Ei(_e){for(var Ie={},Ye=_e.length-22;Ot(_e,Ye)!=101010256;--Ye)if(!Ye||_e.length-Ye>65558)throw"invalid zip file";var yt=ft(_e,Ye+8);if(!yt)return{};var Xt=Ot(_e,Ye+16),sn=Xt==4294967295;if(sn){if(Ye=Ot(_e,Ye-12),Ot(_e,Ye)!=101075792)throw"invalid zip file";yt=Ot(_e,Ye+32),Xt=Ot(_e,Ye+48)}for(var re=0;re<yt;++re){var W=Un(_e,Xt,sn),V=W[0],ne=W[1],ve=W[2],oe=W[3],tt=W[4],Kt=W[5],dn=kr(_e,Kt);if(Xt=tt,!V)Ie[oe]=x(_e,dn,dn+ne);else if(V==8)Ie[oe]=We(_e.subarray(dn,dn+ne),new I(ve));else throw"unknown compression type "+V}return Ie}},csWT:function(Be,ee,v){Be.exports=v.p+"static/choose.4ad1045f.svg"},dMvE:function(Be,ee){var v={linear:function(Q){return Q},quadraticIn:function(Q){return Q*Q},quadraticOut:function(Q){return Q*(2-Q)},quadraticInOut:function(Q){return(Q*=2)<1?.5*Q*Q:-.5*(--Q*(Q-2)-1)},cubicIn:function(Q){return Q*Q*Q},cubicOut:function(Q){return--Q*Q*Q+1},cubicInOut:function(Q){return(Q*=2)<1?.5*Q*Q*Q:.5*((Q-=2)*Q*Q+2)},quarticIn:function(Q){return Q*Q*Q*Q},quarticOut:function(Q){return 1- --Q*Q*Q*Q},quarticInOut:function(Q){return(Q*=2)<1?.5*Q*Q*Q*Q:-.5*((Q-=2)*Q*Q*Q-2)},quinticIn:function(Q){return Q*Q*Q*Q*Q},quinticOut:function(Q){return--Q*Q*Q*Q*Q+1},quinticInOut:function(Q){return(Q*=2)<1?.5*Q*Q*Q*Q*Q:.5*((Q-=2)*Q*Q*Q*Q+2)},sinusoidalIn:function(Q){return 1-Math.cos(Q*Math.PI/2)},sinusoidalOut:function(Q){return Math.sin(Q*Math.PI/2)},sinusoidalInOut:function(Q){return .5*(1-Math.cos(Math.PI*Q))},exponentialIn:function(Q){return Q===0?0:Math.pow(1024,Q-1)},exponentialOut:function(Q){return Q===1?1:1-Math.pow(2,-10*Q)},exponentialInOut:function(Q){return Q===0?0:Q===1?1:(Q*=2)<1?.5*Math.pow(1024,Q-1):.5*(-Math.pow(2,-10*(Q-1))+2)},circularIn:function(Q){return 1-Math.sqrt(1-Q*Q)},circularOut:function(Q){return Math.sqrt(1- --Q*Q)},circularInOut:function(Q){return(Q*=2)<1?-.5*(Math.sqrt(1-Q*Q)-1):.5*(Math.sqrt(1-(Q-=2)*Q)+1)},elasticIn:function(Q){var I,k=.1,_=.4;return Q===0?0:Q===1?1:(!k||k<1?(k=1,I=_/4):I=_*Math.asin(1/k)/(2*Math.PI),-(k*Math.pow(2,10*(Q-=1))*Math.sin((Q-I)*(2*Math.PI)/_)))},elasticOut:function(Q){var I,k=.1,_=.4;return Q===0?0:Q===1?1:(!k||k<1?(k=1,I=_/4):I=_*Math.asin(1/k)/(2*Math.PI),k*Math.pow(2,-10*Q)*Math.sin((Q-I)*(2*Math.PI)/_)+1)},elasticInOut:function(Q){var I,k=.1,_=.4;return Q===0?0:Q===1?1:(!k||k<1?(k=1,I=_/4):I=_*Math.asin(1/k)/(2*Math.PI),(Q*=2)<1?-.5*(k*Math.pow(2,10*(Q-=1))*Math.sin((Q-I)*(2*Math.PI)/_)):k*Math.pow(2,-10*(Q-=1))*Math.sin((Q-I)*(2*Math.PI)/_)*.5+1)},backIn:function(Q){var I=1.70158;return Q*Q*((I+1)*Q-I)},backOut:function(Q){var I=1.70158;return--Q*Q*((I+1)*Q+I)+1},backInOut:function(Q){var I=1.70158*1.525;return(Q*=2)<1?.5*(Q*Q*((I+1)*Q-I)):.5*((Q-=2)*Q*((I+1)*Q+I)+2)},bounceIn:function(Q){return 1-v.bounceOut(1-Q)},bounceOut:function(Q){return Q<1/2.75?7.5625*Q*Q:Q<2/2.75?7.5625*(Q-=1.5/2.75)*Q+.75:Q<2.5/2.75?7.5625*(Q-=2.25/2.75)*Q+.9375:7.5625*(Q-=2.625/2.75)*Q+.984375},bounceInOut:function(Q){return Q<.5?v.bounceIn(Q*2)*.5:v.bounceOut(Q*2-1)*.5+.5}},Z=v;Be.exports=Z},dejd:function(Be,ee,v){},djh8:function(Be,ee,v){Be.exports=v.p+"static/qrCode.d852fdfc.png"},dmUQ:function(Be,ee,v){"use strict";var Z=v("Ff2n"),Q=v("rePB"),I=v("1OyB"),k=v("vuIU"),_=v("Ji7U"),O=v("md7G"),M=v("foSv"),T=v("q1tI"),n=v.n(T),p=v("TSYQ"),a=v.n(p),t=v("4IlW");function A(h,m){var x=Object.keys(h);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(h);m&&(g=g.filter(function(y){return Object.getOwnPropertyDescriptor(h,y).enumerable})),x.push.apply(x,g)}return x}function l(h){for(var m=1;m<arguments.length;m++){var x=arguments[m]!=null?arguments[m]:{};m%2?A(Object(x),!0).forEach(function(g){Object(Q.a)(h,g,x[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(x)):A(Object(x)).forEach(function(g){Object.defineProperty(h,g,Object.getOwnPropertyDescriptor(x,g))})}return h}function i(h){var m=c();return function(){var g=Object(M.a)(h),y;if(m){var U=Object(M.a)(this).constructor;y=Reflect.construct(g,arguments,U)}else y=g.apply(this,arguments);return Object(O.a)(this,y)}}function c(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(h){return!1}}function d(){}function f(h){h.preventDefault()}var o=function(m){return m.replace(/[^\w.-]+/g,"")},u=200,E=600,R=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,w=function(m){return m!=null},P=function(m,x){return x===m||typeof x=="number"&&typeof m=="number"&&isNaN(x)&&isNaN(m)},C=function(h){Object(_.a)(x,h);var m=i(x);function x(g){var y;Object(I.a)(this,x),y=m.call(this,g),y.onKeyDown=function(S){var H=y.props,F=H.onKeyDown,B=H.onPressEnter;if(S.keyCode===t.a.UP){var z=y.getRatio(S);y.up(S,z,null),y.stop()}else if(S.keyCode===t.a.DOWN){var K=y.getRatio(S);y.down(S,K,null),y.stop()}else S.keyCode===t.a.ENTER&&B&&B(S);if(y.recordCursorPosition(),y.lastKeyCode=S.keyCode,F){for(var $=arguments.length,te=new Array($>1?$-1:0),fe=1;fe<$;fe++)te[fe-1]=arguments[fe];F.apply(void 0,[S].concat(te))}},y.onKeyUp=function(S){var H=y.props.onKeyUp;if(y.stop(),y.recordCursorPosition(),H){for(var F=arguments.length,B=new Array(F>1?F-1:0),z=1;z<F;z++)B[z-1]=arguments[z];H.apply(void 0,[S].concat(B))}},y.onChange=function(S){var H=y.props.onChange;y.state.focused&&(y.inputting=!0),y.rawInput=y.props.parser(y.getValueFromEvent(S)),y.setState({inputValue:y.rawInput}),H(y.toNumber(y.rawInput))},y.onMouseUp=function(){var S=y.props.onMouseUp;y.recordCursorPosition(),S&&S.apply(void 0,arguments)},y.onFocus=function(){var S;y.setState({focused:!0}),(S=y.props).onFocus.apply(S,arguments)},y.onBlur=function(){var S=y.props.onBlur;y.inputting=!1,y.setState({focused:!1});var H=y.getCurrentValidValue(y.state.inputValue),F=y.setValue(H,d);if(S){var B=y.input.value,z=y.getInputDisplayValue({focus:!1,value:F});y.input.value=z&&Number(z),S.apply(void 0,arguments),y.input.value=B}},y.getRatio=function(S){var H=1;return S.metaKey||S.ctrlKey?H=.1:S.shiftKey&&(H=10),H},y.getFullNum=function(S){return isNaN(S)?S:/e/i.test(String(S))?Number(S).toFixed(18).replace(/\.?0+$/,""):S},y.getPrecision=function(S){if(w(y.props.precision))return y.props.precision;var H=String(S);if(H.indexOf("e-")>=0)return parseInt(H.slice(H.indexOf("e-")+2),10);var F=0;return H.indexOf(".")>=0&&(F=H.length-H.indexOf(".")-1),F},y.getInputDisplayValue=function(S){var H=S||y.state,F=H.focused,B=H.inputValue,z=H.value,K;F?K=B:K=y.toPrecisionAsStep(z),K==null&&(K="");var $=y.formatWrapper(K);return w(y.props.decimalSeparator)&&($=$.toString().replace(".",y.props.decimalSeparator)),$},y.recordCursorPosition=function(){try{y.cursorStart=y.input.selectionStart,y.cursorEnd=y.input.selectionEnd,y.currentValue=y.input.value,y.cursorBefore=y.input.value.substring(0,y.cursorStart),y.cursorAfter=y.input.value.substring(y.cursorEnd)}catch(S){}},y.restoreByAfter=function(S){if(S===void 0)return!1;var H=y.input.value,F=H.lastIndexOf(S);if(F===-1)return!1;var B=y.cursorBefore.length;return y.lastKeyCode===t.a.DELETE&&y.cursorBefore.charAt(B-1)===S[0]?(y.fixCaret(B,B),!0):F+S.length===H.length?(y.fixCaret(F,F),!0):!1},y.partRestoreByAfter=function(S){return S===void 0?!1:Array.prototype.some.call(S,function(H,F){var B=S.substring(F);return y.restoreByAfter(B)})},y.isNotCompleteNumber=function(S){return isNaN(S)||S===""||S===null||S&&S.toString().indexOf(".")===S.toString().length-1},y.stop=function(){y.autoStepTimer&&clearTimeout(y.autoStepTimer)},y.down=function(S,H,F){y.pressingUpOrDown=!0,y.step("down",S,H,F)},y.up=function(S,H,F){y.pressingUpOrDown=!0,y.step("up",S,H,F)},y.saveInput=function(S){y.input=S};var U=g.value;U===void 0&&(U=g.defaultValue),y.state={focused:g.autoFocus};var N=y.getValidValue(y.toNumber(U));return y.state=l(l({},y.state),{},{inputValue:y.toPrecisionAsStep(N),value:N}),y}return Object(k.a)(x,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(y){var U=this.props,N=U.value,S=U.onChange,H=U.max,F=U.min,B=this.state.focused;if(y){if(!P(y.value,N)||!P(y.max,H)||!P(y.min,F)){var z=B?N:this.getValidValue(N),K;this.pressingUpOrDown?K=z:this.inputting?K=this.rawInput:K=this.toPrecisionAsStep(z),this.setState({value:z,inputValue:K})}var $="value"in this.props?N:this.state.value;"max"in this.props&&y.max!==H&&typeof $=="number"&&$>H&&S&&S(H),"min"in this.props&&y.min!==F&&typeof $=="number"&&$<F&&S&&S(F)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var te=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===t.a.BACKSPACE?te=this.cursorStart-1:this.lastKeyCode===t.a.DELETE&&(te=this.cursorStart):te=this.input.value.length,this.fixCaret(te,te)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case t.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case t.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(fe){}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(y){var U=y;return U===""?U="":this.isNotCompleteNumber(parseFloat(U))?U=this.state.value:U=this.getValidValue(U),this.toNumber(U)}},{key:"getValueFromEvent",value:function(y){var U=y.target.value.trim().replace(/。/g,".");return w(this.props.decimalSeparator)&&(U=U.replace(this.props.decimalSeparator,".")),U}},{key:"getValidValue",value:function(y){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,S=parseFloat(y);return isNaN(S)?y:(S<U&&(S=U),S>N&&(S=N),S)}},{key:"setValue",value:function(y,U){var N=this.props.precision,S=this.isNotCompleteNumber(parseFloat(y))?null:parseFloat(y),H=this.state.value,F=H===void 0?null:H,B=this.state.inputValue,z=B===void 0?null:B,K=typeof S=="number"?S.toFixed(N):"".concat(S),$=S!==F||K!=="".concat(z);return"value"in this.props?(z=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:z},U)):this.setState({value:S,inputValue:this.toPrecisionAsStep(y)},U),$&&this.props.onChange(S),S}},{key:"getMaxPrecision",value:function(y){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,N=this.props,S=N.precision,H=N.step;if(w(S))return S;var F=this.getPrecision(U),B=this.getPrecision(H),z=this.getPrecision(y);return y?Math.max(z,F+B):F+B}},{key:"getPrecisionFactor",value:function(y){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,N=this.getMaxPrecision(y,U);return Math.pow(10,N)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(y){return this.props.formatter?this.props.formatter(y):y}},{key:"toPrecisionAsStep",value:function(y){if(this.isNotCompleteNumber(y)||y==="")return y;var U=Math.abs(this.getMaxPrecision(y));return isNaN(U)?y.toString():Number(y).toFixed(U)}},{key:"toNumber",value:function(y){var U=this.props.precision,N=this.state.focused,S=y&&y.length>16&&N;return this.isNotCompleteNumber(y)||S?y:w(U)?Math.round(y*Math.pow(10,U))/Math.pow(10,U):Number(y)}},{key:"upStep",value:function(y,U){var N=this.props.step,S=this.getPrecisionFactor(y,U),H=Math.abs(this.getMaxPrecision(y,U)),F=((S*y+S*N*U)/S).toFixed(H);return this.toNumber(F)}},{key:"downStep",value:function(y,U){var N=this.props.step,S=this.getPrecisionFactor(y,U),H=Math.abs(this.getMaxPrecision(y,U)),F=((S*y-S*N*U)/S).toFixed(H);return this.toNumber(F)}},{key:"step",value:function(y,U){var N=this,S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,H=arguments.length>3?arguments[3]:void 0;this.stop(),U&&(U.persist(),U.preventDefault());var F=this.props;if(F.disabled)return;var B=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(B))return;var z=this["".concat(y,"Step")](B,S),K=z>F.max||z<F.min;if(z>F.max?z=F.max:z<F.min&&(z=F.min),this.setValue(z,null),this.setState({focused:!0},function(){N.pressingUpOrDown=!1}),K)return;this.autoStepTimer=setTimeout(function(){N[y](U,S,!0)},H?u:E)}},{key:"fixCaret",value:function(y,U){if(y===void 0||U===void 0||!this.input||!this.input.value)return;try{var N=this.input.selectionStart,S=this.input.selectionEnd;(y!==N||U!==S)&&this.input.setSelectionRange(y,U)}catch(H){}}},{key:"render",value:function(){var y,U=this.props,N=U.prefixCls,S=U.disabled,H=U.readOnly,F=U.useTouch,B=U.autoComplete,z=U.upHandler,K=U.downHandler,$=U.className,te=U.max,fe=U.min,Ae=U.style,ce=U.title,ie=U.onMouseEnter,ye=U.onMouseLeave,le=U.onMouseOver,me=U.onMouseOut,se=U.required,ge=U.onClick,ae=U.tabIndex,pe=U.type,Me=U.placeholder,xe=U.id,Ke=U.inputMode,et=U.pattern,he=U.step,Se=U.maxLength,Ue=U.autoFocus,Ne=U.name,ct=U.onPaste,ft=U.onInput,Ot=Object(Z.a)(U,["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"]),dt=this.state,Ut=dt.value,jt=dt.focused,ze=a()(N,(y={},Object(Q.a)(y,$,!!$),Object(Q.a)(y,"".concat(N,"-disabled"),S),Object(Q.a)(y,"".concat(N,"-focused"),jt),y)),Ve={};Object.keys(Ot).forEach(function(We){(We.substr(0,5)==="data-"||We.substr(0,5)==="aria-"||We==="role")&&(Ve[We]=Ot[We])});var Et=!H&&!S,Rt=this.getInputDisplayValue(null),ut=(Ut||Ut===0)&&(isNaN(Ut)||Number(Ut)>=te),vt=(Ut||Ut===0)&&(isNaN(Ut)||Number(Ut)<=fe),Ze=ut||S||H,ke=vt||S||H,He=a()("".concat(N,"-handler"),"".concat(N,"-handler-up"),Object(Q.a)({},"".concat(N,"-handler-up-disabled"),Ze)),we=a()("".concat(N,"-handler"),"".concat(N,"-handler-down"),Object(Q.a)({},"".concat(N,"-handler-down-disabled"),ke)),Le=F?{onTouchStart:Ze?d:this.up,onTouchEnd:this.stop}:{onMouseDown:Ze?d:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Pe=F?{onTouchStart:ke?d:this.down,onTouchEnd:this.stop}:{onMouseDown:ke?d:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return n.a.createElement("div",{className:ze,style:Ae,title:ce,onMouseEnter:ie,onMouseLeave:ye,onMouseOver:le,onMouseOut:me,onFocus:function(){return null},onBlur:function(){return null}},n.a.createElement("div",{className:"".concat(N,"-handler-wrap")},n.a.createElement("span",Object.assign({unselectable:"on"},Le,{role:"button","aria-label":"Increase Value","aria-disabled":Ze,className:He}),z||n.a.createElement("span",{unselectable:"on",className:"".concat(N,"-handler-up-inner"),onClick:f})),n.a.createElement("span",Object.assign({unselectable:"on"},Pe,{role:"button","aria-label":"Decrease Value","aria-disabled":ke,className:we}),K||n.a.createElement("span",{unselectable:"on",className:"".concat(N,"-handler-down-inner"),onClick:f}))),n.a.createElement("div",{className:"".concat(N,"-input-wrap")},n.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":fe,"aria-valuemax":te,"aria-valuenow":Ut,required:se,type:pe,placeholder:Me,onPaste:ct,onClick:ge,onMouseUp:this.onMouseUp,className:"".concat(N,"-input"),tabIndex:ae,autoComplete:B,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Et?this.onKeyDown:d,onKeyUp:Et?this.onKeyUp:d,autoFocus:Ue,maxLength:Se,readOnly:H,disabled:S,max:te,min:fe,step:he,name:Ne,title:ce,id:xe,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Rt),pattern:et,inputMode:Ke,onInput:ft},Ve))))}}]),x}(n.a.Component);C.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:R,min:-R,step:1,style:{},onChange:d,onKeyDown:d,onPressEnter:d,onFocus:d,onBlur:d,parser:o,required:!1,autoComplete:"off"};var b=C,s=ee.a=b},dqUG:function(Be,ee,v){var Z=v("Gev7"),Q=v("bYtY"),I=v("6GrX"),k=v("pzxd"),_=v("gut8"),O=_.ContextCachedBy,M=function(n){Z.call(this,n)};M.prototype={constructor:M,type:"text",brush:function(n,p){var a=this.style;this.__dirty&&k.normalizeTextStyle(a,!0),a.fill=a.stroke=a.shadowBlur=a.shadowColor=a.shadowOffsetX=a.shadowOffsetY=null;var t=a.text;if(t!=null&&(t+=""),!k.needDrawText(t,a)){n.__attrCachedBy=O.NONE;return}this.setTransform(n),k.renderText(this,n,t,a,null,p),this.restoreTransform(n)},getBoundingRect:function(){var n=this.style;if(this.__dirty&&k.normalizeTextStyle(n,!0),!this._rect){var p=n.text;p!=null?p+="":p="";var a=I.getBoundingRect(n.text+"",n.font,n.textAlign,n.textVerticalAlign,n.textPadding,n.textLineHeight,n.rich);if(a.x+=n.x||0,a.y+=n.y||0,k.getStroke(n.textStroke,n.textStrokeWidth)){var t=n.textStrokeWidth;a.x-=t/2,a.y-=t/2,a.width+=t,a.height+=t}this._rect=a}return this._rect}},Q.inherits(M,Z);var T=M;Be.exports=T},dwhp:function(Be,ee,v){},eqIj:function(Be,ee,v){Be.exports=v.p+"static/ys.88936215.svg"},fAei:function(Be,ee,v){"use strict";v.d(ee,"a",function(){return u.a});var Z=v("rePB"),Q=v("VTBJ"),I=v("KQm4"),k=v("1OyB"),_=v("vuIU"),O=v("Ji7U"),M=v("LK+K"),T=v("q1tI"),n=v("4IlW"),p=v("Kwbf"),a=v("TSYQ"),t=v.n(a),A=v("sboe"),l=v("OZM5"),i=v("815F"),c=v("ODXe"),d=v("Ff2n"),f=v("+nKL"),o=v("8XRh"),u=v("WaYH"),E=function(fe,Ae){var ce=fe.className,ie=fe.style,ye=fe.motion,le=fe.motionNodes,me=fe.motionType,se=fe.onMotionStart,ge=fe.onMotionEnd,ae=fe.active,pe=fe.treeNodeRequiredProps,Me=Object(d.a)(fe,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),xe=T.useState(!0),Ke=Object(c.a)(xe,2),et=Ke[0],he=Ke[1],Se=T.useContext(A.a),Ue=Se.prefixCls,Ne=T.useRef(!1),ct=function(){Ne.current||ge(),Ne.current=!0};return Object(T.useEffect)(function(){le&&me==="hide"&&et&&he(!1)},[le]),Object(T.useEffect)(function(){return le&&se(),function(){le&&ct()}},[]),le?T.createElement(o.default,Object.assign({ref:Ae,visible:et},ye,{motionAppear:me==="show",onAppearEnd:ct,onLeaveEnd:ct}),function(ft,Ot){var dt=ft.className,Ut=ft.style;return T.createElement("div",{ref:Ot,className:t()("".concat(Ue,"-treenode-motion"),dt),style:Ut},le.map(function(jt){var ze=jt.data,Ve=ze.key,Et=Object(d.a)(ze,["key"]),Rt=jt.isStart,ut=jt.isEnd;delete Et.children;var vt=Object(i.f)(Ve,pe);return T.createElement(u.a,Object.assign({},Et,vt,{active:ae,data:jt.data,key:Ve,isStart:Rt,isEnd:ut}))}))}):T.createElement(u.a,Object.assign({domRef:Ae,className:ce,style:ie},Me,{active:ae}))};E.displayName="MotionTreeNode";var R=T.forwardRef(E),w=R;function P(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ae=te.length,ce=fe.length;if(Math.abs(Ae-ce)!==1)return{add:!1,key:null};function ie(ye,le){var me=new Map;ye.forEach(function(ge){me.set(ge,!0)});var se=le.filter(function(ge){return!me.has(ge)});return se.length===1?se[0]:null}return Ae<ce?{add:!0,key:ie(te,fe)}:{add:!1,key:ie(fe,te)}}function C(te,fe,Ae){var ce=te.findIndex(function(me){var se=me.data;return se.key===Ae}),ie=te[ce+1],ye=fe.findIndex(function(me){var se=me.data;return se.key===Ae});if(ie){var le=fe.findIndex(function(me){var se=me.data;return se.key===ie.data.key});return fe.slice(ye+1,le)}return fe.slice(ye+1)}var b={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},s=function(){},h="RC_TREE_MOTION_".concat(Math.random()),m={key:h},x={key:h,level:0,index:0,pos:"0",node:m},g={parent:null,children:[],pos:x.pos,data:m,isStart:[],isEnd:[]};function y(te,fe,Ae,ce){return fe===!1||!Ae?te:te.slice(0,Math.ceil(Ae/ce)+1)}function U(te){var fe=te.data.key,Ae=te.pos;return Object(i.e)(fe,Ae)}function N(te){for(var fe=String(te.data.key),Ae=te;Ae.parent;)Ae=Ae.parent,fe="".concat(Ae.data.key," > ").concat(fe);return fe}var S=function(fe,Ae){var ce=fe.prefixCls,ie=fe.data,ye=fe.selectable,le=fe.checkable,me=fe.expandedKeys,se=fe.selectedKeys,ge=fe.checkedKeys,ae=fe.loadedKeys,pe=fe.loadingKeys,Me=fe.halfCheckedKeys,xe=fe.keyEntities,Ke=fe.disabled,et=fe.dragging,he=fe.dragOverNodeKey,Se=fe.dropPosition,Ue=fe.motion,Ne=fe.height,ct=fe.itemHeight,ft=fe.virtual,Ot=fe.focusable,dt=fe.activeItem,Ut=fe.focused,jt=fe.tabIndex,ze=fe.onKeyDown,Ve=fe.onFocus,Et=fe.onBlur,Rt=fe.onActiveChange,ut=fe.onListChangeStart,vt=fe.onListChangeEnd,Ze=Object(d.a)(fe,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),ke=T.useRef(null);T.useImperativeHandle(Ae,function(){return{scrollTo:function(fn){ke.current.scrollTo(fn)}}});var He=T.useState(me),we=Object(c.a)(He,2),Le=we[0],Pe=we[1],We=T.useState(ie),Xe=Object(c.a)(We,2),gt=Xe[0],Lt=Xe[1],en=T.useState(ie),Zt=Object(c.a)(en,2),xt=Zt[0],Ct=Zt[1],mt=T.useState([]),Je=Object(c.a)(mt,2),Qe=Je[0],Oe=Je[1],je=T.useState(null),St=Object(c.a)(je,2),bt=St[0],Dt=St[1];function Qt(){Lt(ie),Ct(ie),Oe([]),Dt(null),vt()}T.useEffect(function(){Pe(me);var kt=P(Le,me);if(kt.key!==null)if(kt.add){var fn=gt.findIndex(function(Ra){var Xr=Ra.data.key;return Xr===kt.key}),mn=y(C(gt,ie,kt.key),ft,Ne,ct),Tr=gt.slice();Tr.splice(fn+1,0,g),Ct(Tr),Oe(mn),Dt("show")}else{var Mr=ie.findIndex(function(Ra){var Xr=Ra.data.key;return Xr===kt.key}),kr=y(C(ie,gt,kt.key),ft,Ne,ct),Un=ie.slice();Un.splice(Mr+1,0,g),Ct(Un),Oe(kr),Dt("hide")}else gt!==ie&&(Lt(ie),Ct(ie))},[me,ie]),T.useEffect(function(){et||Qt()},[et]);var _t=Ue?xt:ie,Gt={expandedKeys:me,selectedKeys:se,loadedKeys:ae,loadingKeys:pe,checkedKeys:ge,halfCheckedKeys:Me,dragOverNodeKey:he,dropPosition:Se,keyEntities:xe};return T.createElement(T.Fragment,null,Ut&&dt&&T.createElement("span",{style:b,"aria-live":"assertive"},N(dt)),T.createElement("div",{role:"tree"},T.createElement("input",{style:b,disabled:Ot===!1||Ke,tabIndex:Ot!==!1?jt:null,onKeyDown:ze,onFocus:Ve,onBlur:Et,value:"",onChange:s})),T.createElement(f.a,Object.assign({},Ze,{data:_t,itemKey:U,height:Ne,fullHeight:!1,virtual:ft,itemHeight:ct,prefixCls:"".concat(ce,"-list"),ref:ke}),function(kt){var fn=kt.pos,mn=kt.data,Tr=mn.key,Mr=Object(d.a)(mn,["key"]),kr=kt.isStart,Un=kt.isEnd,Ra=Object(i.e)(Tr,fn);delete Mr.children;var Xr=Object(i.f)(Ra,Gt);return T.createElement(w,Object.assign({},Mr,Xr,{active:dt&&Tr===dt.data.key,pos:fn,data:kt.data,isStart:kr,isEnd:Un,motion:Ue,motionNodes:Tr===h?Qe:null,motionType:bt,onMotionStart:ut,onMotionEnd:Qt,treeNodeRequiredProps:Gt,onMouseMove:function(){Rt(null)}}))}))},H=T.forwardRef(S);H.displayName="NodeList";var F=H,B=v("NvD2"),z=function(te){Object(O.a)(Ae,te);var fe=Object(M.a)(Ae);function Ae(){var ce;return Object(k.a)(this,Ae),ce=fe.apply(this,arguments),ce.destroyed=!1,ce.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},ce.listRef=T.createRef(),ce.onNodeDragStart=function(ie,ye){var le=ce.state,me=le.expandedKeys,se=le.keyEntities,ge=ce.props.onDragStart,ae=ye.props.eventKey;ce.dragNode=ye;var pe=Object(l.b)(me,ae);ce.setState({dragging:!0,dragNodesKeys:Object(l.g)(ae,se)}),ce.setExpandedKeys(pe),ge&&ge({event:ie,node:Object(i.b)(ye.props)})},ce.onNodeDragEnter=function(ie,ye){var le=ce.state,me=le.expandedKeys,se=le.keyEntities,ge=le.dragNodesKeys,ae=ce.props.onDragEnter,pe=ye.props,Me=pe.pos,xe=pe.eventKey;if(!ce.dragNode||ge.indexOf(xe)!==-1)return;var Ke=Object(l.c)(ie,ye);if(ce.dragNode.props.eventKey===xe&&Ke===0){ce.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){ce.setState({dragOverNodeKey:xe,dropPosition:Ke}),ce.delayedDragEnterLogic||(ce.delayedDragEnterLogic={}),Object.keys(ce.delayedDragEnterLogic).forEach(function(et){clearTimeout(ce.delayedDragEnterLogic[et])}),ce.delayedDragEnterLogic[Me]=window.setTimeout(function(){if(!ce.state.dragging)return;var et=Object(I.a)(me),he=se[xe];he&&(he.children||[]).length&&(et=Object(l.a)(me,xe)),"expandedKeys"in ce.props||ce.setExpandedKeys(et),ae&&ae({event:ie,node:Object(i.b)(ye.props),expandedKeys:et})},400)},0)},ce.onNodeDragOver=function(ie,ye){var le=ce.state.dragNodesKeys,me=ce.props.onDragOver,se=ye.props.eventKey;if(le.indexOf(se)!==-1)return;if(ce.dragNode&&se===ce.state.dragOverNodeKey){var ge=Object(l.c)(ie,ye);if(ge===ce.state.dropPosition)return;ce.setState({dropPosition:ge})}me&&me({event:ie,node:Object(i.b)(ye.props)})},ce.onNodeDragLeave=function(ie,ye){var le=ce.props.onDragLeave;ce.setState({dragOverNodeKey:""}),le&&le({event:ie,node:Object(i.b)(ye.props)})},ce.onNodeDragEnd=function(ie,ye){var le=ce.props.onDragEnd;ce.setState({dragOverNodeKey:""}),ce.cleanDragState(),le&&le({event:ie,node:Object(i.b)(ye.props)}),ce.dragNode=null},ce.onNodeDrop=function(ie,ye){var le=ce.state,me=le.dragNodesKeys,se=me===void 0?[]:me,ge=le.dropPosition,ae=ce.props.onDrop,pe=ye.props,Me=pe.eventKey,xe=pe.pos;if(ce.setState({dragOverNodeKey:""}),ce.cleanDragState(),se.indexOf(Me)!==-1){Object(p.a)(!1,"Can not drop to dragNode(include it's children node)");return}var Ke=Object(l.k)(xe),et={event:ie,node:Object(i.b)(ye.props),dragNode:ce.dragNode?Object(i.b)(ce.dragNode.props):null,dragNodesKeys:se.slice(),dropPosition:ge+Number(Ke[Ke.length-1]),dropToGap:!1};ge!==0&&(et.dropToGap=!0),ae&&ae(et),ce.dragNode=null},ce.cleanDragState=function(){var ie=ce.state.dragging;ie&&ce.setState({dragging:!1})},ce.onNodeClick=function(ie,ye){var le=ce.props.onClick;le&&le(ie,ye)},ce.onNodeDoubleClick=function(ie,ye){var le=ce.props.onDoubleClick;le&&le(ie,ye)},ce.onNodeSelect=function(ie,ye){var le=ce.state.selectedKeys,me=ce.state.keyEntities,se=ce.props,ge=se.onSelect,ae=se.multiple,pe=ye.selected,Me=ye.key,xe=!pe;xe?ae?le=Object(l.a)(le,Me):le=[Me]:le=Object(l.b)(le,Me);var Ke=le.map(function(et){var he=me[et];return he?he.node:null}).filter(function(et){return et});ce.setUncontrolledState({selectedKeys:le}),ge&&ge(le,{event:"select",selected:xe,node:ye,selectedNodes:Ke,nativeEvent:ie.nativeEvent})},ce.onNodeCheck=function(ie,ye,le){var me=ce.state,se=me.keyEntities,ge=me.checkedKeys,ae=me.halfCheckedKeys,pe=ce.props,Me=pe.checkStrictly,xe=pe.onCheck,Ke=ye.key,et,he={event:"check",node:ye,checked:le,nativeEvent:ie.nativeEvent};if(Me){var Se=le?Object(l.a)(ge,Ke):Object(l.b)(ge,Ke),Ue=Object(l.b)(ae,Ke);et={checked:Se,halfChecked:Ue},he.checkedNodes=Se.map(function(Ut){return se[Ut]}).filter(function(Ut){return Ut}).map(function(Ut){return Ut.node}),ce.setUncontrolledState({checkedKeys:Se})}else{var Ne=Object(B.a)([].concat(Object(I.a)(ge),[Ke]),!0,se),ct=Ne.checkedKeys,ft=Ne.halfCheckedKeys;if(!le){var Ot=new Set(ct);Ot.delete(Ke);var dt=Object(B.a)(Array.from(Ot),{checked:!1,halfCheckedKeys:ft},se);ct=dt.checkedKeys,ft=dt.halfCheckedKeys}et=ct,he.checkedNodes=[],he.checkedNodesPositions=[],he.halfCheckedKeys=ft,ct.forEach(function(Ut){var jt=se[Ut];if(!jt)return;var ze=jt.node,Ve=jt.pos;he.checkedNodes.push(ze),he.checkedNodesPositions.push({node:ze,pos:Ve})}),ce.setUncontrolledState({checkedKeys:ct},!1,{halfCheckedKeys:ft})}xe&&xe(et,he)},ce.onNodeLoad=function(ie){return new Promise(function(ye){ce.setState(function(le){var me=le.loadedKeys,se=me===void 0?[]:me,ge=le.loadingKeys,ae=ge===void 0?[]:ge,pe=ce.props,Me=pe.loadData,xe=pe.onLoad,Ke=ie.key;if(!Me||se.indexOf(Ke)!==-1||ae.indexOf(Ke)!==-1)return{};var et=Me(ie);return et.then(function(){var he=ce.state,Se=he.loadedKeys,Ue=he.loadingKeys,Ne=Object(l.a)(Se,Ke),ct=Object(l.b)(Ue,Ke);xe&&xe(Ne,{event:"load",node:ie}),ce.setUncontrolledState({loadedKeys:Ne}),ce.setState({loadingKeys:ct}),ye()}),{loadingKeys:Object(l.a)(ae,Ke)}})})},ce.onNodeMouseEnter=function(ie,ye){var le=ce.props.onMouseEnter;le&&le({event:ie,node:ye})},ce.onNodeMouseLeave=function(ie,ye){var le=ce.props.onMouseLeave;le&&le({event:ie,node:ye})},ce.onNodeContextMenu=function(ie,ye){var le=ce.props.onRightClick;le&&(ie.preventDefault(),le({event:ie,node:ye}))},ce.onFocus=function(){var ie=ce.props.onFocus;ce.setState({focused:!0}),ie&&ie.apply(void 0,arguments)},ce.onBlur=function(){var ie=ce.props.onBlur;ce.setState({focused:!1}),ce.onActiveChange(null),ie&&ie.apply(void 0,arguments)},ce.getTreeNodeRequiredProps=function(){var ie=ce.state,ye=ie.expandedKeys,le=ie.selectedKeys,me=ie.loadedKeys,se=ie.loadingKeys,ge=ie.checkedKeys,ae=ie.halfCheckedKeys,pe=ie.dragOverNodeKey,Me=ie.dropPosition,xe=ie.keyEntities;return{expandedKeys:ye||[],selectedKeys:le||[],loadedKeys:me||[],loadingKeys:se||[],checkedKeys:ge||[],halfCheckedKeys:ae||[],dragOverNodeKey:pe,dropPosition:Me,keyEntities:xe}},ce.setExpandedKeys=function(ie){var ye=ce.state.treeData,le=Object(i.d)(ye,ie);ce.setUncontrolledState({expandedKeys:ie,flattenNodes:le},!0)},ce.onNodeExpand=function(ie,ye){var le=ce.state.expandedKeys,me=ce.state.listChanging,se=ce.props,ge=se.onExpand,ae=se.loadData,pe=ye.key,Me=ye.expanded;if(me)return;var xe=le.indexOf(pe),Ke=!Me;if(Object(p.a)(Me&&xe!==-1||!Me&&xe===-1,"Expand state not sync with index check"),Ke?le=Object(l.a)(le,pe):le=Object(l.b)(le,pe),ce.setExpandedKeys(le),ge&&ge(le,{node:ye,expanded:Ke,nativeEvent:ie.nativeEvent}),Ke&&ae){var et=ce.onNodeLoad(ye);et&&et.then(function(){var he=Object(i.d)(ce.state.treeData,le);ce.setUncontrolledState({flattenNodes:he})})}},ce.onListChangeStart=function(){ce.setUncontrolledState({listChanging:!0})},ce.onListChangeEnd=function(){setTimeout(function(){ce.setUncontrolledState({listChanging:!1})})},ce.onActiveChange=function(ie){var ye=ce.state.activeKey,le=ce.props.onActiveChange;if(ye===ie)return;ce.setState({activeKey:ie}),ie!==null&&ce.scrollTo({key:ie}),le&&le(ie)},ce.getActiveItem=function(){var ie=ce.state,ye=ie.activeKey,le=ie.flattenNodes;return ye===null?null:le.find(function(me){var se=me.data.key;return se===ye})||null},ce.offsetActiveKey=function(ie){var ye=ce.state,le=ye.flattenNodes,me=ye.activeKey,se=le.findIndex(function(pe){var Me=pe.data.key;return Me===me});se===-1&&ie<0&&(se=le.length),se=(se+ie+le.length)%le.length;var ge=le[se];if(ge){var ae=ge.data.key;ce.onActiveChange(ae)}else ce.onActiveChange(null)},ce.onKeyDown=function(ie){var ye=ce.state,le=ye.activeKey,me=ye.expandedKeys,se=ye.checkedKeys,ge=ce.props,ae=ge.onKeyDown,pe=ge.checkable,Me=ge.selectable;switch(ie.which){case n.a.UP:{ce.offsetActiveKey(-1),ie.preventDefault();break}case n.a.DOWN:{ce.offsetActiveKey(1),ie.preventDefault();break}}var xe=ce.getActiveItem();if(xe&&xe.data){var Ke=ce.getTreeNodeRequiredProps(),et=xe.data.isLeaf===!1||!!(xe.data.children||[]).length,he=Object(i.b)(Object(Q.a)(Object(Q.a)({},Object(i.f)(le,Ke)),{},{data:xe.data,active:!0}));switch(ie.which){case n.a.LEFT:{et&&me.includes(le)?ce.onNodeExpand({},he):xe.parent&&ce.onActiveChange(xe.parent.data.key),ie.preventDefault();break}case n.a.RIGHT:{et&&!me.includes(le)?ce.onNodeExpand({},he):xe.children&&xe.children.length&&ce.onActiveChange(xe.children[0].data.key),ie.preventDefault();break}case n.a.ENTER:case n.a.SPACE:{pe&&!he.disabled&&he.checkable!==!1&&!he.disableCheckbox?ce.onNodeCheck({},he,!se.includes(le)):!pe&&Me&&!he.disabled&&he.selectable!==!1&&ce.onNodeSelect({},he);break}}}ae&&ae(ie)},ce.setUncontrolledState=function(ie){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(ce.destroyed)return;var me=!1,se=!0,ge={};Object.keys(ie).forEach(function(ae){if(ae in ce.props){se=!1;return}me=!0,ge[ae]=ie[ae]}),me&&(!ye||se)&&ce.setState(Object(Q.a)(Object(Q.a)({},ge),le))},ce.scrollTo=function(ie){ce.listRef.current.scrollTo(ie)},ce}return Object(_.a)(Ae,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var ie,ye=this.state,le=ye.focused,me=ye.flattenNodes,se=ye.keyEntities,ge=ye.dragging,ae=ye.activeKey,pe=this.props,Me=pe.prefixCls,xe=pe.className,Ke=pe.style,et=pe.showLine,he=pe.focusable,Se=pe.tabIndex,Ue=Se===void 0?0:Se,Ne=pe.selectable,ct=pe.showIcon,ft=pe.icon,Ot=pe.switcherIcon,dt=pe.draggable,Ut=pe.checkable,jt=pe.checkStrictly,ze=pe.disabled,Ve=pe.motion,Et=pe.loadData,Rt=pe.filterTreeNode,ut=pe.height,vt=pe.itemHeight,Ze=pe.virtual,ke=pe.titleRender,He=pe.onContextMenu,we=Object(l.f)(this.props);return T.createElement(A.a.Provider,{value:{prefixCls:Me,selectable:Ne,showIcon:ct,icon:ft,switcherIcon:Ot,draggable:dt,checkable:Ut,checkStrictly:jt,disabled:ze,keyEntities:se,loadData:Et,filterTreeNode:Rt,titleRender:ke,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},T.createElement("div",{className:t()(Me,xe,(ie={},Object(Z.a)(ie,"".concat(Me,"-show-line"),et),Object(Z.a)(ie,"".concat(Me,"-focused"),le),Object(Z.a)(ie,"".concat(Me,"-active-focused"),ae!==null),ie))},T.createElement(F,Object.assign({ref:this.listRef,prefixCls:Me,style:Ke,data:me,disabled:ze,selectable:Ne,checkable:!!Ut,motion:Ve,dragging:ge,height:ut,itemHeight:vt,virtual:Ze,focusable:he,focused:le,tabIndex:Ue,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:He},this.getTreeNodeRequiredProps(),we))))}}],[{key:"getDerivedStateFromProps",value:function(ie,ye){var le=ye.prevProps,me={prevProps:ie};function se(ft){return!le&&ft in ie||le&&le[ft]!==ie[ft]}var ge;if(se("treeData")?ge=ie.treeData:se("children")&&(Object(p.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ge=Object(i.c)(ie.children)),ge){me.treeData=ge;var ae=Object(i.a)(ge);me.keyEntities=Object(Q.a)(Object(Z.a)({},h,x),ae.keyEntities)}var pe=me.keyEntities||ye.keyEntities;if(se("expandedKeys")||le&&se("autoExpandParent"))me.expandedKeys=ie.autoExpandParent||!le&&ie.defaultExpandParent?Object(l.e)(ie.expandedKeys,pe):ie.expandedKeys;else if(!le&&ie.defaultExpandAll){var Me=Object(Q.a)({},pe);delete Me[h],me.expandedKeys=Object.keys(Me).map(function(ft){return Me[ft].key})}else!le&&ie.defaultExpandedKeys&&(me.expandedKeys=ie.autoExpandParent||ie.defaultExpandParent?Object(l.e)(ie.defaultExpandedKeys,pe):ie.defaultExpandedKeys);if(me.expandedKeys||delete me.expandedKeys,ge||me.expandedKeys){var xe=Object(i.d)(ge||ye.treeData,me.expandedKeys||ye.expandedKeys);me.flattenNodes=xe}if(ie.selectable&&(se("selectedKeys")?me.selectedKeys=Object(l.d)(ie.selectedKeys,ie):!le&&ie.defaultSelectedKeys&&(me.selectedKeys=Object(l.d)(ie.defaultSelectedKeys,ie))),ie.checkable){var Ke;if(se("checkedKeys")?Ke=Object(l.j)(ie.checkedKeys)||{}:!le&&ie.defaultCheckedKeys?Ke=Object(l.j)(ie.defaultCheckedKeys)||{}:ge&&(Ke=Object(l.j)(ie.checkedKeys)||{checkedKeys:ye.checkedKeys,halfCheckedKeys:ye.halfCheckedKeys}),Ke){var et=Ke,he=et.checkedKeys,Se=he===void 0?[]:he,Ue=et.halfCheckedKeys,Ne=Ue===void 0?[]:Ue;if(!ie.checkStrictly){var ct=Object(B.a)(Se,!0,pe);Se=ct.checkedKeys,Ne=ct.halfCheckedKeys}me.checkedKeys=Se,me.halfCheckedKeys=Ne}}return se("loadedKeys")&&(me.loadedKeys=ie.loadedKeys),me}}]),Ae}(T.Component);z.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},z.TreeNode=u.a;var K=z,$=ee.b=K},fW2E:function(Be,ee){var v={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function Z(Q,I,k){return v.hasOwnProperty(I)?k*=Q.dpr:k}Be.exports=Z},fXAG:function(Be,ee,v){"use strict";v.d(ee,"j",function(){return Z}),v.d(ee,"i",function(){return Q}),v.d(ee,"k",function(){return I}),v.d(ee,"eb",function(){return k}),v.d(ee,"o",function(){return _}),v.d(ee,"S",function(){return O}),v.d(ee,"fb",function(){return M}),v.d(ee,"u",function(){return T}),v.d(ee,"v",function(){return n}),v.d(ee,"cb",function(){return p}),v.d(ee,"A",function(){return a}),v.d(ee,"m",function(){return t}),v.d(ee,"Y",function(){return A}),v.d(ee,"s",function(){return l}),v.d(ee,"N",function(){return i}),v.d(ee,"bb",function(){return c}),v.d(ee,"db",function(){return d}),v.d(ee,"l",function(){return f}),v.d(ee,"Q",function(){return o}),v.d(ee,"ab",function(){return u}),v.d(ee,"x",function(){return E}),v.d(ee,"z",function(){return R}),v.d(ee,"X",function(){return w}),v.d(ee,"b",function(){return P}),v.d(ee,"H",function(){return C}),v.d(ee,"a",function(){return b}),v.d(ee,"c",function(){return h}),v.d(ee,"P",function(){return m}),v.d(ee,"g",function(){return x}),v.d(ee,"t",function(){return g}),v.d(ee,"Z",function(){return y}),v.d(ee,"y",function(){return U}),v.d(ee,"B",function(){return N}),v.d(ee,"f",function(){return S}),v.d(ee,"e",function(){return H}),v.d(ee,"W",function(){return F}),v.d(ee,"h",function(){return B}),v.d(ee,"d",function(){return z}),v.d(ee,"R",function(){return $}),v.d(ee,"n",function(){return te}),v.d(ee,"F",function(){return fe}),v.d(ee,"I",function(){return Ae}),v.d(ee,"D",function(){return ce}),v.d(ee,"E",function(){return ie}),v.d(ee,"C",function(){return ye}),v.d(ee,"G",function(){return le}),v.d(ee,"U",function(){return me}),v.d(ee,"q",function(){return se}),v.d(ee,"r",function(){return ge}),v.d(ee,"V",function(){return ae}),v.d(ee,"T",function(){return pe}),v.d(ee,"p",function(){return Me}),v.d(ee,"M",function(){return xe}),v.d(ee,"L",function(){return Ke}),v.d(ee,"J",function(){return et}),v.d(ee,"K",function(){return he}),v.d(ee,"O",function(){return Se}),v.d(ee,"w",function(){return Ue});var Z="FETCH_TASK_START",Q="FETCH_TASK_FAILURE",I="FETCH_TASK_SUCCESS",k="UPDATE_TASK_DATA",_="HIDE_EVALUATE_RESULT",O="SHOW_EVALUATE_RESULT",M="UPDATE_TIMESTRAP",T="MOVE_X",n="MOVE_Y",p="TRIGGER_RIGHT_PANEL_MASK ",a="SET_ACTIVE_INDEX",t="GET_TASK_LIST",A="SHOW_TASK_LIST",l="HIDE_TASK_LIST",i="SET_TASK_STAR",c="TRIGGER_ENLARGE_UNITY3D ",d="TRIGGER_TAB_FIXED ",f="GET_DISCUSSES",o="SHOW_DISCUSSES_LOADING",u="TOP_OR_DOWN_DISCUSS",E="PLUS_DISCUSS",R="SET_ACTION_TYPE",w="SHOW_REWARD_DIALOG",P="CANCEL_REWARD_DIALOG",C="SET_REWARD",b="ACTIVE_DISCUSS_INDEX",s="CREATE_DISCUSS",h="DISABLE_DISCUSS",m="SHOW_ANSWER_LOADING",x="FETCH_ANSWER_INFO",g="HIGH_TIP_MODAL",y="SHOW_TIP_MODAL",U="SELECT_UNLOCK_ANSWER",N="SET_CHOOSE_ANSWERS",S="EVAL_CHOOSE_START",H="EVAL_CHOOSE_END",F="SHOW_REP_loading",B="FETCH_REP_CONTENT",z="EDIT_REP_CONTENT",K="SET_REP_PATH",$="SHOW_EVALUATE_LOADING",te="HIDE_EVALUATE_LOADING",fe="SET_EVALUATE_MESSAGE",Ae="SET_SHOW_DIR",ce="SET_EDITOR_SETTING",ie="SET_EDITOR_THEME",ye="SET_EDITOR_FONTSIZE",le="SET_REPOS",me="SHOW_PATH_LIST",se="HIDE_PATH_LIST",ge="HIDE_PICTURE_VIEW",ae="SHOW_PICTURE_VIEW",pe="SHOW_NOTICE",Me="HIDE_NOTICE",xe="SET_TAB_INDEX",Ke="SET_SSH_TABS",et="SET_SSH_CONFIGDATA",he="SET_SSH_CONFIGDATAARR",Se="SET_VNC_LOADING ",Ue="ON_TAB_TO_SPACE "},fcSX:function(Be,ee,v){"use strict";var Z=v("Ff2n"),Q=v("1OyB"),I=v("vuIU"),k=v("Ji7U"),_=v("md7G"),O=v("foSv"),M=v("1W/9"),T=v("q1tI"),n=v("rePB"),p=v("JX7q"),a=v("TSYQ"),t=v.n(a),A=v("qx4F"),l=v("4IlW");function i(S){return Array.isArray(S)?S:[S]}var c={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},d=Object.keys(c).filter(function(S){if(typeof document=="undefined")return!1;var H=document.getElementsByTagName("html")[0];return S in(H?H.style:{})})[0],f=c[d];function o(S,H,F,B){S.addEventListener?S.addEventListener(H,F,B):S.attachEvent&&S.attachEvent("on".concat(H),F)}function u(S,H,F,B){S.removeEventListener?S.removeEventListener(H,F,B):S.attachEvent&&S.detachEvent("on".concat(H),F)}function E(S,H){var F=typeof S=="function"?S(H):S;return Array.isArray(F)?F.length===2?F:[F[0],F[1]]:[F]}var R=function(H){return!isNaN(parseFloat(H))&&isFinite(H)},w=!(typeof window!="undefined"&&window.document&&window.document.createElement),P=function S(H,F,B,z){if(!F||F===document||F instanceof Document)return!1;if(F===H.parentNode)return!0;var K=Math.max(Math.abs(B),Math.abs(z))===Math.abs(z),$=Math.max(Math.abs(B),Math.abs(z))===Math.abs(B),te=F.scrollHeight-F.clientHeight,fe=F.scrollWidth-F.clientWidth,Ae=document.defaultView.getComputedStyle(F),ce=Ae.overflowY==="auto"||Ae.overflowY==="scroll",ie=Ae.overflowX==="auto"||Ae.overflowX==="scroll",ye=te&&ce,le=fe&&ie;return K&&(!ye||ye&&(F.scrollTop>=te&&z<0||F.scrollTop<=0&&z>0))||$&&(!le||le&&(F.scrollLeft>=fe&&B<0||F.scrollLeft<=0&&B>0))?S(H,F.parentNode,B,z):!1};function C(S){var H=b();return function(){var B=Object(O.a)(S),z;if(H){var K=Object(O.a)(this).constructor;z=Reflect.construct(B,arguments,K)}else z=B.apply(this,arguments);return Object(_.a)(this,z)}}function b(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(S){return!1}}var s={},h=function(S){Object(k.a)(F,S);var H=C(F);function F(B){var z;return Object(Q.a)(this,F),z=H.call(this,B),z.domFocus=function(){z.dom&&z.dom.focus()},z.removeStartHandler=function(K){if(K.touches.length>1)return;z.startPos={x:K.touches[0].clientX,y:K.touches[0].clientY}},z.removeMoveHandler=function(K){if(K.changedTouches.length>1)return;var $=K.currentTarget,te=K.changedTouches[0].clientX-z.startPos.x,fe=K.changedTouches[0].clientY-z.startPos.y;($===z.maskDom||$===z.handlerDom||$===z.contentDom&&P($,K.target,te,fe))&&K.cancelable&&K.preventDefault()},z.transitionEnd=function(K){var $=K.target;u($,f,z.transitionEnd),$.style.transition=""},z.onKeyDown=function(K){if(K.keyCode===l.a.ESC){var $=z.props.onClose;K.stopPropagation(),$&&$(K)}},z.onWrapperTransitionEnd=function(K){var $=z.props,te=$.open,fe=$.afterVisibleChange;K.target===z.contentWrapper&&K.propertyName.match(/transform$/)&&(z.dom.style.transition="",!te&&z.getCurrentDrawerSome()&&(document.body.style.overflowX="",z.maskDom&&(z.maskDom.style.left="",z.maskDom.style.width="")),fe&&fe(!!te))},z.openLevelTransition=function(){var K=z.props,$=K.open,te=K.width,fe=K.height,Ae=z.getHorizontalBoolAndPlacementName(),ce=Ae.isHorizontal,ie=Ae.placementName,ye=z.contentDom?z.contentDom.getBoundingClientRect()[ce?"width":"height"]:0,le=(ce?te:fe)||ye;z.setLevelAndScrolling($,ie,le)},z.setLevelTransform=function(K,$,te,fe){var Ae=z.props,ce=Ae.placement,ie=Ae.levelMove,ye=Ae.duration,le=Ae.ease,me=Ae.showMask;z.levelDom.forEach(function(se){se.style.transition="transform ".concat(ye," ").concat(le),o(se,f,z.transitionEnd);var ge=K?te:0;if(ie){var ae=E(ie,{target:se,open:K});ge=K?ae[0]:ae[1]||0}var pe=typeof ge=="number"?"".concat(ge,"px"):ge,Me=ce==="left"||ce==="top"?pe:"-".concat(pe);Me=me&&ce==="right"&&fe?"calc(".concat(Me," + ").concat(fe,"px)"):Me,se.style.transform=ge?"".concat($,"(").concat(Me,")"):""})},z.setLevelAndScrolling=function(K,$,te){var fe=z.props.onChange;if(!w){var Ae=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(A.a)(!0):0;z.setLevelTransform(K,$,te,Ae),z.toggleScrollingToDrawerAndBody(Ae)}fe&&fe(K)},z.toggleScrollingToDrawerAndBody=function(K){var $=z.props,te=$.getOpenCount,fe=$.getContainer,Ae=$.showMask,ce=$.open,ie=fe&&fe(),ye=te&&te();if(ie&&ie.parentNode===document.body&&Ae){var le=["touchstart"],me=[document.body,z.maskDom,z.handlerDom,z.contentDom];ce&&document.body.style.overflow!=="hidden"?(K&&z.addScrollingEffect(K),ye===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",me.forEach(function(se,ge){if(!se)return;o(se,le[ge]||"touchmove",ge?z.removeMoveHandler:z.removeStartHandler,z.passive)})):z.getCurrentDrawerSome()&&(ye||(document.body.style.overflow=""),document.body.style.touchAction="",K&&z.remScrollingEffect(K),me.forEach(function(se,ge){if(!se)return;u(se,le[ge]||"touchmove",ge?z.removeMoveHandler:z.removeStartHandler,z.passive)}))}},z.addScrollingEffect=function(K){var $=z.props,te=$.placement,fe=$.duration,Ae=$.ease,ce=$.getOpenCount,ie=$.switchScrollingEffect,ye=ce&&ce();ye===1&&ie();var le="width ".concat(fe," ").concat(Ae),me="transform ".concat(fe," ").concat(Ae);z.dom.style.transition="none";switch(te){case"right":z.dom.style.transform="translateX(-".concat(K,"px)");break;case"top":case"bottom":z.dom.style.width="calc(100% - ".concat(K,"px)"),z.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(z.timeout),z.timeout=setTimeout(function(){z.dom&&(z.dom.style.transition="".concat(me,",").concat(le),z.dom.style.width="",z.dom.style.transform="")})},z.remScrollingEffect=function(K){var $=z.props,te=$.placement,fe=$.duration,Ae=$.ease,ce=$.getOpenCount,ie=$.switchScrollingEffect,ye=ce&&ce();ye||ie(!0),d&&(document.body.style.overflowX="hidden"),z.dom.style.transition="none";var le,me="width ".concat(fe," ").concat(Ae),se="transform ".concat(fe," ").concat(Ae);switch(te){case"left":{z.dom.style.width="100%",me="width 0s ".concat(Ae," ").concat(fe);break}case"right":{z.dom.style.transform="translateX(".concat(K,"px)"),z.dom.style.width="100%",me="width 0s ".concat(Ae," ").concat(fe),z.maskDom&&(z.maskDom.style.left="-".concat(K,"px"),z.maskDom.style.width="calc(100% + ".concat(K,"px)"));break}case"top":case"bottom":{z.dom.style.width="calc(100% + ".concat(K,"px)"),z.dom.style.height="100%",z.dom.style.transform="translateZ(0)",le="height 0s ".concat(Ae," ").concat(fe);break}default:break}clearTimeout(z.timeout),z.timeout=setTimeout(function(){z.dom&&(z.dom.style.transition="".concat(se,",").concat(le?"".concat(le,","):"").concat(me),z.dom.style.transform="",z.dom.style.width="",z.dom.style.height="")})},z.getCurrentDrawerSome=function(){return!Object.keys(s).some(function(K){return s[K]})},z.getLevelDom=function(K){var $=K.level,te=K.getContainer;if(w)return;var fe=te&&te(),Ae=fe?fe.parentNode:null;if(z.levelDom=[],$==="all"){var ce=Ae?Array.prototype.slice.call(Ae.children):[];ce.forEach(function(ie){ie.nodeName!=="SCRIPT"&&ie.nodeName!=="STYLE"&&ie.nodeName!=="LINK"&&ie!==fe&&z.levelDom.push(ie)})}else $&&i($).forEach(function(ie){document.querySelectorAll(ie).forEach(function(ye){z.levelDom.push(ye)})})},z.getHorizontalBoolAndPlacementName=function(){var K=z.props.placement,$=K==="left"||K==="right",te="translate".concat($?"X":"Y");return{isHorizontal:$,placementName:te}},z.state={_self:Object(p.a)(z)},z}return Object(I.a)(F,[{key:"componentDidMount",value:function(){var z=this;if(!w){var K=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return K=!0,null}}))}catch(ce){}this.passive=K?{passive:!1}:!1}var $=this.props,te=$.open,fe=$.getContainer,Ae=fe&&fe();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),te&&(Ae&&Ae.parentNode===document.body&&(s[this.drawerId]=te),this.openLevelTransition(),this.forceUpdate(function(){z.domFocus()}))}},{key:"componentDidUpdate",value:function(z){var K=this.props,$=K.open,te=K.getContainer,fe=te&&te();$!==z.open&&($&&this.domFocus(),fe&&fe.parentNode===document.body&&(s[this.drawerId]=!!$),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var z=this.props,K=z.getOpenCount,$=z.open,te=z.switchScrollingEffect,fe=typeof K=="function"&&K();delete s[this.drawerId],$&&(this.setLevelTransform(!1),document.body.style.touchAction=""),fe||(document.body.style.overflow="",te(!0))}},{key:"render",value:function(){var z,K=this,$=this.props,te=$.className,fe=$.children,Ae=$.style,ce=$.width,ie=$.height,ye=$.defaultOpen,le=$.open,me=$.prefixCls,se=$.placement,ge=$.level,ae=$.levelMove,pe=$.ease,Me=$.duration,xe=$.getContainer,Ke=$.handler,et=$.onChange,he=$.afterVisibleChange,Se=$.showMask,Ue=$.maskClosable,Ne=$.maskStyle,ct=$.onClose,ft=$.onHandleClick,Ot=$.keyboard,dt=$.getOpenCount,Ut=$.switchScrollingEffect,jt=Object(Z.a)($,["className","children","style","width","height","defaultOpen","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","handler","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","onClose","onHandleClick","keyboard","getOpenCount","switchScrollingEffect"]),ze=this.dom?le:!1,Ve=t()(me,(z={},Object(n.a)(z,"".concat(me,"-").concat(se),!0),Object(n.a)(z,"".concat(me,"-open"),ze),Object(n.a)(z,te||"",!!te),Object(n.a)(z,"no-mask",!Se),z)),Et=this.getHorizontalBoolAndPlacementName(),Rt=Et.placementName,ut=se==="left"||se==="top"?"-100%":"100%",vt=ze?"":"".concat(Rt,"(").concat(ut,")"),Ze=Ke&&T.cloneElement(Ke,{onClick:function(He){Ke.props.onClick&&Ke.props.onClick(),ft&&ft(He)},ref:function(He){K.handlerDom=He}});return T.createElement("div",Object.assign({},jt,{tabIndex:-1,className:Ve,style:Ae,ref:function(He){K.dom=He},onKeyDown:ze&&Ot?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),Se&&T.createElement("div",{className:"".concat(me,"-mask"),onClick:Ue?ct:void 0,style:Ne,ref:function(He){K.maskDom=He}}),T.createElement("div",{className:"".concat(me,"-content-wrapper"),style:{transform:vt,msTransform:vt,width:R(ce)?"".concat(ce,"px"):ce,height:R(ie)?"".concat(ie,"px"):ie},ref:function(He){K.contentWrapper=He}},T.createElement("div",{className:"".concat(me,"-content"),ref:function(He){K.contentDom=He},onTouchStart:ze&&Se?this.removeStartHandler:void 0,onTouchMove:ze&&Se?this.removeMoveHandler:void 0},fe),Ze))}}],[{key:"getDerivedStateFromProps",value:function(z,K){var $=K.prevProps,te=K._self,fe={prevProps:z};if($!==void 0){var Ae=z.placement,ce=z.level;Ae!==$.placement&&(te.contentDom=null),ce!==$.level&&te.getLevelDom(z)}return fe}}]),F}(T.Component);h.defaultProps={switchScrollingEffect:function(){}};var m=h;function x(S){var H=g();return function(){var B=Object(O.a)(S),z;if(H){var K=Object(O.a)(this).constructor;z=Reflect.construct(B,arguments,K)}else z=B.apply(this,arguments);return Object(_.a)(this,z)}}function g(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(S){return!1}}var y=function(S){Object(k.a)(F,S);var H=x(F);function F(B){var z;Object(Q.a)(this,F),z=H.call(this,B),z.onHandleClick=function($){var te=z.props,fe=te.onHandleClick,Ae=te.open;if(fe&&fe($),typeof Ae=="undefined"){var ce=z.state.open;z.setState({open:!ce})}},z.onClose=function($){var te=z.props,fe=te.onClose,Ae=te.open;fe&&fe($),typeof Ae=="undefined"&&z.setState({open:!1})};var K=typeof B.open!="undefined"?B.open:!!B.defaultOpen;return z.state={open:K},"onMaskClick"in B&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),z}return Object(I.a)(F,[{key:"render",value:function(){var z=this,K=this.props,$=K.defaultOpen,te=K.getContainer,fe=K.wrapperClassName,Ae=K.forceRender,ce=K.handler,ie=Object(Z.a)(K,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),ye=this.state.open;if(!te)return T.createElement("div",{className:fe,ref:function(se){z.dom=se}},T.createElement(m,Object.assign({},ie,{open:ye,handler:ce,getContainer:function(){return z.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var le=!!ce||Ae;return T.createElement(M.a,{visible:ye,forceRender:le,getContainer:te,wrapperClassName:fe},function(me){var se=me.visible,ge=me.afterClose,ae=Object(Z.a)(me,["visible","afterClose"]);return T.createElement(m,Object.assign({},ie,ae,{open:se!==void 0?se:ye,afterVisibleChange:ge!==void 0?ge:ie.afterVisibleChange,handler:ce,onClose:z.onClose,onHandleClick:z.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(z,K){var $=K.prevProps,te={prevProps:z};return typeof $!="undefined"&&z.open!==$.open&&(te.open=z.open),te}}]),F}(T.Component);y.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",defaultOpen:!1,level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:T.createElement("div",{className:"drawer-handle"},T.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1};var U=y,N=ee.a=U},fjLI:function(Be,ee,v){"use strict";v.d(ee,"f",function(){return A}),v.d(ee,"b",function(){return l}),v.d(ee,"a",function(){return i}),v.d(ee,"d",function(){return c}),v.d(ee,"e",function(){return d}),v.d(ee,"c",function(){return f});var Z=v("8HAY"),Q=v("Vhoy"),I=v("MI8n"),k=v("JYp7"),_=v("pmY6"),O=v("24hK"),M=v("nnTU"),T=v("T8No"),n=v("Cg/j"),p=v("t9D7"),a=function(o,u,E,R){var w=arguments.length,P=w<3?u:R===null?R=Object.getOwnPropertyDescriptor(u,E):R,C;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")P=Reflect.decorate(o,u,E,R);else for(var b=o.length-1;b>=0;b--)(C=o[b])&&(P=(w<3?C(P):w>3?C(u,E,P):C(u,E))||P);return w>3&&P&&Object.defineProperty(u,E,P),P},t=function(o,u){return function(E,R){u(E,R,o)}};function A(o){return o.command!==void 0}class l{constructor(o){this.id=l._idPool++,this._debugName=o}}l._idPool=0,l.CommandPalette=new l("CommandPalette"),l.EditorContext=new l("EditorContext"),l.SimpleEditorContext=new l("SimpleEditorContext"),l.EditorContextCopy=new l("EditorContextCopy"),l.EditorContextPeek=new l("EditorContextPeek"),l.MenubarEditMenu=new l("MenubarEditMenu"),l.MenubarCopy=new l("MenubarCopy"),l.MenubarGoMenu=new l("MenubarGoMenu"),l.MenubarSelectionMenu=new l("MenubarSelectionMenu"),l.InlineCompletionsActions=new l("InlineCompletionsActions");const i=Object(n.c)("menuService"),c=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new I.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:o=>o===l.CommandPalette}}addCommand(o){return this.addCommands(k.a.single(o))}addCommands(o){for(const u of o)this._commands.set(u.id,u);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(_.i)(()=>{let u=!1;for(const E of o)u=this._commands.delete(E.id)||u;u&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(o){return this._commands.get(o)}getCommands(){const o=new Map;return this._commands.forEach((u,E)=>o.set(E,u)),o}appendMenuItem(o,u){return this.appendMenuItems(k.a.single({id:o,item:u}))}appendMenuItems(o){const u=new Set,E=new O.a;for(const{id:R,item:w}of o){let P=this._menuItems.get(R);P||(P=new O.a,this._menuItems.set(R,P)),E.push(P.push(w)),u.add(R)}return this._onDidChangeMenu.fire(u),Object(_.i)(()=>{if(E.size>0){for(let R of E)R();this._onDidChangeMenu.fire(u),E.clear()}})}getMenuItems(o){let u;return this._menuItems.has(o)?u=[...this._menuItems.get(o)]:u=[],o===l.CommandPalette&&this._appendImplicitItems(u),u}_appendImplicitItems(o){const u=new Set;for(const E of o)A(E)&&(u.add(E.command.id),E.alt&&u.add(E.alt.id));this._commands.forEach((E,R)=>{u.has(R)||o.push({command:E})})}};class d extends Z.e{constructor(o,u,E,R){super(`submenuitem.${o.submenu.id}`,typeof o.title=="string"?o.title:o.title.value,[],"submenu");this.item=o,this._menuService=u,this._contextKeyService=E,this._options=R}get actions(){const o=[],u=this._menuService.createMenu(this.item.submenu,this._contextKeyService),E=u.getActions(this._options);u.dispose();for(const[,R]of E)R.length>0&&(o.push(...R),o.push(new Z.d));return o.length&&o.pop(),o}}let f=class o{constructor(u,E,R,w,P){var C,b;if(this._commandService=P,this.id=u.id,this.label=(R==null?void 0:R.renderShortTitle)&&u.shortTitle?typeof u.shortTitle=="string"?u.shortTitle:u.shortTitle.value:typeof u.title=="string"?u.title:u.title.value,this.tooltip=(b=typeof u.tooltip=="string"?u.tooltip:(C=u.tooltip)===null||C===void 0?void 0:C.value)!==null&&b!==void 0?b:"",this.enabled=!u.precondition||w.contextMatchesRules(u.precondition),this.checked=void 0,u.toggled){const s=u.toggled.condition?u.toggled:{condition:u.toggled};this.checked=w.contextMatchesRules(s.condition),this.checked&&s.tooltip&&(this.tooltip=typeof s.tooltip=="string"?s.tooltip:s.tooltip.value),s.title&&(this.label=typeof s.title=="string"?s.title:s.title.value)}this.item=u,this.alt=E?new o(E,void 0,R,w,P):void 0,this._options=R,p.d.isThemeIcon(u.icon)&&(this.class=Q.a.asClassName(u.icon))}dispose(){}run(...u){var E,R;let w=[];return((E=this._options)===null||E===void 0?void 0:E.arg)&&(w=[...w,this._options.arg]),((R=this._options)===null||R===void 0?void 0:R.shouldForwardArgs)&&(w=[...w,...u]),this._commandService.executeCommand(this.id,...w)}};f=a([t(3,T.b),t(4,M.b)],f)},fyJ8:function(Be,ee,v){"use strict";var Z=v("rePB"),Q=v("VTBJ"),I=v("Ff2n"),k=v("U8pU"),_=v("q1tI"),O=v.n(_),M=v("TSYQ"),T=v.n(M),n=v("c+Xe"),p=v("sR1s");function a(c){return c&&Object(k.a)(c)==="object"&&!Array.isArray(c)&&!_.isValidElement(c)}function t(c){return typeof c=="string"?!0:Object(n.c)(c)}function A(c,d){var f,o=c.prefixCls,u=c.className,E=c.record,R=c.index,w=c.dataIndex,P=c.render,C=c.children,b=c.component,s=b===void 0?"td":b,h=c.colSpan,m=c.rowSpan,x=c.fixLeft,g=c.fixRight,y=c.firstFixLeft,U=c.lastFixLeft,N=c.firstFixRight,S=c.lastFixRight,H=c.appendNode,F=c.additionalProps,B=F===void 0?{}:F,z=c.ellipsis,K=c.align,$=c.rowType,te=c.isSticky,fe="".concat(o,"-cell"),Ae,ce;if(C)ce=C;else{var ie=Object(p.b)(E,w);if(ce=ie,P){var ye=P(ie,E,R);a(ye)?(ce=ye.children,Ae=ye.props):ce=ye}}Object(k.a)(ce)==="object"&&!Array.isArray(ce)&&!_.isValidElement(ce)&&(ce=null),z&&(U||N)&&(ce=_.createElement("span",{className:"".concat(fe,"-content")},ce));var le=Ae||{},me=le.colSpan,se=le.rowSpan,ge=le.style,ae=le.className,pe=Object(I.a)(le,["colSpan","rowSpan","style","className"]),Me=me!==void 0?me:h,xe=se!==void 0?se:m;if(Me===0||xe===0)return null;var Ke={},et=typeof x=="number",he=typeof g=="number";et&&(Ke.position="sticky",Ke.left=x),he&&(Ke.position="sticky",Ke.right=g);var Se={};K&&(Se.textAlign=K);var Ue,Ne=z===!0?{showTitle:!0}:z;Ne&&(Ne.showTitle||$==="header")&&(typeof ce=="string"||typeof ce=="number"?Ue=ce.toString():_.isValidElement(ce)&&typeof ce.props.children=="string"&&(Ue=ce.props.children));var ct=Object(Q.a)(Object(Q.a)(Object(Q.a)({title:Ue},pe),B),{},{colSpan:Me&&Me!==1?Me:null,rowSpan:xe&&xe!==1?xe:null,className:T()(fe,u,(f={},Object(Z.a)(f,"".concat(fe,"-fix-left"),et),Object(Z.a)(f,"".concat(fe,"-fix-left-first"),y),Object(Z.a)(f,"".concat(fe,"-fix-left-last"),U),Object(Z.a)(f,"".concat(fe,"-fix-right"),he),Object(Z.a)(f,"".concat(fe,"-fix-right-first"),N),Object(Z.a)(f,"".concat(fe,"-fix-right-last"),S),Object(Z.a)(f,"".concat(fe,"-ellipsis"),z),Object(Z.a)(f,"".concat(fe,"-with-append"),H),Object(Z.a)(f,"".concat(fe,"-fix-sticky"),(et||he)&&te),f),B.className,ae),style:Object(Q.a)(Object(Q.a)(Object(Q.a)(Object(Q.a)({},B.style),Se),Ke),ge),ref:t(s)?d:null});return _.createElement(s,Object.assign({},ct),H,ce)}var l=_.forwardRef(A);l.displayName="Cell";var i=_.memo(l,function(c,d){return d.shouldCellUpdate?!d.shouldCellUpdate(d.record,c.record):!1});ee.a=i},gut8:function(Be,ee){var v={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},Z=9;ee.ContextCachedBy=v,ee.WILL_BE_RESTORED=Z},"h/US":function(Be,ee,v){"use strict";var Z=v("DZo9"),Q=v("8z0m"),I=v("miYZ"),k=v("tsqr"),_=v("+L6B"),O=v("2/Rp"),M=v("tJVT"),T=v("q1tI"),n=v.n(T),p=v("z7Xi"),a=v("jN4g"),t=v("m3rI"),A=v("w8Aa"),l=v.n(A),i=function(d){var f=d.value,o=d.onChange,u=d.getFileProgress,E=Object(T.useState)(!1),R=Object(M.a)(E,2),w=R[0],P=R[1],C=n.a.createElement(O.a,{loading:w,icon:n.a.createElement(p.a,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),b=function(){return n.a.createElement("div",{className:l.a.img},n.a.createElement("img",{src:t.a.API_SERVER+"/api/attachments/"+f,alt:"avatar",style:{width:288}}),n.a.createElement("div",null,n.a.createElement(a.a,{onClick:function(){return o("")},style:{fontSize:"16px",color:"red"}})))},s=function(m){if(u&&u(m),m.file.status==="uploading"){P(!0);return}if(m.file.status==="done"){var x,g,y,U;if(P(!1),m.file.status==="done"&&((x=m.file)===null||x===void 0||((g=x.response)===null||g===void 0)?void 0:g.status)===-1){var N,S;k.b.error((N=m.file)===null||N===void 0||((S=N.response)===null||S===void 0)?void 0:S.message);return}o(m==null||((y=m.file)===null||y===void 0||((U=y.response)===null||U===void 0))?void 0:U.id)}};return n.a.createElement(n.a.Fragment,null,f?b():n.a.createElement("div",null,n.a.createElement(Q.a,{withCredentials:!0,name:"file",showUploadList:!1,action:"".concat(t.a.API_SERVER,"/api/attachments.json"),onChange:s,accept:"image/*"},C),n.a.createElement("div",{className:"mt20 c-light-black"},"\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u7528288*158\u50CF\u7D20\uFF1B"),n.a.createElement("div",{className:"c-light-black"},"\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002")))};ee.a=i},h78n:function(Be,ee,v){"use strict";v.d(ee,"a",function(){return y});var Z=v("q1tI"),Q=v.n(Z),I=v("TSYQ"),k=v.n(I),_={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},O=function(S){var H=S.map(function(){return Object(Z.useRef)()}),F=Object(Z.useRef)();return Object(Z.useEffect)(function(){var B=Date.now(),z=!1;Object.keys(H).forEach(function(K){var $=H[K].current;if(!$)return;z=!0;var te=$.style;te.transitionDuration=".3s, .3s, .3s, .06s",F.current&&B-F.current<100&&(te.transitionDuration="0s, 0s")}),z&&(F.current=Date.now())}),[H]};function M(){return M=Object.assign||function(N){for(var S=1;S<arguments.length;S++){var H=arguments[S];for(var F in H)Object.prototype.hasOwnProperty.call(H,F)&&(N[F]=H[F])}return N},M.apply(this,arguments)}function T(N,S){return A(N)||t(N,S)||p(N,S)||n()}function n(){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(N,S){if(!N)return;if(typeof N=="string")return a(N,S);var H=Object.prototype.toString.call(N).slice(8,-1);if(H==="Object"&&N.constructor&&(H=N.constructor.name),H==="Map"||H==="Set")return Array.from(N);if(H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return a(N,S)}function a(N,S){(S==null||S>N.length)&&(S=N.length);for(var H=0,F=new Array(S);H<S;H++)F[H]=N[H];return F}function t(N,S){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(N)))return;var H=[],F=!0,B=!1,z=void 0;try{for(var K=N[Symbol.iterator](),$;!(F=($=K.next()).done)&&!(H.push($.value),S&&H.length===S);F=!0);}catch(te){B=!0,z=te}finally{try{!F&&K.return!=null&&K.return()}finally{if(B)throw z}}return H}function A(N){if(Array.isArray(N))return N}function l(N,S){if(N==null)return{};var H=i(N,S),F,B;if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(N);for(B=0;B<z.length;B++){if(F=z[B],S.indexOf(F)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(N,F))continue;H[F]=N[F]}}return H}function i(N,S){if(N==null)return{};var H={},F=Object.keys(N),B,z;for(z=0;z<F.length;z++){if(B=F[z],S.indexOf(B)>=0)continue;H[B]=N[B]}return H}var c=function(S){var H=S.className,F=S.percent,B=S.prefixCls,z=S.strokeColor,K=S.strokeLinecap,$=S.strokeWidth,te=S.style,fe=S.trailColor,Ae=S.trailWidth,ce=S.transition,ie=l(S,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete ie.gapPosition;var ye=Array.isArray(F)?F:[F],le=Array.isArray(z)?z:[z],me=O(ye),se=T(me,1),ge=se[0],ae=$/2,pe=100-$/2,Me="M ".concat(K==="round"?ae:0,",").concat(ae,`
L `).concat(K==="round"?pe:100,",").concat(ae),xe="0 0 100 ".concat($),Ke=0;return Q.a.createElement("svg",M({className:k()("".concat(B,"-line"),H),viewBox:xe,preserveAspectRatio:"none",style:te},ie),Q.a.createElement("path",{className:"".concat(B,"-line-trail"),d:Me,strokeLinecap:K,stroke:fe,strokeWidth:Ae||$,fillOpacity:"0"}),ye.map(function(et,he){var Se={strokeDasharray:"".concat(et,"px, 100px"),strokeDashoffset:"-".concat(Ke,"px"),transition:ce||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ue=le[he]||le[le.length-1];return Ke+=et,Q.a.createElement("path",{key:he,className:"".concat(B,"-line-path"),d:Me,strokeLinecap:K,stroke:Ue,strokeWidth:$,fillOpacity:"0",ref:ge[he],style:Se})}))};c.defaultProps=_;var d=c;function f(){return f=Object.assign||function(N){for(var S=1;S<arguments.length;S++){var H=arguments[S];for(var F in H)Object.prototype.hasOwnProperty.call(H,F)&&(N[F]=H[F])}return N},f.apply(this,arguments)}function o(N,S){return P(N)||w(N,S)||E(N,S)||u()}function u(){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 E(N,S){if(!N)return;if(typeof N=="string")return R(N,S);var H=Object.prototype.toString.call(N).slice(8,-1);if(H==="Object"&&N.constructor&&(H=N.constructor.name),H==="Map"||H==="Set")return Array.from(N);if(H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return R(N,S)}function R(N,S){(S==null||S>N.length)&&(S=N.length);for(var H=0,F=new Array(S);H<S;H++)F[H]=N[H];return F}function w(N,S){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(N)))return;var H=[],F=!0,B=!1,z=void 0;try{for(var K=N[Symbol.iterator](),$;!(F=($=K.next()).done)&&!(H.push($.value),S&&H.length===S);F=!0);}catch(te){B=!0,z=te}finally{try{!F&&K.return!=null&&K.return()}finally{if(B)throw z}}return H}function P(N){if(Array.isArray(N))return N}function C(N,S){if(N==null)return{};var H=b(N,S),F,B;if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(N);for(B=0;B<z.length;B++){if(F=z[B],S.indexOf(F)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(N,F))continue;H[F]=N[F]}}return H}function b(N,S){if(N==null)return{};var H={},F=Object.keys(N),B,z;for(z=0;z<F.length;z++){if(B=F[z],S.indexOf(B)>=0)continue;H[B]=N[B]}return H}var s=0;function h(N){return+N.replace("%","")}function m(N){return Array.isArray(N)?N:[N]}function x(N,S,H,F){var B=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,z=arguments.length>5?arguments[5]:void 0,K=50-F/2,$=0,te=-K,fe=0,Ae=-2*K;switch(z){case"left":$=-K,te=0,fe=2*K,Ae=0;break;case"right":$=K,te=0,fe=-2*K,Ae=0;break;case"bottom":te=K,Ae=2*K;break;default:}var ce="M 50,50 m ".concat($,",").concat(te,`
a `).concat(K,",").concat(K," 0 1 1 ").concat(fe,",").concat(-Ae,`
a `).concat(K,",").concat(K," 0 1 1 ").concat(-fe,",").concat(Ae),ie=Math.PI*2*K,ye={stroke:H,strokeDasharray:"".concat(S/100*(ie-B),"px ").concat(ie,"px"),strokeDashoffset:"-".concat(B/2+N/100*(ie-B),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:ce,pathStyle:ye}}var g=function(S){var H=S.prefixCls,F=S.strokeWidth,B=S.trailWidth,z=S.gapDegree,K=S.gapPosition,$=S.trailColor,te=S.strokeLinecap,fe=S.style,Ae=S.className,ce=S.strokeColor,ie=S.percent,ye=C(S,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),le=Object(Z.useMemo)(function(){return s+=1,s},[]),me=x(0,100,$,F,z,K),se=me.pathString,ge=me.pathStyle,ae=m(ie),pe=m(ce),Me=pe.find(function(Se){return Object.prototype.toString.call(Se)==="[object Object]"}),xe=O(ae),Ke=o(xe,1),et=Ke[0],he=function(){var Ue=0;return ae.map(function(Ne,ct){var ft=pe[ct]||pe[pe.length-1],Ot=Object.prototype.toString.call(ft)==="[object Object]"?"url(#".concat(H,"-gradient-").concat(le,")"):"",dt=x(Ue,Ne,ft,F,z,K);return Ue+=Ne,Q.a.createElement("path",{key:ct,className:"".concat(H,"-circle-path"),d:dt.pathString,stroke:Ot,strokeLinecap:te,strokeWidth:F,opacity:Ne===0?0:1,fillOpacity:"0",style:dt.pathStyle,ref:et[ct]})})};return Q.a.createElement("svg",f({className:k()("".concat(H,"-circle"),Ae),viewBox:"0 0 100 100",style:fe},ye),Me&&Q.a.createElement("defs",null,Q.a.createElement("linearGradient",{id:"".concat(H,"-gradient-").concat(le),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Me).sort(function(Se,Ue){return h(Se)-h(Ue)}).map(function(Se,Ue){return Q.a.createElement("stop",{key:Ue,offset:Se,stopColor:Me[Se]})}))),Q.a.createElement("path",{className:"".concat(H,"-circle-trail"),d:se,stroke:$,strokeLinecap:te,strokeWidth:B||F,fillOpacity:"0",style:ge}),he().reverse())};g.defaultProps=_;var y=g,U={Line:d,Circle:y}},h7HQ:function(Be,ee,v){var Z=v("y+Vt"),Q=v("T6xi"),I=Z.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(k,_){Q.buildPath(k,_,!0)}});Be.exports=I},hOwI:function(Be,ee){var v=Math.log(2);function Z(I,k,_,O,M,T){var n=O+"-"+M,p=I.length;if(T.hasOwnProperty(n))return T[n];if(k===1){var a=Math.round(Math.log((1<<p)-1&~M)/v);return I[_][a]}for(var t=O|1<<_,A=_+1;O&1<<A;)A++;for(var l=0,i=0,c=0;i<p;i++){var d=1<<i;d&M||(l+=(c%2?-1:1)*I[_][i]*Z(I,k-1,A,t,M|d,T),c++)}return T[n]=l,l}function Q(I,k){var _=[[I[0],I[1],1,0,0,0,-k[0]*I[0],-k[0]*I[1]],[0,0,0,I[0],I[1],1,-k[1]*I[0],-k[1]*I[1]],[I[2],I[3],1,0,0,0,-k[2]*I[2],-k[2]*I[3]],[0,0,0,I[2],I[3],1,-k[3]*I[2],-k[3]*I[3]],[I[4],I[5],1,0,0,0,-k[4]*I[4],-k[4]*I[5]],[0,0,0,I[4],I[5],1,-k[5]*I[4],-k[5]*I[5]],[I[6],I[7],1,0,0,0,-k[6]*I[6],-k[6]*I[7]],[0,0,0,I[6],I[7],1,-k[7]*I[6],-k[7]*I[7]]],O={},M=Z(_,8,0,0,0,O);if(M===0)return;for(var T=[],n=0;n<8;n++)for(var p=0;p<8;p++)T[p]==null&&(T[p]=0),T[p]+=((n+p)%2?-1:1)*Z(_,7,n===0?1:0,1<<n,1<<p,O)/M*k[n];return function(a,t,A){var l=t*T[6]+A*T[7]+1;a[0]=(t*T[0]+A*T[1]+T[2])/l,a[1]=(t*T[3]+A*T[4]+T[5])/l}}ee.buildTransformer=Q},hW8S:function(Be,ee,v){"use strict";v.d(ee,"a",function(){return k}),v.d(ee,"c",function(){return _}),v.d(ee,"b",function(){return O});var Z=v("VTBJ"),Q=v("Ff2n"),I=v("Kwbf"),k="RC_TABLE_INTERNAL_COL_DEFINE";function _(M){var T=M.expandable,n=Object(Q.a)(M,["expandable"]);return"expandable"in M?Object(Z.a)(Object(Z.a)({},n),T):n}function O(M){return Object.keys(M).reduce(function(T,n){return(n.substr(0,5)==="data-"||n.substr(0,5)==="aria-")&&(T[n]=M[n]),T},{})}},hX1E:function(Be,ee){var v=Math.PI*2;function Z(Q){return Q%=v,Q<0&&(Q+=v),Q}ee.normalizeRadian=Z},ho57:function(Be,ee){Be.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(Be,ee){var v="http://www.w3.org/2000/svg";function Z(Q){return document.createElementNS(v,Q)}ee.createElement=Z},hyiK:function(Be,ee){function v(Z,Q,I,k,_,O){if(O>Q&&O>k||O<Q&&O<k)return 0;if(k===Q)return 0;var M=k<Q?1:-1,T=(O-Q)/(k-Q);(T===1||T===0)&&(M=k<Q?.5:-.5);var n=T*(I-Z)+Z;return n===_?Infinity:n>_?M:0}Be.exports=v},iXp4:function(Be,ee,v){var Z=v("ItGF"),Q=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function I(k){return Z.browser.ie&&Z.browser.version>=11?function(){var _=this.__clipPaths,O=this.style,M;if(_)for(var T=0;T<_.length;T++){var n=_[T],p=n&&n.shape,a=n&&n.type;if(p&&(a==="sector"&&p.startAngle===p.endAngle||a==="rect"&&(!p.width||!p.height))){for(var t=0;t<Q.length;t++)Q[t][2]=O[Q[t][0]],O[Q[t][0]]=Q[t][1];M=!0;break}}if(k.apply(this,arguments),M)for(var t=0;t<Q.length;t++)O[Q[t][0]]=Q[t][2]}:k}Be.exports=I},ic2d:function(Be,ee,v){"use strict";v.d(ee,"a",function(){return k});var Z=v("FWmy"),Q=v("746U");class I{constructor(){this.data=new Map}add(_,O){Z.a(Q.l(_)),Z.a(Q.k(O)),Z.a(!this.data.has(_),"There is already an extension with this id"),this.data.set(_,O)}as(_){return this.data.get(_)||null}}const k=new I},ie49:function(Be,ee,v){Be.exports={brief:"brief___29L5W",contentTitle:"contentTitle___2wPLj",content:"content___2MAv3",tips:"tips___3qmPX",antdTable:"antdTable___o4ScH",tableCell:"tableCell___24I9Y",antdModal:"antdModal___1nRWw"}},j5sG:function(Be,ee,v){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.createSensor=void 0;var Z=Q(v("NohK"));function Q(k){return k&&k.__esModule?k:{default:k}}var I=function(_){var O=void 0,M=[],T=(0,Z.default)(function(){M.forEach(function(A){A(_)})}),n=function(){var l=new ResizeObserver(T);return l.observe(_),T(),l},p=function(l){O||(O=n()),M.indexOf(l)===-1&&M.push(l)},a=function(){O.disconnect(),M=[],O=void 0},t=function(l){var i=M.indexOf(l);i!==-1&&M.splice(i,1),M.length===0&&O&&a()};return{element:_,bind:p,destroy:a,unbind:t}};ee.createSensor=I},jTL6:function(Be,ee,v){var Z=v("y+Vt"),Q=Z.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(I,k){var _=k.cx,O=k.cy,M=Math.max(k.r,0),T=k.startAngle,n=k.endAngle,p=k.clockwise,a=Math.cos(T),t=Math.sin(T);I.moveTo(a*M+_,t*M+O),I.arc(_,O,M,T,n,!p)}});Be.exports=Q},jZGp:function(Be,ee,v){"use strict";var Z=v("ozfa"),Q=v("MJZm"),I=v("14J3"),k=v("BMrR"),_=v("+L6B"),O=v("2/Rp"),M=v("k1fw"),T=v("jCWc"),n=v("kPKH"),p=v("5Dmo"),a=v("3S7+"),t=v("miYZ"),A=v("tsqr"),l=v("9og8"),i=v("2qtc"),c=v("kLXV"),d=v("oBTY"),f=v("tJVT"),o=v("PpiC"),u=v("OaEy"),E=v("2fM7"),R=v("WmNS"),w=v.n(R),P=v("q1tI"),C=v.n(P),b=v("Ty5D"),s=v("9kvl"),h=v("Fvcw"),m=v("Mgx3"),x=v("1vsH"),g=v("qdXH"),y=v("V0Rq"),U=v("HBuW"),N=v("Dols"),S=v.n(N),H=v("LvDl"),F=v.n(H),B=v("8Skl"),z=v("UESt"),K=v("NLgs"),$=v("m3rI"),te=E.a.Option,fe=function(ce){var ie=ce.pathsDetail,ye=ce.globalSetting,le=ce.user,me=ce.loading,se=ce.visibleType,ge=ce.updateSort,ae=ce.isPaths,pe=ce.dispatch,Me=Object(o.a)(ce,["pathsDetail","globalSetting","user","loading","visibleType","updateSort","isPaths","dispatch"]),xe=Object(P.useState)([]),Ke=Object(f.a)(xe,2),et=Ke[0],he=Ke[1],Se=Object(P.useState)([]),Ue=Object(f.a)(Se,2),Ne=Ue[0],ct=Ue[1],ft=Object(b.i)(),Ot=Object(P.useState)([]),dt=Object(f.a)(Ot,2),Ut=dt[0],jt=dt[1],ze=Object(P.useState)({}),Ve=Object(f.a)(ze,2),Et=Ve[0],Rt=Ve[1];Object(P.useEffect)(function(){if(Me.data&&!Object(H.isEqual)(Me.data,Ut)){Ne=[];var Zt=JSON.parse(JSON.stringify(Me.data));Pe(Zt,0),jt(Object(d.a)(Zt)),se!="All"?he(Object(d.a)(Ne)):he([])}},[JSON.stringify(Me.data),se]),Object(P.useEffect)(function(){var Zt,xt,Ct;if((Zt=ie.detail)!==null&&Zt!==void 0&&Zt.has_start){var mt,Je,Qe=(mt=ie.detail)===null||mt===void 0||((Je=mt.courses)===null||Je===void 0)?void 0:Je.findIndex(function(Gt){var kt;return parseInt((kt=Gt.course_status)===null||kt===void 0?void 0:kt.status)===1});Ct=Qe>-1?Qe:0}else{var Oe,je,St,bt,Dt,Qt=(Oe=ie.detail)===null||Oe===void 0||((je=Oe.courses)===null||je===void 0||((St=je.map(function(Gt){var kt;return parseInt((kt=Gt.course_status)===null||kt===void 0?void 0:kt.status)}))===null||St===void 0))?void 0:St.lastIndexOf(2);Ct=Qt>-1?Qt:0,Qt=(bt=ie.detail)===null||bt===void 0||((Dt=bt.courses)===null||Dt===void 0)?void 0:Dt.findIndex(function(Gt){var kt;return parseInt((kt=Gt.course_status)===null||kt===void 0?void 0:kt.status)===0}),Ct=Qt>-1?Qt:Ct}if((xt=ie.detail)!==null&&xt!==void 0&&xt.courses){var _t;Rt(((_t=ie.detail)===null||_t===void 0?void 0:_t.courses[Ct])||{})}},[ie.detail]);var ut=function(xt,Ct){c.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u5B9E\u8BAD\u5417\uFF1F",onOk:function(){}})},vt=function(xt){c.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u7AE0\u8282\u5417\uFF1F",onOk:function(){var Ct=Object(l.a)(w.a.mark(function Je(){return w.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:case"end":return Oe.stop()}},Je)}));function mt(){return Ct.apply(this,arguments)}return mt}()})},Ze=function(){var Zt=Object(l.a)(w.a.mark(function xt(Ct,mt){var Je;return w.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(pe({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF0C\u8BF7\u7A0D\u540E..."}}),!mt){Oe.next=7;break}return Oe.next=4,Object(U.D)({id:Ct});case 4:Oe.t0=Oe.sent,Oe.next=10;break;case 7:return Oe.next=9,Object(U.E)({id:Ct});case 9:Oe.t0=Oe.sent;case 10:if(Je=Oe.t0,pe({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),!(Je!=null&&Je.game_identifier||Je!=null&&Je.identifier)){Oe.next=15;break}return Object(x.S)(mt?"/tasks/".concat(Je==null?void 0:Je.identifier,"/jupyter"):"/tasks/".concat(Je.game_identifier,"?subject_id=").concat(ft.pathId||"")),Oe.abrupt("return");case 15:(Je==null?void 0:Je.status)===-3?Object(x.q)():(Je==null?void 0:Je.status)===2?ke(Je==null?void 0:Je.message):(Je==null?void 0:Je.status)===3&&He(Je==null?void 0:Je.message);case 16:case"end":return Oe.stop()}},xt)}));return function(Ct,mt){return Zt.apply(this,arguments)}}(),ke=function Zt(xt){var Ct;xt=(Ct=xt)!==null&&Ct!==void 0&&Ct.includes(".json")?xt:"".concat(xt,".json"),c.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:C.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var mt=Object(l.a)(w.a.mark(function Qe(){var Oe,je;return w.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return bt.next=2,Object(y.T)({url:xt});case 2:if(Oe=bt.sent,Oe){bt.next=5;break}return bt.abrupt("return");case 5:return A.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),bt.next=8,Object(U.E)({id:Oe.shixun_identifier});case 8:if(je=bt.sent,!(je!=null&&je.game_identifier)){bt.next=12;break}return Object(x.S)("/tasks/".concat(je.game_identifier)),bt.abrupt("return");case 12:(je==null?void 0:je.status)===2?Zt(je==null?void 0:je.message):(je==null?void 0:je.status)===3&&He(je==null?void 0:je.message);case 13:case"end":return bt.stop()}},Qe)}));function Je(){return mt.apply(this,arguments)}return Je}()})},He=function(xt){c.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:C.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",xt,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},we=function(xt){console.log("onDragEnter:",xt)},Le=function(){var Zt=Object(l.a)(w.a.mark(function xt(Ct){var mt,Je,Qe,Oe,je,St,bt,Dt,Qt;return w.a.wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:if(console.log("onDrop:",Ct),mt=Ct.node.props.eventKey,Je=Ct.dragNode.props.eventKey,Qe=Ct.node.props.pos.split("-"),Oe=Ct.dropPosition-Number(Qe[Qe.length-1]),!(Qe.length>2&&!Ct.node.dragOverGapBottom&&!Ct.node.dragOverGapTop)){Gt.next=7;break}return Gt.abrupt("return",!1);case 7:if(!(Ct.node.dragOver&&Ct.dragNodesKeys.length>1)){Gt.next=9;break}return Gt.abrupt("return",!1);case 9:if(!(Qe.length>2&&Ct.dragNodesKeys.length>1)){Gt.next=11;break}return Gt.abrupt("return",!1);case 11:return je=function kt(fn,mn,Tr){for(var Mr=0;Mr<fn.length;Mr++){if(fn[Mr].key===mn)return Tr(fn[Mr],Mr,fn);fn[Mr].children&&kt(fn[Mr].children,mn,Tr)}},St=Object(d.a)(Ut),je(St,Je,function(kt,fn,mn){mn.splice(fn,1),bt=kt}),Ct.dropToGap?(Ct.node.props.children||[]).length>0&&Ct.node.props.expanded&&Oe===1?je(St,mt,function(kt){kt.children=kt.children||[],kt.children.unshift(bt)}):(je(St,mt,function(kt,fn,mn){Dt=mn,Qt=fn}),Oe===-1?Dt.splice(Qt,0,bt):Dt.splice(Qt+1,0,bt)):je(St,mt,function(kt){kt.children=kt.children||[],kt.children.unshift(bt)}),Gt.next=17,ge({stage_id:Me.stage_id,list:St});case 17:Pe(St,0,0,!0),console.log("data:",St),jt(Object(d.a)(St)),he([].concat(Object(d.a)(et),[Ct.node.key]));case 21:case"end":return Gt.stop()}},xt)}));return function(Ct){return Zt.apply(this,arguments)}}(),Pe=function Zt(xt,Ct,mt,Je){Ct=Ct||0,xt.map(function(Qe,Oe){try{var je;return Qe.key2=Ct+1+"-"+(Oe+1),Qe.key3=Me.index+1+"-"+(Oe+1),Qe.title="",Je||(Qe.key=Ct+1+"-"+(Oe+1)),Ct?Qe.index=mt+"-"+(Oe+1):Qe.index=Qe.key3,(je=Qe.children)!==null&&je!==void 0&&je.length&&(Ne.push(Qe.key2),Zt(Qe.children,Qe.key2,Qe.index,Je)),Qe}catch(St){}})},We=function(xt){var Ct=xt.learning_status,mt=xt.name,Je=(Ct==null?void 0:Ct[0])==="can"&&(Ct==null?void 0:Ct[1])==="try";return Je?C.a.createElement("div",{className:S.a.learn},C.a.createElement("span",{className:S.a.name},mt),C.a.createElement("span",{className:S.a.sign},"\u514D\u8D39\u8BD5\u5B66")):mt},Xe=function(xt){if(se!=="All")return;et.includes(xt)?he(et.filter(function(Ct){return Ct!=xt})):he(et.concat(xt))},gt=function(){var Zt=Object(l.a)(w.a.mark(function xt(Ct){return w.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:if(Object(K.e)(pe,!0)){Je.next=2;break}return Je.abrupt("return");case 2:if(!(Ct!=null&&Ct.need_authorize)){Je.next=5;break}return Object(K.a)(!1),Je.abrupt("return");case 5:if(!(Et!=null&&Et.course_id)){Je.next=8;break}return Je.next=8,Object(m.L)({id:Et==null?void 0:Et.course_id});case 8:Ze(Ct.identifier,Ct.is_jupyter||Ct.is_jupyter_lab);case 9:case"end":return Je.stop()}},xt)}));return function(Ct){return Zt.apply(this,arguments)}}(),Lt=function(){var Zt=Object(l.a)(w.a.mark(function xt(Ct){var mt,Je,Qe,Oe,je,St;return w.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:if(Object(K.e)(pe)){Dt.next=2;break}return Dt.abrupt("return");case 2:if(!(!((mt=le.userInfo)!==null&&mt!==void 0&&mt.admin)&&!((Je=le.userInfo)!==null&&Je!==void 0&&Je.business)&&!Ct.can_view&&Ct.item_type!=="Attachment")){Dt.next=4;break}return Dt.abrupt("return",c.a.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:C.a.createElement("div",{className:"tc font14"},"\u5F53\u524D\u89C6\u9891\u4E3A\u521B\u5EFA\u8005\u6240\u5C5E\u5355\u4F4D\u5185\u90E8\u6559\u5B66\u8D44\u6599\uFF0C\u5916\u5355\u4F4D\u7528\u6237\u65E0\u89C2\u770B\u6743\u9650")}));case 4:Ct.link&&Object(g.n)({is_f:1,id:Ct.id,point:0,total:0}),je=Me!=null&&Me.course_id?"course_id=".concat(Me==null?void 0:Me.course_id):"subject_id=".concat(ft.pathId||Me.subject_id),St=Ct==null||((Qe=Ct.name)===null||Qe===void 0)?void 0:Qe.substr(Ct==null||((Oe=Ct.name)===null||Oe===void 0)?void 0:Oe.lastIndexOf(".")),St.toUpperCase()===".ZIP"?Object(x.v)(Ct.name,$.a.API_SERVER+Ct.url):Object(x.S)(Ct.link||"/video/".concat(Ct.id,"?").concat(je));case 8:case"end":return Dt.stop()}},xt)}));return function(Ct){return Zt.apply(this,arguments)}}(),en=function(xt){var Ct;return xt.item_type==="Shixun"?xt.is_all_choice?Ct=C.a.createElement(a.a,{title:"\u9009\u62E9\u9898"},C.a.createElement("i",{className:"iconfont icon-xuanzeti3 c-lake-blue font20"})):Ct=C.a.createElement(a.a,{title:"\u5B9E\u8BAD\u9898"},C.a.createElement("i",{className:"iconfont icon-shixunti2 c-light-primary font20"})):xt.item_type==="VideoItem"?Ct=C.a.createElement("i",{className:"iconfont icon-shipin2 c-purple-8C1 font20"}):xt.item_type==="StageCatalog"?Ct=C.a.createElement("i",{className:"iconfont icon-kongbai c-brilliant-blue font20"}):Ct=C.a.createElement("i",{className:"iconfont icon-kejian1 c-cyan-blue font20"}),Ct;xt.item_type==="Shixun"||xt.item_type==="StageCatalog"};return C.a.createElement(C.a.Fragment,null,C.a.createElement(Q.a,{className:S.a.tree,disabled:Me.disabled,expandedKeys:Object(d.a)(et),draggable:!0,onDragEnter:we,onDrop:Le,onExpand:Xe,blockNode:!0,titleRender:function(xt){var Ct,mt,Je,Qe=xt;if(Qe.item_type!==se&&se!=="All")return null;var Oe=xt.index.slice(0,1)==="1",je=(xt==null||((Ct=xt.learning_status)===null||Ct===void 0)?void 0:Ct[0])==="can";return C.a.createElement(k.a,{align:"middle",className:"font14",onClick:function(){return Xe(Qe.key)}},C.a.createElement(n.a,{flex:"30px"},en(xt)),C.a.createElement(n.a,{flex:"1",className:"c-grey-333"},Me.cust_seq&&C.a.createElement("span",{className:"mr10"},xt.index),xt.item_type!=="Attachment"&&We(xt),xt.item_type==="Attachment"&&C.a.createElement("a",{target:"_blank",onClick:Object(l.a)(w.a.mark(function St(){var bt;return w.a.wrap(function(Qt){for(;;)switch(Qt.prev=Qt.next){case 0:if(Object(K.e)(pe)){Qt.next=2;break}return Qt.abrupt("return");case 2:if(!(Et!=null&&Et.course_id)){Qt.next=6;break}return Qt.next=5,Object(m.L)({id:Et==null?void 0:Et.course_id});case 5:bt=Qt.sent;case 6:Qt.t0=xt.item_type,Qt.next=Qt.t0==="Attachment"?9:Qt.t0==="VideoItem"?11:Qt.t0==="Shixun"?13:15;break;case 9:return Lt(Qe),Qt.abrupt("break",15);case 11:return Lt(xt),Qt.abrupt("break",15);case 13:return gt(xt),Qt.abrupt("break",15);case 15:case"end":return Qt.stop()}},St)}))},xt.name),xt.item_type==="Shixun"&&xt.is_unity_3d&&C.a.createElement("span",{style:{background:"#a300d8",color:"#fff",borderRadius:"13px",marginLeft:"5px",width:"68px",height:"20px",display:"inline-block",textAlign:"center",fontSize:"12px"}},"\u865A\u62DF\u4EFF\u771F"),xt.item_type==="Shixun"&&xt.is_jupyter_lab&&C.a.createElement("span",{style:{background:"#ff6802",color:"#fff",borderRadius:"13px",marginLeft:"5px",width:"76px",height:"20px",display:"inline-block",textAlign:"center",fontSize:"12px"}},"JupyterLab"),xt.item_type==="Shixun"&&xt.is_jupyter&&C.a.createElement("span",{style:{background:"#ff6802",color:"#fff",borderRadius:"13px",marginLeft:"5px",width:"112px",height:"20px",display:"inline-block",textAlign:"center",fontSize:"12px"}},"Jupyter Notebook"),!!((mt=xt.schools)!==null&&mt!==void 0&&mt.length)&&C.a.createElement(a.a,{title:"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E"},C.a.createElement("i",{className:"iconfont icon-zhidinggongkai1 ml10 c-orange",style:{transform:"translateY(1px)",display:"inline-block"}})),xt.item_type==="Shixun"&&!!(xt!=null&&xt.finished_challenges_count)&&C.a.createElement(a.a,{title:"\u5B8C\u6210\u5EA6:".concat(Math.round((xt==null?void 0:xt.finished_challenges_count)/(xt==null?void 0:xt.challenges_count)*100),"%")},C.a.createElement("i",{className:"iconfont icon-a-wanchengdu100 ml10 ".concat((xt==null?void 0:xt.finished_challenges_count)-(xt==null?void 0:xt.challenges_count)===0?"c-light-green":"c-grey-333"),style:{transform:"translateY(1px)",display:"inline-block"}}))),!Me.disabled&&C.a.createElement("aside",{style:{color:"#0152d9",fontSize:"14px",marginRight:"20px"}},"\u62D6\u52A8\u53EF\u4EE5\u6539\u53D8\u9879\u76EE\u663E\u793A\u987A\u5E8F"),C.a.createElement(n.a,{className:"tr"},(Qe.item_type==="VideoItem"||(Qe==null?void 0:Qe.item_type)==="Attachment"||(Qe==null?void 0:Qe.item_type)==="StageCatalog")&&!Me.disabled&&C.a.createElement(a.a,{title:"\u7F16\u8F91"},C.a.createElement("span",{onClick:function(){Me.editVidoItem(Object(M.a)({stage_id:Me.stage_id},Qe))},style:{color:"#ccc",marginRight:"10px"}},C.a.createElement(h.a,null))),!Me.disabled&&C.a.createElement(C.a.Fragment,null,C.a.createElement(a.a,{title:"\u5220\u9664"},C.a.createElement("span",{onClick:function(){Me.deleteStages({id:Qe.stage_item_id,stage_id:Me.stage_id})},className:"iconfont icon-shanchu c-grey-c"}))),Me.showVideoPlay&&Me.disabled&&Qe.item_type==="VideoItem"&&je&&C.a.createElement("aside",null,ae&&C.a.createElement(O.a,{className:"mr10",type:"primary",onClick:Object(l.a)(w.a.mark(function St(){return w.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:if(Object(K.e)(pe)){Dt.next=2;break}return Dt.abrupt("return");case 2:pe({type:"shixunsDetail/setActionTabs",payload:{key:"Stage-SendModal",params:{id:Qe.stage_item_id,title:"\u89C6\u9891"}}});case 3:case"end":return Dt.stop()}},St)}))},"\u53D1\u9001"),C.a.createElement(O.a,{type:"primary",onClick:Object(l.a)(w.a.mark(function St(){return w.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:Lt(Qe);case 1:case"end":return Dt.stop()}},St)}))},Qe.last_point>0?"\u7EE7\u7EED\u5B66\u4E60":"\u5F00\u59CB\u5B66\u4E60")),(Qe.allow_visit||Qe.to_be_built||!Qe.shixun_status)&&Me.disabled&&Qe.item_type==="Shixun"&&je&&C.a.createElement("aside",null,ae&&!Qe.shixun_status&&C.a.createElement(O.a,{className:"ml10",type:"primary",onClick:Object(l.a)(w.a.mark(function St(){return w.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:if(Object(K.e)(pe)){Dt.next=2;break}return Dt.abrupt("return");case 2:pe({type:"shixunsDetail/setActionTabs",payload:{key:"Stage-SendModal",params:{id:Qe.stage_item_id,title:"\u5B9E\u8BAD",is_jupyter:Qe==null?void 0:Qe.is_jupyter,identifier:Qe==null?void 0:Qe.identifier}}});case 3:case"end":return Dt.stop()}},St)}))},"\u53D1\u9001"),C.a.createElement(O.a,{className:"ml10",type:"primary",onClick:Object(l.a)(w.a.mark(function St(){return w.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:if(Object(K.e)(pe)){Dt.next=2;break}return Dt.abrupt("return");case 2:if(!(Et!=null&&Et.course_id)){Dt.next=5;break}return Dt.next=5,Object(m.L)({id:Et==null?void 0:Et.course_id});case 5:window.open("/shixuns/".concat(Qe.identifier,"/challenges"));case 6:case"end":return Dt.stop()}},St)}))},"\u67E5\u770B\u8BE6\u60C5"),!Qe.shixun_status&&C.a.createElement(O.a,{className:"ml10",type:"primary",onClick:Object(l.a)(w.a.mark(function St(){return w.a.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:gt(Qe);case 1:case"end":return Dt.stop()}},St)}))},Qe!=null&&Qe.need_authorize?"\u9700\u6388\u6743":xt!=null&&xt.finished_challenges_count?(xt==null?void 0:xt.finished_challenges_count)-(xt==null?void 0:xt.challenges_count)===0?"\u518D\u6B21\u5B9E\u6218":"\u7EE7\u7EED\u5B9E\u6218":"\u5F00\u59CB\u5B9E\u6218")),Me.disabled&&Qe.shixun_status==="\u6682\u672A\u516C\u5F00"&&C.a.createElement("span",{className:"".concat(S.a.color204," ml5")},"\u6682\u672A\u53D1\u5E03"),Qe.shixun_status==="\u5DF2\u5220\u9664"&&C.a.createElement("span",{className:"".concat(S.a.color204," ml5")},"\u5DF2\u5220\u9664"),Me.disabled&&Qe.item_type==="Shixun"&&!!Qe.challenges_count&&C.a.createElement("span",{className:"exper\u02C6iment-number ml5 c-grey-999"},"\u5B9E\u9A8C\u6570 ",Qe.challenges_count),se==="All"&&!!((Je=xt.children)!==null&&Je!==void 0&&Je.length)&&C.a.createElement("span",{className:"ml10"},et.includes(xt.key)?C.a.createElement(B.a,null):C.a.createElement(z.a,null))))},treeData:Ut}))};ee.a=Object(s.a)(function(Ae){var ce=Ae.pathsDetail,ie=Ae.loading,ye=Ae.user,le=Ae.globalSetting;return{pathsDetail:ce,globalSetting:le,user:ye,loading:ie.effects}})(fe)},ji0R:function(Be,ee,v){Be.exports=v.p+"static/douyu.3e6df9ee.jpg"},juDX:function(Be,ee,v){v("P47w");var Z=v("aX58"),Q=Z.registerPainter,I=v("3CBa");Q("svg",I)},k3GJ:function(Be,ee,v){"use strict";v.d(ee,"a",function(){return gl});var Z=v("rePB"),Q=v("ODXe"),I=v("Ff2n"),k=v("VTBJ"),_=v("q1tI"),O=v("TSYQ"),M=v.n(O),T=v("Zm9Q"),n=v("6cGi"),p=v("KQm4"),a=v("xEkU"),t=v.n(a),A=v("t23M");function l($e){var pt=Object(_.useRef)(),wt=Object(_.useRef)(!1);function nt(){for(var Te=arguments.length,Ge=new Array(Te),Re=0;Re<Te;Re++)Ge[Re]=arguments[Re];wt.current||(t.a.cancel(pt.current),pt.current=t()(function(){$e.apply(void 0,Ge)}))}return Object(_.useEffect)(function(){return function(){wt.current=!0,t.a.cancel(pt.current)}},[]),nt}function i($e){var pt=Object(_.useRef)([]),wt=Object(_.useState)({}),nt=Object(Q.a)(wt,2),Te=nt[1],Ge=Object(_.useRef)(typeof $e=="function"?$e():$e),Re=l(function(){var st=Ge.current;pt.current.forEach(function(Tt){st=Tt(st)}),pt.current=[],Ge.current=st,Te({})});function it(st){pt.current.push(st),Re()}return[Ge.current,it]}var c=v("4IlW");function d($e,pt){var wt,nt=$e.prefixCls,Te=$e.id,Ge=$e.active,Re=$e.rtl,it=$e.tab,st=it.key,Tt=it.tab,ht=it.disabled,Mt=it.closeIcon,tn=$e.tabBarGutter,lt=$e.tabPosition,qe=$e.closable,Bt=$e.renderWrapper,$t=$e.removeAriaLabel,cn=$e.editable,Wt=$e.onClick,_n=$e.onRemove,rn=$e.onFocus,Ht="".concat(nt,"-tab");_.useEffect(function(){return _n},[]);var An={};lt==="top"||lt==="bottom"?An[Re?"marginLeft":"marginRight"]=tn:An.marginBottom=tn;var qt=cn&&qe!==!1&&!ht;function En(wn){if(ht)return;Wt(wn)}function kn(wn){wn.preventDefault(),wn.stopPropagation(),cn.onEdit("remove",{key:st,event:wn})}var Yt=_.createElement("div",{key:st,ref:pt,className:M()(Ht,(wt={},Object(Z.a)(wt,"".concat(Ht,"-with-remove"),qt),Object(Z.a)(wt,"".concat(Ht,"-active"),Ge),Object(Z.a)(wt,"".concat(Ht,"-disabled"),ht),wt)),style:An,onClick:En},_.createElement("div",{role:"tab","aria-selected":Ge,id:Te&&"".concat(Te,"-tab-").concat(st),className:"".concat(Ht,"-btn"),"aria-controls":Te&&"".concat(Te,"-panel-").concat(st),"aria-disabled":ht,tabIndex:ht?null:0,onClick:function(ln){ln.stopPropagation(),En(ln)},onKeyDown:function(ln){[c.a.SPACE,c.a.ENTER].includes(ln.which)&&(ln.preventDefault(),En(ln))},onFocus:rn},Tt),qt&&_.createElement("button",{type:"button","aria-label":$t||"remove",tabIndex:0,className:"".concat(Ht,"-remove"),onClick:function(ln){ln.stopPropagation(),kn(ln)}},Mt||cn.removeIcon||"\xD7"));return Bt&&(Yt=Bt(Yt)),Yt}var f=_.forwardRef(d),o={width:0,height:0,left:0,top:0};function u($e,pt,wt){return Object(_.useMemo)(function(){for(var nt,Te=new Map,Ge=pt.get((nt=$e[0])===null||nt===void 0?void 0:nt.key)||o,Re=Ge.left+Ge.width,it=0;it<$e.length;it+=1){var st=$e[it].key,Tt=pt.get(st);if(!Tt){var ht;Tt=pt.get((ht=$e[it-1])===null||ht===void 0?void 0:ht.key)||o}var Mt=Te.get(st)||Object(k.a)({},Tt);Mt.right=Re-Mt.left-Mt.width,Te.set(st,Mt)}return Te},[$e.map(function(nt){return nt.key}).join("_"),pt,wt])}var E={width:0,height:0,left:0,top:0,right:0};function R($e,pt,wt,nt,Te){var Ge=Te.tabs,Re=Te.tabPosition,it=Te.rtl,st,Tt,ht;["top","bottom"].includes(Re)?(st="width",Tt=it?"right":"left",ht=Math.abs(pt.left)):(st="height",Tt="top",ht=-pt.top);var Mt=pt[st],tn=wt[st],lt=nt[st],qe=Mt;return tn+lt>Mt&&(qe=Mt-lt),Object(_.useMemo)(function(){if(!Ge.length)return[0,0];for(var Bt=Ge.length,$t=Bt,cn=0;cn<Bt;cn+=1){var Wt=$e.get(Ge[cn].key)||E;if(Wt[Tt]+Wt[st]>ht+qe){$t=cn-1;break}}for(var _n=0,rn=Bt-1;rn>=0;rn-=1){var Ht=$e.get(Ge[rn].key)||E;if(Ht[Tt]<ht){_n=rn+1;break}}return[_n,$t]},[$e,ht,qe,Re,Ge.map(function(Bt){return Bt.key}).join("_"),it])}var w=v("wx14"),P=v("1OyB"),C=v("vuIU"),b=v("JX7q"),s=v("Ji7U"),h=v("LK+K"),m=v("I8Z2"),x=v("bT9E"),g=v("2GS6"),y=v("Gytx"),U=v.n(y),N=v("U8pU"),S=/iPhone/i,H=/iPod/i,F=/iPad/i,B=/\bAndroid(?:.+)Mobile\b/i,z=/Android/i,K=/\bAndroid(?:.+)SD4930UR\b/i,$=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,te=/Windows Phone/i,fe=/\bWindows(?:.+)ARM\b/i,Ae=/BlackBerry/i,ce=/BB10/i,ie=/Opera Mini/i,ye=/\b(CriOS|Chrome)(?:.+)Mobile/i,le=/Mobile(?:.+)Firefox\b/i;function me($e,pt){return $e.test(pt)}function se($e){var pt=$e||(typeof navigator!="undefined"?navigator.userAgent:""),wt=(pt||"").split("[FBAN");if(typeof wt[1]!="undefined"){var nt=wt,Te=Object(Q.a)(nt,1);pt=Te[0]}if(wt=pt.split("Twitter"),typeof wt[1]!="undefined"){var Ge=wt,Re=Object(Q.a)(Ge,1);pt=Re[0]}var it={apple:{phone:me(S,pt)&&!me(te,pt),ipod:me(H,pt),tablet:!me(S,pt)&&me(F,pt)&&!me(te,pt),device:(me(S,pt)||me(H,pt)||me(F,pt))&&!me(te,pt)},amazon:{phone:me(K,pt),tablet:!me(K,pt)&&me($,pt),device:me(K,pt)||me($,pt)},android:{phone:!me(te,pt)&&me(K,pt)||!me(te,pt)&&me(B,pt),tablet:!me(te,pt)&&!me(K,pt)&&!me(B,pt)&&(me($,pt)||me(z,pt)),device:!me(te,pt)&&(me(K,pt)||me($,pt)||me(B,pt)||me(z,pt))||me(/\bokhttp\b/i,pt)},windows:{phone:me(te,pt),tablet:me(fe,pt),device:me(te,pt)||me(fe,pt)},other:{blackberry:me(Ae,pt),blackberry10:me(ce,pt),opera:me(ie,pt),firefox:me(le,pt),chrome:me(ye,pt),device:me(Ae,pt)||me(ce,pt)||me(ie,pt)||me(le,pt)||me(ye,pt)},any:null,phone:null,tablet:null};return it.any=it.apple.device||it.android.device||it.windows.device||it.other.device,it.phone=it.apple.phone||it.android.phone||it.windows.phone,it.tablet=it.apple.tablet||it.android.tablet||it.windows.tablet,it}var ge=Object(k.a)(Object(k.a)({},se()),{},{isMobile:se}),ae=ge;function pe(){}function Me($e,pt,wt){var nt=pt||"";return $e.key||"".concat(nt,"item_").concat(wt)}function xe($e){return"".concat($e,"-menu-")}function Ke($e,pt){var wt=-1;_.Children.forEach($e,function(nt){wt+=1,nt&&nt.type&&nt.type.isMenuItemGroup?_.Children.forEach(nt.props.children,function(Te){wt+=1,pt(Te,wt)}):pt(nt,wt)})}function et($e,pt,wt){if(!$e||wt.find)return;_.Children.forEach($e,function(nt){if(nt){var Te=nt.type;if(!Te||!(Te.isSubMenu||Te.isMenuItem||Te.isMenuItemGroup))return;pt.indexOf(nt.key)!==-1?wt.find=!0:nt.props.children&&et(nt.props.children,pt,wt)}})}var he=["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"],Se=function(pt){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nt=pt&&typeof pt.getBoundingClientRect=="function"&&pt.getBoundingClientRect().width;if(nt){if(wt){var Te=getComputedStyle(pt),Ge=Te.marginLeft,Re=Te.marginRight;nt+=+Ge.replace("px","")+ +Re.replace("px","")}nt=+nt.toFixed(6)}return nt||0},Ue=function(pt,wt,nt){pt&&Object(N.a)(pt.style)==="object"&&(pt.style[wt]=nt)},Ne=function(){return ae.any},ct=v("bdgK"),ft=v("i8i4"),Ot=v.n(ft),dt=v("wgJM"),Ut=v("l4aY"),jt=v("m+aA"),ze=v("c+Xe"),Ve=v("zT1h"),Et=v("QC+M");function Rt($e,pt,wt){return wt?$e[0]===pt[0]:$e[0]===pt[0]&&$e[1]===pt[1]}function ut($e,pt,wt){var nt=$e[pt]||{};return Object(k.a)(Object(k.a)({},nt),wt)}function vt($e,pt,wt,nt){for(var Te=wt.points,Ge=Object.keys($e),Re=0;Re<Ge.length;Re+=1){var it=Ge[Re];if(Rt($e[it].points,Te,nt))return"".concat(pt,"-placement-").concat(it)}return""}var Ze=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var $e=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($e)||/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($e==null?void 0:$e.substr(0,4)))},ke=v("MNnm");function He($e,pt){var wt={};return wt[$e.toLowerCase()]=pt.toLowerCase(),wt["Webkit".concat($e)]="webkit".concat(pt),wt["Moz".concat($e)]="moz".concat(pt),wt["ms".concat($e)]="MS".concat(pt),wt["O".concat($e)]="o".concat(pt.toLowerCase()),wt}function we($e,pt){var wt={animationend:He("Animation","AnimationEnd"),transitionend:He("Transition","TransitionEnd")};return $e&&("AnimationEvent"in pt||delete wt.animationend.animation,"TransitionEvent"in pt||delete wt.transitionend.transition),wt}var Le=we(Object(ke.a)(),typeof window!="undefined"?window:{}),Pe={};if(Object(ke.a)()){var We=document.createElement("div");Pe=We.style}var Xe={};function gt($e){if(Xe[$e])return Xe[$e];var pt=Le[$e];if(pt)for(var wt=Object.keys(pt),nt=wt.length,Te=0;Te<nt;Te+=1){var Ge=wt[Te];if(Object.prototype.hasOwnProperty.call(pt,Ge)&&Ge in Pe)return Xe[$e]=pt[Ge],Xe[$e]}return""}var Lt=gt("animationend"),en=gt("transitionend"),Zt=!!(Lt&&en),xt=Lt||"animationend",Ct=en||"transitionend";function mt($e,pt){if(!$e)return null;if(Object(N.a)($e)==="object"){var wt=pt.replace(/-\w/g,function(nt){return nt[1].toUpperCase()});return $e[wt]}return"".concat($e,"-").concat(pt)}var Je="none",Qe="appear",Oe="enter",je="leave",St="none",bt="prepare",Dt="start",Qt="active",_t="end";function Gt($e){var pt=Object(_.useRef)(!1),wt=Object(_.useState)($e),nt=Object(Q.a)(wt,2),Te=nt[0],Ge=nt[1];function Re(it){pt.current||Ge(it)}return Object(_.useEffect)(function(){return function(){pt.current=!0}},[]),[Te,Re]}var kt=Object(ke.a)()?_.useLayoutEffect:_.useEffect,fn=kt,mn=function(){var $e=_.useRef(null);function pt(){dt.a.cancel($e.current)}function wt(nt){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;pt();var Ge=Object(dt.a)(function(){Te<=1?nt({isCanceled:function(){return Ge!==$e.current}}):wt(nt,Te-1)});$e.current=Ge}return _.useEffect(function(){return function(){pt()}},[]),[wt,pt]},Tr=[bt,Dt,Qt,_t],Mr=!1,kr=!0;function Un($e){return $e===Qt||$e===_t}var Ra=function($e,pt){var wt=_.useState(St),nt=Object(Q.a)(wt,2),Te=nt[0],Ge=nt[1],Re=mn(),it=Object(Q.a)(Re,2),st=it[0],Tt=it[1];function ht(){Ge(bt)}return fn(function(){if(Te!==St&&Te!==_t){var Mt=Tr.indexOf(Te),tn=Tr[Mt+1],lt=pt(Te);lt===Mr?Ge(tn):st(function(qe){function Bt(){if(qe.isCanceled())return;Ge(tn)}lt===!0?Bt():Promise.resolve(lt).then(Bt)})}},[$e,Te]),_.useEffect(function(){return function(){Tt()}},[]),[ht,Te]},Xr=function($e){var pt=Object(_.useRef)(),wt=Object(_.useRef)($e);wt.current=$e;var nt=_.useCallback(function(Re){wt.current(Re)},[]);function Te(Re){Re&&(Re.removeEventListener(Ct,nt),Re.removeEventListener(xt,nt))}function Ge(Re){pt.current&&pt.current!==Re&&Te(pt.current),Re&&Re!==pt.current&&(Re.addEventListener(Ct,nt),Re.addEventListener(xt,nt),pt.current=Re)}return _.useEffect(function(){return function(){Te(pt.current)}},[]),[Ge,Te]};function aa($e,pt,wt,nt){var Te=nt.motionEnter,Ge=Te===void 0?!0:Te,Re=nt.motionAppear,it=Re===void 0?!0:Re,st=nt.motionLeave,Tt=st===void 0?!0:st,ht=nt.motionDeadline,Mt=nt.motionLeaveImmediately,tn=nt.onAppearPrepare,lt=nt.onEnterPrepare,qe=nt.onLeavePrepare,Bt=nt.onAppearStart,$t=nt.onEnterStart,cn=nt.onLeaveStart,Wt=nt.onAppearActive,_n=nt.onEnterActive,rn=nt.onLeaveActive,Ht=nt.onAppearEnd,An=nt.onEnterEnd,qt=nt.onLeaveEnd,En=nt.onVisibleChanged,kn=Gt(),Yt=Object(Q.a)(kn,2),wn=Yt[0],ln=Yt[1],xn=Gt(Je),an=Object(Q.a)(xn,2),Vt=an[0],Sn=an[1],hr=Gt(null),pn=Object(Q.a)(hr,2),Dn=pn[0],Nn=pn[1],Gn=Object(_.useRef)(!1),yn=Object(_.useRef)(null),Kn=Object(_.useRef)(!1),or=Object(_.useRef)(null);function gr(){var Yn=wt();return Yn||or.current}var Ur=Object(_.useRef)(!1);function er(Yn){var vn=gr();if(Yn&&!Yn.deadline&&Yn.target!==vn)return;var yr;Vt===Qe&&Ur.current?yr=Ht==null?void 0:Ht(vn,Yn):Vt===Oe&&Ur.current?yr=An==null?void 0:An(vn,Yn):Vt===je&&Ur.current&&(yr=qt==null?void 0:qt(vn,Yn)),yr!==!1&&!Kn.current&&(Sn(Je),Nn(null))}var rr=Xr(er),Lr=Object(Q.a)(rr,1),Er=Lr[0],_r=_.useMemo(function(){var Yn,vn,yr;switch(Vt){case"appear":return Yn={},Object(Z.a)(Yn,bt,tn),Object(Z.a)(Yn,Dt,Bt),Object(Z.a)(Yn,Qt,Wt),Yn;case"enter":return vn={},Object(Z.a)(vn,bt,lt),Object(Z.a)(vn,Dt,$t),Object(Z.a)(vn,Qt,_n),vn;case"leave":return yr={},Object(Z.a)(yr,bt,qe),Object(Z.a)(yr,Dt,cn),Object(Z.a)(yr,Qt,rn),yr;default:return{}}},[Vt]),sa=Ra(Vt,function(Yn){if(Yn===bt){var vn=_r[bt];return vn?vn(gr()):Mr}if(vr in _r){var yr;Nn(((yr=_r[vr])===null||yr===void 0?void 0:yr.call(_r,gr(),null))||null)}return vr===Qt&&(Er(gr()),ht>0&&(clearTimeout(yn.current),yn.current=setTimeout(function(){er({deadline:!0})},ht))),kr}),ta=Object(Q.a)(sa,2),tr=ta[0],vr=ta[1],ja=Un(vr);Ur.current=ja,fn(function(){ln(pt);var Yn=Gn.current;if(Gn.current=!0,!$e)return;var vn;!Yn&&pt&&it&&(vn=Qe),Yn&&pt&&Ge&&(vn=Oe),(Yn&&!pt&&Tt||!Yn&&Mt&&!pt&&Tt)&&(vn=je),vn&&(Sn(vn),tr())},[pt]),Object(_.useEffect)(function(){(Vt===Qe&&!it||Vt===Oe&&!Ge||Vt===je&&!Tt)&&Sn(Je)},[it,Ge,Tt]),Object(_.useEffect)(function(){return function(){clearTimeout(yn.current),Kn.current=!0}},[]),Object(_.useEffect)(function(){wn!==void 0&&Vt===Je&&(En==null||En(wn))},[wn,Vt]);var ia=Dn;return _r[bt]&&vr===Dt&&(ia=Object(k.a)({transition:"none"},ia)),[Vt,vr,ia,wn!=null?wn:pt]}var Kr=function($e){Object(s.a)(wt,$e);var pt=Object(h.a)(wt);function wt(){return Object(P.a)(this,wt),pt.apply(this,arguments)}return Object(C.a)(wt,[{key:"render",value:function(){return this.props.children}}]),wt}(_.Component),_a=Kr;function di($e){var pt=$e;Object(N.a)($e)==="object"&&(pt=$e.transitionSupport);function wt(Te){return!!(Te.motionName&&pt)}var nt=_.forwardRef(function(Te,Ge){var Re=Te.visible,it=Re===void 0?!0:Re,st=Te.removeOnLeave,Tt=st===void 0?!0:st,ht=Te.forceRender,Mt=Te.children,tn=Te.motionName,lt=Te.leavedClassName,qe=Te.eventProps,Bt=wt(Te),$t=Object(_.useRef)(),cn=Object(_.useRef)();function Wt(){try{return Object(jt.a)($t.current||cn.current)}catch(Sn){return null}}var _n=aa(Bt,it,Wt,Te),rn=Object(Q.a)(_n,4),Ht=rn[0],An=rn[1],qt=rn[2],En=rn[3],kn=_.useRef(En);En&&(kn.current=!0);var Yt=Object(_.useRef)(Ge);Yt.current=Ge;var wn=_.useCallback(function(Sn){$t.current=Sn,Object(ze.b)(Yt.current,Sn)},[]),ln,xn=Object(k.a)(Object(k.a)({},qe),{},{visible:it});if(!Mt)ln=null;else if(Ht===Je||!wt(Te))En?ln=Mt(Object(k.a)({},xn),wn):!Tt&&kn.current?ln=Mt(Object(k.a)(Object(k.a)({},xn),{},{className:lt}),wn):ht?ln=Mt(Object(k.a)(Object(k.a)({},xn),{},{style:{display:"none"}}),wn):ln=null;else{var an,Vt;An===bt?Vt="prepare":Un(An)?Vt="active":An===Dt&&(Vt="start"),ln=Mt(Object(k.a)(Object(k.a)({},xn),{},{className:M()(mt(tn,Ht),(an={},Object(Z.a)(an,mt(tn,"".concat(Ht,"-").concat(Vt)),Vt),Object(Z.a)(an,tn,typeof tn=="string"),an)),style:qt}),wn)}return _.createElement(_a,{ref:cn},ln)});return nt.displayName="CSSMotion",nt}var Ei=di(Zt),_e="add",Ie="keep",Ye="remove",yt="removed";function Xt($e){var pt;return $e&&Object(N.a)($e)==="object"&&"key"in $e?pt=$e:pt={key:$e},Object(k.a)(Object(k.a)({},pt),{},{key:String(pt.key)})}function sn(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return $e.map(Xt)}function re(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],wt=[],nt=0,Te=pt.length,Ge=sn($e),Re=sn(pt);Ge.forEach(function(Tt){for(var ht=!1,Mt=nt;Mt<Te;Mt+=1){var tn=Re[Mt];if(tn.key===Tt.key){nt<Mt&&(wt=wt.concat(Re.slice(nt,Mt).map(function(lt){return Object(k.a)(Object(k.a)({},lt),{},{status:_e})})),nt=Mt),wt.push(Object(k.a)(Object(k.a)({},tn),{},{status:Ie})),nt+=1,ht=!0;break}}ht||wt.push(Object(k.a)(Object(k.a)({},Tt),{},{status:Ye}))}),nt<Te&&(wt=wt.concat(Re.slice(nt).map(function(Tt){return Object(k.a)(Object(k.a)({},Tt),{},{status:_e})})));var it={};wt.forEach(function(Tt){var ht=Tt.key;it[ht]=(it[ht]||0)+1});var st=Object.keys(it).filter(function(Tt){return it[Tt]>1});return st.forEach(function(Tt){wt=wt.filter(function(ht){var Mt=ht.key,tn=ht.status;return Mt!==Tt||tn!==Ye}),wt.forEach(function(ht){ht.key===Tt&&(ht.status=Ie)})}),wt}var W=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function V($e){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ei,wt=function(nt){Object(s.a)(Ge,nt);var Te=Object(h.a)(Ge);function Ge(){var Re;return Object(P.a)(this,Ge),Re=Te.apply(this,arguments),Re.state={keyEntities:[]},Re.removeKey=function(it){Re.setState(function(st){var Tt=st.keyEntities;return{keyEntities:Tt.map(function(ht){return ht.key!==it?ht:Object(k.a)(Object(k.a)({},ht),{},{status:yt})})}})},Re}return Object(C.a)(Ge,[{key:"render",value:function(){var it=this,st=this.state.keyEntities,Tt=this.props,ht=Tt.component,Mt=Tt.children,tn=Tt.onVisibleChanged,lt=Object(I.a)(Tt,["component","children","onVisibleChanged"]),qe=ht||_.Fragment,Bt={};return W.forEach(function($t){Bt[$t]=lt[$t],delete lt[$t]}),delete lt.keys,_.createElement(qe,lt,st.map(function($t){var cn=$t.status,Wt=Object(I.a)($t,["status"]),_n=cn===_e||cn===Ie;return _.createElement(pt,Object(w.a)({},Bt,{key:Wt.key,visible:_n,eventProps:Wt,onVisibleChanged:function(Ht){tn==null||tn(Ht,{key:Wt.key}),Ht||it.removeKey(Wt.key)}}),Mt)}))}}],[{key:"getDerivedStateFromProps",value:function(it,st){var Tt=it.keys,ht=st.keyEntities,Mt=sn(Tt),tn=re(ht,Mt);return{keyEntities:tn.filter(function(lt){var qe=ht.find(function(Bt){var $t=Bt.key;return lt.key===$t});return!(qe&&qe.status===yt&&lt.status===Ye)})}}}]),Ge}(_.Component);return wt.defaultProps={component:"div"},wt}var ne=V(Zt),ve=Ei;function oe($e){var pt=$e.prefixCls,wt=$e.motion,nt=$e.animation,Te=$e.transitionName;return wt||(nt?{motionName:"".concat(pt,"-").concat(nt)}:Te?{motionName:Te}:null)}function tt($e){var pt=$e.prefixCls,wt=$e.visible,nt=$e.zIndex,Te=$e.mask,Ge=$e.maskMotion,Re=$e.maskAnimation,it=$e.maskTransitionName;if(!Te)return null;var st={};return(Ge||it||Re)&&(st=Object(k.a)({motionAppear:!0},oe({motion:Ge,prefixCls:pt,transitionName:it,animation:Re}))),_.createElement(ve,Object(w.a)({},st,{visible:wt,removeOnLeave:!0}),function(Tt){var ht=Tt.className;return _.createElement("div",{style:{zIndex:nt},className:M()("".concat(pt,"-mask"),ht)})})}var Kt=v("9mu1"),dn=v("o0o1"),Cn=v.n(dn),Jt=v("HaE+"),Vn=["measure","align",null,"motion"],Xn=function($e,pt){var wt=Object(_.useState)(null),nt=Object(Q.a)(wt,2),Te=nt[0],Ge=nt[1],Re=Object(_.useRef)(),it=Object(_.useRef)(!1);function st(Mt){it.current||Ge(Mt)}function Tt(){dt.a.cancel(Re.current)}function ht(Mt){Tt(),Re.current=Object(dt.a)(function(){st(function(tn){switch(Te){case"align":return"motion";case"motion":return"stable";default:}return tn}),Mt==null||Mt()})}return Object(_.useEffect)(function(){st("measure")},[$e]),Object(_.useEffect)(function(){switch(Te){case"measure":pt();break;default:}Te&&(Re.current=Object(dt.a)(Object(Jt.a)(Cn.a.mark(function Mt(){var tn,lt;return Cn.a.wrap(function(Bt){for(;;)switch(Bt.prev=Bt.next){case 0:tn=Vn.indexOf(Te),lt=Vn[tn+1],lt&&tn!==-1&&st(lt);case 3:case"end":return Bt.stop()}},Mt)}))))},[Te]),Object(_.useEffect)(function(){return function(){it.current=!0,Tt()}},[]),[Te,ht]},lr=function($e){var pt=_.useState({width:0,height:0}),wt=Object(Q.a)(pt,2),nt=wt[0],Te=wt[1];function Ge(it){Te({width:it.offsetWidth,height:it.offsetHeight})}var Re=_.useMemo(function(){var it={};if($e){var st=nt.width,Tt=nt.height;$e.indexOf("height")!==-1&&Tt?it.height=Tt:$e.indexOf("minHeight")!==-1&&Tt&&(it.minHeight=Tt),$e.indexOf("width")!==-1&&st?it.width=st:$e.indexOf("minWidth")!==-1&&st&&(it.minWidth=st)}return it},[$e,nt]);return[Re,Ge]},Rr=_.forwardRef(function($e,pt){var wt=$e.visible,nt=$e.prefixCls,Te=$e.className,Ge=$e.style,Re=$e.children,it=$e.zIndex,st=$e.stretch,Tt=$e.destroyPopupOnHide,ht=$e.forceRender,Mt=$e.align,tn=$e.point,lt=$e.getRootDomNode,qe=$e.getClassNameFromAlign,Bt=$e.onAlign,$t=$e.onMouseEnter,cn=$e.onMouseLeave,Wt=$e.onMouseDown,_n=$e.onTouchStart,rn=Object(_.useRef)(),Ht=Object(_.useRef)(),An=Object(_.useState)(),qt=Object(Q.a)(An,2),En=qt[0],kn=qt[1],Yt=lr(st),wn=Object(Q.a)(Yt,2),ln=wn[0],xn=wn[1];function an(){st&&xn(lt())}var Vt=Xn(wt,an),Sn=Object(Q.a)(Vt,2),hr=Sn[0],pn=Sn[1],Dn=Object(_.useRef)();function Nn(){return tn||lt}function Gn(){var rr;(rr=rn.current)===null||rr===void 0||rr.forceAlign()}function yn(rr,Lr){var Er=qe(Lr);En!==Er&&kn(Er),hr==="align"&&(En!==Er?Promise.resolve().then(function(){Gn()}):pn(function(){var _r;(_r=Dn.current)===null||_r===void 0||_r.call(Dn)}),Bt==null||Bt(rr,Lr))}var Kn=Object(k.a)({},oe($e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(rr){var Lr=Kn[rr];Kn[rr]=function(Er,_r){return pn(),Lr==null?void 0:Lr(Er,_r)}});function or(){return new Promise(function(rr){Dn.current=rr})}_.useEffect(function(){!Kn.motionName&&hr==="motion"&&pn()},[Kn.motionName,hr]),_.useImperativeHandle(pt,function(){return{forceAlign:Gn,getElement:function(){return Ht.current}}});var gr=Object(k.a)(Object(k.a)({},ln),{},{zIndex:it,opacity:hr==="motion"||hr==="stable"||!wt?void 0:0,pointerEvents:hr==="stable"?void 0:"none"},Ge),Ur=!0;(Mt==null?void 0:Mt.points)&&(hr==="align"||hr==="stable")&&(Ur=!1);var er=Re;return _.Children.count(Re)>1&&(er=_.createElement("div",{className:"".concat(nt,"-content")},Re)),_.createElement(ve,Object(w.a)({visible:wt,ref:Ht,leavedClassName:"".concat(nt,"-hidden")},Kn,{onAppearPrepare:or,onEnterPrepare:or,removeOnLeave:Tt,forceRender:ht}),function(rr,Lr){var Er=rr.className,_r=rr.style,sa=M()(nt,Te,En,Er);return _.createElement(Kt.a,{target:Nn(),key:"popup",ref:rn,monitorWindowResize:!0,disabled:Ur,align:Mt,onAlign:yn},_.createElement("div",{ref:Lr,className:sa,onMouseEnter:$t,onMouseLeave:cn,onMouseDownCapture:Wt,onTouchStartCapture:_n,style:Object(k.a)(Object(k.a)({},_r),gr)},er))})});Rr.displayName="PopupInner";var qr=Rr,zr=_.forwardRef(function($e,pt){var wt=$e.prefixCls,nt=$e.visible,Te=$e.zIndex,Ge=$e.children,Re=$e.mobile;Re=Re===void 0?{}:Re;var it=Re.popupClassName,st=Re.popupStyle,Tt=Re.popupMotion,ht=Tt===void 0?{}:Tt,Mt=Re.popupRender,tn=_.useRef();_.useImperativeHandle(pt,function(){return{forceAlign:function(){},getElement:function(){return tn.current}}});var lt=Object(k.a)({zIndex:Te},st),qe=Ge;return _.Children.count(Ge)>1&&(qe=_.createElement("div",{className:"".concat(wt,"-content")},Ge)),Mt&&(qe=Mt(qe)),_.createElement(ve,Object(w.a)({visible:nt,ref:tn,removeOnLeave:!0},ht),function(Bt,$t){var cn=Bt.className,Wt=Bt.style,_n=M()(wt,it,cn);return _.createElement("div",{ref:$t,className:_n,style:Object(k.a)(Object(k.a)({},Wt),lt)},qe)})});zr.displayName="MobilePopupInner";var Ca=zr,Dr=["visible","mobile"],ya=_.forwardRef(function($e,pt){var wt=$e.visible,nt=$e.mobile,Te=Object(I.a)($e,Dr),Ge=Object(_.useState)(wt),Re=Object(Q.a)(Ge,2),it=Re[0],st=Re[1],Tt=Object(_.useState)(!1),ht=Object(Q.a)(Tt,2),Mt=ht[0],tn=ht[1],lt=Object(k.a)(Object(k.a)({},Te),{},{visible:it});Object(_.useEffect)(function(){st(wt),wt&&nt&&tn(Ze())},[wt,nt]);var qe=Mt?_.createElement(Ca,Object(w.a)({},lt,{mobile:nt,ref:pt})):_.createElement(qr,Object(w.a)({},lt,{ref:pt}));return _.createElement("div",null,_.createElement(tt,lt),qe)});ya.displayName="Popup";var ka=ya,fi=_.createContext(null),Ka=fi;function qa(){}function Si(){return""}function pi($e){return $e?$e.ownerDocument:window.document}var ui=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function mi($e){var pt=function(wt){Object(s.a)(Te,wt);var nt=Object(h.a)(Te);function Te(Ge){var Re;Object(P.a)(this,Te),Re=nt.call(this,Ge),Re.popupRef=_.createRef(),Re.triggerRef=_.createRef(),Re.attachId=void 0,Re.clickOutsideHandler=void 0,Re.touchOutsideHandler=void 0,Re.contextMenuOutsideHandler1=void 0,Re.contextMenuOutsideHandler2=void 0,Re.mouseDownTimeout=void 0,Re.focusTime=void 0,Re.preClickTime=void 0,Re.preTouchTime=void 0,Re.delayTimer=void 0,Re.hasPopupMouseDown=void 0,Re.onMouseEnter=function(st){var Tt=Re.props.mouseEnterDelay;Re.fireEvents("onMouseEnter",st),Re.delaySetPopupVisible(!0,Tt,Tt?null:st)},Re.onMouseMove=function(st){Re.fireEvents("onMouseMove",st),Re.setPoint(st)},Re.onMouseLeave=function(st){Re.fireEvents("onMouseLeave",st),Re.delaySetPopupVisible(!1,Re.props.mouseLeaveDelay)},Re.onPopupMouseEnter=function(){Re.clearDelayTimer()},Re.onPopupMouseLeave=function(st){var Tt;if(st.relatedTarget&&!st.relatedTarget.setTimeout&&Object(Ut.a)((Tt=Re.popupRef.current)===null||Tt===void 0?void 0:Tt.getElement(),st.relatedTarget))return;Re.delaySetPopupVisible(!1,Re.props.mouseLeaveDelay)},Re.onFocus=function(st){Re.fireEvents("onFocus",st),Re.clearDelayTimer(),Re.isFocusToShow()&&(Re.focusTime=Date.now(),Re.delaySetPopupVisible(!0,Re.props.focusDelay))},Re.onMouseDown=function(st){Re.fireEvents("onMouseDown",st),Re.preClickTime=Date.now()},Re.onTouchStart=function(st){Re.fireEvents("onTouchStart",st),Re.preTouchTime=Date.now()},Re.onBlur=function(st){Re.fireEvents("onBlur",st),Re.clearDelayTimer(),Re.isBlurToHide()&&Re.delaySetPopupVisible(!1,Re.props.blurDelay)},Re.onContextMenu=function(st){st.preventDefault(),Re.fireEvents("onContextMenu",st),Re.setPopupVisible(!0,st)},Re.onContextMenuClose=function(){Re.isContextMenuToShow()&&Re.close()},Re.onClick=function(st){if(Re.fireEvents("onClick",st),Re.focusTime){var Tt;if(Re.preClickTime&&Re.preTouchTime?Tt=Math.min(Re.preClickTime,Re.preTouchTime):Re.preClickTime?Tt=Re.preClickTime:Re.preTouchTime&&(Tt=Re.preTouchTime),Math.abs(Tt-Re.focusTime)<20)return;Re.focusTime=0}Re.preClickTime=0,Re.preTouchTime=0,Re.isClickToShow()&&(Re.isClickToHide()||Re.isBlurToHide())&&st&&st.preventDefault&&st.preventDefault();var ht=!Re.state.popupVisible;(Re.isClickToHide()&&!ht||ht&&Re.isClickToShow())&&Re.setPopupVisible(!Re.state.popupVisible,st)},Re.onPopupMouseDown=function(){if(Re.hasPopupMouseDown=!0,clearTimeout(Re.mouseDownTimeout),Re.mouseDownTimeout=window.setTimeout(function(){Re.hasPopupMouseDown=!1},0),Re.context){var st;(st=Re.context).onPopupMouseDown.apply(st,arguments)}},Re.onDocumentClick=function(st){if(Re.props.mask&&!Re.props.maskClosable)return;var Tt=st.target,ht=Re.getRootDomNode(),Mt=Re.getPopupDomNode();(!Object(Ut.a)(ht,Tt)||Re.isContextMenuOnly())&&!Object(Ut.a)(Mt,Tt)&&!Re.hasPopupMouseDown&&Re.close()},Re.getRootDomNode=function(){var st=Re.props.getTriggerDOMNode;if(st)return st(Re.triggerRef.current);try{var Tt=Object(jt.a)(Re.triggerRef.current);if(Tt)return Tt}catch(ht){}return Ot.a.findDOMNode(Object(b.a)(Re))},Re.getPopupClassNameFromAlign=function(st){var Tt=[],ht=Re.props,Mt=ht.popupPlacement,tn=ht.builtinPlacements,lt=ht.prefixCls,qe=ht.alignPoint,Bt=ht.getPopupClassNameFromAlign;return Mt&&tn&&Tt.push(vt(tn,lt,st,qe)),Bt&&Tt.push(Bt(st)),Tt.join(" ")},Re.getComponent=function(){var st=Re.props,Tt=st.prefixCls,ht=st.destroyPopupOnHide,Mt=st.popupClassName,tn=st.onPopupAlign,lt=st.popupMotion,qe=st.popupAnimation,Bt=st.popupTransitionName,$t=st.popupStyle,cn=st.mask,Wt=st.maskAnimation,_n=st.maskTransitionName,rn=st.maskMotion,Ht=st.zIndex,An=st.popup,qt=st.stretch,En=st.alignPoint,kn=st.mobile,Yt=st.forceRender,wn=Re.state,ln=wn.popupVisible,xn=wn.point,an=Re.getPopupAlign(),Vt={};return Re.isMouseEnterToShow()&&(Vt.onMouseEnter=Re.onPopupMouseEnter),Re.isMouseLeaveToHide()&&(Vt.onMouseLeave=Re.onPopupMouseLeave),Vt.onMouseDown=Re.onPopupMouseDown,Vt.onTouchStart=Re.onPopupMouseDown,_.createElement(ka,Object(w.a)({prefixCls:Tt,destroyPopupOnHide:ht,visible:ln,point:En&&xn,className:Mt,align:an,onAlign:tn,animation:qe,getClassNameFromAlign:Re.getPopupClassNameFromAlign},Vt,{stretch:qt,getRootDomNode:Re.getRootDomNode,style:$t,mask:cn,zIndex:Ht,transitionName:Bt,maskAnimation:Wt,maskTransitionName:_n,maskMotion:rn,ref:Re.popupRef,motion:lt,mobile:kn,forceRender:Yt}),typeof An=="function"?An():An)},Re.attachParent=function(st){dt.a.cancel(Re.attachId);var Tt=Re.props,ht=Tt.getPopupContainer,Mt=Tt.getDocument,tn=Re.getRootDomNode(),lt;ht?(tn||ht.length===0)&&(lt=ht(tn)):lt=Mt(Re.getRootDomNode()).body,lt?lt.appendChild(st):Re.attachId=Object(dt.a)(function(){Re.attachParent(st)})},Re.getContainer=function(){var st=Re.props.getDocument,Tt=st(Re.getRootDomNode()).createElement("div");return Tt.style.position="absolute",Tt.style.top="0",Tt.style.left="0",Tt.style.width="100%",Re.attachParent(Tt),Tt},Re.setPoint=function(st){var Tt=Re.props.alignPoint;if(!Tt||!st)return;Re.setState({point:{pageX:st.pageX,pageY:st.pageY}})},Re.handlePortalUpdate=function(){Re.state.prevPopupVisible!==Re.state.popupVisible&&Re.props.afterPopupVisibleChange(Re.state.popupVisible)},Re.triggerContextValue={onPopupMouseDown:Re.onPopupMouseDown};var it;return"popupVisible"in Ge?it=!!Ge.popupVisible:it=!!Ge.defaultPopupVisible,Re.state={prevPopupVisible:it,popupVisible:it},ui.forEach(function(st){Re["fire".concat(st)]=function(Tt){Re.fireEvents(st,Tt)}}),Re}return Object(C.a)(Te,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Re=this.props,it=this.state;if(it.popupVisible){var st;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(st=Re.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Ve.a)(st,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(st=st||Re.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Ve.a)(st,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(st=st||Re.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Ve.a)(st,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Ve.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),dt.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var Re;return((Re=this.popupRef.current)===null||Re===void 0?void 0:Re.getElement())||null}},{key:"getPopupAlign",value:function(){var Re=this.props,it=Re.popupPlacement,st=Re.popupAlign,Tt=Re.builtinPlacements;return it&&Tt?ut(Tt,it,st):st}},{key:"setPopupVisible",value:function(Re,it){var st=this.props.alignPoint,Tt=this.state.popupVisible;this.clearDelayTimer(),Tt!==Re&&("popupVisible"in this.props||this.setState({popupVisible:Re,prevPopupVisible:Tt}),this.props.onPopupVisibleChange(Re)),st&&it&&Re&&this.setPoint(it)}},{key:"delaySetPopupVisible",value:function(Re,it,st){var Tt=this,ht=it*1e3;if(this.clearDelayTimer(),ht){var Mt=st?{pageX:st.pageX,pageY:st.pageY}:null;this.delayTimer=window.setTimeout(function(){Tt.setPopupVisible(Re,Mt),Tt.clearDelayTimer()},ht)}else this.setPopupVisible(Re,st)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(Re){var it=this.props.children.props,st=this.props;return it[Re]&&st[Re]?this["fire".concat(Re)]:it[Re]||st[Re]}},{key:"isClickToShow",value:function(){var Re=this.props,it=Re.action,st=Re.showAction;return it.indexOf("click")!==-1||st.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var Re=this.props.action;return Re==="contextMenu"||Re.length===1&&Re[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var Re=this.props,it=Re.action,st=Re.showAction;return it.indexOf("contextMenu")!==-1||st.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Re=this.props,it=Re.action,st=Re.hideAction;return it.indexOf("click")!==-1||st.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Re=this.props,it=Re.action,st=Re.showAction;return it.indexOf("hover")!==-1||st.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Re=this.props,it=Re.action,st=Re.hideAction;return it.indexOf("hover")!==-1||st.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Re=this.props,it=Re.action,st=Re.showAction;return it.indexOf("focus")!==-1||st.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Re=this.props,it=Re.action,st=Re.hideAction;return it.indexOf("focus")!==-1||st.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var Re;(Re=this.popupRef.current)===null||Re===void 0||Re.forceAlign()}}},{key:"fireEvents",value:function(Re,it){var st=this.props.children.props[Re];st&&st(it);var Tt=this.props[Re];Tt&&Tt(it)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Re=this.state.popupVisible,it=this.props,st=it.children,Tt=it.forceRender,ht=it.alignPoint,Mt=it.className,tn=it.autoDestroy,lt=_.Children.only(st),qe={key:"trigger"};this.isContextMenuToShow()?qe.onContextMenu=this.onContextMenu:qe.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(qe.onClick=this.onClick,qe.onMouseDown=this.onMouseDown,qe.onTouchStart=this.onTouchStart):(qe.onClick=this.createTwoChains("onClick"),qe.onMouseDown=this.createTwoChains("onMouseDown"),qe.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(qe.onMouseEnter=this.onMouseEnter,ht&&(qe.onMouseMove=this.onMouseMove)):qe.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?qe.onMouseLeave=this.onMouseLeave:qe.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(qe.onFocus=this.onFocus,qe.onBlur=this.onBlur):(qe.onFocus=this.createTwoChains("onFocus"),qe.onBlur=this.createTwoChains("onBlur"));var Bt=M()(lt&&lt.props&&lt.props.className,Mt);Bt&&(qe.className=Bt);var $t=Object(k.a)({},qe);Object(ze.c)(lt)&&($t.ref=Object(ze.a)(this.triggerRef,lt.ref));var cn=_.cloneElement(lt,$t),Wt;return(Re||this.popupRef.current||Tt)&&(Wt=_.createElement($e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Re&&tn&&(Wt=null),_.createElement(Ka.Provider,{value:this.triggerContextValue},cn,Wt)}}],[{key:"getDerivedStateFromProps",value:function(Re,it){var st=Re.popupVisible,Tt={};return st!==void 0&&it.popupVisible!==st&&(Tt.popupVisible=st,Tt.prevPopupVisible=it.popupVisible),Tt}}]),Te}(_.Component);return pt.contextType=Ka,pt.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Si,getDocument:pi,onPopupVisibleChange:qa,afterPopupVisibleChange:qa,onPopupAlign:qa,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},pt}var _i=mi(Et.a),ai={adjustX:1,adjustY:1},Hi={topLeft:{points:["bl","tl"],overflow:ai,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ai,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ai,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ai,offset:[4,0]}},Yi={topLeft:{points:["bl","tl"],overflow:ai,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ai,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ai,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ai,offset:[4,0]}},$r=Hi,ua=0,Pr={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ca=function(pt,wt,nt){var Te=xe(wt),Ge=pt.getState();pt.setState({defaultActiveFirst:Object(k.a)(Object(k.a)({},Ge.defaultActiveFirst),{},Object(Z.a)({},Te,nt))})},Jr=function($e){Object(s.a)(wt,$e);var pt=Object(h.a)(wt);function wt(nt){var Te;Object(P.a)(this,wt),Te=pt.call(this,nt),Te.onDestroy=function(ht){Te.props.onDestroy(ht)},Te.onKeyDown=function(ht){var Mt=ht.keyCode,tn=Te.menuInstance,lt=Te.props.store,qe=Te.getVisible();if(Mt===c.a.ENTER)return Te.onTitleClick(ht),ca(lt,Te.props.eventKey,!0),!0;if(Mt===c.a.RIGHT)return qe?tn.onKeyDown(ht):(Te.triggerOpenChange(!0),ca(lt,Te.props.eventKey,!0)),!0;if(Mt===c.a.LEFT){var Bt;if(qe)Bt=tn.onKeyDown(ht);else return;return Bt||(Te.triggerOpenChange(!1),Bt=!0),Bt}return qe&&(Mt===c.a.UP||Mt===c.a.DOWN)?tn.onKeyDown(ht):void 0},Te.onOpenChange=function(ht){Te.props.onOpenChange(ht)},Te.onPopupVisibleChange=function(ht){Te.triggerOpenChange(ht,ht?"mouseenter":"mouseleave")},Te.onMouseEnter=function(ht){var Mt=Te.props,tn=Mt.eventKey,lt=Mt.onMouseEnter,qe=Mt.store;ca(qe,Te.props.eventKey,!1),lt({key:tn,domEvent:ht})},Te.onMouseLeave=function(ht){var Mt=Te.props,tn=Mt.parentMenu,lt=Mt.eventKey,qe=Mt.onMouseLeave;tn.subMenuInstance=Object(b.a)(Te),qe({key:lt,domEvent:ht})},Te.onTitleMouseEnter=function(ht){var Mt=Te.props,tn=Mt.eventKey,lt=Mt.onItemHover,qe=Mt.onTitleMouseEnter;lt({key:tn,hover:!0}),qe({key:tn,domEvent:ht})},Te.onTitleMouseLeave=function(ht){var Mt=Te.props,tn=Mt.parentMenu,lt=Mt.eventKey,qe=Mt.onItemHover,Bt=Mt.onTitleMouseLeave;tn.subMenuInstance=Object(b.a)(Te),qe({key:lt,hover:!1}),Bt({key:lt,domEvent:ht})},Te.onTitleClick=function(ht){var Mt=Object(b.a)(Te),tn=Mt.props;if(tn.onTitleClick({key:tn.eventKey,domEvent:ht}),tn.triggerSubMenuAction==="hover")return;Te.triggerOpenChange(!Te.getVisible(),"click"),ca(tn.store,Te.props.eventKey,!1)},Te.onSubMenuClick=function(ht){typeof Te.props.onClick=="function"&&Te.props.onClick(Te.addKeyPath(ht))},Te.onSelect=function(ht){Te.props.onSelect(ht)},Te.onDeselect=function(ht){Te.props.onDeselect(ht)},Te.getPrefixCls=function(){return"".concat(Te.props.rootPrefixCls,"-submenu")},Te.getActiveClassName=function(){return"".concat(Te.getPrefixCls(),"-active")},Te.getDisabledClassName=function(){return"".concat(Te.getPrefixCls(),"-disabled")},Te.getSelectedClassName=function(){return"".concat(Te.getPrefixCls(),"-selected")},Te.getOpenClassName=function(){return"".concat(Te.props.rootPrefixCls,"-submenu-open")},Te.getVisible=function(){return Te.state.isOpen},Te.getMode=function(){return Te.state.mode},Te.saveMenuInstance=function(ht){Te.menuInstance=ht},Te.addKeyPath=function(ht){return Object(k.a)(Object(k.a)({},ht),{},{keyPath:(ht.keyPath||[]).concat(Te.props.eventKey)})},Te.triggerOpenChange=function(ht,Mt){var tn=Te.props.eventKey,lt=function(){Te.onOpenChange({key:tn,item:Object(b.a)(Te),trigger:Mt,open:ht})};Mt==="mouseenter"?Te.mouseenterTimeout=setTimeout(function(){lt()},0):lt()},Te.isChildrenSelected=function(){var ht={find:!1};return et(Te.props.children,Te.props.selectedKeys,ht),ht.find},Te.isInlineMode=function(){return Te.getMode()==="inline"},Te.adjustWidth=function(){if(!Te.subMenuTitle||!Te.menuInstance)return;var ht=ft.findDOMNode(Te.menuInstance);if(ht.offsetWidth>=Te.subMenuTitle.offsetWidth)return;ht.style.minWidth="".concat(Te.subMenuTitle.offsetWidth,"px")},Te.saveSubMenuTitle=function(ht){Te.subMenuTitle=ht},Te.getBaseProps=function(){var ht=Object(b.a)(Te),Mt=ht.props,tn=Te.getMode();return{mode:tn==="horizontal"?"vertical":tn,visible:Te.getVisible(),level:Mt.level+1,inlineIndent:Mt.inlineIndent,focusable:!1,onClick:Te.onSubMenuClick,onSelect:Te.onSelect,onDeselect:Te.onDeselect,onDestroy:Te.onDestroy,selectedKeys:Mt.selectedKeys,eventKey:"".concat(Mt.eventKey,"-menu-"),openKeys:Mt.openKeys,motion:Mt.motion,onOpenChange:Te.onOpenChange,subMenuOpenDelay:Mt.subMenuOpenDelay,parentMenu:Object(b.a)(Te),subMenuCloseDelay:Mt.subMenuCloseDelay,forceSubMenuRender:Mt.forceSubMenuRender,triggerSubMenuAction:Mt.triggerSubMenuAction,builtinPlacements:Mt.builtinPlacements,defaultActiveFirst:Mt.store.getState().defaultActiveFirst[xe(Mt.eventKey)],multiple:Mt.multiple,prefixCls:Mt.rootPrefixCls,id:Te.internalMenuId,manualRef:Te.saveMenuInstance,itemIcon:Mt.itemIcon,expandIcon:Mt.expandIcon,direction:Mt.direction}},Te.getMotion=function(ht,Mt){var tn=Object(b.a)(Te),lt=tn.haveRendered,qe=Te.props,Bt=qe.motion,$t=qe.rootPrefixCls,cn=Object(k.a)(Object(k.a)({},Bt),{},{leavedClassName:"".concat($t,"-hidden"),removeOnLeave:!1,motionAppear:lt||!Mt||ht!=="inline"});return cn};var Ge=nt.store,Re=nt.eventKey,it=Ge.getState(),st=it.defaultActiveFirst;Te.isRootMenu=!1;var Tt=!1;return st&&(Tt=st[Re]),ca(Ge,Re,Tt),Te.state={mode:nt.mode,isOpen:nt.isOpen},Te}return Object(C.a)(wt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Te=this,Ge=this.props,Re=Ge.mode,it=Ge.parentMenu,st=Ge.manualRef,Tt=Ge.isOpen,ht=function(){Te.setState({mode:Re,isOpen:Tt})},Mt=Tt!==this.state.isOpen,tn=Re!==this.state.mode;if((tn||Mt)&&(dt.a.cancel(this.updateStateRaf),tn?this.updateStateRaf=Object(dt.a)(ht):ht()),st&&st(this),Re!=="horizontal"||!(it==null?void 0:it.isRootMenu)||!Tt)return;this.minWidthTimeout=setTimeout(function(){return Te.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Te=this.props,Ge=Te.onDestroy,Re=Te.eventKey;Ge&&Ge(Re),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),dt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Te,Ge){var Re=this.getBaseProps();return _.createElement(ws,Object(w.a)({},Re,{id:this.internalMenuId,className:Te,style:Ge}),this.props.children)}},{key:"renderChildren",value:function(){var Te=this,Ge=this.getBaseProps(),Re=Ge.mode,it=Ge.visible,st=Ge.forceSubMenuRender,Tt=Ge.direction,ht=this.getMotion(Re,it);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||it||st,!this.haveOpened)return _.createElement("div",null);var Mt=M()("".concat(Ge.prefixCls,"-sub"),Object(Z.a)({},"".concat(Ge.prefixCls,"-rtl"),Tt==="rtl"));return this.isInlineMode()?_.createElement(ve,Object(w.a)({visible:Ge.visible,forceRender:st},ht),function(tn){var lt=tn.className,qe=tn.style,Bt=M()(Mt,lt);return Te.renderPopupMenu(Bt,qe)}):this.renderPopupMenu(Mt)}},{key:"render",value:function(){var Te,Ge,Re,it=Object(k.a)({},this.props),st=this.getVisible(),Tt=this.getPrefixCls(),ht=this.isInlineMode(),Mt=this.getMode(),tn=M()(Tt,"".concat(Tt,"-").concat(Mt),(Te={},Object(Z.a)(Te,it.className,!!it.className),Object(Z.a)(Te,this.getOpenClassName(),st),Object(Z.a)(Te,this.getActiveClassName(),it.active||st&&!ht),Object(Z.a)(Te,this.getDisabledClassName(),it.disabled),Object(Z.a)(Te,this.getSelectedClassName(),this.isChildrenSelected()),Te));this.internalMenuId||(it.eventKey?this.internalMenuId="".concat(it.eventKey,"$Menu"):(ua+=1,this.internalMenuId="$__$".concat(ua,"$Menu")));var lt={},qe={},Bt={};it.disabled||(lt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},qe={onClick:this.onTitleClick},Bt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var $t={},cn=it.direction,Wt=cn==="rtl";ht&&(Wt?$t.paddingRight=it.inlineIndent*it.level:$t.paddingLeft=it.inlineIndent*it.level);var _n={};this.getVisible()&&(_n={"aria-owns":this.internalMenuId});var rn=null;Mt!=="horizontal"&&(rn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(rn=_.createElement(this.props.expandIcon,Object(k.a)({},this.props))));var Ht=_.createElement("div",Object(w.a)({ref:this.saveSubMenuTitle,style:$t,className:"".concat(Tt,"-title"),role:"button"},Bt,qe,{"aria-expanded":st},_n,{"aria-haspopup":"true",title:typeof it.title=="string"?it.title:void 0}),it.title,rn||_.createElement("i",{className:"".concat(Tt,"-arrow")})),An=this.renderChildren(),qt=((Ge=it.parentMenu)===null||Ge===void 0?void 0:Ge.isRootMenu)?it.parentMenu.props.getPopupContainer:function(Nn){return Nn.parentNode},En=Pr[Mt],kn=it.popupOffset?{offset:it.popupOffset}:{},Yt=M()((Re={},Object(Z.a)(Re,it.popupClassName,it.popupClassName&&!ht),Object(Z.a)(Re,"".concat(Tt,"-rtl"),Wt),Re)),wn=it.disabled,ln=it.triggerSubMenuAction,xn=it.subMenuOpenDelay,an=it.forceSubMenuRender,Vt=it.subMenuCloseDelay,Sn=it.builtinPlacements;he.forEach(function(Nn){return delete it[Nn]}),delete it.onClick;var hr=Wt?Object(k.a)(Object(k.a)({},Yi),Sn):Object(k.a)(Object(k.a)({},Hi),Sn);delete it.direction;var pn=this.getBaseProps(),Dn=ht?null:this.getMotion(pn.mode,pn.visible);return _.createElement("li",Object(w.a)({},it,lt,{className:tn,role:"menuitem"}),_.createElement(_i,{prefixCls:Tt,popupClassName:M()("".concat(Tt,"-popup"),Yt),getPopupContainer:qt,builtinPlacements:hr,popupPlacement:En,popupVisible:ht?!1:st,popupAlign:kn,popup:ht?null:An,action:wn||ht?[]:[ln],mouseEnterDelay:xn,mouseLeaveDelay:Vt,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:an,popupMotion:Dn},Ht),ht?An:null)}}]),wt}(_.Component);Jr.defaultProps={onMouseEnter:pe,onMouseLeave:pe,onTitleMouseEnter:pe,onTitleMouseLeave:pe,onTitleClick:pe,manualRef:pe,mode:"vertical",title:""};var ri=Object(m.b)(function($e,pt){var wt=$e.openKeys,nt=$e.activeKey,Te=$e.selectedKeys,Ge=pt.eventKey,Re=pt.subMenuKey;return{isOpen:wt.indexOf(Ge)>-1,active:nt[Re]===Ge,selectedKeys:Te}})(Jr);ri.isSubMenu=!0;var pa=ri,mo="menuitem-overflowed",Di=.5,ci=function($e){Object(s.a)(wt,$e);var pt=Object(h.a)(wt);function wt(){var nt;return Object(P.a)(this,wt),nt=pt.apply(this,arguments),nt.resizeObserver=null,nt.mutationObserver=null,nt.originalTotalWidth=0,nt.overflowedItems=[],nt.menuItemSizes=[],nt.cancelFrameId=null,nt.state={lastVisibleIndex:void 0},nt.childRef=_.createRef(),nt.getMenuItemNodes=function(){var Te=nt.props.prefixCls,Ge=nt.childRef.current;return Ge?[].slice.call(Ge.children).filter(function(Re){return Re.className.split(" ").indexOf("".concat(Te,"-overflowed-submenu"))<0}):[]},nt.getOverflowedSubMenuItem=function(Te,Ge,Re){var it=nt.props,st=it.overflowedIndicator,Tt=it.level,ht=it.mode,Mt=it.prefixCls,tn=it.theme;if(Tt!==1||ht!=="horizontal")return null;var lt=nt.props.children[0],qe=lt.props,Bt=qe.children,$t=qe.title,cn=qe.style,Wt=Object(I.a)(qe,["children","title","style"]),_n=Object(k.a)({},cn),rn="".concat(Te,"-overflowed-indicator"),Ht="".concat(Te,"-overflowed-indicator");Ge.length===0&&Re!==!0?_n=Object(k.a)(Object(k.a)({},_n),{},{display:"none"}):Re&&(_n=Object(k.a)(Object(k.a)({},_n),{},{visibility:"hidden",position:"absolute"}),rn="".concat(rn,"-placeholder"),Ht="".concat(Ht,"-placeholder"));var An=tn?"".concat(Mt,"-").concat(tn):"",qt={};return he.forEach(function(En){Wt[En]!==void 0&&(qt[En]=Wt[En])}),_.createElement(pa,Object(w.a)({title:st,className:"".concat(Mt,"-overflowed-submenu"),popupClassName:An},qt,{key:rn,eventKey:Ht,disabled:!1,style:_n}),Ge)},nt.setChildrenWidthAndResize=function(){if(nt.props.mode!=="horizontal")return;var Te=nt.childRef.current;if(!Te)return;var Ge=Te.children;if(!Ge||Ge.length===0)return;var Re=Te.children[Ge.length-1];Ue(Re,"display","inline-block");var it=nt.getMenuItemNodes(),st=it.filter(function(Tt){return Tt.className.split(" ").indexOf(mo)>=0});st.forEach(function(Tt){Ue(Tt,"display","inline-block")}),nt.menuItemSizes=it.map(function(Tt){return Se(Tt,!0)}),st.forEach(function(Tt){Ue(Tt,"display","none")}),nt.overflowedIndicatorWidth=Se(Te.children[Te.children.length-1],!0),nt.originalTotalWidth=nt.menuItemSizes.reduce(function(Tt,ht){return Tt+ht},0),nt.handleResize(),Ue(Re,"display","none")},nt.handleResize=function(){if(nt.props.mode!=="horizontal")return;var Te=nt.childRef.current;if(!Te)return;var Ge=Se(Te);nt.overflowedItems=[];var Re=0,it;nt.originalTotalWidth>Ge+Di&&(it=-1,nt.menuItemSizes.forEach(function(st){Re+=st,Re+nt.overflowedIndicatorWidth<=Ge&&(it+=1)})),nt.setState({lastVisibleIndex:it})},nt}return Object(C.a)(wt,[{key:"componentDidMount",value:function(){var Te=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Ge=this.childRef.current;if(!Ge)return;this.resizeObserver=new ct.default(function(Re){Re.forEach(function(){var it=Te.cancelFrameId;cancelAnimationFrame(it),Te.cancelFrameId=requestAnimationFrame(Te.setChildrenWidthAndResize)})}),[].slice.call(Ge.children).concat(Ge).forEach(function(Re){Te.resizeObserver.observe(Re)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Te.resizeObserver.disconnect(),[].slice.call(Ge.children).concat(Ge).forEach(function(Re){Te.resizeObserver.observe(Re)}),Te.setChildrenWidthAndResize()}),this.mutationObserver.observe(Ge,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Te){var Ge=this,Re=this.state.lastVisibleIndex;return(Te||[]).reduce(function(it,st,Tt){var ht=st;if(Ge.props.mode==="horizontal"){var Mt=Ge.getOverflowedSubMenuItem(st.props.eventKey,[]);Re!==void 0&&Ge.props.className.indexOf("".concat(Ge.props.prefixCls,"-root"))!==-1&&(Tt>Re&&(ht=_.cloneElement(st,{style:{display:"none"},eventKey:"".concat(st.props.eventKey,"-hidden"),className:"".concat(mo)})),Tt===Re+1&&(Ge.overflowedItems=Te.slice(Re+1).map(function(lt){return _.cloneElement(lt,{key:lt.props.eventKey,mode:"vertical-left"})}),Mt=Ge.getOverflowedSubMenuItem(st.props.eventKey,Ge.overflowedItems)));var tn=[].concat(Object(p.a)(it),[Mt,ht]);return Tt===Te.length-1&&tn.push(Ge.getOverflowedSubMenuItem(st.props.eventKey,[],!0)),tn}return[].concat(Object(p.a)(it),[ht])},[])}},{key:"render",value:function(){var Te=this.props,Ge=Te.visible,Re=Te.prefixCls,it=Te.overflowedIndicator,st=Te.mode,Tt=Te.level,ht=Te.tag,Mt=Te.children,tn=Te.theme,lt=Object(I.a)(Te,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),qe=ht;return _.createElement(qe,Object(w.a)({ref:this.childRef},lt),this.renderChildren(Mt))}}]),wt}(_.Component);ci.defaultProps={tag:"div",className:""};var Wo=ci;function Mo($e){return $e.length?$e.every(function(pt){return!!pt.props.disabled}):!0}function ii($e,pt,wt){var nt=$e.getState();$e.setState({activeKey:Object(k.a)(Object(k.a)({},nt.activeKey),{},Object(Z.a)({},pt,wt))})}function go($e){return $e.eventKey||"0-menu-"}function no($e,pt){var wt=pt,nt=$e.children,Te=$e.eventKey;if(wt){var Ge;if(Ke(nt,function(Re,it){Re&&Re.props&&!Re.props.disabled&&wt===Me(Re,Te,it)&&(Ge=!0)}),Ge)return wt}return wt=null,$e.defaultActiveFirst&&Ke(nt,function(Re,it){!wt&&Re&&!Re.props.disabled&&(wt=Me(Re,Te,it))}),wt}function hs($e){if(!$e)return;var pt=this.instanceArray.indexOf($e);pt!==-1?this.instanceArray[pt]=$e:this.instanceArray.push($e)}var xo=function($e){Object(s.a)(wt,$e);var pt=Object(h.a)(wt);function wt(nt){var Te;return Object(P.a)(this,wt),Te=pt.call(this,nt),Te.onKeyDown=function(Ge,Re){var it=Ge.keyCode,st;if(Te.getFlatInstanceArray().forEach(function(ht){ht&&ht.props.active&&ht.onKeyDown&&(st=ht.onKeyDown(Ge))}),st)return 1;var Tt=null;return(it===c.a.UP||it===c.a.DOWN)&&(Tt=Te.step(it===c.a.UP?-1:1)),Tt?(Ge.preventDefault(),ii(Te.props.store,go(Te.props),Tt.props.eventKey),typeof Re=="function"&&Re(Tt),1):void 0},Te.onItemHover=function(Ge){var Re=Ge.key,it=Ge.hover;ii(Te.props.store,go(Te.props),it?Re:null)},Te.onDeselect=function(Ge){Te.props.onDeselect(Ge)},Te.onSelect=function(Ge){Te.props.onSelect(Ge)},Te.onClick=function(Ge){Te.props.onClick(Ge)},Te.onOpenChange=function(Ge){Te.props.onOpenChange(Ge)},Te.onDestroy=function(Ge){Te.props.onDestroy(Ge)},Te.getFlatInstanceArray=function(){return Te.instanceArray},Te.step=function(Ge){var Re=Te.getFlatInstanceArray(),it=Te.props.store.getState().activeKey[go(Te.props)],st=Re.length;if(!st)return null;Ge<0&&(Re=Re.concat().reverse());var Tt=-1;if(Re.every(function(lt,qe){return lt&&lt.props.eventKey===it?(Tt=qe,!1):!0}),!Te.props.defaultActiveFirst&&Tt!==-1&&Mo(Re.slice(Tt,st-1)))return;var ht=(Tt+1)%st,Mt=ht;do{var tn=Re[Mt];if(!tn||tn.props.disabled)Mt=(Mt+1)%st;else return tn}while(Mt!==ht);return null},Te.renderCommonMenuItem=function(Ge,Re,it){var st=Te.props.store.getState(),Tt=Object(b.a)(Te),ht=Tt.props,Mt=Me(Ge,ht.eventKey,Re),tn=Ge.props;if(!tn||typeof Ge.type=="string")return Ge;var lt=Mt===st.activeKey,qe=Object(k.a)(Object(k.a)({mode:tn.mode||ht.mode,level:ht.level,inlineIndent:ht.inlineIndent,renderMenuItem:Te.renderMenuItem,rootPrefixCls:ht.prefixCls,index:Re,parentMenu:ht.parentMenu,manualRef:tn.disabled?void 0:Object(g.a)(Ge.ref,hs.bind(Object(b.a)(Te))),eventKey:Mt,active:!tn.disabled&&lt,multiple:ht.multiple,onClick:function($t){(tn.onClick||pe)($t),Te.onClick($t)},onItemHover:Te.onItemHover,motion:ht.motion,subMenuOpenDelay:ht.subMenuOpenDelay,subMenuCloseDelay:ht.subMenuCloseDelay,forceSubMenuRender:ht.forceSubMenuRender,onOpenChange:Te.onOpenChange,onDeselect:Te.onDeselect,onSelect:Te.onSelect,builtinPlacements:ht.builtinPlacements,itemIcon:tn.itemIcon||Te.props.itemIcon,expandIcon:tn.expandIcon||Te.props.expandIcon},it),{},{direction:ht.direction});return(ht.mode==="inline"||Ne())&&(qe.triggerSubMenuAction="click"),_.cloneElement(Ge,Object(k.a)(Object(k.a)({},qe),{},{key:Mt||Re}))},Te.renderMenuItem=function(Ge,Re,it){if(!Ge)return null;var st=Te.props.store.getState(),Tt={openKeys:st.openKeys,selectedKeys:st.selectedKeys,triggerSubMenuAction:Te.props.triggerSubMenuAction,subMenuKey:it};return Te.renderCommonMenuItem(Ge,Re,Tt)},nt.store.setState({activeKey:Object(k.a)(Object(k.a)({},nt.store.getState().activeKey),{},Object(Z.a)({},nt.eventKey,no(nt,nt.activeKey)))}),Te.instanceArray=[],Te}return Object(C.a)(wt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Te){return this.props.visible||Te.visible||this.props.className!==Te.className||!U()(this.props.style,Te.style)}},{key:"componentDidUpdate",value:function(Te){var Ge=this.props,Re="activeKey"in Ge?Ge.activeKey:Ge.store.getState().activeKey[go(Ge)],it=no(Ge,Re);if(it!==Re)ii(Ge.store,go(Ge),it);else if("activeKey"in Te){var st=no(Te,Te.activeKey);it!==st&&ii(Ge.store,go(Ge),it)}}},{key:"render",value:function(){var Te=this,Ge=Object(w.a)({},this.props);this.instanceArray=[];var Re=M()(Ge.prefixCls,Ge.className,"".concat(Ge.prefixCls,"-").concat(Ge.mode)),it={className:Re,role:Ge.role||"menu"};Ge.id&&(it.id=Ge.id),Ge.focusable&&(it.tabIndex=0,it.onKeyDown=this.onKeyDown);var st=Ge.prefixCls,Tt=Ge.eventKey,ht=Ge.visible,Mt=Ge.level,tn=Ge.mode,lt=Ge.overflowedIndicator,qe=Ge.theme;return he.forEach(function(Bt){return delete Ge[Bt]}),delete Ge.onClick,_.createElement(Wo,Object(w.a)({},Ge,{prefixCls:st,mode:tn,tag:"ul",level:Mt,theme:qe,visible:ht,overflowedIndicator:lt},it),Object(T.a)(Ge.children).map(function(Bt,$t){return Te.renderMenuItem(Bt,$t,Tt||"0-menu-")}))}}]),wt}(_.Component);xo.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:pe};var Cs=Object(m.b)()(xo),ws=Cs,ho=v("Kwbf");function As($e,pt,wt){var nt=$e.prefixCls,Te=$e.motion,Ge=$e.defaultMotions,Re=Ge===void 0?{}:Ge,it=$e.openAnimation,st=$e.openTransitionName,Tt=pt.switchingModeFromInline;if(Te)return Te;if(Object(N.a)(it)==="object"&&it)Object(ho.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof it=="string")return{motionName:"".concat(nt,"-open-").concat(it)};if(st)return{motionName:st};var ht=Re[wt];return ht||(Tt?null:Re.other)}var mr=function($e){Object(s.a)(wt,$e);var pt=Object(h.a)(wt);function wt(nt){var Te;Object(P.a)(this,wt),Te=pt.call(this,nt),Te.onSelect=function(it){var st=Object(b.a)(Te),Tt=st.props;if(Tt.selectable){var ht=Te.store.getState(),Mt=ht.selectedKeys,tn=it.key;Tt.multiple?Mt=Mt.concat([tn]):Mt=[tn],"selectedKeys"in Tt||Te.store.setState({selectedKeys:Mt}),Tt.onSelect(Object(k.a)(Object(k.a)({},it),{},{selectedKeys:Mt}))}},Te.onClick=function(it){var st=Te.getRealMenuMode(),Tt=Object(b.a)(Te),ht=Tt.store,Mt=Tt.props.onOpenChange;st!=="inline"&&!("openKeys"in Te.props)&&(ht.setState({openKeys:[]}),Mt([])),Te.props.onClick(it)},Te.onKeyDown=function(it,st){Te.innerMenu.getWrappedInstance().onKeyDown(it,st)},Te.onOpenChange=function(it){var st=Object(b.a)(Te),Tt=st.props,ht=Te.store.getState().openKeys.concat(),Mt=!1,tn=function(qe){var Bt=!1;if(qe.open)Bt=ht.indexOf(qe.key)===-1,Bt&&ht.push(qe.key);else{var $t=ht.indexOf(qe.key);Bt=$t!==-1,Bt&&ht.splice($t,1)}Mt=Mt||Bt};Array.isArray(it)?it.forEach(tn):tn(it),Mt&&("openKeys"in Te.props||Te.store.setState({openKeys:ht}),Tt.onOpenChange(ht))},Te.onDeselect=function(it){var st=Object(b.a)(Te),Tt=st.props;if(Tt.selectable){var ht=Te.store.getState().selectedKeys.concat(),Mt=it.key,tn=ht.indexOf(Mt);tn!==-1&&ht.splice(tn,1),"selectedKeys"in Tt||Te.store.setState({selectedKeys:ht}),Tt.onDeselect(Object(k.a)(Object(k.a)({},it),{},{selectedKeys:ht}))}},Te.onMouseEnter=function(it){Te.restoreModeVerticalFromInline();var st=Te.props.onMouseEnter;st&&st(it)},Te.onTransitionEnd=function(it){var st=it.propertyName==="width"&&it.target===it.currentTarget,Tt=it.target.className,ht=Object.prototype.toString.call(Tt)==="[object SVGAnimatedString]"?Tt.animVal:Tt,Mt=it.propertyName==="font-size"&&ht.indexOf("anticon")>=0;(st||Mt)&&Te.restoreModeVerticalFromInline()},Te.setInnerMenu=function(it){Te.innerMenu=it},Te.isRootMenu=!0;var Ge=nt.defaultSelectedKeys,Re=nt.defaultOpenKeys;return"selectedKeys"in nt&&(Ge=nt.selectedKeys||[]),"openKeys"in nt&&(Re=nt.openKeys||[]),Te.store=Object(m.c)({selectedKeys:Ge,openKeys:Re,activeKey:{"0-menu-":no(nt,nt.activeKey)}}),Te.state={switchingModeFromInline:!1,prevProps:nt,inlineOpenKeys:[],store:Te.store},Te}return Object(C.a)(wt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Te){var Ge=this.props,Re=Ge.siderCollapsed,it=Ge.inlineCollapsed,st=Ge.onOpenChange;(!Te.inlineCollapsed&&it||!Te.siderCollapsed&&Re)&&st([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Te=this.props.collapsedWidth,Ge=this.store,Re=this.prevOpenKeys,it=this.getInlineCollapsed()&&(Te===0||Te==="0"||Te==="0px");it?(this.prevOpenKeys=Ge.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Re&&(this.store.setState({openKeys:Re}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Te=this.props.mode,Ge=this.state.switchingModeFromInline,Re=this.getInlineCollapsed();return Ge&&Re?"inline":Re?"vertical":Te}},{key:"getInlineCollapsed",value:function(){var Te=this.props,Ge=Te.inlineCollapsed,Re=Te.siderCollapsed;return Re!==void 0?Re:Ge}},{key:"restoreModeVerticalFromInline",value:function(){var Te=this.state.switchingModeFromInline;Te&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var Te=Object(k.a)({},Object(x.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Ge=this.getRealMenuMode();return Te.className+=" ".concat(Te.prefixCls,"-root"),Te.direction==="rtl"&&(Te.className+=" ".concat(Te.prefixCls,"-rtl")),Te=Object(k.a)(Object(k.a)({},Te),{},{mode:Ge,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:As(this.props,this.state,Ge)}),delete Te.openAnimation,delete Te.openTransitionName,_.createElement(m.a,{store:this.store},_.createElement(ws,Object(w.a)({},Te,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Te,Ge){var Re=Ge.prevProps,it=Ge.store,st=it.getState(),Tt={},ht={prevProps:Te};return Re.mode==="inline"&&Te.mode!=="inline"&&(ht.switchingModeFromInline=!0),"openKeys"in Te?Tt.openKeys=Te.openKeys||[]:((Te.inlineCollapsed&&!Re.inlineCollapsed||Te.siderCollapsed&&!Re.siderCollapsed)&&(ht.switchingModeFromInline=!0,ht.inlineOpenKeys=st.openKeys,Tt.openKeys=[]),(!Te.inlineCollapsed&&Re.inlineCollapsed||!Te.siderCollapsed&&Re.siderCollapsed)&&(Tt.openKeys=Ge.inlineOpenKeys,ht.inlineOpenKeys=[])),Object.keys(Tt).length&&it.setState(Tt),ht}}]),wt}(_.Component);mr.defaultProps={selectable:!0,onClick:pe,onSelect:pe,onOpenChange:pe,onDeselect:pe,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:_.createElement("span",null,"\xB7\xB7\xB7")};var Vr=mr,ur=function($e){Object(s.a)(wt,$e);var pt=Object(h.a)(wt);function wt(){var nt;return Object(P.a)(this,wt),nt=pt.apply(this,arguments),nt.onKeyDown=function(Te){var Ge=Te.keyCode;return Ge===c.a.ENTER?(nt.onClick(Te),!0):void 0},nt.onMouseLeave=function(Te){var Ge=nt.props,Re=Ge.eventKey,it=Ge.onItemHover,st=Ge.onMouseLeave;it({key:Re,hover:!1}),st({key:Re,domEvent:Te})},nt.onMouseEnter=function(Te){var Ge=nt.props,Re=Ge.eventKey,it=Ge.onItemHover,st=Ge.onMouseEnter;it({key:Re,hover:!0}),st({key:Re,domEvent:Te})},nt.onClick=function(Te){var Ge=nt.props,Re=Ge.eventKey,it=Ge.multiple,st=Ge.onClick,Tt=Ge.onSelect,ht=Ge.onDeselect,Mt=Ge.isSelected,tn={key:Re,keyPath:[Re],item:Object(b.a)(nt),domEvent:Te};st(tn),it?Mt?ht(tn):Tt(tn):Mt||Tt(tn)},nt.saveNode=function(Te){nt.node=Te},nt}return Object(C.a)(wt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Te=this.props;Te.onDestroy&&Te.onDestroy(Te.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var Te,Ge=Object(k.a)({},this.props),Re=M()(this.getPrefixCls(),Ge.className,(Te={},Object(Z.a)(Te,this.getActiveClassName(),!Ge.disabled&&Ge.active),Object(Z.a)(Te,this.getSelectedClassName(),Ge.isSelected),Object(Z.a)(Te,this.getDisabledClassName(),Ge.disabled),Te)),it=Object(k.a)(Object(k.a)({},Ge.attribute),{},{title:typeof Ge.title=="string"?Ge.title:void 0,className:Re,role:Ge.role||"menuitem","aria-disabled":Ge.disabled});Ge.role==="option"?it=Object(k.a)(Object(k.a)({},it),{},{role:"option","aria-selected":Ge.isSelected}):(Ge.role===null||Ge.role==="none")&&(it.role="none");var st={onClick:Ge.disabled?null:this.onClick,onMouseLeave:Ge.disabled?null:this.onMouseLeave,onMouseEnter:Ge.disabled?null:this.onMouseEnter},Tt=Object(k.a)({},Ge.style);Ge.mode==="inline"&&(Ge.direction==="rtl"?Tt.paddingRight=Ge.inlineIndent*Ge.level:Tt.paddingLeft=Ge.inlineIndent*Ge.level),he.forEach(function(Mt){return delete Ge[Mt]}),delete Ge.direction;var ht=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(ht=_.createElement(this.props.itemIcon,this.props)),_.createElement("li",Object(w.a)({},Object(x.a)(Ge,["onClick","onMouseEnter","onMouseLeave","onSelect"]),it,st,{style:Tt,ref:this.saveNode}),Ge.children,ht)}}]),wt}(_.Component);ur.isMenuItem=!0,ur.defaultProps={onSelect:pe,onMouseEnter:pe,onMouseLeave:pe,manualRef:pe};var oa=Object(m.b)(function($e,pt){var wt=$e.activeKey,nt=$e.selectedKeys,Te=pt.eventKey,Ge=pt.subMenuKey;return{active:wt[Ge]===Te,isSelected:Array.isArray(nt)?nt.indexOf(Te)!==-1:nt===Te}})(ur),wa=oa,ei=function($e){Object(s.a)(wt,$e);var pt=Object(h.a)(wt);function wt(){var nt;return Object(P.a)(this,wt),nt=pt.apply(this,arguments),nt.renderInnerMenuItem=function(Te){var Ge=nt.props,Re=Ge.renderMenuItem,it=Ge.index;return Re(Te,it,nt.props.subMenuKey)},nt}return Object(C.a)(wt,[{key:"render",value:function(){var Te=Object(w.a)({},this.props),Ge=Te.className,Re=Ge===void 0?"":Ge,it=Te.rootPrefixCls,st="".concat(it,"-item-group-title"),Tt="".concat(it,"-item-group-list"),ht=Te.title,Mt=Te.children;return he.forEach(function(tn){return delete Te[tn]}),delete Te.direction,_.createElement("li",Object(w.a)({},Te,{onClick:function(lt){return lt.stopPropagation()},className:"".concat(Re," ").concat(it,"-item-group")}),_.createElement("div",{className:st,title:typeof ht=="string"?ht:void 0},ht),_.createElement("ul",{className:Tt},_.Children.map(Mt,this.renderInnerMenuItem)))}}]),wt}(_.Component);ei.isMenuItemGroup=!0,ei.defaultProps={disabled:!0};var Ba=ei,Ni=function(pt){var wt=pt.className,nt=pt.rootPrefixCls,Te=pt.style;return _.createElement("li",{className:"".concat(wt," ").concat(nt,"-item-divider"),style:Te})};Ni.defaultProps={disabled:!0,className:"",style:{}};var Ma=Ni,xa=Vr,Po=v("eDIo");function Za($e,pt){var wt=$e.prefixCls,nt=$e.editable,Te=$e.locale,Ge=$e.style;return!nt||nt.showAdd===!1?null:_.createElement("button",{ref:pt,type:"button",className:"".concat(wt,"-nav-add"),style:Ge,"aria-label":(Te==null?void 0:Te.addAriaLabel)||"Add tab",onClick:function(it){nt.onEdit("add",{event:it})}},nt.addIcon||"+")}var ro=_.forwardRef(Za);function so($e,pt){var wt=$e.prefixCls,nt=$e.id,Te=$e.tabs,Ge=$e.locale,Re=$e.mobile,it=$e.moreIcon,st=it===void 0?"More":it,Tt=$e.moreTransitionName,ht=$e.style,Mt=$e.className,tn=$e.editable,lt=$e.tabBarGutter,qe=$e.rtl,Bt=$e.onTabClick,$t=Object(_.useState)(!1),cn=Object(Q.a)($t,2),Wt=cn[0],_n=cn[1],rn=Object(_.useState)(null),Ht=Object(Q.a)(rn,2),An=Ht[0],qt=Ht[1],En="".concat(nt,"-more-popup"),kn="".concat(wt,"-dropdown"),Yt=An!==null?"".concat(En,"-").concat(An):null,wn=Ge==null?void 0:Ge.dropdownAriaLabel,ln=_.createElement(xa,{onClick:function(Dn){var Nn=Dn.key,Gn=Dn.domEvent;Bt(Nn,Gn),_n(!1)},id:En,tabIndex:-1,role:"listbox","aria-activedescendant":Yt,selectedKeys:[An],"aria-label":wn!==void 0?wn:"expanded dropdown"},Te.map(function(pn){return _.createElement(wa,{key:pn.key,id:"".concat(En,"-").concat(pn.key),role:"option","aria-controls":nt&&"".concat(nt,"-panel-").concat(pn.key),disabled:pn.disabled},pn.tab)}));function xn(pn){for(var Dn=Te.filter(function(or){return!or.disabled}),Nn=Dn.findIndex(function(or){return or.key===An})||0,Gn=Dn.length,yn=0;yn<Gn;yn+=1){Nn=(Nn+pn+Gn)%Gn;var Kn=Dn[Nn];if(!Kn.disabled){qt(Kn.key);return}}}function an(pn){var Dn=pn.which;if(!Wt){[c.a.DOWN,c.a.SPACE,c.a.ENTER].includes(Dn)&&(_n(!0),pn.preventDefault());return}switch(Dn){case c.a.UP:xn(-1),pn.preventDefault();break;case c.a.DOWN:xn(1),pn.preventDefault();break;case c.a.ESC:_n(!1);break;case c.a.SPACE:case c.a.ENTER:An!==null&&Bt(An,pn);break}}Object(_.useEffect)(function(){var pn=document.getElementById(Yt);pn&&pn.scrollIntoView&&pn.scrollIntoView(!1)},[An]),Object(_.useEffect)(function(){Wt||qt(null)},[Wt]);var Vt=Object(Z.a)({},qe?"marginLeft":"marginRight",lt);Te.length||(Vt.visibility="hidden",Vt.order=1);var Sn=M()(Object(Z.a)({},"".concat(kn,"-rtl"),qe)),hr=Re?null:_.createElement(Po.a,{prefixCls:kn,overlay:ln,trigger:["hover"],visible:Wt,transitionName:Tt,onVisibleChange:_n,overlayClassName:Sn,mouseEnterDelay:.1,mouseLeaveDelay:.1},_.createElement("button",{type:"button",className:"".concat(wt,"-nav-more"),style:Vt,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":En,id:"".concat(nt,"-more"),"aria-expanded":Wt,onKeyDown:an},st));return _.createElement("div",{className:M()("".concat(wt,"-nav-operations"),Mt),style:ht,ref:pt},hr,_.createElement(ro,{prefixCls:wt,locale:Ge,editable:tn}))}var To=_.forwardRef(so),Vs=Object(_.createContext)(null),ti=.1,Sa=.01,Ia=20,Eo=Math.pow(.995,Ia);function xs(){var $e=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($e)||/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($e.substr(0,4)))}function Ts($e,pt){var wt=Object(_.useState)(),nt=Object(Q.a)(wt,2),Te=nt[0],Ge=nt[1],Re=Object(_.useState)(0),it=Object(Q.a)(Re,2),st=it[0],Tt=it[1],ht=Object(_.useState)(0),Mt=Object(Q.a)(ht,2),tn=Mt[0],lt=Mt[1],qe=Object(_.useState)(),Bt=Object(Q.a)(qe,2),$t=Bt[0],cn=Bt[1],Wt=Object(_.useRef)();function _n(wn){var ln=wn.touches[0],xn=ln.screenX,an=ln.screenY;Ge({x:xn,y:an}),window.clearInterval(Wt.current)}function rn(wn){if(!Te)return;wn.preventDefault();var ln=wn.touches[0],xn=ln.screenX,an=ln.screenY;Ge({x:xn,y:an});var Vt=xn-Te.x,Sn=an-Te.y;pt(Vt,Sn);var hr=Date.now();Tt(hr),lt(hr-st),cn({x:Vt,y:Sn})}function Ht(){if(!Te)return;if(Ge(null),cn(null),$t){var wn=$t.x/tn,ln=$t.y/tn,xn=Math.abs(wn),an=Math.abs(ln);if(Math.max(xn,an)<ti)return;var Vt=wn,Sn=ln;Wt.current=window.setInterval(function(){if(Math.abs(Vt)<Sa&&Math.abs(Sn)<Sa){window.clearInterval(Wt.current);return}Vt*=Eo,Sn*=Eo,pt(Vt*Ia,Sn*Ia)},Ia)}}var An=Object(_.useRef)(0),qt=Object(_.useRef)(!1),En=Object(_.useRef)();function kn(wn){var ln=wn.deltaX,xn=wn.deltaY,an=0,Vt=Math.abs(ln),Sn=Math.abs(xn);Vt===Sn?an=En.current==="x"?ln:xn:Vt>Sn?(an=ln,En.current="x"):(an=xn,En.current="y");var hr=Date.now();hr-An.current>100&&(qt.current=!1),(pt(-an,-an)||qt.current)&&(wn.preventDefault(),qt.current=!0),An.current=hr}var Yt=Object(_.useRef)(null);Yt.current={onTouchStart:_n,onTouchMove:rn,onTouchEnd:Ht,onWheel:kn},_.useEffect(function(){function wn(Vt){Yt.current.onTouchStart(Vt)}function ln(Vt){Yt.current.onTouchMove(Vt)}function xn(Vt){Yt.current.onTouchEnd(Vt)}function an(Vt){Yt.current.onWheel(Vt)}return document.addEventListener("touchmove",ln,{passive:!1}),document.addEventListener("touchend",xn,{passive:!1}),$e.current.addEventListener("touchstart",wn,{passive:!1}),$e.current.addEventListener("wheel",an),function(){document.removeEventListener("touchmove",ln),document.removeEventListener("touchend",xn)}},[])}function Xs(){var $e=Object(_.useRef)(new Map);function pt(nt){return $e.current.has(nt)||$e.current.set(nt,_.createRef()),$e.current.get(nt)}function wt(nt){$e.current.delete(nt)}return[pt,wt]}function Ys($e,pt){var wt=_.useRef($e),nt=_.useState({}),Te=Object(Q.a)(nt,2),Ge=Te[1];function Re(it){var st=typeof it=="function"?it(wt.current):it;st!==wt.current&&pt(st,wt.current),wt.current=st,Ge({})}return[wt.current,Re]}var il=function(pt){var wt=pt.position,nt=pt.prefixCls,Te=pt.extra;if(!Te)return null;var Ge,Re=Te;return wt==="right"&&(Ge=Re.right||!Re.left&&Re||null),wt==="left"&&(Ge=Re.left||null),Ge?_.createElement("div",{className:"".concat(nt,"-extra-content")},Ge):null};function ml($e,pt){var wt,nt=_.useContext(Vs),Te=nt.prefixCls,Ge=nt.tabs,Re=$e.className,it=$e.style,st=$e.id,Tt=$e.animated,ht=$e.activeKey,Mt=$e.rtl,tn=$e.extra,lt=$e.editable,qe=$e.locale,Bt=$e.tabPosition,$t=$e.tabBarGutter,cn=$e.children,Wt=$e.onTabClick,_n=$e.onTabScroll,rn=Object(_.useRef)(),Ht=Object(_.useRef)(),An=Object(_.useRef)(),qt=Object(_.useRef)(),En=Xs(),kn=Object(Q.a)(En,2),Yt=kn[0],wn=kn[1],ln=Bt==="top"||Bt==="bottom",xn=Ys(0,function(Oa,la){ln&&_n&&_n({direction:Oa>la?"left":"right"})}),an=Object(Q.a)(xn,2),Vt=an[0],Sn=an[1],hr=Ys(0,function(Oa,la){!ln&&_n&&_n({direction:Oa>la?"top":"bottom"})}),pn=Object(Q.a)(hr,2),Dn=pn[0],Nn=pn[1],Gn=Object(_.useState)(0),yn=Object(Q.a)(Gn,2),Kn=yn[0],or=yn[1],gr=Object(_.useState)(0),Ur=Object(Q.a)(gr,2),er=Ur[0],rr=Ur[1],Lr=Object(_.useState)(0),Er=Object(Q.a)(Lr,2),_r=Er[0],sa=Er[1],ta=Object(_.useState)(0),tr=Object(Q.a)(ta,2),vr=tr[0],ja=tr[1],ia=Object(_.useState)(null),Yn=Object(Q.a)(ia,2),vn=Yn[0],yr=Yn[1],oi=Object(_.useState)(null),Cr=Object(Q.a)(oi,2),Ir=Cr[0],fr=Cr[1],ar=Object(_.useState)(0),Ln=Object(Q.a)(ar,2),Mn=Ln[0],gn=Ln[1],qn=Object(_.useState)(0),na=Object(Q.a)(qn,2),cr=na[0],jr=na[1],Pa=i(new Map),da=Object(Q.a)(Pa,2),ba=da[0],ha=da[1],Ta=u(Ge,ba,Kn),Da="".concat(Te,"-nav-operations-hidden"),Ua=0,Qr=0;ln?Mt?(Ua=0,Qr=Math.max(0,Kn-vn)):(Ua=Math.min(0,vn-Kn),Qr=0):(Ua=Math.min(0,Ir-er),Qr=0);function Wa(Oa){return Oa<Ua?[Ua,!1]:Oa>Qr?[Qr,!1]:[Oa,!0]}var Ea=Object(_.useRef)(),za=Object(_.useState)(),hi=Object(Q.a)(za,2),Ji=hi[0],Li=hi[1];function Ci(){Li(Date.now())}function Uo(){window.clearTimeout(Ea.current)}Ts(rn,function(Oa,la){var xi=!1;function Zi(Oo,co){Oo(function(No){var Wi=Wa(No+co),Ai=Object(Q.a)(Wi,2),Vo=Ai[0],Pn=Ai[1];return xi=Pn,Vo})}if(ln){if(vn>=Kn)return xi;Zi(Sn,Oa)}else{if(Ir>=er)return xi;Zi(Nn,la)}return Uo(),Ci(),xi}),Object(_.useEffect)(function(){return Uo(),Ji&&(Ea.current=window.setTimeout(function(){Li(0)},100)),Uo},[Ji]);function Ao(){var Oa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ht,la=Ta.get(Oa);if(!la)return;if(ln){var xi=Vt;Mt?la.right<Vt?xi=la.right:la.right+la.width>Vt+vn&&(xi=la.right+la.width-vn):la.left<-Vt?xi=-la.left:la.left+la.width>-Vt+vn&&(xi=-(la.left+la.width-vn)),Nn(0),Sn(Wa(xi)[0])}else{var Zi=Dn;la.top<-Dn?Zi=-la.top:la.top+la.height>-Dn+Ir&&(Zi=-(la.top+la.height-Ir)),Sn(0),Nn(Wa(Zi)[0])}}var _o=R(Ta,{width:vn,height:Ir,left:Vt,top:Dn},{width:_r,height:vr},{width:Mn,height:cr},Object(k.a)(Object(k.a)({},$e),{},{tabs:Ge})),as=Object(Q.a)(_o,2),fs=as[0],is=as[1],os=Ge.map(function(Oa){var la=Oa.key;return _.createElement(f,{id:st,prefixCls:Te,key:la,rtl:Mt,tab:Oa,closable:Oa.closable,editable:lt,active:la===ht,tabPosition:Bt,tabBarGutter:$t,renderWrapper:cn,removeAriaLabel:qe==null?void 0:qe.removeAriaLabel,ref:Yt(la),onClick:function(Zi){Wt(la,Zi)},onRemove:function(){wn(la)},onFocus:function(){Ao(la),Ci(),Mt||(rn.current.scrollLeft=0),rn.current.scrollTop=0}})}),So=l(function(){var Oa,la,xi,Zi,Oo,co,No,Wi,Ai,Vo=((Oa=rn.current)===null||Oa===void 0?void 0:Oa.offsetWidth)||0,Pn=((la=rn.current)===null||la===void 0?void 0:la.offsetHeight)||0,ts=((xi=qt.current)===null||xi===void 0?void 0:xi.offsetWidth)||0,lo=((Zi=qt.current)===null||Zi===void 0?void 0:Zi.offsetHeight)||0,Ha=((Oo=An.current)===null||Oo===void 0?void 0:Oo.offsetWidth)||0,Fi=((co=An.current)===null||co===void 0?void 0:co.offsetHeight)||0;yr(Vo),fr(Pn),gn(ts),jr(lo);var Ti=(((No=Ht.current)===null||No===void 0?void 0:No.offsetWidth)||0)-ts,Ro=(((Wi=Ht.current)===null||Wi===void 0?void 0:Wi.offsetHeight)||0)-lo;or(Ti),rr(Ro);var Oi=(Ai=An.current)===null||Ai===void 0?void 0:Ai.className.includes(Da);sa(Ti-(Oi?0:Ha)),ja(Ro-(Oi?0:Fi)),ha(function(){var Fo=new Map;return Ge.forEach(function(ns){var ms=ns.key,Xo=Yt(ms).current;Xo&&Fo.set(ms,{width:Xo.offsetWidth,height:Xo.offsetHeight,left:Xo.offsetLeft,top:Xo.offsetTop})}),Fo})}),ps=Ge.slice(0,fs),Qi=Ge.slice(is+1),Aa=[].concat(Object(p.a)(ps),Object(p.a)(Qi)),wi=Object(_.useState)(),vi=Object(Q.a)(wi,2),vo=vi[0],uo=vi[1],Ki=Ta.get(ht),ss=Object(_.useRef)();function ls(){t.a.cancel(ss.current)}Object(_.useEffect)(function(){var Oa={};return Ki&&(ln?(Mt?Oa.right=Ki.right:Oa.left=Ki.left,Oa.width=Ki.width):(Oa.top=Ki.top,Oa.height=Ki.height)),ls(),ss.current=t()(function(){uo(Oa)}),ls},[Ki,ln,Mt]),Object(_.useEffect)(function(){Ao()},[ht,Ki,Ta,ln]),Object(_.useEffect)(function(){So()},[Mt,$t,ht,Ge.map(function(Oa){return Oa.key}).join("_")]);var qo=!!Aa.length,fo="".concat(Te,"-nav-wrap"),zo,yo,es,Go;return ln?Mt?(yo=Vt>0,zo=Vt+vn<Kn):(zo=Vt<0,yo=-Vt+vn<Kn):(es=Dn<0,Go=-Dn+Ir<er),_.createElement("div",{ref:pt,role:"tablist",className:M()("".concat(Te,"-nav"),Re),style:it,onKeyDown:function(){Ci()}},_.createElement(il,{position:"left",extra:tn,prefixCls:Te}),_.createElement(A.a,{onResize:So},_.createElement("div",{className:M()(fo,(wt={},Object(Z.a)(wt,"".concat(fo,"-ping-left"),zo),Object(Z.a)(wt,"".concat(fo,"-ping-right"),yo),Object(Z.a)(wt,"".concat(fo,"-ping-top"),es),Object(Z.a)(wt,"".concat(fo,"-ping-bottom"),Go),wt)),ref:rn},_.createElement(A.a,{onResize:So},_.createElement("div",{ref:Ht,className:"".concat(Te,"-nav-list"),style:{transform:"translate(".concat(Vt,"px, ").concat(Dn,"px)"),transition:Ji?"none":void 0}},os,_.createElement(ro,{ref:qt,prefixCls:Te,locale:qe,editable:lt,style:{visibility:qo?"hidden":null}}),_.createElement("div",{className:M()("".concat(Te,"-ink-bar"),Object(Z.a)({},"".concat(Te,"-ink-bar-animated"),Tt.inkBar)),style:vo}))))),_.createElement(To,Object.assign({},$e,{ref:An,prefixCls:Te,tabs:Aa,className:!qo&&Da})),_.createElement(il,{position:"right",extra:tn,prefixCls:Te}))}var Js=_.forwardRef(ml);function Ps($e){var pt=$e.id,wt=$e.activeKey,nt=$e.animated,Te=$e.tabPosition,Ge=$e.rtl,Re=$e.destroyInactiveTabPane,it=_.useContext(Vs),st=it.prefixCls,Tt=it.tabs,ht=nt.tabPane,Mt=Tt.findIndex(function(tn){return tn.key===wt});return _.createElement("div",{className:M()("".concat(st,"-content-holder"))},_.createElement("div",{className:M()("".concat(st,"-content"),"".concat(st,"-content-").concat(Te),Object(Z.a)({},"".concat(st,"-content-animated"),ht)),style:Mt&&ht?Object(Z.a)({},Ge?"marginRight":"marginLeft","-".concat(Mt,"00%")):null},Tt.map(function(tn){return _.cloneElement(tn.node,{key:tn.key,prefixCls:st,tabKey:tn.key,id:pt,animated:ht,active:tn.key===wt,destroyInactiveTabPane:Re})})))}function gl($e){var pt=$e.prefixCls,wt=$e.forceRender,nt=$e.className,Te=$e.style,Ge=$e.id,Re=$e.active,it=$e.animated,st=$e.destroyInactiveTabPane,Tt=$e.tabKey,ht=$e.children,Mt=_.useState(wt),tn=Object(Q.a)(Mt,2),lt=tn[0],qe=tn[1];_.useEffect(function(){Re?qe(!0):st&&qe(!1)},[Re,st]);var Bt={};return Re||(it?(Bt.visibility="hidden",Bt.height=0,Bt.overflowY="hidden"):Bt.display="none"),_.createElement("div",{id:Ge&&"".concat(Ge,"-panel-").concat(Tt),role:"tabpanel",tabIndex:Re?0:-1,"aria-labelledby":Ge&&"".concat(Ge,"-tab-").concat(Tt),"aria-hidden":!Re,style:Object(k.a)(Object(k.a)({},Bt),Te),className:M()("".concat(pt,"-tabpane"),Re&&"".concat(pt,"-tabpane-active"),nt)},(Re||lt||wt)&&ht)}var Us=0;function Ns($e){return Object(T.a)($e).map(function(pt){if(_.isValidElement(pt)){var wt=pt.key!==void 0?String(pt.key):void 0;return Object(k.a)(Object(k.a)({key:wt},pt.props),{},{node:pt})}return null}).filter(function(pt){return pt})}function gi($e,pt){var wt,nt=$e.id,Te=$e.prefixCls,Ge=Te===void 0?"rc-tabs":Te,Re=$e.className,it=$e.children,st=$e.direction,Tt=$e.activeKey,ht=$e.defaultActiveKey,Mt=$e.editable,tn=$e.animated,lt=$e.tabPosition,qe=lt===void 0?"top":lt,Bt=$e.tabBarGutter,$t=$e.tabBarStyle,cn=$e.tabBarExtraContent,Wt=$e.locale,_n=$e.moreIcon,rn=$e.moreTransitionName,Ht=$e.destroyInactiveTabPane,An=$e.renderTabBar,qt=$e.onChange,En=$e.onTabClick,kn=$e.onTabScroll,Yt=Object(I.a)($e,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),wn=Ns(it),ln=st==="rtl",xn;tn===!1?xn={inkBar:!1,tabPane:!1}:xn=Object(k.a)({inkBar:!0,tabPane:!1},tn!==!0?tn:null);var an=Object(_.useState)(!1),Vt=Object(Q.a)(an,2),Sn=Vt[0],hr=Vt[1];Object(_.useEffect)(function(){hr(xs())},[]);var pn=Object(n.a)(function(){var vr;return(vr=wn[0])===null||vr===void 0?void 0:vr.key},{value:Tt,defaultValue:ht}),Dn=Object(Q.a)(pn,2),Nn=Dn[0],Gn=Dn[1],yn=Object(_.useState)(function(){return wn.findIndex(function(vr){return vr.key===Nn})}),Kn=Object(Q.a)(yn,2),or=Kn[0],gr=Kn[1];Object(_.useEffect)(function(){var vr=wn.findIndex(function(ia){return ia.key===Nn});if(vr===-1){var ja;vr=Math.max(0,Math.min(or,wn.length-1)),Gn((ja=wn[vr])===null||ja===void 0?void 0:ja.key)}gr(vr)},[wn.map(function(vr){return vr.key}).join("_"),Nn,or]);var Ur=Object(n.a)(null,{value:nt}),er=Object(Q.a)(Ur,2),rr=er[0],Lr=er[1],Er=qe;Sn&&!["left","right"].includes(qe)&&(Er="top"),Object(_.useEffect)(function(){nt||(Lr("rc-tabs-".concat(Us)),Us+=1)},[]);function _r(vr,ja){En==null||En(vr,ja),Gn(vr),qt==null||qt(vr)}var sa={id:rr,activeKey:Nn,animated:xn,tabPosition:Er,rtl:ln,mobile:Sn},ta,tr=Object(k.a)(Object(k.a)({},sa),{},{editable:Mt,locale:Wt,moreIcon:_n,moreTransitionName:rn,tabBarGutter:Bt,onTabClick:_r,onTabScroll:kn,extra:cn,style:$t,panes:it});return An?ta=An(tr,Js):ta=_.createElement(Js,Object.assign({},tr)),_.createElement(Vs.Provider,{value:{tabs:wn,prefixCls:Ge}},_.createElement("div",Object.assign({ref:pt,id:nt,className:M()(Ge,"".concat(Ge,"-").concat(Er),(wt={},Object(Z.a)(wt,"".concat(Ge,"-mobile"),Sn),Object(Z.a)(wt,"".concat(Ge,"-editable"),Mt),Object(Z.a)(wt,"".concat(Ge,"-rtl"),ln),wt),Re)},Yt),ta,_.createElement(Ps,Object.assign({destroyInactiveTabPane:Ht},sa,{animated:xn}))))}var Hs=_.forwardRef(gi);Hs.TabPane=gl;var $o=Hs,ol=ee.b=$o},"kNP/":function(Be,ee,v){Be.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(Be,ee,v){Be.exports=v.p+"static/question.cb52bef9.gif"},kPYp:function(Be,ee){Be.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(Be,ee,v){},"kaH+":function(Be,ee,v){"use strict";var Z=v("+L6B"),Q=v("2/Rp"),I=v("tJVT"),k=v("q1tI"),_=v.n(k),O=v("UZu5"),M=v.n(O),T=v("dhSg"),n=v("rLCj"),p=v("dF/Y"),a=v("4i/N");ee.a=function(){var t=Object(k.useState)(""),A=Object(I.a)(t,2),l=A[0],i=A[1],c=Object(k.useState)(0),d=Object(I.a)(c,2),f=d[0],o=d[1],u=Object(k.useRef)("");Object(k.useEffect)(function(){var s=T.a.subscribe("preview-image",function(h){i(h),document.body.style.overflow="hidden"});return s},[]),Object(k.useEffect)(function(){return document.addEventListener("keydown",E),function(){document.removeEventListener("keydown",E)}},[]),Object(k.useEffect)(function(){u.current=l},[l]);function E(s){s.keyCode==27&&u.current&&R()}function R(){document.body.style.overflow="auto",i("")}function w(){o(f+90)}var P=Object(k.useRef)(),C=Object(k.useRef)(),b=function(h){(h.nativeEvent.target===P.current||h.nativeEvent.target===C.current)&&R()};return _.a.createElement(k.Fragment,null,l?_.a.createElement("div",{className:"image-preview-container",ref:P,onClick:b},_.a.createElement("div",{className:"button-group"},_.a.createElement(Q.a,{onClick:w},"\u65CB\u8F6C",_.a.createElement(n.a,null)),_.a.createElement(Q.a,{href:l},"\u4E0B\u8F7D",_.a.createElement(p.a,null)),_.a.createElement(Q.a,{onClick:R},"\u5173\u95ED",_.a.createElement(a.a,null))),_.a.createElement("div",{className:"preview-wrp-group",ref:C},_.a.createElement("img",{className:"image-preview",src:l,alt:"\u9884\u89C8\u5927\u56FE",style:{transform:"rotate(".concat(f,"deg)")}}))):null)}},kwm0:function(Be,ee,v){Be.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(Be,ee,v){Be.exports=v.p+"static/match_ad.24dc22fd.jpg"},lZu9:function(Be,ee,v){(function(Z){Z(v("VrN/"),v("1eCo"),v("8EBN"))})(function(Z){"use strict";Z.defineMode("markdown",function(Q,I){var k=Z.getMode(Q,"text/html"),_=k.name=="null";function O(F){if(Z.findModeByName){var B=Z.findModeByName(F);B&&(F=B.mime||B.mimes[0])}var z=Z.getMode(Q,F);return z.name=="null"?null:z}I.highlightFormatting===void 0&&(I.highlightFormatting=!1),I.maxBlockquoteDepth===void 0&&(I.maxBlockquoteDepth=0),I.taskLists===void 0&&(I.taskLists=!1),I.strikethrough===void 0&&(I.strikethrough=!1),I.emoji===void 0&&(I.emoji=!1),I.fencedCodeBlockHighlighting===void 0&&(I.fencedCodeBlockHighlighting=!0),I.fencedCodeBlockDefaultMode===void 0&&(I.fencedCodeBlockDefaultMode="text/plain"),I.xml===void 0&&(I.xml=!0),I.tokenTypeOverrides===void 0&&(I.tokenTypeOverrides={});var M={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 T in M)M.hasOwnProperty(T)&&I.tokenTypeOverrides[T]&&(M[T]=I.tokenTypeOverrides[T]);var n=/^([*\-_])(?:\s*\1){2,}\s*$/,p=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,a=/^\[(x| )\](?=\s)/i,t=I.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,A=/^ {0,3}(?:\={1,}|-{2,})\s*$/,l=/^[^#!\[\]*_\\<>` "'(~:]+/,i=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,c=/^\s*\[[^\]]+?\]:.*$/,d=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,f=" ";function o(F,B,z){return B.f=B.inline=z,z(F,B)}function u(F,B,z){return B.f=B.block=z,z(F,B)}function E(F){return!F||!/\S/.test(F.string)}function R(F){if(F.linkTitle=!1,F.linkHref=!1,F.linkText=!1,F.em=!1,F.strong=!1,F.strikethrough=!1,F.quote=0,F.indentedCode=!1,F.f==P){var B=_;if(!B){var z=Z.innerMode(k,F.htmlState);B=z.mode.name=="xml"&&z.state.tagStart===null&&!z.state.context&&z.state.tokenize.isInText}B&&(F.f=h,F.block=w,F.htmlState=null)}return F.trailingSpace=0,F.trailingSpaceNewLine=!1,F.prevLine=F.thisLine,F.thisLine={stream:null},null}function w(F,B){var z=F.column()===B.indentation,K=E(B.prevLine.stream),$=B.indentedCode,te=B.prevLine.hr,fe=B.list!==!1,Ae=(B.listStack[B.listStack.length-1]||0)+3;B.indentedCode=!1;var ce=B.indentation;if(B.indentationDiff===null&&(B.indentationDiff=B.indentation,fe)){for(B.list=null;ce<B.listStack[B.listStack.length-1];)B.listStack.pop(),B.listStack.length?B.indentation=B.listStack[B.listStack.length-1]:B.list=!1;B.list!==!1&&(B.indentationDiff=ce-B.listStack[B.listStack.length-1])}var ie=!K&&!te&&!B.prevLine.header&&(!fe||!$)&&!B.prevLine.fencedCodeEnd,ye=(B.list===!1||te||K)&&B.indentation<=Ae&&F.match(n),le=null;if(B.indentationDiff>=4&&($||B.prevLine.fencedCodeEnd||B.prevLine.header||K))return F.skipToEnd(),B.indentedCode=!0,M.code;if(F.eatSpace())return null;if(z&&B.indentation<=Ae&&(le=F.match(t))&&le[1].length<=6)return B.quote=0,B.header=le[1].length,B.thisLine.header=!0,I.highlightFormatting&&(B.formatting="header"),B.f=B.inline,b(B);if(B.indentation<=Ae&&F.eat(">"))return B.quote=z?1:B.quote+1,I.highlightFormatting&&(B.formatting="quote"),F.eatSpace(),b(B);if(!ye&&!B.setext&&z&&B.indentation<=Ae&&(le=F.match(p))){var me=le[1]?"ol":"ul";return B.indentation=ce+F.current().length,B.list=!0,B.quote=0,B.listStack.push(B.indentation),B.em=!1,B.strong=!1,B.code=!1,B.strikethrough=!1,I.taskLists&&F.match(a,!1)&&(B.taskList=!0),B.f=B.inline,I.highlightFormatting&&(B.formatting=["list","list-"+me]),b(B)}else{if(z&&B.indentation<=Ae&&(le=F.match(i,!0)))return B.quote=0,B.fencedEndRE=new RegExp(le[1]+"+ *$"),B.localMode=I.fencedCodeBlockHighlighting&&O(le[2]||I.fencedCodeBlockDefaultMode),B.localMode&&(B.localState=Z.startState(B.localMode)),B.f=B.block=C,I.highlightFormatting&&(B.formatting="code-block"),B.code=-1,b(B);if(B.setext||(!ie||!fe)&&!B.quote&&B.list===!1&&!B.code&&!ye&&!c.test(F.string)&&(le=F.lookAhead(1))&&(le=le.match(A)))return B.setext?(B.header=B.setext,B.setext=0,F.skipToEnd(),I.highlightFormatting&&(B.formatting="header")):(B.header=le[0].charAt(0)=="="?1:2,B.setext=B.header),B.thisLine.header=!0,B.f=B.inline,b(B);if(ye)return F.skipToEnd(),B.hr=!0,B.thisLine.hr=!0,M.hr;if(F.peek()==="[")return o(F,B,U)}return o(F,B,B.inline)}function P(F,B){var z=k.token(F,B.htmlState);if(!_){var K=Z.innerMode(k,B.htmlState);(K.mode.name=="xml"&&K.state.tagStart===null&&!K.state.context&&K.state.tokenize.isInText||B.md_inside&&F.current().indexOf(">")>-1)&&(B.f=h,B.block=w,B.htmlState=null)}return z}function C(F,B){var z=B.listStack[B.listStack.length-1]||0,K=B.indentation<z,$=z+3;if(B.fencedEndRE&&B.indentation<=$&&(K||F.match(B.fencedEndRE))){I.highlightFormatting&&(B.formatting="code-block");var te;return K||(te=b(B)),B.localMode=B.localState=null,B.block=w,B.f=h,B.fencedEndRE=null,B.code=0,B.thisLine.fencedCodeEnd=!0,K?u(F,B,B.block):te}else return B.localMode?B.localMode.token(F,B.localState):(F.skipToEnd(),M.code)}function b(F){var B=[];if(F.formatting){B.push(M.formatting),typeof F.formatting=="string"&&(F.formatting=[F.formatting]);for(var z=0;z<F.formatting.length;z++)B.push(M.formatting+"-"+F.formatting[z]),F.formatting[z]==="header"&&B.push(M.formatting+"-"+F.formatting[z]+"-"+F.header),F.formatting[z]==="quote"&&(!I.maxBlockquoteDepth||I.maxBlockquoteDepth>=F.quote?B.push(M.formatting+"-"+F.formatting[z]+"-"+F.quote):B.push("error"))}if(F.taskOpen)return B.push("meta"),B.length?B.join(" "):null;if(F.taskClosed)return B.push("property"),B.length?B.join(" "):null;if(F.linkHref?B.push(M.linkHref,"url"):(F.strong&&B.push(M.strong),F.em&&B.push(M.em),F.strikethrough&&B.push(M.strikethrough),F.emoji&&B.push(M.emoji),F.linkText&&B.push(M.linkText),F.code&&B.push(M.code),F.image&&B.push(M.image),F.imageAltText&&B.push(M.imageAltText,"link"),F.imageMarker&&B.push(M.imageMarker)),F.header&&B.push(M.header,M.header+"-"+F.header),F.quote&&(B.push(M.quote),!I.maxBlockquoteDepth||I.maxBlockquoteDepth>=F.quote?B.push(M.quote+"-"+F.quote):B.push(M.quote+"-"+I.maxBlockquoteDepth)),F.list!==!1){var K=(F.listStack.length-1)%3;K?K===1?B.push(M.list2):B.push(M.list3):B.push(M.list1)}return F.trailingSpaceNewLine?B.push("trailing-space-new-line"):F.trailingSpace&&B.push("trailing-space-"+(F.trailingSpace%2?"a":"b")),B.length?B.join(" "):null}function s(F,B){return F.match(l,!0)?b(B):void 0}function h(F,B){var z=B.text(F,B);if(typeof z!="undefined")return z;if(B.list)return B.list=null,b(B);if(B.taskList){var K=F.match(a,!0)[1]===" ";return K?B.taskOpen=!0:B.taskClosed=!0,I.highlightFormatting&&(B.formatting="task"),B.taskList=!1,b(B)}if(B.taskOpen=!1,B.taskClosed=!1,B.header&&F.match(/^#+$/,!0))return I.highlightFormatting&&(B.formatting="header"),b(B);var $=F.next();if(B.linkTitle){B.linkTitle=!1;var te=$;$==="("&&(te=")"),te=(te+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var fe="^\\s*(?:[^"+te+"\\\\]+|\\\\\\\\|\\\\.)"+te;if(F.match(new RegExp(fe),!0))return M.linkHref}if($==="`"){var Ae=B.formatting;I.highlightFormatting&&(B.formatting="code"),F.eatWhile("`");var ce=F.current().length;if(B.code==0&&(!B.quote||ce==1))return B.code=ce,b(B);if(ce==B.code){var ie=b(B);return B.code=0,ie}else return B.formatting=Ae,b(B)}else if(B.code)return b(B);if($==="\\"&&(F.next(),I.highlightFormatting)){var ye=b(B),le=M.formatting+"-escape";return ye?ye+" "+le:le}if($==="!"&&F.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return B.imageMarker=!0,B.image=!0,I.highlightFormatting&&(B.formatting="image"),b(B);if($==="["&&B.imageMarker&&F.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return B.imageMarker=!1,B.imageAltText=!0,I.highlightFormatting&&(B.formatting="image"),b(B);if($==="]"&&B.imageAltText){I.highlightFormatting&&(B.formatting="image");var ye=b(B);return B.imageAltText=!1,B.image=!1,B.inline=B.f=x,ye}if($==="["&&!B.image)return B.linkText&&F.match(/^.*?\]/)||(B.linkText=!0,I.highlightFormatting&&(B.formatting="link")),b(B);if($==="]"&&B.linkText){I.highlightFormatting&&(B.formatting="link");var ye=b(B);return B.linkText=!1,B.inline=B.f=F.match(/\(.*?\)| ?\[.*?\]/,!1)?x:h,ye}if($==="<"&&F.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){B.f=B.inline=m,I.highlightFormatting&&(B.formatting="link");var ye=b(B);return ye?ye+=" ":ye="",ye+M.linkInline}if($==="<"&&F.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){B.f=B.inline=m,I.highlightFormatting&&(B.formatting="link");var ye=b(B);return ye?ye+=" ":ye="",ye+M.linkEmail}if(I.xml&&$==="<"&&F.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var me=F.string.indexOf(">",F.pos);if(me!=-1){var se=F.string.substring(F.start,me);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(se)&&(B.md_inside=!0)}return F.backUp(1),B.htmlState=Z.startState(k),u(F,B,P)}if(I.xml&&$==="<"&&F.match(/^\/\w*?>/))return B.md_inside=!1,"tag";if($==="*"||$==="_"){for(var ge=1,ae=F.pos==1?" ":F.string.charAt(F.pos-2);ge<3&&F.eat($);)ge++;var pe=F.peek()||" ",Me=!/\s/.test(pe)&&(!d.test(pe)||/\s/.test(ae)||d.test(ae)),xe=!/\s/.test(ae)&&(!d.test(ae)||/\s/.test(pe)||d.test(pe)),Ke=null,et=null;if(ge%2&&(!B.em&&Me&&($==="*"||!xe||d.test(ae))?Ke=!0:B.em==$&&xe&&($==="*"||!Me||d.test(pe))&&(Ke=!1)),ge>1&&(!B.strong&&Me&&($==="*"||!xe||d.test(ae))?et=!0:B.strong==$&&xe&&($==="*"||!Me||d.test(pe))&&(et=!1)),et!=null||Ke!=null){I.highlightFormatting&&(B.formatting=Ke==null?"strong":et==null?"em":"strong em"),Ke===!0&&(B.em=$),et===!0&&(B.strong=$);var ie=b(B);return Ke===!1&&(B.em=!1),et===!1&&(B.strong=!1),ie}}else if($===" "&&(F.eat("*")||F.eat("_"))){if(F.peek()===" ")return b(B);F.backUp(1)}if(I.strikethrough){if($==="~"&&F.eatWhile($)){if(B.strikethrough){I.highlightFormatting&&(B.formatting="strikethrough");var ie=b(B);return B.strikethrough=!1,ie}else if(F.match(/^[^\s]/,!1))return B.strikethrough=!0,I.highlightFormatting&&(B.formatting="strikethrough"),b(B)}else if($===" "&&F.match(/^~~/,!0)){if(F.peek()===" ")return b(B);F.backUp(2)}}if(I.emoji&&$===":"&&F.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){B.emoji=!0,I.highlightFormatting&&(B.formatting="emoji");var he=b(B);return B.emoji=!1,he}return $===" "&&(F.match(/^ +$/,!1)?B.trailingSpace++:B.trailingSpace&&(B.trailingSpaceNewLine=!0)),b(B)}function m(F,B){var z=F.next();if(z===">"){B.f=B.inline=h,I.highlightFormatting&&(B.formatting="link");var K=b(B);return K?K+=" ":K="",K+M.linkInline}return F.match(/^[^>]+/,!0),M.linkInline}function x(F,B){if(F.eatSpace())return null;var z=F.next();return z==="("||z==="["?(B.f=B.inline=y(z==="("?")":"]"),I.highlightFormatting&&(B.formatting="link-string"),B.linkHref=!0,b(B)):"error"}var g={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function y(F){return function(B,z){var K=B.next();if(K===F){z.f=z.inline=h,I.highlightFormatting&&(z.formatting="link-string");var $=b(z);return z.linkHref=!1,$}return B.match(g[F]),z.linkHref=!0,b(z)}}function U(F,B){return F.match(/^([^\]\\]|\\.)*\]:/,!1)?(B.f=N,F.next(),I.highlightFormatting&&(B.formatting="link"),B.linkText=!0,b(B)):o(F,B,h)}function N(F,B){if(F.match(/^\]:/,!0)){B.f=B.inline=S,I.highlightFormatting&&(B.formatting="link");var z=b(B);return B.linkText=!1,z}return F.match(/^([^\]\\]|\\.)+/,!0),M.linkText}function S(F,B){return F.eatSpace()?null:(F.match(/^[^\s]+/,!0),F.peek()===void 0?B.linkTitle=!0:F.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),B.f=B.inline=h,M.linkHref+" url")}var H={startState:function(){return{f:w,prevLine:{stream:null},thisLine:{stream:null},block:w,htmlState:null,indentation:0,inline:h,text:s,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(F){return{f:F.f,prevLine:F.prevLine,thisLine:F.thisLine,block:F.block,htmlState:F.htmlState&&Z.copyState(k,F.htmlState),indentation:F.indentation,localMode:F.localMode,localState:F.localMode?Z.copyState(F.localMode,F.localState):null,inline:F.inline,text:F.text,formatting:!1,linkText:F.linkText,linkTitle:F.linkTitle,linkHref:F.linkHref,code:F.code,em:F.em,strong:F.strong,strikethrough:F.strikethrough,emoji:F.emoji,header:F.header,setext:F.setext,hr:F.hr,taskList:F.taskList,list:F.list,listStack:F.listStack.slice(0),quote:F.quote,indentedCode:F.indentedCode,trailingSpace:F.trailingSpace,trailingSpaceNewLine:F.trailingSpaceNewLine,md_inside:F.md_inside,fencedEndRE:F.fencedEndRE}},token:function(F,B){if(B.formatting=!1,F!=B.thisLine.stream){if(B.header=0,B.hr=!1,F.match(/^\s*$/,!0))return R(B),null;if(B.prevLine=B.thisLine,B.thisLine={stream:F},B.taskList=!1,B.trailingSpace=0,B.trailingSpaceNewLine=!1,!B.localState&&(B.f=B.block,B.f!=P)){var z=F.match(/^\s*/,!0)[0].replace(/\t/g,f).length;if(B.indentation=z,B.indentationDiff=null,z>0)return null}}return B.f(F,B)},innerMode:function(F){return F.block==P?{state:F.htmlState,mode:k}:F.localState?{state:F.localState,mode:F.localMode}:{state:F,mode:H}},indent:function(F,B,z){return F.block==P&&k.indent?k.indent(F.htmlState,B,z):F.localState&&F.localMode.indent?F.localMode.indent(F.localState,B,z):Z.Pass},blankLine:R,getType:b,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return H},"xml"),Z.defineMIME("text/markdown","markdown"),Z.defineMIME("text/x-markdown","markdown")})},loD1:function(Be,ee){function v(Z,Q,I,k,_,O,M){if(_===0)return!1;var T=_,n=0,p=Z;if(M>Q+T&&M>k+T||M<Q-T&&M<k-T||O>Z+T&&O>I+T||O<Z-T&&O<I-T)return!1;if(Z!==I)n=(Q-k)/(Z-I),p=(Z*k-I*Q)/(Z-I);else return Math.abs(O-Z)<=T/2;var a=n*O-M+p,t=a*a/(n*n+1);return t<=T/2*T/2}ee.containStroke=v},lseA:function(Be,ee,v){Be.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(Be,ee,v){"use strict";var Z=v("E7E6"),Q=v.n(Z);v.d(ee,"w",function(){return Q.a});var I=v("/GNS"),k=v.n(I);v.d(ee,"v",function(){return k.a});var _=v("FOrL"),O=v.n(_);v.d(ee,"q",function(){return O.a});var M=v("HpTS"),T=v.n(M);v.d(ee,"x",function(){return T.a});var n=v("tWlo"),p=v.n(n);v.d(ee,"a",function(){return p.a});var a=v("7ZXX"),t=v.n(a);v.d(ee,"l",function(){return t.a});var A=v("GABl"),l=v.n(A);v.d(ee,"e",function(){return l.a});var i=v("onxn"),c=v.n(i);v.d(ee,"n",function(){return c.a});var d=v("nKGa"),f=v.n(d);v.d(ee,"m",function(){return f.a});var o=v("4qgm"),u=v.n(o);v.d(ee,"y",function(){return u.a});var E=v("JeFH"),R=v.n(E);v.d(ee,"b",function(){return R.a});var w=v("ji0R"),P=v.n(w);v.d(ee,"i",function(){return P.a});var C=v("W6BS"),b=v.n(C);v.d(ee,"z",function(){return b.a});var s=v("kPYp"),h=v.n(s);v.d(ee,"A",function(){return h.a});var m=v("nukY"),x=v.n(m),g=v("4u4S"),y=v.n(g),U=v("yslc"),N=v.n(U),S=v("l2Kq"),H=v.n(S),F=v("RMFE"),B=v.n(F);v.d(ee,"o",function(){return B.a});var z=v("TGq3"),K=v.n(z),$=v("SMhR"),te=v.n($),fe=v("8/bI"),Ae=v.n(fe);v.d(ee,"j",function(){return Ae.a});var ce=v("JWDV"),ie=v.n(ce),ye=v("Xsq0"),le=v.n(ye);v.d(ee,"p",function(){return le.a});var me=v("Ohmc"),se=v.n(me);v.d(ee,"c",function(){return se.a});var ge=v("csWT"),ae=v.n(ge);v.d(ee,"d",function(){return ae.a});var pe=v("7v3h"),Me=v.n(pe);v.d(ee,"k",function(){return Me.a});var xe=v("cRFk"),Ke=v.n(xe);v.d(ee,"u",function(){return Ke.a});var et=v("kPWJ"),he=v.n(et);v.d(ee,"t",function(){return he.a});var Se=v("qgvg"),Ue=v.n(Se);v.d(ee,"r",function(){return Ue.a});var Ne=v("FPkq"),ct=v.n(Ne);v.d(ee,"s",function(){return ct.a});var ft=v("A/g1"),Ot=v.n(ft);v.d(ee,"f",function(){return Ot.a});var dt=v("Nmxd"),Ut=v.n(dt);v.d(ee,"g",function(){return Ut.a});var jt=v("5D2P"),ze=v.n(jt);v.d(ee,"h",function(){return ze.a});var Ve=v("djh8"),Et=v.n(Ve),Rt=v("Jq4h"),ut=v.n(Rt)},mFDi:function(Be,ee,v){var Z=v("QBsz"),Q=v("Fofx"),I=Z.applyTransform,k=Math.min,_=Math.max;function O(T,n,p,a){p<0&&(T=T+p,p=-p),a<0&&(n=n+a,a=-a),this.x=T,this.y=n,this.width=p,this.height=a}O.prototype={constructor:O,union:function(T){var n=k(T.x,this.x),p=k(T.y,this.y);this.width=_(T.x+T.width,this.x+this.width)-n,this.height=_(T.y+T.height,this.y+this.height)-p,this.x=n,this.y=p},applyTransform:function(){var T=[],n=[],p=[],a=[];return function(t){if(!t)return;T[0]=p[0]=this.x,T[1]=a[1]=this.y,n[0]=a[0]=this.x+this.width,n[1]=p[1]=this.y+this.height,I(T,T,t),I(n,n,t),I(p,p,t),I(a,a,t),this.x=k(T[0],n[0],p[0],a[0]),this.y=k(T[1],n[1],p[1],a[1]);var A=_(T[0],n[0],p[0],a[0]),l=_(T[1],n[1],p[1],a[1]);this.width=A-this.x,this.height=l-this.y}}(),calculateTransform:function(T){var n=this,p=T.width/n.width,a=T.height/n.height,t=Q.create();return Q.translate(t,t,[-n.x,-n.y]),Q.scale(t,t,[p,a]),Q.translate(t,t,[T.x,T.y]),t},intersect:function(T){if(!T)return!1;T instanceof O||(T=O.create(T));var n=this,p=n.x,a=n.x+n.width,t=n.y,A=n.y+n.height,l=T.x,i=T.x+T.width,c=T.y,d=T.y+T.height;return!(a<l||i<p||A<c||d<t)},contain:function(T,n){var p=this;return T>=p.x&&T<=p.x+p.width&&n>=p.y&&n<=p.y+p.height},clone:function(){return new O(this.x,this.y,this.width,this.height)},copy:function(T){this.x=T.x,this.y=T.y,this.width=T.width,this.height=T.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},O.create=function(T){return new O(T.x,T.y,T.width,T.height)};var M=O;Be.exports=M},mLcG:function(Be,ee){var v=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(Z){setTimeout(Z,16)};Be.exports=v},n1HI:function(Be,ee,v){var Z=v("hX1E"),Q=Z.normalizeRadian,I=Math.PI*2;function k(_,O,M,T,n,p,a,t,A){if(a===0)return!1;var l=a;t-=_,A-=O;var i=Math.sqrt(t*t+A*A);if(i-l>M||i+l<M)return!1;if(Math.abs(T-n)%I<1e-4)return!0;if(p){var c=T;T=Q(n),n=Q(c)}else T=Q(T),n=Q(n);T>n&&(n+=I);var d=Math.atan2(A,t);return d<0&&(d+=I),d>=T&&d<=n||d+I>=T&&d+I<=n}ee.containStroke=k},n6Mw:function(Be,ee,v){var Z=v("SrGk"),Q=v("bYtY"),I=v("Fofx");function k(O,M){Z.call(this,O,M,"clipPath","__clippath_in_use__")}Q.inherits(k,Z),k.prototype.update=function(O){var M=this.getSvgElement(O);M&&this.updateDom(M,O.__clipPaths,!1);var T=this.getTextSvgElement(O);T&&this.updateDom(T,O.__clipPaths,!0),this.markUsed(O)},k.prototype.updateDom=function(O,M,T){if(M&&M.length>0){var n=this.getDefs(!0),p=M[0],a,t,A=T?"_textDom":"_dom";p[A]?(t=p[A].getAttribute("id"),a=p[A],n.contains(a)||n.appendChild(a)):(t="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,a=this.createElement("clipPath"),a.setAttribute("id",t),n.appendChild(a),p[A]=a);var l=this.getSvgProxy(p);if(p.transform&&p.parent.invTransform&&!T){var i=Array.prototype.slice.call(p.transform);I.mul(p.transform,p.parent.invTransform,p.transform),l.brush(p),p.transform=i}else l.brush(p);var c=this.getSvgElement(p);a.innerHTML="",a.appendChild(c.cloneNode()),O.setAttribute("clip-path","url(#"+t+")"),M.length>1&&this.updateDom(a,M.slice(1),T)}else O&&O.setAttribute("clip-path","none")},k.prototype.markUsed=function(O){var M=this;O.__clipPaths&&Q.each(O.__clipPaths,function(T){T._dom&&Z.prototype.markUsed.call(M,T._dom),T._textDom&&Z.prototype.markUsed.call(M,T._textDom)})};var _=k;Be.exports=_},n6Qo:function(Be,ee,v){"use strict";v.d(ee,"a",function(){return T});var Z=v("q1tI"),Q=v("biw7"),I=v("fyJ8");function k(n){var p=n.className,a=n.index,t=n.children,A=n.colSpan,l=n.rowSpan,i=Z.useContext(Q.a),c=i.prefixCls,d=i.fixedInfoList,f=d[a];return Z.createElement(I.a,Object.assign({className:p,index:a,component:"td",prefixCls:c,record:null,dataIndex:null,render:function(){return{children:t,props:{colSpan:A,rowSpan:l}}}},f))}function _(n){return Z.createElement("tr",Object.assign({},n))}function O(n){var p=n.children,a=Z.useContext(Q.a),t=a.prefixCls;return Z.createElement("tfoot",{className:"".concat(t,"-summary")},p)}var M=ee.b=O,T={Cell:k,Row:_}},nCxF:function(Be,ee,v){var Z=v("QBsz"),Q=Z.min,I=Z.max,k=Z.scale,_=Z.distance,O=Z.add,M=Z.clone,T=Z.sub;function n(p,a,t,A){var l=[],i=[],c=[],d=[],f,o,u,E;if(A){u=[Infinity,Infinity],E=[-Infinity,-Infinity];for(var R=0,w=p.length;R<w;R++)Q(u,u,p[R]),I(E,E,p[R]);Q(u,u,A[0]),I(E,E,A[1])}for(var R=0,w=p.length;R<w;R++){var P=p[R];if(t)f=p[R?R-1:w-1],o=p[(R+1)%w];else if(R===0||R===w-1){l.push(M(p[R]));continue}else f=p[R-1],o=p[R+1];T(i,o,f),k(i,i,a);var C=_(P,f),b=_(P,o),s=C+b;s!==0&&(C/=s,b/=s),k(c,i,-C),k(d,i,b);var h=O([],P,c),m=O([],P,d);A&&(I(h,h,u),Q(h,h,E),I(m,m,u),Q(m,m,E)),l.push(h),l.push(m)}return t&&l.push(l.shift()),l}Be.exports=n},nEHx:function(Be,ee,v){"use strict";v.d(ee,"a",function(){return Z});var Z;(function(Q){Q.DARK="dark",Q.LIGHT="light",Q.HIGH_CONTRAST="hc"})(Z||(Z={}))},nKGa:function(Be,ee,v){Be.exports=v.p+"static/export_exercise-template.f7655c19.png"},nPnh:function(Be,ee){var v=Math.round;function Z(k,_,O){if(!_)return;var M=_.x1,T=_.x2,n=_.y1,p=_.y2;k.x1=M,k.x2=T,k.y1=n,k.y2=p;var a=O&&O.lineWidth;if(!a)return;v(M*2)===v(T*2)&&(k.x1=k.x2=I(M,a,!0)),v(n*2)===v(p*2)&&(k.y1=k.y2=I(n,a,!0))}function Q(k,_,O){if(!_)return;var M=_.x,T=_.y,n=_.width,p=_.height;k.x=M,k.y=T,k.width=n,k.height=p;var a=O&&O.lineWidth;if(!a)return;k.x=I(M,a,!0),k.y=I(T,a,!0),k.width=Math.max(I(M+n,a,!1)-k.x,n===0?0:1),k.height=Math.max(I(T+p,a,!1)-k.y,p===0?0:1)}function I(k,_,O){if(!_)return k;var M=v(k*2);return(M+v(_))%2===0?M/2:(M+(O?1:-1))/2}ee.subPixelOptimizeLine=Z,ee.subPixelOptimizeRect=Q,ee.subPixelOptimize=I},ni6a:function(Be,ee,v){var Z=v("pzxd"),Q=v("mFDi"),I=v("gut8"),k=I.WILL_BE_RESTORED,_=new Q,O=function(){};O.prototype={constructor:O,drawRectText:function(T,n){var p=this.style;n=p.textRect||n,this.__dirty&&Z.normalizeTextStyle(p,!0);var a=p.text;if(a!=null&&(a+=""),!Z.needDrawText(a,p))return;T.save();var t=this.transform;p.transformText?this.setTransform(T):t&&(_.copy(n),_.applyTransform(t),n=_),Z.renderText(this,T,a,p,n,k),T.restore()}};var M=O;Be.exports=M},nnTU:function(Be,ee,v){"use strict";v.d(ee,"b",function(){return M}),v.d(ee,"a",function(){return T});var Z=v("MI8n"),Q=v("JYp7"),I=v("pmY6"),k=v("24hK"),_=v("746U"),O=v("Cg/j");const M=Object(O.c)("commandService"),T=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Z.b,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(n,p){if(!n)throw new Error("invalid command");if(typeof n=="string"){if(!p)throw new Error("invalid command");return this.registerCommand({id:n,handler:p})}if(n.description){const i=[];for(let d of n.description.args)i.push(d.constraint);const c=n.handler;n.handler=function(d,...f){return Object(_.o)(f,i),c(d,...f)}}const{id:a}=n;let t=this._commands.get(a);t||(t=new k.a,this._commands.set(a,t));let A=t.unshift(n),l=Object(I.i)(()=>{A();const i=this._commands.get(a);(i==null?void 0:i.isEmpty())&&this._commands.delete(a)});return this._onDidRegisterCommand.fire(a),l}registerCommandAlias(n,p){return T.registerCommand(n,(a,...t)=>a.get(M).executeCommand(p,...t))}getCommand(n){const p=this._commands.get(n);return!p||p.isEmpty()?void 0:Q.a.first(p)}getCommands(){const n=new Map;for(const p of this._commands.keys()){const a=this.getCommand(p);a&&n.set(p,a)}return n}};T.registerCommand("noop",()=>{})},nukY:function(Be,ee){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAMkklEQVR4Xu2dWWwcSRnHv7Yd577v+74vkgWEQCAEy6IVWuCB62GVICFIYkcsvMC+LW8LL7BIiTiEhCweInjgPrRCC2KBJTBVYzm24yRO4ty3kziJj9ie+tC/d9oaT2b67ume7irJsjdbVf19X/266quvjjaEEG8w8yukk7ZAii1gMHODEOK3RPRSivXUqmXcAgb07+jomDk2NvYPZn4u4/bQ6qfUAiboSEKI5cz8XyJanVJdtVoZtsAE6EXYdzPzv4hoToZtolVPoQUmgV6E/QVm/hMRNaVQX61SRi3wDOiwg5Tya0qpn2TUJlrtFFqgIujFnv27zPztFOqsVcqgBaqCzsyGlPJXzPy5DNpFq5wyC1QFHXr29fVN6+/v/zszfyBlemt1MmYBW9Bhi3w+v7hQKJwkog0Zs41WN0UWcAS96K9vI6J3mHl+inTXqmTIAq5Ahz1yudxHDcN4k5mbM2QfrWpKLOAa9CLsB4ioLSW6azUyZAFPoBdh/w4RvZYhG2lVU2ABz6AXYf8FEb2cAv21ChmxgC/Qu7q6moeHh/9KRB/JiJ20mnVuAV+gQ+fu7u4FQ0ND/yGiLXVuAy1+BizgG/Ri2HEjEZ1k5kUZsJVWsY4tEAh06N3e3v7B8fHxt4hoWh3bIRbRm5qaaHx83NOzDcMg/DCz+RNlamhoMKtXSkX5mJrUHRh0SCml/CIzn8D+mJpInYKHNDY20p49e2hoaIguX75MIyMjrrRatWoVLVu2jJ48eUJnzpxxVcZPpunTp9POnTvNot3d3TQ8POynmsSUCQ1MIcSrzPx6YjSrIMiSJUvM3jCK9PTpU3r48KHrqhcvXkxr166lQqFAp06dMn+7SRp0N1Z6Nk+orS6E+Bkzf8WfKNGX2rdvH6EnjSINDAxQb2+v66p37NhBM2bMoNu3b9PVq1ddl9OguzbVpIyhgs7MTUKIvxDR8/7EibbU1q1byfI7w3pSc3MzTZkyhbyADsABOnzsrq4uwmhgJYw406ZVn+4sXbqUFi1aZLo8fX19VdUYHR2dNEqsWbOG5sxxf0ISckydOtWsH/J5mQ88ePCArl+/HpaJQ6knVNAhkRBiLjP/m4jedfBSntatW2eC5wV0QAc3CkBcuHBhkoWslyCo2S5dukT37t2bqGbTpk00b968oNW6Ko/n4vlJSqGDDuXy+fza4tbeZUlSNgpZvIKOSMvu3btNF+rs2bP0+PHjmoA+e/Zsc+RxmzBSwU1CunbtGmGEcJswAgwODrrNXpN8kYBehP29SincFTOjJprE9BCvoK9evZrgfgBwgG4lRDkA4/37923dhJUrV5qjAUA6d+5cVa0REvTibpRXpKMuHoDK5XKfMQzj17gNzEOxSLMi2oFGBCj9/f2Bn+UFdPSSu3btMiM/PT09pp9tpS1btpg+NEC/ePFiVbn0ZNRfk0XWo1viSCm/oZT6gT/xwi+1ceNGmj9/vum/huFHegHdylv+bPTkmCijF8bk1M5NCAo63Be87E4JLhZGDqQ7d+64WtiCXl5cHCcZwvz/kYMOYXO53DEiag1TcL91xQU6IilYgLFgHhsbM1VA775t2zaaOXMm3bp1y/SH7VJQ0MOa7FaSsdKcw287hV2uJqAzc6OU8nfM/KmwFfBaXxygoxcFzAjXwWXCD/4G/HBnADu2AnR2dpohQfw33KtKCf79woULzZXKauFF9KrVthaUgo4Frmp+PCbLVjjy0aNHtgtaGCGRMg86jNDV1TVreHj4bSLa5xXOMPPHBfrevXtt1cA2gLt375p58BIgMuM3YVTA6FAplYLe0dFB1shSntftZBTrEvv379eglxown8+vKBQKuMj03bhVDMkCHT1ntUb2IhZ6a/R+TnF0PBe9J0Jv2NeC3wsWLJiIoGByaiUNupcWcJe3Jq5LGex7C4XCP4lotjsRw81lgR5ureQIeqUec/v27aabgs1Z5XHnICu4drsNdY8edsvb1CelfEkp9fsaPnLiURboiGNbrkIYcmB0KF/8sasXkGMC6nWvS1BZNehBLeihvJTy+0qpb3ooElrWsH10P4JhQomFI7gwp0+frul+71LQ8aJX6/0RXsSkFwnrDXb75qEPkp6MltAgpXxZKYXD1bGkuEFHL46YOVwWgIF95aUJ/jn8d4AGWb0mLDjZjVQ6vOjVoj7ySymfU0rhQwOxnUaKE3RMXOGyIKRoRUbwN8J41g8gx8QU/46DGV6TUyweMlg9cKW6EfLE5i+EKCEDkvU3wpF2B0TwgpXuxPQqe5T5azYZ7ejoWDI6Oiri/nRMXKADGjwbPTr8eUADuK2tsFYj49/Pnz8/CfQbN244Roiw2one2gl0O5gwiuBFxG/E6LHjEQn77NevX2/G0vESej3+FyXAbuuuCehCCGybe4uZP+xWsKjyRQ06lvkBK8KNpYsxGzZsMMOJ5Qk+MtwX5Ec5q0cs7dGxkOTUU1rbcP2CDlcK+22wHQFbIxAFKj1Kh7g6dMCEG5vJgmwYi6pt7eqtFeg/YubDcShY/swoQUc8HaeYkDDJLN20hYkdXgIAi3/HyiZ+A5xKE8Jago5QJiCGy2KNKJUWjHD0DyMHZMao4/b4XxLaPXLQpZRfVUr9NAnKQoYoQS9d6ClfdbRO77s9UV8r0OGmbN682XSpADDcFMhYbWUULgxeWvjqyOs00iSl3SMFHVdhFAoFfEggMTfwRgn63LlzTWgwrEspfbWxdXgbk0ZrMhqV6zJr1izT98YLCvcJLon1ItptAbBsCF/9ypUr5tbipKfIQC8u96O1E3XKKErQcQ0FdhfCLcEVEW4TelW8JHAdMEHFSincgqhAh4sFOXEEEC9WJVfEDnSUwXFAa7sv3B3s1QljS4Vbm3nNFwnovb29UwcGBt5m5vd7FSjq/NbQiyEXPWWYCfFxTOawwGJ3cBm9NVwFREkANv4uvYYDL0kUoOMZmBDjlJIVOqw2eXWzqQsvCoCHj4/e/ebNm+be9SROVCMBXQjxc2b+cpgQhVXX8uXLzYZGQiMDyqCHBQCFtUEL9QLy0tNL6EFxiAFA46fS2U1MTHFYGr0jRoRSHx2ugdPEzwpVVgIXgANKjDhWOBNgIrpS7S4aN6BDV7ysGCWtemFLAI9DGEkCPnTQhRBfZ+YfhgVm2PWgQRA2C7Jpyk4mDN84JVQKJsAu36aLfPCL4TYAtvKXLcwFoxUrVhB+kAAfXhwsWNm5Gm5BR52wJerHQpQ1MiH2j5+kpFBBx+dfiAjXSSf6q9PwhzHkli/WBGkUAARocRlRpevbcPDCOnQBwJ1GkVLQnfaaQG7499CnUo8OEPFyA2zI5+aEvhfQLbuhDEKQSNjekMoeHVdcKKVEPd2sC5cCvW3Qa+qsfeZhNmzY4UXo6WWy6Ad0C3jY1cnVCtKp+CkbSo8uhJhRvLToPX6E0GUqW8Dy5d0ACrjQcwMwt7F6O7sHuakrie0ZCui5XO4EEX0piQpqmbQFYIHAoOdyuW8R0fe0ObUFkmyBQKBLKT/JzH9O0gVFSTa2li0+C/gGXUq5iZn/p78mHV/j6Se7t4Av0ItXV5zMyo257s2pcybVAp5Bx+dbpJS4T/GzSVVKy6UtUG4Bz6BLKV9TSuHr0TppC9SNBTyBXrwd9zf6o1x1075a0KIFXIMupdyulMItW7FcPKRbTFsgiAVcgd7e3j6vUCggwrI5yMN0WW2BuCzgCDpi5EKIPxLRi3EJqZ+rLRDUAo6gCyFeZ+ZXgz5Il9cWiNMCtqBLKb+glPplnALqZ2sLhGGBqqDn8/m9Sql30v6xrTCMqOtIvgUqgt7T07NwcHAQe8vXJV8FLaG2gLMFngEdX3+WUr7JzB9zLq5zaAvUhwWeAV0I8QYzv1If4msptQXcWWAS6Llc7gARtbkrqnNpC9SPBSZAb29vf9/4+Dg+phXblc71YzYtab1ZwAS9s7Nz6cjICK50ju0jWvVmOC1vfVnAKF7pjPsRP1RfomtptQXcWwB7y3+slDrkvojOqS1QfxZw3AJQfyppibNkgWPHjrGDvsowjMMa9CxRkUJdHUAfNwzjQGtr6wkNegobP0sq2YD+1DCMz7e2tv4B9tCgZ4mKFOpaBfTBxsbGTx85cuRvlsoa9BQ2fpZUqgD6w4aGhhdbWlpwS8VE0qBniYoU6loKumEYdxobG184fPhwR7mqGvQUNn6WVCoB/VpDQ8PzLS0tZyvpr0HPEhUp1LUI+gUi+vjRo0cvV1NRg57Cxs+SSsePH+9qamr6xKFDh27a6a1BzxIVKdS1ra1t4cGDB/udVPs/YIoD4AHLutsAAAAASUVORK5CYII="},onxn:function(Be,ee){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAQFElEQVRoQ71aCXRUVZr+7ttqr6yVPSRASCBIVFBUWgUURZFW7FYa9Xhc2lHWGdM9bYszaqa1tcUFV9RRu3V6etw4DQJqY4MDLUJQEQIYEsieqspW2Wp/9ZY7570ia1VIRXH+cyo59e6/3O/+//3vf/9XBGeR8sr/lipS6QpKyMUApoOiGISmgBIbJZSAwkdA+ihQB0JqCPAVy3K7Op5Z3Hm2pkF+qKKiik/sfV7lF5SSOwF6MSiYiekklBAcIqDvmAzkLy1/WNo7MfmR3N8bUF75fpOInnIK+iClsP2QSQzIEiAIBk8L9uwN7ooLgt9H54QBUUqJo3zHrZTgSVDkfx+jY8lcaqgDJ0awl5S6KGXWezYu+W9CCJ2IjQkByvzXnZNlRXoPlM4dywghBJRhwBACkNPRp1nRpqX/p6CqJq2Cqqr+XSdFgVGg2DRlG85FE7Y6i/Bs6NqvZdZwc9uz1zUnCiouIPrBzaxr9+Eb816v2zygKONXO+apKrZSUEeMcg0AwwAMB8JMaI2iABUFqihC7e0HMQr43YwDuGvqd/B2yni0bn7/X6W5i47J5aUC1K1pL9V5zwQurnXXqmnrKMX8vNdO3aQJp//641ug0D9RUMOgMs0BLBf9aN44C0RlGbKrHVSW8OCsY1hXVg0qq6issStfdOQ+ssrw+VKVKtfnPHvSM2aEjB6gFQuMzjaXi4AazclJOcWR391LqbphiI+AcGwMkDsNO7DCvBNFllYc8J6L273/8b0gamEot7WDhsJ4+JxDWHleva6ntQl0c2PRK/fYv1zESOwjjicPb463v2KW1rWyeIVK1Xc1JSeZ3E+XG35zDUB1PsKwYHgeGOaROVw13nI8jmxr9Chp6MvHPM9boDTB7K1SqH4/wLIgRgMIy4JTJZCudgR8Et77yW5cNrlb193WotLaOn7TvOn9a8KuwIbs3x/77ehViwHkXDntY0rpEo1RDPF0m3AB+b11OViOxSS2B4WcGy7GgXopH4u5SryVXwGek3W9vrAVs5zvIUSNCXtH6eiE4vNH+QkBa7fBEvRg2/kfoaOHxfrm+dh67R6k2RWdpaNeUpSWnu0ZZUk3BI93Xpy98eRXw43FAGpdWdQDihRR5CAGObCciu6kZGSrPeAhg+EU8FYRooVBRnonBENkUN8jrlV4PfjzhMFojHJ7Z9RDo6jQ7MOuqz8GI0r4pCEHN14Y9ZJGx48xvpIMP1V8kj91UuEksvzDKNrTiXSQsW3l9EKZyo2yxCDoF8ALCkxmKZpu4xBhVKQVt8FoD8EXtmCac0vioTagT8twEUlP21pSoOEwVH9AH51u7cFn132mlx5UoWCMrP5cSxQNDcQ9dQrNDhxsvzvj6eq34wNaVTRfVrEn4DOA52UIxkHgY656xsxWCBYR3zpn4drQxgl5ZyxmLQw1kMQg4IXCHfhZWUcMq9QnUc7MyqLb70m7/6ucuIDcq4uuFsPMTm2Q4/XT78zEqMid06DnCNfRPDyl3In3rQvGk5rQON/pxndXvQPeFCdMFJVSFaR/f9tVuRtP7IoJuTdWL69YLH/7aKLHCmeKIGtWiz7BhsqpCPeb4DVYEGSMCDEGeIkZzX6CPRkLcdhaOiEgA8xUkvGY5V3cPts1pnyoumdn+kPfXhMD6G+rrvDOVFsSLjQNSUE4Sty6obovihEJCjFGWwMEp4QcPFbym9gJaftGkvVUDZ4bO6z7G3Fw8fsjxhm5DyqXrD+TOoL9yfft178M+nHL6ut+eYFS++ZEltGYHEB6cZsu0vR1IYI91hhxr92B59hF2Jty0YgxqlJIzS16MtCJZSEUThpxxg0IqIEgjs99EbZhS82Fm6EIGaCMCUpARvCLnsys1452DgL6ZtUFTZlqX8FEAAmWMDJmOnWR9upcBKRS8JmZYA0GRDo7YJ5RisaICTc0XhajVnK69Yw2nBizGVx2ZiwoSvGu4xVcXDSU3tlIGxjZC8lcohe+3kr3kuynqj/VAblWlZSoqlIzETAaLyPIyDmvSRfz+yZDmXH/CBWHGv24o+VCRNSRVYMWZrp34hCbngY2OWlohFJI7jaszjqIh35SO/ickXog+I4jnKotFkH4uKc87d+PPK8DqrnvnA0WhOME+fgQM85pgWCOQFUIvBkPg5jSIPZ78W8n87HNnxdXgVavqZ5uqMEgqBx7NLBJdrCOdF02V2xFyN2LkqR+/M+SL4cB6oPR+w3CyXOhsnaEjvc+rnSJL+uAjq46vzZF9RWPP/1YDrPDi9TJ0TouJBbgSPhnuKlrCeRo+TcuKX1eKJ7Y4pmxmEFMZsy2tOH53C245dvFOHCTfqLoxEQ8MPqOIGKeAtk0Be3HfO8a3L07CS2/xNQa9PgIaPQYTpQIhS27V/8wbPSSpv3NOvX30QVIjEbZ5dYvd2xaKrR9IzW3gkpSDB9jEFCcKWP35e/huf8twK8WDt3zWLEdBv9xyIIDEdu5qK0UD2T2dewl7lXT57QR2xcZSq8pUSysICFtWrteIYym0rrN6KbRdBqPNCBSQ3TfaZlNSwKyM5r6RxPhOORmCTi44G30dipISWcx0IJhRRcM/hNQWTPCyfPwx12Oqhulb+qJc/W08/YyZQcul6oSKpEZXkZGqROsQUbEZ0QkJKCLSQHHS8g2dyGv6dMzrou2Z6SmxG7UhGFgNhOcXKbfZoau8QD4QA34sFO/2ASs83Hb3690bmL+XKUH+r7VlyoFSntCF5i0Ei1cAPexPB2MxHBYWvAHRAiHEtKMWnrmzK8VoFJT/AwXbyVYQtFy24cxQ8a+A2CUaBHbTS/BVftWeLcbX9pD+stnpvqCooeOWVMP6RKsISQVeNBwYCqoEsVfaSvFese9iUarvsqRxkZApYB2WYyzd4YrM3MyTq34a/SRKgKMAVAjMPf+Y5DtSM9CPHBsofQn05+3E+fKaUsppdsTmVFSvgc+jxV97uge0arxzcnzsdGstx4SJqXfCzAMWLMJES38ztCoKrL3Y+/1OwFVAhvphGLMBRd2QggMHZsvVK8A2yurNwpVbxDXyuInVao+mMhsUqe1oeXbfKgyp4MxmiRECI8Pci7BxuAt42a3eDbktg6ogWjoxKOrspx4e9F+ECUAPliPiPUcGPv2g1GjVYa2Fk/sW4E7hEOUIeSfNQ99Fqb8IgMi4x4cyYWdaDk8CRyvwGwdSrPZcxrwlW8WVnieQHhYY2hgggKVcD5biwuEE+hV7NitXIgONTUaRYEANFDxaEnqCUxNjuDBebVgpG4I/mrI5skQ/EPeURQWbYcmR8UJt5A4VxY9U8vm/0ux3Dp2uXvamjW7D+01mbDYIiDMUJzY87phz+lFQDThma478Mfg9RBIBD/lvsQ91q0oSWkAyw1VBIrCYFPHL/B44Jd6X05u17wUBGuzQfH5BrEdvHQjZJKEwgIruHArhEAtVNYIRhmqASNBAzqP50MFQ+0mcyrpXD2zaC+Zcvhi+URsqTxq2QzJAfg67BAMCiglGN6ltWT0w57bA5ZXoltCyzKnfa7IDJQID6oS/TkryPrnmuZXcEQqiXrqdJNRckWrd42ci9dDMJoh2UrAB2rBh1tjHBnw2NDbkIlDaqG47I1dRt3kf629uW6hdHjqePtIO4PkCA+GUIRD2gQBg0kGM8xbnEkEZ5T0LKh95AgHVeJ0MLLM6DIKyyJgMeAJ2y3Yq84eMkspIvWN+neWKOi6dh1UzgbRPgeC5yA4MuS9AaGexgwEu+x4UVlU8/Sbr83QAf1l3c+3XB6pWjYeoBHjFAj4DVBkogPSukMsR4e8RgFF1QAQKArRi1eNGq3ZeCr5VtQKsX1+rfzRyiCN1k/ZhQdKPoDC2NDdkA9HQfXwduDgVNqqChAOG7EC5U9/9Z8rH9CtfLL2p8tmSSe2TAiQ3ncnCAd5SJHxz2TKMnjVcQM+NM8f04zS3QOlt08fPzr/CeSbmxAJGOBzp+il1miSRQ7tVYXYJp5DH7Xeled5+Qa3Dkhrztd+XiNaaGhiBeppC5LEIBLmdW+NJonlsN86E8+lrICXGbtcVMPhwZou19iDo/PXQxF5hPvM0K762hVlNPW7UuF1pWFdeEXfR+88lqKND85g59orj5RKzedO1EvD+ZtIJt4WFiNV9qGdS8XXxhL0MPaEVMqdXVC90T2yvWwj5mXVwHMqG9aMfphTY88pLfG0VxVgu68MIc5Sef8b710yAtDna69cPU1qfiUh62dgOspNwUOWe9DGRM+ZRGmKtw62Xieuzq5Ceckn6D6ZCXNaAAZ7CLwp1jthrwnHvpuBfXIRvcZY+3Tpa1V6n3vQQ7RiAXe409/nUPosiU5iLL4QMaCeycFxbjK+4Gehkp8xpkoGKubKNdjgfwP9ioA8iweqyMKW1acDMaX64yaDzpocrHbdhg227YqBKMvyXju1YwQg7cvuNVfcXyy3nJ32J4AAMeFz4Tzs4mejgclBO5sCCoJ0tR9TVTeWipXIUz2YLrfoffMBsmb1InlSNwLdVljSYvveWqJ49OtbYGZlepehMpyXnZdKKvbop+2IXUwrKpjDHR93OdTeicVLgi6VwUJ7t89ijK4sQ2HP6dGrDm2PhLotetiNpgPVZXi741I8aN0t80R9Pv/VU4P9kJi0VLnm8iU5cvsOAu1Y//8jLZMlF3SBN0ZrRNFnBG8RRxza2utYf3syDjWVoIjV30Z8kzc7aR6579BgYRl30tvXLH7rPLn+7h8bjlZ5mFP9MDt8EMxD13lt4lpb2ZQc0qegnTeyyKOv2QE5FO3OSgzvFjjporyX6qKNwdMU/6UxpWTfmsuOFCrtZT8WKMKqyJkdbfSPpn5nql4XamMamN5GB0TvUK4KE6HbTqS5ma+eahgtO2ZY9fx2TlKtVziZp3Zl/FigUiZ3wOIYWZ/52pLR35oOU6oPtuw+dNdl6QfsAHmYlMZcEpiXsak6tnQY70bWubrUepjkNJTKTbGv8s8SSlOaD5Z0LwhL4XWmQvSa42rWrgf7+Fn7byVVV5KX6mLbTWcKueEa6etz+M+OphwqlZtmnSUME1bjJyb6vOmm8tc3PvrCeMIJZTLt5zBb1i59tUxuvDeRm+14RscbD1IB9Uo6ZnHRfp2XsX4489Ujy8eT08YTAjSg6Plf333p9HDLpzPlpnEvg4kYH83TrZrxcugy7IkU4SnrdszlW6AS5iOzndzu2FAbexmKY2RCgDR5zVsfrFm2YSrc92cqveNe2xMF9pk4HZvFMmQwflxrqMZFXKub49R1+ZtOne5hJaZpwoAG1GpXjhf/YXuxTK37pyLFPZSGErM7JleYCPVGRN7kreaXsp45OnY7aAwN3xvQcH1b1y65VabMwzMU5zQ79bMKmLHLm2GCEXC0jUkVRSLUF6hdW62c8n7WyzXHfsianBVAg16rqGCOerYt+E4tuOIbviR3suK+cBp1Zdpp0GRVRfZl4/XHD7AzTpnYSFWB0vHlzS2TDiz/cPn4vx2YAML/AxiD3K8wfl5pAAAAAElFTkSuQmCC"},osHv:function(Be,ee,v){(function(Z){Z(v("VrN/"))})(function(Z){"use strict";var Q=Z.Pos;function I(d,f){return d.line-f.line||d.ch-f.ch}var k="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",_=k+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",O=new RegExp("<(/?)(["+k+"]["+_+"]*)","g");function M(d,f,o,u){this.line=f,this.ch=o,this.cm=d,this.text=d.getLine(f),this.min=u?Math.max(u.from,d.firstLine()):d.firstLine(),this.max=u?Math.min(u.to-1,d.lastLine()):d.lastLine()}function T(d,f){var o=d.cm.getTokenTypeAt(Q(d.line,f));return o&&/\btag\b/.test(o)}function n(d){return d.line>=d.max?void 0:(d.ch=0,d.text=d.cm.getLine(++d.line),!0)}function p(d){return d.line<=d.min?void 0:(d.text=d.cm.getLine(--d.line),d.ch=d.text.length,!0)}function a(d){for(;;){var f=d.text.indexOf(">",d.ch);if(f==-1){if(n(d))continue;return}if(!T(d,f+1)){d.ch=f+1;continue}var o=d.text.lastIndexOf("/",f),u=o>-1&&!/\S/.test(d.text.slice(o+1,f));return d.ch=f+1,u?"selfClose":"regular"}}function t(d){for(;;){var f=d.ch?d.text.lastIndexOf("<",d.ch-1):-1;if(f==-1){if(p(d))continue;return}if(!T(d,f+1)){d.ch=f;continue}O.lastIndex=f,d.ch=f;var o=O.exec(d.text);if(o&&o.index==f)return o}}function A(d){for(;;){O.lastIndex=d.ch;var f=O.exec(d.text);if(!f){if(n(d))continue;return}if(!T(d,f.index+1)){d.ch=f.index+1;continue}return d.ch=f.index+f[0].length,f}}function l(d){for(;;){var f=d.ch?d.text.lastIndexOf(">",d.ch-1):-1;if(f==-1){if(p(d))continue;return}if(!T(d,f+1)){d.ch=f;continue}var o=d.text.lastIndexOf("/",f),u=o>-1&&!/\S/.test(d.text.slice(o+1,f));return d.ch=f+1,u?"selfClose":"regular"}}function i(d,f){for(var o=[];;){var u=A(d),E,R=d.line,w=d.ch-(u?u[0].length:0);if(!u||!(E=a(d)))return;if(E=="selfClose")continue;if(u[1]){for(var P=o.length-1;P>=0;--P)if(o[P]==u[2]){o.length=P;break}if(P<0&&(!f||f==u[2]))return{tag:u[2],from:Q(R,w),to:Q(d.line,d.ch)}}else o.push(u[2])}}function c(d,f){for(var o=[];;){var u=l(d);if(!u)return;if(u=="selfClose"){t(d);continue}var E=d.line,R=d.ch,w=t(d);if(!w)return;if(w[1])o.push(w[2]);else{for(var P=o.length-1;P>=0;--P)if(o[P]==w[2]){o.length=P;break}if(P<0&&(!f||f==w[2]))return{tag:w[2],from:Q(d.line,d.ch),to:Q(E,R)}}}}Z.registerHelper("fold","xml",function(d,f){for(var o=new M(d,f.line,0);;){var u=A(o);if(!u||o.line!=f.line)return;var E=a(o);if(!E)return;if(!u[1]&&E!="selfClose"){var R=Q(o.line,o.ch),w=i(o,u[2]);return w&&I(w.from,R)>0?{from:R,to:w.from}:null}}}),Z.findMatchingTag=function(d,f,o){var u=new M(d,f.line,f.ch,o);if(u.text.indexOf(">")==-1&&u.text.indexOf("<")==-1)return;var E=a(u),R=E&&Q(u.line,u.ch),w=E&&t(u);if(!E||!w||I(u,f)>0)return;var P={from:Q(u.line,u.ch),to:R,tag:w[2]};return E=="selfClose"?{open:P,close:null,at:"open"}:w[1]?{open:c(u,w[2]),close:P,at:"close"}:(u=new M(d,R.line,R.ch,o),{open:P,close:i(u,w[2]),at:"open"})},Z.findEnclosingTag=function(d,f,o,u){for(var E=new M(d,f.line,f.ch,o);;){var R=c(E,u);if(!R)break;var w=new M(d,f.line,f.ch,o),P=i(w,R.tag);if(P)return{open:R,close:P}}},Z.scanForClosingTag=function(d,f,o,u){var E=new M(d,f.line,f.ch,u?{from:0,to:u}:null);return i(E,o)}})},p5ED:function(Be,ee,v){"use strict";var Z=v("+L6B"),Q=v("2/Rp"),I=v("5Dmo"),k=v("3S7+"),_=v("k1fw"),O=v("9og8"),M=v("tJVT"),T=v("WmNS"),n=v.n(T),p=v("q1tI"),a=v.n(p),t=v("vHTk"),A=v.n(t),l=v("yEEn"),i=v("ZW9T"),c=v("1vsH"),d=v("V0Rq"),f=v("m3rI");ee.a=function(o){var u,E,R,w,P,C,b,s=o.editOffice,h=s===void 0?"view":s,m=o.data,x=o.theme,g=o.type,y=o.filename,U=o.monacoEditor,N=o.className,S=o.style,H=o.close,F=o.onClose,B=o.hasMask,z=o.disabledDownload,K=Object(p.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),$=Object(M.a)(K,2),te=$[0],fe=$[1],Ae=Object(p.useState)(""),ce=Object(M.a)(Ae,2),ie=ce[0],ye=ce[1],le=Object(p.useState)(),me=Object(M.a)(le,2),se=me[0],ge=me[1],ae=window.ENV==="build"?"/react/build":"",pe=f.a.PROXY_SERVER||location.origin,Me,xe=1024*1024,Ke=10*xe,et=Object(p.useRef)();(u=m)!==null&&u!==void 0&&u.startsWith("/api")&&g!=="txt"&&(m=f.a.API_SERVER+m),g==="office"&&(Me=Object(c.T)(m).filesize,Me>Ke&&(g="other")),y&&U&&(U.filename=y),Object(p.useEffect)(function(){var Ne,ct,ft=(Ne=document.cookie)===null||Ne===void 0||((ct=Ne.replace(/\s/g,""))===null||ct===void 0)?void 0:ct.split(";");ft==null||ft.map(function(Ot){var dt=Ot.split("=");dt[0]==="_educoder_session"&&ye(dt[1])})},[]),Object(p.useEffect)(function(){g==="office"&&he()},[g,m]);var he=function(){var Ne=Object(O.a)(n.a.mark(function ct(){var ft,Ot,dt;return n.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:return console.log("data:",m),ft=m,m.startsWith("http")||(ft=location.origin+ft),Ot=new URL(ft).pathname.split("/").pop(),jt.next=6,Object(d.V)({attachment_id:Ot});case 6:dt=jt.sent,ge(dt);case 8:case"end":return jt.stop()}},ct)}));return function(){return Ne.apply(this,arguments)}}(),Se=function(){if(m.startsWith("http")||m.startsWith("blob:")){Ue();return}Object(c.z)(y||"educoder",m,y)},Ue=function(){Object(c.x)(y||"educoder",decodeURIComponent(m))};return a.a.createElement("div",{style:Object(_.a)({},S||{}),className:"".concat(B&&A.a.bgBlack," ").concat(g?A.a.wrp:"hide")},H&&a.a.createElement("div",{className:A.a.close,ref:et},!z&&a.a.createElement(k.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return et.current}},a.a.createElement("span",{onClick:Ue},a.a.createElement("i",{className:"icon-quxiaozhiding"}))),a.a.createElement(k.a,{title:"\u5173\u95ED",getPopupContainer:function(){return et.current}},a.a.createElement("span",{className:"",onClick:F},a.a.createElement("i",{className:"icon-guanbi1"})))),a.a.createElement("div",{className:"".concat(A.a[N]," ").concat(N," ").concat(A.a.monaco," ").concat(g==="txt"?"show":"hide")},g==="txt"&&a.a.createElement(i.b,U)),g==="audio"&&a.a.createElement("audio",{src:"".concat(((E=m)===null||E===void 0?void 0:E.indexOf("http://"))>-1||((R=m)===null||R===void 0?void 0:R.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(m),autoPlay:!0}),g==="video"&&a.a.createElement(a.a.Fragment,null,((w=m)===null||w===void 0?void 0:w.indexOf("http"))>-1?a.a.createElement("video",{controls:!0,src:"".concat(m),autoPlay:!0}):a.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(m),autoPlay:!0})),g==="office"&&se&&a.a.createElement("iframe",{src:"".concat(ae,"/office.html?key=").concat(se.key,"&url=").concat(pe+se.url,"&callbackUrl=").concat(pe+se.callbackUrl,"&fileType=").concat(se.fileType,"&title=").concat(se.title,"&model=").concat(h,"&officeServer=").concat(f.a.OFFICE_SERVER,"&disabledDownload=").concat(!!z)}),g==="html"&&a.a.createElement("iframe",{src:m+"&disposition=inline"}),g==="pdf"&&a.a.createElement("iframe",{src:"".concat(ae,"/js/pdfview/index.html?url=").concat(m,"&disabledDownload=").concat(!!z)}),g==="image"&&a.a.createElement("img",{src:"".concat(((P=m)===null||P===void 0?void 0:P.indexOf("http://"))>-1||((C=m)===null||C===void 0?void 0:C.indexOf("https://"))>-1||(b=m)!==null&&b!==void 0&&b.startsWith("/api")?"":"data:image/png;base64,").concat(m)}),g==="other"&&a.a.createElement("div",null,a.a.createElement(Q.a,{type:"primary",size:"large",onClick:Se},a.a.createElement(l.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),g==="download"&&a.a.createElement(Q.a,{type:"primary",size:"large",onClick:Se},a.a.createElement(l.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(Be,ee,v){},pmY6:function(Be,ee,v){"use strict";v.d(ee,"h",function(){return p}),v.d(ee,"g",function(){return t}),v.d(ee,"f",function(){return A}),v.d(ee,"e",function(){return l}),v.d(ee,"i",function(){return i}),v.d(ee,"b",function(){return c}),v.d(ee,"a",function(){return d}),v.d(ee,"d",function(){return f}),v.d(ee,"c",function(){return o});var Z=v("C/vA"),Q=v("JYp7");const I=!1;let k=null;function _(u){k=u}if(I){const u="__is_disposable_tracked__";_(new class{trackDisposable(E){const R=new Error("Potentially leaked disposable").stack;setTimeout(()=>{E[u]||console.log(R)},3e3)}setParent(E,R){if(E&&E!==d.None)try{E[u]=!0}catch(w){}}markAsDisposed(E){if(E&&E!==d.None)try{E[u]=!0}catch(R){}}markAsSingleton(E){}})}function O(u){return k==null||k.trackDisposable(u),u}function M(u){k==null||k.markAsDisposed(u)}function T(u,E){k==null||k.setParent(u,E)}function n(u,E){if(!k)return;for(const R of u)k.setParent(R,E)}function p(u){return k==null||k.markAsSingleton(u),u}class a extends Error{constructor(u){super(`Encountered errors while disposing of store. Errors: [${u.join(", ")}]`);this.errors=u}}function t(u){return typeof u.dispose=="function"&&u.dispose.length===0}function A(u){if(Q.a.is(u)){let E=[];for(const R of u)if(R)try{R.dispose()}catch(w){E.push(w)}if(E.length===1)throw E[0];if(E.length>1)throw new a(E);return Array.isArray(u)?[]:u}else if(u)return u.dispose(),u}function l(...u){const E=i(()=>A(u));return n(u,E),E}function i(u){const E=O({dispose:Object(Z.a)(()=>{M(E),u()})});return E}class c{constructor(){this._toDispose=new Set,this._isDisposed=!1,O(this)}dispose(){if(this._isDisposed)return;M(this),this._isDisposed=!0,this.clear()}clear(){try{A(this._toDispose.values())}finally{this._toDispose.clear()}}add(u){if(!u)return u;if(u===this)throw new Error("Cannot register a disposable on itself!");return T(u,this),this._isDisposed?c.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(u),u}}c.DISABLE_DISPOSED_WARNING=!1;class d{constructor(){this._store=new c,O(this),T(this._store,this)}dispose(){M(this),this._store.dispose()}_register(u){if(u===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(u)}}d.None=Object.freeze({dispose(){}});class f{constructor(){this._isDisposed=!1,O(this)}get value(){return this._isDisposed?void 0:this._value}set value(u){var E;if(this._isDisposed||u===this._value)return;(E=this._value)===null||E===void 0||E.dispose(),u&&T(u,this),this._value=u}clear(){this.value=void 0}dispose(){var u;this._isDisposed=!0,M(this),(u=this._value)===null||u===void 0||u.dispose(),this._value=void 0}clearAndLeak(){const u=this._value;return this._value=void 0,u&&T(u,null),u}}class o{constructor(u){this.object=u}dispose(){}}},psGv:function(Be,ee,v){var Z,Q;(function(){var I;(function(){"use strict";var M=[,,function(a){function t(i){this.__parent=i,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}t.prototype.clone_empty=function(){var i=new t(this.__parent);return i.set_indent(this.__indent_count,this.__alignment_count),i},t.prototype.item=function(i){return i<0?this.__items[this.__items.length+i]:this.__items[i]},t.prototype.has_match=function(i){for(var c=this.__items.length-1;c>=0;c--)if(this.__items[c].match(i))return!0;return!1},t.prototype.set_indent=function(i,c){this.is_empty()&&(this.__indent_count=i||0,this.__alignment_count=c||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var i=this.__parent.current_line;return i.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),i.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),i.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,i.__items[0]===" "&&(i.__items.splice(0,1),i.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return this.__items.length===0},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(i){this.__items.push(i);var c=i.lastIndexOf(`
`);c!==-1?this.__character_count=i.length-c:this.__character_count+=i.length},t.prototype.pop=function(){var i=null;return this.is_empty()||(i=this.__items.pop(),this.__character_count-=i.length),i},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var i="";return this.is_empty()?this.__parent.indent_empty_lines&&(i=this.__parent.get_indent_string(this.__indent_count)):(i=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),i+=this.__items.join("")),i};function A(i,c){this.__cache=[""],this.__indent_size=i.indent_size,this.__indent_string=i.indent_char,i.indent_with_tabs||(this.__indent_string=new Array(i.indent_size+1).join(i.indent_char)),c=c||"",i.indent_level>0&&(c=new Array(i.indent_level+1).join(this.__indent_string)),this.__base_string=c,this.__base_string_length=c.length}A.prototype.get_indent_size=function(i,c){var d=this.__base_string_length;return c=c||0,i<0&&(d=0),d+=i*this.__indent_size,d+=c,d},A.prototype.get_indent_string=function(i,c){var d=this.__base_string;return c=c||0,i<0&&(i=0,d=""),c+=i*this.__indent_size,this.__ensure_cache(c),d+=this.__cache[c],d},A.prototype.__ensure_cache=function(i){for(;i>=this.__cache.length;)this.__add_column()},A.prototype.__add_column=function(){var i=this.__cache.length,c=0,d="";this.__indent_size&&i>=this.__indent_size&&(c=Math.floor(i/this.__indent_size),i-=c*this.__indent_size,d=new Array(c+1).join(this.__indent_string)),i&&(d+=new Array(i+1).join(" ")),this.__cache.push(d)};function l(i,c){this.__indent_cache=new A(i,c),this.raw=!1,this._end_with_newline=i.end_with_newline,this.indent_size=i.indent_size,this.wrap_line_length=i.wrap_line_length,this.indent_empty_lines=i.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}l.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},l.prototype.get_line_number=function(){return this.__lines.length},l.prototype.get_indent_string=function(i,c){return this.__indent_cache.get_indent_string(i,c)},l.prototype.get_indent_size=function(i,c){return this.__indent_cache.get_indent_size(i,c)},l.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},l.prototype.add_new_line=function(i){return this.is_empty()||!i&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},l.prototype.get_code=function(i){this.trim(!0);var c=this.current_line.pop();c&&(c[c.length-1]===`
`&&(c=c.replace(/\n+$/g,"")),this.current_line.push(c)),this._end_with_newline&&this.__add_outputline();var d=this.__lines.join(`
`);return i!==`
`&&(d=d.replace(/[\n]/g,i)),d},l.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},l.prototype.set_indent=function(i,c){return i=i||0,c=c||0,this.next_line.set_indent(i,c),this.__lines.length>1?(this.current_line.set_indent(i,c),!0):(this.current_line.set_indent(),!1)},l.prototype.add_raw_token=function(i){for(var c=0;c<i.newlines;c++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(i.whitespace_before),this.current_line.push(i.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},l.prototype.add_token=function(i){this.__add_space_before_token(),this.current_line.push(i),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},l.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},l.prototype.remove_indent=function(i){for(var c=this.__lines.length;i<c;)this.__lines[i]._remove_indent(),i++;this.current_line._remove_wrap_indent()},l.prototype.trim=function(i){for(i=i===void 0?!1:i,this.current_line.trim();i&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},l.prototype.just_added_newline=function(){return this.current_line.is_empty()},l.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},l.prototype.ensure_empty_line_above=function(i,c){for(var d=this.__lines.length-2;d>=0;){var f=this.__lines[d];if(f.is_empty())break;if(f.item(0).indexOf(i)!==0&&f.item(-1)!==c){this.__lines.splice(d+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}d--}},a.exports.Output=l},function(a){function t(A,l,i,c){this.type=A,this.text=l,this.comments_before=null,this.newlines=i||0,this.whitespace_before=c||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}a.exports.Token=t},,,function(a){function t(i,c){this.raw_options=A(i,c),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}t.prototype._get_array=function(i,c){var d=this.raw_options[i],f=c||[];return typeof d=="object"?d!==null&&typeof d.concat=="function"&&(f=d.concat()):typeof d=="string"&&(f=d.split(/[^a-zA-Z0-9_\/\-]+/)),f},t.prototype._get_boolean=function(i,c){var d=this.raw_options[i],f=d===void 0?!!c:!!d;return f},t.prototype._get_characters=function(i,c){var d=this.raw_options[i],f=c||"";return typeof d=="string"&&(f=d.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),f},t.prototype._get_number=function(i,c){var d=this.raw_options[i];c=parseInt(c,10),isNaN(c)&&(c=0);var f=parseInt(d,10);return isNaN(f)&&(f=c),f},t.prototype._get_selection=function(i,c,d){var f=this._get_selection_list(i,c,d);if(f.length!==1)throw new Error("Invalid Option Value: The option '"+i+`' can only be one of the following values:
`+c+`
You passed in: '`+this.raw_options[i]+"'");return f[0]},t.prototype._get_selection_list=function(i,c,d){if(!c||c.length===0)throw new Error("Selection list cannot be empty.");if(d=d||[c[0]],!this._is_valid_selection(d,c))throw new Error("Invalid Default Value!");var f=this._get_array(i,d);if(!this._is_valid_selection(f,c))throw new Error("Invalid Option Value: The option '"+i+`' can contain only the following values:
`+c+`
You passed in: '`+this.raw_options[i]+"'");return f},t.prototype._is_valid_selection=function(i,c){return i.length&&c.length&&!i.some(function(d){return c.indexOf(d)===-1})};function A(i,c){var d={};i=l(i);var f;for(f in i)f!==c&&(d[f]=i[f]);if(c&&i[c])for(f in i[c])d[f]=i[c][f];return d}function l(i){var c={},d;for(d in i){var f=d.replace(/-/g,"_");c[f]=i[d]}return c}a.exports.Options=t,a.exports.normalizeOpts=l,a.exports.mergeOpts=A},,function(a){var t=RegExp.prototype.hasOwnProperty("sticky");function A(l){this.__input=l||"",this.__input_length=this.__input.length,this.__position=0}A.prototype.restart=function(){this.__position=0},A.prototype.back=function(){this.__position>0&&(this.__position-=1)},A.prototype.hasNext=function(){return this.__position<this.__input_length},A.prototype.next=function(){var l=null;return this.hasNext()&&(l=this.__input.charAt(this.__position),this.__position+=1),l},A.prototype.peek=function(l){var i=null;return l=l||0,l+=this.__position,l>=0&&l<this.__input_length&&(i=this.__input.charAt(l)),i},A.prototype.__match=function(l,i){l.lastIndex=i;var c=l.exec(this.__input);return c&&!(t&&l.sticky)&&(c.index!==i&&(c=null)),c},A.prototype.test=function(l,i){return i=i||0,i+=this.__position,i>=0&&i<this.__input_length?!!this.__match(l,i):!1},A.prototype.testChar=function(l,i){var c=this.peek(i);return l.lastIndex=0,c!==null&&l.test(c)},A.prototype.match=function(l){var i=this.__match(l,this.__position);return i?this.__position+=i[0].length:i=null,i},A.prototype.read=function(l,i,c){var d="",f;return l&&(f=this.match(l),f&&(d+=f[0])),i&&(f||!l)&&(d+=this.readUntil(i,c)),d},A.prototype.readUntil=function(l,i){var c="",d=this.__position;l.lastIndex=this.__position;var f=l.exec(this.__input);return f?(d=f.index,i&&(d+=f[0].length)):d=this.__input_length,c=this.__input.substring(this.__position,d),this.__position=d,c},A.prototype.readUntilAfter=function(l){return this.readUntil(l,!0)},A.prototype.get_regexp=function(l,i){var c=null,d="g";return i&&t&&(d="y"),typeof l=="string"&&l!==""?c=new RegExp(l,d):l&&(c=new RegExp(l.source,d)),c},A.prototype.get_literal_regexp=function(l){return RegExp(l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},A.prototype.peekUntilAfter=function(l){var i=this.__position,c=this.readUntilAfter(l);return this.__position=i,c},A.prototype.lookBack=function(l){var i=this.__position-1;return i>=l.length&&this.__input.substring(i-l.length,i).toLowerCase()===l},a.exports.InputScanner=A},function(a,t,A){var l=A(8).InputScanner,i=A(3).Token,c=A(10).TokenStream,d=A(11).WhitespacePattern,f={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},o=function(u,E){this._input=new l(u),this._options=E||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new d(this._input)};o.prototype.tokenize=function(){this._input.restart(),this.__tokens=new c,this._reset();for(var u,E=new i(f.START,""),R=null,w=[],P=new c;E.type!==f.EOF;){for(u=this._get_next_token(E,R);this._is_comment(u);)P.add(u),u=this._get_next_token(E,R);P.isEmpty()||(u.comments_before=P,P=new c),u.parent=R,this._is_opening(u)?(w.push(R),R=u):R&&this._is_closing(u,R)&&(u.opened=R,R.closed=u,R=w.pop(),u.parent=R),u.previous=E,E.next=u,this.__tokens.add(u),E=u}return this.__tokens},o.prototype._is_first_token=function(){return this.__tokens.isEmpty()},o.prototype._reset=function(){},o.prototype._get_next_token=function(u,E){this._readWhitespace();var R=this._input.read(/.+/g);return R?this._create_token(f.RAW,R):this._create_token(f.EOF,"")},o.prototype._is_comment=function(u){return!1},o.prototype._is_opening=function(u){return!1},o.prototype._is_closing=function(u,E){return!1},o.prototype._create_token=function(u,E){var R=new i(u,E,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return R},o.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},a.exports.Tokenizer=o,a.exports.TOKEN=f},function(a){function t(A){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=A}t.prototype.restart=function(){this.__position=0},t.prototype.isEmpty=function(){return this.__tokens_length===0},t.prototype.hasNext=function(){return this.__position<this.__tokens_length},t.prototype.next=function(){var A=null;return this.hasNext()&&(A=this.__tokens[this.__position],this.__position+=1),A},t.prototype.peek=function(A){var l=null;return A=A||0,A+=this.__position,A>=0&&A<this.__tokens_length&&(l=this.__tokens[A]),l},t.prototype.add=function(A){this.__parent_token&&(A.parent=this.__parent_token),this.__tokens.push(A),this.__tokens_length+=1},a.exports.TokenStream=t},function(a,t,A){var l=A(12).Pattern;function i(c,d){l.call(this,c,d),d?this._line_regexp=this._input.get_regexp(d._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}i.prototype=new l,i.prototype.__set_whitespace_patterns=function(c,d){c+="\\t ",d+="\\n\\r",this._match_pattern=this._input.get_regexp("["+c+d+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+d+"]")},i.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var c=this._input.read(this._match_pattern);if(c===" ")this.whitespace_before_token=" ";else if(c){var d=this.__split(this._newline_regexp,c);this.newline_count=d.length-1,this.whitespace_before_token=d[this.newline_count]}return c},i.prototype.matching=function(c,d){var f=this._create();return f.__set_whitespace_patterns(c,d),f._update(),f},i.prototype._create=function(){return new i(this._input,this)},i.prototype.__split=function(c,d){c.lastIndex=0;for(var f=0,o=[],u=c.exec(d);u;)o.push(d.substring(f,u.index)),f=u.index+u[0].length,u=c.exec(d);return f<d.length?o.push(d.substring(f,d.length)):o.push(""),o},a.exports.WhitespacePattern=i},function(a){function t(A,l){this._input=A,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,l&&(this._starting_pattern=this._input.get_regexp(l._starting_pattern,!0),this._match_pattern=this._input.get_regexp(l._match_pattern,!0),this._until_pattern=this._input.get_regexp(l._until_pattern),this._until_after=l._until_after)}t.prototype.read=function(){var A=this._input.read(this._starting_pattern);return(!this._starting_pattern||A)&&(A+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),A},t.prototype.read_match=function(){return this._input.match(this._match_pattern)},t.prototype.until_after=function(A){var l=this._create();return l._until_after=!0,l._until_pattern=this._input.get_regexp(A),l._update(),l},t.prototype.until=function(A){var l=this._create();return l._until_after=!1,l._until_pattern=this._input.get_regexp(A),l._update(),l},t.prototype.starting_with=function(A){var l=this._create();return l._starting_pattern=this._input.get_regexp(A,!0),l._update(),l},t.prototype.matching=function(A){var l=this._create();return l._match_pattern=this._input.get_regexp(A,!0),l._update(),l},t.prototype._create=function(){return new t(this._input,this)},t.prototype._update=function(){},a.exports.Pattern=t},function(a){function t(A,l){A=typeof A=="string"?A:A.source,l=typeof l=="string"?l:l.source,this.__directives_block_pattern=new RegExp(A+/ beautify( \w+[:]\w+)+ /.source+l,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(A+/\sbeautify\signore:end\s/.source+l,"g")}t.prototype.get_directives=function(A){if(!A.match(this.__directives_block_pattern))return null;var l={};this.__directive_pattern.lastIndex=0;for(var i=this.__directive_pattern.exec(A);i;)l[i[1]]=i[2],i=this.__directive_pattern.exec(A);return l},t.prototype.readIgnored=function(A){return A.readUntilAfter(this.__directives_end_ignore_pattern)},a.exports.Directives=t},function(a,t,A){var l=A(12).Pattern,i={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function c(d,f){l.call(this,d,f),this.__template_pattern=null,this._disabled=Object.assign({},i),this._excluded=Object.assign({},i),f&&(this.__template_pattern=this._input.get_regexp(f.__template_pattern),this._excluded=Object.assign(this._excluded,f._excluded),this._disabled=Object.assign(this._disabled,f._disabled));var o=new l(d);this.__patterns={handlebars_comment:o.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:o.starting_with(/{{{/).until_after(/}}}/),handlebars:o.starting_with(/{{/).until_after(/}}/),php:o.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:o.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:o.starting_with(/{%/).until_after(/%}/),django_value:o.starting_with(/{{/).until_after(/}}/),django_comment:o.starting_with(/{#/).until_after(/#}/),smarty:o.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:o.starting_with(/{\*/).until_after(/\*}/),smarty_literal:o.starting_with(/{literal}/).until_after(/{\/literal}/)}}c.prototype=new l,c.prototype._create=function(){return new c(this._input,this)},c.prototype._update=function(){this.__set_templated_pattern()},c.prototype.disable=function(d){var f=this._create();return f._disabled[d]=!0,f._update(),f},c.prototype.read_options=function(d){var f=this._create();for(var o in i)f._disabled[o]=d.templating.indexOf(o)===-1;return f._update(),f},c.prototype.exclude=function(d){var f=this._create();return f._excluded[d]=!0,f._update(),f},c.prototype.read=function(){var d="";this._match_pattern?d=this._input.read(this._starting_pattern):d=this._input.read(this._starting_pattern,this.__template_pattern);for(var f=this._read_template();f;)this._match_pattern?f+=this._input.read(this._match_pattern):f+=this._input.readUntil(this.__template_pattern),d+=f,f=this._read_template();return this._until_after&&(d+=this._input.readUntilAfter(this._until_pattern)),d},c.prototype.__set_templated_pattern=function(){var d=[];this._disabled.php||d.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||d.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||d.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(d.push(this.__patterns.django._starting_pattern.source),d.push(this.__patterns.django_value._starting_pattern.source),d.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||d.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&d.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+d.join("|")+")")},c.prototype._read_template=function(){var d="",f=this._input.peek();if(f==="<"){var o=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&o==="?"&&(d=d||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&o==="%"&&(d=d||this.__patterns.erb.read())}else f==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(d=d||this.__patterns.handlebars_comment.read(),d=d||this.__patterns.handlebars_unescaped.read(),d=d||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(d=d||this.__patterns.django_value.read()),this._excluded.django||(d=d||this.__patterns.django_comment.read(),d=d||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(d=d||this.__patterns.smarty_comment.read(),d=d||this.__patterns.smarty_literal.read(),d=d||this.__patterns.smarty.read()));return d},a.exports.TemplatablePattern=c},,,,function(a,t,A){var l=A(19).Beautifier,i=A(20).Options;function c(d,f,o,u){var E=new l(d,f,o,u);return E.beautify()}a.exports=c,a.exports.defaultOptions=function(){return new i}},function(a,t,A){var l=A(20).Options,i=A(2).Output,c=A(21).Tokenizer,d=A(21).TOKEN,f=/\r\n|[\r\n]/,o=/\r\n|[\r\n]/g,u=function(x,g){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=x.max_preserve_newlines,this.preserve_newlines=x.preserve_newlines,this._output=new i(x,g)};u.prototype.current_line_has_match=function(x){return this._output.current_line.has_match(x)},u.prototype.set_space_before_token=function(x,g){this._output.space_before_token=x,this._output.non_breaking_space=g},u.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},u.prototype.add_raw_token=function(x){this._output.add_raw_token(x)},u.prototype.print_preserved_newlines=function(x){var g=0;x.type!==d.TEXT&&x.previous.type!==d.TEXT&&(g=x.newlines?1:0),this.preserve_newlines&&(g=x.newlines<this.max_preserve_newlines+1?x.newlines:this.max_preserve_newlines+1);for(var y=0;y<g;y++)this.print_newline(y>0);return g!==0},u.prototype.traverse_whitespace=function(x){return x.whitespace_before||x.newlines?(this.print_preserved_newlines(x)||(this._output.space_before_token=!0),!0):!1},u.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},u.prototype.print_newline=function(x){this._output.add_new_line(x)},u.prototype.print_token=function(x){x.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(x.text))},u.prototype.indent=function(){this.indent_level++},u.prototype.get_full_indent=function(x){return x=this.indent_level+(x||0),x<1?"":this._output.get_indent_string(x)};var E=function(x){for(var g=null,y=x.next;y.type!==d.EOF&&x.closed!==y;){if(y.type===d.ATTRIBUTE&&y.text==="type"){y.next&&y.next.type===d.EQUALS&&y.next.next&&y.next.next.type===d.VALUE&&(g=y.next.next.text);break}y=y.next}return g},R=function(x,g){var y=null,U=null;return g.closed?(x==="script"?y="text/javascript":x==="style"&&(y="text/css"),y=E(g)||y,y.search("text/css")>-1?U="css":y.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?U="javascript":y.search(/(text|application|dojo)\/(x-)?(html)/)>-1?U="html":y.search(/test\/null/)>-1&&(U="null"),U):null};function w(x,g){return g.indexOf(x)!==-1}function P(x,g,y){this.parent=x||null,this.tag=g?g.tag_name:"",this.indent_level=y||0,this.parser_token=g||null}function C(x){this._printer=x,this._current_frame=null}C.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},C.prototype.record_tag=function(x){var g=new P(this._current_frame,x,this._printer.indent_level);this._current_frame=g},C.prototype._try_pop_frame=function(x){var g=null;return x&&(g=x.parser_token,this._printer.indent_level=x.indent_level,this._current_frame=x.parent),g},C.prototype._get_frame=function(x,g){for(var y=this._current_frame;y&&!(x.indexOf(y.tag)!==-1);){if(g&&g.indexOf(y.tag)!==-1){y=null;break}y=y.parent}return y},C.prototype.try_pop=function(x,g){var y=this._get_frame([x],g);return this._try_pop_frame(y)},C.prototype.indent_to_tag=function(x){var g=this._get_frame(x);g&&(this._printer.indent_level=g.indent_level)};function b(x,g,y,U){this._source_text=x||"",g=g||{},this._js_beautify=y,this._css_beautify=U,this._tag_stack=null;var N=new l(g,"html");this._options=N,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,"force".length)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,"preserve".length)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}b.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var x=this._source_text,g=this._options.eol;this._options.eol==="auto"&&(g=`
`,x&&f.test(x)&&(g=x.match(f)[0])),x=x.replace(o,`
`);var y=x.match(/^[\t ]*/)[0],U={text:"",type:""},N=new s,S=new u(this._options,y),H=new c(x,this._options).tokenize();this._tag_stack=new C(S);for(var F=null,B=H.next();B.type!==d.EOF;)B.type===d.TAG_OPEN||B.type===d.COMMENT?(F=this._handle_tag_open(S,B,N,U),N=F):B.type===d.ATTRIBUTE||B.type===d.EQUALS||B.type===d.VALUE||B.type===d.TEXT&&!N.tag_complete?F=this._handle_inside_tag(S,B,N,H):B.type===d.TAG_CLOSE?F=this._handle_tag_close(S,B,N):B.type===d.TEXT?F=this._handle_text(S,B,N):S.add_raw_token(B),U=F,B=H.next();var z=S._output.get_code(g);return z},b.prototype._handle_tag_close=function(x,g,y){var U={text:g.text,type:g.type};return x.alignment_size=0,y.tag_complete=!0,x.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),y.is_unformatted?x.add_raw_token(g):(y.tag_start_char==="<"&&(x.set_space_before_token(g.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&y.has_wrapped_attrs&&x.print_newline(!1)),x.print_token(g)),y.indent_content&&!(y.is_unformatted||y.is_content_unformatted)&&(x.indent(),y.indent_content=!1),!y.is_inline_element&&!(y.is_unformatted||y.is_content_unformatted)&&x.set_wrap_point(),U},b.prototype._handle_inside_tag=function(x,g,y,U){var N=y.has_wrapped_attrs,S={text:g.text,type:g.type};if(x.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),y.is_unformatted)x.add_raw_token(g);else if(y.tag_start_char==="{"&&g.type===d.TEXT)x.print_preserved_newlines(g)?(g.newlines=0,x.add_raw_token(g)):x.print_token(g);else{if(g.type===d.ATTRIBUTE?(x.set_space_before_token(!0),y.attr_count+=1):(g.type===d.EQUALS||g.type===d.VALUE&&g.previous.type===d.EQUALS)&&x.set_space_before_token(!1),g.type===d.ATTRIBUTE&&y.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(x.traverse_whitespace(g),N=N||g.newlines!==0),this._is_wrap_attributes_force)){var H=y.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&y.attr_count===1){var F=!0,B=0,z;do{if(z=U.peek(B),z.type===d.ATTRIBUTE){F=!1;break}B+=1}while(B<4&&z.type!==d.EOF&&z.type!==d.TAG_CLOSE);H=!F}H&&(x.print_newline(!1),N=!0)}x.print_token(g),N=N||x.previous_token_wrapped(),y.has_wrapped_attrs=N}return S},b.prototype._handle_text=function(x,g,y){var U={text:g.text,type:"TK_CONTENT"};return y.custom_beautifier_name?this._print_custom_beatifier_text(x,g,y):y.is_unformatted||y.is_content_unformatted?x.add_raw_token(g):(x.traverse_whitespace(g),x.print_token(g)),U},b.prototype._print_custom_beatifier_text=function(x,g,y){var U=this;if(g.text!==""){var N=g.text,S,H=1,F="",B="";y.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?S=this._js_beautify:y.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?S=this._css_beautify:y.custom_beautifier_name==="html"&&(S=function(Ae,ce){var ie=new b(Ae,ce,U._js_beautify,U._css_beautify);return ie.beautify()}),this._options.indent_scripts==="keep"?H=0:this._options.indent_scripts==="separate"&&(H=-x.indent_level);var z=x.get_full_indent(H);if(N=N.replace(/\n[ \t]*$/,""),y.custom_beautifier_name!=="html"&&N[0]==="<"&&N.match(/^(<!--|<!\[CDATA\[)/)){var K=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(N);if(!K){x.add_raw_token(g);return}F=z+K[1]+`
`,N=K[4],K[5]&&(B=z+K[5]),N=N.replace(/\n[ \t]*$/,""),(K[2]||K[3].indexOf(`
`)!==-1)&&(K=K[3].match(/[ \t]+$/),K&&(g.whitespace_before=K[0]))}if(N)if(S){var $=function(){this.eol=`
`};$.prototype=this._options.raw_options;var te=new $;N=S(z+N,te)}else{var fe=g.whitespace_before;fe&&(N=N.replace(new RegExp(`
(`+fe+")?","g"),`
`)),N=z+N.replace(/\n/g,`
`+z)}F&&(N?N=F+N+`
`+B:N=F+B),x.print_newline(!1),N&&(g.text=N,g.whitespace_before="",g.newlines=0,x.add_raw_token(g),x.print_newline(!0))}},b.prototype._handle_tag_open=function(x,g,y,U){var N=this._get_tag_open_token(g);return(y.is_unformatted||y.is_content_unformatted)&&!y.is_empty_element&&g.type===d.TAG_OPEN&&g.text.indexOf("</")===0?(x.add_raw_token(g),N.start_tag_token=this._tag_stack.try_pop(N.tag_name)):(x.traverse_whitespace(g),this._set_tag_position(x,g,N,y,U),N.is_inline_element||x.set_wrap_point(),x.print_token(g)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(N.alignment_size=g.text.length+1),!N.tag_complete&&!N.is_unformatted&&(x.alignment_size=N.alignment_size),N};var s=function(x,g){if(this.parent=x||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!g)this.tag_complete=!0;else{var y;this.tag_start_char=g.text[0],this.text=g.text,this.tag_start_char==="<"?(y=g.text.match(/^<([^\s>]*)/),this.tag_check=y?y[1]:""):(y=g.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=y?y[1]:"",(g.text.startsWith("{{#>")||g.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&g.next!==null?this.tag_check=g.next.text.split(" ")[0]:this.tag_check=g.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),g.type===d.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||g.closed&&g.closed.text==="/>";var U=2;this.tag_start_char==="{"&&this.text.length>=3&&(this.text.charAt(2)==="~"&&(U=3)),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(U)))}};b.prototype._get_tag_open_token=function(x){var g=new s(this._tag_stack.get_parser_token(),x);return g.alignment_size=this._options.wrap_attributes_indent_size,g.is_end_tag=g.is_end_tag||w(g.tag_check,this._options.void_elements),g.is_empty_element=g.tag_complete||g.is_start_tag&&g.is_end_tag,g.is_unformatted=!g.tag_complete&&w(g.tag_check,this._options.unformatted),g.is_content_unformatted=!g.is_empty_element&&w(g.tag_check,this._options.content_unformatted),g.is_inline_element=w(g.tag_name,this._options.inline)||g.tag_name.includes("-")||g.tag_start_char==="{",g},b.prototype._set_tag_position=function(x,g,y,U,N){if(y.is_empty_element||(y.is_end_tag?y.start_tag_token=this._tag_stack.try_pop(y.tag_name):(this._do_optional_end_element(y)&&(y.is_inline_element||x.print_newline(!1)),this._tag_stack.record_tag(y),(y.tag_name==="script"||y.tag_name==="style")&&!(y.is_unformatted||y.is_content_unformatted)&&(y.custom_beautifier_name=R(y.tag_check,g)))),w(y.tag_check,this._options.extra_liners)&&(x.print_newline(!1),x._output.just_added_blankline()||x.print_newline(!0)),y.is_empty_element){if(y.tag_start_char==="{"&&y.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),y.indent_content=!0;var S=x.current_line_has_match(/{{#if/);S||x.print_newline(!1)}y.tag_name==="!--"&&N.type===d.TAG_CLOSE&&U.is_end_tag&&y.text.indexOf(`
`)===-1||(y.is_inline_element||y.is_unformatted||x.print_newline(!1),this._calcluate_parent_multiline(x,y))}else if(y.is_end_tag){var H=!1;H=y.start_tag_token&&y.start_tag_token.multiline_content,H=H||!y.is_inline_element&&!(U.is_inline_element||U.is_unformatted)&&!(N.type===d.TAG_CLOSE&&y.start_tag_token===U)&&N.type!=="TK_CONTENT",(y.is_content_unformatted||y.is_unformatted)&&(H=!1),H&&x.print_newline(!1)}else y.indent_content=!y.custom_beautifier_name,y.tag_start_char==="<"&&(y.tag_name==="html"?y.indent_content=this._options.indent_inner_html:y.tag_name==="head"?y.indent_content=this._options.indent_head_inner_html:y.tag_name==="body"&&(y.indent_content=this._options.indent_body_inner_html)),!(y.is_inline_element||y.is_unformatted)&&(N.type!=="TK_CONTENT"||y.is_content_unformatted)&&x.print_newline(!1),this._calcluate_parent_multiline(x,y)},b.prototype._calcluate_parent_multiline=function(x,g){g.parent&&x._output.just_added_newline()&&!((g.is_inline_element||g.is_unformatted)&&g.parent.is_inline_element)&&(g.parent.multiline_content=!0)};var h=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],m=["a","audio","del","ins","map","noscript","video"];b.prototype._do_optional_end_element=function(x){var g=null;if(x.is_empty_element||!x.is_start_tag||!x.parent)return;if(x.tag_name==="body")g=g||this._tag_stack.try_pop("head");else if(x.tag_name==="li")g=g||this._tag_stack.try_pop("li",["ol","ul"]);else if(x.tag_name==="dd"||x.tag_name==="dt")g=g||this._tag_stack.try_pop("dt",["dl"]),g=g||this._tag_stack.try_pop("dd",["dl"]);else if(x.parent.tag_name==="p"&&h.indexOf(x.tag_name)!==-1){var y=x.parent.parent;(!y||m.indexOf(y.tag_name)===-1)&&(g=g||this._tag_stack.try_pop("p"))}else x.tag_name==="rp"||x.tag_name==="rt"?(g=g||this._tag_stack.try_pop("rt",["ruby","rtc"]),g=g||this._tag_stack.try_pop("rp",["ruby","rtc"])):x.tag_name==="optgroup"?g=g||this._tag_stack.try_pop("optgroup",["select"]):x.tag_name==="option"?g=g||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):x.tag_name==="colgroup"?g=g||this._tag_stack.try_pop("caption",["table"]):x.tag_name==="thead"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"])):x.tag_name==="tbody"||x.tag_name==="tfoot"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"]),g=g||this._tag_stack.try_pop("thead",["table"]),g=g||this._tag_stack.try_pop("tbody",["table"])):x.tag_name==="tr"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"]),g=g||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(x.tag_name==="th"||x.tag_name==="td")&&(g=g||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),g=g||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return x.parent=this._tag_stack.get_parser_token(),g},a.exports.Beautifier=b},function(a,t,A){var l=A(6).Options;function i(c){l.call(this,c,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}i.prototype=new l,a.exports.Options=i},function(a,t,A){var l=A(9).Tokenizer,i=A(9).TOKEN,c=A(13).Directives,d=A(14).TemplatablePattern,f=A(12).Pattern,o={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:i.START,RAW:i.RAW,EOF:i.EOF},u=new c(/<\!--/,/-->/),E=function(R,w){l.call(this,R,w),this._current_tag_name="";var P=new d(this._input).read_options(this._options),C=new f(this._input);if(this.__patterns={word:P.until(/[\n\r\t <]/),single_quote:P.until_after(/'/),double_quote:P.until_after(/"/),attribute:P.until(/[\n\r\t =>]|\/>/),element_name:P.until(/[\n\r\t >\/]/),handlebars_comment:C.starting_with(/{{!--/).until_after(/--}}/),handlebars:C.starting_with(/{{/).until_after(/}}/),handlebars_open:C.until(/[\n\r\t }]/),handlebars_raw_close:C.until(/}}/),comment:C.starting_with(/<!--/).until_after(/-->/),cdata:C.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:C.starting_with(/<!\[/).until_after(/]>/),processing:C.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var b=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=C.matching(b).until_after(b)}};E.prototype=new l,E.prototype._is_comment=function(R){return!1},E.prototype._is_opening=function(R){return R.type===o.TAG_OPEN},E.prototype._is_closing=function(R,w){return R.type===o.TAG_CLOSE&&w&&((R.text===">"||R.text==="/>")&&w.text[0]==="<"||R.text==="}}"&&w.text[0]==="{"&&w.text[1]==="{")},E.prototype._reset=function(){this._current_tag_name=""},E.prototype._get_next_token=function(R,w){var P=null;this._readWhitespace();var C=this._input.peek();return C===null?this._create_token(o.EOF,""):(P=P||this._read_open_handlebars(C,w),P=P||this._read_attribute(C,R,w),P=P||this._read_close(C,w),P=P||this._read_raw_content(C,R,w),P=P||this._read_content_word(C),P=P||this._read_comment_or_cdata(C),P=P||this._read_processing(C),P=P||this._read_open(C,w),P=P||this._create_token(o.UNKNOWN,this._input.next()),P)},E.prototype._read_comment_or_cdata=function(R){var w=null,P=null,C=null;if(R==="<"){var b=this._input.peek(1);b==="!"&&(P=this.__patterns.comment.read(),P?(C=u.get_directives(P),C&&C.ignore==="start"&&(P+=u.readIgnored(this._input))):P=this.__patterns.cdata.read()),P&&(w=this._create_token(o.COMMENT,P),w.directives=C)}return w},E.prototype._read_processing=function(R){var w=null,P=null,C=null;if(R==="<"){var b=this._input.peek(1);(b==="!"||b==="?")&&(P=this.__patterns.conditional_comment.read(),P=P||this.__patterns.processing.read()),P&&(w=this._create_token(o.COMMENT,P),w.directives=C)}return w},E.prototype._read_open=function(R,w){var P=null,C=null;return w||R==="<"&&(P=this._input.next(),this._input.peek()==="/"&&(P+=this._input.next()),P+=this.__patterns.element_name.read(),C=this._create_token(o.TAG_OPEN,P)),C},E.prototype._read_open_handlebars=function(R,w){var P=null,C=null;return w||this._options.indent_handlebars&&R==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(P=this.__patterns.handlebars_comment.read(),P=P||this.__patterns.handlebars.read(),C=this._create_token(o.COMMENT,P)):(P=this.__patterns.handlebars_open.read(),C=this._create_token(o.TAG_OPEN,P))),C},E.prototype._read_close=function(R,w){var P=null,C=null;return w&&(w.text[0]==="<"&&(R===">"||R==="/"&&this._input.peek(1)===">")?(P=this._input.next(),R==="/"&&(P+=this._input.next()),C=this._create_token(o.TAG_CLOSE,P)):w.text[0]==="{"&&R==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),C=this._create_token(o.TAG_CLOSE,"}}"))),C},E.prototype._read_attribute=function(R,w,P){var C=null,b="";if(P&&P.text[0]==="<")if(R==="=")C=this._create_token(o.EQUALS,this._input.next());else if(R==='"'||R==="'"){var s=this._input.next();R==='"'?s+=this.__patterns.double_quote.read():s+=this.__patterns.single_quote.read(),C=this._create_token(o.VALUE,s)}else b=this.__patterns.attribute.read(),b&&(w.type===o.EQUALS?C=this._create_token(o.VALUE,b):C=this._create_token(o.ATTRIBUTE,b));return C},E.prototype._is_content_unformatted=function(R){return this._options.void_elements.indexOf(R)===-1&&(this._options.content_unformatted.indexOf(R)!==-1||this._options.unformatted.indexOf(R)!==-1)},E.prototype._read_raw_content=function(R,w,P){var C="";if(P&&P.text[0]==="{")C=this.__patterns.handlebars_raw_close.read();else if(w.type===o.TAG_CLOSE&&w.opened.text[0]==="<"&&w.text[0]!=="/"){var b=w.opened.text.substr(1).toLowerCase();if(b==="script"||b==="style"){var s=this._read_comment_or_cdata(R);if(s)return s.type=o.TEXT,s;C=this._input.readUntil(new RegExp("</"+b+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(b)&&(C=this._input.readUntil(new RegExp("</"+b+"[\\n\\r\\t ]*?>","ig")))}return C?this._create_token(o.TEXT,C):null},E.prototype._read_content_word=function(R){var w="";if(this._options.unformatted_content_delimiter&&(R===this._options.unformatted_content_delimiter[0]&&(w=this.__patterns.unformatted_content_delimiter.read())),w||(w=this.__patterns.word.read()),w)return this._create_token(o.TEXT,w)},a.exports.Tokenizer=E,a.exports.TOKEN=o}],T={};function n(a){var t=T[a];if(t!==void 0)return t.exports;var A=T[a]={exports:{}};return M[a](A,A.exports,n),A.exports}var p=n(18);I=p})();var k=I;if(!0)!(Z=[v,v("6UM0"),v("TXwP")],Q=function(M){var T=v("6UM0"),n=v("TXwP");return{html_beautify:function(p,a){return k(p,a,T.js_beautify,n.css_beautify)}}}.apply(ee,Z),Q!==void 0&&(Be.exports=Q));else var _,O})()},pzxd:function(Be,ee,v){var Z=v("bYtY"),Q=Z.retrieve2,I=Z.retrieve3,k=Z.each,_=Z.normalizeCssArray,O=Z.isString,M=Z.isObject,T=v("6GrX"),n=v("VpOo"),p=v("Xnb7"),a=v("fW2E"),t=v("gut8"),A=t.ContextCachedBy,l=t.WILL_BE_RESTORED,i=T.DEFAULT_FONT,c={left:1,right:1,center:1},d={top:1,bottom:1,middle:1},f=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],o={},u={};function E(z){return R(z),k(z.rich,R),z}function R(z){if(z){z.font=T.makeFont(z);var K=z.textAlign;K==="middle"&&(K="center"),z.textAlign=K==null||c[K]?K:"left";var $=z.textVerticalAlign||z.textBaseline;$==="center"&&($="middle"),z.textVerticalAlign=$==null||d[$]?$:"top";var te=z.textPadding;te&&(z.textPadding=_(z.textPadding))}}function w(z,K,$,te,fe,Ae){te.rich?C(z,K,$,te,fe,Ae):P(z,K,$,te,fe,Ae)}function P(z,K,$,te,fe,Ae){"use strict";var ce=m(te),ie,ye=!1,le=K.__attrCachedBy===A.PLAIN_TEXT;Ae!==l?(Ae&&(ie=Ae.style,ye=!ce&&le&&ie),K.__attrCachedBy=ce?A.NONE:A.PLAIN_TEXT):le&&(K.__attrCachedBy=A.NONE);var me=te.font||i;(!ye||me!==(ie.font||i))&&(K.font=me);var se=z.__computedFont;z.__styleFont!==me&&(z.__styleFont=me,se=z.__computedFont=K.font);var ge=te.textPadding,ae=te.textLineHeight,pe=z.__textCotentBlock;(!pe||z.__dirtyText)&&(pe=z.__textCotentBlock=T.parsePlainText($,se,ge,ae,te.truncate));var Me=pe.outerHeight,xe=pe.lines,Ke=pe.lineHeight,et=y(u,z,te,fe),he=et.baseX,Se=et.baseY,Ue=et.textAlign||"left",Ne=et.textVerticalAlign;s(K,te,fe,he,Se);var ct=T.adjustTextY(Se,Me,Ne),ft=he,Ot=ct;if(ce||ge){var dt=T.getWidth($,se),Ut=dt;ge&&(Ut+=ge[1]+ge[3]);var jt=T.adjustTextX(he,Ut,Ue);ce&&x(z,K,te,jt,ct,Ut,Me),ge&&(ft=F(he,Ue,ge),Ot+=ge[0])}K.textAlign=Ue,K.textBaseline="middle",K.globalAlpha=te.opacity||1;for(var ze=0;ze<f.length;ze++){var Ve=f[ze],Et=Ve[0],Rt=Ve[1],ut=te[Et];(!ye||ut!==ie[Et])&&(K[Rt]=a(K,Rt,ut||Ve[2]))}Ot+=Ke/2;var vt=te.textStrokeWidth,Ze=ye?ie.textStrokeWidth:null,ke=!ye||vt!==Ze,He=!ye||ke||te.textStroke!==ie.textStroke,we=N(te.textStroke,vt),Le=S(te.textFill);if(we&&(ke&&(K.lineWidth=vt),He&&(K.strokeStyle=we)),Le&&((!ye||te.textFill!==ie.textFill)&&(K.fillStyle=Le)),xe.length===1)we&&K.strokeText(xe[0],ft,Ot),Le&&K.fillText(xe[0],ft,Ot);else for(var ze=0;ze<xe.length;ze++)we&&K.strokeText(xe[ze],ft,Ot),Le&&K.fillText(xe[ze],ft,Ot),Ot+=Ke}function C(z,K,$,te,fe,Ae){Ae!==l&&(K.__attrCachedBy=A.NONE);var ce=z.__textCotentBlock;(!ce||z.__dirtyText)&&(ce=z.__textCotentBlock=T.parseRichText($,te)),b(z,K,ce,te,fe)}function b(z,K,$,te,fe){var Ae=$.width,ce=$.outerWidth,ie=$.outerHeight,ye=te.textPadding,le=y(u,z,te,fe),me=le.baseX,se=le.baseY,ge=le.textAlign,ae=le.textVerticalAlign;s(K,te,fe,me,se);var pe=T.adjustTextX(me,ce,ge),Me=T.adjustTextY(se,ie,ae),xe=pe,Ke=Me;ye&&(xe+=ye[3],Ke+=ye[0]);var et=xe+Ae;m(te)&&x(z,K,te,pe,Me,ce,ie);for(var he=0;he<$.lines.length;he++){for(var Se=$.lines[he],Ue=Se.tokens,Ne=Ue.length,ct=Se.lineHeight,ft=Se.width,Ot=0,dt=xe,Ut=et,jt=Ne-1,ze;Ot<Ne&&(ze=Ue[Ot],!ze.textAlign||ze.textAlign==="left");)h(z,K,ze,te,ct,Ke,dt,"left"),ft-=ze.width,dt+=ze.width,Ot++;for(;jt>=0&&(ze=Ue[jt],ze.textAlign==="right");)h(z,K,ze,te,ct,Ke,Ut,"right"),ft-=ze.width,Ut-=ze.width,jt--;for(dt+=(Ae-(dt-xe)-(et-Ut)-ft)/2;Ot<=jt;)ze=Ue[Ot],h(z,K,ze,te,ct,Ke,dt+ze.width/2,"center"),dt+=ze.width,Ot++;Ke+=ct}}function s(z,K,$,te,fe){if($&&K.textRotation){var Ae=K.textOrigin;Ae==="center"?(te=$.width/2+$.x,fe=$.height/2+$.y):Ae&&(te=Ae[0]+$.x,fe=Ae[1]+$.y),z.translate(te,fe),z.rotate(-K.textRotation),z.translate(-te,-fe)}}function h(z,K,$,te,fe,Ae,ce,ie){var ye=te.rich[$.styleName]||{};ye.text=$.text;var le=$.textVerticalAlign,me=Ae+fe/2;le==="top"?me=Ae+$.height/2:le==="bottom"&&(me=Ae+fe-$.height/2),!$.isLineHolder&&m(ye)&&x(z,K,ye,ie==="right"?ce-$.width:ie==="center"?ce-$.width/2:ce,me-$.height/2,$.width,$.height);var se=$.textPadding;se&&(ce=F(ce,ie,se),me-=$.height/2-se[2]-$.textHeight/2),U(K,"shadowBlur",I(ye.textShadowBlur,te.textShadowBlur,0)),U(K,"shadowColor",ye.textShadowColor||te.textShadowColor||"transparent"),U(K,"shadowOffsetX",I(ye.textShadowOffsetX,te.textShadowOffsetX,0)),U(K,"shadowOffsetY",I(ye.textShadowOffsetY,te.textShadowOffsetY,0)),U(K,"textAlign",ie),U(K,"textBaseline","middle"),U(K,"font",$.font||i);var ge=N(ye.textStroke||te.textStroke,pe),ae=S(ye.textFill||te.textFill),pe=Q(ye.textStrokeWidth,te.textStrokeWidth);ge&&(U(K,"lineWidth",pe),U(K,"strokeStyle",ge),K.strokeText($.text,ce,me)),ae&&(U(K,"fillStyle",ae),K.fillText($.text,ce,me))}function m(z){return!!(z.textBackgroundColor||z.textBorderWidth&&z.textBorderColor)}function x(z,K,$,te,fe,Ae,ce){var ie=$.textBackgroundColor,ye=$.textBorderWidth,le=$.textBorderColor,me=O(ie);if(U(K,"shadowBlur",$.textBoxShadowBlur||0),U(K,"shadowColor",$.textBoxShadowColor||"transparent"),U(K,"shadowOffsetX",$.textBoxShadowOffsetX||0),U(K,"shadowOffsetY",$.textBoxShadowOffsetY||0),me||ye&&le){K.beginPath();var se=$.textBorderRadius;se?n.buildPath(K,{x:te,y:fe,width:Ae,height:ce,r:se}):K.rect(te,fe,Ae,ce),K.closePath()}if(me)if(U(K,"fillStyle",ie),$.fillOpacity!=null){var ge=K.globalAlpha;K.globalAlpha=$.fillOpacity*$.opacity,K.fill(),K.globalAlpha=ge}else K.fill();else if(M(ie)){var ae=ie.image;ae=p.createOrUpdateImage(ae,null,z,g,ie),ae&&p.isImageReady(ae)&&K.drawImage(ae,te,fe,Ae,ce)}if(ye&&le)if(U(K,"lineWidth",ye),U(K,"strokeStyle",le),$.strokeOpacity!=null){var ge=K.globalAlpha;K.globalAlpha=$.strokeOpacity*$.opacity,K.stroke(),K.globalAlpha=ge}else K.stroke()}function g(z,K){K.image=z}function y(z,K,$,te){var fe=$.x||0,Ae=$.y||0,ce=$.textAlign,ie=$.textVerticalAlign;if(te){var ye=$.textPosition;if(ye instanceof Array)fe=te.x+H(ye[0],te.width),Ae=te.y+H(ye[1],te.height);else{var le=K&&K.calculateTextPosition?K.calculateTextPosition(o,$,te):T.calculateTextPosition(o,$,te);fe=le.x,Ae=le.y,ce=ce||le.textAlign,ie=ie||le.textVerticalAlign}var me=$.textOffset;me&&(fe+=me[0],Ae+=me[1])}return z=z||{},z.baseX=fe,z.baseY=Ae,z.textAlign=ce,z.textVerticalAlign=ie,z}function U(z,K,$){return z[K]=a(z,K,$),z[K]}function N(z,K){return z==null||K<=0||z==="transparent"||z==="none"?null:z.image||z.colorStops?"#000":z}function S(z){return z==null||z==="none"?null:z.image||z.colorStops?"#000":z}function H(z,K){return typeof z=="string"?z.lastIndexOf("%")>=0?parseFloat(z)/100*K:parseFloat(z):z}function F(z,K,$){return K==="right"?z-$[1]:K==="center"?z+$[3]/2-$[1]/2:z+$[3]}function B(z,K){return z!=null&&(z||K.textBackgroundColor||K.textBorderWidth&&K.textBorderColor||K.textPadding)}ee.normalizeTextStyle=E,ee.renderText=w,ee.getBoxPosition=y,ee.getStroke=N,ee.getFill=S,ee.parsePercent=H,ee.needDrawText=B},qH13:function(Be,ee,v){var Z=v("ItGF"),Q=v("QBsz"),I=Q.applyTransform,k=v("mFDi"),_=v("Qe9p"),O=v("6GrX"),M=v("pzxd"),T=v("ni6a"),n=v("Gev7"),p=v("Dagg"),a=v("dqUG"),t=v("y+Vt"),A=v("IMiH"),l=v("QuXc"),i=v("06Qe"),c=A.CMD,d=Math.round,f=Math.sqrt,o=Math.abs,u=Math.cos,E=Math.sin,R=Math.max;if(!Z.canvasSupported){var w=",",P="progid:DXImageTransform.Microsoft",C=21600,b=C/2,s=1e5,h=1e3,m=function(he){he.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",he.coordsize=C+","+C,he.coordorigin="0,0"},x=function(he){return String(he).replace(/&/g,"&amp;").replace(/"/g,"&quot;")},g=function(he,Se,Ue){return"rgb("+[he,Se,Ue].join(",")+")"},y=function(he,Se){Se&&he&&Se.parentNode!==he&&he.appendChild(Se)},U=function(he,Se){Se&&he&&Se.parentNode===he&&he.removeChild(Se)},N=function(he,Se,Ue){return(parseFloat(he)||0)*s+(parseFloat(Se)||0)*h+Ue},S=M.parsePercent,H=function(he,Se,Ue){var Ne=_.parse(Se);Ue=+Ue,isNaN(Ue)&&(Ue=1),Ne&&(he.color=g(Ne[0],Ne[1],Ne[2]),he.opacity=Ue*Ne[3])},F=function(he){var Se=_.parse(he);return[g(Se[0],Se[1],Se[2]),Se[3]]},B=function(he,Se,Ue){var Ne=Se.fill;if(Ne!=null)if(Ne instanceof l){var ct,ft=0,Ot=[0,0],dt=0,Ut=1,jt=Ue.getBoundingRect(),ze=jt.width,Ve=jt.height;if(Ne.type==="linear"){ct="gradient";var Et=Ue.transform,Rt=[Ne.x*ze,Ne.y*Ve],ut=[Ne.x2*ze,Ne.y2*Ve];Et&&(I(Rt,Rt,Et),I(ut,ut,Et));var vt=ut[0]-Rt[0],Ze=ut[1]-Rt[1];ft=Math.atan2(vt,Ze)*180/Math.PI,ft<0&&(ft+=360),ft<1e-6&&(ft=0)}else{ct="gradientradial";var Rt=[Ne.x*ze,Ne.y*Ve],Et=Ue.transform,ke=Ue.scale,He=ze,we=Ve;Ot=[(Rt[0]-jt.x)/He,(Rt[1]-jt.y)/we],Et&&I(Rt,Rt,Et),He/=ke[0]*C,we/=ke[1]*C;var Le=R(He,we);dt=2*0/Le,Ut=2*Ne.r/Le-dt}var Pe=Ne.colorStops.slice();Pe.sort(function(Qe,Oe){return Qe.offset-Oe.offset});for(var We=Pe.length,Xe=[],gt=[],Lt=0;Lt<We;Lt++){var en=Pe[Lt],Zt=F(en.color);gt.push(en.offset*Ut+dt+" "+Zt[0]),(Lt===0||Lt===We-1)&&Xe.push(Zt)}if(We>=2){var xt=Xe[0][0],Ct=Xe[1][0],mt=Xe[0][1]*Se.opacity,Je=Xe[1][1]*Se.opacity;he.type=ct,he.method="none",he.focus="100%",he.angle=ft,he.color=xt,he.color2=Ct,he.colors=gt.join(","),he.opacity=Je,he.opacity2=mt}ct==="radial"&&(he.focusposition=Ot.join(","))}else H(he,Ne,Se.opacity)},z=function(he,Se){Se.lineDash&&(he.dashstyle=Se.lineDash.join(" ")),Se.stroke!=null&&!(Se.stroke instanceof l)&&H(he,Se.stroke,Se.opacity)},K=function(he,Se,Ue,Ne){var ct=Se==="fill",ft=he.getElementsByTagName(Se)[0];Ue[Se]!=null&&Ue[Se]!=="none"&&(ct||!ct&&Ue.lineWidth)?(he[ct?"filled":"stroked"]="true",Ue[Se]instanceof l&&U(he,ft),ft||(ft=i.createNode(Se)),ct?B(ft,Ue,Ne):z(ft,Ue),y(he,ft)):(he[ct?"filled":"stroked"]="false",U(he,ft))},$=[[],[],[]],te=function(he,Se){var Ue=c.M,Ne=c.C,ct=c.L,ft=c.A,Ot=c.Q,dt=[],Ut,jt,ze,Ve,Et,Rt,ut=he.data,vt=he.len();for(Ve=0;Ve<vt;){ze=ut[Ve++],jt="",Ut=0;switch(ze){case Ue:jt=" m ",Ut=1,Et=ut[Ve++],Rt=ut[Ve++],$[0][0]=Et,$[0][1]=Rt;break;case ct:jt=" l ",Ut=1,Et=ut[Ve++],Rt=ut[Ve++],$[0][0]=Et,$[0][1]=Rt;break;case Ot:case Ne:jt=" c ",Ut=3;var Ze=ut[Ve++],ke=ut[Ve++],He=ut[Ve++],we=ut[Ve++],Le,Pe;ze===Ot?(Le=He,Pe=we,He=(He+2*Ze)/3,we=(we+2*ke)/3,Ze=(Et+2*Ze)/3,ke=(Rt+2*ke)/3):(Le=ut[Ve++],Pe=ut[Ve++]),$[0][0]=Ze,$[0][1]=ke,$[1][0]=He,$[1][1]=we,$[2][0]=Le,$[2][1]=Pe,Et=Le,Rt=Pe;break;case ft:var We=0,Xe=0,gt=1,Lt=1,en=0;Se&&(We=Se[4],Xe=Se[5],gt=f(Se[0]*Se[0]+Se[1]*Se[1]),Lt=f(Se[2]*Se[2]+Se[3]*Se[3]),en=Math.atan2(-Se[1]/Lt,Se[0]/gt));var Zt=ut[Ve++],xt=ut[Ve++],Ct=ut[Ve++],mt=ut[Ve++],Je=ut[Ve++]+en,Qe=ut[Ve++]+Je+en;Ve++;var Oe=ut[Ve++],je=Zt+u(Je)*Ct,St=xt+E(Je)*mt,Ze=Zt+u(Qe)*Ct,ke=xt+E(Qe)*mt,bt=Oe?" wa ":" at ";Math.abs(je-Ze)<1e-4&&(Math.abs(Qe-Je)>.01?Oe&&(je+=270/C):Math.abs(St-xt)<1e-4?Oe&&je<Zt||!Oe&&je>Zt?ke-=270/C:ke+=270/C:Oe&&St<xt||!Oe&&St>xt?Ze+=270/C:Ze-=270/C),dt.push(bt,d(((Zt-Ct)*gt+We)*C-b),w,d(((xt-mt)*Lt+Xe)*C-b),w,d(((Zt+Ct)*gt+We)*C-b),w,d(((xt+mt)*Lt+Xe)*C-b),w,d((je*gt+We)*C-b),w,d((St*Lt+Xe)*C-b),w,d((Ze*gt+We)*C-b),w,d((ke*Lt+Xe)*C-b)),Et=Ze,Rt=ke;break;case c.R:var Dt=$[0],Qt=$[1];Dt[0]=ut[Ve++],Dt[1]=ut[Ve++],Qt[0]=Dt[0]+ut[Ve++],Qt[1]=Dt[1]+ut[Ve++],Se&&(I(Dt,Dt,Se),I(Qt,Qt,Se)),Dt[0]=d(Dt[0]*C-b),Qt[0]=d(Qt[0]*C-b),Dt[1]=d(Dt[1]*C-b),Qt[1]=d(Qt[1]*C-b),dt.push(" m ",Dt[0],w,Dt[1]," l ",Qt[0],w,Dt[1]," l ",Qt[0],w,Qt[1]," l ",Dt[0],w,Qt[1]);break;case c.Z:dt.push(" x ")}if(Ut>0){dt.push(jt);for(var _t=0;_t<Ut;_t++){var Gt=$[_t];Se&&I(Gt,Gt,Se),dt.push(d(Gt[0]*C-b),w,d(Gt[1]*C-b),_t<Ut-1?w:"")}}}return dt.join("")};t.prototype.brushVML=function(he){var Se=this.style,Ue=this._vmlEl;Ue||(Ue=i.createNode("shape"),m(Ue),this._vmlEl=Ue),K(Ue,"fill",Se,this),K(Ue,"stroke",Se,this);var Ne=this.transform,ct=Ne!=null,ft=Ue.getElementsByTagName("stroke")[0];if(ft){var Ot=Se.lineWidth;if(ct&&!Se.strokeNoScale){var dt=Ne[0]*Ne[3]-Ne[1]*Ne[2];Ot*=f(o(dt))}ft.weight=Ot+"px"}var Ut=this.path||(this.path=new A);this.__dirtyPath&&(Ut.beginPath(),Ut.subPixelOptimize=!1,this.buildPath(Ut,this.shape),Ut.toStatic(),this.__dirtyPath=!1),Ue.path=te(Ut,this.transform),Ue.style.zIndex=N(this.zlevel,this.z,this.z2),y(he,Ue),Se.text!=null?this.drawRectText(he,this.getBoundingRect()):this.removeRectText(he)},t.prototype.onRemove=function(he){U(he,this._vmlEl),this.removeRectText(he)},t.prototype.onAdd=function(he){y(he,this._vmlEl),this.appendRectText(he)};var fe=function(he){return typeof he=="object"&&he.tagName&&he.tagName.toUpperCase()==="IMG"};p.prototype.brushVML=function(he){var Se=this.style,Ue=Se.image,Ne,ct;if(fe(Ue)){var ft=Ue.src;if(ft===this._imageSrc)Ne=this._imageWidth,ct=this._imageHeight;else{var Ot=Ue.runtimeStyle,dt=Ot.width,Ut=Ot.height;Ot.width="auto",Ot.height="auto",Ne=Ue.width,ct=Ue.height,Ot.width=dt,Ot.height=Ut,this._imageSrc=ft,this._imageWidth=Ne,this._imageHeight=ct}Ue=ft}else Ue===this._imageSrc&&(Ne=this._imageWidth,ct=this._imageHeight);if(!Ue)return;var jt=Se.x||0,ze=Se.y||0,Ve=Se.width,Et=Se.height,Rt=Se.sWidth,ut=Se.sHeight,vt=Se.sx||0,Ze=Se.sy||0,ke=Rt&&ut,He=this._vmlEl;He||(He=i.doc.createElement("div"),m(He),this._vmlEl=He);var we=He.style,Le=!1,Pe,We=1,Xe=1;if(this.transform&&(Pe=this.transform,We=f(Pe[0]*Pe[0]+Pe[1]*Pe[1]),Xe=f(Pe[2]*Pe[2]+Pe[3]*Pe[3]),Le=Pe[1]||Pe[2]),Le){var gt=[jt,ze],Lt=[jt+Ve,ze],en=[jt,ze+Et],Zt=[jt+Ve,ze+Et];I(gt,gt,Pe),I(Lt,Lt,Pe),I(en,en,Pe),I(Zt,Zt,Pe);var xt=R(gt[0],Lt[0],en[0],Zt[0]),Ct=R(gt[1],Lt[1],en[1],Zt[1]),mt=[];mt.push("M11=",Pe[0]/We,w,"M12=",Pe[2]/Xe,w,"M21=",Pe[1]/We,w,"M22=",Pe[3]/Xe,w,"Dx=",d(jt*We+Pe[4]),w,"Dy=",d(ze*Xe+Pe[5])),we.padding="0 "+d(xt)+"px "+d(Ct)+"px 0",we.filter=P+".Matrix("+mt.join("")+", SizingMethod=clip)"}else Pe&&(jt=jt*We+Pe[4],ze=ze*Xe+Pe[5]),we.filter="",we.left=d(jt)+"px",we.top=d(ze)+"px";var Je=this._imageEl,Qe=this._cropEl;Je||(Je=i.doc.createElement("div"),this._imageEl=Je);var Oe=Je.style;if(ke){if(Ne&&ct)Oe.width=d(We*Ne*Ve/Rt)+"px",Oe.height=d(Xe*ct*Et/ut)+"px";else{var je=new Image,St=this;je.onload=function(){je.onload=null,Ne=je.width,ct=je.height,Oe.width=d(We*Ne*Ve/Rt)+"px",Oe.height=d(Xe*ct*Et/ut)+"px",St._imageWidth=Ne,St._imageHeight=ct,St._imageSrc=Ue},je.src=Ue}Qe||(Qe=i.doc.createElement("div"),Qe.style.overflow="hidden",this._cropEl=Qe);var bt=Qe.style;bt.width=d((Ve+vt*Ve/Rt)*We),bt.height=d((Et+Ze*Et/ut)*Xe),bt.filter=P+".Matrix(Dx="+-vt*Ve/Rt*We+",Dy="+-Ze*Et/ut*Xe+")",Qe.parentNode||He.appendChild(Qe),Je.parentNode!==Qe&&Qe.appendChild(Je)}else Oe.width=d(We*Ve)+"px",Oe.height=d(Xe*Et)+"px",He.appendChild(Je),Qe&&Qe.parentNode&&(He.removeChild(Qe),this._cropEl=null);var Dt="",Qt=Se.opacity;Qt<1&&(Dt+=".Alpha(opacity="+d(Qt*100)+") "),Dt+=P+".AlphaImageLoader(src="+Ue+", SizingMethod=scale)",Oe.filter=Dt,He.style.zIndex=N(this.zlevel,this.z,this.z2),y(he,He),Se.text!=null&&this.drawRectText(he,this.getBoundingRect())},p.prototype.onRemove=function(he){U(he,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(he)},p.prototype.onAdd=function(he){y(he,this._vmlEl),this.appendRectText(he)};var Ae="normal",ce={},ie=0,ye=100,le=document.createElement("div"),me=function(he){var Se=ce[he];if(!Se){ie>ye&&(ie=0,ce={});var Ue=le.style,Ne;try{Ue.font=he,Ne=Ue.fontFamily.split(",")[0]}catch(ct){}Se={style:Ue.fontStyle||Ae,variant:Ue.fontVariant||Ae,weight:Ue.fontWeight||Ae,size:parseFloat(Ue.fontSize||12)|0,family:Ne||"Microsoft YaHei"},ce[he]=Se,ie++}return Se},se;O.$override("measureText",function(he,Se){var Ue=i.doc;se||(se=Ue.createElement("div"),se.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",i.doc.body.appendChild(se));try{se.style.font=Se}catch(Ne){}return se.innerHTML="",se.appendChild(Ue.createTextNode(he)),{width:se.offsetWidth}});for(var ge=new k,ae=function(he,Se,Ue,Ne){var ct=this.style;this.__dirty&&M.normalizeTextStyle(ct,!0);var ft=ct.text;if(ft!=null&&(ft+=""),!ft)return;if(ct.rich){var Ot=O.parseRichText(ft,ct);ft=[];for(var dt=0;dt<Ot.lines.length;dt++){for(var Ut=Ot.lines[dt].tokens,jt=[],ze=0;ze<Ut.length;ze++)jt.push(Ut[ze].text);ft.push(jt.join(""))}ft=ft.join(`
`)}var Ve,Et,Rt=ct.textAlign,ut=ct.textVerticalAlign,vt=me(ct.font),Ze=vt.style+" "+vt.variant+" "+vt.weight+" "+vt.size+'px "'+vt.family+'"';Ue=Ue||O.getBoundingRect(ft,Ze,Rt,ut,ct.textPadding,ct.textLineHeight);var ke=this.transform;if(ke&&!Ne&&(ge.copy(Se),ge.applyTransform(ke),Se=ge),Ne)Ve=Se.x,Et=Se.y;else{var He=ct.textPosition;if(He instanceof Array)Ve=Se.x+S(He[0],Se.width),Et=Se.y+S(He[1],Se.height),Rt=Rt||"left";else{var we=this.calculateTextPosition?this.calculateTextPosition({},ct,Se):O.calculateTextPosition({},ct,Se);Ve=we.x,Et=we.y,Rt=Rt||we.textAlign,ut=ut||we.textVerticalAlign}}Ve=O.adjustTextX(Ve,Ue.width,Rt),Et=O.adjustTextY(Et,Ue.height,ut),Et+=Ue.height/2;var Le=i.createNode,Pe=this._textVmlEl,We,Xe,gt;Pe?(gt=Pe.firstChild,We=gt.nextSibling,Xe=We.nextSibling):(Pe=Le("line"),We=Le("path"),Xe=Le("textpath"),gt=Le("skew"),Xe.style["v-text-align"]="left",m(Pe),We.textpathok=!0,Xe.on=!0,Pe.from="0 0",Pe.to="1000 0.05",y(Pe,gt),y(Pe,We),y(Pe,Xe),this._textVmlEl=Pe);var Lt=[Ve,Et],en=Pe.style;ke&&Ne?(I(Lt,Lt,ke),gt.on=!0,gt.matrix=ke[0].toFixed(3)+w+ke[2].toFixed(3)+w+ke[1].toFixed(3)+w+ke[3].toFixed(3)+",0,0",gt.offset=(d(Lt[0])||0)+","+(d(Lt[1])||0),gt.origin="0 0",en.left="0px",en.top="0px"):(gt.on=!1,en.left=d(Ve)+"px",en.top=d(Et)+"px"),Xe.string=x(ft);try{Xe.style.font=Ze}catch(Zt){}K(Pe,"fill",{fill:ct.textFill,opacity:ct.opacity},this),K(Pe,"stroke",{stroke:ct.textStroke,opacity:ct.opacity,lineDash:ct.lineDash||null},this),Pe.style.zIndex=N(this.zlevel,this.z,this.z2),y(he,Pe)},pe=function(he){U(he,this._textVmlEl),this._textVmlEl=null},Me=function(he){y(he,this._textVmlEl)},xe=[T,n,p,t,a],Ke=0;Ke<xe.length;Ke++){var et=xe[Ke].prototype;et.drawRectText=ae,et.removeRectText=pe,et.appendRectText=Me}a.prototype.brushVML=function(he){var Se=this.style;Se.text!=null?this.drawRectText(he,{x:Se.x||0,y:Se.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(he)},a.prototype.onRemove=function(he){this.removeRectText(he)},a.prototype.onAdd=function(he){this.appendRectText(he)}}},qgvg:function(Be,ee){Be.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(Be,ee,v){var Z=v("bYtY"),Q=v("ItGF"),I=v("4fz+"),k=v("BPZU");function _(T,n){return T.zlevel===n.zlevel?T.z===n.z?T.z2-n.z2:T.z-n.z:T.zlevel-n.zlevel}var O=function(){this._roots=[],this._displayList=[],this._displayListLen=0};O.prototype={constructor:O,traverse:function(T,n){for(var p=0;p<this._roots.length;p++)this._roots[p].traverse(T,n)},getDisplayList:function(T,n){return n=n||!1,T&&this.updateDisplayList(n),this._displayList},updateDisplayList:function(T){this._displayListLen=0;for(var n=this._roots,p=this._displayList,a=0,t=n.length;a<t;a++)this._updateAndAddDisplayable(n[a],null,T);p.length=this._displayListLen,Q.canvasSupported&&k(p,_)},_updateAndAddDisplayable:function(T,n,p){if(T.ignore&&!p)return;T.beforeUpdate(),T.__dirty&&T.update(),T.afterUpdate();var a=T.clipPath;if(a){n?n=n.slice():n=[];for(var t=a,A=T;t;)t.parent=A,t.updateTransform(),n.push(t),A=t,t=t.clipPath}if(T.isGroup){for(var l=T._children,i=0;i<l.length;i++){var c=l[i];T.__dirty&&(c.__dirty=!0),this._updateAndAddDisplayable(c,n,p)}T.__dirty=!1}else T.__clipPaths=n,this._displayList[this._displayListLen++]=T},addRoot:function(T){if(T.__storage===this)return;T instanceof I&&T.addChildrenToStorage(this),this.addToStorage(T),this._roots.push(T)},delRoot:function(T){if(T==null){for(var n=0;n<this._roots.length;n++){var p=this._roots[n];p instanceof I&&p.delChildrenFromStorage(this)}this._roots=[],this._displayList=[],this._displayListLen=0;return}if(T instanceof Array){for(var n=0,a=T.length;n<a;n++)this.delRoot(T[n]);return}var t=Z.indexOf(this._roots,T);t>=0&&(this.delFromStorage(T),this._roots.splice(t,1),T instanceof I&&T.delChildrenFromStorage(this))},addToStorage:function(T){return T&&(T.__storage=this,T.dirty(!1)),this},delFromStorage:function(T){return T&&(T.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:_};var M=O;Be.exports=M},rA99:function(Be,ee,v){var Z=v("y+Vt"),Q=v("QBsz"),I=v("Sj9i"),k=I.quadraticSubdivide,_=I.cubicSubdivide,O=I.quadraticAt,M=I.cubicAt,T=I.quadraticDerivativeAt,n=I.cubicDerivativeAt,p=[];function a(A,l,i){var c=A.cpx2,d=A.cpy2;return c===null||d===null?[(i?n:M)(A.x1,A.cpx1,A.cpx2,A.x2,l),(i?n:M)(A.y1,A.cpy1,A.cpy2,A.y2,l)]:[(i?T:O)(A.x1,A.cpx1,A.x2,l),(i?T:O)(A.y1,A.cpy1,A.y2,l)]}var t=Z.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(A,l){var i=l.x1,c=l.y1,d=l.x2,f=l.y2,o=l.cpx1,u=l.cpy1,E=l.cpx2,R=l.cpy2,w=l.percent;if(w===0)return;A.moveTo(i,c),E==null||R==null?(w<1&&(k(i,o,d,w,p),o=p[1],d=p[2],k(c,u,f,w,p),u=p[1],f=p[2]),A.quadraticCurveTo(o,u,d,f)):(w<1&&(_(i,o,E,d,w,p),o=p[1],E=p[2],d=p[3],_(c,u,R,f,w,p),u=p[1],R=p[2],f=p[3]),A.bezierCurveTo(o,u,E,R,d,f))},pointAt:function(A){return a(this.shape,A,!1)},tangentAt:function(A){var l=a(this.shape,A,!0);return Q.normalize(l,l)}});Be.exports=t},"rAM+":function(Be,ee,v){"use strict";v.d(ee,"a",function(){return Q});var Z=v("Qw5x");function Q(I,k){var _;if(typeof Symbol=="undefined"||I[Symbol.iterator]==null){if(Array.isArray(I)||(_=Object(Z.a)(I))||k&&I&&typeof I.length=="number"){_&&(I=_);var O=0,M=function(){};return{s:M,n:function(){return O>=I.length?{done:!0}:{done:!1,value:I[O++]}},e:function(t){throw t},f:M}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var T=!0,n=!1,p;return{s:function(){_=I[Symbol.iterator]()},n:function(){var t=_.next();return T=t.done,t},e:function(t){n=!0,p=t},f:function(){try{!T&&_.return!=null&&_.return()}finally{if(n)throw p}}}}},rHrb:function(Be,ee,v){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.CopyToClipboard=void 0;var Z=I(v("q1tI")),Q=I(v("+QRC"));function I(o){return o&&o.__esModule?o:{default:o}}function k(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?k=function(E){return typeof E}:k=function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},k(o)}function _(o,u){var E=Object.keys(o);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(o);u&&(R=R.filter(function(w){return Object.getOwnPropertyDescriptor(o,w).enumerable})),E.push.apply(E,R)}return E}function O(o){for(var u=1;u<arguments.length;u++){var E=arguments[u]!=null?arguments[u]:{};u%2?_(E,!0).forEach(function(R){d(o,R,E[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(E)):_(E).forEach(function(R){Object.defineProperty(o,R,Object.getOwnPropertyDescriptor(E,R))})}return o}function M(o,u){if(o==null)return{};var E=T(o,u),R,w;if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(o);for(w=0;w<P.length;w++){if(R=P[w],u.indexOf(R)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(o,R))continue;E[R]=o[R]}}return E}function T(o,u){if(o==null)return{};var E={},R=Object.keys(o),w,P;for(P=0;P<R.length;P++){if(w=R[P],u.indexOf(w)>=0)continue;E[w]=o[w]}return E}function n(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}function p(o,u){for(var E=0;E<u.length;E++){var R=u[E];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(o,R.key,R)}}function a(o,u,E){return u&&p(o.prototype,u),E&&p(o,E),o}function t(o,u){return u&&(k(u)==="object"||typeof u=="function")?u:l(o)}function A(o){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},A(o)}function l(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function i(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),u&&c(o,u)}function c(o,u){return c=Object.setPrototypeOf||function(R,w){return R.__proto__=w,R},c(o,u)}function d(o,u,E){return u in o?Object.defineProperty(o,u,{value:E,enumerable:!0,configurable:!0,writable:!0}):o[u]=E,o}var f=function(o){i(u,o);function u(){var E,R;n(this,u);for(var w=arguments.length,P=new Array(w),C=0;C<w;C++)P[C]=arguments[C];return R=t(this,(E=A(u)).call.apply(E,[this].concat(P))),d(l(R),"onClick",function(b){var s=R.props,h=s.text,m=s.onCopy,x=s.children,g=s.options,y=Z.default.Children.only(x),U=(0,Q.default)(h,g);m&&m(h,U),y&&y.props&&typeof y.props.onClick=="function"&&y.props.onClick(b)}),R}return a(u,[{key:"render",value:function(){var R=this.props,w=R.text,P=R.onCopy,C=R.options,b=R.children,s=M(R,["text","onCopy","options","children"]),h=Z.default.Children.only(b);return Z.default.cloneElement(h,O({},s,{onClick:this.onClick}))}}]),u}(Z.default.PureComponent);ee.CopyToClipboard=f,d(f,"defaultProps",{onCopy:void 0,options:void 0})},rUJ1:function(Be,ee){const v=/[&<>"']/,Z=/[&<>"']/g,Q=/[<>"']|&(?!#?\w+;)/,I=/[<>"']|&(?!#?\w+;)/g,k={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},_=C=>k[C];function O(C,b){if(b){if(v.test(C))return C.replace(Z,_)}else if(Q.test(C))return C.replace(I,_);return C}const M=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function T(C){return C.replace(M,(b,s)=>(s=s.toLowerCase(),s==="colon"?":":s.charAt(0)==="#"?s.charAt(1)==="x"?String.fromCharCode(parseInt(s.substring(2),16)):String.fromCharCode(+s.substring(1)):""))}const n=/(^|[^\[])\^/g;function p(C,b){C=C.source||C,b=b||"";const s={replace:(h,m)=>(m=m.source||m,m=m.replace(n,"$1"),C=C.replace(h,m),s),getRegex:()=>new RegExp(C,b)};return s}const a=/[^\w:]/g,t=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function A(C,b,s){if(C){let h;try{h=decodeURIComponent(T(s)).replace(a,"").toLowerCase()}catch(m){return null}if(h.indexOf("javascript:")===0||h.indexOf("vbscript:")===0||h.indexOf("data:")===0)return null}b&&!t.test(s)&&(s=f(b,s));try{s=encodeURI(s).replace(/%25/g,"%")}catch(h){return null}return s}const l={},i=/^[^:]+:\/*[^/]*$/,c=/^([^:]+:)[\s\S]*$/,d=/^([^:]+:\/*[^/]*)[\s\S]*$/;function f(C,b){l[" "+C]||(i.test(C)?l[" "+C]=C+"/":l[" "+C]=R(C,"/",!0)),C=l[" "+C];const s=C.indexOf(":")===-1;return b.substring(0,2)==="//"?s?b:C.replace(c,"$1")+b:b.charAt(0)==="/"?s?b:C.replace(d,"$1")+b:C+b}const o={exec:function(){}};function u(C){let b=1,s,h;for(;b<arguments.length;b++){s=arguments[b];for(h in s)Object.prototype.hasOwnProperty.call(s,h)&&(C[h]=s[h])}return C}function E(C,b){const s=C.replace(/\|/g,(x,g,y)=>{let U=!1,N=g;for(;--N>=0&&y[N]==="\\";)U=!U;return U?"|":" |"}),h=s.split(/ \|/);let m=0;if(h.length>b)h.splice(b);else for(;h.length<b;)h.push("");for(;m<h.length;m++)h[m]=h[m].trim().replace(/\\\|/g,"|");return h}function R(C,b,s){const h=C.length;if(h===0)return"";let m=0;for(;m<h;){const x=C.charAt(h-m-1);if(x===b&&!s)m++;else if(x!==b&&s)m++;else break}return C.substr(0,h-m)}function w(C,b){if(C.indexOf(b[1])===-1)return-1;const s=C.length;let h=0,m=0;for(;m<s;m++)if(C[m]==="\\")m++;else if(C[m]===b[0])h++;else if(C[m]===b[1]&&(h--,h<0))return m;return-1}function P(C){C&&C.sanitize&&!C.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")}Be.exports={escape:O,unescape:T,edit:p,cleanUrl:A,resolveUrl:f,noopTest:o,merge:u,splitCells:E,rtrim:R,findClosingBracket:w,checkSanitizeDeprecation:P}},rmlV:function(Be,ee,v){var Z=v("y+Vt"),Q=Z.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(I,k){var _=.5522848,O=k.cx,M=k.cy,T=k.rx,n=k.ry,p=T*_,a=n*_;I.moveTo(O-T,M),I.bezierCurveTo(O-T,M-a,O-p,M-n,O,M-n),I.bezierCurveTo(O+p,M-n,O+T,M-a,O+T,M),I.bezierCurveTo(O+T,M+a,O+p,M+n,O,M+n),I.bezierCurveTo(O-p,M+n,O-T,M+a,O-T,M),I.closePath()}});Be.exports=Q},sBCT:function(Be,ee,v){"use strict";var Z=v("+BJd"),Q=v("mr32"),I=v("oBTY"),k=v("0Owb"),_=v("MXD1"),O=v("CFYs"),M=v("k1fw"),T=v("9og8"),n=v("2qtc"),p=v("kLXV"),a=v("miYZ"),t=v("tsqr"),A=v("y8nQ"),l=v("Vl3Y"),i=v("tJVT"),c=v("5NDa"),d=v("5rEg"),f=v("WmNS"),o=v.n(f),u=v("q1tI"),E=v.n(u),R=v("Ty5D"),w=v("55Ip"),P=v("9kvl"),C=v("kwm0"),b=v.n(C),s=v("h/US"),h=v("xKgJ"),m=v("9+Du"),x=d.a.TextArea,g=1024,y=function(N){var S,H,F=N.user,B=N.globalSetting,z=N.loading,K=N.dispatch,$=N.visible,te=N.editData,fe=N.onCancel,Ae=fe===void 0?function(){}:fe,ce=N.onOk,ie=ce===void 0?function(){}:ce,ye=N.queryParams,le=ye===void 0?{}:ye,me=Object(R.i)(),se=l.a.useForm(),ge=Object(i.a)(se,1),ae=ge[0],pe=Object(u.useState)([]),Me=Object(i.a)(pe,2),xe=Me[0],Ke=Me[1],et=Object(u.useState)(!1),he=Object(i.a)(et,2),Se=he[0],Ue=he[1],Ne=Object(u.useRef)(),ct=Object(u.useState)(),ft=Object(i.a)(ct,2),Ot=ft[0],dt=ft[1],Ut=Object(u.useState)(!1),jt=Object(i.a)(Ut,2),ze=jt[0],Ve=jt[1],Et=Object(u.useState)(!1),Rt=Object(i.a)(Et,2),ut=Rt[0],vt=Rt[1],Ze=Object(h.v)()?3:1;Object(u.useEffect)(function(){var mt,Je,Qe,Oe;if(!$)return;if(!te)return;Ve(te.is_link),dt(te.link),!te.is_link&&Ke([{name:te==null||((mt=te.video_item)===null||mt===void 0)?void 0:mt.file_name,loaded:100,videoId:te==null||((Je=te.video_item)===null||Je===void 0)?void 0:Je.video_id}]),en((te==null||((Qe=te.tags)===null||Qe===void 0)?void 0:Qe.map(function(je){return je==null?void 0:je.name}))||[]),ae.setFieldsValue({name:te.name,description:te.description,attachment_id:te==null||((Oe=te.video)===null||Oe===void 0)?void 0:Oe.attachment_id})},[te,$]);var ke=function(Je){Ve(!1);var Qe=Je.name.toLowerCase();return Qe&&Qe.indexOf(".avi")==-1&&Qe.indexOf(".flv")==-1&&Qe.indexOf(".f4v")==-1&&Qe.indexOf(".m4v")==-1&&Qe.indexOf(".mov")==-1&&Qe.indexOf(".mp4")==-1&&Qe.indexOf(".rmvb")==-1&&Qe.indexOf(".swf")==-1&&Qe.indexOf(".webm")==-1&&Qe.indexOf(".wmv")==-1?(t.b.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),!0):Je.size>g*Ze*1024*1024?(t.b.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC7".concat(Ze,"G")),!0):xe!=null&&xe.find(function(Oe){return Oe.name===Je.name})?(t.b.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),!0):!1},He=function(Je,Qe){p.a.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:E.a.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",Qe?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:function(){Qe?Ke([]):(Ne.current.cancel(),Ke([]))}})},we=function(){var mt=Object(T.a)(o.a.mark(function Je(){var Qe,Oe;return o.a.wrap(function(St){for(;;)switch(St.prev=St.next){case 0:return St.next=2,ae.validateFields();case 2:if(!(!ze&&!(xe!=null&&xe.length)||ze&&!Ot)){St.next=5;break}return t.b.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891\u6216\u8005\u6DFB\u52A0\u5916\u94FE"),St.abrupt("return");case 5:return vt(!0),Qe=ze?{link:Ot}:{video_id:xe==null?void 0:xe[0].videoId},St.next=9,ie(Object(M.a)(Object(M.a)(Object(M.a)({},Qe),le),{name:ae.getFieldValue("name"),attachment_id:ae.getFieldValue("attachment_id"),description:ae.getFieldValue("description"),tags:Lt}));case 9:Oe=St.sent,vt(!1),Oe.id&&Le();case 12:case"end":return St.stop()}},Je)}));return function(){return mt.apply(this,arguments)}}(),Le=function(){ae.resetFields(),Ke([]),dt(null),en([]),Ve(null)},Pe=function(){Ae(),Le()},We=function(){var Je,Qe,Oe,je,St;return E.a.createElement(E.a.Fragment,null,!ze&&!!(xe!=null&&xe.length)&&E.a.createElement("div",{className:b.a.fileProgress},(xe==null||((Je=xe[0])===null||Je===void 0)?void 0:Je.loaded)==100?E.a.createElement("div",{className:"".concat(b.a.videoName," font14")},xe==null||((Qe=xe[0])===null||Qe===void 0)?void 0:Qe.name):E.a.createElement(O.a,{style:{width:"80%"},percent:xe==null||((Oe=xe[0])===null||Oe===void 0)?void 0:Oe.loaded,status:(xe==null||((je=xe[0])===null||je===void 0)?void 0:je.loaded)==100?"normal":"active"}),E.a.createElement("div",{className:b.a.fileCancel,onClick:function(){var Dt,Qt;return He(xe==null||((Dt=xe[0])===null||Dt===void 0)?void 0:Dt.name,(xe==null||((Qt=xe[0])===null||Qt===void 0)?void 0:Qt.loaded)==100)}},(xe==null||((St=xe[0])===null||St===void 0)?void 0:St.loaded)===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20")),E.a.createElement("div",{className:b.a.uploadWrap,style:{display:xe!=null&&xe.length?"none":"flex"}},E.a.createElement(m.a,Object(k.a)({},Ct,{ref:Ne}),E.a.createElement("div",{className:b.a.upload},E.a.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4E0A\u4F20\u89C6\u9891")),E.a.createElement("label",{className:"".concat(b.a.upload," ").concat(b.a.uploadLink),onClick:function(){return Ve(!0)}},E.a.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6DFB\u52A0\u5916\u94FE")),ze&&E.a.createElement(d.a,{className:"mt5",placeholder:"\u8BF7\u8F93\u5165\u89C6\u9891\u94FE\u63A5",value:Ot,onChange:function(Dt){return dt(Dt.target.value)}}))},Xe=Object(u.useState)([]),gt=Object(i.a)(Xe,2),Lt=gt[0],en=gt[1],Zt=function(Je){if(Je.key=="Enter"){var Qe=ae.getFieldValue("tag");if(ae.setFieldsValue({tag:""}),!Qe){t.b.info("\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A");return}if(Lt.filter(function(Oe){return Oe===Qe}).length>0){t.b.info("\u5DF2\u6709\u76F8\u540C\u540D\u79F0\u6807\u7B7E");return}Lt.push(Qe),en(Object(I.a)(Lt))}},xt=function(Je,Qe){Je.preventDefault(),en(Object(I.a)(Lt.filter(function(Oe){return Oe!=Qe})))},Ct={accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*",onBefore:ke,onBeginInitFile:function(Je){Ke([{name:Je.filename,loaded:0}])},onComplete:function(Je){Ke([{name:Je.filename,loaded:Je.percent,videoId:Je.id}])},onError:function(){Ke([])},onProgress:function(Je){Ke([{name:Je.filename,loaded:Je.percent}])},chunkSize:1024*1024*2,options:{user_id:F==null||((S=F.userInfo)===null||S===void 0)?void 0:S.user_id}};return E.a.createElement(p.a,{centered:!0,maskClosable:!1,title:te?"\u7F16\u8F91\u89C6\u9891\u9879\u76EE":"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE",width:740,className:b.a.modal,visible:$,confirmLoading:ut,onOk:we,onCancel:Pe},E.a.createElement(l.a,{form:ae},E.a.createElement(l.a.Item,{label:"\u9879\u76EE\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}]},E.a.createElement(d.a,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u9879\u76EE\u540D\u79F0"})),E.a.createElement(l.a.Item,{label:"\u9879\u76EE\u5185\u5BB9",name:"content",className:b.a.contentItem},We()),E.a.createElement(l.a.Item,{name:"attachment_id",label:"\u4E0A\u4F20\u5C01\u9762\u56FE:"},E.a.createElement(s.a,{getFileProgress:function(Je){if(Je.file.status==="uploading"){vt(!0);return}Je.file.status==="done"&&vt(!1)}})),E.a.createElement(l.a.Item,{label:"\u9879\u76EE\u7B80\u4ECB",name:"description",className:"ml8"},E.a.createElement(x,{rows:5,maxLength:800,placeholder:"\u8BF7\u8F93\u5165\u672C\u89C6\u9891\u7B80\u4ECB\uFF0C\u6700\u591A\u4E0D\u8D85\u8FC7800\u5B57"})),E.a.createElement(l.a.Item,{label:"\u77E5\u8BC6\u6807\u7B7E",name:"tag",className:"ml8"},E.a.createElement(d.a,{onKeyUp:Zt})),E.a.createElement("div",{className:b.a["tagsList-content"]},Lt.map(function(mt,Je){return E.a.createElement(Q.a,{key:Je+mt,closable:!0,onClose:function(Oe){xt(Oe,mt)}},mt)})),E.a.createElement("div",{className:"c-grey-999"},E.a.createElement("div",null,"\u6CE8\u610F\uFF1A"),E.a.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",E.a.createElement(w.a,{to:"/users/".concat((H=F.userInfo)===null||H===void 0?void 0:H.login,"/videos/protocol"),target:"_blank",className:b.a.colorBlue},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),E.a.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7",Ze,"G\uFF1B"),E.a.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"),E.a.createElement("div",null,"4\u3001\u5982\u679C\u89C6\u9891\u6765\u81EA\u4E8E\u5916\u90E8\u94FE\u63A5\uFF0C\u672C\u7F51\u7AD9\u4E0D\u63D0\u4F9B\u64AD\u653E\u9875\u9762\uFF0C\u65E0\u6CD5\u63D0\u4F9B\u7EDF\u8BA1\u6570\u636E\u3002"))))};ee.a=Object(P.a)(function(U){var N=U.user,S=U.loading,H=U.globalSetting;return{user:N,globalSetting:H,loading:S}})(y)},sR1s:function(Be,ee,v){"use strict";v.d(ee,"b",function(){return k}),v.d(ee,"a",function(){return _}),v.d(ee,"c",function(){return O}),v.d(ee,"d",function(){return M});var Z=v("U8pU"),Q="RC_TABLE_KEY";function I(T){return T==null?[]:Array.isArray(T)?T:[T]}function k(T,n){if(!n&&typeof n!="number")return T;for(var p=I(n),a=T,t=0;t<p.length;t+=1){if(!a)return null;var A=p[t];a=a[A]}return a}function _(T){var n=[],p={};return T.forEach(function(a){for(var t=a||{},A=t.key,l=t.dataIndex,i=A||I(l).join("-")||Q;p[i];)i="".concat(i,"_next");p[i]=!0,n.push(i)}),n}function O(){var T={};function n(A,l){l&&Object.keys(l).forEach(function(i){var c=l[i];c&&Object(Z.a)(c)==="object"?(A[i]=A[i]||{},n(A[i],c)):A[i]=c})}for(var p=arguments.length,a=new Array(p),t=0;t<p;t++)a[t]=arguments[t];return a.forEach(function(A){n(T,A)}),T}function M(T){return T!=null}},"sW+o":function(Be,ee,v){var Z=v("SrGk"),Q=v("bYtY"),I=v("SUKs"),k=v("Qe9p");function _(M,T){Z.call(this,M,T,["linearGradient","radialGradient"],"__gradient_in_use__")}Q.inherits(_,Z),_.prototype.addWithoutUpdate=function(M,T){if(T&&T.style){var n=this;Q.each(["fill","stroke"],function(p){if(T.style[p]&&(T.style[p].type==="linear"||T.style[p].type==="radial")){var a=T.style[p],t=n.getDefs(!0),A;a._dom?(A=a._dom,t.contains(a._dom)||n.addDom(A)):A=n.add(a),n.markUsed(T);var l=A.getAttribute("id");M.setAttribute(p,"url(#"+l+")")}})}},_.prototype.add=function(M){var T;if(M.type==="linear")T=this.createElement("linearGradient");else if(M.type==="radial")T=this.createElement("radialGradient");else return I("Illegal gradient type."),null;return M.id=M.id||this.nextId++,T.setAttribute("id","zr"+this._zrId+"-gradient-"+M.id),this.updateDom(M,T),this.addDom(T),T},_.prototype.update=function(M){var T=this;Z.prototype.update.call(this,M,function(){var n=M.type,p=M._dom.tagName;n==="linear"&&p==="linearGradient"||n==="radial"&&p==="radialGradient"?T.updateDom(M,M._dom):(T.removeDom(M),T.add(M))})},_.prototype.updateDom=function(M,T){if(M.type==="linear")T.setAttribute("x1",M.x),T.setAttribute("y1",M.y),T.setAttribute("x2",M.x2),T.setAttribute("y2",M.y2);else if(M.type==="radial")T.setAttribute("cx",M.x),T.setAttribute("cy",M.y),T.setAttribute("r",M.r);else{I("Illegal gradient type.");return}M.global?T.setAttribute("gradientUnits","userSpaceOnUse"):T.setAttribute("gradientUnits","objectBoundingBox"),T.innerHTML="";for(var n=M.colorStops,p=0,a=n.length;p<a;++p){var t=this.createElement("stop");t.setAttribute("offset",n[p].offset*100+"%");var A=n[p].color;if(A.indexOf("rgba">-1)){var l=k.parse(A)[3],i=k.toHex(A);t.setAttribute("stop-color","#"+i),t.setAttribute("stop-opacity",l)}else t.setAttribute("stop-color",n[p].color);T.appendChild(t)}M._dom=T},_.prototype.markUsed=function(M){if(M.style){var T=M.style.fill;T&&T._dom&&Z.prototype.markUsed.call(this,T._dom),T=M.style.stroke,T&&T._dom&&Z.prototype.markUsed.call(this,T._dom)}};var O=_;Be.exports=O},sboe:function(Be,ee,v){"use strict";v.d(ee,"a",function(){return I});var Z=v("q1tI"),Q=v.n(Z),I=Z.createContext(null)},t23M:function(Be,ee,v){"use strict";var Z=v("VTBJ"),Q=v("1OyB"),I=v("vuIU"),k=v("Ji7U"),_=v("LK+K"),O=v("q1tI"),M=v.n(O),T=v("m+aA"),n=v("Zm9Q"),p=v("Kwbf"),a=v("c+Xe"),t=v("bdgK"),A="rc-observer-key",l=function(i){Object(k.a)(d,i);var c=Object(_.a)(d);function d(){var f;return Object(Q.a)(this,d),f=c.apply(this,arguments),f.resizeObserver=null,f.childNode=null,f.currentElement=null,f.state={width:0,height:0,offsetHeight:0,offsetWidth:0},f.onResize=function(o){var u=f.props.onResize,E=o[0].target,R=E.getBoundingClientRect(),w=R.width,P=R.height,C=E.offsetWidth,b=E.offsetHeight,s=Math.floor(w),h=Math.floor(P);if(f.state.width!==s||f.state.height!==h||f.state.offsetWidth!==C||f.state.offsetHeight!==b){var m={width:s,height:h,offsetWidth:C,offsetHeight:b};f.setState(m),u&&Promise.resolve().then(function(){u(Object(Z.a)(Object(Z.a)({},m),{},{offsetWidth:C,offsetHeight:b}))})}},f.setChildNode=function(o){f.childNode=o},f}return Object(I.a)(d,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var o=this.props.disabled;if(o){this.destroyObserver();return}var u=Object(T.a)(this.childNode||this),E=u!==this.currentElement;E&&(this.destroyObserver(),this.currentElement=u),!this.resizeObserver&&u&&(this.resizeObserver=new t.default(this.onResize),this.resizeObserver.observe(u))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var o=this.props.children,u=Object(n.a)(o);if(u.length>1)Object(p.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(u.length===0)return Object(p.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var E=u[0];if(O.isValidElement(E)&&Object(a.c)(E)){var R=E.ref;u[0]=O.cloneElement(E,{ref:Object(a.a)(R,this.setChildNode)})}return u.length===1?u[0]:u.map(function(w,P){return!O.isValidElement(w)||"key"in w&&w.key!==null?w:O.cloneElement(w,{key:"".concat(A,"-").concat(P)})})}}]),d}(O.Component);l.displayName="ResizeObserver",ee.a=l},t9D7:function(Be,ee,v){"use strict";v.d(ee,"b",function(){return M}),v.d(ee,"g",function(){return n}),v.d(ee,"d",function(){return p}),v.d(ee,"e",function(){return a}),v.d(ee,"a",function(){return t}),v.d(ee,"f",function(){return i}),v.d(ee,"c",function(){return c});var Z=v("Vhoy"),Q=v("MI8n"),I=v("pmY6"),k=v("Cg/j"),_=v("ic2d"),O=v("nEHx");const M=Object(k.c)("themeService");var T;(function(d){function f(o){return o&&typeof o=="object"&&typeof o.id=="string"}d.isThemeColor=f})(T||(T={}));function n(d){return{id:d}}var p;(function(d){function f(P){return P&&typeof P=="object"&&typeof P.id=="string"&&(typeof P.color=="undefined"||T.isThemeColor(P.color))}d.isThemeIcon=f;const o=new RegExp(`^\\$\\((${Z.a.iconNameExpression}(?:${Z.a.iconModifierExpression})?)\\)$`);function u(P){const C=o.exec(P);if(!C)return;let[,b]=C;return{id:b}}d.fromString=u;function E(P,C){let b=P.id;const s=b.lastIndexOf("~");return s!==-1&&(b=b.substring(0,s)),C&&(b=`${b}~${C}`),{id:b}}d.modify=E;function R(P,C){var b,s;return P.id===C.id&&((b=P.color)===null||b===void 0?void 0:b.id)===((s=C.color)===null||s===void 0?void 0:s.id)}d.isEqual=R;function w(P,C){return{id:P.id,color:C?n(C):void 0}}d.asThemeIcon=w,d.asClassNameArray=Z.a.asClassNameArray,d.asClassName=Z.a.asClassName,d.asCSSSelector=Z.a.asCSSSelector})(p||(p={}));function a(d){switch(d){case O.a.DARK:return"vs-dark";case O.a.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const t={ThemingContribution:"base.contributions.theming"};class A{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new Q.b}onColorThemeChange(d){return this.themingParticipants.push(d),this.onThemingParticipantAddedEmitter.fire(d),Object(I.i)(()=>{const f=this.themingParticipants.indexOf(d);this.themingParticipants.splice(f,1)})}getThemingParticipants(){return this.themingParticipants}}let l=new A;_.a.add(t.ThemingContribution,l);function i(d){return l.onColorThemeChange(d)}class c extends I.a{constructor(d){super();this.themeService=d,this.theme=d.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(f=>this.onThemeChange(f)))}onThemeChange(d){this.theme=d,this.updateStyles()}updateStyles(){}}},tWlo:function(Be,ee){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkVCNENBMTM0OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkVCNENBMTM1OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RUI0Q0ExMzI4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RUI0Q0ExMzM4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7p3KzkAAAFvElEQVR42sRae0ybVRQ/peVRaFce8pwgj1Je5TFsEHGbMAkzmqiJyba4hYh/LJlxiRr9Z0aNGv8xvhKTGckM2zKWmGEgU7MsPnCZIrKBjMcKY9BCBMqjjEcLtFDwHPZVC12h934f8yS/P6Dfud/5nXvvueec+8neOPEuSCAxiDJEMSITkYKIRoQJv9sREwgTogfRjGhEjIt9sUKEbhSiEvEC4mGEbJNngxGRiAzEk8L/VhGtiPOIswgrjxEBHDrxiE8Qg4hPEYYtjPclMkGXxhhCfIFI2E4CNFtvIm4hXvdYHlJIKOIVRK/wjkCpCaQjWhAfIVSwfaIS3kHvypaKwLOI64hdcP+kAPEn4jmxBI4ivkXsgPsvNBt1gg1cBI4hvkLI4f8TuWDDMdYw+owQFdh3Y6gSCnL1oNOmQnxcHAQHB8HCwiLMzM7C8KgFjD23oN9khtXVVZZhyZZhxEV/CGQhalk9r1AoYO9jxfBokQGCgoK8SBHi42LBsCsfJq1TcOnHn+F2v4llJsimIoRx3Q8le0o9/6bwdRmRxGJ8ZEQ4vHjkEORkZYBcLvdrlvL0OeBwOuDv4RF/X0Ne2Y34GrHiaw+8ishnMT4tNRmOVlVCTPQDzKfY/vJ9kJWpY1Ej217ztYnpFHyH6UjGJXH4wPOgVIZw7VAi8XRFOSjkTKv1bc8T25PACdZDan95mV9LZjNRq1Wg02lZw+tbGwnQ/L/EMooyJASSkxIliZUp7ONUCTb/S+AI2cTqOZlMJgmBcI2GVUUp2LyOAJMwxvHN04EAnqQYDrsJUDFSyKrtdC5JRmDR4eBRoxokgQjs48nn5+fnJSNgt3ONRTaXEYFHeLSXlpd5Peclk1Yrr6ohQKhhuWR6ekYSAiOWMV7VDCKg5Z0/uwTLaNnlAssYd22fTgRieTRz9dmQlpIsmgCdwuWle3nVY4mAmkczLCxUsk0cEaHhVVUH8GqOT0xKRmB6ZpZX1UkE5ng0zeYhsNntkhBgqAs2yhwR4AoBrpUVaO/oEm38nelp6B/gJnCHCNzm1f79jxaWgsRLbDY7XKj/Dlb405I+ItDDqz2/sACnTp9DEqNc+qfO1MLwyKiYCewNEPov3EK+G59k39BOp3Nt+YiUViLQKNjBH8sV7EXNivhslgb4xb2J28SMtMSRmbrwBBYpZPOI+xw4J2aka23tzB4VETrdct6zoCECC7wjjWIy1tbewZT//9R4RYzxZOtZTwK0C2vEjHjT2Ov3sx2d3TA7ZxPzuhrB5nVdiQ8pNPPvKP+XkEjjbYKtXm0VOpHe5x01KDDI72dFtmI+EGz1IkDyOeIvnlETH/T/digqKoLXeLLts3UNgY0REXGQZpmpqtCmrjV1/ZWcrEzIzEhnTtwQhwQb/5vNDc1dkinak4gDsMUFSEhwMJQ9vhueqihnWhYBMhnokYRGowGLZRwcW9fWLsGxTV6HqA8F6sMfR5z0qiDUKsjQpoEuPQ1SsSILVPDd1FJTrDA/Fwry9NDX1w9dxh7MSs2+ytTjcI+7gc0IkHwpMD+JnpbnZGdCXk4WPJSUKFlHzj0bGTrtGqhZNjJqgQHzIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},u3os:function(Be,ee,v){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.ver=ee.clear=ee.bind=void 0;var Z=v("P4Qj"),Q=function(O,M){var T=(0,Z.getSensor)(O);return T.bind(M),function(){T.unbind(M)}};ee.bind=Q;var I=function(O){var M=(0,Z.getSensor)(O);(0,Z.removeSensor)(M)};ee.clear=I;var k="1.0.1";ee.ver=k},uK0f:function(Be,ee,v){(function(Z,Q){Be.exports=Q()})(this,function(){"use strict";function Z(Q,I,k){k=k||{},k.childrenKeyName=k.childrenKeyName||"children";var _=Q||[],O=[],M=0;do{var T=_.filter(function(n){return I(n,M)})[0];if(!T)break;O.push(T),_=T[k.childrenKeyName]||[],M+=1}while(_.length>0);return O}return Z})},uRQ9:function(Be,ee,v){Be.exports={flex_box_center:"flex_box_center___1iLgt",flex_space_between:"flex_space_between___3p7p-",flex_box_vertical_center:"flex_box_vertical_center___3FnaF",flex_box_center_end:"flex_box_center_end___XIPip",flex_box_column:"flex_box_column___3ji4d",certificate:"certificate___3Sn4A",actionsBtns:"actionsBtns___30qsn"}},ulZh:function(Be,ee,v){typeof window!="undefined"&&function(Q,I){Be.exports=I()}(this,function(){return function(Z){var Q={};function I(k){if(Q[k])return Q[k].exports;var _=Q[k]={i:k,l:!1,exports:{}};return Z[k].call(_.exports,_,_.exports,I),_.l=!0,_.exports}return I.m=Z,I.c=Q,I.d=function(k,_,O){I.o(k,_)||Object.defineProperty(k,_,{enumerable:!0,get:O})},I.r=function(k){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(k,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(k,"__esModule",{value:!0})},I.t=function(k,_){if(_&1&&(k=I(k)),_&8)return k;if(_&4&&typeof k=="object"&&k&&k.__esModule)return k;var O=Object.create(null);if(I.r(O),Object.defineProperty(O,"default",{enumerable:!0,value:k}),_&2&&typeof k!="string")for(var M in k)I.d(O,M,function(T){return k[T]}.bind(null,M));return O},I.n=function(k){var _=k&&k.__esModule?function(){return k.default}:function(){return k};return I.d(_,"a",_),_},I.o=function(k,_){return Object.prototype.hasOwnProperty.call(k,_)},I.p="/dist/",I(I.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(Z,Q,I){"use strict";var k=Object.prototype.hasOwnProperty,_="~";function O(){}Object.create&&(O.prototype=Object.create(null),new O().__proto__||(_=!1));function M(a,t,A){this.fn=a,this.context=t,this.once=A||!1}function T(a,t,A,l,i){if(typeof A!="function")throw new TypeError("The listener must be a function");var c=new M(A,l||a,i),d=_?_+t:t;return a._events[d]?a._events[d].fn?a._events[d]=[a._events[d],c]:a._events[d].push(c):(a._events[d]=c,a._eventsCount++),a}function n(a,t){--a._eventsCount===0?a._events=new O:delete a._events[t]}function p(){this._events=new O,this._eventsCount=0}p.prototype.eventNames=function(){var t=[],A,l;if(this._eventsCount===0)return t;for(l in A=this._events)k.call(A,l)&&t.push(_?l.slice(1):l);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(A)):t},p.prototype.listeners=function(t){var A=_?_+t:t,l=this._events[A];if(!l)return[];if(l.fn)return[l.fn];for(var i=0,c=l.length,d=new Array(c);i<c;i++)d[i]=l[i].fn;return d},p.prototype.listenerCount=function(t){var A=_?_+t:t,l=this._events[A];return l?l.fn?1:l.length:0},p.prototype.emit=function(t,A,l,i,c,d){var f=_?_+t:t;if(!this._events[f])return!1;var o=this._events[f],u=arguments.length,E,R;if(o.fn){o.once&&this.removeListener(t,o.fn,void 0,!0);switch(u){case 1:return o.fn.call(o.context),!0;case 2:return o.fn.call(o.context,A),!0;case 3:return o.fn.call(o.context,A,l),!0;case 4:return o.fn.call(o.context,A,l,i),!0;case 5:return o.fn.call(o.context,A,l,i,c),!0;case 6:return o.fn.call(o.context,A,l,i,c,d),!0}for(R=1,E=new Array(u-1);R<u;R++)E[R-1]=arguments[R];o.fn.apply(o.context,E)}else{var w=o.length,P;for(R=0;R<w;R++){o[R].once&&this.removeListener(t,o[R].fn,void 0,!0);switch(u){case 1:o[R].fn.call(o[R].context);break;case 2:o[R].fn.call(o[R].context,A);break;case 3:o[R].fn.call(o[R].context,A,l);break;case 4:o[R].fn.call(o[R].context,A,l,i);break;default:if(!E)for(P=1,E=new Array(u-1);P<u;P++)E[P-1]=arguments[P];o[R].fn.apply(o[R].context,E)}}}return!0},p.prototype.on=function(t,A,l){return T(this,t,A,l,!1)},p.prototype.once=function(t,A,l){return T(this,t,A,l,!0)},p.prototype.removeListener=function(t,A,l,i){var c=_?_+t:t;if(!this._events[c])return this;if(!A)return n(this,c),this;var d=this._events[c];if(d.fn)d.fn===A&&(!i||d.once)&&(!l||d.context===l)&&n(this,c);else{for(var f=0,o=[],u=d.length;f<u;f++)(d[f].fn!==A||i&&!d[f].once||l&&d[f].context!==l)&&o.push(d[f]);o.length?this._events[c]=o.length===1?o[0]:o:n(this,c)}return this},p.prototype.removeAllListeners=function(t){var A;return t?(A=_?_+t:t,this._events[A]&&n(this,A)):(this._events=new O,this._eventsCount=0),this},p.prototype.off=p.prototype.removeListener,p.prototype.addListener=p.prototype.on,p.prefixed=_,p.EventEmitter=p,Z.exports=p},"./node_modules/url-toolkit/src/url-toolkit.js":function(Z,Q,I){(function(k){var _=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,O=/^([^\/?#]*)([^]*)$/,M=/(?:\/|^)\.(?=\/)/g,T=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,n={buildAbsoluteURL:function(p,a,t){if(t=t||{},p=p.trim(),a=a.trim(),!a){if(!t.alwaysNormalize)return p;var A=n.parseURL(p);if(!A)throw new Error("Error trying to parse base URL.");return A.path=n.normalizePath(A.path),n.buildURLFromParts(A)}var l=n.parseURL(a);if(!l)throw new Error("Error trying to parse relative URL.");if(l.scheme)return t.alwaysNormalize?(l.path=n.normalizePath(l.path),n.buildURLFromParts(l)):a;var i=n.parseURL(p);if(!i)throw new Error("Error trying to parse base URL.");if(!i.netLoc&&i.path&&i.path[0]!=="/"){var c=O.exec(i.path);i.netLoc=c[1],i.path=c[2]}i.netLoc&&!i.path&&(i.path="/");var d={scheme:i.scheme,netLoc:l.netLoc,path:null,params:l.params,query:l.query,fragment:l.fragment};if(!l.netLoc&&(d.netLoc=i.netLoc,l.path[0]!=="/"))if(!l.path)d.path=i.path,l.params||(d.params=i.params,l.query||(d.query=i.query));else{var f=i.path,o=f.substring(0,f.lastIndexOf("/")+1)+l.path;d.path=n.normalizePath(o)}return d.path===null&&(d.path=t.alwaysNormalize?n.normalizePath(l.path):l.path),n.buildURLFromParts(d)},parseURL:function(p){var a=_.exec(p);return a?{scheme:a[1]||"",netLoc:a[2]||"",path:a[3]||"",params:a[4]||"",query:a[5]||"",fragment:a[6]||""}:null},normalizePath:function(p){for(p=p.split("").reverse().join("").replace(M,"");p.length!==(p=p.replace(T,"")).length;);return p.split("").reverse().join("")},buildURLFromParts:function(p){return p.scheme+p.netLoc+p.path+p.params+p.query+p.fragment}};Z.exports=n})(this)},"./node_modules/webworkify-webpack/index.js":function(Z,Q,I){function k(t){var A={};function l(c){if(A[c])return A[c].exports;var d=A[c]={i:c,l:!1,exports:{}};return t[c].call(d.exports,d,d.exports,l),d.l=!0,d.exports}l.m=t,l.c=A,l.i=function(c){return c},l.d=function(c,d,f){l.o(c,d)||Object.defineProperty(c,d,{configurable:!1,enumerable:!0,get:f})},l.r=function(c){Object.defineProperty(c,"__esModule",{value:!0})},l.n=function(c){var d=c&&c.__esModule?function(){return c.default}:function(){return c};return l.d(d,"a",d),d},l.o=function(c,d){return Object.prototype.hasOwnProperty.call(c,d)},l.p="/",l.oe=function(c){throw console.error(c),c};var i=l(l.s=ENTRY_MODULE);return i.default||i}var _="[\\.|\\-|\\+|\\w|/|@]+",O="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+_+").*?\\)";function M(t){return(t+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function T(t){return!isNaN(1*t)}function n(t,A,l){var i={};i[l]=[];var c=A.toString(),d=c.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!d)return i;for(var f=d[1],o=new RegExp("(\\\\n|\\W)"+M(f)+O,"g"),u;u=o.exec(c);){if(u[3]==="dll-reference")continue;i[l].push(u[3])}for(o=new RegExp("\\("+M(f)+'\\("(dll-reference\\s('+_+'))"\\)\\)'+O,"g");u=o.exec(c);)t[u[2]]||(i[l].push(u[1]),t[u[2]]=I(u[1]).m),i[u[2]]=i[u[2]]||[],i[u[2]].push(u[4]);for(var E=Object.keys(i),R=0;R<E.length;R++)for(var w=0;w<i[E[R]].length;w++)T(i[E[R]][w])&&(i[E[R]][w]=1*i[E[R]][w]);return i}function p(t){var A=Object.keys(t);return A.reduce(function(l,i){return l||t[i].length>0},!1)}function a(t,A){for(var l={main:[A]},i={main:[]},c={main:{}};p(l);)for(var d=Object.keys(l),f=0;f<d.length;f++){var o=d[f],u=l[o],E=u.pop();if(c[o]=c[o]||{},c[o][E]||!t[o][E])continue;c[o][E]=!0,i[o]=i[o]||[],i[o].push(E);for(var R=n(t,t[o][E],o),w=Object.keys(R),P=0;P<w.length;P++)l[w[P]]=l[w[P]]||[],l[w[P]]=l[w[P]].concat(R[w[P]])}return i}Z.exports=function(t,A){A=A||{};var l={main:I.m},i=A.all?{main:Object.keys(l.main)}:a(l,t),c="";Object.keys(i).filter(function(E){return E!=="main"}).forEach(function(E){for(var R=0;i[E][R];)R++;i[E].push(R),l[E][R]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",c=c+"var "+E+" = ("+k.toString().replace("ENTRY_MODULE",JSON.stringify(R))+")({"+i[E].map(function(w){return""+JSON.stringify(w)+": "+l[E][w].toString()}).join(",")+`});
`}),c=c+"new (("+k.toString().replace("ENTRY_MODULE",JSON.stringify(t))+")({"+i.main.map(function(E){return""+JSON.stringify(E)+": "+l.main[E].toString()}).join(",")+"}))(self);";var d=new window.Blob([c],{type:"text/javascript"});if(A.bare)return d;var f=window.URL||window.webkitURL||window.mozURL||window.msURL,o=f.createObjectURL(d),u=new window.Worker(o);return u.objectURL=o,u}},"./src/config.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"hlsDefaultConfig",function(){return P}),I.d(Q,"mergeConfig",function(){return b}),I.d(Q,"enableStreamingMode",function(){return s});var k=I("./src/controller/abr-controller.ts"),_=I("./src/controller/audio-stream-controller.ts"),O=I("./src/controller/audio-track-controller.ts"),M=I("./src/controller/subtitle-stream-controller.ts"),T=I("./src/controller/subtitle-track-controller.ts"),n=I("./src/controller/buffer-controller.ts"),p=I("./src/controller/timeline-controller.ts"),a=I("./src/controller/cap-level-controller.ts"),t=I("./src/controller/fps-controller.ts"),A=I("./src/controller/eme-controller.ts"),l=I("./src/controller/cmcd-controller.ts"),i=I("./src/utils/xhr-loader.ts"),c=I("./src/utils/fetch-loader.ts"),d=I("./src/utils/cues.ts"),f=I("./src/utils/mediakeys-helper.ts"),o=I("./src/utils/logger.ts");function u(){return u=Object.assign||function(h){for(var m=1;m<arguments.length;m++){var x=arguments[m];for(var g in x)Object.prototype.hasOwnProperty.call(x,g)&&(h[g]=x[g])}return h},u.apply(this,arguments)}function E(h,m){var x=Object.keys(h);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(h);m&&(g=g.filter(function(y){return Object.getOwnPropertyDescriptor(h,y).enumerable})),x.push.apply(x,g)}return x}function R(h){for(var m=1;m<arguments.length;m++){var x=arguments[m]!=null?arguments[m]:{};m%2?E(Object(x),!0).forEach(function(g){w(h,g,x[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(x)):E(Object(x)).forEach(function(g){Object.defineProperty(h,g,Object.getOwnPropertyDescriptor(x,g))})}return h}function w(h,m,x){return m in h?Object.defineProperty(h,m,{value:x,enumerable:!0,configurable:!0,writable:!0}):h[m]=x,h}var P=R(R({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:i.default,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:k.default,bufferController:n.default,capLevelController:a.default,fpsController:t.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:f.requestMediaKeySystemAccess,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0},C()),{},{subtitleStreamController:M.SubtitleStreamController,subtitleTrackController:T.default,timelineController:p.TimelineController,audioStreamController:_.default,audioTrackController:O.default,emeController:A.default,cmcdController:l.default});function C(){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 b(h,m){if((m.liveSyncDurationCount||m.liveMaxLatencyDurationCount)&&(m.liveSyncDuration||m.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(m.liveMaxLatencyDurationCount!==void 0&&(m.liveSyncDurationCount===void 0||m.liveMaxLatencyDurationCount<=m.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(m.liveMaxLatencyDuration!==void 0&&(m.liveSyncDuration===void 0||m.liveMaxLatencyDuration<=m.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');return u({},h,m)}function s(h){var m=h.loader;if(m!==c.default&&m!==i.default)o.logger.log("[config]: Custom loader detected, cannot enable progressive streaming"),h.progressive=!1;else{var x=Object(c.fetchSupported)();x&&(h.loader=c.default,h.progressive=!0,h.enableSoftwareAES=!0,o.logger.log("[config]: Progressive streaming enabled, using FetchLoader"))}}},"./src/controller/abr-controller.ts":function(Z,Q,I){"use strict";I.r(Q);var k=I("./src/polyfills/number.ts"),_=I("./src/utils/ewma-bandwidth-estimator.ts"),O=I("./src/events.ts"),M=I("./src/utils/buffer-helper.ts"),T=I("./src/errors.ts"),n=I("./src/types/loader.ts"),p=I("./src/utils/logger.ts");function a(l,i){for(var c=0;c<i.length;c++){var d=i[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}function t(l,i,c){return i&&a(l.prototype,i),c&&a(l,c),l}var A=function(){function l(c){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=c;var d=c.config;this.bwEstimator=new _.default(d.abrEwmaSlowVoD,d.abrEwmaFastVoD,d.abrEwmaDefaultEstimate),this.registerListeners()}var i=l.prototype;return i.registerListeners=function(){var d=this.hls;d.on(O.Events.FRAG_LOADING,this.onFragLoading,this),d.on(O.Events.FRAG_LOADED,this.onFragLoaded,this),d.on(O.Events.FRAG_BUFFERED,this.onFragBuffered,this),d.on(O.Events.LEVEL_LOADED,this.onLevelLoaded,this),d.on(O.Events.ERROR,this.onError,this)},i.unregisterListeners=function(){var d=this.hls;d.off(O.Events.FRAG_LOADING,this.onFragLoading,this),d.off(O.Events.FRAG_LOADED,this.onFragLoaded,this),d.off(O.Events.FRAG_BUFFERED,this.onFragBuffered,this),d.off(O.Events.LEVEL_LOADED,this.onLevelLoaded,this),d.off(O.Events.ERROR,this.onError,this)},i.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},i.onFragLoading=function(d,f){var o=f.frag;if(o.type===n.PlaylistLevelType.MAIN&&!this.timer){var u;this.fragCurrent=o,this.partCurrent=(u=f.part)!=null?u:null,this.timer=self.setInterval(this.onCheck,100)}},i.onLevelLoaded=function(d,f){var o=this.hls.config;f.details.live?this.bwEstimator.update(o.abrEwmaSlowLive,o.abrEwmaFastLive):this.bwEstimator.update(o.abrEwmaSlowVoD,o.abrEwmaFastVoD)},i._abandonRulesCheck=function(){var d=this.fragCurrent,f=this.partCurrent,o=this.hls,u=o.autoLevelEnabled,E=o.config,R=o.media;if(!d||!R)return;var w=f?f.stats:d.stats,P=f?f.duration:d.duration;if(w.aborted){p.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),this._nextAutoLevel=-1;return}if(!u||R.paused||!R.playbackRate||!R.readyState)return;var C=performance.now()-w.loading.start,b=Math.abs(R.playbackRate);if(C<=500*P/b)return;var s=o.levels,h=o.minAutoLevel,m=s[d.level],x=w.total||Math.max(w.loaded,Math.round(P*m.maxBitrate/8)),g=Math.max(1,w.bwEstimate?w.bwEstimate/8:w.loaded*1e3/C),y=(x-w.loaded)/g,U=R.currentTime,N=(M.BufferHelper.bufferInfo(R,U,E.maxBufferHole).end-U)/b;if(N>=2*P/b||y<=N)return;var S=Number.POSITIVE_INFINITY,H;for(H=d.level-1;H>h;H--){var F=s[H].maxBitrate;if(S=P*F/(8*.8*g),S<N)break}if(S>=y)return;var B=this.bwEstimator.getEstimate();p.logger.warn("Fragment "+d.sn+(f?" part "+f.index:"")+" of level "+d.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+H+`
Current BW estimate: `+(Object(k.isFiniteNumber)(B)?(B/1024).toFixed(3):"Unknown")+` Kb/s
Estimated load time for current fragment: `+y.toFixed(3)+` s
Estimated load time for the next fragment: `+S.toFixed(3)+` s
Time to underbuffer: `+N.toFixed(3)+" s"),o.nextLoadLevel=H,this.bwEstimator.sample(C,w.loaded),this.clearTimer(),d.loader&&(this.fragCurrent=this.partCurrent=null,d.loader.abort()),o.trigger(O.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:d,part:f,stats:w})},i.onFragLoaded=function(d,f){var o=f.frag,u=f.part;if(o.type===n.PlaylistLevelType.MAIN&&Object(k.isFiniteNumber)(o.sn)){var E=u?u.stats:o.stats,R=u?u.duration:o.duration;if(this.clearTimer(),this.lastLoadedFragLevel=o.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var w=this.hls.levels[o.level],P=(w.loaded?w.loaded.bytes:0)+E.loaded,C=(w.loaded?w.loaded.duration:0)+R;w.loaded={bytes:P,duration:C},w.realBitrate=Math.round(8*P/C)}if(o.bitrateTest){var b={stats:E,frag:o,part:u,id:o.type};this.onFragBuffered(O.Events.FRAG_BUFFERED,b),o.bitrateTest=!1}}},i.onFragBuffered=function(d,f){var o=f.frag,u=f.part,E=u?u.stats:o.stats;if(E.aborted)return;if(o.type!==n.PlaylistLevelType.MAIN||o.sn==="initSegment")return;var R=E.parsing.end-E.loading.start;this.bwEstimator.sample(R,E.loaded),E.bwEstimate=this.bwEstimator.getEstimate(),o.bitrateTest?this.bitrateTestDelay=R/1e3:this.bitrateTestDelay=0},i.onError=function(d,f){switch(f.details){case T.ErrorDetails.FRAG_LOAD_ERROR:case T.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},i.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},i.getNextABRAutoLevel=function(){var d=this.fragCurrent,f=this.partCurrent,o=this.hls,u=o.maxAutoLevel,E=o.config,R=o.minAutoLevel,w=o.media,P=f?f.duration:d?d.duration:0,C=w?w.currentTime:0,b=w&&w.playbackRate!==0?Math.abs(w.playbackRate):1,s=this.bwEstimator?this.bwEstimator.getEstimate():E.abrEwmaDefaultEstimate,h=(M.BufferHelper.bufferInfo(w,C,E.maxBufferHole).end-C)/b,m=this.findBestLevel(s,R,u,h,E.abrBandWidthFactor,E.abrBandWidthUpFactor);if(m>=0)return m;p.logger.trace((h?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var x=P?Math.min(P,E.maxStarvationDelay):E.maxStarvationDelay,g=E.abrBandWidthFactor,y=E.abrBandWidthUpFactor;if(!h){var U=this.bitrateTestDelay;if(U){var N=P?Math.min(P,E.maxLoadingDelay):E.maxLoadingDelay;x=N-U,p.logger.trace("bitrate test took "+Math.round(1e3*U)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*x)+" ms"),g=y=1}}return m=this.findBestLevel(s,R,u,h+x,g,y),Math.max(m,0)},i.findBestLevel=function(d,f,o,u,E,R){for(var w,P=this.fragCurrent,C=this.partCurrent,b=this.lastLoadedFragLevel,s=this.hls.levels,h=s[b],m=!!(h!=null&&(w=h.details)!==null&&w!==void 0&&w.live),x=h==null?void 0:h.codecSet,g=C?C.duration:P?P.duration:0,y=o;y>=f;y--){var U=s[y];if(!U||x&&U.codecSet!==x)continue;var N=U.details,S=(C?N==null?void 0:N.partTarget:N==null?void 0:N.averagetargetduration)||g,H=void 0;y<=b?H=E*d:H=R*d;var F=s[y].maxBitrate,B=F*S/H;if(p.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+y+"/"+Math.round(H)+"/"+F+"/"+S+"/"+u+"/"+B),H>F&&(!B||m&&!this.bitrateTestDelay||B<u))return y}return-1},t(l,[{key:"nextAutoLevel",get:function(){var d=this._nextAutoLevel,f=this.bwEstimator;if(d!==-1&&(!f||!f.canEstimate()))return d;var o=this.getNextABRAutoLevel();return d!==-1&&(o=Math.min(d,o)),o},set:function(d){this._nextAutoLevel=d}}]),l}();Q.default=A},"./src/controller/audio-stream-controller.ts":function(Z,Q,I){"use strict";I.r(Q);var k=I("./src/polyfills/number.ts"),_=I("./src/controller/base-stream-controller.ts"),O=I("./src/events.ts"),M=I("./src/utils/buffer-helper.ts"),T=I("./src/controller/fragment-tracker.ts"),n=I("./src/types/level.ts"),p=I("./src/types/loader.ts"),a=I("./src/loader/fragment.ts"),t=I("./src/demux/chunk-cache.ts"),A=I("./src/demux/transmuxer-interface.ts"),l=I("./src/types/transmuxer.ts"),i=I("./src/controller/fragment-finders.ts"),c=I("./src/utils/discontinuities.ts"),d=I("./src/errors.ts"),f=I("./src/utils/logger.ts");function o(){return o=Object.assign||function(P){for(var C=1;C<arguments.length;C++){var b=arguments[C];for(var s in b)Object.prototype.hasOwnProperty.call(b,s)&&(P[s]=b[s])}return P},o.apply(this,arguments)}function u(P,C){P.prototype=Object.create(C.prototype),P.prototype.constructor=P,E(P,C)}function E(P,C){return E=Object.setPrototypeOf||function(s,h){return s.__proto__=h,s},E(P,C)}var R=100,w=function(P){u(C,P);function C(s,h){var m;return m=P.call(this,s,h,"[audio-stream-controller]")||this,m.videoBuffer=null,m.videoTrackCC=-1,m.waitingVideoCC=-1,m.audioSwitch=!1,m.trackId=-1,m.waitingData=null,m.mainDetails=null,m.bufferFlushed=!1,m._registerListeners(),m}var b=C.prototype;return b.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},b._registerListeners=function(){var h=this.hls;h.on(O.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.on(O.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.on(O.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.on(O.Events.LEVEL_LOADED,this.onLevelLoaded,this),h.on(O.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),h.on(O.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),h.on(O.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),h.on(O.Events.ERROR,this.onError,this),h.on(O.Events.BUFFER_RESET,this.onBufferReset,this),h.on(O.Events.BUFFER_CREATED,this.onBufferCreated,this),h.on(O.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),h.on(O.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),h.on(O.Events.FRAG_BUFFERED,this.onFragBuffered,this)},b._unregisterListeners=function(){var h=this.hls;h.off(O.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.off(O.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.off(O.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.off(O.Events.LEVEL_LOADED,this.onLevelLoaded,this),h.off(O.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),h.off(O.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),h.off(O.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),h.off(O.Events.ERROR,this.onError,this),h.off(O.Events.BUFFER_RESET,this.onBufferReset,this),h.off(O.Events.BUFFER_CREATED,this.onBufferCreated,this),h.off(O.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),h.off(O.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),h.off(O.Events.FRAG_BUFFERED,this.onFragBuffered,this)},b.onInitPtsFound=function(h,m){var x=m.frag,g=m.id,y=m.initPTS;if(g==="main"){var U=x.cc;this.initPTS[x.cc]=y,this.log("InitPTS for cc: "+U+" found from main: "+y),this.videoTrackCC=U,this.state===_.State.WAITING_INIT_PTS&&this.tick()}},b.startLoad=function(h){if(!this.levels){this.startPosition=h,this.state=_.State.STOPPED;return}var m=this.lastCurrentTime;this.stopLoad(),this.setInterval(R),this.fragLoadError=0,m>0&&h===-1?(this.log("Override startPosition with lastCurrentTime @"+m.toFixed(3)),this.state=_.State.IDLE):(this.loadedmetadata=!1,this.state=_.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=h,this.tick()},b.doTick=function(){switch(this.state){case _.State.IDLE:this.doTickIdle();break;case _.State.WAITING_TRACK:{var h,m=this.levels,x=this.trackId,g=m==null||((h=m[x])===null||h===void 0)?void 0:h.details;if(g){if(this.waitForCdnTuneIn(g))break;this.state=_.State.WAITING_INIT_PTS}break}case _.State.FRAG_LOADING_WAITING_RETRY:{var y,U=performance.now(),N=this.retryDate;(!N||U>=N||(y=this.media)!==null&&y!==void 0&&y.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=_.State.IDLE);break}case _.State.WAITING_INIT_PTS:{var S=this.waitingData;if(S){var H=S.frag,F=S.part,B=S.cache,z=S.complete;if(this.initPTS[H.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=_.State.FRAG_LOADING;var K=B.flush(),$={frag:H,part:F,payload:K,networkDetails:null};this._handleFragmentLoadProgress($),z&&P.prototype._handleFragmentLoadComplete.call(this,$)}else if(this.videoTrackCC!==this.waitingVideoCC)f.logger.log("Waiting fragment cc ("+H.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var te=this.getLoadPosition(),fe=M.BufferHelper.bufferInfo(this.mediaBuffer,te,this.config.maxBufferHole),Ae=Object(i.fragmentWithinToleranceTest)(fe.end,this.config.maxFragLookUpTolerance,H);Ae<0&&(f.logger.log("Waiting fragment cc ("+H.cc+") @ "+H.start+" cancelled because another fragment at "+fe.end+" is needed"),this.clearWaitingFragment())}}else this.state=_.State.IDLE}}this.onTickEnd()},b.clearWaitingFragment=function(){var h=this.waitingData;h&&(this.fragmentTracker.removeFragment(h.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=_.State.IDLE)},b.onTickEnd=function(){var h=this.media;if(!h||!h.readyState)return;var m=this.mediaBuffer?this.mediaBuffer:h,x=m.buffered;!this.loadedmetadata&&x.length&&(this.loadedmetadata=!0),this.lastCurrentTime=h.currentTime},b.doTickIdle=function(){var h,m,x=this.hls,g=this.levels,y=this.media,U=this.trackId,N=x.config;if(!g||!g[U])return;if(!y&&(this.startFragRequested||!N.startFragPrefetch))return;var S=g[U],H=S.details;if(!H||H.live&&this.levelLastLoaded!==U||this.waitForCdnTuneIn(H)){this.state=_.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,a.ElementaryStreamTypes.AUDIO,p.PlaylistLevelType.AUDIO));var F=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,p.PlaylistLevelType.AUDIO);if(F===null)return;var B=F.len,z=this.getMaxBufferLength(),K=this.audioSwitch;if(B>=z&&!K)return;if(!K&&this._streamEnded(F,H)){x.trigger(O.Events.BUFFER_EOS,{type:"audio"}),this.state=_.State.ENDED;return}var $=H.fragments,te=$[0].start,fe=F.end;if(K){var Ae=this.getLoadPosition();fe=Ae,H.PTSKnown&&Ae<te&&((F.end>te||F.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),y.currentTime=te+.05))}var ce=this.getNextFragment(fe,H);if(!ce){this.bufferFlushed=!0;return}((h=ce.decryptdata)===null||h===void 0?void 0:h.keyFormat)==="identity"&&!((m=ce.decryptdata)!==null&&m!==void 0&&m.key)?this.loadKey(ce,H):this.loadFragment(ce,H,fe)},b.getMaxBufferLength=function(){var h=P.prototype.getMaxBufferLength.call(this),m=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,p.PlaylistLevelType.MAIN);return m===null?h:Math.max(h,m.len)},b.onMediaDetaching=function(){this.videoBuffer=null,P.prototype.onMediaDetaching.call(this)},b.onAudioTracksUpdated=function(h,m){var x=m.audioTracks;this.resetTransmuxer(),this.levels=x.map(function(g){return new n.Level(g)})},b.onAudioTrackSwitching=function(h,m){var x=!!m.url;this.trackId=m.id;var g=this.fragCurrent;g!=null&&g.loader&&g.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),x?this.setInterval(R):this.resetTransmuxer(),x?(this.audioSwitch=!0,this.state=_.State.IDLE):this.state=_.State.STOPPED,this.tick()},b.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},b.onLevelLoaded=function(h,m){this.mainDetails=m.details},b.onAudioTrackLoaded=function(h,m){var x,g=this.levels,y=m.details,U=m.id;if(!g){this.warn("Audio tracks were reset while loading level "+U);return}this.log("Track "+U+" loaded ["+y.startSN+","+y.endSN+"],duration:"+y.totalduration);var N=g[U],S=0;if(y.live||(x=N.details)!==null&&x!==void 0&&x.live){var H=this.mainDetails;if(y.fragments[0]||(y.deltaUpdateFailed=!0),y.deltaUpdateFailed||!H)return;!N.details&&y.hasProgramDateTime&&H.hasProgramDateTime?(Object(c.alignMediaPlaylistByPDT)(y,H),S=y.fragments[0].start):S=this.alignPlaylists(y,N.details)}N.details=y,this.levelLastLoaded=U,!this.startFragRequested&&(this.mainDetails||!y.live)&&this.setStartPosition(N.details,S),this.state===_.State.WAITING_TRACK&&!this.waitForCdnTuneIn(y)&&(this.state=_.State.IDLE),this.tick()},b._handleFragmentLoadProgress=function(h){var m,x=h.frag,g=h.part,y=h.payload,U=this.config,N=this.trackId,S=this.levels;if(!S){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+x.sn+" of level "+x.level+" will not be buffered");return}var H=S[N];console.assert(H,"Audio track is defined on fragment load progress");var F=H.details;console.assert(F,"Audio track details are defined on fragment load progress");var B=U.defaultAudioCodec||H.audioCodec||"mp4a.40.2",z=this.transmuxer;z||(z=this.transmuxer=new A.default(this.hls,p.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var K=this.initPTS[x.cc],$=(m=x.initSegment)===null||m===void 0?void 0:m.data;if(K!==void 0){var te=!1,fe=g?g.index:-1,Ae=fe!==-1,ce=new l.ChunkMetadata(x.level,x.sn,x.stats.chunkCount,y.byteLength,fe,Ae);z.push(y,$,B,"",x,g,F.totalduration,te,ce,K)}else{f.logger.log("Unknown video PTS for cc "+x.cc+", waiting for video PTS before demuxing audio frag "+x.sn+" of ["+F.startSN+" ,"+F.endSN+"],track "+N);var ie=this.waitingData=this.waitingData||{frag:x,part:g,cache:new t.default,complete:!1},ye=ie.cache;ye.push(new Uint8Array(y)),this.waitingVideoCC=this.videoTrackCC,this.state=_.State.WAITING_INIT_PTS}},b._handleFragmentLoadComplete=function(h){if(this.waitingData){this.waitingData.complete=!0;return}P.prototype._handleFragmentLoadComplete.call(this,h)},b.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},b.onBufferCreated=function(h,m){var x=m.tracks.audio;x&&(this.mediaBuffer=x.buffer),m.tracks.video&&(this.videoBuffer=m.tracks.video.buffer)},b.onFragBuffered=function(h,m){var x=m.frag,g=m.part;if(x.type!==p.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(x)){this.warn("Fragment "+x.sn+(g?" p: "+g.index:"")+" of level "+x.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}x.sn!=="initSegment"&&(this.fragPrevious=x,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(O.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(x,g)},b.onError=function(h,m){switch(m.details){case d.ErrorDetails.FRAG_LOAD_ERROR:case d.ErrorDetails.FRAG_LOAD_TIMEOUT:case d.ErrorDetails.KEY_LOAD_ERROR:case d.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(p.PlaylistLevelType.AUDIO,m);break;case d.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case d.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==_.State.ERROR&&this.state!==_.State.STOPPED&&(this.state=m.fatal?_.State.ERROR:_.State.IDLE,this.warn(m.details+" while loading frag, switching to "+this.state+" state"));break;case d.ErrorDetails.BUFFER_FULL_ERROR:if(m.parent==="audio"&&(this.state===_.State.PARSING||this.state===_.State.PARSED)){var x=!0,g=this.getFwdBufferInfo(this.mediaBuffer,p.PlaylistLevelType.AUDIO);g&&g.len>.5&&(x=!this.reduceMaxBufferLength(g.len)),x&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,P.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},b.onBufferFlushed=function(h,m){var x=m.type;x===a.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},b._handleTransmuxComplete=function(h){var m,x="audio",g=this.hls,y=h.remuxResult,U=h.chunkMeta,N=this.getCurrentContext(U);if(!N){this.warn("The loading context changed while buffering fragment "+U.sn+" of level "+U.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(U.level);return}var S=N.frag,H=N.part,F=y.audio,B=y.text,z=y.id3,K=y.initSegment;if(this.fragContextChanged(S))return;if(this.state=_.State.PARSING,this.audioSwitch&&F&&this.completeAudioSwitch(),K!=null&&K.tracks&&(this._bufferInitSegment(K.tracks,S,U),g.trigger(O.Events.FRAG_PARSING_INIT_SEGMENT,{frag:S,id:x,tracks:K.tracks})),F){var $=F.startPTS,te=F.endPTS,fe=F.startDTS,Ae=F.endDTS;H&&(H.elementaryStreams[a.ElementaryStreamTypes.AUDIO]={startPTS:$,endPTS:te,startDTS:fe,endDTS:Ae}),S.setElementaryStreamInfo(a.ElementaryStreamTypes.AUDIO,$,te,fe,Ae),this.bufferFragmentData(F,S,H,U)}if(z!=null&&(m=z.samples)!==null&&m!==void 0&&m.length){var ce=o({frag:S,id:x},z);g.trigger(O.Events.FRAG_PARSING_METADATA,ce)}if(B){var ie=o({frag:S,id:x},B);g.trigger(O.Events.FRAG_PARSING_USERDATA,ie)}},b._bufferInitSegment=function(h,m,x){if(this.state!==_.State.PARSING)return;h.video&&delete h.video;var g=h.audio;if(!g)return;g.levelCodec=g.codec,g.id="audio",this.log("Init audio buffer, container:"+g.container+", codecs[parsed]=["+g.codec+"]"),this.hls.trigger(O.Events.BUFFER_CODECS,h);var y=g.initSegment;if(y!=null&&y.byteLength){var U={type:"audio",frag:m,part:null,chunkMeta:x,parent:m.type,data:y};this.hls.trigger(O.Events.BUFFER_APPENDING,U)}this.tick()},b.loadFragment=function(h,m,x){var g=this.fragmentTracker.getState(h);this.fragCurrent=h,(this.audioSwitch||g===T.FragmentState.NOT_LOADED||g===T.FragmentState.PARTIAL)&&(h.sn==="initSegment"?this._loadInitSegment(h):m.live&&!Object(k.isFiniteNumber)(this.initPTS[h.cc])?(this.log("Waiting for video PTS in continuity counter "+h.cc+" of live stream before loading audio fragment "+h.sn+" of level "+this.trackId),this.state=_.State.WAITING_INIT_PTS):(this.startFragRequested=!0,P.prototype.loadFragment.call(this,h,m,x)))},b.completeAudioSwitch=function(){var h=this.hls,m=this.media,x=this.trackId;m&&(this.log("Switching audio track : flushing all audio"),P.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,h.trigger(O.Events.AUDIO_TRACK_SWITCHED,{id:x})},C}(_.default);Q.default=w},"./src/controller/audio-track-controller.ts":function(Z,Q,I){"use strict";I.r(Q);var k=I("./src/events.ts"),_=I("./src/errors.ts"),O=I("./src/controller/base-playlist-controller.ts"),M=I("./src/types/loader.ts");function T(A,l){for(var i=0;i<l.length;i++){var c=l[i];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(A,c.key,c)}}function n(A,l,i){return l&&T(A.prototype,l),i&&T(A,i),A}function p(A,l){A.prototype=Object.create(l.prototype),A.prototype.constructor=A,a(A,l)}function a(A,l){return a=Object.setPrototypeOf||function(c,d){return c.__proto__=d,c},a(A,l)}var t=function(A){p(l,A);function l(c){var d;return d=A.call(this,c,"[audio-track-controller]")||this,d.tracks=[],d.groupId=null,d.tracksInGroup=[],d.trackId=-1,d.trackName="",d.selectDefaultTrack=!0,d.registerListeners(),d}var i=l.prototype;return i.registerListeners=function(){var d=this.hls;d.on(k.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.on(k.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.on(k.Events.LEVEL_LOADING,this.onLevelLoading,this),d.on(k.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),d.on(k.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),d.on(k.Events.ERROR,this.onError,this)},i.unregisterListeners=function(){var d=this.hls;d.off(k.Events.MANIFEST_LOADING,this.onManifestLoading,this),d.off(k.Events.MANIFEST_PARSED,this.onManifestParsed,this),d.off(k.Events.LEVEL_LOADING,this.onLevelLoading,this),d.off(k.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),d.off(k.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),d.off(k.Events.ERROR,this.onError,this)},i.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,A.prototype.destroy.call(this)},i.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.trackName="",this.selectDefaultTrack=!0},i.onManifestParsed=function(d,f){this.tracks=f.audioTracks||[]},i.onAudioTrackLoaded=function(d,f){var o=f.id,u=f.details,E=this.tracksInGroup[o];if(!E){this.warn("Invalid audio track id "+o);return}var R=E.details;E.details=f.details,this.log("audioTrack "+o+" loaded ["+u.startSN+"-"+u.endSN+"]"),o===this.trackId&&(this.retryCount=0,this.playlistLoaded(o,f,R))},i.onLevelLoading=function(d,f){this.switchLevel(f.level)},i.onLevelSwitching=function(d,f){this.switchLevel(f.level)},i.switchLevel=function(d){var f=this.hls.levels[d];if(!(f!=null&&f.audioGroupIds))return;var o=f.audioGroupIds[f.urlId];if(this.groupId!==o){this.groupId=o;var u=this.tracks.filter(function(R){return!o||R.groupId===o});this.selectDefaultTrack&&!u.some(function(R){return R.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=u;var E={audioTracks:u};this.log("Updating audio tracks, "+u.length+' track(s) found in "'+o+'" group-id'),this.hls.trigger(k.Events.AUDIO_TRACKS_UPDATED,E),this.selectInitialTrack()}},i.onError=function(d,f){if(A.prototype.onError.call(this,d,f),f.fatal||!f.context)return;f.context.type===M.PlaylistContextType.AUDIO_TRACK&&f.context.id===this.trackId&&f.context.groupId===this.groupId&&this.retryLoadingOrFail(f)},i.setAudioTrack=function(d){var f=this.tracksInGroup;if(d<0||d>=f.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var o=f[this.trackId];this.log("Now switching to audio-track index "+d);var u=f[d],E=u.id,R=u.groupId,w=R===void 0?"":R,P=u.name,C=u.type,b=u.url;if(this.trackId=d,this.trackName=P,this.selectDefaultTrack=!1,this.hls.trigger(k.Events.AUDIO_TRACK_SWITCHING,{id:E,groupId:w,name:P,type:C,url:b}),u.details&&!u.details.live)return;var s=this.switchParams(u.url,o==null?void 0:o.details);this.loadPlaylist(s)},i.selectInitialTrack=function(){var d=this.tracksInGroup;console.assert(d.length,"Initial audio track should be selected when tracks are known");var f=this.trackName,o=this.findTrackId(f)||this.findTrackId();o!==-1?this.setAudioTrack(o):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(k.Events.ERROR,{type:_.ErrorTypes.MEDIA_ERROR,details:_.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},i.findTrackId=function(d){for(var f=this.tracksInGroup,o=0;o<f.length;o++){var u=f[o];if((!this.selectDefaultTrack||u.default)&&(!d||d===u.name))return u.id}return-1},i.loadPlaylist=function(d){var f=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(f)){var o=f.id,u=f.groupId,E=f.url;if(d)try{E=d.addDirectives(E)}catch(R){this.warn("Could not construct new URL with HLS Delivery Directives: "+R)}this.log("loading audio-track playlist for id: "+o),this.clearTimer(),this.hls.trigger(k.Events.AUDIO_TRACK_LOADING,{url:E,id:o,groupId:u,deliveryDirectives:d||null})}},n(l,[{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(d){this.selectDefaultTrack=!1,this.setAudioTrack(d)}}]),l}(O.default);Q.default=t},"./src/controller/base-playlist-controller.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return n});var k=I("./src/polyfills/number.ts"),_=I("./src/types/level.ts"),O=I("./src/controller/level-helper.ts"),M=I("./src/utils/logger.ts"),T=I("./src/errors.ts"),n=function(){function p(t,A){this.hls=void 0,this.timer=-1,this.canLoad=!1,this.retryCount=0,this.log=void 0,this.warn=void 0,this.log=M.logger.log.bind(M.logger,A+":"),this.warn=M.logger.warn.bind(M.logger,A+":"),this.hls=t}var a=p.prototype;return a.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},a.onError=function(A,l){l.fatal&&l.type===T.ErrorTypes.NETWORK_ERROR&&this.clearTimer()},a.clearTimer=function(){clearTimeout(this.timer),this.timer=-1},a.startLoad=function(){this.canLoad=!0,this.retryCount=0,this.loadPlaylist()},a.stopLoad=function(){this.canLoad=!1,this.clearTimer()},a.switchParams=function(A,l){var i=l==null?void 0:l.renditionReports;if(i)for(var c=0;c<i.length;c++){var d=i[c],f=""+d.URI;if(f===A.substr(-f.length)){var o=parseInt(d["LAST-MSN"]),u=parseInt(d["LAST-PART"]);if(l&&this.hls.config.lowLatencyMode){var E=Math.min(l.age-l.partTarget,l.targetduration);u!==void 0&&E>l.partTarget&&(u+=1)}if(Object(k.isFiniteNumber)(o))return new _.HlsUrlParameters(o,Object(k.isFiniteNumber)(u)?u:void 0,_.HlsSkip.No)}}},a.loadPlaylist=function(A){},a.shouldLoadTrack=function(A){return this.canLoad&&A&&!!A.url&&(!A.details||A.details.live)},a.playlistLoaded=function(A,l,i){var c=this,d=l.details,f=l.stats,o=f.loading.end?Math.max(0,self.performance.now()-f.loading.end):0;if(d.advancedDateTime=Date.now()-o,d.live||i!=null&&i.live){if(d.reloaded(i),i&&this.log("live playlist "+A+" "+(d.advanced?"REFRESHED "+d.lastPartSn+"-"+d.lastPartIndex:"MISSED")),i&&d.fragments.length>0&&Object(O.mergeDetails)(i,d),!this.canLoad||!d.live)return;var u,E=void 0,R=void 0;if(d.canBlockReload&&d.endSN&&d.advanced){var w=this.hls.config.lowLatencyMode,P=d.lastPartSn,C=d.endSN,b=d.lastPartIndex,s=b!==-1,h=P===C,m=w?0:b;s?(E=h?C+1:P,R=h?m:b+1):E=C+1;var x=d.age,g=x+d.ageHeader,y=Math.min(g-d.partTarget,d.targetduration*1.5);if(y>0){if(i&&y>i.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+i.tuneInGoal+" to: "+y+" with playlist age: "+d.age),y=0;else{var U=Math.floor(y/d.targetduration);if(E+=U,R!==void 0){var N=Math.round(y%d.targetduration/d.partTarget);R+=N}this.log("CDN Tune-in age: "+d.ageHeader+"s last advanced "+x.toFixed(2)+"s goal: "+y+" skip sn "+U+" to part "+R)}d.tuneInGoal=y}if(u=this.getDeliveryDirectives(d,l.deliveryDirectives,E,R),w||!h){this.loadPlaylist(u);return}}else u=this.getDeliveryDirectives(d,l.deliveryDirectives,E,R);var S=Object(O.computeReloadInterval)(d,f);E!==void 0&&d.canBlockReload&&(S-=d.partTarget||1),this.log("reload live playlist "+A+" in "+Math.round(S)+" ms"),this.timer=self.setTimeout(function(){return c.loadPlaylist(u)},S)}else this.clearTimer()},a.getDeliveryDirectives=function(A,l,i,c){var d=Object(_.getSkipValue)(A,i);return l!=null&&l.skip&&A.deltaUpdateFailed&&(i=l.msn,c=l.part,d=_.HlsSkip.No),new _.HlsUrlParameters(i,c,d)},a.retryLoadingOrFail=function(A){var l=this,i=this.hls.config,c=this.retryCount<i.levelLoadingMaxRetry;if(c){var d;if(this.retryCount++,A.details.indexOf("LoadTimeOut")>-1&&(d=A.context)!==null&&d!==void 0&&d.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+A.details+'"'),this.loadPlaylist();else{var f=Math.min(Math.pow(2,this.retryCount)*i.levelLoadingRetryDelay,i.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return l.loadPlaylist()},f),this.warn("retry playlist loading #"+this.retryCount+" in "+f+' ms after "'+A.details+'"')}}else this.warn('cannot recover from error "'+A.details+'"'),this.clearTimer(),A.fatal=!0;return c},p}()},"./src/controller/base-stream-controller.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"State",function(){return C}),I.d(Q,"default",function(){return b});var k=I("./src/polyfills/number.ts"),_=I("./src/task-loop.ts"),O=I("./src/controller/fragment-tracker.ts"),M=I("./src/utils/buffer-helper.ts"),T=I("./src/utils/logger.ts"),n=I("./src/events.ts"),p=I("./src/errors.ts"),a=I("./src/types/transmuxer.ts"),t=I("./src/utils/mp4-tools.ts"),A=I("./src/utils/discontinuities.ts"),l=I("./src/controller/fragment-finders.ts"),i=I("./src/controller/level-helper.ts"),c=I("./src/loader/fragment-loader.ts"),d=I("./src/crypt/decrypter.ts"),f=I("./src/utils/time-ranges.ts"),o=I("./src/types/loader.ts");function u(s,h){for(var m=0;m<h.length;m++){var x=h[m];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(s,x.key,x)}}function E(s,h,m){return h&&u(s.prototype,h),m&&u(s,m),s}function R(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function w(s,h){s.prototype=Object.create(h.prototype),s.prototype.constructor=s,P(s,h)}function P(s,h){return P=Object.setPrototypeOf||function(x,g){return x.__proto__=g,x},P(s,h)}var C={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"},b=function(s){w(h,s);function h(x,g,y){var U;return U=s.call(this)||this,U.hls=void 0,U.fragPrevious=null,U.fragCurrent=null,U.fragmentTracker=void 0,U.transmuxer=null,U._state=C.STOPPED,U.media=void 0,U.mediaBuffer=void 0,U.config=void 0,U.bitrateTest=!1,U.lastCurrentTime=0,U.nextLoadPosition=0,U.startPosition=0,U.loadedmetadata=!1,U.fragLoadError=0,U.retryDate=0,U.levels=null,U.fragmentLoader=void 0,U.levelLastLoaded=null,U.startFragRequested=!1,U.decrypter=void 0,U.initPTS=[],U.onvseeking=null,U.onvended=null,U.logPrefix="",U.log=void 0,U.warn=void 0,U.logPrefix=y,U.log=T.logger.log.bind(T.logger,y+":"),U.warn=T.logger.warn.bind(T.logger,y+":"),U.hls=x,U.fragmentLoader=new c.default(x.config),U.fragmentTracker=g,U.config=x.config,U.decrypter=new d.default(x,x.config),x.on(n.Events.KEY_LOADED,U.onKeyLoaded,R(U)),U}var m=h.prototype;return m.doTick=function(){this.onTickEnd()},m.onTickEnd=function(){},m.startLoad=function(g){},m.stopLoad=function(){this.fragmentLoader.abort();var g=this.fragCurrent;g&&this.fragmentTracker.removeFragment(g),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=C.STOPPED},m._streamEnded=function(g,y){var U=this.fragCurrent,N=this.fragmentTracker;if(!y.live&&U&&U.sn===y.endSN&&!g.nextStart){var S=N.getState(U);return S===O.FragmentState.PARTIAL||S===O.FragmentState.OK}return!1},m.onMediaAttached=function(g,y){var U=this.media=this.mediaBuffer=y.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),U.addEventListener("seeking",this.onvseeking),U.addEventListener("ended",this.onvended);var N=this.config;this.levels&&N.autoStartLoad&&this.state===C.STOPPED&&this.startLoad(N.startPosition)},m.onMediaDetaching=function(){var g=this.media;g!=null&&g.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),g&&(g.removeEventListener("seeking",this.onvseeking),g.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},m.onMediaSeeking=function(){var g=this.config,y=this.fragCurrent,U=this.media,N=this.mediaBuffer,S=this.state,H=U?U.currentTime:0,F=M.BufferHelper.bufferInfo(N||U,H,g.maxBufferHole);if(this.log("media seeking to "+(Object(k.isFiniteNumber)(H)?H.toFixed(3):H)+", state: "+S),S===C.ENDED)this.resetLoadingState();else if(y&&!F.len){var B=g.maxFragLookUpTolerance,z=y.start-B,K=y.start+y.duration+B,$=H>K;(H<z||$)&&($&&y.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),y.loader.abort()),this.resetLoadingState())}U&&(this.lastCurrentTime=H),!this.loadedmetadata&&!F.len&&(this.nextLoadPosition=this.startPosition=H),this.tickImmediate()},m.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},m.onKeyLoaded=function(g,y){if(this.state!==C.KEY_LOADING||y.frag!==this.fragCurrent||!this.levels)return;this.state=C.IDLE;var U=this.levels[y.frag.level].details;U&&this.loadFragment(y.frag,U,y.frag.start)},m.onHandlerDestroying=function(){this.stopLoad(),s.prototype.onHandlerDestroying.call(this)},m.onHandlerDestroyed=function(){this.state=C.STOPPED,this.hls.off(n.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,s.prototype.onHandlerDestroyed.call(this)},m.loadKey=function(g,y){this.log("Loading key for "+g.sn+" of ["+y.startSN+"-"+y.endSN+"], "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+g.level),this.state=C.KEY_LOADING,this.fragCurrent=g,this.hls.trigger(n.Events.KEY_LOADING,{frag:g})},m.loadFragment=function(g,y,U){this._loadFragForPlayback(g,y,U)},m._loadFragForPlayback=function(g,y,U){var N=this,S=function(F){if(N.fragContextChanged(g)){N.warn("Fragment "+g.sn+(F.part?" p: "+F.part.index:"")+" of level "+g.level+" was dropped during download."),N.fragmentTracker.removeFragment(g);return}g.stats.chunkCount++,N._handleFragmentLoadProgress(F)};this._doFragLoad(g,y,U,S).then(function(H){if(!H)return;N.fragLoadError=0;var F=N.state;if(N.fragContextChanged(g)){(F===C.FRAG_LOADING||F===C.BACKTRACKING||!N.fragCurrent&&F===C.PARSING)&&(N.fragmentTracker.removeFragment(g),N.state=C.IDLE);return}if("payload"in H&&(N.log("Loaded fragment "+g.sn+" of level "+g.level),N.hls.trigger(n.Events.FRAG_LOADED,H),N.state===C.BACKTRACKING)){N.fragmentTracker.backtrack(g,H),N.resetFragmentLoading(g);return}N._handleFragmentLoadComplete(H)}).catch(function(H){N.warn(H),N.resetFragmentLoading(g)})},m.flushMainBuffer=function(g,y,U){if(U===void 0&&(U=null),!(g-y))return;var N={startOffset:g,endOffset:y,type:U};this.fragLoadError=0,this.hls.trigger(n.Events.BUFFER_FLUSHING,N)},m._loadInitSegment=function(g){var y=this;this._doFragLoad(g).then(function(U){if(!U||y.fragContextChanged(g)||!y.levels)throw new Error("init load aborted");return U}).then(function(U){var N=y.hls,S=U.payload,H=g.decryptdata;if(S&&S.byteLength>0&&H&&H.key&&H.iv&&H.method==="AES-128"){var F=self.performance.now();return y.decrypter.webCryptoDecrypt(new Uint8Array(S),H.key.buffer,H.iv.buffer).then(function(B){var z=self.performance.now();return N.trigger(n.Events.FRAG_DECRYPTED,{frag:g,payload:B,stats:{tstart:F,tdecrypt:z}}),U.payload=B,U})}return U}).then(function(U){var N=y.fragCurrent,S=y.hls,H=y.levels;if(!H)throw new Error("init load aborted, missing levels");var F=H[g.level].details;console.assert(F,"Level details are defined when init segment is loaded");var B=g.stats;y.state=C.IDLE,y.fragLoadError=0,g.data=new Uint8Array(U.payload),B.parsing.start=B.buffering.start=self.performance.now(),B.parsing.end=B.buffering.end=self.performance.now(),U.frag===N&&S.trigger(n.Events.FRAG_BUFFERED,{stats:B,frag:N,part:null,id:g.type}),y.tick()}).catch(function(U){y.warn(U),y.resetFragmentLoading(g)})},m.fragContextChanged=function(g){var y=this.fragCurrent;return!g||!y||g.level!==y.level||g.sn!==y.sn||g.urlId!==y.urlId},m.fragBufferedComplete=function(g,y){var U=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+g.type+" sn: "+g.sn+(y?" part: "+y.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+g.level+" "+f.default.toString(M.BufferHelper.getBuffered(U))),this.state=C.IDLE,this.tick()},m._handleFragmentLoadComplete=function(g){var y=this.transmuxer;if(!y)return;var U=g.frag,N=g.part,S=g.partsLoaded,H=!S||S.length===0||S.some(function(B){return!B}),F=new a.ChunkMetadata(U.level,U.sn,U.stats.chunkCount+1,0,N?N.index:-1,!H);y.flush(F)},m._handleFragmentLoadProgress=function(g){},m._doFragLoad=function(g,y,U,N){var S=this;if(U===void 0&&(U=null),!this.levels)throw new Error("frag load aborted, missing levels");if(U=Math.max(g.start,U||0),this.config.lowLatencyMode&&y){var H=y.partList;if(H&&N){U>g.end&&y.fragmentHint&&(g=y.fragmentHint);var F=this.getNextPart(H,g,U);if(F>-1){var B=H[F];return this.log("Loading part sn: "+g.sn+" p: "+B.index+" cc: "+g.cc+" of playlist ["+y.startSN+"-"+y.endSN+"] parts [0-"+F+"-"+(H.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+g.level+", target: "+parseFloat(U.toFixed(3))),this.nextLoadPosition=B.start+B.duration,this.state=C.FRAG_LOADING,this.hls.trigger(n.Events.FRAG_LOADING,{frag:g,part:H[F],targetBufferTime:U}),this.doFragPartsLoad(g,H,F,N).catch(function(z){return S.handleFragLoadError(z)})}else if(!g.url||this.loadedEndOfParts(H,U))return Promise.resolve(null)}}return this.log("Loading fragment "+g.sn+" cc: "+g.cc+" "+(y?"of ["+y.startSN+"-"+y.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+g.level+", target: "+parseFloat(U.toFixed(3))),Object(k.isFiniteNumber)(g.sn)&&!this.bitrateTest&&(this.nextLoadPosition=g.start+g.duration),this.state=C.FRAG_LOADING,this.hls.trigger(n.Events.FRAG_LOADING,{frag:g,targetBufferTime:U}),this.fragmentLoader.load(g,N).catch(function(z){return S.handleFragLoadError(z)})},m.doFragPartsLoad=function(g,y,U,N){var S=this;return new Promise(function(H,F){var B=[],z=function K($){var te=y[$];S.fragmentLoader.loadPart(g,te,N).then(function(fe){B[te.index]=fe;var Ae=fe.part;S.hls.trigger(n.Events.FRAG_LOADED,fe);var ce=y[$+1];if(ce&&ce.fragment===g)K($+1);else return H({frag:g,part:Ae,partsLoaded:B})}).catch(F)};z(U)})},m.handleFragLoadError=function(g){var y=g.data;return y&&y.details===p.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(y.frag,y.part):this.hls.trigger(n.Events.ERROR,y),null},m._handleTransmuxerFlush=function(g){var y=this.getCurrentContext(g);if(!y||this.state!==C.PARSING){this.fragCurrent||(this.state=C.IDLE);return}var U=y.frag,N=y.part,S=y.level,H=self.performance.now();U.stats.parsing.end=H,N&&(N.stats.parsing.end=H),this.updateLevelTiming(U,N,S,g.partial)},m.getCurrentContext=function(g){var y=this.levels,U=g.level,N=g.sn,S=g.part;if(!y||!y[U])return this.warn("Levels object was unset while buffering fragment "+N+" of level "+U+". The current chunk will not be buffered."),null;var H=y[U],F=S>-1?Object(i.getPartWith)(H,N,S):null,B=F?F.fragment:Object(i.getFragmentWithSN)(H,N,this.fragCurrent);return B?{frag:B,part:F,level:H}:null},m.bufferFragmentData=function(g,y,U,N){if(!g||this.state!==C.PARSING)return;var S=g.data1,H=g.data2,F=S;if(S&&H&&(F=Object(t.appendUint8Array)(S,H)),!F||!F.length)return;var B={type:g.type,frag:y,part:U,chunkMeta:N,parent:y.type,data:F};this.hls.trigger(n.Events.BUFFER_APPENDING,B),g.dropped&&g.independent&&!U&&this.flushBufferGap(y)},m.flushBufferGap=function(g){var y=this.media;if(!y)return;if(!M.BufferHelper.isBuffered(y,y.currentTime)){this.flushMainBuffer(0,g.start);return}var U=y.currentTime,N=M.BufferHelper.bufferInfo(y,U,0),S=g.duration,H=Math.min(this.config.maxFragLookUpTolerance*2,S*.25),F=Math.max(Math.min(g.start-H,N.end-H),U+H);g.start-F>H&&this.flushMainBuffer(F,g.start)},m.getFwdBufferInfo=function(g,y){var U=this.config,N=this.getLoadPosition();if(!Object(k.isFiniteNumber)(N))return null;var S=M.BufferHelper.bufferInfo(g,N,U.maxBufferHole);if(S.len===0&&S.nextStart!==void 0){var H=this.fragmentTracker.getBufferedFrag(N,y);if(H&&S.nextStart<H.end)return M.BufferHelper.bufferInfo(g,N,Math.max(S.nextStart,U.maxBufferHole))}return S},m.getMaxBufferLength=function(g){var y=this.config,U;return g?U=Math.max(8*y.maxBufferSize/g,y.maxBufferLength):U=y.maxBufferLength,Math.min(U,y.maxMaxBufferLength)},m.reduceMaxBufferLength=function(g){var y=this.config,U=g||y.maxBufferLength;return y.maxMaxBufferLength>=U?(y.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+y.maxMaxBufferLength+"s"),!0):!1},m.getNextFragment=function(g,y){var U,N,S=y.fragments,H=S.length;if(!H)return null;var F=this.config,B=S[0].start,z;if(y.live){var K=F.initialLiveManifestSize;if(H<K)return this.warn("Not enough fragments to start playback (have: "+H+", need: "+K+")"),null;!y.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(z=this.getInitialLiveFragment(y,S),this.startPosition=z?this.hls.liveSyncPosition||z.start:g)}else g<=B&&(z=S[0]);if(!z){var $=F.lowLatencyMode?y.partEnd:y.fragmentEnd;z=this.getFragmentAtPosition(g,$,y)}return(U=z)!==null&&U!==void 0&&U.initSegment&&!((N=z)!==null&&N!==void 0&&N.initSegment.data)&&!this.bitrateTest&&(z=z.initSegment),z},m.getNextPart=function(g,y,U){for(var N=-1,S=!1,H=!0,F=0,B=g.length;F<B;F++){var z=g[F];if(H=H&&!z.independent,N>-1&&U<z.start)break;var K=z.loaded;!K&&(S||z.independent||H)&&z.fragment===y&&(N=F),S=K}return N},m.loadedEndOfParts=function(g,y){var U=g[g.length-1];return U&&y>U.start&&U.loaded},m.getInitialLiveFragment=function(g,y){var U=this.fragPrevious,N=null;if(U){if(g.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+U.programDateTime),N=Object(l.findFragmentByPDT)(y,U.endProgramDateTime,this.config.maxFragLookUpTolerance)),!N){var S=U.sn+1;if(S>=g.startSN&&S<=g.endSN){var H=y[S-g.startSN];U.cc===H.cc&&(N=H,this.log("Live playlist, switching playlist, load frag with next SN: "+N.sn))}N||(N=Object(l.findFragWithCC)(y,U.cc),N&&this.log("Live playlist, switching playlist, load frag with same CC: "+N.sn))}}else{var F=this.hls.liveSyncPosition;F!==null&&(N=this.getFragmentAtPosition(F,this.bitrateTest?g.fragmentEnd:g.edge,g))}return N},m.getFragmentAtPosition=function(g,y,U){var N=this.config,S=this.fragPrevious,H=U.fragments,F=U.endSN,B=U.fragmentHint,z=N.maxFragLookUpTolerance,K=!!(N.lowLatencyMode&&U.partList&&B);K&&B&&!this.bitrateTest&&(H=H.concat(B),F=B.sn);var $;if(g<y){var te=g>y-z?0:z;$=Object(l.findFragmentByPTS)(S,H,g,te)}else $=H[H.length-1];if($){var fe=$.sn-U.startSN,Ae=S&&$.level===S.level,ce=H[fe+1],ie=this.fragmentTracker.getState($);if(ie===O.FragmentState.BACKTRACKED){$=null;for(var ye=fe;H[ye]&&this.fragmentTracker.getState(H[ye])===O.FragmentState.BACKTRACKED;)S?$=H[ye--]:$=H[--ye];$||($=ce)}else S&&$.sn===S.sn&&!K&&(Ae&&($.sn<F&&this.fragmentTracker.getState(ce)!==O.FragmentState.OK?(this.log("SN "+$.sn+" just loaded, load next one: "+ce.sn),$=ce):$=null))}return $},m.synchronizeToLiveEdge=function(g){var y=this.config,U=this.media;if(!U)return;var N=this.hls.liveSyncPosition,S=U.currentTime,H=g.fragments[0].start,F=g.edge,B=S>=H-y.maxFragLookUpTolerance&&S<=F;if(N!==null&&U.duration>N&&(S<N||!B)){var z=y.liveMaxLatencyDuration!==void 0?y.liveMaxLatencyDuration:y.liveMaxLatencyDurationCount*g.targetduration;(!B&&U.readyState<4||S<F-z)&&(this.loadedmetadata||(this.nextLoadPosition=N),U.readyState&&(this.warn("Playback: "+S.toFixed(3)+" is located too far from the end of live sliding playlist: "+F+", reset currentTime to : "+N.toFixed(3)),U.currentTime=N))}},m.alignPlaylists=function(g,y){var U=this.levels,N=this.levelLastLoaded,S=this.fragPrevious,H=N!==null?U[N]:null,F=g.fragments.length;if(!F)return this.warn("No fragments in live playlist"),0;var B=g.fragments[0].start,z=!y,K=g.alignedSliding&&Object(k.isFiniteNumber)(B);if(z||!K&&!B){Object(A.alignStream)(S,H,g);var $=g.fragments[0].start;return this.log("Live playlist sliding: "+$.toFixed(2)+" start-sn: "+(y?y.startSN:"na")+"->"+g.startSN+" prev-sn: "+(S?S.sn:"na")+" fragments: "+F),$}return B},m.waitForCdnTuneIn=function(g){var y=3;return g.live&&g.canBlockReload&&g.tuneInGoal>Math.max(g.partHoldBack,g.partTarget*y)},m.setStartPosition=function(g,y){var U=this.startPosition;if(U<y&&(U=-1),U===-1||this.lastCurrentTime===-1){var N=g.startTimeOffset;Object(k.isFiniteNumber)(N)?(U=y+N,N<0&&(U+=g.totalduration),U=Math.min(Math.max(y,U),y+g.totalduration),this.log("Start time offset "+N+" found in playlist, adjust startPosition to "+U),this.startPosition=U):g.live?U=this.hls.liveSyncPosition||y:this.startPosition=U=0,this.lastCurrentTime=U}this.nextLoadPosition=U},m.getLoadPosition=function(){var g=this.media,y=0;return this.loadedmetadata&&g?y=g.currentTime:this.nextLoadPosition&&(y=this.nextLoadPosition),y},m.handleFragLoadAborted=function(g,y){this.transmuxer&&g.sn!=="initSegment"&&g.stats.aborted&&(this.warn("Fragment "+g.sn+(y?" part"+y.index:"")+" of level "+g.level+" was aborted"),this.resetFragmentLoading(g))},m.resetFragmentLoading=function(g){(!this.fragCurrent||!this.fragContextChanged(g))&&(this.state=C.IDLE)},m.onFragmentOrKeyLoadError=function(g,y){if(y.fatal)return;var U=y.frag;if(!U||U.type!==g)return;var N=this.fragCurrent;console.assert(N&&U.sn===N.sn&&U.level===N.level&&U.urlId===N.urlId,"Frag load error must match current frag to retry");var S=this.config;if(this.fragLoadError+1<=S.fragLoadingMaxRetry){if(this.resetLiveStartWhenNotLoaded(U.level))return;var H=Math.min(Math.pow(2,this.fragLoadError)*S.fragLoadingRetryDelay,S.fragLoadingMaxRetryTimeout);this.warn("Fragment "+U.sn+" of "+g+" "+U.level+" failed to load, retrying in "+H+"ms"),this.retryDate=self.performance.now()+H,this.fragLoadError++,this.state=C.FRAG_LOADING_WAITING_RETRY}else y.levelRetry?(g===o.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=C.IDLE):(T.logger.error(y.details+" reaches max retry, redispatch as fatal ..."),y.fatal=!0,this.hls.stopLoad(),this.state=C.ERROR)},m.afterBufferFlushed=function(g,y,U){if(!g)return;var N=M.BufferHelper.getBuffered(g);this.fragmentTracker.detectEvictedFragments(y,N,U),this.state===C.ENDED&&this.resetLoadingState()},m.resetLoadingState=function(){this.fragCurrent=null,this.fragPrevious=null,this.state=C.IDLE},m.resetLiveStartWhenNotLoaded=function(g){if(!this.loadedmetadata){this.startFragRequested=!1;var y=this.levels?this.levels[g].details:null;if(y!=null&&y.live)return this.startPosition=-1,this.setStartPosition(y,0),this.resetLoadingState(),!0;this.nextLoadPosition=this.startPosition}return!1},m.updateLevelTiming=function(g,y,U,N){var S=this,H=U.details;console.assert(!!H,"level.details must be defined");var F=Object.keys(g.elementaryStreams).reduce(function(B,z){var K=g.elementaryStreams[z];if(K){var $=K.endPTS-K.startPTS;if($<=0)return S.warn("Could not parse fragment "+g.sn+" "+z+" duration reliably ("+$+") resetting transmuxer to fallback to playlist timing"),S.resetTransmuxer(),B||!1;var te=N?0:Object(i.updateFragPTSDTS)(H,g,K.startPTS,K.endPTS,K.startDTS,K.endDTS);return S.hls.trigger(n.Events.LEVEL_PTS_UPDATED,{details:H,level:U,drift:te,type:z,frag:g,start:K.startPTS,end:K.endPTS}),!0}return B},!1);F?(this.state=C.PARSED,this.hls.trigger(n.Events.FRAG_PARSED,{frag:g,part:y})):this.resetLoadingState()},m.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},E(h,[{key:"state",get:function(){return this._state},set:function(g){var y=this._state;y!==g&&(this._state=g,this.log(y+"->"+g))}}]),h}(_.default)},"./src/controller/buffer-controller.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return l});var k=I("./src/polyfills/number.ts"),_=I("./src/events.ts"),O=I("./src/utils/logger.ts"),M=I("./src/errors.ts"),T=I("./src/utils/buffer-helper.ts"),n=I("./src/utils/mediasource-helper.ts"),p=I("./src/loader/fragment.ts"),a=I("./src/controller/buffer-operation-queue.ts"),t=Object(n.getMediaSource)(),A=/([ha]vc.)(?:\.[^.,]+)+/,l=function(){function i(d){var f=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var o=f.hls,u=f.media,E=f.mediaSource;O.logger.log("[buffer-controller]: Media source opened"),u&&(f.updateMediaElementDuration(),o.trigger(_.Events.MEDIA_ATTACHED,{media:u})),E&&E.removeEventListener("sourceopen",f._onMediaSourceOpen),f.checkPendingTracks()},this._onMediaSourceClose=function(){O.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){O.logger.log("[buffer-controller]: Media source ended")},this.hls=d,this._initSourceBuffer(),this.registerListeners()}var c=i.prototype;return c.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},c.destroy=function(){this.unregisterListeners(),this.details=null},c.registerListeners=function(){var f=this.hls;f.on(_.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),f.on(_.Events.MEDIA_DETACHING,this.onMediaDetaching,this),f.on(_.Events.MANIFEST_PARSED,this.onManifestParsed,this),f.on(_.Events.BUFFER_RESET,this.onBufferReset,this),f.on(_.Events.BUFFER_APPENDING,this.onBufferAppending,this),f.on(_.Events.BUFFER_CODECS,this.onBufferCodecs,this),f.on(_.Events.BUFFER_EOS,this.onBufferEos,this),f.on(_.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),f.on(_.Events.LEVEL_UPDATED,this.onLevelUpdated,this),f.on(_.Events.FRAG_PARSED,this.onFragParsed,this),f.on(_.Events.FRAG_CHANGED,this.onFragChanged,this)},c.unregisterListeners=function(){var f=this.hls;f.off(_.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),f.off(_.Events.MEDIA_DETACHING,this.onMediaDetaching,this),f.off(_.Events.MANIFEST_PARSED,this.onManifestParsed,this),f.off(_.Events.BUFFER_RESET,this.onBufferReset,this),f.off(_.Events.BUFFER_APPENDING,this.onBufferAppending,this),f.off(_.Events.BUFFER_CODECS,this.onBufferCodecs,this),f.off(_.Events.BUFFER_EOS,this.onBufferEos,this),f.off(_.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),f.off(_.Events.LEVEL_UPDATED,this.onLevelUpdated,this),f.off(_.Events.FRAG_PARSED,this.onFragParsed,this),f.off(_.Events.FRAG_CHANGED,this.onFragChanged,this)},c._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new a.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},c.onManifestParsed=function(f,o){var u=2;(o.audio&&!o.video||!o.altAudio)&&(u=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=u,this.details=null,O.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},c.onMediaAttaching=function(f,o){var u=this.media=o.media;if(u&&t){var E=this.mediaSource=new t;E.addEventListener("sourceopen",this._onMediaSourceOpen),E.addEventListener("sourceended",this._onMediaSourceEnded),E.addEventListener("sourceclose",this._onMediaSourceClose),u.src=self.URL.createObjectURL(E),this._objectUrl=u.src}},c.onMediaDetaching=function(){var f=this.media,o=this.mediaSource,u=this._objectUrl;if(o){if(O.logger.log("[buffer-controller]: media source detaching"),o.readyState==="open")try{o.endOfStream()}catch(E){O.logger.warn("[buffer-controller]: onMediaDetaching: "+E.message+" while calling endOfStream")}this.onBufferReset(),o.removeEventListener("sourceopen",this._onMediaSourceOpen),o.removeEventListener("sourceended",this._onMediaSourceEnded),o.removeEventListener("sourceclose",this._onMediaSourceClose),f&&(u&&self.URL.revokeObjectURL(u),f.src===u?(f.removeAttribute("src"),f.load()):O.logger.warn("[buffer-controller]: media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(_.Events.MEDIA_DETACHED,void 0)},c.onBufferReset=function(){var f=this;this.getSourceBufferTypes().forEach(function(o){var u=f.sourceBuffer[o];try{u&&(f.removeBufferListeners(o),f.mediaSource&&f.mediaSource.removeSourceBuffer(u),f.sourceBuffer[o]=void 0)}catch(E){O.logger.warn("[buffer-controller]: Failed to reset the "+o+" buffer",E)}}),this._initSourceBuffer()},c.onBufferCodecs=function(f,o){var u=this,E=this.getSourceBufferTypes().length;if(Object.keys(o).forEach(function(R){if(E){var w=u.tracks[R];if(w&&typeof w.buffer.changeType=="function"){var P=o[R],C=P.codec,b=P.levelCodec,s=P.container,h=(w.levelCodec||w.codec).replace(A,"$1"),m=(b||C).replace(A,"$1");if(h!==m){var x=s+";codecs="+(b||C);u.appendChangeType(R,x)}}}else u.pendingTracks[R]=o[R]}),E)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},c.appendChangeType=function(f,o){var u=this,E=this.operationQueue,R={execute:function(){var P=u.sourceBuffer[f];P&&(O.logger.log("[buffer-controller]: changing "+f+" sourceBuffer type to "+o),P.changeType(o)),E.shiftAndExecuteNext(f)},onStart:function(){},onComplete:function(){},onError:function(P){O.logger.warn("[buffer-controller]: Failed to change "+f+" SourceBuffer type",P)}};E.append(R,f)},c.onBufferAppending=function(f,o){var u=this,E=this.hls,R=this.operationQueue,w=this.tracks,P=o.data,C=o.type,b=o.frag,s=o.part,h=o.chunkMeta,m=h.buffering[C],x=self.performance.now();m.start=x;var g=b.stats.buffering,y=s?s.stats.buffering:null;g.start===0&&(g.start=x),y&&y.start===0&&(y.start=x);var U=w.audio,N=C==="audio"&&h.id===1&&(U==null?void 0:U.container)==="audio/mpeg",S={execute:function(){if(m.executeStart=self.performance.now(),N){var F=u.sourceBuffer[C];if(F){var B=b.start-F.timestampOffset;Math.abs(B)>=.1&&(O.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+b.start+" (delta: "+B+") sn: "+b.sn+")"),F.timestampOffset=b.start)}}u.appendExecutor(P,C)},onStart:function(){},onComplete:function(){var F=self.performance.now();m.executeEnd=m.end=F,g.first===0&&(g.first=F),y&&y.first===0&&(y.first=F);var B=u.sourceBuffer,z={};for(var K in B)z[K]=T.BufferHelper.getBuffered(B[K]);u.appendError=0,u.hls.trigger(_.Events.BUFFER_APPENDED,{type:C,frag:b,part:s,chunkMeta:h,parent:b.type,timeRanges:z})},onError:function(F){O.logger.error("[buffer-controller]: Error encountered while trying to append to the "+C+" SourceBuffer",F);var B={type:M.ErrorTypes.MEDIA_ERROR,parent:b.type,details:M.ErrorDetails.BUFFER_APPEND_ERROR,err:F,fatal:!1};F.code===DOMException.QUOTA_EXCEEDED_ERR?B.details=M.ErrorDetails.BUFFER_FULL_ERROR:(u.appendError++,B.details=M.ErrorDetails.BUFFER_APPEND_ERROR,u.appendError>E.config.appendErrorMaxRetry&&(O.logger.error("[buffer-controller]: Failed "+E.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),B.fatal=!0)),E.trigger(_.Events.ERROR,B)}};R.append(S,C)},c.onBufferFlushing=function(f,o){var u=this,E=this.operationQueue,R=function(P){return{execute:u.removeExecutor.bind(u,P,o.startOffset,o.endOffset),onStart:function(){},onComplete:function(){u.hls.trigger(_.Events.BUFFER_FLUSHED,{type:P})},onError:function(b){O.logger.warn("[buffer-controller]: Failed to remove from "+P+" SourceBuffer",b)}}};o.type?E.append(R(o.type),o.type):this.getSourceBufferTypes().forEach(function(w){E.append(R(w),w)})},c.onFragParsed=function(f,o){var u=this,E=o.frag,R=o.part,w=[],P=R?R.elementaryStreams:E.elementaryStreams;P[p.ElementaryStreamTypes.AUDIOVIDEO]?w.push("audiovideo"):(P[p.ElementaryStreamTypes.AUDIO]&&w.push("audio"),P[p.ElementaryStreamTypes.VIDEO]&&w.push("video"));var C=function(){var s=self.performance.now();E.stats.buffering.end=s,R&&(R.stats.buffering.end=s);var h=R?R.stats:E.stats;u.hls.trigger(_.Events.FRAG_BUFFERED,{frag:E,part:R,stats:h,id:E.type})};w.length===0&&O.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+E.type+" level: "+E.level+" sn: "+E.sn),this.blockBuffers(C,w)},c.onFragChanged=function(f,o){this.flushBackBuffer()},c.onBufferEos=function(f,o){var u=this,E=this.getSourceBufferTypes().reduce(function(R,w){var P=u.sourceBuffer[w];return(!o.type||o.type===w)&&(P&&!P.ended&&(P.ended=!0,O.logger.log("[buffer-controller]: "+w+" sourceBuffer now EOS"))),R&&!!(!P||P.ended)},!0);E&&this.blockBuffers(function(){var R=u.mediaSource;if(!R||R.readyState!=="open")return;R.endOfStream()})},c.onLevelUpdated=function(f,o){var u=o.details;if(!u.fragments.length)return;this.details=u,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},c.flushBackBuffer=function(){var f=this.hls,o=this.details,u=this.media,E=this.sourceBuffer;if(!u||o===null)return;var R=this.getSourceBufferTypes();if(!R.length)return;var w=o.live&&f.config.liveBackBufferLength!==null?f.config.liveBackBufferLength:f.config.backBufferLength;if(!Object(k.isFiniteNumber)(w)||w<0)return;var P=u.currentTime,C=o.levelTargetDuration,b=Math.max(w,C),s=Math.floor(P/C)*C-b;R.forEach(function(h){var m=E[h];if(m){var x=T.BufferHelper.getBuffered(m);x.length>0&&s>x.start(0)&&(f.trigger(_.Events.BACK_BUFFER_REACHED,{bufferEnd:s}),o.live&&f.trigger(_.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:s}),f.trigger(_.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:s,type:h}))}})},c.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var f=this.details,o=this.hls,u=this.media,E=this.mediaSource,R=f.fragments[0].start+f.totalduration,w=u.duration,P=Object(k.isFiniteNumber)(E.duration)?E.duration:0;f.live&&o.config.liveDurationInfinity?(O.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),E.duration=Infinity,this.updateSeekableRange(f)):(R>P&&R>w||!Object(k.isFiniteNumber)(w))&&(O.logger.log("[buffer-controller]: Updating Media Source duration to "+R.toFixed(3)),E.duration=R)},c.updateSeekableRange=function(f){var o=this.mediaSource,u=f.fragments,E=u.length;if(E&&f.live&&o!==null&&o!==void 0&&o.setLiveSeekableRange){var R=Math.max(0,u[0].start),w=Math.max(R,R+f.totalduration);o.setLiveSeekableRange(R,w)}},c.checkPendingTracks=function(){var f=this.bufferCodecEventsExpected,o=this.operationQueue,u=this.pendingTracks,E=Object.keys(u).length;if(E&&!f||E===2){this.createSourceBuffers(u),this.pendingTracks={};var R=this.getSourceBufferTypes();if(R.length===0){this.hls.trigger(_.Events.ERROR,{type:M.ErrorTypes.MEDIA_ERROR,details:M.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}R.forEach(function(w){o.executeNext(w)})}},c.createSourceBuffers=function(f){var o=this.sourceBuffer,u=this.mediaSource;if(!u)throw Error("createSourceBuffers called when mediaSource was null");var E=0;for(var R in f)if(!o[R]){var w=f[R];if(!w)throw Error("source buffer exists for track "+R+", however track does not");var P=w.levelCodec||w.codec,C=w.container+";codecs="+P;O.logger.log("[buffer-controller]: creating sourceBuffer("+C+")");try{var b=o[R]=u.addSourceBuffer(C),s=R;this.addBufferListener(s,"updatestart",this._onSBUpdateStart),this.addBufferListener(s,"updateend",this._onSBUpdateEnd),this.addBufferListener(s,"error",this._onSBUpdateError),this.tracks[R]={buffer:b,codec:P,container:w.container,levelCodec:w.levelCodec,id:w.id},E++}catch(h){O.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+h.message),this.hls.trigger(_.Events.ERROR,{type:M.ErrorTypes.MEDIA_ERROR,details:M.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:h,mimeType:C})}}E&&this.hls.trigger(_.Events.BUFFER_CREATED,{tracks:this.tracks})},c._onSBUpdateStart=function(f){var o=this.operationQueue,u=o.current(f);u.onStart()},c._onSBUpdateEnd=function(f){var o=this.operationQueue,u=o.current(f);u.onComplete(),o.shiftAndExecuteNext(f)},c._onSBUpdateError=function(f,o){O.logger.error("[buffer-controller]: "+f+" SourceBuffer error",o),this.hls.trigger(_.Events.ERROR,{type:M.ErrorTypes.MEDIA_ERROR,details:M.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var u=this.operationQueue.current(f);u&&u.onError(o)},c.removeExecutor=function(f,o,u){var E=this.media,R=this.mediaSource,w=this.operationQueue,P=this.sourceBuffer,C=P[f];if(!E||!R||!C){O.logger.warn("[buffer-controller]: Attempting to remove from the "+f+" SourceBuffer, but it does not exist"),w.shiftAndExecuteNext(f);return}var b=Object(k.isFiniteNumber)(E.duration)?E.duration:Infinity,s=Object(k.isFiniteNumber)(R.duration)?R.duration:Infinity,h=Math.max(0,o),m=Math.min(u,b,s);m>h?(O.logger.log("[buffer-controller]: Removing ["+h+","+m+"] from the "+f+" SourceBuffer"),console.assert(!C.updating,f+" sourceBuffer must not be updating"),C.remove(h,m)):w.shiftAndExecuteNext(f)},c.appendExecutor=function(f,o){var u=this.operationQueue,E=this.sourceBuffer,R=E[o];if(!R){O.logger.warn("[buffer-controller]: Attempting to append to the "+o+" SourceBuffer, but it does not exist"),u.shiftAndExecuteNext(o);return}R.ended=!1,console.assert(!R.updating,o+" sourceBuffer must not be updating"),R.appendBuffer(f)},c.blockBuffers=function(f,o){var u=this;if(o===void 0&&(o=this.getSourceBufferTypes()),!o.length){O.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(f);return}var E=this.operationQueue,R=o.map(function(w){return E.appendBlocker(w)});Promise.all(R).then(function(){f(),o.forEach(function(w){var P=u.sourceBuffer[w];(!P||!P.updating)&&E.shiftAndExecuteNext(w)})})},c.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},c.addBufferListener=function(f,o,u){var E=this.sourceBuffer[f];if(!E)return;var R=u.bind(this,f);this.listeners[f].push({event:o,listener:R}),E.addEventListener(o,R)},c.removeBufferListeners=function(f){var o=this.sourceBuffer[f];if(!o)return;this.listeners[f].forEach(function(u){o.removeEventListener(u.event,u.listener)})},i}()},"./src/controller/buffer-operation-queue.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return _});var k=I("./src/utils/logger.ts"),_=function(){function O(T){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=T}var M=O.prototype;return M.append=function(n,p){var a=this.queues[p];a.push(n),a.length===1&&this.buffers[p]&&this.executeNext(p)},M.insertAbort=function(n,p){var a=this.queues[p];a.unshift(n),this.executeNext(p)},M.appendBlocker=function(n){var p,a=new Promise(function(A){p=A}),t={execute:p,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(t,n),a},M.executeNext=function(n){var p=this.buffers,a=this.queues,t=p[n],A=a[n];if(A.length){var l=A[0];try{l.execute()}catch(i){k.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),l.onError(i),(!t||!t.updating)&&(A.shift(),this.executeNext(n))}}},M.shiftAndExecuteNext=function(n){this.queues[n].shift(),this.executeNext(n)},M.current=function(n){return this.queues[n][0]},O}()},"./src/controller/cap-level-controller.ts":function(Z,Q,I){"use strict";I.r(Q);var k=I("./src/events.ts");function _(T,n){for(var p=0;p<n.length;p++){var a=n[p];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(T,a.key,a)}}function O(T,n,p){return n&&_(T.prototype,n),p&&_(T,p),T}var M=function(){function T(p){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=p,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var n=T.prototype;return n.setStreamController=function(a){this.streamController=a},n.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},n.registerListeners=function(){var a=this.hls;a.on(k.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),a.on(k.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),a.on(k.Events.MANIFEST_PARSED,this.onManifestParsed,this),a.on(k.Events.BUFFER_CODECS,this.onBufferCodecs,this),a.on(k.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},n.unregisterListener=function(){var a=this.hls;a.off(k.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),a.off(k.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),a.off(k.Events.MANIFEST_PARSED,this.onManifestParsed,this),a.off(k.Events.BUFFER_CODECS,this.onBufferCodecs,this),a.off(k.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},n.onFpsDropLevelCapping=function(a,t){T.isLevelAllowed(t.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(t.droppedLevel)},n.onMediaAttaching=function(a,t){this.media=t.media instanceof HTMLVideoElement?t.media:null},n.onManifestParsed=function(a,t){var A=this.hls;this.restrictedLevels=[],this.firstLevel=t.firstLevel,A.config.capLevelToPlayerSize&&t.video&&this.startCapping()},n.onBufferCodecs=function(a,t){var A=this.hls;A.config.capLevelToPlayerSize&&t.video&&this.startCapping()},n.onMediaDetaching=function(){this.stopCapping()},n.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var a=this.hls.levels;if(a.length){var t=this.hls;t.autoLevelCapping=this.getMaxLevel(a.length-1),t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}},n.getMaxLevel=function(a){var t=this,A=this.hls.levels;if(!A.length)return-1;var l=A.filter(function(i,c){return T.isLevelAllowed(c,t.restrictedLevels)&&c<=a});return this.clientRect=null,T.getMaxLevelByMediaSize(l,this.mediaWidth,this.mediaHeight)},n.startCapping=function(){if(this.timer)return;this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize()},n.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},n.getDimensions=function(){if(this.clientRect)return this.clientRect;var a=this.media,t={width:0,height:0};if(a){var A=a.getBoundingClientRect();t.width=A.width,t.height=A.height,!t.width&&!t.height&&(t.width=A.right-A.left||a.width||0,t.height=A.bottom-A.top||a.height||0)}return this.clientRect=t,t},T.isLevelAllowed=function(a,t){return t===void 0&&(t=[]),t.indexOf(a)===-1},T.getMaxLevelByMediaSize=function(a,t,A){if(!a||!a.length)return-1;for(var l=function(o,u){return u?o.width!==u.width||o.height!==u.height:!0},i=a.length-1,c=0;c<a.length;c+=1){var d=a[c];if((d.width>=t||d.height>=A)&&l(d,a[c+1])){i=c;break}}return i},O(T,[{key:"mediaWidth",get:function(){return this.getDimensions().width*T.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*T.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var a=1;try{a=self.devicePixelRatio}catch(t){}return a}}]),T}();Q.default=M},"./src/controller/cmcd-controller.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return l});var k=I("./src/events.ts"),_=I("./src/types/cmcd.ts"),O=I("./src/utils/buffer-helper.ts"),M=I("./src/utils/logger.ts");function T(i,c){for(var d=0;d<c.length;d++){var f=c[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(i,f.key,f)}}function n(i,c,d){return c&&T(i.prototype,c),d&&T(i,d),i}function p(i,c){var d=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(d)return(d=d.call(i)).next.bind(d);if(Array.isArray(i)||(d=a(i))||c&&i&&typeof i.length=="number"){d&&(i=d);var f=0;return function(){return f>=i.length?{done:!0}:{done:!1,value:i[f++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(i,c){if(!i)return;if(typeof i=="string")return t(i,c);var d=Object.prototype.toString.call(i).slice(8,-1);if(d==="Object"&&i.constructor&&(d=i.constructor.name),d==="Map"||d==="Set")return Array.from(i);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return t(i,c)}function t(i,c){(c==null||c>i.length)&&(c=i.length);for(var d=0,f=new Array(c);d<c;d++)f[d]=i[d];return f}function A(){return A=Object.assign||function(i){for(var c=1;c<arguments.length;c++){var d=arguments[c];for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(i[f]=d[f])}return i},A.apply(this,arguments)}var l=function(){function i(d){var f=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(){f.initialized&&(f.starved=!0),f.buffering=!0},this.onPlaying=function(){f.initialized||(f.initialized=!0),f.buffering=!1},this.applyPlaylistData=function(E){try{f.apply(E,{ot:_.CMCDObjectType.MANIFEST,su:!f.initialized})}catch(R){M.logger.warn("Could not generate manifest CMCD data.",R)}},this.applyFragmentData=function(E){try{var R=E.frag,w=f.hls.levels[R.level],P=f.getObjectType(R),C={d:R.duration*1e3,ot:P};(P===_.CMCDObjectType.VIDEO||P===_.CMCDObjectType.AUDIO||P==_.CMCDObjectType.MUXED)&&(C.br=w.bitrate/1e3,C.tb=f.getTopBandwidth(P),C.bl=f.getBufferLength(P)),f.apply(E,C)}catch(b){M.logger.warn("Could not generate segment CMCD data.",b)}},this.hls=d;var o=this.config=d.config,u=o.cmcd;u!=null&&(o.pLoader=this.createPlaylistLoader(),o.fLoader=this.createFragmentLoader(),this.sid=u.sessionId||i.uuid(),this.cid=u.contentId,this.useHeaders=u.useHeaders===!0,this.registerListeners())}var c=i.prototype;return c.registerListeners=function(){var f=this.hls;f.on(k.Events.MEDIA_ATTACHED,this.onMediaAttached,this),f.on(k.Events.MEDIA_DETACHED,this.onMediaDetached,this),f.on(k.Events.BUFFER_CREATED,this.onBufferCreated,this)},c.unregisterListeners=function(){var f=this.hls;f.off(k.Events.MEDIA_ATTACHED,this.onMediaAttached,this),f.off(k.Events.MEDIA_DETACHED,this.onMediaDetached,this),f.off(k.Events.BUFFER_CREATED,this.onBufferCreated,this),this.onMediaDetached()},c.destroy=function(){this.unregisterListeners(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},c.onMediaAttached=function(f,o){this.media=o.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},c.onMediaDetached=function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null},c.onBufferCreated=function(f,o){var u,E;this.audioBuffer=(u=o.tracks.audio)===null||u===void 0?void 0:u.buffer,this.videoBuffer=(E=o.tracks.video)===null||E===void 0?void 0:E.buffer},c.createData=function(){var f;return{v:_.CMCDVersion,sf:_.CMCDStreamingFormat.HLS,sid:this.sid,cid:this.cid,pr:(f=this.media)===null||f===void 0?void 0:f.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},c.apply=function(f,o){o===void 0&&(o={}),A(o,this.createData());var u=o.ot===_.CMCDObjectType.INIT||o.ot===_.CMCDObjectType.VIDEO||o.ot===_.CMCDObjectType.MUXED;if(this.starved&&u&&(o.bs=!0,o.su=!0,this.starved=!1),o.su==null&&(o.su=this.buffering),this.useHeaders){var E=i.toHeaders(o);if(!Object.keys(E).length)return;f.headers||(f.headers={}),A(f.headers,E)}else{var R=i.toQuery(o);if(!R)return;f.url=i.appendQueryToUri(f.url,R)}},c.getObjectType=function(f){var o=f.type;return o==="subtitle"?_.CMCDObjectType.TIMED_TEXT:f.sn==="initSegment"?_.CMCDObjectType.INIT:o==="audio"?_.CMCDObjectType.AUDIO:o==="main"?this.hls.audioTracks.length?_.CMCDObjectType.VIDEO:_.CMCDObjectType.MUXED:void 0},c.getTopBandwidth=function(f){for(var o=0,u=f===_.CMCDObjectType.AUDIO?this.hls.audioTracks:this.hls.levels,E=p(u),R;!(R=E()).done;){var w=R.value;w.bitrate>o&&(o=w.bitrate)}return o>0?o:NaN},c.getBufferLength=function(f){var o=this.hls.media,u=f===_.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!u||!o)return NaN;var E=O.BufferHelper.bufferInfo(u,o.currentTime,this.config.maxBufferHole);return E.len*1e3},c.createPlaylistLoader=function(){var f=this.config.pLoader,o=this.applyPlaylistData,u=f||this.config.loader;return function(){function E(w){this.loader=void 0,this.loader=new u(w)}var R=E.prototype;return R.destroy=function(){this.loader.destroy()},R.abort=function(){this.loader.abort()},R.load=function(P,C,b){o(P),this.loader.load(P,C,b)},n(E,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),E}()},c.createFragmentLoader=function(){var f=this.config.fLoader,o=this.applyFragmentData,u=f||this.config.loader;return function(){function E(w){this.loader=void 0,this.loader=new u(w)}var R=E.prototype;return R.destroy=function(){this.loader.destroy()},R.abort=function(){this.loader.abort()},R.load=function(P,C,b){o(P),this.loader.load(P,C,b)},n(E,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),E}()},i.uuid=function(){var f=URL.createObjectURL(new Blob),o=f.toString();return URL.revokeObjectURL(f),o.substr(o.lastIndexOf("/")+1)},i.serialize=function(f){for(var o=[],u=function(N){return!Number.isNaN(N)&&N!=null&&N!==""&&N!==!1},E=function(N){return Math.round(N)},R=function(N){return E(N/100)*100},w=function(N){return encodeURIComponent(N)},P={br:E,d:E,bl:R,dl:R,mtp:R,nor:w,rtp:R,tb:E},C=Object.keys(f||{}).sort(),b=p(C),s;!(s=b()).done;){var h=s.value,m=f[h];if(!u(m))continue;if(h==="v"&&m===1)continue;if(h=="pr"&&m===1)continue;var x=P[h];x&&(m=x(m));var g=typeof m,y=void 0;h==="ot"||h==="sf"||h==="st"?y=h+"="+m:g==="boolean"?y=h:g==="number"?y=h+"="+m:y=h+"="+JSON.stringify(m),o.push(y)}return o.join(",")},i.toHeaders=function(f){for(var o=Object.keys(f),u={},E=["Object","Request","Session","Status"],R=[{},{},{},{}],w={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},P=0,C=o;P<C.length;P++){var b=C[P],s=w[b]!=null?w[b]:1;R[s][b]=f[b]}for(var h=0;h<R.length;h++){var m=i.serialize(R[h]);m&&(u["CMCD-"+E[h]]=m)}return u},i.toQuery=function(f){return"CMCD="+encodeURIComponent(i.serialize(f))},i.appendQueryToUri=function(f,o){if(!o)return f;var u=f.includes("?")?"&":"?";return""+f+u+o},i}()},"./src/controller/eme-controller.ts":function(Z,Q,I){"use strict";I.r(Q);var k=I("./src/events.ts"),_=I("./src/errors.ts"),O=I("./src/utils/logger.ts"),M=I("./src/utils/mediakeys-helper.ts");function T(l,i){for(var c=0;c<i.length;c++){var d=i[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}function n(l,i,c){return i&&T(l.prototype,i),c&&T(l,c),l}var p=3,a=function(i,c,d){var f={audioCapabilities:[],videoCapabilities:[]};return i.forEach(function(o){f.audioCapabilities.push({contentType:'audio/mp4; codecs="'+o+'"',robustness:d.audioRobustness||""})}),c.forEach(function(o){f.videoCapabilities.push({contentType:'video/mp4; codecs="'+o+'"',robustness:d.videoRobustness||""})}),[f]},t=function(i,c,d,f){switch(i){case M.KeySystems.WIDEVINE:return a(c,d,f);default:throw new Error("Unknown key-system: "+i)}},A=function(){function l(c){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=c,this._config=c.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 i=l.prototype;return i.destroy=function(){this._unregisterListeners(),this.hls=this._onMediaEncrypted=null,this._requestMediaKeySystemAccess=null},i._registerListeners=function(){this.hls.on(k.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(k.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(k.Events.MANIFEST_PARSED,this.onManifestParsed,this)},i._unregisterListeners=function(){this.hls.off(k.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(k.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(k.Events.MANIFEST_PARSED,this.onManifestParsed,this)},i.getLicenseServerUrl=function(d){switch(d){case M.KeySystems.WIDEVINE:if(!this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no license server URL configured for key-system "'+d+'"')},i._attemptKeySystemAccess=function(d,f,o){var u=this,E=t(d,f,o,this._drmSystemOptions);O.logger.log("Requesting encrypted media key-system access");var R=this.requestMediaKeySystemAccess(d,E);this.mediaKeysPromise=R.then(function(w){return u._onMediaKeySystemAccessObtained(d,w)}),R.catch(function(w){O.logger.error('Failed to obtain key-system "'+d+'" access:',w)})},i._onMediaKeySystemAccessObtained=function(d,f){var o=this;O.logger.log('Access for key-system "'+d+'" obtained');var u={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:f,mediaKeySystemDomain:d};this._mediaKeysList.push(u);var E=Promise.resolve().then(function(){return f.createMediaKeys()}).then(function(R){return u.mediaKeys=R,O.logger.log('Media-keys created for key-system "'+d+'"'),o._onMediaKeysCreated(),R});return E.catch(function(R){O.logger.error("Failed to create media-keys:",R)}),E},i._onMediaKeysCreated=function(){var d=this;this._mediaKeysList.forEach(function(f){f.mediaKeysSession||(f.mediaKeysSession=f.mediaKeys.createSession(),d._onNewMediaKeySession(f.mediaKeysSession))})},i._onNewMediaKeySession=function(d){var f=this;O.logger.log("New key-system session "+d.sessionId),d.addEventListener("message",function(o){f._onKeySessionMessage(d,o.message)},!1)},i._onKeySessionMessage=function(d,f){O.logger.log("Got EME message event, creating license request"),this._requestLicense(f,function(o){O.logger.log("Received license data (length: "+(o&&o.byteLength)+"), updating key-session"),d.update(o)})},i.onMediaEncrypted=function(d){var f=this;if(O.logger.log('Media is encrypted using "'+d.initDataType+'" init data type'),!this.mediaKeysPromise){O.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been requested"),this.hls.trigger(k.Events.ERROR,{type:_.ErrorTypes.KEY_SYSTEM_ERROR,details:_.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}var o=function(E){if(!f._media)return;f._attemptSetMediaKeys(E),f._generateRequestWithPreferredKeySession(d.initDataType,d.initData)};this.mediaKeysPromise.then(o).catch(o)},i._attemptSetMediaKeys=function(d){if(!this._media)throw new Error("Attempted to set mediaKeys without first attaching a media element");if(!this._hasSetMediaKeys){var f=this._mediaKeysList[0];if(!f||!f.mediaKeys){O.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been obtained yet"),this.hls.trigger(k.Events.ERROR,{type:_.ErrorTypes.KEY_SYSTEM_ERROR,details:_.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}O.logger.log("Setting keys for encrypted media"),this._media.setMediaKeys(f.mediaKeys),this._hasSetMediaKeys=!0}},i._generateRequestWithPreferredKeySession=function(d,f){var o=this,u=this._mediaKeysList[0];if(!u){O.logger.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),this.hls.trigger(k.Events.ERROR,{type:_.ErrorTypes.KEY_SYSTEM_ERROR,details:_.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}if(u.mediaKeysSessionInitialized){O.logger.warn("Key-Session already initialized but requested again");return}var E=u.mediaKeysSession;if(!E){O.logger.error("Fatal: Media is encrypted but no key-session existing"),this.hls.trigger(k.Events.ERROR,{type:_.ErrorTypes.KEY_SYSTEM_ERROR,details:_.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!0});return}if(!f){O.logger.warn("Fatal: initData required for generating a key session is null"),this.hls.trigger(k.Events.ERROR,{type:_.ErrorTypes.KEY_SYSTEM_ERROR,details:_.ErrorDetails.KEY_SYSTEM_NO_INIT_DATA,fatal:!0});return}O.logger.log('Generating key-session request for "'+d+'" init data type'),u.mediaKeysSessionInitialized=!0,E.generateRequest(d,f).then(function(){O.logger.debug("Key-session generation succeeded")}).catch(function(R){O.logger.error("Error generating key-session request:",R),o.hls.trigger(k.Events.ERROR,{type:_.ErrorTypes.KEY_SYSTEM_ERROR,details:_.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})})},i._createLicenseXhr=function(d,f,o){var u=new XMLHttpRequest;u.responseType="arraybuffer",u.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,u,d,f,o);var E=this._licenseXhrSetup;if(E)try{E.call(this.hls,u,d),E=void 0}catch(R){O.logger.error(R)}try{u.readyState||u.open("POST",d,!0),E&&E.call(this.hls,u,d)}catch(R){throw new Error("issue setting up KeySystem license XHR "+R)}return u},i._onLicenseRequestReadyStageChange=function(d,f,o,u){switch(d.readyState){case 4:if(d.status===200){this._requestLicenseFailureCount=0,O.logger.log("License request succeeded");var E=d.response,R=this._licenseResponseCallback;if(R)try{E=R.call(this.hls,d,f)}catch(P){O.logger.error(P)}u(E)}else{if(O.logger.error("License Request XHR failed ("+f+"). Status: "+d.status+" ("+d.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>p){this.hls.trigger(k.Events.ERROR,{type:_.ErrorTypes.KEY_SYSTEM_ERROR,details:_.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var w=p-this._requestLicenseFailureCount+1;O.logger.warn("Retrying license request, "+w+" attempts left"),this._requestLicense(o,u)}break}},i._generateLicenseRequestChallenge=function(d,f){switch(d.mediaKeySystemDomain){case M.KeySystems.WIDEVINE:return f}throw new Error("unsupported key-system: "+d.mediaKeySystemDomain)},i._requestLicense=function(d,f){O.logger.log("Requesting content license for key-system");var o=this._mediaKeysList[0];if(!o){O.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(k.Events.ERROR,{type:_.ErrorTypes.KEY_SYSTEM_ERROR,details:_.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var u=this.getLicenseServerUrl(o.mediaKeySystemDomain),E=this._createLicenseXhr(u,d,f);O.logger.log("Sending license request to URL: "+u);var R=this._generateLicenseRequestChallenge(o,d);E.send(R)}catch(w){O.logger.error("Failure requesting DRM license: "+w),this.hls.trigger(k.Events.ERROR,{type:_.ErrorTypes.KEY_SYSTEM_ERROR,details:_.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},i.onMediaAttached=function(d,f){if(!this._emeEnabled)return;var o=f.media;this._media=o,o.addEventListener("encrypted",this._onMediaEncrypted)},i.onMediaDetached=function(){var d=this._media,f=this._mediaKeysList;if(!d)return;d.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(f.map(function(o){if(o.mediaKeysSession)return o.mediaKeysSession.close().catch(function(){})})).then(function(){return d.setMediaKeys(null)}).catch(function(){})},i.onManifestParsed=function(d,f){if(!this._emeEnabled)return;var o=f.levels.map(function(E){return E.audioCodec}).filter(function(E){return!!E}),u=f.levels.map(function(E){return E.videoCodec}).filter(function(E){return!!E});this._attemptKeySystemAccess(M.KeySystems.WIDEVINE,o,u)},n(l,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),l}();Q.default=A},"./src/controller/fps-controller.ts":function(Z,Q,I){"use strict";I.r(Q);var k=I("./src/events.ts"),_=I("./src/utils/logger.ts"),O=function(){function M(n){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=n,this.registerListeners()}var T=M.prototype;return T.setStreamController=function(p){this.streamController=p},T.registerListeners=function(){this.hls.on(k.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},T.unregisterListeners=function(){this.hls.off(k.Events.MEDIA_ATTACHING,this.onMediaAttaching)},T.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},T.onMediaAttaching=function(p,a){var t=this.hls.config;if(t.capLevelOnFPSDrop){var A=a.media instanceof self.HTMLVideoElement?a.media:null;this.media=A,A&&typeof A.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),t.fpsDroppedMonitoringPeriod)}},T.checkFPS=function(p,a,t){var A=performance.now();if(a){if(this.lastTime){var l=A-this.lastTime,i=t-this.lastDroppedFrames,c=a-this.lastDecodedFrames,d=1e3*i/l,f=this.hls;if(f.trigger(k.Events.FPS_DROP,{currentDropped:i,currentDecoded:c,totalDroppedFrames:t}),d>0&&i>f.config.fpsDroppedMonitoringThreshold*c){var o=f.currentLevel;_.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+o),o>0&&(f.autoLevelCapping===-1||f.autoLevelCapping>=o)&&(o=o-1,f.trigger(k.Events.FPS_DROP_LEVEL_CAPPING,{level:o,droppedLevel:f.currentLevel}),f.autoLevelCapping=o,this.streamController.nextLevelSwitch())}}this.lastTime=A,this.lastDroppedFrames=t,this.lastDecodedFrames=a}},T.checkFPSInterval=function(){var p=this.media;if(p)if(this.isVideoPlaybackQualityAvailable){var a=p.getVideoPlaybackQuality();this.checkFPS(p,a.totalVideoFrames,a.droppedVideoFrames)}else this.checkFPS(p,p.webkitDecodedFrameCount,p.webkitDroppedFrameCount)},M}();Q.default=O},"./src/controller/fragment-finders.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"findFragmentByPDT",function(){return O}),I.d(Q,"findFragmentByPTS",function(){return M}),I.d(Q,"fragmentWithinToleranceTest",function(){return T}),I.d(Q,"pdtWithinToleranceTest",function(){return n}),I.d(Q,"findFragWithCC",function(){return p});var k=I("./src/polyfills/number.ts"),_=I("./src/utils/binary-search.ts");function O(a,t,A){if(t===null||!Array.isArray(a)||!a.length||!Object(k.isFiniteNumber)(t))return null;var l=a[0].programDateTime;if(t<(l||0))return null;var i=a[a.length-1].endProgramDateTime;if(t>=(i||0))return null;A=A||0;for(var c=0;c<a.length;++c){var d=a[c];if(n(t,A,d))return d}return null}function M(a,t,A,l){A===void 0&&(A=0),l===void 0&&(l=0);var i=null;if(a?i=t[a.sn-t[0].sn+1]||null:A===0&&t[0].start===0&&(i=t[0]),i&&T(A,l,i)===0)return i;var c=_.default.search(t,T.bind(null,A,l));return c||i}function T(a,t,A){a===void 0&&(a=0),t===void 0&&(t=0);var l=Math.min(t,A.duration+(A.deltaPTS?A.deltaPTS:0));return A.start+A.duration-l<=a?1:A.start-l>a&&A.start?-1:0}function n(a,t,A){var l=Math.min(t,A.duration+(A.deltaPTS?A.deltaPTS:0))*1e3,i=A.endProgramDateTime||0;return i-l>a}function p(a,t){return _.default.search(a,function(A){return A.cc<t?1:A.cc>t?-1:0})}},"./src/controller/fragment-tracker.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"FragmentState",function(){return O}),I.d(Q,"FragmentTracker",function(){return M});var k=I("./src/events.ts"),_=I("./src/types/loader.ts"),O;(function(p){p.NOT_LOADED="NOT_LOADED",p.BACKTRACKED="BACKTRACKED",p.APPENDING="APPENDING",p.PARTIAL="PARTIAL",p.OK="OK"})(O||(O={}));var M=function(){function p(t){this.activeFragment=null,this.activeParts=null,this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hls=t,this._registerListeners()}var a=p.prototype;return a._registerListeners=function(){var A=this.hls;A.on(k.Events.BUFFER_APPENDED,this.onBufferAppended,this),A.on(k.Events.FRAG_BUFFERED,this.onFragBuffered,this),A.on(k.Events.FRAG_LOADED,this.onFragLoaded,this)},a._unregisterListeners=function(){var A=this.hls;A.off(k.Events.BUFFER_APPENDED,this.onBufferAppended,this),A.off(k.Events.FRAG_BUFFERED,this.onFragBuffered,this),A.off(k.Events.FRAG_LOADED,this.onFragLoaded,this)},a.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},a.getAppendedFrag=function(A,l){if(l===_.PlaylistLevelType.MAIN){var i=this.activeFragment,c=this.activeParts;if(!i)return null;if(c)for(var d=c.length;d--;){var f=c[d],o=f?f.end:i.appendedPTS;if(f.start<=A&&o!==void 0&&A<=o)return d>9&&(this.activeParts=c.slice(d-9)),f}else if(i.start<=A&&i.appendedPTS!==void 0&&A<=i.appendedPTS)return i}return this.getBufferedFrag(A,l)},a.getBufferedFrag=function(A,l){for(var i=this.fragments,c=Object.keys(i),d=c.length;d--;){var f=i[c[d]];if((f==null?void 0:f.body.type)===l&&f.buffered){var o=f.body;if(o.start<=A&&A<=o.end)return o}}return null},a.detectEvictedFragments=function(A,l,i){var c=this;Object.keys(this.fragments).forEach(function(d){var f=c.fragments[d];if(!f)return;if(!f.buffered){f.body.type===i&&c.removeFragment(f.body);return}var o=f.range[A];if(!o)return;o.time.some(function(u){var E=!c.isTimeBuffered(u.startPTS,u.endPTS,l);return E&&c.removeFragment(f.body),E})})},a.detectPartialFragments=function(A){var l=this,i=this.timeRanges,c=A.frag,d=A.part;if(!i||c.sn==="initSegment")return;var f=n(c),o=this.fragments[f];if(!o)return;Object.keys(i).forEach(function(u){var E=c.elementaryStreams[u];if(!E)return;var R=i[u],w=d!==null||E.partial===!0;o.range[u]=l.getBufferedTimes(c,d,w,R)}),o.backtrack=o.loaded=null,Object.keys(o.range).length?o.buffered=!0:this.removeFragment(o.body)},a.fragBuffered=function(A){var l=n(A),i=this.fragments[l];i&&(i.backtrack=i.loaded=null,i.buffered=!0)},a.getBufferedTimes=function(A,l,i,c){for(var d={time:[],partial:i},f=l?l.start:A.start,o=l?l.end:A.end,u=A.minEndPTS||o,E=A.maxStartPTS||f,R=0;R<c.length;R++){var w=c.start(R)-this.bufferPadding,P=c.end(R)+this.bufferPadding;if(E>=w&&u<=P){d.time.push({startPTS:Math.max(f,c.start(R)),endPTS:Math.min(o,c.end(R))});break}else if(f<P&&o>w)d.partial=!0,d.time.push({startPTS:Math.max(f,c.start(R)),endPTS:Math.min(o,c.end(R))});else if(o<=w)break}return d},a.getPartialFragment=function(A){var l=null,i,c,d,f=0,o=this.bufferPadding,u=this.fragments;return Object.keys(u).forEach(function(E){var R=u[E];if(!R)return;T(R)&&(c=R.body.start-o,d=R.body.end+o,A>=c&&A<=d&&(i=Math.min(A-c,d-A),f<=i&&(l=R.body,f=i)))}),l},a.getState=function(A){var l=n(A),i=this.fragments[l];return i?i.buffered?T(i)?O.PARTIAL:O.OK:i.backtrack?O.BACKTRACKED:O.APPENDING:O.NOT_LOADED},a.backtrack=function(A,l){var i=n(A),c=this.fragments[i];if(!c||c.backtrack)return null;var d=c.backtrack=l||c.loaded;return c.loaded=null,d},a.getBacktrackData=function(A){var l=n(A),i=this.fragments[l];if(i){var c,d=i.backtrack;if(d!=null&&(c=d.payload)!==null&&c!==void 0&&c.byteLength)return d;this.removeFragment(A)}return null},a.isTimeBuffered=function(A,l,i){for(var c,d,f=0;f<i.length;f++){if(c=i.start(f)-this.bufferPadding,d=i.end(f)+this.bufferPadding,A>=c&&l<=d)return!0;if(l<=c)return!1}return!1},a.onFragLoaded=function(A,l){var i=l.frag,c=l.part;if(i.sn==="initSegment"||i.bitrateTest||c)return;var d=n(i);this.fragments[d]={body:i,loaded:l,backtrack:null,buffered:!1,range:Object.create(null)}},a.onBufferAppended=function(A,l){var i=this,c=l.frag,d=l.part,f=l.timeRanges;if(c.type===_.PlaylistLevelType.MAIN)if(this.activeFragment=c,d){var o=this.activeParts;o||(this.activeParts=o=[]),o.push(d)}else this.activeParts=null;this.timeRanges=f,Object.keys(f).forEach(function(u){var E=f[u];if(i.detectEvictedFragments(u,E),!d)for(var R=0;R<E.length;R++)c.appendedPTS=Math.max(E.end(R),c.appendedPTS||0)})},a.onFragBuffered=function(A,l){this.detectPartialFragments(l)},a.hasFragment=function(A){var l=n(A);return!!this.fragments[l]},a.removeFragmentsInRange=function(A,l,i){var c=this;Object.keys(this.fragments).forEach(function(d){var f=c.fragments[d];if(!f)return;if(f.buffered){var o=f.body;o.type===i&&o.start<l&&o.end>A&&c.removeFragment(o)}})},a.removeFragment=function(A){var l=n(A);A.stats.loaded=0,A.clearElementaryStreamInfo(),delete this.fragments[l]},a.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},p}();function T(p){var a,t;return p.buffered&&(((a=p.range.video)===null||a===void 0?void 0:a.partial)||((t=p.range.audio)===null||t===void 0?void 0:t.partial))}function n(p){return p.type+"_"+p.level+"_"+p.urlId+"_"+p.sn}},"./src/controller/gap-controller.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"STALL_MINIMUM_DURATION_MS",function(){return T}),I.d(Q,"MAX_START_GAP_JUMP",function(){return n}),I.d(Q,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return p}),I.d(Q,"SKIP_BUFFER_RANGE_START",function(){return a}),I.d(Q,"default",function(){return t});var k=I("./src/utils/buffer-helper.ts"),_=I("./src/errors.ts"),O=I("./src/events.ts"),M=I("./src/utils/logger.ts"),T=250,n=2,p=.1,a=.05,t=function(){function A(i,c,d,f){this.config=void 0,this.media=void 0,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=i,this.media=c,this.fragmentTracker=d,this.hls=f}var l=A.prototype;return l.destroy=function(){this.hls=this.fragmentTracker=this.media=null},l.poll=function(c){var d=this.config,f=this.media,o=this.stalled,u=f.currentTime,E=f.seeking,R=this.seeking&&!E,w=!this.seeking&&E;if(this.seeking=E,u!==c){if(this.moved=!0,o!==null){if(this.stallReported){var P=self.performance.now()-o;M.logger.warn("playback not stuck anymore @"+u+", after "+Math.round(P)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((w||R)&&(this.stalled=null),f.paused||f.ended||f.playbackRate===0||!k.BufferHelper.getBuffered(f).length)return;var C=k.BufferHelper.bufferInfo(f,u,0),b=C.len>0,s=C.nextStart||0;if(!b&&!s)return;if(E){var h=C.len>n,m=!s||s-u>n&&!this.fragmentTracker.getPartialFragment(u);if(h||m)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var x,g=Math.max(s,C.start||0)-u,y=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,U=y==null||((x=y.details)===null||x===void 0)?void 0:x.live,N=U?y.details.targetduration*2:n;if(g>0&&g<=N){this._trySkipBufferHole(null);return}}var S=self.performance.now();if(o===null){this.stalled=S;return}var H=S-o;!E&&H>=T&&this._reportStall(C.len);var F=k.BufferHelper.bufferInfo(f,u,d.maxBufferHole);this._tryFixBufferStall(F,H)},l._tryFixBufferStall=function(c,d){var f=this.config,o=this.fragmentTracker,u=this.media,E=u.currentTime,R=o.getPartialFragment(E);if(R){var w=this._trySkipBufferHole(R);if(w)return}c.len>f.maxBufferHole&&d>f.highBufferWatchdogPeriod*1e3&&(M.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},l._reportStall=function(c){var d=this.hls,f=this.media,o=this.stallReported;o||(this.stallReported=!0,M.logger.warn("Playback stalling at @"+f.currentTime+" due to low buffer (buffer="+c+")"),d.trigger(O.Events.ERROR,{type:_.ErrorTypes.MEDIA_ERROR,details:_.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:c}))},l._trySkipBufferHole=function(c){for(var d=this.config,f=this.hls,o=this.media,u=o.currentTime,E=0,R=k.BufferHelper.getBuffered(o),w=0;w<R.length;w++){var P=R.start(w);if(u+d.maxBufferHole>=E&&u<P){var C=Math.max(P+a,o.currentTime+p);return M.logger.warn("skipping hole, adjusting currentTime from "+u+" to "+C),this.moved=!0,this.stalled=null,o.currentTime=C,c&&f.trigger(O.Events.ERROR,{type:_.ErrorTypes.MEDIA_ERROR,details:_.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+u+" to "+C,frag:c}),C}E=R.end(w)}return 0},l._tryNudgeBuffer=function(){var c=this.config,d=this.hls,f=this.media,o=f.currentTime,u=(this.nudgeRetry||0)+1;if(this.nudgeRetry=u,u<c.nudgeMaxRetry){var E=o+u*c.nudgeOffset;M.logger.warn("Nudging 'currentTime' from "+o+" to "+E),f.currentTime=E,d.trigger(O.Events.ERROR,{type:_.ErrorTypes.MEDIA_ERROR,details:_.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else M.logger.error("Playhead still not moving while enough data buffered @"+o+" after "+c.nudgeMaxRetry+" nudges"),d.trigger(O.Events.ERROR,{type:_.ErrorTypes.MEDIA_ERROR,details:_.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},A}()},"./src/controller/id3-track-controller.ts":function(Z,Q,I){"use strict";I.r(Q);var k=I("./src/events.ts"),_=I("./src/utils/texttrack-utils.ts"),O=I("./src/demux/id3.ts"),M=.25,T=function(){function n(a){this.hls=void 0,this.id3Track=null,this.media=null,this.hls=a,this._registerListeners()}var p=n.prototype;return p.destroy=function(){this._unregisterListeners()},p._registerListeners=function(){var t=this.hls;t.on(k.Events.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(k.Events.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(k.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.on(k.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},p._unregisterListeners=function(){var t=this.hls;t.off(k.Events.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(k.Events.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(k.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.off(k.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},p.onMediaAttached=function(t,A){this.media=A.media},p.onMediaDetaching=function(){if(!this.id3Track)return;Object(_.clearCurrentCues)(this.id3Track),this.id3Track=null,this.media=null},p.getID3Track=function(t){if(!this.media)return;for(var A=0;A<t.length;A++){var l=t[A];if(l.kind==="metadata"&&l.label==="id3")return Object(_.sendAddTrackEvent)(l,this.media),l}return this.media.addTextTrack("metadata","id3")},p.onFragParsingMetadata=function(t,A){if(!this.media)return;var l=A.frag,i=A.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var c=self.WebKitDataCue||self.VTTCue||self.TextTrackCue,d=0;d<i.length;d++){var f=O.getID3Frames(i[d].data);if(f){var o=i[d].pts,u=d<i.length-1?i[d+1].pts:l.end,E=u-o;E<=0&&(u=o+M);for(var R=0;R<f.length;R++){var w=f[R];if(!O.isTimeStampFrame(w)){var P=new c(o,u,"");P.value=w,this.id3Track.addCue(P)}}}}},p.onBufferFlushing=function(t,A){var l=A.startOffset,i=A.endOffset,c=A.type;if(!c||c==="audio"){var d=this.id3Track;d&&Object(_.removeCuesInRange)(d,l,i)}},n}();Q.default=T},"./src/controller/latency-controller.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return n});var k=I("./src/errors.ts"),_=I("./src/events.ts"),O=I("./src/utils/logger.ts");function M(p,a){for(var t=0;t<a.length;t++){var A=a[t];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(p,A.key,A)}}function T(p,a,t){return a&&M(p.prototype,a),t&&M(p,t),p}var n=function(){function p(t){var A=this;this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=function(){return A.timeupdate()},this.hls=t,this.config=t.config,this.registerListeners()}var a=p.prototype;return a.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},a.registerListeners=function(){this.hls.on(_.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(_.Events.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(_.Events.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(_.Events.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(_.Events.ERROR,this.onError,this)},a.unregisterListeners=function(){this.hls.off(_.Events.MEDIA_ATTACHED,this.onMediaAttached),this.hls.off(_.Events.MEDIA_DETACHING,this.onMediaDetaching),this.hls.off(_.Events.MANIFEST_LOADING,this.onManifestLoading),this.hls.off(_.Events.LEVEL_UPDATED,this.onLevelUpdated),this.hls.off(_.Events.ERROR,this.onError)},a.onMediaAttached=function(A,l){this.media=l.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},a.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},a.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},a.onLevelUpdated=function(A,l){var i=l.details;this.levelDetails=i,i.advanced&&this.timeupdate(),!i.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},a.onError=function(A,l){if(l.details!==k.ErrorDetails.BUFFER_STALLED_ERROR)return;this.stallCount++,O.logger.warn("[playback-rate-controller]: Stall detected, adjusting target latency")},a.timeupdate=function(){var A=this.media,l=this.levelDetails;if(!A||!l)return;this.currentTime=A.currentTime;var i=this.computeLatency();if(i===null)return;this._latency=i;var c=this.config,d=c.lowLatencyMode,f=c.maxLiveSyncPlaybackRate;if(!d||f===1)return;var o=this.targetLatency;if(o===null)return;var u=i-o,E=Math.min(this.maxLatency,o+l.targetduration),R=u<E;if(l.live&&R&&u>.05&&this.forwardBufferLength>1){var w=Math.min(2,Math.max(1,f)),P=Math.round(2/(1+Math.exp(-.75*u-this.edgeStalled))*20)/20;A.playbackRate=Math.min(w,Math.max(1,P))}else A.playbackRate!==1&&A.playbackRate!==0&&(A.playbackRate=1)},a.estimateLiveEdge=function(){var A=this.levelDetails;return A===null?null:A.edge+A.age},a.computeLatency=function(){var A=this.estimateLiveEdge();return A===null?null:A-this.currentTime},T(p,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var A=this.config,l=this.levelDetails;return A.liveMaxLatencyDuration!==void 0?A.liveMaxLatencyDuration:l?A.liveMaxLatencyDurationCount*l.targetduration:0}},{key:"targetLatency",get:function(){var A=this.levelDetails;if(A===null)return null;var l=A.holdBack,i=A.partHoldBack,c=A.targetduration,d=this.config,f=d.liveSyncDuration,o=d.liveSyncDurationCount,u=d.lowLatencyMode,E=this.hls.userConfig,R=u&&i||l;(E.liveSyncDuration||E.liveSyncDurationCount||R===0)&&(R=f!==void 0?f:o*c);var w=c,P=1;return R+Math.min(this.stallCount*P,w)}},{key:"liveSyncPosition",get:function(){var A=this.estimateLiveEdge(),l=this.targetLatency,i=this.levelDetails;if(A===null||l===null||i===null)return null;var c=i.edge,d=A-l-this.edgeStalled,f=c-i.totalduration,o=c-(this.config.lowLatencyMode&&i.partTarget||i.targetduration);return Math.min(Math.max(f,d),o)}},{key:"drift",get:function(){var A=this.levelDetails;return A===null?1:A.drift}},{key:"edgeStalled",get:function(){var A=this.levelDetails;if(A===null)return 0;var l=(this.config.lowLatencyMode&&A.partTarget||A.targetduration)*3;return Math.max(A.age-l,0)}},{key:"forwardBufferLength",get:function(){var A=this.media,l=this.levelDetails;if(!A||!l)return 0;var i=A.buffered.length;return i?A.buffered.end(i-1):l.edge-this.currentTime}}]),p}()},"./src/controller/level-controller.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return d});var k=I("./src/types/level.ts"),_=I("./src/events.ts"),O=I("./src/errors.ts"),M=I("./src/utils/codecs.ts"),T=I("./src/controller/level-helper.ts"),n=I("./src/controller/base-playlist-controller.ts"),p=I("./src/types/loader.ts");function a(){return a=Object.assign||function(f){for(var o=1;o<arguments.length;o++){var u=arguments[o];for(var E in u)Object.prototype.hasOwnProperty.call(u,E)&&(f[E]=u[E])}return f},a.apply(this,arguments)}function t(f,o){for(var u=0;u<o.length;u++){var E=o[u];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(f,E.key,E)}}function A(f,o,u){return o&&t(f.prototype,o),u&&t(f,u),f}function l(f,o){f.prototype=Object.create(o.prototype),f.prototype.constructor=f,i(f,o)}function i(f,o){return i=Object.setPrototypeOf||function(E,R){return E.__proto__=R,E},i(f,o)}var c=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),d=function(f){l(o,f);function o(E){var R;return R=f.call(this,E,"[level-controller]")||this,R._levels=[],R._firstLevel=-1,R._startLevel=void 0,R.currentLevelIndex=-1,R.manualLevelIndex=-1,R.onParsedComplete=void 0,R._registerListeners(),R}var u=o.prototype;return u._registerListeners=function(){var R=this.hls;R.on(_.Events.MANIFEST_LOADED,this.onManifestLoaded,this),R.on(_.Events.LEVEL_LOADED,this.onLevelLoaded,this),R.on(_.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),R.on(_.Events.FRAG_LOADED,this.onFragLoaded,this),R.on(_.Events.ERROR,this.onError,this)},u._unregisterListeners=function(){var R=this.hls;R.off(_.Events.MANIFEST_LOADED,this.onManifestLoaded,this),R.off(_.Events.LEVEL_LOADED,this.onLevelLoaded,this),R.off(_.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),R.off(_.Events.FRAG_LOADED,this.onFragLoaded,this),R.off(_.Events.ERROR,this.onError,this)},u.destroy=function(){this._unregisterListeners(),this.manualLevelIndex=-1,this._levels.length=0,f.prototype.destroy.call(this)},u.startLoad=function(){var R=this._levels;R.forEach(function(w){w.loadError=0}),f.prototype.startLoad.call(this)},u.onManifestLoaded=function(R,w){var P=[],C=[],b=[],s,h={},m,x=!1,g=!1,y=!1;if(w.levels.forEach(function(H){var F=H.attrs;x=x||!!(H.width&&H.height),g=g||!!H.videoCodec,y=y||!!H.audioCodec,c&&H.audioCodec&&H.audioCodec.indexOf("mp4a.40.34")!==-1&&(H.audioCodec=void 0);var B=H.bitrate+"-"+H.attrs.RESOLUTION+"-"+H.attrs.CODECS;m=h[B],m?m.url.push(H.url):(m=new k.Level(H),h[B]=m,P.push(m)),F&&(F.AUDIO&&Object(T.addGroupId)(m,"audio",F.AUDIO),F.SUBTITLES&&Object(T.addGroupId)(m,"text",F.SUBTITLES))}),(x||g)&&y&&(P=P.filter(function(H){var F=H.videoCodec,B=H.width,z=H.height;return!!F||!!(B&&z)})),P=P.filter(function(H){var F=H.audioCodec,B=H.videoCodec;return(!F||Object(M.isCodecSupportedInMp4)(F,"audio"))&&(!B||Object(M.isCodecSupportedInMp4)(B,"video"))}),w.audioTracks&&(C=w.audioTracks.filter(function(H){return!H.audioCodec||Object(M.isCodecSupportedInMp4)(H.audioCodec,"audio")}),Object(T.assignTrackIdsByGroup)(C)),w.subtitles&&(b=w.subtitles,Object(T.assignTrackIdsByGroup)(b)),P.length>0){s=P[0].bitrate,P.sort(function(H,F){return H.bitrate-F.bitrate}),this._levels=P;for(var U=0;U<P.length;U++)if(P[U].bitrate===s){this._firstLevel=U,this.log("manifest loaded, "+P.length+" level(s) found, first bitrate: "+s);break}var N=y&&!g,S={levels:P,audioTracks:C,subtitleTracks:b,firstLevel:this._firstLevel,stats:w.stats,audio:y,video:g,altAudio:!N&&C.some(function(H){return!!H.url})};this.hls.trigger(_.Events.MANIFEST_PARSED,S),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else this.hls.trigger(_.Events.ERROR,{type:O.ErrorTypes.MEDIA_ERROR,details:O.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:w.url,reason:"no level with compatible codecs found in manifest"})},u.onError=function(R,w){if(f.prototype.onError.call(this,R,w),w.fatal)return;var P=w.context,C=this._levels[this.currentLevelIndex];if(P&&(P.type===p.PlaylistContextType.AUDIO_TRACK&&C.audioGroupIds&&P.groupId===C.audioGroupIds[C.urlId]||P.type===p.PlaylistContextType.SUBTITLE_TRACK&&C.textGroupIds&&P.groupId===C.textGroupIds[C.urlId])){this.redundantFailover(this.currentLevelIndex);return}var b=!1,s=!0,h;switch(w.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:if(w.frag){var m=this._levels[w.frag.level];m?(m.fragmentError++,m.fragmentError>this.hls.config.fragLoadingMaxRetry&&(h=w.frag.level)):h=w.frag.level}break;case O.ErrorDetails.LEVEL_LOAD_ERROR:case O.ErrorDetails.LEVEL_LOAD_TIMEOUT:P&&(P.deliveryDirectives&&(s=!1),h=P.level),b=!0;break;case O.ErrorDetails.REMUX_ALLOC_ERROR:h=w.level,b=!0;break}h!==void 0&&this.recoverLevel(w,h,b,s)},u.recoverLevel=function(R,w,P,C){var b=R.details,s=this._levels[w];if(s.loadError++,P){var h=this.retryLoadingOrFail(R);if(h)R.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(C){var m=s.url.length;if(m>1&&s.loadError<m)R.levelRetry=!0,this.redundantFailover(w);else if(this.manualLevelIndex===-1){var x=w===0?this._levels.length-1:w-1;this.currentLevelIndex!==x&&this._levels[x].loadError===0&&(this.warn(b+": switch to "+x),R.levelRetry=!0,this.hls.nextAutoLevel=x)}}},u.redundantFailover=function(R){var w=this._levels[R],P=w.url.length;if(P>1){var C=(w.urlId+1)%P;this.warn("Switching to redundant URL-id "+C),this._levels.forEach(function(b){b.urlId=C}),this.level=R}},u.onFragLoaded=function(R,w){var P=w.frag;if(P!==void 0&&P.type===p.PlaylistLevelType.MAIN){var C=this._levels[P.level];C!==void 0&&(C.fragmentError=0,C.loadError=0)}},u.onLevelLoaded=function(R,w){var P,C=w.level,b=w.details,s=this._levels[C];if(!s){var h;this.warn("Invalid level index "+C),(h=w.deliveryDirectives)!==null&&h!==void 0&&h.skip&&(b.deltaUpdateFailed=!0);return}C===this.currentLevelIndex?(s.fragmentError===0&&(s.loadError=0,this.retryCount=0),this.playlistLoaded(C,w,s.details)):(P=w.deliveryDirectives)!==null&&P!==void 0&&P.skip&&(b.deltaUpdateFailed=!0)},u.onAudioTrackSwitched=function(R,w){var P=this.hls.levels[this.currentLevelIndex];if(!P)return;if(P.audioGroupIds){for(var C=-1,b=this.hls.audioTracks[w.id].groupId,s=0;s<P.audioGroupIds.length;s++)if(P.audioGroupIds[s]===b){C=s;break}C!==P.urlId&&(P.urlId=C,this.startLoad())}},u.loadPlaylist=function(R){var w=this.currentLevelIndex,P=this._levels[w];if(this.canLoad&&P&&P.url.length>0){var C=P.urlId,b=P.url[C];if(R)try{b=R.addDirectives(b)}catch(s){this.warn("Could not construct new URL with HLS Delivery Directives: "+s)}this.log("Attempt loading level index "+w+(R?" at sn "+R.msn+" part "+R.part:"")+" with URL-id "+C+" "+b),this.clearTimer(),this.hls.trigger(_.Events.LEVEL_LOADING,{url:b,level:w,id:C,deliveryDirectives:R||null})}},u.removeLevel=function(R,w){var P=function(s,h){return h!==w},C=this._levels.filter(function(b,s){return s!==R?!0:b.url.length>1&&w!==void 0?(b.url=b.url.filter(P),b.audioGroupIds&&(b.audioGroupIds=b.audioGroupIds.filter(P)),b.textGroupIds&&(b.textGroupIds=b.textGroupIds.filter(P)),b.urlId=0,!0):!1}).map(function(b,s){var h=b.details;return h!=null&&h.fragments&&h.fragments.forEach(function(m){m.level=s}),b});this._levels=C,this.hls.trigger(_.Events.LEVELS_UPDATED,{levels:C})},A(o,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(R){var w,P=this._levels;if(P.length===0)return;if(this.currentLevelIndex===R&&(w=P[R])!==null&&w!==void 0&&w.details)return;if(R<0||R>=P.length){var C=R<0;if(this.hls.trigger(_.Events.ERROR,{type:O.ErrorTypes.OTHER_ERROR,details:O.ErrorDetails.LEVEL_SWITCH_ERROR,level:R,fatal:C,reason:"invalid level idx"}),C)return;R=Math.min(R,P.length-1)}this.clearTimer();var b=this.currentLevelIndex,s=P[b],h=P[R];this.log("switching to level "+R+" from "+b),this.currentLevelIndex=R;var m=a({},h,{level:R,maxBitrate:h.maxBitrate,uri:h.uri,urlId:h.urlId});delete m._urlId,this.hls.trigger(_.Events.LEVEL_SWITCHING,m);var x=h.details;if(!x||x.live){var g=this.switchParams(h.uri,s==null?void 0:s.details);this.loadPlaylist(g)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(R){this.manualLevelIndex=R,this._startLevel===void 0&&(this._startLevel=R),R!==-1&&(this.level=R)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(R){this._firstLevel=R}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var R=this.hls.config.startLevel;return R!==void 0?R:this._firstLevel}else return this._startLevel},set:function(R){this._startLevel=R}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(R){this.level=R,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=R)}}]),o}(n.default)},"./src/controller/level-helper.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"addGroupId",function(){return O}),I.d(Q,"assignTrackIdsByGroup",function(){return M}),I.d(Q,"updatePTS",function(){return T}),I.d(Q,"updateFragPTSDTS",function(){return p}),I.d(Q,"mergeDetails",function(){return a}),I.d(Q,"mapPartIntersection",function(){return t}),I.d(Q,"mapFragmentIntersection",function(){return A}),I.d(Q,"adjustSliding",function(){return l}),I.d(Q,"addSliding",function(){return i}),I.d(Q,"computeReloadInterval",function(){return c}),I.d(Q,"getFragmentWithSN",function(){return d}),I.d(Q,"getPartWith",function(){return f});var k=I("./src/polyfills/number.ts"),_=I("./src/utils/logger.ts");function O(o,u,E){switch(u){case"audio":o.audioGroupIds||(o.audioGroupIds=[]),o.audioGroupIds.push(E);break;case"text":o.textGroupIds||(o.textGroupIds=[]),o.textGroupIds.push(E);break}}function M(o){var u={};o.forEach(function(E){var R=E.groupId||"";E.id=u[R]=u[R]||0,u[R]++})}function T(o,u,E){var R=o[u],w=o[E];n(R,w)}function n(o,u){var E=u.startPTS;if(Object(k.isFiniteNumber)(E)){var R=0,w;u.sn>o.sn?(R=E-o.start,w=o):(R=o.start-E,w=u),w.duration!==R&&(w.duration=R)}else if(u.sn>o.sn){var P=o.cc===u.cc;P&&o.minEndPTS?u.start=o.start+(o.minEndPTS-o.start):u.start=o.start+o.duration}else u.start=Math.max(o.start-u.duration,0)}function p(o,u,E,R,w,P){var C=R-E;C<=0&&(_.logger.warn("Fragment should have a positive duration",u),R=E+u.duration,P=w+u.duration);var b=E,s=R,h=u.startPTS,m=u.endPTS;if(Object(k.isFiniteNumber)(h)){var x=Math.abs(h-E);Object(k.isFiniteNumber)(u.deltaPTS)?u.deltaPTS=Math.max(x,u.deltaPTS):u.deltaPTS=x,b=Math.max(E,h),E=Math.min(E,h),w=Math.min(w,u.startDTS),s=Math.min(R,m),R=Math.max(R,m),P=Math.max(P,u.endDTS)}u.duration=R-E;var g=E-u.start;u.appendedPTS=R,u.start=u.startPTS=E,u.maxStartPTS=b,u.startDTS=w,u.endPTS=R,u.minEndPTS=s,u.endDTS=P;var y=u.sn;if(!o||y<o.startSN||y>o.endSN)return 0;var U,N=y-o.startSN,S=o.fragments;for(S[N]=u,U=N;U>0;U--)n(S[U],S[U-1]);for(U=N;U<S.length-1;U++)n(S[U],S[U+1]);return o.fragmentHint&&n(S[S.length-1],o.fragmentHint),o.PTSKnown=o.alignedSliding=!0,g}function a(o,u){for(var E=null,R=o.fragments,w=R.length-1;w>=0;w--){var P=R[w].initSegment;if(P){E=P;break}}o.fragmentHint&&delete o.fragmentHint.endPTS;var C=0,b;if(A(o,u,function(U,N){U.relurl&&(C=U.cc-N.cc),Object(k.isFiniteNumber)(U.startPTS)&&Object(k.isFiniteNumber)(U.endPTS)&&(N.start=N.startPTS=U.startPTS,N.startDTS=U.startDTS,N.appendedPTS=U.appendedPTS,N.maxStartPTS=U.maxStartPTS,N.endPTS=U.endPTS,N.endDTS=U.endDTS,N.minEndPTS=U.minEndPTS,N.duration=U.endPTS-U.startPTS,N.duration&&(b=N),u.PTSKnown=u.alignedSliding=!0),N.elementaryStreams=U.elementaryStreams,N.loader=U.loader,N.stats=U.stats,N.urlId=U.urlId,U.initSegment&&(N.initSegment=U.initSegment,E=U.initSegment)}),E){var s=u.fragmentHint?u.fragments.concat(u.fragmentHint):u.fragments;s.forEach(function(U){var N;(!U.initSegment||U.initSegment.relurl===((N=E)===null||N===void 0?void 0:N.relurl))&&(U.initSegment=E)})}if(u.skippedSegments&&(u.deltaUpdateFailed=u.fragments.some(function(U){return!U}),u.deltaUpdateFailed)){_.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var h=u.skippedSegments;h--;)u.fragments.shift();u.startSN=u.fragments[0].sn,u.startCC=u.fragments[0].cc}var m=u.fragments;if(C){_.logger.warn("discontinuity sliding from playlist, take drift into account");for(var x=0;x<m.length;x++)m[x].cc+=C}u.skippedSegments&&(u.startCC=u.fragments[0].cc),t(o.partList,u.partList,function(U,N){N.elementaryStreams=U.elementaryStreams,N.stats=U.stats}),b?p(u,b,b.startPTS,b.endPTS,b.startDTS,b.endDTS):l(o,u),m.length&&(u.totalduration=u.edge-m[0].start),u.driftStartTime=o.driftStartTime,u.driftStart=o.driftStart;var g=u.advancedDateTime;if(u.advanced&&g){var y=u.edge;u.driftStart||(u.driftStartTime=g,u.driftStart=y),u.driftEndTime=g,u.driftEnd=y}else u.driftEndTime=o.driftEndTime,u.driftEnd=o.driftEnd,u.advancedDateTime=o.advancedDateTime}function t(o,u,E){if(o&&u)for(var R=0,w=0,P=o.length;w<=P;w++){var C=o[w],b=u[w+R];C&&b&&C.index===b.index&&C.fragment.sn===b.fragment.sn?E(C,b):R--}}function A(o,u,E){for(var R=u.skippedSegments,w=Math.max(o.startSN,u.startSN)-u.startSN,P=(o.fragmentHint?1:0)+(R?u.endSN:Math.min(o.endSN,u.endSN))-u.startSN,C=u.startSN-o.startSN,b=u.fragmentHint?u.fragments.concat(u.fragmentHint):u.fragments,s=o.fragmentHint?o.fragments.concat(o.fragmentHint):o.fragments,h=w;h<=P;h++){var m=s[C+h],x=b[h];R&&!x&&h<R&&(x=u.fragments[h]=m),m&&x&&E(m,x)}}function l(o,u){var E=u.startSN+u.skippedSegments-o.startSN,R=o.fragments;if(E<0||E>=R.length)return;i(u,R[E].start)}function i(o,u){if(u){for(var E=o.fragments,R=o.skippedSegments;R<E.length;R++)E[R].start+=u;o.fragmentHint&&(o.fragmentHint.start+=u)}}function c(o,u){var E=1e3*o.levelTargetDuration,R=E/2,w=o.age,P=w>0&&w<E*3,C=u.loading.end-u.loading.start,b,s=o.availabilityDelay;if(o.updated===!1)if(P){var h=333*o.misses;b=Math.max(Math.min(R,C*2),h),o.availabilityDelay=(o.availabilityDelay||0)+b}else b=R;else P?(s=Math.min(s||E/2,w),o.availabilityDelay=s,b=s+E-w):b=E-C;return Math.round(b)}function d(o,u,E){if(!o||!o.details)return null;var R=o.details,w=R.fragments[u-R.startSN];return w||(w=R.fragmentHint,w&&w.sn===u?w:u<R.startSN&&E&&E.sn===u?E:null)}function f(o,u,E){if(!o||!o.details)return null;var R=o.details.partList;if(R)for(var w=R.length;w--;){var P=R[w];if(P.index===E&&P.fragment.sn===u)return P}return null}},"./src/controller/stream-controller.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return R});var k=I("./src/polyfills/number.ts"),_=I("./src/controller/base-stream-controller.ts"),O=I("./src/is-supported.ts"),M=I("./src/events.ts"),T=I("./src/utils/buffer-helper.ts"),n=I("./src/controller/fragment-tracker.ts"),p=I("./src/types/loader.ts"),a=I("./src/loader/fragment.ts"),t=I("./src/demux/transmuxer-interface.ts"),A=I("./src/types/transmuxer.ts"),l=I("./src/controller/gap-controller.ts"),i=I("./src/errors.ts"),c=I("./src/utils/logger.ts");function d(w,P){for(var C=0;C<P.length;C++){var b=P[C];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(w,b.key,b)}}function f(w,P,C){return P&&d(w.prototype,P),C&&d(w,C),w}function o(w,P){w.prototype=Object.create(P.prototype),w.prototype.constructor=w,u(w,P)}function u(w,P){return u=Object.setPrototypeOf||function(b,s){return b.__proto__=s,b},u(w,P)}var E=100,R=function(w){o(P,w);function P(b,s){var h;return h=w.call(this,b,s,"[stream-controller]")||this,h.audioCodecSwap=!1,h.gapController=null,h.level=-1,h._forceStartLoad=!1,h.altAudio=!1,h.audioOnly=!1,h.fragPlaying=null,h.onvplaying=null,h.onvseeked=null,h.fragLastKbps=0,h.stalled=!1,h.couldBacktrack=!1,h.audioCodecSwitch=!1,h.videoBuffer=null,h._registerListeners(),h}var C=P.prototype;return C._registerListeners=function(){var s=this.hls;s.on(M.Events.MEDIA_ATTACHED,this.onMediaAttached,this),s.on(M.Events.MEDIA_DETACHING,this.onMediaDetaching,this),s.on(M.Events.MANIFEST_LOADING,this.onManifestLoading,this),s.on(M.Events.MANIFEST_PARSED,this.onManifestParsed,this),s.on(M.Events.LEVEL_LOADING,this.onLevelLoading,this),s.on(M.Events.LEVEL_LOADED,this.onLevelLoaded,this),s.on(M.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),s.on(M.Events.ERROR,this.onError,this),s.on(M.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),s.on(M.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),s.on(M.Events.BUFFER_CREATED,this.onBufferCreated,this),s.on(M.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),s.on(M.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),s.on(M.Events.FRAG_BUFFERED,this.onFragBuffered,this)},C._unregisterListeners=function(){var s=this.hls;s.off(M.Events.MEDIA_ATTACHED,this.onMediaAttached,this),s.off(M.Events.MEDIA_DETACHING,this.onMediaDetaching,this),s.off(M.Events.MANIFEST_LOADING,this.onManifestLoading,this),s.off(M.Events.MANIFEST_PARSED,this.onManifestParsed,this),s.off(M.Events.LEVEL_LOADED,this.onLevelLoaded,this),s.off(M.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),s.off(M.Events.ERROR,this.onError,this),s.off(M.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),s.off(M.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),s.off(M.Events.BUFFER_CREATED,this.onBufferCreated,this),s.off(M.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),s.off(M.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),s.off(M.Events.FRAG_BUFFERED,this.onFragBuffered,this)},C.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},C.startLoad=function(s){if(this.levels){var h=this.lastCurrentTime,m=this.hls;if(this.stopLoad(),this.setInterval(E),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var x=m.startLevel;x===-1&&(m.config.testBandwidth?(x=0,this.bitrateTest=!0):x=m.nextAutoLevel),this.level=m.nextLoadLevel=x,this.loadedmetadata=!1}h>0&&s===-1&&(this.log("Override startPosition with lastCurrentTime @"+h.toFixed(3)),s=h),this.state=_.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=s,this.tick()}else this._forceStartLoad=!0,this.state=_.State.STOPPED},C.stopLoad=function(){this._forceStartLoad=!1,w.prototype.stopLoad.call(this)},C.doTick=function(){switch(this.state){case _.State.IDLE:this.doTickIdle();break;case _.State.WAITING_LEVEL:{var s,h=this.levels,m=this.level,x=h==null||((s=h[m])===null||s===void 0)?void 0:s.details;if(x&&(!x.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(x))break;this.state=_.State.IDLE;break}break}case _.State.FRAG_LOADING_WAITING_RETRY:{var g,y=self.performance.now(),U=this.retryDate;(!U||y>=U||(g=this.media)!==null&&g!==void 0&&g.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=_.State.IDLE)}break;default:break}this.onTickEnd()},C.onTickEnd=function(){w.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},C.doTickIdle=function(){var s,h,m=this.hls,x=this.levelLastLoaded,g=this.levels,y=this.media,U=m.config,N=m.nextLoadLevel;if(x===null||!y&&(this.startFragRequested||!U.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!g||!g[N])return;var S=g[N];this.level=m.nextLoadLevel=N;var H=S.details;if(!H||this.state===_.State.WAITING_LEVEL||H.live&&this.levelLastLoaded!==N){this.state=_.State.WAITING_LEVEL;return}var F=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:y,p.PlaylistLevelType.MAIN);if(F===null)return;var B=F.len,z=this.getMaxBufferLength(S.maxBitrate);if(B>=z)return;if(this._streamEnded(F,H)){var K={};this.altAudio&&(K.type="video"),this.hls.trigger(M.Events.BUFFER_EOS,K),this.state=_.State.ENDED;return}var $=F.end,te=this.getNextFragment($,H);if(this.couldBacktrack&&!this.fragPrevious&&te&&te.sn!=="initSegment"){var fe=te.sn-H.startSN;fe>1&&(te=H.fragments[fe-1],this.fragmentTracker.removeFragment(te))}if(te&&this.fragmentTracker.getState(te)===n.FragmentState.OK&&this.nextLoadPosition>$){var Ae=this.audioOnly&&!this.altAudio?a.ElementaryStreamTypes.AUDIO:a.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(y,Ae,p.PlaylistLevelType.MAIN),te=this.getNextFragment(this.nextLoadPosition,H)}if(!te)return;te.initSegment&&!te.initSegment.data&&!this.bitrateTest&&(te=te.initSegment),((s=te.decryptdata)===null||s===void 0?void 0:s.keyFormat)==="identity"&&!((h=te.decryptdata)!==null&&h!==void 0&&h.key)?this.loadKey(te,H):this.loadFragment(te,H,$)},C.loadFragment=function(s,h,m){var x,g=this.fragmentTracker.getState(s);if(this.fragCurrent=s,g===n.FragmentState.BACKTRACKED){var y=this.fragmentTracker.getBacktrackData(s);if(y){this._handleFragmentLoadProgress(y),this._handleFragmentLoadComplete(y);return}else g=n.FragmentState.NOT_LOADED}g===n.FragmentState.NOT_LOADED||g===n.FragmentState.PARTIAL?s.sn==="initSegment"?this._loadInitSegment(s):this.bitrateTest?(s.bitrateTest=!0,this.log("Fragment "+s.sn+" of level "+s.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(s)):(this.startFragRequested=!0,w.prototype.loadFragment.call(this,s,h,m)):g===n.FragmentState.APPENDING?this.reduceMaxBufferLength(s.duration)&&this.fragmentTracker.removeFragment(s):((x=this.media)===null||x===void 0?void 0:x.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},C.getAppendedFrag=function(s){var h=this.fragmentTracker.getAppendedFrag(s,p.PlaylistLevelType.MAIN);return h&&"fragment"in h?h.fragment:h},C.getBufferedFrag=function(s){return this.fragmentTracker.getBufferedFrag(s,p.PlaylistLevelType.MAIN)},C.followingBufferedFrag=function(s){return s?this.getBufferedFrag(s.end+.5):null},C.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},C.nextLevelSwitch=function(){var s=this.levels,h=this.media;if(h!=null&&h.readyState){var m,x=this.getAppendedFrag(h.currentTime);if(x&&x.start>1&&this.flushMainBuffer(0,x.start-1),!h.paused&&s){var g=this.hls.nextLoadLevel,y=s[g],U=this.fragLastKbps;U&&this.fragCurrent?m=this.fragCurrent.duration*y.maxBitrate/(1e3*U)+1:m=0}else m=0;var N=this.getBufferedFrag(h.currentTime+m);if(N){var S=this.followingBufferedFrag(N);if(S){this.abortCurrentFrag();var H=S.maxStartPTS?S.maxStartPTS:S.start,F=S.duration,B=Math.max(N.end,H+Math.min(Math.max(F-this.config.maxFragLookUpTolerance,F*.5),F*.75));this.flushMainBuffer(B,Number.POSITIVE_INFINITY)}}}},C.abortCurrentFrag=function(){var s=this.fragCurrent;this.fragCurrent=null,s!=null&&s.loader&&s.loader.abort(),this.state===_.State.KEY_LOADING&&(this.state=_.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},C.flushMainBuffer=function(s,h){w.prototype.flushMainBuffer.call(this,s,h,this.altAudio?"video":null)},C.onMediaAttached=function(s,h){w.prototype.onMediaAttached.call(this,s,h);var m=h.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),m.addEventListener("playing",this.onvplaying),m.addEventListener("seeked",this.onvseeked),this.gapController=new l.default(this.config,m,this.fragmentTracker,this.hls)},C.onMediaDetaching=function(){var s=this.media;s&&(s.removeEventListener("playing",this.onvplaying),s.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),w.prototype.onMediaDetaching.call(this)},C.onMediaPlaying=function(){this.tick()},C.onMediaSeeked=function(){var s=this.media,h=s?s.currentTime:null;Object(k.isFiniteNumber)(h)&&this.log("Media seeked to "+h.toFixed(3)),this.tick()},C.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(M.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},C.onManifestParsed=function(s,h){var m=!1,x=!1,g;h.levels.forEach(function(y){g=y.audioCodec,g&&(g.indexOf("mp4a.40.2")!==-1&&(m=!0),g.indexOf("mp4a.40.5")!==-1&&(x=!0))}),this.audioCodecSwitch=m&&x&&!Object(O.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=h.levels,this.startFragRequested=!1},C.onLevelLoading=function(s,h){var m=this.levels;if(!m||this.state!==_.State.IDLE)return;var x=m[h.level];(!x.details||x.details.live&&this.levelLastLoaded!==h.level||this.waitForCdnTuneIn(x.details))&&(this.state=_.State.WAITING_LEVEL)},C.onLevelLoaded=function(s,h){var m,x=this.levels,g=h.level,y=h.details,U=y.totalduration;if(!x){this.warn("Levels were reset while loading level "+g);return}this.log("Level "+g+" loaded ["+y.startSN+","+y.endSN+"], cc ["+y.startCC+", "+y.endCC+"] duration:"+U);var N=this.fragCurrent;N&&(this.state===_.State.FRAG_LOADING||this.state===_.State.FRAG_LOADING_WAITING_RETRY)&&(N.level!==h.level&&N.loader&&(this.state=_.State.IDLE,N.loader.abort()));var S=x[g],H=0;if(y.live||(m=S.details)!==null&&m!==void 0&&m.live){if(y.fragments[0]||(y.deltaUpdateFailed=!0),y.deltaUpdateFailed)return;H=this.alignPlaylists(y,S.details)}if(S.details=y,this.levelLastLoaded=g,this.hls.trigger(M.Events.LEVEL_UPDATED,{details:y,level:g}),this.state===_.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(y))return;this.state=_.State.IDLE}this.startFragRequested?y.live&&this.synchronizeToLiveEdge(y):this.setStartPosition(y,H),this.tick()},C._handleFragmentLoadProgress=function(s){var h,m=s.frag,x=s.part,g=s.payload,y=this.levels;if(!y){this.warn("Levels were reset while fragment load was in progress. Fragment "+m.sn+" of level "+m.level+" will not be buffered");return}var U=y[m.level],N=U.details;if(!N){this.warn("Dropping fragment "+m.sn+" of level "+m.level+" after level details were reset");return}var S=U.videoCodec,H=N.PTSKnown||!N.live,F=(h=m.initSegment)===null||h===void 0?void 0:h.data,B=this._getAudioCodec(U),z=this.transmuxer=this.transmuxer||new t.default(this.hls,p.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),K=x?x.index:-1,$=K!==-1,te=new A.ChunkMetadata(m.level,m.sn,m.stats.chunkCount,g.byteLength,K,$),fe=this.initPTS[m.cc];z.push(g,F,B,S,m,x,N.totalduration,H,te,fe)},C.onAudioTrackSwitching=function(s,h){var m=this.altAudio,x=!!h.url,g=h.id;if(!x){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var y=this.fragCurrent;y!=null&&y.loader&&(this.log("Switching to main audio track, cancel main fragment load"),y.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var U=this.hls;m&&U.trigger(M.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),U.trigger(M.Events.AUDIO_TRACK_SWITCHED,{id:g})}},C.onAudioTrackSwitched=function(s,h){var m=h.id,x=!!this.hls.audioTracks[m].url;if(x){var g=this.videoBuffer;g&&this.mediaBuffer!==g&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=g)}this.altAudio=x,this.tick()},C.onBufferCreated=function(s,h){var m=h.tracks,x,g,y=!1;for(var U in m){var N=m[U];if(N.id==="main"){if(g=U,x=N,U==="video"){var S=m[U];S&&(this.videoBuffer=S.buffer)}}else y=!0}y&&x?(this.log("Alternate track found, use "+g+".buffered to schedule main fragment loading"),this.mediaBuffer=x.buffer):this.mediaBuffer=this.media},C.onFragBuffered=function(s,h){var m=h.frag,x=h.part;if(m&&m.type!==p.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(m)){this.warn("Fragment "+m.sn+(x?" p: "+x.index:"")+" of level "+m.level+" finished buffering, but was aborted. state: "+this.state),this.state===_.State.PARSED&&(this.state=_.State.IDLE);return}var g=x?x.stats:m.stats;this.fragLastKbps=Math.round(8*g.total/(g.buffering.end-g.loading.first)),m.sn!=="initSegment"&&(this.fragPrevious=m),this.fragBufferedComplete(m,x)},C.onError=function(s,h){switch(h.details){case i.ErrorDetails.FRAG_LOAD_ERROR:case i.ErrorDetails.FRAG_LOAD_TIMEOUT:case i.ErrorDetails.KEY_LOAD_ERROR:case i.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(p.PlaylistLevelType.MAIN,h);break;case i.ErrorDetails.LEVEL_LOAD_ERROR:case i.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==_.State.ERROR&&(h.fatal?(this.warn(""+h.details),this.state=_.State.ERROR):!h.levelRetry&&this.state===_.State.WAITING_LEVEL&&(this.state=_.State.IDLE));break;case i.ErrorDetails.BUFFER_FULL_ERROR:if(h.parent==="main"&&(this.state===_.State.PARSING||this.state===_.State.PARSED)){var m=!0,x=this.getFwdBufferInfo(this.media,p.PlaylistLevelType.MAIN);x&&x.len>.5&&(m=!this.reduceMaxBufferLength(x.len)),m&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},C.checkBuffer=function(){var s=this.media,h=this.gapController;if(!s||!h||!s.readyState)return;var m=T.BufferHelper.getBuffered(s);!this.loadedmetadata&&m.length?(this.loadedmetadata=!0,this.seekToStartPos()):h.poll(this.lastCurrentTime),this.lastCurrentTime=s.currentTime},C.onFragLoadEmergencyAborted=function(){this.state=_.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},C.onBufferFlushed=function(s,h){var m=h.type;if(m!==a.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var x=(m===a.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(x,m,p.PlaylistLevelType.MAIN)}},C.onLevelsUpdated=function(s,h){this.levels=h.levels},C.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},C.seekToStartPos=function(){var s=this.media,h=s.currentTime,m=this.startPosition;if(m>=0&&h<m){if(s.seeking){c.logger.log("could not seek to "+m+", already seeking at "+h);return}var x=T.BufferHelper.getBuffered(s),g=x.length?x.start(0):0,y=g-m;y>0&&(y<this.config.maxBufferHole||y<this.config.maxFragLookUpTolerance)&&(c.logger.log("adjusting start position by "+y+" to match buffer start"),m+=y,this.startPosition=m),this.log("seek to target start position "+m+" from current time "+h),s.currentTime=m}},C._getAudioCodec=function(s){var h=this.config.defaultAudioCodec||s.audioCodec;return this.audioCodecSwap&&h&&(this.log("Swapping audio codec"),h.indexOf("mp4a.40.5")!==-1?h="mp4a.40.2":h="mp4a.40.5"),h},C._loadBitrateTestFrag=function(s){var h=this;this._doFragLoad(s).then(function(m){var x=h.hls;if(!m||x.nextLoadLevel||h.fragContextChanged(s))return;h.fragLoadError=0,h.state=_.State.IDLE,h.startFragRequested=!1,h.bitrateTest=!1;var g=s.stats;g.parsing.start=g.parsing.end=g.buffering.start=g.buffering.end=self.performance.now(),x.trigger(M.Events.FRAG_LOADED,m)})},C._handleTransmuxComplete=function(s){var h,m="main",x=this.hls,g=s.remuxResult,y=s.chunkMeta,U=this.getCurrentContext(y);if(!U){this.warn("The loading context changed while buffering fragment "+y.sn+" of level "+y.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(y.level);return}var N=U.frag,S=U.part,H=U.level,F=g.video,B=g.text,z=g.id3,K=g.initSegment,$=this.altAudio?void 0:g.audio;if(this.fragContextChanged(N))return;if(this.state=_.State.PARSING,K){K.tracks&&(this._bufferInitSegment(H,K.tracks,N,y),x.trigger(M.Events.FRAG_PARSING_INIT_SEGMENT,{frag:N,id:m,tracks:K.tracks}));var te=K.initPTS,fe=K.timescale;Object(k.isFiniteNumber)(te)&&(this.initPTS[N.cc]=te,x.trigger(M.Events.INIT_PTS_FOUND,{frag:N,id:m,initPTS:te,timescale:fe}))}if(F&&g.independent!==!1){if(H.details){var Ae=F.startPTS,ce=F.endPTS,ie=F.startDTS,ye=F.endDTS;if(S)S.elementaryStreams[F.type]={startPTS:Ae,endPTS:ce,startDTS:ie,endDTS:ye};else if(F.firstKeyFrame&&F.independent&&(this.couldBacktrack=!0),F.dropped&&F.independent){var le=this.getLoadPosition()+this.config.maxBufferHole;if(le<Ae){this.backtrack(N);return}N.setElementaryStreamInfo(F.type,N.start,ce,N.start,ye,!0)}N.setElementaryStreamInfo(F.type,Ae,ce,ie,ye),this.bufferFragmentData(F,N,S,y)}}else if(g.independent===!1){this.backtrack(N);return}if($){var me=$.startPTS,se=$.endPTS,ge=$.startDTS,ae=$.endDTS;S&&(S.elementaryStreams[a.ElementaryStreamTypes.AUDIO]={startPTS:me,endPTS:se,startDTS:ge,endDTS:ae}),N.setElementaryStreamInfo(a.ElementaryStreamTypes.AUDIO,me,se,ge,ae),this.bufferFragmentData($,N,S,y)}if(z!=null&&(h=z.samples)!==null&&h!==void 0&&h.length){var pe={frag:N,id:m,samples:z.samples};x.trigger(M.Events.FRAG_PARSING_METADATA,pe)}if(B){var Me={frag:N,id:m,samples:B.samples};x.trigger(M.Events.FRAG_PARSING_USERDATA,Me)}},C._bufferInitSegment=function(s,h,m,x){var g=this;if(this.state!==_.State.PARSING)return;this.audioOnly=!!h.audio&&!h.video,this.altAudio&&!this.audioOnly&&delete h.audio;var y=h.audio,U=h.video,N=h.audiovideo;if(y){var S=s.audioCodec,H=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(S&&(S.indexOf("mp4a.40.5")!==-1?S="mp4a.40.2":S="mp4a.40.5"),y.metadata.channelCount!==1&&H.indexOf("firefox")===-1&&(S="mp4a.40.5")),H.indexOf("android")!==-1&&y.container!=="audio/mpeg"&&(S="mp4a.40.2",this.log("Android: force audio codec to "+S)),s.audioCodec&&s.audioCodec!==S&&this.log('Swapping manifest audio codec "'+s.audioCodec+'" for "'+S+'"'),y.levelCodec=S,y.id="main",this.log("Init audio buffer, container:"+y.container+", codecs[selected/level/parsed]=["+(S||"")+"/"+(s.audioCodec||"")+"/"+y.codec+"]")}U&&(U.levelCodec=s.videoCodec,U.id="main",this.log("Init video buffer, container:"+U.container+", codecs[level/parsed]=["+(s.videoCodec||"")+"/"+U.codec+"]")),N&&this.log("Init audiovideo buffer, container:"+N.container+", codecs[level/parsed]=["+(s.attrs.CODECS||"")+"/"+N.codec+"]"),this.hls.trigger(M.Events.BUFFER_CODECS,h),Object.keys(h).forEach(function(F){var B=h[F],z=B.initSegment;z!=null&&z.byteLength&&g.hls.trigger(M.Events.BUFFER_APPENDING,{type:F,data:z,frag:m,part:null,chunkMeta:x,parent:m.type})}),this.tick()},C.backtrack=function(s){this.couldBacktrack=!0,this.resetTransmuxer(),this.flushBufferGap(s);var h=this.fragmentTracker.backtrack(s);this.fragPrevious=null,this.nextLoadPosition=s.start,h?this.resetFragmentLoading(s):this.state=_.State.BACKTRACKING},C.checkFragmentChanged=function(){var s=this.media,h=null;if(s&&s.readyState>1&&s.seeking===!1){var m=s.currentTime;if(T.BufferHelper.isBuffered(s,m)?h=this.getAppendedFrag(m):T.BufferHelper.isBuffered(s,m+.1)&&(h=this.getAppendedFrag(m+.1)),h){var x=this.fragPlaying,g=h.level;(!x||h.sn!==x.sn||x.level!==g||h.urlId!==x.urlId)&&(this.hls.trigger(M.Events.FRAG_CHANGED,{frag:h}),(!x||x.level!==g)&&this.hls.trigger(M.Events.LEVEL_SWITCHED,{level:g}),this.fragPlaying=h)}}},f(P,[{key:"nextLevel",get:function(){var s=this.nextBufferedFrag;return s?s.level:-1}},{key:"currentLevel",get:function(){var s=this.media;if(s){var h=this.getAppendedFrag(s.currentTime);if(h)return h.level}return-1}},{key:"nextBufferedFrag",get:function(){var s=this.media;if(s){var h=this.getAppendedFrag(s.currentTime);return this.followingBufferedFrag(h)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),P}(_.default)},"./src/controller/subtitle-stream-controller.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"SubtitleStreamController",function(){return o});var k=I("./src/events.ts"),_=I("./src/utils/logger.ts"),O=I("./src/utils/buffer-helper.ts"),M=I("./src/controller/fragment-finders.ts"),T=I("./src/utils/discontinuities.ts"),n=I("./src/controller/level-helper.ts"),p=I("./src/controller/fragment-tracker.ts"),a=I("./src/controller/base-stream-controller.ts"),t=I("./src/types/loader.ts"),A=I("./src/types/level.ts");function l(u,E){for(var R=0;R<E.length;R++){var w=E[R];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(u,w.key,w)}}function i(u,E,R){return E&&l(u.prototype,E),R&&l(u,R),u}function c(u,E){u.prototype=Object.create(E.prototype),u.prototype.constructor=u,d(u,E)}function d(u,E){return d=Object.setPrototypeOf||function(w,P){return w.__proto__=P,w},d(u,E)}var f=500,o=function(u){c(E,u);function E(w,P){var C;return C=u.call(this,w,P,"[subtitle-stream-controller]")||this,C.levels=[],C.currentTrackId=-1,C.tracksBuffered=[],C.mainDetails=null,C._registerListeners(),C}var R=E.prototype;return R.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},R._registerListeners=function(){var P=this.hls;P.on(k.Events.MEDIA_ATTACHED,this.onMediaAttached,this),P.on(k.Events.MEDIA_DETACHING,this.onMediaDetaching,this),P.on(k.Events.MANIFEST_LOADING,this.onManifestLoading,this),P.on(k.Events.LEVEL_LOADED,this.onLevelLoaded,this),P.on(k.Events.ERROR,this.onError,this),P.on(k.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),P.on(k.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),P.on(k.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),P.on(k.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),P.on(k.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},R._unregisterListeners=function(){var P=this.hls;P.off(k.Events.MEDIA_ATTACHED,this.onMediaAttached,this),P.off(k.Events.MEDIA_DETACHING,this.onMediaDetaching,this),P.off(k.Events.MANIFEST_LOADING,this.onManifestLoading,this),P.off(k.Events.LEVEL_LOADED,this.onLevelLoaded,this),P.off(k.Events.ERROR,this.onError,this),P.off(k.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),P.off(k.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),P.off(k.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),P.off(k.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),P.off(k.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},R.startLoad=function(){this.stopLoad(),this.state=a.State.IDLE,this.setInterval(f),this.tick()},R.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},R.onLevelLoaded=function(P,C){this.mainDetails=C.details},R.onSubtitleFragProcessed=function(P,C){var b=C.frag,s=C.success;if(this.fragPrevious=b,this.state=a.State.IDLE,!s)return;var h=this.tracksBuffered[this.currentTrackId];if(!h)return;for(var m,x=b.start,g=0;g<h.length;g++)if(x>=h[g].start&&x<=h[g].end){m=h[g];break}var y=b.start+b.duration;m?m.end=y:(m={start:x,end:y},h.push(m)),this.fragmentTracker.fragBuffered(b)},R.onBufferFlushing=function(P,C){var b=C.startOffset,s=C.endOffset;if(b===0&&s!==Number.POSITIVE_INFINITY){var h=this.currentTrackId,m=this.levels;if(!m.length||!m[h]||!m[h].details)return;var x=m[h].details,g=x.targetduration,y=s-g;if(y<=0)return;C.endOffsetSubtitles=Math.max(0,y),this.tracksBuffered.forEach(function(U){for(var N=0;N<U.length;){if(U[N].end<=y){U.shift();continue}else if(U[N].start<y)U[N].start=y;else break;N++}}),this.fragmentTracker.removeFragmentsInRange(b,y,t.PlaylistLevelType.SUBTITLE)}},R.onError=function(P,C){var b,s=C.frag;if(!s||s.type!==t.PlaylistLevelType.SUBTITLE)return;(b=this.fragCurrent)!==null&&b!==void 0&&b.loader&&this.fragCurrent.loader.abort(),this.state=a.State.IDLE},R.onSubtitleTracksUpdated=function(P,C){var b=this,s=C.subtitleTracks;this.tracksBuffered=[],this.levels=s.map(function(h){return new A.Level(h)}),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach(function(h){b.tracksBuffered[h.id]=[]}),this.mediaBuffer=null},R.onSubtitleTrackSwitch=function(P,C){if(this.currentTrackId=C.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var b=this.levels[this.currentTrackId];b!=null&&b.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,b&&this.setInterval(f)},R.onSubtitleTrackLoaded=function(P,C){var b,s=C.details,h=C.id,m=this.currentTrackId,x=this.levels;if(!x.length)return;var g=x[m];if(h>=x.length||h!==m||!g)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,s.live||(b=g.details)!==null&&b!==void 0&&b.live){var y=this.mainDetails;if(s.deltaUpdateFailed||!y)return;var U=y.fragments[0];if(!g.details)s.hasProgramDateTime&&y.hasProgramDateTime?Object(T.alignMediaPlaylistByPDT)(s,y):U&&Object(n.addSliding)(s,U.start);else{var N=this.alignPlaylists(s,g.details);N===0&&U&&Object(n.addSliding)(s,U.start)}}if(g.details=s,this.levelLastLoaded=h,this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===a.State.IDLE){var S=Object(M.findFragmentByPTS)(null,s.fragments,this.media.currentTime,0);S||(this.warn("Subtitle playlist not aligned with playback"),g.details=void 0)}},R._handleFragmentLoadComplete=function(P){var C=P.frag,b=P.payload,s=C.decryptdata,h=this.hls;if(this.fragContextChanged(C))return;if(b&&b.byteLength>0&&s&&s.key&&s.iv&&s.method==="AES-128"){var m=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(b),s.key.buffer,s.iv.buffer).then(function(x){var g=performance.now();h.trigger(k.Events.FRAG_DECRYPTED,{frag:C,payload:x,stats:{tstart:m,tdecrypt:g}})})}},R.doTick=function(){if(!this.media){this.state=a.State.IDLE;return}if(this.state===a.State.IDLE){var P,C=this.currentTrackId,b=this.levels;if(!b.length||!b[C]||!b[C].details)return;var s=b[C].details,h=s.targetduration,m=this.config,x=this.media,g=O.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,x.currentTime-h,m.maxBufferHole),y=g.end,U=g.len,N=this.getMaxBufferLength()+h;if(U>N)return;console.assert(s,"Subtitle track details are defined on idle subtitle stream controller tick");var S=s.fragments,H=S.length,F=s.edge,B,z=this.fragPrevious;if(y<F){var K=m.maxFragLookUpTolerance;z&&s.hasProgramDateTime&&(B=Object(M.findFragmentByPDT)(S,z.endProgramDateTime,K)),B||(B=Object(M.findFragmentByPTS)(z,S,y,K),!B&&z&&z.start<S[0].start&&(B=S[0]))}else B=S[H-1];(P=B)!==null&&P!==void 0&&P.encrypted?(_.logger.log("Loading key for "+B.sn),this.state=a.State.KEY_LOADING,this.hls.trigger(k.Events.KEY_LOADING,{frag:B})):B&&this.fragmentTracker.getState(B)===p.FragmentState.NOT_LOADED&&this.loadFragment(B,s,y)}},R.loadFragment=function(P,C,b){this.fragCurrent=P,u.prototype.loadFragment.call(this,P,C,b)},i(E,[{key:"mediaBufferTimeRanges",get:function(){return this.tracksBuffered[this.currentTrackId]||[]}}]),E}(a.default)},"./src/controller/subtitle-track-controller.ts":function(Z,Q,I){"use strict";I.r(Q);var k=I("./src/events.ts"),_=I("./src/utils/texttrack-utils.ts"),O=I("./src/controller/base-playlist-controller.ts"),M=I("./src/types/loader.ts");function T(l,i){for(var c=0;c<i.length;c++){var d=i[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}function n(l,i,c){return i&&T(l.prototype,i),c&&T(l,c),l}function p(l,i){l.prototype=Object.create(i.prototype),l.prototype.constructor=l,a(l,i)}function a(l,i){return a=Object.setPrototypeOf||function(d,f){return d.__proto__=f,d},a(l,i)}var t=function(l){p(i,l);function i(d){var f;return f=l.call(this,d,"[subtitle-track-controller]")||this,f.media=null,f.tracks=[],f.groupId=null,f.tracksInGroup=[],f.trackId=-1,f.selectDefaultTrack=!0,f.queuedDefaultTrack=-1,f.trackChangeListener=function(){return f.onTextTracksChanged()},f.asyncPollTrackChange=function(){return f.pollTrackChange(0)},f.useTextTrackPolling=!1,f.subtitlePollingInterval=-1,f.subtitleDisplay=!0,f.registerListeners(),f}var c=i.prototype;return c.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,l.prototype.destroy.call(this)},c.registerListeners=function(){var f=this.hls;f.on(k.Events.MEDIA_ATTACHED,this.onMediaAttached,this),f.on(k.Events.MEDIA_DETACHING,this.onMediaDetaching,this),f.on(k.Events.MANIFEST_LOADING,this.onManifestLoading,this),f.on(k.Events.MANIFEST_PARSED,this.onManifestParsed,this),f.on(k.Events.LEVEL_LOADING,this.onLevelLoading,this),f.on(k.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),f.on(k.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),f.on(k.Events.ERROR,this.onError,this)},c.unregisterListeners=function(){var f=this.hls;f.off(k.Events.MEDIA_ATTACHED,this.onMediaAttached,this),f.off(k.Events.MEDIA_DETACHING,this.onMediaDetaching,this),f.off(k.Events.MANIFEST_LOADING,this.onManifestLoading,this),f.off(k.Events.MANIFEST_PARSED,this.onManifestParsed,this),f.off(k.Events.LEVEL_LOADING,this.onLevelLoading,this),f.off(k.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),f.off(k.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),f.off(k.Events.ERROR,this.onError,this)},c.onMediaAttached=function(f,o){if(this.media=o.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)},c.pollTrackChange=function(f){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,f)},c.onMediaDetaching=function(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var f=A(this.media.textTracks);f.forEach(function(o){Object(_.clearCurrentCues)(o)}),this.subtitleTrack=-1,this.media=null},c.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},c.onManifestParsed=function(f,o){this.tracks=o.subtitleTracks},c.onSubtitleTrackLoaded=function(f,o){var u=o.id,E=o.details,R=this.trackId,w=this.tracksInGroup[R];if(!w){this.warn("Invalid subtitle track id "+u);return}var P=w.details;w.details=o.details,this.log("subtitle track "+u+" loaded ["+E.startSN+"-"+E.endSN+"]"),u===this.trackId&&(this.retryCount=0,this.playlistLoaded(u,o,P))},c.onLevelLoading=function(f,o){this.switchLevel(o.level)},c.onLevelSwitching=function(f,o){this.switchLevel(o.level)},c.switchLevel=function(f){var o=this.hls.levels[f];if(!(o!=null&&o.textGroupIds))return;var u=o.textGroupIds[o.urlId];if(this.groupId!==u){var E=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,R=this.tracks.filter(function(C){return!u||C.groupId===u});this.tracksInGroup=R;var w=this.findTrackId(E==null?void 0:E.name)||this.findTrackId();this.groupId=u;var P={subtitleTracks:R};this.log("Updating subtitle tracks, "+R.length+' track(s) found in "'+u+'" group-id'),this.hls.trigger(k.Events.SUBTITLE_TRACKS_UPDATED,P),w!==-1&&this.setSubtitleTrack(w,E)}},c.findTrackId=function(f){for(var o=this.tracksInGroup,u=0;u<o.length;u++){var E=o[u];if((!this.selectDefaultTrack||E.default)&&(!f||f===E.name))return E.id}return-1},c.onError=function(f,o){if(l.prototype.onError.call(this,f,o),o.fatal||!o.context)return;o.context.type===M.PlaylistContextType.SUBTITLE_TRACK&&o.context.id===this.trackId&&o.context.groupId===this.groupId&&this.retryLoadingOrFail(o)},c.loadPlaylist=function(f){var o=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(o)){var u=o.id,E=o.groupId,R=o.url;if(f)try{R=f.addDirectives(R)}catch(w){this.warn("Could not construct new URL with HLS Delivery Directives: "+w)}this.log("Loading subtitle playlist for id "+u),this.hls.trigger(k.Events.SUBTITLE_TRACK_LOADING,{url:R,id:u,groupId:E,deliveryDirectives:f||null})}},c.toggleTrackModes=function(f){var o=this,u=this.media,E=this.subtitleDisplay,R=this.trackId;if(!u)return;var w=A(u.textTracks),P=w.filter(function(s){return s.groupId===o.groupId});if(f===-1)[].slice.call(w).forEach(function(s){s.mode="disabled"});else{var C=P[R];C&&(C.mode="disabled")}var b=P[f];b&&(b.mode=E?"showing":"hidden")},c.setSubtitleTrack=function(f,o){var u,E=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=f;return}if(this.trackId!==f&&this.toggleTrackModes(f),this.trackId===f&&(f===-1||(u=E[f])!==null&&u!==void 0&&u.details)||f<-1||f>=E.length)return;this.clearTimer();var R=E[f];if(this.log("Switching to subtitle track "+f),this.trackId=f,R){var w=R.id,P=R.groupId,C=P===void 0?"":P,b=R.name,s=R.type,h=R.url;this.hls.trigger(k.Events.SUBTITLE_TRACK_SWITCH,{id:w,groupId:C,name:b,type:s,url:h});var m=this.switchParams(R.url,o==null?void 0:o.details);this.loadPlaylist(m)}else this.hls.trigger(k.Events.SUBTITLE_TRACK_SWITCH,{id:f})},c.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var f=-1,o=A(this.media.textTracks),u=0;u<o.length;u++)if(o[u].mode==="hidden")f=u;else if(o[u].mode==="showing"){f=u;break}this.subtitleTrack!==f&&(this.subtitleTrack=f)},n(i,[{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(f){this.selectDefaultTrack=!1;var o=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(f,o)}}]),i}(O.default);function A(l){for(var i=[],c=0;c<l.length;c++){var d=l[c];d.kind==="subtitles"&&d.label&&i.push(l[c])}return i}Q.default=t},"./src/controller/timeline-controller.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"TimelineController",function(){return A});var k=I("./src/polyfills/number.ts"),_=I("./src/events.ts"),O=I("./src/utils/cea-608-parser.ts"),M=I("./src/utils/output-filter.ts"),T=I("./src/utils/webvtt-parser.ts"),n=I("./src/utils/texttrack-utils.ts"),p=I("./src/utils/imsc1-ttml-parser.ts"),a=I("./src/types/loader.ts"),t=I("./src/utils/logger.ts"),A=function(){function d(o){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=c(),this.captionsProperties=void 0,this.hls=o,this.config=o.config,this.Cues=o.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 u=new M.default(this,"textTrack1"),E=new M.default(this,"textTrack2"),R=new M.default(this,"textTrack3"),w=new M.default(this,"textTrack4");this.cea608Parser1=new O.default(1,u,E),this.cea608Parser2=new O.default(3,R,w)}o.on(_.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),o.on(_.Events.MEDIA_DETACHING,this.onMediaDetaching,this),o.on(_.Events.MANIFEST_LOADING,this.onManifestLoading,this),o.on(_.Events.MANIFEST_LOADED,this.onManifestLoaded,this),o.on(_.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),o.on(_.Events.FRAG_LOADING,this.onFragLoading,this),o.on(_.Events.FRAG_LOADED,this.onFragLoaded,this),o.on(_.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),o.on(_.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),o.on(_.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),o.on(_.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),o.on(_.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)}var f=d.prototype;return f.destroy=function(){var u=this.hls;u.off(_.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),u.off(_.Events.MEDIA_DETACHING,this.onMediaDetaching,this),u.off(_.Events.MANIFEST_LOADING,this.onManifestLoading,this),u.off(_.Events.MANIFEST_LOADED,this.onManifestLoaded,this),u.off(_.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),u.off(_.Events.FRAG_LOADING,this.onFragLoading,this),u.off(_.Events.FRAG_LOADED,this.onFragLoaded,this),u.off(_.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),u.off(_.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),u.off(_.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),u.off(_.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),u.off(_.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},f.addCues=function(u,E,R,w,P){for(var C=!1,b=P.length;b--;){var s=P[b],h=i(s[0],s[1],E,R);if(h>=0&&(s[0]=Math.min(s[0],E),s[1]=Math.max(s[1],R),C=!0,h/(R-E)>.5))return}if(C||P.push([E,R]),this.config.renderTextTracksNatively){var m=this.captionsTracks[u];this.Cues.newCue(m,E,R,w)}else{var x=this.Cues.newCue(null,E,R,w);this.hls.trigger(_.Events.CUES_PARSED,{type:"captions",cues:x,track:u})}},f.onInitPtsFound=function(u,E){var R=this,w=E.frag,P=E.id,C=E.initPTS,b=E.timescale,s=this.unparsedVttFrags;P==="main"&&(this.initPTS[w.cc]=C,this.timescale[w.cc]=b),s.length&&(this.unparsedVttFrags=[],s.forEach(function(h){R.onFragLoaded(_.Events.FRAG_LOADED,h)}))},f.getExistingTrack=function(u){var E=this.media;if(E)for(var R=0;R<E.textTracks.length;R++){var w=E.textTracks[R];if(w[u])return w}return null},f.createCaptionsTrack=function(u){this.config.renderTextTracksNatively?this.createNativeTrack(u):this.createNonNativeTrack(u)},f.createNativeTrack=function(u){if(this.captionsTracks[u])return;var E=this.captionsProperties,R=this.captionsTracks,w=this.media,P=E[u],C=P.label,b=P.languageCode,s=this.getExistingTrack(u);if(s)R[u]=s,Object(n.clearCurrentCues)(R[u]),Object(n.sendAddTrackEvent)(R[u],w);else{var h=this.createTextTrack("captions",C,b);h&&(h[u]=!0,R[u]=h)}},f.createNonNativeTrack=function(u){if(this.nonNativeCaptionsTracks[u])return;var E=this.captionsProperties[u];if(!E)return;var R=E.label,w={_id:u,label:R,kind:"captions",default:E.media?!!E.media.default:!1,closedCaptions:E.media};this.nonNativeCaptionsTracks[u]=w,this.hls.trigger(_.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[w]})},f.createTextTrack=function(u,E,R){var w=this.media;return w?w.addTextTrack(u,E,R):void 0},f.onMediaAttaching=function(u,E){this.media=E.media,this._cleanTracks()},f.onMediaDetaching=function(){var u=this.captionsTracks;Object.keys(u).forEach(function(E){Object(n.clearCurrentCues)(u[E]),delete u[E]}),this.nonNativeCaptionsTracks={}},f.onManifestLoading=function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=c(),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())},f._cleanTracks=function(){var u=this.media;if(!u)return;var E=u.textTracks;if(E)for(var R=0;R<E.length;R++)Object(n.clearCurrentCues)(E[R])},f.onSubtitleTracksUpdated=function(u,E){var R=this;this.textTracks=[];var w=E.subtitleTracks||[],P=w.some(function(h){return h.textCodec===p.IMSC1_CODEC});if(this.config.enableWebVTT||P&&this.config.enableIMSC1){var C=this.tracks&&w&&this.tracks.length===w.length;if(this.tracks=w||[],this.config.renderTextTracksNatively){var b=this.media?this.media.textTracks:[];this.tracks.forEach(function(h,m){var x;if(m<b.length){for(var g=null,y=0;y<b.length;y++)if(l(b[y],h)){g=b[y];break}g&&(x=g)}x?Object(n.clearCurrentCues)(x):(x=R.createTextTrack("subtitles",h.name,h.lang),x&&(x.mode="disabled")),x&&(x.groupId=h.groupId,R.textTracks.push(x))})}else if(!C&&this.tracks&&this.tracks.length){var s=this.tracks.map(function(h){return{label:h.name,kind:h.type.toLowerCase(),default:h.default,subtitleTrack:h}});this.hls.trigger(_.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:s})}}},f.onManifestLoaded=function(u,E){var R=this;this.config.enableCEA708Captions&&E.captions&&E.captions.forEach(function(w){var P=/(?:CC|SERVICE)([1-4])/.exec(w.instreamId);if(!P)return;var C="textTrack"+P[1],b=R.captionsProperties[C];if(!b)return;b.label=w.name,w.lang&&(b.languageCode=w.lang),b.media=w})},f.onFragLoading=function(u,E){var R=this.cea608Parser1,w=this.cea608Parser2,P=this.lastSn,C=this.lastPartIndex;if(!this.enabled||!(R&&w))return;if(E.frag.type===a.PlaylistLevelType.MAIN){var b,s,h=E.frag.sn,m=(b=E==null||((s=E.part)===null||s===void 0)?void 0:s.index)!=null?b:-1;h===P+1||h===P&&m===C+1||(R.reset(),w.reset()),this.lastSn=h,this.lastPartIndex=m}},f.onFragLoaded=function(u,E){var R=E.frag,w=E.payload,P=this.initPTS,C=this.unparsedVttFrags;if(R.type===a.PlaylistLevelType.SUBTITLE)if(w.byteLength){if(!Object(k.isFiniteNumber)(P[R.cc])){C.push(E),P.length&&this.hls.trigger(_.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:R,error:new Error("Missing initial subtitle PTS")});return}var b=R.decryptdata;if(b==null||b.key==null||b.method!=="AES-128"){var s=this.tracks[R.level],h=this.vttCCs;h[R.cc]||(h[R.cc]={start:R.start,prevCC:this.prevCC,new:!0},this.prevCC=R.cc),s&&s.textCodec===p.IMSC1_CODEC?this._parseIMSC1(R,w):this._parseVTTs(R,w,h)}}else this.hls.trigger(_.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:R,error:new Error("Empty subtitle payload")})},f._parseIMSC1=function(u,E){var R=this,w=this.hls;Object(p.parseIMSC1)(E,this.initPTS[u.cc],this.timescale[u.cc],function(P){R._appendCues(P,u.level),w.trigger(_.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:u})},function(P){t.logger.log("Failed to parse IMSC1: "+P),w.trigger(_.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:u,error:P})})},f._parseVTTs=function(u,E,R){var w=this,P=this.hls;Object(T.parseWebVTT)(E,this.initPTS[u.cc],this.timescale[u.cc],R,u.cc,u.start,function(C){w._appendCues(C,u.level),P.trigger(_.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:u})},function(C){w._fallbackToIMSC1(u,E),t.logger.log("Failed to parse VTT cue: "+C),P.trigger(_.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:u,error:C})})},f._fallbackToIMSC1=function(u,E){var R=this,w=this.tracks[u.level];w.textCodec||Object(p.parseIMSC1)(E,this.initPTS[u.cc],this.timescale[u.cc],function(){w.textCodec=p.IMSC1_CODEC,R._parseIMSC1(u,E)},function(){w.textCodec="wvtt"})},f._appendCues=function(u,E){var R=this.hls;if(this.config.renderTextTracksNatively){var w=this.textTracks[E];if(w.mode==="disabled")return;u.forEach(function(b){return Object(n.addCueToTrack)(w,b)})}else{var P=this.tracks[E],C=P.default?"default":"subtitles"+E;R.trigger(_.Events.CUES_PARSED,{type:"subtitles",cues:u,track:C})}},f.onFragDecrypted=function(u,E){var R=E.frag;if(R.type===a.PlaylistLevelType.SUBTITLE){if(!Object(k.isFiniteNumber)(this.initPTS[R.cc])){this.unparsedVttFrags.push(E);return}this.onFragLoaded(_.Events.FRAG_LOADED,E)}},f.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},f.onFragParsingUserdata=function(u,E){var R=this.cea608Parser1,w=this.cea608Parser2;if(!this.enabled||!(R&&w))return;for(var P=0;P<E.samples.length;P++){var C=E.samples[P].bytes;if(C){var b=this.extractCea608Data(C);R.addData(E.samples[P].pts,b[0]),w.addData(E.samples[P].pts,b[1])}}},f.onBufferFlushing=function(u,E){var R=E.startOffset,w=E.endOffset,P=E.endOffsetSubtitles,C=E.type,b=this.media;if(!b||b.currentTime<w)return;if(!C||C==="video"){var s=this.captionsTracks;Object.keys(s).forEach(function(m){return Object(n.removeCuesInRange)(s[m],R,w)})}if(this.config.renderTextTracksNatively&&(R===0&&P!==void 0)){var h=this.textTracks;Object.keys(h).forEach(function(m){return Object(n.removeCuesInRange)(h[m],R,P)})}},f.extractCea608Data=function(u){for(var E=u[0]&31,R=2,w=[[],[]],P=0;P<E;P++){var C=u[R++],b=127&u[R++],s=127&u[R++],h=(4&C)!==0,m=3&C;if(b===0&&s===0)continue;h&&((m===0||m===1)&&(w[m].push(b),w[m].push(s)))}return w},d}();function l(d,f){return d&&d.label===f.name&&!(d.textTrack1||d.textTrack2)}function i(d,f,o,u){return Math.min(f,u)-Math.max(d,o)}function c(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}}}},"./src/crypt/aes-crypto.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return k});var k=function(){function _(M,T){this.subtle=void 0,this.aesIV=void 0,this.subtle=M,this.aesIV=T}var O=_.prototype;return O.decrypt=function(T,n){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},n,T)},_}()},"./src/crypt/aes-decryptor.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"removePadding",function(){return _}),I.d(Q,"default",function(){return O});var k=I("./src/utils/typed-array.ts");function _(M){var T=M.byteLength,n=T&&new DataView(M.buffer).getUint8(T-1);return n?Object(k.sliceUint8)(M,0,T-n):M}var O=function(){function M(){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 T=M.prototype;return T.uint8ArrayToUint32Array_=function(p){for(var a=new DataView(p),t=new Uint32Array(4),A=0;A<4;A++)t[A]=a.getUint32(A*4);return t},T.initTable=function(){var p=this.sBox,a=this.invSBox,t=this.subMix,A=t[0],l=t[1],i=t[2],c=t[3],d=this.invSubMix,f=d[0],o=d[1],u=d[2],E=d[3],R=new Uint32Array(256),w=0,P=0,C=0;for(C=0;C<256;C++)C<128?R[C]=C<<1:R[C]=C<<1^283;for(C=0;C<256;C++){var b=P^P<<1^P<<2^P<<3^P<<4;b=b>>>8^b&255^99,p[w]=b,a[b]=w;var s=R[w],h=R[s],m=R[h],x=R[b]*257^b*16843008;A[w]=x<<24|x>>>8,l[w]=x<<16|x>>>16,i[w]=x<<8|x>>>24,c[w]=x,x=m*16843009^h*65537^s*257^w*16843008,f[b]=x<<24|x>>>8,o[b]=x<<16|x>>>16,u[b]=x<<8|x>>>24,E[b]=x,w?(w=s^R[R[R[m^s]]],P^=R[R[P]]):w=P=1}},T.expandKey=function(p){for(var a=this.uint8ArrayToUint32Array_(p),t=!0,A=0;A<a.length&&t;)t=a[A]===this.key[A],A++;if(t)return;this.key=a;var l=this.keySize=a.length;if(l!==4&&l!==6&&l!==8)throw new Error("Invalid aes key size="+l);var i=this.ksRows=(l+6+1)*4,c,d,f=this.keySchedule=new Uint32Array(i),o=this.invKeySchedule=new Uint32Array(i),u=this.sBox,E=this.rcon,R=this.invSubMix,w=R[0],P=R[1],C=R[2],b=R[3],s,h;for(c=0;c<i;c++){if(c<l){s=f[c]=a[c];continue}h=s,c%l===0?(h=h<<8|h>>>24,h=u[h>>>24]<<24|u[h>>>16&255]<<16|u[h>>>8&255]<<8|u[h&255],h^=E[c/l|0]<<24):l>6&&c%l===4&&(h=u[h>>>24]<<24|u[h>>>16&255]<<16|u[h>>>8&255]<<8|u[h&255]),f[c]=s=(f[c-l]^h)>>>0}for(d=0;d<i;d++)c=i-d,d&3?h=f[c]:h=f[c-4],d<4||c<=4?o[d]=h:o[d]=w[u[h>>>24]]^P[u[h>>>16&255]]^C[u[h>>>8&255]]^b[u[h&255]],o[d]=o[d]>>>0},T.networkToHostOrderSwap=function(p){return p<<24|(p&65280)<<8|(p&16711680)>>8|p>>>24},T.decrypt=function(p,a,t){for(var A=this.keySize+6,l=this.invKeySchedule,i=this.invSBox,c=this.invSubMix,d=c[0],f=c[1],o=c[2],u=c[3],E=this.uint8ArrayToUint32Array_(t),R=E[0],w=E[1],P=E[2],C=E[3],b=new Int32Array(p),s=new Int32Array(b.length),h,m,x,g,y,U,N,S,H,F,B,z,K,$,te=this.networkToHostOrderSwap;a<b.length;){for(H=te(b[a]),F=te(b[a+1]),B=te(b[a+2]),z=te(b[a+3]),y=H^l[0],U=z^l[1],N=B^l[2],S=F^l[3],K=4,$=1;$<A;$++)h=d[y>>>24]^f[U>>16&255]^o[N>>8&255]^u[S&255]^l[K],m=d[U>>>24]^f[N>>16&255]^o[S>>8&255]^u[y&255]^l[K+1],x=d[N>>>24]^f[S>>16&255]^o[y>>8&255]^u[U&255]^l[K+2],g=d[S>>>24]^f[y>>16&255]^o[U>>8&255]^u[N&255]^l[K+3],y=h,U=m,N=x,S=g,K=K+4;h=i[y>>>24]<<24^i[U>>16&255]<<16^i[N>>8&255]<<8^i[S&255]^l[K],m=i[U>>>24]<<24^i[N>>16&255]<<16^i[S>>8&255]<<8^i[y&255]^l[K+1],x=i[N>>>24]<<24^i[S>>16&255]<<16^i[y>>8&255]<<8^i[U&255]^l[K+2],g=i[S>>>24]<<24^i[y>>16&255]<<16^i[U>>8&255]<<8^i[N&255]^l[K+3],s[a]=te(h^R),s[a+1]=te(g^w),s[a+2]=te(x^P),s[a+3]=te(m^C),R=H,w=F,P=B,C=z,a=a+4}return s.buffer},M}()},"./src/crypt/decrypter.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return a});var k=I("./src/crypt/aes-crypto.ts"),_=I("./src/crypt/fast-aes-key.ts"),O=I("./src/crypt/aes-decryptor.ts"),M=I("./src/utils/logger.ts"),T=I("./src/utils/mp4-tools.ts"),n=I("./src/utils/typed-array.ts"),p=16,a=function(){function t(l,i,c){var d=c===void 0?{}:c,f=d.removePKCS7Padding,o=f===void 0?!0:f;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=l,this.config=i,this.removePKCS7Padding=o,o)try{var u=self.crypto;u&&(this.subtle=u.subtle||u.webkitSubtle)}catch(E){}this.subtle===null&&(this.config.enableSoftwareAES=!0)}var A=t.prototype;return A.destroy=function(){this.observer=null},A.isSync=function(){return this.config.enableSoftwareAES},A.flush=function(){var i=this.currentResult;if(!i){this.reset();return}var c=new Uint8Array(i);return this.reset(),this.removePKCS7Padding?Object(O.removePadding)(c):c},A.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},A.decrypt=function(i,c,d,f){if(this.config.enableSoftwareAES){this.softwareDecrypt(new Uint8Array(i),c,d);var o=this.flush();o&&f(o.buffer)}else this.webCryptoDecrypt(new Uint8Array(i),c,d).then(f)},A.softwareDecrypt=function(i,c,d){var f=this.currentIV,o=this.currentResult,u=this.remainderData;this.logOnce("JS AES decrypt"),u&&(i=Object(T.appendUint8Array)(u,i),this.remainderData=null);var E=this.getValidChunk(i);if(!E.length)return null;f&&(d=f);var R=this.softwareDecrypter;R||(R=this.softwareDecrypter=new O.default),R.expandKey(c);var w=o;return this.currentResult=R.decrypt(E.buffer,0,d),this.currentIV=Object(n.sliceUint8)(E,-16).buffer,w||null},A.webCryptoDecrypt=function(i,c,d){var f=this,o=this.subtle;return(this.key!==c||!this.fastAesKey)&&(this.key=c,this.fastAesKey=new _.default(o,c)),this.fastAesKey.expandKey().then(function(u){if(!o)return Promise.reject(new Error("web crypto not initialized"));var E=new k.default(o,d);return E.decrypt(i.buffer,u)}).catch(function(u){return f.onWebCryptoError(u,i,c,d)})},A.onWebCryptoError=function(i,c,d,f){return M.logger.warn("[decrypter.ts]: WebCrypto Error, disable WebCrypto API:",i),this.config.enableSoftwareAES=!0,this.logEnabled=!0,this.softwareDecrypt(c,d,f)},A.getValidChunk=function(i){var c=i,d=i.length-i.length%p;return d!==i.length&&(c=Object(n.sliceUint8)(i,0,d),this.remainderData=Object(n.sliceUint8)(i,d)),c},A.logOnce=function(i){if(!this.logEnabled)return;M.logger.log("[decrypter.ts]: "+i),this.logEnabled=!1},t}()},"./src/crypt/fast-aes-key.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return k});var k=function(){function _(M,T){this.subtle=void 0,this.key=void 0,this.subtle=M,this.key=T}var O=_.prototype;return O.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},_}()},"./src/demux/aacdemuxer.ts":function(Z,Q,I){"use strict";I.r(Q);var k=I("./src/demux/base-audio-demuxer.ts"),_=I("./src/demux/adts.ts"),O=I("./src/utils/logger.ts"),M=I("./src/demux/id3.ts");function T(a,t){a.prototype=Object.create(t.prototype),a.prototype.constructor=a,n(a,t)}function n(a,t){return n=Object.setPrototypeOf||function(l,i){return l.__proto__=i,l},n(a,t)}var p=function(a){T(t,a);function t(l,i){var c;return c=a.call(this)||this,c.observer=void 0,c.config=void 0,c.observer=l,c.config=i,c}var A=t.prototype;return A.resetInitSegment=function(i,c,d){a.prototype.resetInitSegment.call(this,i,c,d),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!0,samples:[],manifestCodec:i,duration:d,inputTimeScale:9e4,dropped:0}},t.probe=function(i){if(!i)return!1;for(var c=M.getID3Data(i,0)||[],d=c.length,f=i.length;d<f;d++)if(_.probe(i,d))return O.logger.log("ADTS sync word found !"),!0;return!1},A.canParse=function(i,c){return _.canParse(i,c)},A.appendFrame=function(i,c,d){_.initTrackConfig(i,this.observer,c,d,i.manifestCodec);var f=_.appendFrame(i,c,d,this.initPTS,this.frameIndex);if(f&&f.missing===0)return f},t}(k.default);p.minProbeByteLength=9,Q.default=p},"./src/demux/adts.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"getAudioConfig",function(){return M}),I.d(Q,"isHeaderPattern",function(){return T}),I.d(Q,"getHeaderLength",function(){return n}),I.d(Q,"getFullFrameLength",function(){return p}),I.d(Q,"canGetFrameLength",function(){return a}),I.d(Q,"isHeader",function(){return t}),I.d(Q,"canParse",function(){return A}),I.d(Q,"probe",function(){return l}),I.d(Q,"initTrackConfig",function(){return i}),I.d(Q,"getFrameDuration",function(){return c}),I.d(Q,"parseFrameHeader",function(){return d}),I.d(Q,"appendFrame",function(){return f});var k=I("./src/utils/logger.ts"),_=I("./src/errors.ts"),O=I("./src/events.ts");function M(o,u,E,R){var w,P,C,b,s=navigator.userAgent.toLowerCase(),h=R,m=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];w=((u[E+2]&192)>>>6)+1;var x=(u[E+2]&60)>>>2;if(x>m.length-1){o.trigger(O.Events.ERROR,{type:_.ErrorTypes.MEDIA_ERROR,details:_.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+x});return}return C=(u[E+2]&1)<<2,C|=(u[E+3]&192)>>>6,k.logger.log("manifest codec:"+R+", ADTS type:"+w+", samplingIndex:"+x),/firefox/i.test(s)?x>=6?(w=5,b=new Array(4),P=x-3):(w=2,b=new Array(2),P=x):s.indexOf("android")!==-1?(w=2,b=new Array(2),P=x):(w=5,b=new Array(4),R&&(R.indexOf("mp4a.40.29")!==-1||R.indexOf("mp4a.40.5")!==-1)||!R&&x>=6?P=x-3:((R&&R.indexOf("mp4a.40.2")!==-1&&(x>=6&&C===1||/vivaldi/i.test(s))||!R&&C===1)&&(w=2,b=new Array(2)),P=x)),b[0]=w<<3,b[0]|=(x&14)>>1,b[1]|=(x&1)<<7,b[1]|=C<<3,w===5&&(b[1]|=(P&14)>>1,b[2]=(P&1)<<7,b[2]|=2<<2,b[3]=0),{config:b,samplerate:m[x],channelCount:C,codec:"mp4a.40."+w,manifestCodec:h}}function T(o,u){return o[u]===255&&(o[u+1]&246)===240}function n(o,u){return o[u+1]&1?7:9}function p(o,u){return(o[u+3]&3)<<11|o[u+4]<<3|(o[u+5]&224)>>>5}function a(o,u){return u+5<o.length}function t(o,u){return u+1<o.length&&T(o,u)}function A(o,u){return a(o,u)&&T(o,u)&&p(o,u)<=o.length-u}function l(o,u){if(t(o,u)){var E=n(o,u);if(u+E>=o.length)return!1;var R=p(o,u);if(R<=E)return!1;var w=u+R;return w===o.length||t(o,w)}return!1}function i(o,u,E,R,w){if(!o.samplerate){var P=M(u,E,R,w);if(!P)return;o.config=P.config,o.samplerate=P.samplerate,o.channelCount=P.channelCount,o.codec=P.codec,o.manifestCodec=P.manifestCodec,k.logger.log("parsed codec:"+o.codec+", rate:"+P.samplerate+", channels:"+P.channelCount)}}function c(o){return 1024*9e4/o}function d(o,u,E,R,w){var P=n(o,u),C=p(o,u);if(C-=P,C>0){var b=E+R*w;return{headerLength:P,frameLength:C,stamp:b}}}function f(o,u,E,R,w){var P=c(o.samplerate),C=d(u,E,R,w,P);if(C){var b=C.frameLength,s=C.headerLength,h=C.stamp,m=s+b,x=Math.max(0,E+m-u.length),g;x?(g=new Uint8Array(m-s),g.set(u.subarray(E+s,u.length),0)):g=u.subarray(E+s,E+m);var y={unit:g,pts:h};return x||o.samples.push(y),{sample:y,length:m,missing:x}}}},"./src/demux/base-audio-demuxer.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"initPTSFn",function(){return p});var k=I("./src/polyfills/number.ts"),_=I("./src/demux/id3.ts"),O=I("./src/demux/dummy-demuxed-track.ts"),M=I("./src/utils/mp4-tools.ts"),T=I("./src/utils/typed-array.ts"),n=function(){function a(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var t=a.prototype;return t.resetInitSegment=function(l,i,c){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},t.resetTimeStamp=function(){},t.resetContiguity=function(){},t.canParse=function(l,i){return!1},t.appendFrame=function(l,i,c){},t.demux=function(l,i){this.cachedData&&(l=Object(M.appendUint8Array)(this.cachedData,l),this.cachedData=null);var c=_.getID3Data(l,0),d=c?c.length:0,f,o,u=this._audioTrack,E=this._id3Track,R=c?_.getTimeStamp(c):void 0,w=l.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=p(R,i)),c&&c.length>0&&E.samples.push({pts:this.initPTS,dts:this.initPTS,data:c}),o=this.initPTS;d<w;){if(this.canParse(l,d)){var P=this.appendFrame(u,l,d);P?(this.frameIndex++,o=P.sample.pts,d+=P.length,f=d):d=w}else _.canParse(l,d)?(c=_.getID3Data(l,d),E.samples.push({pts:o,dts:o,data:c}),d+=c.length,f=d):d++;if(d===w&&f!==w){var C=Object(T.sliceUint8)(l,f);this.cachedData?this.cachedData=Object(M.appendUint8Array)(this.cachedData,C):this.cachedData=C}}return{audioTrack:u,avcTrack:Object(O.dummyTrack)(),id3Track:E,textTrack:Object(O.dummyTrack)()}},t.demuxSampleAes=function(l,i,c){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},t.flush=function(l){var i=this.cachedData;return i&&(this.cachedData=null,this.demux(i,0)),this.frameIndex=0,{audioTrack:this._audioTrack,avcTrack:Object(O.dummyTrack)(),id3Track:this._id3Track,textTrack:Object(O.dummyTrack)()}},t.destroy=function(){},a}(),p=function(t,A){return Object(k.isFiniteNumber)(t)?t*90:A*9e4};Q.default=n},"./src/demux/chunk-cache.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return k});var k=function(){function O(){this.chunks=[],this.dataLength=0}var M=O.prototype;return M.push=function(n){this.chunks.push(n),this.dataLength+=n.length},M.flush=function(){var n=this.chunks,p=this.dataLength,a;if(n.length)n.length===1?a=n[0]:a=_(n,p);else return new Uint8Array(0);return this.reset(),a},M.reset=function(){this.chunks.length=0,this.dataLength=0},O}();function _(O,M){for(var T=new Uint8Array(M),n=0,p=0;p<O.length;p++){var a=O[p];T.set(a,n),n+=a.length}return T}},"./src/demux/dummy-demuxed-track.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"dummyTrack",function(){return k});function k(){return{type:"",id:-1,pid:-1,inputTimeScale:9e4,sequenceNumber:-1,samples:[],dropped:0}}},"./src/demux/exp-golomb.ts":function(Z,Q,I){"use strict";I.r(Q);var k=I("./src/utils/logger.ts"),_=function(){function O(T){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=T,this.bytesAvailable=T.byteLength,this.word=0,this.bitsAvailable=0}var M=O.prototype;return M.loadWord=function(){var n=this.data,p=this.bytesAvailable,a=n.byteLength-p,t=new Uint8Array(4),A=Math.min(4,p);if(A===0)throw new Error("no bytes available");t.set(n.subarray(a,a+A)),this.word=new DataView(t.buffer).getUint32(0),this.bitsAvailable=A*8,this.bytesAvailable-=A},M.skipBits=function(n){var p;this.bitsAvailable>n?(this.word<<=n,this.bitsAvailable-=n):(n-=this.bitsAvailable,p=n>>3,n-=p>>3,this.bytesAvailable-=p,this.loadWord(),this.word<<=n,this.bitsAvailable-=n)},M.readBits=function(n){var p=Math.min(this.bitsAvailable,n),a=this.word>>>32-p;return n>32&&k.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=p,this.bitsAvailable>0?this.word<<=p:this.bytesAvailable>0&&this.loadWord(),p=n-p,p>0&&this.bitsAvailable?a<<p|this.readBits(p):a},M.skipLZ=function(){var n;for(n=0;n<this.bitsAvailable;++n)if((this.word&2147483648>>>n)!==0)return this.word<<=n,this.bitsAvailable-=n,n;return this.loadWord(),n+this.skipLZ()},M.skipUEG=function(){this.skipBits(1+this.skipLZ())},M.skipEG=function(){this.skipBits(1+this.skipLZ())},M.readUEG=function(){var n=this.skipLZ();return this.readBits(n+1)-1},M.readEG=function(){var n=this.readUEG();return 1&n?1+n>>>1:-1*(n>>>1)},M.readBoolean=function(){return this.readBits(1)===1},M.readUByte=function(){return this.readBits(8)},M.readUShort=function(){return this.readBits(16)},M.readUInt=function(){return this.readBits(32)},M.skipScalingList=function(n){for(var p=8,a=8,t,A=0;A<n;A++)a!==0&&(t=this.readEG(),a=(p+t+256)%256),p=a===0?p:a},M.readSPS=function(){var n=0,p=0,a=0,t=0,A,l,i,c=this.readUByte.bind(this),d=this.readBits.bind(this),f=this.readUEG.bind(this),o=this.readBoolean.bind(this),u=this.skipBits.bind(this),E=this.skipEG.bind(this),R=this.skipUEG.bind(this),w=this.skipScalingList.bind(this);c();var P=c();if(d(5),u(3),c(),R(),P===100||P===110||P===122||P===244||P===44||P===83||P===86||P===118||P===128){var C=f();if(C===3&&u(1),R(),R(),u(1),o())for(l=C!==3?8:12,i=0;i<l;i++)o()&&(i<6?w(16):w(64))}R();var b=f();if(b===0)f();else if(b===1)for(u(1),E(),E(),A=f(),i=0;i<A;i++)E();R(),u(1);var s=f(),h=f(),m=d(1);m===0&&u(1),u(1),o()&&(n=f(),p=f(),a=f(),t=f());var x=[1,1];if(o()&&o()){var g=c();switch(g){case 1:x=[1,1];break;case 2:x=[12,11];break;case 3:x=[10,11];break;case 4:x=[16,11];break;case 5:x=[40,33];break;case 6:x=[24,11];break;case 7:x=[20,11];break;case 8:x=[32,11];break;case 9:x=[80,33];break;case 10:x=[18,11];break;case 11:x=[15,11];break;case 12:x=[64,33];break;case 13:x=[160,99];break;case 14:x=[4,3];break;case 15:x=[3,2];break;case 16:x=[2,1];break;case 255:{x=[c()<<8|c(),c()<<8|c()];break}}}return{width:Math.ceil((s+1)*16-n*2-p*2),height:(2-m)*(h+1)*16-(m?2:4)*(a+t),pixelRatio:x}},M.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},O}();Q.default=_},"./src/demux/id3.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"isHeader",function(){return k}),I.d(Q,"isFooter",function(){return _}),I.d(Q,"getID3Data",function(){return O}),I.d(Q,"canParse",function(){return T}),I.d(Q,"getTimeStamp",function(){return n}),I.d(Q,"isTimeStampFrame",function(){return p}),I.d(Q,"getID3Frames",function(){return t}),I.d(Q,"decodeFrame",function(){return A}),I.d(Q,"utf8ArrayToStr",function(){return f}),I.d(Q,"testables",function(){return o});var k=function(w,P){return P+10<=w.length&&(w[P]===73&&w[P+1]===68&&w[P+2]===51&&(w[P+3]<255&&w[P+4]<255&&(w[P+6]<128&&w[P+7]<128&&w[P+8]<128&&w[P+9]<128)))},_=function(w,P){return P+10<=w.length&&(w[P]===51&&w[P+1]===68&&w[P+2]===73&&(w[P+3]<255&&w[P+4]<255&&(w[P+6]<128&&w[P+7]<128&&w[P+8]<128&&w[P+9]<128)))},O=function(w,P){for(var C=P,b=0;k(w,P);){b+=10;var s=M(w,P+6);b+=s,_(w,P+10)&&(b+=10),P+=b}return b>0?w.subarray(C,C+b):void 0},M=function(w,P){var C=0;return C=(w[P]&127)<<21,C|=(w[P+1]&127)<<14,C|=(w[P+2]&127)<<7,C|=w[P+3]&127,C},T=function(w,P){return k(w,P)&&M(w,P+6)+10<=w.length-P},n=function(w){for(var P=t(w),C=0;C<P.length;C++){var b=P[C];if(p(b))return d(b)}return},p=function(w){return w&&w.key==="PRIV"&&w.info==="com.apple.streaming.transportStreamTimestamp"},a=function(w){var P=String.fromCharCode(w[0],w[1],w[2],w[3]),C=M(w,4),b=10;return{type:P,size:C,data:w.subarray(b,b+C)}},t=function(w){for(var P=0,C=[];k(w,P);){var b=M(w,P+6);P+=10;for(var s=P+b;P+8<s;){var h=a(w.subarray(P)),m=A(h);m&&C.push(m),P+=h.size+10}_(w,P)&&(P+=10)}return C},A=function(w){return w.type==="PRIV"?l(w):w.type[0]==="W"?c(w):i(w)},l=function(w){if(w.size<2)return;var P=f(w.data,!0),C=new Uint8Array(w.data.subarray(P.length+1));return{key:w.type,info:P,data:C.buffer}},i=function(w){if(w.size<2)return;if(w.type==="TXXX"){var P=1,C=f(w.data.subarray(P),!0);P+=C.length+1;var b=f(w.data.subarray(P));return{key:w.type,info:C,data:b}}var s=f(w.data.subarray(1));return{key:w.type,data:s}},c=function(w){if(w.type==="WXXX"){if(w.size<2)return;var P=1,C=f(w.data.subarray(P),!0);P+=C.length+1;var b=f(w.data.subarray(P));return{key:w.type,info:C,data:b}}var s=f(w.data);return{key:w.type,data:s}},d=function(w){if(w.data.byteLength===8){var P=new Uint8Array(w.data),C=P[3]&1,b=(P[4]<<23)+(P[5]<<15)+(P[6]<<7)+P[7];return b/=45,C&&(b+=4772185884e-2),Math.round(b)}return},f=function(w,P){P===void 0&&(P=!1);var C=E();if(C){var b=C.decode(w);if(P){var s=b.indexOf("\0");return s!==-1?b.substring(0,s):b}return b.replace(/\0/g,"")}for(var h=w.length,m,x,g,y="",U=0;U<h;){if(m=w[U++],m===0&&P)return y;if(m===0||m===3)continue;switch(m>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:y+=String.fromCharCode(m);break;case 12:case 13:x=w[U++],y+=String.fromCharCode((m&31)<<6|x&63);break;case 14:x=w[U++],g=w[U++],y+=String.fromCharCode((m&15)<<12|(x&63)<<6|(g&63)<<0);break;default:}}return y},o={decodeTextFrame:i},u;function E(){return!u&&typeof self.TextDecoder!="undefined"&&(u=new self.TextDecoder("utf-8")),u}},"./src/demux/mp3demuxer.ts":function(Z,Q,I){"use strict";I.r(Q);var k=I("./src/demux/base-audio-demuxer.ts"),_=I("./src/demux/id3.ts"),O=I("./src/utils/logger.ts"),M=I("./src/demux/mpegaudio.ts");function T(a,t){a.prototype=Object.create(t.prototype),a.prototype.constructor=a,n(a,t)}function n(a,t){return n=Object.setPrototypeOf||function(l,i){return l.__proto__=i,l},n(a,t)}var p=function(a){T(t,a);function t(){return a.apply(this,arguments)||this}var A=t.prototype;return A.resetInitSegment=function(i,c,d){a.prototype.resetInitSegment.call(this,i,c,d),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:i,duration:d,inputTimeScale:9e4,dropped:0}},t.probe=function(i){if(!i)return!1;for(var c=_.getID3Data(i,0)||[],d=c.length,f=i.length;d<f;d++)if(M.probe(i,d))return O.logger.log("MPEG Audio sync word found !"),!0;return!1},A.canParse=function(i,c){return M.canParse(i,c)},A.appendFrame=function(i,c,d){return this.initPTS===null?void 0:M.appendFrame(i,c,d,this.initPTS,this.frameIndex)},t}(k.default);p.minProbeByteLength=4,Q.default=p},"./src/demux/mp4demuxer.ts":function(Z,Q,I){"use strict";I.r(Q);var k=I("./src/utils/mp4-tools.ts"),_=I("./src/demux/dummy-demuxed-track.ts"),O=function(){function M(n,p){this.remainderData=null,this.config=void 0,this.config=p}var T=M.prototype;return T.resetTimeStamp=function(){},T.resetInitSegment=function(){},T.resetContiguity=function(){},M.probe=function(p){return Object(k.findBox)({data:p,start:0,end:Math.min(p.length,16384)},["moof"]).length>0},T.demux=function(p){var a=p,t=Object(_.dummyTrack)();if(this.config.progressive){this.remainderData&&(a=Object(k.appendUint8Array)(this.remainderData,p));var A=Object(k.segmentValidRange)(a);this.remainderData=A.remainder,t.samples=A.valid||new Uint8Array}else t.samples=a;return{audioTrack:Object(_.dummyTrack)(),avcTrack:t,id3Track:Object(_.dummyTrack)(),textTrack:Object(_.dummyTrack)()}},T.flush=function(){var p=Object(_.dummyTrack)();return p.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(_.dummyTrack)(),avcTrack:p,id3Track:Object(_.dummyTrack)(),textTrack:Object(_.dummyTrack)()}},T.demuxSampleAes=function(p,a,t){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},T.destroy=function(){},M}();O.minProbeByteLength=1024,Q.default=O},"./src/demux/mpegaudio.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"appendFrame",function(){return n}),I.d(Q,"parseHeader",function(){return p}),I.d(Q,"isHeaderPattern",function(){return a}),I.d(Q,"isHeader",function(){return t}),I.d(Q,"canParse",function(){return A}),I.d(Q,"probe",function(){return l});var k=null,_=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],O=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],M=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],T=[0,1,1,4];function n(i,c,d,f,o){if(d+24>c.length)return;var u=p(c,d);if(u&&d+u.frameLength<=c.length){var E=u.samplesPerFrame*9e4/u.sampleRate,R=f+o*E,w={unit:c.subarray(d,d+u.frameLength),pts:R,dts:R};return i.config=[],i.channelCount=u.channelCount,i.samplerate=u.sampleRate,i.samples.push(w),{sample:w,length:u.frameLength,missing:0}}}function p(i,c){var d=i[c+1]>>3&3,f=i[c+1]>>1&3,o=i[c+2]>>4&15,u=i[c+2]>>2&3;if(d!==1&&o!==0&&o!==15&&u!==3){var E=i[c+2]>>1&1,R=i[c+3]>>6,w=d===3?3-f:f===3?3:4,P=_[w*14+o-1]*1e3,C=d===3?0:d===2?1:2,b=O[C*3+u],s=R===3?1:2,h=M[d][f],m=T[f],x=h*8*m,g=Math.floor(h*P/b+E)*m;if(k===null){var y=navigator.userAgent||"",U=y.match(/Chrome\/(\d+)/i);k=U?parseInt(U[1]):0}var N=!!k&&k<=87;return N&&f===2&&P>=224e3&&R===0&&(i[c+3]=i[c+3]|128),{sampleRate:b,channelCount:s,frameLength:g,samplesPerFrame:x}}}function a(i,c){return i[c]===255&&(i[c+1]&224)===224&&(i[c+1]&6)!==0}function t(i,c){return c+1<i.length&&a(i,c)}function A(i,c){var d=4;return a(i,c)&&d<=i.length-c}function l(i,c){if(c+1<i.length&&a(i,c)){var d=4,f=p(i,c),o=d;f!=null&&f.frameLength&&(o=f.frameLength);var u=c+o;return u===i.length||t(i,u)}return!1}},"./src/demux/sample-aes.ts":function(Z,Q,I){"use strict";I.r(Q);var k=I("./src/crypt/decrypter.ts"),_=I("./src/demux/tsdemuxer.ts"),O=function(){function M(n,p,a){this.keyData=void 0,this.decrypter=void 0,this.keyData=a,this.decrypter=new k.default(n,p,{removePKCS7Padding:!1})}var T=M.prototype;return T.decryptBuffer=function(p,a){this.decrypter.decrypt(p,this.keyData.key.buffer,this.keyData.iv.buffer,a)},T.decryptAacSample=function(p,a,t,A){var l=p[a].unit,i=l.subarray(16,l.length-l.length%16),c=i.buffer.slice(i.byteOffset,i.byteOffset+i.length),d=this;this.decryptBuffer(c,function(f){var o=new Uint8Array(f);l.set(o,16),A||d.decryptAacSamples(p,a+1,t)})},T.decryptAacSamples=function(p,a,t){for(;;a++){if(a>=p.length){t();return}if(p[a].unit.length<32)continue;var A=this.decrypter.isSync();if(this.decryptAacSample(p,a,t,A),!A)return}},T.getAvcEncryptedData=function(p){for(var a=Math.floor((p.length-48)/160)*16+16,t=new Int8Array(a),A=0,l=32;l<=p.length-16;l+=160,A+=16)t.set(p.subarray(l,l+16),A);return t},T.getAvcDecryptedUnit=function(p,a){for(var t=new Uint8Array(a),A=0,l=32;l<=p.length-16;l+=160,A+=16)p.set(t.subarray(A,A+16),l);return p},T.decryptAvcSample=function(p,a,t,A,l,i){var c=Object(_.discardEPB)(l.data),d=this.getAvcEncryptedData(c),f=this;this.decryptBuffer(d.buffer,function(o){l.data=f.getAvcDecryptedUnit(c,o),i||f.decryptAvcSamples(p,a,t+1,A)})},T.decryptAvcSamples=function(p,a,t,A){if(p instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;a++,t=0){if(a>=p.length){A();return}for(var l=p[a].units;!(t>=l.length);t++){var i=l[t];if(i.data.length<=48||i.type!==1&&i.type!==5)continue;var c=this.decrypter.isSync();if(this.decryptAvcSample(p,a,t,A,i,c),!c)return}}},M}();Q.default=O},"./src/demux/transmuxer-interface.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return l});var k=I("./node_modules/webworkify-webpack/index.js"),_=I.n(k),O=I("./src/events.ts"),M=I("./src/demux/transmuxer.ts"),T=I("./src/utils/logger.ts"),n=I("./src/errors.ts"),p=I("./src/utils/mediasource-helper.ts"),a=I("./node_modules/eventemitter3/index.js"),t=I.n(a),A=Object(p.getMediaSource)()||{isTypeSupported:function(){return!1}},l=function(){function i(d,f,o,u){var E=this;this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.worker=void 0,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.hls=d,this.id=f,this.onTransmuxComplete=o,this.onFlush=u;var R=d.config,w=function(h,m){m=m||{},m.frag=E.frag,m.id=E.id,d.trigger(h,m)};this.observer=new a.EventEmitter,this.observer.on(O.Events.FRAG_DECRYPTED,w),this.observer.on(O.Events.ERROR,w);var P={mp4:A.isTypeSupported("video/mp4"),mpeg:A.isTypeSupported("audio/mpeg"),mp3:A.isTypeSupported('audio/mp4; codecs="mp3"')},C=navigator.vendor;if(R.enableWorker&&typeof Worker!="undefined"){T.logger.log("demuxing in webworker");var b;try{b=this.worker=k("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),b.addEventListener("message",this.onwmsg),b.onerror=function(s){d.trigger(O.Events.ERROR,{type:n.ErrorTypes.OTHER_ERROR,details:n.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(s.message+" ("+s.filename+":"+s.lineno+")")})},b.postMessage({cmd:"init",typeSupported:P,vendor:C,id:f,config:JSON.stringify(R)})}catch(s){T.logger.warn("Error in worker:",s),T.logger.error("Error while initializing DemuxerWorker, fallback to inline"),b&&self.URL.revokeObjectURL(b.objectURL),this.transmuxer=new M.default(this.observer,P,R,C,f),this.worker=null}}else this.transmuxer=new M.default(this.observer,P,R,C,f)}var c=i.prototype;return c.destroy=function(){var f=this.worker;if(f)f.removeEventListener("message",this.onwmsg),f.terminate(),this.worker=null;else{var o=this.transmuxer;o&&(o.destroy(),this.transmuxer=null)}var u=this.observer;u&&u.removeAllListeners(),this.observer=null},c.push=function(f,o,u,E,R,w,P,C,b,s){var h=this;b.transmuxing.start=self.performance.now();var m=this.transmuxer,x=this.worker,g=w?w.start:R.start,y=R.decryptdata,U=this.frag,N=!(U&&R.cc===U.cc),S=!(U&&b.level===U.level),H=U?b.sn-U.sn:-1,F=this.part?b.part-this.part.index:1,B=!S&&(H===1||H===0&&F===1),z=self.performance.now();(S||H||R.stats.parsing.start===0)&&(R.stats.parsing.start=z),w&&(F||!B)&&(w.stats.parsing.start=z);var K=new M.TransmuxState(N,B,C,S,g);if(!B||N){T.logger.log("[transmuxer-interface, "+R.type+"]: Starting new transmux session for sn: "+b.sn+" p: "+b.part+" level: "+b.level+" id: "+b.id+`
discontinuity: `+N+`
trackSwitch: `+S+`
contiguous: `+B+`
accurateTimeOffset: `+C+`
timeOffset: `+g);var $=new M.TransmuxConfig(u,E,o,P,s);this.configureTransmuxer($)}if(this.frag=R,this.part=w,x)x.postMessage({cmd:"demux",data:f,decryptdata:y,chunkMeta:b,state:K},f instanceof ArrayBuffer?[f]:[]);else if(m){var te=m.push(f,y,b,K);Object(M.isPromise)(te)?te.then(function(fe){h.handleTransmuxComplete(fe)}):this.handleTransmuxComplete(te)}},c.flush=function(f){var o=this;f.transmuxing.start=self.performance.now();var u=this.transmuxer,E=this.worker;if(E)E.postMessage({cmd:"flush",chunkMeta:f});else if(u){var R=u.flush(f);Object(M.isPromise)(R)?R.then(function(w){o.handleFlushResult(w,f)}):this.handleFlushResult(R,f)}},c.handleFlushResult=function(f,o){var u=this;f.forEach(function(E){u.handleTransmuxComplete(E)}),this.onFlush(o)},c.onWorkerMessage=function(f){var o=f.data,u=this.hls;switch(o.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(o.data);break}case"flush":{this.onFlush(o.data);break}default:{o.data=o.data||{},o.data.frag=this.frag,o.data.id=this.id,u.trigger(o.event,o.data);break}}},c.configureTransmuxer=function(f){var o=this.worker,u=this.transmuxer;o?o.postMessage({cmd:"configure",config:f}):u&&u.configure(f)},c.handleTransmuxComplete=function(f){f.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(f)},i}()},"./src/demux/transmuxer-worker.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return n});var k=I("./src/demux/transmuxer.ts"),_=I("./src/events.ts"),O=I("./src/utils/logger.ts"),M=I("./node_modules/eventemitter3/index.js"),T=I.n(M);function n(l){var i=new M.EventEmitter,c=function(f,o){l.postMessage({event:f,data:o})};i.on(_.Events.FRAG_DECRYPTED,c),i.on(_.Events.ERROR,c),l.addEventListener("message",function(d){var f=d.data;switch(f.cmd){case"init":{var o=JSON.parse(f.config);l.transmuxer=new k.default(i,f.typeSupported,o,f.vendor,f.id),Object(O.enableLogs)(o.debug),c("init",null);break}case"configure":{l.transmuxer.configure(f.config);break}case"demux":{var u=l.transmuxer.push(f.data,f.decryptdata,f.chunkMeta,f.state);Object(k.isPromise)(u)?u.then(function(w){p(l,w)}):p(l,u);break}case"flush":{var E=f.chunkMeta,R=l.transmuxer.flush(E);Object(k.isPromise)(R)?R.then(function(w){t(l,w,E)}):t(l,R,E);break}default:break}})}function p(l,i){if(A(i.remuxResult))return;var c=[],d=i.remuxResult,f=d.audio,o=d.video;f&&a(c,f),o&&a(c,o),l.postMessage({event:"transmuxComplete",data:i},c)}function a(l,i){i.data1&&l.push(i.data1.buffer),i.data2&&l.push(i.data2.buffer)}function t(l,i,c){i.forEach(function(d){p(l,d)}),l.postMessage({event:"flush",data:c})}function A(l){return!l.audio&&!l.video&&!l.text&&!l.id3&&!l.initSegment}},"./src/demux/transmuxer.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return o}),I.d(Q,"isPromise",function(){return R}),I.d(Q,"TransmuxConfig",function(){return w}),I.d(Q,"TransmuxState",function(){return P});var k=I("./src/events.ts"),_=I("./src/errors.ts"),O=I("./src/crypt/decrypter.ts"),M=I("./src/demux/aacdemuxer.ts"),T=I("./src/demux/mp4demuxer.ts"),n=I("./src/demux/tsdemuxer.ts"),p=I("./src/demux/mp3demuxer.ts"),a=I("./src/remux/mp4-remuxer.ts"),t=I("./src/remux/passthrough-remuxer.ts"),A=I("./src/demux/chunk-cache.ts"),l=I("./src/utils/mp4-tools.ts"),i=I("./src/utils/logger.ts"),c;try{c=self.performance.now.bind(self.performance)}catch(C){i.logger.debug("Unable to use Performance API on this environment"),c=self.Date.now}var d=[{demux:n.default,remux:a.default},{demux:T.default,remux:t.default},{demux:M.default,remux:a.default},{demux:p.default,remux:a.default}],f=1024;d.forEach(function(C){var b=C.demux;f=Math.max(f,b.minProbeByteLength)});var o=function(){function C(s,h,m,x,g){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new A.default,this.observer=s,this.typeSupported=h,this.config=m,this.vendor=x,this.id=g}var b=C.prototype;return b.configure=function(h){this.transmuxConfig=h,this.decrypter&&this.decrypter.reset()},b.push=function(h,m,x,g){var y=this,U=x.transmuxing;U.executeStart=c();var N=new Uint8Array(h),S=this.cache,H=this.config,F=this.currentTransmuxState,B=this.transmuxConfig;g&&(this.currentTransmuxState=g);var z=u(N,m);if(z&&z.method==="AES-128"){var K=this.getDecrypter();if(H.enableSoftwareAES){var $=K.softwareDecrypt(N,z.key.buffer,z.iv.buffer);if(!$)return U.executeEnd=c(),E(x);N=new Uint8Array($)}else return this.decryptionPromise=K.webCryptoDecrypt(N,z.key.buffer,z.iv.buffer).then(function(Ke){var et=y.push(Ke,null,x);return y.decryptionPromise=null,et}),this.decryptionPromise}var te=g||F,fe=te.contiguous,Ae=te.discontinuity,ce=te.trackSwitch,ie=te.accurateTimeOffset,ye=te.timeOffset,le=B.audioCodec,me=B.videoCodec,se=B.defaultInitPts,ge=B.duration,ae=B.initSegmentData;if((Ae||ce)&&this.resetInitSegment(ae,le,me,ge),Ae&&this.resetInitialTimestamp(se),fe||this.resetContiguity(),this.needsProbing(N,Ae,ce)){if(S.dataLength){var pe=S.flush();N=Object(l.appendUint8Array)(pe,N)}this.configureTransmuxer(N,B)}var Me=this.transmux(N,z,ye,ie,x),xe=this.currentTransmuxState;return xe.contiguous=!0,xe.discontinuity=!1,xe.trackSwitch=!1,U.executeEnd=c(),Me},b.flush=function(h){var m=this,x=h.transmuxing;x.executeStart=c();var g=this.decrypter,y=this.cache,U=this.currentTransmuxState,N=this.decryptionPromise;if(N)return N.then(function(){return m.flush(h)});var S=[],H=U.timeOffset;if(g){var F=g.flush();F&&S.push(this.push(F,null,h))}var B=y.dataLength;y.reset();var z=this.demuxer,K=this.remuxer;if(!z||!K)return B>=f&&this.observer.emit(k.Events.ERROR,k.Events.ERROR,{type:_.ErrorTypes.MEDIA_ERROR,details:_.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),x.executeEnd=c(),[E(h)];var $=z.flush(H);return R($)?$.then(function(te){return m.flushRemux(S,te,h),S}):(this.flushRemux(S,$,h),S)},b.flushRemux=function(h,m,x){var g=m.audioTrack,y=m.avcTrack,U=m.id3Track,N=m.textTrack,S=this.currentTransmuxState,H=S.accurateTimeOffset,F=S.timeOffset;i.logger.log("[transmuxer.ts]: Flushed fragment "+x.sn+(x.part>-1?" p: "+x.part:"")+" of level "+x.level);var B=this.remuxer.remux(g,y,U,N,F,H,!0,this.id);h.push({remuxResult:B,chunkMeta:x}),x.transmuxing.executeEnd=c()},b.resetInitialTimestamp=function(h){var m=this.demuxer,x=this.remuxer;if(!m||!x)return;m.resetTimeStamp(h),x.resetTimeStamp(h)},b.resetContiguity=function(){var h=this.demuxer,m=this.remuxer;if(!h||!m)return;h.resetContiguity(),m.resetNextTimestamp()},b.resetInitSegment=function(h,m,x,g){var y=this.demuxer,U=this.remuxer;if(!y||!U)return;y.resetInitSegment(m,x,g),U.resetInitSegment(h,m,x)},b.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},b.transmux=function(h,m,x,g,y){var U;return m&&m.method==="SAMPLE-AES"?U=this.transmuxSampleAes(h,m,x,g,y):U=this.transmuxUnencrypted(h,x,g,y),U},b.transmuxUnencrypted=function(h,m,x,g){var y=this.demuxer.demux(h,m,!1,!this.config.progressive),U=y.audioTrack,N=y.avcTrack,S=y.id3Track,H=y.textTrack,F=this.remuxer.remux(U,N,S,H,m,x,!1,this.id);return{remuxResult:F,chunkMeta:g}},b.transmuxSampleAes=function(h,m,x,g,y){var U=this;return this.demuxer.demuxSampleAes(h,m,x).then(function(N){var S=U.remuxer.remux(N.audioTrack,N.avcTrack,N.id3Track,N.textTrack,x,g,!1,U.id);return{remuxResult:S,chunkMeta:y}})},b.configureTransmuxer=function(h,m){for(var x=this.config,g=this.observer,y=this.typeSupported,U=this.vendor,N=m.audioCodec,S=m.defaultInitPts,H=m.duration,F=m.initSegmentData,B=m.videoCodec,z,K=0,$=d.length;K<$;K++)if(d[K].demux.probe(h)){z=d[K];break}z||(i.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),z={demux:T.default,remux:t.default});var te=this.demuxer,fe=this.remuxer,Ae=z.remux,ce=z.demux;(!fe||!(fe instanceof Ae))&&(this.remuxer=new Ae(g,x,y,U)),(!te||!(te instanceof ce))&&(this.demuxer=new ce(g,x,y),this.probe=ce.probe),this.resetInitSegment(F,N,B,H),this.resetInitialTimestamp(S)},b.needsProbing=function(h,m,x){return!this.demuxer||!this.remuxer||m||x},b.getDecrypter=function(){var h=this.decrypter;return h||(h=this.decrypter=new O.default(this.observer,this.config)),h},C}();function u(C,b){var s=null;return C.byteLength>0&&b!=null&&b.key!=null&&b.iv!==null&&b.method!=null&&(s=b),s}var E=function(b){return{remuxResult:{},chunkMeta:b}};function R(C){return"then"in C&&C.then instanceof Function}var w=function(b,s,h,m,x){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=b,this.videoCodec=s,this.initSegmentData=h,this.duration=m,this.defaultInitPts=x},P=function(b,s,h,m,x){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=b,this.contiguous=s,this.accurateTimeOffset=h,this.trackSwitch=m,this.timeOffset=x}},"./src/demux/tsdemuxer.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"discardEPB",function(){return E});var k=I("./src/demux/adts.ts"),_=I("./src/demux/mpegaudio.ts"),O=I("./src/demux/exp-golomb.ts"),M=I("./src/demux/id3.ts"),T=I("./src/demux/sample-aes.ts"),n=I("./src/events.ts"),p=I("./src/utils/mp4-tools.ts"),a=I("./src/utils/logger.ts"),t=I("./src/errors.ts"),A={video:1,audio:2,id3:3,text:4},l=function(){function R(P,C,b){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this.aacLastPTS=null,this._initPTS=null,this._initDTS=null,this._pmtId=-1,this._avcTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.observer=P,this.config=C,this.typeSupported=b}R.probe=function(C){var b=R.syncOffset(C);return b<0?!1:(b&&a.logger.warn("MPEG2-TS detected but first sync word found @ offset "+b+", junk ahead ?"),!0)},R.syncOffset=function(C){for(var b=Math.min(1e3,C.length-3*188),s=0;s<b;){if(C[s]===71&&C[s+188]===71&&C[s+2*188]===71)return s;s++}return-1},R.createTrack=function(C,b){return{container:C==="video"||C==="audio"?"video/mp2t":void 0,type:C,id:A[C],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:C==="audio"?b:void 0}};var w=R.prototype;return w.resetInitSegment=function(C,b,s){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=R.createTrack("video",s),this._audioTrack=R.createTrack("audio",s),this._id3Track=R.createTrack("id3",s),this._txtTrack=R.createTrack("text",s),this._audioTrack.isAAC=!0,this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=C,this.videoCodec=b,this._duration=s},w.resetTimeStamp=function(){},w.resetContiguity=function(){var C=this._audioTrack,b=this._avcTrack,s=this._id3Track;C&&(C.pesData=null),b&&(b.pesData=null),s&&(s.pesData=null),this.aacOverFlow=null,this.aacLastPTS=null},w.demux=function(C,b,s,h){s===void 0&&(s=!1),h===void 0&&(h=!1),s||(this.sampleAes=null);var m,x=this._avcTrack,g=this._audioTrack,y=this._id3Track,U=x.pid,N=x.pesData,S=g.pid,H=y.pid,F=g.pesData,B=y.pesData,z=!1,K=this.pmtParsed,$=this._pmtId,te=C.length;if(this.remainderData&&(C=Object(p.appendUint8Array)(this.remainderData,C),te=C.length,this.remainderData=null),te<188&&!h)return this.remainderData=C,{audioTrack:g,avcTrack:x,id3Track:y,textTrack:this._txtTrack};var fe=Math.max(0,R.syncOffset(C));te-=(te+fe)%188,te<C.byteLength&&!h&&(this.remainderData=new Uint8Array(C.buffer,te,C.buffer.byteLength-te));for(var Ae=fe;Ae<te;Ae+=188)if(C[Ae]===71){var ce=!!(C[Ae+1]&64),ie=((C[Ae+1]&31)<<8)+C[Ae+2],ye=(C[Ae+3]&48)>>4,le=void 0;if(ye>1){if(le=Ae+5+C[Ae+4],le===Ae+188)continue}else le=Ae+4;switch(ie){case U:ce&&(N&&(m=f(N))&&this.parseAVCPES(m,!1),N={data:[],size:0}),N&&(N.data.push(C.subarray(le,Ae+188)),N.size+=Ae+188-le);break;case S:ce&&(F&&(m=f(F))&&(g.isAAC?this.parseAACPES(m):this.parseMPEGPES(m)),F={data:[],size:0}),F&&(F.data.push(C.subarray(le,Ae+188)),F.size+=Ae+188-le);break;case H:ce&&(B&&(m=f(B))&&this.parseID3PES(m),B={data:[],size:0}),B&&(B.data.push(C.subarray(le,Ae+188)),B.size+=Ae+188-le);break;case 0:ce&&(le+=C[le]+1),$=this._pmtId=c(C,le);break;case $:{ce&&(le+=C[le]+1);var me=d(C,le,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,s);U=me.avc,U>0&&(x.pid=U),S=me.audio,S>0&&(g.pid=S,g.isAAC=me.isAAC),H=me.id3,H>0&&(y.pid=H),z&&!K&&(a.logger.log("reparse from beginning"),z=!1,Ae=fe-188),K=this.pmtParsed=!0;break}case 17:case 8191:break;default:z=!0;break}}else this.observer.emit(n.Events.ERROR,n.Events.ERROR,{type:t.ErrorTypes.MEDIA_ERROR,details:t.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});x.pesData=N,g.pesData=F,y.pesData=B;var se={audioTrack:g,avcTrack:x,id3Track:y,textTrack:this._txtTrack};return h&&this.extractRemainingSamples(se),se},w.flush=function(){var C=this.remainderData;this.remainderData=null;var b;return C?b=this.demux(C,-1,!1,!0):b={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(b),this.sampleAes?this.decrypt(b,this.sampleAes):b},w.extractRemainingSamples=function(C){var b=C.audioTrack,s=C.avcTrack,h=C.id3Track,m=s.pesData,x=b.pesData,g=h.pesData,y;m&&(y=f(m))?(this.parseAVCPES(y,!0),s.pesData=null):s.pesData=m,x&&(y=f(x))?(b.isAAC?this.parseAACPES(y):this.parseMPEGPES(y),b.pesData=null):(x!=null&&x.size&&a.logger.log("last AAC PES packet truncated,might overlap between fragments"),b.pesData=x),g&&(y=f(g))?(this.parseID3PES(y),h.pesData=null):h.pesData=g},w.demuxSampleAes=function(C,b,s){var h=this.demux(C,s,!0,!this.config.progressive),m=this.sampleAes=new T.default(this.observer,this.config,b);return this.decrypt(h,m)},w.decrypt=function(C,b){return new Promise(function(s){var h=C.audioTrack,m=C.avcTrack;h.samples&&h.isAAC?b.decryptAacSamples(h.samples,0,function(){m.samples?b.decryptAvcSamples(m.samples,0,0,function(){s(C)}):s(C)}):m.samples&&b.decryptAvcSamples(m.samples,0,0,function(){s(C)})})},w.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},w.parseAVCPES=function(C,b){var s=this,h=this._avcTrack,m=this.parseAVCNALu(C.data),x=!1,g=this.avcSample,y,U=!1;C.data=null,g&&m.length&&!h.audFound&&(o(g,h),g=this.avcSample=i(!1,C.pts,C.dts,"")),m.forEach(function(N){switch(N.type){case 1:{y=!0,g||(g=s.avcSample=i(!0,C.pts,C.dts,"")),x&&(g.debug+="NDR "),g.frame=!0;var S=N.data;if(U&&S.length>4){var H=new O.default(S).readSliceType();(H===2||H===4||H===7||H===9)&&(g.key=!0)}break}case 5:y=!0,g||(g=s.avcSample=i(!0,C.pts,C.dts,"")),x&&(g.debug+="IDR "),g.key=!0,g.frame=!0;break;case 6:{y=!0,x&&g&&(g.debug+="SEI ");var F=new O.default(E(N.data));F.readUByte();for(var B=0,z=0,K=!1,$=0;!K&&F.bytesAvailable>1;){B=0;do $=F.readUByte(),B+=$;while($===255);z=0;do $=F.readUByte(),z+=$;while($===255);if(B===4&&F.bytesAvailable!==0){K=!0;var te=F.readUByte();if(te===181){var fe=F.readUShort();if(fe===49){var Ae=F.readUInt();if(Ae===1195456820){var ce=F.readUByte();if(ce===3){for(var ie=F.readUByte(),ye=F.readUByte(),le=31&ie,me=[ie,ye],se=0;se<le;se++)me.push(F.readUByte()),me.push(F.readUByte()),me.push(F.readUByte());u(s._txtTrack.samples,{type:3,pts:C.pts,bytes:me})}}}}}else if(B===5&&F.bytesAvailable!==0){if(K=!0,z>16){for(var ge=[],ae=0;ae<16;ae++)ge.push(F.readUByte().toString(16)),(ae===3||ae===5||ae===7||ae===9)&&ge.push("-");for(var pe=z-16,Me=new Uint8Array(pe),xe=0;xe<pe;xe++)Me[xe]=F.readUByte();u(s._txtTrack.samples,{pts:C.pts,payloadType:B,uuid:ge.join(""),userData:Object(M.utf8ArrayToStr)(Me),userDataBytes:Me})}}else if(z<F.bytesAvailable)for(var Ke=0;Ke<z;Ke++)F.readUByte()}break}case 7:if(y=!0,U=!0,x&&g&&(g.debug+="SPS "),!h.sps){var et=new O.default(N.data),he=et.readSPS();h.width=he.width,h.height=he.height,h.pixelRatio=he.pixelRatio,h.sps=[N.data],h.duration=s._duration;for(var Se=N.data.subarray(1,4),Ue="avc1.",Ne=0;Ne<3;Ne++){var ct=Se[Ne].toString(16);ct.length<2&&(ct="0"+ct),Ue+=ct}h.codec=Ue}break;case 8:y=!0,x&&g&&(g.debug+="PPS "),h.pps||(h.pps=[N.data]);break;case 9:y=!1,h.audFound=!0,g&&o(g,h),g=s.avcSample=i(!1,C.pts,C.dts,x?"AUD ":"");break;case 12:y=!1;break;default:y=!1,g&&(g.debug+="unknown NAL "+N.type+" ");break}if(g&&y){var ft=g.units;ft.push(N)}}),b&&g&&(o(g,h),this.avcSample=null)},w.getLastNalUnit=function(){var C,b=this.avcSample,s;if(!b||b.units.length===0){var h=this._avcTrack.samples;b=h[h.length-1]}if((C=b)!==null&&C!==void 0&&C.units){var m=b.units;s=m[m.length-1]}return s},w.parseAVCNALu=function(C){var b=C.byteLength,s=this._avcTrack,h=s.naluState||0,m=h,x=[],g=0,y,U,N,S=-1,H=0;for(h===-1&&(S=0,H=C[0]&31,h=0,g=1);g<b;){if(y=C[g++],!h){h=y?0:1;continue}if(h===1){h=y?0:2;continue}if(!y)h=3;else if(y===1){if(S>=0){var F={data:C.subarray(S,g-h-1),type:H};x.push(F)}else{var B=this.getLastNalUnit();if(B&&(m&&g<=4-m&&(B.state&&(B.data=B.data.subarray(0,B.data.byteLength-m))),U=g-h-1,U>0)){var z=new Uint8Array(B.data.byteLength+U);z.set(B.data,0),z.set(C.subarray(0,U),B.data.byteLength),B.data=z,B.state=0}}g<b?(N=C[g]&31,S=g,H=N,h=0):h=-1}else h=0}if(S>=0&&h>=0){var K={data:C.subarray(S,b),type:H,state:h};x.push(K)}if(x.length===0){var $=this.getLastNalUnit();if($){var te=new Uint8Array($.data.byteLength+C.byteLength);te.set($.data,0),te.set(C,$.data.byteLength),$.data=te}}return s.naluState=h,x},w.parseAACPES=function(C){var b=0,s=this._audioTrack,h=this.aacOverFlow,m=C.data;if(h){this.aacOverFlow=null;var x=h.sample.unit.byteLength,g=Math.min(h.missing,x),y=x-g;h.sample.unit.set(m.subarray(0,g),y),s.samples.push(h.sample),b=h.missing}var U,N;for(U=b,N=m.length;U<N-1&&!k.isHeader(m,U);U++);if(U!==b){var S,H;if(U<N-1?(S="AAC PES did not start with ADTS header,offset:"+U,H=!1):(S="no ADTS header found in AAC PES",H=!0),a.logger.warn("parsing error:"+S),this.observer.emit(n.Events.ERROR,n.Events.ERROR,{type:t.ErrorTypes.MEDIA_ERROR,details:t.ErrorDetails.FRAG_PARSING_ERROR,fatal:H,reason:S}),H)return}k.initTrackConfig(s,this.observer,m,U,this.audioCodec);var F;if(C.pts!==void 0)F=C.pts;else if(h){var B=k.getFrameDuration(s.samplerate);F=h.sample.pts+B}else{a.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var z=0;U<N;)if(k.isHeader(m,U)){if(U+5<N){var K=k.appendFrame(s,m,U,F,z);if(K)if(K.missing)this.aacOverFlow=K;else{U+=K.length,z++;continue}}break}else U++},w.parseMPEGPES=function(C){var b=C.data,s=b.length,h=0,m=0,x=C.pts;if(x===void 0){a.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;m<s;)if(_.isHeader(b,m)){var g=_.appendFrame(this._audioTrack,b,m,x,h);if(g)m+=g.length,h++;else break}else m++},w.parseID3PES=function(C){if(C.pts===void 0){a.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}this._id3Track.samples.push(C)},R}();l.minProbeByteLength=188;function i(R,w,P,C){return{key:R,frame:!1,pts:w,dts:P,units:[],debug:C,length:0}}function c(R,w){return(R[w+10]&31)<<8|R[w+11]}function d(R,w,P,C){var b={audio:-1,avc:-1,id3:-1,isAAC:!0},s=(R[w+1]&15)<<8|R[w+2],h=w+3+s-4,m=(R[w+10]&15)<<8|R[w+11];for(w+=12+m;w<h;){var x=(R[w+1]&31)<<8|R[w+2];switch(R[w]){case 207:if(!C){a.logger.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:b.audio===-1&&(b.audio=x);break;case 21:b.id3===-1&&(b.id3=x);break;case 219:if(!C){a.logger.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:b.avc===-1&&(b.avc=x);break;case 3:case 4:P?b.audio===-1&&(b.audio=x,b.isAAC=!1):a.logger.log("MPEG audio found, not supported in this browser");break;case 36:a.logger.warn("Unsupported HEVC stream type found");break;default:break}w+=((R[w+3]&15)<<8|R[w+4])+5}return b}function f(R){var w=0,P,C,b,s,h,m=R.data;if(!R||R.size===0)return null;for(;m[0].length<19&&m.length>1;){var x=new Uint8Array(m[0].length+m[1].length);x.set(m[0]),x.set(m[1],m[0].length),m[0]=x,m.splice(1,1)}P=m[0];var g=(P[0]<<16)+(P[1]<<8)+P[2];if(g===1){if(C=(P[4]<<8)+P[5],C&&C>R.size-6)return null;var y=P[7];y&192&&(s=(P[9]&14)*536870912+(P[10]&255)*4194304+(P[11]&254)*16384+(P[12]&255)*128+(P[13]&254)/2,y&64?(h=(P[14]&14)*536870912+(P[15]&255)*4194304+(P[16]&254)*16384+(P[17]&255)*128+(P[18]&254)/2,s-h>60*9e4&&(a.logger.warn(Math.round((s-h)/9e4)+"s delta between PTS and DTS, align them"),s=h)):h=s),b=P[8];var U=b+9;if(R.size<=U)return null;R.size-=U;for(var N=new Uint8Array(R.size),S=0,H=m.length;S<H;S++){P=m[S];var F=P.byteLength;if(U)if(U>F){U-=F;continue}else P=P.subarray(U),F-=U,U=0;N.set(P,w),w+=F}return C&&(C-=b+3),{data:N,pts:s,dts:h,len:C}}return null}function o(R,w){if(R.units.length&&R.frame){if(R.pts===void 0){var P=w.samples,C=P.length;if(C){var b=P[C-1];R.pts=b.pts,R.dts=b.dts}else{w.dropped++;return}}w.samples.push(R)}R.debug.length&&a.logger.log(R.pts+"/"+R.dts+":"+R.debug)}function u(R,w){var P=R.length;if(P>0){if(w.pts>=R[P-1].pts)R.push(w);else for(var C=P-1;C>=0;C--)if(w.pts<R[C].pts){R.splice(C,0,w);break}}else R.push(w)}function E(R){for(var w=R.byteLength,P=[],C=1;C<w-2;)R[C]===0&&R[C+1]===0&&R[C+2]===3?(P.push(C+2),C+=2):C++;if(P.length===0)return R;var b=w-P.length,s=new Uint8Array(b),h=0;for(C=0;C<b;h++,C++)h===P[0]&&(h++,P.shift()),s[C]=R[h];return s}Q.default=l},"./src/errors.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"ErrorTypes",function(){return k}),I.d(Q,"ErrorDetails",function(){return _});var k;(function(O){O.NETWORK_ERROR="networkError",O.MEDIA_ERROR="mediaError",O.KEY_SYSTEM_ERROR="keySystemError",O.MUX_ERROR="muxError",O.OTHER_ERROR="otherError"})(k||(k={}));var _;(function(O){O.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",O.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",O.KEY_SYSTEM_NO_SESSION="keySystemNoSession",O.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",O.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",O.MANIFEST_LOAD_ERROR="manifestLoadError",O.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",O.MANIFEST_PARSING_ERROR="manifestParsingError",O.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",O.LEVEL_EMPTY_ERROR="levelEmptyError",O.LEVEL_LOAD_ERROR="levelLoadError",O.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",O.LEVEL_SWITCH_ERROR="levelSwitchError",O.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",O.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",O.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",O.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",O.FRAG_LOAD_ERROR="fragLoadError",O.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",O.FRAG_DECRYPT_ERROR="fragDecryptError",O.FRAG_PARSING_ERROR="fragParsingError",O.REMUX_ALLOC_ERROR="remuxAllocError",O.KEY_LOAD_ERROR="keyLoadError",O.KEY_LOAD_TIMEOUT="keyLoadTimeOut",O.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",O.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",O.BUFFER_APPEND_ERROR="bufferAppendError",O.BUFFER_APPENDING_ERROR="bufferAppendingError",O.BUFFER_STALLED_ERROR="bufferStalledError",O.BUFFER_FULL_ERROR="bufferFullError",O.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",O.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",O.INTERNAL_EXCEPTION="internalException",O.INTERNAL_ABORTED="aborted",O.UNKNOWN="unknown"})(_||(_={}))},"./src/events.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"Events",function(){return k});var k;(function(_){_.MEDIA_ATTACHING="hlsMediaAttaching",_.MEDIA_ATTACHED="hlsMediaAttached",_.MEDIA_DETACHING="hlsMediaDetaching",_.MEDIA_DETACHED="hlsMediaDetached",_.BUFFER_RESET="hlsBufferReset",_.BUFFER_CODECS="hlsBufferCodecs",_.BUFFER_CREATED="hlsBufferCreated",_.BUFFER_APPENDING="hlsBufferAppending",_.BUFFER_APPENDED="hlsBufferAppended",_.BUFFER_EOS="hlsBufferEos",_.BUFFER_FLUSHING="hlsBufferFlushing",_.BUFFER_FLUSHED="hlsBufferFlushed",_.MANIFEST_LOADING="hlsManifestLoading",_.MANIFEST_LOADED="hlsManifestLoaded",_.MANIFEST_PARSED="hlsManifestParsed",_.LEVEL_SWITCHING="hlsLevelSwitching",_.LEVEL_SWITCHED="hlsLevelSwitched",_.LEVEL_LOADING="hlsLevelLoading",_.LEVEL_LOADED="hlsLevelLoaded",_.LEVEL_UPDATED="hlsLevelUpdated",_.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",_.LEVELS_UPDATED="hlsLevelsUpdated",_.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",_.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",_.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",_.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",_.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",_.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",_.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",_.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",_.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",_.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",_.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",_.CUES_PARSED="hlsCuesParsed",_.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",_.INIT_PTS_FOUND="hlsInitPtsFound",_.FRAG_LOADING="hlsFragLoading",_.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",_.FRAG_LOADED="hlsFragLoaded",_.FRAG_DECRYPTED="hlsFragDecrypted",_.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",_.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",_.FRAG_PARSING_METADATA="hlsFragParsingMetadata",_.FRAG_PARSED="hlsFragParsed",_.FRAG_BUFFERED="hlsFragBuffered",_.FRAG_CHANGED="hlsFragChanged",_.FPS_DROP="hlsFpsDrop",_.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",_.ERROR="hlsError",_.DESTROYING="hlsDestroying",_.KEY_LOADING="hlsKeyLoading",_.KEY_LOADED="hlsKeyLoaded",_.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",_.BACK_BUFFER_REACHED="hlsBackBufferReached"})(k||(k={}))},"./src/hls.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return R});var k=I("./node_modules/url-toolkit/src/url-toolkit.js"),_=I.n(k),O=I("./src/loader/playlist-loader.ts"),M=I("./src/loader/key-loader.ts"),T=I("./src/controller/id3-track-controller.ts"),n=I("./src/controller/latency-controller.ts"),p=I("./src/controller/level-controller.ts"),a=I("./src/controller/fragment-tracker.ts"),t=I("./src/controller/stream-controller.ts"),A=I("./src/is-supported.ts"),l=I("./src/utils/logger.ts"),i=I("./src/config.ts"),c=I("./node_modules/eventemitter3/index.js"),d=I.n(c),f=I("./src/events.ts"),o=I("./src/errors.ts");function u(w,P){for(var C=0;C<P.length;C++){var b=P[C];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(w,b.key,b)}}function E(w,P,C){return P&&u(w.prototype,P),C&&u(w,C),w}var R=function(){w.isSupported=function(){return Object(A.isSupported)()};function w(C){C===void 0&&(C={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new c.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 b=this.config=Object(i.mergeConfig)(w.DefaultConfig,C);this.userConfig=C,Object(l.enableLogs)(b.debug),this._autoLevelCapping=-1,b.progressive&&Object(i.enableStreamingMode)(b);var s=b.abrController,h=b.bufferController,m=b.capLevelController,x=b.fpsController,g=this.abrController=new s(this),y=this.bufferController=new h(this),U=this.capLevelController=new m(this),N=new x(this),S=new O.default(this),H=new M.default(this),F=new T.default(this),B=this.levelController=new p.default(this),z=new a.FragmentTracker(this),K=this.streamController=new t.default(this,z);U.setStreamController(K),N.setStreamController(K);var $=[B,K];this.networkControllers=$;var te=[S,H,g,y,U,N,F,z];this.audioTrackController=this.createController(b.audioTrackController,null,$),this.createController(b.audioStreamController,z,$),this.subtitleTrackController=this.createController(b.subtitleTrackController,null,$),this.createController(b.subtitleStreamController,z,$),this.createController(b.timelineController,null,te),this.emeController=this.createController(b.emeController,null,te),this.cmcdController=this.createController(b.cmcdController,null,te),this.latencyController=this.createController(n.default,null,te),this.coreComponents=te}var P=w.prototype;return P.createController=function(b,s,h){if(b){var m=s?new b(this,s):new b(this);return h&&h.push(m),m}return null},P.on=function(b,s,h){h===void 0&&(h=this),this._emitter.on(b,s,h)},P.once=function(b,s,h){h===void 0&&(h=this),this._emitter.once(b,s,h)},P.removeAllListeners=function(b){this._emitter.removeAllListeners(b)},P.off=function(b,s,h,m){h===void 0&&(h=this),this._emitter.off(b,s,h,m)},P.listeners=function(b){return this._emitter.listeners(b)},P.emit=function(b,s,h){return this._emitter.emit(b,s,h)},P.trigger=function(b,s){if(this.config.debug)return this.emit(b,b,s);try{return this.emit(b,b,s)}catch(h){l.logger.error("An internal error happened while handling event "+b+'. Error message: "'+h.message+'". Here is a stacktrace:',h),this.trigger(f.Events.ERROR,{type:o.ErrorTypes.OTHER_ERROR,details:o.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:b,error:h})}return!1},P.listenerCount=function(b){return this._emitter.listenerCount(b)},P.destroy=function(){l.logger.log("destroy"),this.trigger(f.Events.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(b){return b.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(b){return b.destroy()}),this.coreComponents.length=0},P.attachMedia=function(b){l.logger.log("attachMedia"),this._media=b,this.trigger(f.Events.MEDIA_ATTACHING,{media:b})},P.detachMedia=function(){l.logger.log("detachMedia"),this.trigger(f.Events.MEDIA_DETACHING,void 0),this._media=null},P.loadSource=function(b){this.stopLoad();var s=this.media,h=this.url,m=this.url=k.buildAbsoluteURL(self.location.href,b,{alwaysNormalize:!0});l.logger.log("loadSource:"+m),s&&h&&h!==m&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(s)),this.trigger(f.Events.MANIFEST_LOADING,{url:b})},P.startLoad=function(b){b===void 0&&(b=-1),l.logger.log("startLoad("+b+")"),this.networkControllers.forEach(function(s){s.startLoad(b)})},P.stopLoad=function(){l.logger.log("stopLoad"),this.networkControllers.forEach(function(b){b.stopLoad()})},P.swapAudioCodec=function(){l.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},P.recoverMediaError=function(){l.logger.log("recoverMediaError");var b=this._media;this.detachMedia(),b&&this.attachMedia(b)},P.removeLevel=function(b,s){s===void 0&&(s=0),this.levelController.removeLevel(b,s)},E(w,[{key:"levels",get:function(){var b=this.levelController.levels;return b||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(b){l.logger.log("set currentLevel:"+b),this.loadLevel=b,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(b){l.logger.log("set nextLevel:"+b),this.levelController.manualLevel=b,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(b){l.logger.log("set loadLevel:"+b),this.levelController.manualLevel=b}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(b){this.levelController.nextLoadLevel=b}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(b){l.logger.log("set firstLevel:"+b),this.levelController.firstLevel=b}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(b){l.logger.log("set startLevel:"+b),b!==-1&&(b=Math.max(b,this.minAutoLevel)),this.levelController.startLevel=b}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(b){var s=!!b;s!==this.config.capLevelToPlayerSize&&(s?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=s)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(b){this._autoLevelCapping!==b&&(l.logger.log("set autoLevelCapping:"+b),this._autoLevelCapping=b)}},{key:"bandwidthEstimate",get:function(){var b=this.abrController.bwEstimator;return b?b.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var b=this.levels,s=this.config.minAutoBitrate;if(!b)return 0;for(var h=b.length,m=0;m<h;m++)if(b[m].maxBitrate>s)return m;return 0}},{key:"maxAutoLevel",get:function(){var b=this.levels,s=this.autoLevelCapping,h;return s===-1&&b&&b.length?h=b.length-1:h=s,h}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(b){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,b)}},{key:"audioTracks",get:function(){var b=this.audioTrackController;return b?b.audioTracks:[]}},{key:"audioTrack",get:function(){var b=this.audioTrackController;return b?b.audioTrack:-1},set:function(b){var s=this.audioTrackController;s&&(s.audioTrack=b)}},{key:"subtitleTracks",get:function(){var b=this.subtitleTrackController;return b?b.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var b=this.subtitleTrackController;return b?b.subtitleTrack:-1},set:function(b){var s=this.subtitleTrackController;s&&(s.subtitleTrack=b)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var b=this.subtitleTrackController;return b?b.subtitleDisplay:!1},set:function(b){var s=this.subtitleTrackController;s&&(s.subtitleDisplay=b)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(b){this.config.lowLatencyMode=b}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.1.2"}},{key:"Events",get:function(){return f.Events}},{key:"ErrorTypes",get:function(){return o.ErrorTypes}},{key:"ErrorDetails",get:function(){return o.ErrorDetails}},{key:"DefaultConfig",get:function(){return w.defaultConfig?w.defaultConfig:i.hlsDefaultConfig},set:function(b){w.defaultConfig=b}}]),w}();R.defaultConfig=void 0},"./src/is-supported.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"isSupported",function(){return O}),I.d(Q,"changeTypeSupported",function(){return M});var k=I("./src/utils/mediasource-helper.ts");function _(){return self.SourceBuffer||self.WebKitSourceBuffer}function O(){var T=Object(k.getMediaSource)();if(!T)return!1;var n=_(),p=T&&typeof T.isTypeSupported=="function"&&T.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),a=!n||n.prototype&&typeof n.prototype.appendBuffer=="function"&&typeof n.prototype.remove=="function";return!!p&&!!a}function M(){var T,n=_();return typeof(n==null||((T=n.prototype)===null||T===void 0)?void 0:T.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return l}),I.d(Q,"LoadError",function(){return c});var k=I("./src/polyfills/number.ts"),_=I("./src/errors.ts");function O(d,f){d.prototype=Object.create(f.prototype),d.prototype.constructor=d,a(d,f)}function M(d){var f=typeof Map=="function"?new Map:void 0;return M=function(u){if(u===null||!p(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(typeof f!="undefined"){if(f.has(u))return f.get(u);f.set(u,E)}function E(){return T(u,arguments,t(this).constructor)}return E.prototype=Object.create(u.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),a(E,u)},M(d)}function T(d,f,o){return n()?T=Reflect.construct:T=function(E,R,w){var P=[null];P.push.apply(P,R);var C=Function.bind.apply(E,P),b=new C;return w&&a(b,w.prototype),b},T.apply(null,arguments)}function n(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(d){return!1}}function p(d){return Function.toString.call(d).indexOf("[native code]")!==-1}function a(d,f){return a=Object.setPrototypeOf||function(u,E){return u.__proto__=E,u},a(d,f)}function t(d){return t=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},t(d)}var A=Math.pow(2,17),l=function(){function d(o){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=o}var f=d.prototype;return f.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},f.abort=function(){this.loader&&this.loader.abort()},f.load=function(u,E){var R=this,w=u.url;if(!w)return Promise.reject(new c({type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:u,networkDetails:null},"Fragment does not have a "+(w?"part list":"url")));this.abort();var P=this.config,C=P.fLoader,b=P.loader;return new Promise(function(s,h){R.loader&&R.loader.destroy();var m=R.loader=u.loader=C?new C(P):new b(P),x=i(u),g={timeout:P.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:P.fragLoadingMaxRetryTimeout,highWaterMark:A};u.stats=m.stats,m.load(x,g,{onSuccess:function(U,N,S,H){R.resetLoader(u,m),s({frag:u,part:null,payload:U.data,networkDetails:H})},onError:function(U,N,S){R.resetLoader(u,m),h(new c({type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:u,response:U,networkDetails:S}))},onAbort:function(U,N,S){R.resetLoader(u,m),h(new c({type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:u,networkDetails:S}))},onTimeout:function(U,N,S){R.resetLoader(u,m),h(new c({type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:u,networkDetails:S}))},onProgress:function(U,N,S,H){E&&E({frag:u,part:null,payload:S,networkDetails:H})}})})},f.loadPart=function(u,E,R){var w=this;this.abort();var P=this.config,C=P.fLoader,b=P.loader;return new Promise(function(s,h){w.loader&&w.loader.destroy();var m=w.loader=u.loader=C?new C(P):new b(P),x=i(u,E),g={timeout:P.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:P.fragLoadingMaxRetryTimeout,highWaterMark:A};E.stats=m.stats,m.load(x,g,{onSuccess:function(U,N,S,H){w.resetLoader(u,m),w.updateStatsFromPart(u,E);var F={frag:u,part:E,payload:U.data,networkDetails:H};R(F),s(F)},onError:function(U,N,S){w.resetLoader(u,m),h(new c({type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:u,part:E,response:U,networkDetails:S}))},onAbort:function(U,N,S){u.stats.aborted=E.stats.aborted,w.resetLoader(u,m),h(new c({type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:u,part:E,networkDetails:S}))},onTimeout:function(U,N,S){w.resetLoader(u,m),h(new c({type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:u,part:E,networkDetails:S}))}})})},f.updateStatsFromPart=function(u,E){var R=u.stats,w=E.stats,P=w.total;if(R.loaded+=w.loaded,P){var C=Math.round(u.duration/E.duration),b=Math.min(Math.round(R.loaded/P),C),s=C-b,h=s*Math.round(R.loaded/b);R.total=R.loaded+h}else R.total=Math.max(R.loaded,R.total);var m=R.loading,x=w.loading;m.start?m.first+=x.first-x.start:(m.start=x.start,m.first=x.first),m.end=x.end},f.resetLoader=function(u,E){u.loader=null,this.loader===E&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),E.destroy()},d}();function i(d,f){f===void 0&&(f=null);var o=f||d,u={frag:d,part:f,responseType:"arraybuffer",url:o.url,headers:{},rangeStart:0,rangeEnd:0},E=o.byteRangeStartOffset,R=o.byteRangeEndOffset;return Object(k.isFiniteNumber)(E)&&Object(k.isFiniteNumber)(R)&&(u.rangeStart=E,u.rangeEnd=R),u}var c=function(d){O(f,d);function f(o){for(var u,E=arguments.length,R=new Array(E>1?E-1:0),w=1;w<E;w++)R[w-1]=arguments[w];return u=d.call.apply(d,[this].concat(R))||this,u.data=void 0,u.data=o,u}return f}(M(Error))},"./src/loader/fragment.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"ElementaryStreamTypes",function(){return l}),I.d(Q,"BaseSegment",function(){return i}),I.d(Q,"Fragment",function(){return c}),I.d(Q,"Part",function(){return d});var k=I("./src/polyfills/number.ts"),_=I("./node_modules/url-toolkit/src/url-toolkit.js"),O=I.n(_),M=I("./src/utils/logger.ts"),T=I("./src/loader/level-key.ts"),n=I("./src/loader/load-stats.ts");function p(f,o){f.prototype=Object.create(o.prototype),f.prototype.constructor=f,a(f,o)}function a(f,o){return a=Object.setPrototypeOf||function(E,R){return E.__proto__=R,E},a(f,o)}function t(f,o){for(var u=0;u<o.length;u++){var E=o[u];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(f,E.key,E)}}function A(f,o,u){return o&&t(f.prototype,o),u&&t(f,u),f}var l;(function(f){f.AUDIO="audio",f.VIDEO="video",f.AUDIOVIDEO="audiovideo"})(l||(l={}));var i=function(){function f(u){var E;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(E={},E[l.AUDIO]=null,E[l.VIDEO]=null,E[l.AUDIOVIDEO]=null,E),this.baseurl=u}var o=f.prototype;return o.setByteRange=function(E,R){var w=E.split("@",2),P=[];w.length===1?P[0]=R?R.byteRangeEndOffset:0:P[0]=parseInt(w[1]),P[1]=parseInt(w[0])+P[0],this._byteRange=P},A(f,[{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(_.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(E){this._url=E}}]),f}(),c=function(f){p(o,f);function o(E,R){var w;return w=f.call(this,R)||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 n.LoadStats,w.urlId=0,w.data=void 0,w.bitrateTest=!1,w.title=null,w.initSegment=null,w.type=E,w}var u=o.prototype;return u.createInitializationVector=function(R){for(var w=new Uint8Array(16),P=12;P<16;P++)w[P]=R>>8*(15-P)&255;return w},u.setDecryptDataFromLevelKey=function(R,w){var P=R;return(R==null?void 0:R.method)==="AES-128"&&R.uri&&!R.iv&&(P=T.LevelKey.fromURI(R.uri),P.method=R.method,P.iv=this.createInitializationVector(w),P.keyFormat="identity"),P},u.setElementaryStreamInfo=function(R,w,P,C,b,s){s===void 0&&(s=!1);var h=this.elementaryStreams,m=h[R];if(!m){h[R]={startPTS:w,endPTS:P,startDTS:C,endDTS:b,partial:s};return}m.startPTS=Math.min(m.startPTS,w),m.endPTS=Math.max(m.endPTS,P),m.startDTS=Math.min(m.startDTS,C),m.endDTS=Math.max(m.endDTS,b)},u.clearElementaryStreamInfo=function(){var R=this.elementaryStreams;R[l.AUDIO]=null,R[l.VIDEO]=null,R[l.AUDIOVIDEO]=null},A(o,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var R=this.sn;typeof R!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&M.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),R=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,R)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(k.isFiniteNumber)(this.programDateTime))return null;var R=Object(k.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+R*1e3}},{key:"encrypted",get:function(){var R;return!!((R=this.decryptdata)!==null&&R!==void 0&&R.keyFormat&&this.decryptdata.uri)}}]),o}(i),d=function(f){p(o,f);function o(u,E,R,w,P){var C;C=f.call(this,R)||this,C.fragOffset=0,C.duration=0,C.gap=!1,C.independent=!1,C.relurl=void 0,C.fragment=void 0,C.index=void 0,C.stats=new n.LoadStats,C.duration=u.decimalFloatingPoint("DURATION"),C.gap=u.bool("GAP"),C.independent=u.bool("INDEPENDENT"),C.relurl=u.enumeratedString("URI"),C.fragment=E,C.index=w;var b=u.enumeratedString("BYTERANGE");return b&&C.setByteRange(b,P),P&&(C.fragOffset=P.fragOffset+P.duration),C}return A(o,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var E=this.elementaryStreams;return!!(E.audio||E.video||E.audiovideo)}}]),o}(i)},"./src/loader/key-loader.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return M});var k=I("./src/events.ts"),_=I("./src/errors.ts"),O=I("./src/utils/logger.ts"),M=function(){function T(p){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=p,this._registerListeners()}var n=T.prototype;return n._registerListeners=function(){this.hls.on(k.Events.KEY_LOADING,this.onKeyLoading,this)},n._unregisterListeners=function(){this.hls.off(k.Events.KEY_LOADING,this.onKeyLoading)},n.destroy=function(){this._unregisterListeners();for(var a in this.loaders){var t=this.loaders[a];t&&t.destroy()}this.loaders={}},n.onKeyLoading=function(a,t){var A=t.frag,l=A.type,i=this.loaders[l];if(!A.decryptdata){O.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var c=A.decryptdata.uri;if(c!==this.decrypturl||this.decryptkey===null){var d=this.hls.config;if(i&&(O.logger.warn("abort previous key loader for type:"+l),i.abort()),!c){O.logger.warn("key uri is falsy");return}var f=d.loader,o=A.loader=this.loaders[l]=new f(d);this.decrypturl=c,this.decryptkey=null;var u={url:c,frag:A,responseType:"arraybuffer"},E={timeout:d.fragLoadingTimeOut,maxRetry:0,retryDelay:d.fragLoadingRetryDelay,maxRetryDelay:d.fragLoadingMaxRetryTimeout,highWaterMark:0},R={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};o.load(u,E,R)}else this.decryptkey&&(A.decryptdata.key=this.decryptkey,this.hls.trigger(k.Events.KEY_LOADED,{frag:A}))},n.loadsuccess=function(a,t,A){var l=A.frag;if(!l.decryptdata){O.logger.error("after key load, decryptdata unset");return}this.decryptkey=l.decryptdata.key=new Uint8Array(a.data),l.loader=null,delete this.loaders[l.type],this.hls.trigger(k.Events.KEY_LOADED,{frag:l})},n.loaderror=function(a,t){var A=t.frag,l=A.loader;l&&l.abort(),delete this.loaders[A.type],this.hls.trigger(k.Events.ERROR,{type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:A,response:a})},n.loadtimeout=function(a,t){var A=t.frag,l=A.loader;l&&l.abort(),delete this.loaders[A.type],this.hls.trigger(k.Events.ERROR,{type:_.ErrorTypes.NETWORK_ERROR,details:_.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:A})},T}()},"./src/loader/level-details.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"LevelDetails",function(){return T});var k=I("./src/polyfills/number.ts");function _(n,p){for(var a=0;a<p.length;a++){var t=p[a];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function O(n,p,a){return p&&_(n.prototype,p),a&&_(n,a),n}var M=10,T=function(){function n(a){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=a}var p=n.prototype;return p.reloaded=function(t){if(!t){this.advanced=!0,this.updated=!0;return}var A=this.lastPartSn-t.lastPartSn,l=this.lastPartIndex-t.lastPartIndex;this.updated=this.endSN!==t.endSN||!!l||!!A,this.advanced=this.endSN>t.endSN||A>0||A===0&&l>0,this.updated||this.advanced?this.misses=Math.floor(t.misses*.6):this.misses=t.misses+1,this.availabilityDelay=t.availabilityDelay},O(n,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(k.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||M}},{key:"drift",get:function(){var t=this.driftEndTime-this.driftStartTime;if(t>0){var A=this.driftEnd-this.driftStart;return A*1e3/t}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var t;return(t=this.partList)!==null&&t!==void 0&&t.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var t;return(t=this.fragments)!==null&&t!==void 0&&t.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var t;return(t=this.partList)!==null&&t!==void 0&&t.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var t;return(t=this.partList)!==null&&t!==void 0&&t.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),n}()},"./src/loader/level-key.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"LevelKey",function(){return T});var k=I("./node_modules/url-toolkit/src/url-toolkit.js"),_=I.n(k);function O(n,p){for(var a=0;a<p.length;a++){var t=p[a];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function M(n,p,a){return p&&O(n.prototype,p),a&&O(n,a),n}var T=function(){n.fromURL=function(a,t){return new n(a,t)},n.fromURI=function(a){return new n(a)};function n(p,a){this._uri=null,this.method=null,this.keyFormat=null,this.keyFormatVersions=null,this.keyID=null,this.key=null,this.iv=null,a?this._uri=Object(k.buildAbsoluteURL)(p,a,{alwaysNormalize:!0}):this._uri=p}return M(n,[{key:"uri",get:function(){return this._uri}}]),n}()},"./src/loader/load-stats.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"LoadStats",function(){return k});var k=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(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return o});var k=I("./src/polyfills/number.ts"),_=I("./node_modules/url-toolkit/src/url-toolkit.js"),O=I.n(_),M=I("./src/loader/fragment.ts"),T=I("./src/loader/level-details.ts"),n=I("./src/loader/level-key.ts"),p=I("./src/utils/attr-list.ts"),a=I("./src/utils/logger.ts"),t=I("./src/utils/codecs.ts"),A=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-SESSION-DATA:([^\r\n]*)[\r\n]+/g,l=/#EXT-X-MEDIA:(.*)/g,i=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),c=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 f(P){var C,b;return d.test((C=(b=_.parseURL(P))===null||b===void 0?void 0:b.path)!=null?C:"")}var o=function(){function P(){}return P.findGroup=function(b,s){for(var h=0;h<b.length;h++){var m=b[h];if(m.id===s)return m}},P.convertAVC1ToAVCOTI=function(b){var s=b.split(".");if(s.length>2){var h=s.shift()+".";return h+=parseInt(s.shift()).toString(16),h+=("000"+parseInt(s.shift()).toString(16)).substr(-4),h}return b},P.resolve=function(b,s){return _.buildAbsoluteURL(s,b,{alwaysNormalize:!0})},P.parseMasterPlaylist=function(b,s){var h=[],m={},x=!1;A.lastIndex=0;for(var g;(g=A.exec(b))!=null;)if(g[1]){var y=new p.AttrList(g[1]),U={attrs:y,bitrate:y.decimalInteger("AVERAGE-BANDWIDTH")||y.decimalInteger("BANDWIDTH"),name:y.NAME,url:P.resolve(g[2],s)},N=y.decimalResolution("RESOLUTION");N&&(U.width=N.width,U.height=N.height),u((y.CODECS||"").split(/[ ,]+/).filter(function(H){return H}),U),U.videoCodec&&U.videoCodec.indexOf("avc1")!==-1&&(U.videoCodec=P.convertAVC1ToAVCOTI(U.videoCodec)),h.push(U)}else if(g[3]){var S=new p.AttrList(g[3]);S["DATA-ID"]&&(x=!0,m[S["DATA-ID"]]=S)}return{levels:h,sessionData:x?m:null}},P.parseMasterPlaylistMedia=function(b,s,h,m){m===void 0&&(m=[]);var x,g=[],y=0;for(l.lastIndex=0;(x=l.exec(b))!==null;){var U=new p.AttrList(x[1]);if(U.TYPE===h){var N={attrs:U,bitrate:0,id:y++,groupId:U["GROUP-ID"],instreamId:U["INSTREAM-ID"],name:U.NAME||U.LANGUAGE||"",type:h,default:U.bool("DEFAULT"),autoselect:U.bool("AUTOSELECT"),forced:U.bool("FORCED"),lang:U.LANGUAGE,url:U.URI?P.resolve(U.URI,s):""};if(m.length){var S=P.findGroup(m,N.groupId)||m[0];E(N,S,"audioCodec"),E(N,S,"textCodec")}g.push(N)}}return g},P.parseLevelPlaylist=function(b,s,h,m,x){var g=new T.LevelDetails(s),y=g.fragments,U=null,N=0,S=0,H=0,F=0,B=null,z=new M.Fragment(m,s),K,$,te,fe=-1,Ae=!1;for(i.lastIndex=0,g.m3u8=b;(K=i.exec(b))!==null;){Ae&&(Ae=!1,z=new M.Fragment(m,s),z.start=H,z.sn=N,z.cc=F,z.level=h,U&&(z.initSegment=U,z.rawProgramDateTime=U.rawProgramDateTime));var ce=K[1];if(ce){z.duration=parseFloat(ce);var ie=(" "+K[2]).slice(1);z.title=ie||null,z.tagList.push(ie?["INF",ce,ie]:["INF",ce])}else if(K[3])Object(k.isFiniteNumber)(z.duration)&&(z.start=H,te&&(z.levelkey=te),z.sn=N,z.level=h,z.cc=F,z.urlId=x,y.push(z),z.relurl=(" "+K[3]).slice(1),w(z,B),B=z,H+=z.duration,N++,S=0,Ae=!0);else if(K[4]){var ye=(" "+K[4]).slice(1);B?z.setByteRange(ye,B):z.setByteRange(ye)}else if(K[5])z.rawProgramDateTime=(" "+K[5]).slice(1),z.tagList.push(["PROGRAM-DATE-TIME",z.rawProgramDateTime]),fe===-1&&(fe=y.length);else{if(K=K[0].match(c),!K){a.logger.warn("No matches on slow regex match for level playlist!");continue}for($=1;$<K.length&&!(typeof K[$]!="undefined");$++);var le=(" "+K[$]).slice(1),me=(" "+K[$+1]).slice(1),se=K[$+2]?(" "+K[$+2]).slice(1):"";switch(le){case"PLAYLIST-TYPE":g.type=me.toUpperCase();break;case"MEDIA-SEQUENCE":N=g.startSN=parseInt(me);break;case"SKIP":{var ge=new p.AttrList(me),ae=ge.decimalInteger("SKIPPED-SEGMENTS");if(Object(k.isFiniteNumber)(ae)){g.skippedSegments=ae;for(var pe=ae;pe--;)y.unshift(null);N+=ae}var Me=ge.enumeratedString("RECENTLY-REMOVED-DATERANGES");Me&&(g.recentlyRemovedDateranges=Me.split(" "));break}case"TARGETDURATION":g.targetduration=parseFloat(me);break;case"VERSION":g.version=parseInt(me);break;case"EXTM3U":break;case"ENDLIST":g.live=!1;break;case"#":(me||se)&&z.tagList.push(se?[me,se]:[me]);break;case"DIS":F++;case"GAP":z.tagList.push([le]);break;case"BITRATE":z.tagList.push([le,me]);break;case"DISCONTINUITY-SEQ":F=parseInt(me);break;case"KEY":{var xe,Ke=new p.AttrList(me),et=Ke.enumeratedString("METHOD"),he=Ke.URI,Se=Ke.hexadecimalInteger("IV"),Ue=Ke.enumeratedString("KEYFORMATVERSIONS"),Ne=Ke.enumeratedString("KEYID"),ct=(xe=Ke.enumeratedString("KEYFORMAT"))!=null?xe:"identity",ft=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(ft.indexOf(ct)>-1){a.logger.warn("Keyformat "+ct+" is not supported from the manifest");continue}else if(ct!=="identity")continue;et&&(te=n.LevelKey.fromURL(s,he),he&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(et)>=0&&(te.method=et,te.keyFormat=ct,Ne&&(te.keyID=Ne),Ue&&(te.keyFormatVersions=Ue),te.iv=Se));break}case"START":{var Ot=new p.AttrList(me),dt=Ot.decimalFloatingPoint("TIME-OFFSET");Object(k.isFiniteNumber)(dt)&&(g.startTimeOffset=dt);break}case"MAP":{var Ut=new p.AttrList(me);z.relurl=Ut.URI,Ut.BYTERANGE&&z.setByteRange(Ut.BYTERANGE),z.level=h,z.sn="initSegment",te&&(z.levelkey=te),z.initSegment=null,U=z,Ae=!0;break}case"SERVER-CONTROL":{var jt=new p.AttrList(me);g.canBlockReload=jt.bool("CAN-BLOCK-RELOAD"),g.canSkipUntil=jt.optionalFloat("CAN-SKIP-UNTIL",0),g.canSkipDateRanges=g.canSkipUntil>0&&jt.bool("CAN-SKIP-DATERANGES"),g.partHoldBack=jt.optionalFloat("PART-HOLD-BACK",0),g.holdBack=jt.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var ze=new p.AttrList(me);g.partTarget=ze.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Ve=g.partList;Ve||(Ve=g.partList=[]);var Et=S>0?Ve[Ve.length-1]:void 0,Rt=S++,ut=new M.Part(new p.AttrList(me),z,s,Rt,Et);Ve.push(ut),z.duration+=ut.duration;break}case"PRELOAD-HINT":{var vt=new p.AttrList(me);g.preloadHint=vt;break}case"RENDITION-REPORT":{var Ze=new p.AttrList(me);g.renditionReports=g.renditionReports||[],g.renditionReports.push(Ze);break}default:a.logger.warn("line parsed but not handled: "+K);break}}}B&&!B.relurl?(y.pop(),H-=B.duration,g.partList&&(g.fragmentHint=B)):g.partList&&(w(z,B),z.cc=F,g.fragmentHint=z);var ke=y.length,He=y[0],we=y[ke-1];if(H+=g.skippedSegments*g.targetduration,H>0&&ke&&we){g.averagetargetduration=H/ke;var Le=we.sn;g.endSN=Le!=="initSegment"?Le:0,He&&(g.startCC=He.cc,He.initSegment||g.fragments.every(function(Pe){return Pe.relurl&&f(Pe.relurl)})&&(a.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),z=new M.Fragment(m,s),z.relurl=we.relurl,z.level=h,z.sn="initSegment",He.initSegment=z,g.needSidxRanges=!0))}else g.endSN=0,g.startCC=0;return g.fragmentHint&&(H+=g.fragmentHint.duration),g.totalduration=H,g.endCC=F,fe>0&&R(y,fe),g},P}();function u(P,C){["video","audio","text"].forEach(function(b){var s=P.filter(function(m){return Object(t.isCodecType)(m,b)});if(s.length){var h=s.filter(function(m){return m.lastIndexOf("avc1",0)===0||m.lastIndexOf("mp4a",0)===0});C[b+"Codec"]=h.length>0?h[0]:s[0],P=P.filter(function(m){return s.indexOf(m)===-1})}}),C.unknownCodecs=P}function E(P,C,b){var s=C[b];s&&(P[b]=s)}function R(P,C){for(var b=P[C],s=C;s--;){var h=P[s];if(!h)return;h.programDateTime=b.programDateTime-h.duration*1e3,b=h}}function w(P,C){P.rawProgramDateTime?P.programDateTime=Date.parse(P.rawProgramDateTime):C!=null&&C.programDateTime&&(P.programDateTime=C.endProgramDateTime),Object(k.isFiniteNumber)(P.programDateTime)||(P.programDateTime=null,P.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(Z,Q,I){"use strict";I.r(Q);var k=I("./src/polyfills/number.ts"),_=I("./src/events.ts"),O=I("./src/errors.ts"),M=I("./src/utils/logger.ts"),T=I("./src/utils/mp4-tools.ts"),n=I("./src/loader/m3u8-parser.ts"),p=I("./src/types/loader.ts"),a=I("./src/utils/attr-list.ts");function t(i){var c=i.type;switch(c){case p.PlaylistContextType.AUDIO_TRACK:return p.PlaylistLevelType.AUDIO;case p.PlaylistContextType.SUBTITLE_TRACK:return p.PlaylistLevelType.SUBTITLE;default:return p.PlaylistLevelType.MAIN}}function A(i,c){var d=i.url;return(d===void 0||d.indexOf("data:")===0)&&(d=c.url),d}var l=function(){function i(d){this.hls=void 0,this.loaders=Object.create(null),this.hls=d,this.registerListeners()}var c=i.prototype;return c.registerListeners=function(){var f=this.hls;f.on(_.Events.MANIFEST_LOADING,this.onManifestLoading,this),f.on(_.Events.LEVEL_LOADING,this.onLevelLoading,this),f.on(_.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),f.on(_.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},c.unregisterListeners=function(){var f=this.hls;f.off(_.Events.MANIFEST_LOADING,this.onManifestLoading,this),f.off(_.Events.LEVEL_LOADING,this.onLevelLoading,this),f.off(_.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),f.off(_.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},c.createInternalLoader=function(f){var o=this.hls.config,u=o.pLoader,E=o.loader,R=u||E,w=new R(o);return f.loader=w,this.loaders[f.type]=w,w},c.getInternalLoader=function(f){return this.loaders[f.type]},c.resetInternalLoader=function(f){this.loaders[f]&&delete this.loaders[f]},c.destroyInternalLoaders=function(){for(var f in this.loaders){var o=this.loaders[f];o&&o.destroy(),this.resetInternalLoader(f)}},c.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},c.onManifestLoading=function(f,o){var u=o.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:p.PlaylistContextType.MANIFEST,url:u,deliveryDirectives:null})},c.onLevelLoading=function(f,o){var u=o.id,E=o.level,R=o.url,w=o.deliveryDirectives;this.load({id:u,groupId:null,level:E,responseType:"text",type:p.PlaylistContextType.LEVEL,url:R,deliveryDirectives:w})},c.onAudioTrackLoading=function(f,o){var u=o.id,E=o.groupId,R=o.url,w=o.deliveryDirectives;this.load({id:u,groupId:E,level:null,responseType:"text",type:p.PlaylistContextType.AUDIO_TRACK,url:R,deliveryDirectives:w})},c.onSubtitleTrackLoading=function(f,o){var u=o.id,E=o.groupId,R=o.url,w=o.deliveryDirectives;this.load({id:u,groupId:E,level:null,responseType:"text",type:p.PlaylistContextType.SUBTITLE_TRACK,url:R,deliveryDirectives:w})},c.load=function(f){var o,u=this.hls.config,E=this.getInternalLoader(f);if(E){var R=E.context;if(R&&R.url===f.url){M.logger.trace("[playlist-loader]: playlist request ongoing");return}M.logger.log("[playlist-loader]: aborting previous loader for type: "+f.type),E.abort()}var w,P,C,b;switch(f.type){case p.PlaylistContextType.MANIFEST:w=u.manifestLoadingMaxRetry,P=u.manifestLoadingTimeOut,C=u.manifestLoadingRetryDelay,b=u.manifestLoadingMaxRetryTimeout;break;case p.PlaylistContextType.LEVEL:case p.PlaylistContextType.AUDIO_TRACK:case p.PlaylistContextType.SUBTITLE_TRACK:w=0,P=u.levelLoadingTimeOut;break;default:w=u.levelLoadingMaxRetry,P=u.levelLoadingTimeOut,C=u.levelLoadingRetryDelay,b=u.levelLoadingMaxRetryTimeout;break}if(E=this.createInternalLoader(f),(o=f.deliveryDirectives)!==null&&o!==void 0&&o.part){var s;if(f.type===p.PlaylistContextType.LEVEL&&f.level!==null?s=this.hls.levels[f.level].details:f.type===p.PlaylistContextType.AUDIO_TRACK&&f.id!==null?s=this.hls.audioTracks[f.id].details:f.type===p.PlaylistContextType.SUBTITLE_TRACK&&f.id!==null&&(s=this.hls.subtitleTracks[f.id].details),s){var h=s.partTarget,m=s.targetduration;h&&m&&(P=Math.min(Math.max(h*3,m*.8)*1e3,P))}}var x={timeout:P,maxRetry:w,retryDelay:C,maxRetryDelay:b,highWaterMark:0},g={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};E.load(f,x,g)},c.loadsuccess=function(f,o,u,E){if(E===void 0&&(E=null),u.isSidxRequest){this.handleSidxRequest(f,u),this.handlePlaylistLoaded(f,o,u,E);return}this.resetInternalLoader(u.type);var R=f.data;if(R.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(f,u,"no EXTM3U delimiter",E);return}o.parsing.start=performance.now(),R.indexOf("#EXTINF:")>0||R.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(f,o,u,E):this.handleMasterPlaylist(f,o,u,E)},c.loaderror=function(f,o,u){u===void 0&&(u=null),this.handleNetworkError(o,u,!1,f)},c.loadtimeout=function(f,o,u){u===void 0&&(u=null),this.handleNetworkError(o,u,!0)},c.handleMasterPlaylist=function(f,o,u,E){var R=this.hls,w=f.data,P=A(f,u),C=n.default.parseMasterPlaylist(w,P),b=C.levels,s=C.sessionData;if(!b.length){this.handleManifestParsingError(f,u,"no level found in manifest",E);return}var h=b.map(function(N){return{id:N.attrs.AUDIO,audioCodec:N.audioCodec}}),m=b.map(function(N){return{id:N.attrs.SUBTITLES,textCodec:N.textCodec}}),x=n.default.parseMasterPlaylistMedia(w,P,"AUDIO",h),g=n.default.parseMasterPlaylistMedia(w,P,"SUBTITLES",m),y=n.default.parseMasterPlaylistMedia(w,P,"CLOSED-CAPTIONS");if(x.length){var U=x.some(function(N){return!N.url});!U&&b[0].audioCodec&&!b[0].attrs.AUDIO&&(M.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),x.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new a.AttrList({}),bitrate:0,url:""}))}R.trigger(_.Events.MANIFEST_LOADED,{levels:b,audioTracks:x,subtitles:g,captions:y,url:P,stats:o,networkDetails:E,sessionData:s})},c.handleTrackOrLevelPlaylist=function(f,o,u,E){var R=this.hls,w=u.id,P=u.level,C=u.type,b=A(f,u),s=Object(k.isFiniteNumber)(w)?w:0,h=Object(k.isFiniteNumber)(P)?P:s,m=t(u),x=n.default.parseLevelPlaylist(f.data,b,h,m,s);if(!x.fragments.length){R.trigger(_.Events.ERROR,{type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:b,reason:"no fragments found in level",level:typeof u.level=="number"?u.level:void 0});return}if(C===p.PlaylistContextType.MANIFEST){var g={attrs:new a.AttrList({}),bitrate:0,details:x,name:"",url:b};R.trigger(_.Events.MANIFEST_LOADED,{levels:[g],audioTracks:[],url:b,stats:o,networkDetails:E,sessionData:null})}if(o.parsing.end=performance.now(),x.needSidxRanges){var y,U=(y=x.fragments[0].initSegment)===null||y===void 0?void 0:y.url;this.load({url:U,isSidxRequest:!0,type:C,level:P,levelDetails:x,id:w,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}u.levelDetails=x,this.handlePlaylistLoaded(f,o,u,E)},c.handleSidxRequest=function(f,o){var u=Object(T.parseSegmentIndex)(new Uint8Array(f.data));if(!u)return;var E=u.references,R=o.levelDetails;E.forEach(function(w,P){var C=w.info,b=R.fragments[P];b.byteRange.length===0&&b.setByteRange(String(1+C.end-C.start)+"@"+String(C.start)),b.initSegment&&b.initSegment.setByteRange(String(u.moovEndOffset)+"@0")})},c.handleManifestParsingError=function(f,o,u,E){this.hls.trigger(_.Events.ERROR,{type:O.ErrorTypes.NETWORK_ERROR,details:O.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:o.type===p.PlaylistContextType.MANIFEST,url:f.url,reason:u,response:f,context:o,networkDetails:E})},c.handleNetworkError=function(f,o,u,E){u===void 0&&(u=!1),M.logger.warn("[playlist-loader]: A network "+(u?"timeout":"error")+" occurred while loading "+f.type+" level: "+f.level+" id: "+f.id+' group-id: "'+f.groupId+'"');var R=O.ErrorDetails.UNKNOWN,w=!1,P=this.getInternalLoader(f);switch(f.type){case p.PlaylistContextType.MANIFEST:R=u?O.ErrorDetails.MANIFEST_LOAD_TIMEOUT:O.ErrorDetails.MANIFEST_LOAD_ERROR,w=!0;break;case p.PlaylistContextType.LEVEL:R=u?O.ErrorDetails.LEVEL_LOAD_TIMEOUT:O.ErrorDetails.LEVEL_LOAD_ERROR,w=!1;break;case p.PlaylistContextType.AUDIO_TRACK:R=u?O.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:O.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,w=!1;break;case p.PlaylistContextType.SUBTITLE_TRACK:R=u?O.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:O.ErrorDetails.SUBTITLE_LOAD_ERROR,w=!1;break}P&&this.resetInternalLoader(f.type);var C={type:O.ErrorTypes.NETWORK_ERROR,details:R,fatal:w,url:f.url,loader:P,context:f,networkDetails:o};E&&(C.response=E),this.hls.trigger(_.Events.ERROR,C)},c.handlePlaylistLoaded=function(f,o,u,E){var R=u.type,w=u.level,P=u.id,C=u.groupId,b=u.loader,s=u.levelDetails,h=u.deliveryDirectives;if(!(s!=null&&s.targetduration)){this.handleManifestParsingError(f,u,"invalid target duration",E);return}if(!b)return;s.live&&(b.getCacheAge&&(s.ageHeader=b.getCacheAge()||0),(!b.getCacheAge||isNaN(s.ageHeader))&&(s.ageHeader=0));switch(R){case p.PlaylistContextType.MANIFEST:case p.PlaylistContextType.LEVEL:this.hls.trigger(_.Events.LEVEL_LOADED,{details:s,level:w||0,id:P||0,stats:o,networkDetails:E,deliveryDirectives:h});break;case p.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(_.Events.AUDIO_TRACK_LOADED,{details:s,id:P||0,groupId:C||"",stats:o,networkDetails:E,deliveryDirectives:h});break;case p.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(_.Events.SUBTITLE_TRACK_LOADED,{details:s,id:P||0,groupId:C||"",stats:o,networkDetails:E,deliveryDirectives:h});break}},i}();Q.default=l},"./src/polyfills/number.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"isFiniteNumber",function(){return k}),I.d(Q,"MAX_SAFE_INTEGER",function(){return _});var k=Number.isFinite||function(O){return typeof O=="number"&&isFinite(O)},_=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(Z,Q,I){"use strict";I.r(Q);var k=function(){function _(){}return _.getSilentFrame=function(M,T){switch(M){case"mp4a.40.2":if(T===1)return new Uint8Array([0,200,0,128,35,128]);if(T===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(T===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(T===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(T===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(T===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(T===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(T===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(T===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}return},_}();Q.default=k},"./src/remux/mp4-generator.ts":function(Z,Q,I){"use strict";I.r(Q);var k=Math.pow(2,32)-1,_=function(){function O(){}return O.init=function(){O.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var T;for(T in O.types)O.types.hasOwnProperty(T)&&(O.types[T]=[T.charCodeAt(0),T.charCodeAt(1),T.charCodeAt(2),T.charCodeAt(3)]);var n=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),p=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);O.HDLR_TYPES={video:n,audio:p};var a=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),t=new Uint8Array([0,0,0,0,0,0,0,0]);O.STTS=O.STSC=O.STCO=t,O.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),O.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),O.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),O.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var A=new Uint8Array([105,115,111,109]),l=new Uint8Array([97,118,99,49]),i=new Uint8Array([0,0,0,1]);O.FTYP=O.box(O.types.ftyp,A,i,A,l),O.DINF=O.box(O.types.dinf,O.box(O.types.dref,a))},O.box=function(T){for(var n=8,p=arguments.length,a=new Array(p>1?p-1:0),t=1;t<p;t++)a[t-1]=arguments[t];for(var A=a.length,l=A;A--;)n+=a[A].byteLength;var i=new Uint8Array(n);for(i[0]=n>>24&255,i[1]=n>>16&255,i[2]=n>>8&255,i[3]=n&255,i.set(T,4),A=0,n=8;A<l;A++)i.set(a[A],n),n+=a[A].byteLength;return i},O.hdlr=function(T){return O.box(O.types.hdlr,O.HDLR_TYPES[T])},O.mdat=function(T){return O.box(O.types.mdat,T)},O.mdhd=function(T,n){n*=T;var p=Math.floor(n/(k+1)),a=Math.floor(n%(k+1));return O.box(O.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,T>>24&255,T>>16&255,T>>8&255,T&255,p>>24,p>>16&255,p>>8&255,p&255,a>>24,a>>16&255,a>>8&255,a&255,85,196,0,0]))},O.mdia=function(T){return O.box(O.types.mdia,O.mdhd(T.timescale,T.duration),O.hdlr(T.type),O.minf(T))},O.mfhd=function(T){return O.box(O.types.mfhd,new Uint8Array([0,0,0,0,T>>24,T>>16&255,T>>8&255,T&255]))},O.minf=function(T){return T.type==="audio"?O.box(O.types.minf,O.box(O.types.smhd,O.SMHD),O.DINF,O.stbl(T)):O.box(O.types.minf,O.box(O.types.vmhd,O.VMHD),O.DINF,O.stbl(T))},O.moof=function(T,n,p){return O.box(O.types.moof,O.mfhd(T),O.traf(p,n))},O.moov=function(T){for(var n=T.length,p=[];n--;)p[n]=O.trak(T[n]);return O.box.apply(null,[O.types.moov,O.mvhd(T[0].timescale,T[0].duration)].concat(p).concat(O.mvex(T)))},O.mvex=function(T){for(var n=T.length,p=[];n--;)p[n]=O.trex(T[n]);return O.box.apply(null,[O.types.mvex].concat(p))},O.mvhd=function(T,n){n*=T;var p=Math.floor(n/(k+1)),a=Math.floor(n%(k+1)),t=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,T>>24&255,T>>16&255,T>>8&255,T&255,p>>24,p>>16&255,p>>8&255,p&255,a>>24,a>>16&255,a>>8&255,a&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return O.box(O.types.mvhd,t)},O.sdtp=function(T){var n=T.samples||[],p=new Uint8Array(4+n.length),a,t;for(a=0;a<n.length;a++)t=n[a].flags,p[a+4]=t.dependsOn<<4|t.isDependedOn<<2|t.hasRedundancy;return O.box(O.types.sdtp,p)},O.stbl=function(T){return O.box(O.types.stbl,O.stsd(T),O.box(O.types.stts,O.STTS),O.box(O.types.stsc,O.STSC),O.box(O.types.stsz,O.STSZ),O.box(O.types.stco,O.STCO))},O.avc1=function(T){var n=[],p=[],a,t,A;for(a=0;a<T.sps.length;a++)t=T.sps[a],A=t.byteLength,n.push(A>>>8&255),n.push(A&255),n=n.concat(Array.prototype.slice.call(t));for(a=0;a<T.pps.length;a++)t=T.pps[a],A=t.byteLength,p.push(A>>>8&255),p.push(A&255),p=p.concat(Array.prototype.slice.call(t));var l=O.box(O.types.avcC,new Uint8Array([1,n[3],n[4],n[5],252|3,224|T.sps.length].concat(n).concat([T.pps.length]).concat(p))),i=T.width,c=T.height,d=T.pixelRatio[0],f=T.pixelRatio[1];return O.box(O.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,i>>8&255,i&255,c>>8&255,c&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),l,O.box(O.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),O.box(O.types.pasp,new Uint8Array([d>>24,d>>16&255,d>>8&255,d&255,f>>24,f>>16&255,f>>8&255,f&255])))},O.esds=function(T){var n=T.config.length;return new Uint8Array([0,0,0,0,3,23+n,0,1,0,4,15+n,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([n]).concat(T.config).concat([6,1,2]))},O.mp4a=function(T){var n=T.samplerate;return O.box(O.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,T.channelCount,0,16,0,0,0,0,n>>8&255,n&255,0,0]),O.box(O.types.esds,O.esds(T)))},O.mp3=function(T){var n=T.samplerate;return O.box(O.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,T.channelCount,0,16,0,0,0,0,n>>8&255,n&255,0,0]))},O.stsd=function(T){return T.type==="audio"?!T.isAAC&&T.codec==="mp3"?O.box(O.types.stsd,O.STSD,O.mp3(T)):O.box(O.types.stsd,O.STSD,O.mp4a(T)):O.box(O.types.stsd,O.STSD,O.avc1(T))},O.tkhd=function(T){var n=T.id,p=T.duration*T.timescale,a=T.width,t=T.height,A=Math.floor(p/(k+1)),l=Math.floor(p%(k+1));return O.box(O.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,n>>24&255,n>>16&255,n>>8&255,n&255,0,0,0,0,A>>24,A>>16&255,A>>8&255,A&255,l>>24,l>>16&255,l>>8&255,l&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,a>>8&255,a&255,0,0,t>>8&255,t&255,0,0]))},O.traf=function(T,n){var p=O.sdtp(T),a=T.id,t=Math.floor(n/(k+1)),A=Math.floor(n%(k+1));return O.box(O.types.traf,O.box(O.types.tfhd,new Uint8Array([0,0,0,0,a>>24,a>>16&255,a>>8&255,a&255])),O.box(O.types.tfdt,new Uint8Array([1,0,0,0,t>>24,t>>16&255,t>>8&255,t&255,A>>24,A>>16&255,A>>8&255,A&255])),O.trun(T,p.length+16+20+8+16+8+8),p)},O.trak=function(T){return T.duration=T.duration||4294967295,O.box(O.types.trak,O.tkhd(T),O.mdia(T))},O.trex=function(T){var n=T.id;return O.box(O.types.trex,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},O.trun=function(T,n){var p=T.samples||[],a=p.length,t=12+16*a,A=new Uint8Array(t),l,i,c,d,f,o;for(n+=8+t,A.set([0,0,15,1,a>>>24&255,a>>>16&255,a>>>8&255,a&255,n>>>24&255,n>>>16&255,n>>>8&255,n&255],0),l=0;l<a;l++)i=p[l],c=i.duration,d=i.size,f=i.flags,o=i.cts,A.set([c>>>24&255,c>>>16&255,c>>>8&255,c&255,d>>>24&255,d>>>16&255,d>>>8&255,d&255,f.isLeading<<2|f.dependsOn,f.isDependedOn<<6|f.hasRedundancy<<4|f.paddingValue<<1|f.isNonSync,f.degradPrio&240<<8,f.degradPrio&15,o>>>24&255,o>>>16&255,o>>>8&255,o&255],12+16*l);return O.box(O.types.trun,A)},O.initSegment=function(T){O.types||O.init();var n=O.moov(T),p=new Uint8Array(O.FTYP.byteLength+n.byteLength);return p.set(O.FTYP),p.set(n,O.FTYP.byteLength),p},O}();_.types=void 0,_.HDLR_TYPES=void 0,_.STTS=void 0,_.STSC=void 0,_.STCO=void 0,_.STSZ=void 0,_.VMHD=void 0,_.SMHD=void 0,_.STSD=void 0,_.FTYP=void 0,_.DINF=void 0,Q.default=_},"./src/remux/mp4-remuxer.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return o}),I.d(Q,"normalizePts",function(){return u});var k=I("./src/polyfills/number.ts"),_=I("./src/remux/aac-helper.ts"),O=I("./src/remux/mp4-generator.ts"),M=I("./src/events.ts"),T=I("./src/errors.ts"),n=I("./src/utils/logger.ts"),p=I("./src/types/loader.ts"),a=I("./src/utils/timescale-conversion.ts");function t(){return t=Object.assign||function(P){for(var C=1;C<arguments.length;C++){var b=arguments[C];for(var s in b)Object.prototype.hasOwnProperty.call(b,s)&&(P[s]=b[s])}return P},t.apply(this,arguments)}var A=10*1e3,l=1024,i=1152,c=null,d=null,f=!1,o=function(){function P(b,s,h,m){if(m===void 0&&(m=""),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=b,this.config=s,this.typeSupported=h,this.ISGenerated=!1,c===null){var x=navigator.userAgent||"",g=x.match(/Chrome\/(\d+)/i);c=g?parseInt(g[1]):0}if(d===null){var y=navigator.userAgent.match(/Safari\/(\d+)/i);d=y?parseInt(y[1]):0}f=!!c&&c<75||!!d&&d<600}var C=P.prototype;return C.destroy=function(){},C.resetTimeStamp=function(s){n.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=s},C.resetNextTimestamp=function(){n.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},C.resetInitSegment=function(){n.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},C.getVideoStartPts=function(s){var h=!1,m=s.reduce(function(x,g){var y=g.pts-x;return y<-4294967296?(h=!0,u(x,g.pts)):y>0?x:g.pts},s[0].pts);return h&&n.logger.debug("PTS rollover detected"),m},C.remux=function(s,h,m,x,g,y,U,N){var S,H,F,B,z,K,$=g,te=g,fe=s.pid>-1,Ae=h.pid>-1,ce=h.samples.length,ie=s.samples.length>0,ye=ce>1,le=(!fe||ie)&&(!Ae||ye)||this.ISGenerated||U;if(le){this.ISGenerated||(F=this.generateIS(s,h,g));var me=this.isVideoContiguous,se=-1;if(ye&&(se=E(h.samples),!me&&this.config.forceKeyFrameOnDiscontinuity))if(K=!0,se>0){n.logger.warn("[mp4-remuxer]: Dropped "+se+" out of "+ce+" video samples due to a missing keyframe");var ge=this.getVideoStartPts(h.samples);h.samples=h.samples.slice(se),h.dropped+=se,te+=(h.samples[0].pts-ge)/(h.timescale||9e4)}else se===-1&&(n.logger.warn("[mp4-remuxer]: No keyframe found out of "+ce+" video samples"),K=!1);if(this.ISGenerated){if(ie&&ye){var ae=this.getVideoStartPts(h.samples),pe=u(s.samples[0].pts,ae)-ae,Me=pe/h.inputTimeScale;$+=Math.max(0,Me),te+=Math.max(0,-Me)}if(ie){if(s.samplerate||(n.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),F=this.generateIS(s,h,g)),H=this.remuxAudio(s,$,this.isAudioContiguous,y,Ae||ye||N===p.PlaylistLevelType.AUDIO?te:void 0),ye){var xe=H?H.endPTS-H.startPTS:0;h.inputTimeScale||(n.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),F=this.generateIS(s,h,g)),S=this.remuxVideo(h,te,me,xe)}}else ye&&(S=this.remuxVideo(h,te,me,0));S&&(S.firstKeyFrame=se,S.independent=se!==-1)}}return this.ISGenerated&&(m.samples.length&&(z=this.remuxID3(m,g)),x.samples.length&&(B=this.remuxText(x,g))),{audio:H,video:S,initSegment:F,independent:K,text:B,id3:z}},C.generateIS=function(s,h,m){var x=s.samples,g=h.samples,y=this.typeSupported,U={},N=!Object(k.isFiniteNumber)(this._initPTS),S="audio/mp4",H,F,B;if(N&&(H=F=Infinity),s.config&&x.length&&(s.timescale=s.samplerate,s.isAAC||(y.mpeg?(S="audio/mpeg",s.codec=""):y.mp3&&(s.codec="mp3")),U.audio={id:"audio",container:S,codec:s.codec,initSegment:!s.isAAC&&y.mpeg?new Uint8Array(0):O.default.initSegment([s]),metadata:{channelCount:s.channelCount}},N&&(B=s.inputTimeScale,H=F=x[0].pts-Math.round(B*m))),h.sps&&h.pps&&g.length&&(h.timescale=h.inputTimeScale,U.video={id:"main",container:"video/mp4",codec:h.codec,initSegment:O.default.initSegment([h]),metadata:{width:h.width,height:h.height}},N)){B=h.inputTimeScale;var z=this.getVideoStartPts(g),K=Math.round(B*m);F=Math.min(F,u(g[0].dts,z)-K),H=Math.min(H,z-K)}if(Object.keys(U).length)return this.ISGenerated=!0,N&&(this._initPTS=H,this._initDTS=F),{tracks:U,initPTS:H,timescale:B}},C.remuxVideo=function(s,h,m,x){var g=s.inputTimeScale,y=s.samples,U=[],N=y.length,S=this._initPTS,H=this.nextAvcDts,F=8,B,z,K,$=Number.POSITIVE_INFINITY,te=Number.NEGATIVE_INFINITY,fe=0,Ae=!1;if(!m||H===null){var ce=h*g,ie=y[0].pts-u(y[0].dts,y[0].pts);H=ce-ie}for(var ye=0;ye<N;ye++){var le=y[ye];if(le.pts=u(le.pts-S,H),le.dts=u(le.dts-S,H),le.dts>le.pts){var me=9e4*.2;fe=Math.max(Math.min(fe,le.pts-le.dts),-1*me)}le.dts<y[ye>0?ye-1:ye].dts&&(Ae=!0)}Ae&&y.sort(function(Ct,mt){var Je=Ct.dts-mt.dts,Qe=Ct.pts-mt.pts;return Je||Qe}),z=y[0].dts,K=y[y.length-1].dts;var se=Math.round((K-z)/(N-1));if(fe<0){if(fe<se*-2){n.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(a.toMsFromMpegTsClock)(-se,!0)+" ms");for(var ge=fe,ae=0;ae<N;ae++)y[ae].dts=ge=Math.max(ge,y[ae].pts-se),y[ae].pts=Math.max(ge,y[ae].pts)}else{n.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+Object(a.toMsFromMpegTsClock)(fe,!0)+" ms to overcome this issue");for(var pe=0;pe<N;pe++)y[pe].dts=y[pe].dts+fe}z=y[0].dts}if(m){var Me=z-H,xe=Me>se,Ke=Me<-1;if(xe||Ke){xe?n.logger.warn("AVC: "+Object(a.toMsFromMpegTsClock)(Me,!0)+" ms ("+Me+"dts) hole between fragments detected, filling it"):n.logger.warn("AVC: "+Object(a.toMsFromMpegTsClock)(-Me,!0)+" ms ("+Me+"dts) overlapping between fragments detected"),z=H;var et=y[0].pts-Me;y[0].dts=z,y[0].pts=et,n.logger.log("Video: First PTS/DTS adjusted: "+Object(a.toMsFromMpegTsClock)(et,!0)+"/"+Object(a.toMsFromMpegTsClock)(z,!0)+", delta: "+Object(a.toMsFromMpegTsClock)(Me,!0)+" ms")}}f&&(z=Math.max(0,z));for(var he=0,Se=0,Ue=0;Ue<N;Ue++){for(var Ne=y[Ue],ct=Ne.units,ft=ct.length,Ot=0,dt=0;dt<ft;dt++)Ot+=ct[dt].data.length;Se+=Ot,he+=ft,Ne.length=Ot,Ne.dts=Math.max(Ne.dts,z),Ne.pts=Math.max(Ne.pts,Ne.dts,0),$=Math.min(Ne.pts,$),te=Math.max(Ne.pts,te)}K=y[N-1].dts;var Ut=Se+4*he+8,jt;try{jt=new Uint8Array(Ut)}catch(Ct){this.observer.emit(M.Events.ERROR,M.Events.ERROR,{type:T.ErrorTypes.MUX_ERROR,details:T.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:Ut,reason:"fail allocating video mdat "+Ut});return}var ze=new DataView(jt.buffer);ze.setUint32(0,Ut),jt.set(O.default.types.mdat,4);for(var Ve=0;Ve<N;Ve++){for(var Et=y[Ve],Rt=Et.units,ut=0,vt=0,Ze=Rt.length;vt<Ze;vt++){var ke=Rt[vt],He=ke.data,we=ke.data.byteLength;ze.setUint32(F,we),F+=4,jt.set(He,F),F+=we,ut+=4+we}if(Ve<N-1)B=y[Ve+1].dts-Et.dts;else{var Le=this.config,Pe=Et.dts-y[Ve>0?Ve-1:Ve].dts;if(Le.stretchShortVideoTrack&&this.nextAudioPts!==null){var We=Math.floor(Le.maxBufferHole*g),Xe=(x?$+x*g:this.nextAudioPts)-Et.pts;Xe>We?(B=Xe-Pe,B<0&&(B=Pe),n.logger.log("[mp4-remuxer]: It is approximately "+Xe/90+" ms to the next segment; using duration "+B/90+" ms for the last video frame.")):B=Pe}else B=Pe}var gt=Math.round(Et.pts-Et.dts);U.push(new R(Et.key,B,ut,gt))}if(U.length&&c&&c<70){var Lt=U[0].flags;Lt.dependsOn=2,Lt.isNonSync=0}console.assert(B!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=H=K+B,this.isVideoContiguous=!0;var en=O.default.moof(s.sequenceNumber++,z,t({},s,{samples:U})),Zt="video",xt={data1:en,data2:jt,startPTS:$/g,endPTS:(te+B)/g,startDTS:z/g,endDTS:H/g,type:Zt,hasAudio:!1,hasVideo:!0,nb:U.length,dropped:s.dropped};return s.samples=[],s.dropped=0,console.assert(jt.length,"MDAT length must not be zero"),xt},C.remuxAudio=function(s,h,m,x,g){var y=s.inputTimeScale,U=s.samplerate?s.samplerate:y,N=y/U,S=s.isAAC?l:i,H=S*N,F=this._initPTS,B=!s.isAAC&&this.typeSupported.mpeg,z=[],K=s.samples,$=B?0:8,te=this.nextAudioPts||-1,fe=h*y;if(this.isAudioContiguous=m=m||K.length&&te>0&&(x&&Math.abs(fe-te)<9e3||Math.abs(u(K[0].pts-F,fe)-te)<20*H),K.forEach(function(He){He.pts=u(He.pts-F,fe)}),!m||te<0){if(K=K.filter(function(He){return He.pts>=0}),!K.length)return;g===0?te=0:x?te=Math.max(0,fe):te=K[0].pts}if(s.isAAC)for(var Ae=g!==void 0,ce=this.config.maxAudioFramesDrift,ie=0,ye=te;ie<K.length;ie++){var le=K[ie],me=le.pts,se=me-ye,ge=Math.abs(1e3*se/y);if(se<=-ce*H&&Ae)ie===0&&(n.logger.warn("Audio frame @ "+(me/y).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*se/y)+" ms."),this.nextAudioPts=te=ye=me);else if(se>=ce*H&&ge<A&&Ae){var ae=Math.round(se/H);ye=me-ae*H,ye<0&&(ae--,ye+=H),ie===0&&(this.nextAudioPts=te=ye),n.logger.warn("[mp4-remuxer]: Injecting "+ae+" audio frame @ "+(ye/y).toFixed(3)+"s due to "+Math.round(1e3*se/y)+" ms gap.");for(var pe=0;pe<ae;pe++){var Me=Math.max(ye,0),xe=_.default.getSilentFrame(s.manifestCodec||s.codec,s.channelCount);xe||(n.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),xe=le.unit.subarray()),K.splice(ie,0,{unit:xe,pts:Me}),ye+=H,ie++}}le.pts=ye,ye+=H}for(var Ke=null,et=null,he,Se=0,Ue=K.length;Ue--;)Se+=K[Ue].unit.byteLength;for(var Ne=0,ct=K.length;Ne<ct;Ne++){var ft=K[Ne],Ot=ft.unit,dt=ft.pts;if(et!==null){var Ut=z[Ne-1];Ut.duration=Math.round((dt-et)/N)}else if(m&&s.isAAC&&(dt=te),Ke=dt,Se>0){Se+=$;try{he=new Uint8Array(Se)}catch(He){this.observer.emit(M.Events.ERROR,M.Events.ERROR,{type:T.ErrorTypes.MUX_ERROR,details:T.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:Se,reason:"fail allocating audio mdat "+Se});return}if(!B){var jt=new DataView(he.buffer);jt.setUint32(0,Se),he.set(O.default.types.mdat,4)}}else return;he.set(Ot,$);var ze=Ot.byteLength;$+=ze,z.push(new R(!0,S,ze,0)),et=dt}var Ve=z.length;if(!Ve)return;var Et=z[z.length-1];this.nextAudioPts=te=et+N*Et.duration;var Rt=B?new Uint8Array(0):O.default.moof(s.sequenceNumber++,Ke/N,t({},s,{samples:z}));s.samples=[];var ut=Ke/y,vt=te/y,Ze="audio",ke={data1:Rt,data2:he,startPTS:ut,endPTS:vt,startDTS:ut,endDTS:vt,type:Ze,hasAudio:!0,hasVideo:!1,nb:Ve};return this.isAudioContiguous=!0,console.assert(he.length,"MDAT length must not be zero"),ke},C.remuxEmptyAudio=function(s,h,m,x){var g=s.inputTimeScale,y=s.samplerate?s.samplerate:g,U=g/y,N=this.nextAudioPts,S=(N!==null?N:x.startDTS*g)+this._initDTS,H=x.endDTS*g+this._initDTS,F=U*l,B=Math.ceil((H-S)/F),z=_.default.getSilentFrame(s.manifestCodec||s.codec,s.channelCount);if(n.logger.warn("[mp4-remuxer]: remux empty Audio"),!z){n.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var K=[],$=0;$<B;$++){var te=S+$*F;K.push({unit:z,pts:te,dts:te})}return s.samples=K,this.remuxAudio(s,h,m,!1)},C.remuxID3=function(s,h){var m=s.samples.length;if(!m)return;for(var x=s.inputTimeScale,g=this._initPTS,y=this._initDTS,U=0;U<m;U++){var N=s.samples[U];N.pts=u(N.pts-g,h*x)/x,N.dts=u(N.dts-y,h*x)/x}var S=s.samples;return s.samples=[],{samples:S}},C.remuxText=function(s,h){var m=s.samples.length;if(!m)return;for(var x=s.inputTimeScale,g=this._initPTS,y=0;y<m;y++){var U=s.samples[y];U.pts=u(U.pts-g,h*x)/x}s.samples.sort(function(S,H){return S.pts-H.pts});var N=s.samples;return s.samples=[],{samples:N}},P}();function u(P,C){var b;if(C===null)return P;for(C<P?b=-8589934592:b=8589934592;Math.abs(P-C)>4294967296;)P+=b;return P}function E(P){for(var C=0;C<P.length;C++)if(P[C].key)return C;return-1}var R=function(C,b,s,h){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=b,this.size=s,this.cts=h,this.flags=new w(C)},w=function(C){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=C?2:1,this.isNonSync=C?0:1}},"./src/remux/passthrough-remuxer.ts":function(Z,Q,I){"use strict";I.r(Q);var k=I("./src/polyfills/number.ts"),_=I("./src/utils/mp4-tools.ts"),O=I("./src/loader/fragment.ts"),M=I("./src/utils/logger.ts"),T=function(){function a(){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 t=a.prototype;return t.destroy=function(){},t.resetTimeStamp=function(l){this.initPTS=l,this.lastEndDTS=null},t.resetNextTimestamp=function(){this.lastEndDTS=null},t.resetInitSegment=function(l,i,c){this.audioCodec=i,this.videoCodec=c,this.generateInitSegment(l),this.emitInitSegment=!0},t.generateInitSegment=function(l){var i=this.audioCodec,c=this.videoCodec;if(!l||!l.byteLength){this.initTracks=void 0,this.initData=void 0;return}var d=this.initData=Object(_.parseInitSegment)(l);i||(i=p(d.audio,O.ElementaryStreamTypes.AUDIO)),c||(c=p(d.video,O.ElementaryStreamTypes.VIDEO));var f={};d.audio&&d.video?f.audiovideo={container:"video/mp4",codec:i+","+c,initSegment:l,id:"main"}:d.audio?f.audio={container:"audio/mp4",codec:i,initSegment:l,id:"audio"}:d.video?f.video={container:"video/mp4",codec:c,initSegment:l,id:"main"}:M.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=f},t.remux=function(l,i,c,d,f){var o=this.initPTS,u=this.lastEndDTS,E={audio:void 0,video:void 0,text:d,id3:c,initSegment:void 0};Object(k.isFiniteNumber)(u)||(u=this.lastEndDTS=f||0);var R=i.samples;if(!R||!R.length)return E;var w={initPTS:void 0,timescale:1},P=this.initData;if((!P||!P.length)&&(this.generateInitSegment(R),P=this.initData),!P||!P.length)return M.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),E;this.emitInitSegment&&(w.tracks=this.initTracks,this.emitInitSegment=!1),Object(k.isFiniteNumber)(o)||(this.initPTS=w.initPTS=o=n(P,R,u));var C=Object(_.getDuration)(R,P),b=u,s=C+b;Object(_.offsetStartDTS)(P,R,o),C>0?this.lastEndDTS=s:(M.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var h=!!P.audio,m=!!P.video,x="";h&&(x+="audio"),m&&(x+="video");var g={data1:R,startPTS:b,startDTS:b,endPTS:s,endDTS:s,type:x,hasAudio:h,hasVideo:m,nb:1,dropped:0};return E.audio=g.type==="audio"?g:void 0,E.video=g.type!=="audio"?g:void 0,E.text=d,E.id3=c,E.initSegment=w,E},a}(),n=function(t,A,l){return Object(_.getStartDTS)(t,A)-l};function p(a,t){var A=a==null?void 0:a.codec;return A&&A.length>4?A:A==="hvc1"?"hvc1.1.c.L120.90":A==="av01"?"av01.0.04M.08":A==="avc1"||t===O.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}Q.default=T},"./src/task-loop.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return k});var k=function(){function _(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var O=_.prototype;return O.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},O.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},O.onHandlerDestroyed=function(){},O.hasInterval=function(){return!!this._tickInterval},O.hasNextTick=function(){return!!this._tickTimer},O.setInterval=function(T){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,T),!0)},O.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},O.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},O.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},O.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},O.doTick=function(){},_}()},"./src/types/cmcd.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"CMCDVersion",function(){return k}),I.d(Q,"CMCDObjectType",function(){return _}),I.d(Q,"CMCDStreamingFormat",function(){return O}),I.d(Q,"CMCDStreamType",function(){return M});var k=1,_;(function(T){T.MANIFEST="m",T.AUDIO="a",T.VIDEO="v",T.MUXED="av",T.INIT="i",T.CAPTION="c",T.TIMED_TEXT="tt",T.KEY="k",T.OTHER="o"})(_||(_={}));var O;(function(T){T.DASH="d",T.HLS="h",T.SMOOTH="s",T.OTHER="o"})(O||(O={}));var M;(function(T){T.VOD="v",T.LIVE="l"})(M||(M={}))},"./src/types/level.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"HlsSkip",function(){return O}),I.d(Q,"getSkipValue",function(){return M}),I.d(Q,"HlsUrlParameters",function(){return T}),I.d(Q,"Level",function(){return n});function k(p,a){for(var t=0;t<a.length;t++){var A=a[t];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(p,A.key,A)}}function _(p,a,t){return a&&k(p.prototype,a),t&&k(p,t),p}var O;(function(p){p.No="",p.Yes="YES",p.v2="v2"})(O||(O={}));function M(p,a){var t=p.canSkipUntil,A=p.canSkipDateRanges,l=p.endSN,i=a!==void 0?a-l:0;return t&&i<t?A?O.v2:O.Yes:O.No}var T=function(){function p(t,A,l){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=t,this.part=A,this.skip=l}var a=p.prototype;return a.addDirectives=function(A){var l=new self.URL(A);return this.msn!==void 0&&l.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&l.searchParams.set("_HLS_part",this.part.toString()),this.skip&&l.searchParams.set("_HLS_skip",this.skip),l.toString()},p}(),n=function(){function p(a){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=[a.url],this.attrs=a.attrs,this.bitrate=a.bitrate,a.details&&(this.details=a.details),this.id=a.id||0,this.name=a.name,this.width=a.width||0,this.height=a.height||0,this.audioCodec=a.audioCodec,this.videoCodec=a.videoCodec,this.unknownCodecs=a.unknownCodecs,this.codecSet=[a.videoCodec,a.audioCodec].filter(function(t){return t}).join(",").replace(/\.[^.,]+/g,"")}return _(p,[{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(t){var A=t%this.url.length;this._urlId!==A&&(this.details=void 0,this._urlId=A)}}]),p}()},"./src/types/loader.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"PlaylistContextType",function(){return k}),I.d(Q,"PlaylistLevelType",function(){return _});var k;(function(O){O.MANIFEST="manifest",O.LEVEL="level",O.AUDIO_TRACK="audioTrack",O.SUBTITLE_TRACK="subtitleTrack"})(k||(k={}));var _;(function(O){O.MAIN="main",O.AUDIO="audio",O.SUBTITLE="subtitle"})(_||(_={}))},"./src/types/transmuxer.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"ChunkMetadata",function(){return k});var k=function(M,T,n,p,a,t){p===void 0&&(p=0),a===void 0&&(a=-1),t===void 0&&(t=!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=_(),this.buffering={audio:_(),video:_(),audiovideo:_()},this.level=M,this.sn=T,this.id=n,this.size=p,this.part=a,this.partial=t};function _(){return{start:0,executeStart:0,executeEnd:0,end:0}}},"./src/utils/attr-list.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"AttrList",function(){return O});var k=/^(\d+)x(\d+)$/,_=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,O=function(){function M(n){typeof n=="string"&&(n=M.parseAttrList(n));for(var p in n)n.hasOwnProperty(p)&&(this[p]=n[p])}var T=M.prototype;return T.decimalInteger=function(p){var a=parseInt(this[p],10);return a>Number.MAX_SAFE_INTEGER?Infinity:a},T.hexadecimalInteger=function(p){if(this[p]){var a=(this[p]||"0x").slice(2);a=(a.length&1?"0":"")+a;for(var t=new Uint8Array(a.length/2),A=0;A<a.length/2;A++)t[A]=parseInt(a.slice(A*2,A*2+2),16);return t}else return null},T.hexadecimalIntegerAsNumber=function(p){var a=parseInt(this[p],16);return a>Number.MAX_SAFE_INTEGER?Infinity:a},T.decimalFloatingPoint=function(p){return parseFloat(this[p])},T.optionalFloat=function(p,a){var t=this[p];return t?parseFloat(t):a},T.enumeratedString=function(p){return this[p]},T.bool=function(p){return this[p]==="YES"},T.decimalResolution=function(p){var a=k.exec(this[p]);return a===null?void 0:{width:parseInt(a[1],10),height:parseInt(a[2],10)}},M.parseAttrList=function(p){var a,t={},A='"';for(_.lastIndex=0;(a=_.exec(p))!==null;){var l=a[2];l.indexOf(A)===0&&l.lastIndexOf(A)===l.length-1&&(l=l.slice(1,-1)),t[a[1]]=l}return t},M}()},"./src/utils/binary-search.ts":function(Z,Q,I){"use strict";I.r(Q);var k={search:function(O,M){for(var T=0,n=O.length-1,p=null,a=null;T<=n;){p=(T+n)/2|0,a=O[p];var t=M(a);if(t>0)T=p+1;else if(t<0)n=p-1;else return a}return null}};Q.default=k},"./src/utils/buffer-helper.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"BufferHelper",function(){return O});var k=I("./src/utils/logger.ts"),_={length:0,start:function(){return 0},end:function(){return 0}},O=function(){function M(){}return M.isBuffered=function(n,p){try{if(n){for(var a=M.getBuffered(n),t=0;t<a.length;t++)if(p>=a.start(t)&&p<=a.end(t))return!0}}catch(A){}return!1},M.bufferInfo=function(n,p,a){try{if(n){var t=M.getBuffered(n),A=[],l;for(l=0;l<t.length;l++)A.push({start:t.start(l),end:t.end(l)});return this.bufferedInfo(A,p,a)}}catch(i){}return{len:0,start:p,end:p,nextStart:void 0}},M.bufferedInfo=function(n,p,a){p=Math.max(0,p),n.sort(function(w,P){var C=w.start-P.start;return C||P.end-w.end});var t=[];if(a)for(var A=0;A<n.length;A++){var l=t.length;if(l){var i=t[l-1].end;n[A].start-i<a?n[A].end>i&&(t[l-1].end=n[A].end):t.push(n[A])}else t.push(n[A])}else t=n;for(var c=0,d,f=p,o=p,u=0;u<t.length;u++){var E=t[u].start,R=t[u].end;if(p+a>=E&&p<R)f=E,o=R,c=o-p;else if(p+a<E){d=E;break}}return{len:c,start:f||0,end:o||0,nextStart:d}},M.getBuffered=function(n){try{return n.buffered}catch(p){return k.logger.log("failed to get media.buffered",p),_}},M}()},"./src/utils/cea-608-parser.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"Row",function(){return o}),I.d(Q,"CaptionScreen",function(){return u});var k=I("./src/utils/logger.ts"),_={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},O=function(s){var h=s;return _.hasOwnProperty(s)&&(h=_[s]),String.fromCharCode(h)},M=15,T=100,n={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},p={17:2,18:4,21:6,22:8,23:10,19:13,20:15},a={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},t={25:2,26:4,29:6,30:8,31:10,27:13,28:15},A=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],l;(function(b){b[b.ERROR=0]="ERROR",b[b.TEXT=1]="TEXT",b[b.WARNING=2]="WARNING",b[b.INFO=2]="INFO",b[b.DEBUG=3]="DEBUG",b[b.DATA=3]="DATA"})(l||(l={}));var i=function(){function b(){this.time=null,this.verboseLevel=l.ERROR}var s=b.prototype;return s.log=function(m,x){this.verboseLevel>=m&&k.logger.log(this.time+" ["+m+"] "+x)},b}(),c=function(s){for(var h=[],m=0;m<s.length;m++)h.push(s[m].toString(16));return h},d=function(){function b(h,m,x,g,y){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=h||"white",this.underline=m||!1,this.italics=x||!1,this.background=g||"black",this.flash=y||!1}var s=b.prototype;return s.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},s.setStyles=function(m){for(var x=["foreground","underline","italics","background","flash"],g=0;g<x.length;g++){var y=x[g];m.hasOwnProperty(y)&&(this[y]=m[y])}},s.isDefault=function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash},s.equals=function(m){return this.foreground===m.foreground&&this.underline===m.underline&&this.italics===m.italics&&this.background===m.background&&this.flash===m.flash},s.copy=function(m){this.foreground=m.foreground,this.underline=m.underline,this.italics=m.italics,this.background=m.background,this.flash=m.flash},s.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},b}(),f=function(){function b(h,m,x,g,y,U){this.uchar=void 0,this.penState=void 0,this.uchar=h||" ",this.penState=new d(m,x,g,y,U)}var s=b.prototype;return s.reset=function(){this.uchar=" ",this.penState.reset()},s.setChar=function(m,x){this.uchar=m,this.penState.copy(x)},s.setPenState=function(m){this.penState.copy(m)},s.equals=function(m){return this.uchar===m.uchar&&this.penState.equals(m.penState)},s.copy=function(m){this.uchar=m.uchar,this.penState.copy(m.penState)},s.isEmpty=function(){return this.uchar===" "&&this.penState.isDefault()},b}(),o=function(){function b(h){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var m=0;m<T;m++)this.chars.push(new f);this.logger=h,this.pos=0,this.currPenState=new d}var s=b.prototype;return s.equals=function(m){for(var x=!0,g=0;g<T;g++)if(!this.chars[g].equals(m.chars[g])){x=!1;break}return x},s.copy=function(m){for(var x=0;x<T;x++)this.chars[x].copy(m.chars[x])},s.isEmpty=function(){for(var m=!0,x=0;x<T;x++)if(!this.chars[x].isEmpty()){m=!1;break}return m},s.setCursor=function(m){this.pos!==m&&(this.pos=m),this.pos<0?(this.logger.log(l.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>T&&(this.logger.log(l.DEBUG,"Too large cursor position "+this.pos),this.pos=T)},s.moveCursor=function(m){var x=this.pos+m;if(m>1)for(var g=this.pos+1;g<x+1;g++)this.chars[g].setPenState(this.currPenState);this.setCursor(x)},s.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},s.insertChar=function(m){m>=144&&this.backSpace();var x=O(m);if(this.pos>=T){this.logger.log(l.ERROR,"Cannot insert "+m.toString(16)+" ("+x+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(x,this.currPenState),this.moveCursor(1)},s.clearFromPos=function(m){var x;for(x=m;x<T;x++)this.chars[x].reset()},s.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},s.clearToEndOfRow=function(){this.clearFromPos(this.pos)},s.getTextString=function(){for(var m=[],x=!0,g=0;g<T;g++){var y=this.chars[g].uchar;y!==" "&&(x=!1),m.push(y)}return x?"":m.join("")},s.setPenStyles=function(m){this.currPenState.setStyles(m);var x=this.chars[this.pos];x.setPenState(this.currPenState)},b}(),u=function(){function b(h){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var m=0;m<M;m++)this.rows.push(new o(h));this.logger=h,this.currRow=M-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var s=b.prototype;return s.reset=function(){for(var m=0;m<M;m++)this.rows[m].clear();this.currRow=M-1},s.equals=function(m){for(var x=!0,g=0;g<M;g++)if(!this.rows[g].equals(m.rows[g])){x=!1;break}return x},s.copy=function(m){for(var x=0;x<M;x++)this.rows[x].copy(m.rows[x])},s.isEmpty=function(){for(var m=!0,x=0;x<M;x++)if(!this.rows[x].isEmpty()){m=!1;break}return m},s.backSpace=function(){var m=this.rows[this.currRow];m.backSpace()},s.clearToEndOfRow=function(){var m=this.rows[this.currRow];m.clearToEndOfRow()},s.insertChar=function(m){var x=this.rows[this.currRow];x.insertChar(m)},s.setPen=function(m){var x=this.rows[this.currRow];x.setPenStyles(m)},s.moveCursor=function(m){var x=this.rows[this.currRow];x.moveCursor(m)},s.setCursor=function(m){this.logger.log(l.INFO,"setCursor: "+m);var x=this.rows[this.currRow];x.setCursor(m)},s.setPAC=function(m){this.logger.log(l.INFO,"pacData = "+JSON.stringify(m));var x=m.row-1;if(this.nrRollUpRows&&x<this.nrRollUpRows-1&&(x=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==x){for(var g=0;g<M;g++)this.rows[g].clear();var y=this.currRow+1-this.nrRollUpRows,U=this.lastOutputScreen;if(U){var N=U.rows[y].cueStartTime,S=this.logger.time;if(N&&S!==null&&N<S)for(var H=0;H<this.nrRollUpRows;H++)this.rows[x-this.nrRollUpRows+H+1].copy(U.rows[y+H])}}this.currRow=x;var F=this.rows[this.currRow];if(m.indent!==null){var B=m.indent,z=Math.max(B-1,0);F.setCursor(m.indent),m.color=F.chars[z].penState.foreground}var K={foreground:m.color,underline:m.underline,italics:m.italics,background:"black",flash:!1};this.setPen(K)},s.setBkgData=function(m){this.logger.log(l.INFO,"bkgData = "+JSON.stringify(m)),this.backSpace(),this.setPen(m),this.insertChar(32)},s.setRollUpRows=function(m){this.nrRollUpRows=m},s.rollUp=function(){if(this.nrRollUpRows===null){this.logger.log(l.DEBUG,"roll_up but nrRollUpRows not set yet");return}this.logger.log(l.TEXT,this.getDisplayText());var m=this.currRow+1-this.nrRollUpRows,x=this.rows.splice(m,1)[0];x.clear(),this.rows.splice(this.currRow,0,x),this.logger.log(l.INFO,"Rolling up")},s.getDisplayText=function(m){m=m||!1;for(var x=[],g="",y=-1,U=0;U<M;U++){var N=this.rows[U].getTextString();N&&(y=U+1,m?x.push("Row "+y+": '"+N+"'"):x.push(N.trim()))}return x.length>0&&(m?g="["+x.join(" | ")+"]":g=x.join(`
`)),g},s.getTextAndFormat=function(){return this.rows},b}(),E=function(){function b(h,m,x){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=h,this.outputFilter=m,this.mode=null,this.verbose=0,this.displayedMemory=new u(x),this.nonDisplayedMemory=new u(x),this.lastOutputScreen=new u(x),this.currRollUpRow=this.displayedMemory.rows[M-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=x}var s=b.prototype;return s.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[M-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},s.getHandler=function(){return this.outputFilter},s.setHandler=function(m){this.outputFilter=m},s.setPAC=function(m){this.writeScreen.setPAC(m)},s.setBkgData=function(m){this.writeScreen.setBkgData(m)},s.setMode=function(m){if(m===this.mode)return;this.mode=m,this.logger.log(l.INFO,"MODE="+m),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=m},s.insertChars=function(m){for(var x=0;x<m.length;x++)this.writeScreen.insertChar(m[x]);var g=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(l.INFO,g+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(l.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},s.ccRCL=function(){this.logger.log(l.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},s.ccBS=function(){if(this.logger.log(l.INFO,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()},s.ccAOF=function(){},s.ccAON=function(){},s.ccDER=function(){this.logger.log(l.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},s.ccRU=function(m){this.logger.log(l.INFO,"RU("+m+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(m)},s.ccFON=function(){this.logger.log(l.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},s.ccRDC=function(){this.logger.log(l.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},s.ccTR=function(){this.logger.log(l.INFO,"TR"),this.setMode("MODE_TEXT")},s.ccRTD=function(){this.logger.log(l.INFO,"RTD"),this.setMode("MODE_TEXT")},s.ccEDM=function(){this.logger.log(l.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},s.ccCR=function(){this.logger.log(l.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},s.ccENM=function(){this.logger.log(l.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},s.ccEOC=function(){if(this.logger.log(l.INFO,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var m=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=m,this.writeScreen=this.nonDisplayedMemory,this.logger.log(l.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},s.ccTO=function(m){this.logger.log(l.INFO,"TO("+m+") - Tab Offset"),this.writeScreen.moveCursor(m)},s.ccMIDROW=function(m){var x={flash:!1};if(x.underline=m%2===1,x.italics=m>=46,x.italics)x.foreground="white";else{var g=Math.floor(m/2)-16,y=["white","green","blue","cyan","red","yellow","magenta"];x.foreground=y[g]}this.logger.log(l.INFO,"MIDROW: "+JSON.stringify(x)),this.writeScreen.setPen(x)},s.outputDataUpdate=function(m){m===void 0&&(m=!1);var x=this.logger.time;if(x===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=x:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,x,this.lastOutputScreen),m&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:x),this.lastOutputScreen.copy(this.displayedMemory))},s.cueSplitAtTime=function(m){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,m,this.displayedMemory),this.cueStartTime=m))},b}(),R=function(){function b(h,m,x){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var g=new i;this.channels=[null,new E(h,m,g),new E(h+1,x,g)],this.cmdHistory=C(),this.logger=g}var s=b.prototype;return s.getHandler=function(m){return this.channels[m].getHandler()},s.setHandler=function(m,x){this.channels[m].setHandler(x)},s.addData=function(m,x){var g,y,U,N=!1;this.logger.time=m;for(var S=0;S<x.length;S+=2){if(y=x[S]&127,U=x[S+1]&127,y===0&&U===0)continue;if(this.logger.log(l.DATA,"["+c([x[S],x[S+1]])+"] -> ("+c([y,U])+")"),g=this.parseCmd(y,U),g||(g=this.parseMidrow(y,U)),g||(g=this.parsePAC(y,U)),g||(g=this.parseBackgroundAttributes(y,U)),!g&&(N=this.parseChars(y,U),N)){var H=this.currentChannel;if(H&&H>0){var F=this.channels[H];F.insertChars(N)}else this.logger.log(l.WARNING,"No channel found yet. TEXT-MODE?")}!g&&!N&&this.logger.log(l.WARNING,"Couldn't parse cleaned data "+c([y,U])+" orig: "+c([x[S],x[S+1]]))}},s.parseCmd=function(m,x){var g=this.cmdHistory,y=(m===20||m===28||m===21||m===29)&&x>=32&&x<=47,U=(m===23||m===31)&&x>=33&&x<=35;if(!(y||U))return!1;if(P(m,x,g))return w(null,null,g),this.logger.log(l.DEBUG,"Repeated command ("+c([m,x])+") is dropped"),!0;var N=m===20||m===21||m===23?1:2,S=this.channels[N];return m===20||m===21||m===28||m===29?x===32?S.ccRCL():x===33?S.ccBS():x===34?S.ccAOF():x===35?S.ccAON():x===36?S.ccDER():x===37?S.ccRU(2):x===38?S.ccRU(3):x===39?S.ccRU(4):x===40?S.ccFON():x===41?S.ccRDC():x===42?S.ccTR():x===43?S.ccRTD():x===44?S.ccEDM():x===45?S.ccCR():x===46?S.ccENM():x===47&&S.ccEOC():S.ccTO(x-32),w(m,x,g),this.currentChannel=N,!0},s.parseMidrow=function(m,x){var g=0;if((m===17||m===25)&&x>=32&&x<=47){if(m===17?g=1:g=2,g!==this.currentChannel)return this.logger.log(l.ERROR,"Mismatch channel in midrow parsing"),!1;var y=this.channels[g];return y?(y.ccMIDROW(x),this.logger.log(l.DEBUG,"MIDROW ("+c([m,x])+")"),!0):!1}return!1},s.parsePAC=function(m,x){var g,y=this.cmdHistory,U=(m>=17&&m<=23||m>=25&&m<=31)&&x>=64&&x<=127,N=(m===16||m===24)&&x>=64&&x<=95;if(!(U||N))return!1;if(P(m,x,y))return w(null,null,y),!0;var S=m<=23?1:2;x>=64&&x<=95?g=S===1?n[m]:a[m]:g=S===1?p[m]:t[m];var H=this.channels[S];return H?(H.setPAC(this.interpretPAC(g,x)),w(m,x,y),this.currentChannel=S,!0):!1},s.interpretPAC=function(m,x){var g,y={color:null,italics:!1,indent:null,underline:!1,row:m};return x>95?g=x-96:g=x-64,y.underline=(g&1)===1,g<=13?y.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(g/2)]:g<=15?(y.italics=!0,y.color="white"):y.indent=Math.floor((g-16)/2)*4,y},s.parseChars=function(m,x){var g,y=null,U=null;if(m>=25?(g=2,U=m-8):(g=1,U=m),U>=17&&U<=19){var N;U===17?N=x+80:U===18?N=x+112:N=x+144,this.logger.log(l.INFO,"Special char '"+O(N)+"' in channel "+g),y=[N]}else m>=32&&m<=127&&(y=x===0?[m]:[m,x]);if(y){var S=c(y);this.logger.log(l.DEBUG,"Char codes = "+S.join(",")),w(m,x,this.cmdHistory)}return y},s.parseBackgroundAttributes=function(m,x){var g=(m===16||m===24)&&x>=32&&x<=47,y=(m===23||m===31)&&x>=45&&x<=47;if(!(g||y))return!1;var U,N={};m===16||m===24?(U=Math.floor((x-32)/2),N.background=A[U],x%2===1&&(N.background=N.background+"_semi")):x===45?N.background="transparent":(N.foreground="black",x===47&&(N.underline=!0));var S=m<=23?1:2,H=this.channels[S];return H.setBkgData(N),w(m,x,this.cmdHistory),!0},s.reset=function(){for(var m=0;m<Object.keys(this.channels).length;m++){var x=this.channels[m];x&&x.reset()}this.cmdHistory=C()},s.cueSplitAtTime=function(m){for(var x=0;x<this.channels.length;x++){var g=this.channels[x];g&&g.cueSplitAtTime(m)}},b}();function w(b,s,h){h.a=b,h.b=s}function P(b,s,h){return h.a===b&&h.b===s}function C(){return{a:null,b:null}}Q.default=R},"./src/utils/codecs.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"isCodecType",function(){return _}),I.d(Q,"isCodecSupportedInMp4",function(){return O});var k={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 _(M,T){var n=k[T];return!!n&&n[M.slice(0,4)]===!0}function O(M,T){return MediaSource.isTypeSupported((T||"video")+'/mp4;codecs="'+M+'"')}},"./src/utils/cues.ts":function(Z,Q,I){"use strict";I.r(Q);var k=I("./src/utils/vttparser.ts"),_=I("./src/utils/webvtt-parser.ts"),O=I("./src/utils/texttrack-utils.ts"),M=/\s/,T={newCue:function(p,a,t,A){for(var l=[],i,c,d,f,o,u=self.VTTCue||self.TextTrackCue,E=0;E<A.rows.length;E++)if(i=A.rows[E],d=!0,f=0,o="",!i.isEmpty()){for(var R=0;R<i.chars.length;R++)M.test(i.chars[R].uchar)&&d?f++:(o+=i.chars[R].uchar,d=!1);i.cueStartTime=a,a===t&&(t+=1e-4),f>=16?f--:f++;var w=Object(k.fixLineBreaks)(o.trim()),P=Object(_.generateCueId)(a,t,w);(!p||!p.cues||!p.cues.getCueById(P))&&(c=new u(a,t,w),c.id=P,c.line=E+1,c.align="left",c.position=10+Math.min(80,Math.floor(f*8/32)*10),l.push(c))}return p&&l.length&&(l.sort(function(C,b){return C.line==="auto"||b.line==="auto"?0:C.line>8&&b.line>8?b.line-C.line:C.line-b.line}),l.forEach(function(C){return Object(O.addCueToTrack)(p,C)})),l}};Q.default=T},"./src/utils/discontinuities.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"findFirstFragWithCC",function(){return M}),I.d(Q,"shouldAlignOnDiscontinuities",function(){return T}),I.d(Q,"findDiscontinuousReferenceFrag",function(){return n}),I.d(Q,"adjustSlidingStart",function(){return a}),I.d(Q,"alignStream",function(){return t}),I.d(Q,"alignPDT",function(){return l}),I.d(Q,"alignFragmentByPDTDelta",function(){return i}),I.d(Q,"alignMediaPlaylistByPDT",function(){return c});var k=I("./src/polyfills/number.ts"),_=I("./src/utils/logger.ts"),O=I("./src/controller/level-helper.ts");function M(d,f){for(var o=null,u=0,E=d.length;u<E;u++){var R=d[u];if(R&&R.cc===f){o=R;break}}return o}function T(d,f,o){return!!(f.details&&(o.endCC>o.startCC||d&&d.cc<o.startCC))}function n(d,f){var o=d.fragments,u=f.fragments;if(!u.length||!o.length){_.logger.log("No fragments to align");return}var E=M(o,u[0].cc);if(!E||E&&!E.startPTS){_.logger.log("No frag in previous level to align on");return}return E}function p(d,f){if(d){var o=d.start+f;d.start=d.startPTS=o,d.endPTS=o+d.duration}}function a(d,f){for(var o=f.fragments,u=0,E=o.length;u<E;u++)p(o[u],d);f.fragmentHint&&p(f.fragmentHint,d),f.alignedSliding=!0}function t(d,f,o){if(!f)return;A(d,o,f),!o.alignedSliding&&f.details&&l(o,f.details),!o.alignedSliding&&f.details&&!o.skippedSegments&&Object(O.adjustSliding)(f.details,o)}function A(d,f,o){if(T(d,o,f)){var u=n(o.details,f);u&&Object(k.isFiniteNumber)(u.start)&&(_.logger.log("Adjusting PTS using last level due to CC increase within current level "+f.url),a(u.start,f))}}function l(d,f){if(!f.fragments.length||!d.hasProgramDateTime||!f.hasProgramDateTime)return;var o=f.fragments[0].programDateTime,u=d.fragments[0].programDateTime,E=(u-o)/1e3+f.fragments[0].start;E&&Object(k.isFiniteNumber)(E)&&(_.logger.log("Adjusting PTS using programDateTime delta "+(u-o)+"ms, sliding:"+E.toFixed(3)+" "+d.url+" "),a(E,d))}function i(d,f){var o=d.programDateTime;if(!o)return;var u=(o-f)/1e3;d.start=d.startPTS=u,d.endPTS=u+d.duration}function c(d,f){if(!f.fragments.length||!d.hasProgramDateTime||!f.hasProgramDateTime)return;var o=f.fragments[0].programDateTime,u=f.fragments[0].start,E=o-u*1e3;d.fragments.forEach(function(R){i(R,E)}),d.fragmentHint&&i(d.fragmentHint,E),d.alignedSliding=!0}},"./src/utils/ewma-bandwidth-estimator.ts":function(Z,Q,I){"use strict";I.r(Q);var k=I("./src/utils/ewma.ts"),_=function(){function O(T,n,p){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultEstimate_=p,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new k.default(T),this.fast_=new k.default(n)}var M=O.prototype;return M.update=function(n,p){var a=this.slow_,t=this.fast_;this.slow_.halfLife!==n&&(this.slow_=new k.default(n,a.getEstimate(),a.getTotalWeight())),this.fast_.halfLife!==p&&(this.fast_=new k.default(p,t.getEstimate(),t.getTotalWeight()))},M.sample=function(n,p){n=Math.max(n,this.minDelayMs_);var a=8*p,t=n/1e3,A=a/t;this.fast_.sample(t,A),this.slow_.sample(t,A)},M.canEstimate=function(){var n=this.fast_;return n&&n.getTotalWeight()>=this.minWeight_},M.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},M.destroy=function(){},O}();Q.default=_},"./src/utils/ewma.ts":function(Z,Q,I){"use strict";I.r(Q);var k=function(){function _(M,T,n){T===void 0&&(T=0),n===void 0&&(n=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=M,this.alpha_=M?Math.exp(Math.log(.5)/M):0,this.estimate_=T,this.totalWeight_=n}var O=_.prototype;return O.sample=function(T,n){var p=Math.pow(this.alpha_,T);this.estimate_=n*(1-p)+p*this.estimate_,this.totalWeight_+=T},O.getTotalWeight=function(){return this.totalWeight_},O.getEstimate=function(){if(this.alpha_){var T=1-Math.pow(this.alpha_,this.totalWeight_);if(T)return this.estimate_/T}return this.estimate_},_}();Q.default=k},"./src/utils/fetch-loader.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"fetchSupported",function(){return i});var k=I("./src/polyfills/number.ts"),_=I("./src/loader/load-stats.ts"),O=I("./src/demux/chunk-cache.ts");function M(u,E){u.prototype=Object.create(E.prototype),u.prototype.constructor=u,t(u,E)}function T(u){var E=typeof Map=="function"?new Map:void 0;return T=function(w){if(w===null||!a(w))return w;if(typeof w!="function")throw new TypeError("Super expression must either be null or a function");if(typeof E!="undefined"){if(E.has(w))return E.get(w);E.set(w,P)}function P(){return n(w,arguments,A(this).constructor)}return P.prototype=Object.create(w.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),t(P,w)},T(u)}function n(u,E,R){return p()?n=Reflect.construct:n=function(P,C,b){var s=[null];s.push.apply(s,C);var h=Function.bind.apply(P,s),m=new h;return b&&t(m,b.prototype),m},n.apply(null,arguments)}function p(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(u){return!1}}function a(u){return Function.toString.call(u).indexOf("[native code]")!==-1}function t(u,E){return t=Object.setPrototypeOf||function(w,P){return w.__proto__=P,w},t(u,E)}function A(u){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},A(u)}function l(){return l=Object.assign||function(u){for(var E=1;E<arguments.length;E++){var R=arguments[E];for(var w in R)Object.prototype.hasOwnProperty.call(R,w)&&(u[w]=R[w])}return u},l.apply(this,arguments)}function i(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(u){}return!1}var c=function(){function u(R){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=R.fetchSetup||f,this.controller=new self.AbortController,this.stats=new _.LoadStats}var E=u.prototype;return E.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},E.abortInternal=function(){var w=this.response;(!w||!w.ok)&&(this.stats.aborted=!0,this.controller.abort())},E.abort=function(){var w;this.abortInternal(),(w=this.callbacks)!==null&&w!==void 0&&w.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},E.load=function(w,P,C){var b=this,s=this.stats;if(s.loading.start)throw new Error("Loader can only be used once.");s.loading.start=self.performance.now();var h=d(w,this.controller.signal),m=C.onProgress,x=w.responseType==="arraybuffer",g=x?"byteLength":"length";this.context=w,this.config=P,this.callbacks=C,this.request=this.fetchSetup(w,h),self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(function(){b.abortInternal(),C.onTimeout(s,w,b.response)},P.timeout),self.fetch(this.request).then(function(y){if(b.response=b.loader=y,!y.ok){var U=y.status,N=y.statusText;throw new o(N||"fetch, bad network response",U,y)}return s.loading.first=Math.max(self.performance.now(),s.loading.start),s.total=parseInt(y.headers.get("Content-Length")||"0"),m&&Object(k.isFiniteNumber)(P.highWaterMark)?b.loadProgressively(y,s,w,P.highWaterMark,m):x?y.arrayBuffer():y.text()}).then(function(y){var U=b.response;self.clearTimeout(b.requestTimeout),s.loading.end=Math.max(self.performance.now(),s.loading.first),s.loaded=s.total=y[g];var N={url:U.url,data:y};m&&!Object(k.isFiniteNumber)(P.highWaterMark)&&m(s,w,y,U),C.onSuccess(N,s,w,U)}).catch(function(y){if(self.clearTimeout(b.requestTimeout),s.aborted)return;var U=y.code||0;C.onError({code:U,text:y.message},w,y.details)})},E.getCacheAge=function(){var w=null;if(this.response){var P=this.response.headers.get("age");w=P?parseFloat(P):null}return w},E.loadProgressively=function(w,P,C,b,s){b===void 0&&(b=0);var h=new O.default,m=w.body.getReader(),x=function g(){return m.read().then(function(y){if(y.done)return h.dataLength&&s(P,C,h.flush(),w),Promise.resolve(new ArrayBuffer(0));var U=y.value,N=U.length;return P.loaded+=N,N<b||h.dataLength?(h.push(U),h.dataLength>=b&&s(P,C,h.flush(),w)):s(P,C,U,w),g()}).catch(function(){return Promise.reject()})};return x()},u}();function d(u,E){var R={method:"GET",mode:"cors",credentials:"same-origin",signal:E,headers:new self.Headers(l({},u.headers))};return u.rangeEnd&&R.headers.set("Range","bytes="+u.rangeStart+"-"+String(u.rangeEnd-1)),R}function f(u,E){return new self.Request(u.url,E)}var o=function(u){M(E,u);function E(R,w,P){var C;return C=u.call(this,R)||this,C.code=void 0,C.details=void 0,C.code=w,C.details=P,C}return E}(T(Error));Q.default=c},"./src/utils/imsc1-ttml-parser.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"IMSC1_CODEC",function(){return a}),I.d(Q,"parseIMSC1",function(){return i});var k=I("./src/utils/mp4-tools.ts"),_=I("./src/utils/vttparser.ts"),O=I("./src/utils/vttcue.ts"),M=I("./src/demux/id3.ts"),T=I("./src/utils/timescale-conversion.ts"),n=I("./src/utils/webvtt-parser.ts");function p(){return p=Object.assign||function(b){for(var s=1;s<arguments.length;s++){var h=arguments[s];for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(b[m]=h[m])}return b},p.apply(this,arguments)}var a="stpp.ttml.im1t",t=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,A=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,l={left:"start",center:"center",right:"end",start:"start",end:"end"};function i(b,s,h,m,x){var g=Object(k.findBox)(new Uint8Array(b),["mdat"]);if(g.length===0){x(new Error("Could not parse IMSC1 mdat"));return}var y=g[0],U=Object(M.utf8ArrayToStr)(new Uint8Array(b,y.start,y.end-y.start)),N=Object(T.toTimescaleFromScale)(s,1,h);try{m(c(U,N))}catch(S){x(S)}}function c(b,s){var h=new DOMParser,m=h.parseFromString(b,"text/xml"),x=m.getElementsByTagName("tt")[0];if(!x)throw new Error("Invalid ttml");var g={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},y=Object.keys(g).reduce(function(F,B){return F[B]=x.getAttribute("ttp:"+B)||g[B],F},{}),U=x.getAttribute("xml:space")!=="preserve",N=f(d(x,"styling","style")),S=f(d(x,"layout","region")),H=d(x,"body","[begin]");return[].map.call(H,function(F){var B=o(F,U);if(!B||!F.hasAttribute("begin"))return null;var z=w(F.getAttribute("begin"),y),K=w(F.getAttribute("dur"),y),$=w(F.getAttribute("end"),y);if(z===null)throw R(F);if($===null){if(K===null)throw R(F);$=z+K}var te=new O.default(z-s,$-s,B);te.id=Object(n.generateCueId)(te.startTime,te.endTime,te.text);var fe=S[F.getAttribute("region")],Ae=N[F.getAttribute("style")];te.position=10,te.size=80;var ce=u(fe,Ae),ie=ce.textAlign;if(ie){var ye=l[ie];ye&&(te.lineAlign=ye),te.align=ie}return p(te,ce),te}).filter(function(F){return F!==null})}function d(b,s,h){var m=b.getElementsByTagName(s)[0];return m?[].slice.call(m.querySelectorAll(h)):[]}function f(b){return b.reduce(function(s,h){var m=h.getAttribute("xml:id");return m&&(s[m]=h),s},{})}function o(b,s){return[].slice.call(b.childNodes).reduce(function(h,m,x){var g;return m.nodeName==="br"&&x?h+`
`:(g=m.childNodes)!==null&&g!==void 0&&g.length?o(m,s):s?h+m.textContent.trim().replace(/\s+/g," "):h+m.textContent},"")}function u(b,s){var h="http://www.w3.org/ns/ttml#styling",m=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"];return m.reduce(function(x,g){var y=E(s,h,g)||E(b,h,g);return y&&(x[g]=y),x},{})}function E(b,s,h){return b.hasAttributeNS(s,h)?b.getAttributeNS(s,h):null}function R(b){return new Error("Could not parse ttml timestamp "+b)}function w(b,s){if(!b)return null;var h=Object(_.parseTimeStamp)(b);return h===null&&(t.test(b)?h=P(b,s):A.test(b)&&(h=C(b,s))),h}function P(b,s){var h=t.exec(b),m=(h[4]|0)+(h[5]|0)/s.subFrameRate;return(h[1]|0)*3600+(h[2]|0)*60+(h[3]|0)+m/s.frameRate}function C(b,s){var h=A.exec(b),m=Number(h[1]),x=h[2];switch(x){case"h":return m*3600;case"m":return m*60;case"ms":return m*1e3;case"f":return m/s.frameRate;case"t":return m/s.tickRate}return m}},"./src/utils/logger.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"enableLogs",function(){return n}),I.d(Q,"logger",function(){return p});var k=function(){},_={trace:k,debug:k,log:k,warn:k,info:k,error:k},O=_;function M(a){var t=self.console[a];return t?t.bind(self.console,"["+a+"] >"):k}function T(a){for(var t=arguments.length,A=new Array(t>1?t-1:0),l=1;l<t;l++)A[l-1]=arguments[l];A.forEach(function(i){O[i]=a[i]?a[i].bind(a):M(i)})}function n(a){if(self.console&&a===!0||typeof a=="object"){T(a,"debug","log","info","warn","error");try{O.log()}catch(t){O=_}}else O=_}var p=O},"./src/utils/mediakeys-helper.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"KeySystems",function(){return k}),I.d(Q,"requestMediaKeySystemAccess",function(){return _});var k;(function(O){O.WIDEVINE="com.widevine.alpha",O.PLAYREADY="com.microsoft.playready"})(k||(k={}));var _=function(){return typeof self!="undefined"&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}()},"./src/utils/mediasource-helper.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"getMediaSource",function(){return k});function k(){return self.MediaSource||self.WebKitMediaSource}},"./src/utils/mp4-tools.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"bin2str",function(){return T}),I.d(Q,"readUint16",function(){return n}),I.d(Q,"readUint32",function(){return p}),I.d(Q,"writeUint32",function(){return a}),I.d(Q,"findBox",function(){return t}),I.d(Q,"parseSegmentIndex",function(){return A}),I.d(Q,"parseInitSegment",function(){return l}),I.d(Q,"getStartDTS",function(){return i}),I.d(Q,"getDuration",function(){return c}),I.d(Q,"computeRawDurationFromSamples",function(){return d}),I.d(Q,"offsetStartDTS",function(){return f}),I.d(Q,"segmentValidRange",function(){return o}),I.d(Q,"appendUint8Array",function(){return u});var k=I("./src/utils/typed-array.ts"),_=I("./src/loader/fragment.ts"),O=Math.pow(2,32)-1,M=[].push;function T(E){return String.fromCharCode.apply(null,E)}function n(E,R){"data"in E&&(R+=E.start,E=E.data);var w=E[R]<<8|E[R+1];return w<0?65536+w:w}function p(E,R){"data"in E&&(R+=E.start,E=E.data);var w=E[R]<<24|E[R+1]<<16|E[R+2]<<8|E[R+3];return w<0?4294967296+w:w}function a(E,R,w){"data"in E&&(R+=E.start,E=E.data),E[R]=w>>24,E[R+1]=w>>16&255,E[R+2]=w>>8&255,E[R+3]=w&255}function t(E,R){var w=[];if(!R.length)return w;var P,C,b;"data"in E?(P=E.data,C=E.start,b=E.end):(P=E,C=0,b=P.byteLength);for(var s=C;s<b;){var h=p(P,s),m=T(P.subarray(s+4,s+8)),x=h>1?s+h:b;if(m===R[0])if(R.length===1)w.push({data:P,start:s+8,end:x});else{var g=t({data:P,start:s+8,end:x},R.slice(1));g.length&&M.apply(w,g)}s=x}return w}function A(E){var R=t(E,["moov"]),w=R[0],P=w?w.end:null,C=t(E,["sidx"]);if(!C||!C[0])return null;var b=[],s=C[0],h=s.data[0],m=h===0?8:16,x=p(s,m);m+=4;var g=0,y=0;h===0?m+=8:m+=16,m+=2;var U=s.end+y,N=n(s,m);m+=2;for(var S=0;S<N;S++){var H=m,F=p(s,H);H+=4;var B=F&2147483647,z=(F&2147483648)>>>31;if(z===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var K=p(s,H);H+=4,b.push({referenceSize:B,subsegmentDuration:K,info:{duration:K/x,start:U,end:U+B-1}}),U+=B,H+=4,m=H}return{earliestPresentationTime:g,timescale:x,version:h,referencesCount:N,references:b,moovEndOffset:P}}function l(E){for(var R=[],w=t(E,["moov","trak"]),P=0;P<w.length;P++){var C=w[P],b=t(C,["tkhd"])[0];if(b){var s=b.data[b.start],h=s===0?12:20,m=p(b,h),x=t(C,["mdia","mdhd"])[0];if(x){s=x.data[x.start],h=s===0?12:20;var g=p(x,h),y=t(C,["mdia","hdlr"])[0];if(y){var U=T(y.data.subarray(y.start+8,y.start+12)),N={soun:_.ElementaryStreamTypes.AUDIO,vide:_.ElementaryStreamTypes.VIDEO}[U];if(N){var S=t(C,["mdia","minf","stbl","stsd"])[0],H=void 0;S&&(H=T(S.data.subarray(S.start+12,S.start+16))),R[m]={timescale:g,type:N},R[N]={timescale:g,id:m,codec:H}}}}}}var F=t(E,["moov","mvex","trex"]);return F.forEach(function(B){var z=p(B,4),K=R[z];K&&(K.default={duration:p(B,12),flags:p(B,20)})}),R}function i(E,R){return t(R,["moof","traf"]).reduce(function(w,P){var C=t(P,["tfdt"])[0],b=C.data[C.start],s=t(P,["tfhd"]).reduce(function(h,m){var x=p(m,4),g=E[x];if(g){var y=p(C,4);b===1&&(y*=Math.pow(2,32),y+=p(C,8));var U=g.timescale||9e4,N=y/U;if(isFinite(N)&&(h===null||N<h))return N}return h},null);return s!==null&&isFinite(s)&&(w===null||s<w)?s:w},null)||0}function c(E,R){for(var w=0,P=0,C=0,b=t(E,["moof","traf"]),s=0;s<b.length;s++){var h=b[s],m=t(h,["tfhd"])[0],x=p(m,4),g=R[x];if(!g)continue;var y=g.default,U=p(m,0)|(y==null?void 0:y.flags),N=y==null?void 0:y.duration;U&8&&(U&2?N=p(m,12):N=p(m,8));for(var S=g.timescale||9e4,H=t(h,["trun"]),F=0;F<H.length;F++){if(N){var B=p(H[F],4);w=N*B}else w=d(H[F]);g.type===_.ElementaryStreamTypes.VIDEO?P+=w/S:g.type===_.ElementaryStreamTypes.AUDIO&&(C+=w/S)}}if(P===0&&C===0){var z=A(E);if(z!=null&&z.references)return z.references.reduce(function(K,$){return K+$.info.duration||0},0)}return P||C}function d(E){var R=p(E,0),w=8;R&1&&(w+=4),R&4&&(w+=4);for(var P=0,C=p(E,4),b=0;b<C;b++){if(R&256){var s=p(E,w);P+=s,w+=4}R&512&&(w+=4),R&1024&&(w+=4),R&2048&&(w+=4)}return P}function f(E,R,w){t(R,["moof","traf"]).forEach(function(P){t(P,["tfhd"]).forEach(function(C){var b=p(C,4),s=E[b];if(!s)return;var h=s.timescale||9e4;t(P,["tfdt"]).forEach(function(m){var x=m.data[m.start],g=p(m,4);if(x===0)a(m,4,g-w*h);else{g*=Math.pow(2,32),g+=p(m,8),g-=w*h,g=Math.max(g,0);var y=Math.floor(g/(O+1)),U=Math.floor(g%(O+1));a(m,4,y),a(m,8,U)}})})})}function o(E){var R={valid:null,remainder:null},w=t(E,["moof"]);if(w){if(w.length<2)return R.remainder=E,R}else return R;var P=w[w.length-1];return R.valid=Object(k.sliceUint8)(E,0,P.start-8),R.remainder=Object(k.sliceUint8)(E,P.start-8),R}function u(E,R){var w=new Uint8Array(E.length+R.length);return w.set(E),w.set(R,E.length),w}},"./src/utils/output-filter.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"default",function(){return k});var k=function(){function _(M,T){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=M,this.trackName=T}var O=_.prototype;return O.dispatchCue=function(){if(this.startTime===null)return;this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null},O.newCue=function(T,n,p){(this.startTime===null||this.startTime>T)&&(this.startTime=T),this.endTime=n,this.screen=p,this.timelineController.createCaptionsTrack(this.trackName)},O.reset=function(){this.cueRanges=[]},_}()},"./src/utils/texttrack-utils.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"sendAddTrackEvent",function(){return _}),I.d(Q,"addCueToTrack",function(){return O}),I.d(Q,"clearCurrentCues",function(){return M}),I.d(Q,"removeCuesInRange",function(){return T}),I.d(Q,"getCuesInRange",function(){return p});var k=I("./src/utils/logger.ts");function _(a,t){var A;try{A=new Event("addtrack")}catch(l){A=document.createEvent("Event"),A.initEvent("addtrack",!1,!1)}A.track=a,t.dispatchEvent(A)}function O(a,t){var A=a.mode;if(A==="disabled"&&(a.mode="hidden"),a.cues&&!a.cues.getCueById(t.id))try{if(a.addCue(t),!a.cues.getCueById(t.id))throw new Error("addCue is failed for: "+t)}catch(i){k.logger.debug("[texttrack-utils]: "+i);var l=new self.TextTrackCue(t.startTime,t.endTime,t.text);l.id=t.id,a.addCue(l)}A==="disabled"&&(a.mode=A)}function M(a){var t=a.mode;if(t==="disabled"&&(a.mode="hidden"),a.cues)for(var A=a.cues.length;A--;)a.removeCue(a.cues[A]);t==="disabled"&&(a.mode=t)}function T(a,t,A){var l=a.mode;if(l==="disabled"&&(a.mode="hidden"),a.cues&&a.cues.length>0)for(var i=p(a.cues,t,A),c=0;c<i.length;c++)a.removeCue(i[c]);l==="disabled"&&(a.mode=l)}function n(a,t){if(t<a[0].startTime)return 0;var A=a.length-1;if(t>a[A].endTime)return-1;for(var l=0,i=A;l<=i;){var c=Math.floor((i+l)/2);if(t<a[c].startTime)i=c-1;else if(t>a[c].startTime&&l<A)l=c+1;else return c}return a[l].startTime-t<t-a[i].startTime?l:i}function p(a,t,A){var l=[],i=n(a,t);if(i>-1)for(var c=i,d=a.length;c<d;c++){var f=a[c];if(f.startTime>=t&&f.endTime<=A)l.push(f);else if(f.startTime>A)return l}return l}},"./src/utils/time-ranges.ts":function(Z,Q,I){"use strict";I.r(Q);var k={toString:function(O){for(var M="",T=O.length,n=0;n<T;n++)M+="["+O.start(n).toFixed(3)+","+O.end(n).toFixed(3)+"]";return M}};Q.default=k},"./src/utils/timescale-conversion.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"toTimescaleFromBase",function(){return _}),I.d(Q,"toTimescaleFromScale",function(){return O}),I.d(Q,"toMsFromMpegTsClock",function(){return M}),I.d(Q,"toMpegTsClockFromTimescale",function(){return T});var k=9e4;function _(n,p,a,t){a===void 0&&(a=1),t===void 0&&(t=!1);var A=n*p*a;return t?Math.round(A):A}function O(n,p,a,t){return a===void 0&&(a=1),t===void 0&&(t=!1),_(n,p,1/a,t)}function M(n,p){return p===void 0&&(p=!1),_(n,1e3,1/k,p)}function T(n,p){return p===void 0&&(p=1),_(n,k,1/p)}},"./src/utils/typed-array.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"sliceUint8",function(){return k});function k(_,O,M){return Uint8Array.prototype.slice?_.slice(O,M):new Uint8Array(Array.prototype.slice.call(_,O,M))}},"./src/utils/vttcue.ts":function(Z,Q,I){"use strict";I.r(Q),Q.default=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var k=["","lr","rl"],_=["start","middle","end","left","right"];function O(a,t){if(typeof t!="string")return!1;if(!Array.isArray(a))return!1;var A=t.toLowerCase();return~a.indexOf(A)?A:!1}function M(a){return O(k,a)}function T(a){return O(_,a)}function n(a){for(var t=arguments.length,A=new Array(t>1?t-1:0),l=1;l<t;l++)A[l-1]=arguments[l];for(var i=1;i<arguments.length;i++){var c=arguments[i];for(var d in c)a[d]=c[d]}return a}function p(a,t,A){var l=this,i={enumerable:!0};l.hasBeenReset=!1;var c="",d=!1,f=a,o=t,u=A,E=null,R="",w=!0,P="auto",C="start",b=50,s="middle",h=50,m="middle";Object.defineProperty(l,"id",n({},i,{get:function(){return c},set:function(g){c=""+g}})),Object.defineProperty(l,"pauseOnExit",n({},i,{get:function(){return d},set:function(g){d=!!g}})),Object.defineProperty(l,"startTime",n({},i,{get:function(){return f},set:function(g){if(typeof g!="number")throw new TypeError("Start time must be set to a number.");f=g,this.hasBeenReset=!0}})),Object.defineProperty(l,"endTime",n({},i,{get:function(){return o},set:function(g){if(typeof g!="number")throw new TypeError("End time must be set to a number.");o=g,this.hasBeenReset=!0}})),Object.defineProperty(l,"text",n({},i,{get:function(){return u},set:function(g){u=""+g,this.hasBeenReset=!0}})),Object.defineProperty(l,"region",n({},i,{get:function(){return E},set:function(g){E=g,this.hasBeenReset=!0}})),Object.defineProperty(l,"vertical",n({},i,{get:function(){return R},set:function(g){var y=M(g);if(y===!1)throw new SyntaxError("An invalid or illegal string was specified.");R=y,this.hasBeenReset=!0}})),Object.defineProperty(l,"snapToLines",n({},i,{get:function(){return w},set:function(g){w=!!g,this.hasBeenReset=!0}})),Object.defineProperty(l,"line",n({},i,{get:function(){return P},set:function(g){if(typeof g!="number"&&g!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");P=g,this.hasBeenReset=!0}})),Object.defineProperty(l,"lineAlign",n({},i,{get:function(){return C},set:function(g){var y=T(g);if(!y)throw new SyntaxError("An invalid or illegal string was specified.");C=y,this.hasBeenReset=!0}})),Object.defineProperty(l,"position",n({},i,{get:function(){return b},set:function(g){if(g<0||g>100)throw new Error("Position must be between 0 and 100.");b=g,this.hasBeenReset=!0}})),Object.defineProperty(l,"positionAlign",n({},i,{get:function(){return s},set:function(g){var y=T(g);if(!y)throw new SyntaxError("An invalid or illegal string was specified.");s=y,this.hasBeenReset=!0}})),Object.defineProperty(l,"size",n({},i,{get:function(){return h},set:function(g){if(g<0||g>100)throw new Error("Size must be between 0 and 100.");h=g,this.hasBeenReset=!0}})),Object.defineProperty(l,"align",n({},i,{get:function(){return m},set:function(g){var y=T(g);if(!y)throw new SyntaxError("An invalid or illegal string was specified.");m=y,this.hasBeenReset=!0}})),l.displayState=void 0}return p.prototype.getCueAsHTML=function(){var a=self.WebVTT;return a.convertCueToDOMTree(self,this.text)},p}()},"./src/utils/vttparser.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"parseTimeStamp",function(){return O}),I.d(Q,"fixLineBreaks",function(){return t}),I.d(Q,"VTTParser",function(){return A});var k=I("./src/utils/vttcue.ts"),_=function(){function l(){}var i=l.prototype;return i.decode=function(d,f){if(!d)return"";if(typeof d!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(d))},l}();function O(l){function i(d,f,o,u){return(d|0)*3600+(f|0)*60+(o|0)+parseFloat(u||0)}var c=l.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return c?parseFloat(c[2])>59?i(c[2],c[3],0,c[4]):i(c[1],c[2],c[3],c[4]):null}var M=function(){function l(){this.values=Object.create(null)}var i=l.prototype;return i.set=function(d,f){!this.get(d)&&f!==""&&(this.values[d]=f)},i.get=function(d,f,o){return o?this.has(d)?this.values[d]:f[o]:this.has(d)?this.values[d]:f},i.has=function(d){return d in this.values},i.alt=function(d,f,o){for(var u=0;u<o.length;++u)if(f===o[u]){this.set(d,f);break}},i.integer=function(d,f){/^-?\d+$/.test(f)&&this.set(d,parseInt(f,10))},i.percent=function(d,f){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(f)){var o=parseFloat(f);if(o>=0&&o<=100)return this.set(d,o),!0}return!1},l}();function T(l,i,c,d){var f=d?l.split(d):[l];for(var o in f){if(typeof f[o]!="string")continue;var u=f[o].split(c);if(u.length!==2)continue;var E=u[0],R=u[1];i(E,R)}}var n=new k.default(0,0,""),p=n.align==="middle"?"middle":"center";function a(l,i,c){var d=l;function f(){var E=O(l);if(E===null)throw new Error("Malformed timestamp: "+d);return l=l.replace(/^[^\sa-zA-Z-]+/,""),E}function o(E,R){var w=new M;T(E,function(b,s){var h;switch(b){case"region":for(var m=c.length-1;m>=0;m--)if(c[m].id===s){w.set(b,c[m].region);break}break;case"vertical":w.alt(b,s,["rl","lr"]);break;case"line":h=s.split(","),w.integer(b,h[0]),w.percent(b,h[0])&&w.set("snapToLines",!1),w.alt(b,h[0],["auto"]),h.length===2&&w.alt("lineAlign",h[1],["start",p,"end"]);break;case"position":h=s.split(","),w.percent(b,h[0]),h.length===2&&w.alt("positionAlign",h[1],["start",p,"end","line-left","line-right","auto"]);break;case"size":w.percent(b,s);break;case"align":w.alt(b,s,["start",p,"end","left","right"]);break}},/:/,/\s/),R.region=w.get("region",null),R.vertical=w.get("vertical","");var P=w.get("line","auto");P==="auto"&&n.line===-1&&(P=-1),R.line=P,R.lineAlign=w.get("lineAlign","start"),R.snapToLines=w.get("snapToLines",!0),R.size=w.get("size",100),R.align=w.get("align",p);var C=w.get("position","auto");C==="auto"&&n.position===50&&(C=R.align==="start"||R.align==="left"?0:R.align==="end"||R.align==="right"?100:50),R.position=C}function u(){l=l.replace(/^\s+/,"")}if(u(),i.startTime=f(),u(),l.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+d);l=l.substr(3),u(),i.endTime=f(),u(),o(l,i)}function t(l){return l.replace(/<br(?: \/)?>/gi,`
`)}var A=function(){function l(){this.state="INITIAL",this.buffer="",this.decoder=new _,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var i=l.prototype;return i.parse=function(d){var f=this;d&&(f.buffer+=f.decoder.decode(d,{stream:!0}));function o(){var C=f.buffer,b=0;for(C=t(C);b<C.length&&C[b]!=="\r"&&C[b]!==`
`;)++b;var s=C.substr(0,b);return C[b]==="\r"&&++b,C[b]===`
`&&++b,f.buffer=C.substr(b),s}function u(C){T(C,function(b,s){},/:/)}try{var E="";if(f.state==="INITIAL"){if(!/\r\n|\n/.test(f.buffer))return this;E=o();var R=E.match(/^()?WEBVTT([ \t].*)?$/);if(!R||!R[0])throw new Error("Malformed WebVTT signature.");f.state="HEADER"}for(var w=!1;f.buffer;){if(!/\r\n|\n/.test(f.buffer))return this;w?w=!1:E=o();switch(f.state){case"HEADER":/:/.test(E)?u(E):E||(f.state="ID");continue;case"NOTE":E||(f.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(E)){f.state="NOTE";break}if(!E)continue;if(f.cue=new k.default(0,0,""),f.state="CUE",E.indexOf("-->")===-1){f.cue.id=E;continue}case"CUE":if(!f.cue){f.state="BADCUE";continue}try{a(E,f.cue,f.regionList)}catch(C){f.cue=null,f.state="BADCUE";continue}f.state="CUETEXT";continue;case"CUETEXT":{var P=E.indexOf("-->")!==-1;if(!E||P&&(w=!0)){f.oncue&&f.cue&&f.oncue(f.cue),f.cue=null,f.state="ID";continue}if(f.cue===null)continue;f.cue.text&&(f.cue.text+=`
`),f.cue.text+=E}continue;case"BADCUE":E||(f.state="ID")}}}catch(C){f.state==="CUETEXT"&&f.cue&&f.oncue&&f.oncue(f.cue),f.cue=null,f.state=f.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},i.flush=function(){var d=this;try{if((d.cue||d.state==="HEADER")&&(d.buffer+=`
`,d.parse()),d.state==="INITIAL"||d.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(f){d.onparsingerror&&d.onparsingerror(f)}return d.onflush&&d.onflush(),this},l}()},"./src/utils/webvtt-parser.ts":function(Z,Q,I){"use strict";I.r(Q),I.d(Q,"generateCueId",function(){return A}),I.d(Q,"parseWebVTT",function(){return i});var k=I("./src/polyfills/number.ts"),_=I("./src/utils/vttparser.ts"),O=I("./src/demux/id3.ts"),M=I("./src/utils/timescale-conversion.ts"),T=I("./src/remux/mp4-remuxer.ts"),n=/\r\n|\n\r|\n|\r/g,p=function(d,f,o){return o===void 0&&(o=0),d.substr(o,f.length)===f},a=function(d){var f=parseInt(d.substr(-3)),o=parseInt(d.substr(-6,2)),u=parseInt(d.substr(-9,2)),E=d.length>9?parseInt(d.substr(0,d.indexOf(":"))):0;if(!Object(k.isFiniteNumber)(f)||!Object(k.isFiniteNumber)(o)||!Object(k.isFiniteNumber)(u)||!Object(k.isFiniteNumber)(E))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+d);return f+=1e3*o,f+=60*1e3*u,f+=60*60*1e3*E,f},t=function(d){for(var f=5381,o=d.length;o;)f=f*33^d.charCodeAt(--o);return(f>>>0).toString()};function A(c,d,f){return t(c.toString())+t(d.toString())+t(f)}var l=function(d,f,o){var u=d[f],E=d[u.prevCC];if(!E||!E.new&&u.new){d.ccOffset=d.presentationOffset=u.start,u.new=!1;return}for(;(R=E)!==null&&R!==void 0&&R.new;){var R;d.ccOffset+=u.start-E.start,u.new=!1,u=E,E=d[u.prevCC]}d.presentationOffset=o};function i(c,d,f,o,u,E,R,w){var P=new _.VTTParser,C=Object(O.utf8ArrayToStr)(new Uint8Array(c)).trim().replace(n,`
`).split(`
`),b=[],s=Object(M.toMpegTsClockFromTimescale)(d,f),h="00:00.000",m=0,x=0,g,y=!0,U=!1;P.oncue=function(N){var S=o[u],H=o.ccOffset,F=(m-s)/9e4;if(S!=null&&S.new&&(x!==void 0?H=o.ccOffset=S.start:l(o,u,F)),F&&(H=F-o.presentationOffset),U){var B=N.endTime-N.startTime,z=Object(T.normalizePts)((N.startTime+H-x)*9e4,E*9e4)/9e4;N.startTime=z,N.endTime=z+B}var K=N.text.trim();N.text=decodeURIComponent(encodeURIComponent(K)),N.id||(N.id=A(N.startTime,N.endTime,K)),N.endTime>0&&b.push(N)},P.onparsingerror=function(N){g=N},P.onflush=function(){if(g){w(g);return}R(b)},C.forEach(function(N){if(y)if(p(N,"X-TIMESTAMP-MAP=")){y=!1,U=!0,N.substr(16).split(",").forEach(function(S){p(S,"LOCAL:")?h=S.substr(6):p(S,"MPEGTS:")&&(m=parseInt(S.substr(7)))});try{x=a(h)/1e3}catch(S){U=!1,g=S}return}else N===""&&(y=!1);P.parse(N+`
`)}),P.flush()}},"./src/utils/xhr-loader.ts":function(Z,Q,I){"use strict";I.r(Q);var k=I("./src/utils/logger.ts"),_=I("./src/loader/load-stats.ts"),O=/^age:\s*[\d.]+\s*$/m,M=function(){function T(p){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=p?p.xhrSetup:null,this.stats=new _.LoadStats,this.retryDelay=0}var n=T.prototype;return n.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},n.abortInternal=function(){var a=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),a&&(a.onreadystatechange=null,a.onprogress=null,a.readyState!==4&&(this.stats.aborted=!0,a.abort()))},n.abort=function(){var a;this.abortInternal(),(a=this.callbacks)!==null&&a!==void 0&&a.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},n.load=function(a,t,A){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=a,this.config=t,this.callbacks=A,this.retryDelay=t.retryDelay,this.loadInternal()},n.loadInternal=function(){var a=this.config,t=this.context;if(!a)return;var A=this.loader=new self.XMLHttpRequest,l=this.stats;l.loading.first=0,l.loaded=0;var i=this.xhrSetup;try{if(i)try{i(A,t.url)}catch(f){A.open("GET",t.url,!0),i(A,t.url)}A.readyState||A.open("GET",t.url,!0);var c=this.context.headers;if(c)for(var d in c)A.setRequestHeader(d,c[d])}catch(f){this.callbacks.onError({code:A.status,text:f.message},t,A);return}t.rangeEnd&&A.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),A.onreadystatechange=this.readystatechange.bind(this),A.onprogress=this.loadprogress.bind(this),A.responseType=t.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),a.timeout),A.send()},n.readystatechange=function(){var a=this.context,t=this.loader,A=this.stats;if(!a||!t)return;var l=t.readyState,i=this.config;if(A.aborted)return;if(l>=2)if(self.clearTimeout(this.requestTimeout),A.loading.first===0&&(A.loading.first=Math.max(self.performance.now(),A.loading.start)),l===4){t.onreadystatechange=null,t.onprogress=null;var c=t.status;if(c>=200&&c<300){A.loading.end=Math.max(self.performance.now(),A.loading.first);var d,f;if(a.responseType==="arraybuffer"?(d=t.response,f=d.byteLength):(d=t.responseText,f=d.length),A.loaded=A.total=f,!this.callbacks)return;var o=this.callbacks.onProgress;if(o&&o(A,a,d,t),!this.callbacks)return;var u={url:t.responseURL,data:d};this.callbacks.onSuccess(u,A,a,t)}else A.retry>=i.maxRetry||c>=400&&c<499?(k.logger.error(c+" while loading "+a.url),this.callbacks.onError({code:c,text:t.statusText},a,t)):(k.logger.warn(c+" while loading "+a.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,i.maxRetryDelay),A.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.timeout)},n.loadtimeout=function(){k.logger.warn("timeout while loading "+this.context.url);var a=this.callbacks;a&&(this.abortInternal(),a.onTimeout(this.stats,this.context,this.loader))},n.loadprogress=function(a){var t=this.stats;t.loaded=a.loaded,a.lengthComputable&&(t.total=a.total)},n.getCacheAge=function(){var a=null;if(this.loader&&O.test(this.loader.getAllResponseHeaders())){var t=this.loader.getResponseHeader("age");a=t?parseFloat(t):null}return a},T}();Q.default=M}}).default})},vHTk:function(Be,ee,v){Be.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vKoX:function(Be,ee,v){var Z=v("SrGk"),Q=v("bYtY");function I(O,M){Z.call(this,O,M,["filter"],"__filter_in_use__","_shadowDom")}Q.inherits(I,Z),I.prototype.addWithoutUpdate=function(O,M){if(M&&k(M.style)){var T;if(M._shadowDom){T=M._shadowDom;var n=this.getDefs(!0);n.contains(M._shadowDom)||this.addDom(T)}else T=this.add(M);this.markUsed(M);var p=T.getAttribute("id");O.style.filter="url(#"+p+")"}},I.prototype.add=function(O){var M=this.createElement("filter");return O._shadowDomId=O._shadowDomId||this.nextId++,M.setAttribute("id","zr"+this._zrId+"-shadow-"+O._shadowDomId),this.updateDom(O,M),this.addDom(M),M},I.prototype.update=function(O,M){var T=M.style;if(k(T)){var n=this;Z.prototype.update.call(this,M,function(){n.updateDom(M,M._shadowDom)})}else this.remove(O,M)},I.prototype.remove=function(O,M){M._shadowDomId!=null&&(this.removeDom(O),O.style.filter="")},I.prototype.updateDom=function(O,M){var T=M.getElementsByTagName("feDropShadow");T.length===0?T=this.createElement("feDropShadow"):T=T[0];var n=O.style,p=O.scale&&O.scale[0]||1,a=O.scale&&O.scale[1]||1,t,A,l,i;if(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)t=n.shadowOffsetX||0,A=n.shadowOffsetY||0,l=n.shadowBlur,i=n.shadowColor;else if(n.textShadowBlur)t=n.textShadowOffsetX||0,A=n.textShadowOffsetY||0,l=n.textShadowBlur,i=n.textShadowColor;else{this.removeDom(M,n);return}T.setAttribute("dx",t/p),T.setAttribute("dy",A/a),T.setAttribute("flood-color",i);var c=l/2/p,d=l/2/a,f=c+" "+d;T.setAttribute("stdDeviation",f),M.setAttribute("x","-100%"),M.setAttribute("y","-100%"),M.setAttribute("width",Math.ceil(l/2*200)+"%"),M.setAttribute("height",Math.ceil(l/2*200)+"%"),M.appendChild(T),O._shadowDom=M},I.prototype.markUsed=function(O){O._shadowDom&&Z.prototype.markUsed.call(this,O._shadowDom)};function k(O){return O&&(O.shadowBlur||O.shadowOffsetX||O.shadowOffsetY||O.textShadowBlur||O.textShadowOffsetX||O.textShadowOffsetY)}var _=I;Be.exports=_},vUf6:function(Be,ee,v){Be.exports=v.p+"static/xxtj.4138f214.svg"},vWvF:function(Be,ee,v){var Z=v("Bq2U"),Q=v("SUKs"),I=v("bYtY"),k=I.isString,_=I.isFunction,O=I.isObject,M=I.isArrayLike,T=I.indexOf,n=function(){this.animators=[]};n.prototype={constructor:n,animate:function(l,i){var c,d=!1,f=this,o=this.__zr;if(l){var u=l.split("."),E=f;d=u[0]==="shape";for(var R=0,w=u.length;R<w;R++){if(!E)continue;E=E[u[R]]}E&&(c=E)}else c=f;if(!c){Q('Property "'+l+'" is not existed in element '+f.id);return}var P=f.animators,C=new Z(c,i);return C.during(function(b){f.dirty(d)}).done(function(){P.splice(T(P,C),1)}),P.push(C),o&&o.animation.addAnimator(C),C},stopAnimation:function(l){for(var i=this.animators,c=i.length,d=0;d<c;d++)i[d].stop(l);return i.length=0,this},animateTo:function(l,i,c,d,f,o){p(this,l,i,c,d,f,o)},animateFrom:function(l,i,c,d,f,o){p(this,l,i,c,d,f,o,!0)}};function p(l,i,c,d,f,o,u,E){k(d)?(o=f,f=d,d=0):_(f)?(o=f,f="linear",d=0):_(d)?(o=d,d=0):_(c)?(o=c,c=500):c||(c=500),l.stopAnimation(),a(l,"",l,i,c,d,E);var R=l.animators.slice(),w=R.length;function P(){w--,w||o&&o()}w||o&&o();for(var C=0;C<R.length;C++)R[C].done(P).start(f,u)}function a(l,i,c,d,f,o,u){var E={},R=0;for(var w in d){if(!d.hasOwnProperty(w))continue;c[w]!=null?O(d[w])&&!M(d[w])?a(l,i?i+"."+w:w,c[w],d[w],f,o,u):(u?(E[w]=c[w],t(l,i,w,d[w])):E[w]=d[w],R++):d[w]!=null&&!u&&t(l,i,w,d[w])}R>0&&l.animate(i,!1).when(f==null?500:f,E).delay(o||0)}function t(l,i,c,d){if(!i)l.attr(c,d);else{var f={};f[i]={},f[i][c]=d,l.attr(f)}}var A=n;Be.exports=A},vef1:function(Be,ee,v){Be.exports={upload:"upload___3GNI5"}},vkP9:function(Be,ee,v){"use strict";var Z=v("+L6B"),Q=v("2/Rp"),I=v("5NDa"),k=v("5rEg"),_=v("y8nQ"),O=v("Vl3Y"),M=v("tJVT"),T=v("q1tI"),n=v.n(T),p=v("a+yL"),a=v.n(p),t=function(l){var i=l.value,c=l.onChange,d=O.a.useForm(),f=Object(M.a)(d,1),o=f[0];Object(T.useEffect)(function(){i&&o.setFieldsValue(i)},i);var u=function(R){c(R)};return n.a.createElement("div",{className:a.a.search},n.a.createElement(O.a,{className:a.a.formWrap,colon:!1,form:o,size:"large",layout:"inline",onFinish:u},n.a.createElement(O.a.Item,{label:"\u5B9E\u8BAD\u4FE1\u606F",name:"keyword",initialValue:""},n.a.createElement(k.a,{style:{width:280,height:40}})),n.a.createElement(O.a.Item,{label:"\u5B66\u6821/\u5355\u4F4D",name:"schools",initialValue:"",style:{margin:"0 40px"}},n.a.createElement(k.a,{style:{width:280,height:40}})),n.a.createElement(O.a.Item,{label:"\u521B\u5EFA\u8005",name:"creator",initialValue:""},n.a.createElement(k.a,{style:{width:200,height:40}})),n.a.createElement(Q.a,{className:a.a.btn,type:"primary",htmlType:"submit"},"\u641C\u7D22")))};ee.a=t},w8Aa:function(Be,ee,v){Be.exports={img:"img___3e4yQ"}},wCXF:function(Be,ee,v){"use strict";v.d(ee,"a",function(){return Ot});var Z=v("rePB"),Q=v("VTBJ"),I=v("KQm4"),k=v("U8pU"),_=v("ODXe"),O=v("q1tI"),M=v("TSYQ"),T=v.n(M),n=v("Gytx"),p=v.n(n),a=v("Kwbf"),t=v("t23M"),A=v("qx4F"),l=v("6eGT"),i=v("IBYe"),c=v("Ff2n"),d=v("c+Xe"),f=v("fyJ8"),o=v("biw7");function u(ze,Ve,Et,Rt,ut){var vt=Et[ze]||{},Ze=Et[Ve]||{},ke,He;vt.fixed==="left"?ke=Rt.left[ze]:Ze.fixed==="right"&&(He=Rt.right[Ve]);var we=!1,Le=!1,Pe=!1,We=!1,Xe=Et[Ve+1],gt=Et[ze-1];if(ut==="rtl"){if(ke!==void 0){var Lt=gt&&gt.fixed==="left";We=!Lt}else if(He!==void 0){var en=Xe&&Xe.fixed==="right";Pe=!en}}else if(ke!==void 0){var Zt=Xe&&Xe.fixed==="left";we=!Zt}else if(He!==void 0){var xt=gt&&gt.fixed==="right";Le=!xt}return{fixLeft:ke,fixRight:He,lastFixLeft:we,firstFixRight:Le,lastFixRight:Pe,firstFixLeft:We,isSticky:Rt.isSticky}}var E=v("sR1s");function R(ze){var Ve=ze.cells,Et=ze.stickyOffsets,Rt=ze.flattenColumns,ut=ze.rowComponent,vt=ze.cellComponent,Ze=ze.onHeaderRow,ke=ze.index,He=O.useContext(o.a),we=He.prefixCls,Le=He.direction,Pe;Ze&&(Pe=Ze(Ve.map(function(Xe){return Xe.column}),ke));var We=Object(E.a)(Ve.map(function(Xe){return Xe.column}));return O.createElement(ut,Object.assign({},Pe),Ve.map(function(Xe,gt){var Lt=Xe.column,en=u(Xe.colStart,Xe.colEnd,Rt,Et,Le),Zt;return Lt&&Lt.onHeaderCell&&(Zt=Xe.column.onHeaderCell(Lt)),O.createElement(f.a,Object.assign({},Xe,{ellipsis:Lt.ellipsis,align:Lt.align,component:vt,prefixCls:we,key:We[gt]},en,{additionalProps:Zt,rowType:"header"}))}))}R.displayName="HeaderRow";var w=R;function P(ze){var Ve=[];function Et(Ze,ke){var He=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ve[He]=Ve[He]||[];var we=ke,Le=Ze.filter(Boolean).map(function(Pe){var We={key:Pe.key,className:Pe.className||"",children:Pe.title,column:Pe,colStart:we},Xe=1,gt=Pe.children;return gt&&gt.length>0&&(Xe=Et(gt,we,He+1).reduce(function(Lt,en){return Lt+en},0),We.hasSubColumns=!0),"colSpan"in Pe&&(Xe=Pe.colSpan),"rowSpan"in Pe&&(We.rowSpan=Pe.rowSpan),We.colSpan=Xe,We.colEnd=We.colStart+Xe-1,Ve[He].push(We),we+=Xe,Xe});return Le}Et(ze,0);for(var Rt=Ve.length,ut=function(ke){Ve[ke].forEach(function(He){!("rowSpan"in He)&&!He.hasSubColumns&&(He.rowSpan=Rt-ke)})},vt=0;vt<Rt;vt+=1)ut(vt);return Ve}function C(ze){var Ve=ze.stickyOffsets,Et=ze.columns,Rt=ze.flattenColumns,ut=ze.onHeaderRow,vt=O.useContext(o.a),Ze=vt.prefixCls,ke=vt.getComponent,He=O.useMemo(function(){return P(Et)},[Et]),we=ke(["header","wrapper"],"thead"),Le=ke(["header","row"],"tr"),Pe=ke(["header","cell"],"th");return O.createElement(we,{className:"".concat(Ze,"-thead")},He.map(function(We,Xe){var gt=O.createElement(w,{key:Xe,flattenColumns:Rt,cells:We,stickyOffsets:Ve,rowComponent:Le,cellComponent:Pe,onHeaderRow:ut,index:Xe});return gt}))}var b=C,s=v("hW8S");function h(ze){for(var Ve=ze.colWidths,Et=ze.columns,Rt=ze.columCount,ut=[],vt=Rt||Et.length,Ze=!1,ke=vt-1;ke>=0;ke-=1){var He=Ve[ke],we=Et&&Et[ke],Le=we&&we[s.a];(He||Le||Ze)&&(ut.unshift(O.createElement("col",Object.assign({key:ke,style:{width:He,minWidth:He}},Le))),Ze=!0)}return O.createElement("colgroup",null,ut)}var m=h;function x(ze,Ve){return Object(O.useMemo)(function(){for(var Et=[],Rt=0;Rt<Ve;Rt+=1){var ut=ze[Rt];if(ut!==void 0)Et[Rt]=ut;else return null}return Et},[ze.join("_"),Ve])}var g=O.forwardRef(function(ze,Ve){var Et=ze.noData,Rt=ze.columns,ut=ze.flattenColumns,vt=ze.colWidths,Ze=ze.columCount,ke=ze.stickyOffsets,He=ze.direction,we=ze.fixHeader,Le=ze.offsetHeader,Pe=ze.stickyClassName,We=ze.onScroll,Xe=Object(c.a)(ze,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),gt=O.useContext(o.a),Lt=gt.prefixCls,en=gt.scrollbarSize,Zt=gt.isSticky,xt=Zt&&!we?0:en,Ct=O.useRef(null),mt=O.useCallback(function(Dt){Object(d.b)(Ve,Dt),Object(d.b)(Ct,Dt)},[]);O.useEffect(function(){var Dt;function Qt(_t){var Gt=_t.currentTarget,kt=_t.deltaX;kt&&(We({currentTarget:Gt,scrollLeft:Gt.scrollLeft+kt}),_t.preventDefault())}return(Dt=Ct.current)===null||Dt===void 0||Dt.addEventListener("wheel",Qt),function(){var _t;(_t=Ct.current)===null||_t===void 0||_t.removeEventListener("wheel",Qt)}},[]);var Je=ut[ut.length-1],Qe={fixed:Je?Je.fixed:null,onHeaderCell:function(){return{className:"".concat(Lt,"-cell-scrollbar")}}},Oe=Object(O.useMemo)(function(){return xt?[].concat(Object(I.a)(Rt),[Qe]):Rt},[xt,Rt]),je=Object(O.useMemo)(function(){return xt?[].concat(Object(I.a)(ut),[Qe]):ut},[xt,ut]),St=Object(O.useMemo)(function(){var Dt=ke.right,Qt=ke.left;return Object(Q.a)(Object(Q.a)({},ke),{},{left:He==="rtl"?[].concat(Object(I.a)(Qt.map(function(_t){return _t+xt})),[0]):Qt,right:He==="rtl"?Dt:[].concat(Object(I.a)(Dt.map(function(_t){return _t+xt})),[0]),isSticky:Zt})},[xt,ke,Zt]),bt=x(vt,Ze);return O.createElement("div",{style:Object(Q.a)({overflow:"hidden"},Zt?{top:Le}:{}),ref:mt,className:T()("".concat(Lt,"-header"),Object(Z.a)({},Pe,!!Pe))},O.createElement("table",{style:{tableLayout:"fixed",visibility:Et||bt?null:"hidden"}},O.createElement(m,{colWidths:bt?[].concat(Object(I.a)(bt),[xt]):[],columCount:Ze+1,columns:je}),O.createElement(b,Object.assign({},Xe,{stickyOffsets:St,columns:Oe,flattenColumns:je}))))});g.displayName="FixedHeader";var y=g,U=O.createContext(null),N=U;function S(ze){var Ve=ze.prefixCls,Et=ze.children,Rt=ze.component,ut=ze.cellComponent,vt=ze.fixHeader,Ze=ze.fixColumn,ke=ze.horizonScroll,He=ze.className,we=ze.expanded,Le=ze.componentWidth,Pe=ze.colSpan,We=O.useContext(o.a),Xe=We.scrollbarSize;return O.useMemo(function(){var gt=Et;return Ze&&(gt=O.createElement("div",{style:{width:Le-(vt?Xe:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ve,"-expanded-row-fixed")},gt)),O.createElement(Rt,{className:He,style:{display:we?null:"none"}},O.createElement(f.a,{component:ut,prefixCls:Ve,colSpan:Pe},gt))},[Et,Rt,vt,ke,He,we,Le,Pe,Xe])}var H=S;function F(ze){var Ve=ze.className,Et=ze.style,Rt=ze.record,ut=ze.index,vt=ze.rowKey,Ze=ze.getRowKey,ke=ze.rowExpandable,He=ze.expandedKeys,we=ze.onRow,Le=ze.indent,Pe=Le===void 0?0:Le,We=ze.rowComponent,Xe=ze.cellComponent,gt=ze.childrenColumnName,Lt=O.useContext(o.a),en=Lt.prefixCls,Zt=Lt.fixedInfoList,xt=O.useContext(N),Ct=xt.fixHeader,mt=xt.fixColumn,Je=xt.horizonScroll,Qe=xt.componentWidth,Oe=xt.flattenColumns,je=xt.expandableType,St=xt.expandRowByClick,bt=xt.onTriggerExpand,Dt=xt.rowClassName,Qt=xt.expandedRowClassName,_t=xt.indentSize,Gt=xt.expandIcon,kt=xt.expandedRowRender,fn=xt.expandIconColumnIndex,mn=O.useState(!1),Tr=Object(_.a)(mn,2),Mr=Tr[0],kr=Tr[1],Un=He&&He.has(ze.recordKey);O.useEffect(function(){Un&&kr(!0)},[Un]);var Ra=je==="row"&&(!ke||ke(Rt)),Xr=je==="nest",aa=gt&&Rt&&Rt[gt],Kr=Ra||Xr,_a;we&&(_a=we(Rt,ut));var di=function(W){if(St&&Kr&&bt(Rt,W),_a&&_a.onClick){for(var V,ne=arguments.length,ve=new Array(ne>1?ne-1:0),oe=1;oe<ne;oe++)ve[oe-1]=arguments[oe];(V=_a).onClick.apply(V,[W].concat(ve))}},Ei;typeof Dt=="string"?Ei=Dt:typeof Dt=="function"&&(Ei=Dt(Rt,ut,Pe));var _e=Object(E.a)(Oe),Ie=O.createElement(We,Object.assign({},_a,{"data-row-key":vt,className:T()(Ve,"".concat(en,"-row"),"".concat(en,"-row-level-").concat(Pe),Ei,_a&&_a.className),style:Object(Q.a)(Object(Q.a)({},Et),_a?_a.style:null),onClick:di}),Oe.map(function(re,W){var V=re.render,ne=re.dataIndex,ve=re.className,oe=_e[W],tt=Zt[W],Kt;W===(fn||0)&&Xr&&(Kt=O.createElement(O.Fragment,null,O.createElement("span",{style:{paddingLeft:"".concat(_t*Pe,"px")},className:"".concat(en,"-row-indent indent-level-").concat(Pe)}),Gt({prefixCls:en,expanded:Un,expandable:aa,record:Rt,onExpand:bt})));var dn;return re.onCell&&(dn=re.onCell(Rt,ut)),O.createElement(f.a,Object.assign({className:ve,ellipsis:re.ellipsis,align:re.align,component:Xe,prefixCls:en,key:oe,record:Rt,index:ut,dataIndex:ne,render:V,shouldCellUpdate:re.shouldCellUpdate},tt,{appendNode:Kt,additionalProps:dn}))})),Ye;if(Ra&&(Mr||Un)){var yt=kt(Rt,ut,Pe+1,Un),Xt=Qt&&Qt(Rt,ut,Pe);Ye=O.createElement(H,{expanded:Un,className:T()("".concat(en,"-expanded-row"),"".concat(en,"-expanded-row-level-").concat(Pe+1),Xt),prefixCls:en,fixHeader:Ct,fixColumn:mt,horizonScroll:Je,component:We,componentWidth:Qe,cellComponent:Xe,colSpan:Oe.length},yt)}var sn;return aa&&Un&&(sn=(Rt[gt]||[]).map(function(re,W){var V=Ze(re,W);return O.createElement(F,Object.assign({},ze,{key:V,rowKey:V,record:re,recordKey:V,index:W,indent:Pe+1}))})),O.createElement(O.Fragment,null,Ie,Ye,sn)}F.displayName="BodyRow";var B=F,z=O.createContext(null),K=z;function $(ze){var Ve=ze.columnKey,Et=ze.onColumnResize,Rt=O.useRef();return O.useEffect(function(){Rt.current&&Et(Ve,Rt.current.offsetWidth)},[]),O.createElement(t.a,{onResize:function(vt){var Ze=vt.offsetWidth;Et(Ve,Ze)}},O.createElement("td",{ref:Rt,style:{padding:0,border:0,height:0}},O.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function te(ze){var Ve=ze.data,Et=ze.getRowKey,Rt=ze.measureColumnWidth,ut=ze.expandedKeys,vt=ze.onRow,Ze=ze.rowExpandable,ke=ze.emptyNode,He=ze.childrenColumnName,we=O.useContext(K),Le=we.onColumnResize,Pe=O.useContext(o.a),We=Pe.prefixCls,Xe=Pe.getComponent,gt=O.useContext(N),Lt=gt.fixHeader,en=gt.horizonScroll,Zt=gt.flattenColumns,xt=gt.componentWidth;return O.useMemo(function(){var Ct=Xe(["body","wrapper"],"tbody"),mt=Xe(["body","row"],"tr"),Je=Xe(["body","cell"],"td"),Qe;Ve.length?Qe=Ve.map(function(je,St){var bt=Et(je,St);return O.createElement(B,{key:bt,rowKey:bt,record:je,recordKey:bt,index:St,rowComponent:mt,cellComponent:Je,expandedKeys:ut,onRow:vt,getRowKey:Et,rowExpandable:Ze,childrenColumnName:He})}):Qe=O.createElement(H,{expanded:!0,className:"".concat(We,"-placeholder"),prefixCls:We,fixHeader:Lt,fixColumn:en,horizonScroll:en,component:mt,componentWidth:xt,cellComponent:Je,colSpan:Zt.length},ke);var Oe=Object(E.a)(Zt);return O.createElement(Ct,{className:"".concat(We,"-tbody")},Rt&&O.createElement("tr",{"aria-hidden":"true",className:"".concat(We,"-measure-row"),style:{height:0}},Oe.map(function(je){return O.createElement($,{key:je,columnKey:je,onColumnResize:Le})})),Qe)},[Ve,We,vt,Rt,ut,Et,Xe,xt,ke,Zt])}var fe=O.memo(te);fe.displayName="Body";var Ae=fe,ce=v("wRmb"),ie=v("xEkU"),ye=v.n(ie);function le(ze){var Ve=Object(O.useRef)(ze),Et=Object(O.useState)({}),Rt=Object(_.a)(Et,2),ut=Rt[1],vt=Object(O.useRef)(null),Ze=Object(O.useRef)([]);function ke(He){vt.current===null&&(Ze.current=[],vt.current=ye()(function(){Ze.current.forEach(function(we){Ve.current=we(Ve.current)}),vt.current=null,ut({})})),Ze.current.push(He)}return Object(O.useEffect)(function(){return function(){ye.a.cancel(vt.current)}},[]),[Ve.current,ke]}function me(ze){var Ve=Object(O.useRef)(ze),Et=Object(O.useRef)(null);function Rt(){window.clearTimeout(Et.current)}function ut(Ze){Ve.current=Ze,Rt(),Et.current=window.setTimeout(function(){Ve.current=null,Et.current=null},100)}function vt(){return Ve.current}return Object(O.useEffect)(function(){return Rt},[]),[ut,vt]}function se(ze,Ve,Et){var Rt=Object(O.useMemo)(function(){for(var ut=[],vt=[],Ze=0,ke=0,He=0;He<Ve;He+=1)if(Et==="rtl"){vt[He]=ke,ke+=ze[He]||0;var we=Ve-He-1;ut[we]=Ze,Ze+=ze[we]||0}else{ut[He]=Ze,Ze+=ze[He]||0;var Le=Ve-He-1;vt[Le]=ke,ke+=ze[Le]||0}return{left:ut,right:vt}},[ze,Ve,Et]);return Rt}var ge=se;function ae(ze){var Ve=ze.className,Et=ze.children;return O.createElement("div",{className:Ve},Et)}var pe=ae,Me=v("n6Qo");function xe(ze){var Ve,Et=ze.prefixCls,Rt=ze.record,ut=ze.onExpand,vt=ze.expanded,Ze=ze.expandable,ke="".concat(Et,"-row-expand-icon");if(!Ze)return O.createElement("span",{className:T()(ke,"".concat(Et,"-row-spaced"))});var He=function(Le){ut(Rt,Le),Le.stopPropagation()};return O.createElement("span",{className:T()(ke,(Ve={},Object(Z.a)(Ve,"".concat(Et,"-row-expanded"),vt),Object(Z.a)(Ve,"".concat(Et,"-row-collapsed"),!vt),Ve)),onClick:He})}function Ke(ze,Ve,Et){var Rt=[];function ut(vt){(vt||[]).forEach(function(Ze,ke){Rt.push(Ve(Ze,ke)),ut(Ze[Et])})}return ut(ze),Rt}var et=v("zT1h"),he=v("y0+3"),Se=function(Ve,Et){var Rt,ut,vt=Ve.scrollBodyRef,Ze=Ve.onScroll,ke=Ve.offsetScroll,He=O.useContext(o.a),we=He.prefixCls,Le=((Rt=vt.current)===null||Rt===void 0?void 0:Rt.scrollWidth)||0,Pe=((ut=vt.current)===null||ut===void 0?void 0:ut.clientWidth)||0,We=Le&&Pe*(Pe/Le),Xe=O.useRef(),gt=le({scrollLeft:0,isHiddenScrollBar:!1}),Lt=Object(_.a)(gt,2),en=Lt[0],Zt=Lt[1],xt=O.useRef({delta:0,x:0}),Ct=O.useState(!1),mt=Object(_.a)(Ct,2),Je=mt[0],Qe=mt[1],Oe=function(){Qe(!1)},je=function(_t){_t.persist(),xt.current.delta=_t.pageX-en.scrollLeft,xt.current.x=0,Qe(!0),_t.preventDefault()},St=function(_t){var Gt,kt=_t||((Gt=window)===null||Gt===void 0?void 0:Gt.event),fn=kt.buttons;if(!Je||fn===0){Je&&Qe(!1);return}var mn=xt.current.x+_t.pageX-xt.current.x-xt.current.delta;mn<=0&&(mn=0),mn+We>=Pe&&(mn=Pe-We),Ze({scrollLeft:mn/Pe*(Le+2)}),xt.current.x=_t.pageX},bt=function(){var _t=Object(he.b)(vt.current).top,Gt=_t+vt.current.offsetHeight,kt=document.documentElement.scrollTop+window.innerHeight;Gt-Object(A.a)()<=kt||_t>=kt-ke?Zt(function(fn){return Object(Q.a)(Object(Q.a)({},fn),{},{isHiddenScrollBar:!0})}):Zt(function(fn){return Object(Q.a)(Object(Q.a)({},fn),{},{isHiddenScrollBar:!1})})},Dt=function(_t){Zt(function(Gt){return Object(Q.a)(Object(Q.a)({},Gt),{},{scrollLeft:_t/Le*Pe||0})})};return O.useImperativeHandle(Et,function(){return{setScrollLeft:Dt}}),O.useEffect(function(){var Qt=Object(et.a)(document.body,"mouseup",Oe,!1),_t=Object(et.a)(document.body,"mousemove",St,!1);return bt(),function(){Qt.remove(),_t.remove()}},[We,Je]),O.useEffect(function(){var Qt=Object(et.a)(window,"scroll",bt,!1),_t=Object(et.a)(window,"resize",bt,!1);return function(){Qt.remove(),_t.remove()}},[]),O.useEffect(function(){en.isHiddenScrollBar||Zt(function(Qt){var _t,Gt;return Object(Q.a)(Object(Q.a)({},Qt),{},{scrollLeft:vt.current.scrollLeft/((_t=vt.current)===null||_t===void 0?void 0:_t.scrollWidth)*((Gt=vt.current)===null||Gt===void 0?void 0:Gt.clientWidth)})})},[en.isHiddenScrollBar]),Le<=Pe||!We||en.isHiddenScrollBar?null:O.createElement("div",{style:{height:Object(A.a)(),width:Pe,bottom:ke},className:"".concat(we,"-sticky-scroll")},O.createElement("div",{onMouseDown:je,ref:Xe,className:T()("".concat(we,"-sticky-scroll-bar"),Object(Z.a)({},"".concat(we,"-sticky-scroll-bar-active"),Je)),style:{width:"".concat(We,"px"),transform:"translate3d(".concat(en.scrollLeft,"px, 0, 0)")}}))},Ue=O.forwardRef(Se);function Ne(ze,Ve){return O.useMemo(function(){var Et=!!ze;return{isSticky:Et,stickyClassName:Et?"".concat(Ve,"-sticky-header"):"",offsetHeader:Object(k.a)(ze)==="object"&&ze.offsetHeader||0,offsetScroll:Object(k.a)(ze)==="object"&&ze.offsetScroll||0}},[ze,Ve])}var ct=[],ft={},Ot="rc-table-internal-hook",dt=O.memo(function(ze){var Ve=ze.children;return Ve},function(ze,Ve){return p()(ze.props,Ve.props)?ze.pingLeft!==Ve.pingLeft||ze.pingRight!==Ve.pingRight:!1});function Ut(ze){var Ve,Et=ze.prefixCls,Rt=ze.className,ut=ze.rowClassName,vt=ze.style,Ze=ze.data,ke=ze.rowKey,He=ze.scroll,we=ze.tableLayout,Le=ze.direction,Pe=ze.title,We=ze.footer,Xe=ze.summary,gt=ze.id,Lt=ze.showHeader,en=ze.components,Zt=ze.emptyText,xt=ze.onRow,Ct=ze.onHeaderRow,mt=ze.internalHooks,Je=ze.transformColumns,Qe=ze.internalRefs,Oe=ze.sticky,je=Ze||ct,St=!!je.length,bt=O.useState(0),Dt=Object(_.a)(bt,2),Qt=Dt[0],_t=Dt[1];O.useEffect(function(){_t(Object(A.a)())});var Gt=O.useMemo(function(){return Object(E.c)(en,{})},[en]),kt=O.useCallback(function(ti,Sa){return Object(E.b)(Gt,ti)||Sa},[Gt]),fn=O.useMemo(function(){return typeof ke=="function"?ke:function(ti){var Sa=ti&&ti[ke];return Sa}},[ke]),mn=Object(s.c)(ze),Tr=mn.expandIcon,Mr=mn.expandedRowKeys,kr=mn.defaultExpandedRowKeys,Un=mn.defaultExpandAllRows,Ra=mn.expandedRowRender,Xr=mn.onExpand,aa=mn.onExpandedRowsChange,Kr=mn.expandRowByClick,_a=mn.rowExpandable,di=mn.expandIconColumnIndex,Ei=mn.expandedRowClassName,_e=mn.childrenColumnName,Ie=mn.indentSize,Ye=Tr||xe,yt=_e||"children",Xt=O.useMemo(function(){return Ra?"row":ze.expandable&&mt===Ot&&ze.expandable.__PARENT_RENDER_ICON__||je.some(function(ti){return ti&&Object(k.a)(ti)==="object"&&ti[yt]})?"nest":!1},[!!Ra,je]),sn=O.useState(function(){return kr||(Un?Ke(je,fn,yt):[])}),re=Object(_.a)(sn,2),W=re[0],V=re[1],ne=O.useMemo(function(){return new Set(Mr||W||[])},[Mr,W]),ve=O.useCallback(function(ti){var Sa=fn(ti,je.indexOf(ti)),Ia,Eo=ne.has(Sa);Eo?(ne.delete(Sa),Ia=Object(I.a)(ne)):Ia=[].concat(Object(I.a)(ne),[Sa]),V(Ia),Xr&&Xr(!Eo,ti),aa&&aa(Ia)},[fn,ne,je,Xr,aa]),oe=O.useState(0),tt=Object(_.a)(oe,2),Kt=tt[0],dn=tt[1],Cn=Object(ce.b)(Object(Q.a)(Object(Q.a)(Object(Q.a)({},ze),mn),{},{expandable:!!Ra,expandedKeys:ne,getRowKey:fn,onTriggerExpand:ve,expandIcon:Ye,expandIconColumnIndex:di,direction:Le}),mt===Ot?Je:null),Jt=Object(_.a)(Cn,2),Vn=Jt[0],Xn=Jt[1],lr=O.useMemo(function(){return{columns:Vn,flattenColumns:Xn}},[Vn,Xn]),Rr=O.useRef(),qr=O.useRef(),zr=O.useRef(),Ca=O.useState(!1),Dr=Object(_.a)(Ca,2),ya=Dr[0],ka=Dr[1],fi=O.useState(!1),Ka=Object(_.a)(fi,2),qa=Ka[0],Si=Ka[1],pi=le(new Map),ui=Object(_.a)(pi,2),mi=ui[0],_i=ui[1],ai=Object(E.a)(Xn),Hi=ai.map(function(ti){return mi.get(ti)}),Yi=O.useMemo(function(){return Hi},[Hi.join("_")]),$r=ge(Yi,Xn.length,Le),ua=He&&Object(E.d)(He.y),Pr=He&&Object(E.d)(He.x),ca=Pr&&Xn.some(function(ti){var Sa=ti.fixed;return Sa}),Jr=O.useRef(),ri=Ne(Oe,Et),pa=ri.isSticky,mo=ri.offsetHeader,Di=ri.offsetScroll,ci=ri.stickyClassName,Wo,Mo,ii;ua&&(Mo={overflowY:"scroll",maxHeight:He.y}),Pr&&(Wo={overflowX:"auto"},ua||(Mo={overflowY:"hidden"}),ii={width:He.x===!0?"auto":He.x,minWidth:"100%"});var go=O.useCallback(function(ti,Sa){_i(function(Ia){var Eo=new Map(Ia);return Eo.set(ti,Sa),Eo})},[]),no=me(null),hs=Object(_.a)(no,2),xo=hs[0],Cs=hs[1];function ws(ti,Sa){if(!Sa)return;typeof Sa=="function"?Sa(ti):Sa.scrollLeft!==ti&&(Sa.scrollLeft=ti)}var ho=function(Sa){var Ia=Sa.currentTarget,Eo=Sa.scrollLeft,xs=typeof Eo=="number"?Eo:Ia.scrollLeft,Ts=Ia||ft;if(!Cs()||Cs()===Ts){var Xs;xo(Ts),ws(xs,qr.current),ws(xs,zr.current),ws(xs,(Xs=Jr.current)===null||Xs===void 0?void 0:Xs.setScrollLeft)}if(Ia){var Ys=Ia.scrollWidth,il=Ia.clientWidth;ka(xs>0),Si(xs<Ys-il)}},As=function(){zr.current&&ho({currentTarget:zr.current})},mr=function(Sa){var Ia=Sa.width;As(),dn(Rr.current?Rr.current.offsetWidth:Ia)};O.useEffect(function(){return As},[]),O.useEffect(function(){Pr&&As()},[Pr]),O.useEffect(function(){mt===Ot&&Qe&&(Qe.body.current=zr.current)});var Vr=kt(["table"],"table"),ur=O.useMemo(function(){return we||(ca?He.x==="max-content"?"auto":"fixed":ua||Xn.some(function(ti){var Sa=ti.ellipsis;return Sa})?"fixed":"auto")},[ua,ca,Xn,we]),oa,wa={colWidths:Yi,columCount:Xn.length,stickyOffsets:$r,onHeaderRow:Ct,fixHeader:ua},ei=O.useMemo(function(){return St?null:typeof Zt=="function"?Zt():Zt},[St,Zt]),Ba=O.createElement(Ae,{data:je,measureColumnWidth:ua||Pr||pa,expandedKeys:ne,rowExpandable:_a,getRowKey:fn,onRow:xt,emptyNode:ei,childrenColumnName:yt}),Ni=O.createElement(m,{colWidths:Xn.map(function(ti){var Sa=ti.width;return Sa}),columns:Xn}),Ma=Xe&&O.createElement(Me.b,null,Xe(je)),xa=kt(["body"]);if(ua||pa){var Po;typeof xa=="function"?(Po=xa(je,{scrollbarSize:Qt,ref:zr,onScroll:ho}),wa.colWidths=Xn.map(function(ti,Sa){var Ia=ti.width,Eo=Sa===Vn.length-1?Ia-Qt:Ia;return typeof Eo=="number"&&!Number.isNaN(Eo)?Eo:(Object(a.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):Po=O.createElement("div",{style:Object(Q.a)(Object(Q.a)({},Wo),Mo),onScroll:ho,ref:zr,className:T()("".concat(Et,"-body"))},O.createElement(Vr,{style:Object(Q.a)(Object(Q.a)({},ii),{},{tableLayout:ur})},Ni,Ba,Ma),pa&&O.createElement(Ue,{ref:Jr,offsetScroll:Di,scrollBodyRef:zr,onScroll:ho})),oa=O.createElement(O.Fragment,null,Lt!==!1&&O.createElement(y,Object.assign({noData:!je.length},wa,lr,{direction:Le,offsetHeader:mo,stickyClassName:ci,ref:qr,onScroll:ho})),Po)}else oa=O.createElement("div",{style:Object(Q.a)(Object(Q.a)({},Wo),Mo),className:T()("".concat(Et,"-content")),onScroll:ho,ref:zr},O.createElement(Vr,{style:Object(Q.a)(Object(Q.a)({},ii),{},{tableLayout:ur})},Ni,Lt!==!1&&O.createElement(b,Object.assign({},wa,lr)),Ba,Ma));var Za=Object(s.b)(ze),ro=O.createElement("div",Object.assign({className:T()(Et,Rt,(Ve={},Object(Z.a)(Ve,"".concat(Et,"-rtl"),Le==="rtl"),Object(Z.a)(Ve,"".concat(Et,"-ping-left"),ya),Object(Z.a)(Ve,"".concat(Et,"-ping-right"),qa),Object(Z.a)(Ve,"".concat(Et,"-layout-fixed"),we==="fixed"),Object(Z.a)(Ve,"".concat(Et,"-fixed-header"),ua),Object(Z.a)(Ve,"".concat(Et,"-fixed-column"),ca),Object(Z.a)(Ve,"".concat(Et,"-scroll-horizontal"),Pr),Object(Z.a)(Ve,"".concat(Et,"-has-fix-left"),Xn[0]&&Xn[0].fixed),Object(Z.a)(Ve,"".concat(Et,"-has-fix-right"),Xn[Xn.length-1]&&Xn[Xn.length-1].fixed==="right"),Ve)),style:vt,id:gt,ref:Rr},Za),O.createElement(dt,{pingLeft:ya,pingRight:qa,props:Object(Q.a)(Object(Q.a)({},ze),{},{stickyOffsets:$r,mergedExpandedKeys:ne})},Pe&&O.createElement(pe,{className:"".concat(Et,"-title")},Pe(je)),O.createElement("div",{className:"".concat(Et,"-container")},oa),We&&O.createElement(pe,{className:"".concat(Et,"-footer")},We(je))));Pr&&(ro=O.createElement(t.a,{onResize:mr},ro));var so=O.useMemo(function(){return{prefixCls:Et,getComponent:kt,scrollbarSize:Qt,direction:Le,fixedInfoList:Xn.map(function(ti,Sa){return u(Sa,Sa,Xn,$r,Le)}),isSticky:pa}},[Et,kt,Qt,Le,Xn,$r,Le,pa]),To=O.useMemo(function(){return Object(Q.a)(Object(Q.a)({},lr),{},{tableLayout:ur,rowClassName:ut,expandedRowClassName:Ei,componentWidth:Kt,fixHeader:ua,fixColumn:ca,horizonScroll:Pr,expandIcon:Ye,expandableType:Xt,expandRowByClick:Kr,expandedRowRender:Ra,onTriggerExpand:ve,expandIconColumnIndex:di,indentSize:Ie})},[lr,ur,ut,Ei,Kt,ua,ca,Pr,Ye,Xt,Kr,Ra,ve,di,Ie]),Vs=O.useMemo(function(){return{onColumnResize:go}},[go]);return O.createElement(o.a.Provider,{value:so},O.createElement(N.Provider,{value:To},O.createElement(K.Provider,{value:Vs},ro)))}Ut.Column=i.a,Ut.ColumnGroup=l.a,Ut.Summary=Me.a,Ut.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var jt=ee.b=Ut},wOnQ:function(Be,ee,v){/*!
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
* Released under MIT License
*/(function(Z,Q){Be.exports=Q()})(this,function(){"use strict";/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Z=function(X,G){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,Y){J.__proto__=Y}||function(J,Y){for(var de in Y)Object.prototype.hasOwnProperty.call(Y,de)&&(J[de]=Y[de])},Z(X,G)};function Q(X,G){if(typeof G!="function"&&G!==null)throw new TypeError("Class extends value "+String(G)+" is not a constructor or null");Z(X,G);function J(){this.constructor=X}X.prototype=G===null?Object.create(G):(J.prototype=G.prototype,new J)}var I=function(){return I=Object.assign||function(G){for(var J,Y=1,de=arguments.length;Y<de;Y++){J=arguments[Y];for(var Ce in J)Object.prototype.hasOwnProperty.call(J,Ce)&&(G[Ce]=J[Ce])}return G},I.apply(this,arguments)};function k(X,G,J,Y){function de(Ce){return Ce instanceof J?Ce:new J(function(Fe){Fe(Ce)})}return new(J||(J=Promise))(function(Ce,Fe){function at(Ft){try{It(Y.next(Ft))}catch(nn){Fe(nn)}}function rt(Ft){try{It(Y.throw(Ft))}catch(nn){Fe(nn)}}function It(Ft){Ft.done?Ce(Ft.value):de(Ft.value).then(at,rt)}It((Y=Y.apply(X,G||[])).next())})}function _(X,G){var J={label:0,sent:function(){if(Ce[0]&1)throw Ce[1];return Ce[1]},trys:[],ops:[]},Y,de,Ce,Fe;return Fe={next:at(0),throw:at(1),return:at(2)},typeof Symbol=="function"&&(Fe[Symbol.iterator]=function(){return this}),Fe;function at(It){return function(Ft){return rt([It,Ft])}}function rt(It){if(Y)throw new TypeError("Generator is already executing.");for(;J;)try{if(Y=1,de&&(Ce=It[0]&2?de.return:It[0]?de.throw||((Ce=de.return)&&Ce.call(de),0):de.next)&&!(Ce=Ce.call(de,It[1])).done)return Ce;(de=0,Ce)&&(It=[It[0]&2,Ce.value]);switch(It[0]){case 0:case 1:Ce=It;break;case 4:return J.label++,{value:It[1],done:!1};case 5:J.label++,de=It[1],It=[0];continue;case 7:It=J.ops.pop(),J.trys.pop();continue;default:if(!(Ce=J.trys,Ce=Ce.length>0&&Ce[Ce.length-1])&&(It[0]===6||It[0]===2)){J=0;continue}if(It[0]===3&&(!Ce||It[1]>Ce[0]&&It[1]<Ce[3])){J.label=It[1];break}if(It[0]===6&&J.label<Ce[1]){J.label=Ce[1],Ce=It;break}if(Ce&&J.label<Ce[2]){J.label=Ce[2],J.ops.push(It);break}Ce[2]&&J.ops.pop(),J.trys.pop();continue}It=G.call(X,J)}catch(Ft){It=[6,Ft],de=0}finally{Y=Ce=0}if(It[0]&5)throw It[1];return{value:It[0]?It[1]:void 0,done:!0}}}function O(X,G,J){if(J||arguments.length===2)for(var Y=0,de=G.length,Ce;Y<de;Y++)(Ce||!(Y in G))&&(Ce||(Ce=Array.prototype.slice.call(G,0,Y)),Ce[Y]=G[Y]);return X.concat(Ce||G)}for(var M=function(){function X(G,J,Y,de){this.left=G,this.top=J,this.width=Y,this.height=de}return X.prototype.add=function(G,J,Y,de){return new X(this.left+G,this.top+J,this.width+Y,this.height+de)},X.fromClientRect=function(G,J){return new X(J.left+G.windowBounds.left,J.top+G.windowBounds.top,J.width,J.height)},X.fromDOMRectList=function(G,J){var Y=Array.from(J).find(function(de){return de.width!==0});return Y?new X(Y.left+G.windowBounds.left,Y.top+G.windowBounds.top,Y.width,Y.height):X.EMPTY},X.EMPTY=new X(0,0,0,0),X}(),T=function(X,G){return M.fromClientRect(X,G.getBoundingClientRect())},n=function(X){var G=X.body,J=X.documentElement;if(!G||!J)throw new Error("Unable to get document size");var Y=Math.max(Math.max(G.scrollWidth,J.scrollWidth),Math.max(G.offsetWidth,J.offsetWidth),Math.max(G.clientWidth,J.clientWidth)),de=Math.max(Math.max(G.scrollHeight,J.scrollHeight),Math.max(G.offsetHeight,J.offsetHeight),Math.max(G.clientHeight,J.clientHeight));return new M(0,0,Y,de)},p=function(X){for(var G=[],J=0,Y=X.length;J<Y;){var de=X.charCodeAt(J++);if(de>=55296&&de<=56319&&J<Y){var Ce=X.charCodeAt(J++);(Ce&64512)===56320?G.push(((de&1023)<<10)+(Ce&1023)+65536):(G.push(de),J--)}else G.push(de)}return G},a=function(){for(var X=[],G=0;G<arguments.length;G++)X[G]=arguments[G];if(String.fromCodePoint)return String.fromCodePoint.apply(String,X);var J=X.length;if(!J)return"";for(var Y=[],de=-1,Ce="";++de<J;){var Fe=X[de];Fe<=65535?Y.push(Fe):(Fe-=65536,Y.push((Fe>>10)+55296,Fe%1024+56320)),(de+1===J||Y.length>16384)&&(Ce+=String.fromCharCode.apply(String,Y),Y.length=0)}return Ce},t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),l=0;l<t.length;l++)A[t.charCodeAt(l)]=l;for(var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),d=0;d<i.length;d++)c[i.charCodeAt(d)]=d;for(var f=function(X){var G=X.length*.75,J=X.length,Y,de=0,Ce,Fe,at,rt;X[X.length-1]==="="&&(G--,X[X.length-2]==="="&&G--);var It=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(G):new Array(G),Ft=Array.isArray(It)?It:new Uint8Array(It);for(Y=0;Y<J;Y+=4)Ce=c[X.charCodeAt(Y)],Fe=c[X.charCodeAt(Y+1)],at=c[X.charCodeAt(Y+2)],rt=c[X.charCodeAt(Y+3)],Ft[de++]=Ce<<2|Fe>>4,Ft[de++]=(Fe&15)<<4|at>>2,Ft[de++]=(at&3)<<6|rt&63;return It},o=function(X){for(var G=X.length,J=[],Y=0;Y<G;Y+=2)J.push(X[Y+1]<<8|X[Y]);return J},u=function(X){for(var G=X.length,J=[],Y=0;Y<G;Y+=4)J.push(X[Y+3]<<24|X[Y+2]<<16|X[Y+1]<<8|X[Y]);return J},E=5,R=6+5,w=2,P=R-E,C=65536>>E,b=1<<E,s=b-1,h=1024>>E,m=C+h,x=m,g=2048>>6,y=x+g,U=65536>>R,N=1<<P,S=N-1,H=function(X,G,J){return X.slice?X.slice(G,J):new Uint16Array(Array.prototype.slice.call(X,G,J))},F=function(X,G,J){return X.slice?X.slice(G,J):new Uint32Array(Array.prototype.slice.call(X,G,J))},B=function(X,G){var J=f(X),Y=Array.isArray(J)?u(J):new Uint32Array(J),de=Array.isArray(J)?o(J):new Uint16Array(J),Ce=24,Fe=H(de,Ce/2,Y[4]/2),at=Y[5]===2?H(de,(Ce+Y[4])/2):F(Y,Math.ceil((Ce+Y[4])/4));return new z(Y[0],Y[1],Y[2],Y[3],Fe,at)},z=function(){function X(G,J,Y,de,Ce,Fe){this.initialValue=G,this.errorValue=J,this.highStart=Y,this.highValueIndex=de,this.index=Ce,this.data=Fe}return X.prototype.get=function(G){var J;if(G>=0){if(G<55296||G>56319&&G<=65535)return J=this.index[G>>E],J=(J<<w)+(G&s),this.data[J];if(G<=65535)return J=this.index[C+(G-55296>>E)],J=(J<<w)+(G&s),this.data[J];if(G<this.highStart)return J=y-U+(G>>R),J=this.index[J],J+=G>>E&S,J=this.index[J],J=(J<<w)+(G&s),this.data[J];if(G<=1114111)return this.data[this.highValueIndex]}return this.errorValue},X}(),K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),te=0;te<K.length;te++)$[K.charCodeAt(te)]=te;var fe="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==",Ae=50,ce=1,ie=2,ye=3,le=4,me=5,se=7,ge=8,ae=9,pe=10,Me=11,xe=12,Ke=13,et=14,he=15,Se=16,Ue=17,Ne=18,ct=19,ft=20,Ot=21,dt=22,Ut=23,jt=24,ze=25,Ve=26,Et=27,Rt=28,ut=29,vt=30,Ze=31,ke=32,He=33,we=34,Le=35,Pe=36,We=37,Xe=38,gt=39,Lt=40,en=41,Zt=42,xt=43,Ct=[9001,65288],mt="!",Je="\xD7",Qe="\xF7",Oe=B(fe),je=[vt,Pe],St=[ce,ie,ye,me],bt=[pe,ge],Dt=[Et,Ve],Qt=St.concat(bt),_t=[Xe,gt,Lt,we,Le],Gt=[he,Ke],kt=function(X,G){G===void 0&&(G="strict");var J=[],Y=[],de=[];return X.forEach(function(Ce,Fe){var at=Oe.get(Ce);if(at>Ae?(de.push(!0),at-=Ae):de.push(!1),["normal","auto","loose"].indexOf(G)!==-1&&[8208,8211,12316,12448].indexOf(Ce)!==-1)return Y.push(Fe),J.push(Se);if(at===le||at===Me){if(Fe===0)return Y.push(Fe),J.push(vt);var rt=J[Fe-1];return Qt.indexOf(rt)===-1?(Y.push(Y[Fe-1]),J.push(rt)):(Y.push(Fe),J.push(vt))}if(Y.push(Fe),at===Ze)return J.push(G==="strict"?Ot:We);if(at===Zt)return J.push(vt);if(at===ut)return J.push(vt);if(at===xt)return Ce>=131072&&Ce<=196605||Ce>=196608&&Ce<=262141?J.push(We):J.push(vt);J.push(at)}),[Y,J,de]},fn=function(X,G,J,Y){var de=Y[J];if(Array.isArray(X)?X.indexOf(de)!==-1:X===de)for(var Ce=J;Ce<=Y.length;){Ce++;var Fe=Y[Ce];if(Fe===G)return!0;if(Fe!==pe)break}if(de===pe)for(var Ce=J;Ce>0;){Ce--;var at=Y[Ce];if(Array.isArray(X)?X.indexOf(at)!==-1:X===at)for(var rt=J;rt<=Y.length;){rt++;var Fe=Y[rt];if(Fe===G)return!0;if(Fe!==pe)break}if(at!==pe)break}return!1},mn=function(X,G){for(var J=X;J>=0;){var Y=G[J];if(Y===pe)J--;else return Y}return 0},Tr=function(X,G,J,Y,de){if(J[Y]===0)return Je;var Ce=Y-1;if(Array.isArray(de)&&de[Ce]===!0)return Je;var Fe=Ce-1,at=Ce+1,rt=G[Ce],It=Fe>=0?G[Fe]:0,Ft=G[at];if(rt===ie&&Ft===ye)return Je;if(St.indexOf(rt)!==-1)return mt;if(St.indexOf(Ft)!==-1)return Je;if(bt.indexOf(Ft)!==-1)return Je;if(mn(Ce,G)===ge)return Qe;if(Oe.get(X[Ce])===Me)return Je;if((rt===ke||rt===He)&&Oe.get(X[at])===Me)return Je;if(rt===se||Ft===se)return Je;if(rt===ae)return Je;if([pe,Ke,he].indexOf(rt)===-1&&Ft===ae)return Je;if([Ue,Ne,ct,jt,Rt].indexOf(Ft)!==-1)return Je;if(mn(Ce,G)===dt)return Je;if(fn(Ut,dt,Ce,G))return Je;if(fn([Ue,Ne],Ot,Ce,G))return Je;if(fn(xe,xe,Ce,G))return Je;if(rt===pe)return Qe;if(rt===Ut||Ft===Ut)return Je;if(Ft===Se||rt===Se)return Qe;if([Ke,he,Ot].indexOf(Ft)!==-1||rt===et)return Je;if(It===Pe&&Gt.indexOf(rt)!==-1)return Je;if(rt===Rt&&Ft===Pe)return Je;if(Ft===ft)return Je;if(je.indexOf(Ft)!==-1&&rt===ze||je.indexOf(rt)!==-1&&Ft===ze)return Je;if(rt===Et&&[We,ke,He].indexOf(Ft)!==-1||[We,ke,He].indexOf(rt)!==-1&&Ft===Ve)return Je;if(je.indexOf(rt)!==-1&&Dt.indexOf(Ft)!==-1||Dt.indexOf(rt)!==-1&&je.indexOf(Ft)!==-1)return Je;if([Et,Ve].indexOf(rt)!==-1&&(Ft===ze||[dt,he].indexOf(Ft)!==-1&&G[at+1]===ze)||[dt,he].indexOf(rt)!==-1&&Ft===ze||rt===ze&&[ze,Rt,jt].indexOf(Ft)!==-1)return Je;if([ze,Rt,jt,Ue,Ne].indexOf(Ft)!==-1)for(var nn=Ce;nn>=0;){var un=G[nn];if(un===ze)return Je;if([Rt,jt].indexOf(un)!==-1)nn--;else break}if([Et,Ve].indexOf(Ft)!==-1)for(var nn=[Ue,Ne].indexOf(rt)!==-1?Fe:Ce;nn>=0;){var un=G[nn];if(un===ze)return Je;if([Rt,jt].indexOf(un)!==-1)nn--;else break}if(Xe===rt&&[Xe,gt,we,Le].indexOf(Ft)!==-1||[gt,we].indexOf(rt)!==-1&&[gt,Lt].indexOf(Ft)!==-1||[Lt,Le].indexOf(rt)!==-1&&Ft===Lt)return Je;if(_t.indexOf(rt)!==-1&&[ft,Ve].indexOf(Ft)!==-1||_t.indexOf(Ft)!==-1&&rt===Et)return Je;if(je.indexOf(rt)!==-1&&je.indexOf(Ft)!==-1)return Je;if(rt===jt&&je.indexOf(Ft)!==-1)return Je;if(je.concat(ze).indexOf(rt)!==-1&&Ft===dt&&Ct.indexOf(X[at])===-1||je.concat(ze).indexOf(Ft)!==-1&&rt===Ne)return Je;if(rt===en&&Ft===en){for(var Sr=J[Ce],Qn=1;Sr>0&&(Sr--,G[Sr]===en);)Qn++;if(Qn%2!==0)return Je}return rt===ke&&Ft===He?Je:Qe},Mr=function(X,G){G||(G={lineBreak:"normal",wordBreak:"normal"});var J=kt(X,G.lineBreak),Y=J[0],de=J[1],Ce=J[2];(G.wordBreak==="break-all"||G.wordBreak==="break-word")&&(de=de.map(function(at){return[ze,vt,Zt].indexOf(at)!==-1?We:at}));var Fe=G.wordBreak==="keep-all"?Ce.map(function(at,rt){return at&&X[rt]>=19968&&X[rt]<=40959}):void 0;return[Y,de,Fe]},kr=function(){function X(G,J,Y,de){this.codePoints=G,this.required=J===mt,this.start=Y,this.end=de}return X.prototype.slice=function(){return a.apply(void 0,this.codePoints.slice(this.start,this.end))},X}(),Un=function(X,G){var J=p(X),Y=Mr(J,G),de=Y[0],Ce=Y[1],Fe=Y[2],at=J.length,rt=0,It=0;return{next:function(){if(It>=at)return{done:!0,value:null};for(var Ft=Je;It<at&&(Ft=Tr(J,Ce,de,++It,Fe))===Je;);if(Ft!==Je||It===at){var nn=new kr(J,Ft,rt,It);return rt=It,{value:nn,done:!1}}return{done:!0,value:null}}}},Ra=1<<0,Xr=1<<1,aa=1<<2,Kr=1<<3,_a=10,di=47,Ei=92,_e=9,Ie=32,Ye=34,yt=61,Xt=35,sn=36,re=37,W=39,V=40,ne=41,ve=95,oe=45,tt=33,Kt=60,dn=62,Cn=64,Jt=91,Vn=93,Xn=61,lr=123,Rr=63,qr=125,zr=124,Ca=126,Dr=128,ya=65533,ka=42,fi=43,Ka=44,qa=58,Si=59,pi=46,ui=0,mi=8,_i=11,ai=14,Hi=31,Yi=127,$r=-1,ua=48,Pr=97,ca=101,Jr=102,ri=117,pa=122,mo=65,Di=69,ci=70,Wo=85,Mo=90,ii=function(X){return X>=ua&&X<=57},go=function(X){return X>=55296&&X<=57343},no=function(X){return ii(X)||X>=mo&&X<=ci||X>=Pr&&X<=Jr},hs=function(X){return X>=Pr&&X<=pa},xo=function(X){return X>=mo&&X<=Mo},Cs=function(X){return hs(X)||xo(X)},ws=function(X){return X>=Dr},ho=function(X){return X===_a||X===_e||X===Ie},As=function(X){return Cs(X)||ws(X)||X===ve},mr=function(X){return As(X)||ii(X)||X===oe},Vr=function(X){return X>=ui&&X<=mi||X===_i||X>=ai&&X<=Hi||X===Yi},ur=function(X,G){return X!==Ei?!1:G!==_a},oa=function(X,G,J){return X===oe?As(G)||ur(G,J):As(X)?!0:!!(X===Ei&&ur(X,G))},wa=function(X,G,J){return X===fi||X===oe?ii(G)?!0:G===pi&&ii(J):X===pi?ii(G):ii(X)},ei=function(X){var G=0,J=1;(X[G]===fi||X[G]===oe)&&(X[G]===oe&&(J=-1),G++);for(var Y=[];ii(X[G]);)Y.push(X[G++]);var de=Y.length?parseInt(a.apply(void 0,Y),10):0;X[G]===pi&&G++;for(var Ce=[];ii(X[G]);)Ce.push(X[G++]);var Fe=Ce.length,at=Fe?parseInt(a.apply(void 0,Ce),10):0;(X[G]===Di||X[G]===ca)&&G++;var rt=1;(X[G]===fi||X[G]===oe)&&(X[G]===oe&&(rt=-1),G++);for(var It=[];ii(X[G]);)It.push(X[G++]);var Ft=It.length?parseInt(a.apply(void 0,It),10):0;return J*(de+at*Math.pow(10,-Fe))*Math.pow(10,rt*Ft)},Ba={type:2},Ni={type:3},Ma={type:4},xa={type:13},Po={type:8},Za={type:21},ro={type:9},so={type:10},To={type:11},Vs={type:12},ti={type:14},Sa={type:23},Ia={type:1},Eo={type:25},xs={type:24},Ts={type:26},Xs={type:27},Ys={type:28},il={type:29},ml={type:31},Js={type:32},Ps=function(){function X(){this._value=[]}return X.prototype.write=function(G){this._value=this._value.concat(p(G))},X.prototype.read=function(){for(var G=[],J=this.consumeToken();J!==Js;)G.push(J),J=this.consumeToken();return G},X.prototype.consumeToken=function(){var G=this.consumeCodePoint();switch(G){case Ye:return this.consumeStringToken(Ye);case Xt:var J=this.peekCodePoint(0),Y=this.peekCodePoint(1),de=this.peekCodePoint(2);if(mr(J)||ur(Y,de)){var Ce=oa(J,Y,de)?Xr:Ra,Fe=this.consumeName();return{type:5,value:Fe,flags:Ce}}break;case sn:if(this.peekCodePoint(0)===yt)return this.consumeCodePoint(),xa;break;case W:return this.consumeStringToken(W);case V:return Ba;case ne:return Ni;case ka:if(this.peekCodePoint(0)===yt)return this.consumeCodePoint(),ti;break;case fi:if(wa(G,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(G),this.consumeNumericToken();break;case Ka:return Ma;case oe:var at=G,rt=this.peekCodePoint(0),It=this.peekCodePoint(1);if(wa(at,rt,It))return this.reconsumeCodePoint(G),this.consumeNumericToken();if(oa(at,rt,It))return this.reconsumeCodePoint(G),this.consumeIdentLikeToken();if(rt===oe&&It===dn)return this.consumeCodePoint(),this.consumeCodePoint(),xs;break;case pi:if(wa(G,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(G),this.consumeNumericToken();break;case di:if(this.peekCodePoint(0)===ka)for(this.consumeCodePoint();;){var Ft=this.consumeCodePoint();if(Ft===ka&&(Ft=this.consumeCodePoint(),Ft===di))return this.consumeToken();if(Ft===$r)return this.consumeToken()}break;case qa:return Ts;case Si:return Xs;case Kt:if(this.peekCodePoint(0)===tt&&this.peekCodePoint(1)===oe&&this.peekCodePoint(2)===oe)return this.consumeCodePoint(),this.consumeCodePoint(),Eo;break;case Cn:var nn=this.peekCodePoint(0),un=this.peekCodePoint(1),Sr=this.peekCodePoint(2);if(oa(nn,un,Sr)){var Fe=this.consumeName();return{type:7,value:Fe}}break;case Jt:return Ys;case Ei:if(ur(G,this.peekCodePoint(0)))return this.reconsumeCodePoint(G),this.consumeIdentLikeToken();break;case Vn:return il;case Xn:if(this.peekCodePoint(0)===yt)return this.consumeCodePoint(),Po;break;case lr:return To;case qr:return Vs;case ri:case Wo:var Qn=this.peekCodePoint(0),Ar=this.peekCodePoint(1);return Qn===fi&&(no(Ar)||Ar===Rr)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(G),this.consumeIdentLikeToken();case zr:if(this.peekCodePoint(0)===yt)return this.consumeCodePoint(),ro;if(this.peekCodePoint(0)===zr)return this.consumeCodePoint(),Za;break;case Ca:if(this.peekCodePoint(0)===yt)return this.consumeCodePoint(),so;break;case $r:return Js}return ho(G)?(this.consumeWhiteSpace(),ml):ii(G)?(this.reconsumeCodePoint(G),this.consumeNumericToken()):As(G)?(this.reconsumeCodePoint(G),this.consumeIdentLikeToken()):{type:6,value:a(G)}},X.prototype.consumeCodePoint=function(){var G=this._value.shift();return typeof G=="undefined"?-1:G},X.prototype.reconsumeCodePoint=function(G){this._value.unshift(G)},X.prototype.peekCodePoint=function(G){return G>=this._value.length?-1:this._value[G]},X.prototype.consumeUnicodeRangeToken=function(){for(var G=[],J=this.consumeCodePoint();no(J)&&G.length<6;)G.push(J),J=this.consumeCodePoint();for(var Y=!1;J===Rr&&G.length<6;)G.push(J),J=this.consumeCodePoint(),Y=!0;if(Y){var de=parseInt(a.apply(void 0,G.map(function(rt){return rt===Rr?ua:rt})),16),Ce=parseInt(a.apply(void 0,G.map(function(rt){return rt===Rr?ci:rt})),16);return{type:30,start:de,end:Ce}}var Fe=parseInt(a.apply(void 0,G),16);if(this.peekCodePoint(0)===oe&&no(this.peekCodePoint(1))){this.consumeCodePoint(),J=this.consumeCodePoint();for(var at=[];no(J)&&at.length<6;)at.push(J),J=this.consumeCodePoint();var Ce=parseInt(a.apply(void 0,at),16);return{type:30,start:Fe,end:Ce}}else return{type:30,start:Fe,end:Fe}},X.prototype.consumeIdentLikeToken=function(){var G=this.consumeName();return G.toLowerCase()==="url"&&this.peekCodePoint(0)===V?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===V?(this.consumeCodePoint(),{type:19,value:G}):{type:20,value:G}},X.prototype.consumeUrlToken=function(){var G=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===$r)return{type:22,value:""};var J=this.peekCodePoint(0);if(J===W||J===Ye){var Y=this.consumeStringToken(this.consumeCodePoint());return Y.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===$r||this.peekCodePoint(0)===ne)?(this.consumeCodePoint(),{type:22,value:Y.value}):(this.consumeBadUrlRemnants(),Sa)}for(;;){var de=this.consumeCodePoint();if(de===$r||de===ne)return{type:22,value:a.apply(void 0,G)};if(ho(de))return this.consumeWhiteSpace(),this.peekCodePoint(0)===$r||this.peekCodePoint(0)===ne?(this.consumeCodePoint(),{type:22,value:a.apply(void 0,G)}):(this.consumeBadUrlRemnants(),Sa);if(de===Ye||de===W||de===V||Vr(de))return this.consumeBadUrlRemnants(),Sa;if(de===Ei)if(ur(de,this.peekCodePoint(0)))G.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Sa;else G.push(de)}},X.prototype.consumeWhiteSpace=function(){for(;ho(this.peekCodePoint(0));)this.consumeCodePoint()},X.prototype.consumeBadUrlRemnants=function(){for(;;){var G=this.consumeCodePoint();if(G===ne||G===$r)return;ur(G,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},X.prototype.consumeStringSlice=function(G){for(var J=5e4,Y="";G>0;){var de=Math.min(J,G);Y+=a.apply(void 0,this._value.splice(0,de)),G-=de}return this._value.shift(),Y},X.prototype.consumeStringToken=function(G){var J="",Y=0;do{var de=this._value[Y];if(de===$r||de===void 0||de===G)return J+=this.consumeStringSlice(Y),{type:0,value:J};if(de===_a)return this._value.splice(0,Y),Ia;if(de===Ei){var Ce=this._value[Y+1];Ce!==$r&&Ce!==void 0&&(Ce===_a?(J+=this.consumeStringSlice(Y),Y=-1,this._value.shift()):ur(de,Ce)&&(J+=this.consumeStringSlice(Y),J+=a(this.consumeEscapedCodePoint()),Y=-1))}Y++}while(!0)},X.prototype.consumeNumber=function(){var G=[],J=aa,Y=this.peekCodePoint(0);for((Y===fi||Y===oe)&&G.push(this.consumeCodePoint());ii(this.peekCodePoint(0));)G.push(this.consumeCodePoint());Y=this.peekCodePoint(0);var de=this.peekCodePoint(1);if(Y===pi&&ii(de))for(G.push(this.consumeCodePoint(),this.consumeCodePoint()),J=Kr;ii(this.peekCodePoint(0));)G.push(this.consumeCodePoint());Y=this.peekCodePoint(0),de=this.peekCodePoint(1);var Ce=this.peekCodePoint(2);if((Y===Di||Y===ca)&&((de===fi||de===oe)&&ii(Ce)||ii(de)))for(G.push(this.consumeCodePoint(),this.consumeCodePoint()),J=Kr;ii(this.peekCodePoint(0));)G.push(this.consumeCodePoint());return[ei(G),J]},X.prototype.consumeNumericToken=function(){var G=this.consumeNumber(),J=G[0],Y=G[1],de=this.peekCodePoint(0),Ce=this.peekCodePoint(1),Fe=this.peekCodePoint(2);if(oa(de,Ce,Fe)){var at=this.consumeName();return{type:15,number:J,flags:Y,unit:at}}return de===re?(this.consumeCodePoint(),{type:16,number:J,flags:Y}):{type:17,number:J,flags:Y}},X.prototype.consumeEscapedCodePoint=function(){var G=this.consumeCodePoint();if(no(G)){for(var J=a(G);no(this.peekCodePoint(0))&&J.length<6;)J+=a(this.consumeCodePoint());ho(this.peekCodePoint(0))&&this.consumeCodePoint();var Y=parseInt(J,16);return Y===0||go(Y)||Y>1114111?ya:Y}return G===$r?ya:G},X.prototype.consumeName=function(){for(var G="";;){var J=this.consumeCodePoint();if(mr(J))G+=a(J);else if(ur(J,this.peekCodePoint(0)))G+=a(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(J),G}},X}(),gl=function(){function X(G){this._tokens=G}return X.create=function(G){var J=new Ps;return J.write(G),new X(J.read())},X.parseValue=function(G){return X.create(G).parseComponentValue()},X.parseValues=function(G){return X.create(G).parseComponentValues()},X.prototype.parseComponentValue=function(){for(var G=this.consumeToken();G.type===31;)G=this.consumeToken();if(G.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(G);var J=this.consumeComponentValue();do G=this.consumeToken();while(G.type===31);if(G.type===32)return J;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},X.prototype.parseComponentValues=function(){for(var G=[];;){var J=this.consumeComponentValue();if(J.type===32)return G;G.push(J),G.push()}},X.prototype.consumeComponentValue=function(){var G=this.consumeToken();switch(G.type){case 11:case 28:case 2:return this.consumeSimpleBlock(G.type);case 19:return this.consumeFunction(G)}return G},X.prototype.consumeSimpleBlock=function(G){for(var J={type:G,values:[]},Y=this.consumeToken();;){if(Y.type===32||wt(Y,G))return J;this.reconsumeToken(Y),J.values.push(this.consumeComponentValue()),Y=this.consumeToken()}},X.prototype.consumeFunction=function(G){for(var J={name:G.value,values:[],type:18};;){var Y=this.consumeToken();if(Y.type===32||Y.type===3)return J;this.reconsumeToken(Y),J.values.push(this.consumeComponentValue())}},X.prototype.consumeToken=function(){var G=this._tokens.shift();return typeof G=="undefined"?Js:G},X.prototype.reconsumeToken=function(G){this._tokens.unshift(G)},X}(),Us=function(X){return X.type===15},Ns=function(X){return X.type===17},gi=function(X){return X.type===20},Hs=function(X){return X.type===0},$o=function(X,G){return gi(X)&&X.value===G},ol=function(X){return X.type!==31},$e=function(X){return X.type!==31&&X.type!==4},pt=function(X){var G=[],J=[];return X.forEach(function(Y){if(Y.type===4){if(J.length===0)throw new Error("Error parsing function args, zero tokens for arg");G.push(J),J=[];return}Y.type!==31&&J.push(Y)}),J.length&&G.push(J),G},wt=function(X,G){return G===11&&X.type===12||G===28&&X.type===29?!0:G===2&&X.type===3},nt=function(X){return X.type===17||X.type===15},Te=function(X){return X.type===16||nt(X)},Ge=function(X){return X.length>1?[X[0],X[1]]:[X[0]]},Re={type:17,number:0,flags:aa},it={type:16,number:50,flags:aa},st={type:16,number:100,flags:aa},Tt=function(X,G,J){var Y=X[0],de=X[1];return[ht(Y,G),ht(typeof de!="undefined"?de:Y,J)]},ht=function(X,G){if(X.type===16)return X.number/100*G;if(Us(X))switch(X.unit){case"rem":case"em":return 16*X.number;case"px":default:return X.number}return X.number},Mt="deg",tn="grad",lt="rad",qe="turn",Bt={name:"angle",parse:function(X,G){if(G.type===15)switch(G.unit){case Mt:return Math.PI*G.number/180;case tn:return Math.PI/200*G.number;case lt:return G.number;case qe:return Math.PI*2*G.number}throw new Error("Unsupported angle type")}},$t=function(X){return X.type===15&&(X.unit===Mt||X.unit===tn||X.unit===lt||X.unit===qe)},cn=function(X){var G=X.filter(gi).map(function(J){return J.value}).join(" ");switch(G){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Re,Re];case"to top":case"bottom":return Wt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Re,st];case"to right":case"left":return Wt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[st,st];case"to bottom":case"top":return Wt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[st,Re];case"to left":case"right":return Wt(270)}return 0},Wt=function(X){return Math.PI*X/180},_n={name:"color",parse:function(X,G){if(G.type===18){var J=wn[G.name];if(typeof J=="undefined")throw new Error('Attempting to parse an unsupported color function "'+G.name+'"');return J(X,G.values)}if(G.type===5){if(G.value.length===3){var Y=G.value.substring(0,1),de=G.value.substring(1,2),Ce=G.value.substring(2,3);return An(parseInt(Y+Y,16),parseInt(de+de,16),parseInt(Ce+Ce,16),1)}if(G.value.length===4){var Y=G.value.substring(0,1),de=G.value.substring(1,2),Ce=G.value.substring(2,3),Fe=G.value.substring(3,4);return An(parseInt(Y+Y,16),parseInt(de+de,16),parseInt(Ce+Ce,16),parseInt(Fe+Fe,16)/255)}if(G.value.length===6){var Y=G.value.substring(0,2),de=G.value.substring(2,4),Ce=G.value.substring(4,6);return An(parseInt(Y,16),parseInt(de,16),parseInt(Ce,16),1)}if(G.value.length===8){var Y=G.value.substring(0,2),de=G.value.substring(2,4),Ce=G.value.substring(4,6),Fe=G.value.substring(6,8);return An(parseInt(Y,16),parseInt(de,16),parseInt(Ce,16),parseInt(Fe,16)/255)}}if(G.type===20){var at=xn[G.value.toUpperCase()];if(typeof at!="undefined")return at}return xn.TRANSPARENT}},rn=function(X){return(255&X)===0},Ht=function(X){var G=255&X,J=255&X>>8,Y=255&X>>16,de=255&X>>24;return G<255?"rgba("+de+","+Y+","+J+","+G/255+")":"rgb("+de+","+Y+","+J+")"},An=function(X,G,J,Y){return(X<<24|G<<16|J<<8|Math.round(Y*255)<<0)>>>0},qt=function(X,G){if(X.type===17)return X.number;if(X.type===16){var J=G===3?1:255;return G===3?X.number/100*J:Math.round(X.number/100*J)}return 0},En=function(X,G){var J=G.filter($e);if(J.length===3){var Y=J.map(qt),de=Y[0],Ce=Y[1],Fe=Y[2];return An(de,Ce,Fe,1)}if(J.length===4){var at=J.map(qt),de=at[0],Ce=at[1],Fe=at[2],rt=at[3];return An(de,Ce,Fe,rt)}return 0};function kn(X,G,J){return J<0&&(J+=1),J>=1&&(J-=1),J<1/6?(G-X)*J*6+X:J<1/2?G:J<2/3?(G-X)*6*(2/3-J)+X:X}var Yt=function(X,G){var J=G.filter($e),Y=J[0],de=J[1],Ce=J[2],Fe=J[3],at=(Y.type===17?Wt(Y.number):Bt.parse(X,Y))/(Math.PI*2),rt=Te(de)?de.number/100:0,It=Te(Ce)?Ce.number/100:0,Ft=typeof Fe!="undefined"&&Te(Fe)?ht(Fe,1):1;if(rt===0)return An(It*255,It*255,It*255,1);var nn=It<=.5?It*(rt+1):It+rt-It*rt,un=It*2-nn,Sr=kn(un,nn,at+1/3),Qn=kn(un,nn,at),Ar=kn(un,nn,at-1/3);return An(Sr*255,Qn*255,Ar*255,Ft)},wn={hsl:Yt,hsla:Yt,rgb:En,rgba:En},ln=function(X,G){return _n.parse(X,gl.create(G).parseComponentValue())},xn={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},an={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(X,G){return G.map(function(J){if(gi(J))switch(J.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Vt={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Sn=function(X,G){var J=_n.parse(X,G[0]),Y=G[1];return Y&&Te(Y)?{color:J,stop:Y}:{color:J,stop:null}},hr=function(X,G){var J=X[0],Y=X[X.length-1];J.stop===null&&(J.stop=Re),Y.stop===null&&(Y.stop=st);for(var de=[],Ce=0,Fe=0;Fe<X.length;Fe++){var at=X[Fe].stop;if(at!==null){var rt=ht(at,G);rt>Ce?de.push(rt):de.push(Ce),Ce=rt}else de.push(null)}for(var It=null,Fe=0;Fe<de.length;Fe++){var Ft=de[Fe];if(Ft===null)It===null&&(It=Fe);else if(It!==null){for(var nn=Fe-It,un=de[It-1],Sr=(Ft-un)/(nn+1),Qn=1;Qn<=nn;Qn++)de[It+Qn-1]=Sr*Qn;It=null}}return X.map(function(Ar,va){var wr=Ar.color;return{color:wr,stop:Math.max(Math.min(1,de[va]/G),0)}})},pn=function(X,G,J){var Y=G/2,de=J/2,Ce=ht(X[0],G)-Y,Fe=de-ht(X[1],J);return(Math.atan2(Fe,Ce)+Math.PI*2)%(Math.PI*2)},Dn=function(X,G,J){var Y=typeof X=="number"?X:pn(X,G,J),de=Math.abs(G*Math.sin(Y))+Math.abs(J*Math.cos(Y)),Ce=G/2,Fe=J/2,at=de/2,rt=Math.sin(Y-Math.PI/2)*at,It=Math.cos(Y-Math.PI/2)*at;return[de,Ce-It,Ce+It,Fe-rt,Fe+rt]},Nn=function(X,G){return Math.sqrt(X*X+G*G)},Gn=function(X,G,J,Y,de){var Ce=[[0,0],[0,G],[X,0],[X,G]];return Ce.reduce(function(Fe,at){var rt=at[0],It=at[1],Ft=Nn(J-rt,Y-It);return(de?Ft<Fe.optimumDistance:Ft>Fe.optimumDistance)?{optimumCorner:at,optimumDistance:Ft}:Fe},{optimumDistance:de?Infinity:-Infinity,optimumCorner:null}).optimumCorner},yn=function(X,G,J,Y,de){var Ce=0,Fe=0;switch(X.size){case 0:X.shape===0?Ce=Fe=Math.min(Math.abs(G),Math.abs(G-Y),Math.abs(J),Math.abs(J-de)):X.shape===1&&(Ce=Math.min(Math.abs(G),Math.abs(G-Y)),Fe=Math.min(Math.abs(J),Math.abs(J-de)));break;case 2:if(X.shape===0)Ce=Fe=Math.min(Nn(G,J),Nn(G,J-de),Nn(G-Y,J),Nn(G-Y,J-de));else if(X.shape===1){var at=Math.min(Math.abs(J),Math.abs(J-de))/Math.min(Math.abs(G),Math.abs(G-Y)),rt=Gn(Y,de,G,J,!0),It=rt[0],Ft=rt[1];Ce=Nn(It-G,(Ft-J)/at),Fe=at*Ce}break;case 1:X.shape===0?Ce=Fe=Math.max(Math.abs(G),Math.abs(G-Y),Math.abs(J),Math.abs(J-de)):X.shape===1&&(Ce=Math.max(Math.abs(G),Math.abs(G-Y)),Fe=Math.max(Math.abs(J),Math.abs(J-de)));break;case 3:if(X.shape===0)Ce=Fe=Math.max(Nn(G,J),Nn(G,J-de),Nn(G-Y,J),Nn(G-Y,J-de));else if(X.shape===1){var at=Math.max(Math.abs(J),Math.abs(J-de))/Math.max(Math.abs(G),Math.abs(G-Y)),nn=Gn(Y,de,G,J,!1),It=nn[0],Ft=nn[1];Ce=Nn(It-G,(Ft-J)/at),Fe=at*Ce}break}return Array.isArray(X.size)&&(Ce=ht(X.size[0],Y),Fe=X.size.length===2?ht(X.size[1],de):Ce),[Ce,Fe]},Kn=function(X,G){var J=Wt(180),Y=[];return pt(G).forEach(function(de,Ce){if(Ce===0){var Fe=de[0];if(Fe.type===20&&Fe.value==="to"){J=cn(de);return}else if($t(Fe)){J=Bt.parse(X,Fe);return}}var at=Sn(X,de);Y.push(at)}),{angle:J,stops:Y,type:1}},or=function(X,G){var J=Wt(180),Y=[];return pt(G).forEach(function(de,Ce){if(Ce===0){var Fe=de[0];if(Fe.type===20&&["top","left","right","bottom"].indexOf(Fe.value)!==-1){J=cn(de);return}else if($t(Fe)){J=(Bt.parse(X,Fe)+Wt(270))%Wt(360);return}}var at=Sn(X,de);Y.push(at)}),{angle:J,stops:Y,type:1}},gr=function(X,G){var J=Wt(180),Y=[],de=1,Ce=0,Fe=3,at=[];return pt(G).forEach(function(rt,It){var Ft=rt[0];if(It===0){if(gi(Ft)&&Ft.value==="linear"){de=1;return}else if(gi(Ft)&&Ft.value==="radial"){de=2;return}}if(Ft.type===18){if(Ft.name==="from"){var nn=_n.parse(X,Ft.values[0]);Y.push({stop:Re,color:nn})}else if(Ft.name==="to"){var nn=_n.parse(X,Ft.values[0]);Y.push({stop:st,color:nn})}else if(Ft.name==="color-stop"){var un=Ft.values.filter($e);if(un.length===2){var nn=_n.parse(X,un[1]),Sr=un[0];Ns(Sr)&&Y.push({stop:{type:16,number:Sr.number*100,flags:Sr.flags},color:nn})}}}}),de===1?{angle:(J+Wt(180))%Wt(360),stops:Y,type:de}:{size:Fe,shape:Ce,stops:Y,position:at,type:de}},Ur="closest-side",er="farthest-side",rr="closest-corner",Lr="farthest-corner",Er="circle",_r="ellipse",sa="cover",ta="contain",tr=function(X,G){var J=0,Y=3,de=[],Ce=[];return pt(G).forEach(function(Fe,at){var rt=!0;if(at===0){var It=!1;rt=Fe.reduce(function(nn,un){if(It)if(gi(un))switch(un.value){case"center":return Ce.push(it),nn;case"top":case"left":return Ce.push(Re),nn;case"right":case"bottom":return Ce.push(st),nn}else(Te(un)||nt(un))&&Ce.push(un);else if(gi(un))switch(un.value){case Er:return J=0,!1;case _r:return J=1,!1;case"at":return It=!0,!1;case Ur:return Y=0,!1;case sa:case er:return Y=1,!1;case ta:case rr:return Y=2,!1;case Lr:return Y=3,!1}else if(nt(un)||Te(un))return Array.isArray(Y)||(Y=[]),Y.push(un),!1;return nn},rt)}if(rt){var Ft=Sn(X,Fe);de.push(Ft)}}),{size:Y,shape:J,stops:de,position:Ce,type:2}},vr=function(X,G){var J=0,Y=3,de=[],Ce=[];return pt(G).forEach(function(Fe,at){var rt=!0;if(at===0?rt=Fe.reduce(function(Ft,nn){if(gi(nn))switch(nn.value){case"center":return Ce.push(it),!1;case"top":case"left":return Ce.push(Re),!1;case"right":case"bottom":return Ce.push(st),!1}else if(Te(nn)||nt(nn))return Ce.push(nn),!1;return Ft},rt):at===1&&(rt=Fe.reduce(function(Ft,nn){if(gi(nn))switch(nn.value){case Er:return J=0,!1;case _r:return J=1,!1;case ta:case Ur:return Y=0,!1;case er:return Y=1,!1;case rr:return Y=2,!1;case sa:case Lr:return Y=3,!1}else if(nt(nn)||Te(nn))return Array.isArray(Y)||(Y=[]),Y.push(nn),!1;return Ft},rt)),rt){var It=Sn(X,Fe);de.push(It)}}),{size:Y,shape:J,stops:de,position:Ce,type:2}},ja=function(X){return X.type===1},ia=function(X){return X.type===2},Yn={name:"image",parse:function(X,G){if(G.type===22){var J={url:G.value,type:0};return X.cache.addImage(G.value),J}if(G.type===18){var Y=yr[G.name];if(typeof Y=="undefined")throw new Error('Attempting to parse an unsupported image function "'+G.name+'"');return Y(X,G.values)}throw new Error("Unsupported image type "+G.type)}};function vn(X){return!(X.type===20&&X.value==="none")&&(X.type!==18||!!yr[X.name])}var yr={"linear-gradient":Kn,"-moz-linear-gradient":or,"-ms-linear-gradient":or,"-o-linear-gradient":or,"-webkit-linear-gradient":or,"radial-gradient":tr,"-moz-radial-gradient":vr,"-ms-radial-gradient":vr,"-o-radial-gradient":vr,"-webkit-radial-gradient":vr,"-webkit-gradient":gr},oi={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(X,G){if(G.length===0)return[];var J=G[0];return J.type===20&&J.value==="none"?[]:G.filter(function(Y){return $e(Y)&&vn(Y)}).map(function(Y){return Yn.parse(X,Y)})}},Cr={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(X,G){return G.map(function(J){if(gi(J))switch(J.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ir={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(X,G){return pt(G).map(function(J){return J.filter(Te)}).map(Ge)}},fr={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(X,G){return pt(G).map(function(J){return J.filter(gi).map(function(Y){return Y.value}).join(" ")}).map(ar)}},ar=function(X){switch(X){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Ln;(function(X){X.AUTO="auto",X.CONTAIN="contain",X.COVER="cover"})(Ln||(Ln={}));var Mn={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(X,G){return pt(G).map(function(J){return J.filter(gn)})}},gn=function(X){return gi(X)||Te(X)},qn=function(X){return{name:"border-"+X+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},na=qn("top"),cr=qn("right"),jr=qn("bottom"),Pa=qn("left"),da=function(X){return{name:"border-radius-"+X,initialValue:"0 0",prefix:!1,type:1,parse:function(G,J){return Ge(J.filter(Te))}}},ba=da("top-left"),ha=da("top-right"),Ta=da("bottom-right"),Da=da("bottom-left"),Ua=function(X){return{name:"border-"+X+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(G,J){switch(J){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Qr=Ua("top"),Wa=Ua("right"),Ea=Ua("bottom"),za=Ua("left"),hi=function(X){return{name:"border-"+X+"-width",initialValue:"0",type:0,prefix:!1,parse:function(G,J){return Us(J)?J.number:0}}},Ji=hi("top"),Li=hi("right"),Ci=hi("bottom"),Uo=hi("left"),Ao={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},_o={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(X,G){switch(G){case"rtl":return 1;case"ltr":default:return 0}}},as={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(X,G){return G.filter(gi).reduce(function(J,Y){return J|fs(Y.value)},0)}},fs=function(X){switch(X){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},is={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(X,G){switch(G){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},os={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(X,G){return G.type===20&&G.value==="normal"?0:G.type===17||G.type===15?G.number:0}},So;(function(X){X.NORMAL="normal",X.STRICT="strict"})(So||(So={}));var ps={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(X,G){switch(G){case"strict":return So.STRICT;case"normal":default:return So.NORMAL}}},Qi={name:"line-height",initialValue:"normal",prefix:!1,type:4},Aa=function(X,G){return gi(X)&&X.value==="normal"?1.2*G:X.type===17?G*X.number:Te(X)?ht(X,G):G},wi={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(X,G){return G.type===20&&G.value==="none"?null:Yn.parse(X,G)}},vi={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(X,G){switch(G){case"inside":return 0;case"outside":default:return 1}}},vo={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(X,G){switch(G){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},uo=function(X){return{name:"margin-"+X,initialValue:"0",prefix:!1,type:4}},Ki=uo("top"),ss=uo("right"),ls=uo("bottom"),qo=uo("left"),fo={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(X,G){return G.filter(gi).map(function(J){switch(J.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},zo={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(X,G){switch(G){case"break-word":return"break-word";case"normal":default:return"normal"}}},yo=function(X){return{name:"padding-"+X,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},es=yo("top"),Go=yo("right"),Oa=yo("bottom"),la=yo("left"),xi={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(X,G){switch(G){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Zi={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(X,G){switch(G){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Oo={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(X,G){return G.length===1&&$o(G[0],"none")?[]:pt(G).map(function(J){for(var Y={color:xn.TRANSPARENT,offsetX:Re,offsetY:Re,blur:Re},de=0,Ce=0;Ce<J.length;Ce++){var Fe=J[Ce];nt(Fe)?(de===0?Y.offsetX=Fe:de===1?Y.offsetY=Fe:Y.blur=Fe,de++):Y.color=_n.parse(X,Fe)}return Y})}},co={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(X,G){switch(G){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},No={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(X,G){if(G.type===20&&G.value==="none")return null;if(G.type===18){var J=Vo[G.name];if(typeof J=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+G.name+'"');return J(G.values)}return null}},Wi=function(X){var G=X.filter(function(J){return J.type===17}).map(function(J){return J.number});return G.length===6?G:null},Ai=function(X){var G=X.filter(function(rt){return rt.type===17}).map(function(rt){return rt.number}),J=G[0],Y=G[1];G[2],G[3];var de=G[4],Ce=G[5];G[6],G[7],G[8],G[9],G[10],G[11];var Fe=G[12],at=G[13];return G[14],G[15],G.length===16?[J,Y,de,Ce,Fe,at]:null},Vo={matrix:Wi,matrix3d:Ai},Pn={type:16,number:50,flags:aa},ts=[Pn,Pn],lo={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(X,G){var J=G.filter(Te);return J.length!==2?ts:[J[0],J[1]]}},Ha={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(X,G){switch(G){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Fi;(function(X){X.NORMAL="normal",X.BREAK_ALL="break-all",X.KEEP_ALL="keep-all"})(Fi||(Fi={}));for(var Ti={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(X,G){switch(G){case"break-all":return Fi.BREAK_ALL;case"keep-all":return Fi.KEEP_ALL;case"normal":default:return Fi.NORMAL}}},Ro={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(X,G){if(G.type===20)return{auto:!0,order:0};if(Ns(G))return{auto:!1,order:G.number};throw new Error("Invalid z-index number parsed")}},Oi={name:"time",parse:function(X,G){if(G.type===15)switch(G.unit.toLowerCase()){case"s":return 1e3*G.number;case"ms":return G.number}throw new Error("Unsupported time type")}},Fo={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(X,G){return Ns(G)?G.number:1}},ns={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ms={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(X,G){return G.filter(gi).map(function(J){switch(J.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(J){return J!==0})}},Xo={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(X,G){var J=[],Y=[];return G.forEach(function(de){switch(de.type){case 20:case 0:J.push(de.value);break;case 17:J.push(de.number.toString());break;case 4:Y.push(J.join(" ")),J.length=0;break}}),J.length&&Y.push(J.join(" ")),Y.map(function(de){return de.indexOf(" ")===-1?de:"'"+de+"'"})}},Ss={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Fs={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(X,G){if(Ns(G))return G.number;if(gi(G))switch(G.value){case"bold":return 700;case"normal":default:return 400}return 400}},On={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(X,G){return G.filter(gi).map(function(J){return J.value})}},nr={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(X,G){switch(G){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},zt=function(X,G){return(X&G)!==0},on={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(X,G){if(G.length===0)return[];var J=G[0];return J.type===20&&J.value==="none"?[]:G}},Tn={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(X,G){if(G.length===0)return null;var J=G[0];if(J.type===20&&J.value==="none")return null;for(var Y=[],de=G.filter(ol),Ce=0;Ce<de.length;Ce++){var Fe=de[Ce],at=de[Ce+1];if(Fe.type===20){var rt=at&&Ns(at)?at.number:1;Y.push({counter:Fe.value,increment:rt})}}return Y}},Hn={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(X,G){if(G.length===0)return[];for(var J=[],Y=G.filter(ol),de=0;de<Y.length;de++){var Ce=Y[de],Fe=Y[de+1];if(gi(Ce)&&Ce.value!=="none"){var at=Fe&&Ns(Fe)?Fe.number:0;J.push({counter:Ce.value,reset:at})}}return J}},jn={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(X,G){return G.filter(Us).map(function(J){return Oi.parse(X,J)})}},pr={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(X,G){if(G.length===0)return null;var J=G[0];if(J.type===20&&J.value==="none")return null;var Y=[],de=G.filter(Hs);if(de.length%2!==0)return null;for(var Ce=0;Ce<de.length;Ce+=2){var Fe=de[Ce].value,at=de[Ce+1].value;Y.push({open:Fe,close:at})}return Y}},dr=function(X,G,J){if(!X)return"";var Y=X[Math.min(G,X.length-1)];return Y?J?Y.open:Y.close:""},Bn={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(X,G){return G.length===1&&$o(G[0],"none")?[]:pt(G).map(function(J){for(var Y={color:255,offsetX:Re,offsetY:Re,blur:Re,spread:Re,inset:!1},de=0,Ce=0;Ce<J.length;Ce++){var Fe=J[Ce];$o(Fe,"inset")?Y.inset=!0:nt(Fe)?(de===0?Y.offsetX=Fe:de===1?Y.offsetY=Fe:de===2?Y.blur=Fe:Y.spread=Fe,de++):Y.color=_n.parse(X,Fe)}return Y})}},Yr={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(X,G){var J=[0,1,2],Y=[];return G.filter(gi).forEach(function(de){switch(de.value){case"stroke":Y.push(1);break;case"fill":Y.push(0);break;case"markers":Y.push(2);break}}),J.forEach(function(de){Y.indexOf(de)===-1&&Y.push(de)}),Y}},Ri={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},ir={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(X,G){return Us(G)?G.number:0}},si=function(){function X(G,J){var Y,de;this.animationDuration=Wn(G,jn,J.animationDuration),this.backgroundClip=Wn(G,an,J.backgroundClip),this.backgroundColor=Wn(G,Vt,J.backgroundColor),this.backgroundImage=Wn(G,oi,J.backgroundImage),this.backgroundOrigin=Wn(G,Cr,J.backgroundOrigin),this.backgroundPosition=Wn(G,Ir,J.backgroundPosition),this.backgroundRepeat=Wn(G,fr,J.backgroundRepeat),this.backgroundSize=Wn(G,Mn,J.backgroundSize),this.borderTopColor=Wn(G,na,J.borderTopColor),this.borderRightColor=Wn(G,cr,J.borderRightColor),this.borderBottomColor=Wn(G,jr,J.borderBottomColor),this.borderLeftColor=Wn(G,Pa,J.borderLeftColor),this.borderTopLeftRadius=Wn(G,ba,J.borderTopLeftRadius),this.borderTopRightRadius=Wn(G,ha,J.borderTopRightRadius),this.borderBottomRightRadius=Wn(G,Ta,J.borderBottomRightRadius),this.borderBottomLeftRadius=Wn(G,Da,J.borderBottomLeftRadius),this.borderTopStyle=Wn(G,Qr,J.borderTopStyle),this.borderRightStyle=Wn(G,Wa,J.borderRightStyle),this.borderBottomStyle=Wn(G,Ea,J.borderBottomStyle),this.borderLeftStyle=Wn(G,za,J.borderLeftStyle),this.borderTopWidth=Wn(G,Ji,J.borderTopWidth),this.borderRightWidth=Wn(G,Li,J.borderRightWidth),this.borderBottomWidth=Wn(G,Ci,J.borderBottomWidth),this.borderLeftWidth=Wn(G,Uo,J.borderLeftWidth),this.boxShadow=Wn(G,Bn,J.boxShadow),this.color=Wn(G,Ao,J.color),this.direction=Wn(G,_o,J.direction),this.display=Wn(G,as,J.display),this.float=Wn(G,is,J.cssFloat),this.fontFamily=Wn(G,Xo,J.fontFamily),this.fontSize=Wn(G,Ss,J.fontSize),this.fontStyle=Wn(G,nr,J.fontStyle),this.fontVariant=Wn(G,On,J.fontVariant),this.fontWeight=Wn(G,Fs,J.fontWeight),this.letterSpacing=Wn(G,os,J.letterSpacing),this.lineBreak=Wn(G,ps,J.lineBreak),this.lineHeight=Wn(G,Qi,J.lineHeight),this.listStyleImage=Wn(G,wi,J.listStyleImage),this.listStylePosition=Wn(G,vi,J.listStylePosition),this.listStyleType=Wn(G,vo,J.listStyleType),this.marginTop=Wn(G,Ki,J.marginTop),this.marginRight=Wn(G,ss,J.marginRight),this.marginBottom=Wn(G,ls,J.marginBottom),this.marginLeft=Wn(G,qo,J.marginLeft),this.opacity=Wn(G,Fo,J.opacity);var Ce=Wn(G,fo,J.overflow);this.overflowX=Ce[0],this.overflowY=Ce[Ce.length>1?1:0],this.overflowWrap=Wn(G,zo,J.overflowWrap),this.paddingTop=Wn(G,es,J.paddingTop),this.paddingRight=Wn(G,Go,J.paddingRight),this.paddingBottom=Wn(G,Oa,J.paddingBottom),this.paddingLeft=Wn(G,la,J.paddingLeft),this.paintOrder=Wn(G,Yr,J.paintOrder),this.position=Wn(G,Zi,J.position),this.textAlign=Wn(G,xi,J.textAlign),this.textDecorationColor=Wn(G,ns,(Y=J.textDecorationColor)!==null&&Y!==void 0?Y:J.color),this.textDecorationLine=Wn(G,ms,(de=J.textDecorationLine)!==null&&de!==void 0?de:J.textDecoration),this.textShadow=Wn(G,Oo,J.textShadow),this.textTransform=Wn(G,co,J.textTransform),this.transform=Wn(G,No,J.transform),this.transformOrigin=Wn(G,lo,J.transformOrigin),this.visibility=Wn(G,Ha,J.visibility),this.webkitTextStrokeColor=Wn(G,Ri,J.webkitTextStrokeColor),this.webkitTextStrokeWidth=Wn(G,ir,J.webkitTextStrokeWidth),this.wordBreak=Wn(G,Ti,J.wordBreak),this.zIndex=Wn(G,Ro,J.zIndex)}return X.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},X.prototype.isTransparent=function(){return rn(this.backgroundColor)},X.prototype.isTransformed=function(){return this.transform!==null},X.prototype.isPositioned=function(){return this.position!==0},X.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},X.prototype.isFloating=function(){return this.float!==0},X.prototype.isInlineLevel=function(){return zt(this.display,4)||zt(this.display,33554432)||zt(this.display,268435456)||zt(this.display,536870912)||zt(this.display,67108864)||zt(this.display,134217728)},X}(),ao=function(){function X(G,J){this.content=Wn(G,on,J.content),this.quotes=Wn(G,pr,J.quotes)}return X}(),zi=function(){function X(G,J){this.counterIncrement=Wn(G,Tn,J.counterIncrement),this.counterReset=Wn(G,Hn,J.counterReset)}return X}(),Wn=function(X,G,J){var Y=new Ps,de=J!==null&&typeof J!="undefined"?J.toString():G.initialValue;Y.write(de);var Ce=new gl(Y.read());switch(G.type){case 2:var Fe=Ce.parseComponentValue();return G.parse(X,gi(Fe)?Fe.value:G.initialValue);case 0:return G.parse(X,Ce.parseComponentValue());case 1:return G.parse(X,Ce.parseComponentValues());case 4:return Ce.parseComponentValue();case 3:switch(G.format){case"angle":return Bt.parse(X,Ce.parseComponentValue());case"color":return _n.parse(X,Ce.parseComponentValue());case"image":return Yn.parse(X,Ce.parseComponentValue());case"length":var at=Ce.parseComponentValue();return nt(at)?at:Re;case"length-percentage":var rt=Ce.parseComponentValue();return Te(rt)?rt:Re;case"time":return Oi.parse(X,Ce.parseComponentValue())}break}},Qa="data-html2canvas-debug",Gi=function(X){var G=X.getAttribute(Qa);switch(G){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},li=function(X,G){var J=Gi(X);return J===1||G===J},io=function(){function X(G,J){if(this.context=G,this.textNodes=[],this.elements=[],this.flags=0,li(J,3))debugger;this.styles=new si(G,window.getComputedStyle(J,null)),ru(J)&&(this.styles.animationDuration.some(function(Y){return Y>0})&&(J.style.animationDuration="0s"),this.styles.transform!==null&&(J.style.transform="none")),this.bounds=T(this.context,J),li(J,4)&&(this.flags|=16)}return X}(),Yo="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",ko="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",jo=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),gs=0;gs<ko.length;gs++)jo[ko.charCodeAt(gs)]=gs;for(var ki=function(X){var G=X.length*.75,J=X.length,Y,de=0,Ce,Fe,at,rt;X[X.length-1]==="="&&(G--,X[X.length-2]==="="&&G--);var It=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(G):new Array(G),Ft=Array.isArray(It)?It:new Uint8Array(It);for(Y=0;Y<J;Y+=4)Ce=jo[X.charCodeAt(Y)],Fe=jo[X.charCodeAt(Y+1)],at=jo[X.charCodeAt(Y+2)],rt=jo[X.charCodeAt(Y+3)],Ft[de++]=Ce<<2|Fe>>4,Ft[de++]=(Fe&15)<<4|at>>2,Ft[de++]=(at&3)<<6|rt&63;return It},sl=function(X){for(var G=X.length,J=[],Y=0;Y<G;Y+=2)J.push(X[Y+1]<<8|X[Y]);return J},vl=function(X){for(var G=X.length,J=[],Y=0;Y<G;Y+=4)J.push(X[Y+3]<<24|X[Y+2]<<16|X[Y+1]<<8|X[Y]);return J},Os=5,ks=6+5,us=2,ll=ks-Os,ul=65536>>Os,Sl=1<<Os,Zs=Sl-1,rs=1024>>Os,cl=ul+rs,Qs=cl,$s=2048>>6,qs=Qs+$s,yl=65536>>ks,Rs=1<<ll,Ol=Rs-1,vs=function(X,G,J){return X.slice?X.slice(G,J):new Uint16Array(Array.prototype.slice.call(X,G,J))},Bs=function(X,G,J){return X.slice?X.slice(G,J):new Uint32Array(Array.prototype.slice.call(X,G,J))},Ks=function(X,G){var J=ki(X),Y=Array.isArray(J)?vl(J):new Uint32Array(J),de=Array.isArray(J)?sl(J):new Uint16Array(J),Ce=24,Fe=vs(de,Ce/2,Y[4]/2),at=Y[5]===2?vs(de,(Ce+Y[4])/2):Bs(Y,Math.ceil((Ce+Y[4])/4));return new Is(Y[0],Y[1],Y[2],Y[3],Fe,at)},Is=function(){function X(G,J,Y,de,Ce,Fe){this.initialValue=G,this.errorValue=J,this.highStart=Y,this.highValueIndex=de,this.index=Ce,this.data=Fe}return X.prototype.get=function(G){var J;if(G>=0){if(G<55296||G>56319&&G<=65535)return J=this.index[G>>Os],J=(J<<us)+(G&Zs),this.data[J];if(G<=65535)return J=this.index[ul+(G-55296>>Os)],J=(J<<us)+(G&Zs),this.data[J];if(G<this.highStart)return J=qs-yl+(G>>ks),J=this.index[J],J+=G>>Os&Ol,J=this.index[J],J=(J<<us)+(G&Zs),this.data[J];if(G<=1114111)return this.data[this.highValueIndex]}return this.errorValue},X}(),ea="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fr=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Ga=0;Ga<ea.length;Ga++)Fr[ea.charCodeAt(Ga)]=Ga;var Wr=1,ma=2,ga=3,Na=4,La=5,Vi=7,$a=8,ys=9,Rn=10,xr=11,In=12,Gr=13,Jn=14,ra=15,Nr=function(X){for(var G=[],J=0,Y=X.length;J<Y;){var de=X.charCodeAt(J++);if(de>=55296&&de<=56319&&J<Y){var Ce=X.charCodeAt(J++);(Ce&64512)===56320?G.push(((de&1023)<<10)+(Ce&1023)+65536):(G.push(de),J--)}else G.push(de)}return G},fa=function(){for(var X=[],G=0;G<arguments.length;G++)X[G]=arguments[G];if(String.fromCodePoint)return String.fromCodePoint.apply(String,X);var J=X.length;if(!J)return"";for(var Y=[],de=-1,Ce="";++de<J;){var Fe=X[de];Fe<=65535?Y.push(Fe):(Fe-=65536,Y.push((Fe>>10)+55296,Fe%1024+56320)),(de+1===J||Y.length>16384)&&(Ce+=String.fromCharCode.apply(String,Y),Y.length=0)}return Ce},yi=Ks(Yo),Ya="\xD7",Bo="\xF7",Ho=function(X){return yi.get(X)},el=function(X,G,J){var Y=J-2,de=G[Y],Ce=G[J-1],Fe=G[J];if(Ce===ma&&Fe===ga)return Ya;if(Ce===ma||Ce===ga||Ce===Na)return Bo;if(Fe===ma||Fe===ga||Fe===Na)return Bo;if(Ce===$a&&[$a,ys,xr,In].indexOf(Fe)!==-1)return Ya;if((Ce===xr||Ce===ys)&&(Fe===ys||Fe===Rn))return Ya;if((Ce===In||Ce===Rn)&&Fe===Rn)return Ya;if(Fe===Gr||Fe===La)return Ya;if(Fe===Vi)return Ya;if(Ce===Wr)return Ya;if(Ce===Gr&&Fe===Jn){for(;de===La;)de=G[--Y];if(de===Jn)return Ya}if(Ce===ra&&Fe===ra){for(var at=0;de===ra;)at++,de=G[--Y];if(at%2===0)return Ya}return Bo},Io=function(X){var G=Nr(X),J=G.length,Y=0,de=0,Ce=G.map(Ho);return{next:function(){if(Y>=J)return{done:!0,value:null};for(var Fe=Ya;Y<J&&(Fe=el(G,Ce,++Y))===Ya;);if(Fe!==Ya||Y===J){var at=fa.apply(null,G.slice(de,Y));return de=Y,{value:at,done:!1}}return{done:!0,value:null}}}},Do=function(X){for(var G=Io(X),J=[],Y;!(Y=G.next()).done;)Y.value&&J.push(Y.value.slice());return J},cs=function(X){var G=123;if(X.createRange){var J=X.createRange();if(J.getBoundingClientRect){var Y=X.createElement("boundtest");Y.style.height=G+"px",Y.style.display="block",X.body.appendChild(Y),J.selectNode(Y);var de=J.getBoundingClientRect(),Ce=Math.round(de.height);if(X.body.removeChild(Y),Ce===G)return!0}}return!1},dl=function(X){var G=X.createElement("boundtest");G.style.width="50px",G.style.display="block",G.style.fontSize="12px",G.style.letterSpacing="0px",G.style.wordSpacing="0px",X.body.appendChild(G);var J=X.createRange();G.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var Y=G.firstChild,de=p(Y.data).map(function(rt){return a(rt)}),Ce=0,Fe={},at=de.every(function(rt,It){J.setStart(Y,Ce),J.setEnd(Y,Ce+rt.length);var Ft=J.getBoundingClientRect();Ce+=rt.length;var nn=Ft.x>Fe.x||Ft.y>Fe.y;return Fe=Ft,It===0?!0:nn});return X.body.removeChild(G),at},Ds=function(){return typeof new Image().crossOrigin!="undefined"},Rl=function(){return typeof new XMLHttpRequest().responseType=="string"},Cu=function(X){var G=new Image,J=X.createElement("canvas"),Y=J.getContext("2d");if(!Y)return!1;G.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{Y.drawImage(G,0,0),J.toDataURL()}catch(de){return!1}return!0},bs=function(X){return X[0]===0&&X[1]===255&&X[2]===0&&X[3]===255},wu=function(X){var G=X.createElement("canvas"),J=100;G.width=J,G.height=J;var Y=G.getContext("2d");if(!Y)return Promise.reject(!1);Y.fillStyle="rgb(0, 255, 0)",Y.fillRect(0,0,J,J);var de=new Image,Ce=G.toDataURL();de.src=Ce;var Fe=Zl(J,J,0,0,de);return Y.fillStyle="red",Y.fillRect(0,0,J,J),cu(Fe).then(function(at){Y.drawImage(at,0,0);var rt=Y.getImageData(0,0,J,J).data;Y.fillStyle="red",Y.fillRect(0,0,J,J);var It=X.createElement("div");return It.style.backgroundImage="url("+Ce+")",It.style.height=J+"px",bs(rt)?cu(Zl(J,J,0,0,It)):Promise.reject(!1)}).then(function(at){return Y.drawImage(at,0,0),bs(Y.getImageData(0,0,J,J).data)}).catch(function(){return!1})},Zl=function(X,G,J,Y,de){var Ce="http://www.w3.org/2000/svg",Fe=document.createElementNS(Ce,"svg"),at=document.createElementNS(Ce,"foreignObject");return Fe.setAttributeNS(null,"width",X.toString()),Fe.setAttributeNS(null,"height",G.toString()),at.setAttributeNS(null,"width","100%"),at.setAttributeNS(null,"height","100%"),at.setAttributeNS(null,"x",J.toString()),at.setAttributeNS(null,"y",Y.toString()),at.setAttributeNS(null,"externalResourcesRequired","true"),Fe.appendChild(at),at.appendChild(de),Fe},cu=function(X){return new Promise(function(G,J){var Y=new Image;Y.onload=function(){return G(Y)},Y.onerror=J,Y.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(X))})},bo={get SUPPORT_RANGE_BOUNDS(){var X=cs(document);return Object.defineProperty(bo,"SUPPORT_RANGE_BOUNDS",{value:X}),X},get SUPPORT_WORD_BREAKING(){var X=bo.SUPPORT_RANGE_BOUNDS&&dl(document);return Object.defineProperty(bo,"SUPPORT_WORD_BREAKING",{value:X}),X},get SUPPORT_SVG_DRAWING(){var X=Cu(document);return Object.defineProperty(bo,"SUPPORT_SVG_DRAWING",{value:X}),X},get SUPPORT_FOREIGNOBJECT_DRAWING(){var X=typeof Array.from=="function"&&typeof window.fetch=="function"?wu(document):Promise.resolve(!1);return Object.defineProperty(bo,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:X}),X},get SUPPORT_CORS_IMAGES(){var X=Ds();return Object.defineProperty(bo,"SUPPORT_CORS_IMAGES",{value:X}),X},get SUPPORT_RESPONSE_TYPE(){var X=Rl();return Object.defineProperty(bo,"SUPPORT_RESPONSE_TYPE",{value:X}),X},get SUPPORT_CORS_XHR(){var X="withCredentials"in new XMLHttpRequest;return Object.defineProperty(bo,"SUPPORT_CORS_XHR",{value:X}),X},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var X=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(bo,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:X}),X}},Ws=function(){function X(G,J){this.text=G,this.bounds=J}return X}(),du=function(X,G,J,Y){var de=xu(G,J),Ce=[],Fe=0;return de.forEach(function(at){if(J.textDecorationLine.length||at.trim().length>0)if(bo.SUPPORT_RANGE_BOUNDS){var rt=$l(Y,Fe,at.length).getClientRects();if(rt.length>1){var It=Au(at),Ft=0;It.forEach(function(un){Ce.push(new Ws(un,M.fromDOMRectList(X,$l(Y,Ft+Fe,un.length).getClientRects()))),Ft+=un.length})}else Ce.push(new Ws(at,M.fromDOMRectList(X,rt)))}else{var nn=Y.splitText(at.length);Ce.push(new Ws(at,hu(X,Y))),Y=nn}else bo.SUPPORT_RANGE_BOUNDS||(Y=Y.splitText(at.length));Fe+=at.length}),Ce},hu=function(X,G){var J=G.ownerDocument;if(J){var Y=J.createElement("html2canvaswrapper");Y.appendChild(G.cloneNode(!0));var de=G.parentNode;if(de){de.replaceChild(Y,G);var Ce=T(X,Y);return Y.firstChild&&de.replaceChild(Y.firstChild,Y),Ce}}return M.EMPTY},$l=function(X,G,J){var Y=X.ownerDocument;if(!Y)throw new Error("Node has no owner document");var de=Y.createRange();return de.setStart(X,G),de.setEnd(X,G+J),de},Au=function(X){if(bo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var G=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(G.segment(X)).map(function(J){return J.segment})}return Do(X)},Fl=function(X,G){if(bo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var J=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(J.segment(X)).map(function(Y){return Y.segment})}return Tu(X,G)},xu=function(X,G){return G.letterSpacing!==0?Au(X):Fl(X,G)},Xu=[32,160,4961,65792,65793,4153,4241],Tu=function(X,G){for(var J=Un(X,{lineBreak:G.lineBreak,wordBreak:G.overflowWrap==="break-word"?"break-word":G.wordBreak}),Y=[],de,Ce=function(){if(de.value){var Fe=de.value.slice(),at=p(Fe),rt="";at.forEach(function(It){Xu.indexOf(It)===-1?rt+=a(It):(rt.length&&Y.push(rt),Y.push(a(It)),rt="")}),rt.length&&Y.push(rt)}};!(de=J.next()).done;)Ce();return Y},ql=function(){function X(G,J,Y){this.text=Yu(J.data,Y.textTransform),this.textBounds=du(G,this.text,Y,J)}return X}(),Yu=function(X,G){switch(G){case 1:return X.toLowerCase();case 3:return X.replace(Ju,kl);case 2:return X.toUpperCase();default:return X}},Ju=/(^|\s|:|-|\(|\))([a-z])/g,kl=function(X,G,J){return X.length>0?G+J.toUpperCase():X},fu=function(X){Q(G,X);function G(J,Y){var de=X.call(this,J,Y)||this;return de.src=Y.currentSrc||Y.src,de.intrinsicWidth=Y.naturalWidth,de.intrinsicHeight=Y.naturalHeight,de.context.cache.addImage(de.src),de}return G}(io),pu=function(X){Q(G,X);function G(J,Y){var de=X.call(this,J,Y)||this;return de.canvas=Y,de.intrinsicWidth=Y.width,de.intrinsicHeight=Y.height,de}return G}(io),Su=function(X){Q(G,X);function G(J,Y){var de=X.call(this,J,Y)||this,Ce=new XMLSerializer,Fe=T(J,Y);return Y.setAttribute("width",Fe.width+"px"),Y.setAttribute("height",Fe.height+"px"),de.svg="data:image/svg+xml,"+encodeURIComponent(Ce.serializeToString(Y)),de.intrinsicWidth=Y.width.baseVal.value,de.intrinsicHeight=Y.height.baseVal.value,de.context.cache.addImage(de.svg),de}return G}(io),eu=function(X){Q(G,X);function G(J,Y){var de=X.call(this,J,Y)||this;return de.value=Y.value,de}return G}(io),tu=function(X){Q(G,X);function G(J,Y){var de=X.call(this,J,Y)||this;return de.start=Y.start,de.reversed=typeof Y.reversed=="boolean"&&Y.reversed===!0,de}return G}(io),Zu=[{type:15,flags:0,unit:"px",number:3}],Ou=[{type:16,flags:0,number:50}],Ru=function(X){return X.width>X.height?new M(X.left+(X.width-X.height)/2,X.top,X.height,X.height):X.width<X.height?new M(X.left,X.top+(X.height-X.width)/2,X.width,X.width):X},$u=function(X){var G=X.type===jl?new Array(X.value.length+1).join("\u2022"):X.value;return G.length===0?X.placeholder||"":G},Bl="checkbox",hl="radio",jl="password",Bu=707406591,nu=function(X){Q(G,X);function G(J,Y){var de=X.call(this,J,Y)||this;de.type=Y.type.toLowerCase(),de.checked=Y.checked,de.value=$u(Y),(de.type===Bl||de.type===hl)&&(de.styles.backgroundColor=3739148031,de.styles.borderTopColor=de.styles.borderRightColor=de.styles.borderBottomColor=de.styles.borderLeftColor=2779096575,de.styles.borderTopWidth=de.styles.borderRightWidth=de.styles.borderBottomWidth=de.styles.borderLeftWidth=1,de.styles.borderTopStyle=de.styles.borderRightStyle=de.styles.borderBottomStyle=de.styles.borderLeftStyle=1,de.styles.backgroundClip=[0],de.styles.backgroundOrigin=[0],de.bounds=Ru(de.bounds));switch(de.type){case Bl:de.styles.borderTopRightRadius=de.styles.borderTopLeftRadius=de.styles.borderBottomRightRadius=de.styles.borderBottomLeftRadius=Zu;break;case hl:de.styles.borderTopRightRadius=de.styles.borderTopLeftRadius=de.styles.borderBottomRightRadius=de.styles.borderBottomLeftRadius=Ou;break}return de}return G}(io),Iu=function(X){Q(G,X);function G(J,Y){var de=X.call(this,J,Y)||this,Ce=Y.options[Y.selectedIndex||0];return de.value=Ce&&Ce.text||"",de}return G}(io),Du=function(X){Q(G,X);function G(J,Y){var de=X.call(this,J,Y)||this;return de.value=Y.value,de}return G}(io),Lu=function(X){Q(G,X);function G(J,Y){var de=X.call(this,J,Y)||this;de.src=Y.src,de.width=parseInt(Y.width,10)||0,de.height=parseInt(Y.height,10)||0,de.backgroundColor=de.styles.backgroundColor;try{if(Y.contentWindow&&Y.contentWindow.document&&Y.contentWindow.document.documentElement){de.tree=Pu(J,Y.contentWindow.document.documentElement);var Ce=Y.contentWindow.document.documentElement?ln(J,getComputedStyle(Y.contentWindow.document.documentElement).backgroundColor):xn.TRANSPARENT,Fe=Y.contentWindow.document.body?ln(J,getComputedStyle(Y.contentWindow.document.body).backgroundColor):xn.TRANSPARENT;de.backgroundColor=rn(Ce)?rn(Fe)?de.styles.backgroundColor:Fe:Ce}}catch(at){}return de}return G}(io),qu=["OL","UL","MENU"],Hl=function(X,G,J,Y){for(var de=G.firstChild,Ce=void 0;de;de=Ce)if(Ce=de.nextSibling,gu(de)&&de.data.trim().length>0)J.textNodes.push(new ql(X,de,J.styles));else if(Il(de))if(yu(de)&&de.assignedNodes)de.assignedNodes().forEach(function(at){return Hl(X,at,J,Y)});else{var Fe=Mu(X,de);Fe.styles.isVisible()&&(Uu(de,Fe,Y)?Fe.flags|=4:mu(Fe.styles)&&(Fe.flags|=2),qu.indexOf(de.tagName)!==-1&&(Fe.flags|=8),J.elements.push(Fe),de.slot,de.shadowRoot?Hl(X,de.shadowRoot,Fe,Y):!Kl(de)&&!Fu(de)&&!Wl(de)&&Hl(X,de,Fe,Y))}},Mu=function(X,G){return bl(G)?new fu(X,G):ku(G)?new pu(X,G):Fu(G)?new Su(X,G):Nu(G)?new eu(X,G):au(G)?new tu(X,G):ec(G)?new nu(X,G):Wl(G)?new Iu(X,G):Kl(G)?new Du(X,G):Ls(G)?new Lu(X,G):new io(X,G)},Pu=function(X,G){var J=Mu(X,G);return J.flags|=4,Hl(X,G,J,J),J},Uu=function(X,G,J){return G.styles.isPositionedWithZIndex()||G.styles.opacity<1||G.styles.isTransformed()||Xi(X)&&J.styles.isTransparent()},mu=function(X){return X.isPositioned()||X.isFloating()},gu=function(X){return X.nodeType===Node.TEXT_NODE},Il=function(X){return X.nodeType===Node.ELEMENT_NODE},ru=function(X){return Il(X)&&typeof X.style!="undefined"&&!tl(X)},tl=function(X){return typeof X.className=="object"},Nu=function(X){return X.tagName==="LI"},au=function(X){return X.tagName==="OL"},ec=function(X){return X.tagName==="INPUT"},tc=function(X){return X.tagName==="HTML"},Fu=function(X){return X.tagName==="svg"},Xi=function(X){return X.tagName==="BODY"},ku=function(X){return X.tagName==="CANVAS"},iu=function(X){return X.tagName==="VIDEO"},bl=function(X){return X.tagName==="IMG"},Ls=function(X){return X.tagName==="IFRAME"},Ql=function(X){return X.tagName==="STYLE"},vu=function(X){return X.tagName==="SCRIPT"},Kl=function(X){return X.tagName==="TEXTAREA"},Wl=function(X){return X.tagName==="SELECT"},yu=function(X){return X.tagName==="SLOT"},bu=function(X){return X.tagName.indexOf("-")>0},ju=function(){function X(){this.counters={}}return X.prototype.getCounterValue=function(G){var J=this.counters[G];return J&&J.length?J[J.length-1]:1},X.prototype.getCounterValues=function(G){var J=this.counters[G];return J||[]},X.prototype.pop=function(G){var J=this;G.forEach(function(Y){return J.counters[Y].pop()})},X.prototype.parse=function(G){var J=this,Y=G.counterIncrement,de=G.counterReset,Ce=!0;Y!==null&&Y.forEach(function(at){var rt=J.counters[at.counter];rt&&at.increment!==0&&(Ce=!1,rt.length||rt.push(1),rt[Math.max(0,rt.length-1)]+=at.increment)});var Fe=[];return Ce&&de.forEach(function(at){var rt=J.counters[at.counter];Fe.push(at.counter),rt||(rt=J.counters[at.counter]=[]),rt.push(at.reset)}),Fe},X}(),Hu={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},ou={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},Qu={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},Bi={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},El=function(X,G,J,Y,de,Ce){return X<G||X>J?L(X,de,Ce.length>0):Y.integers.reduce(function(Fe,at,rt){for(;X>=at;)X-=at,Fe+=Y.values[rt];return Fe},"")+Ce},Ku=function(X,G,J,Y){var de="";do J||X--,de=Y(X)+de,X/=G;while(X*G>=G);return de},$i=function(X,G,J,Y,de){var Ce=J-G+1;return(X<0?"-":"")+(Ku(Math.abs(X),Ce,Y,function(Fe){return a(Math.floor(Fe%Ce)+G)})+de)},_l=function(X,G,J){J===void 0&&(J=". ");var Y=G.length;return Ku(Math.abs(X),Y,!1,function(de){return G[Math.floor(de%Y)]})+J},nl=1<<0,Al=1<<1,Mi=1<<2,zl=1<<3,rl=function(X,G,J,Y,de,Ce){if(X<-9999||X>9999)return L(X,4,de.length>0);var Fe=Math.abs(X),at=de;if(Fe===0)return G[0]+at;for(var rt=0;Fe>0&&rt<=4;rt++){var It=Fe%10;It===0&&zt(Ce,nl)&&at!==""?at=G[It]+at:It>1||It===1&&rt===0||It===1&&rt===1&&zt(Ce,Al)||It===1&&rt===1&&zt(Ce,Mi)&&X>100||It===1&&rt>1&&zt(Ce,zl)?at=G[It]+(rt>0?J[rt-1]:"")+at:It===1&&rt>0&&(at=J[rt-1]+at),Fe=Math.floor(Fe/10)}return(X<0?Y:"")+at},Wu="\u5341\u767E\u5343\u842C",Gl="\u62FE\u4F70\u4EDF\u842C",e="\u30DE\u30A4\u30CA\u30B9",r="\uB9C8\uC774\uB108\uC2A4",L=function(X,G,J){var Y=J?". ":"",de=J?"\u3001":"",Ce=J?", ":"",Fe=J?" ":"";switch(G){case 0:return"\u2022"+Fe;case 1:return"\u25E6"+Fe;case 2:return"\u25FE"+Fe;case 5:var at=$i(X,48,57,!0,Y);return at.length<4?"0"+at:at;case 4:return _l(X,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",de);case 6:return El(X,1,3999,Hu,3,Y).toLowerCase();case 7:return El(X,1,3999,Hu,3,Y);case 8:return $i(X,945,969,!1,Y);case 9:return $i(X,97,122,!1,Y);case 10:return $i(X,65,90,!1,Y);case 11:return $i(X,1632,1641,!0,Y);case 12:case 49:return El(X,1,9999,ou,3,Y);case 35:return El(X,1,9999,ou,3,Y).toLowerCase();case 13:return $i(X,2534,2543,!0,Y);case 14:case 30:return $i(X,6112,6121,!0,Y);case 15:return _l(X,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",de);case 16:return _l(X,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",de);case 17:case 48:return rl(X,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Wu,"\u8CA0",de,Al|Mi|zl);case 47:return rl(X,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",Gl,"\u8CA0",de,nl|Al|Mi|zl);case 42:return rl(X,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Wu,"\u8D1F",de,Al|Mi|zl);case 41:return rl(X,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",Gl,"\u8D1F",de,nl|Al|Mi|zl);case 26:return rl(X,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",e,de,0);case 25:return rl(X,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",e,de,nl|Al|Mi);case 31:return rl(X,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",r,Ce,nl|Al|Mi);case 33:return rl(X,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",r,Ce,0);case 32:return rl(X,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",r,Ce,nl|Al|Mi);case 18:return $i(X,2406,2415,!0,Y);case 20:return El(X,1,19999,Bi,3,Y);case 21:return $i(X,2790,2799,!0,Y);case 22:return $i(X,2662,2671,!0,Y);case 22:return El(X,1,10999,Qu,3,Y);case 23:return _l(X,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return _l(X,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return $i(X,3302,3311,!0,Y);case 28:return _l(X,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",de);case 29:return _l(X,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",de);case 34:return $i(X,3792,3801,!0,Y);case 37:return $i(X,6160,6169,!0,Y);case 38:return $i(X,4160,4169,!0,Y);case 39:return $i(X,2918,2927,!0,Y);case 40:return $i(X,1776,1785,!0,Y);case 43:return $i(X,3046,3055,!0,Y);case 44:return $i(X,3174,3183,!0,Y);case 45:return $i(X,3664,3673,!0,Y);case 46:return $i(X,3872,3881,!0,Y);case 3:default:return $i(X,48,57,!0,Y)}},D="data-html2canvas-ignore",j=function(){function X(G,J,Y){if(this.context=G,this.options=Y,this.scrolledElements=[],this.referenceElement=J,this.counters=new ju,this.quoteDepth=0,!J.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(J.ownerDocument.documentElement,!1)}return X.prototype.toIFrame=function(G,J){var Y=this,de=ue(G,J);if(!de.contentWindow)return Promise.reject("Unable to find iframe window");var Ce=G.defaultView.pageXOffset,Fe=G.defaultView.pageYOffset,at=de.contentWindow,rt=at.document,It=De(de).then(function(){return k(Y,void 0,void 0,function(){var Ft,nn;return _(this,function(un){switch(un.label){case 0:return this.scrolledElements.forEach(hn),at&&(at.scrollTo(J.left,J.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(at.scrollY!==J.top||at.scrollX!==J.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(at.scrollX-J.left,at.scrollY-J.top,0,0))),Ft=this.options.onclone,nn=this.clonedReferenceElement,typeof nn=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:rt.fonts&&rt.fonts.ready?[4,rt.fonts.ready]:[3,2];case 1:un.sent(),un.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Ee(rt)]:[3,4];case 3:un.sent(),un.label=4;case 4:return typeof Ft=="function"?[2,Promise.resolve().then(function(){return Ft(rt,nn)}).then(function(){return de})]:[2,de]}})})});return rt.open(),rt.write(Nt(document.doctype)+"<html></html>"),Pt(this.referenceElement.ownerDocument,Ce,Fe),rt.replaceChild(rt.adoptNode(this.documentElement),rt.documentElement),rt.close(),It},X.prototype.createElementClone=function(G){if(li(G,2))debugger;if(ku(G))return this.createCanvasClone(G);if(iu(G))return this.createVideoClone(G);if(Ql(G))return this.createStyleClone(G);var J=G.cloneNode(!1);return bl(J)&&(bl(G)&&G.currentSrc&&G.currentSrc!==G.src&&(J.src=G.currentSrc,J.srcset=""),J.loading==="lazy"&&(J.loading="eager")),bu(J)?this.createCustomElementClone(J):J},X.prototype.createCustomElementClone=function(G){var J=document.createElement("html2canvascustomelement");return At(G.style,J),J},X.prototype.createStyleClone=function(G){try{var J=G.sheet;if(J&&J.cssRules){var Y=[].slice.call(J.cssRules,0).reduce(function(Ce,Fe){return Fe&&typeof Fe.cssText=="string"?Ce+Fe.cssText:Ce},""),de=G.cloneNode(!1);return de.textContent=Y,de}}catch(Ce){if(this.context.logger.error("Unable to access cssRules property",Ce),Ce.name!=="SecurityError")throw Ce}return G.cloneNode(!1)},X.prototype.createCanvasClone=function(G){var J;if(this.options.inlineImages&&G.ownerDocument){var Y=G.ownerDocument.createElement("img");try{return Y.src=G.toDataURL(),Y}catch(It){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",G)}}var de=G.cloneNode(!1);try{de.width=G.width,de.height=G.height;var Ce=G.getContext("2d"),Fe=de.getContext("2d");if(Fe)if(!this.options.allowTaint&&Ce)Fe.putImageData(Ce.getImageData(0,0,G.width,G.height),0,0);else{var at=(J=G.getContext("webgl2"))!==null&&J!==void 0?J:G.getContext("webgl");if(at){var rt=at.getContextAttributes();(rt==null?void 0:rt.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",G)}Fe.drawImage(G,0,0)}return de}catch(It){this.context.logger.info("Unable to clone canvas as it is tainted",G)}return de},X.prototype.createVideoClone=function(G){var J=G.ownerDocument.createElement("canvas");J.width=G.offsetWidth,J.height=G.offsetHeight;var Y=J.getContext("2d");try{return Y&&(Y.drawImage(G,0,0,J.width,J.height),this.options.allowTaint||Y.getImageData(0,0,J.width,J.height)),J}catch(Ce){this.context.logger.info("Unable to clone video as it is tainted",G)}var de=G.ownerDocument.createElement("canvas");return de.width=G.offsetWidth,de.height=G.offsetHeight,de},X.prototype.appendChildNode=function(G,J,Y){(!Il(J)||!vu(J)&&!J.hasAttribute(D)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(J)))&&((!this.options.copyStyles||!Il(J)||!Ql(J))&&G.appendChild(this.cloneNode(J,Y)))},X.prototype.cloneChildNodes=function(G,J,Y){for(var de=this,Ce=G.shadowRoot?G.shadowRoot.firstChild:G.firstChild;Ce;Ce=Ce.nextSibling)if(Il(Ce)&&yu(Ce)&&typeof Ce.assignedNodes=="function"){var Fe=Ce.assignedNodes();Fe.length&&Fe.forEach(function(at){return de.appendChildNode(J,at,Y)})}else this.appendChildNode(J,Ce,Y)},X.prototype.cloneNode=function(G,J){if(gu(G))return document.createTextNode(G.data);if(!G.ownerDocument)return G.cloneNode(!1);var Y=G.ownerDocument.defaultView;if(Y&&Il(G)&&(ru(G)||tl(G))){var de=this.createElementClone(G);de.style.transitionProperty="none";var Ce=Y.getComputedStyle(G),Fe=Y.getComputedStyle(G,":before"),at=Y.getComputedStyle(G,":after");this.referenceElement===G&&ru(de)&&(this.clonedReferenceElement=de),Xi(de)&&br(de);var rt=this.counters.parse(new zi(this.context,Ce)),It=this.resolvePseudoContent(G,de,Fe,q.BEFORE);bu(G)&&(J=!0),iu(G)||this.cloneChildNodes(G,de,J),It&&de.insertBefore(It,de.firstChild);var Ft=this.resolvePseudoContent(G,de,at,q.AFTER);return Ft&&de.appendChild(Ft),this.counters.pop(rt),(Ce&&(this.options.copyStyles||tl(G))&&!Ls(G)||J)&&At(Ce,de),(G.scrollTop!==0||G.scrollLeft!==0)&&this.scrolledElements.push([de,G.scrollLeft,G.scrollTop]),(Kl(G)||Wl(G))&&(Kl(de)||Wl(de))&&(de.value=G.value),de}return G.cloneNode(!1)},X.prototype.resolvePseudoContent=function(G,J,Y,de){var Ce=this;if(!Y)return;var Fe=Y.content,at=J.ownerDocument;if(!at||!Fe||Fe==="none"||Fe==="-moz-alt-content"||Y.display==="none")return;this.counters.parse(new zi(this.context,Y));var rt=new ao(this.context,Y),It=at.createElement("html2canvaspseudoelement");At(Y,It),rt.content.forEach(function(nn){if(nn.type===0)It.appendChild(at.createTextNode(nn.value));else if(nn.type===22){var un=at.createElement("img");un.src=nn.value,un.style.opacity="1",It.appendChild(un)}else if(nn.type===18){if(nn.name==="attr"){var Sr=nn.values.filter(gi);Sr.length&&It.appendChild(at.createTextNode(G.getAttribute(Sr[0].value)||""))}else if(nn.name==="counter"){var Qn=nn.values.filter($e),Ar=Qn[0],va=Qn[1];if(Ar&&gi(Ar)){var wr=Ce.counters.getCounterValue(Ar.value),Br=va&&gi(va)?vo.parse(Ce.context,va.value):3;It.appendChild(at.createTextNode(L(wr,Br,!1)))}}else if(nn.name==="counters"){var bi=nn.values.filter($e),Ar=bi[0],Ja=bi[1],va=bi[2];if(Ar&&gi(Ar)){var Pi=Ce.counters.getCounterValues(Ar.value),Or=va&&gi(va)?vo.parse(Ce.context,va.value):3,Ii=Ja&&Ja.type===0?Ja.value:"",Ui=Pi.map(function(_s){return L(_s,Or,!1)}).join(Ii);It.appendChild(at.createTextNode(Ui))}}}else if(nn.type===20)switch(nn.value){case"open-quote":It.appendChild(at.createTextNode(dr(rt.quotes,Ce.quoteDepth++,!0)));break;case"close-quote":It.appendChild(at.createTextNode(dr(rt.quotes,--Ce.quoteDepth,!1)));break;default:It.appendChild(at.createTextNode(nn.value))}}),It.className=Zn+" "+sr;var Ft=de===q.BEFORE?" "+Zn:" "+sr;return tl(J)?J.className.baseValue+=Ft:J.className+=Ft,It},X.destroy=function(G){return G.parentNode?(G.parentNode.removeChild(G),!0):!1},X}(),q;(function(X){X[X.BEFORE=0]="BEFORE",X[X.AFTER=1]="AFTER"})(q||(q={}));var ue=function(X,G){var J=X.createElement("iframe");return J.className="html2canvas-container",J.style.visibility="hidden",J.style.position="fixed",J.style.left="-10000px",J.style.top="0px",J.style.border="0",J.width=G.width.toString(),J.height=G.height.toString(),J.scrolling="no",J.setAttribute(D,"true"),X.body.appendChild(J),J},be=function(X){return new Promise(function(G){if(X.complete){G();return}if(!X.src){G();return}X.onload=G,X.onerror=G})},Ee=function(X){return Promise.all([].slice.call(X.images,0).map(be))},De=function(X){return new Promise(function(G,J){var Y=X.contentWindow;if(!Y)return J("No window assigned for iframe");var de=Y.document;Y.onload=X.onload=function(){Y.onload=X.onload=null;var Ce=setInterval(function(){de.body.childNodes.length>0&&de.readyState==="complete"&&(clearInterval(Ce),G(X))},50)}})},ot=["all","d","content"],At=function(X,G){for(var J=X.length-1;J>=0;J--){var Y=X.item(J);ot.indexOf(Y)===-1&&G.style.setProperty(Y,X.getPropertyValue(Y))}return G},Nt=function(X){var G="";return X&&(G+="<!DOCTYPE ",X.name&&(G+=X.name),X.internalSubset&&(G+=X.internalSubset),X.publicId&&(G+='"'+X.publicId+'"'),X.systemId&&(G+='"'+X.systemId+'"'),G+=">"),G},Pt=function(X,G,J){X&&X.defaultView&&(G!==X.defaultView.pageXOffset||J!==X.defaultView.pageYOffset)&&X.defaultView.scrollTo(G,J)},hn=function(X){var G=X[0],J=X[1],Y=X[2];G.scrollLeft=J,G.scrollTop=Y},bn=":before",Fn=":after",Zn="___html2canvas___pseudoelement_before",sr="___html2canvas___pseudoelement_after",$n=`{
content: "" !important;
display: none !important;
}`,br=function(X){Zr(X,"."+Zn+bn+$n+`
.`+sr+Fn+$n)},Zr=function(X,G){var J=X.ownerDocument;if(J){var Y=J.createElement("style");Y.textContent=G,X.appendChild(Y)}},Hr=function(){function X(){}return X.getOrigin=function(G){var J=X._link;return J?(J.href=G,J.href=J.href,J.protocol+J.hostname+J.port):"about:blank"},X.isSameOrigin=function(G){return X.getOrigin(G)===X._origin},X.setContext=function(G){X._link=G.document.createElement("a"),X._origin=X.getOrigin(G.location.href)},X._origin="about:blank",X}(),Fa=function(){function X(G,J){this.context=G,this._options=J,this._cache={}}return X.prototype.addImage=function(G){var J=Promise.resolve();return this.has(G)||(Ko(G)||ds(G))&&(this._cache[G]=this.loadImage(G)).catch(function(){}),J},X.prototype.match=function(G){return this._cache[G]},X.prototype.loadImage=function(G){return k(this,void 0,void 0,function(){var J,Y,de,Ce,Fe=this;return _(this,function(at){switch(at.label){case 0:return J=Hr.isSameOrigin(G),Y=!Qo(G)&&this._options.useCORS===!0&&bo.SUPPORT_CORS_IMAGES&&!J,de=!Qo(G)&&!J&&!Ko(G)&&typeof this._options.proxy=="string"&&bo.SUPPORT_CORS_XHR&&!Y,!J&&this._options.allowTaint===!1&&!Qo(G)&&!Ko(G)&&!de&&!Y?[2]:(Ce=G,de?[4,this.proxy(Ce)]:[3,2]);case 1:Ce=at.sent(),at.label=2;case 2:return this.context.logger.debug("Added image "+G.substring(0,256)),[4,new Promise(function(rt,It){var Ft=new Image;Ft.onload=function(){return rt(Ft)},Ft.onerror=It,(po(Ce)||Y)&&(Ft.crossOrigin="anonymous"),Ft.src=Ce,Ft.complete===!0&&setTimeout(function(){return rt(Ft)},500),Fe._options.imageTimeout>0&&setTimeout(function(){return It("Timed out ("+Fe._options.imageTimeout+"ms) loading image")},Fe._options.imageTimeout)})];case 3:return[2,at.sent()]}})})},X.prototype.has=function(G){return typeof this._cache[G]!="undefined"},X.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},X.prototype.proxy=function(G){var J=this,Y=this._options.proxy;if(!Y)throw new Error("No proxy defined");var de=G.substring(0,256);return new Promise(function(Ce,Fe){var at=bo.SUPPORT_RESPONSE_TYPE?"blob":"text",rt=new XMLHttpRequest;rt.onload=function(){if(rt.status===200)if(at==="text")Ce(rt.response);else{var nn=new FileReader;nn.addEventListener("load",function(){return Ce(nn.result)},!1),nn.addEventListener("error",function(un){return Fe(un)},!1),nn.readAsDataURL(rt.response)}else Fe("Failed to proxy resource "+de+" with status code "+rt.status)},rt.onerror=Fe;var It=Y.indexOf("?")>-1?"&":"?";if(rt.open("GET",""+Y+It+"url="+encodeURIComponent(G)+"&responseType="+at),at!=="text"&&rt instanceof XMLHttpRequest&&(rt.responseType=at),J._options.imageTimeout){var Ft=J._options.imageTimeout;rt.timeout=Ft,rt.ontimeout=function(){return Fe("Timed out ("+Ft+"ms) proxying "+de)}}rt.send()})},X}(),ji=/^data:image\/svg\+xml/i,Co=/^data:image\/.*;base64,/i,oo=/^data:image\/.*/i,ds=function(X){return bo.SUPPORT_SVG_DRAWING||!Lo(X)},Qo=function(X){return oo.test(X)},po=function(X){return Co.test(X)},Ko=function(X){return X.substr(0,4)==="blob"},Lo=function(X){return X.substr(-3).toLowerCase()==="svg"||ji.test(X)},zn=function(){function X(G,J){this.type=0,this.x=G,this.y=J}return X.prototype.add=function(G,J){return new X(this.x+G,this.y+J)},X}(),qi=function(X,G,J){return new zn(X.x+(G.x-X.x)*J,X.y+(G.y-X.y)*J)},eo=function(){function X(G,J,Y,de){this.type=1,this.start=G,this.startControl=J,this.endControl=Y,this.end=de}return X.prototype.subdivide=function(G,J){var Y=qi(this.start,this.startControl,G),de=qi(this.startControl,this.endControl,G),Ce=qi(this.endControl,this.end,G),Fe=qi(Y,de,G),at=qi(de,Ce,G),rt=qi(Fe,at,G);return J?new X(this.start,Y,Fe,rt):new X(rt,at,Ce,this.end)},X.prototype.add=function(G,J){return new X(this.start.add(G,J),this.startControl.add(G,J),this.endControl.add(G,J),this.end.add(G,J))},X.prototype.reverse=function(){return new X(this.end,this.endControl,this.startControl,this.start)},X}(),to=function(X){return X.type===1},Dl=function(){function X(G){var J=G.styles,Y=G.bounds,de=Tt(J.borderTopLeftRadius,Y.width,Y.height),Ce=de[0],Fe=de[1],at=Tt(J.borderTopRightRadius,Y.width,Y.height),rt=at[0],It=at[1],Ft=Tt(J.borderBottomRightRadius,Y.width,Y.height),nn=Ft[0],un=Ft[1],Sr=Tt(J.borderBottomLeftRadius,Y.width,Y.height),Qn=Sr[0],Ar=Sr[1],va=[];va.push((Ce+rt)/Y.width),va.push((Qn+nn)/Y.width),va.push((Fe+Ar)/Y.height),va.push((It+un)/Y.height);var wr=Math.max.apply(Math,va);wr>1&&(Ce/=wr,Fe/=wr,rt/=wr,It/=wr,nn/=wr,un/=wr,Qn/=wr,Ar/=wr);var Br=Y.width-rt,bi=Y.height-un,Ja=Y.width-nn,Pi=Y.height-Ar,Or=J.borderTopWidth,Ii=J.borderRightWidth,Ui=J.borderBottomWidth,Xa=J.borderLeftWidth,Ms=ht(J.paddingTop,G.bounds.width),_s=ht(J.paddingRight,G.bounds.width),js=ht(J.paddingBottom,G.bounds.width),Zo=ht(J.paddingLeft,G.bounds.width);this.topLeftBorderDoubleOuterBox=Ce>0||Fe>0?Va(Y.left+Xa/3,Y.top+Or/3,Ce-Xa/3,Fe-Or/3,ni.TOP_LEFT):new zn(Y.left+Xa/3,Y.top+Or/3),this.topRightBorderDoubleOuterBox=Ce>0||Fe>0?Va(Y.left+Br,Y.top+Or/3,rt-Ii/3,It-Or/3,ni.TOP_RIGHT):new zn(Y.left+Y.width-Ii/3,Y.top+Or/3),this.bottomRightBorderDoubleOuterBox=nn>0||un>0?Va(Y.left+Ja,Y.top+bi,nn-Ii/3,un-Ui/3,ni.BOTTOM_RIGHT):new zn(Y.left+Y.width-Ii/3,Y.top+Y.height-Ui/3),this.bottomLeftBorderDoubleOuterBox=Qn>0||Ar>0?Va(Y.left+Xa/3,Y.top+Pi,Qn-Xa/3,Ar-Ui/3,ni.BOTTOM_LEFT):new zn(Y.left+Xa/3,Y.top+Y.height-Ui/3),this.topLeftBorderDoubleInnerBox=Ce>0||Fe>0?Va(Y.left+Xa*2/3,Y.top+Or*2/3,Ce-Xa*2/3,Fe-Or*2/3,ni.TOP_LEFT):new zn(Y.left+Xa*2/3,Y.top+Or*2/3),this.topRightBorderDoubleInnerBox=Ce>0||Fe>0?Va(Y.left+Br,Y.top+Or*2/3,rt-Ii*2/3,It-Or*2/3,ni.TOP_RIGHT):new zn(Y.left+Y.width-Ii*2/3,Y.top+Or*2/3),this.bottomRightBorderDoubleInnerBox=nn>0||un>0?Va(Y.left+Ja,Y.top+bi,nn-Ii*2/3,un-Ui*2/3,ni.BOTTOM_RIGHT):new zn(Y.left+Y.width-Ii*2/3,Y.top+Y.height-Ui*2/3),this.bottomLeftBorderDoubleInnerBox=Qn>0||Ar>0?Va(Y.left+Xa*2/3,Y.top+Pi,Qn-Xa*2/3,Ar-Ui*2/3,ni.BOTTOM_LEFT):new zn(Y.left+Xa*2/3,Y.top+Y.height-Ui*2/3),this.topLeftBorderStroke=Ce>0||Fe>0?Va(Y.left+Xa/2,Y.top+Or/2,Ce-Xa/2,Fe-Or/2,ni.TOP_LEFT):new zn(Y.left+Xa/2,Y.top+Or/2),this.topRightBorderStroke=Ce>0||Fe>0?Va(Y.left+Br,Y.top+Or/2,rt-Ii/2,It-Or/2,ni.TOP_RIGHT):new zn(Y.left+Y.width-Ii/2,Y.top+Or/2),this.bottomRightBorderStroke=nn>0||un>0?Va(Y.left+Ja,Y.top+bi,nn-Ii/2,un-Ui/2,ni.BOTTOM_RIGHT):new zn(Y.left+Y.width-Ii/2,Y.top+Y.height-Ui/2),this.bottomLeftBorderStroke=Qn>0||Ar>0?Va(Y.left+Xa/2,Y.top+Pi,Qn-Xa/2,Ar-Ui/2,ni.BOTTOM_LEFT):new zn(Y.left+Xa/2,Y.top+Y.height-Ui/2),this.topLeftBorderBox=Ce>0||Fe>0?Va(Y.left,Y.top,Ce,Fe,ni.TOP_LEFT):new zn(Y.left,Y.top),this.topRightBorderBox=rt>0||It>0?Va(Y.left+Br,Y.top,rt,It,ni.TOP_RIGHT):new zn(Y.left+Y.width,Y.top),this.bottomRightBorderBox=nn>0||un>0?Va(Y.left+Ja,Y.top+bi,nn,un,ni.BOTTOM_RIGHT):new zn(Y.left+Y.width,Y.top+Y.height),this.bottomLeftBorderBox=Qn>0||Ar>0?Va(Y.left,Y.top+Pi,Qn,Ar,ni.BOTTOM_LEFT):new zn(Y.left,Y.top+Y.height),this.topLeftPaddingBox=Ce>0||Fe>0?Va(Y.left+Xa,Y.top+Or,Math.max(0,Ce-Xa),Math.max(0,Fe-Or),ni.TOP_LEFT):new zn(Y.left+Xa,Y.top+Or),this.topRightPaddingBox=rt>0||It>0?Va(Y.left+Math.min(Br,Y.width-Ii),Y.top+Or,Br>Y.width+Ii?0:Math.max(0,rt-Ii),Math.max(0,It-Or),ni.TOP_RIGHT):new zn(Y.left+Y.width-Ii,Y.top+Or),this.bottomRightPaddingBox=nn>0||un>0?Va(Y.left+Math.min(Ja,Y.width-Xa),Y.top+Math.min(bi,Y.height-Ui),Math.max(0,nn-Ii),Math.max(0,un-Ui),ni.BOTTOM_RIGHT):new zn(Y.left+Y.width-Ii,Y.top+Y.height-Ui),this.bottomLeftPaddingBox=Qn>0||Ar>0?Va(Y.left+Xa,Y.top+Math.min(Pi,Y.height-Ui),Math.max(0,Qn-Xa),Math.max(0,Ar-Ui),ni.BOTTOM_LEFT):new zn(Y.left+Xa,Y.top+Y.height-Ui),this.topLeftContentBox=Ce>0||Fe>0?Va(Y.left+Xa+Zo,Y.top+Or+Ms,Math.max(0,Ce-(Xa+Zo)),Math.max(0,Fe-(Or+Ms)),ni.TOP_LEFT):new zn(Y.left+Xa+Zo,Y.top+Or+Ms),this.topRightContentBox=rt>0||It>0?Va(Y.left+Math.min(Br,Y.width+Xa+Zo),Y.top+Or+Ms,Br>Y.width+Xa+Zo?0:rt-Xa+Zo,It-(Or+Ms),ni.TOP_RIGHT):new zn(Y.left+Y.width-(Ii+_s),Y.top+Or+Ms),this.bottomRightContentBox=nn>0||un>0?Va(Y.left+Math.min(Ja,Y.width-(Xa+Zo)),Y.top+Math.min(bi,Y.height+Or+Ms),Math.max(0,nn-(Ii+_s)),un-(Ui+js),ni.BOTTOM_RIGHT):new zn(Y.left+Y.width-(Ii+_s),Y.top+Y.height-(Ui+js)),this.bottomLeftContentBox=Qn>0||Ar>0?Va(Y.left+Xa+Zo,Y.top+Pi,Math.max(0,Qn-(Xa+Zo)),Ar-(Ui+js),ni.BOTTOM_LEFT):new zn(Y.left+Xa+Zo,Y.top+Y.height-(Ui+js))}return X}(),ni;(function(X){X[X.TOP_LEFT=0]="TOP_LEFT",X[X.TOP_RIGHT=1]="TOP_RIGHT",X[X.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",X[X.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(ni||(ni={}));var Va=function(X,G,J,Y,de){var Ce=4*((Math.sqrt(2)-1)/3),Fe=J*Ce,at=Y*Ce,rt=X+J,It=G+Y;switch(de){case ni.TOP_LEFT:return new eo(new zn(X,It),new zn(X,It-at),new zn(rt-Fe,G),new zn(rt,G));case ni.TOP_RIGHT:return new eo(new zn(X,G),new zn(X+Fe,G),new zn(rt,It-at),new zn(rt,It));case ni.BOTTOM_RIGHT:return new eo(new zn(rt,G),new zn(rt,G+at),new zn(X+Fe,It),new zn(X,It));case ni.BOTTOM_LEFT:default:return new eo(new zn(rt,It),new zn(rt-Fe,It),new zn(X,G+at),new zn(X,G))}},Es=function(X){return[X.topLeftBorderBox,X.topRightBorderBox,X.bottomRightBorderBox,X.bottomLeftBorderBox]},wo=function(X){return[X.topLeftContentBox,X.topRightContentBox,X.bottomRightContentBox,X.bottomLeftContentBox]},Ll=function(X){return[X.topLeftPaddingBox,X.topRightPaddingBox,X.bottomRightPaddingBox,X.bottomLeftPaddingBox]},al=function(){function X(G,J,Y){this.offsetX=G,this.offsetY=J,this.matrix=Y,this.type=0,this.target=2|4}return X}(),zs=function(){function X(G,J){this.path=G,this.target=J,this.type=1}return X}(),Cl=function(){function X(G){this.opacity=G,this.type=2,this.target=2|4}return X}(),Jo=function(X){return X.type===0},wl=function(X){return X.type===1},Eu=function(X){return X.type===2},ac=function(X,G){return X.length===G.length?X.some(function(J,Y){return J===G[Y]}):!1},hc=function(X,G,J,Y,de){return X.map(function(Ce,Fe){switch(Fe){case 0:return Ce.add(G,J);case 1:return Ce.add(G+Y,J);case 2:return Ce.add(G+Y,J+de);case 3:return Ce.add(G,J+de)}return Ce})},ic=function(){function X(G){this.element=G,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return X}(),oc=function(){function X(G,J){if(this.container=G,this.parent=J,this.effects=[],this.curves=new Dl(this.container),this.container.styles.opacity<1&&this.effects.push(new Cl(this.container.styles.opacity)),this.container.styles.transform!==null){var Y=this.container.bounds.left+this.container.styles.transformOrigin[0].number,de=this.container.bounds.top+this.container.styles.transformOrigin[1].number,Ce=this.container.styles.transform;this.effects.push(new al(Y,de,Ce))}if(this.container.styles.overflowX!==0){var Fe=Es(this.curves),at=Ll(this.curves);ac(Fe,at)?this.effects.push(new zs(Fe,2|4)):(this.effects.push(new zs(Fe,2)),this.effects.push(new zs(at,4)))}}return X.prototype.getEffects=function(G){for(var J=[2,3].indexOf(this.container.styles.position)===-1,Y=this.parent,de=this.effects.slice(0);Y;){var Ce=Y.effects.filter(function(rt){return!wl(rt)});if(J||Y.container.styles.position!==0||!Y.parent){if(de.unshift.apply(de,Ce),J=[2,3].indexOf(Y.container.styles.position)===-1,Y.container.styles.overflowX!==0){var Fe=Es(Y.curves),at=Ll(Y.curves);ac(Fe,at)||de.unshift(new zs(at,2|4))}}else de.unshift.apply(de,Ce);Y=Y.parent}return de.filter(function(rt){return zt(rt.target,G)})},X}(),nc=function(X,G,J,Y){X.container.elements.forEach(function(de){var Ce=zt(de.flags,4),Fe=zt(de.flags,2),at=new oc(de,X);zt(de.styles.display,2048)&&Y.push(at);var rt=zt(de.flags,8)?[]:Y;if(Ce||Fe){var It=Ce||de.styles.isPositioned()?J:G,Ft=new ic(at);if(de.styles.isPositioned()||de.styles.opacity<1||de.styles.isTransformed()){var nn=de.styles.zIndex.order;if(nn<0){var un=0;It.negativeZIndex.some(function(Qn,Ar){return nn>Qn.element.container.styles.zIndex.order?(un=Ar,!1):un>0}),It.negativeZIndex.splice(un,0,Ft)}else if(nn>0){var Sr=0;It.positiveZIndex.some(function(Qn,Ar){return nn>=Qn.element.container.styles.zIndex.order?(Sr=Ar+1,!1):Sr>0}),It.positiveZIndex.splice(Sr,0,Ft)}else It.zeroOrAutoZIndexOrTransformedOrOpacity.push(Ft)}else de.styles.isFloating()?It.nonPositionedFloats.push(Ft):It.nonPositionedInlineLevel.push(Ft);nc(at,Ft,Ce?Ft:J,rt)}else de.styles.isInlineLevel()?G.inlineLevel.push(at):G.nonInlineLevel.push(at),nc(at,G,J,rt);zt(de.flags,8)&&sc(de,rt)})},sc=function(X,G){for(var J=X instanceof tu?X.start:1,Y=X instanceof tu?X.reversed:!1,de=0;de<G.length;de++){var Ce=G[de];Ce.container instanceof eu&&typeof Ce.container.value=="number"&&Ce.container.value!==0&&(J=Ce.container.value),Ce.listValue=L(J,Ce.container.styles.listStyleType,!0),J+=Y?-1:1}},Ac=function(X){var G=new oc(X,null),J=new ic(G),Y=[];return nc(G,J,J,Y),sc(G.container,Y),J},lc=function(X,G){switch(G){case 0:return Gs(X.topLeftBorderBox,X.topLeftPaddingBox,X.topRightBorderBox,X.topRightPaddingBox);case 1:return Gs(X.topRightBorderBox,X.topRightPaddingBox,X.bottomRightBorderBox,X.bottomRightPaddingBox);case 2:return Gs(X.bottomRightBorderBox,X.bottomRightPaddingBox,X.bottomLeftBorderBox,X.bottomLeftPaddingBox);case 3:default:return Gs(X.bottomLeftBorderBox,X.bottomLeftPaddingBox,X.topLeftBorderBox,X.topLeftPaddingBox)}},fc=function(X,G){switch(G){case 0:return Gs(X.topLeftBorderBox,X.topLeftBorderDoubleOuterBox,X.topRightBorderBox,X.topRightBorderDoubleOuterBox);case 1:return Gs(X.topRightBorderBox,X.topRightBorderDoubleOuterBox,X.bottomRightBorderBox,X.bottomRightBorderDoubleOuterBox);case 2:return Gs(X.bottomRightBorderBox,X.bottomRightBorderDoubleOuterBox,X.bottomLeftBorderBox,X.bottomLeftBorderDoubleOuterBox);case 3:default:return Gs(X.bottomLeftBorderBox,X.bottomLeftBorderDoubleOuterBox,X.topLeftBorderBox,X.topLeftBorderDoubleOuterBox)}},pc=function(X,G){switch(G){case 0:return Gs(X.topLeftBorderDoubleInnerBox,X.topLeftPaddingBox,X.topRightBorderDoubleInnerBox,X.topRightPaddingBox);case 1:return Gs(X.topRightBorderDoubleInnerBox,X.topRightPaddingBox,X.bottomRightBorderDoubleInnerBox,X.bottomRightPaddingBox);case 2:return Gs(X.bottomRightBorderDoubleInnerBox,X.bottomRightPaddingBox,X.bottomLeftBorderDoubleInnerBox,X.bottomLeftPaddingBox);case 3:default:return Gs(X.bottomLeftBorderDoubleInnerBox,X.bottomLeftPaddingBox,X.topLeftBorderDoubleInnerBox,X.topLeftPaddingBox)}},mc=function(X,G){switch(G){case 0:return zu(X.topLeftBorderStroke,X.topRightBorderStroke);case 1:return zu(X.topRightBorderStroke,X.bottomRightBorderStroke);case 2:return zu(X.bottomRightBorderStroke,X.bottomLeftBorderStroke);case 3:default:return zu(X.bottomLeftBorderStroke,X.topLeftBorderStroke)}},zu=function(X,G){var J=[];return to(X)?J.push(X.subdivide(.5,!1)):J.push(X),to(G)?J.push(G.subdivide(.5,!0)):J.push(G),J},Gs=function(X,G,J,Y){var de=[];return to(X)?de.push(X.subdivide(.5,!1)):de.push(X),to(J)?de.push(J.subdivide(.5,!0)):de.push(J),to(Y)?de.push(Y.subdivide(.5,!0).reverse()):de.push(Y),to(G)?de.push(G.subdivide(.5,!1).reverse()):de.push(G),de},uc=function(X){var G=X.bounds,J=X.styles;return G.add(J.borderLeftWidth,J.borderTopWidth,-(J.borderRightWidth+J.borderLeftWidth),-(J.borderTopWidth+J.borderBottomWidth))},Gu=function(X){var G=X.styles,J=X.bounds,Y=ht(G.paddingLeft,J.width),de=ht(G.paddingRight,J.width),Ce=ht(G.paddingTop,J.width),Fe=ht(G.paddingBottom,J.width);return J.add(Y+G.borderLeftWidth,Ce+G.borderTopWidth,-(G.borderRightWidth+G.borderLeftWidth+Y+de),-(G.borderTopWidth+G.borderBottomWidth+Ce+Fe))},gc=function(X,G){return X===0?G.bounds:X===2?Gu(G):uc(G)},vc=function(X,G){return X===0?G.bounds:X===2?Gu(G):uc(G)},rc=function(X,G,J){var Y=gc(lu(X.styles.backgroundOrigin,G),X),de=vc(lu(X.styles.backgroundClip,G),X),Ce=yc(lu(X.styles.backgroundSize,G),J,Y),Fe=Ce[0],at=Ce[1],rt=Tt(lu(X.styles.backgroundPosition,G),Y.width-Fe,Y.height-at),It=bc(lu(X.styles.backgroundRepeat,G),rt,Ce,Y,de),Ft=Math.round(Y.left+rt[0]),nn=Math.round(Y.top+rt[1]);return[It,Ft,nn,Fe,at]},su=function(X){return gi(X)&&X.value===Ln.AUTO},Vu=function(X){return typeof X=="number"},yc=function(X,G,J){var Y=G[0],de=G[1],Ce=G[2],Fe=X[0],at=X[1];if(!Fe)return[0,0];if(Te(Fe)&&at&&Te(at))return[ht(Fe,J.width),ht(at,J.height)];var rt=Vu(Ce);if(gi(Fe)&&(Fe.value===Ln.CONTAIN||Fe.value===Ln.COVER)){if(Vu(Ce)){var It=J.width/J.height;return It<Ce!==(Fe.value===Ln.COVER)?[J.width,J.width/Ce]:[J.height*Ce,J.height]}return[J.width,J.height]}var Ft=Vu(Y),nn=Vu(de),un=Ft||nn;if(su(Fe)&&(!at||su(at))){if(Ft&&nn)return[Y,de];if(!rt&&!un)return[J.width,J.height];if(un&&rt){var Sr=Ft?Y:de*Ce,Qn=nn?de:Y/Ce;return[Sr,Qn]}var Ar=Ft?Y:J.width,va=nn?de:J.height;return[Ar,va]}if(rt){var wr=0,Br=0;return Te(Fe)?wr=ht(Fe,J.width):Te(at)&&(Br=ht(at,J.height)),su(Fe)?wr=Br*Ce:(!at||su(at))&&(Br=wr/Ce),[wr,Br]}var bi=null,Ja=null;if(Te(Fe)?bi=ht(Fe,J.width):at&&Te(at)&&(Ja=ht(at,J.height)),bi!==null&&(!at||su(at))&&(Ja=Ft&&nn?bi/Y*de:J.height),Ja!==null&&su(Fe)&&(bi=Ft&&nn?Ja/de*Y:J.width),bi!==null&&Ja!==null)return[bi,Ja];throw new Error("Unable to calculate background-size for element")},lu=function(X,G){var J=X[G];return typeof J=="undefined"?X[0]:J},bc=function(X,G,J,Y,de){var Ce=G[0],Fe=G[1],at=J[0],rt=J[1];switch(X){case 2:return[new zn(Math.round(Y.left),Math.round(Y.top+Fe)),new zn(Math.round(Y.left+Y.width),Math.round(Y.top+Fe)),new zn(Math.round(Y.left+Y.width),Math.round(rt+Y.top+Fe)),new zn(Math.round(Y.left),Math.round(rt+Y.top+Fe))];case 3:return[new zn(Math.round(Y.left+Ce),Math.round(Y.top)),new zn(Math.round(Y.left+Ce+at),Math.round(Y.top)),new zn(Math.round(Y.left+Ce+at),Math.round(Y.height+Y.top)),new zn(Math.round(Y.left+Ce),Math.round(Y.height+Y.top))];case 1:return[new zn(Math.round(Y.left+Ce),Math.round(Y.top+Fe)),new zn(Math.round(Y.left+Ce+at),Math.round(Y.top+Fe)),new zn(Math.round(Y.left+Ce+at),Math.round(Y.top+Fe+rt)),new zn(Math.round(Y.left+Ce),Math.round(Y.top+Fe+rt))];default:return[new zn(Math.round(de.left),Math.round(de.top)),new zn(Math.round(de.left+de.width),Math.round(de.top)),new zn(Math.round(de.left+de.width),Math.round(de.height+de.top)),new zn(Math.round(de.left),Math.round(de.height+de.top))]}},Ec="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",cc="Hidden Text",_c=function(){function X(G){this._data={},this._document=G}return X.prototype.parseMetrics=function(G,J){var Y=this._document.createElement("div"),de=this._document.createElement("img"),Ce=this._document.createElement("span"),Fe=this._document.body;Y.style.visibility="hidden",Y.style.fontFamily=G,Y.style.fontSize=J,Y.style.margin="0",Y.style.padding="0",Y.style.whiteSpace="nowrap",Fe.appendChild(Y),de.src=Ec,de.width=1,de.height=1,de.style.margin="0",de.style.padding="0",de.style.verticalAlign="baseline",Ce.style.fontFamily=G,Ce.style.fontSize=J,Ce.style.margin="0",Ce.style.padding="0",Ce.appendChild(this._document.createTextNode(cc)),Y.appendChild(Ce),Y.appendChild(de);var at=de.offsetTop-Ce.offsetTop+2;Y.removeChild(Ce),Y.appendChild(this._document.createTextNode(cc)),Y.style.lineHeight="normal",de.style.verticalAlign="super";var rt=de.offsetTop-Y.offsetTop+2;return Fe.removeChild(Y),{baseline:at,middle:rt}},X.prototype.getMetrics=function(G,J){var Y=G+" "+J;return typeof this._data[Y]=="undefined"&&(this._data[Y]=this.parseMetrics(G,J)),this._data[Y]},X}(),dc=function(){function X(G,J){this.context=G,this.options=J}return X}(),Cc=1e4,wc=function(X){Q(G,X);function G(J,Y){var de=X.call(this,J,Y)||this;return de._activeEffects=[],de.canvas=Y.canvas?Y.canvas:document.createElement("canvas"),de.ctx=de.canvas.getContext("2d"),Y.canvas||(de.canvas.width=Math.floor(Y.width*Y.scale),de.canvas.height=Math.floor(Y.height*Y.scale),de.canvas.style.width=Y.width+"px",de.canvas.style.height=Y.height+"px"),de.fontMetrics=new _c(document),de.ctx.scale(de.options.scale,de.options.scale),de.ctx.translate(-Y.x,-Y.y),de.ctx.textBaseline="bottom",de._activeEffects=[],de.context.logger.debug("Canvas renderer initialized ("+Y.width+"x"+Y.height+") with scale "+Y.scale),de}return G.prototype.applyEffects=function(J){for(var Y=this;this._activeEffects.length;)this.popEffect();J.forEach(function(de){return Y.applyEffect(de)})},G.prototype.applyEffect=function(J){this.ctx.save(),Eu(J)&&(this.ctx.globalAlpha=J.opacity),Jo(J)&&(this.ctx.translate(J.offsetX,J.offsetY),this.ctx.transform(J.matrix[0],J.matrix[1],J.matrix[2],J.matrix[3],J.matrix[4],J.matrix[5]),this.ctx.translate(-J.offsetX,-J.offsetY)),wl(J)&&(this.path(J.path),this.ctx.clip()),this._activeEffects.push(J)},G.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},G.prototype.renderStack=function(J){return k(this,void 0,void 0,function(){var Y;return _(this,function(de){switch(de.label){case 0:return Y=J.element.container.styles,Y.isVisible()?[4,this.renderStackContent(J)]:[3,2];case 1:de.sent(),de.label=2;case 2:return[2]}})})},G.prototype.renderNode=function(J){return k(this,void 0,void 0,function(){return _(this,function(Y){switch(Y.label){case 0:if(zt(J.container.flags,16))debugger;return J.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(J)]:[3,3];case 1:return Y.sent(),[4,this.renderNodeContent(J)];case 2:Y.sent(),Y.label=3;case 3:return[2]}})})},G.prototype.renderTextWithLetterSpacing=function(J,Y,de){var Ce=this;if(Y===0)this.ctx.fillText(J.text,J.bounds.left,J.bounds.top+de);else{var Fe=Au(J.text);Fe.reduce(function(at,rt){return Ce.ctx.fillText(rt,at,J.bounds.top+de),at+Ce.ctx.measureText(rt).width},J.bounds.left)}},G.prototype.createFontStyle=function(J){var Y=J.fontVariant.filter(function(Fe){return Fe==="normal"||Fe==="small-caps"}).join(""),de=Rc(J.fontFamily).join(", "),Ce=Us(J.fontSize)?""+J.fontSize.number+J.fontSize.unit:J.fontSize.number+"px";return[[J.fontStyle,Y,J.fontWeight,Ce,de].join(" "),de,Ce]},G.prototype.renderTextNode=function(J,Y){return k(this,void 0,void 0,function(){var de,Ce,Fe,at,rt,It,Ft,nn,un=this;return _(this,function(Sr){return de=this.createFontStyle(Y),Ce=de[0],Fe=de[1],at=de[2],this.ctx.font=Ce,this.ctx.direction=Y.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",rt=this.fontMetrics.getMetrics(Fe,at),It=rt.baseline,Ft=rt.middle,nn=Y.paintOrder,J.textBounds.forEach(function(Qn){nn.forEach(function(Ar){switch(Ar){case 0:un.ctx.fillStyle=Ht(Y.color),un.renderTextWithLetterSpacing(Qn,Y.letterSpacing,It);var va=Y.textShadow;va.length&&Qn.text.trim().length&&(va.slice(0).reverse().forEach(function(wr){un.ctx.shadowColor=Ht(wr.color),un.ctx.shadowOffsetX=wr.offsetX.number*un.options.scale,un.ctx.shadowOffsetY=wr.offsetY.number*un.options.scale,un.ctx.shadowBlur=wr.blur.number,un.renderTextWithLetterSpacing(Qn,Y.letterSpacing,It)}),un.ctx.shadowColor="",un.ctx.shadowOffsetX=0,un.ctx.shadowOffsetY=0,un.ctx.shadowBlur=0),Y.textDecorationLine.length&&(un.ctx.fillStyle=Ht(Y.textDecorationColor||Y.color),Y.textDecorationLine.forEach(function(wr){switch(wr){case 1:un.ctx.fillRect(Qn.bounds.left,Math.round(Qn.bounds.top+It),Qn.bounds.width,1);break;case 2:un.ctx.fillRect(Qn.bounds.left,Math.round(Qn.bounds.top),Qn.bounds.width,1);break;case 3:un.ctx.fillRect(Qn.bounds.left,Math.ceil(Qn.bounds.top+Ft),Qn.bounds.width,1);break}}));break;case 1:Y.webkitTextStrokeWidth&&Qn.text.trim().length&&(un.ctx.strokeStyle=Ht(Y.webkitTextStrokeColor),un.ctx.lineWidth=Y.webkitTextStrokeWidth,un.ctx.lineJoin=window.chrome?"miter":"round",un.ctx.strokeText(Qn.text,Qn.bounds.left,Qn.bounds.top+It)),un.ctx.strokeStyle="",un.ctx.lineWidth=0,un.ctx.lineJoin="miter";break}})}),[2]})})},G.prototype.renderReplacedElement=function(J,Y,de){if(de&&J.intrinsicWidth>0&&J.intrinsicHeight>0){var Ce=Gu(J),Fe=Ll(Y);this.path(Fe),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(de,0,0,J.intrinsicWidth,J.intrinsicHeight,Ce.left,Ce.top,Ce.width,Ce.height),this.ctx.restore()}},G.prototype.renderNodeContent=function(J){return k(this,void 0,void 0,function(){var Y,de,Ce,Fe,at,rt,It,It,Ft,nn,un,Sr,Qn,Ar,va,wr,Br,bi,Ja,It,Pi,Qn,wr;return _(this,function(Or){switch(Or.label){case 0:this.applyEffects(J.getEffects(4)),Y=J.container,de=J.curves,Ce=Y.styles,Fe=0,at=Y.textNodes,Or.label=1;case 1:return Fe<at.length?(rt=at[Fe],[4,this.renderTextNode(rt,Ce)]):[3,4];case 2:Or.sent(),Or.label=3;case 3:return Fe++,[3,1];case 4:if(!(Y instanceof fu))return[3,8];Or.label=5;case 5:return Or.trys.push([5,7,,8]),[4,this.context.cache.match(Y.src)];case 6:return It=Or.sent(),this.renderReplacedElement(Y,de,It),[3,8];case 7:return Or.sent(),this.context.logger.error("Error loading image "+Y.src),[3,8];case 8:if(Y instanceof pu&&this.renderReplacedElement(Y,de,Y.canvas),!(Y instanceof Su))return[3,12];Or.label=9;case 9:return Or.trys.push([9,11,,12]),[4,this.context.cache.match(Y.svg)];case 10:return It=Or.sent(),this.renderReplacedElement(Y,de,It),[3,12];case 11:return Or.sent(),this.context.logger.error("Error loading svg "+Y.svg.substring(0,255)),[3,12];case 12:return Y instanceof Lu&&Y.tree?(Ft=new G(this.context,{scale:this.options.scale,backgroundColor:Y.backgroundColor,x:0,y:0,width:Y.width,height:Y.height}),[4,Ft.render(Y.tree)]):[3,14];case 13:nn=Or.sent(),Y.width&&Y.height&&this.ctx.drawImage(nn,0,0,Y.width,Y.height,Y.bounds.left,Y.bounds.top,Y.bounds.width,Y.bounds.height),Or.label=14;case 14:if(Y instanceof nu&&(un=Math.min(Y.bounds.width,Y.bounds.height),Y.type===Bl?Y.checked&&(this.ctx.save(),this.path([new zn(Y.bounds.left+un*.39363,Y.bounds.top+un*.79),new zn(Y.bounds.left+un*.16,Y.bounds.top+un*.5549),new zn(Y.bounds.left+un*.27347,Y.bounds.top+un*.44071),new zn(Y.bounds.left+un*.39694,Y.bounds.top+un*.5649),new zn(Y.bounds.left+un*.72983,Y.bounds.top+un*.23),new zn(Y.bounds.left+un*.84,Y.bounds.top+un*.34085),new zn(Y.bounds.left+un*.39363,Y.bounds.top+un*.79)]),this.ctx.fillStyle=Ht(Bu),this.ctx.fill(),this.ctx.restore()):Y.type===hl&&(Y.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(Y.bounds.left+un/2,Y.bounds.top+un/2,un/4,0,Math.PI*2,!0),this.ctx.fillStyle=Ht(Bu),this.ctx.fill(),this.ctx.restore()))),xc(Y)&&Y.value.length){Sr=this.createFontStyle(Ce),Qn=Sr[0],Ar=Sr[1],va=this.fontMetrics.getMetrics(Qn,Ar).baseline,this.ctx.font=Qn,this.ctx.fillStyle=Ht(Ce.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Sc(Y.styles.textAlign),wr=Gu(Y),Br=0;switch(Y.styles.textAlign){case 1:Br+=wr.width/2;break;case 2:Br+=wr.width;break}bi=wr.add(Br,0,0,-wr.height/2+1),this.ctx.save(),this.path([new zn(wr.left,wr.top),new zn(wr.left+wr.width,wr.top),new zn(wr.left+wr.width,wr.top+wr.height),new zn(wr.left,wr.top+wr.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Ws(Y.value,bi),Ce.letterSpacing,va),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!zt(Y.styles.display,2048))return[3,20];if(!(Y.styles.listStyleImage!==null))return[3,19];if(Ja=Y.styles.listStyleImage,!(Ja.type===0))return[3,18];It=void 0,Pi=Ja.url,Or.label=15;case 15:return Or.trys.push([15,17,,18]),[4,this.context.cache.match(Pi)];case 16:return It=Or.sent(),this.ctx.drawImage(It,Y.bounds.left-(It.width+10),Y.bounds.top),[3,18];case 17:return Or.sent(),this.context.logger.error("Error loading list-style-image "+Pi),[3,18];case 18:return[3,20];case 19:J.listValue&&Y.styles.listStyleType!==-1&&(Qn=this.createFontStyle(Ce)[0],this.ctx.font=Qn,this.ctx.fillStyle=Ht(Ce.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",wr=new M(Y.bounds.left,Y.bounds.top+ht(Y.styles.paddingTop,Y.bounds.width),Y.bounds.width,Aa(Ce.lineHeight,Ce.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Ws(J.listValue,wr),Ce.letterSpacing,Aa(Ce.lineHeight,Ce.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Or.label=20;case 20:return[2]}})})},G.prototype.renderStackContent=function(J){return k(this,void 0,void 0,function(){var Y,de,Ce,Fe,at,Ce,rt,It,Ce,Ft,nn,Ce,un,Sr,Ce,Qn,Ar,Ce,va,wr,Ce;return _(this,function(Br){switch(Br.label){case 0:if(zt(J.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(J.element)];case 1:Br.sent(),Y=0,de=J.negativeZIndex,Br.label=2;case 2:return Y<de.length?(Ce=de[Y],[4,this.renderStack(Ce)]):[3,5];case 3:Br.sent(),Br.label=4;case 4:return Y++,[3,2];case 5:return[4,this.renderNodeContent(J.element)];case 6:Br.sent(),Fe=0,at=J.nonInlineLevel,Br.label=7;case 7:return Fe<at.length?(Ce=at[Fe],[4,this.renderNode(Ce)]):[3,10];case 8:Br.sent(),Br.label=9;case 9:return Fe++,[3,7];case 10:rt=0,It=J.nonPositionedFloats,Br.label=11;case 11:return rt<It.length?(Ce=It[rt],[4,this.renderStack(Ce)]):[3,14];case 12:Br.sent(),Br.label=13;case 13:return rt++,[3,11];case 14:Ft=0,nn=J.nonPositionedInlineLevel,Br.label=15;case 15:return Ft<nn.length?(Ce=nn[Ft],[4,this.renderStack(Ce)]):[3,18];case 16:Br.sent(),Br.label=17;case 17:return Ft++,[3,15];case 18:un=0,Sr=J.inlineLevel,Br.label=19;case 19:return un<Sr.length?(Ce=Sr[un],[4,this.renderNode(Ce)]):[3,22];case 20:Br.sent(),Br.label=21;case 21:return un++,[3,19];case 22:Qn=0,Ar=J.zeroOrAutoZIndexOrTransformedOrOpacity,Br.label=23;case 23:return Qn<Ar.length?(Ce=Ar[Qn],[4,this.renderStack(Ce)]):[3,26];case 24:Br.sent(),Br.label=25;case 25:return Qn++,[3,23];case 26:va=0,wr=J.positiveZIndex,Br.label=27;case 27:return va<wr.length?(Ce=wr[va],[4,this.renderStack(Ce)]):[3,30];case 28:Br.sent(),Br.label=29;case 29:return va++,[3,27];case 30:return[2]}})})},G.prototype.mask=function(J){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(J.slice(0).reverse()),this.ctx.closePath()},G.prototype.path=function(J){this.ctx.beginPath(),this.formatPath(J),this.ctx.closePath()},G.prototype.formatPath=function(J){var Y=this;J.forEach(function(de,Ce){var Fe=to(de)?de.start:de;Ce===0?Y.ctx.moveTo(Fe.x,Fe.y):Y.ctx.lineTo(Fe.x,Fe.y),to(de)&&Y.ctx.bezierCurveTo(de.startControl.x,de.startControl.y,de.endControl.x,de.endControl.y,de.end.x,de.end.y)})},G.prototype.renderRepeat=function(J,Y,de,Ce){this.path(J),this.ctx.fillStyle=Y,this.ctx.translate(de,Ce),this.ctx.fill(),this.ctx.translate(-de,-Ce)},G.prototype.resizeImage=function(J,Y,de){var Ce;if(J.width===Y&&J.height===de)return J;var Fe=(Ce=this.canvas.ownerDocument)!==null&&Ce!==void 0?Ce:document,at=Fe.createElement("canvas");at.width=Math.max(1,Y),at.height=Math.max(1,de);var rt=at.getContext("2d");return rt.drawImage(J,0,0,J.width,J.height,0,0,Y,de),at},G.prototype.renderBackgroundImage=function(J){return k(this,void 0,void 0,function(){var Y,de,Ce,Fe,at,rt;return _(this,function(It){switch(It.label){case 0:Y=J.styles.backgroundImage.length-1,de=function(Ft){var nn,un,Sr,Qn,Ar,va,wr,Br,bi,Ja,Qn,Ar,va,wr,Br,Pi,Or,Ii,Ui,Xa,Ms,_s,js,Zo,bi,fl,Qn,Ml,Pl,wr,Br,Ul,Ar,va,Vl,pl,Nl,Xl,Yl,xl,Jl,Tl;return _(this,function(uu){switch(uu.label){case 0:if(!(Ft.type===0))return[3,5];nn=void 0,un=Ft.url,uu.label=1;case 1:return uu.trys.push([1,3,,4]),[4,Ce.context.cache.match(un)];case 2:return nn=uu.sent(),[3,4];case 3:return uu.sent(),Ce.context.logger.error("Error loading background-image "+un),[3,4];case 4:return nn&&(Sr=rc(J,Y,[nn.width,nn.height,nn.width/nn.height]),Qn=Sr[0],Ar=Sr[1],va=Sr[2],wr=Sr[3],Br=Sr[4],bi=Ce.ctx.createPattern(Ce.resizeImage(nn,wr,Br),"repeat"),Ce.renderRepeat(Qn,bi,Ar,va)),[3,6];case 5:ja(Ft)?(Ja=rc(J,Y,[null,null,null]),Qn=Ja[0],Ar=Ja[1],va=Ja[2],wr=Ja[3],Br=Ja[4],Pi=Dn(Ft.angle,wr,Br),Or=Pi[0],Ii=Pi[1],Ui=Pi[2],Xa=Pi[3],Ms=Pi[4],_s=document.createElement("canvas"),_s.width=wr,_s.height=Br,js=_s.getContext("2d"),Zo=js.createLinearGradient(Ii,Xa,Ui,Ms),hr(Ft.stops,Or).forEach(function(_u){return Zo.addColorStop(_u.stop,Ht(_u.color))}),js.fillStyle=Zo,js.fillRect(0,0,wr,Br),wr>0&&Br>0&&(bi=Ce.ctx.createPattern(_s,"repeat"),Ce.renderRepeat(Qn,bi,Ar,va))):ia(Ft)&&(fl=rc(J,Y,[null,null,null]),Qn=fl[0],Ml=fl[1],Pl=fl[2],wr=fl[3],Br=fl[4],Ul=Ft.position.length===0?[it]:Ft.position,Ar=ht(Ul[0],wr),va=ht(Ul[Ul.length-1],Br),Vl=yn(Ft,Ar,va,wr,Br),pl=Vl[0],Nl=Vl[1],pl>0&&Nl>0&&(Xl=Ce.ctx.createRadialGradient(Ml+Ar,Pl+va,0,Ml+Ar,Pl+va,pl),hr(Ft.stops,pl*2).forEach(function(_u){return Xl.addColorStop(_u.stop,Ht(_u.color))}),Ce.path(Qn),Ce.ctx.fillStyle=Xl,pl!==Nl?(Yl=J.bounds.left+.5*J.bounds.width,xl=J.bounds.top+.5*J.bounds.height,Jl=Nl/pl,Tl=1/Jl,Ce.ctx.save(),Ce.ctx.translate(Yl,xl),Ce.ctx.transform(1,0,0,Jl,0,0),Ce.ctx.translate(-Yl,-xl),Ce.ctx.fillRect(Ml,Tl*(Pl-xl)+xl,wr,Br*Tl),Ce.ctx.restore()):Ce.ctx.fill())),uu.label=6;case 6:return Y--,[2]}})},Ce=this,Fe=0,at=J.styles.backgroundImage.slice(0).reverse(),It.label=1;case 1:return Fe<at.length?(rt=at[Fe],[5,de(rt)]):[3,4];case 2:It.sent(),It.label=3;case 3:return Fe++,[3,1];case 4:return[2]}})})},G.prototype.renderSolidBorder=function(J,Y,de){return k(this,void 0,void 0,function(){return _(this,function(Ce){return this.path(lc(de,Y)),this.ctx.fillStyle=Ht(J),this.ctx.fill(),[2]})})},G.prototype.renderDoubleBorder=function(J,Y,de,Ce){return k(this,void 0,void 0,function(){var Fe,at;return _(this,function(rt){switch(rt.label){case 0:return Y<3?[4,this.renderSolidBorder(J,de,Ce)]:[3,2];case 1:return rt.sent(),[2];case 2:return Fe=fc(Ce,de),this.path(Fe),this.ctx.fillStyle=Ht(J),this.ctx.fill(),at=pc(Ce,de),this.path(at),this.ctx.fill(),[2]}})})},G.prototype.renderNodeBackgroundAndBorders=function(J){return k(this,void 0,void 0,function(){var Y,de,Ce,Fe,at,rt,It,Ft,nn=this;return _(this,function(un){switch(un.label){case 0:return this.applyEffects(J.getEffects(2)),Y=J.container.styles,de=!rn(Y.backgroundColor)||Y.backgroundImage.length,Ce=[{style:Y.borderTopStyle,color:Y.borderTopColor,width:Y.borderTopWidth},{style:Y.borderRightStyle,color:Y.borderRightColor,width:Y.borderRightWidth},{style:Y.borderBottomStyle,color:Y.borderBottomColor,width:Y.borderBottomWidth},{style:Y.borderLeftStyle,color:Y.borderLeftColor,width:Y.borderLeftWidth}],Fe=Tc(lu(Y.backgroundClip,0),J.curves),de||Y.boxShadow.length?(this.ctx.save(),this.path(Fe),this.ctx.clip(),rn(Y.backgroundColor)||(this.ctx.fillStyle=Ht(Y.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(J.container)]):[3,2];case 1:un.sent(),this.ctx.restore(),Y.boxShadow.slice(0).reverse().forEach(function(Sr){nn.ctx.save();var Qn=Es(J.curves),Ar=Sr.inset?0:Cc,va=hc(Qn,-Ar+(Sr.inset?1:-1)*Sr.spread.number,(Sr.inset?1:-1)*Sr.spread.number,Sr.spread.number*(Sr.inset?-2:2),Sr.spread.number*(Sr.inset?-2:2));Sr.inset?(nn.path(Qn),nn.ctx.clip(),nn.mask(va)):(nn.mask(Qn),nn.ctx.clip(),nn.path(va)),nn.ctx.shadowOffsetX=Sr.offsetX.number+Ar,nn.ctx.shadowOffsetY=Sr.offsetY.number,nn.ctx.shadowColor=Ht(Sr.color),nn.ctx.shadowBlur=Sr.blur.number,nn.ctx.fillStyle=Sr.inset?Ht(Sr.color):"rgba(0,0,0,1)",nn.ctx.fill(),nn.ctx.restore()}),un.label=2;case 2:at=0,rt=0,It=Ce,un.label=3;case 3:return rt<It.length?(Ft=It[rt],Ft.style!==0&&!rn(Ft.color)&&Ft.width>0?Ft.style===2?[4,this.renderDashedDottedBorder(Ft.color,Ft.width,at,J.curves,2)]:[3,5]:[3,11]):[3,13];case 4:return un.sent(),[3,11];case 5:return Ft.style===3?[4,this.renderDashedDottedBorder(Ft.color,Ft.width,at,J.curves,3)]:[3,7];case 6:return un.sent(),[3,11];case 7:return Ft.style===4?[4,this.renderDoubleBorder(Ft.color,Ft.width,at,J.curves)]:[3,9];case 8:return un.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Ft.color,at,J.curves)];case 10:un.sent(),un.label=11;case 11:at++,un.label=12;case 12:return rt++,[3,3];case 13:return[2]}})})},G.prototype.renderDashedDottedBorder=function(J,Y,de,Ce,Fe){return k(this,void 0,void 0,function(){var at,rt,It,Ft,nn,un,Sr,Qn,Ar,va,wr,Br,bi,Ja,Pi,Or,Pi,Or;return _(this,function(Ii){return this.ctx.save(),at=mc(Ce,de),rt=lc(Ce,de),Fe===2&&(this.path(rt),this.ctx.clip()),to(rt[0])?(It=rt[0].start.x,Ft=rt[0].start.y):(It=rt[0].x,Ft=rt[0].y),to(rt[1])?(nn=rt[1].end.x,un=rt[1].end.y):(nn=rt[1].x,un=rt[1].y),de===0||de===2?Sr=Math.abs(It-nn):Sr=Math.abs(Ft-un),this.ctx.beginPath(),Fe===3?this.formatPath(at):this.formatPath(rt.slice(0,2)),Qn=Y<3?Y*3:Y*2,Ar=Y<3?Y*2:Y,Fe===3&&(Qn=Y,Ar=Y),va=!0,Sr<=Qn*2?va=!1:Sr<=Qn*2+Ar?(wr=Sr/(2*Qn+Ar),Qn*=wr,Ar*=wr):(Br=Math.floor((Sr+Ar)/(Qn+Ar)),bi=(Sr-Br*Qn)/(Br-1),Ja=(Sr-(Br+1)*Qn)/Br,Ar=Ja<=0||Math.abs(Ar-bi)<Math.abs(Ar-Ja)?bi:Ja),va&&(Fe===3?this.ctx.setLineDash([0,Qn+Ar]):this.ctx.setLineDash([Qn,Ar])),Fe===3?(this.ctx.lineCap="round",this.ctx.lineWidth=Y):this.ctx.lineWidth=Y*2+1.1,this.ctx.strokeStyle=Ht(J),this.ctx.stroke(),this.ctx.setLineDash([]),Fe===2&&(to(rt[0])&&(Pi=rt[3],Or=rt[0],this.ctx.beginPath(),this.formatPath([new zn(Pi.end.x,Pi.end.y),new zn(Or.start.x,Or.start.y)]),this.ctx.stroke()),to(rt[1])&&(Pi=rt[1],Or=rt[2],this.ctx.beginPath(),this.formatPath([new zn(Pi.end.x,Pi.end.y),new zn(Or.start.x,Or.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},G.prototype.render=function(J){return k(this,void 0,void 0,function(){var Y;return _(this,function(de){switch(de.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Ht(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),Y=Ac(J),[4,this.renderStack(Y)];case 1:return de.sent(),this.applyEffects([]),[2,this.canvas]}})})},G}(dc),xc=function(X){return X instanceof Du||X instanceof Iu?!0:X instanceof nu&&X.type!==hl&&X.type!==Bl},Tc=function(X,G){switch(X){case 0:return Es(G);case 2:return wo(G);case 1:default:return Ll(G)}},Sc=function(X){switch(X){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Oc=["-apple-system","system-ui"],Rc=function(X){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?X.filter(function(G){return Oc.indexOf(G)===-1}):X},Bc=function(X){Q(G,X);function G(J,Y){var de=X.call(this,J,Y)||this;return de.canvas=Y.canvas?Y.canvas:document.createElement("canvas"),de.ctx=de.canvas.getContext("2d"),de.options=Y,de.canvas.width=Math.floor(Y.width*Y.scale),de.canvas.height=Math.floor(Y.height*Y.scale),de.canvas.style.width=Y.width+"px",de.canvas.style.height=Y.height+"px",de.ctx.scale(de.options.scale,de.options.scale),de.ctx.translate(-Y.x,-Y.y),de.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+Y.width+"x"+Y.height+" at "+Y.x+","+Y.y+") with scale "+Y.scale),de}return G.prototype.render=function(J){return k(this,void 0,void 0,function(){var Y,de;return _(this,function(Ce){switch(Ce.label){case 0:return Y=Zl(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,J),[4,Ic(Y)];case 1:return de=Ce.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Ht(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(de,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},G}(dc),Ic=function(X){return new Promise(function(G,J){var Y=new Image;Y.onload=function(){G(Y)},Y.onerror=J,Y.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(X))})},Dc=function(){function X(G){var J=G.id,Y=G.enabled;this.id=J,this.enabled=Y,this.start=Date.now()}return X.prototype.debug=function(){for(var G=[],J=0;J<arguments.length;J++)G[J]=arguments[J];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,O([this.id,this.getTime()+"ms"],G)):this.info.apply(this,G))},X.prototype.getTime=function(){return Date.now()-this.start},X.prototype.info=function(){for(var G=[],J=0;J<arguments.length;J++)G[J]=arguments[J];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,O([this.id,this.getTime()+"ms"],G)))},X.prototype.warn=function(){for(var G=[],J=0;J<arguments.length;J++)G[J]=arguments[J];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,O([this.id,this.getTime()+"ms"],G)):this.info.apply(this,G))},X.prototype.error=function(){for(var G=[],J=0;J<arguments.length;J++)G[J]=arguments[J];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,O([this.id,this.getTime()+"ms"],G)):this.info.apply(this,G))},X.instances={},X}(),Lc=function(){function X(G,J){var Y;this.windowBounds=J,this.instanceName="#"+X.instanceCount++,this.logger=new Dc({id:this.instanceName,enabled:G.logging}),this.cache=(Y=G.cache)!==null&&Y!==void 0?Y:new Fa(this,G)}return X.instanceCount=1,X}(),Mc=function(X,G){return G===void 0&&(G={}),Pc(X,G)};typeof window!="undefined"&&Hr.setContext(window);var Pc=function(X,G){return k(void 0,void 0,void 0,function(){var J,Y,de,Ce,Fe,at,rt,It,Ft,nn,un,Sr,Qn,Ar,va,wr,Br,bi,Ja,Pi,Or,Ii,Or,Ui,Xa,Ms,_s,js,Zo,fl,Ml,Pl,Ul,Vl,pl,Nl,Xl,Yl,xl,Jl;return _(this,function(Tl){switch(Tl.label){case 0:if(!X||typeof X!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(J=X.ownerDocument,!J)throw new Error("Element is not attached to a Document");if(Y=J.defaultView,!Y)throw new Error("Document is not attached to a Window");return de={allowTaint:(Ui=G.allowTaint)!==null&&Ui!==void 0?Ui:!1,imageTimeout:(Xa=G.imageTimeout)!==null&&Xa!==void 0?Xa:15e3,proxy:G.proxy,useCORS:(Ms=G.useCORS)!==null&&Ms!==void 0?Ms:!1},Ce=I({logging:(_s=G.logging)!==null&&_s!==void 0?_s:!0,cache:G.cache},de),Fe={windowWidth:(js=G.windowWidth)!==null&&js!==void 0?js:Y.innerWidth,windowHeight:(Zo=G.windowHeight)!==null&&Zo!==void 0?Zo:Y.innerHeight,scrollX:(fl=G.scrollX)!==null&&fl!==void 0?fl:Y.pageXOffset,scrollY:(Ml=G.scrollY)!==null&&Ml!==void 0?Ml:Y.pageYOffset},at=new M(Fe.scrollX,Fe.scrollY,Fe.windowWidth,Fe.windowHeight),rt=new Lc(Ce,at),It=(Pl=G.foreignObjectRendering)!==null&&Pl!==void 0?Pl:!1,Ft={allowTaint:(Ul=G.allowTaint)!==null&&Ul!==void 0?Ul:!1,onclone:G.onclone,ignoreElements:G.ignoreElements,inlineImages:It,copyStyles:It},rt.logger.debug("Starting document clone with size "+at.width+"x"+at.height+" scrolled to "+-at.left+","+-at.top),nn=new j(rt,X,Ft),un=nn.clonedReferenceElement,un?[4,nn.toIFrame(J,at)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return Sr=Tl.sent(),Qn=Xi(un)||tc(un)?n(un.ownerDocument):T(rt,un),Ar=Qn.width,va=Qn.height,wr=Qn.left,Br=Qn.top,bi=Uc(rt,un,G.backgroundColor),Ja={canvas:G.canvas,backgroundColor:bi,scale:(pl=(Vl=G.scale)!==null&&Vl!==void 0?Vl:Y.devicePixelRatio)!==null&&pl!==void 0?pl:1,x:((Nl=G.x)!==null&&Nl!==void 0?Nl:0)+wr,y:((Xl=G.y)!==null&&Xl!==void 0?Xl:0)+Br,width:(Yl=G.width)!==null&&Yl!==void 0?Yl:Math.ceil(Ar),height:(xl=G.height)!==null&&xl!==void 0?xl:Math.ceil(va)},It?(rt.logger.debug("Document cloned, using foreign object rendering"),Or=new Bc(rt,Ja),[4,Or.render(un)]):[3,3];case 2:return Pi=Tl.sent(),[3,5];case 3:return rt.logger.debug("Document cloned, element located at "+wr+","+Br+" with size "+Ar+"x"+va+" using computed rendering"),rt.logger.debug("Starting DOM parsing"),Ii=Pu(rt,un),bi===Ii.styles.backgroundColor&&(Ii.styles.backgroundColor=xn.TRANSPARENT),rt.logger.debug("Starting renderer for element at "+Ja.x+","+Ja.y+" with size "+Ja.width+"x"+Ja.height),Or=new wc(rt,Ja),[4,Or.render(Ii)];case 4:Pi=Tl.sent(),Tl.label=5;case 5:return((Jl=G.removeContainer)!==null&&Jl!==void 0?Jl:!0)&&(j.destroy(Sr)||rt.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),rt.logger.debug("Finished rendering"),[2,Pi]}})})},Uc=function(X,G,J){var Y=G.ownerDocument,de=Y.documentElement?ln(X,getComputedStyle(Y.documentElement).backgroundColor):xn.TRANSPARENT,Ce=Y.body?ln(X,getComputedStyle(Y.body).backgroundColor):xn.TRANSPARENT,Fe=typeof J=="string"?ln(X,J):J===null?xn.TRANSPARENT:4294967295;return G===Y.documentElement?rn(de)?rn(Ce)?Fe:Ce:de:Fe};return Mc})},wRmb:function(Be,ee,v){"use strict";v.d(ee,"a",function(){return p});var Z=v("rePB"),Q=v("KQm4"),I=v("VTBJ"),k=v("Ff2n"),_=v("q1tI"),O=v.n(_),M=v("Kwbf"),T=v("Zm9Q"),n=v("hW8S");function p(i){return Object(T.a)(i).filter(function(c){return _.isValidElement(c)}).map(function(c){var d=c.key,f=c.props,o=f.children,u=Object(k.a)(f,["children"]),E=Object(I.a)({key:d},u);return o&&(E.children=p(o)),E})}function a(i){return i.reduce(function(c,d){var f=d.fixed,o=f===!0?"left":f,u=d.children;return u&&u.length>0?[].concat(Object(Q.a)(c),Object(Q.a)(a(u).map(function(E){return Object(I.a)({fixed:o},E)}))):[].concat(Object(Q.a)(c),[Object(I.a)(Object(I.a)({},d),{},{fixed:o})])},[])}function t(i){for(var c=!0,d=0;d<i.length;d+=1){var f=i[d];if(c&&f.fixed!=="left")c=!1;else if(!c&&f.fixed==="left"){Object(M.a)(!1,"Index ".concat(d-1," of `columns` missing `fixed='left'` prop."));break}}for(var o=!0,u=i.length-1;u>=0;u-=1){var E=i[u];if(o&&E.fixed!=="right")o=!1;else if(!o&&E.fixed==="right"){Object(M.a)(!1,"Index ".concat(u+1," of `columns` missing `fixed='right'` prop."));break}}}function A(i){return i.map(function(c){var d=c.fixed,f=Object(k.a)(c,["fixed"]),o=d;return d==="left"?o="right":d==="right"&&(o="left"),Object(I.a)({fixed:o},f)})}function l(i,c){var d=i.prefixCls,f=i.columns,o=i.children,u=i.expandable,E=i.expandedKeys,R=i.getRowKey,w=i.onTriggerExpand,P=i.expandIcon,C=i.rowExpandable,b=i.expandIconColumnIndex,s=i.direction,h=i.expandRowByClick,m=_.useMemo(function(){return f||p(o)},[f,o]),x=_.useMemo(function(){if(u){var U,N=b||0,S=m[N],H=(U={},Object(Z.a)(U,n.a,{className:"".concat(d,"-expand-icon-col")}),Object(Z.a)(U,"title",""),Object(Z.a)(U,"fixed",S?S.fixed:null),Object(Z.a)(U,"className","".concat(d,"-row-expand-icon-cell")),Object(Z.a)(U,"render",function(z,K,$){var te=R(K,$),fe=E.has(te),Ae=C?C(K):!0,ce=P({prefixCls:d,expanded:fe,expandable:Ae,record:K,onExpand:w});return h?_.createElement("span",{onClick:function(ye){return ye.stopPropagation()}},ce):ce}),U),F=m.slice();return N>=0&&F.splice(N,0,H),F}return m},[u,m,R,E,P,s]),g=_.useMemo(function(){var U=x;return c&&(U=c(U)),U.length||(U=[{render:function(){return null}}]),U},[c,x,s]),y=_.useMemo(function(){return s==="rtl"?A(a(g)):a(g)},[g,s]);return[g,y]}ee.b=l},wYyv:function(Be,ee,v){"use strict";const Z=(I,k,_)=>{const O=k<0?I.length+k:k;if(O>=0&&O<I.length){const M=_<0?I.length+_:_,[T]=I.splice(k,1);I.splice(M,0,T)}},Q=(I,k,_)=>(I=[...I],Z(I,k,_),I);Be.exports=Q,Be.exports.mutate=Z},wzkS:function(Be,ee,v){"use strict";v.d(ee,"c",function(){return _}),v.d(ee,"b",function(){return O}),v.d(ee,"d",function(){return M}),v.d(ee,"a",function(){return n}),v.d(ee,"e",function(){return p});var Z=v("9og8"),Q=v("WmNS"),I=v.n(Q),k=v("ErOA");function _(a){return Object(k.c)("libraries/".concat(a,".json"))}function O(){return Object(k.c)("library_tags.json")}function M(a){return T.apply(this,arguments)}function T(){return T=Object(Z.a)(I.a.mark(function a(t){var A;return I.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Object(k.b)("attachments/".concat(t,".json"));case 2:return A=i.sent,i.abrupt("return",A.status===0);case 4:case"end":return i.stop()}},a)})),T.apply(this,arguments)}function n(a){return Object(k.f)("libraries.json",a)}function p(a,t){return Object(k.g)("libraries/".concat(a,".json"),t)}},x6Kt:function(Be,ee,v){var Z=v("y+Vt"),Q=v("VpOo"),I=v("nPnh"),k=I.subPixelOptimizeRect,_={},O=Z.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(M,T){var n,p,a,t;this.subPixelOptimize?(k(_,T,this.style),n=_.x,p=_.y,a=_.width,t=_.height,_.r=T.r,T=_):(n=T.x,p=T.y,a=T.width,t=T.height),T.r?Q.buildPath(M,T):M.rect(n,p,a,t),M.closePath();return}});Be.exports=O},"y+Vt":function(Be,ee,v){var Z=v("Gev7"),Q=v("bYtY"),I=v("IMiH"),k=v("2DNl"),_=v("3C/r"),O=_.prototype.getCanvasPattern,M=Math.abs,T=new I(!0);function n(a){Z.call(this,a),this.path=null}n.prototype={constructor:n,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(a,t){var A=this.style,l=this.path||T,i=A.hasStroke(),c=A.hasFill(),d=A.fill,f=A.stroke,o=c&&!!d.colorStops,u=i&&!!f.colorStops,E=c&&!!d.image,R=i&&!!f.image;if(A.bind(a,this,t),this.setTransform(a),this.__dirty){var w;o&&(w=w||this.getBoundingRect(),this._fillGradient=A.getGradient(a,d,w)),u&&(w=w||this.getBoundingRect(),this._strokeGradient=A.getGradient(a,f,w))}o?a.fillStyle=this._fillGradient:E&&(a.fillStyle=O.call(d,a)),u?a.strokeStyle=this._strokeGradient:R&&(a.strokeStyle=O.call(f,a));var P=A.lineDash,C=A.lineDashOffset,b=!!a.setLineDash,s=this.getGlobalScale();if(l.setScale(s[0],s[1],this.segmentIgnoreThreshold),this.__dirtyPath||P&&!b&&i?(l.beginPath(a),P&&!b&&(l.setLineDash(P),l.setLineDashOffset(C)),this.buildPath(l,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(a.beginPath(),this.path.rebuildPath(a)),c)if(A.fillOpacity!=null){var h=a.globalAlpha;a.globalAlpha=A.fillOpacity*A.opacity,l.fill(a),a.globalAlpha=h}else l.fill(a);if(P&&b&&(a.setLineDash(P),a.lineDashOffset=C),i)if(A.strokeOpacity!=null){var h=a.globalAlpha;a.globalAlpha=A.strokeOpacity*A.opacity,l.stroke(a),a.globalAlpha=h}else l.stroke(a);P&&b&&a.setLineDash([]),A.text!=null&&(this.restoreTransform(a),this.drawRectText(a,this.getBoundingRect()))},buildPath:function(a,t,A){},createPathProxy:function(){this.path=new I},getBoundingRect:function(){var a=this._rect,t=this.style,A=!a;if(A){var l=this.path;l||(l=this.path=new I),this.__dirtyPath&&(l.beginPath(),this.buildPath(l,this.shape,!1)),a=l.getBoundingRect()}if(this._rect=a,t.hasStroke()){var i=this._rectWithStroke||(this._rectWithStroke=a.clone());if(this.__dirty||A){i.copy(a);var c=t.lineWidth,d=t.strokeNoScale?this.getLineScale():1;t.hasFill()||(c=Math.max(c,this.strokeContainThreshold||4)),d>1e-10&&(i.width+=c/d,i.height+=c/d,i.x-=c/d/2,i.y-=c/d/2)}return i}return a},contain:function(a,t){var A=this.transformCoordToLocal(a,t),l=this.getBoundingRect(),i=this.style;if(a=A[0],t=A[1],l.contain(a,t)){var c=this.path.data;if(i.hasStroke()){var d=i.lineWidth,f=i.strokeNoScale?this.getLineScale():1;if(f>1e-10&&(i.hasFill()||(d=Math.max(d,this.strokeContainThreshold)),k.containStroke(c,d/f,a,t)))return!0}if(i.hasFill())return k.contain(c,a,t)}return!1},dirty:function(a){a==null&&(a=!0),a&&(this.__dirtyPath=a,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(a){return this.animate("shape",a)},attrKV:function(a,t){a==="shape"?(this.setShape(t),this.__dirtyPath=!0,this._rect=null):Z.prototype.attrKV.call(this,a,t)},setShape:function(a,t){var A=this.shape;if(A){if(Q.isObject(a))for(var l in a)a.hasOwnProperty(l)&&(A[l]=a[l]);else A[a]=t;this.dirty(!0)}return this},getLineScale:function(){var a=this.transform;return a&&M(a[0]-1)>1e-10&&M(a[3]-1)>1e-10?Math.sqrt(M(a[0]*a[3]-a[2]*a[1])):1}},n.extend=function(a){var t=function(l){n.call(this,l),a.style&&this.style.extendFrom(a.style,!1);var i=a.shape;if(i){this.shape=this.shape||{};var c=this.shape;for(var d in i)!c.hasOwnProperty(d)&&i.hasOwnProperty(d)&&(c[d]=i[d])}a.init&&a.init.call(this,l)};Q.inherits(t,n);for(var A in a)A!=="style"&&A!=="shape"&&(t.prototype[A]=a[A]);return t},Q.inherits(n,Z);var p=n;Be.exports=p},"y0+3":function(Be,ee,v){"use strict";v.d(ee,"a",function(){return a}),v.d(ee,"b",function(){return A});var Z=/margin|padding|width|height|max|min|offset/,Q={left:!0,top:!0},I={cssFloat:1,styleFloat:1,float:1};function k(l){return l.nodeType===1?l.ownerDocument.defaultView.getComputedStyle(l,null):{}}function _(l,i,c){if(i=i.toLowerCase(),c==="auto"){if(i==="height")return l.offsetHeight;if(i==="width")return l.offsetWidth}return i in Q||(Q[i]=Z.test(i)),Q[i]?parseFloat(c)||0:c}function O(l,i){var c=arguments.length,d=k(l);return i=I[i]?"cssFloat"in l.style?"cssFloat":"styleFloat":i,c===1?d:_(l,i,d[i]||l.style[i])}function M(l,i,c){var d=arguments.length;if(i=I[i]?"cssFloat"in l.style?"cssFloat":"styleFloat":i,d===3)return typeof c=="number"&&Z.test(i)&&(c="".concat(c,"px")),l.style[i]=c,c;for(var f in i)i.hasOwnProperty(f)&&M(l,f,i[f]);return k(l)}function T(l){return l===document.body?document.documentElement.clientWidth:l.offsetWidth}function n(l){return l===document.body?window.innerHeight||document.documentElement.clientHeight:l.offsetHeight}function p(){var l=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),i=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:l,height:i}}function a(){var l=document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight;return{width:l,height:i}}function t(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function A(l){var i=l.getBoundingClientRect(),c=document.documentElement;return{left:i.left+(window.pageXOffset||c.scrollLeft)-(c.clientLeft||document.body.clientLeft||0),top:i.top+(window.pageYOffset||c.scrollTop)-(c.clientTop||document.body.clientTop||0)}}},"y1J/":function(Be,ee,v){Be.exports=v.p+"static/yz.688d901a.png"},y23F:function(Be,ee){function v(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}v.prototype={constructor:v,_dragStart:function(I){for(var k=I.target;k&&!k.draggable;)k=k.parent;k&&(this._draggingTarget=k,k.dragging=!0,this._x=I.offsetX,this._y=I.offsetY,this.dispatchToElement(Z(k,I),"dragstart",I.event))},_drag:function(I){var k=this._draggingTarget;if(k){var _=I.offsetX,O=I.offsetY,M=_-this._x,T=O-this._y;this._x=_,this._y=O,k.drift(M,T,I),this.dispatchToElement(Z(k,I),"drag",I.event);var n=this.findHover(_,O,k).target,p=this._dropTarget;this._dropTarget=n,k!==n&&(p&&n!==p&&this.dispatchToElement(Z(p,I),"dragleave",I.event),n&&n!==p&&this.dispatchToElement(Z(n,I),"dragenter",I.event))}},_dragEnd:function(I){var k=this._draggingTarget;k&&(k.dragging=!1),this.dispatchToElement(Z(k,I),"dragend",I.event),this._dropTarget&&this.dispatchToElement(Z(this._dropTarget,I),"drop",I.event),this._draggingTarget=null,this._dropTarget=null}};function Z(I,k){return{target:I,topTarget:k&&k.topTarget}}var Q=v;Be.exports=Q},y5JW:function(Be,ee,v){"use strict";v.d(ee,"c",function(){return c}),v.d(ee,"a",function(){return d});var Z=v("DZo9"),Q=v("8z0m"),I=v("+L6B"),k=v("2/Rp"),_=v("9og8"),O=v("miYZ"),M=v("tsqr"),T=v("k1fw"),n=v("oBTY"),p=v("WmNS"),a=v.n(p),t=v("q1tI"),A=v.n(t),l=v("m3rI"),i=v("wzkS"),c="\u3000\u3000";function d(f){var o=["Bytes","KB","MB","GB","TB"];if(f==0)return"0 Byte";var u=parseInt(""+Math.floor(Math.log(f)/Math.log(1024)),10);return(f/Math.pow(1024,u)).toFixed(1)+" "+o[u]}ee.b=function(f){var o=f.value,u=o===void 0?[]:o,E=f.action,R=f.onChange,w=f.className,P=f.maxSize,C=P===void 0?150:P,b=f.title,s=b===void 0?"\u6587\u4EF6\u4E0A\u4F20":b,h=f.accept,m=h===void 0?null:h,x={multiple:!1,fileList:u,accept:m,withCredentials:!0,beforeUpload:function(U){var N=U.size/1024/1024;return!0},action:"".concat(l.a.API_SERVER,"/api/attachments.json"),onChange:function(U){var N,S,H=Object(n.a)(U.fileList);if(H=H.map(function(z){return z.name.indexOf(c)===-1&&(z.name="".concat(z.name).concat(c).concat(d(z.size))),Object(T.a)({},z)}),U.file.status==="done"&&((N=U.file)===null||N===void 0||((S=N.response)===null||S===void 0)?void 0:S.status)===-1){var F,B;M.b.error((F=U.file)===null||F===void 0||((B=F.response)===null||B===void 0)?void 0:B.message),R([]);return}R(H)},onRemove:function(){var y=Object(_.a)(a.a.mark(function N(S){var H,F,B;return a.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:if(H=S.size/1024/1024,!(S.status==="uploading")){K.next=3;break}return K.abrupt("return",!0);case 3:if(H<C){K.next=7;break}return K.abrupt("return",!0);case 7:if(F=S.response?S.response.id:S.uid,!F){K.next=15;break}return K.next=11,Object(i.d)(S.response?S.response.id:S.id);case 11:return B=K.sent,K.abrupt("return",B);case 15:return K.abrupt("return",!0);case 16:case"end":return K.stop()}},N)}));function U(N){return y.apply(this,arguments)}return U}()};function g(y){y.preventDefault(),y.stopPropagation()}return A.a.createElement("div",{className:"single-upload ".concat(w||"")},A.a.createElement(Q.a,x,A.a.createElement(k.a,{type:"primary",title:u.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:u.length>0,ghost:!0},s),A.a.createElement("span",{onClick:g,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",C,"M)"," ")))}},"yTi+":function(Be,ee,v){Be.exports=v.p+"static/AssistantCode3.fdd8db3c.jpeg"},yslc:function(Be,ee){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAOHklEQVR4Xu1dCXQURRr+emZyTO6D3BCEgKCInCKeK3IoiyIqlxLyQBRBV8DNhCCrS3Z9Cq66KOoi68ECKocCcutTLhUERM1MEpBLEuQmQMKEnDNd+6onEzKTuXqmJ5l0V/EeL+mp+qu+r77UVP1V9TcHffZbIJgOlhgDMmaAA8lTwVDxJQh5UMY4GTSFM8AJ+PW6cIDsBEEfhfPB4MuUAYvQaTowOwV1NXtB0E6mWBksBTNwTeiUBENud/CmHwBEKZgTBl2GDNgKnQIsyBkCM9kEEI0M8TJICmWgqdCFkT17MngsUignDLYMGXAsdAo0XzcPILkyxMwgKZAB50InhIMhZxUIGalAXhhkmTHgXOgU6PG8UFwxbgdBf5nhZnAUxoBroVMyjryQgMraPSDoqDBuGFwZMeBe6MLi9IWuIHW7QUisjLAzKApiwDOhC25H3T3g8TUICVYQPwyqTBjwXOgUsD4nC4RfIhPsDIaCGBAndEHsujwQMkdBHDGoMmBAvNAtPvZlAMmUAX4GQSEMeCf0wrxgmCu+ASF3K4QnBrOVM+Cd0Cnoorw4mIw/guD6Vs4Ba74CGPBe6IInJicDZn4PgDYK4IpBbMUM+CZ0Qey5t4M3bwUhoa2YB4dNT1CHIzkoEkZzDYrrLtvkCeU0aBsULTw7WntRbtARoQrGbWHtBVw/Vpaggq9t1Rh9F7qwOM0ZA45fDgJp7PmJ0i4hCegU3AabjAc9qmF24r14JeXP+MZ4GEN+/69NmVvD0rGn8zThWYghF7XE7JFN+0wL0x5BQfVZLL60D1XE5JUNfxTqEZqC/C7Zgumeh96EvvqMP6ppNpvSCTM/ZxbAz222lousqGtIAnZkPIMETThmndmM1y/scGvB30KfFNcPH7YbLbRjwokVWHJ5v/CzltMgWq112z5HGXgQnDdVeFW2cSEmdFcU6nUfgpBJPrPsBwPhqmCsSM/EA9E3CtaXXPoJk09+4XIk9qfQrwuKhaFLNiLVodh7tQS3HX0HpB735Lj+WNTOu0Ojl0yViC/6u88MMqG7opDkaWCo2AJCBvnMtB8MqMFhQdoIPNPmDsH6+vIijCxegjrwDmvzl9BV4LAtYwr+FJEBEzHj1iML8EvVqYY2MKFL3/nSTV2sbTuWGw2jaReAbtI3VxqLuQkDMC91mGBsXXkhRhUvFcQeBBViNWENlcxocxdeSBqInRXHMLpkmU3lfbRtsbnjk8KzdgdetvlmKDVdBZ1COEuvJA/F7KSBwsfPnVyLdy9Suq6lOLUWafULXbGITYTHwZrzYos1yc9GdE8oPJDdHnXcHhCS7En2lsgzJ2kw8pLvA094YaG5teIoBoRnYFunqT43J6koz+E8mX6jLGz7KJ6KtxzvpwvQJ/5Y5XN9nhp4NLo7empTPcqepIlsaOcHF/fgnMnoUbmi6nNYUZbvUd7mzCT9iG5tfcHMvjDzOwFybYhsTmQe1PVGygPClOGzsl+F3P4UOl0jrGyfiWFRljXCBjptKlnqtbfGA3hNsixLfwyZsf4N3bO6zCDgCrTkP6FTpAbdQyBYA0JUgQbcUXvoiEsFaU26hHvwUvJgbK84ihHHF9sU6RvWDlszpgjPEgr/biNYI19jM3FJ0kRgY4dJoGVo+rxMj3ElnzasDai/flBkZ3xeZoDJyXpBCv6sQj9XZ4TBjbswUhWC/uEWP/qeqyWgmFylm0KTkRIUBWUKnTKj180AIfOl6KjmtiHVYnRB6gg8l3Cn0Pz/lO7CtFNfwtzoT2HtdRMwIvom6KtOo8/h+TafSYnZKnT6h2a/5rCvR+wcfUm7sciK66tgoVMG87PfBfCslJ3WHLZeTByEl1Pux8byA3iw+GObKsVsGD0U1Q2fpj8uuDOt0ySrsYmxt+Dj9DHCrxNPrMD/6n3p/sDHhO4PVhvbJKvU0O9bBxCLq6MFUhgX5LBWOlVwtqv5r5RhyEkcgE8v/4LME595LXQ6HUoPimniDWnsS6dz9uHFi4V1gtWb4wtNtL2rywtsTDCh+8Kop2UL8yJgNn4Hgl6eFpEqHz23Yez+qkNzruaUH7QdhSfjbxWmG8+eWuu10B1VTH3p2zOm4O6IDFw0XUW3Q6/jnKkCAyM64dv6ub8v+McUL8Oqcj0Tej0D/l2M2vfUbzNTUcPvBSFtfelEsWW9FfoX7bPwaMzNmHtuK2af3SKp0F9NHir46GkaXbwUn5cbhJ/bqMNwW/h1biF2CI7D22kjhHxTT67GqbpymzI/V57EadMVJvQWETqttDC3B8zm70FIpNvelDAD3YRpnGa0uVvwqFhHdDrnzoztbZNneFQ3pAfHClv0P1X9YfMZ9TOPiukhPFtYuhtmO2/JS2e+Qhlf3QSBBirBl06/KWj61ngYg+0OjHkCu/Fisctv83C4ptRtMTZ1cUuRxBn0ugdByHqJrYoyNytxAOamDGsQ+oTYvlicPlaUDVeZ6W7pSbtRlrrsVrUfj/ujujYU/eTyzxh/YrnoehsLvetvr+FQzQW3NpjQ3VIkcYb8nH8D/PMSWxVlzl7o9Oz1hLhbGmwkayIxPLobCCH4+NK+Ji6/RE2E4BKk6aOLe5t8PuvMJlw2VzXYS9VEYVPHSeipTROemQkPNacCE7qobvM6c/PO0WkzC3SZMBPbgyNeN9/7gvZCt7f0z6T7hKkNPedyz7GFTSoS4168MSQJX3V8Cu2CYwQ7b5zfgdSgKDwe21sSoYudurANI+9141lJQ3YfEO6HQLiN5ErodIe05MYXhYNVT5xYicWXf/JJ6COiumFth4m4aq7BpJOrsLJMD+sGixQjulihe9ZZ3uVS7s6olS+9LhEg+wPl1TGuhP5A1A3Y0GESKvla0ANajq6RiRnRqddnb+dpGFvyiXCbiKaWFPrB6nNYXe/lcSZnsYe6Hoq6Cd21KQrfGSWLgmA4Qu+V3uXdOCF9KWdCp/7tbzOexoCITlh2aT+y/ljhsHIxQqcGgjm1zcZUSwqdHQGQXk8Wi/qchSC85QRUgCRnQl/UdiQmx/cXFqF3HX0PuyqLJRG6vZGWEPro6B7opU2Dofo0lrs5Siv2rMuo6JvRW9sWBdVnmhxzCIQu9/9i1KB7CjyxvVkcAMgdCb3xhYi/nlqP+aXfOW2p2BE9EIQuhnaxQhdjuyXy+lfollAY2wMxAq/14oV18RSvDsPxG2YLdzgXXPge00+vc9kfTOgtIVfv6/Sf0C3b/T8H4i2jJ+P64d20RxCi0qCGN2FMyTKsu1KEx2J6CrudI4uXurwKR+lmQvdedC1R0j9CP7IgBFdL6Pd+v5YA5arO+anDMSPBEjKyzFyFGLVWuE73t7NbMO/8dtAtek8uP3QLScJH9aEq7jz6nkdlGrerJeboYvqCTV08YSs/m17HmeBJ1ubMMy6mFz5pP06ocvaZzZh3fhueib8d76Q9DI7jsPzyr5hz9mscqXV/bsTXdvsqdHo5e//1M4RmeOpHF9NmJnR3bOl100DI2+6yNffnnYPb4Jfrn0eEOgTvl+7G1FNrGppA/wDoOZcgTi08O1pTiiM1F3DWZASNk0JHeHq7nm7b09v99H4//Z+O/nQbX8OpoIZKKB/CqaFVBWFdeRHWXil0CtNTodPIBF1DE1HF16GSr0MVqQM9M5OXPAQT4/oJ4TKSi/6Bi+ZKSSllQndFJ339ixnfBOJbp3dkTBXiqNDNkt6H56PaLvxbL20q5iQNAT2xSEd3X9PQ3z/AV8ZDkgj9SvdXEKpyfHHEemHD1/bal2dCd8YoDXFRCxpTLSAj6/YMTRVu7tAYLs584xRatCoUPbSp6BqSiFi1FtHqUISpgqHmOGHUpiM4PSKg4jjQf87S9FNf4oqLC8WejujU/u5Of2lyRp1e1th85SDevLDTL3ERmdAd9ezpvDCcr9gFkJ5SjyxS2qMiLndwRlzKOjy1Ra/RxWvChdtF9pF67W3QIwR0Z7VxKjdX++0SNa2HXgAZG2O5DLai7FeUSjw18pQnqfL5/h1NW6LXLQch0h3mlgods8MYqGfAd6EbcmaC519jjDIGApkB34Sen3sfOPPm1hKgKJA7grXNvwx4L/SiWZ1gMu1jb5P2bwcx69Iw4J3QaegKk5G+uyhgI+ZKQw+zIhcGxAudEA56Hd1tscRaYIkx0AoYEC90vW4OCMlrBdhYExkDDQyIE7oQHZesDfSXcrH+ZQzYM+C50Atm3gBeiLLVrIGHWJcxBqRgwDOhH8+LQXnFPoB0lqJSZoMx0NwMuBc6yVPBULERhAxt7sax+hgDUjHgXuiG7LngMUuqCpkdxkBLMOBa6AW60TCTlS3RMFYnY0BKBpwLnUa9NZl3B/LLtqQkgtmSNwOOhX7whXjU1NKz5e4DdcubH4ZOJgw0Fbrl7c9fg5B7ZYKRwWAMOLgio89+CwTTGTeMATkxYDui63OyQPglcgLIsDAGKAPXhF6YfQvM3HeBENKZdQ1jQGoGLEIvmJ0EvnZ/c79ES2owzB5jwBkDHGhIZ/2R7QC5g9HEGJArAxzyde8D5Gm5AmS4GAO2c3TGB2OgFTLALR1KA6e5SByvUpEp7s+6tELwrMnKYcCl0DmYVOCyzOM3L2dCV44mZInUhdBrVFCPMmdt3MCmLrLsemWBcih0DlfVBMNNWVu2WdlgI7qydCE7tE2FzpVpVOqhdZkbaJSKhsSELruuVxYgG6FzOK+Bekjd+I16exaY0JWlC9mhbRA6h5PBCBpUM369w1jdTOiy63plAaoX+rEQNTewetzmEmfomdCVpQvZoeWWDi3UctrBlePXnHHpTZcdcgZIUQxErnk43vjI2ovuQP8faDGikjbF4FsAAAAASUVORK5CYII="},yxFR:function(Be,ee,v){var Z=v("y+Vt"),Q=v("nPnh"),I=Q.subPixelOptimizeLine,k={},_=Z.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(O,M){var T,n,p,a;this.subPixelOptimize?(I(k,M,this.style),T=k.x1,n=k.y1,p=k.x2,a=k.y2):(T=M.x1,n=M.y1,p=M.x2,a=M.y2);var t=M.percent;if(t===0)return;O.moveTo(T,n),t<1&&(p=T*(1-t)+p*t,a=n*(1-t)+a*t),O.lineTo(p,a)},pointAt:function(O){var M=this.shape;return[M.x1*(1-O)+M.x2*O,M.y1*(1-O)+M.y2*O]}});Be.exports=_},zarK:function(Be,ee,v){var Z=v("YH21"),Q=Z.addEventListener,I=Z.removeEventListener,k=Z.normalizeEvent,_=Z.getNativeEvent,O=v("bYtY"),M=v("H6uX"),T=v("ItGF"),n=300,p=T.domSupported,a=function(){var y=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],U=["touchstart","touchend","touchmove"],N={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},S=O.map(y,function(H){var F=H.replace("mouse","pointer");return N.hasOwnProperty(F)?F:H});return{mouse:y,touch:U,pointer:S}}(),t={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function A(y){return y==="mousewheel"&&T.browser.firefox?"DOMMouseScroll":y}function l(y){var U=y.pointerType;return U==="pen"||U==="touch"}function i(y){y.touching=!0,y.touchTimer!=null&&(clearTimeout(y.touchTimer),y.touchTimer=null),y.touchTimer=setTimeout(function(){y.touching=!1,y.touchTimer=null},700)}function c(y){y&&(y.zrByTouch=!0)}function d(y,U){return k(y.dom,new o(y,U),!0)}function f(y,U){for(var N=U,S=!1;N&&N.nodeType!==9&&!(S=N.domBelongToZr||N!==U&&N===y.painterRoot);)N=N.parentNode;return S}function o(y,U){this.type=U.type,this.target=this.currentTarget=y.dom,this.pointerType=U.pointerType,this.clientX=U.clientX,this.clientY=U.clientY}var u=o.prototype;u.stopPropagation=u.stopImmediatePropagation=u.preventDefault=O.noop;var E={mousedown:function(y){y=k(this.dom,y),this._mayPointerCapture=[y.zrX,y.zrY],this.trigger("mousedown",y)},mousemove:function(y){y=k(this.dom,y);var U=this._mayPointerCapture;U&&(y.zrX!==U[0]||y.zrY!==U[1])&&s(this,!0),this.trigger("mousemove",y)},mouseup:function(y){y=k(this.dom,y),s(this,!1),this.trigger("mouseup",y)},mouseout:function(y){y=k(this.dom,y),this._pointerCapturing&&(y.zrEventControl="no_globalout");var U=y.toElement||y.relatedTarget;y.zrIsToLocalDOM=f(this,U),this.trigger("mouseout",y)},touchstart:function(y){y=k(this.dom,y),c(y),this._lastTouchMoment=new Date,this.handler.processGesture(y,"start"),E.mousemove.call(this,y),E.mousedown.call(this,y)},touchmove:function(y){y=k(this.dom,y),c(y),this.handler.processGesture(y,"change"),E.mousemove.call(this,y)},touchend:function(y){y=k(this.dom,y),c(y),this.handler.processGesture(y,"end"),E.mouseup.call(this,y),+new Date-this._lastTouchMoment<n&&E.click.call(this,y)},pointerdown:function(y){E.mousedown.call(this,y)},pointermove:function(y){l(y)||E.mousemove.call(this,y)},pointerup:function(y){E.mouseup.call(this,y)},pointerout:function(y){l(y)||E.mouseout.call(this,y)}};O.each(["click","mousewheel","dblclick","contextmenu"],function(y){E[y]=function(U){U=k(this.dom,U),this.trigger(y,U)}});var R={pointermove:function(y){l(y)||R.mousemove.call(this,y)},pointerup:function(y){R.mouseup.call(this,y)},mousemove:function(y){this.trigger("mousemove",y)},mouseup:function(y){var U=this._pointerCapturing;s(this,!1),this.trigger("mouseup",y),U&&(y.zrEventControl="only_globalout",this.trigger("mouseout",y))}};function w(y,U){var N=U.domHandlers;T.pointerEventsSupported?O.each(a.pointer,function(S){C(U,S,function(H){N[S].call(y,H)})}):(T.touchEventsSupported&&O.each(a.touch,function(S){C(U,S,function(H){N[S].call(y,H),i(U)})}),O.each(a.mouse,function(S){C(U,S,function(H){H=_(H),U.touching||N[S].call(y,H)})}))}function P(y,U){T.pointerEventsSupported?O.each(t.pointer,N):T.touchEventsSupported||O.each(t.mouse,N);function N(S){function H(F){F=_(F),f(y,F.target)||(F=d(y,F),U.domHandlers[S].call(y,F))}C(U,S,H,{capture:!0})}}function C(y,U,N,S){y.mounted[U]=N,y.listenerOpts[U]=S,Q(y.domTarget,A(U),N,S)}function b(y){var U=y.mounted;for(var N in U)U.hasOwnProperty(N)&&I(y.domTarget,A(N),U[N],y.listenerOpts[N]);y.mounted={}}function s(y,U){if(y._mayPointerCapture=null,p&&y._pointerCapturing^U){y._pointerCapturing=U;var N=y._globalHandlerScope;U?P(y,N):b(N)}}function h(y,U){this.domTarget=y,this.domHandlers=U,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function m(y,U){M.call(this),this.dom=y,this.painterRoot=U,this._localHandlerScope=new h(y,E),p&&(this._globalHandlerScope=new h(document,R)),this._pointerCapturing=!1,this._mayPointerCapture=null,w(this,this._localHandlerScope)}var x=m.prototype;x.dispose=function(){b(this._localHandlerScope),p&&b(this._globalHandlerScope)},x.setCursor=function(y){this.dom.style&&(this.dom.style.cursor=y||"default")},O.mixin(m,M);var g=m;Be.exports=g}}]);